/* The desktop Overview uses the dashboard's existing sidebar breakpoint. */
.ec-overview-desktop { display: none; }
html.ec-js #v-overview noscript { display: none; }
html:not(.ec-js) #v-overview :is(#ec-interactive-start, #evidence-export-rankings) { display: none; }

/* The disclosure is desktop-only; smaller layouts retain their visible cards. */
#v-overview .om-summary-row { display: contents; }
#v-overview #om-toggle-cards { display: none; }
.ec-chart-mobile-note { display: none; }
@media (max-width: 1279px) {
  html.ec-js #v-overview .r6-take + noscript + .overview-markets { margin-top: 20px; }
}

@media (min-width: 1280px) {
  html:has(#v-overview.on) { --qd-header-height: 59px; }
  body:has(#v-overview.on) > header.top .hwrap {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "brand title tools";
    column-gap: 18px;
    padding-block: 10px;
  }
  body:has(#v-overview.on) > header.top .ec-page-title {
    margin: 0;
    white-space: nowrap;
  }
  body:has(#v-overview.on) > header.top .ec-meta-line {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    margin: 0;
  }

  /* Consent retains its original position in the document flow on entry. */
  body[data-ec-page]:has(#v-overview.on) #pa-privacy[data-pa-entry="true"] {
    width: auto;
    margin: 0 var(--qa-gutter) 0 calc(var(--qa-rail) + var(--qa-gutter));
  }
  body[data-ec-page]:has(#v-overview.on) #pa-privacy #pa-privacy-panel:not([hidden]) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 16px;
    width: min(610px, 100vw - 48px);
    padding: 0 12px 0 16px;
    border: 1px solid var(--hair);
    background: var(--wash);
    color: var(--ink);
  }
  body[data-ec-page]:has(#v-overview.on) #pa-privacy[data-pa-entry="true"] #pa-privacy-panel:not([hidden]) {
    width: 100%;
  }
  body[data-ec-page]:has(#v-overview.on) #pa-privacy h2 { margin: 0; }
  body[data-ec-page]:has(#v-overview.on) #pa-privacy .pa-choice-buttons {
    max-width: none;
    gap: 3px;
    border: 0;
  }
  body[data-ec-page]:has(#v-overview.on) #pa-privacy .pa-choice-buttons button {
    flex: 0 0 auto;
    padding-inline: 12px;
  }
  body[data-ec-page]:has(#v-overview.on) #pa-details { grid-column: 1 / -1; }
  body[data-ec-page]:has(#v-overview.on) #pa-details p { max-width: 65ch; }

}

/* Shared editorial structure: desktop and phones; tablet keeps its existing layout. */
@media (min-width: 0px) {
  #v-overview > :is(.ec-overview-legacy, .qd-take[data-take="overview"]) { display: none; }
  #v-overview .ec-overview-desktop { display: block; }

  .ec-opening {
    display: grid;
    grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
    gap: clamp(26px, 3vw, 48px);
    align-items: center;
    padding-block: 4px 0;
  }
  .ec-opening-copy { min-width: 0; }
  .ec-overview-kicker {
    margin: 0 0 13px;
    color: var(--acc-ink);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.095em;
    text-transform: uppercase;
  }
  .ec-overview-kicker span { padding-inline: 4px; }
  .ec-opening-title {
    max-width: none;
    margin: 0 0 18px;
    color: var(--ink);
    font: 500 clamp(34px, 2.82vw, 46px)/1.08 var(--qd-serif);
    letter-spacing: -0.035em;
    text-wrap: balance;
  }
  .ec-opening-numbers {
    margin: 0 0 5px;
    font-size: clamp(15px, 1.37vw, 20px);
    line-height: 1.4;
    font-variant-numeric: tabular-nums;
  }
  .ec-opening-numbers strong { font-weight: 720; }
  .ec-opening-context {
    max-width: 65ch;
    margin: 0 0 13px;
    color: var(--ink2);
    font-size: 14px;
    line-height: 1.55;
  }
  .ec-opening-source {
    margin: 0 0 4px;
    color: var(--muted);
    font-size: 13px;
  }
  .ec-limits-link {
    display: inline-block;
    color: var(--acc-ink);
    font-size: 13px;
    font-weight: 650;
    text-underline-offset: 3px;
  }
  .ec-overview-dates {
    display: grid;
    gap: 4px;
    margin: 22px 0 0;
    padding-top: 13px;
    border-top: 1px solid var(--hair);
    font-size: 12px;
    line-height: 1.45;
    color: var(--muted);
  }
  .ec-overview-dates div { display: grid; grid-template-columns: 116px 1fr; gap: 8px; }
  .ec-overview-dates dt { color: var(--ink2); font-weight: 650; }
  .ec-overview-dates dd { margin: 0; }

  .ec-opening-chart {
    min-width: 0;
    margin: 0;
    padding: 17px 17px 14px;
    border: 1px solid var(--hair);
    border-radius: 4px;
    background: var(--surface);
  }
  .ec-opening-chart > figcaption {
    margin: 0 0 2px;
    color: var(--ink);
    font-size: 16px;
    font-weight: 700;
  }
  .ec-chart-period { margin: 0; color: var(--muted); font-size: 12px; }
  .ec-chart-key {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 18px;
    margin: 13px 0 2px;
    padding: 0;
    color: var(--ink2);
    font-size: 11px;
    list-style: none;
  }
  .ec-chart-key li { display: flex; align-items: center; gap: 6px; }
  .ec-chart-key span { width: 19px; border-top: 2px solid var(--s1); }
  .ec-chart-key .ec-key-income { border-top: 2px dashed var(--ink2); }
  .ec-opening-chart svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
    font: 12px system-ui, sans-serif;
  }
  .ec-opening-chart > .chart-credit {
    margin: 3px 0 10px;
    color: var(--muted);
    font-size: 11px;
  }
  .ec-chart-grid { stroke: var(--grid); }
  .ec-chart-axis { fill: var(--muted); }
  .ec-chart-line-spending { color: var(--s1); }
  .ec-chart-line-income { color: var(--ink2); }
  .ec-chart-endpoint { font-weight: 700; fill: currentColor; }
  .ec-saving-callout {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 2px;
    padding: 9px 12px;
    border-left: 3px solid var(--acc);
    background: var(--acc-wash);
    color: var(--ink);
  }
  .ec-saving-callout strong { font: 500 29px/1 var(--qd-serif); font-variant-numeric: lining-nums; }
  .ec-saving-callout b, .ec-saving-callout span { display: block; font-size: 12px; line-height: 1.45; }
  .ec-saving-callout span { color: var(--ink2); }

  .ec-overview-readings { margin-top: 27px; }
  .ec-overview-section-title {
    max-width: none;
    margin: 0 0 11px;
    color: var(--ink);
    font: 500 23px/1.18 var(--qd-serif);
    letter-spacing: -0.018em;
  }
  .ec-overview-tiles, .ec-overview-routes {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .ec-overview-tiles {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border-block: 1px solid var(--hair);
  }
  .ec-overview-tiles li {
    display: flex;
    flex-direction: column;
    align-items: start;
    min-width: 0;
    padding: 12px 12px 11px;
    scroll-margin-block-start: 10px;
  }
  .ec-overview-tiles li:first-child { padding-inline-start: 0; }
  .ec-overview-tiles li + li { border-inline-start: 1px solid var(--hair); }
  .ec-overview-tiles h3 {
    max-width: none;
    margin: 0;
    color: var(--ink2);
    font: 650 12px/1.35 system-ui, sans-serif;
    letter-spacing: -0.015em;
  }
  .ec-overview-tiles strong {
    margin: 4px 0 3px;
    color: var(--ink);
    font: 600 29px/1.1 system-ui, sans-serif;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.045em;
  }
  .ec-overview-tiles p { margin: 0; color: var(--ink2); font-size: 12px; line-height: 1.4; }
  .ec-overview-tiles small { margin-top: auto; padding-top: 7px; color: var(--muted); font-size: 11px; line-height: 1.35; }

  .ec-overview-explore { margin-top: 23px; }
  .ec-overview-routes { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .ec-overview-routes a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3px 8px;
    height: 100%;
    padding: 11px 13px;
    border: 1px solid var(--hair);
    border-radius: 3px;
    background: var(--surface);
    color: var(--acc-ink);
    text-decoration: none;
  }
  .ec-overview-routes a:hover, .ec-overview-routes a:focus-visible {
    border-color: var(--acc);
    background: var(--acc-wash);
  }
  .ec-overview-routes strong { font-size: 14px; }
  .ec-overview-routes p { grid-column: 1 / -1; margin: 0; color: var(--ink2); font-size: 12px; }

  .ec-overview-market-pending { margin-top: 28px; }
  .ec-static-markets { padding-block: 12px 28px; border-bottom: 1px solid var(--hair); }
  .ec-static-markets > p, .ec-static-markets figcaption { max-width: 65ch; }
  .ec-static-markets figure { margin: 16px 0 24px; }
  .ec-static-markets img { display: block; width: min(100%, 608px); height: auto; }
  .ec-static-markets figcaption { margin-top: 7px; color: var(--muted); font-size: 12px; }
  .ec-static-markets table, .ec-overview-number-table table { width: 100%; }
  .ec-static-markets caption, .ec-overview-number-table caption { padding-block: 8px; text-align: left; }

  .ec-overview-footer {
    margin-top: 32px;
    padding: 23px 0 0;
    border-top: 1px solid var(--ink2);
  }
  .ec-overview-footer section, .ec-overview-footer nav { margin-top: 22px; }
  .ec-overview-footer h3 { max-width: none; margin: 0 0 8px; font-size: 16px; }
  #ec-overview-limits { scroll-margin-top: 8px; }
  #ec-overview-limits :is(p, li) { max-width: 62ch; }
  #ec-overview-limits p { margin: 0 0 10px; }
  #ec-overview-limits li { margin-bottom: 6px; }
  #ec-overview-limits details { max-width: 62ch; margin-top: 8px; }
  #ec-overview-limits summary { cursor: pointer; color: var(--ink2); font-weight: 650; }
  .ec-overview-footer :is(a, button) { color: var(--acc-ink); }
  .ec-overview-footer-downloads .full-dashboard-context,
  .ec-overview-footer-links .ec-seo-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 16px;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .ec-overview-footer-downloads .full-dashboard-context > span { display: none; }
  .ec-overview-footer-downloads .full-dashboard-context a {
    color: var(--acc-ink);
    font-size: 13px;
  }
  #ec-overview-limits #caveats {
    margin: 10px 0 12px;
    padding: 0;
    border: 0;
    font-size: inherit;
  }
  #ec-overview-limits #caveats summary { color: var(--ink2); }
  #ec-overview-evidence-exports:empty { display: none; }
  #ec-overview-evidence-exports .qd-overview-reuse { margin: 12px 0 0; }
}

/* ---- Revision 2: desktop Overview fixes. Everything below applies at 1280px and wider. ---- */
@media (min-width: 1280px) {
  /* Byline placeholder */
  .ec-opening-byline { margin: 9px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
  .ec-opening-byline a { color: var(--acc-ink); text-underline-offset: 3px; }

  /* Crossing label on the opening chart */
  .ec-chart-cross line { stroke: var(--ink2); stroke-width: 1; }
  .ec-chart-cross circle { fill: none; stroke: var(--ink); stroke-width: 1.3; }
  .ec-chart-cross text { fill: var(--ink2); font-size: 11px; }
  .ec-chart-cross .ec-chart-cross-lead { fill: var(--ink); font-weight: 700; }

  /* Tile labels stay on one line so the five figures share a baseline */
  .ec-overview-tiles h3 { white-space: nowrap; }
  .ec-overview-tiles li:last-child { padding-inline-end: 0; }
  .ec-saving-callout span { text-wrap: balance; }

  /* Explicit disclosure state; state edits open the cards regardless of selection. */
  #v-overview .overview-markets.om-cards-collapsed :is(.om-comparison-head, .om-scale-note, #om-comparison, #om-result) { display: none; }
  #v-overview .overview-markets .om-summary-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    margin: 16px 0 0;
  }
  #v-overview #om-toggle-cards { display: inline-flex; flex: 0 0 auto; min-height: 44px; }
  #v-overview .overview-markets.om-cards-collapsed .om-summary-row {
    margin: 16px 0 0;
    padding: 12px 16px;
    border: 1px solid var(--hair);
    border-left: 3px solid var(--acc);
    border-radius: 3px;
    background: var(--surface);
    color: var(--ink);
    font-size: 13px;
    line-height: 1.55;
  }
  #v-overview .overview-markets.om-cards-collapsed #om-summary {
    display: block;
    flex: 1 1 55ch;
    max-width: 75ch;
    margin: 0;
  }
  html.ec-exports-merged #v-overview .overview-markets .om-actions { display: none; }

  /* One footer block: Downloads and exports */
  .ec-overview-footer-downloads {
    --ec-export-label: 200px;
    display: grid;
    grid-template-columns: var(--ec-export-label) minmax(0, 1fr);
    gap: 10px 0;
    align-items: center;
  }
  .ec-overview-footer-downloads > h3 { grid-column: 1 / -1; margin-bottom: 0; }
  .ec-overview-footer-downloads > :is(#ec-overview-evidence-exports, .ec-export-group) { grid-column: 1 / -1; }
  .ec-export-group[hidden] { display: none; }
  .ec-overview-footer-downloads .full-dashboard-context,
  .ec-overview-footer-downloads .ec-export-group,
  #ec-overview-evidence-exports .qd-overview-reuse {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
  }
  .ec-overview-footer-downloads .ec-export-label,
  .ec-overview-footer-downloads .ec-export-group > span,
  #ec-overview-evidence-exports .qd-overview-reuse > span {
    flex: 0 0 calc(var(--ec-export-label) - 8px);
    margin: 0;
    color: var(--ink2);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.4;
  }
  .ec-overview-footer-downloads .full-dashboard-context a,
  .ec-overview-footer-downloads .full-dashboard-context button,
  .ec-overview-footer-downloads .ec-export-group button,
  #ec-overview-evidence-exports .qd-overview-reuse button {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    margin: 0 !important;
    padding: 0 13px;
    border: 1px solid var(--hair);
    border-radius: 3px;
    background: var(--surface);
    color: var(--acc-ink);
    font: 500 13px/1.3 system-ui, sans-serif;
    text-decoration: none;
    cursor: pointer;
  }
  .ec-overview-footer-downloads :is(a, button):is(:hover, :focus-visible) { border-color: var(--acc); background: var(--acc-wash); }
  .ec-overview-footer-downloads button:disabled { cursor: default; opacity: .45; }

  /* Footer sources: reading column plus a side column for the small notes */
  #ec-overview-limits {
    display: grid;
    grid-template-columns: minmax(0, 56ch) minmax(0, 44ch);
    grid-template-rows: auto auto auto auto auto auto 1fr;
    column-gap: clamp(36px, 4.5vw, 72px);
    align-items: start;
  }
  #ec-overview-limits > h3 { grid-column: 1 / -1; grid-row: 1; }
  #ec-overview-limits > p:first-of-type { grid-column: 1; grid-row: 2; margin-bottom: 0; }
  #ec-overview-limits > #caveats { grid-column: 1; grid-row: 3 / span 5; }
  #ec-overview-limits > p:not(:first-of-type) {
    grid-column: 2;
    grid-row: 3;
    max-width: none;
    margin: 14px 0 8px;
    padding-left: 16px;
    border-left: 1px solid var(--hair);
    color: var(--ink2);
    font-size: 13px;
    line-height: 1.55;
  }
  #ec-overview-limits > details { grid-column: 2; max-width: none; margin-top: 0; padding: 5px 0 5px 16px; border-left: 1px solid var(--hair); font-size: 13px; }
  #ec-overview-limits > details:nth-of-type(1) { grid-row: 4; }
  #ec-overview-limits > details:nth-of-type(2) { grid-row: 5; }
  #ec-overview-limits > details:nth-of-type(3) { grid-row: 6; }
  #ec-overview-limits > details :is(p, li) { max-width: none; }

  /* Story: short chapter headings fit on one line */
  #v-story .qd-story-chapters .qd-evidence-chapter > .h2 { max-width: min(100%, 60ch); }
}

