/* Tuvalu — Office of the Ambassador.
   Newsreader throughout; IBM Plex Mono only for chart data and photo credits.
   Colours from the islands: lagoon, ocean, flag sky-blue, sun gold, fatele coral, palm. */

:root {
  --sand: #f8f1e3;
  --sand-deep: #efe4cd;
  --white: #ffffff;
  --ink: #0d1b2a;
  --ink-2: #33475b;
  --ink-3: #52626f;
  --rule: #d9cdb4;

  --ocean: #0b2f55;
  --ocean-2: #123f6e;
  --lagoon: #12a3ae;
  --lagoon-deep: #0a6f78;
  --lagoon-wash: #d3eff0;
  --sky: #5bb4e5;
  --gold: #f2b705;
  --gold-pale: #fff0c2; /* gold text on teal, coral and palm: 4.7:1 or better */
  --coral: #e2553a;
  --coral-deep: #b23a1f;
  --coral-wash: #fbe2d8;
  --palm: #1f7a4c;

  --serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --measure: 38rem;
  --radius: 3px;
  --head-gap: clamp(20px, 4vw, 56px);

  --weave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='16' viewBox='0 0 64 16'%3E%3Cpath d='M0 16 8 0 16 16Z' fill='%23e2553a'/%3E%3Cpath d='M16 16 24 0 32 16Z' fill='%23f2b705'/%3E%3Cpath d='M32 16 40 0 48 16Z' fill='%2312a3ae'/%3E%3Cpath d='M48 16 56 0 64 16Z' fill='%230b2f55'/%3E%3Cpath d='M8 0 16 16 24 0Z' fill='%23f8f1e3'/%3E%3Cpath d='M24 0 32 16 40 0Z' fill='%230b2f55'/%3E%3Cpath d='M40 0 48 16 56 0Z' fill='%23f8f1e3'/%3E%3Cpath d='M56 0 64 16 64 0Z M0 0 0 16 8 0Z' fill='%23e2553a'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body { margin: 0; background: var(--sand); color: var(--ink); font: 400 1.125rem/1.6 var(--serif); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--lagoon-deep); text-decoration-thickness: 1px; text-underline-offset: 0.18em; transition: color 0.15s; }
a:hover { color: var(--coral-deep); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.06; letter-spacing: -0.02em; margin: 0 0 0.45em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 7vw, 6rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: 1.4rem; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 60; background: var(--gold); color: var(--ink); padding: 10px 16px; }
.skip-link:focus { left: 8px; top: 8px; }

/* Small editorial labels: serif italic, sentence case. */
.label, .kicker { font: italic 400 1.05rem/1.3 var(--serif); letter-spacing: 0; margin: 0 0 12px; }
.label { color: var(--coral-deep); }
.kicker { color: var(--gold); }

/* Placeholders read as quiet text, not highlighted tags. */
.tbc { font-style: italic; color: var(--ink-3); }
.post-nominals { font-size: 0.5em; white-space: nowrap; }

.weave { height: 12px; background: var(--weave) repeat-x left center / auto 12px; }

/* ---------- Masthead ---------- */
.masthead { background: var(--sand); position: relative; z-index: 30; }
.masthead-top { background: var(--ocean); color: #b9cde0; font-size: 0.85rem; }
.masthead-top .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 8px 0; }
.masthead-coords { display: flex; flex-wrap: wrap; column-gap: 0.35em; }
.masthead-time { white-space: nowrap; font-variant-numeric: tabular-nums; }
.masthead-main { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 34px; height: 38px; }
.brand-mark circle { fill: var(--lagoon); }
.brand-mark circle:nth-child(7) { fill: var(--gold); }
.brand-name { font: 500 clamp(2rem, 4vw, 2.6rem)/1 var(--serif); letter-spacing: -0.03em; }
.brand-sub { font: italic 400 0.98rem/1.2 var(--serif); color: var(--ink-2); padding-left: 14px; border-left: 1px solid var(--rule); }

.site-nav { background: var(--white); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.site-nav ul { list-style: none; margin: 0 auto; padding: 0; display: flex; justify-content: space-between; }
.site-nav a { display: flex; align-items: center; padding: 12px 8px 10px 0; color: var(--ink); text-decoration: none; font-size: 1.02rem; border-bottom: 2px solid transparent; min-height: 44px; }
.site-nav a:hover { color: var(--lagoon-deep); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--coral); }

.nav-toggle { display: none; background: var(--ocean); border: 0; color: var(--white); padding: 10px 18px; min-height: 44px; font: 1rem var(--serif); cursor: pointer; border-radius: var(--radius); }

@media (max-width: 720px) {
  .masthead-main { align-items: flex-start; gap: 12px; }
  .brand { flex-wrap: wrap; gap: 8px 12px; min-width: 0; }
  .brand-sub { flex-basis: 100%; padding-left: 0; border-left: 0; font-size: 0.92rem; }
}

@media (max-width: 1180px) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; padding: 8px 0 20px; }
  .site-nav a { font-size: 1.4rem; padding: 10px 0; border-bottom: 1px solid var(--rule); }
  .site-nav a[aria-current="page"] { color: var(--coral-deep); border-bottom-color: var(--rule); }
}

