/* Africa Stablecoin Intelligence — public site.
   Design system from the approved mockup: ink / paper / 3Consulting orange / forest / rust,
   Fraunces (headlines), IBM Plex Sans (text), IBM Plex Mono (figures). */

@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/fraunces-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/fraunces-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 500; font-display: swap; src: url('../fonts/fraunces-latin-500-italic.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/ibm-plex-sans-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/ibm-plex-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/ibm-plex-sans-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); }

:root {
  --ink: #1b1916;
  --ink-2: #2a2723;
  --paper: #f3eee1;
  --paper-deep: #e8dfc7;
  --brand: #ff914d;       /* 3Consulting orange: fills with ink text; text only on dark bands */
  --brand-ink: #a84d12;   /* the same orange, deep enough for text on the cream page (4.9:1) */
  --brand-pale: #ffd2b3;  /* soft highlights and accents on dark bands */
  --forest: #2b5d45;
  --delayed-bg: #3a3324;
  --muted-on-dark: #d1ccc0; /* small grey text on dark bands and cards: AA on every card (live green is the hardest, 4.8:1) */
  --rust: #93412a;
  --line: #d7cba9;
  --line-dark: #3c3934;
  --ink-soft: #5c574c;
  --amber: #e0a43a;
  --max: 1220px;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.5; overflow-wrap: break-word; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.dark-band { background: var(--ink); color: var(--paper); }
h1, h2, h3 { font-family: var(--serif); margin: 0; font-weight: 600; letter-spacing: -.01em; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.num { font-family: var(--mono); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--brand); color: var(--ink); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- breaking banner ---------- */
.breaking { background: var(--rust); color: #fff; font-size: .88rem; }
.breaking .wrap { display: flex; gap: 12px; align-items: center; padding-top: 9px; padding-bottom: 9px; }
.breaking-label { font: 600 .75rem var(--mono); letter-spacing: .08em; text-transform: uppercase; background: rgba(0,0,0,.22); padding: 3px 8px; white-space: nowrap; }
.breaking a { color: #fff; text-decoration: none; } .breaking a:hover { text-decoration: underline; }

/* ---------- masthead ---------- */
.masthead { position: sticky; top: 0; z-index: 60; transition: transform .28s ease, box-shadow .2s ease; }
/* Auto-hide: slides away while reading down, returns on any scroll up (site.js toggles .is-hidden). */
.masthead.is-hidden { transform: translateY(-100%); }
.masthead.is-stuck { box-shadow: 0 6px 24px rgba(0, 0, 0, .28); }
@media (prefers-reduced-motion: reduce) { .masthead { transition: none; } }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 20px; padding-bottom: 4px; }
/* The mark (Africa as the A of ASI) beside the name, set in two lines after a fine orange rule. */
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--paper); }
.brand-mark { height: 38px; width: auto; flex: none; display: block; color: var(--paper); }
.brand-name { display: flex; flex-direction: column; justify-content: center; padding-left: 14px;
              border-left: 1.5px solid rgba(255, 145, 77, .55); line-height: 1.1; }
.brand-wordmark { display: block; height: 34px; width: auto; color: var(--paper); }
.brand-wordmark .wm-em { fill: var(--brand-pale); }
.brand-name em, .hero h1 em { color: var(--brand-pale); font-style: italic; font-weight: 500; }
.primary { display: flex; gap: 28px; font-size: .9rem; }
.primary a { color: #b8b2a4; padding-bottom: 3px; text-decoration: none; border-bottom: 1px solid transparent; }
.primary a:hover, .primary a[aria-current="page"] { color: var(--paper); border-bottom-color: var(--brand); }
.mast-actions { display: flex; align-items: center; gap: 14px; }
.icon-link { display: inline-grid; place-items: center; width: 36px; height: 36px; color: #b8b2a4; border-radius: 50%; }
.icon-link:hover { color: var(--paper); background: var(--ink-2); }
.icon-link svg { width: 18px; height: 18px; }
.subscribe-cta { display: inline-flex; align-items: center; gap: .45em; background: var(--brand); color: var(--ink); padding: 10px 18px; font-size: .85rem; font-weight: 600; line-height: 1; text-decoration: none; border-radius: 3px; white-space: nowrap; letter-spacing: .01em; }
.subscribe-cta::before { content: ""; width: 15px; height: 11px; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 11'%3E%3Cpath d='M1 1h13v9H1z' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3Cpath d='M1.5 1.5 7.5 6l6-4.5' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 11'%3E%3Cpath d='M1 1h13v9H1z' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3Cpath d='M1.5 1.5 7.5 6l6-4.5' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat; }
.subscribe-cta:hover { background: var(--brand-pale); }
.menu-toggle { display: none; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--line-dark); border-radius: 2px; background: transparent; color: var(--paper); cursor: pointer; }
.menu-toggle svg { width: 20px; height: 20px; }

/* ---------- hero ---------- */
.hero { padding: 50px 0 34px; }
.eyebrow { color: var(--brand-pale); font-size: .85rem; margin-bottom: 12px; }
.hero h1 { max-width: 20ch; font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height: 1.14; }
.hero p { max-width: 56ch; margin: 16px 0 0; color: #c7c1b2; font-size: 1.02rem; }

/* Hero: copy on the left; the moving Highlights card sits in the right-hand space, centred beside the text. */
.hero-grid.has-highlights { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.hero-grid.has-highlights .hero-copy h1 { max-width: 18ch; }
.highlights { min-width: 0; background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: 6px; padding: 16px 18px 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, .28); }
.hl-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.hl-head h2 { font: 600 .75rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--brand-pale); }
.hl-head h2::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--brand); vertical-align: 1px; }
.hl-controls { display: flex; align-items: center; gap: 4px; }
.hl-count { margin-right: 6px; font: 400 .75rem var(--mono); color: var(--muted-on-dark); }
.hl-btn { display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 1px solid var(--line-dark); border-radius: 50%; background: transparent; color: #beb8a9; cursor: pointer; }
.hl-btn:hover { color: var(--paper); border-color: #6b665c; }
.hl-btn svg { width: 14px; height: 14px; }
.hl-btn .icon-play { display: none; }
.highlights.paused .hl-btn .icon-play { display: inline; } .highlights.paused .hl-btn .icon-pause { display: none; }
.hl-track { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.hl-slide { border-top: 1px solid var(--line-dark); }
.hl-slide:first-child { border-top: 0; }
.hl-link { display: grid; grid-template-columns: minmax(0, 1fr) 112px; gap: 16px; align-items: center; padding: 14px 0; color: var(--paper); text-decoration: none; }
.hl-tag { display: block; margin-bottom: 6px; color: var(--brand-pale); font-size: .75rem; font-weight: 600; letter-spacing: .02em; }
.hl-title { display: block; font: 600 1.2rem/1.28 var(--serif); letter-spacing: -.005em; }
.hl-dek { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 7px; color: #c7c1b2; font-size: .88rem; line-height: 1.45; }
.hl-more { display: inline-block; margin-top: 9px; color: var(--brand-pale); font-size: .8rem; font-weight: 600; }
.hl-link:hover .hl-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.hl-link:hover .hl-more { text-decoration: underline; }
.hl-thumb { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 3px; background: linear-gradient(135deg, var(--brand), var(--paper-deep)); }
.hl-thumb.regulation { background: linear-gradient(135deg, var(--rust), var(--paper-deep)); }
.hl-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hl-dots { display: none; gap: 5px; margin-top: 4px; }
/* Without JavaScript the list simply scrolls inside the card; with it, one highlight at a time. */
.highlights:not(.is-live) .hl-viewport { max-height: 300px; overflow-y: auto; }
.highlights.is-live .hl-viewport { overflow: hidden; }
.highlights.is-live .hl-track { display: flex; transition: transform .5s ease; }
.highlights.is-live .hl-slide { flex: 0 0 100%; min-width: 0; border-top: 0; }
.highlights.is-live .hl-dots { display: flex; }
.hl-dots i { display: block; height: 3px; flex: 1; max-width: 28px; border-radius: 2px; background: #4a463f; overflow: hidden; position: relative; }
.hl-dots i.on { background: var(--brand); }
@media (prefers-reduced-motion: reduce) { .highlights.is-live .hl-track { transition: none; } }
@media (max-width: 600px) { .hl-link { grid-template-columns: minmax(0, 1fr) 84px; gap: 12px; } .hl-title { font-size: 1.08rem; } .hl-btn { width: 36px; height: 36px; } }

/* ---------- ticker ---------- */
.ticker-bar { position: relative; display: flex; align-items: center; border-block: 1px solid var(--line-dark); background: var(--ink-2); }
.ticker-label { flex: none; display: inline-flex; align-items: center; gap: 8px; align-self: stretch; padding: 0 18px 0 max(18px, calc((100vw - var(--max)) / 2 + 32px)); border-right: 1px solid var(--line-dark); color: var(--brand-pale); font: 500 .75rem var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.ticker-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.ticker-viewport { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 36px, #000 calc(100% - 48px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 36px, #000 calc(100% - 48px), transparent 100%); }
.ticker-track { display: inline-flex; min-width: 100%; animation: scroll-left 40s linear infinite; padding: 9px 0; }
.ticker-bar.paused .ticker-track, .ticker-bar:hover .ticker-track { animation-play-state: paused; }
.ticker-set { display: inline-flex; }
.ticker-item { display: inline-flex; gap: 8px; align-items: baseline; padding: 0 22px; border-right: 1px solid var(--line-dark); color: #beb8a9; font-size: .83rem; }
.ticker-item .cc { color: var(--brand-pale); font-family: var(--mono); font-size: .76rem; }
.ticker-item b { color: var(--paper); font-family: var(--mono); font-weight: 500; }
.ticker-item .delayed { color: var(--amber); font: .75rem var(--mono); }
.ticker-empty { padding: 0 24px; color: var(--muted-on-dark); font-size: .83rem; }

.ticker-toggle { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; margin: 0 max(14px, calc((100vw - var(--max)) / 2 + 32px)) 0 10px; padding: 0; border: 1px solid var(--line-dark); border-radius: 50%; background: transparent; color: #beb8a9; cursor: pointer; transition: color .15s, border-color .15s; }
.ticker-toggle:hover, .ticker-toggle:focus-visible { color: var(--paper); border-color: #6b665c; }
.ticker-toggle svg { width: 12px; height: 12px; }
.ticker-toggle .icon-play { display: none; }
.ticker-bar.paused .ticker-toggle .icon-play { display: inline; }
.ticker-bar.paused .ticker-toggle .icon-pause { display: none; }
@keyframes scroll-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- market snapshot ---------- */
.metrics { padding: 38px 0 44px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.section-head h2 { font-size: 1.15rem; }
.key { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted-on-dark); font-size: .78rem; }
.key-dot { display: inline-flex; align-items: center; gap: 5px; }
.key-dot i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.live-dot { background: #8fe0a8; } .report-dot { background: var(--brand-pale); } .delayed-dot { background: var(--amber); }
.metric-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.metric-row > :first-child { grid-column: span 1; }
@media (min-width: 961px) { .metric-row.n4 { grid-template-columns: 1.3fr 1fr 1fr 1fr; } .country-row.n4 { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.metric-card, .country-card { padding: 18px; min-width: 0; }
.metric-card.live { background: var(--forest); }
.metric-card.delayed { background: var(--delayed-bg); border: 1px solid #5b4a26; }
.metric-card.report, .country-card { background: var(--ink-2); border: 1px solid var(--line-dark); }
.badge { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px; color: #c9c2b0; font: .75rem var(--mono); }
.badge.live-b { color: #b9ebc7; } .badge.delayed-b { color: #f1c879; }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-pale); }
.badge.live-b .dot { background: #8fe0a8; box-shadow: 0 0 0 3px rgba(143,224,168,.25); animation: pulse 1.8s infinite; }
.badge.delayed-b .dot { background: var(--amber); }
.metric-val, .cc-val { color: var(--paper); font-family: var(--mono); overflow-wrap: anywhere; }
.metric-val { font-size: 1.85rem; } .metric-lbl { color: #d4cfc1; font-size: .85rem; margin-top: 3px; }
.metric-pending, .cc-pending { color: var(--brand-pale); font: italic .95rem var(--serif); margin-top: 6px; }
.metric-stamp, .cc-stamp { color: var(--muted-on-dark); font-size: .75rem; margin-top: 9px; }
@keyframes pulse { 50% { opacity: .35; } }
.country-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 12px; }
.country-card { display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; }
a.country-card:hover { border-color: var(--brand); }
.country-card.hi { background: var(--brand); border-color: var(--brand); }
.country-card.hi .cc-name, .country-card.hi .cc-val { color: var(--ink); }
.cc-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.cc-name { color: var(--paper); font-family: var(--serif); } .country-card.hi .cc-name { font-size: 1.2rem; }
.cc-code { color: #b9b2a0; font: .75rem var(--mono); }
.cc-val { margin-top: 10px; font-size: 1.5rem; } .country-card.hi .cc-val { font-size: 2rem; }
.country-card.hi .cc-code, .country-card.hi .cc-stamp, .country-card.hi .cc-pending { color: var(--ink-2); }
/* "What this figure means": a small (i) on each figure */
.metric-card, .country-figure { position: relative; }
.country-card-wrap { position: relative; display: flex; min-width: 0; }
.country-card-wrap > .country-card { flex: 1; min-width: 0; }
.explain { position: absolute; top: 12px; right: 12px; z-index: 5; }
.country-card-wrap > .explain { top: auto; bottom: 10px; right: 10px; }
.explain > summary { list-style: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
                     border: 1px solid currentColor; color: var(--muted-on-dark); cursor: pointer;
                     font: italic 600 .8rem/1 var(--serif); }
.explain > summary::-webkit-details-marker { display: none; }
.explain > summary:hover, .explain[open] > summary { color: var(--ink); background: var(--brand-pale); border-color: var(--brand-pale); }
.country-card-wrap.hi > .explain > summary { color: var(--ink-2); }
.explain-body { position: absolute; top: calc(100% + 8px); right: 0; width: min(320px, calc(100vw - 32px));
                padding: 14px 16px; background: var(--paper); color: var(--ink); border: 1px solid var(--line);
                box-shadow: 0 12px 30px rgba(27, 25, 22, .28); font-size: .84rem; line-height: 1.45; text-align: left; }
.country-card-wrap > .explain .explain-body { top: auto; bottom: calc(100% + 8px); }
.explain-body ul { margin: 0 0 10px; padding-left: 1.1em; display: grid; gap: 6px; }
.explain-body a { color: var(--forest); font-weight: 600; }
.metric-card .badge { padding-right: 34px; }
.country-card-wrap .cc-stamp { padding-right: 34px; }
.snapshot-note { margin-top: 14px; color: var(--muted-on-dark); font-size: .75rem; }
.snapshot-note a { color: #c7c1b2; }

/* ---------- big story ---------- */
.big-story { padding-top: 44px; padding-bottom: 8px; }
.big-story-grid { display: grid; grid-template-columns: 1.65fr 1fr; gap: 28px; }
.lead-story { display: grid; gap: 0; align-content: start; text-decoration: none; }
.lead-story .lead-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, var(--brand), var(--paper-deep)); }
.lead-story .lead-media img { width: 100%; height: 100%; object-fit: cover; }
.lead-story .lead-body { padding: 20px 0 0; }
.lead-story h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.12; margin-top: 4px; }
.lead-story:hover h3, .secondary-story:hover h3 { color: var(--forest); }
.lead-story p.dek { color: var(--ink-soft); font-size: 1.02rem; margin: 12px 0 0; max-width: 60ch; }
.secondary-stories { display: grid; gap: 22px; align-content: start; }
.secondary-story { display: grid; grid-template-columns: 1fr; gap: 12px; text-decoration: none; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.secondary-story:last-child { border-bottom: 0; }
.secondary-story .sec-media { aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, var(--forest), var(--paper-deep)); }
.secondary-story .sec-media img { width: 100%; height: 100%; object-fit: cover; }
.secondary-story h3 { font-size: 1.2rem; line-height: 1.25; }
.big-story-empty { padding: 28px; background: var(--paper-deep); color: var(--ink-soft); border-left: 3px solid var(--brand); }

/* ---------- main two-column ---------- */
.main { display: grid; grid-template-columns: 1.7fr 1fr; }
.news-col { padding: 44px 32px 44px 0; border-right: 1px solid var(--line); min-width: 0; }
.side-col { padding: 44px 0 44px 32px; min-width: 0; }
.section-title { font-size: 1.3rem; }
.section-sub { color: var(--ink-soft); font-size: .85rem; margin: 3px 0 20px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filter { display: inline-block; padding: 6px 15px; border: 1px solid var(--line); border-radius: 14px; background: transparent; color: var(--ink-soft); font-size: .8rem; text-decoration: none; cursor: pointer; }
.filter:hover { border-color: var(--ink-soft); color: var(--ink); }
.filter.on { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.more-countries { position: relative; }
.more-countries > summary { list-style: none; }
.more-countries > summary::-webkit-details-marker { display: none; }
.more-countries[open] > summary { border-color: var(--ink); color: var(--ink); }
.more-countries-menu { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; display: grid; grid-template-columns: repeat(3, minmax(130px, 1fr)); gap: 2px 14px; width: min(560px, calc(100vw - 32px)); max-height: 340px; overflow-y: auto; padding: 14px 16px; border: 1px solid var(--line); background: var(--paper); box-shadow: 0 10px 28px rgba(27, 25, 22, .14); }
.more-countries-menu a { padding: 4px 0; color: var(--ink-soft); font-size: .82rem; text-decoration: none; }
.more-countries-menu a:hover, .more-countries-menu a[aria-current="true"] { color: var(--ink); text-decoration: underline; }
.more-countries-menu .all { grid-column: 1 / -1; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); font-weight: 600; color: var(--ink); }
@media (max-width: 640px) {
  .filters { position: relative; }
  .more-countries { position: static; }
  .more-countries-menu { left: 16px; right: 16px; width: auto; grid-template-columns: repeat(2, 1fr); }
}
.art-tag { display: inline-block; margin-bottom: 8px; color: var(--brand-ink); font-size: .75rem; font-weight: 600; letter-spacing: .02em; }
.art-tag a { text-decoration: none; }
.art-title { font-family: var(--serif); font-size: 1.02rem; font-weight: 600; line-height: 1.35; }
.art-meta { color: var(--ink-soft); font-size: .78rem; margin-top: 10px; }
.art-meta .src, .src { color: var(--forest); font-weight: 600; }
.article { display: grid; grid-template-columns: 1fr 96px; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.article:first-child { padding-top: 0; }
.article a { text-decoration: none; } .article a:hover { color: var(--forest); }
.article .dek { color: var(--ink-soft); font-size: .88rem; margin: 6px 0 0; }
.art-thumb { width: 96px; height: 96px; overflow: hidden; background: linear-gradient(135deg, var(--brand), var(--paper-deep)); }
.art-thumb img { width: 100%; height: 100%; object-fit: cover; }
.art-thumb.regulation { background: linear-gradient(135deg, var(--rust), var(--paper-deep)); }
.load-more { display: inline-block; margin-top: 24px; padding: 10px 20px; border: 1px solid var(--ink); color: var(--ink); text-decoration: none; font-size: .85rem; font-weight: 600; background: transparent; cursor: pointer; }
.load-more:hover { background: var(--ink); color: var(--paper); }
.empty-state { padding: 24px; background: var(--paper-deep); color: var(--ink-soft); }

/* sidebar */
.newsletter-box { padding: 26px 24px; margin-bottom: 24px; background: var(--ink); color: var(--paper); }
.newsletter-box h2 { font-size: 1.15rem; margin-bottom: 8px; }
.newsletter-box p { color: #c7c1b2; font-size: .85rem; margin: 0; }
.signup-row { display: flex; margin-top: 16px; }
.signup-row input[type=email] { width: 0; min-width: 0; flex: 1 1 auto; padding: 10px 11px; border: 1px solid var(--line-dark); border-right: 0; background: var(--ink-2); color: var(--paper); }
.signup-row button { padding: 10px 16px; border: 1px solid var(--brand); background: var(--brand); color: var(--ink); cursor: pointer; font-size: .85rem; font-weight: 600; }
.signup-row button:hover { background: var(--brand-pale); }
.signup-row button[disabled] { opacity: .6; cursor: wait; }
.consent { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; color: #b8b2a4; font-size: .8rem; line-height: 1.45; }
.consent input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--brand); }
.consent a { color: #c7c1b2; }
.signup-fine { color: #8b8577; font-size: .75rem; margin-top: 9px; min-height: 1.1em; }
.signup-fine.ok { color: #b9ebc7; } .signup-fine.err { color: #f0b3a3; }
.panel { padding: 20px 22px; margin-bottom: 20px; border: 1px solid var(--line); background: var(--paper-deep); }
.panel h2 { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 14px; font: 600 .95rem var(--sans); }
.panel .note { color: var(--ink-soft); font: 400 .75rem var(--mono); }
.panel p { color: var(--ink-soft); font-size: .83rem; margin: 0; }
.panel-start { align-self: start; }
.panel-list { margin: 0 0 14px; padding-left: 18px; color: var(--ink); font-size: .88rem; line-height: 1.55; }
.panel-list li { margin-bottom: 6px; }
.most-read ol { margin: 0; padding: 0; list-style: none; counter-reset: rank; }
.most-read li { counter-increment: rank; display: grid; grid-template-columns: 28px 1fr; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.most-read li:last-child { border-bottom: 0; padding-bottom: 0; }
.most-read li::before { content: counter(rank); font: 500 1.1rem var(--mono); color: var(--brand-ink); }
.most-read a { font-family: var(--serif); font-size: .95rem; text-decoration: none; line-height: 1.3; }
.most-read a:hover { color: var(--forest); }

/* status chips */
.status { display: inline-block; padding: 2px 7px; font: .75rem var(--mono); white-space: nowrap; }
.status.in_force { background: var(--forest); color: #fff; }
.status.developing { border: 1px solid var(--brand); color: #8a5a17; }
.status.researching, .status.pending { border: 1px solid var(--line); color: var(--ink-soft); }

/* ---------- content pages ---------- */
.content-page { min-height: 62vh; padding-top: 48px; padding-bottom: 72px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; padding: 0; list-style: none; color: var(--ink-soft); font-size: .8rem; }
.breadcrumbs li + li::before { content: '/'; margin-right: 6px; color: var(--line); }
.breadcrumbs a { color: var(--forest); text-decoration: none; }
.page-eyebrow { color: var(--brand-ink); font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.content-page h1 { max-width: 820px; margin-top: 10px; font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.08; }
.page-intro { max-width: 640px; margin: 16px 0 32px; color: var(--ink-soft); font-size: 1.05rem; }
.section-lead { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; margin-bottom: 36px; padding-bottom: 36px; border-bottom: 1px solid var(--line); text-decoration: none; }
.section-lead .lead-media { aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, var(--brand), var(--paper-deep)); }
.section-lead .lead-media img { width: 100%; height: 100%; object-fit: cover; }
.section-lead h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.15; }
.section-lead:hover h2 { color: var(--forest); }
.section-lead p { color: var(--ink-soft); }
.section-layout { display: grid; grid-template-columns: 1.7fr 1fr; gap: 48px; }
.pagination { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; font-size: .85rem; }
.pagination a { color: var(--forest); font-weight: 600; text-decoration: none; }
.pagination span { color: var(--ink-soft); }

/* ---------- article page ---------- */
.story { padding-top: 40px; padding-bottom: 72px; }
.story-head { max-width: 820px; }
.story-head h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.1; margin-top: 10px; }
.story-dek { margin: 16px 0 0; color: var(--ink-soft); font-size: 1.2rem; line-height: 1.5; max-width: 62ch; }
.story-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip { display: inline-block; padding: 3px 10px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink-soft); font-size: .75rem; text-decoration: none; }
.chip:hover { border-color: var(--ink-soft); color: var(--ink); }
.chip.section { border-color: var(--brand); color: var(--brand-ink); font-weight: 600; }
.byline { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .85rem; }
.byline a { color: var(--ink); font-weight: 600; text-decoration: none; } .byline a:hover { color: var(--forest); }
.byline .dot-sep::before { content: '·'; margin-right: 14px; color: var(--line); }
.story-cover { max-width: 1040px; margin: 28px 0 0; }
.story-cover img { width: 100%; }
.story-cover figcaption, .figure figcaption { margin-top: 8px; color: var(--ink-soft); font-size: .8rem; }
.credit { color: #8b8577; font-size: .78rem; margin-left: 6px; }

.story-layout { display: grid; grid-template-columns: minmax(0, 680px) 1fr; gap: 64px; margin-top: 32px; }
.story-body { color: var(--ink); font-size: 1.08rem; line-height: 1.72; min-width: 0; }
.story-body > * { margin: 0 0 1.15em; }
.story-body h2 { font-size: 1.55rem; line-height: 1.2; margin: 1.6em 0 .6em; }
.story-body h3 { font-size: 1.25rem; margin: 1.4em 0 .5em; }
.story-body h4 { font: 600 1rem var(--sans); margin: 1.2em 0 .4em; }
.story-body a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.story-body blockquote { margin: 1.4em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--brand); font: italic 500 1.2rem/1.5 var(--serif); color: var(--ink); }
.story-body ul, .story-body ol { padding-left: 1.3em; }
.story-body li { margin-bottom: .4em; }
.story-body table { width: 100%; border-collapse: collapse; font-size: .92rem; display: block; overflow-x: auto; }
.story-body th, .story-body td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.story-body th { font-weight: 600; background: var(--paper-deep); }
.story-body code { font-family: var(--mono); font-size: .9em; background: var(--paper-deep); padding: 1px 5px; }
.story-body pre { overflow-x: auto; padding: 14px; background: var(--ink); color: var(--paper); }
.story-body hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.figure { margin: 1.6em 0; }
.figure img { width: 100%; }
.correction { max-width: 680px; margin: 24px 0 0; padding: 16px 18px; border-left: 3px solid var(--brand); background: var(--paper-deep); font-size: .92rem; }
.correction strong { display: block; font: 600 .75rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #8a5a17; margin-bottom: 4px; }
.correction p { margin: 0; }
.sources { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); }
.sources h2 { font: 600 .8rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 10px; }
.sources ol { margin: 0; padding-left: 1.2em; font-size: .9rem; color: var(--ink-soft); }
.sources a { color: var(--forest); }
.disclaimer { margin-top: 24px; padding: 12px 14px; border: 1px solid var(--line); color: var(--ink-soft); font-size: .8rem; }
.share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 28px; font-size: .8rem; color: var(--ink-soft); }
.share a, .share button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); background: transparent; color: var(--ink); font-size: .8rem; text-decoration: none; cursor: pointer; }
.share a:hover, .share button:hover { border-color: var(--ink); }
.story-aside { position: sticky; top: 24px; align-self: start; }
.related { margin-top: 56px; }
.related h2 { font-size: 1.3rem; margin-bottom: 18px; padding-top: 28px; border-top: 2px solid var(--ink); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.related-card { text-decoration: none; display: grid; gap: 10px; align-content: start; }
.related-card .rel-media { aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, var(--brand), var(--paper-deep)); }
.related-card .rel-media img { width: 100%; height: 100%; object-fit: cover; }
.related-card h3 { font-size: 1.05rem; line-height: 1.3; }
.related-card:hover h3 { color: var(--forest); }

/* ---------- countries ---------- */
.country-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 24px; }
.country-tools input { padding: 10px 12px; border: 1px solid var(--line); background: #fbf8f0; min-width: 260px; }
.legend { display: flex; flex-wrap: wrap; gap: 10px; font-size: .78rem; color: var(--ink-soft); }
.region { margin-top: 32px; }
.region h2 { font-size: 1.2rem; margin-bottom: 10px; }
.country-directory { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 24px; border-top: 1px solid var(--line); }
.country-link { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.country-link .cname { font-family: var(--serif); font-size: 1.05rem; }
.country-link:hover .cname { color: var(--brand-ink); }
.country-link.active .cname::after { content: ' ●'; color: var(--forest); font-size: .6rem; vertical-align: middle; }
.country-hero { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
.country-figure { padding: 22px; background: var(--ink); color: var(--paper); }
.country-figure .metric-val { font-size: 2.2rem; }
.country-sections { display: grid; grid-template-columns: minmax(0, 1.6fr) 1fr; gap: 48px; margin-top: 36px; }
.compliance { padding: 24px 26px; background: var(--paper-deep); border-left: 3px solid var(--forest); }
.compliance h2 { font-size: 1.2rem; margin-bottom: 12px; }
.compliance .story-body { font-size: 1rem; }
.regulator-directory ul { display: grid; padding: 0; margin: 0; list-style: none; }
.regulator-directory li { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.regulator-directory li:last-child { border-bottom: 0; }
.regulator-directory strong { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; }
.regulator-directory span { color: var(--ink-soft); font-size: .85rem; }
.regulator-directory .links { display: flex; flex-wrap: wrap; gap: 12px; font-size: .8rem; }
.regulator-directory .links a { color: var(--forest); }
.reg-entry { padding: 18px 0; border-bottom: 1px solid var(--line); }
.reg-entry h3 { font-size: 1.1rem; margin-bottom: 6px; }
.reg-entry .story-body { font-size: .95rem; }
.reg-entry .meta { color: var(--ink-soft); font: .78rem var(--mono); }
.reg-entry .meta a { color: var(--forest); }

/* ---------- forms & misc pages ---------- */
.form-card { max-width: 560px; padding: 28px; background: var(--ink); color: var(--paper); }
.form-card h2 { font-size: 1.3rem; margin-bottom: 8px; }
.form-card p { color: #c7c1b2; }
.result-card { max-width: 620px; padding: 32px; background: var(--paper-deep); border-left: 3px solid var(--forest); }
.result-card.warn { border-left-color: var(--rust); }
.result-card button, .button { display: inline-block; margin-top: 16px; padding: 10px 18px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font-weight: 600; text-decoration: none; cursor: pointer; }
.issue-list { list-style: none; padding: 0; margin: 0; max-width: 720px; }
.issue-list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.issue-list a { font-family: var(--serif); font-size: 1.1rem; text-decoration: none; }
.issue-list a:hover { color: var(--forest); }
.prose { max-width: 720px; }
.search-form { display: flex; max-width: 640px; margin-bottom: 28px; }
.search-form input { flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid var(--ink); background: #fbf8f0; }
.search-form button { padding: 12px 18px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font-weight: 600; cursor: pointer; }
.author-head { display: flex; gap: 20px; align-items: center; }
.author-head img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; }
.error-page { text-align: left; }
.error-page .code { font: 500 4rem var(--mono); color: var(--rust); }

/* ---------- footer ---------- */
.site-footer { margin-top: 0; background: var(--ink); color: #b8b2a4; font-size: .85rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-top: 44px; padding-bottom: 28px; }
.site-footer h2 { font: 600 .75rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--brand-pale); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #d4cfc1; text-decoration: none; } .site-footer a:hover { color: var(--paper); text-decoration: underline; }
.site-footer .brand { margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid var(--line-dark); }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 16px; padding-bottom: 24px; grid-template-columns: none; font-size: .78rem; color: #8b8577; }

/* ---------- responsive ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track, .badge.live-b .dot { animation: none; }
  .ticker-viewport { overflow-x: auto; }
}
/* The header needs about 1,110px for the name, five section links and the full button,
   so below 1,140px the sections move into the menu (the extra margin covers fonts still loading). */
@media (max-width: 1140px) {
  .menu-toggle { display: inline-flex; }
  .primary { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; padding: 8px 32px 18px; background: var(--ink); border-bottom: 1px solid var(--line-dark); }
  .primary a { padding: 12px 0; border-bottom: 1px solid var(--line-dark); font-size: 1rem; }
  .primary.open, .primary:target { display: flex; }
}
/* Tablets in portrait: the button says "Subscribe" so the full name still fits from 601px. */
@media (max-width: 760px) {
  .wrap { padding-inline: 24px; }
  .primary { padding-inline: 24px; }
  .mast-actions { gap: 10px; }
  .subscribe-cta .cta-long { display: none; }
}
@media (max-width: 1080px) {
  .story-layout { grid-template-columns: 1fr; gap: 0; }
  .story-aside { position: static; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .hero-grid.has-highlights { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero-grid.has-highlights .hero-copy h1 { max-width: 20ch; }
  .main, .section-layout, .big-story-grid, .country-hero, .country-sections, .section-lead { grid-template-columns: minmax(0, 1fr); }
  .news-col { padding: 36px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .side-col { padding: 36px 0; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .country-directory { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .wrap { padding-inline: 16px; }
  .primary { padding-inline: 16px; }
  .masthead-inner { gap: 10px; }
  .brand-mark { height: 32px; }
  .brand-wordmark { height: 28px; }
  .mast-actions { gap: 6px; }
  .subscribe-cta { padding: 8px 12px; }
  .metric-row, .country-row, .related-grid, .country-directory { grid-template-columns: 1fr; }
  .article { grid-template-columns: 1fr 72px; }
  .art-thumb { width: 72px; height: 72px; }
  /* Footer on phones: the brand across the top, then two columns of links, not one long list. */
  .site-footer > .wrap { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding-top: 36px; }
  .site-footer > .wrap > :first-child { grid-column: 1 / -1; }
  .country-tools input { min-width: 0; width: 100%; }
}
@media (max-width: 600px), (pointer: coarse) {
  .brand { min-height: 44px; }
  .icon-link { width: 44px; height: 44px; }
  .menu-toggle { width: 44px; height: 44px; }
  .subscribe-cta { min-height: 44px; }
  .ticker-toggle { width: 36px; height: 36px; margin-right: 12px; }
  .ticker-label { padding: 0 12px; }
  .filter { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border-radius: 20px; }
  .chip, .share a, .share button { min-height: 36px; display: inline-flex; align-items: center; }
  .breadcrumbs a, .art-tag a, .regulator-directory .links a, .reg-entry .meta a, .pagination a, .byline a {
    display: inline-block; padding-block: 10px; margin-block: -10px; }
  .art-title a, .most-read a { display: inline-block; padding-block: 4px; margin-block: -4px; }
  .sources li { padding-block: 5px; }
  .site-footer ul { gap: 0; }
  .site-footer li a { display: inline-block; padding-block: 9px; }
  .signup-row input[type=email], .signup-row button, .search-form input, .search-form button,
  .country-tools input, .load-more, .button, .result-card button { min-height: 44px; }
  .consent { padding-block: 4px; }
  .explain > summary { width: 32px; height: 32px; }
  .explain > summary::after { content: ""; position: absolute; inset: -6px; }
  .more-countries-menu a { padding-block: 10px; }
  .newsletter-box { padding: 22px 20px; }
}
/* The smallest phones (320-374px): tighten the header so mark, search, button and menu fit. */
@media (max-width: 374px) {
  .masthead-inner { gap: 6px; }
  .mast-actions { gap: 2px; }
  .subscribe-cta { padding-inline: 10px; }
}
/* Phones: the ASI mark carries the brand on its own, leaving room for search and the button. */
@media (max-width: 520px) { .brand-name { display: none; } }
@media print {
  .masthead, .ticker-bar, .site-footer, .share, .newsletter-box, .story-aside, .related, .breaking { display: none !important; }
  body { background: #fff; }
}

/* Country flags beside names */
.flag { display: inline-block; vertical-align: -0.12em; margin-right: .4em; border-radius: 2px;
        box-shadow: 0 0 0 1px rgba(27, 25, 22, .15); object-fit: cover; }
.with-flag { display: flex; align-items: center; gap: .1em; }
.with-flag .flag { vertical-align: middle; }