@media (min-width: 1440px) {
  #v-overview .overview-markets .om-comparison { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}

/* Short desktop headings use the space their section actually provides. */
@media (min-width: 1280px) {
  main#main .view :is(h2.h2, h3.h3, .qd-task-paths h3, .qd-finding h2),
  main#main #v-story .qd-evidence-chapter > .h2 {
    max-width: none;
    text-wrap: wrap;
  }
  main#main .state-rank-heading > div { max-width: none; flex: 1; min-width: 0; }
  main#main .om-heading > div { flex: 1; min-width: 0; }
}

/* Phone Overview: one reading sequence with evidence before controls. */
@media (max-width: 760px) {
  body:has(#v-overview.on) > header.top .hwrap {
    grid-template-areas: "brand tools" "nav nav";
    padding: 8px 16px 0;
    gap: 0 10px;
  }
  body:has(#v-overview.on) > header.top :is(.ec-page-title, .ec-meta-line) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    margin: 0;
  }
  /* A loading error and retry must remain available if enhancement fails. */
  body:has(#v-overview.on) > header.top .hwrap:has(#ec-boot-status .tbtn) {
    grid-template-areas: "brand tools" "meta meta" "nav nav";
  }
  body:has(#v-overview.on) > header.top .ec-meta-line:has(#ec-boot-status .tbtn) {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
    white-space: normal;
    grid-column: 1 / -1;
    margin-block: 8px;
  }
  body:has(#v-overview.on) main#main { padding-inline: 20px; }
  #v-overview .ec-overview-intro { min-width: 0; }
  #v-overview .ec-opening { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 8px 0 0; }
  #v-overview .ec-opening-copy { display: contents; }
  .ec-overview-kicker { order: 1; margin-bottom: 12px; font-size: 10px; letter-spacing: .07em; }
  .ec-opening-title { order: 2; font-size: clamp(31px, 8.3vw, 42px); line-height: 1.1; margin-bottom: 16px; text-wrap: pretty; }
  .ec-opening-numbers { order: 3; max-width: 32ch; font-size: 18px; line-height: 1.45; margin-bottom: 7px; }
  .ec-opening-numbers strong { color: var(--acc-ink); font-weight: 750; }
  .ec-opening-context { order: 4; font-size: 13px; line-height: 1.5; margin-bottom: 10px; }
  .ec-opening-source { order: 5; font-size: 11px; margin-bottom: 18px; }
  #v-overview .ec-opening-chart { order: 6; padding: 14px 12px 12px; border-radius: 6px; }
  .ec-opening-chart > figcaption { font-size: 15px; line-height: 1.4; }
  .ec-chart-period { font-size: 11px; line-height: 1.5; margin-top: 3px; }
  .ec-chart-key { gap: 7px 14px; margin: 12px 0 10px; font-size: 11px; }
  .ec-opening-chart svg { font-size: 17px; }
  .ec-opening-chart .ec-chart-endpoint { font-size: 16px; }
  .ec-opening-chart .ec-chart-axis:is([x="148.73"], [x="376.18"]),
  .ec-opening-chart .ec-chart-cross text { display: none; }
  .ec-chart-cross line, .ec-chart-cross circle { stroke: var(--ink2); fill: none; }
  .ec-chart-mobile-note { display: block; color: var(--ink2); margin: 8px 0; font-size: 12px; line-height: 1.45; }
  .ec-opening-chart > .chart-credit { font-size: 10px; line-height: 1.5; margin: 6px 0 12px; }
  .ec-saving-callout { padding: 11px; gap: 12px; align-items: flex-start; }
  .ec-saving-callout strong { font-size: 32px; white-space: nowrap; }
  .ec-saving-callout b { font-size: 12px; }
  .ec-saving-callout span { font-size: 11px; line-height: 1.5; margin-top: 2px; }
  .ec-limits-link { order: 7; width: fit-content; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; margin-top: 4px; }
  .ec-overview-dates { order: 8; margin: 0; padding-top: 11px; font-size: 11px; gap: 7px; }
  .ec-overview-dates div { grid-template-columns: 104px minmax(0, 1fr); gap: 10px; }
  .ec-opening-byline { order: 9; margin: 13px 0 0; font-size: 12px; line-height: 1.6; color: var(--muted); }
  .ec-opening-byline a { color: var(--acc-ink); text-underline-offset: 3px; }

  .ec-overview-readings { margin-top: 30px; }
  .ec-overview-section-title { font-size: 25px; line-height: 1.2; margin-bottom: 14px; }
  .ec-overview-tiles { grid-template-columns: minmax(0, 1fr); }
  .ec-overview-tiles li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 18px;
    padding: 15px 0;
    align-items: start;
  }
  .ec-overview-tiles li + li { border-inline-start: 0; border-top: 1px solid var(--hair); }
  .ec-overview-tiles h3 { grid-column: 1; font-size: 14px; line-height: 1.35; letter-spacing: -.01em; }
  .ec-overview-tiles strong { grid-column: 2; grid-row: 1 / span 3; margin: 0; font-size: 30px; line-height: 1.1; }
  .ec-overview-tiles p { grid-column: 1; font-size: 12px; line-height: 1.5; margin-top: 3px; }
  .ec-overview-tiles small { grid-column: 1 / -1; padding-top: 7px; font-size: 11px; line-height: 1.45; }
  .ec-overview-explore { margin-top: 28px; }
  .ec-overview-routes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ec-overview-routes a { padding: 14px 12px; gap: 5px 8px; border-radius: 5px; }
  .ec-overview-routes strong { font-size: 14px; line-height: 1.35; }
  .ec-overview-routes p { font-size: 12px; line-height: 1.5; }

  html.ec-js #v-overview .overview-markets { margin-top: 32px; padding-top: 24px; }
  #v-overview .om-heading .h2 { max-width: none; font-size: 29px; line-height: 1.15; }
  #v-overview .om-heading p:not(.kick) { font-size: 14px; }
  #v-overview .om-map-panel { grid-template-columns: minmax(0, 1fr); border-radius: 6px; }
  #v-overview .om-map-area { padding: 12px; }
  #v-overview .om-map-area #om-map { min-height: 210px; aspect-ratio: 1.45; }
  #v-overview .om-map-note { font-size: 10px; line-height: 1.6; }
  #v-overview .om-picker { padding: 18px 16px; }
  #v-overview .om-picker-heading { margin-bottom: 8px; }
  #v-overview #om-example { margin-bottom: 14px; }
  #v-overview #om-selection { flex-direction: row; flex-wrap: wrap; gap: 7px; margin: 14px 0 8px; }
  #v-overview .om-chip { width: auto; max-width: 100%; gap: 8px; font-size: 12px; }
  #v-overview .om-picker #om-status { min-height: 0; font-size: 11px; }
  #v-overview .om-picker-foot { font-size: 11px; margin-top: 12px; padding-top: 12px; }
  #v-overview .om-comparison { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  #v-overview .om-comparison-head h3 { max-width: none; font-size: 24px; }
  #v-overview .om-card { padding: 20px 16px 0; }
  #v-overview .om-card-heading > h3 { max-width: none; font-size: 27px; }
  #v-overview .om-summary-row { display: flex; flex-direction: column; align-items: stretch; gap: 12px; margin: 16px 0; }
  #v-overview #om-toggle-cards { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: 10px 14px; font-size: 13px; border-color: var(--acc); color: var(--acc-ink); background: var(--acc-wash); }
  #v-overview .om-cards-collapsed :is(.om-comparison-head, .om-scale-note, #om-comparison, #om-result) { display: none; }
  #v-overview .om-cards-collapsed #om-summary { display: block; margin: 0; font-size: 13px; line-height: 1.6; max-width: none; }
  html.ec-exports-merged #v-overview .overview-markets .om-actions { display: none; }

  .ec-overview-footer { margin-top: 28px; padding-top: 24px; font-size: 14px; line-height: 1.65; }
  .ec-overview-footer h2 { font-size: 26px; max-width: none; }
  .ec-overview-footer h3 { font-size: 17px; }
  .ec-overview-footer section, .ec-overview-footer nav { margin-top: 26px; }
  .ec-overview-footer summary { padding-block: 10px; }
  .ec-overview-footer-downloads .full-dashboard-context,
  .ec-overview-footer-downloads .ec-export-group,
  #ec-overview-evidence-exports .qd-overview-reuse {
    display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; border: 0;
  }
  .ec-overview-footer-downloads .ec-export-group[hidden] { display: none; }
  .ec-overview-footer-downloads .ec-export-label,
  .ec-overview-footer-downloads .ec-export-group > span,
  #ec-overview-evidence-exports .qd-overview-reuse > span { flex-basis: 100%; font-size: 12px; font-weight: 650; color: var(--ink2); }
  .ec-overview-footer-downloads :is(a, button) { display: inline-flex; align-items: center; min-height: 44px; margin: 0 !important; padding: 8px 11px; border: 1px solid var(--hair); border-radius: 4px; font-size: 12px; line-height: 1.4; background: var(--surface); text-decoration: none; }
  .ec-overview-number-table { overflow-x: auto; }
  .ec-overview-number-table table { min-width: 0; font-size: 12px; }
  .ec-static-markets { overflow-x: auto; }
  .ec-static-markets img { max-width: 100%; }
  .ec-overview-footer-links .ec-seo-nav { display: grid; gap: 0; }
  .ec-overview-footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* State comparison: shared emphasis and an inline reading view. */