/* ---------- Photos ---------- */
.photo { margin: 0; }
.photo img { width: 100%; object-fit: cover; border-radius: var(--radius); }
.photo figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; padding-top: 6px; font-size: 0.9rem; color: var(--ink-3); }
.photo figcaption span { font-style: italic; color: var(--ink-2); }
.photo figcaption a { font: 0.7rem var(--mono); color: var(--ink-3); text-decoration: none; }
.photo figcaption a:hover { text-decoration: underline; }
.hero-credit, .bg-credit { font: 0.68rem var(--mono); }
.hero-credit a, .bg-credit a { color: rgb(255 255 255 / 0.72); text-decoration: none; }

/* ---------- Home hero ---------- */
.hero { position: relative; min-height: min(88vh, 860px); display: grid; align-items: end; color: var(--white); overflow: hidden; background: var(--ocean); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(11 47 85 / 0) 45%, rgb(11 47 85 / 0.5) 72%, rgb(11 47 85 / 0.85) 100%), linear-gradient(90deg, rgb(11 47 85 / 0.35), rgb(11 47 85 / 0) 50%); }
.hero-content { position: relative; z-index: 1; padding: 120px 0 56px; }
.hero h1 { font-size: clamp(3rem, 7.6vw, 7rem); line-height: 0.95; max-width: 13ch; color: var(--white); margin-bottom: 0.3em; }
.hero h1 em { color: var(--gold); }
.hero h1, .hero-dek { text-shadow: 0 2px 18px rgb(11 47 85 / 0.45); }
.hero-dek { font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.45; max-width: 36rem; color: #e6eef6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-credit { position: absolute; right: var(--gutter); bottom: 14px; z-index: 1; }

.btn { display: inline-flex; align-items: center; padding: 12px 22px; min-height: 48px; border-radius: var(--radius); font: 500 1.05rem var(--serif); text-decoration: none; cursor: pointer; border: 0; transition: background 0.15s, color 0.15s; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #ffd23d; color: var(--ink); }
.btn-light { color: var(--white); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.7); }
.btn-light:hover { background: rgb(255 255 255 / 0.15); color: var(--white); }
.btn-ink { background: var(--ocean); color: var(--white); }
.btn-ink:hover { background: var(--ocean-2); color: var(--white); }
.btn-coral { background: var(--coral-deep); color: var(--white); }
.btn-coral:hover { background: #9a2f17; color: var(--white); }

/* ---------- Bands ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.band-lagoon { background: var(--lagoon-deep); color: var(--white); }
.band-ocean { background: var(--ocean); color: #dbe6f0; }
.band-coral { background: var(--coral-wash); }
.band-sand { background: var(--sand-deep); }
.band-white { background: var(--white); }
.band-lagoon h2, .band-ocean h2, .band-lagoon h3, .band-ocean h3 { color: var(--white); }
.band-lagoon a, .band-ocean a { color: var(--white); }
.band-lagoon a:hover, .band-ocean a:hover { color: var(--gold); }
.band-ocean .label { color: var(--gold); }
.band-lagoon .label { color: var(--gold-pale); }

.section-head { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: var(--head-gap); margin-bottom: clamp(28px, 4vw, 48px); align-items: baseline; }
.section-head .label { margin: 0; }
.section-head h2 { margin: 0; max-width: 22ch; }
.section-head p:not(.label) { grid-column: 2; margin: 14px 0 0; max-width: 40rem; color: var(--ink-2); font-size: 1.2rem; }
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; gap: 10px; } .section-head p:not(.label) { grid-column: 1; } }

.band-intro { font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.5; max-width: 46rem; margin-left: calc(25% + 0.75 * var(--head-gap)); }
.band-lagoon .band-intro { color: #e2f4f5; }
.band-ocean .band-intro { color: #dbe6f0; }
@media (max-width: 760px) { .band-intro { margin-left: 0; } }

/* Figures */
.figure { margin: 0; }
.figure figcaption { font-size: 0.92rem; line-height: 1.45; color: var(--ink-3); border-top: 1px solid var(--rule); padding-top: 10px; margin-top: 12px; max-width: 46rem; }
.fig-num { font: 0.75rem var(--mono); color: var(--coral-deep); margin-right: 8px; }
.figure-card { background: var(--white); padding: clamp(16px, 3vw, 32px); border-radius: var(--radius); margin-top: 40px; color: var(--ink); }

.island-map { width: 100%; height: auto; background: linear-gradient(170deg, #cdeef0, #9fd8de); border-radius: var(--radius); }
.island-map .graticule line { stroke: rgb(11 47 85 / 0.18); stroke-width: 0.6; }
.island-map .grat-label { font: 9px var(--mono); fill: rgb(11 47 85 / 0.6); }
.island-map .atoll { fill: rgb(242 183 5 / 0.25); stroke: var(--ocean); stroke-width: 2.4; }
.island-map .reef { fill: var(--coral); }
.island-map .isle-name { font: italic 500 15px var(--serif); fill: var(--ocean); }
.island-map .isle-name .cap { font: 9px var(--mono); fill: var(--coral-deep); font-style: normal; }
.island-map .isle-coord { font: 9px var(--mono); fill: rgb(11 47 85 / 0.7); }
.island-map .scale line { stroke: var(--ocean); stroke-width: 1.2; }
.island-map .scale text, .island-map .north text { font: 9px var(--mono); fill: var(--ocean); }
.island-map .north path { fill: var(--ocean); }

.sea-level { width: 100%; height: auto; }
.sea-level .tick line { stroke: var(--rule); stroke-dasharray: 2 4; }
.sea-level .tick text { font: 12px var(--mono); fill: var(--ink-3); }
.sea-level .land { fill: var(--palm); }
.sea-level .sea { fill: var(--ocean-2); }
.sea-level .tick-near { display: none; }
.sea-level .msl { stroke: var(--ocean); stroke-width: 2; }
.sea-level .proj-band { fill: var(--lagoon); opacity: 0.55; }
.sea-level .proj-fill { fill: var(--lagoon); opacity: 0.7; }
.sea-level .proj-line { stroke: var(--coral); stroke-width: 2; stroke-dasharray: 6 4; }
.sea-level .proj-label { font: 600 13px var(--mono); fill: var(--coral-deep); }
.sea-level .msl-label { font: 13px var(--mono); fill: var(--white); }
.sea-level .callout-line text { font: 13px var(--mono); fill: var(--ink); }
.sea-level .callout-line line { stroke: var(--ink); }

/* Split: text + photo */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.split-wide { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.split-flip > :first-child { order: 2; }
.split p { color: var(--ink-2); max-width: var(--measure); }
.band-lagoon .split p, .band-ocean .split p { color: #e2eef4; }
.band-lagoon .photo figcaption, .band-lagoon .photo figcaption span, .band-lagoon .photo figcaption a,
.band-ocean .photo figcaption, .band-ocean .photo figcaption span, .band-ocean .photo figcaption a { color: rgb(255 255 255 / 0.78); }
@media (max-width: 860px) { .split, .split-wide { grid-template-columns: 1fr; } .split-flip > :first-child { order: 0; } }

/* Mosaic gallery */
.mosaic { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(120px, 15vw, 210px); gap: 12px; }
.mosaic .photo { display: flex; flex-direction: column; }
.mosaic .photo img { flex: 1; min-height: 0; height: 100%; }
.m-a { grid-column: 1 / 8; grid-row: span 3; }
.m-b { grid-column: 8 / 13; grid-row: span 2; }
.m-c { grid-column: 8 / 13; grid-row: span 1; }
.m-d { grid-column: 1 / 5; grid-row: span 2; }
.m-e { grid-column: 5 / 13; grid-row: span 2; }
@media (max-width: 760px) {
  .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .m-a { grid-column: 1 / 3; grid-row: span 2; }
  .m-b, .m-c, .m-d { grid-column: span 1; grid-row: span 1; }
  .m-e { grid-column: 1 / 3; grid-row: span 2; }
  .mosaic .photo figcaption { display: none; }
}

/* Quote and call-to-action over photos */
.quote-band, .cta-photo { position: relative; color: var(--white); overflow: hidden; background: var(--ocean); }
.quote-band .bg, .cta-photo .bg { position: absolute; inset: 0; }
.quote-band .bg img, .cta-photo .bg img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.quote-band::after, .cta-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(11 47 85 / 0.9) 0%, rgb(11 47 85 / 0.62) 55%, rgb(11 47 85 / 0.2) 100%); }
.quote-band .container, .cta-photo-inner { position: relative; z-index: 1; padding: clamp(80px, 11vw, 150px) 0; }
.quote-band blockquote { margin: 0; max-width: 24ch; font: italic 400 clamp(1.9rem, 4.4vw, 3.6rem)/1.12 var(--serif); letter-spacing: -0.02em; text-indent: -0.42em; }
.quote-band figcaption { margin-top: 24px; font-size: 1.05rem; color: #c9d8e6; }
.quote-band figcaption a { color: var(--gold); white-space: nowrap; }
.cta-photo h2 { color: var(--white); max-width: 20ch; }
.cta-photo p { max-width: 34rem; color: #e2edf6; font-size: 1.2rem; }
.bg-credit { position: absolute; right: var(--gutter); bottom: 12px; z-index: 1; }

/* Explore tiles: photo + title, no decoration */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.tile { color: var(--ink); text-decoration: none; }
.tile img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: var(--radius); }
.tile-body { display: block; padding-top: 12px; }
.tile h3 { margin: 0 0 4px; }
.tile:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
.tile p { margin: 0; color: var(--ink-2); font-size: 1rem; }
@media (max-width: 1000px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .tiles { grid-template-columns: 1fr; } }

/* Feature cards: photo over text, no stripes or lift */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.features-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature { position: relative; }
.feature-img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.features-2 .feature-img { aspect-ratio: 16 / 9; }
.feature-body { padding-top: 14px; }
.feature-kicker { font-style: italic; color: var(--coral-deep); margin: 0 0 2px; }
.feature h3 { margin-bottom: 6px; }
.feature h3 a { color: var(--ink); text-decoration: none; }
.feature h3 a::after { content: ''; position: absolute; inset: 0; }
.feature:hover h3 a { text-decoration: underline; text-decoration-thickness: 1px; }
.feature .feature-cta { margin-top: 12px; font-weight: 500; }
.feature-cta a { display: inline-flex; align-items: center; min-height: 44px; color: var(--lagoon-deep); }
.feature-cta a::after { content: ''; position: absolute; inset: 0; }
.feature:hover .feature-cta a { color: var(--ink); text-decoration-thickness: 2px; }
.feature p { color: var(--ink-2); font-size: 1.02rem; margin-bottom: 0; }
@media (max-width: 760px) { .features, .features-2 { grid-template-columns: 1fr; } }

/* Dispatches (home) */
.dispatches { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.dispatch { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(20px, 4vw, 56px); padding: 24px 0; border-bottom: 1px solid var(--rule); }
.dispatch-date { color: var(--ink-3); font-style: italic; padding-top: 4px; }
.dispatch-tag { color: var(--coral-deep); }
.dispatch h3 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); margin-bottom: 0.3em; }
.dispatch h3 a { color: var(--ink); text-decoration: none; }
.dispatch h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.dispatch p { color: var(--ink-2); max-width: var(--measure); }
@media (max-width: 760px) { .dispatch { grid-template-columns: 1fr; gap: 4px; } }

/* News stories */
.story { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(20px, 3vw, 40px); padding: 28px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.story-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.story h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 6px 0 10px; }
.story-summary { font-style: italic; color: var(--ink); font-size: 1.15rem; }
.story-body p { color: var(--ink-2); max-width: var(--measure); }
.story-lead { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); padding-top: 0; }
.story-lead .story-img { aspect-ratio: 16 / 10; }
.story-lead h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.photo-note { margin-top: 20px; font-size: 0.92rem; font-style: italic; color: var(--ink-3); }
@media (max-width: 760px) { .story, .story-lead { grid-template-columns: 1fr; } }

/* Plain lists of asks and services */
.asks { list-style: none; margin: 0; padding: 0; columns: 2 22rem; column-gap: clamp(32px, 5vw, 72px); }
.asks li { break-inside: avoid; padding: 0 0 22px; font-size: 1.1rem; color: var(--ink-2); }
.asks strong { color: var(--ink); font-weight: 600; }
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px clamp(32px, 5vw, 72px); }
.services section { border-top: 1px solid var(--rule); padding-top: 16px; }
.services p { color: var(--ink-2); max-width: var(--measure); }
@media (max-width: 760px) { .services { grid-template-columns: 1fr; } }

/* In-page links */
.jump { background: var(--white); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 20; }
.jump .container { display: flex; gap: 6px 28px; padding: 14px 0; flex-wrap: wrap; font-size: 1rem; }
.jump .container::before { content: 'On this page:'; color: var(--ink-3); font-style: italic; }
.jump a { color: var(--ink); }

/* ---------- Inner page header ---------- */
.page-head { position: relative; background: var(--tone-bg, var(--ocean)); color: var(--white); overflow: hidden; }
.page-head-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); min-height: clamp(360px, 46vw, 520px); }
.page-head-text { padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 72px); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.page-head-text .kicker { align-self: center; }
.page-head h1 { max-width: 14ch; margin-inline: auto; }
.page-head h1 { font-size: clamp(2.4rem, 5.2vw, 4.6rem); line-height: 1; color: var(--white); }
.standfirst { font-size: clamp(1.15rem, 1.7vw, 1.4rem); line-height: 1.45; color: rgb(255 255 255 / 0.88); max-width: 34rem; margin: 0 auto; text-wrap: pretty; }
.page-head-media { position: relative; }
.page-head-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.page-head-media .hero-credit { bottom: 10px; right: 12px; }
.page-head.no-media .page-head-grid { grid-template-columns: 1fr; min-height: 0; }
.head-ocean { --tone-bg: var(--ocean); }
.head-lagoon { --tone-bg: var(--lagoon-deep); }
.head-coral { --tone-bg: var(--coral-deep); }
.head-palm { --tone-bg: var(--palm); }
@media (max-width: 860px) {
  .page-head-grid { grid-template-columns: 1fr; }
  .page-head-media { order: -1; aspect-ratio: 16 / 9; }
  .page-head-text { padding: 36px var(--gutter) 44px; }
}

