@font-face {
  font-display: swap;
  font-family: "Forma DJR Display";
  font-style: normal;
  font-weight: 700;
  src: url("assets/fonts/FormaDJRDisplay-Bold.woff2") format("woff2");
}

:root {
  --brand-pink: #f2c8c9;
  --brand-pink-light: #f5e1e1;
  --brand-blue: #2951fe;
  --brand-black: #18181a;
  --brand-green: #1e800f;
  --brand-burgundy: #4c1a09;
  --brand-orange: #ff520d;
  --brand-yellow: #f2b101;
  --pink: var(--brand-pink-light);
  --pink-strong: var(--brand-pink);
  --burgundy: var(--brand-burgundy);
  --orange: var(--brand-orange);
  --orange-soft: var(--brand-orange);
  --orange-hot: var(--brand-orange);
  --blue: var(--brand-blue);
  --green: var(--brand-green);
  --gold: var(--brand-yellow);
  --ink: var(--brand-black);
  --shadow: 0 1px 0 rgb(76 26 9 / 10%);
  --fs-deck: 1.5rem;
  --report-column: 1180px;
  --report-gutter: max(clamp(20px, 3.5vw, 54px), calc((100% - var(--report-column)) / 2));
  --report-sidebar-width: 230px;
  --report-line: #e4beba;
  --report-rule: #d9cfca;
  --report-hairline: 1px;
  --report-paper: #fffdfa;
  --report-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%2318181A' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.index-page {
  background: var(--report-paper);
}

.brand-motif {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  justify-content: center;
  min-width: 0;
  pointer-events: none;
}

.brand-motif img {
  display: block;
  height: auto;
  max-width: 100%;
}

.brand-motif--reference {
  align-self: center;
  width: clamp(72px, 7vw, 108px);
}

.brand-motif--reference img {
  opacity: 0.9;
}

.brand-motif--scenario {
  align-self: center;
  justify-self: end;
  width: clamp(105px, 13vw, 190px);
}

.brand-motif--scenario img {
  animation: brand-motif-drift 9s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate-reverse;
}

.brand-motif--city {
  margin-left: auto;
  width: 60px;
}

.brand-motif--city img {
  opacity: 0.9;
}

.brand-visually-hidden {
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  height: 1px !important;
  overflow: hidden !important;
  position: absolute !important;
  white-space: nowrap !important;
  width: 1px !important;
}

@keyframes brand-motif-drift {
  from { transform: translateY(-3px); }
  to { transform: translateY(3px); }
}

.index-page .topbar {
  align-items: end;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 40%);
}

.index-page .brand-heading::after {
  background: var(--brand-burgundy);
  height: 2px;
  margin-top: 24px;
  width: min(128px, 36vw);
}

.index-page[data-country-mode="true"] .topbar {
  grid-template-columns: minmax(0, 1fr);
}

.index-page .map,
.index-page .page-nav-button,
.index-page .country-search-results,
.scenarios-page .lab-controls {
  box-shadow: none;
}

.page-nav-button,
.lab-header nav a,
.lab-footer a {
  border-radius: 999px;
}

.page-nav-button:hover,
.page-nav-button:focus-visible {
  box-shadow: none;
}

/* Keep the analytical interface quieter than the editorial brand surfaces. */
.index-page[data-inspector-open="true"]:not([data-country-mode="true"]) h1 {
  font-size: 3rem;
  line-height: 0.92;
  max-width: 520px;
}

.index-page .country-entry-index h2 {
  font-size: 1.85rem;
  line-height: 1.05;
}

.index-page .country-workspace-view {
  max-width: 1280px;
}

.index-page .headline-dashboard {
  background: transparent;
  border: 0;
  padding: 0;
}

.index-page .headline-dashboard-domain {
  gap: 0;
}

.index-page .headline-domain-selector {
  border-top: 1px solid var(--line-strong);
}

.index-page .headline-domain-selector button {
  min-height: 58px;
  padding: 10px 14px;
}

.index-page .headline-domain-selector button span {
  font-size: 0.75rem;
  text-transform: none;
}

.index-page .headline-domain-selector button strong {
  font-size: 1.9rem;
}

.index-page .headline-dashboard-domain .headline-focus-workspace {
  background: transparent;
  border-bottom: 1px solid var(--line-strong);
  margin-inline: 0;
  padding-top: 0;
}

.index-page .headline-dashboard-domain .headline-focus-header {
  max-width: none;
  padding: 24px 0 20px;
}

.index-page .headline-dashboard-domain .headline-focus-header h3 {
  font-size: 1.75rem;
  line-height: 1.05;
  margin: 0 0 7px;
}

.index-page .headline-dashboard-domain .headline-focus-verdict {
  font-size: 0.8rem;
  line-height: 1.4;
  margin: 0;
}

