/* =========================================================
   The Brief: front-end theme
   Brand tokens live here. Swap these values to match the
   exact logo colours if they differ.
   ========================================================= */
:root {
  --brand-navy: #0b1f3a;       /* primary: masthead nav, dark bands */
  --brand-navy-2: #132c52;
  --brand-accent: #8c6a1f;     /* accent: links, kickers, CTAs (deep gold, readable on light backgrounds) */
  --brand-accent-dark: #6f5317;
  --brand-gold: #c9a24b;       /* premium accent: advisory, rules */
  --brand-green: #1f6f4a;      /* diaspora / climate accent */
  --paper: #fbfaf7;
  --paper-2: #f3f0e9;
  --ink: #15171c;
  --ink-2: #4a4f5a;
  --ink-3: #7b808a;
  --rule: #e2ddd2;
  --white: #fff;

  --f-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --f-serif: "Source Serif 4", Georgia, serif;
  --f-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 4px;
  --shadow: 0 1px 2px rgba(11,31,58,.06), 0 8px 24px rgba(11,31,58,.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand-accent); }
img { max-width: 100%; display: block; }

.container-xl { max-width: 1280px; }

/* ---------- Utility bar ---------- */
.utility-bar {
  background: var(--brand-navy);
  color: rgba(255,255,255,.78);
  font-size: 12.5px;
  letter-spacing: .02em;
}
.utility-bar .inner { display: flex; align-items: center; gap: 1.25rem; min-height: 36px; }
.utility-bar .clocks { display: flex; gap: 1rem; }
.utility-bar .clocks span b { color: #fff; font-weight: 600; margin-left: .3rem; font-variant-numeric: tabular-nums; }
.utility-bar .social a { color: rgba(255,255,255,.78); margin-left: .75rem; }
.utility-bar .social a:hover { color: #fff; }

/* ---------- Masthead ---------- */
.masthead { background: var(--white); border-bottom: 1px solid var(--rule); }
.masthead .inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding-top: 18px; padding-bottom: 14px; gap: 1rem; }
.masthead .edition { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
.masthead .edition strong { display: block; color: var(--ink); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: 11px; }
.brand { text-align: center; }
.brand .logo-img { max-height: 70px; width: auto; margin: 0 auto; }
.brand .wordmark {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  letter-spacing: -.02em;
  line-height: 1;
  color: var(--brand-navy);
}
.brand .wordmark .dot { color: var(--brand-accent); }
.brand .tagline {
  font-size: 11px; text-transform: uppercase; letter-spacing: .32em; color: var(--ink-3); margin-top: 6px;
}
.masthead .actions { display: flex; justify-content: flex-end; gap: .5rem; align-items: center; }

.btn-brand { background: var(--brand-accent); color: #fff; border: 0; font-weight: 600; font-size: 13.5px; padding: .55rem 1rem; border-radius: var(--radius); }
.btn-brand:hover { background: var(--brand-accent-dark); color: #fff; }
.btn-ghost { border: 1px solid var(--rule); background: transparent; color: var(--ink); font-weight: 600; font-size: 13.5px; padding: .5rem .9rem; border-radius: var(--radius); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-gold { background: var(--brand-gold); color: var(--brand-navy); border: 0; font-weight: 700; padding: .7rem 1.25rem; border-radius: var(--radius); }
.btn-gold:hover { background: #d8b45f; color: var(--brand-navy); }

/* ---------- Primary nav ---------- */
.primary-nav { background: var(--white); border-bottom: 3px solid var(--brand-navy); position: sticky; top: 0; z-index: 1030; transition: box-shadow .2s; }
.primary-nav.scrolled { box-shadow: 0 4px 18px rgba(0,0,0,.08); }
.primary-nav .navbar { padding: 0; }
.primary-nav .nav-link {
  font-weight: 600; font-size: 14px; color: var(--ink) !important; padding: 14px 14px !important;
  position: relative;
}
.primary-nav .nav-link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: -3px; height: 3px; background: var(--brand-accent);
  transform: scaleX(0); transition: transform .2s; transform-origin: left;
}
.primary-nav .nav-link:hover::after, .primary-nav .nav-link.active::after { transform: scaleX(1); }
.primary-nav .nav-advisory { color: var(--brand-accent) !important; }
.primary-nav .mini-brand { font-family: var(--f-display); font-weight: 900; font-size: 1.4rem; color: var(--brand-navy); display: none; margin-right: .75rem; }
.primary-nav.scrolled .mini-brand { display: inline-block; }
.dropdown-menu { border-radius: 0; border: 1px solid var(--rule); border-top: 3px solid var(--brand-accent); box-shadow: var(--shadow); padding: .5rem 0; }
.dropdown-item { font-size: 14px; font-weight: 500; padding: .5rem 1.1rem; }
.dropdown-item:hover { background: var(--paper-2); color: var(--brand-accent); }
.icon-btn { background: none; border: 0; color: var(--ink); font-size: 1.15rem; padding: 8px; }
.icon-btn:hover { color: var(--brand-accent); }

/* ---------- Ticker ---------- */
.ticker { background: var(--white); border-bottom: 1px solid var(--rule); font-size: 14px; overflow: hidden; }
.ticker .inner { display: flex; align-items: stretch; }
.ticker .label {
  background: var(--brand-accent); color: #fff; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .1em;
  padding: 9px 14px; display: flex; align-items: center; gap: .45rem; flex-shrink: 0;
}
.ticker .label .pulse { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 1.4s infinite; }
@keyframes pulse { 0%{opacity:1} 50%{opacity:.25} 100%{opacity:1} }
.ticker .track-wrap { overflow: hidden; flex: 1; position: relative; mask-image: linear-gradient(90deg, transparent, #000 30px, #000 calc(100% - 30px), transparent); }
.ticker .track { display: inline-flex; gap: 2.5rem; white-space: nowrap; padding: 9px 0 9px 1.25rem; animation: ticker 60s linear infinite; }
.ticker:hover .track { animation-play-state: paused; }
.ticker .track a { font-weight: 500; }
.ticker .track a span { color: var(--brand-accent); font-weight: 700; margin-right: .4rem; font-size: 12px; text-transform: uppercase; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker .track { animation: none; } }

/* ---------- Common type ---------- */
.kicker {
  display: inline-block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--brand-accent);
}
.kicker.on-dark { color: var(--brand-gold); }
.headline { font-family: var(--f-display); font-weight: 700; line-height: 1.18; letter-spacing: -.005em; color: var(--ink); }
.headline a:hover { color: var(--brand-accent); }
.h-xl { font-size: clamp(1.8rem, 3.4vw, 2.75rem); font-weight: 800; }
.h-lg { font-size: clamp(1.35rem, 2vw, 1.65rem); }
.h-md { font-size: 1.2rem; }
.h-sm { font-size: 1.02rem; line-height: 1.3; }
.dek { font-family: var(--f-serif); color: var(--ink-2); font-size: 1.02rem; line-height: 1.55; }
.meta { font-size: 12.5px; color: var(--ink-3); display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.meta .by { color: var(--ink-2); font-weight: 600; }
.meta .sep { width: 3px; height: 3px; background: var(--ink-3); border-radius: 50%; }

.section { padding: 48px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; border-top: 3px solid var(--ink); padding-top: 12px; margin-bottom: 24px; gap: 1rem; }
.section-head h2 { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 0; letter-spacing: -.01em; }
.section-head h2 small { display: block; font-family: var(--f-sans); font-size: 13px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; margin-top: 4px; }
.section-head .more { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.section-head .more i { transition: transform .2s; display: inline-block; }
.section-head .more:hover i { transform: translateX(4px); }

/* ---------- Media / thumbnails ---------- */
.thumb { position: relative; overflow: hidden; background: var(--brand-navy); aspect-ratio: 16/10; border-radius: var(--radius); }
.thumb.r-43 { aspect-ratio: 4/3; }
.thumb.r-11 { aspect-ratio: 1/1; }
.thumb.r-tall { aspect-ratio: 4/5; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
a:hover .thumb img, .card-story:hover .thumb img { transform: scale(1.04); }
/* Designed placeholder when an image is missing or fails */
.thumb.noimg {
  background:
    radial-gradient(circle at 80% 20%, rgba(201,162,75,.35), transparent 45%),
    linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-2) 60%, var(--brand-accent-dark) 140%);
}
.thumb.noimg::before {
  content: attr(data-label);
  position: absolute; left: 16px; bottom: 12px; right: 16px;
  font-family: var(--f-display); font-weight: 800; font-size: clamp(1rem, 2.2vw, 1.6rem); color: rgba(255,255,255,.9); line-height: 1.1;
}
.thumb.noimg::after {
  content: "THE BRIEF"; position: absolute; top: 12px; left: 16px; font-size: 10px; letter-spacing: .3em; color: rgba(255,255,255,.55); font-weight: 700;
}
.thumb .badge-cat {
  position: absolute; left: 12px; top: 12px; z-index: 2; background: var(--brand-accent); color: #fff; font-size: 10.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; padding: 4px 8px; border-radius: 2px;
}
.thumb.noimg .badge-cat { display: none; }

/* ---------- Hero ---------- */
.hero { padding: 28px 0 8px; }
.hero-lead { position: relative; display: block; border-radius: var(--radius); overflow: hidden; color: #fff; min-height: 520px; height: 100%; background: var(--brand-navy); }
.hero-lead .thumb { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.hero-lead .overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,31,58,0) 25%, rgba(11,31,58,.55) 55%, rgba(8,20,38,.96) 100%); }
.hero-lead .content { position: absolute; left: 0; right: 0; bottom: 0; padding: 32px; z-index: 2; }
.hero-lead .headline { color: #fff; }
.hero-lead:hover .headline { color: #fff; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.hero-lead .dek { color: rgba(255,255,255,.85); max-width: 640px; }
.hero-lead .meta { color: rgba(255,255,255,.7); }
.hero-lead .meta .by { color: #fff; }
.hero-lead .meta .sep { background: rgba(255,255,255,.6); }
.hero-lead .thumb.noimg::before { display: none; }

.hero-side .card-story + .card-story { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--rule); }

.latest-list { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px 20px; height: 100%; }
.latest-list h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; font-weight: 800; margin: 0 0 6px; display: flex; align-items: center; gap: .5rem; }
.latest-list h3 .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-accent); animation: pulse 1.4s infinite; }
.latest-list ol { list-style: none; margin: 0; padding: 0; counter-reset: l; }
.latest-list li { counter-increment: l; display: grid; grid-template-columns: 54px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.latest-list li:last-child { border-bottom: 0; }
.latest-list .time { font-size: 12px; font-weight: 700; color: var(--brand-accent); font-variant-numeric: tabular-nums; padding-top: 2px; }
.latest-list a { font-family: var(--f-display); font-weight: 700; font-size: 15px; line-height: 1.3; }
.latest-list .cat { display: block; font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; margin-top: 3px; font-weight: 600; }

/* ---------- Story cards ---------- */
.card-story { display: block; }
.card-story .thumb { margin-bottom: 12px; }
.card-story .kicker { margin-bottom: 6px; }
.card-story .headline { margin: 0 0 8px; }
.card-story .dek { font-size: .95rem; margin-bottom: 8px; }
.card-row { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: start; }
.card-row .thumb { margin: 0; aspect-ratio: 4/3; }
.card-row .thumb.noimg::before { font-size: .85rem; left: 10px; bottom: 8px; }
.card-row .thumb.noimg::after { font-size: 8px; left: 10px; top: 8px; }
.list-rule > * + * { border-top: 1px solid var(--rule); padding-top: 16px; margin-top: 16px; }

/* ---------- Region desk (Foreign tabs) ---------- */
.region-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.region-tabs button {
  border: 1px solid var(--rule); background: var(--white); padding: 8px 14px; font-size: 13.5px; font-weight: 600; border-radius: 999px; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: .45rem; transition: all .15s;
}
.region-tabs button .count { background: var(--paper-2); color: var(--ink-3); font-size: 11px; padding: 1px 7px; border-radius: 999px; }
.region-tabs button:hover { border-color: var(--brand-navy); color: var(--brand-navy); }
.region-tabs button.active { background: var(--brand-navy); border-color: var(--brand-navy); color: #fff; }
.region-tabs button.active .count { background: rgba(255,255,255,.18); color: #fff; }
.region-panel { animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.region-map { background: var(--brand-navy); border-radius: var(--radius); padding: 22px; color: #fff; height: 100%; display: flex; flex-direction: column; }
.region-map svg { width: 100%; height: auto; margin: auto 0; }
.region-map .node { cursor: pointer; }
.region-map .node circle.ring { fill: none; stroke: var(--brand-gold); stroke-opacity: 0; transition: stroke-opacity .2s; }
.region-map .node.active circle.ring, .region-map .node:hover circle.ring { stroke-opacity: 1; }
.region-map .node circle.dot { fill: var(--brand-gold); }
.region-map .node.active circle.dot { fill: var(--brand-accent); }
.region-map .node text { fill: rgba(255,255,255,.85); font: 600 11px var(--f-sans); letter-spacing: .04em; }
.region-map .link { stroke: rgba(201,162,75,.35); stroke-width: 1; stroke-dasharray: 3 4; fill: none; }
.region-map .caption { font-size: 12.5px; color: rgba(255,255,255,.7); margin-top: 10px; }

/* ---------- Dark band (Diplomat's Corner) ---------- */
.band-dark { background: var(--brand-navy); color: #fff; }
.band-dark .section-head { border-top-color: var(--brand-gold); }
.band-dark .section-head h2 small { color: rgba(255,255,255,.6); }
.band-dark .headline { color: #fff; }
.band-dark .headline a:hover, .band-dark a:hover .headline { color: var(--brand-gold); }
.band-dark .dek { color: rgba(255,255,255,.75); }
.band-dark .meta { color: rgba(255,255,255,.55); }
.band-dark .meta .by { color: rgba(255,255,255,.85); }
.band-dark .list-rule > * + * { border-top-color: rgba(255,255,255,.12); }
.band-dark .more { color: var(--brand-gold); }

/* Envoy carousel */
.h-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.h-scroll > * { scroll-snap-align: start; }
.scroll-ctrl button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid currentColor; background: transparent; color: inherit; opacity: .8; }
.scroll-ctrl button:hover { opacity: 1; }

/* ---------- Diaspora ---------- */
.diaspora { background: linear-gradient(180deg, var(--paper-2), var(--paper)); position: relative; overflow: hidden; }
.diaspora::before {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
  border: 1px dashed rgba(31,111,74,.25); box-shadow: 0 0 0 60px rgba(31,111,74,.03), 0 0 0 120px rgba(31,111,74,.03);
}
.diaspora .kicker { color: var(--brand-green); }
.hub-cities { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.hub-cities span { background: var(--white); border: 1px solid var(--rule); border-radius: 999px; padding: 6px 12px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.hub-cities span b { color: var(--brand-green); font-variant-numeric: tabular-nums; margin-left: 4px; }
.diaspora-feature { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-columns: 1.1fr 1fr; }
.diaspora-feature .thumb { border-radius: 0; aspect-ratio: auto; min-height: 100%; }
.diaspora-feature .body { padding: 28px; }

/* ---------- Opinion ---------- */
.opinion-card { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: 22px; height: 100%; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.opinion-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.opinion-card .quote { font-family: var(--f-display); font-size: 3rem; line-height: .6; color: var(--brand-accent); height: 22px; }
.opinion-card .headline { font-style: italic; margin: 6px 0 10px; }
.opinion-card .author { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--rule); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-navy); color: var(--brand-gold); display: grid; place-items: center; font-weight: 800; font-size: 14px; font-family: var(--f-display); flex-shrink: 0; }
.opinion-card .author b { display: block; font-size: 14px; }
.opinion-card .author small { color: var(--ink-3); font-size: 12px; }

/* ---------- Advisory band ---------- */
.advisory {
  background:
    radial-gradient(1200px 400px at 100% 0%, rgba(201,162,75,.18), transparent 60%),
    linear-gradient(135deg, #07162b 0%, var(--brand-navy) 55%, #1a2f55 100%);
  color: #fff; position: relative; overflow: hidden;
}
.advisory .eyebrow { color: var(--brand-gold); font-weight: 700; font-size: 12px; letter-spacing: .25em; text-transform: uppercase; }
.advisory h2 { font-family: var(--f-display); font-weight: 800; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.1; letter-spacing: -.01em; }
.advisory h2 em { color: var(--brand-gold); font-style: italic; }
.advisory p.lead { color: rgba(255,255,255,.78); font-family: var(--f-serif); font-size: 1.12rem; }
.service { border-top: 1px solid rgba(201,162,75,.4); padding: 18px 0 4px; }
.service i { color: var(--brand-gold); font-size: 1.4rem; }
.service h4 { font-family: var(--f-display); font-size: 1.15rem; font-weight: 700; margin: 8px 0 6px; }
.service p { color: rgba(255,255,255,.7); font-size: 14px; margin: 0; line-height: 1.55; }
.advisory .globe-lines { position: absolute; right: -80px; bottom: -160px; width: 520px; opacity: .14; pointer-events: none; }

/* ---------- Two-col desk & business ---------- */
.desk-col h3.desk-title { font-family: var(--f-display); font-weight: 800; font-size: 1.35rem; border-bottom: 2px solid var(--brand-accent); display: inline-block; padding-bottom: 4px; margin-bottom: 18px; }

/* Numbered most read */
.most-read { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px 22px; }
.most-read h3 { font-family: var(--f-display); font-weight: 800; font-size: 1.3rem; margin-bottom: 8px; }
.most-read ol { list-style: none; padding: 0; margin: 0; counter-reset: mr; }
.most-read li { counter-increment: mr; display: grid; grid-template-columns: 40px 1fr; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.most-read li:last-child { border-bottom: 0; }
.most-read li::before { content: counter(mr); font-family: var(--f-display); font-weight: 900; font-size: 1.9rem; color: var(--brand-accent); line-height: 1; opacity: .9; }
.most-read a { font-family: var(--f-display); font-weight: 700; font-size: 15.5px; line-height: 1.3; }
.most-read small { display: block; color: var(--ink-3); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; margin-top: 4px; font-weight: 600; }

/* ---------- Untold stories ---------- */
.untold-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; color: #fff; }
.untold-card .thumb { aspect-ratio: 4/5; border-radius: 0; }
.untold-card .shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.85)); }
.untold-card .txt { position: absolute; left: 18px; right: 18px; bottom: 18px; }
.untold-card .headline { color: #fff; font-size: 1.15rem; }
.untold-card:hover .headline { color: #fff; text-decoration: underline; }
.untold-card .thumb.noimg::before { display: none; }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--brand-accent); color: #fff; border-radius: var(--radius); padding: 36px; position: relative; overflow: hidden; }
.newsletter h3 { font-family: var(--f-display); font-weight: 800; font-size: 1.9rem; }
.newsletter p { color: rgba(255,255,255,.85); }
.newsletter .form-control { border: 0; border-radius: var(--radius); padding: .75rem 1rem; }
.newsletter .btn-dark { background: var(--brand-navy); border: 0; font-weight: 700; padding: .75rem 1.25rem; }
.newsletter .form-check-label { font-size: 13px; color: rgba(255,255,255,.9); }
.newsletter .form-check-input { border-color: rgba(255,255,255,.6); background-color: transparent; }
.newsletter .form-check-input:checked { background-color: var(--brand-navy); border-color: var(--brand-navy); }

/* ---------- Footer ---------- */
.site-footer { background: #07162b; color: rgba(255,255,255,.72); padding: 56px 0 24px; font-size: 14px; }
.site-footer .wordmark { font-family: var(--f-display); font-weight: 900; font-size: 2.2rem; color: #fff; }
.site-footer .wordmark .dot { color: var(--brand-accent); }
.site-footer h5 { color: #fff; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a:hover { color: #fff; }
.site-footer .bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; font-size: 12.5px; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; }
.site-footer .social a { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; margin-right: 6px; }
.site-footer .social a:hover { border-color: var(--brand-gold); color: var(--brand-gold); }

/* ---------- Search overlay ---------- */
.search-overlay { position: fixed; inset: 0; background: rgba(7,22,43,.97); z-index: 2000; display: none; padding: 8vh 16px 16px; overflow-y: auto; }
.search-overlay.open { display: block; animation: fade .2s; }
.search-overlay .box { max-width: 820px; margin: 0 auto; }
.search-overlay input { width: 100%; background: transparent; border: 0; border-bottom: 2px solid var(--brand-gold); color: #fff; font-family: var(--f-display); font-size: clamp(1.6rem, 4vw, 2.6rem); padding: 10px 0; outline: none; }
.search-overlay input::placeholder { color: rgba(255,255,255,.35); }
.search-overlay .close { position: absolute; top: 20px; right: 24px; color: #fff; font-size: 2rem; background: none; border: 0; }
.search-results { margin-top: 24px; }
.search-results a { display: block; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1); color: #fff; }
.search-results a:hover { color: var(--brand-gold); }
.search-results a small { display: block; color: var(--brand-gold); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; margin-bottom: 3px; }
.search-results a b { font-family: var(--f-display); font-size: 1.15rem; font-weight: 700; }
.search-results mark { background: rgba(201,162,75,.35); color: inherit; padding: 0 2px; }
.search-hint { color: rgba(255,255,255,.5); font-size: 13px; margin-top: 10px; }

/* ---------- Category page ---------- */
.cat-hero { background: var(--brand-navy); color: #fff; padding: 44px 0 36px; position: relative; overflow: hidden; }
.cat-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 320px; height: 320px; border: 1px solid rgba(201,162,75,.25); border-radius: 50%; }
.cat-hero .crumbs { font-size: 12.5px; color: rgba(255,255,255,.6); margin-bottom: 10px; }
.cat-hero .crumbs a:hover { color: #fff; }
.cat-hero h1 { font-family: var(--f-display); font-weight: 900; font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.02em; margin: 0; }
.cat-hero p { font-family: var(--f-serif); color: rgba(255,255,255,.78); font-size: 1.15rem; max-width: 640px; margin: 10px 0 0; }
.subnav { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.subnav a { border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.85); }
.subnav a:hover, .subnav a.active { background: var(--brand-gold); border-color: var(--brand-gold); color: var(--brand-navy); }
.view-toggle button { border: 1px solid var(--rule); background: var(--white); padding: 6px 10px; color: var(--ink-2); }
.view-toggle button.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.grid-list.as-list .col-story { flex: 0 0 100%; max-width: 100%; }
.grid-list.as-list .card-story { display: grid; grid-template-columns: 260px 1fr; gap: 20px; }
.grid-list.as-list .card-story .thumb { margin: 0; }

/* ---------- Advisory page ---------- */
.adv-hero { padding: 80px 0 64px; }
.step-num { font-family: var(--f-display); font-weight: 900; font-size: 2.6rem; color: var(--brand-gold); line-height: 1; }
.form-panel { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.form-panel .form-label { font-size: 13px; font-weight: 600; }
.form-panel .form-control, .form-panel .form-select { border-radius: var(--radius); border-color: var(--rule); padding: .65rem .85rem; }
.form-panel .form-control:focus, .form-panel .form-select:focus { border-color: var(--brand-navy); box-shadow: 0 0 0 3px rgba(11,31,58,.12); }

/* Back to top */
.to-top { position: fixed; right: 18px; bottom: 18px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--brand-navy); color: #fff; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 1040; }
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--brand-accent); }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .masthead .inner { grid-template-columns: 1fr auto; }
  .masthead .edition { display: none; }
  .brand { text-align: left; }
  .brand .logo-img { margin: 0; }
  .hero-lead { min-height: 420px; }
  .diaspora-feature { grid-template-columns: 1fr; }
  .diaspora-feature .thumb { aspect-ratio: 16/10; }
  .primary-nav .nav-link::after { display: none; }
  .primary-nav .nav-link { padding: 10px 0 !important; border-bottom: 1px solid var(--rule); }
}
@media (max-width: 575.98px) {
  .utility-bar .clocks span:nth-child(n+3) { display: none; }
  .masthead .actions .btn-ghost { display: none; }
  .hero-lead { min-height: 380px; }
  .hero-lead .content { padding: 20px; }
  .card-row { grid-template-columns: 96px 1fr; }
  .grid-list.as-list .card-story { grid-template-columns: 1fr; }
  .newsletter { padding: 24px; }
}

/* ---------- Article reading page ---------- */
.read-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--brand-gold); z-index: 2100; transition: width .1s linear; }
.article-head { padding: 40px 0 24px; }
.article-head .crumbs { font-size: 13px; color: var(--ink-3); margin-bottom: 14px; }
.article-head .crumbs a:hover { color: var(--brand-accent); }
.article-head h1 { font-family: var(--f-display); font-weight: 800; font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.12; letter-spacing: -.01em; margin: 10px 0 16px; }
.article-head .standfirst { font-family: var(--f-serif); font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--ink-2); max-width: 760px; }
.byline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 14px 0; margin-top: 22px; }
.byline .who b { display: block; font-size: 14.5px; }
.byline .who small { color: var(--ink-3); font-size: 12.5px; }
.share { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.share a, .share button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--rule); display: inline-grid; place-items: center; background: var(--white); color: var(--ink-2); font-size: 15px; }
.share a:hover, .share button:hover { border-color: var(--brand-navy); color: var(--brand-navy); }
.text-size button { border: 1px solid var(--rule); background: var(--white); font-weight: 700; padding: 4px 9px; font-size: 13px; color: var(--ink-2); }
.text-size button:first-child { border-radius: 4px 0 0 4px; } .text-size button:last-child { border-radius: 0 4px 4px 0; border-left: 0; }
.article-figure { margin: 0 0 28px; }
.article-figure .thumb { aspect-ratio: 16/9; }
.article-figure figcaption { font-size: 12.5px; color: var(--ink-3); margin-top: 8px; }

.article-body { font-family: var(--f-serif); font-size: var(--article-size, 1.16rem); line-height: 1.75; color: #22252b; max-width: 720px; }
.article-body > p:first-of-type::first-letter { font-family: var(--f-display); font-weight: 900; float: left; font-size: 4.2em; line-height: .85; margin: .06em .1em 0 0; color: var(--brand-navy); }
.article-body p { margin: 0 0 1.25em; }
.article-body h2, .article-body h3, .article-body h4 { font-family: var(--f-display); font-weight: 800; color: var(--ink); margin: 1.6em 0 .6em; line-height: 1.25; }
.article-body h2 { font-size: 1.6em; } .article-body h3 { font-size: 1.3em; } .article-body h4 { font-size: 1.1em; }
.article-body a { color: var(--brand-accent); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--brand-navy); }
.article-body img { height: auto; border-radius: var(--radius); margin: 1.5em 0 .5em; }
.article-body figure { margin: 1.5em 0; } .article-body figcaption { font-family: var(--f-sans); font-size: 13px; color: var(--ink-3); }
.article-body blockquote { border-left: 4px solid var(--brand-gold); margin: 1.6em 0; padding: .2em 0 .2em 1.2em; font-family: var(--f-display); font-style: italic; font-size: 1.2em; color: var(--brand-navy); }
.article-body ul, .article-body ol { padding-left: 1.3em; margin: 0 0 1.25em; } .article-body li { margin-bottom: .4em; }
.article-body table { width: 100%; font-family: var(--f-sans); font-size: .85em; border-collapse: collapse; margin: 1.5em 0; }
.article-body td, .article-body th { border: 1px solid var(--rule); padding: 8px; }
.article-body iframe { max-width: 100%; }
.article-loading .line { height: 14px; background: linear-gradient(90deg, var(--paper-2), #ebe6db, var(--paper-2)); background-size: 200% 100%; border-radius: 4px; margin-bottom: 14px; animation: shimmer 1.4s infinite; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.article-fallback { background: var(--white); border: 1px solid var(--rule); border-left: 4px solid var(--brand-gold); border-radius: var(--radius); padding: 20px 22px; font-family: var(--f-sans); font-size: 15px; }
.article-end { max-width: 720px; border-top: 1px solid var(--rule); margin-top: 32px; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; font-size: 13.5px; color: var(--ink-3); }
.tag-pill { display: inline-block; border: 1px solid var(--rule); border-radius: 999px; padding: 4px 12px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); background: var(--white); }
.tag-pill:hover { border-color: var(--brand-navy); color: var(--brand-navy); }
.sticky-side { position: sticky; top: 76px; }
@media (max-width: 575.98px) { .share { margin-left: 0; width: 100%; } }
