/* ============================================================
   REH 2026 — site.css
   Full layout system for the Real Estate Highlights microsite.
   Implements every class in CONVENTIONS.md.
   No external fonts. No CDN. Works from file://.
   KF rules: border-radius:0, no box-shadow, Georgia serif 400
   only, Arial sans body, hairlines for separation.
   ============================================================ */

/* ------------------------------------------------------------
   1. SMOOTH SCROLL (media-guarded)
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* ------------------------------------------------------------
   2. SKIP LINK
   ------------------------------------------------------------ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--green);
  color: #fff;
  font: 600 13px var(--font-body);
  padding: 8px 16px;
  z-index: 9999;
  text-decoration: none;
}
.skip-link:focus {
  top: 0;
}

/* ------------------------------------------------------------
   3. STICKY HEADER
   ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--green);
  color: #fff;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  gap: 24px;
}

/* Wordmark */
.site-header__brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
}
.site-header__eyebrow {
  font: 600 9px var(--font-body);
  letter-spacing: .09em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  line-height: 1;
  margin-bottom: 2px;
}
.site-header__wordmark {
  font: 400 20px var(--font-head);
  color: #fff;
  line-height: 1.1;
  letter-spacing: .01em;
}

/* Nav */
.site-header__nav {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex: 1;
  justify-content: flex-end;
}
.site-header__nav::-webkit-scrollbar {
  display: none;
}
.site-header__nav a {
  white-space: nowrap;
  color: rgba(255,255,255,.75);
  text-decoration: none;
  font: 600 11px var(--font-body);
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 0 12px;
  line-height: 56px;
  display: block;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.site-header__nav a:hover {
  color: #fff;
  border-bottom-color: rgba(255,255,255,.4);
}
.site-header__nav a.active {
  color: #fff;
  border-bottom-color: var(--red);
  font-size: 14px;
}

/* Reading progress bar */
.progress {
  height: 2px;
  background: rgba(255,255,255,.18);
  position: relative;
}
.progress span {
  display: block;
  height: 2px;
  width: 0%;
  background: var(--red);
  transition: width .1s linear;
}

/* Mobile: nav becomes horizontal scrollable strip at ≤680px */
@media (max-width: 680px) {
  .site-header__inner {
    padding: 0 16px;
    flex-wrap: nowrap;
  }
  .site-header__nav {
    justify-content: flex-start;
  }
  .site-header__nav a {
    padding: 0 10px;
    font-size: 10px;
  }
  .site-header__nav a.active {
    font-size: 12px;
  }
}

/* ------------------------------------------------------------
   4. BANDS
   ------------------------------------------------------------ */
.band {
  background: #fff;
  color: var(--ink);
}
.band--teal {
  background: var(--green);
  color: #fff;
}
.band--charcoal {
  background: var(--charcoal);
  color: rgba(255,255,255,.85);
}

/* ------------------------------------------------------------
   5. CONTAINER
   ------------------------------------------------------------ */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
@media (max-width: 680px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ------------------------------------------------------------
   6. SECTION ANCHORS — scroll-margin-top so sticky header
      does not obscure the target
   ------------------------------------------------------------ */
#economy,
#glance,
#industrial,
#datacentre,
#office,
#retail,
#hospitality,
#residential,
#contacts,
[id^="industrial-"],
[id^="datacentre-"],
[id^="office-"],
[id^="retail-"],
[id^="hospitality-"],
[id^="residential-"] {
  scroll-margin-top: 60px;
}

/* ------------------------------------------------------------
   7. SECTION-HEAD (chapter opener)
   ------------------------------------------------------------ */
.section-head {
  padding: 64px 0 40px;
}
.section-head .eyebrow {
  margin-bottom: 12px;
}
.section-head h2 {
  font: 400 clamp(28px, 4vw, 44px) / 1.1 var(--font-head);
  color: var(--ink);
  margin: 0 0 16px;
}
.section-head p {
  font: 400 18px/1.55 var(--font-body);
  color: var(--ink);
  max-width: 680px;
  margin: 0;
}
.band--teal .section-head h2,
.band--teal .section-head p {
  color: #fff;
}
.band--teal .section-head .eyebrow {
  color: rgba(255,255,255,.7);
}

/* ------------------------------------------------------------
   8. TYPE SCALE — eyebrow & display (clamp for responsive)
   ------------------------------------------------------------ */
.eyebrow {
  font: 600 10px var(--font-body);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
}
.band--teal .eyebrow,
.band--charcoal .eyebrow {
  color: rgba(255,255,255,.65);
}

.display {
  font: 400 clamp(28px, 4.5vw, 52px) / 1.05 var(--font-head);
}

/* ------------------------------------------------------------
   9. STAT ROW / STAT / DELTA
   ------------------------------------------------------------ */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
  border-top: 1px solid var(--hair);
  border-left: 1px solid var(--hair);
  margin: 32px 0;
}
.stat {
  padding: 24px 20px;
  border-right: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.stat__label {
  font: 600 9px var(--font-body);
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  display: block;
}
.stat__value {
  font: 400 clamp(24px, 3vw, 36px) / 1.1 var(--font-head);
  color: var(--ink);
  display: block;
  margin-bottom: 4px;
}
/* The one red figure per chapter */
.stat__value--red {
  color: var(--red);
}
.stat__delta {
  font: 600 11px var(--font-body);
  display: inline-block;
  margin-top: 4px;
}
/* Green for positive, muted for negative/flat — NEVER red */
.stat__delta.up {
  color: var(--good);
}
.stat__delta.down,
.stat__delta.flat {
  color: var(--muted);
}
.stat__note {
  font: 400 11px var(--font-body);
  color: var(--muted2);
  display: block;
  margin-top: 6px;
}

/* Teal band stat overrides */
.band--teal .stat {
  border-color: rgba(255,255,255,.2);
}
.band--teal .stat-row {
  border-color: rgba(255,255,255,.2);
}
.band--teal .stat__label {
  color: rgba(255,255,255,.65);
}
.band--teal .stat__value {
  color: #fff;
}
.band--teal .stat__note {
  color: rgba(255,255,255,.55);
}

/* ------------------------------------------------------------
   10. CHART FRAMES
   ------------------------------------------------------------ */
.chart-frame {
  border: 1px solid var(--hair);
  padding: 20px 20px 12px;
  height: 300px;
  display: flex;
  flex-direction: column;
  margin: 24px 0;
}
.chart-frame--tall {
  height: 340px;
}
.chart-frame--short {
  height: 240px;
}
.chart-frame figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.chart-title {
  font: 600 12px var(--font-body);
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 2px;
}
.chart-sub {
  font: 400 11px var(--font-body);
  color: var(--muted);
  margin-bottom: 12px;
  display: block;
}
.chart-frame .chart-box {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
}
.chart-frame .chart-box > canvas {
  max-width: 100%;
}
.chart-note {
  font: 400 10px var(--font-body);
  color: var(--muted2);
  margin-top: 8px;
  display: block;
}

/* ------------------------------------------------------------
   11. TABLES
   ------------------------------------------------------------ */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 24px 0;
}
.table-scroll table {
  min-width: 560px;
}
/* small-caps muted headers via uppercase + smaller font */
.table-scroll th {
  font: 600 9px var(--font-body);
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 10px;
  border-bottom: 1px solid var(--hair);
  white-space: nowrap;
}
.table-scroll td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--hair);
  font: 400 13px var(--font-body);
  vertical-align: middle;
}
.table-scroll td.n {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.table-scroll th.n {
  text-align: right;
}
.table-scroll tr:hover td {
  background: var(--soft);
}
/* Trend glyphs — green up, red down, muted flat.
   (Client-directed: red marks decreases in the REIT trend tables, overriding
   the default "never red for negatives" rule.) */
.tr-up {
  color: var(--good);
  font-size: .8em;
}
.tr-down {
  color: var(--red);
  font-size: .8em;
}
.tr-flat {
  color: var(--muted);
  font-size: .8em;
}

/* ------------------------------------------------------------
   12. SECTOR DIVIDER
   ------------------------------------------------------------ */
.divider {
  position: relative;
  min-height: max(70vh, 460px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-color: #111;
  background-size: cover;
  background-position: center;
}
/* Bottom scrim — neutral dark, NOT teal multiply.
   The baked-in white title at top-left must remain white. */
.divider::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(20,20,20,.82) 0%,
    rgba(20,20,20,.35) 50%,
    transparent 100%
  );
  pointer-events: none;
}
.divider__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 48px 24px 48px;
  max-width: 1180px;
  margin: 0 auto;
}
.divider__quote {
  font: 400 clamp(19px, 2.7vw, 31px) / 1.32 var(--font-head);
  color: #fff;
  margin: 0;
  padding: 16px 26px 16px 22px;
  max-width: 600px;
  border-left: 3px solid rgba(255,255,255,.92);
  /* translucent panel masks the baked-in title/rule that would
     otherwise ghost through behind the quote; left rule marks it
     as a distinct pull-quote */
  background: linear-gradient(100deg,
    rgba(6,12,12,.66) 0%, rgba(6,12,12,.42) 70%, rgba(6,12,12,0) 100%);
}

/* ------------------------------------------------------------
   13. REGION BAR
   ------------------------------------------------------------ */
.region-bar {
  position: sticky;
  top: 58px; /* below the site header */
  z-index: 150;
  background: #fff;
  border-bottom: 1px solid var(--hair);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.region-bar::-webkit-scrollbar {
  display: none;
}
.region-bar__inner {
  display: flex;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 0;
  white-space: nowrap;
}
.region-bar a {
  display: inline-block;
  padding: 10px 14px;
  font: 600 11px var(--font-body);
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  line-height: 1;
}
.region-bar a:hover {
  color: var(--ink);
}
.region-bar a.active {
  color: var(--red);
  border-bottom-color: var(--red);
}
@media (max-width: 680px) {
  .region-bar__inner {
    padding: 0 16px;
  }
}

/* ------------------------------------------------------------
   14. REGION SECTIONS
   ------------------------------------------------------------ */
.region {
  padding: 40px 0;
  border-top: 1px solid var(--hair);
}
.region__name {
  font: 400 22px/1.15 var(--font-head);
  color: var(--ink);
  margin: 0 0 16px;
}

/* ------------------------------------------------------------
   15. DISCLOSURE / DETAILS
   ------------------------------------------------------------ */
.disclosure {
  border: 1px solid var(--hair);
  margin: 16px 0;
}
.disclosure summary {
  font: 600 13px var(--font-body);
  color: var(--ink);
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--soft);
  user-select: none;
}
.disclosure summary::-webkit-details-marker {
  display: none;
}
.disclosure summary::after {
  content: '+';
  font: 400 18px var(--font-body);
  color: var(--muted);
  flex-shrink: 0;
  margin-left: 12px;
}
.disclosure[open] summary::after {
  content: '−';
}
.disclosure > *:not(summary) {
  padding: 16px;
  border-top: 1px solid var(--hair);
}

/* ------------------------------------------------------------
   16. OUTLOOK BAND / GRID
   ------------------------------------------------------------ */
