/* Eight Degree Channel — site styles
   Palette drawn from nautical chart conventions:
   deep-water white, shallow-water blue, chart magenta for routes and lights. */

@font-face {
  font-family: "Spectral";
  src: url("fonts/spectral-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Spectral";
  src: url("fonts/spectral-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Spectral";
  src: url("fonts/spectral-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Spectral";
  src: url("fonts/spectral-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  src: url("fonts/inter-tight-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  src: url("fonts/inter-tight-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  src: url("fonts/inter-tight-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --ink: #111111;          /* broadsheet black: text */
  --ink-soft: #56585b;     /* secondary text */
  --paper: #ffffff;        /* page */
  --white: #ffffff;
  --shallow: #f2f0eb;      /* warm grey: panels, table heads */
  --shallow-deep: #d9d4c7; /* darker warm grey */
  --magenta: #c8102e;      /* accent (Maldivian flag red): links, the parallel, rules. Name kept for compatibility */
  --land: #ebe4d3;         /* land, used for Opinion */
  --rule: #dedad0;

  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;

  /* modular scale, ratio 1.25 from 18px */
  --s-1: 0.875rem;
  --s0: 1.125rem;
  --s1: 1.4rem;
  --s2: 1.75rem;
  --s3: 2.2rem;
  --s4: 2.75rem;
  --s5: 3.6rem;

  --measure: 38rem;
  --rail: 11rem;
  --gap: 2.5rem;
  --wrap: 70rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--s0);
  line-height: 1.6;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}

a { color: var(--magenta); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--magenta); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 { font-weight: 500; line-height: 1.15; margin: 0 0 0.6em; letter-spacing: -0.01em; }
h1 { font-size: var(--s4); }
h2 { font-size: var(--s2); }
h3 { font-size: var(--s1); }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; margin: 0 0 1em; }
li { margin-bottom: 0.35em; }
strong { font-weight: 600; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--white); padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.wordmark { display: inline-flex; align-items: center; gap: 0.65rem; color: var(--ink); text-decoration: none; font-size: 1.3rem; font-weight: 500; letter-spacing: -0.01em; }
.wordmark svg { width: 1.9rem; height: 1.9rem; flex: none; }
.nav ul { list-style: none; display: flex; gap: 1.6rem; margin: 0; padding: 0; }
.nav li { margin: 0; }
.nav a { font-family: var(--sans); font-size: 1rem; font-weight: 500; color: var(--ink); text-decoration: none; padding: 0.3rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--shallow-deep); }
.nav a[aria-current="page"] { border-bottom-color: var(--magenta); }
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav { position: relative; }
  .nav-toggle { display: block; }
  .nav-toggle summary { list-style: none; cursor: pointer; font-family: var(--sans); font-weight: 500; padding: 0.4rem 0.8rem; border: 1px solid var(--rule); border-radius: 4px; }
  .nav-toggle summary::-webkit-details-marker { display: none; }
  .nav-toggle[open] ul { display: flex; }
  .nav-toggle ul { position: absolute; right: 0; top: 2.8rem; flex-direction: column; gap: 0; background: var(--white); border: 1px solid var(--rule); border-radius: 4px; min-width: 13rem; padding: 0.4rem 0; z-index: 5; }
  .nav-toggle ul a { display: block; padding: 0.6rem 1rem; border: 0; }
  .nav-desktop { display: none; }
}

/* ---------- The parallel: 8°N ---------- */
.parallel { display: block; width: 100%; height: 64px; color: var(--magenta); overflow: visible; }
.parallel .line { stroke: currentColor; stroke-width: 1.5; }
.parallel .tick { stroke: var(--ink-soft); stroke-width: 1; }
.parallel text { font-family: var(--sans); font-size: 13px; fill: var(--ink-soft); }
.parallel .lat { fill: var(--magenta); font-weight: 600; font-size: 15px; }
@media (prefers-reduced-motion: no-preference) {
  .parallel .line { stroke-dasharray: 2000; stroke-dashoffset: 2000; animation: draw 1.6s cubic-bezier(.4,0,.2,1) 0.2s forwards; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}

/* ---------- Home hero ---------- */
.hero { padding: 4.5rem 0 2.5rem; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); font-weight: 400; line-height: 1.02; letter-spacing: -0.025em; margin-bottom: 0.25em; }
.hero .thesis { font-size: clamp(1.25rem, 2.3vw, 1.6rem); line-height: 1.4; max-width: 34ch; color: var(--ink); margin: 1.6rem 0 0.8rem; }
.hero .promise { font-family: var(--sans); font-size: 1.05rem; color: var(--ink-soft); max-width: 46ch; }

/* ---------- Sections with a margin rail ---------- */
.band { padding: 3.5rem 0; border-top: 1px solid var(--rule); }
.band.tint { background: var(--shallow); border-top: 0; }
.split { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); gap: var(--gap); }
.split > .rail h2 { font-size: var(--s1); }
.split > .rail p { font-family: var(--sans); font-size: 0.95rem; color: var(--ink-soft); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 1rem; } }