#v-overview .om-focus-controls {
  margin: 0 0 20px;
  padding: 16px;
  border: 1px solid var(--hair);
  border-radius: 5px;
  background: var(--wash);
}
#v-overview .om-focus-controls[hidden] { display: none; }
#v-overview .om-focus-controls h4 { margin: 0 0 4px; font: 650 14px/1.4 system-ui, sans-serif; color: var(--ink); }
#v-overview .om-focus-controls p:not(.sr) { margin: 0; max-width: 70ch; font-size: 12px; line-height: 1.6; color: var(--ink2); }
#v-overview .om-focus-options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
#v-overview .om-focus-options button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--axis);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink2);
  font: 500 12px/1.4 system-ui, sans-serif;
  text-align: left;
}
#v-overview .om-focus-options button i { width: 8px; height: 8px; border-radius: 50%; background: var(--om-color); flex: 0 0 8px; }
#v-overview .om-focus-options button[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); color: var(--ink); font-weight: 700; }
#v-overview .om-focus-options button:hover { border-color: var(--ink2); }
#v-overview .om-card-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin: 0 0 16px; }
#v-overview .om-expand {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--hair);
  border-radius: 4px;
  color: var(--acc-ink);
  background: var(--surface);
  font: 600 12px/1.4 system-ui, sans-serif;
}
#v-overview .om-expand:hover { background: var(--acc-wash); border-color: var(--acc); }
#v-overview .om-expand span { font-size: 18px; line-height: 1; }
#v-overview .om-reading-note { display: none; }
#v-overview .om-focus-ring { display: none; }
#v-overview .om-plot-row.is-focused .om-focus-ring { display: block; }
#v-overview .om-plot-row.is-focused text { font-weight: 750; fill: var(--ink); }
#v-overview .om-plot-row.is-context .om-point { opacity: .4; }
#v-overview .overview-markets .om-card.is-expanded {
  grid-column: 1 / -1;
  padding: 24px 24px 0;
  border-color: var(--acc);
  border-top-width: 3px;
  scroll-margin-top: calc(var(--qd-header-height, 85px) + 20px);
}
#v-overview .om-card.is-expanded .om-card-heading > h3 { font-size: clamp(28px, 2.3vw, 36px); max-width: none; }
#v-overview .om-card.is-expanded .om-card-heading > p:not(.kick) { font-size: 14px; line-height: 1.5; }
#v-overview .om-card.is-expanded .om-card-heading > p span { font-size: 12px; margin-top: 3px; }
#v-overview .om-card.is-expanded .om-reading-note { display: block; max-width: 70ch; margin: 0 0 20px; color: var(--ink2); font-size: 13px; line-height: 1.6; }
#v-overview .om-card.is-expanded .om-benchmark { font-size: 13px; margin: 12px 0 20px; }
#v-overview .om-reading-focus { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--ink2); font-size: 12px; }
#v-overview .om-reading-focus select { max-width: 100%; min-height: 44px; padding: 8px 30px 8px 10px; border: 1px solid var(--axis); border-radius: 4px; color: var(--ink); background: var(--surface); font: inherit; }
@media (min-width: 0px) {
  #v-overview .om-cards-collapsed .om-focus-controls { display: none; }
}
@media (max-width: 760px) {
  #v-overview .om-focus-controls { padding: 14px; }
  #v-overview .om-focus-options { gap: 7px; }
  #v-overview .om-focus-options button { padding-inline: 10px; }
  #v-overview .overview-markets .om-card.is-expanded { padding: 20px 14px 0; }
  #v-overview .om-card.is-expanded .om-card-actions { align-items: stretch; }
  #v-overview .om-card.is-expanded .om-expand { width: 100%; }
  #v-overview .om-reading-focus { width: 100%; }
  #v-overview .om-reading-focus select { flex: 1; min-width: 0; }
}
@media print {
  #v-overview .om-focus-controls,
  #v-overview .om-card-actions,
  #v-overview .om-card.is-expanded .om-reading-note { display: none; }
}