.outlook {
  padding: 56px 0;
}
.outlook .eyebrow {
  margin-bottom: 16px;
}
.outlook__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: rgba(255,255,255,.15);
  margin-top: 32px;
}
.outlook__item {
  background: var(--green);
  padding: 28px 24px;
}
.outlook__item h4 {
  font: 600 11px var(--font-body);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin: 0 0 12px;
}
.outlook__item p {
  font: 400 15px/1.55 var(--font-body);
  color: rgba(255,255,255,.9);
  margin: 0 0 8px;
}
.outlook__item p:last-child {
  margin-bottom: 0;
}

/* ------------------------------------------------------------
   17. FOOTER (band--charcoal)
   ------------------------------------------------------------ */
.site-footer {
  padding: 48px 0 32px;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px 24px;
  margin-bottom: 40px;
}
.site-footer__col-head {
  font: 600 9px var(--font-body);
  letter-spacing: .09em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin: 0 0 12px;
  display: block;
}
.site-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer__col li {
  margin-bottom: 6px;
}
.site-footer__col a {
  font: 400 13px var(--font-body);
  color: rgba(255,255,255,.65);
  text-decoration: none;
}
.site-footer__col a:hover {
  color: #fff;
}
.site-footer__legal {
  font: 400 11px var(--font-body);
  color: rgba(255,255,255,.35);
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
}

/* ------------------------------------------------------------
   18. REVEAL ANIMATION
   Hidden state only applies when JS has loaded (html.js class).
   Without JS, .reveal is fully visible — no layout shift, no
   invisible content. Respects prefers-reduced-motion.
   ------------------------------------------------------------ */

/* No-JS baseline: always visible */
.reveal {
  opacity: 1;
  transform: none;
}

/* JS-on: hide until .revealed is added by IntersectionObserver */
html.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms ease-out, transform 500ms ease-out;
}
html.js .reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
/* Delay steps via custom property */
html.js .reveal[style*="--reveal-delay"] {
  transition-delay: var(--reveal-delay, 0s);
}
@media (prefers-reduced-motion: reduce) {
  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ------------------------------------------------------------
   19. UTILITIES
   ------------------------------------------------------------ */
/* Count-up numbers — no special visual treatment */
.num {
  /* intentionally unstyled; JS animates the text */
}

/* Screen-reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------------------------------------
   20. HERO SECTION
   ------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: calc(100vh - 58px);   /* header 56 + progress 2: cue lands on the fold */
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--green);
}
/* Background image — right-anchored */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  display: block;
}
/* Left-to-right teal gradient scrim (only permitted gradient besides divider scrims) */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to right,
    rgba(0,48,51,.88) 0%,
    rgba(0,48,51,.55) 38%,
    rgba(0,48,51,.18) 68%,
    rgba(0,48,51,.0) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 72px 24px 150px;   /* extra bottom room for the centred scroll cue */
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 48px;
}