/* Prose */
.with-margin { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: var(--head-gap); }
.with-margin > .margin { color: var(--ink-3); font-size: 0.95rem; }
@media (max-width: 860px) { .with-margin { grid-template-columns: 1fr; } }
.prose { max-width: var(--measure); }
/* Beside a margin column the prose fills its column: photos run to the edge, text keeps a readable line length */
.with-margin > .prose { max-width: none; }
.with-margin > .prose > :is(p, ul, ol, h2, h3, blockquote) { max-width: 48rem; }
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-top: 1.8em; }
body:not(.page-ambassador) .prose > .lead::first-letter { float: left; font-size: 4.6em; line-height: 0.8; padding: 0.06em 0.1em 0 0; color: var(--coral-deep); font-weight: 500; }
.prose .photo { margin: 2em 0; }

.facts-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.facts-table caption { text-align: left; font-style: italic; color: var(--coral-deep); padding-bottom: 8px; }
.facts-table th, .facts-table td { text-align: left; vertical-align: top; padding: 10px 0; border-top: 1px solid var(--rule); }
.facts-table th { font-weight: 400; color: var(--ink-3); width: 38%; padding-right: 12px; }

.island-list { columns: 3 10rem; column-gap: 24px; list-style: none; padding: 0; margin: 0 0 1em; }
.island-list li { padding: 7px 0; border-bottom: 1px solid var(--rule); font-style: italic; break-inside: avoid; }

