/* Country report presentation. Scores and source values are never interpolated. */
.index-page .country-report-reading-progress { position: absolute; inset: auto 0 0; height: 3px; overflow: hidden; pointer-events: none; background: transparent; }
.country-report-reading-progress > i { display: block; height: 100%; background: var(--brand-blue); transform: scaleX(var(--report-progress, 0)); transform-origin: left; }
@media (min-width: 981px) {
  .index-page .country-report-nav-group { padding-block: 5px; }
  .index-page .country-report-nav-group > div { display: none; }
  .index-page .country-report-nav-group:has(.country-report-nav-primary[aria-current="page"]) > div,
  .index-page .country-report-nav-group:focus-within > div { display: block; }
  .index-page .country-report-nav-primary { padding-block: 13px; }
  .index-page .country-report-nav-primary[aria-current="page"] { border-radius: 5px; background: transparent; }
}
.index-page .uk-report-health-grid > a { gap: 18px; grid-template-rows: auto auto; padding: 23px; border: 1px solid #dedcd9; background: #fcfbf9; box-shadow: 0 2px 7px #1c253505; }
.index-page .uk-report-health-grid > a:hover { border-color: #929bd1; background: #f6f7fd; box-shadow: 0 8px 24px #2434570a; }
.index-page .uk-report-health-domain { font-size: 19px; }
.index-page .uk-report-assessment-drivers { font-size: 12px; line-height: 1.5; gap: 6px; }
.index-page .uk-report-assessment-drivers > strong { font-size: 12px; color: #5e5652; }
.index-page .uk-report-health-bars { gap: 22px; }
.index-page .uk-report-health-measure-heading > strong { font-size: 24px; }
.editorial-report .uk-report-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 24px; align-items: center; isolation: isolate; overflow: hidden; padding: 38px; border-radius: 12px; background: var(--brand-blue); background-image: radial-gradient(ellipse at 92% 20%, #546fe955, transparent 60%); margin: 0 0 38px; color: #fff; }
.editorial-report .uk-report-hero::after { content: ""; position: absolute; width: 390px; height: 390px; right: -90px; top: -50px; border-radius: 50%; border: 1px solid #ffffff12; box-shadow: 0 0 0 70px #ffffff04, 0 0 0 140px #ffffff03; z-index: -1; pointer-events: none; }
.editorial-report .uk-report-hero .uk-report-kicker { color: #c8d3ff; }
.editorial-report .uk-report-hero h1 { color: #fff; font-size: clamp(38px, 4.4vw, 60px); }
.editorial-report .uk-report-hero .uk-report-standfirst { color: #f3f5ff; font-size: clamp(23px, 2.35vw, 30px); max-width: 32ch; line-height: 1.3; }
.editorial-report .uk-report-hero .uk-report-positioning { margin: 22px 0 0; max-width: 60ch; }
.editorial-report .uk-report-hero .uk-report-positioning p { font-size: 15px; line-height: 1.6; color: #dfe5ff; margin: 0; }
.uk-report-contour { width: 100%; height: 280px; object-fit: contain; opacity: .85; filter: drop-shadow(0 16px 30px #17257255); }
.editorial-report .uk-report-chapter-heading { position: relative; padding: 10px 84px 0 0; max-width: 100%; }
.editorial-report .uk-report-chapter-heading h2 { font-size: clamp(29px, 3.3vw, 39px); letter-spacing: -.025em; }
.editorial-report .uk-report-chapter-heading .uk-report-deck { font-size: clamp(21px, 2.2vw, 27px); font-weight: 500; max-width: 48ch; line-height: 1.4; }
.editorial-report .uk-report-research-note { border-top-width: 2px; border-radius: 0 0 8px 8px; }
.editorial-report .uk-report-policy { border-radius: 0 0 9px 9px; }
.editorial-report .uk-report-value-chain ol { gap: 0; }
.editorial-report .uk-report-value-chain li { position: relative; border-top: 2px solid #c6ccd8; padding: 18px 22px 0 0; }
.editorial-report .uk-report-value-chain li::after { content: ""; position: absolute; left: 0; top: -5px; width: 8px; height: 8px; background: var(--brand-blue); border-radius: 50%; }
.editorial-report .uk-report-value-chain li::before { color: var(--brand-blue); }
.editorial-report .uk-report-routes article { position: relative; }
.editorial-report .uk-report-routes article > span { display: inline-grid; place-items: center; background: #eee7df; width: 30px; height: 30px; border-radius: 50%; }
.editorial-report .uk-report-disclosure-icon { transition: transform 180ms ease; }
.editorial-report .uk-report-explorer[open] > summary .uk-report-explorer-action { color: #565962; }
.editorial-report .uk-report-explorer > summary { border: 1px solid #d9dce5; border-left: 3px solid var(--uk-explorer-accent); border-radius: 6px; padding: 21px; }
.editorial-report .uk-report-explorer > summary .uk-report-disclosure-copy > strong { font-size: 20px; }
@media (min-width: 1100px) {
  .index-page .uk-report-health-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .index-page .uk-report-health-grid > .country-health-card:last-child { grid-column: auto; }
}
@media (max-width: 760px) {
  .editorial-report .uk-report-hero { grid-template-columns: minmax(0, 1fr); padding: 28px; }
  .editorial-report .uk-report-hero > div { position: relative; z-index: 1; }
  .uk-report-contour { position: absolute; right: -25px; bottom: -55px; width: 175px; height: 230px; opacity: .13; }
}
@media (max-width: 640px) {
  .editorial-report .uk-report-hero { padding: 24px; border-radius: 8px; }
  .editorial-report .uk-report-hero h1 { font-size: 36px; }
  .editorial-report .uk-report-hero .uk-report-standfirst { font-size: 23px; }
  .editorial-report .uk-report-hero .uk-report-positioning p { font-size: 14px; }
  .editorial-report .uk-report-chapter-heading { padding-right: 42px; }
  .editorial-report .uk-report-value-chain ol { gap: 0; }
  .editorial-report .uk-report-value-chain li { border-top: 0; border-left: 2px solid #c6ccd8; padding: 0 0 28px 24px; }
  .editorial-report .uk-report-value-chain li:last-child { padding-bottom: 0; }
  .editorial-report .uk-report-value-chain li::after { left: -5px; top: 5px; }
}
/* Progressive enhancement: readable without JavaScript and instant with reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  [data-report-motion].is-motion-ready { transition: none; }
  [data-report-motion].is-motion-ready:not(.is-motion-visible) { transform: none; opacity: 1; }
  [data-report-motion].is-motion-visible, [data-report-motion]:focus-within { transform: none; opacity: 1; }
  .uk-report-research-trend svg.is-motion-ready:not(.is-motion-visible) .uk-report-trend-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .uk-report-research-trend svg.is-motion-ready.is-motion-visible .uk-report-trend-line { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 900ms cubic-bezier(.22,1,.36,1); }
  .uk-report-research-trend svg.is-motion-ready:not(.is-motion-visible) .uk-report-trend-point { opacity: 0; }
  .uk-report-research-trend svg.is-motion-ready.is-motion-visible .uk-report-trend-point { opacity: 1; transition: opacity 240ms ease 650ms; }
  .uk-report-value-chain ol.is-motion-ready.is-motion-visible li::after { animation: report-node-arrival 600ms both; }
  .uk-report-value-chain ol.is-motion-visible li:nth-child(2)::after { animation-delay: 130ms; }
  .uk-report-value-chain ol.is-motion-visible li:nth-child(3)::after { animation-delay: 260ms; }
  .uk-report-value-chain ol.is-motion-visible li:nth-child(4)::after { animation-delay: 390ms; }
  @keyframes report-node-arrival { from { transform: scale(.5); box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand-blue) 20%, transparent); } 60% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--brand-blue) 8%, transparent); } to { transform: scale(1); box-shadow: 0 0 0 0 transparent; } }
}
@media (prefers-reduced-motion: reduce) {
  [data-report-motion] { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .uk-report-trend-line { stroke-dasharray: none !important; stroke-dashoffset: 0 !important; }
  .uk-report-trend-point { opacity: 1 !important; }
  .uk-report-value-chain li::after { animation: none !important; }
  .uk-report-disclosure-icon { transition: none !important; }
}
.country-report-mobile-chapters { display: none; }
@media (max-width: 980px) {
  .index-page .country-report-sidebar > nav { display: none; }
  .index-page .country-report-mobile-chapters { display: block; flex: 1; min-width: 0; margin: 0; }
  .index-page .country-report-mobile-chapters select { appearance: auto; width: 100%; min-height: 48px; margin: 0; padding: 10px 14px; background: transparent; border: 0; color: var(--brand-blue); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
  .index-page .country-report-sidebar { overflow: visible; }
  .index-page .country-report-country-picker { flex: 0 1 50%; }
  .index-page .country-report-mobile-chapters select:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: -4px; }
}

/* Keep the scoring explanation readable when opened. */
.country-scoring-explanation { max-width: 76ch; margin: 0 0 24px; }
.country-scoring-explanation p { font-size: 16px; line-height: 1.65; margin: 0 0 16px; }
.country-scoring-evidence-grid .uk-report-assessment-drivers { border: 0; padding: 0; font-size: 14px; line-height: 1.6; }
.country-scoring-evidence-grid h3 { font-size: 18px; }

.country-evidence-visual { margin: 28px 0; padding: 26px 0; border-block: 1px solid #d9cfca; min-width: 0; }
.country-evidence-visual > h3, .country-evidence-visual > figcaption { font-size: 22px; font-weight: 700; margin: 0 0 22px; line-height: 1.35; }
.country-evidence-visual figcaption small { display: block; font-size: 14px; font-weight: 400; margin-top: 6px; }
.country-evidence-visual p { font-size: 15px; line-height: 1.6; margin: 16px 0 0; }
.country-support-charts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; }
.country-support-charts figure { margin: 0; }
.country-support-charts figcaption { font-size: 16px; min-height: 44px; }
.country-support-charts strong { display: block; font-size: 30px; margin: 12px 0; }
.country-support-charts small { display: block; margin-top: 8px; font-size: 13px; }
.country-evidence-bar { height: 8px; background: #e2dedb; }
.country-evidence-bar i { display: block; height: 100%; background: var(--brand-blue); transform-origin: left; }
.country-tax-row { display: grid; grid-template-columns: 65px minmax(0,1fr) 65px; align-items: center; gap: 16px; margin: 30px 0; }
.country-tax-row strong { text-align: right; }
.country-tax-track { height: 2px; background: #d9cfca; position: relative; }
.country-tax-track i { position: absolute; top: -6px; width: 14px; height: 14px; border-radius: 50%; background: var(--brand-blue); transform: translateX(-50%); }
.country-tax-row:nth-of-type(2) .country-tax-track i { background: var(--brand-orange); }
.country-tax-scale { display: flex; justify-content: space-between; margin: 0 81px; font-size: 12px; }
.country-trade-stack { display: flex; height: 38px; gap: 3px; overflow: hidden; }
.country-trade-stack i { display: block; transform-origin: left; }
.country-trade-chart .is-goods { --segment: var(--brand-burgundy); }
.country-trade-chart .is-digital { --segment: var(--brand-blue); }
.country-trade-chart .is-other_services { --segment: var(--brand-orange); }
.country-trade-stack i { background: var(--segment); }
.country-trade-chart dl { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; margin: 18px 0; }
.country-trade-chart dt { border-left: 4px solid var(--segment); padding-left: 10px; font-size: 15px; line-height: 1.5; }
.country-trade-chart dd { margin: 8px 0 0 14px; font-size: 26px; font-weight: 700; }
.country-evidence-visual .headline-fiscal-position { padding: 0; border: 0; background: transparent; margin: 0; }
.country-evidence-visual .headline-fiscal-position figcaption { gap: 16px; }
.country-evidence-visual .headline-fiscal-position figcaption > div > span { display: none; }
.country-evidence-visual .headline-fiscal-position svg { width: 100%; height: auto; overflow: visible; }
.country-evidence-visual .headline-fiscal-position svg .is-selected circle { fill: var(--brand-blue); }
.country-evidence-visual .headline-fiscal-position svg .is-compared circle { fill: var(--brand-orange); }
@media (max-width:640px) {
 .country-support-charts, .country-trade-chart dl { grid-template-columns: 1fr; gap: 22px; }
 .country-support-charts figcaption { min-height: 0; }
 .country-support-charts figure { padding-bottom: 16px; border-bottom: 1px solid #dedbd7; }
 .country-evidence-visual { padding: 22px 0; }
 .country-tax-row { gap: 10px; grid-template-columns: 52px minmax(0,1fr) 58px; }
 .country-tax-scale { margin: 0 68px 0 62px; }
 .country-evidence-visual .headline-fiscal-position figcaption { display: grid; }
 .country-evidence-visual .headline-fiscal-position svg { min-height: 240px; }
}
@media (prefers-reduced-motion: no-preference) {
 .country-evidence-bar.is-motion-ready.is-motion-visible i,
 .country-trade-stack.is-motion-ready.is-motion-visible i { animation: report-bar-arrival 750ms cubic-bezier(.2,.75,.2,1) both; }
 .country-tax-track.is-motion-ready.is-motion-visible i { animation: report-dot-arrival 600ms ease both; }
 @keyframes report-bar-arrival { from { transform: scaleX(0); } to { transform: scaleX(1); } }
 @keyframes report-dot-arrival { from { opacity: .3; } to { opacity: 1; } }
}
@media (max-width:640px) {
 .country-evidence-visual .headline-fiscal-position svg text { font-size: 27px; }
 .country-evidence-visual .headline-fiscal-position svg circle { r: 7px; }
 .country-evidence-visual .headline-fiscal-position svg .is-selected circle,
 .country-evidence-visual .headline-fiscal-position svg .is-compared circle { r: 11px; }
}
@media (max-width:640px) {
 .country-evidence-visual .headline-fiscal-position svg > text[transform] { display: none; }
}

.index-page .editorial-report .uk-report-explorer .uk-report-disclosure-copy > strong { font-size: 25px; }
.index-page .editorial-report .uk-report-explorer .uk-report-disclosure-copy > small { max-width: 46ch; }
.index-page .editorial-report .uk-report-explorer-action { color: var(--brand-black); font-size: 13px; margin-top: 12px; }
.index-page .editorial-report .uk-report-explorer-preview { border-left: 1px solid #c9c0bb; padding-left: 24px; }
.index-page .editorial-report .uk-report-explorer-preview-metric { border: 0; padding: 5px 0; }
/* Legacy load-time entrances must not compete with chart viewport triggers. */
.editorial-report .headline-focus-workspace.is-entering,
.editorial-report .headline-focus-workspace.is-entering *,
.editorial-report .uk-report-disclosure[open] > .uk-report-disclosure-body { animation: none !important; }
@media (max-width:640px) {
 .index-page .editorial-report .uk-report-explorer-preview { border-left: 0; padding-left: 0; }
}
.editorial-report .country-overview-panel,
.editorial-report .country-data-panel,
.editorial-report .primary-priority-card,
.editorial-report .country-overview-reveal.is-opening { animation: none !important; }
@media (prefers-reduced-motion: no-preference) {
 .country-evidence-bar.is-motion-ready:not(.is-motion-visible) i,
 .country-trade-stack.is-motion-ready:not(.is-motion-visible) i { transform: scaleX(0); }
 .country-tax-track.is-motion-ready:not(.is-motion-visible) i { opacity: .3; }
}

/* Keep reports below the index; the dedicated UK pilot opens the report alone. */
.index-page:not([data-report-view="country"]) .inspector { display: none; }
body.index-page[data-pilot-mode="uk"] > .app-shell > .map-stage,
body.index-page[data-pilot-mode="uk"] > .app-shell > .country-index-panel { display: none !important; }
.index-page[data-pilot-mode="uk"] .app-shell { display: block !important; }
.index-page[data-report-view="country"] .inspector { width: 100%; max-width: none; margin: 0; }
.editorial-report .uk-report-occupation-section .labor-transformation-map { margin-top: 0; }
.editorial-report .uk-report-tax-analysis .country-tax-chart { margin-top: 0; border-top: 0; padding-top: 0; }
.editorial-report .uk-report-occupation-section .labor-exposure-workspace { margin-block: 0; }
.editorial-report .labor-transformation-map > figcaption { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 16px; text-align: left; }
.editorial-report .labor-transformation-map > figcaption > .headline-metric-help { flex: 0 0 auto; }

.editorial-report .labor-transformation-map > figcaption > div { flex: 1; min-width: 0; }

/* Keep country selection on the right of the continuous index and report. */
@media (min-width: 981px) {
  body.index-page:not([data-pilot-mode="uk"]) > .app-shell { grid-template-columns: minmax(0, 1fr) 280px; }
  body.index-page:not([data-pilot-mode="uk"]) > .app-shell > .map-stage { grid-column: 1; grid-row: 1; }
  body.index-page:not([data-pilot-mode="uk"]) > .app-shell > .country-index-panel { grid-column: 2; grid-row: 1; border-left: 1px solid var(--brand-burgundy); border-right: 0; padding: 20px 14px; height: auto; max-height: none; overflow: visible; position: static; }
  body.index-page:not([data-pilot-mode="uk"]) .country-entry-list { grid-template-columns: minmax(0, 1fr); }
  body.index-page:not([data-pilot-mode="uk"]) > .app-shell > .inspector { grid-column: 1 / -1; grid-row: 2; }
  body.index-page:not([data-pilot-mode="uk"]) .country-workspace { grid-template-columns: 260px minmax(0, 1fr); }
}
body.index-page:not([data-pilot-mode="uk"]) .map-stage .toolbar > .page-nav-button { display: flex; justify-content: center; border-radius: 1000px; min-height: 52px; padding: 14px 22px; font-size: 16px; white-space: normal; text-align: center; }
body.index-page:not([data-pilot-mode="uk"]) .map-stage .toolbar > .scenario-entry-button { background: var(--brand-orange); color: var(--brand-black); border: 1px solid var(--brand-orange); }
body.index-page:not([data-pilot-mode="uk"]) .map-stage .toolbar > .dictionary-cta { background: var(--brand-black); color: var(--brand-pink-light); border: 1px solid var(--brand-black); }
@media (max-width: 980px) {
  body.index-page:not([data-pilot-mode="uk"]) > .app-shell { display: flex; flex-direction: column; }
  body.index-page:not([data-pilot-mode="uk"]) > .app-shell > .map-stage { width: 100%; }
  body.index-page:not([data-pilot-mode="uk"]) > .app-shell > .country-index-panel { position: static; width: 100%; height: auto; max-height: none; overflow-y: visible; }
  body.index-page:not([data-pilot-mode="uk"]) > .app-shell > .inspector { width: 100%; }
}

/* Compact opening controls leave room for the map. */
body.index-page:not([data-pilot-mode="uk"]) .map-stage .toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; justify-content: flex-start; }
body.index-page:not([data-pilot-mode="uk"]) .map-stage .toolbar > .page-nav-button { width: auto; min-height: 40px; padding: 10px 15px; font-size: 14px; flex: 0 1 auto; }
body.index-page:not([data-pilot-mode="uk"]) .map-stage .country-search-control { width: 240px; max-width: 100%; gap: 4px; }
body.index-page:not([data-pilot-mode="uk"]) .map-stage #country-search { min-height: 40px; padding: 9px 14px; font-size: 14px; }
body.index-page:not([data-pilot-mode="uk"]) .map-stage .search-label { font-size: 14px; }
body.index-page:not([data-pilot-mode="uk"]) .map-stage > .topbar { padding: 20px 24px; gap: 16px; grid-template-columns: minmax(0, 1fr); }
body.index-page:not([data-pilot-mode="uk"]) .map-stage .brand-mark { margin-bottom: 12px; }
body.index-page:not([data-pilot-mode="uk"]) .map-stage .brand-mark img { width: 110px; }
body.index-page:not([data-pilot-mode="uk"]) .map-stage .brand-heading h1 { font-size: clamp(2rem, 3vw, 2.5rem); }
body.index-page:not([data-pilot-mode="uk"]) .map-stage .brand-heading .dek { margin-top: 10px; max-width: 85ch; font-size: 15px; line-height: 1.4; }
body.index-page:not([data-pilot-mode="uk"]) .map-stage .pilot-status { margin-top: 8px; font-size: 16px; }
@media (min-width: 700px) {
  body.index-page:not([data-pilot-mode="uk"]) > .app-shell > .map-stage { height: 100dvh; min-height: 640px; grid-template-rows: auto auto auto minmax(240px, 1fr) auto; gap: 0; padding: 0; position: sticky; top: 0; align-self: start; }
  body.index-page:not([data-pilot-mode="uk"]) .map-stage > .map { height: auto; min-height: 0; margin: 16px 24px 8px; width: auto; }
  body.index-page:not([data-pilot-mode="uk"]) .map-stage > .legend { margin: 0 24px 12px; }
}
@media (max-width: 980px) {
  body.index-page:not([data-pilot-mode="uk"]) > .app-shell > .map-stage { position: static; }
}

/* Let the map meet the header and country index without an inset frame. */
body.index-page:not([data-pilot-mode="uk"]) > .app-shell > .map-stage { padding: 0; gap: 0; }
body.index-page:not([data-pilot-mode="uk"]) .map-stage > .map { margin: 0; width: 100%; border: 0; border-radius: 0; }

/* One pillar card holds both comparisons; the card itself is styled above. */
.index-page .preparedness-benchmark-track { height: 34px; }
.index-page .preparedness-benchmark-track .is-country { font-size: 17px; min-width: 34px; padding-right: 10px; }
.index-page .preparedness-benchmark-scale { margin-top: 0; }

/* Country rank within the compatible exposure or capacity cohort. */
.index-page .uk-report-health-rank > b { font-size: 24px; }

.index-page .preparedness-benchmark { padding-top: 0; }

.index-page [data-evidence-visual="fiscal-position"] .headline-fiscal-position {
  max-width: 640px;
  margin: 16px auto;
}
.index-page [data-evidence-visual="fiscal-position"] > p { max-width: 78ch; }
.index-page .uk-occupation-research.is-integrated { border: 0; margin: 0; padding: 0; }
.index-page .uk-occupation-research.is-integrated > .uk-occupation-research-body { padding: 0; }

.index-page [data-evidence-visual="fiscal-position"] .headline-fiscal-position figcaption {
  padding: 0 0 12px;
}
.index-page [data-evidence-visual="fiscal-position"] .headline-fiscal-position figcaption strong {
  font-size: 18px;
}

/* Map and country picker share one bounded row at every viewport size. */
body.index-page:not([data-pilot-mode="uk"]) > .app-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 38%);
  grid-template-rows: auto auto clamp(320px, 58svh, 640px) auto auto;
  align-items: stretch;
}
body.index-page:not([data-pilot-mode="uk"]) > .app-shell > .map-stage {
  display: contents;
}
body.index-page:not([data-pilot-mode="uk"]) .map-stage > .topbar {
  grid-column: 1 / -1;
  grid-row: 1;
}
body.index-page:not([data-pilot-mode="uk"]) .map-stage > .map-layer-controls,
body.index-page:not([data-pilot-mode="uk"]) .map-stage > .map-layer-explorer {
  grid-column: 1 / -1;
  grid-row: 2;
}
body.index-page:not([data-pilot-mode="uk"]) .map-stage > .map {
  grid-column: 1;
  grid-row: 3;
  height: 100%;
  min-height: 0;
  min-width: 0;
}
body.index-page:not([data-pilot-mode="uk"]) > .app-shell > .country-index-panel {
  grid-column: 2;
  grid-row: 3;
  position: static;
  contain: size;
  min-width: 0;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: 0 8px;
  border-left: 1px solid var(--brand-burgundy);
}
body.index-page:not([data-pilot-mode="uk"]) .country-entry-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
body.index-page:not([data-pilot-mode="uk"]) .country-entry-list button {
  min-width: 0;
  min-height: 48px;
  padding: 10px 8px;
}
body.index-page:not([data-pilot-mode="uk"]) .country-entry-list button:hover,
body.index-page:not([data-pilot-mode="uk"]) .country-entry-list button:focus-visible {
  transform: none;
}
body.index-page:not([data-pilot-mode="uk"]) .country-entry-list button:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: -2px;
}
body.index-page:not([data-pilot-mode="uk"]) .country-entry-list strong { font-size: 14px; overflow-wrap: anywhere; }
body.index-page:not([data-pilot-mode="uk"]) .map-stage > .legend { grid-column: 1; grid-row: 4; }
body.index-page:not([data-pilot-mode="uk"]) > .app-shell > .inspector { grid-column: 1 / -1; grid-row: 5; }
@media (max-width: 700px) {
  body.index-page:not([data-pilot-mode="uk"]) > .app-shell { grid-template-columns: minmax(0, 1fr) 42%; }
  body.index-page:not([data-pilot-mode="uk"]) .country-entry-list { grid-template-columns: minmax(0, 1fr); }
  body.index-page:not([data-pilot-mode="uk"]) .country-entry-list button { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  body.index-page:not([data-pilot-mode="uk"]) .country-entry-list button:nth-child(odd) { border-right: 0; }
}
body.index-page:not([data-pilot-mode="uk"]) .map-stage > .map { max-height: none; }
body.index-page:not([data-pilot-mode="uk"]) > .app-shell > .country-index-panel {
  overflow-y: scroll;
  scrollbar-width: thin;
  scrollbar-color: var(--brand-burgundy) transparent;
}
body.index-page:not([data-pilot-mode="uk"]) .country-entry-index { gap: 12px; }
body.index-page:not([data-pilot-mode="uk"]) .country-entry-index header { padding-block: 8px; }
body.index-page:not([data-pilot-mode="uk"]) .country-entry-index h2 { font-size: 20px; }
@media (max-width: 700px) {
  body.index-page:not([data-pilot-mode="uk"]) .country-entry-index header { display: none; }
}

/* Match the age comparison to the headline statistics alongside it. */
.index-page .uk-report-metric-rail > .uk-report-youth-exposure {
  margin: 0;
  padding: 0 24px 0 0;
  border-block: 0;
  min-width: 0;
}
.index-page .uk-report-metric-rail > .uk-report-youth-exposure :is(h3, figcaption) {
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  min-height: 42px;
  margin: 0;
  padding-right: 16px;
}
.index-page .uk-report-metric-rail .uk-report-stat > .uk-youth-headline { color: var(--brand-blue, #2951fe); }
.index-page .uk-report-metric-rail .uk-youth-help > summary { top: 0; right: 10px; }
.index-page .uk-report-metric-rail .youth-prime-exposure-visual { margin-top: 16px; }
.index-page .uk-report-metric-rail .youth-prime-exposure-heading { display: none; }
.index-page .uk-report-metric-rail .youth-prime-exposure-bars > div {
  grid-template-columns: minmax(0, 1fr) minmax(45px, 1fr) 28px;
}
.index-page .uk-report-metric-rail .youth-prime-exposure-bars span,
.index-page .uk-report-metric-rail .youth-prime-exposure-bars > div > strong {
  font-family: inherit;
  font-size: 12px;
  line-height: 1.4;
  color: var(--uk-text);
  font-weight: 400;
}
@media (max-width: 640px) {
  .index-page .uk-report-metric-rail > .uk-report-youth-exposure { padding: 0 0 18px; }
  .index-page .uk-report-metric-rail > .uk-report-youth-exposure :is(h3, figcaption) { min-height: 0; align-self: center; }
  .index-page .uk-report-metric-rail .youth-prime-exposure-visual { grid-column: 1 / -1; }
}

/* Read the fiscal interpretation alongside its chart when there is room. */
.index-page [data-evidence-visual="fiscal-position"] > p {
  font-size: 18px;
  line-height: 1.55;
}
@media (min-width: 1100px) {
  .index-page [data-evidence-visual="fiscal-position"] {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
    gap: 20px 32px;
    align-items: center;
  }
  .index-page [data-evidence-visual="fiscal-position"] > :is(h3, figcaption) { grid-column: 1 / -1; margin: 0; }
  .index-page [data-evidence-visual="fiscal-position"] > .headline-fiscal-position {
    width: 100%;
    min-width: 0;
    margin: 0;
  }
  .index-page [data-evidence-visual="fiscal-position"] > p { margin: 0; font-size: 20px; }
}

/* Use the full right edge beside the introduction and map on larger screens. */
@media (min-width: 701px) {
  body.index-page:not([data-pilot-mode="uk"]) .map-stage > .topbar,
  body.index-page:not([data-pilot-mode="uk"]) .map-stage > .map-layer-controls,
  body.index-page:not([data-pilot-mode="uk"]) .map-stage > .map-layer-explorer {
    grid-column: 1;
  }
  body.index-page:not([data-pilot-mode="uk"]) > .app-shell > .country-index-panel {
    grid-row: 1 / 5;
  }
}

/* Label each rate's own compatible-country median beneath the track. */
.country-tax-row.has-median { margin-bottom: 44px; }
.country-tax-median { position: absolute; top: -7px; height: 16px; width: 2px; background: var(--brand-black, #191919); transform: translateX(-50%); }
.country-tax-track .country-tax-median-label { position: absolute; top: 12px; transform: translateX(-50%); white-space: nowrap; font-size: 12px; font-weight: 400; line-height: 1.3; color: var(--brand-black, #191919); }