/* ---- Moving light tracing the skyline rooftops ---- */
.hero-lights {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;              /* above the scrim, below the content */
  pointer-events: none;
  display: none;           /* motion-only ornament */
}
@media (prefers-reduced-motion: no-preference) {
  .hero-lights { display: block; }
}
.hl-tail, .hl-head { stroke: #ffe7bd; }
.hl-tail {
  stroke-width: 2.2;
  stroke-dasharray: 70 930;
  opacity: .32;
  animation: hl-run 16s linear infinite;
}
.hl-glowpath {
  stroke-width: 7;
  opacity: .22;
  filter: url(#hl-glow);
}
.hl-head {
  stroke-width: 3;
  stroke-dasharray: 16 984;
  opacity: .95;
  animation: hl-run-head 16s linear infinite;
}
@keyframes hl-run      { from { stroke-dashoffset: 1000; } to { stroke-dashoffset: 0;   } }
@keyframes hl-run-head { from { stroke-dashoffset: 946;  } to { stroke-dashoffset: -54; } }

/* ---- Report download card (right of hero) ---- */
.hero__report {
  justify-self: end;
  display: block;
  width: 300px;
  text-decoration: none;
}
.hero__report-frame {
  display: block;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(0,48,51,.35);
  padding: 10px;
  transition: border-color .25s ease, transform .25s ease;
}
.hero__report-frame img {
  display: block;
  width: 100%;
  height: auto;
}
.hero__report:hover .hero__report-frame,
.hero__report:focus-visible .hero__report-frame {
  border-color: rgba(255,255,255,.75);
  transform: translateY(-3px);
}
.hero__report-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  font: 600 11px var(--font-body);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
}
.hero__report-label svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.hero__report-meta {
  display: block;
  margin-top: 4px;
  font: 500 10px var(--font-body);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
@media (max-width: 900px) {
  .hero__content {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .hero__report {
    justify-self: start;
    width: 220px;
    margin-top: 40px;
  }
}
.hero__logo {
  display: block;
  width: 268px;
  height: auto;
  margin: 0 0 36px;
}
.hero__h1-yr {
  display: block;
}
.hero__eyebrow {
  font: 600 10px var(--font-body);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  display: block;
  margin-bottom: 20px;
}
.hero__h1 {
  font: 400 clamp(40px, 6.5vw, 80px) / 1.0 var(--font-head);
  color: #fff;
  margin: 0 0 24px;
  max-width: 620px;
}
.hero__tagline {
  font: 400 18px/1.6 var(--font-body);
  color: rgba(255,255,255,.85);
  max-width: 520px;
  margin: 0;   /* cue moved to hero bottom — no trailing gap needed */
}

/* Scroll cue — bottom-centre of the hero, clickable, animated chevron */
.hero__scroll-cue {
  position: absolute;
  left: 50%;
  bottom: calc(44px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  padding: 8px 18px;
}
.hero__scroll-cue span {
  font: 600 33px var(--font-body);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  display: block;
}
.hero__scroll-cue svg {
  display: block;
  width: 34px;
  height: 34px;
  color: rgba(255,255,255,.85);
  animation: scroll-bounce 1.8s ease-in-out infinite;
}
.hero__scroll-cue:hover span,
.hero__scroll-cue:hover svg {
  color: #fff;
}
@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: .6; }
  50%       { transform: translateY(9px); opacity: 1; }
}

/* Short laptops: compact the hero column so the cue stays on the fold */
@media (max-height: 720px) and (min-width: 681px) {
  .hero__logo { width: 210px; margin-bottom: 24px; }
  .hero__h1 { font-size: clamp(36px, 5.2vw, 60px); margin-bottom: 18px; }
  .hero__tagline { font-size: 16px; }
  .hero__content { padding: 56px 24px 120px; }
  .hero__report { width: 240px; }
}

/* Photo credit — tiny, bottom-right of the hero */
.hero__credit {
  position: absolute;
  right: 14px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 2;
  font: 500 9px var(--font-body);
  letter-spacing: .05em;
  color: rgba(255,255,255,.4);
  text-decoration: none;
}
.hero__credit:hover,
.hero__credit:focus-visible {
  color: rgba(255,255,255,.75);
  text-decoration: underline;
}
@media (prefers-reduced-motion: reduce) {
  .hero__scroll-cue svg {
    animation: none;
  }
}
@media (max-width: 680px) {
  .hero__content {
    padding: 48px 16px 120px;
  }
  .hero__scroll-cue {
    bottom: calc(32px + env(safe-area-inset-bottom, 0px));
  }
  .hero__scroll-cue span {
    font-size: 24px;
  }
  .hero__logo {
    width: 200px;
    margin-bottom: 28px;
  }
  .hero__tagline {
    font-size: 16px;
  }
}

/* ------------------------------------------------------------
   21. RESPONSIVE — 680px and 1024px breakpoints
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
  .stat-row {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
  .outlook__grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}
@media (max-width: 680px) {
  .section-head {
    padding: 40px 0 24px;
  }
  .stat-row {
    grid-template-columns: 1fr 1fr;
  }
  .chart-frame {
    height: 260px;
  }
  .chart-frame--tall {
    height: 300px;
  }
  .chart-frame--short {
    height: 220px;
  }
  .region__name {
    font-size: 20px;
  }
  .divider {
    min-height: 55vh;
  }
  .divider__quote {
    font-size: 22px;
  }
  .outlook {
    padding: 40px 0;
  }
  .outlook__item {
    padding: 20px 16px;
  }
}

/* ------------------------------------------------------------
   22. PRINT STYLESHEET
   ------------------------------------------------------------ */
@media print {
  /* Hide navigation chrome and interactive elements */
  .site-header,
  .site-header__nav,
  .progress,
  .skip-link,
  .region-bar,
  .hero__scroll-cue {
    display: none !important;
  }

  /* Ensure readable black-on-white output */
  body {
    color: #000;
    background: #fff;
    font-size: 12pt;
  }

  /* Expand all disclosures */
  .disclosure,
  .disclosure[open] {
    border: 1px solid #ccc;
  }
  .disclosure > *:not(summary) {
    display: block !important;
  }
  details {
    display: block !important;
  }
  details > * {
    display: block !important;
  }
  summary {
    display: list-item;
  }

  /* Page breaks before sector chapters */
  .divider {
    page-break-before: always;
    break-before: page;
    min-height: auto;
    height: 160px;
    background-image: none !important;
    background-color: var(--green) !important;
  }
  .divider::after {
    display: none;
  }

  /* Bands: remove teal/charcoal backgrounds for print ink economy */
  .band--teal {
    background: #fff;
    color: #000;
  }
  .band--charcoal {
    background: #fff;
    color: #000;
  }
  .band--teal .eyebrow,
  .band--charcoal .eyebrow {
    color: #555;
  }

  /* Containers full-width */
  .container {
    max-width: 100%;
    padding: 0;
  }

  /* No page break inside stats */
  .stat-row {
    page-break-inside: avoid;
    break-inside: avoid;
  }
  .stat {
    page-break-inside: avoid;
    break-inside: avoid;
  }

  /* Chart frames */
  .chart-frame {
    border: 1px solid #ccc;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  /* Tables */
  .table-scroll {
    overflow: visible;
  }
  table {
    page-break-inside: auto;
  }
  tr {
    page-break-inside: avoid;
    break-inside: avoid;
  }

  /* Revealed elements are always shown in print */
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  /* Hero: compact for print */
  .hero {
    min-height: auto;
    height: auto;
    padding: 40px 0;
    background: var(--green);
  }
  .hero__bg,
  .hero__scrim {
    display: none;
  }

  /* Footer */
  .site-footer {
    border-top: 1px solid #ccc;
  }

  /* Links: show URLs after anchors in print */
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #555;
  }
  /* but not nav links */
  .site-footer a[href^="http"]::after {
    content: none;
  }
}

/* ------------------------------------------------------------
   FIX: sector indicator strip (economy) — wrap on narrow screens.
   Items carry inline flex styles, so mobile needs !important.
   ------------------------------------------------------------ */
#economy nav a { flex-wrap: wrap; }
@media (max-width: 680px) {
  #economy nav a span { min-width: 0 !important; flex: 1 1 100% !important; }
}

/* FIX: glance rows stack on narrow screens (rows carry inline grid styles) */
@media (max-width: 680px) {
  #glance div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
}

/* ------------------------------------------------------------
   REGION LOCATOR MAP — Malaysia mini-map beside region name
   ------------------------------------------------------------ */
.region__head {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 8px 40px;
  align-items: start;
  margin-bottom: 8px;
}
.region-map {
  width: 150px;
  height: auto;
  margin-top: 10px;
}
.region__head-body .region__name {
  margin-bottom: 0;
}
.region__head-body .region__lede-head {
  margin: 14px 0 0;
}
.region__head .stat-row,
.stat-row--head {
  margin: 16px 0 0;
}
.stat-row--head .stat {
  padding: 14px 16px;
}
@media (max-width: 680px) {
  .region__head { grid-template-columns: 1fr; gap: 4px; }
  .region-map { width: 120px; margin-top: 0; }
}
@media print {
  .region-map { width: 100px; }
}

/* ------------------------------------------------------------
   PROSE-MORE — inline "Continue reading" expansion
   ------------------------------------------------------------ */
.prose-more {
  margin: -8px 0 20px;
}
.prose-more > summary {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  font: 600 10px var(--font-body);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 4px 0;
  user-select: none;
}
.prose-more > summary::-webkit-details-marker { display: none; }
.prose-more > summary::before {
  content: '+';
  font: 400 14px/1 var(--font-body);
}
.prose-more[open] > summary::before { content: '\2212'; }
.prose-more[open] > summary { color: var(--ink); }
.prose-more > summary:hover { color: var(--ink); }
.band--teal .prose-more > summary { color: rgba(255,255,255,.65); }
.band--teal .prose-more > summary:hover,
.band--teal .prose-more[open] > summary { color: #fff; }
.prose-more > p:first-of-type { margin-top: 12px; }

@media print {
  .prose-more > summary { display: none !important; }
}

/* ------------------------------------------------------------
   KEY-MESSAGE HEADLINES — short serif headline + muted deck
   ------------------------------------------------------------ */
h3.key-msg, h4.key-msg {
  font: 400 21px/1.25 var(--font-head);
  color: var(--ink);
  margin: 36px 0 4px;
}
.region__head-body .region__lede-head.key-msg {
  font: 400 22px/1.25 var(--font-head);
  margin: 14px 0 2px;
}
h2.key-msg { /* chapter section-heads keep their clamp size */ }
.deck {
  font: 400 13px/1.55 var(--font-body);
  color: var(--muted);
  max-width: 760px;
  margin: 2px 0 14px;
}
.section-head .deck { margin-top: 8px; }
.prose-more { margin: 4px 0 24px; }

/* ------------------------------------------------------------
   NUMBERED TAKEAWAYS — grouped key messages in the region head
   ------------------------------------------------------------ */
.takeaways {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}
.takeaways li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--hair);
}
.tk-num {
  font: 400 15px/1 var(--font-head);
  color: var(--muted2);
  min-width: 24px;
  letter-spacing: .04em;
}
.tk-text {
  font: 400 19px/1.3 var(--font-head);
  color: var(--ink);
}

/* Numbered group markers in the flow */
.group-mark {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin: 44px 0 8px;
}
.gm-num {
  font: 400 30px/1 var(--font-head);
  color: var(--muted2);
  min-width: 40px;
}
.gm-head {
  font: 400 20px/1.25 var(--font-head);
  color: var(--ink);
  margin: 0;
}
.gm-body .deck {
  margin: 4px 0 0;
}
@media (max-width: 680px) {
  .tk-text { font-size: 16px; }
  .gm-num { font-size: 24px; min-width: 32px; }
  .gm-head { font-size: 18px; }
}

/* Clip phantom horizontal overflow (long BM labels in internally-scrolled
   bars still report scrollWidth). clip, not hidden: no scroll container,
   position:sticky descendants unaffected. */
html { overflow-x: hidden; }

/* Language toggle group in header */
.lang-toggle a { color: rgba(255,255,255,.65); text-decoration: none; font: 600 11px var(--font-body); }
.lang-toggle a:hover { color: #fff; }
.lang-toggle .lang-cur { color: #fff; font: 600 11px var(--font-body); border-bottom: 2px solid var(--red); padding-bottom: 2px; }

/* Sector context label below the map: KF red, then region name beneath */
.ledger-side .region__sector {
  color: var(--red);
  font: 700 12px var(--font-body);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin: 2px 0 4px;
}


/* == Economy: Terminal Board (variant B promoted 2026-07-17) == */
/* ============================================================
   SECTION LAYOUT
   ============================================================ */
#economy {
  padding-bottom: 64px;
}

/* ============================================================
   HERO FIGURE — GDP ONLY
   ============================================================ */
.tb-hero {
  padding: 48px 0 32px;
  display: flex;
  align-items: flex-start;
  gap: 48px;
  flex-wrap: wrap;
  border-bottom: 2px solid #1a1a1a;
  margin-bottom: 0;
}
.tb-hero__main {
  flex: 0 0 auto;
}
.tb-hero__label {
  font: 600 9px Arial, sans-serif;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #6b7290;
  display: block;
  margin-bottom: 8px;
}
.tb-hero__figure {
  font: 400 clamp(64px, 9vw, 96px)/1.0 Georgia, 'Times New Roman', serif;
  color: #D0103A;
  display: block;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.tb-hero__meta {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tb-hero__delta {
  font: 600 12px Arial, sans-serif;
  color: #0c6b58;
  letter-spacing: .01em;
}
.tb-hero__note {
  font: 400 11px Arial, sans-serif;
  color: #6b7290;
}

/* ============================================================
   PROSE-MORE — "Continue reading" between hero and board
   ============================================================ */
.tb-prose-more {
  border-top: 1px solid #e4e7ef;
  padding: 16px 0 0;
}
.tb-prose-more > summary {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  font: 600 10px Arial, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #6b7290;
  padding: 4px 0 12px;
  user-select: none;
}
.tb-prose-more > summary::-webkit-details-marker { display: none; }
.tb-prose-more > summary::before {
  content: '+';
  font: 400 14px/1 Arial, sans-serif;
}
.tb-prose-more[open] > summary::before { content: '\2212'; }
.tb-prose-more[open] > summary { color: #1f2330; }
.tb-prose-more > summary:hover { color: #1f2330; }
.tb-prose-more > .prose-body {
  padding: 4px 0 24px;
}
.tb-prose-more > .prose-body p {
  font: 400 15px/1.65 Arial, sans-serif;
  color: #1a1a1a;
  margin: 0 0 20px;
}
.tb-prose-more > .prose-body p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   TERMINAL BOARD — DATA TABLE
   ============================================================ */
.tb-board {
  margin: 0 0 40px;
}
.tb-board table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
/* Column widths */
.tb-board col.col-ind  { width: 30%; }
.tb-board col.col-val  { width: 18%; }
.tb-board col.col-dlt  { width: 16%; }
.tb-board col.col-ctx  { width: 36%; }

/* Table header row */
.tb-board thead th {
  font: 600 9px Arial, sans-serif;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #6b7290;
  padding: 8px 10px 8px 0;
  border-bottom: 1px solid #e4e7ef;
  white-space: nowrap;
  background: transparent;
}
.tb-board thead th.n {
  text-align: right;
  padding-right: 0;
  padding-left: 10px;
}

/* Body cells */
.tb-board tbody td {
  padding: 10px 10px 10px 0;
  border-bottom: 1px solid #e4e7ef;
  vertical-align: middle;
  background: transparent;
}
.tb-board tbody td.n {
  text-align: right;
  padding-right: 0;
  padding-left: 10px;
  font-variant-numeric: tabular-nums;
}
/* Disable hover highlight — no zebra */
.tb-board tbody tr:hover td {
  background: transparent;
}

/* Indicator label cell */
.tb-ind {
  font: 600 9px Arial, sans-serif;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #6b7290;
  line-height: 1.45;
}
/* Sector link on indicator — inherits color */
.tb-ind a {
  color: inherit;
  text-decoration: none;
}
.tb-ind a:hover {
  color: #1f2330;
}

/* Value cell — serif, 20-22px */
.tb-val {
  font: 400 21px/1.1 Georgia, 'Times New Roman', serif;
  color: #1f2330;
  display: block;
  font-variant-numeric: tabular-nums;
}

/* Delta cell */
.tb-dlt {
  font: 600 11px Arial, sans-serif;
  display: block;
}
.tb-dlt.up   { color: #0c6b58; }
.tb-dlt.down { color: #6b7290; }
.tb-dlt.flat { color: #6b7290; }

/* Context cell */
.tb-ctx {
  font: 400 11px/1.5 Arial, sans-serif;
  color: #8890a8;
}

/* Group separator rows */
.tb-group-row td {
  padding: 14px 10px 8px 0 !important;
  border-top: 2px solid #1a1a1a !important;
  border-bottom: none !important;
  background: transparent !important;
}
.tb-group-row td:hover {
  background: transparent !important;
}
.tb-group-label {
  font: 600 9px Arial, sans-serif;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #6b7290;
}

/* ============================================================
   CHART PANELS — SIDE BY SIDE
   ============================================================ */
.tb-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin: 40px 0 0;
}

/* ============================================================
   MOBILE — ≤680px
   ============================================================ */
@media (max-width: 680px) {
  .tb-hero { gap: 24px; padding: 32px 0 24px; }

  /* Context column collapses below indicator on mobile */
  .tb-board col.col-ind  { width: 40%; }
  .tb-board col.col-val  { width: 25%; }
  .tb-board col.col-dlt  { width: 20%; }
  .tb-board col.col-ctx  { width: 0%; }
  .tb-board .col-ctx-cell {
    display: block;
    font-size: 10px;
    color: #8890a8;
    padding-top: 2px;
    padding-bottom: 6px;
  }
  /* Re-flow: hide original ctx td, show inline */
  .tb-board td.tb-ctx-td {
    display: none;
  }
  .tb-board tbody td {
    padding: 8px 8px 8px 0;
  }
  .tb-val { font-size: 17px; }
}

/* == Economy: story blocks over the terminal board (round 9b) == */
.tb-hero { border-bottom: 0; padding-bottom: 40px; }
.tb-story { border-top: 2px solid #1a1a1a; padding: 28px 0 8px; }
.tb-story__head { display: flex; gap: 24px; margin: 0 0 18px; }
.tb-story__head .gm-num {
  flex: 0 0 40px;
  font: 400 30px/1 Georgia, 'Times New Roman', serif;
  color: #b9c0d4;
}
.tb-story .key-msg {
  margin: 0 0 6px;
  font: 400 24px/1.15 Georgia, 'Times New Roman', serif;
  color: #1a1a1a;
}
.tb-story .deck {
  margin: 0;
  font: 400 14px/1.6 Arial, sans-serif;
  color: #6b7290;
  max-width: 760px;
}
.tb-story .tb-board { margin: 0 0 8px; }
.tb-story .tb-charts { margin: 20px 0 12px; }
.tb-story .tb-prose-more { border-top: 0; padding-top: 4px; }
@media (max-width: 680px) {
  .tb-story__head { gap: 14px; }
  .tb-story__head .gm-num { flex-basis: 28px; font-size: 24px; }
  .tb-story .key-msg { font-size: 20px; }
}


/* == Economy: Split Story spreads (variant E promoted 2026-07-17) == */
/* ── Section-head and hero remain full-width ── */
#economy .section-head {
  max-width: 820px;
  padding: 60px 0 32px;
}
#economy .tb-hero {
  padding: 0 0 48px;
}

/* ── Split spread layout ── */
.e-spread {
  border-top: 2px solid #1a1a1a;
  padding: 40px 0 32px;
  display: grid;
  grid-template-columns: minmax(280px, 2fr) 1px 3fr;
  gap: 0;
  align-items: start;
}

/* Left column: the voice */
.e-voice {
  padding-right: 40px;
}
.e-voice .gm-num {
  display: block;
  font: 400 64px/1 Georgia, 'Times New Roman', serif;
  color: #b9c0d4;
  margin-bottom: 20px;
}
.e-voice .key-msg {
  margin: 0 0 16px;
  font: 400 26px/1.2 Georgia, 'Times New Roman', serif;
  color: #1a1a1a;
}
.e-voice .deck {
  margin: 0 0 24px;
  font: 400 14px/1.65 Arial, sans-serif;
  color: #6b7290;
}

/* Hairline gutter */
.e-gutter {
  background: #e4e7ef;
  align-self: stretch;
}

/* Right column: the evidence */
.e-evidence {
  padding-left: 32px;
  border: none;
}

/* Suppress the .tb-story's own border-top so our spread rule takes over */
#economy .tb-story {
  border-top: none;
  padding: 0;
}
#economy .tb-story__head {
  display: none; /* replaced by .e-voice content */
}
#economy .tb-story .tb-board {
  margin: 0 0 16px;
}
#economy .tb-story .tb-charts {
  margin: 12px 0 8px;
}
#economy .tb-story .tb-prose-more {
  border-top: 1px solid #e4e7ef;
  padding-top: 12px;
  margin-top: 8px;
}

/* prose-more in voice column */
.e-voice .tb-prose-more {
  border-top: 1px solid #e4e7ef;
  padding-top: 12px;
  margin-top: 8px;
  font: 400 13px/1.65 Arial, sans-serif;
  color: #6b7290;
}
.e-voice .tb-prose-more summary {
  cursor: pointer;
  font: 600 9px Arial, sans-serif;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #6b7290;
  user-select: none;
}
.e-voice .tb-prose-more summary:hover {
  color: #1a1a1a;
}
.e-voice .tb-prose-more .prose-body p {
  margin: 12px 0 0;
  font: 400 13px/1.65 Arial, sans-serif;
  color: #6b7290;
}

/* ── Mobile: stack at ≤900px ── */
@media (max-width: 900px) {
  .e-spread {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .e-gutter {
    display: none;
  }
  .e-voice {
    padding-right: 0;
    padding-bottom: 32px;
    border-bottom: 1px solid #e4e7ef;
    margin-bottom: 28px;
  }
  .e-voice .gm-num {
    font-size: 40px;
    margin-bottom: 14px;
  }
  .e-evidence {
    padding-left: 0;
  }
}

/* == Economy board: keep figures on one line, breathe between columns (9e).
      Desktop only — auto layout gives the table a ~560px min-width that
      blows out phone viewports; mobile falls back to fixed layout. == */
@media (min-width: 861px) {
  .tb-board table { table-layout: auto; }
  .tb-board .tb-val,
  .tb-board .tb-dlt { white-space: nowrap; }
  .tb-board tbody td.n { padding-right: 18px; }
}
@media (max-width: 860px) {
  .tb-board .tb-val { white-space: normal; }
  .tb-board .tb-dlt { white-space: nowrap; }
}


/* ============================================================
   MARKET PERFORMANCE — Editorial lede + Pull-Figure Panel
   (variant C promoted to all 6 sector chapters, 2026-07-17)
   Header full-width; two-column body [takeaways | pull-figure
   panel]; evidence (charts/tables/extra stats) full-width below.
   ============================================================ */
.mp-section { padding: 8px 0 8px; }
.mp-header { margin-bottom: 36px; }
.mp-header .eyebrow { margin-bottom: 12px; display: block; }
.mp-headline {
  font: 400 clamp(30px, 4vw, 46px)/1.05 var(--font-head);
  color: var(--red);
  margin: 0 0 16px;
}
.mp-deck {
  font: 400 17px/1.55 var(--font-body);
  color: var(--muted);
  max-width: 680px;
  margin: 0;
}
.mp-body {
  display: grid;
  grid-template-columns: 58fr 42fr;
  gap: 40px;
  margin-bottom: 40px;
  align-items: start;
}
@media (max-width: 860px) { .mp-body { grid-template-columns: 1fr; } }
.mp-left { min-width: 0; }

/* LEFT: numbered takeaways */
.mp-takeaways { list-style: none; margin: 0; padding: 0; }
.mp-takeaways li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0 16px;
  align-items: baseline;
  border-top: 1px solid var(--hair);
  padding: 16px 0;
}
.mp-takeaways li:last-child { border-bottom: 1px solid var(--hair); }
.mp-takeaway-num { font: 400 26px/1 var(--font-head); color: var(--muted); display: block; padding-top: 2px; }
.mp-takeaway-text { font: 400 15px/1.55 var(--font-body); color: var(--ink); margin: 0; }
.mp-takeaway-text strong { font-weight: 700; color: var(--ink); }
.mp-takeaways + .mp-prose { margin-top: 20px; }
.mp-prose .prose-more > summary { margin-top: 4px; }

/* RIGHT: pull-figure panel */
.mp-panel { border: 1px solid var(--hair); padding: 28px; }
.mp-hero-label {
  display: block;
  font: 600 9px var(--font-body);
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px;
}
.mp-hero-value {
  display: block;
  font: 400 clamp(34px, 4.5vw, 52px)/1.0 var(--font-head);
  color: var(--red);
  font-variant-numeric: tabular-nums;
  margin-bottom: 8px;
}
.mp-hero-delta { display: block; font: 600 12px var(--font-body); color: var(--muted); margin-bottom: 4px; }
.mp-hero-note  { display: block; font: 400 11px var(--font-body); color: var(--muted2); }
.mp-panel-divider { border: 0; border-top: 1px solid var(--hair); margin: 20px 0; }

/* Supporting stats mini-grid (2-col, N cells) */
.mp-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--hair);
  border-left: 1px solid var(--hair);
}
.mp-mini-cell { border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); padding: 14px 12px; }
.mp-mini-label { display: block; font: 600 8px var(--font-body); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.mp-mini-value { display: block; font: 400 20px/1.1 var(--font-head); color: var(--ink); font-variant-numeric: tabular-nums; margin-bottom: 4px; }
.mp-mini-delta { display: block; font: 600 11px var(--font-body); color: var(--muted); }
.mp-mini-delta.up { color: var(--good); }

/* Full-width evidence below the two-column body */
.mp-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 0; }
.mp-charts.mp-charts--one { grid-template-columns: 1fr; }
@media (max-width: 860px) { .mp-charts { grid-template-columns: 1fr; gap: 0; } }
.mp-charts .chart-frame { margin: 0; }
@media (max-width: 860px) { .mp-panel { padding: 22px; } }