.note { color: var(--ink-2); max-width: var(--measure); font-style: italic; }

.record { list-style: none; margin: 0; padding: 0; }
.record li { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 28px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.record .yr { color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; padding-top: 1px; }
.record .desc { display: block; margin-top: 4px; }
/* Narrow three-column lists (Ambassador honours) hold single years only. */
.columns-3 .record li { grid-template-columns: 3.6rem minmax(0, 1fr); gap: 16px; }
@media (max-width: 640px) { .record li { grid-template-columns: 5.75rem minmax(0, 1fr); gap: 18px; } }
.record strong { font-weight: 500; display: block; }
.record .desc { color: var(--ink-2); font-size: 1rem; }
.band-lagoon .record li { border-bottom-color: rgb(255 255 255 / 0.25); }
.band-lagoon .record .yr { color: #d4f0f1; }
.band-lagoon .record strong { color: var(--white); }
.band-lagoon .record .desc { color: #dff3f4; }

.columns-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.columns-3 h3 { font-size: 1.25rem; padding-bottom: 8px; margin-bottom: 0; border-bottom: 1px solid rgb(255 255 255 / 0.35); }
@media (max-width: 900px) { .columns-3 { grid-template-columns: 1fr; } }

.sticky { position: sticky; top: 24px; }

.closing { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(20px, 4vw, 56px); align-items: start; }
.closing h2 { max-width: 20ch; margin-bottom: 0.3em; }
.closing p { max-width: var(--measure); }
@media (max-width: 760px) { .closing { grid-template-columns: 1fr; } }

/* Credits */
.credits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 0 40px; }
.credit { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 18px; padding: 16px 0; border-top: 1px solid var(--rule); font-size: 0.98rem; }
.credit-thumb { width: 140px; height: 100px; object-fit: cover; border-radius: var(--radius); }
.credit p { margin: 0 0 4px; color: var(--ink-2); }
.credit-title { font-weight: 500; color: var(--ink) !important; }
.credit-note { font-size: 0.85rem; font-style: italic; color: var(--ink-3) !important; }
.credit:target { background: var(--lagoon-wash); }

/* Contact */
.routes { list-style: none; margin: 24px 0; padding: 0; }
.routes li { padding: 10px 0; border-top: 1px solid var(--rule); }
.routes strong { font-weight: 500; color: var(--ink); display: block; }
.routes span { font-size: 0.95rem; color: var(--ink-2); }
.form { display: grid; gap: 20px; background: var(--white); padding: clamp(20px, 3vw, 36px); border-radius: var(--radius); }
.form label { display: block; font-weight: 500; color: var(--ink); margin-bottom: 6px; font-size: 1rem; }
.form input, .form select, .form textarea { width: 100%; padding: 12px 14px; border: 1px solid #c9bea6; background: var(--sand); font: inherit; color: var(--ink); border-radius: var(--radius); min-height: 48px; }
.form select { cursor: pointer; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 3px solid var(--lagoon); outline-offset: 0; border-color: var(--lagoon); }
.form textarea { min-height: 150px; resize: vertical; }
.form .hint { font-size: 0.95rem; color: var(--ink-3); margin: 0; }
.form-status { min-height: 1.5em; color: var(--lagoon-deep); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ocean); color: #b9cde0; padding: clamp(48px, 6vw, 72px) 0 24px; font-size: 1rem; }
.site-footer a { color: #eef4f9; text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.footer-main { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: end; }
.footer-motto { font: italic 400 clamp(2.2rem, 5vw, 3.8rem)/1 var(--serif); letter-spacing: -0.03em; color: var(--white); margin: 0 0 14px; }
.footer-motto em { color: var(--gold); }
.footer-office-name { color: #dbe6f0; margin-bottom: 10px; }
.footer-actions { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; }
.footer-actions a { border-bottom: 1px solid rgb(255 255 255 / 0.4); padding-bottom: 2px; }
.footer-pages { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 24px; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px; border-top: 1px solid rgb(255 255 255 / 0.15); margin-top: 32px; padding-top: 18px; font-size: 0.9rem; color: #9fb3c6; }
.footer-base p { margin: 0; display: flex; align-items: center; gap: 10px; }
.footer-legal { gap: 20px !important; }
.footer-legal a { color: #c9d8e6; }
.footer-mark { width: 18px; }
.footer-mark circle { fill: var(--gold); }
@media (max-width: 760px) { .footer-main { grid-template-columns: 1fr; } .footer-pages { justify-content: flex-start; } }

/* Scroll reveal: only with JS, never with reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .js .reveal.is-in { opacity: 1; transform: none; }
}

/* Section heads without a label run full width. */
.section-head:not(:has(.label)) { grid-template-columns: 1fr; }
.section-head:not(:has(.label)) p:not(.label) { grid-column: 1; }
.prose-wide { max-width: 52rem; }
.section-head:not(:has(.label)) + .band-intro { margin-left: 0; }

/* ---------- Explainers, FAQ, sources ---------- */
.article { font-size: 1.15rem; }
.article h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-top: 1.6em; }
.article > p:first-child, .article .lead { font-size: 1.3rem; line-height: 1.55; color: var(--ink); }
.article ul { padding-left: 1.2em; }
.article li { margin-bottom: 0.6em; color: var(--ink-2); }
.article li::marker { color: var(--coral); }
.article .photo { margin: 2em 0; }

.faq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px clamp(32px, 5vw, 72px); }
.faq-item { border-top: 1px solid var(--rule); padding-top: 16px; }
.faq-item h3 { font-size: 1.3rem; }
.faq-item p { color: var(--ink-2); }
@media (max-width: 760px) { .faq-list { grid-template-columns: 1fr; } }

.sources { padding-left: 1.4em; color: var(--ink-2); font-size: 1rem; }
.sources li { margin-bottom: 0.5em; }
.updated { margin-top: 24px; font-style: italic; color: var(--ink-3); }

.toc { margin-top: 28px; }
.toc ol { list-style: none; padding: 0; margin: 0; }
.toc li { border-top: 1px solid var(--rule); }
.toc a { display: block; padding: 7px 0; color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--coral-deep); }

.prose h2[id], .article h2[id] { scroll-margin-top: 24px; }
.flag-figure { margin: 0 0 1.2em; }
.flag-figure img { width: 100%; max-width: 480px; border: 1px solid var(--rule); }
.flag-figure figcaption { font-size: 0.9rem; color: var(--ink-3); font-style: italic; padding-top: 6px; }

.quick-facts { margin-top: 36px; font-size: 1.15rem; color: var(--ink-2); max-width: 52rem; }

/* News and Partner additions */
.story-source { font-size: 0.92rem; color: var(--ink-3); }
.story-source a { color: var(--ink-3); }
.services-dark section { border-top-color: rgb(255 255 255 / 0.25); }
.services-dark h3 { color: var(--white); }
.services-dark p { color: #cfdde9; }
.services-dark a { color: var(--gold); }
.services { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.corrections { display: grid; gap: 4px; }
.correction { border-top: 1px solid var(--rule); padding-top: 14px; }
.correction h3 { font-style: italic; font-weight: 400; color: var(--coral-deep); font-size: 1.3rem; }
.correction p { color: var(--ink-2); max-width: var(--measure); }
.jump .container::before { margin-right: 0; }
.band-ocean .section-head p:not(.label), .band-lagoon .section-head p:not(.label) { color: #d6e4ef; }

/* One text column for the whole site: the second column of the 3/9 grid that
   section headings use. Long-form blocks start on the same line. */
.container.prose-wide { max-width: none; }
.container.prose-wide > * { margin-left: calc(25% + 0.75 * var(--head-gap)); max-width: 46rem; }
@media (max-width: 760px) { .container.prose-wide > * { margin-left: 0; } }

/* Page-header kicker: bright gold only on navy; pale gold on the lighter tones. */
.head-lagoon .kicker, .head-coral .kicker, .head-palm .kicker { color: var(--gold-pale); }

/* <picture> wraps every photo; let the <img> inside lay out as if it were the direct child. */
picture { display: contents; }
/* <source> must never become a grid or flex item, or it takes a layout cell. */
picture > source { display: none; }

.portrait-photo img { aspect-ratio: 5 / 6; object-fit: cover; object-position: center top; }

/* Cabinet table on the Prime Minister page */
.cabinet-table { width: 100%; border-collapse: collapse; font-size: 1.02rem; background: var(--white); border-radius: var(--radius); overflow: hidden; }
.cabinet-table th { text-align: left; font-weight: 600; color: var(--ink); padding: 12px 16px; border-bottom: 2px solid var(--rule); }
.cabinet-table td { padding: 12px 16px; border-bottom: 1px solid var(--sand-deep); color: var(--ink-2); vertical-align: top; }
.cabinet-table td:nth-child(2) { color: var(--ink); font-weight: 500; }
@media (max-width: 640px) {
  .cabinet-table thead { display: none; }
  .cabinet-table tr { display: block; padding: 12px 16px; border-bottom: 1px solid var(--sand-deep); }
  .cabinet-table td { display: block; padding: 2px 0; border: 0; }
  .cabinet-table td:nth-child(3)::before { content: 'Constituency: '; color: var(--ink-3); }
}

/* Split with both columns starting at the top (photo beside a list). */
.split-top { align-items: start; }
.split-top .record { border-top: 1px solid var(--rule); }
.record-note { margin-top: 24px; }

/* Rows of photos beside each other. */
.photo-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.photo-row-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 2em 0; }
.photo-row .photo img { aspect-ratio: 4 / 3; }
@media (max-width: 760px) { .photo-row { grid-template-columns: 1fr; } }

/* Partnership areas: title in the margin column, detail in the main column */
.area { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: var(--head-gap); border-top: 1px solid var(--rule); padding: clamp(28px, 4vw, 44px) 0; scroll-margin-top: 72px; }
.area h3 { margin: 0; font-size: clamp(1.4rem, 2vw, 1.8rem); }
.area-body > * { max-width: 48rem; }
.area-body > :first-child { margin-top: 0; }
.area-challenge { font-size: 1.15rem; }
.area h4 { font-size: 1.1rem; margin: 1.4em 0 0.4em; }
.area-body p, .area-list { color: var(--ink-2); }
.area-list { padding-left: 1.2em; }
.area-list li + li { margin-top: 0.35em; }
.area-sources { font-size: 0.9rem; color: var(--ink-3); margin-top: 1.4em; }
@media (max-width: 860px) { .area { grid-template-columns: 1fr; gap: 12px; } }

/* Second-level menu for the news pages */
.section-tabs { background: var(--white); border-bottom: 1px solid var(--rule); }
.section-tabs .container { display: flex; flex-wrap: wrap; gap: 4px 28px; padding: 14px 0; font-size: 1.05rem; }
.section-tabs a { color: var(--ink-2); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.section-tabs a:hover { color: var(--ink); border-bottom-color: var(--rule); }
.section-tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--coral); }

/* Tuvalu in the news */
.news-feed-content { max-width: 52rem; }
.feed { list-style: none; margin: 0; padding: 0; max-width: 48rem; }
.feed li { border-top: 1px solid var(--rule); padding: 16px 0 18px; }
.feed li:last-child { border-bottom: 1px solid var(--rule); }
.feed a { font-size: 1.25rem; line-height: 1.35; color: var(--ink); text-decoration-color: var(--rule); text-underline-offset: 3px; }
.feed a:hover { text-decoration-color: var(--coral); }
.feed-meta { margin: 6px 0 0; color: var(--ink-3); font-size: 0.95rem; }
.feed-summary { margin: 10px 0 0; color: var(--ink-2); line-height: 1.55; }
.feed-note { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--rule); color: var(--ink-3); font-size: 0.95rem; }
.feed-note p { margin: 0 0 12px; }
.feed-empty { color: var(--ink-3); font-style: italic; }
.contact-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Photo gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; }
.gallery-item { margin: 0; }
.gallery-item > a { display: block; cursor: zoom-in; }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: opacity 0.2s; }
.gallery-item img.gallery-portrait { object-fit: contain; background: var(--sand-deep); }
.gallery-section-head { grid-template-columns: 1fr; }
.gallery-item > a:hover img { opacity: 0.88; }
.gallery-item > a:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.gallery-item figcaption { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; font-size: 0.95rem; }
.gallery-credit { color: var(--ink-3); font-size: 0.85rem; }
.gallery-credit a { color: inherit; }
@media (max-width: 1000px) { .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .gallery-grid { grid-template-columns: 1fr; } }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgb(5 15 25 / 0.92); }
.lightbox figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 72px 24px; box-sizing: border-box; }
.lightbox-frame { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; width: 100%; }
.lightbox-frame img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox figcaption { color: #e8eef3; text-align: center; margin-top: 14px; display: flex; flex-direction: column; gap: 4px; }
.lightbox-credit { color: #9fb3c6; font-size: 0.9rem; }
.lightbox button { position: absolute; background: rgb(255 255 255 / 0.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgb(255 255 255 / 0.24); }
.lightbox button:focus-visible { outline: 3px solid var(--gold-pale); }
.lightbox-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox-close { right: 12px; top: 12px; }
@media (max-width: 600px) { .lightbox figure { padding: 64px 12px 24px; } .lightbox-prev, .lightbox-next { top: auto; bottom: 12px; transform: none; } }

/* Contact page: soft cards, guidance beside a calm form */
.contact-ways { padding-block: clamp(36px, 5vw, 56px); }
.contact-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.contact-card { background: var(--white); border-radius: 14px; padding: 24px 26px; box-shadow: 0 1px 2px rgb(13 27 42 / 0.05), 0 8px 24px rgb(13 27 42 / 0.05); }
.contact-card h2 { font-size: 1.3rem; margin: 0 0 10px; }
.contact-card p { margin: 0; color: var(--ink-2); line-height: 1.55; }
.contact-card .contact-card-foot { margin-top: 12px; font-size: 0.95rem; color: var(--ink-3); }

.contact-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.contact-guide h2 { margin: 0 0 20px; }
.contact-guide dl { margin: 0; }
.contact-guide dl > div { padding: 16px 0; border-top: 1px solid var(--rule); }
.contact-guide dt { font-weight: 500; color: var(--ink); margin-bottom: 4px; }
.contact-guide dd { margin: 0; color: var(--ink-2); }

.contact-form { background: var(--white); border-radius: 18px; padding: clamp(24px, 4vw, 44px); gap: 22px; box-shadow: 0 1px 2px rgb(13 27 42 / 0.05), 0 18px 40px rgb(13 27 42 / 0.07); }
.contact-form h2 { margin: 0; font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.contact-form .form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.contact-form input:not([type="radio"]), .contact-form textarea { background: #fbf8f1; border-color: #e4dac5; border-radius: 10px; transition: border-color 0.15s, background 0.15s; }
.contact-form input:not([type="radio"]):hover, .contact-form textarea:hover { border-color: #cfc2a6; }
.contact-form input:not([type="radio"]):focus-visible, .contact-form textarea:focus-visible { background: var(--white); outline: 3px solid var(--lagoon-wash); border-color: var(--lagoon); }
.contact-form .btn { border-radius: 999px; padding-inline: 28px; }

.topic-pills { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.topic-pills legend { font-weight: 500; color: var(--ink); margin-bottom: 10px; padding: 0; }
.topic-pills label { position: relative; cursor: pointer; }
.topic-pills input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.topic-pills span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 1px solid #e4dac5; background: #fbf8f1; color: var(--ink-2); transition: background 0.15s, border-color 0.15s, color 0.15s; }
.topic-pills label:hover span { border-color: #cfc2a6; }
.topic-pills input:checked + span { background: var(--lagoon-wash); border-color: var(--lagoon); color: var(--ink); }
.topic-pills input:focus-visible + span { outline: 3px solid var(--lagoon); outline-offset: 2px; }

@media (max-width: 900px) {
  .contact-cards, .contact-layout { grid-template-columns: 1fr; }
  .contact-form .form-row { grid-template-columns: 1fr; }
}

/* Ambassador portfolio: one full-width lead area above the others. */
.portfolio-lead { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(20px, 4vw, 56px); margin-bottom: clamp(24px, 3vw, 40px); padding: clamp(24px, 4vw, 48px); background: var(--ocean); color: #cfdde9; border-radius: 14px; }
.portfolio-lead h3 { color: var(--white); font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 12px; }
.portfolio-lead p { margin: 0; }
.portfolio-lead > p { font-size: 1.12rem; line-height: 1.6; color: var(--white); }
.portfolio-lead a { color: var(--gold); }
.portfolio-lead a:hover { color: var(--gold-pale); }
.services.portfolio-rest { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px clamp(20px, 2.5vw, 36px); }
@media (max-width: 1100px) { .services.portfolio-rest { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .portfolio-lead { grid-template-columns: 1fr; }
  .services.portfolio-rest { grid-template-columns: 1fr; }
}

/* Scanned documents: fill the width and scroll, so the text stays readable. */
.lightbox button[hidden] { display: none; }
.lightbox-document .lightbox-frame { display: block; overflow: auto; }
.lightbox-document .lightbox-frame img { width: min(100%, 860px); margin-inline: auto; max-width: none; max-height: none; height: auto; object-fit: initial; background: var(--white); }

/* Interactive sea-level chart. */
.sea-readout { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 24px; margin: 0 0 20px; }
.sea-readout dt { font-size: 0.9rem; color: var(--ink-3); }
.sea-readout dd { margin: 2px 0 0; font: 500 clamp(1.5rem, 3vw, 2.3rem)/1.1 var(--serif); color: var(--ink); font-variant-numeric: tabular-nums; }
.sea-readout div:nth-child(2) dd { color: var(--coral-deep); }
.sea-controls[hidden] { display: none; }
.sea-controls { margin-top: 18px; display: grid; gap: 16px; }
.sea-slider { display: flex; align-items: flex-start; gap: 18px; }
.sea-play { min-width: 92px; min-height: 44px; }
.sea-track { flex: 1; min-width: 0; }
.sea-track input { width: 100%; height: 44px; margin: 0; accent-color: var(--coral); cursor: pointer; }
.sea-scale { display: flex; justify-content: space-between; margin-top: -6px; font: 0.8rem var(--mono); color: var(--ink-3); }
.sea-scenarios { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sea-scenarios legend { padding: 0; margin-bottom: 8px; font-size: 0.95rem; color: var(--ink-2); }
.sea-scenarios label { cursor: pointer; }
.sea-scenarios input { position: absolute; opacity: 0; }
.sea-scenarios span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 16px; border: 1px solid var(--rule); border-radius: 999px; background: var(--white); color: var(--ink); }
.sea-scenarios small { font: 0.72rem var(--mono); color: var(--ink-3); }
.sea-scenarios input:checked + span { background: var(--lagoon-wash); border-color: var(--lagoon-deep); }
.sea-scenarios input:focus-visible + span { outline: 3px solid var(--lagoon-deep); outline-offset: 2px; }
@media (max-width: 760px) { .sea-readout { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  /* Crop to the island so the water's movement stays visible on a phone. */
  .sea-level { height: 220px; }
  .sea-level .tick > text:first-of-type, .sea-level .proj-label { display: none; }
  .sea-level .tick text.tick-near { display: block; font-size: 17px; }
  .sea-level g.tick:nth-of-type(1) text.tick-near, .sea-level g.tick:nth-of-type(5) text.tick-near { display: none; }
  .sea-level .callout-line text { font-size: 17px; text-anchor: end; transform: translateX(-16px); }
  .sea-level .msl-label { font-size: 18px; }
}

/* Video that loads when the visitor presses play. */
.video-embed { position: relative; display: block; max-width: 960px; margin-inline: auto; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 14px; background: var(--ocean); }
.video-embed img, .video-embed iframe { display: block; width: 100%; height: 100%; object-fit: cover; border: 0; }
.video-play { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 10px 24px 10px 16px; border-radius: 999px; background: var(--ocean); color: var(--white); font-size: 1.1rem; white-space: nowrap; }
a.video-embed:hover .video-play { background: var(--coral-deep); }
a.video-embed:focus-visible { outline: 3px solid var(--gold-pale); outline-offset: 3px; }
.video-note { max-width: 960px; margin: 12px auto 0; font-size: 0.92rem; }
.figure-card a { color: var(--lagoon-deep); }