.index-page .headline-dashboard-domain .headline-focus-overview {
  border-top: 1px solid var(--line);
}

.index-page .labor-transformation-map > figcaption {
  padding: 20px 0;
}

.index-page .labor-transformation-map > figcaption strong {
  font-size: 1.45rem;
  line-height: 1.08;
  max-width: 620px;
}

.index-page .labor-transformation-adoption {
  grid-template-columns: minmax(180px, 0.65fr) minmax(260px, 1fr);
  padding: 12px 0;
}

.index-page .labor-transformation-adoption > small {
  display: none;
}

.index-page .labor-transformation-map > footer {
  padding-inline: 0;
}

.index-page .headline-focus-explorer > summary {
  min-height: 52px;
  padding-inline: 0;
}

.dictionary-header {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
}

.dictionary-page {
  background: var(--brand-pink-light);
}

.dictionary-page .dictionary-controls {
  grid-template-columns: minmax(260px, 1fr) minmax(180px, 280px);
}

.dictionary-header .brand-mark {
  background: transparent;
  border: 0;
  height: auto;
  padding: 0;
}

.dictionary-header h1,
.dictionary-results-heading h2,
.dictionary-methodology-heading h2,
.index-page h1,
.scenarios-page .lab-intro h1,
.cities-page .brand-heading h1 {
  font-weight: 700;
}

.scenarios-page {
  --font-display: "Forma DJR Display", "Forma DJR Text", "Segoe UI", system-ui, sans-serif;
  background: #fff8f4;
}

.scenarios-page .lab-header {
  background: rgb(245 225 225 / 96%);
  border-color: var(--brand-pink);
}

.scenarios-page .lab-intro {
  align-items: center;
  grid-template-columns: minmax(0, 1.3fr) minmax(250px, 0.72fr) auto;
}

.scenarios-page .lab-footer {
  background: var(--brand-black);
}

.cities-page .topbar {
  background: var(--brand-pink-light);
  min-width: 0;
  position: relative;
  width: 100%;
}

.cities-page .map-stage {
  grid-template-columns: minmax(0, 1fr);
}

.cities-page .brand-heading {
  padding-right: 70px;
}

.cities-page .brand-motif--city {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.cities-page .city-map,
.cities-page .map-callout,
.cities-page .headline-card,
.cities-page .metric-card {
  box-shadow: none;
}

@media (max-width: 1080px) {
  .index-page .topbar {
    display: flex;
  }

  .dictionary-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .brand-motif--reference {
    display: none;
  }

  .scenarios-page .lab-intro {
    grid-template-columns: minmax(0, 1.35fr) minmax(250px, 0.65fr);
  }

  .brand-motif--scenario {
    display: none;
  }
}

@media (max-width: 720px) {
  .index-page[data-inspector-open="true"]:not([data-country-mode="true"]) h1 {
    font-size: 2.5rem;
  }

  .index-page .headline-domain-selector button {
    min-height: 52px;
    padding: 9px 11px;
  }

  .index-page .headline-domain-selector button strong {
    font-size: 1.65rem;
  }

  .index-page .headline-dashboard-domain .headline-focus-header {
    padding-block: 19px 16px;
  }

  .index-page .headline-dashboard-domain .headline-focus-header h3 {
    font-size: 1.5rem;
  }

  .index-page .labor-transformation-map > figcaption strong {
    font-size: 1.25rem;
  }

  .index-page .labor-transformation-adoption {
    grid-template-columns: minmax(0, 1fr);
  }

  .brand-motif--city {
    width: 46px;
  }

  .dictionary-header {
    grid-template-columns: 1fr;
  }

  .scenarios-page .lab-intro {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-motif img {
    animation: none;
  }
}

/* The preparedness definition remains part of the index introduction after a
   country report opens; the report now follows the index instead of replacing it. */
body.index-page .brand-heading .dek {
  display: block;
}

body.index-page .app-shell,
body.index-page[data-inspector-open="true"] .app-shell,
body.index-page[data-country-mode="true"] .app-shell {
  align-items: start;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 31vw);
  grid-template-rows: auto auto;
  height: auto;
  min-height: 100svh;
  overflow: visible;
}

body.index-page .map-stage,
body.index-page[data-country-mode="true"] > .app-shell > .map-stage {
  grid-column: 1;
  grid-row: 1;
  height: auto;
  min-height: 100svh;
  overflow: visible;
}

body.index-page .country-index-panel,
body.index-page[data-country-mode="true"] .country-index-panel {
  align-self: start;
  background: var(--surface);
  border-bottom: 0;
  border-left: 1px solid var(--brand-burgundy);
  border-top: 0;
  display: block;
  grid-column: 2;
  grid-row: 1;
  height: 100svh;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: clamp(18px, 2vw, 26px);
  position: sticky;
  top: 0;
  z-index: 5;
}

.index-page .country-index-panel::before {
  display: none;
}

.index-page .country-entry-index header p {
  color: var(--muted);
  font-size: var(--fs-label);
  line-height: 1.4;
  margin: 5px 0 0;
}

.index-page .country-entry-list button {
  grid-template-columns: minmax(0, 1fr) auto 18px;
}

.index-page .country-entry-list button::after {
  color: var(--brand-orange);
  content: "\2192";
  font: 700 0.88rem/1 var(--font-ui);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.index-page .country-entry-list button:hover::after,
.index-page .country-entry-list button:focus-visible::after,
.index-page .country-entry-list button[aria-current="true"]::after {
  opacity: 1;
  transform: translateX(0);
}

.index-page .country-entry-list button[aria-current="true"] {
  background: color-mix(in srgb, var(--brand-blue) 8%, var(--surface));
  box-shadow: inset 3px 0 0 var(--brand-blue);
}

body.index-page .inspector {
  display: none;
  grid-column: 1 / -1;
  grid-row: 2;
  height: auto;
  max-height: none;
  min-height: 0;
  overflow: visible;
  width: 100%;
}

body.index-page[data-country-mode="true"] .inspector {
  border: 0;
  display: block;
  height: auto;
  max-height: none;
  overflow: visible;
}

body.index-page[data-country-mode="true"] .profile-panel {
  display: block;
  margin: 0;
  max-width: none;
  padding: 0;
  width: 100%;
}

body.index-page[data-country-mode="true"],
body.index-page[data-country-mode="true"][data-inspector-open="true"] {
  overflow-x: clip;
  overflow-y: auto;
}

.index-page .has-report-reveals :is(.country-report-section, .uk-report-health-grid > .country-health-card, .uk-report-feature, .uk-report-explorer) {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 360ms ease, transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--report-reveal-order, 0) * 55ms);
}