/* ============================================================
   CHAPTER PAGER — end-of-page prev/next sector navigation
   Photo panels under teal scrim, serif chapter names, sliding
   arrows, keyboard hints. (One sector per page, 2026-07-17.)
   ============================================================ */
.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: #fff;
  border-top: 1px solid var(--hair);
}
.pager--single { grid-template-columns: 1fr; }
.pager__panel {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  display: flex;
  align-items: flex-end;
  padding: 28px 32px;
  text-decoration: none;
  color: #fff;
}
.pager__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.001);
  transition: transform .6s cubic-bezier(.22,.61,.36,1);
}
.pager__scrim {
  position: absolute;
  inset: 0;
  background: rgba(0,48,51,.80);
  transition: background .35s ease;
}
.pager__panel:hover .pager__bg,
.pager__panel:focus-visible .pager__bg { transform: scale(1.045); }
.pager__panel:hover .pager__scrim,
.pager__panel:focus-visible .pager__scrim { background: rgba(0,48,51,.62); }
.pager__panel:focus-visible { outline: 2px solid #fff; outline-offset: -6px; }
.pager__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 100%;
}
.pager__panel--next .pager__content { margin-left: auto; text-align: right; align-items: flex-end; }
.pager__dir {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 600 10px var(--font-body);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
}
.pager__dir svg {
  width: 20px;
  height: 20px;
  display: block;
  transition: transform .3s ease;
}
.pager__panel--prev:hover .pager__dir svg { transform: translateX(-6px); }
.pager__panel--next:hover .pager__dir svg { transform: translateX(6px); }
.pager__panel--next .pager__dir { flex-direction: row-reverse; }
.pager__key {
  font: 600 10px var(--font-body);
  color: rgba(255,255,255,.55);
  border: 1px solid rgba(255,255,255,.35);
  padding: 2px 7px 3px;
  line-height: 1;
}
.pager__num {
  font: 400 12px var(--font-head);
  letter-spacing: .08em;
  color: rgba(255,255,255,.55);
  font-variant-numeric: tabular-nums;
}
.pager__name {
  font: 400 clamp(26px, 3.2vw, 40px)/1.05 var(--font-head);
  color: #fff;
}
@media (max-width: 680px) {
  .pager { grid-template-columns: 1fr; }
  .pager__panel { min-height: 150px; padding: 20px; }
  .pager__key { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pager__bg, .pager__dir svg { transition: none; }
  .pager__panel:hover .pager__bg { transform: none; }
}
@media print {
  .pager { display: none; }
}


/* ============================================================
   EDGE NAV — chapter buttons that pop out from the bottom
   corners near the end of the page. Collapsed: teal arrow tab
   flush with the edge. Hover/focus: panel slides out with the
   chapter name. (Replaces the in-flow pager band.)
   ============================================================ */
.edge-nav__btn {
  position: fixed;
  bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  z-index: 300;
  display: flex;
  align-items: stretch;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.18);
  visibility: hidden;
  transition: transform .5s cubic-bezier(.22,.61,.36,1), visibility 0s .5s;
}
.edge-nav__btn--prev { left: 0; border-left: 0; transform: translateX(-105%); }
.edge-nav__btn--next { right: 0; border-right: 0; flex-direction: row-reverse;
                       transform: translateX(105%); }