.lede { font-size: var(--s1); line-height: 1.45; max-width: 36ch; }
.muted { color: var(--ink-soft); }
.small { font-family: var(--sans); font-size: 0.95rem; }

/* issue structure list on home */
.issue-parts { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--shallow-deep); }
.issue-parts li { display: grid; grid-template-columns: 12rem 1fr 6rem; gap: 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--shallow-deep); margin: 0; align-items: baseline; }
.issue-parts .part { font-weight: 500; font-size: var(--s1); }
.issue-parts .len { font-family: var(--sans); color: var(--ink-soft); text-align: right; font-size: 0.95rem; }
@media (max-width: 700px) { .issue-parts li { grid-template-columns: 1fr; gap: 0.2rem; } .issue-parts .len { text-align: left; } }

/* pillars */
.pillars { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 0 2.5rem; list-style: none; padding: 0; margin: 0; }
.pillars li { border-top: 2px solid var(--ink); padding: 0.9rem 0 1.6rem; margin: 0; }
.pillars h3 { font-size: var(--s1); margin-bottom: 0.35em; }
.pillars p { font-style: italic; color: var(--ink-soft); margin: 0; }
.pillars a { color: inherit; text-decoration: none; }
.pillars a:hover h3 { color: var(--magenta); }

/* trackers list */
.trackers { list-style: none; padding: 0; margin: 0; }
.trackers li { display: grid; grid-template-columns: 1fr auto; gap: 1rem; padding: 0.9rem 0; border-bottom: 1px solid var(--rule); margin: 0; align-items: baseline; }
.trackers li:first-child { border-top: 1px solid var(--rule); }
.trackers .name { font-size: var(--s1); }
.trackers .name a { color: var(--ink); text-decoration: none; }
.trackers .name a:hover { color: var(--magenta); }
.trackers .desc { display: block; font-size: 1rem; color: var(--ink-soft); }
.status { font-family: var(--sans); font-size: 0.85rem; font-weight: 500; color: var(--ink-soft); border: 1px solid var(--rule); border-radius: 99px; padding: 0.1rem 0.6rem; white-space: nowrap; }

/* ---------- Labels: Reported / Analysis / Opinion ---------- */
.label { display: inline-block; font-family: var(--sans); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.01em; padding: 0.12rem 0.55rem; border-radius: 3px; line-height: 1.4; vertical-align: 0.12em; }
.label.reported { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.label.analysis { background: var(--ink); color: var(--white); }
.label.opinion { background: var(--land); color: #5a4518; box-shadow: inset 0 0 0 1px #c9b88a; }

.label-key { list-style: none; padding: 0; margin: 0; }
.label-key li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--rule); margin: 0; align-items: baseline; }
.label-key li:first-child { border-top: 1px solid var(--rule); }