.index-page .has-report-reveals :is(.country-report-section, .uk-report-health-grid > .country-health-card, .uk-report-feature, .uk-report-explorer).is-report-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
  .index-page .brand-mark,
  .index-page .brand-heading h1,
  .index-page .brand-heading .dek,
  .index-page .toolbar,
  .index-page .map-stage > .map,
  .index-page .country-index-panel {
    animation: index-entry-reveal 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .index-page .brand-heading h1 { animation-delay: 55ms; }
  .index-page .brand-heading .dek { animation-delay: 110ms; }
  .index-page .toolbar { animation-delay: 120ms; }
  .index-page .map-stage > .map { animation-delay: 210ms; }
  .index-page .country-index-panel { animation-delay: 260ms; }

  @keyframes index-entry-reveal {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (max-width: 980px) {
  body.index-page .app-shell,
  body.index-page[data-inspector-open="true"] .app-shell,
  body.index-page[data-country-mode="true"] .app-shell {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
  }

  body.index-page .map-stage,
  body.index-page[data-country-mode="true"] > .app-shell > .map-stage {
    grid-column: 1;
    grid-row: 1;
    height: auto;
    min-height: 100svh;
  }

  body.index-page .country-index-panel,
  body.index-page[data-country-mode="true"] .country-index-panel {
    border-left: 0;
    grid-column: 1;
    grid-row: 2;
    height: auto;
    max-height: 58svh;
    position: relative;
  }

  body.index-page .inspector {
    grid-column: 1;
    grid-row: 3;
  }

  .index-page[data-country-mode="true"] .map-stage > .topbar {
    background: var(--brand-pink);
    display: grid;
    overflow: hidden;
    padding: 26px 22px;
  }

  .index-page[data-country-mode="true"] .map-stage .dek {
    color: var(--brand-pink-light);
    display: block !important;
  }
}

@media (max-width: 620px) {
  .index-page[data-country-mode="true"] .map-stage > .topbar {
    padding: 22px 16px 26px;
  }

  .index-page[data-country-mode="true"] .map-stage h1 {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .index-page .has-report-reveals :is(.country-report-section, .uk-report-health-grid > .country-health-card, .uk-report-feature, .uk-report-explorer) {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .index-page .country-entry-list button::after {
    transition: none;
  }
}

@media (max-width: 620px) {
  .index-page[data-country-mode="true"] .brand-mark img {
    content: none;
  }
}

/* Keep the public tiers legible inside compact chapter banners. */
.index-page #country-report-labor .headline-domain-story-intro,
.index-page #country-report-fiscal .headline-domain-story-intro,
.index-page #country-report-competitiveness .headline-domain-story-intro {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
}

.index-page #country-report-labor .headline-domain-score-pair,
.index-page #country-report-fiscal .headline-domain-score-pair,
.index-page #country-report-competitiveness .headline-domain-score-pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
  width: 100%;
}

.index-page #country-report-labor .headline-domain-score-pair > div,
.index-page #country-report-fiscal .headline-domain-score-pair > div,
.index-page #country-report-competitiveness .headline-domain-score-pair > div {
  min-width: 0;
  padding-inline: 14px;
}

.index-page #country-report-labor .headline-domain-score-pair strong,
.index-page #country-report-fiscal .headline-domain-score-pair strong,
.index-page #country-report-competitiveness .headline-domain-score-pair strong {
  font-size: clamp(1.05rem, 1.55vw, 1.42rem);
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .index-page #country-report-labor .headline-domain-story-intro,
  .index-page #country-report-fiscal .headline-domain-story-intro,
  .index-page #country-report-competitiveness .headline-domain-story-intro {
    grid-template-columns: minmax(0, 1fr);
  }

  /* One column means the headline spans the full band, leaving the motif
     nowhere to sit; drop it rather than let it land on the type. */
  .index-page #country-report-labor .headline-domain-story-intro::after,
  .index-page #country-report-fiscal .headline-domain-story-intro::after,
  .index-page #country-report-competitiveness .headline-domain-story-intro::after {
    display: none;
  }

  .index-page #country-report-labor .headline-domain-score-pair,
  .index-page #country-report-fiscal .headline-domain-score-pair,
  .index-page #country-report-competitiveness .headline-domain-score-pair {
    align-self: auto;
  }
}