.edge-nav--in .edge-nav__btn {
  transform: translateX(0);
  visibility: visible;
  transition: transform .5s cubic-bezier(.22,.61,.36,1);
}
.edge-nav__arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 56px;
  min-height: 64px;
}
.edge-nav__arrow svg {
  width: 22px;
  height: 22px;
  display: block;
  transition: transform .3s ease;
}
.edge-nav__btn--prev:hover .edge-nav__arrow svg { transform: translateX(-4px); }
.edge-nav__btn--next:hover .edge-nav__arrow svg { transform: translateX(4px); }
.edge-nav__key {
  font: 600 9px var(--font-body);
  color: rgba(255,255,255,.5);
  border: 1px solid rgba(255,255,255,.3);
  padding: 1px 5px 2px;
  line-height: 1;
}
.edge-nav__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  overflow: hidden;
  white-space: nowrap;
  padding: 10px 18px;
  border-left: 1px solid rgba(255,255,255,.18);
}
.edge-nav__btn--next .edge-nav__panel { border-left: 0; border-right: 1px solid rgba(255,255,255,.18); align-items: flex-end; }
.edge-nav__dir {
  font: 600 9px var(--font-body);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
}
.edge-nav__name {
  font: 400 20px/1.1 var(--font-head);
  color: #fff;
}
.edge-nav__num {
  font: 400 11px var(--font-head);
  color: rgba(255,255,255,.5);
  font-variant-numeric: tabular-nums;
}
.edge-nav__btn:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
@media (max-width: 680px) {
  .edge-nav__btn { bottom: calc(48px + env(safe-area-inset-bottom, 0px)); }
  .edge-nav__arrow { width: 46px; min-height: 54px; }
  .edge-nav__key { display: none; }
  .edge-nav__panel { padding: 8px 12px; max-width: 38vw; }
  .edge-nav__panel > * { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .edge-nav__name { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .edge-nav__btn, .edge-nav__panel, .edge-nav__arrow svg { transition: none; }
}
@media print {
  .edge-nav__btn { display: none; }
}


/* == Outlook: headline + deck over collapsed prose (de-wordified, 2026-07-17) == */
.outlook__msg {
  font: 400 21px/1.2 var(--font-head);
  color: #fff;
  margin: 6px 0 6px;
}
.outlook__deck {
  font: 400 13px/1.55 var(--font-body);
  color: rgba(255,255,255,.72);
  margin: 0 0 10px;
}
.outlook__item .prose-more > summary {
  color: rgba(255,255,255,.6);
}


/* == Outlook tiles inside region sections (moved from the big band, 2026-07-17) == */
.outlook-inline {
  background: var(--green);
  color: #fff;
  padding: 26px 30px 22px;
  margin: 32px 0 0;
}
.outlook-inline .eyebrow {
  color: rgba(255,255,255,.6);
  display: block;
  margin-bottom: 10px;
}
.outlook-inline .prose-more > summary {
  color: rgba(255,255,255,.6);
}
.outlook-inline .prose-more p {
  color: rgba(255,255,255,.85);
}
@media (max-width: 680px) {
  .outlook-inline { padding: 20px 16px 16px; }
}


/* ================================================================
   STATE ONE-VIEW CARDS (A2, promoted to live report 2026-07-17)
   ================================================================ */
/* ============================================================
   Variant A2 — Big Serif Verdict
   Concept: unmissable editorial headline + teal outlook band
   KF rules: radius 0, no shadow, hairlines, Georgia 400 serif,
   ONE red per state = the hero data figure (map uses teal).
   New classes prefixed .a2- ; shared layout classes .sa-.
   ============================================================ */

/* ---- state block ---- */
/* States live in a soft-grey band so each state card floats (live integration) */
.states-band { background: var(--soft); padding: 44px clamp(16px,4vw,48px); }
.sa-state { max-width: 1180px; margin: 0 auto 36px; border: 1px solid var(--hair); background: #fff; overflow: hidden; scroll-margin-top: 124px; }
.sa-state:last-child { margin-bottom: 0; }

/* ================================================================
   1. HEADER STRIP — slim: map | sector eyebrow | state name
   ================================================================ */
.sa-header { display: flex; align-items: center; gap: 0; padding: 24px 28px; background: var(--green); color: #fff; border-bottom: 0; min-height: 64px; }

.sa-map {
  flex: 0 0 100px;
  width: 100px;
  align-self: center;
  margin-right: 20px;
}
.sa-map svg {
  width: 100px;
  height: auto;
  display: block;
}

.sa-name-block {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.sa-sector-eye { font: 700 10px Arial, system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.72); margin-bottom: 5px; }
.sa-state-name { font: 400 clamp(28px, 2.6vw, 36px)/1.05 Georgia, 'Times New Roman', serif; color: #fff; margin: 0; }

/* ================================================================
   2. HEADLINE BANDS — A2 variant
   Left 58%: numeral eyebrow + BIG serif headline + elab + details
   Right 42%: hero figure (red) + remaining figures (ink)
   ================================================================ */

.sa-bands { padding: 30px 28px 0; }

.sa-band {
  display: grid;
  grid-template-columns: 58% 1fr;
  border-top: 1px solid var(--hair);
  padding: 20px 0;
}
.sa-band:last-child {
  border-bottom: 1px solid var(--hair);
}

/* ---- LEFT column ---- */
.sa-band__text {
  padding-right: 28px;
  display: flex;
  flex-direction: column;
}

/* A2: numeral as quiet 13px eyebrow above the headline */
.a2-band__hblock {
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
}
.a2-band__num {
  font: 400 13px/1.3 Arial, system-ui, sans-serif;
  color: var(--muted);
  letter-spacing: .05em;
  margin-bottom: 4px;
}
/* A2: BIG editorial headline — 400 weight, size gives presence */
.a2-band__head {
  font: 400 clamp(28px, 2.4vw, 34px)/1.12 Georgia, 'Times New Roman', serif;
  color: var(--ink);
  margin: 0;
}

.sa-band__elab {
  font: 400 13.5px/1.55 Arial, system-ui, sans-serif;
  color: var(--ink);
  margin: 0 0 10px;
}

details.sa-band__more {
  margin-bottom: 0;
}
details.sa-band__more summary {
  font: 600 10px Arial, system-ui, sans-serif;
  color: var(--muted);
  cursor: pointer;
  letter-spacing: .05em;
  text-transform: uppercase;
  list-style: none;
  padding: 2px 0;
}
details.sa-band__more summary::-webkit-details-marker { display: none; }
details.sa-band__more summary::before { content: '+ '; }
details.sa-band__more[open] summary::before { content: '− '; }
details.sa-band__more p {
  font: 400 12px/1.6 Arial, system-ui, sans-serif;
  color: var(--ink);
  margin: 8px 0 0;
}

/* ---- RIGHT column ---- */
.sa-band__data {
  border-left: 1px solid var(--hair);
  padding-left: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

/* all figures */
.sa-datafig {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 0;
}
.sa-datafig + .sa-datafig {
  border-top: 1px solid var(--hair);
}
.sa-datafig:first-child { padding-top: 0; }
.sa-datafig:last-child  { padding-bottom: 0; }

.sa-datafig__label {
  font: 600 8px Arial, system-ui, sans-serif;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.3;
}
.sa-datafig__value {
  font: 400 20px/1.1 Georgia, 'Times New Roman', serif;
  color: var(--ink);
}
.sa-datafig__delta {
  font: 600 11px/1.3 Arial, system-ui, sans-serif;
  color: var(--good);
}
/* Direction cue on signed deltas: ▲ green up / ▼ red down.
   (Matches the REIT trend-table convention; unsigned "from …" deltas get none.) */
.sa-datafig__delta.down { color: var(--red); }
.sa-datafig__delta.up::before   { content: "\25B2"; font-size: .82em; margin-right: 3px; }
.sa-datafig__delta.down::before { content: "\25BC"; font-size: .82em; margin-right: 3px; }
.sa-datafig__note {
  font: 400 9px/1.35 Arial, system-ui, sans-serif;
  color: var(--muted2);
}

/* A2: hero figure — ONE red per state */
.a2-datafig--hero .sa-datafig__value {
  font: 400 28px/1.1 Georgia, 'Times New Roman', serif;
  color: var(--red);
}

/* empty right column placeholder */
.sa-band__data--empty {
  color: var(--muted);
  font: 400 18px/1 Georgia, 'Times New Roman', serif;
  align-items: flex-start;
}

/* ================================================================
   3. CHART — full-width or simple row, stays on white
   ================================================================ */
.a2-chart-wrap {
  padding: 24px 28px 0;
  border-top: 2px solid var(--ink);
  margin-top: 24px;
}

.sa-chart-frame figure {
  margin: 0;
  display: flex;
  flex-direction: column;
}
.sa-chart-frame figcaption.chart-title {
  font: 600 11px Arial, system-ui, sans-serif;
  color: var(--ink);
  margin-bottom: 1px;
}
.sa-chart-frame .chart-sub {
  font: 400 10px Arial, system-ui, sans-serif;
  color: var(--muted);
  display: block;
  margin-bottom: 8px;
}
.sa-chart-frame .chart-box {
  min-height: 260px;
  max-height: 300px;
  position: relative;
}
.sa-chart-frame .chart-box canvas {
  width: 100% !important;
  height: 100% !important;
}
.sa-chart-frame .chart-note {
  font: 400 9px Arial, system-ui, sans-serif;
  color: var(--muted2);
  display: block;
  margin-top: 6px;
}

/* ================================================================
   4. MARKET OUTLOOK — FULL-WIDTH TEAL BAND
   ================================================================ */
.a2-outlook-band {
  background: var(--green);
  padding: 32px 28px;
  margin-top: 0;
}

.a2-outlook-eye {
  font: 700 11px Arial, system-ui, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  display: block;
  margin-bottom: 10px;
}

.a2-outlook-msg {
  font: 400 clamp(24px, 2.2vw, 30px)/1.2 Georgia, 'Times New Roman', serif;
  color: #fff;
  margin: 0 0 14px;
}

.a2-outlook-deck {
  font: 400 14px/1.55 Arial, system-ui, sans-serif;
  color: rgba(255,255,255,.85);
  margin: 0 0 12px;
}

/* details styled for dark band */
details.a2-outlook-more {
  margin-top: 4px;
}
details.a2-outlook-more summary {
  font: 600 10px Arial, system-ui, sans-serif;
  color: rgba(255,255,255,.6);
  cursor: pointer;
  letter-spacing: .05em;
  text-transform: uppercase;
  list-style: none;
  padding: 2px 0;
}
details.a2-outlook-more summary::-webkit-details-marker { display: none; }
details.a2-outlook-more summary::before { content: '+ '; }
details.a2-outlook-more[open] summary::before { content: '− '; }
details.a2-outlook-more p {
  font: 400 12px/1.6 Arial, system-ui, sans-serif;
  color: rgba(255,255,255,.85);
  margin: 10px 0 0;
}

/* ================================================================
   5. FOOTER STRIP — collapsed tables
   ================================================================ */
.sa-footer {
  padding: 16px 28px 0;
  border-top: 1px solid var(--hair);
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

details.sa-table {
  border: 1px solid var(--hair);
}
details.sa-table summary {
  font: 600 10px Arial, system-ui, sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  padding: 9px 12px;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--soft);
}
details.sa-table summary::-webkit-details-marker { display: none; }
details.sa-table summary::before {
  content: '+';
  font: 600 12px Arial, system-ui, sans-serif;
  color: var(--muted);
  width: 14px;
  flex-shrink: 0;
}
details.sa-table[open] summary::before { content: '−'; }
details.sa-table .table-inner {
  overflow-x: auto;
  padding: 0 12px 12px;
}
details.sa-table table {
  border-collapse: collapse;
  width: 100%;
  font-variant-numeric: tabular-nums;
}
details.sa-table th {
  font: 600 10px Arial, system-ui, sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  padding: 6px 8px;
  border-bottom: 1px solid var(--hair);
}
details.sa-table td {
  font: 400 11px/1.4 Arial, system-ui, sans-serif;
  padding: 7px 8px;
  border-bottom: 1px solid var(--hair);
  color: var(--ink);
}
details.sa-table td.n, details.sa-table th.n { text-align: right; }
details.sa-table tr:hover td { background: var(--soft); }
details.sa-table .table-note {
  font: 400 9px/1.4 Arial, system-ui, sans-serif;
  color: var(--muted2);
  padding: 6px 8px 0;
}

/* ================================================================
   RESPONSIVE — under 1024px stack
   ================================================================ */
@media (max-width: 1023px) {
  .sa-header {
    flex-wrap: wrap;
    gap: 12px;
    padding: 18px 16px;
  }
  .sa-bands { padding: 0 16px; }
  .sa-band {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .sa-band__text { padding-right: 0; }
  .sa-band__data {
    border-left: none;
    border-top: 1px solid var(--hair);
    padding-left: 0;
    padding-top: 16px;
  }
  .a2-chart-wrap { padding: 20px 16px 0; }
  .a2-outlook-band { padding: 24px 16px; }
  .sa-footer { padding: 12px 16px 0; }
}


/* Right-column key-entity list — fills figure-less band data columns (2026-07-17) */
.sa-keylist { display: flex; flex-direction: column; }
.sa-keylist__eyebrow { font: 600 8px var(--font-body); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.sa-keylist__item { font: 400 15px/1.25 var(--font-head); color: var(--ink); padding: 9px 0; border-top: 1px solid var(--hair); }
.sa-keylist__item:first-of-type { border-top: 0; padding-top: 0; }
.sa-keylist__item small { display: block; font: 400 10px/1.3 var(--font-body); color: var(--muted); margin-top: 2px; }


/* ================================================================
   INDEX LEDGER DRAWERS — table dropdowns as serif contents lines
   (drawer variant A promoted site-wide, 2026-07-17; overrides the
   boxed/grey details.sa-table styles above via cascade)
   ================================================================ */
details.sa-table {
  border: none;
  background: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hair);
}
.sa-footer details.sa-table:last-of-type {
  border-bottom: 1px solid var(--hair);
}
details.sa-table > summary {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  padding: 14px 0;
  font: 400 15px/1.35 var(--font-head);
  color: var(--ink);
  letter-spacing: normal;
  text-transform: none;
  cursor: pointer;
  list-style: none;
}
details.sa-table > summary::-webkit-details-marker { display: none; }
/* leading TABLE ICON so drawers read clearly as tables (teal, via mask) */
details.sa-table > summary::before {
  content: '';
  width: 20px;
  height: 16px;
  margin-right: 12px;
  flex-shrink: 0;
  background-color: var(--green);
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2020%27%3E%3Cg%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%3E%3Crect%20x%3D%271%27%20y%3D%271%27%20width%3D%2722%27%20height%3D%2718%27%2F%3E%3Cpath%20d%3D%27M1%207h22M9%207v13M16%207v13%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2020%27%3E%3Cg%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%3E%3Crect%20x%3D%271%27%20y%3D%271%27%20width%3D%2722%27%20height%3D%2718%27%2F%3E%3Cpath%20d%3D%27M1%207h22M9%207v13M16%207v13%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") no-repeat center / contain;
}
/* trailing chevron indicates open/closed */
details.sa-table > summary::after {
  content: '';
  margin-left: auto;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(-45deg);
  transition: transform .2s ease;
  flex-shrink: 0;
}
details.sa-table[open] > summary::after { transform: rotate(45deg); }
details.sa-table > summary:hover { color: var(--green); }
details.sa-table > summary:hover::after { border-color: var(--green); }
details.sa-table[open] > .table-inner {
  border-left: 2px solid var(--ink);
  padding: 0 0 4px 16px;
  margin: 8px 0 12px;
}

/* Continue-reading markers harmonised to teal (white inside teal band) */
details.sa-band__more > summary::before,
details.a2-outlook-more > summary::before { color: var(--green); }
.a2-outlook-band details.a2-outlook-more > summary::before { color: rgba(255,255,255,.75); }


/* ================================================================
   MOTION LAYER — additive visual polish (2026-07-17).
   Pure enhancement: every rule sits behind prefers-reduced-motion
   and/or @supports guards; browsers without support render the
   site exactly as before. No layout, content or color changes.
   ================================================================ */

/* ---- 1. Chapter-to-chapter page transitions (cross-document) ---- */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) {
    animation: vt-leave .28s cubic-bezier(.4,0,.7,1) both;
  }
  ::view-transition-new(root) {
    animation: vt-enter .34s cubic-bezier(.22,.61,.36,1) both;
  }
  @keyframes vt-leave { to { opacity: 0; transform: translateY(-14px); } }
  @keyframes vt-enter { from { opacity: 0; transform: translateY(18px); } }
}

@media (prefers-reduced-motion: no-preference) {

  /* ---- 2. Hero cinematics (index only) ---- */
  /* slow cover-photo push-in — the light layer shares the exact same
     animation so the traced rooftop path stays registered to the photo */
  .hero__bg img,
  .hero-lights {
    animation: hero-ken 32s ease-in-out infinite alternate;
    transform-origin: 60% 42%;
    will-change: transform;
  }
  @keyframes hero-ken {
    from { transform: scale(1.03); }
    to   { transform: scale(1.11); }
  }

  /* Entrance choreography — each element wipes up into view, bottom-clipped,
     so the headline reads like it's rising out of the skyline. Staggered. */
  .hero__logo,
  .hero__eyebrow,
  .hero__h1,
  .hero__tagline,
  .hero__scroll-cue,
  .hero__report {
    animation: hero-rise 1.05s cubic-bezier(.16,.84,.44,1) backwards;
  }
  .hero__logo             { animation-delay: .12s; }
  .hero__eyebrow          { animation-delay: .52s; }
  .hero__h1               { animation-delay: .66s; }
  .hero__tagline          { animation-delay: 1.02s; }
  /* cue is centred with translateX(-50%), so it gets its own keyframes —
     the shared hero-rise transform would clobber the centring mid-flight */
  .hero__scroll-cue       { animation-name: cue-rise; animation-delay: 1.34s; }
  .hero__report           { animation-delay: 1.5s; }
  @keyframes cue-rise {
    from { opacity: 0; transform: translateX(-50%) translateY(22px); }
    to   { opacity: 1; transform: translateX(-50%); }
  }
  @keyframes hero-rise {
    from { opacity: 0; transform: translateY(26px); clip-path: inset(0 0 100% 0); }
    to   { opacity: 1; transform: none;            clip-path: inset(0 0 0 0); }
  }

  /* One-time diagonal light sweep across the hero after content settles —
     a single premium sheen, then gone. Very low opacity, non-repeating. */
  .hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(
      116deg,
      transparent 34%,
      rgba(255,255,255,.07) 48%,
      rgba(255,255,255,.10) 50%,
      rgba(255,255,255,.07) 52%,
      transparent 66%
    );
    transform: translateX(-110%);
    animation: hero-sweep 1.5s cubic-bezier(.4,0,.2,1) 1.65s backwards;
  }
  @keyframes hero-sweep {
    from { transform: translateX(-110%); }
    to   { transform: translateX(110%); }
  }

  /* Scroll cue fades away as the reader leaves the hero (Chromium scroll-linked;
     harmless no-op elsewhere) */
  @supports (animation-timeline: view()) {
    .hero__scroll-cue {
      animation: cue-rise 1.05s cubic-bezier(.16,.84,.44,1) 1.34s backwards,
                 cue-fade linear both;
      animation-timeline: auto, view();
      animation-range: entry 0% exit 20%;
    }
    @keyframes cue-fade {
      from { opacity: 1; }
      to   { opacity: 0; }
    }
  }

  /* ---- 3. State-card hover (fine pointers only) ---- */
  @media (hover: hover) {
    .sa-state { transition: border-color .35s ease; }
    .sa-state:hover { border-color: var(--muted2); }
  }

  /* ---- 4. Scroll-driven touches (Chromium; others unaffected) ---- */
  @supports (animation-timeline: view()) {

    /* teal state header wipes in from the left */
    .sa-header {
      animation: band-wipe linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
    @keyframes band-wipe {
      from { clip-path: inset(0 100% 0 0); }
      to   { clip-path: inset(0 0 0 0); }
    }

    /* teal outlook band answers with the same wipe */
    .a2-outlook-band {
      animation: band-wipe linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 50%;
    }

    /* red hero figures settle into place */
    .a2-datafig--hero .sa-datafig__value {
      animation: fig-settle linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }
    @keyframes fig-settle {
      from { opacity: 0; transform: translateY(10px) scale(.96); }
      to   { opacity: 1; transform: none; }
    }

    /* key-entity list items cascade in one by one */
    .sa-keylist__item {
      animation: fig-settle linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 80%;
    }

    /* pager teal scrims ease slightly as edge-nav shows (no-op elsewhere) */
    .mp-hero-value {
      animation: fig-settle linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 65%;
    }
  }
}


/* ================================================================
   MOBILE OPTIMIZATION PASS (2026-07-17)
   svh viewport fix, header ergonomics, state-card tuning,
   tap targets. Additive; desktop unchanged.
   ================================================================ */

/* ---- true mobile viewport heights (iOS/Android URL-bar bug) ---- */
@supports (height: 100svh) {
  .hero { min-height: calc(100svh - 58px); }
  .divider { min-height: 70svh; }
}
@media (max-width: 680px) {
  @supports (height: 100svh) {
    .divider { min-height: 55svh; }
  }
}

/* ---- sticky header: roomy brand, visible toggle, scroll hint ---- */
@media (max-width: 680px) {
  .site-header__inner { gap: 10px; }
  .site-header__eyebrow { display: none; }
  .site-header__wordmark { font-size: 17px; }
  .site-header__nav {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 26px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 26px), transparent);
  }
  .lang-toggle { margin-left: 0 !important; padding-left: 10px !important; }

  /* ---- tap targets ---- */
  .region-bar a { padding: 14px 15px; }

  /* ---- state cards ---- */
  .sa-map { flex: 0 0 72px; width: 72px; }
  .sa-map svg { width: 72px; }
  .sa-state-name { font-size: 25px; }
  .a2-band__head { font-size: 24px; }
  .a2-outlook-msg { font-size: 22px; }
  .a2-datafig--hero .sa-datafig__value { font-size: 25px; }
  .sa-bands { padding-left: 16px; padding-right: 16px; }
  .a2-chart-wrap, .sa-footer { padding-left: 16px; padding-right: 16px; }
  .a2-outlook-band { padding: 26px 16px; }
  .states-band { padding: 24px 10px; }
  .sa-state { scroll-margin-top: 108px; }
}

/* ---- market performance mini-grid: single column on narrow phones ---- */
@media (max-width: 480px) {
  .mp-mini-grid { grid-template-columns: 1fr; }
  .mp-headline { font-size: 26px; }
  .mp-hero-value { font-size: 34px; }
}

/* ---- drawers: slightly tighter lines on phones ---- */
@media (max-width: 680px) {
  details.sa-table > summary { font-size: 14px; padding: 12px 0; line-height: 1.4; }
  details.sa-table[open] > .table-inner { padding-left: 10px; }
}


/* ================================================================
   MOBILE PAN CONTAINMENT (2026-07-17)
   iOS Safari ignores overflow-x:hidden on html for pan gestures —
   clip actually contains it. Plus: kill the two real overflow
   sources (economy hero figure floor, board table min-width) and
   a global media safety net.
   ================================================================ */
html {
  overflow-x: hidden;   /* fallback */
  overflow-x: clip;
}
/* body gets clip only: a hidden fallback here would make body a scroll
   container in Safari < 16 and break position:sticky on the header bars */
@supports (overflow: clip) {
  body { overflow-x: clip; }
}
img, svg, canvas, video { max-width: 100%; }

/* board tables scroll inside themselves rather than widening the page */
.tb-board { overflow-x: auto; -webkit-overflow-scrolling: touch; }

@media (max-width: 680px) {
  /* GDP hero figure: 64px floor was ~430px wide on a 390px phone */
  .tb-hero__figure { font-size: clamp(38px, 13vw, 64px); }
  .tb-hero__meta { flex-wrap: wrap; }
  /* big band headlines/heroes never force width */
  .a2-band__head, .mp-headline, .a2-outlook-msg, .sa-state-name { overflow-wrap: break-word; }
}


/* == e-spread shrink safety: grid items must be able to shrink below
      their content min-width on phones (2026-07-17) == */
.e-spread > * { min-width: 0; }
.e-voice, .e-evidence { min-width: 0; }


/* ================================================================
   MOBILE DENSITY PASS (2026-07-17) — compact type + tight rhythm
   + 2-up figure grids at phone widths. Desktop untouched.
   ================================================================ */
@media (max-width: 680px) {

  /* ---- state cards: tighter frame ---- */
  .states-band { padding: 16px 8px; }
  .sa-state { margin-bottom: 16px; }
  .sa-header { padding: 14px 14px; gap: 10px; }
  .sa-map { flex: 0 0 58px; width: 58px; }
  .sa-map svg { width: 58px; }
  .sa-state-name { font-size: 21px; }
  .sa-sector-eye { font-size: 8px; margin-bottom: 3px; }

  /* ---- bands: compact editorial ---- */
  .sa-bands { padding: 6px 14px 0; }
  .sa-band { padding: 12px 0; gap: 10px; }
  .a2-band__num { font-size: 11px; margin-bottom: 2px; }
  .a2-band__head { font-size: 19px; line-height: 1.18; }
  .sa-band__elab { font-size: 12.5px; line-height: 1.45; margin-bottom: 6px; }
  details.sa-band__more summary { font-size: 9px; }
  details.sa-band__more p { font-size: 12px; line-height: 1.5; }

  /* ---- figures: 2-up grid instead of tall stack ---- */
  .sa-band__data {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 14px;
    border-top: 1px solid var(--hair);
    padding-top: 8px;
  }
  .sa-datafig { padding: 7px 0; }
  .sa-datafig + .sa-datafig { border-top: 0; }
  .sa-datafig__label { font-size: 7.5px; }
  .sa-datafig__value { font-size: 16px; }
  .a2-datafig--hero .sa-datafig__value { font-size: 20px; }
  .sa-datafig__delta { font-size: 10px; }
  .sa-datafig__note { font-size: 8.5px; }

  /* keylists: tight single column, may span both grid cols */
  .sa-keylist { grid-column: 1 / -1; }
  .sa-keylist__eyebrow { margin-bottom: 4px; }
  .sa-keylist__item { font-size: 13px; padding: 5px 0; }
  .sa-keylist__item small { font-size: 9px; }

  /* ---- chart + tables + outlook: tighter ---- */
  .a2-chart-wrap { padding: 12px 14px 0; margin-top: 12px; }
  .sa-chart-frame .chart-box { min-height: 210px; max-height: 240px; }
  .sa-footer { padding: 8px 14px 0; margin-top: 12px; gap: 4px; }
  details.sa-table > summary { font-size: 13px; padding: 9px 0; }
  .a2-outlook-band { padding: 18px 14px; }
  .a2-outlook-eye { font-size: 9px; margin-bottom: 6px; }
  .a2-outlook-msg { font-size: 19px; margin-bottom: 8px; }
  .a2-outlook-deck { font-size: 12.5px; margin-bottom: 6px; }
  details.a2-outlook-more p { font-size: 12px; }

  /* ---- market performance: dense ---- */
  .mp-section { padding: 4px 0; }
  .mp-header { margin-bottom: 18px; }
  .mp-headline { font-size: 23px; }
  .mp-deck { font-size: 13px; line-height: 1.45; }
  .mp-body { gap: 18px; margin-bottom: 20px; }
  .mp-takeaways li { padding: 10px 0; grid-template-columns: 34px 1fr; }
  .mp-takeaway-num { font-size: 19px; }
  .mp-takeaway-text { font-size: 13px; line-height: 1.45; }
  .mp-panel { padding: 16px 14px; }
  .mp-hero-value { font-size: 30px; }
  .mp-panel-divider { margin: 12px 0; }
  .mp-mini-grid { grid-template-columns: 1fr 1fr; }
  .mp-mini-cell { padding: 9px 8px; }
  .mp-mini-label { font-size: 7px; }
  .mp-mini-value { font-size: 15px; }
  .mp-mini-delta { font-size: 9.5px; }

  /* ---- economy spreads (index) ---- */
  .section-head { padding: 24px 0 14px; }
  .tb-hero { padding: 18px 0 12px; gap: 12px; }
  .e-voice { padding-bottom: 16px; margin-bottom: 14px; }
  .e-voice .gm-num { font-size: 26px; margin-bottom: 6px; }
  .tb-story .key-msg, .e-voice .key-msg { font-size: 18px; }
  .e-voice .deck, .tb-story .deck { font-size: 12.5px; }
  .tb-board tbody td { padding: 6px 6px 6px 0; font-size: 12px; }
  .tb-val { font-size: 15px; }
  .chart-frame { height: 220px; }
  .chart-frame--tall { height: 250px; }

  /* ---- dividers: less dead space ---- */
  @supports (height: 100svh) { .divider { min-height: 42svh; } }
  .divider { min-height: 42vh; }
}


/* ================================================================
   ECONOMY BOARD MOBILE REFLOW (2026-07-17)
   The indicator board sits inside .table-scroll (min-width:560px) —
   right for wide transaction tables, wrong for this 4-col board.
   On phones, reflow each indicator into a compact 2-line block so
   it fits with no horizontal scroll. Desktop untouched.
   ================================================================ */
@media (max-width: 680px) {
  .tb-board { overflow-x: visible; }
  .tb-board table { min-width: 0; width: 100%; display: block; }
  .tb-board thead, .tb-board colgroup { display: none; }
  .tb-board tbody { display: block; }
  .tb-board tbody tr {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 12px;
    row-gap: 1px;
    align-items: baseline;
    padding: 8px 0;
    border-bottom: 1px solid var(--hair);
  }
  .tb-board tbody td { display: block; padding: 0; border: 0; }
  .tb-board tbody td:nth-child(1) { grid-column: 1; grid-row: 1; }   /* indicator */
  .tb-board tbody td:nth-child(2) { grid-column: 2; grid-row: 1; text-align: right; }  /* value */
  .tb-board tbody td:nth-child(3) { grid-column: 1; grid-row: 2; }   /* delta */
  .tb-board tbody td:nth-child(4) { grid-column: 2; grid-row: 2; text-align: right; }  /* context */
  .tb-ind { font: 600 10px/1.3 Arial, sans-serif; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
  .tb-board .tb-val { font: 400 17px/1.1 Georgia, 'Times New Roman', serif; color: var(--ink); white-space: nowrap; }
  .tb-dlt { font: 600 10px/1.3 Arial, sans-serif; }
  .tb-ctx { font: 400 9px/1.3 Arial, sans-serif; color: var(--muted2); }
}


/* ================================================================
   MOBILE BAND SEPARATION (2026-07-17)
   Stacked bands only had a faint hairline between them — same weight
   as the internal figures rule, so consecutive headlines blurred
   together. Give each new headline a strong 2px ink rule + a clear
   numeral marker. Desktop (2-col, vertical hairline) unchanged.
   ================================================================ */
@media (max-width: 680px) {
  .sa-band {
    border-top: 2px solid var(--ink);
    padding-top: 18px;
    margin-top: 4px;
  }
  .sa-band:first-of-type { border-top: 0; margin-top: 0; }

  /* numeral reads as a section marker, not body text */
  .a2-band__num {
    font: 700 11px/1 var(--font-body);
    letter-spacing: .14em;
    color: var(--green);
    margin-bottom: 6px;
  }

  /* keep the internal figures divider light so it clearly belongs to
     the current headline (contrast against the 2px band rule) */
  .sa-band__data { border-top-color: var(--hair); }
}

/* ================================================================
   LEAD-CAPTURE MODAL (report download gate) — 2026-07-20
   KF editorial: square, flat, one red, teal focus. Content stays
   open; only the PDF download is gated.
   ================================================================ */
.lead-modal{position:fixed;inset:0;z-index:1000;display:flex;align-items:flex-start;justify-content:center;
  padding:40px 16px;overflow-y:auto;background:rgba(0,48,51,.72);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}
.lead-modal[hidden]{display:none}
.lead__dialog{position:relative;background:#fff;width:100%;max-width:460px;padding:38px 40px 34px;margin:auto}
.lead__close{position:absolute;top:14px;right:14px;width:34px;height:34px;border:0;background:transparent;cursor:pointer;
  color:var(--muted);font:400 26px/1 var(--font-body);line-height:34px;padding:0}
.lead__close:hover{color:var(--ink)}
.lead__eyebrow{font:600 10px var(--font-body);letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin:0 0 6px}
.lead__title{font:400 27px/1.1 var(--font-head);margin:0 0 8px;color:var(--ink)}
.lead__lede{font:400 14px/1.55 var(--font-body);color:var(--muted);margin:0 0 22px}
.lead__field{display:block;margin-bottom:14px}
.lead__field>span{display:block;font:600 10px var(--font-body);letter-spacing:.07em;text-transform:uppercase;color:var(--muted);margin-bottom:5px}
.lead__field input{width:100%;font:15px var(--font-body);color:var(--ink);border:1px solid var(--hair);padding:11px 12px;background:#fff}
.lead__field input:focus{outline:0;border-color:var(--green)}
.lead__row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
/* "Your privacy" note — sits under the submit button, above the meta line */
.lead__privacy{margin:18px 0 0;padding:14px 0 0;border-top:1px solid #e4e7ef}
.lead__privacy-title{font:700 12px/1.4 var(--font-body);color:var(--ink);margin:0 0 5px}
.lead__privacy-body{font:400 11px/1.6 var(--font-body);color:var(--muted);margin:0}
.lead__privacy-body a{color:var(--ink);text-decoration:underline}
.lead__hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.lead__consent{display:flex;gap:10px;align-items:flex-start;margin:4px 0 8px;font:400 12px/1.5 var(--font-body);color:var(--muted)}
.lead__consent input{margin-top:2px;flex-shrink:0;width:15px;height:15px;accent-color:var(--green)}
.lead__consent a{color:var(--ink);text-decoration:underline}
.lead__submit{width:100%;background:var(--red);color:#fff;border:0;font:600 14px var(--font-body);letter-spacing:.02em;padding:14px;margin-top:12px;cursor:pointer}
.lead__submit:hover{background:#b8002c}
/* browse wall: link styled as the submit button, to kfmconnect */
.lead__register{display:block;box-sizing:border-box;text-align:center;text-decoration:none;margin-top:22px}
.lead__regnote{font:400 11px var(--font-body);color:var(--muted);text-align:center;margin:10px 0 0}
.lead__meta{text-align:center;font:500 10px var(--font-body);letter-spacing:.06em;text-transform:uppercase;color:var(--muted2);margin:12px 0 0}
.lead__done{text-align:center;padding:20px 0 8px}
.lead__done[hidden]{display:none}
.lead__done-mark{width:46px;height:46px;margin:0 auto 16px;border:2px solid var(--green);border-radius:0;
  display:flex;align-items:center;justify-content:center;color:var(--green);font-size:22px}
.lead__done h3{font:400 22px/1.1 var(--font-head);margin:0 0 6px;color:var(--ink)}
.lead__done p{font:400 13px/1.5 var(--font-body);color:var(--muted);margin:0}
@media (max-width:520px){
  .lead__dialog{padding:32px 22px 26px}
  .lead__row{grid-template-columns:1fr;gap:0}
}

/* Browse-gate mode: the one-time "keep reading" wall cannot be dismissed. */
.lead-modal.is-gate .lead__close,
.lead-modal.is-gate .lead__meta { display: none; }

/* ================= Feedback widget (internal review) ================= */
/* ============================================================
   feedback-widget.css
   Appended to site.css by the orchestrator — kept separate to
   avoid merge conflicts and to allow independent iteration.

   All classes are prefixed .fb to avoid collision with site.css
   classes (.lead-*, .edge-nav, etc.).

   Design rules inherited from site.css tokens:
     --green   : #003033  (dark teal — FAB bg, panel header)
     --ink     : #1f2330
     --muted   : #6b7290
     --hair    : #e4e7ef  (hairline borders)
     --soft    : #f5f6f9  (neutral bg)
     border-radius: 0 everywhere (enforced by tokens.css * rule)
     box-shadow: none (enforced by tokens.css * rule)
     font-head : Georgia,'Times New Roman',serif — weight 400 only
     font-body : Arial,system-ui,sans-serif
   Red (#D20032) is budgeted once per page — NOT used in this widget.
   ============================================================ */

/* ------------------------------------------------------------
   1. FAB — Floating Action Button
   Fixed bottom-right, z-index 350 (above edge-nav at 300).
   On narrow screens (≤700px), raised to avoid edge-nav buttons.
   ------------------------------------------------------------ */
.fb-fab {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 350;
  display: flex;
  align-items: center;
  gap: 7px;
  background: #003033;           /* --green */
  color: #fff;
  border: 0;
  padding: 10px 16px 10px 13px;
  cursor: pointer;
  font: 600 11px/1 Arial,system-ui,sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: background .15s;
}
.fb-fab:hover,
.fb-fab:focus-visible {
  background: #004d52;           /* darken --green */
}
.fb-fab:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.fb-fab__icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

@media (max-width: 700px) {
  .fb-fab {
    bottom: 88px;                /* clear edge-nav buttons at mobile sizes */
    right: 16px;
  }
}

@media print {
  .fb-fab { display: none; }
}

/* ------------------------------------------------------------
   2. PANEL — positioned above the FAB, bottom-right
   ------------------------------------------------------------ */
.fb-panel {
  position: fixed;
  bottom: 88px;                  /* sit above FAB (28px bottom + ~44px FAB + 16px gap) */
  right: 24px;
  z-index: 350;
  width: 360px;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e4e7ef;    /* --hair */
  overflow: hidden;
}
.fb-panel[hidden] {
  display: none;
}

/* Header bar */
.fb-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #003033;           /* --green */
  padding: 12px 14px 12px 16px;
  flex-shrink: 0;
}
.fb-panel__title {
  font: 400 16px/1.1 Georgia,'Times New Roman',serif;  /* serif 400, as site convention */
  color: #fff;
  margin: 0;
}
.fb-panel__close {
  background: transparent;
  border: 0;
  color: rgba(255,255,255,.7);
  font: 400 22px/1 Arial,system-ui,sans-serif;
  cursor: pointer;
  padding: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.fb-panel__close:hover {
  color: #fff;
}
.fb-panel__close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Body — scrollable content area */
.fb-panel__body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

@media (max-width: 700px) {
  .fb-panel {
    width: 100%;
    right: 0;
    bottom: 0;
    max-height: 80vh;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
  }
}

@media print {
  .fb-panel { display: none; }
}

/* ------------------------------------------------------------
   3. STEPS — shown/hidden in JS (hidden attr)
   ------------------------------------------------------------ */
.fb-step { display: flex; flex-direction: column; gap: 12px; }
.fb-step[hidden] { display: none; }

/* ------------------------------------------------------------
   4. FORM FIELDS — match site.css field style
   ------------------------------------------------------------ */
.fb-field {
  display: block;
  margin-bottom: 12px;
}
.fb-field:last-child { margin-bottom: 0; }

.fb-field__label {
  display: block;
  font: 600 10px Arial,system-ui,sans-serif;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #6b7290;                /* --muted */
  margin-bottom: 5px;
}

.fb-field input[type="text"],
.fb-field select,
.fb-field textarea {
  font: 14px Arial,system-ui,sans-serif;
  color: #1f2330;                /* --ink */
  border: 1px solid #e4e7ef;    /* --hair */
  padding: 9px 11px;
  width: 100%;
  background: #fff;
  resize: vertical;
}
.fb-field input[type="text"]:focus,
.fb-field select:focus,
.fb-field textarea:focus {
  outline: 0;
  border-color: #003033;        /* --green focus, matching lead.js pattern */
}
.fb-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236b7290'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}

/* ------------------------------------------------------------
   5. BUTTONS — match tokens.css btn style; teal primary
   ------------------------------------------------------------ */
.fb-btn {
  display: inline-block;
  border: 0;
  font: 600 13px Arial,system-ui,sans-serif;
  padding: 11px 22px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background .15s, color .15s;
}
.fb-btn--primary {
  background: #003033;          /* --green (teal) */
  color: #fff;
}
.fb-btn--primary:hover,
.fb-btn--primary:focus-visible {
  background: #004d52;
}
.fb-btn--primary:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.fb-btn--ghost {
  background: transparent;
  color: #003033;
  border: 1px solid #003033;
}
.fb-btn--ghost:hover,
.fb-btn--ghost:focus-visible {
  background: #f5f6f9;          /* --soft */
}
.fb-btn:focus-visible {
  outline: 2px solid #003033;
  outline-offset: 2px;
}

/* Step 0 continue button — full width */
.fb-name-continue { width: 100%; margin-top: 4px; }

/* Form submit button — full width */
.fb-form__submit  { width: 100%; margin-top: 4px; }

/* ------------------------------------------------------------
   6. HONEYPOT — visually hidden, not display:none so bots fill it
   ------------------------------------------------------------ */
.fb-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ------------------------------------------------------------
   7. CHAT BUBBLES
   ------------------------------------------------------------ */
.fb-chat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 260px;
  overflow-y: auto;
  padding: 4px 0 8px;
  margin-bottom: 8px;
}

.fb-bubble {
  max-width: 86%;
  font: 400 13px/1.5 Arial,system-ui,sans-serif;
  padding: 8px 11px;
  word-break: break-word;
}
.fb-bubble--assistant {
  align-self: flex-start;
  background: #f5f6f9;           /* --soft */
  border: 1px solid #e4e7ef;    /* hairline */
  color: #1f2330;
}
.fb-bubble--user {
  align-self: flex-end;
  background: #fff;
  border: 1px solid #003033;    /* teal hairline for reviewer */
  color: #1f2330;
}
.fb-bubble--notice {
  align-self: center;
  background: transparent;
  border: 0;
  color: #6b7290;                /* --muted */
  font-size: 12px;
  font-style: italic;
  max-width: 100%;
  text-align: center;
  padding: 4px 0;
}

/* Chat input row */
.fb-chat__input-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}
.fb-chat__textarea {
  flex: 1;
  font: 14px Arial,system-ui,sans-serif;
  color: #1f2330;
  border: 1px solid #e4e7ef;
  padding: 8px 10px;
  resize: none;
  line-height: 1.4;
}
.fb-chat__textarea:focus {
  outline: 0;
  border-color: #003033;
}
.fb-chat__send {
  flex-shrink: 0;
  padding: 9px 14px;
  white-space: nowrap;
}

/* ------------------------------------------------------------
   8. PROPOSAL CARD
   ------------------------------------------------------------ */
.fb-proposal {
  border: 1px solid #e4e7ef;
  padding: 12px 14px 10px;
  background: #f5f6f9;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fb-proposal__dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  font: 400 13px/1.45 Arial,system-ui,sans-serif;
  color: #1f2330;
}
.fb-proposal__dl dt {
  font: 600 10px Arial,system-ui,sans-serif;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #6b7290;
  padding-top: 2px;
  white-space: nowrap;
}
.fb-proposal__dl dd {
  margin: 0;
}

.fb-proposal__actions {
  display: flex;
  gap: 8px;
}
.fb-proposal__actions .fb-btn {
  flex: 1;
  padding: 9px 10px;
}

/* ------------------------------------------------------------
   9. FORM ERROR / RETRY
   ------------------------------------------------------------ */
.fb-form__error {
  font: 400 12px/1.5 Arial,system-ui,sans-serif;
  color: #7a4300;                /* --warn — not red, stays on budget */
  background: #f8efe2;          /* --warnbg */
  border: 1px solid #e4e7ef;
  padding: 8px 12px;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.fb-form__error[hidden] { display: none; }

.fb-form__retry {
  padding: 5px 12px;
  font-size: 12px;
  flex-shrink: 0;
}

/* ------------------------------------------------------------
   10. SUCCESS VIEW
   ------------------------------------------------------------ */
.fb-step--success {
  align-items: center;
  text-align: center;
  padding: 16px 0 8px;
  gap: 8px;
}
.fb-success__mark {
  width: 44px;
  height: 44px;
  border: 2px solid #003033;    /* --green */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #003033;
  font-size: 22px;
  margin: 0 auto 4px;
}
.fb-success__title {
  font: 400 20px/1.1 Georgia,'Times New Roman',serif;
  color: #1f2330;
  margin: 0;
}
.fb-success__ref {
  font: 400 13px/1.4 Arial,system-ui,sans-serif;
  color: #6b7290;
  margin: 0;
}

/* ------------------------------------------------------------
   Inset editorial photo — report imagery within a chapter
   (added for the "more visual" feedback; stays on-brand:
   zero radius, hairline border, muted caption)
   ------------------------------------------------------------ */
.sa-photo {
  margin: 0 0 40px;
}
.sa-photo picture {
  display: block;
}
.sa-photo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  border: 1px solid var(--hair);
}
.sa-photo figcaption {
  font: 400 11px/1.4 var(--font-body);
  color: var(--muted2);
  margin-top: 8px;
}

/* ================================================================
   KEYBOARD FOCUS (2026-09-30)
   Visible ring for keyboard users only; mouse clicks stay clean.
   currentColor keeps it legible on the dark header and light body.
   ================================================================ */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.lead__field input:focus-visible,
.lead__consent input:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}