/* ---------- Probability scale ---------- */
.scale { margin: 1.5rem 0 0.5rem; }
.scale-bar { display: grid; grid-template-columns: 10fr 30fr 20fr 30fr 10fr; height: 3.2rem; border-radius: 4px; overflow: hidden; }
.scale-bar span { display: flex; align-items: center; justify-content: center; font-family: var(--sans); font-size: 0.9rem; font-weight: 500; text-align: center; padding: 0 0.3rem; line-height: 1.15; }
.scale-bar span:nth-child(1) { background: #f7f6f2; }
.scale-bar span:nth-child(2) { background: var(--shallow); }
.scale-bar span:nth-child(3) { background: var(--shallow-deep); }
.scale-bar span:nth-child(4) { background: #6e6e6e; color: var(--white); }
.scale-bar span:nth-child(5) { background: var(--ink); color: var(--white); }
.scale-axis { position: relative; height: 1.6rem; font-family: var(--sans); font-size: 0.85rem; color: var(--ink-soft); }
.scale-axis span { position: absolute; top: 0.3rem; transform: translateX(-50%); }
.scale-axis span:first-child { transform: none; }
.scale-axis span:last-child { transform: translateX(-100%); }
@media (max-width: 640px) {
  .scale-bar { grid-template-columns: 1fr; height: auto; }
  .scale-bar span { justify-content: space-between; padding: 0.6rem 0.8rem; }
  .scale-bar span::after { content: attr(data-range); font-weight: 400; }
  .scale-axis { display: none; }
}

/* ---------- Article / page body ---------- */
.page-head { padding: 3.5rem 0 2rem; }
.page-head h1 { font-weight: 400; font-size: clamp(2.3rem, 5vw, 3.6rem); letter-spacing: -0.02em; max-width: 20ch; }
.page-head .standfirst { font-size: var(--s1); line-height: 1.45; max-width: 36ch; color: var(--ink); }
.page-head .meta { font-family: var(--sans); color: var(--ink-soft); font-size: 1rem; margin-top: 1.2rem; }

.prose { max-width: var(--measure); }
.prose h2 { margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }

.section { display: grid; grid-template-columns: var(--rail) minmax(0, var(--measure)); gap: var(--gap); padding: 2.5rem 0; border-top: 1px solid var(--rule); }
.section > .rail { font-family: var(--sans); color: var(--ink-soft); font-size: 0.95rem; }
.section > .rail h2 { font-family: var(--serif); color: var(--ink); font-size: var(--s1); margin-bottom: 0.4rem; }
@media (max-width: 860px) { .section { grid-template-columns: 1fr; gap: 0.8rem; } }

/* Key judgements panel */
.judgements { background: var(--white); border-left: 4px solid var(--magenta); padding: 1.2rem 1.4rem; margin: 0 0 1.5rem; border-radius: 0 4px 4px 0; }
.judgements h3 { font-size: 1.1rem; font-family: var(--sans); font-weight: 600; margin-bottom: 0.6rem; }
.judgements ol { margin: 0; }
.conf { font-family: var(--sans); font-size: 0.9rem; color: var(--ink-soft); }

.change-view { background: var(--shallow); padding: 1.2rem 1.4rem; border-radius: 4px; margin-top: 1.5rem; }
.change-view h3 { font-size: 1.1rem; font-family: var(--sans); font-weight: 600; margin-bottom: 0.6rem; }

/* five items */
.five { list-style: none; padding: 0; margin: 0; counter-reset: five; }
.five li { position: relative; padding: 0 0 1.2rem 2.4rem; margin: 0 0 1.2rem; border-bottom: 1px solid var(--rule); counter-increment: five; }
.five li:last-child { border-bottom: 0; }
.five li::before { content: counter(five); position: absolute; left: 0; top: 0.05rem; font-family: var(--sans); font-weight: 600; color: var(--magenta); font-size: 1.05rem; }
.five .pillar-tag { font-family: var(--sans); font-size: 0.85rem; color: var(--ink-soft); margin-left: 0.4rem; }
.src { font-family: var(--sans); font-size: 0.9rem; }

/* By the number */
.big-number { font-size: clamp(3rem, 8vw, 5rem); font-weight: 400; line-height: 1; letter-spacing: -0.03em; color: var(--ink); margin: 0 0 0.6rem; }

/* What to watch */
.watch { list-style: none; padding: 0; margin: 0; }
.watch li { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--rule); margin: 0; }
.watch time { font-family: var(--sans); font-weight: 600; color: var(--ink); }

/* placeholder text in templates */
.ph { color: #8a8a85; font-style: italic; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; border: 1px solid var(--rule); border-radius: 4px; background: var(--white); }
table { border-collapse: collapse; width: 100%; font-family: var(--sans); font-size: 0.98rem; }
th, td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-weight: 600; background: var(--shallow); color: var(--ink); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.empty td { color: var(--ink-soft); font-style: italic; font-family: var(--serif); padding: 1.4rem 0.9rem; }

/* ---------- Archive ---------- */
.archive-empty { background: var(--white); border: 1px dashed var(--shallow-deep); border-radius: 4px; padding: 2rem; max-width: var(--measure); }

/* ---------- Subscribe ---------- */
.subscribe { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: center; }
.subscribe h2 { margin-bottom: 0.3em; }
.button { display: inline-block; font-family: var(--sans); font-weight: 600; font-size: 1rem; background: var(--ink); color: var(--white); text-decoration: none; padding: 0.75rem 1.3rem; border-radius: 4px; }
.button:hover { background: var(--magenta); }
.button.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.button.ghost:hover { background: var(--ink); color: var(--white); }
.buttons { display: flex; gap: 0.8rem; flex-wrap: wrap; }
@media (max-width: 700px) { .subscribe { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--rule); padding: 2.5rem 0 3rem; margin-top: 2rem; font-family: var(--sans); font-size: 0.95rem; color: var(--ink-soft); }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer h2 { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); margin-bottom: 0.5rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.3rem; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--magenta); text-decoration: underline; }
.site-footer .disclosure { grid-column: 1 / -1; border-top: 1px solid var(--rule); padding-top: 1.2rem; margin-top: 0.5rem; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }

@media print {
  .site-header nav, .site-footer, .parallel, .subscribe { display: none; }
  body { background: #fff; }
}

/* full-width data sections */
.section.wide { grid-template-columns: var(--rail) minmax(0, 1fr); }
@media (max-width: 860px) { .section.wide { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .scale { margin-bottom: 1.2rem; } }

/* =========================================================
   v2: chart hero, deep-water bands, stronger hierarchy
   ========================================================= */
.site-header { border-top: 3px solid var(--magenta); }

.hero-v2 { padding: 3.5rem 0 4rem; }
.hero-v2 .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 3.5rem; align-items: center; }
.hero-v2 h1 { font-size: clamp(3rem, 6.4vw, 5.6rem); font-weight: 400; line-height: 0.98; letter-spacing: -0.03em; margin: 0 0 1.6rem; }
.hero-v2 .thesis { font-size: clamp(1.3rem, 2vw, 1.55rem); line-height: 1.4; margin: 0 0 1rem; max-width: 30ch; }
.hero-v2 .promise { font-family: var(--sans); font-size: 1.05rem; color: var(--ink-soft); max-width: 42ch; margin-bottom: 1.8rem; }
.hero-v2 .facts { display: flex; gap: 2.2rem; flex-wrap: wrap; margin: 2.2rem 0 0; padding: 1.2rem 0 0; border-top: 1px solid var(--rule); font-family: var(--sans); }
.hero-v2 .facts div { display: flex; flex-direction: column; }
.hero-v2 .facts strong { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; line-height: 1.1; }
.hero-v2 .facts span { color: var(--ink-soft); font-size: 0.92rem; }
@media (max-width: 900px) { .hero-v2 .wrap { grid-template-columns: 1fr; gap: 2rem; } }

.map-figure { margin: 0; background: var(--white); border: 1px solid var(--rule); border-radius: 6px; padding: 0.6rem; box-shadow: 0 1px 0 var(--rule), 0 18px 40px -24px rgba(17, 17, 17, 0.35); }
.map-figure figcaption { font-family: var(--sans); font-size: 0.82rem; color: var(--ink-soft); padding: 0.55rem 0.3rem 0.1rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.chart-map { display: block; width: 100%; height: auto; border-radius: 3px; }
.chart-map .sea { fill: #f7f6f2; }
.chart-map .grat { stroke: #e4e1d8; stroke-width: 0.6; }
.chart-map .grat-l { font-family: var(--sans); font-size: 10px; fill: #9a9890; }
.chart-map .shoal { fill: var(--shallow); opacity: 0.9; }
.chart-map .land { fill: #e7dfcc; stroke: #a99c7c; stroke-width: 0.8; stroke-linejoin: round; }
.chart-map .isle { fill: #d8c690; stroke: #8f7a3f; stroke-width: 0.7; }
.chart-map .capital { fill: var(--ink); stroke: var(--white); stroke-width: 1.5; }
.chart-map .route { fill: none; stroke: var(--ink); stroke-width: 1.3; stroke-dasharray: 6 5; opacity: 0.55; }
.chart-map .eight { stroke: var(--magenta); stroke-width: 2; }
.chart-map .eight-l { font-family: var(--sans); font-weight: 600; font-size: 13px; fill: var(--magenta); }
.chart-map .land-l { font-family: var(--serif); font-size: 19px; fill: #3b3528; letter-spacing: 0.02em; }
.chart-map .place-l { font-family: var(--sans); font-size: 11.5px; fill: var(--ink); }
.chart-map .water-l { font-family: var(--serif); font-style: italic; font-size: 14px; fill: #7b8a86; }
.chart-map .channel-l { font-family: var(--serif); font-style: italic; font-size: 15px; fill: var(--magenta); font-weight: 500; }
.chart-map .route-l { font-family: var(--sans); font-size: 10.5px; fill: var(--ink-soft); }
.chart-map .scalebar line { stroke: var(--ink); stroke-width: 1.2; }
.chart-map .scalebar text { font-family: var(--sans); font-size: 10px; fill: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .chart-map .eight { stroke-dasharray: 700; stroke-dashoffset: 700; animation: draw 1.8s cubic-bezier(.4,0,.2,1) 0.3s forwards; }
  .chart-map .channel-l, .chart-map .eight-l { opacity: 0; animation: fadein 0.6s ease 1.7s forwards; }
  @keyframes fadein { to { opacity: 1; } }
}

/* deep-water band */
.band.deep { background: var(--ink); color: #f2f2f2; border-top: 0; }
.band.deep .rail h2, .band.deep h2 { color: var(--white); }
.band.deep .rail p, .band.deep .muted { color: #b4b4b4; }
.band.deep a { color: #ff8f8f; }
.band.deep .issue-parts { border-top-color: #3a3a3a; counter-reset: part; }
.band.deep .issue-parts li { border-bottom-color: #3a3a3a; grid-template-columns: 2.2rem 12rem 1fr 6rem; counter-increment: part; }
.band.deep .issue-parts li::before { content: counter(part); font-family: var(--sans); font-weight: 600; color: #ff8f8f; }
.band.deep .issue-parts .len { color: #b4b4b4; }
@media (max-width: 700px) { .band.deep .issue-parts li { grid-template-columns: 1.6rem 1fr; } .band.deep .issue-parts li > span:not(.part) { grid-column: 2; } }

/* pillars: hover lift of the rule */
.pillars li { transition: border-color .2s; }
.pillars li:hover { border-top-color: var(--magenta); }

/* navy footer */
.site-footer { background: var(--ink); color: #b4b4b4; border-top: 0; margin-top: 0; }
.site-footer h2 { color: var(--white); }
.site-footer a { color: #f2f2f2; }
.site-footer a:hover { color: #ff8f8f; }
.site-footer .disclosure { border-top-color: #3a3a3a; }
.site-footer .foot-mark { display: flex; align-items: center; gap: 0.6rem; }
.site-footer .foot-mark svg { width: 1.7rem; height: 1.7rem; }
.chart-map .reef { fill: #eeece6; stroke: #8a9a95; stroke-width: 1.2; stroke-linejoin: round; }
.chart-map .isle-mark { fill: var(--land); stroke: #8f7a3f; stroke-width: 1; }

/* =========================================================
   v4: data content
   ========================================================= */
.asof { font-family: var(--sans); font-size: 0.92rem; color: var(--ink-soft); }

/* at a glance */
.glance { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.glance > div { padding: 1.1rem 1.2rem 1.2rem 0; border-right: 1px solid var(--rule); margin-right: 1.2rem; }
.glance > div:last-child { border-right: 0; margin-right: 0; }
.glance .k { font-family: var(--sans); font-size: 0.95rem; color: var(--ink-soft); display: block; margin-bottom: 0.3rem; }
.glance .v { font-size: 2rem; line-height: 1.1; font-weight: 500; display: block; letter-spacing: -0.01em; }
.glance .c { font-family: var(--sans); font-size: 0.9rem; color: var(--ink-soft); display: block; margin-top: 0.35rem; }
.glance .c a { color: var(--ink-soft); }
@media (max-width: 900px) { .glance { grid-template-columns: repeat(2, minmax(0, 1fr)); } .glance > div:nth-child(2) { border-right: 0; margin-right: 0; } .glance > div:nth-child(n+3) { border-top: 1px solid var(--rule); } }
@media (max-width: 480px) { .glance { grid-template-columns: 1fr; } .glance > div { border-right: 0; margin-right: 0; border-top: 1px solid var(--rule); } .glance > div:first-child { border-top: 0; } }

/* explainer list */
.explainer-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 1.5rem; }
.explainer-list li { margin: 0; background: var(--white); border: 1px solid var(--rule); border-radius: 6px; padding: 1.4rem 1.5rem 1.5rem; }
.explainer-list h3 { font-size: var(--s1); margin-bottom: 0.4rem; }
.explainer-list h3 a { color: var(--ink); text-decoration: none; }
.explainer-list h3 a:hover { color: var(--magenta); }
.explainer-list p { margin: 0 0 0.6rem; color: var(--ink-soft); }
.explainer-list .small { margin: 0; }

/* charts */
.figure { margin: 1.5rem 0 1.8rem; }
.figure figcaption { font-family: var(--sans); font-size: 0.9rem; color: var(--ink-soft); margin-top: 0.6rem; }
.figure .fig-title { font-family: var(--sans); font-weight: 600; font-size: 1rem; color: var(--ink); margin: 0 0 0.6rem; }
.chart { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid { stroke: #e6e3dc; stroke-width: 1; }
.chart .axis { font-family: var(--sans); font-size: 12px; fill: var(--ink-soft); }
.chart .cat { font-family: var(--sans); font-size: 14px; fill: var(--ink); }
.chart .val { font-family: var(--sans); font-size: 14px; font-weight: 600; fill: var(--ink); }
.chart .muted-t { font-weight: 400; fill: var(--ink-soft); }
.chart .series-l { font-family: var(--sans); font-size: 13px; font-weight: 600; }
.chart .event { stroke: var(--ink-soft); stroke-width: 1; stroke-dasharray: 3 4; }
.chart .event-l { font-family: var(--sans); font-size: 12px; fill: var(--ink-soft); }
.chart .bar-g:hover rect { opacity: 0.85; }
.legend { display: flex; gap: 1.2rem; font-family: var(--sans); font-size: 0.92rem; margin: 0 0 0.5rem; padding: 0; list-style: none; }
.legend li { display: flex; align-items: center; gap: 0.4rem; margin: 0; }
.legend i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
details.data { font-family: var(--sans); font-size: 0.92rem; margin-top: 0.4rem; }
details.data summary { cursor: pointer; color: var(--magenta); }

/* status tags in tables */
.tag { display: inline-block; font-family: var(--sans); font-size: 0.82rem; font-weight: 500; padding: 0.05rem 0.5rem; border-radius: 99px; border: 1px solid var(--rule); white-space: nowrap; }
.tag.done { background: #e6f2ea; border-color: #b9d9c3; color: #24553a; }
.tag.next { background: var(--shallow); border-color: var(--shallow-deep); color: var(--ink); }
.tag.roll { background: var(--land); border-color: #d6c79a; color: #5a4518; }
td .sub { display: block; color: var(--ink-soft); font-size: 0.88rem; margin-top: 0.15rem; }
h3.table-h { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; margin: 1.6rem 0 0.4rem; }
.sources { font-family: var(--sans); font-size: 0.9rem; color: var(--ink-soft); }
.sources li { margin-bottom: 0.25rem; }

/* glossary */
.gloss { display: grid; grid-template-columns: 9rem 1fr; gap: 0; margin: 0; }
.gloss dt { font-family: var(--sans); font-weight: 600; padding: 0.6rem 0; border-bottom: 1px solid var(--rule); }
.gloss dd { margin: 0; padding: 0.6rem 0; border-bottom: 1px solid var(--rule); }
@media (max-width: 560px) { .gloss { grid-template-columns: 1fr; } .gloss dt { border-bottom: 0; padding-bottom: 0; } }

/* v5: reference pages */
.glance.glance-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.glance.glance-6 > div:nth-child(3) { border-right: 0; margin-right: 0; }
.glance.glance-6 > div:nth-child(n+4) { border-top: 1px solid var(--rule); }
@media (max-width: 900px) { .glance.glance-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .glance.glance-6 > div:nth-child(3) { border-right: 1px solid var(--rule); margin-right: 1.2rem; } .glance.glance-6 > div:nth-child(2n) { border-right: 0; margin-right: 0; } .glance.glance-6 > div:nth-child(n+3) { border-top: 1px solid var(--rule); } }
@media (max-width: 480px) { .glance.glance-6 { grid-template-columns: 1fr; } }

/* who's who */
.people { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 0 2rem; }
.people li { border-top: 1px solid var(--rule); padding: 0.9rem 0 1rem; margin: 0; }
.people .role { display: block; font-family: var(--sans); font-size: 0.9rem; color: var(--ink-soft); }
.people .name { display: block; font-size: 1.25rem; font-weight: 500; line-height: 1.25; margin: 0.15rem 0 0.25rem; }
.people .note { display: block; font-size: 0.98rem; color: var(--ink); }
.people .since { display: block; font-family: var(--sans); font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.3rem; }
.people .since a { color: var(--ink-soft); }

/* timeline */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 6.2rem; top: 0.4rem; bottom: 0.4rem; width: 2px; background: var(--shallow-deep); }
.timeline li { display: grid; grid-template-columns: 5.4rem 1fr; gap: 2rem; margin: 0 0 1.4rem; position: relative; }
.timeline li::before { content: ""; position: absolute; left: calc(6.2rem - 5px); top: 0.55rem; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); }
.timeline li.key::before { background: var(--magenta); border-color: var(--magenta); }
.timeline time { font-family: var(--sans); font-weight: 600; text-align: right; padding-top: 0.15rem; }
.timeline h3 { font-size: 1.15rem; margin: 0 0 0.25rem; }
.timeline p { margin: 0; color: var(--ink); }
.timeline .src { margin-top: 0.3rem; }
.era { font-family: var(--sans); font-weight: 600; font-size: 1rem; color: var(--magenta); margin: 2rem 0 1rem 7.6rem; }
@media (max-width: 560px) {
  .timeline::before { left: 0.35rem; }
  .timeline li { grid-template-columns: 1fr; gap: 0.2rem; padding-left: 1.6rem; }
  .timeline li::before { left: 0; }
  .timeline time { text-align: left; }
  .era { margin-left: 1.6rem; }
}

/* source library */
.lib { list-style: none; padding: 0; margin: 0; }
.lib li { display: grid; grid-template-columns: minmax(0, 15rem) 1fr; gap: 1.5rem; padding: 0.75rem 0; border-bottom: 1px solid var(--rule); margin: 0; }
.lib li:first-child { border-top: 1px solid var(--rule); }
.lib a { font-weight: 500; }
.lib span { color: var(--ink-soft); font-size: 1rem; }
@media (max-width: 640px) { .lib li { grid-template-columns: 1fr; gap: 0.2rem; } }

/* v6: foreign-footprint map */
.fp-figure { margin: 0; }
.chart-map.fp .isle { fill: var(--land); stroke: #b9a56f; stroke-width: 0.8; }
.chart-map.fp .fp-new { fill: #f4eedc; stroke: #b9a56f; stroke-width: 0.8; stroke-dasharray: 3 2; }
.chart-map .fp-box { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.chart-map .fp-leader { fill: none; stroke: var(--ink); stroke-width: 0.8; stroke-dasharray: 3 3; opacity: .6; }
.chart-map .fp-link { fill: none; stroke-width: 3; stroke-linecap: round; }
.chart-map .fp-link.india { stroke: #1f6fa8; }
.chart-map .fp-link.china { stroke: #b8226a; }
.chart-map .fp-n { font-family: var(--sans); font-size: 10px; font-weight: 600; fill: #fff; pointer-events: none; }
.chart-map .fp-m { cursor: default; }
.chart-map .fp-m:hover > :nth-child(3) { stroke: var(--ink); }
.chart-map .leg-l { font-family: var(--sans); font-size: 13px; fill: var(--ink); }
.fp-table { width: 100%; }
.fp-table .grp th { text-align: left; padding-top: 1.2rem; font-family: var(--sans); }
.fp-table td.num { width: 2.5rem; font-family: var(--sans); font-weight: 600; vertical-align: top; }
.fp-sw { display: inline-block; width: 12px; height: 12px; margin-right: .5rem; vertical-align: -1px; }
.fp-sw.circle { border-radius: 50%; }
.fp-sw.square { border-radius: 2px; }
.fp-sw.diamond { transform: rotate(45deg) scale(.85); }
.chart-map.fp .reef { fill: none; }
.fp-grid { display: grid; grid-template-columns: minmax(180px, 230px) 1fr; gap: 2rem; align-items: start; }
.fp-legend { list-style: none; padding: 0; margin: .9rem 0 .2rem; display: flex; gap: 1.6rem; font-family: var(--sans); }
@media (max-width: 760px) { .fp-grid { grid-template-columns: 1fr; } .fp-nat { max-width: 240px; } }
.section.fp-sec { display: block; }
.fp-legend li { display: flex; align-items: center; gap: .35rem; }
.fp-legend + .fp-legend { margin-top: .2rem; }
.fp-table td.st { font-family: var(--sans); font-size: .85rem; color: var(--ink-soft); white-space: nowrap; vertical-align: top; }

/* v7: foreign footprint, chart edition */
.fp2 { display: grid; grid-template-columns: minmax(170px, 1.15fr) minmax(0, 5fr); gap: 1rem; align-items: stretch; }
.fp2 svg { display: block; width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 3px; }

.chart-map.fp .sea { fill: #f7f6f2; }
.chart-map.fp .reef { fill: none; stroke: #a9b5b1; stroke-width: 1; stroke-dasharray: 2 2; }
.chart-map.fp .land { fill: #e7dfcc; stroke: #a99c7c; stroke-width: 0.9; }
.chart-map.fp .grat { stroke: #e4e1d8; stroke-width: 0.7; }
.chart-map .water-l { font-family: var(--serif); font-style: italic; font-size: 14px; fill: #7b8a86; }
.chart-map .fp-label { font-family: var(--sans); font-size: 13px; font-weight: 600; fill: var(--ink); paint-order: stroke; stroke: #f7f6f2; stroke-width: 4px; stroke-linejoin: round; }
.chart-map .fp-sub { font-family: var(--sans); font-size: 11.5px; fill: var(--ink-soft); paint-order: stroke; stroke: #f7f6f2; stroke-width: 3px; }
.chart-map .fp-anchor { fill: var(--ink); }
.chart-map .fp-leader { stroke: var(--ink); stroke-width: 0.8; opacity: .55; fill: none; }
.chart-map .fp-pointer { stroke: var(--ink); stroke-width: 1.4; fill: none; stroke-dasharray: 5 4; }
.chart-map .fp-link { stroke-width: 3.5; stroke-linecap: round; fill: none; opacity: .85; }
.chart-map .north path { fill: var(--ink); }
.chart-map .north text, .chart-map .scalebar text { font-family: var(--sans); font-size: 11px; fill: var(--ink); }
.chart-map .scalebar line { stroke: var(--ink); stroke-width: 1.5; }
.chart-map .place-l { paint-order: stroke; stroke: #f7f6f2; stroke-width: 3px; stroke-linejoin: round; }
.fp2-key { margin-top: .9rem; }
.fp-legend-svg { display: block; width: 100%; max-width: 860px; height: auto; }
.fp-legend-svg .leg-l { font-family: var(--sans); font-size: 12.5px; fill: var(--ink); }
.fp-legend-svg .leg-s { font-family: var(--sans); font-size: 10px; fill: var(--ink-soft); }
.fp-keyh { font-size: var(--s1); margin: 0 0 1rem; }
.fp-table td.val { font-family: var(--sans); font-size: .85rem; white-space: nowrap; vertical-align: top; }
@media (max-width: 760px) { .fp2 { grid-template-columns: 1fr; } .fp2-loc { max-width: 220px; } .fp2-loc svg { height: auto; } }
@media (max-width: 760px) { .fp2-main { order: -1; } }

/* v8: State of the Maldives scorecard */
table.score { width: 100%; }
table.score td { vertical-align: top; }
table.score .grp th { text-align: left; font-family: var(--sans); padding-top: 1.3rem; background: var(--shallow); }
table.score td:nth-child(2), table.score td:nth-child(3) { white-space: nowrap; }
.meter { display: inline-flex; gap: 3px; vertical-align: -1px; margin-right: .45rem; }
.meter i { display: block; width: 9px; height: 14px; border-radius: 2px; background: #e2dfd8; }
.meter.m1 i:nth-child(-n+1) { background: #b3261e; }
.meter.m2 i:nth-child(-n+2) { background: #c77700; }
.meter.m3 i:nth-child(-n+3) { background: #2e7d4f; }
.meter.m4 i:nth-child(-n+4) { background: #1f6fa8; }
.rate { font-family: var(--sans); font-weight: 600; font-size: .9rem; }
.dir { font-family: var(--sans); font-size: .9rem; color: var(--ink-soft); }
.dir.down { color: #8f2a1c; }
.dir.up { color: #1f6b43; }
@media (max-width: 700px) {
  table.score thead { display: none; }
  table.score, table.score tbody, table.score tr, table.score td { display: block; width: 100%; }
  table.score tr { padding: .8rem 0; border-bottom: 1px solid var(--rule); }
  table.score td { border: 0; padding: .15rem .8rem; white-space: normal !important; box-sizing: border-box; }
  table.score, table.score tbody, table.score tr { box-sizing: border-box; }
  table.score td:nth-child(2), table.score td:nth-child(3) { display: inline-block; width: auto; }
  table.score .grp th { display: block; }
}
.section > * { min-width: 0; }

/* v9: quarterly outlook */
.scen-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.scen { background: var(--white); border: 1px solid var(--rule); border-top: 5px solid var(--ink); border-radius: 4px; padding: 1rem 1.1rem 1.1rem; }
.scen.base { border-top-color: #1f6fa8; }
.scen.squeeze { border-top-color: #c77700; }
.scen.break { border-top-color: #b3261e; }
.scen h3 { margin: .2rem 0 .5rem; font-size: var(--s1); }
.scen p { font-size: 1rem; line-height: 1.55; margin: 0 0 .7rem; }
.scen-p { display: flex; align-items: center; gap: .5rem; margin: 0 !important; }
.scen .pct { font-family: var(--sans); font-weight: 700; font-size: 1.9rem; color: var(--ink); line-height: 1; }
.scen-moves { font-family: var(--sans); font-size: .9rem !important; color: var(--ink-soft); border-top: 1px solid var(--rule); padding-top: .6rem; }
@media (max-width: 900px) { .scen-grid { grid-template-columns: 1fr; } }

/* ---------- v10: "Start here" carousel on the home page (CSS only, no JavaScript; 27 Nov 2026) ---------- */
.start { padding: 0.5rem 0 2.6rem; }
.start-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem 1rem; flex-wrap: wrap; margin-bottom: 0.9rem; }
.start-head h2 { margin: 0; }
.start-hint { font-family: var(--sans); font-size: 0.85rem; color: var(--ink-soft); }
.carousel {
  list-style: none; margin: 0; padding: 0.2rem 0.1rem 1rem;
  display: grid; grid-auto-flow: column; gap: 1rem;
  grid-auto-columns: calc((100% - 3rem) / 3.4);   /* a slice of the next card shows, so readers see there is more */
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-left: 0.1rem;
  scrollbar-width: thin; scrollbar-color: var(--shallow-deep) transparent;
}
.carousel:focus-visible { outline: 2px solid var(--magenta); outline-offset: 4px; border-radius: 6px; }
.carousel > li { scroll-snap-align: start; min-width: 0; display: flex; }
.card {
  display: flex; flex-direction: column; width: 100%;
  background: var(--white); color: var(--ink); text-decoration: none;
  border: 1px solid var(--rule); border-top: 4px solid var(--ink); border-radius: 6px;
  padding: 1rem 1.1rem 1.1rem;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.card.data { border-top-color: var(--magenta); }
.card.india { border-top-color: #1f6fa8; }
.card.china { border-top-color: #b8226a; }
.card.gulf { border-top-color: #b77d0a; }
.card .kind { font-family: var(--sans); font-size: 0.8rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 0.4rem; }
.card h3 { font-family: var(--serif); font-size: 1.3rem; line-height: 1.2; font-weight: 500; margin: 0 0 0.5rem; color: var(--ink); }
.card p { font-family: var(--sans); font-size: 0.95rem; line-height: 1.45; color: var(--ink-soft); margin: 0 0 1rem; }
.card .go { margin-top: auto; font-family: var(--sans); font-size: 0.9rem; font-weight: 600; color: var(--magenta); }
.card:hover, .card:focus-visible { border-color: var(--ink-soft); box-shadow: 0 12px 28px -20px rgba(17, 17, 17, 0.55); transform: translateY(-2px); }
.card:focus-visible { outline: 2px solid var(--magenta); outline-offset: 2px; }
@media (max-width: 900px) { .carousel { grid-auto-columns: calc((100% - 1rem) / 2.2); } }
@media (max-width: 600px) { .carousel { grid-auto-columns: 80%; } .start { padding-bottom: 2rem; } }
@media (prefers-reduced-motion: reduce) { .card { transition: none; } .card:hover, .card:focus-visible { transform: none; } }

/* v11: compact home hero (27 Nov 2026): less space between the hero and "Start here" */
.hero-v2 { padding-bottom: 1.6rem; }
.start { padding-top: 0; }
@media (max-width: 900px) { .hero-v2 { padding-bottom: 1.2rem; } }

/* =========================================================
   v12: "Broadsheet" theme (editor's choice, 27 Nov 2026)
   White page, black ink, Maldivian flag red accent; Spectral + Inter Tight.
   ========================================================= */
.site-header { border-top: 4px solid var(--magenta); background: var(--paper); }
.hero-v2 h1 { font-weight: 600; letter-spacing: -0.035em; }
h1, h2, h3, h4 { font-weight: 500; }
.wordmark span { white-space: nowrap; }
@media (max-width: 420px) { .wordmark { font-size: 1.12rem; gap: 0.5rem; } .wordmark svg { width: 1.6rem; height: 1.6rem; } }
.map-figure { box-shadow: none; }
.card { border-top-color: var(--ink); }
.band.deep, .site-footer { background: #111111; }
.chart-map .eight-l, .chart-map .channel-l { fill: var(--magenta); }