/* Framer source parity: editorial entry points, quiet analytical workspaces. */
@media (min-width: 981px) {
  .index-page:not([data-country-mode="true"]) .map-stage {
    background: var(--surface);
    container-name: index-stage;
    container-type: inline-size;
    gap: 0;
    grid-template-rows: auto auto auto minmax(420px, 1fr) auto;
    padding: 0;
  }

  .index-page:not([data-country-mode="true"]) .map-stage > .topbar {
    align-items: center;
    background: var(--brand-pink);
    display: grid;
    gap: clamp(28px, 4vw, 64px);
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    min-height: clamp(380px, 44vh, 410px);
    overflow: hidden;
    padding: clamp(24px, 2.6vw, 36px);
    position: relative;
  }

  .index-page:not([data-country-mode="true"]) .brand-heading {
    max-width: 760px;
    padding-right: 0;
    position: static;
    z-index: 1;
  }

  .index-page:not([data-country-mode="true"]) .brand-heading > :not(.brand-motif) {
    position: relative;
    z-index: 1;
  }

  .index-page:not([data-country-mode="true"]) .brand-heading::after {
    display: none;
  }

  .index-page:not([data-country-mode="true"]) .brand-mark {
    margin-bottom: 10px;
  }

  .index-page:not([data-country-mode="true"]) .brand-mark img {
    height: clamp(48px, 4.6vw, 70px);
  }

  .index-page:not([data-country-mode="true"]) h1 {
    color: var(--brand-pink-light);
    font-size: clamp(3rem, 5.15vw, 5.65rem);
    line-height: 0.92;
    max-width: 720px;
  }

  .index-page:not([data-country-mode="true"]) .dek {
    color: var(--brand-pink-light);
    font-size: clamp(0.92rem, 1.12vw, 1.05rem);
    line-height: 1.48;
    margin-top: 12px;
    max-width: 650px;
  }

  .index-page:not([data-country-mode="true"]) .toolbar {
    align-self: center;
    min-width: 0;
    position: relative;
    width: 100%;
    z-index: 2;
  }

  .index-page:not([data-country-mode="true"]) .toolbar .page-nav-button {
    border-radius: 1000px;
    box-shadow: none;
    font-size: 0.78rem;
    min-height: 48px;
  }

  .index-page:not([data-country-mode="true"]) .toolbar .scenario-entry-button {
    background: var(--brand-orange);
    border-color: var(--brand-orange);
    color: var(--brand-black);
  }

  .index-page:not([data-country-mode="true"]) .toolbar .dictionary-cta {
    background: var(--brand-black);
    border-color: var(--brand-black);
    color: var(--brand-pink-light);
  }

  .index-page:not([data-country-mode="true"]) .toolbar .page-nav-button:hover,
  .index-page:not([data-country-mode="true"]) .toolbar .page-nav-button:focus-visible {
    background: var(--brand-pink-light);
    border-color: var(--brand-pink-light);
    color: var(--brand-black);
    transform: translateY(-2px);
  }

  .index-page:not([data-country-mode="true"]) .search-label {
    color: var(--brand-pink-light);
    margin: 8px 0 3px;
  }

  .index-page:not([data-country-mode="true"]) #country-search {
    background: var(--brand-pink-light);
    border: 0;
    border-radius: 1000px;
    color: var(--brand-black);
    min-height: 58px;
    padding-inline: 22px;
  }

  .index-page:not([data-country-mode="true"]) #country-search::placeholder {
    color: rgb(24 24 26 / 52%);
  }

  .index-page:not([data-country-mode="true"]) .country-search-results {
    border: 0;
    border-radius: 18px;
    margin-top: 6px;
    overflow: hidden;
  }

  .index-page:not([data-country-mode="true"]) .map-stage > .map {
    margin: clamp(24px, 3vw, 42px) clamp(24px, 3vw, 42px) 16px;
    width: auto;
  }

  .index-page:not([data-country-mode="true"]) .map-stage > .legend {
    margin: 0 clamp(24px, 3vw, 42px) clamp(22px, 3vw, 38px);
  }

  .index-page:not([data-country-mode="true"]) .inspector {
    background: var(--surface);
    border-left: 1px solid var(--brand-burgundy);
    border-top: 0;
  }
}

