/* Shared presentation layer. Financial data and calculations use the same source. */
.mobile-label, .mobile-cell-label { display: none; }

@media (max-width: 1250px) {
  .menu-toggle { width: 44px; height: 44px; align-items: center; flex-shrink: 0; }
  .primary-nav { top: 100%; max-height: 75dvh; overflow-y: auto; }
  .primary-nav a { min-height: 48px; display: flex; align-items: center; line-height: 1.4; }
}

@media (max-width: 760px) {
  :root { --header-height: 64px; }
  .shell { width: min(calc(100% - 32px), 1280px); }
  .site-header { position: relative; background: var(--ink); }
  .nav-wrap { height: auto; min-height: 64px; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 64px auto; gap: 0; }
  .brand { font-size: 12px; letter-spacing: .08em; }
  .menu-toggle { grid-column: 2; grid-row: 1; }
  .header-readings { grid-column: 1 / -1; grid-row: 2; width: 100%; margin: 0; padding: 8px 0 12px; border-left: 0; border-top: 1px solid var(--line-dark); }
  .header-reading { gap: 10px; }
  .reading-gauge { width: 76px; height: 45px; }
  .reading-copy { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; }
  .reading-scope { grid-column: 1; font-size: 9px; }
  .reading-name { grid-column: 1; font-size: 10px; white-space: normal; }
  .reading-line { grid-column: 2; grid-row: 1 / 3; flex-wrap: wrap; justify-content: flex-end; max-width: 100px; }
  .reading-line strong { font-size: 22px; }
  .reading-state { margin-left: 0; }
  .reading-date { grid-column: 1 / -1; font-size: 8px; }
  .hero { min-height: 0; padding-top: 0; }
  .hero-inner { padding-block: 32px 28px; gap: 24px; }
  .hero h1 { font-size: clamp(30px, 7.8vw, 38px); line-height: 1.08; margin: 18px 0; }
  .hero-lede { font-size: 15px; line-height: 1.7; }
  .hero-art { display: none; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
  .hero-actions :is(.button, .text-link) { min-height: 48px; justify-content: center; padding: 10px 8px; font-size: 11px; gap: 8px; }
  .hero-actions .text-link { border: 1px solid var(--line-dark); }
  .thesis-bar-inner { gap: 10px; padding-block: 12px; }
  .thesis-bar p { font-size: 10px; line-height: 1.5; }
  .section { padding-block: 52px; }
  .section-index { padding-block: 32px 40px; }
  .section-topline { flex-wrap: wrap; gap: 10px; font-size: 10px; line-height: 1.6; }
  .section-index .section-intro p, .index-caveat { font-size: 13px; }
  .infra-explorer, .infra-scene, .infra-figure { min-width: 0; }
  .infra-tabs { display: flex; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
  .infra-tab { flex: 0 0 auto; flex-direction: row; align-items: center; min-height: 50px; padding: 12px 16px; font-size: 13px; gap: 8px; }
  .infra-figure { padding: 20px 16px 12px; }
  .infra-figure figcaption { padding-inline: 0; }
  .infra-figure figcaption p { font-size: 13px; }
  .infra-snapshot { font-size: 10px; }
  .infra-snapshot strong { display: block; margin-left: 0; }
  .infra-sectors { padding-inline: 16px; }
  .infra-sectors summary { min-height: 48px; font-size: 12px; }
  .infra-sector-links a { font-size: 13px; min-height: 76px; }
  .infra-sector-links a small { font-size: 11px; }
  .infra-sector-links a strong { flex-shrink: 0; font-size: 21px; }
  .infra-sector-links a strong small { font-size: 10px; }
  .infra-actions { flex-wrap: wrap; gap: 12px; }
  .infra-actions :is(a, button) { min-height: 44px; display: inline-flex; align-items: center; font-size: 11px; }
  .coverage-filter, .search-suggestions button, .reading-notes summary { min-height: 44px; }
  .coverage-grid article { padding: 22px; }
  .footer-main > div { display: flex; flex-wrap: wrap; gap: 8px 20px; }
  .footer-main > div a { min-height: 44px; display: inline-flex; align-items: center; }

  .research-page .nav-wrap { display: flex; min-height: 64px; height: 64px; }
  .research-intro { padding-block: 24px; }
  .research-intro .section-topline { margin-bottom: 16px; }
  .research-intro .section-topline span:last-child { display: none; }
  .research-page-heading h1 { font-size: 30px; }
  .research-page-heading p { font-size: 14px; line-height: 1.65; margin-top: 12px; }
  .research-tabs { gap: 6px; }
  .research-tab { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 10px 6px; text-align: center; }
  .research-tab-copy strong { min-height: 0; font-size: 13px; line-height: 1.4; }
  .research-tab-number, .research-tab-copy small, .research-tab-arrow, .desktop-label { display: none; }
  .mobile-label { display: inline; }
  .research-panel { padding-top: 20px; }
  .valuation-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .valuation-modes button { min-width: 0; min-height: 48px; padding: 10px 8px; font-size: 12px; }
  .valuation-modes button span { display: block; margin: 4px 0 0; }
  .research-view-intro h2 { font-size: 23px; }
  .research-view-intro > p:last-child { font-size: 14px; }
  .research-page :is(input:not([type=checkbox]):not([type=range]):not([type=radio]), select), .newsletter-email { font-size: 16px; min-height: 48px; }
  .dcf-picker, .cd-controls { grid-template-columns: minmax(0, 1fr); }
  .dcf-picker-field { grid-column: 1 / -1; }
  .dcf-controls { grid-template-columns: minmax(0, 1fr); }
  .dcf-scenarios { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .dcf-scenario { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 12px; padding: 14px; }
  .dcf-scenario-name { font-size: 12px; overflow-wrap: anywhere; }
  .dcf-scenario strong { grid-column: 2; grid-row: 1; margin: 0; font-size: 21px; text-align: right; overflow-wrap: anywhere; }
  .dcf-scenario small { grid-column: 2; grid-row: 2; font-size: 9px; margin: 0; text-align: right; }
  .dcf-scenario small br { display: none; }
  .dcf-scenario-check { display: none; }
  .dcf-scenario-upside { grid-column: 1; grid-row: 2; padding: 0; margin: 0; font-size: 12px; border: 0; }
  .dcf-slider-wrap { height: 44px; margin-bottom: 6px; }
  .dcf-slider { height: 100%; }
  .dcf-control-foot { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; line-height: 1.6; }
  .dcf-control-foot > span { min-width: 0; overflow-wrap: anywhere; }
  .dcf-control-foot > span:first-child { grid-column: 1; grid-row: 1; text-align: left; }
  .dcf-control-foot > span:last-child { grid-column: 2; grid-row: 1; text-align: right; }
  .dcf-control-foot .dcf-control-original { grid-column: 1 / -1; grid-row: 2; text-align: center; }
  .dcf-slider::-webkit-slider-thumb { width: 24px; height: 24px; margin-top: -10.5px; }
  .dcf-slider::-moz-range-thumb { width: 21px; height: 21px; }
  .dcf-preset-tick { top: 16px; }
  .dcf-control-foot, .dcf-mobile-result small { font-size: 11px; }
  .dcf-mobile-result { top: 8px; }
  .dcf-reset, .dcf-drivers summary { min-height: 44px; }
  .dcf-combo-svg[data-compact="true"] { width: 100%; min-width: 0; max-width: 100%; }
  .dcf-combo-svg[data-compact="true"] .dcf-combo-axis { font-size: 10px; }
  .dcf-combo-svg[data-compact="true"] .dcf-combo-axis-title { font-size: 9px; letter-spacing: 0; }
  .oc-scroll, .sf-scroll, .dcf-table-wrap, .dcf-combo-scroll { max-width: 100%; overscroll-behavior-x: contain; }

  /* Keep a single set of records; only the presentation changes to cards. */
  .cd-scroll, .sec13f-table-wrap { max-width: 100%; }
  .cd-scroll { max-height: 65svh; }
  :is(.cd-scroll, .sec13f-table-wrap) table { display: block; width: 100%; min-width: 0; }
  :is(.cd-scroll, .sec13f-table-wrap) thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  :is(.cd-scroll, .sec13f-table-wrap) tbody { display: block; }
  :is(.cd-scroll, .sec13f-table-wrap) tbody tr { display: block; padding: 16px; border-bottom: 1px solid #526048; }
  :is(.cd-scroll, .sec13f-table-wrap) tbody :is(td, th) { display: block; width: 100%; min-width: 0; max-width: none; padding: 7px 0; border: 0; font-size: 14px; white-space: normal; overflow-wrap: anywhere; background: transparent; }
  :is(.cd-scroll, .sec13f-table-wrap) tbody tr:nth-child(even) { background: #1b2417; }
  .cd-scroll tbody th a { display: flex; align-items: center; min-height: 44px; }
  .cd-scroll tbody th strong { font-size: 17px; }
  .cd-status, .cd-action { white-space: normal; font-size: 12px; }
  .cd-action, .sec13f-sources a, .sec13f-sources summary { display: inline-flex; align-items: center; min-height: 44px; }
  .mobile-cell-label { display: block; margin-bottom: 4px; color: #a9b99b; font: 10px/1.5 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
  .sec13f-table-wrap td:first-child strong { font-size: 17px; }
  .sec13f-table-wrap td small { font-size: 12px; }
  .newsletter-preferences summary, .newsletter-cadence label, .newsletter-preferences label { min-height: 44px; }
  .newsletter-consent { font-size: 13px; }
}

@media (max-width: 760px) {
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  .section-intro h2, .research-head h2, .method-layout h2, .section-coverage h2, .membership-copy h2 { font-size: clamp(28px, 7vw, 34px); line-height: 1.15; }
  .newsletter-copy h2, .newsletter-compact .newsletter-copy h2 { font-size: 28px; }
  .newsletter-offer strong { font-size: 54px; }
  .newsletter-offer > span { font-size: 17px; }
  .closing h2 { font-size: 32px; }
  .dcf-value { flex-wrap: wrap; gap: 8px; }
  .dcf-value strong { font-size: 36px; overflow-wrap: anywhere; }
  .dcf-mobile-result { position: static; flex-wrap: wrap; box-shadow: none; }
  .dcf-mobile-result strong { font-size: 22px; overflow-wrap: anywhere; }
  .dcf-company > div { min-width: 0; overflow-wrap: anywhere; }
  .dcf-company h3 { font-size: 17px; line-height: 1.4; }
  .dcf-control-top, .dcf-panel-heading, .dcf-control-foot, .dcf-driver-top, .dcf-driver-foot { flex-wrap: wrap; }
  .dcf-control-top label { min-width: 0; flex: 1 1 130px; }
  .dcf-number-wrap { flex: 0 0 auto; max-width: 100%; }
  .dcf-scenario { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .dcf-scenario-upside { font-size: 11px; line-height: 1.5; }
  .dcf-valuation-context > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .dcf-valuation-context dt { max-width: none; }
  .dcf-valuation-context dd { min-width: 0; margin: 0; overflow-wrap: anywhere; font-size: 16px; }
  .dcf-valuation-context > div:nth-child(2) dd { font-size: 18px; }
  .dcf-projections { padding-inline: 10px; }
  .dcf-projection-heading h4 { font-size: 23px; }
  .dcf-combo-toolbar { padding: 12px 10px 0; }
  .dcf-combo-legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .dcf-combo-legend button { min-width: 0; font-size: 11px; padding: 8px; gap: 6px; overflow-wrap: anywhere; }
  .dcf-combo-guide, .dcf-combo-caption, .dcf-margin-note { font-size: 12px; line-height: 1.6; }
  .dcf-combo-guide { margin-inline: 10px; }
  .dcf-combo-caption, .dcf-combo-inspector, .dcf-margin-note { padding-inline: 10px; }
  .dcf-combo-year-heading { flex-wrap: wrap; gap: 6px; }
  .dcf-combo-year-heading h5 { font-size: 18px; }
  .dcf-combo-metrics dd strong { font-size: 23px; }
  .dcf-combo-metrics dt { font-size: 12px; }
  .dcf-chart-year-picker { display: flex; align-items: center; gap: 12px; padding: 0 10px 12px; font-size: 12px; color: #c2cfb6; }
  .dcf-chart-year-picker select { flex: 1; min-width: 0; max-width: 100%; padding: 8px; color: var(--white); background: #20291b; border: 1px solid #536247; }
  .infra-art > svg { width: 100%; min-width: 0; max-width: 100%; height: auto; }
  .infra-scroll-hint { display: none; }
  .infra-figure-foot { margin-inline: 0; }
  .infra-figure-foot > span { font-size: 10px; }
  .infra-actions { width: 100%; justify-content: space-between; }
  .sec13f-table-wrap tbody td:nth-child(n) { min-width: 0; max-width: none; white-space: normal; }
}
@media (min-width: 761px) { .dcf-chart-year-picker { display: none; } }