/* Overview finishing pass: readable evidence, quiet surfaces and consistent controls.
   Opening dimensions, chart geometry, data colors and the other views are preserved. */
#v-overview :is(.ec-opening-chart, .om-map-panel, .om-card) {
  border-color: var(--grid);
  border-radius: 6px;
}
#v-overview .ec-overview-tiles,
#v-overview .ec-overview-tiles li + li { border-color: var(--grid); }
#v-overview .ec-overview-routes a {
  border-color: var(--grid);
  border-radius: 6px;
  background: var(--wash);
}
#v-overview .ec-overview-routes a:is(:hover, :focus-visible) {
  border-color: var(--acc);
  background: var(--acc-wash);
}

/* Meaning and provenance stay readable when the evidence is opened. */
#v-overview :is(.om-map-note, .om-picker-foot, .om-axis-note, .om-footnote) {
  max-width: 75ch;
  color: var(--ink2);
  font-size: 12px;
  line-height: 1.6;
}
#v-overview .om-map-note { margin-top: 12px; }
#v-overview .om-picker :is(#om-example, #om-status) { font-size: 12px; line-height: 1.6; }
#v-overview .om-picker > label,
#v-overview .om-comparison-head label { color: var(--ink2); font-size: 12px; }
#v-overview .om-picker-heading h3 { font-size: 16px; }
#v-overview .om-picker-heading { align-items: center; margin-bottom: 16px; }
#v-overview .om-picker-foot { margin-top: 16px; padding-top: 16px; border-color: var(--grid); }
#v-overview .om-result { color: var(--ink2); font-size: 13px; line-height: 1.65; }
#v-overview .om-comparison-head { gap: 20px; margin-block: 32px 16px; }
#v-overview .om-comparison-head .kick { margin-bottom: 8px; font-size: 11px; line-height: 1.5; }
#v-overview .om-comparison-head h3 { max-width: none; line-height: 1.3; }
#v-overview .om-summary { color: var(--ink2); font-size: 13px; line-height: 1.65; }
#v-overview .om-scale-note { max-width: 75ch; margin: 12px 0 24px; color: var(--ink2); font-size: 13px; line-height: 1.65; }
#v-overview .om-card-heading > .kick { margin-bottom: 8px; color: var(--ink2); font-size: 11px; line-height: 1.5; letter-spacing: .04em; }
#v-overview .om-card-heading > h3 { max-width: none; margin-bottom: 12px; }
#v-overview .om-card-heading > p:not(.kick) { margin-bottom: 16px; color: var(--ink2); font-size: 13px; line-height: 1.55; font-variant-numeric: tabular-nums; }
#v-overview .om-card-heading > p span { margin-top: 4px; color: var(--ink2); font-size: 12px; line-height: 1.5; }
#v-overview .om-card-actions { gap: 12px; margin-bottom: 16px; }
#v-overview .om-benchmark { margin-block: 12px 20px; color: var(--ink2); font-size: 12px; line-height: 1.6; }
#v-overview .om-total-tag { padding: 2px 5px; font-size: 11px; }
#v-overview .om-axis-note { margin-block: 8px 12px; }
#v-overview .om-evidence { border-color: var(--grid); }
#v-overview .om-evidence > summary { padding-block: 16px; color: var(--acc-ink); font-size: 13px; line-height: 1.5; font-weight: 600; }
#v-overview .om-evidence[open] > summary { color: var(--ink); }
#v-overview .om-evidence-body { padding-bottom: 20px; }
#v-overview .om-evidence-body :is(p, li) { max-width: 70ch; }
#v-overview .om-evidence-body ul { margin-block: 16px; padding-left: 18px; font-size: 13px; line-height: 1.65; }
#v-overview .om-evidence-body li + li { margin-top: 8px; }
#v-overview .om-evidence-body .qd-source { margin-top: 12px; color: var(--ink2); font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
#v-overview .om-table-wrap table { font-size: 12px; line-height: 1.5; font-variant-numeric: tabular-nums; }
#v-overview .om-table-wrap :is(th, td) { padding: 10px 8px; border-color: var(--grid); }
#v-overview .om-table-wrap thead { background: var(--wash); }
#v-overview .om-table-wrap tbody th { color: var(--ink); font-weight: 600; }