/* The country report uses the same navigation grammar as the Framer site. */
.index-page .country-workspace-nav {
  background: var(--brand-pink-light);
  border-bottom-color: var(--brand-burgundy);
  box-shadow: none;
  padding-inline: clamp(16px, 2.6vw, 42px);
}

.index-page .country-workspace-identity .back-to-map-button,
.index-page .country-workspace-actions a {
  border-radius: 1000px;
}


.index-page .country-workspace-actions .country-methods-link {
  background: var(--brand-black);
  border-color: var(--brand-black);
  color: var(--brand-pink-light);
}


.index-page .country-workspace-country-picker select {
  background-color: transparent;
  border-color: transparent;
  border-radius: 0;
  border-bottom: 1px solid transparent;
}

.index-page .country-workspace-country-picker select:hover,
.index-page .country-workspace-country-picker select:focus-visible {
  border-bottom-color: var(--brand-burgundy);
  outline: 0;
}

.index-page .country-workspace-view.country-report {
  background: var(--paper);
}

/* Framer-parity chapter bands: one stable header system for all three domains. */
.index-page #country-report-labor .headline-domain-story-intro,
.index-page #country-report-fiscal .headline-domain-story-intro,
.index-page #country-report-competitiveness .headline-domain-story-intro {
  align-items: center;
  border: 0;
  box-sizing: border-box;
  height: clamp(250px, 24vw, 300px);
  isolation: isolate;
  margin-inline: 0;
  overflow: hidden;
  padding: clamp(28px, 4vw, 46px) clamp(18px, 3vw, 44px);
  position: relative;
}

/* The dot motif sits in the banner's top-right corner, above the tier panel and
   clear of the headline column, so it never lands on top of text. */
.index-page #country-report-labor .headline-domain-story-intro::after,
.index-page #country-report-fiscal .headline-domain-story-intro::after,
.index-page #country-report-competitiveness .headline-domain-story-intro::after {
  background-image: url("assets/brand/motifs/scattered-dots.svg");
  background-position: top right;
  background-repeat: no-repeat;
  background-size: contain;
  content: "";
  height: clamp(62px, 7.5vw, 104px);
  left: auto;
  opacity: 0.62;
  pointer-events: none;
  position: absolute;
  right: clamp(18px, 3vw, 44px);
  top: clamp(14px, 2vw, 24px);
  transform: none;
  width: clamp(100px, 12.5vw, 170px);
  z-index: 0;
}

/* Content owns its own stacking context above the motif. */
.index-page #country-report-labor .headline-domain-intro-copy,
.index-page #country-report-fiscal .headline-domain-intro-copy,
.index-page #country-report-competitiveness .headline-domain-intro-copy,
.index-page #country-report-labor .headline-domain-score-pair,
.index-page #country-report-fiscal .headline-domain-score-pair,
.index-page #country-report-competitiveness .headline-domain-score-pair {
  position: relative;
  z-index: 1;
}

/* Dropping the tier panel to the bottom of the band leaves the corner free,
   and gives the banner a headline / motif / scores diagonal. */
.index-page #country-report-labor .headline-domain-score-pair,
.index-page #country-report-fiscal .headline-domain-score-pair,
.index-page #country-report-competitiveness .headline-domain-score-pair {
  align-self: end;
}

.index-page #country-report-labor .headline-domain-story-intro {
  background: var(--brand-burgundy);
}

.index-page #country-report-fiscal .headline-domain-story-intro {
  background: var(--brand-black);
}

.index-page #country-report-competitiveness .headline-domain-story-intro {
  background: var(--brand-blue);
}

.index-page #country-report-labor .headline-domain-intro-copy,
.index-page #country-report-fiscal .headline-domain-intro-copy,
.index-page #country-report-competitiveness .headline-domain-intro-copy,
.index-page #country-report-labor .headline-domain-score-pair,
.index-page #country-report-fiscal .headline-domain-score-pair,
.index-page #country-report-competitiveness .headline-domain-score-pair {
  position: relative;
  z-index: 1;
}

