/* The phone layout uses rem units so readers can increase their default text size. */
@media screen and (max-width: 760px) {
  body {
    --reading-size: 1rem;
    --caption-size: .875rem;
  }

  /* Reading copy, including the paragraphs inside service cards and policy pages. */
  body :is(
    .hero .hero-copy > p, .section p, .subpage-hero p, .about-page p,
    .policy-hero p, .policy-copy, .policy-copy p, .policy-copy blockquote,
    .service-detail p, .scope-panel p, .report-page p, .dialog p, .footer-description,
    .portfolio-intake-guide li, .detail-panel li, .question-list, .request-contact a
  ) {
    font-size: var(--reading-size);
    line-height: 1.65;
  }

  body :is(
    .nav, .hero .button, .bottom-cta .button, .search-panel .button, .button,
    .section .text-link, .resource-card .text-link, .text-link, .audience-link,
    .research-strip .strip-link, .report-bottom a, .policy-sidebar nav a,
    .policy-print, .policy-top, .back-link, .footer-nav a, .menu-toggle,
    .report-nav a, .faqs summary, .form-field label, .input-label,
    input, select, textarea, .coverage-inner, .research-strip-inner > .research-item,
    .founder-label, .data-row, .formula, .notice, .source-records dd,
    .search-panel .sample-link, .status, .request-contact a, .policy-help a
  ) {
    font-size: var(--reading-size);
    line-height: 1.5;
  }

  /* Short labels and explanatory notes use the same secondary scale in every section. */
  body :is(
    .hero .hero-copy .eyebrow, .hero .hero-copy .quiet, .section .eyebrow,
    .eyebrow, .step-number, .service-row > span, .offer-number,
    .report-window-top .sample-tag, .report-brand-caption, .sample-tag, .map-orientation,
    .parcel-map-legend, .report-body .row-label, .report-window .metric label,
    .bar-row, .report-bottom, .research-brand small, .research-item span, .coverage-label,
    .sheet-tabs, .sheet-table th, .sheet-table td small, .sheet-table .badge,
    .section .sheet-note, .section .portfolio-caption, .intake-guide-label,
    .source-principle span, .source-system-top small, .source-system-bottom > span,
    .source-records dt, .source-benefits span, .section .source-caption,
    .section .audience-scope, .founder-label small, .founder-proof span, .tech-label span,
    .about-method-grid article > span, .about-signature small, .portrait-caption span,
    .portrait-caption strong, .about-milestones span, .footer-nav strong, .footer-legal,
    .footer-bottom, .report-nav > span, .stat small, .resource-note
  ) {
    font-size: var(--caption-size);
    line-height: 1.5;
  }

  body .form-note {
    font-size: var(--caption-size) !important;
  }

  .research-brand strong {
    font-size: 1.125rem;
    line-height: 1.4;
  }

  .header-inner {
    gap: .75rem;
  }

  .header .brand {
    min-width: 0;
  }

  .header .brand-logo {
    max-width: 100%;
    height: auto;
  }

  .menu-toggle {
    flex: none;
  }

  .report-window-top, .report-bottom, .sheet-title, .sheet-tabs,
  .search-panel .sample-link, .report-nav, .actions, .footer-bottom > div {
    flex-wrap: wrap;
    gap: .75rem;
  }

  .report-metrics {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr));
    gap: .875rem;
  }

  .report-window .metric label {
    min-height: 0;
    margin-bottom: .25rem;
  }

  .bar-row {
    grid-template-columns: minmax(0, 1fr) 5.75rem;
  }

  .research-strip-inner {
    grid-template-columns: 1fr;
    gap: .875rem;
  }

  .research-brand, .research-brand small {
    min-width: 0;
    max-width: none;
  }

  .research-strip-inner > .research-item {
    order: 0;
  }

  .research-strip .strip-link {
    order: 1;
    margin-top: .25rem;
  }

  .coverage-inner {
    align-items: flex-start;
  }

  .coverage-inner > span {
    max-width: 100%;
  }

  .sheet-table {
    width: 100%;
    table-layout: fixed;
    font-size: 1rem;
    line-height: 1.5;
  }

  .sheet-table :is(th, td) {
    overflow-wrap: anywhere;
    vertical-align: top;
    padding-inline: .5rem;
  }

  .sheet-table :is(th, td):first-child {
    width: 37%;
    padding-left: .75rem;
  }

  .sheet-table :is(th, td):nth-child(2) {
    width: 24%;
  }

  .sheet-table .badge, .sample-link .text-link, .button, .strip-link {
    white-space: normal;
    max-width: 100%;
  }

  .source-records > div {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr));
    gap: .25rem .75rem;
  }

  .about-milestones {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  }

  .policy-sidebar nav {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr));
  }

  .hero-inner > *, .portfolio-layout > *, .property-grid > *, .sheet-title > *,
  .research-strip-inner > *, .dialog fieldset, .form-field {
    min-width: 0;
  }

  .dialog input, .dialog select, .dialog textarea {
    width: 100%;
    max-width: 100%;
  }
}
