/* OpenAI typography and approved Marketing / Data Visualization blues. See BRAND-PALETTE.md. */
/* Keep the intended type scale when Safari rotates; browser zoom remains available. */
html { -webkit-text-size-adjust:100%; text-size-adjust:100%; }
.icon-arrow { display:inline-block; width:18px; height:18px; flex:none; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; vertical-align:middle; }
.hero-art-caption .path-arrow { display:block; width:46px; height:12px; flex:none; fill:none; stroke:currentColor; stroke-width:1; stroke-linecap:round; stroke-linejoin:round; }
.resource-card h3 .icon-arrow { width:22px; height:22px; margin-left:8px; transition:transform .25s; }
.resource-card:hover h3 .icon-arrow { transform:translate(3px,-3px); }
.footer-links>a { display:inline-flex; align-items:center; gap:7px; }
@media (max-width:760px) {
  .hero-art-caption .path-arrow { width:35px; height:12px; }
  .read-button .icon-arrow { width:14px; height:14px; }
}
@media (prefers-reduced-motion:reduce) {
  .resource-card h3 .icon-arrow { transition:none; }
}
:root {
  --blue: #2c67c5;
  --ink: #000000;
  --muted: #5d5d5d;
  --ice: #e8f3fe;
  --line: #e8e8e8;
}
.prose,.section-intro .prose,.country-growth .prose,.frontier-chart>.prose,
.prose-offset,.smb-section .prose-light { font-size: 18px; line-height: 1.7; color: #414141; }
.chapter-heading h2,.section-intro :is(h2,h3),.intro-grid h2,.smb-heading :is(h2,h3) {
  font-size:clamp(40px,4.2vw,62px); line-height:1.07; letter-spacing:-.05em;
}
.figure figcaption :is(h3,h4) { font-size:clamp(30px,3vw,42px); }
.eyebrow,.chapter-heading .eyebrow,.figure figcaption .eyebrow,.overview>.eyebrow,.smb-heading .eyebrow { font-size:14px; font-weight:500; letter-spacing:.075em; }
.chapter-number { color: #fff; background: #2c67c5; border-color: #2c67c5; }
.work-section .chapter-number { color: #fff; border-color: #2c67c5; }
.chapter-heading { grid-template-columns:minmax(0,1fr); gap:20px; }
.chapter-number { width:40px; height:40px; margin-top:0; font-size:12px; }
.prose-offset { margin-left:0; }
.figure figcaption>p { font-size: 14px; line-height: 1.6; color: #5d5d5d; }
.figure figcaption :is(h3,h4) { letter-spacing: -.04em; }
.masthead nav a:hover,.masthead nav a.active { color: #2c67c5; box-shadow: 0 2px 0 #2c67c5; }
.read-button:hover { border-color: #2c67c5; color: #2c67c5; }
.segmented button[aria-pressed=true],.figure .segmented button[aria-pressed=true] { background: #2c67c5; color: #fff; }
.segmented { border-color: #cdcdcd; }
.play-timeline { border-color: #cdcdcd; color: #303030; }
.play-timeline:hover,.figure .play-timeline:hover { border-color: #2c67c5; color: #2c67c5; background: #e8f3fe; }
input[type=range] { accent-color: #2c67c5; }
button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible {
  outline-color: #2c67c5;
}
.signal-grid>a { border-top: 2px solid #2c67c5; }
.signal-grid .stat { white-space:nowrap; }
.overview .signal-grid>a:is(:hover,:focus-visible) .stat { color:var(--blue); }
.signal-grid .stat>span { display:inline-block; margin-inline-start:.14em; }
.takeaway-label { color: #2c67c5; font-size: 12px; line-height:1.5; }
.stat-note { color: #5d5d5d; font-size: 11px; }
.signal-grid>a:hover .stat-note b { color: #2c67c5; }
.atlas-section,.work-section { background: #f6fafe; }
.reader-body p { font-size: 16px; }
.task-caption { font-size:13px; line-height:1.65; color:#5d5d5d; }
.closing .prose-light { font-size: 18px; }
.resource-card { border-top:2px solid #2c67c5; }
.resource-card p { font-size:14px; }
.resource-kicker { font-size:11px; letter-spacing:.065em; }
.atlas-controls select,.sort-inline select,.task-country-side select { min-height:42px; appearance:none; -webkit-appearance:none; padding-right:42px; background-image: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='%235d5d5d' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-position:right 15px center; background-size:12px 8px; background-repeat:no-repeat; }
.atlas-section,.work-section,.smb-section { padding-top:88px; }
.frontier-section { padding-top:88px; }

/* Let the chapter headline introduce the story; the figure carries the statistic. */
.smb-heading { display:block; max-width:850px; }
.smb-heading .eyebrow { margin-bottom:22px; }
.smb-heading :is(h2,h3) { max-width:850px; }
.smb-section .prose-light a { color:#2c67c5; text-decoration-color:#2c67c570; text-underline-offset:3px; }

/* Give the selected country's name, percentage and reporting period room to read. */
.country-heading { display:grid; grid-template-columns:minmax(0,max-content) max-content; justify-content:start; gap:20px; align-items:end; padding-top:18px; }
.country-heading>div:first-child { min-width:0; }
.country-heading .flag-country-name { line-height:1.15; }
.country-heading>div:first-child small { max-width:22ch; margin-top:10px; line-height:1.55; }
.country-heading>div:last-child { min-width:0; padding-left:20px; border-left:1px solid var(--line); text-align:left; white-space:nowrap; letter-spacing:-.045em; line-height:1.1; }
.country-heading>div:last-child>span { margin-left:.1em; letter-spacing:-.02em; }
.country-heading>div:last-child small { margin-top:10px; text-align:left; }

/* A full-width comparison with a permanent EU focal row; all tracks share one scale. */
.regional-layout { display:block; margin:34px 0 0; }
.region-chart { width:100%; padding:10px 0; }
.region-row { grid-template-columns:220px minmax(0,1fr) 80px; gap:24px; margin-bottom:24px; font-size:16px; }
.region-row strong { font-size:16px; }
.region-row.eu { position:relative; min-height:78px; padding:22px 20px; margin-inline:-20px; background:#e8f3fe; border:0; box-shadow:inset 0 0 0 1px #2c67c5; border-radius:8px; color:#2c67c5; font-size:20px; }
.region-row.eu>span:first-child { font-weight:600; }
.region-row.eu .region-bar { height:24px; background:#d1e5fd; }
.region-row.eu strong { font-size:28px; font-weight:600; }
.region-definition { margin-top:8px; max-width:780px; font-size:13px; line-height:1.6; color:var(--muted); }
.frontier-chart .chart-topline { justify-content:flex-end; }
.timeline-metric>.timeline-label { display:flex; flex-direction:column; gap:4px; max-width:none; }
.timeline-label b { color:var(--ink); font-size:16px; font-weight:600; line-height:1.25; }
.timeline-label small { font-size:12px; line-height:1.4; color:var(--muted); }

/* Clarity is the approved Marketing blue; small labels use black as in the brand color examples. */
.hero {
  background: #0285ff;
  color: #fff;
  min-height: 630px;
  grid-template-columns: 1fr 1.05fr;
  column-gap: 35px;
  padding-top: 65px;
  padding-bottom: 65px;
}
.hero .eyebrow { color: #000000; opacity: 1; font-size:15px; font-weight:500; letter-spacing:.075em; }
.hero h1 { color: #fff; }
.hero h1 + .pill { margin-top:32px; }
.hero-title-continuation { display:block; margin-top:22px; font-size:clamp(32px,3vw,42px); font-weight:400; line-height:1.14; letter-spacing:-.035em; }
.hero-subtitle { color:#020d18; font-size:20px; font-weight:400; line-height:1.5; letter-spacing:-.015em; max-width:510px; margin:24px 0 30px; }
.hero-deck { color: #020d18; }
.hero .light-pill { color: #1f4e94; background: #fff; }
.hero .light-pill:hover { color: #000000; background: #fff; }
.hero :focus-visible { outline-color: #fff; }
.hero-art { max-width: 690px; justify-self: center; }
.hero-illustration {
  aspect-ratio: 1.4;
  background-image: url('assets/illustrations/agentic-work.png');
  transform-origin: 48% 60%;
  animation: editorial-arrive 1.25s cubic-bezier(.2,.65,.25,1) .12s both;
}
.hero-art-caption { color: #000000; font-size:13px; font-weight:500; letter-spacing: .1em; margin-top: 6px; }
.hero-art-caption i { background: #020d18; }
.hero-bottom { color: #020d18; border-color: #ffffff40; }
.hero-bottom a:hover { color: #fff; }
.hero-copy .eyebrow { animation: editorial-copy .7s both; }
.hero h1 { animation: editorial-copy .9s .08s both; }
.hero-subtitle, .hero-deck, .hero .pill { animation: editorial-copy .9s .18s both; }

/* Treat the selected activity as a full editorial plate. */
.work-section { background: #f6fafe; }
.work-section .task-detail { padding-left: 36px; }
.task-story { grid-template-columns: minmax(200px,1.05fr) minmax(220px,1fr); gap: 32px; }
.task-story { animation: none; }
.task-art-stage { padding: 7px; }
.task-artwork { mix-blend-mode: normal; animation: editorial-copy .55s both; }
.task-story-copy { animation: editorial-copy .4s .08s both; }
.task-lift>strong { color: #2c67c5; }
.task-detail .task-story h4 { font-size: clamp(27px,2.5vw,37px); }
.work-section .task-chip { background: transparent; border-color: #cdcdcd; }
.work-section .task-country-list { grid-template-columns:repeat(4,minmax(0,1fr)); gap:9px; justify-items:start; }
.work-section .task-chip { display:grid; place-items:center; width:100%; max-width:44px; height:auto; aspect-ratio:1; padding:0; border-radius:50%; line-height:1; }
.work-section .task-chip:hover { background: #fff; border-color: #2c67c5; color: #2c67c5; }
.work-section .task-chip[aria-pressed=true],
.work-section .task-chip[aria-pressed=true]:hover { background: #2c67c5; border-color: #2c67c5; color: #fff; }
.work-section .task-chip.unavailable[aria-pressed=true],
.work-section .task-chip.unavailable[aria-pressed=true]:hover { background: #5d5d5d; border-color: #5d5d5d; color: #fff; }

@keyframes editorial-arrive {
  from { opacity: 0; transform: translateY(26px) rotate(-3deg) scale(.93); }
  to { opacity: 1; transform: none; }
}
@keyframes editorial-copy {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@media (min-width:1101px) and (max-width:1250px) {
  .masthead { padding-inline: 24px; gap: 16px; }
  .masthead nav { font-size: 14px; gap: 16px; }
  .brand span { font-size: 16px; }
  .brand-logo { width: 100px; }
}
@media (min-width:761px) and (max-width:1100px) {
  .masthead { height:123px; flex-wrap:wrap; justify-content:space-between; padding:18px 32px 0; gap:10px; }
  .masthead nav { order:3; width:100%; justify-content:space-between; font-size:14px; }
  .brand span { font-size:17px; }
  html { scroll-padding-top:140px; }
}
@media (max-width:1100px) {
  .hero { column-gap: 20px; }
  .task-story { gap: 20px; grid-template-columns: minmax(170px,1fr) minmax(210px,1fr); }
  .work-section .task-detail { padding-left: 25px; }
}
@media (max-width:850px) {
  .task-story { grid-template-columns: 1fr; }
  .task-art-stage { max-width: 300px; }
}
@media (max-width:760px) {
  .prose,.section-intro .prose,.country-growth .prose,.frontier-chart>.prose,
  .prose-offset,.smb-section .prose-light { font-size:16px; line-height:1.7; }
  .chapter-heading h2,.section-intro :is(h2,h3),.intro-grid h2 { font-size:38px; }
  .chapter-heading { gap:16px; }
  .chapter-number { width:32px; height:32px; font-size:10px; }
  .smb-heading :is(h2,h3) { font-size:32px; line-height:1.14; }
  .smb-heading .eyebrow { max-width:none; }
  .figure figcaption :is(h3,h4) { font-size:30px; }
  .atlas-section,.work-section,.smb-section,.frontier-section { padding-top:56px; }
  .eyebrow,.chapter-heading .eyebrow,.figure figcaption .eyebrow,.overview>.eyebrow,.smb-heading .eyebrow,.hero .eyebrow { font-size:12px; }
  .hero .eyebrow { font-size:13px; }
  .figure figcaption>p { font-size:12px; }
  .takeaway-label { font-size:11px; }
  .signal-grid>a { grid-template-rows:auto auto; gap:10px 20px; }
  .signal-grid .stat,.overview .signal-grid>a:nth-child(2) .stat,.overview .signal-grid>a:nth-child(3) .stat { grid-row:2; align-self:center; }
  .signal-grid .stat-label { margin-top:0; align-self:center; }
  .stat-note { font-size:9px; }
  .task-caption { font-size:12px; }
  .closing .prose-light { font-size:16px; }
  .resource-card p { font-size:12px; }
  .resource-kicker { font-size:10px; }
  .reader-body p { font-size:15px; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding: 39px 24px 40px; }
  .hero h1 { font-size: clamp(61px,18vw,85px); }
  .hero-title-continuation { margin-top:20px; font-size:clamp(28px,7vw,32px); }
  .hero-subtitle { font-size:18px; line-height:1.5; max-width:420px; margin:22px 0 27px; }
  .hero-deck { font-size: 14px; }
  .hero-art { margin-top: 20px; max-width: 430px; }
  .hero-illustration { aspect-ratio: 1.3; }
  .hero-art-caption { font-size:12px; margin-top: 3px; }
  .hero-bottom { bottom: 21px; }
  .work-section .task-detail { padding-left: 0; }
  .work-section .task-country-list { grid-template-columns:repeat(auto-fill,minmax(40px,1fr)); gap:8px; }
  .country-heading { gap:16px; }
  .country-heading strong { font-size:24px; }
  .country-heading>div:last-child { min-width:0; padding-left:16px; font-size:40px; }
  .country-heading>div:first-child small { max-width:21ch; }
  .region-row { grid-template-columns:110px minmax(0,1fr) 50px; gap:12px; font-size:12px; }
  .region-row strong { font-size:13px; }
  .region-row.eu { min-height:65px; padding:18px 14px; margin-inline:-14px; font-size:14px; }
  .region-row.eu .region-bar { height:20px; }
  .region-row.eu strong { font-size:22px; }
  .region-definition { font-size:12px; }
  .frontier-chart .chart-topline { align-items:flex-end; }
  .timeline-label b { font-size:14px; }
  .timeline-label small { font-size:11px; }
  .task-art-stage { max-width: 325px; padding: 0; }
  .task-detail .task-story h4 { font-size: 34px; }
}
html[data-motion="paused"] .hero-illustration,
html[data-motion="paused"] .hero-copy .eyebrow,
html[data-motion="paused"] .hero h1,
html[data-motion="paused"] .hero-subtitle,
html[data-motion="paused"] .hero-deck,
html[data-motion="paused"] .hero .pill { animation: none; }
html[data-motion="paused"] .task-story-copy { animation: none; }
@media (prefers-reduced-motion:reduce) {
  .hero-illustration, .hero-copy .eyebrow, .hero h1,
  .hero-subtitle, .hero-deck, .hero .pill, .task-story-copy, .task-artwork { animation: none; }
}

/* Country growth rows are comparisons, not persistent selection controls. */
.growth-row { cursor:default; }
@media (hover:none) {
  .growth-row:hover { color:var(--ink); }
  .growth-row:hover>i>b { background:#539af8; }
}

/* OpenAI leads; Economic Research is a smaller, secondary signature. */
.brand,.footer-brand { display:flex; align-items:center; gap:11px; flex-shrink:0; }
.brand .brand-logo,.footer-brand>img,.brand .research-wordmark img,.footer-brand .research-wordmark img { display:block; height:18px; width:auto; max-width:none; flex:none; }
.brand .research-wordmark img,.footer-brand .research-wordmark img { height:12px; }
.research-wordmark { display:flex; align-items:center; min-height:14px; padding-left:11px; border-left:1px solid #cdcdcd; }
@media (min-width:761px) and (max-width:1390px) {
  .masthead { height:123px; flex-wrap:wrap; justify-content:space-between; padding:18px 32px 0; gap:10px; }
  .masthead nav { order:3; width:100%; justify-content:space-between; font-size:14px; }
  html { scroll-padding-top:140px; }
}
@media (max-width:760px) {
  .brand,.footer-brand { gap:9px; }
  .brand .brand-logo,.footer-brand>img,.brand .research-wordmark img,.footer-brand .research-wordmark img { height:14px; }
  .brand .research-wordmark img,.footer-brand .research-wordmark img { height:10px; }
  .research-wordmark { padding-left:9px; }
}
@media (max-width:380px) {
  .masthead { padding-inline:16px; }
  .brand,.footer-brand { gap:8px; }
  .brand .brand-logo,.footer-brand>img,.brand .research-wordmark img,.footer-brand .research-wordmark img { height:12px; }
  .brand .research-wordmark img,.footer-brand .research-wordmark img { height:9px; }
  .research-wordmark { padding-left:8px; }
  .read-button { font-size:9px; padding:9px; gap:4px; }
  .country-heading { gap:12px; }
  .country-heading strong { font-size:21px; }
  .country-heading>div:last-child { padding-left:12px; font-size:34px; }
}

/* Mobile reading: a compact pinned header and comfortable controls. */
@media screen and (max-width:760px) {
  :root { --mobile-header-height:calc(64px + env(safe-area-inset-top, 0px)); }
  body { padding-top:var(--mobile-header-height); }
  html { scroll-padding-top:calc(var(--mobile-header-height) + 16px); }
  .masthead { position:fixed; inset:0 0 auto; width:100%; height:var(--mobile-header-height); display:grid; grid-template-columns:minmax(0,1fr) auto; grid-template-rows:44px; align-content:start; align-items:center; gap:0 8px; padding:calc(8px + env(safe-area-inset-top, 0px)) 16px 0; overflow:visible; background:#fff; backdrop-filter:none; -webkit-backdrop-filter:none; z-index:80; }
  .masthead .brand { min-width:0; }
  .masthead .read-button { min-height:40px; font-size:11px; padding:9px 12px; gap:6px; }
  .masthead nav { grid-column:1/-1; grid-row:2; order:0; width:100%; display:grid; grid-template-columns:max-content max-content; justify-content:space-between; align-content:center; gap:0 18px; overflow:visible; font-size:13px; padding:0; }
  .masthead nav a { display:flex; align-items:center; min-height:44px; padding:0; width:max-content; }
  .masthead nav a.active,.masthead nav a:hover { box-shadow:none; text-decoration:underline; text-decoration-thickness:2px; text-underline-offset:7px; }
  .figure { scroll-margin-top:0; }
  .signal-grid>a { grid-template-columns:minmax(max-content,1fr) minmax(0,1fr); column-gap:18px; }
  .signal-grid .stat,.overview .signal-grid>a:nth-child(2) .stat,.overview .signal-grid>a:nth-child(3) .stat { font-size:clamp(48px,15vw,68px); }
  .stat-label { font-size:16px; line-height:1.45; }
  .timeline-metric .timeline-kicker { font-size:11px; letter-spacing:.06em; }
  .timeline-label b { font-size:16px; }
  .timeline-label small,.timeline-metric>span:last-child { font-size:12px; }
  .play-timeline,.segmented button { min-height:44px; font-size:12px; }
  .play-timeline { padding:10px 14px; }
  .scrubber { gap:4px 12px; padding:14px 0 6px; }
  .scrubber label,.scrubber output { font-size:12px; line-height:1.5; }
  .scrubber input { appearance:none; -webkit-appearance:none; display:block; width:100%; min-width:0; height:44px; margin:0; padding:0; background:transparent; cursor:pointer; }
  .scrubber input::-webkit-slider-runnable-track { height:4px; background:#d1e5fd; border-radius:3px; }
  .scrubber input::-webkit-slider-thumb { appearance:none; -webkit-appearance:none; width:22px; height:22px; border:3px solid #fff; border-radius:50%; background:#2c67c5; box-shadow:0 0 0 1px #2c67c5; margin-top:-9px; }
  .scrubber input::-moz-range-track { height:4px; background:#d1e5fd; border-radius:3px; }
  .scrubber input::-moz-range-thumb { width:18px; height:18px; border:3px solid #fff; border-radius:50%; background:#2c67c5; box-shadow:0 0 0 1px #2c67c5; }
  .atlas-controls { display:grid; grid-template-columns:1fr; gap:16px; }
  .atlas-controls label { min-width:0; font-size:12px; }
  .atlas-controls select,.sort-inline select,.task-country-side select { width:100%; min-width:0; min-height:48px; font-size:16px; }
  .period-label { font-size:10px; margin:0; }
  .sort-inline { display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; gap:12px; width:100%; font-size:12px; }
  .sort-inline select { margin-left:0; }
  .task-country-side>label { font-size:12px; }
  .work-section .task-country-list { grid-template-columns:repeat(auto-fill,minmax(44px,1fr)); gap:8px; }
  .work-section .task-chip { width:44px; height:44px; font-size:12px; }
  .country-heading { grid-template-columns:minmax(0,1fr) max-content; gap:12px; }
  .country-heading strong { font-size:clamp(20px,6vw,24px); }
  .country-heading .flag-country-name { gap:8px; overflow-wrap:anywhere; }
  .country-heading>div:last-child { padding-left:12px; }
  .country-heading small { font-size:11px; }
  .country-ranking { -webkit-overflow-scrolling:touch; }
  .rank-row { min-height:48px; font-size:14px; grid-template-columns:minmax(124px,1fr) minmax(32px,.7fr) 44px; gap:9px; }
  .rank-row strong { font-size:13px; }
  .region-row { font-size:14px; line-height:1.45; }
  .region-row.eu { font-size:16px; }
  .comparison-stat p { font-size:12px; line-height:1.6; }
  .comparison-stat p span { font-size:11px; }
  .motion-toggle { position:static; order:3; z-index:auto; min-height:44px; font-size:12px; padding:11px 16px; backdrop-filter:none; box-shadow:none; }
  .footer-links { flex-wrap:wrap; gap:8px 24px; font-size:12px; }
  .footer-links>a,.footer-links>button { display:inline-flex; align-items:center; min-height:44px; font-size:12px; }
  footer { padding-bottom:calc(28px + env(safe-area-inset-bottom, 0px)); gap:16px; }
  #reader-dialog,#definitions-dialog { max-height:calc(100dvh - 24px); width:calc(100% - 24px); max-width:none; margin:auto; }
  .reader-toolbar { padding:12px 16px; gap:12px; }
  .reader-toolbar button { min-height:44px; }
  .reader-body { padding:20px 20px 32px; }
}
@media screen and (max-width:360px) {
  .masthead nav { font-size:12px; gap:0 12px; }
  .masthead .read-button { font-size:10px; padding:9px; }
  .wrap { padding-inline:20px; }
  .hero { padding-inline:20px; }
  .hero h1 { font-size:58px; }
  .country-heading .country-flag { width:26px; height:26px; }
  .country-heading>div:last-child { font-size:34px; padding-left:10px; }
  .country-heading>div:last-child small { max-width:84px; white-space:normal; }
  .chapter-heading h2 { font-size:34px; }
  .task-detail .task-story h4 { font-size:30px; }
  .resource-card { gap:16px; }
  .resource-card h3 { font-size:22px; }
  .resource-card>img { width:84px; height:84px; }
}

/* Let narrow screens choose the line endings instead of inheriting desktop breaks. */
@media screen and (max-width:760px) {
  main h2,main h3,main h4 { text-wrap:balance; }
  main h2 br,.figure :is(h3,h4) br { display:none; }
  .figure figcaption>p,.stat-label,.prose p,.resource-card p { text-wrap:pretty; }
  .figure figcaption .eyebrow { text-wrap:balance; }
}
@media screen and (min-width:761px) and (max-width:1390px) {
  body { padding-top:123px; }
  .masthead { position:fixed; inset:0 0 auto; width:100%; background:#fff; backdrop-filter:none; -webkit-backdrop-filter:none; }
  .figure { scroll-margin-top:0; }
}
@media screen and (max-width:760px) {
  .figure figcaption>p { font-size:14px; line-height:1.6; }
  .country-heading>div:last-child small { max-width:none; white-space:nowrap; font-size:10px; }
}
.product-phrase { white-space:nowrap; }

/* A compact mobile disclosure keeps the report in view. */
.nav-toggle,.nav-backdrop { display:none; }
.header-menu { display:contents; }
.header-menu[hidden],.nav-backdrop[hidden] { display:none; }
@media screen and (max-width:760px) {
  .masthead { padding-bottom:11px; }
  .nav-toggle { display:grid; place-items:center; width:44px; height:44px; padding:10px; border-radius:50%; color:#000000; justify-self:end; }
  .nav-toggle:hover,.nav-toggle[aria-expanded=true] { background:#e8f3fe; color:#2c67c5; }
  .nav-toggle-icon { display:flex; flex-direction:column; gap:5px; width:22px; }
  .nav-toggle-icon i { display:block; height:1.5px; width:22px; background:currentColor; border-radius:1px; transition:transform .18s ease,opacity .18s ease; }
  .nav-toggle[aria-expanded=true] i:first-child { transform:translateY(6.5px) rotate(45deg); }
  .nav-toggle[aria-expanded=true] i:nth-child(2) { opacity:0; }
  .nav-toggle[aria-expanded=true] i:last-child { transform:translateY(-6.5px) rotate(-45deg); }
  .header-menu { display:flex; position:absolute; top:100%; left:0; right:0; z-index:2; flex-direction:column; gap:24px; padding:12px 24px 28px; max-height:calc(100dvh - var(--mobile-header-height)); overflow-y:auto; overscroll-behavior:contain; background:#fff; border-bottom:1px solid #e8e8e8; box-shadow:0 16px 24px -24px #1114; animation:navigation-arrive .18s ease-out; }
  .masthead .header-menu nav { display:flex; flex-direction:column; align-items:stretch; gap:0; width:100%; padding:0; font-size:20px; }
  .masthead .header-menu nav a { display:flex; width:100%; min-height:60px; padding:17px 0; line-height:1.3; border-bottom:1px solid #e8e8e8; color:#000000; }
  .masthead .header-menu nav a.active,.masthead .header-menu nav a:hover { color:#2c67c5; text-decoration:none; box-shadow:none; }
  .masthead .header-menu nav a.active::after { content:''; width:7px; height:7px; margin-left:auto; margin-right:4px; border-radius:50%; background:currentColor; align-self:center; flex:none; }
  .masthead .header-menu .read-button { justify-content:space-between; width:100%; min-height:50px; padding:14px 20px; border:1px solid #2c67c5; background:#2c67c5; color:#fff; font-size:15px; }
  .masthead .header-menu .read-button:hover { background:#1f4e94; }
  .masthead .header-menu .read-button .icon-arrow { width:18px; height:18px; }
  .nav-backdrop { display:block; position:fixed; inset:var(--mobile-header-height) 0 0; z-index:1; background:#11111126; }
}
@keyframes navigation-arrive { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:none; } }
@media (prefers-reduced-motion:reduce) { .header-menu { animation:none; } .nav-toggle-icon i { transition:none; } }

html[data-motion="paused"] .header-menu { animation:none; }
html[data-motion="paused"] .nav-toggle-icon i { transition:none; }

/* Keep the metric explanation attached to the number and the period to the country. */
.country-heading { align-items:start; }
.country-heading>div:first-child { padding-top:8px; }
.country-heading>div:last-child .country-metric-label { width:150px; max-width:none; white-space:normal; font-size:11px; line-height:1.5; letter-spacing:0; }
.rank-scroll-hint { font-size:12px; line-height:1.5; margin-top:12px; }
.growth-row>i { background:transparent; }
@media screen and (max-width:760px) {
  .country-heading>div:first-child { padding-top:5px; }
  .country-heading>div:last-child .country-metric-label { width:112px; font-size:10px; }
}
@media screen and (max-width:360px) {
  .country-heading strong { font-size:18px; }
  .country-heading>div:last-child .country-metric-label { width:100px; }
}

/* A short, wide phone viewport needs a compact country summary and map. */
@media screen and (orientation:landscape) and (min-width:480px) and (max-width:1100px) and (max-height:600px) {
  .country-heading { grid-template-columns:minmax(0,max-content) max-content; justify-content:start; column-gap:20px; }
  .atlas-map-side { position:static; }
  .atlas-map-side #country-map { width:100%; max-width:clamp(240px,70svh,360px); min-height:0; margin:8px auto 0; }
  .rank-scroll-hint { font-size:12px; line-height:1.5; }
}

/* Keep the report's full wording within the established editorial hierarchy. */
.intro-grid,.section-intro { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
.intro-grid .intro-lead {
  color:var(--ink); font-size:clamp(38px,4.2vw,62px); font-weight:500;
  line-height:1.12; letter-spacing:-.045em; text-wrap:balance;
}
.chapter-heading h2,.section-intro :is(h2,h3),.smb-heading :is(h2,h3) {
  max-width:28ch; text-wrap:balance; overflow-wrap:normal;
}
.figure figcaption :is(h3,h4) { max-width:42ch; line-height:1.18; text-wrap:balance; }
.figure figcaption>p,.intro-grid .prose p,.report-followup p,.report-note { text-wrap:pretty; }
.atlas-section .atlas-figure { margin-top:0; }
.atlas-figure .atlas-controls { margin-top:28px; }
.report-followup.prose,.smb-section .prose-light.report-followup,
.country-growth .prose.report-followup,.frontier-chart>.prose.report-followup {
  max-width:800px; margin:32px 0 0;
}
.section-intro.report-followup { margin-top:48px; }
.report-note,.prose .report-note {
  display:block; max-width:850px; margin:18px 0 0;
  color:var(--muted); font-size:14px; line-height:1.65; letter-spacing:0;
}
.report-note a { color:var(--blue); text-decoration:underline; text-decoration-color:#2c67c570; text-underline-offset:3px; }
@media screen and (max-width:760px) {
  .intro-grid,.section-intro { grid-template-columns:minmax(0,1fr); }
  .intro-grid .intro-lead { font-size:clamp(32px,8.2vw,38px); line-height:1.15; }
  .chapter-heading h2,.section-intro :is(h2,h3),.smb-heading :is(h2,h3) { line-height:1.14; }
  .figure figcaption :is(h3,h4) { font-size:clamp(27px,6.8vw,30px); line-height:1.2; }
  .report-followup.prose,.smb-section .prose-light.report-followup,
  .country-growth .prose.report-followup,.frontier-chart>.prose.report-followup { margin-top:26px; }
  .section-intro.report-followup { margin-top:36px; gap:24px; }
  .atlas-figure .atlas-controls { margin-top:24px; }
  .report-note,.prose .report-note { font-size:13px; line-height:1.65; margin-top:16px; }
}

/* Preserve figure styling while nesting SMB figures under their subsection. */
.figure figcaption h4 { margin:0; font-weight:500; }

/* The approved three-line title keeps its longest word within the hero column. */
.hero h1 { font-size:clamp(56px,6.5vw,102px); }
@media(max-width:760px) {
  .hero h1 { font-size:clamp(50px,14.2vw,82px); }
}

/* Reader notes keep body size; figure notes have a quieter, consistent hierarchy. */
.report-note,.prose .report-note,.region-definition,
.task-caption,.prose.task-caption p,.reader-body .reader-note {
  font-size:1rem; line-height:1.6; color:#5d5d5d; letter-spacing:0;
}
.figure .report-note,.figure .region-definition,.figure .task-caption p { font-size:14px; }
.region-definition + .report-note { margin-top:8px; }
.task-caption { max-width:75ch; }
/* Compact paired findings: the qualifier sits above the metric, never on its baseline. */
.comparison-summary { margin:24px 0 32px; border-top:1px solid var(--line); padding-top:24px; }
.comparison-period { font-size:.875rem; line-height:1.5; font-weight:500; color:#5d5d5d; margin:0 0 20px; }
.comparison-stat { grid-template-columns:repeat(2,minmax(0,1fr)); border:0; padding:0; margin:0; gap:40px; }
.comparison-stat > div { display:block; max-width:none; min-width:0; }
.comparison-stat > div + div { border-left:1px solid var(--line); padding-left:40px; }
.comparison-stat > div > p:first-child {
  display:grid; grid-template-columns:max-content minmax(0,1fr);
  gap:16px 24px; align-items:center; margin:0;
  color:var(--ink); font-size:1rem; line-height:1.5;
}
.comparison-stat .comparison-subject {
  display:block; grid-column:1/-1; font-size:1.0625rem; font-weight:500;
  line-height:1.4; letter-spacing:-.015em; color:var(--ink);
}
.comparison-stat strong {
  display:block; align-self:start; margin:0; color:var(--ink);
  font-size:clamp(52px,4.5vw,64px); line-height:1; letter-spacing:-.045em;
  font-weight:500; font-variant-numeric:tabular-nums; white-space:nowrap;
}
.comparison-stat strong .comparison-more {
  display:block; margin-bottom:6px; font-size:.875rem; line-height:1.35;
  font-weight:400; letter-spacing:0; color:#5d5d5d;
}
.comparison-stat .comparison-detail {
  display:block; font-size:1rem; line-height:1.5; letter-spacing:0; color:#5d5d5d;
}
.comparison-stat .comparison-detail b { font-weight:500; color:var(--ink); }
.comparison-stat .comparison-scope { margin:16px 0 0; font-size:.875rem; line-height:1.5; color:#5d5d5d; }
@media(max-width:900px) {
  .comparison-stat { grid-template-columns:minmax(0,1fr); gap:24px; }
  .comparison-stat > div + div { padding:24px 0 0; border-left:0; border-top:1px solid var(--line); }
  .comparison-stat > div > p:first-child { grid-template-columns:max-content minmax(0,1fr); gap:14px 20px; }
  .comparison-stat strong { font-size:56px; min-width:88px; }
}
@media(max-width:380px) {
  .comparison-stat > div > p:first-child { gap:14px 16px; }
  .comparison-stat strong { font-size:50px; min-width:76px; }
}

/* A black editorial close, with onward links in their own white section. */
.closing { background:#000; color:#fff; padding:88px 0 96px; }
.closing h2.closing-label {
  margin:0 0 32px; color:#fff; font-size:14px; font-weight:500;
  line-height:1.5; letter-spacing:.075em; text-transform:uppercase;
}
.closing-statement { max-width:1060px; }
.closing-statement p { margin:0; color:#fff; text-wrap:pretty; }
.closing-statement .closing-intro {
  max-width:54ch; margin-bottom:28px; font-size:20px; line-height:1.5;
  font-weight:400; letter-spacing:-.01em;
}
.closing-statement .closing-takeaway {
  font-size:clamp(32px,3.5vw,50px); font-weight:500;
  line-height:1.16; letter-spacing:-.04em;
}
.closing-statement .closing-support {
  max-width:74ch; margin-top:32px; font-size:19px; line-height:1.6;
  font-weight:400; letter-spacing:-.01em;
}
.report-resources { padding:64px 0 72px; background:#f7f7f7; color:#000; }
.report-resources .closing-resources {
  grid-template-columns:repeat(2,minmax(0,1fr)); gap:48px; margin:0;
}
.report-resources .resource-card {
  border-top:0; padding-top:0; gap:24px;
  align-items:center; color:#000;
}
.report-resources .resource-kicker {
  color:#5d5d5d; font-size:12px; font-weight:500; line-height:1.5; letter-spacing:.065em;
}
.report-resources .resource-card h3 {
  margin-top:12px; font-size:28px; line-height:1.2; letter-spacing:-.035em;
  white-space:normal; text-wrap:balance;
}
.report-resources .resource-card p { margin-top:10px; font-size:16px; line-height:1.5; color:#5d5d5d; }
.report-resources .resource-card > img { width:104px; height:104px; padding:0; border-radius:0; }
@media(max-width:1000px) {
  .report-resources .closing-resources { grid-template-columns:minmax(0,1fr); gap:32px; }
}
@media(max-width:760px) {
  .closing { padding:52px 0 60px; }
  .closing h2.closing-label { margin-bottom:24px; }
  .closing-statement .closing-intro { margin-bottom:24px; font-size:18px; line-height:1.5; }
  .closing-statement .closing-takeaway { font-size:clamp(28px,7.5vw,38px); line-height:1.2; letter-spacing:-.03em; }
  .closing-statement .closing-support { margin-top:28px; font-size:17px; line-height:1.6; }
  .report-resources { padding:40px 0 48px; }
  .report-resources .resource-card { gap:20px; }
  .report-resources .resource-card h3 { font-size:24px; }
  .report-resources .resource-card > img { width:88px; height:88px; }
}
@media(max-width:380px) {
  .report-resources .resource-card { gap:16px; }
  .report-resources .resource-card h3 { font-size:22px; }
  .report-resources .resource-card > img { width:76px; height:76px; }
}
@media print { .report-resources { display:none; } }

/* Give a chapter title breathing room before an immediately following figure rule. */
.chapter-heading + .figure { margin-top:40px; }
@media(max-width:760px) {
  .chapter-heading + .figure { margin-top:32px; }
}

/* The closing quotation is an editorial moment, separate from the resource links. */
.report-pullquote { background:#fff; color:#000; padding:96px 0; }
.pullquote-figure { margin-block:0; }
.pullquote-figure blockquote { max-width:1000px; margin:0; padding:0; border:0; }
.pullquote-figure blockquote p {
  margin:0; font-size:clamp(26px,3vw,38px); font-weight:400;
  line-height:1.35; letter-spacing:-.025em; text-wrap:pretty;
}
.pullquote-figure figcaption {
  margin-top:28px; font-size:16px; font-weight:500; line-height:1.6;
  letter-spacing:0; color:#5d5d5d;
}
.pullquote-attribution { display:flex; align-items:center; gap:18px; }
.pullquote-headshot {
  display:block; width:76px; height:76px; flex:none; border-radius:50%;
  object-fit:cover;
}
.pullquote-attribution > span { display:block; min-width:0; }
.pullquote-attribution strong { display:block; color:#000; font-size:18px; font-weight:500; }
.pullquote-attribution > span > span { display:block; margin-top:2px; font-weight:400; }
.reader-quote { margin:32px 0 16px; padding:0; border:0; }
.reader-body .reader-quote p { font-size:22px; line-height:1.45; letter-spacing:-.02em; }
.reader-body .reader-quote-attribution { color:#5d5d5d; margin-top:0; }
@media(max-width:760px) {
  .report-pullquote { padding:56px 0 64px; }
  .pullquote-figure blockquote p { font-size:clamp(24px,6.1vw,30px); line-height:1.4; }
  .pullquote-figure figcaption { margin-top:24px; font-size:16px; }
  .pullquote-attribution { gap:16px; }
  .pullquote-headshot { width:64px; height:64px; }
}

/* Compact legal footer, following the Deployment Safety mini-footer pattern. */
.site-footer { display:block; padding:32px 40px; }
.footer-main,.footer-tools,.footer-legal,.footer-legal nav {
  display:flex; align-items:center; flex-wrap:wrap; gap:16px 32px;
}
.footer-main,.footer-legal { justify-content:space-between; }
.footer-tools { justify-content:flex-end; }
.site-footer .footer-links { width:auto; flex-wrap:wrap; justify-content:flex-start; gap:8px 24px; }
.site-footer .footer-links > a,.site-footer .footer-links > button {
  display:inline-flex; align-items:center; min-height:44px; font-size:12px;
}
.footer-motion { min-width:144px; min-height:44px; }
.site-footer .motion-toggle {
  position:static; min-height:44px; font-size:12px; padding:11px 16px;
  white-space:nowrap; backdrop-filter:none; box-shadow:none;
}
.footer-legal { margin-top:24px; font-size:12px; line-height:1.5; }
.footer-legal p { margin:0; color:#5d5d5d; }
.footer-legal nav { gap:8px 24px; }
.footer-legal a { display:inline-flex; align-items:center; min-height:44px; text-decoration:none; }
.footer-legal a:hover { text-decoration:underline; text-underline-offset:4px; }
@media(min-width:761px) {
  .site-footer .motion-toggle.is-floating {
    position:fixed; right:18px; bottom:18px; z-index:30;
    backdrop-filter:blur(16px); box-shadow:0 3px 15px #00000008;
  }
}
@media(max-width:760px) {
  .site-footer { padding:28px 24px calc(28px + env(safe-area-inset-bottom, 0px)); }
  .footer-main { align-items:flex-start; gap:20px; }
  .footer-tools { width:100%; justify-content:flex-start; gap:8px 24px; }
  .footer-legal { align-items:flex-start; flex-direction:column; gap:4px; margin-top:20px; }
}
@media(prefers-reduced-motion:reduce) { .footer-motion { display:none; } }