.index-page #country-report-labor .headline-domain-intro-copy h2,
.index-page #country-report-fiscal .headline-domain-intro-copy h2,
.index-page #country-report-competitiveness .headline-domain-intro-copy h2 {
  color: var(--brand-pink-light);
  font-size: clamp(2rem, 3.1vw, 3rem);
  max-width: 18ch;
}

.index-page #country-report-labor .headline-domain-score-pair,
.index-page #country-report-fiscal .headline-domain-score-pair,
.index-page #country-report-competitiveness .headline-domain-score-pair {
  background: var(--brand-black);
  border-color: rgb(245 225 225 / 58%);
  min-width: 260px;
}

.index-page #country-report-labor .headline-domain-score-pair > div + div,
.index-page #country-report-fiscal .headline-domain-score-pair > div + div,
.index-page #country-report-competitiveness .headline-domain-score-pair > div + div {
  border-left-color: rgb(245 225 225 / 34%);
}

.index-page #country-report-labor .headline-domain-score-pair .is-exposure span,
.index-page #country-report-labor .headline-domain-score-pair .is-exposure strong,
.index-page #country-report-fiscal .headline-domain-score-pair .is-exposure span,
.index-page #country-report-fiscal .headline-domain-score-pair .is-exposure strong,
.index-page #country-report-competitiveness .headline-domain-score-pair .is-exposure span,
.index-page #country-report-competitiveness .headline-domain-score-pair .is-exposure strong {
  color: var(--brand-orange);
}

.index-page #country-report-labor .headline-domain-score-pair small,
.index-page #country-report-fiscal .headline-domain-score-pair small,
.index-page #country-report-competitiveness .headline-domain-score-pair small {
  color: var(--brand-pink-light);
}

/* A single feature band makes the competitiveness pathway feel intentional. */
.index-page #country-report-competitiveness .headline-value-pathway {
  background: var(--brand-black);
  color: var(--brand-pink-light);
  gap: 0;
  padding: clamp(12px, 2vw, 22px);
}

.index-page #country-report-competitiveness .headline-value-pathway article {
  border-color: rgb(245 225 225 / 28%);
  min-height: 150px;
}

.index-page #country-report-competitiveness .headline-value-pathway article > b {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
  color: var(--brand-black);
}

.index-page #country-report-competitiveness .headline-value-pathway article > span,
.index-page #country-report-competitiveness .headline-value-pathway article > strong {
  color: var(--brand-pink-light);
}

.index-page #country-report-fiscal .headline-fiscal-compare-control select {
  border-radius: 999px;
  padding-inline: 14px 34px;
}

@media (max-width: 900px) {
  .index-page #country-report-labor .headline-domain-story-intro,
  .index-page #country-report-fiscal .headline-domain-story-intro,
  .index-page #country-report-competitiveness .headline-domain-story-intro {
    height: auto;
    margin-inline: 0;
    min-height: 272px;
    overflow: visible;
  }

  .index-page #country-report-labor .headline-domain-story-intro::after,
  .index-page #country-report-fiscal .headline-domain-story-intro::after,
  .index-page #country-report-competitiveness .headline-domain-story-intro::after {
    height: 93px;
    left: auto;
    opacity: 0.34;
    right: 8px;
    top: 10px;
    transform: none;
    width: 150px;
  }

  .index-page #country-report-labor .headline-domain-intro-copy h2,
  .index-page #country-report-fiscal .headline-domain-intro-copy h2,
  .index-page #country-report-competitiveness .headline-domain-intro-copy h2 {
    font-size: clamp(1.9rem, 8vw, 2.55rem);
    max-width: 16ch;
  }

  .index-page #country-report-labor .headline-domain-score-pair,
  .index-page #country-report-fiscal .headline-domain-score-pair,
  .index-page #country-report-competitiveness .headline-domain-score-pair {
    min-width: 0;
  }
}

.index-page .country-report-map-card,
.index-page .country-report-section > .headline-dashboard {
  box-shadow: none;
}

.index-page .country-report-map-card {
  border-color: var(--brand-burgundy);
}

.index-page .headline-domain-score-pair {
  border-color: var(--brand-burgundy);
}

.index-page .headline-domain-score-pair > .is-capacity {
  background: rgb(41 81 254 / 7%);
}

/* The paired health bars preserve exposure and capacity as separate axes. */
.index-page #country-report-labor .headline-domain-score-pair,
.index-page #country-report-fiscal .headline-domain-score-pair,
.index-page #country-report-competitiveness .headline-domain-score-pair {
  grid-template-columns: minmax(0, 1fr);
}

.index-page #country-report-labor .headline-domain-score-pair > .headline-health-bar,
.index-page #country-report-fiscal .headline-domain-score-pair > .headline-health-bar,
.index-page #country-report-competitiveness .headline-domain-score-pair > .headline-health-bar {
  min-width: 0;
  padding: 17px 18px;
}