/* Shared controls: a strong disclosure action and quiet secondary actions. */
#v-overview .overview-markets :is(button, select),
#v-overview .ec-overview-footer-downloads :is(a, button) {
  min-height: 44px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.4;
}
#v-overview .overview-markets button:not(:disabled) { cursor: pointer; }
#v-overview .overview-markets :is(select, .om-expand, .om-focus-options button) { border-color: var(--axis); }
#v-overview .overview-markets .om-add-row button { padding-inline: 14px; border-color: var(--axis); }
#v-overview .overview-markets .om-chip { padding: 10px 12px; }
#v-overview .overview-markets .om-picker-heading button { padding-inline: 8px; color: var(--ink2); }
#v-overview #om-toggle-cards {
  justify-content: center;
  align-items: center;
  padding: 10px 16px;
  border: 1px solid var(--acc);
  background: var(--acc);
  color: var(--surface);
  font-weight: 650;
}
#v-overview .om-focus-controls { padding: 16px; border-color: transparent; border-radius: 6px; background: var(--wash); }
#v-overview .om-focus-controls p:not(.sr) { color: var(--ink2); font-size: 13px; }
#v-overview .overview-markets .om-focus-options button[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--surface);
  color: var(--ink);
}
#v-overview .om-reading-focus { gap: 10px; font-size: 13px; }
#v-overview .ec-overview-footer { border-top-color: var(--hair); }
#v-overview .ec-overview-footer :is(h2, h3) { max-width: none; }
#v-overview .ec-overview-footer-downloads :is(a, button) { padding-inline: 13px; }
#v-overview .ec-overview-footer :is(a, summary) { text-underline-offset: 3px; }
#v-overview :is(.ec-overview-routes a, .overview-markets button, .overview-markets select, .overview-markets summary, .om-table-wrap, .ec-overview-footer a, .ec-overview-footer button, .ec-overview-footer summary):focus-visible {
  outline: 2px solid var(--acc-ink);
  outline-offset: 3px;
}
@media (hover: hover) {
  #v-overview .overview-markets :is(.om-expand, .om-focus-options button, .om-add-row button):not(:disabled):hover {
    border-color: var(--acc);
    background: var(--acc-wash);
  }
  #v-overview #om-toggle-cards:hover { box-shadow: inset 0 0 0 1px var(--surface); }
  #v-overview .om-evidence > summary:hover { text-decoration: underline; text-underline-offset: 3px; }
}