.index-page #country-report-labor .headline-domain-score-pair > .headline-health-bar + .headline-health-bar,
.index-page #country-report-fiscal .headline-domain-score-pair > .headline-health-bar + .headline-health-bar,
.index-page #country-report-competitiveness .headline-domain-score-pair > .headline-health-bar + .headline-health-bar {
  border-left: 0;
  border-top: 1px solid rgb(245 225 225 / 34%);
}

.index-page #country-report-labor .headline-domain-score-pair .headline-health-bar-evidence,
.index-page #country-report-fiscal .headline-domain-score-pair .headline-health-bar-evidence,
.index-page #country-report-competitiveness .headline-domain-score-pair .headline-health-bar-evidence,
.index-page #country-report-labor .headline-domain-score-pair .headline-health-bar-caption,
.index-page #country-report-fiscal .headline-domain-score-pair .headline-health-bar-caption,
.index-page #country-report-competitiveness .headline-domain-score-pair .headline-health-bar-caption {
  color: var(--brand-pink-light);
}

.index-page #country-report-labor .headline-domain-score-pair .headline-health-bar-evidence > span:last-child,
.index-page #country-report-fiscal .headline-domain-score-pair .headline-health-bar-evidence > span:last-child,
.index-page #country-report-competitiveness .headline-domain-score-pair .headline-health-bar-evidence > span:last-child {
  color: var(--brand-pink-light);
}

/* Framer parity: destinations point forward; overview controls read as commands. */
.index-page:not([data-country-mode="true"]) .country-entry-list button {
  cursor: pointer;
  grid-template-columns: minmax(0, 1fr) auto 18px;
  transition: background-color 160ms ease, transform 160ms ease;
}

.index-page:not([data-country-mode="true"]) .country-entry-list button:hover,
.index-page:not([data-country-mode="true"]) .country-entry-list button:focus-visible {
  transform: translateX(6px);
}

.index-page:not([data-country-mode="true"]) .country-entry-list button::after {
  color: var(--brand-orange);
  content: "\2192";
  font: 700 0.88rem/1 var(--font-ui);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.index-page:not([data-country-mode="true"]) .country-entry-list button:hover::after,
.index-page:not([data-country-mode="true"]) .country-entry-list button:focus-visible::after {
  opacity: 1;
  transform: translateX(0);
}

/* Keep the Framer-derived homepage surface intact before the report begins. */
@media (min-width: 981px) {
  .index-page[data-country-mode="true"] > .app-shell > .map-stage {
    background: var(--surface);
    gap: 0;
    grid-template-rows: auto auto auto minmax(420px, 1fr) auto;
    padding: 0;
  }

  .index-page[data-country-mode="true"] .map-stage > .topbar {
    align-items: center;
    background: var(--brand-pink);
    display: grid;
    gap: clamp(28px, 4vw, 64px);
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    min-height: clamp(380px, 44vh, 410px);
    overflow: hidden;
    padding: clamp(24px, 2.6vw, 36px);
    position: relative;
  }

  .index-page[data-country-mode="true"] .map-stage .brand-heading {
    display: block;
    max-width: 760px;
    position: static;
    z-index: 1;
  }

  .index-page[data-country-mode="true"] .brand-heading::after {
    display: none;
  }

  .index-page[data-country-mode="true"] .brand-mark {
    margin-bottom: 10px;
  }

  .index-page[data-country-mode="true"] .brand-mark img {
    height: clamp(48px, 4.6vw, 70px);
  }

  .index-page[data-country-mode="true"] .map-stage h1 {
    color: var(--brand-pink-light);
    display: block;
    font-size: clamp(3rem, 5.15vw, 5.65rem);
    line-height: 0.92;
    max-width: 720px;
  }

  .index-page[data-country-mode="true"] .map-stage .dek {
    color: var(--brand-pink-light);
    display: block !important;
    font-size: clamp(0.92rem, 1.12vw, 1.05rem);
    line-height: 1.48;
    margin-top: 12px;
    max-width: 650px;
  }

  .index-page[data-country-mode="true"] .map-stage .toolbar {
    align-self: center;
    display: grid;
    min-width: 0;
    position: relative;
    width: 100%;
    z-index: 2;
  }

  .index-page[data-country-mode="true"] .toolbar .page-nav-button {
    border-radius: 1000px;
    box-shadow: none;
    display: inline-flex !important;
    font-size: 0.78rem;
    min-height: 48px;
  }

  .index-page[data-country-mode="true"] .toolbar .scenario-entry-button {
    background: var(--brand-orange);
    border-color: var(--brand-orange);
    color: var(--brand-black);
  }

  .index-page[data-country-mode="true"] .toolbar .dictionary-cta {
    background: var(--brand-black);
    border-color: var(--brand-black);
    color: var(--brand-pink-light);
  }

  .index-page[data-country-mode="true"] .map-stage .search-label {
    color: var(--brand-pink-light);
    display: block !important;
    margin: 8px 0 3px;
  }

  .index-page[data-country-mode="true"] .map-stage #country-search {
    background: var(--brand-pink-light);
    border: 0;
    border-radius: 1000px;
    color: var(--brand-black);
    min-height: 58px;
    padding-inline: 22px;
  }

  .index-page[data-country-mode="true"] .map-stage > .map {
    grid-row: 4;
    margin: clamp(24px, 3vw, 42px) clamp(24px, 3vw, 42px) 16px;
    min-height: 0;
    width: auto;
  }

  .index-page[data-country-mode="true"] .map-stage > .legend {
    grid-row: 5;
    margin: 0 clamp(24px, 3vw, 42px) clamp(22px, 3vw, 38px);
  }
}

.index-page .country-overview-actions {
  gap: 12px;
}

.index-page .country-overview-actions button {
  border-radius: 1000px;
  min-height: 50px;
  padding: 11px 17px;
  transition: background-color 160ms ease, border-color 160ms ease,
    color 160ms ease, transform 160ms ease;
}

.index-page .country-overview-actions button:hover,
.index-page .country-overview-actions button:focus-visible {
  transform: translateY(-1px);
}

.index-page .country-overview-actions button[aria-expanded="true"] {
  background: var(--brand-black);
  border-color: var(--brand-black);
  color: var(--brand-pink-light);
}

.index-page .country-overview-actions button[aria-expanded="true"] b {
  color: var(--brand-orange);
}

/* Shared supporting pages keep the same command hierarchy. */
.dictionary-page .page-nav-button,
.scenarios-page .lab-header nav a {
  border-radius: 1000px;
}

.dictionary-page .dictionary-map-link:first-child,
.scenarios-page .lab-header nav a:first-child {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
  color: var(--brand-black);
}

.dictionary-page input[type="search"],
.dictionary-page select,
.scenarios-page .lab-controls select {
  border-radius: 1000px;
}

@media (max-width: 980px) {
  .index-page:not([data-country-mode="true"]) .map-stage > .topbar {
    background: var(--brand-pink);
    overflow: hidden;
    padding: 26px 22px;
    position: relative;
  }

  .index-page:not([data-country-mode="true"]) .brand-heading {
    padding-right: 0;
  }

  .index-page:not([data-country-mode="true"]) .brand-heading::after {
    display: none;
  }

  .index-page:not([data-country-mode="true"]) h1,
  .index-page:not([data-country-mode="true"]) .dek,
  .index-page:not([data-country-mode="true"]) .search-label {
    color: var(--brand-pink-light);
  }

  .index-page:not([data-country-mode="true"]) .toolbar .page-nav-button,
  .index-page:not([data-country-mode="true"]) #country-search {
    border-radius: 1000px;
  }

}

@media (max-width: 620px) {
  .index-page:not([data-country-mode="true"]) .map-stage > .topbar {
    padding: 22px 16px 26px;
  }

  .index-page:not([data-country-mode="true"]) .brand-heading {
    min-width: 0;
    padding-right: 0;
    width: 100%;
  }

  .index-page:not([data-country-mode="true"]) .brand-mark {
    margin-bottom: 24px;
  }

  .index-page:not([data-country-mode="true"]) .brand-mark img {
    height: 46px;
  }

  .index-page:not([data-country-mode="true"]) h1 {
    font-size: clamp(2.4rem, 13vw, 3.25rem);
    overflow-wrap: anywhere;
  }

  .index-page:not([data-country-mode="true"]) .dek {
    display: block;
    font-size: 0.95rem;
    line-height: 1.48;
  }

  .index-page .country-workspace-actions a {
    border-radius: 1000px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .index-page:not([data-country-mode="true"]) .country-entry-list button,
  .index-page:not([data-country-mode="true"]) .country-entry-list button::after,
  .index-page .country-overview-actions button {
    transition: none;
  }

  .index-page:not([data-country-mode="true"]) .country-entry-list button:hover,
  .index-page:not([data-country-mode="true"]) .country-entry-list button:focus-visible {
    transform: none;
  }

  .index-page .country-overview-actions button:hover,
  .index-page .country-overview-actions button:focus-visible {
    transform: none;
  }
}

/* Country selection appends a report without changing the index chapter above it. */
body.index-page .map-stage .brand-heading h1 {
  font-size: 3rem;
  line-height: 0.92;
  max-width: 520px;
}

@media (max-width: 620px) {
  body.index-page .map-stage .brand-heading h1 {
    font-size: clamp(2.4rem, 13vw, 3.25rem);
    max-width: none;
    overflow-wrap: anywhere;
  }
}
