/* ONG WELL INTERNATIONAL — site styles, "Atlas" design.
   The site reads like a national atlas: a deep-blue sea, a pale island, place marks,
   and condensed capital lettering for titles and map names. Colours come from the WELL logo. */

/* Title lettering: Barlow Condensed (SIL Open Font License), saved in the site so nothing loads from elsewhere.
   The licence text is in assets/fonts. Text shows at once in a stand-in font and swaps when the file arrives. */
/* Headings: Source Serif 4 (SIL OFL), self-hosted. Only the basic Latin file loads for
   French, English and Malagasy; the extended file loads only if a rarer letter appears. */
@font-face {
  font-family: "Source Serif 4"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/source-serif-4-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/source-serif-4-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/assets/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2");
}

:root {
  --sea: #0a2f82;          /* large blue fields: a step toward Reflex Blue (#001489), brand guide BS 07 */
  --sea-deep: #061f5c;     /* footer, outlines of map marks */
  --land: #eef4e8;         /* the island */
  --pin: #67c13f;          /* green marks on the sea: toward Pantone 362 (#4C9A2A), bright enough on blue */
  --gold: #f5c04a;         /* third mark colour */
  --blue: #123c9c;         /* links, headings: toward Reflex Blue, kept readable (contrast 9:1 on white) */
  --green-deep: #2f7a1f;   /* Pantone 362 darkened so white text on it passes contrast (5.2:1) */
  --ink: #0b2545;
  --text: #16212e;
  --muted: #4b5a6a;
  --rule: #c9d3cc;
  --wash: #f5f3ec;   /* a hint of the brand ivory (Pantone 7533) */
  --paper: #ffffff;
  --note-bg: #fff6dd;      /* "to fill" markers */
  --note-ink: #5c3b00;
  --note-line: #b98900;

  --gap: clamp(1rem, 4vw, 3rem);
  --section: clamp(3rem, 7vw, 5.5rem);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  /* Title lettering. The fonts after "Barlow Condensed" stand in while its file loads. */
  --serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --display: "Barlow Condensed", "DIN Condensed", "Avenir Next Condensed", "Roboto Condensed", "Arial Narrow", system-ui, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  accent-color: var(--blue);
  caret-color: var(--blue);
  scrollbar-color: #9fb0c3 transparent;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
}

::selection { background: #cdebc9; color: var(--text); }

img, svg { max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; line-height: 1.15; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, dl, dd { margin: 0; padding: 0; }
address { font-style: normal; }

a {
  color: var(--blue);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
  transition: color 0.15s ease-out, background-color 0.15s ease-out, border-color 0.15s ease-out;
}
a:hover { color: var(--ink); text-decoration-thickness: 0.14em; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.sea :focus-visible, .site-footer :focus-visible { outline-color: #fff; }

.wrap { max-width: 88rem; margin-inline: auto; padding-inline: var(--gap); }

.display {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); line-height: 1.12; letter-spacing: -0.015em; color: var(--ink);
  text-wrap: balance;
}

.skip {
  position: absolute; left: var(--gap); top: -5rem; z-index: 10;
  background: var(--blue); color: #fff; padding: 0.6rem 1rem; border-radius: 0 0 3px 3px;
}
.skip:focus, .skip:hover { color: #fff; }
.skip:focus { top: 0; }

.draft {
  margin: 0; padding: 0.4rem var(--gap); text-align: center; font-size: 0.875rem;
  background: var(--note-bg); color: var(--note-ink); border-bottom: 1px solid #e6cf8f;
}

/* ---------- Buttons, links, map symbols ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.25rem; border: 2px solid var(--blue); border-radius: 3px;
  background: var(--blue); color: #fff; font-weight: 700; line-height: 1.2; text-decoration: none;
}
.btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-give { background: var(--green-deep); border-color: var(--green-deep); }
.btn-give:hover { background: #245f17; border-color: #245f17; }
.sea .btn { background: #fff; border-color: #fff; color: var(--sea-deep); }
.sea .btn:hover { background: #dce8f7; border-color: #dce8f7; color: var(--sea-deep); }

.more { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 650; }
.arrow { flex: none; transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1); }
a:hover .arrow { transform: translateX(3px); }

.sym { flex: none; overflow: visible; }
.s-health { fill: var(--pin); stroke: var(--sea-deep); stroke-width: 1.2; }
.s-outreach { fill: #fff; stroke: var(--sea-deep); stroke-width: 1.7; }
.s-community { fill: var(--gold); stroke: var(--sea-deep); stroke-width: 1.2; }
.s-donation { fill: #8fd8ff; stroke: var(--sea-deep); stroke-width: 1.2; }
.s-mcce { fill: #fff; }
.s-office { fill: #fff; stroke: var(--green-deep); stroke-width: 1.8; }
.s-cluster { fill: #fff; stroke: var(--pin); stroke-width: 2.8; }

/* ---------- "To fill" markers (draft only) ---------- */

.todo-label {
  display: inline-block; margin-right: 0.2rem; padding: 0.05rem 0.4rem; border-radius: 3px;
  background: var(--note-ink); color: #fff; font-size: 0.72rem; font-weight: 700; line-height: 1.5; white-space: nowrap;
}
.todo {
  display: inline-block; margin: 0; padding: 0.45rem 0.7rem; font-size: 0.9rem;
  background: var(--note-bg); color: var(--note-ink); border: 1.5px dashed var(--note-line); border-radius: 4px;
}

/* Draft preview with draftNotes: false — hide the "To fill" boxes, keep the "Held" note. */
.no-notes p.todo:not(.todo-keep) { display: none; }

/* ---------- Header ---------- */

.site-header { background: var(--paper); }
.header-top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding-block: 0.7rem; }

.brand { display: flex; align-items: center; gap: 0.65rem; min-width: 0; color: var(--blue); text-decoration: none; }
.brand img { width: 2.5rem; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.01em; }
.brand-place { font-size: 0.8125rem; font-weight: 500; color: var(--muted); }

.header-tools { display: flex; align-items: center; gap: 0.4rem; flex: none; }

.lang ul { display: flex; list-style: none; border: 1px solid var(--rule); border-radius: 3px; overflow: hidden; }
.lang a { display: block; padding: 0.5rem 0.5rem; font-size: 0.875rem; font-weight: 650; line-height: 1.3; text-decoration: none; }
.lang a:hover { background: var(--wash); }
.lang a[aria-current], .lang a[aria-current]:hover { background: var(--ink); color: #fff; }
.lang-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.menu-toggle {
  padding: 0.5rem 0.6rem; border: 1px solid var(--ink); border-radius: 3px; background: var(--paper);
  color: var(--ink); font: inherit; font-size: 0.875rem; font-weight: 650; line-height: 1.3; cursor: pointer; white-space: nowrap;
}
.menu-toggle[hidden] { display: none; }
.menu-toggle[aria-expanded="true"] { background: var(--ink); color: #fff; }

.site-nav { border-top: 1px solid var(--rule); }
.site-nav ul { display: flex; flex-direction: column; list-style: none; padding-block: 0.25rem 1rem; }
.site-nav li + li { border-top: 1px solid var(--rule); }
.site-nav a:not(.btn) { display: block; padding: 0.8rem 0; color: var(--text); font-size: 0.9375rem; font-weight: 600; text-decoration: none; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"]:not(.btn) { color: var(--blue); }
.site-nav .nav-give { border-top: 0; padding-top: 0.75rem; }
.js .site-nav:not(.open) { display: none; }

/* Small phones: four language buttons + menu leave little room, so tighten the header. */
@media (max-width: 29.99rem) {
  .header-top { gap: 0.5rem; }
  .brand { gap: 0.45rem; }
  .brand img { width: 2.1rem; }
  .brand-name, .brand-place { font-size: 0.75rem; }
  .header-tools { gap: 0.3rem; }
  .lang a { padding: 0.5rem 0.38rem; font-size: 0.8125rem; }
  .menu-toggle { padding: 0.5rem 0.45rem; font-size: 0.8125rem; }
}

@media (min-width: 30rem) {
  .brand img { width: 2.75rem; }
  .brand-name { font-size: 1.0625rem; }
  .header-tools { gap: 0.6rem; }
  .lang a { padding: 0.5rem 0.7rem; }
  .menu-toggle { padding: 0.5rem 0.85rem; }
  .lang-code { display: none; }
  .lang-name { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
}

@media (min-width: 62rem) {
  .menu-toggle, .menu-toggle[hidden] { display: none; }
  .js .site-nav:not(.open), .site-nav { display: block; }
  .site-nav ul { flex-direction: row; align-items: center; gap: 0 1.75rem; padding-block: 0; }
  .site-nav li + li { border-top: 0; }
  .site-nav a:not(.btn) { padding: 0.85rem 0; }
  .site-nav a[aria-current="page"]:not(.btn) { box-shadow: inset 0 -3px 0 var(--pin); }
  .site-nav .nav-give { margin-left: auto; padding: 0.4rem 0; }
  .site-nav .btn { padding: 0.5rem 1rem; }
}

/* ---------- The sea and the map ---------- */

.sea { background: var(--sea); color: #fff; overflow: hidden; }
.sea a:not(.btn) { color: #fff; }
.sea-grid { display: grid; max-width: 96rem; margin-inline: auto; }

.pitch { padding: 2.25rem var(--gap) 1.25rem; }
.mission {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(2.2rem, 1.4rem + 4vw, 4.4rem); line-height: 1.06; letter-spacing: -0.02em;
}
.mission span { display: block; }
.lead { max-width: 33rem; margin: 1.5rem 0 0; font-size: clamp(1.05rem, 1rem + 0.4vw, 1.2rem); line-height: 1.5; color: #dbe7f6; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin: 1.75rem 0 0; }

.legend { max-width: 36rem; margin: 0.5rem var(--gap) 2.5rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.4); }
.legend h2 { margin-bottom: 0.4rem; font-family: var(--display); font-size: 1.2rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #b9d0ee; }
.legend ul { list-style: none; }
.legend li { display: grid; grid-template-columns: 1.7rem 1fr auto; align-items: center; padding: 0.3rem 0; font-weight: 600; }
.legend .n { font-variant-numeric: tabular-nums; color: #b9d0ee; }
.legend .legend-note { margin-top: 0.3rem; padding-top: 0.6rem; border-top: 1px solid rgba(255, 255, 255, 0.2); font-weight: 400; color: #dbe7f6; }

/* On a phone the map is enlarged so the island fills the width; place names appear from tablet size. */
.chart-box { overflow: hidden; }
.chart { display: block; width: 151.5%; max-width: none; margin-left: -25.75%; }
.chart .name { display: none; }
.chart .name.capital, .chart .pin.is-active .name { display: block; }
/* On a phone the right edge is the coast, so a selected east-coast name is written on the land side. */
.chart .pin.is-active .name.side-right.sea { text-anchor: end; transform: translateX(calc(var(--gap) * -2px)); fill: var(--sea-deep); stroke: var(--land); }

.grat { stroke: rgba(255, 255, 255, 0.16); stroke-width: 0.5; }
.grat-label { font: 600 7px var(--font); fill: rgba(255, 255, 255, 0.55); letter-spacing: 0.04em; }
.land { fill: var(--land); stroke: rgba(0, 47, 105, 0.5); stroke-width: 0.5; }
.scale line { stroke: #fff; stroke-width: 1.2; }
.scale text { font: 600 7.5px var(--font); fill: #fff; }

.pin { cursor: pointer; outline: none; }
.pin .hit { fill: transparent; }
.pin .ring { fill: none; stroke: var(--sea-deep); stroke-width: 2; opacity: 0; filter: drop-shadow(0 0 1.5px #fff); transition: opacity 0.15s ease-out; }
.pin:hover .ring, .pin:focus-visible .ring, .pin.is-active .ring { opacity: 1; }
.pin:focus-visible .ring { stroke-width: 3; }
.pin.is-active .s-health, .pin.is-active .s-outreach, .pin.is-active .s-community, .pin.is-active .s-donation { fill: var(--sea-deep); stroke: #fff; stroke-width: 1.6; }
.pin.is-active .s-cluster { stroke: var(--sea-deep); }
.pin.is-off { display: none; }
.pin .count { font: 800 9px var(--font); fill: var(--sea-deep); text-anchor: middle; }
.name {
  font-family: var(--display); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  fill: var(--sea-deep); paint-order: stroke; stroke: var(--land); stroke-width: 2.6px; stroke-linejoin: round;
}
.name.sea { fill: #fff; stroke: var(--sea); }
.name.capital { font-size: 14px; }

@media (min-width: 40rem) {
  .chart-box { max-width: 36rem; margin-inline: auto; }
  .chart { width: 100%; margin-left: 0; }
  .chart .name { display: block; }
  .chart .pin.is-active .name.side-right.sea { text-anchor: start; transform: none; fill: #fff; stroke: var(--sea); }
}

@media (min-width: 60rem) {
  .sea-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 46%); grid-template-rows: auto 1fr; grid-template-areas: "pitch chart" "legend chart"; align-items: start; }
  .pitch { grid-area: pitch; padding: 3rem 1rem 0 var(--gap); }
  .legend { grid-area: legend; max-width: 33rem; margin: 2.25rem 1rem 3rem var(--gap); }
  .hero .chart-box { grid-area: chart; max-width: none; margin: 0; }
  /* The whole island stays visible in the first screen, under the header. */
  .hero .chart { height: min(840px, max(540px, calc(100vh - 9.5rem))); }
}

/* ---------- Home: registration strip ---------- */

.cartouche { display: grid; gap: 1rem 2rem; margin-top: 1.75rem; padding-block: 1.25rem; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); }
.cartouche h2 { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; line-height: 1.12; text-transform: none; letter-spacing: -0.01em; color: var(--blue); }
.cartouche dl { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.75rem; }
.cartouche dl > div:nth-child(-n+3) { grid-column: 1 / -1; }
.cartouche dt { font-size: 0.78rem; color: var(--muted); }
.cartouche dd { font-weight: 650; font-size: 0.95rem; line-height: 1.4; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cartouche .plain { display: block; font-weight: 400; }
.cartouche dl > div:nth-child(n+4) dd { white-space: nowrap; }
.cartouche-note { margin: 0.9rem 0 0; color: var(--muted); font-size: 0.95rem; }
.cartouche-note .more { margin-left: 0.5rem; }

@media (min-width: 48rem) {
  .cartouche dl { grid-template-columns: 1fr 2.1fr 1.4fr 0.9fr 1.5fr; }
  .cartouche dl > div:nth-child(-n+3) { grid-column: auto; }
}
@media (min-width: 75rem) {
  .cartouche { grid-template-columns: 11rem minmax(0, 1fr); align-items: start; }
}

/* ---------- Home: sections ---------- */

.work, .who, .join { padding-block: var(--section); }
.period { margin: 0.75rem 0 0; color: var(--muted); }

.areas { display: grid; gap: 2.5rem; margin-top: 2rem; }
.area { padding-top: 1rem; border-top: 2px solid var(--ink); }
.area h3 { display: flex; gap: 0.6rem; align-items: baseline; margin-bottom: 0.5rem; font-size: 1.3rem; line-height: 1.2; color: var(--blue); }
.area h3 .sym { transform: translateY(2px); }
.area > p { max-width: 34rem; }
.area dl > div { padding: 0.8rem 0; border-top: 1px solid var(--rule); }
.area dt { font-weight: 700; }
.area dd { max-width: 60ch; margin-top: 0.1rem; color: #2b3848; }
.source { margin: 2.5rem 0 0; padding-top: 1rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.875rem; }

@media (min-width: 60rem) {
  .areas { grid-template-columns: 1.5fr 1fr; gap: 2.5rem 4rem; }
  .area:first-child { grid-row: span 2; }
  .area:first-child dl > div { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: 0 1.5rem; }
}

.who { background: var(--wash); }
.who-grid { display: grid; gap: 2.5rem 4rem; }
.who .display { margin-bottom: 1.25rem; }
.who p { max-width: 65ch; }
.leaders h3 { margin-bottom: 0.5rem; font-family: var(--display); font-size: 1.3rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--green-deep); }
.leaders dl > div { padding: 0.75rem 0; border-top: 1px solid var(--rule); }
.leaders dt { font-weight: 700; }
.leaders dd { color: var(--muted); }

@media (min-width: 60rem) {
  .who-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .leaders { padding-top: 0.75rem; }
}

.routes { display: grid; margin-top: 2rem; list-style: none; }
.routes li { padding: 1.5rem 0; border-top: 1px solid var(--rule); }
.routes h3 { margin-bottom: 0.5rem; font-size: 1.375rem; }
.routes h3 a { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.routes h3 a:hover { text-decoration: underline; }
.routes p { max-width: 34rem; }
.routes p:last-child { margin-bottom: 0; }

@media (min-width: 60rem) {
  .routes { grid-template-columns: repeat(3, 1fr); }
  .routes li { padding: 0.25rem 2rem; border-top: 0; border-left: 1px solid var(--rule); }
  .routes li:first-child { padding-left: 0; border-left: 0; }
}

/* ---------- "Where we work" page ---------- */

.atlas { display: grid; }
.atlas-head { padding: 2.5rem var(--gap) 1.75rem; }
.atlas-head .display { font-size: clamp(2.8rem, 2rem + 4vw, 4.6rem); }
.atlas-intro { max-width: 40rem; margin: 1rem 0 0; font-size: 1.1rem; }
.atlas-head .todo { margin-top: 1rem; }

.key, .filters { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-top: 1.5rem; list-style: none; }
.key li { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 0.95rem; }
.key[hidden], .filters[hidden] { display: none; }
.filters { gap: 0.5rem; }
.filters button {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.8rem;
  border: 1px solid var(--ink); border-radius: 3px; background: var(--paper); color: var(--ink);
  font: inherit; font-size: 0.9rem; font-weight: 650; line-height: 1.3; cursor: pointer;
  transition: background-color 0.15s ease-out, color 0.15s ease-out;
}
.filters button:hover { background: var(--wash); }
.filters button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.filters .n { font-variant-numeric: tabular-nums; opacity: 0.75; }

.atlas-map { position: relative; }
.atlas-map .chart-box { padding-block: 0.5rem; }
/* Place card: what was done at the place that was clicked on the map. */
.detail { padding: 1rem 1.25rem 1.15rem; background: var(--paper); color: var(--text); border-top: 4px solid var(--pin); }
.detail[hidden] { display: none; }
.card-head { display: flex; align-items: flex-start; gap: 0.75rem; }
.card-title { flex: 1; margin: 0; color: var(--ink); font-size: 1.2rem; font-weight: 750; line-height: 1.25; }
.card-close { flex: none; width: 2.25rem; height: 2.25rem; margin: -0.35rem -0.5rem 0 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.card-close:hover { background: var(--wash); color: var(--ink); }
.card-where { margin: 0.15rem 0 0.6rem; color: var(--muted); font-size: 0.9rem; }
.card-group { padding-top: 0.6rem; border-top: 1px solid var(--rule); margin-top: 0.6rem; }
.card-group-title { margin: 0 0 0.3rem; color: var(--blue); font-size: 0.8rem; font-weight: 750; letter-spacing: 0.04em; text-transform: uppercase; }
.card-group ul { display: grid; gap: 0.4rem; margin: 0; padding: 0; list-style: none; font-size: 0.95rem; line-height: 1.45; }
.card-choices { display: grid; gap: 0.35rem; margin: 0; padding: 0; list-style: none; }
.card-choice { width: 100%; padding: 0.6rem 0.75rem; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper); color: var(--ink); font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.card-choice:hover { border-color: var(--blue); color: var(--blue); }
.card-back { margin: 0 0 0.5rem; padding: 0; border: 0; background: none; color: var(--blue); font: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer; }
.card-more { display: inline-block; margin-top: 0.8rem; font-size: 0.9rem; font-weight: 600; }

.atlas-list { padding: 0.5rem var(--gap) var(--section); }
.group { margin-top: 2.25rem; }
.group[hidden] { display: none; }
.group h2 {
  display: flex; align-items: center; gap: 0.6rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--ink);
  font-family: var(--display); font-size: 1.9rem; font-weight: 700; line-height: 1; text-transform: uppercase; color: var(--ink);
}
.group h2 .n { margin-left: auto; font-size: 1.2rem; color: var(--muted); font-variant-numeric: tabular-nums; }

.place { padding: 0.9rem 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 1rem; }
.place[hidden] { display: none; }
.place h3, .place h4 { margin: 0; font-size: 1.1rem; line-height: 1.25; color: var(--ink); }
.place-where { margin: 0.15rem 0 0.4rem; font-family: var(--display); font-size: 1rem; font-weight: 600; line-height: 1.2; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.place ul { list-style: none; }
.place li { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); align-items: start; padding: 0.15rem 0; }
.place li .sym { margin-top: 0.3rem; }
.place.is-active, .place:target { background: var(--wash); box-shadow: -0.75rem 0 0 var(--wash), 0.75rem 0 0 var(--wash); }
.show {
  margin-top: 0.35rem; padding: 0.2rem 0; border: 0; background: none; color: var(--blue);
  font: inherit; font-size: 0.875rem; font-weight: 650; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer;
}
.show[hidden] { display: none; }

.cohort { margin-top: 2rem; }
.cohort > h3 { font-size: 1.1rem; color: var(--ink); }
.cohort-note { max-width: 60ch; margin: 0.3rem 0 0.5rem; }
.cohort-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0 2.5rem; border-top: 1px solid var(--rule); }
.cohort .place { padding: 0.65rem 0; }
.cohort .place-where { margin-bottom: 0; }
.cohort .place ul { display: none; }
.cohort .place h4 { font-size: 1rem; }

.offmap { margin-top: 3rem; }
.offmap h2 { margin-bottom: 0.75rem; font-size: 1.25rem; color: var(--ink); }
.offmap ul { list-style: none; }
.offmap li { max-width: 65ch; padding: 0.75rem 0; border-top: 1px solid var(--rule); }
.offmap .todo { display: block; margin-top: 0.5rem; }
.map-notes { max-width: 65ch; margin: 2rem 0 0; color: var(--muted); font-size: 0.875rem; }

@media (min-width: 60rem) {
  .atlas { grid-template-columns: minmax(0, 54%) minmax(0, 1fr); grid-template-areas: "map head" "map list"; }
  .atlas-head { grid-area: head; padding: 3.25rem var(--gap) 1.25rem 3.5rem; }
  .atlas-map { grid-area: map; position: sticky; top: 0; align-self: start; display: grid; align-items: start; height: 100vh; }
  .atlas-map .chart-box { max-width: none; margin: 0; padding: 0; }
  .atlas-map .chart { height: max(540px, calc(100vh - 6rem)); }
  .show, .show[hidden] { display: none; }
  .atlas-map { position: sticky; }
  .atlas-map .detail {
    position: absolute; left: 1rem; top: 1rem; width: min(22rem, calc(100% - 2rem)); max-height: calc(100vh - 9rem);
    overflow-y: auto; border-radius: 10px; box-shadow: 0 12px 32px rgb(0 20 50 / 0.35), 0 2px 6px rgb(0 20 50 / 0.2);
  }
  .atlas-list { grid-area: list; padding: 0 var(--gap) var(--section) 3.5rem; }
}

/* ---------- Text pages (About) ---------- */

.page-head-grid { display: grid; gap: 1.75rem 3rem; max-width: 88rem; margin-inline: auto; padding: 2.5rem var(--gap); }
.page-head h1 { font-family: var(--serif); font-size: clamp(3rem, 2rem + 5vw, 5.2rem); font-weight: 600; line-height: 1.12; text-transform: none; letter-spacing: -0.01em; }
.page-head .lead { max-width: 40rem; }
.locator { display: flex; align-items: center; gap: 1.1rem; margin: 0; }
.locator a { flex: none; border-radius: 3px; }
.locator svg { display: block; width: 4.75rem; }
.locator-ring { fill: none; stroke: var(--sea-deep); stroke-width: 5; opacity: 0.7; }
.locator figcaption { max-width: 15rem; color: #dbe7f6; font-size: 0.95rem; line-height: 1.4; }
.locator strong { display: block; color: #fff; font-family: var(--display); font-size: 1.2rem; letter-spacing: 0.06em; text-transform: uppercase; }

.doc { display: grid; gap: 0 4.5rem; padding-block: var(--section); }
.doc-nav { display: none; }
.doc-nav ul { list-style: none; border-top: 2px solid var(--ink); }
.doc-nav a { display: block; padding: 0.6rem 0; border-bottom: 1px solid var(--rule); color: var(--text); font-size: 0.95rem; font-weight: 600; text-decoration: none; }
.doc-nav a:hover { color: var(--blue); }

.doc section { margin-bottom: 3.5rem; padding-top: 1.25rem; border-top: 2px solid var(--ink); scroll-margin-top: 1rem; }
.doc section:last-child { margin-bottom: 0; }
.doc h2 { margin-bottom: 1rem; font-family: var(--serif); font-size: clamp(1.9rem, 1.5rem + 1.5vw, 2.5rem); font-weight: 600; line-height: 1.12; text-transform: none; letter-spacing: -0.01em; color: var(--ink); }
.doc p, .doc li { max-width: 65ch; }
.doc .todo { margin-top: 0.5rem; }
.statement { color: var(--blue); font-family: var(--serif); font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); font-weight: 600; line-height: 1.12; text-transform: none; letter-spacing: -0.01em; }
.parts { margin: 0 0 1em; padding-left: 1.4rem; }
.parts li { padding: 0.15rem 0 0.15rem 0.3rem; }
.parts li::marker { color: var(--blue); font-weight: 700; }

.timeline > div { display: grid; gap: 0.1rem 2rem; padding: 0.9rem 0; border-top: 1px solid var(--rule); }
.timeline > div:first-child { padding-top: 0; border-top: 0; }
.timeline dt { color: var(--blue); font-family: var(--display); font-size: 1.3rem; font-weight: 700; line-height: 1.25; letter-spacing: 0.03em; text-transform: uppercase; }
.timeline dd { max-width: 60ch; }
.timeline + .todo { margin-top: 1rem; }

.records { margin: 1.25rem 0 1.5rem; border-bottom: 1px solid var(--rule); }
.records article { padding: 1rem 0; border-top: 1px solid var(--rule); }
.records h3 { margin-bottom: 0.5rem; font-size: 1.1rem; color: var(--ink); }
.records dl { display: grid; gap: 0.5rem 2rem; }
.records dt { color: var(--muted); font-size: 0.78rem; }
.records dd { font-size: 0.95rem; line-height: 1.45; }
.records .ref { font-weight: 650; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

.people { margin-bottom: 1.25rem; border-bottom: 1px solid var(--rule); }
.people > div { padding: 0.75rem 0; border-top: 1px solid var(--rule); }
.people dt { font-size: 1.1rem; font-weight: 700; color: var(--ink); }
.people dd { color: var(--muted); }

.hq { max-width: 40rem; margin: 1.5rem 0; padding: 1.1rem 1.4rem 1.2rem; background: var(--wash); }
.hq h3 { margin-bottom: 0.4rem; font-family: var(--display); font-size: 1.3rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--green-deep); }
.hq p { margin: 0.6rem 0 0; }

@media (min-width: 40rem) {
  .timeline > div { grid-template-columns: 12.5rem minmax(0, 1fr); }
  .records dl { grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); }
}

@media (min-width: 60rem) {
  .page-head-grid { grid-template-columns: minmax(0, 1fr) auto; align-items: end; padding-block: 3.5rem; }
  .locator svg { width: 7.5rem; }
  .doc { grid-template-columns: 13rem minmax(0, 1fr); }
  .doc-nav { display: block; position: sticky; top: 1.5rem; align-self: start; }
}

/* ---------- "Our work" page ---------- */

.work-key ul { list-style: none; border-top: 1px solid rgba(255, 255, 255, 0.4); }
.work-key a { display: grid; grid-template-columns: 1.7rem 1fr; align-items: center; padding: 0.55rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.2); font-weight: 600; text-decoration: none; }
.work-key a:hover { text-decoration: underline; }

.programme { padding-block: clamp(2.5rem, 6vw, 4.5rem); scroll-margin-top: 1rem; }
.programme:nth-of-type(even) { background: var(--wash); }
.programme-grid { display: grid; gap: 1.5rem 4rem; }
.programme-head h2 { display: flex; gap: 0.7rem; align-items: baseline; margin-bottom: 0.9rem; font-family: var(--serif); font-size: clamp(2rem, 1.5rem + 2vw, 2.9rem); font-weight: 600; line-height: 1.12; text-transform: none; letter-spacing: -0.01em; color: var(--ink); }
.programme-head h2 .sym { width: 1.15rem; height: 1.15rem; }
.programme-head p { max-width: 34rem; }
.programme-body h3 { padding-bottom: 0.5rem; border-bottom: 2px solid var(--ink); font-size: 0.95rem; color: var(--muted); }
.programme-body h3:not(:first-child) { margin-top: 2.25rem; }
.programme .results > div { padding: 0.85rem 0; border-bottom: 1px solid var(--rule); }
.programme .results dt { font-weight: 700; }
.programme .results dd { max-width: 60ch; color: #2b3848; }
.work-source { margin-top: 0; padding-block: 1rem 0; }

.how { padding-block: var(--section) 0; }
.how .routes li h3 { color: var(--blue); }
.since { padding-block: var(--section); }
.since-grid { display: grid; gap: 1.5rem 4rem; }
.area h3 a { text-decoration: none; }
.area h3 a:hover { text-decoration: underline; }

@media (min-width: 40rem) {
  .programme .results > div { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: 0 1.5rem; }
}

@media (min-width: 60rem) {
  .page-head .work-key { min-width: 22rem; }
  .programme-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .since-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
}

/* ---------- Partners page ---------- */

.pgroup { padding-block: clamp(2rem, 5vw, 3.25rem) 0; }
.pgroup-grid { display: grid; gap: 1rem 4rem; padding-top: 1.25rem; border-top: 2px solid var(--ink); }
.pgroup h2 { font-family: var(--serif); font-size: clamp(1.7rem, 1.4rem + 1.2vw, 2.2rem); font-weight: 600; line-height: 1.12; text-transform: none; letter-spacing: -0.01em; color: var(--ink); }
.pgroup p { max-width: 60ch; }
.partners { list-style: none; border-bottom: 1px solid var(--rule); }
.partner { display: grid; gap: 0.9rem 1.5rem; padding: 1.1rem 0; border-top: 1px solid var(--rule); }
.partner:first-child { border-top: 0; padding-top: 0; }
.pgroup p + .partners .partner:first-child { border-top: 1px solid var(--rule); padding-top: 1.1rem; }
.partner h3 { margin-bottom: 0.3rem; font-size: 1.2rem; color: var(--ink); }
.partner p { margin-bottom: 0.4rem; }
.logo-slot { display: grid; place-items: center; width: 9.5rem; height: 6.5rem; padding: 0.6rem; border: 1px solid var(--rule); background: var(--paper); overflow: hidden; }
.logo-slot img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.logo-empty { border-style: dashed; border-color: var(--note-line); background: var(--note-bg); color: var(--note-ink); font-size: 0.78rem; line-height: 1.3; text-align: center; }
.pgroup-extra { margin-top: 1.1rem; }
.pgroup .todo { margin-top: 0.75rem; }
.rule-list { max-width: 60ch; padding-left: 1.2rem; }
.rule-list li { padding: 0.2rem 0; }
.pjoin { padding-block: var(--section); }
.pjoin p { max-width: 60ch; margin-top: 1rem; }

@media (min-width: 40rem) {
  .partner { grid-template-columns: 9.5rem minmax(0, 1fr); align-items: start; }
  .partner > div:only-child { grid-column: 1 / -1; }
}
@media (min-width: 60rem) {
  .pgroup-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
}

/* ---------- Get involved and Give pages ---------- */

.pgroup .sub { margin: 1.75rem 0 0.5rem; font-size: 1.15rem; color: var(--ink); }
.pgroup .sub + .rule-list, .pgroup .rule-list + .todo { margin-top: 0.25rem; }
.actions-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin: 1.5rem 0 0; }
.pgroup .strong { font-weight: 700; color: var(--ink); }
.give-routes { padding-block: var(--section) clamp(1rem, 3vw, 2rem); }
.give-routes .routes h3 { color: var(--blue); }
.give-routes .routes p { margin-bottom: 0.5rem; }
.give-routes .todo { margin-top: 0.25rem; }
.page-end { height: var(--section); }

/* ---------- Contact, Legal notice and Privacy pages ---------- */

.contacts { padding-block: var(--section) clamp(1.5rem, 4vw, 2.5rem); }
.contacts .routes { margin-top: 0; }
.contacts h2 { margin-bottom: 0.75rem; font-family: var(--serif); font-size: 1.9rem; font-weight: 600; line-height: 1.12; text-transform: none; letter-spacing: -0.01em; color: var(--ink); }
.contacts address { margin-bottom: 0.9rem; }
.contacts p { margin-bottom: 0.9rem; overflow-wrap: anywhere; }
.topics .pgroup-grid { padding-top: 1.25rem; border-top: 2px solid var(--ink); }
.topics h2 { font-family: var(--serif); font-size: clamp(1.7rem, 1.4rem + 1.2vw, 2.2rem); font-weight: 600; line-height: 1.12; text-transform: none; letter-spacing: -0.01em; color: var(--ink); }
.topic-list { list-style: none; border-bottom: 1px solid var(--rule); }
.topic-list li { display: grid; gap: 0.2rem 2rem; padding: 0.85rem 0; border-top: 1px solid var(--rule); }
.topic-list li:first-child { padding-top: 0; border-top: 0; }

.updated { margin-bottom: 1.5rem; color: var(--muted); font-size: 0.9rem; }
.doc-todo { margin: 0 0 2rem; }
.doc .rule-list { margin-bottom: 1em; }
.identity { max-width: 44rem; margin: 1.25rem 0; border-bottom: 1px solid var(--rule); }
.identity > div { display: grid; gap: 0.1rem 1.5rem; padding: 0.7rem 0; border-top: 1px solid var(--rule); }
.identity dt { color: var(--muted); font-size: 0.85rem; }
.identity .ref { font-weight: 650; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.doc-address { margin: 0 0 1em; line-height: 1.6; }

@media (min-width: 40rem) {
  .topic-list li { grid-template-columns: 11rem minmax(0, 1fr); align-items: baseline; }
  .identity > div { grid-template-columns: 13rem minmax(0, 1fr); align-items: baseline; }
}

/* ---------- News and Reports pages ---------- */

.news { padding-block: var(--section) 0; }
.post-list { list-style: none; border-top: 2px solid var(--ink); }
.post-list li { display: grid; gap: 0.3rem 2rem; padding: 1.25rem 0; border-bottom: 1px solid var(--rule); }
.post-when, .post-date { font-family: var(--display); font-size: 1.25rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; }
.post-when { color: var(--blue); line-height: 1.3; }
.post-date { margin-bottom: 0.75rem; color: #b9d0ee; }
.post-list h2 { margin-bottom: 0.4rem; font-size: 1.3rem; }
.post-list h2 a { text-decoration: none; }
.post-list h2 a:hover { text-decoration: underline; }
.post-list p { max-width: 60ch; margin: 0; }
.news .empty { padding: 1.25rem 0; border-block: 1px solid var(--rule); }
.news .todo { margin-top: 1.5rem; }
.page-head .post-title { font-size: clamp(2.2rem, 1.6rem + 3vw, 3.8rem); line-height: 0.95; max-width: 22ch; }
.post-body { padding-block: var(--section); }
.prose { max-width: 65ch; font-size: 1.125rem; }
.post-body .todo { margin-bottom: 1.5rem; }
.post-back { margin: 2.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--rule); }

.report-list { list-style: none; border-bottom: 1px solid var(--rule); }
.report-list li { display: grid; gap: 0.3rem 2rem; padding: 1rem 0; border-top: 1px solid var(--rule); }
.report-list li:first-child { padding-top: 0; border-top: 0; }
.report-list h3 { font-size: 1.15rem; color: var(--ink); }
.report-list p { margin: 0.2rem 0 0; }

@media (min-width: 40rem) {
  .post-list li { grid-template-columns: 12.5rem minmax(0, 1fr); }
  .report-list li { grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; }
}

/* ---------- Pages being prepared ---------- */

.stub { padding-block: var(--section); }
.stub h1 { margin-bottom: 1.25rem; font-family: var(--serif); font-size: clamp(2.8rem, 2rem + 4vw, 4.6rem); font-weight: 600; line-height: 1.12; text-transform: none; letter-spacing: -0.01em; color: var(--ink); }
.stub .todo { margin-bottom: 1.5rem; }

/* ---------- Footer ---------- */

.site-footer { padding-block: 3rem 2rem; background: var(--sea-deep); color: #d7e1ee; font-size: 0.9375rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #cfe0f5; }
.site-footer h2 { margin: 1.25rem 0 0.25rem; color: #b9d0ee; font-family: var(--display); font-size: 1.1rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.site-footer p { margin-bottom: 0; }
.site-footer ul { list-style: none; }
.site-footer li { padding: 0.2rem 0; }
.footer-grid { display: grid; gap: 1.5rem 3rem; }
.footer-grid > :not(:first-child) h2:first-child { margin-top: 0; }
.footer-name { color: #fff; font-family: var(--serif); font-size: 1.6rem; font-weight: 600; line-height: 1.12; letter-spacing: 0.02em; }
.ids { font-variant-numeric: tabular-nums; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem;
  margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.2); color: #b9c8da;
}

@media (min-width: 48rem) {
  .footer-grid { grid-template-columns: 2fr 1.5fr 1fr; }
}

/* ---------- Language chooser at the site root ---------- */

.chooser { display: grid; min-height: 100vh; place-items: center; background: var(--wash); }
.chooser main { padding: 2rem var(--gap); text-align: center; }
.chooser img { width: 9rem; margin: 0 auto 1.5rem; display: block; }
.chooser h1 { margin-bottom: 1.5rem; color: var(--blue); font-size: 1.5rem; }
.chooser ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; list-style: none; }

/* ---------- Korean ----------
   Hangul is taller and wider than condensed Latin capitals and has no upper case,
   so titles get more line spacing and a smaller size, and words are never split. */

:lang(ko) { word-break: keep-all; overflow-wrap: break-word; }
html:lang(ko) :is(h1, h2, h3, .mission, .display, .statement, .page-head h1, .cartouche h2, .doc h2, .programme-head h2, .pgroup h2, .contacts h2, .topics h2, .stub h1) { font-family: var(--font); }
html:lang(ko) :is(h1, h2, h3, .mission, .statement, .footer-name, .post-when, .post-date, .timeline dt, .place-where, .legend h2) { line-height: 1.25; letter-spacing: -0.01em; }
html:lang(ko) .mission { font-size: clamp(2rem, 7.2vw, 3.5rem); font-weight: 800; }
html:lang(ko) .page-head h1 { font-size: clamp(2.3rem, 1.8rem + 3vw, 3.6rem); font-weight: 800; }
html:lang(ko) .page-head .post-title { font-size: clamp(1.9rem, 1.5rem + 2vw, 2.8rem); }
html:lang(ko) :is(.display, .programme-head h2, .stub h1) { font-size: clamp(1.9rem, 1.5rem + 2vw, 2.8rem); font-weight: 800; }
html:lang(ko) :is(.pgroup h2, .doc h2, .group h2, .contacts h2, .topics h2, .cartouche h2, .footer-name) { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem); font-weight: 800; }
html:lang(ko) .statement { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); }
html:lang(ko) :is(.legend h2, .site-footer h2, .leaders h3, .hq h3, .place-where, .post-when, .post-date, .timeline dt) { letter-spacing: 0; }

/* ---------- Atlas details: plotting the map, page turns ---------- */

/* The one authored moment: places are plotted onto the island one after another,
   each with a single ring, the way a surveyor marks a chart. Pins are visible by
   default; the animation only delays their arrival by at most one second. */
@keyframes plot { from { opacity: 0; } }
@keyframes ping {
  0% { opacity: 0.95; transform: scale(0.7); }
  100% { opacity: 0; transform: scale(2.8); }
}
.pin { animation: plot 360ms cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: min(calc(120ms + var(--i, 0) * 32ms), 1000ms); }
.pin .ping {
  fill: none; stroke: #fff; stroke-width: 1.4; opacity: 0; pointer-events: none;
  transform-box: fill-box; transform-origin: center;
  animation: ping 900ms cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: inherit;
}

/* Moving between pages: a short cross-fade instead of a blank flash; the header stays put.
   Browsers without view transitions simply change page as before. */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 200ms; animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .pin, .pin .ping { animation: none; }
  @view-transition { navigation: none; }
}

/* ---------- "By region" list on the map page ---------- */
.by-region { margin-top: var(--section); }
.by-region-intro { color: var(--muted); max-width: 42rem; }
.region { border-top: 1px solid var(--rule); }
.region:last-of-type { border-bottom: 1px solid var(--rule); }
.region summary { display: flex; align-items: center; gap: .6rem; padding: .85rem 0; cursor: pointer; min-height: 44px; }
.region summary::marker { color: var(--blue); }
.region-name { font-weight: 650; color: var(--ink); flex: 1; }
.region-syms { display: inline-flex; gap: .2rem; }
.region .n { color: var(--muted); font-size: .9rem; white-space: nowrap; }
.region ul { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .55rem; }
.region li { display: flex; gap: .5rem; align-items: flex-start; }
.region li .sym { flex: none; margin-top: .2rem; }

/* ---------- Photos and videos in stories ---------- */
.prose img, .post-hero img { width: 100%; height: auto; border-radius: 4px; background: var(--wash); }
.post-hero { margin: 0 0 1.5rem; }
.post-hero figcaption, .prose figcaption { font-size: .88rem; color: var(--muted); margin-top: .4rem; }
.video { margin: 1.5rem 0; }
.video .yt, .video iframe { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 4px; overflow: hidden; background: #000; }
.video .yt img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.video .yt-play { position: absolute; inset: 50% auto auto 50%; width: 68px; height: 48px; transform: translate(-50%, -50%); background: #c00; border-radius: 12px; }
.video .yt-play::after { content: ""; position: absolute; left: 27px; top: 14px; border-left: 18px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.video .yt-title { position: absolute; left: 0; right: 0; bottom: 0; padding: .6rem .8rem; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.75)); font-weight: 600; }
.video .yt:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: .75rem; margin: 1.5rem 0; padding: 0; list-style: none; }
.gallery figure { margin: 0; }
.gallery picture { display: contents; }
.gallery img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; background: var(--wash); }
.gallery figcaption { font-size: .85rem; color: var(--muted); margin-top: .35rem; }
.news-thumb img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; }
.chart.is-waiting .pin, .chart.is-waiting .pin .ping { animation-play-state: paused; }
.chart.is-plotted .pin, .chart.is-plotted .pin .ping { animation: none; }
@media print { .pin, .pin .ping { animation: none; } }

/* =====================================================================
   Photo-led redesign (Nov 2026): calmer type, real photos, clear sections.
   Photos come from src/_data/photos.yaml and only show with a usable
   people status; without a photo each block falls back to plain colour.
   ===================================================================== */
:root { --radius: 14px; --radius-sm: 8px; }

.btn { border-radius: 999px; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.75); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; color: #fff; }

.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 0.5rem 2rem; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.section-head .display { margin: 0; }
.section-head p { max-width: 38rem; margin: 0; color: var(--muted); font-size: 1.05rem; }
.muted { color: var(--muted); }

/* 1. Hero */
.hero2 { position: relative; isolation: isolate; overflow: hidden; background: var(--sea); color: #fff; }
.hero2-inner { position: relative; padding-block: clamp(3.5rem, 9vw, 7.5rem) clamp(3rem, 7vw, 5.5rem); }
.hero2 .mission { max-width: 15ch; text-wrap: balance; }
.hero2 .lead { max-width: 36rem; color: #e4edf8; }
.hero2-media { position: absolute; inset: 0; z-index: -2; }
.hero2.has-photo :is(.mission, .lead, p, a.more) { text-shadow: 0 1px 2px rgb(0 12 30 / 0.55), 0 0 18px rgb(0 12 30 / 0.45); }
.hero2-media img, .hero2-img { width: 100%; height: 100%; object-fit: cover; }
.hero2.has-photo { min-height: min(88vh, 46rem); display: grid; align-items: end; }
.hero2.has-photo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgb(0 25 60 / 0.05) 0%, rgb(0 25 60 / 0.35) 45%, rgb(0 22 52 / 0.85) 100%);
}
.credit { margin: 1.25rem 0 0; font-size: 0.8rem; color: #c9d8ec; }

/* 2. Trust line */
.trust { border-bottom: 1px solid var(--rule); background: var(--paper); }
.trust-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.75rem; padding-block: 1rem; font-size: 0.92rem; color: var(--muted); }
.trust-inner p { margin: 0; color: var(--ink); }
.trust-inner ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.trust-inner .more { margin-left: auto; }

/* 3. Programmes */
.programmes, .history, .stories, .support { padding-block: var(--section); }
.prog-grid { display: grid; gap: clamp(1.75rem, 3vw, 2.5rem); }
@media (min-width: 52rem) { .prog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.prog { display: flex; flex-direction: column; }
.prog-media { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; display: grid; place-items: center; background: var(--land); }
.prog-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.prog:hover .prog-media img { transform: scale(1.03); }
.prog-health { background: linear-gradient(135deg, #e7f3e4, #d3ead0); }
.prog-outreach { background: linear-gradient(135deg, #e3ecf8, #cfdff3); }
.prog-community { background: linear-gradient(135deg, #fbf0d5, #f6e2b0); }
.prog-mark .sym { width: 56px; height: 56px; opacity: 0.85; }
.prog-body { padding-top: 1.1rem; }
.prog-body h3 { margin: 0 0 0.5rem; font-family: var(--serif); font-size: clamp(1.35rem, 1.2rem + 0.5vw, 1.6rem); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
.prog-body h3 a { color: var(--ink); text-decoration: none; }
.prog-body h3 a:hover { color: var(--blue); text-decoration: underline; }
.prog-fact { font-size: 0.95rem; color: var(--muted); }
.prog-fact strong { color: var(--text); }
.prog-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 0.75rem; }
.source { margin-top: 2rem; font-size: 0.85rem; color: var(--muted); }

/* 4. Map band */
.mapband .pitch { padding-block: clamp(3rem, 6vw, 5rem) 1rem; }
.display.on-sea { color: #fff; }
.mapband .legend { margin: 1.5rem 0 0; max-width: 30rem; }
.legend-title { margin: 0 0 0.4rem; color: #b9d0ee; font-weight: 650; }

/* 5. History track */
.track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(15rem, 1fr); gap: 0; margin: 0; padding: 0 0 1rem; list-style: none; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; }
.track li { position: relative; padding: 1.75rem 1.5rem 0 0; border-top: 2px solid var(--rule); scroll-snap-align: start; }
.track li::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--green-deep); }
.track-when { margin: 0 0 0.4rem; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--blue); }
.track-what { margin: 0; color: var(--text); font-size: 0.97rem; line-height: 1.5; }

/* 6. Stories */
.stories { background: var(--wash); }
.story-grid { display: grid; gap: 1.75rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 52rem) { .story-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.story a { display: block; color: inherit; text-decoration: none; }
.story-media { aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, var(--sea), var(--sea-deep)); }
.story-media img { width: 100%; height: 100%; object-fit: cover; }
.story-date-big { color: #dbe7f6; font-family: var(--serif); font-size: 1.4rem; font-weight: 600; text-align: center; padding: 1rem; }
.story-when { margin: 1rem 0 0.3rem; font-size: 0.85rem; color: var(--muted); }
.story h3 { margin: 0 0 0.4rem; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; line-height: 1.25; color: var(--ink); }
.story a:hover h3 { color: var(--blue); text-decoration: underline; }
.story p:last-child { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* 7. Give · Pray · Join */
.support-grid { display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 52rem) { .support-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.support-card a { display: flex; flex-direction: column; height: 100%; padding: 1.5rem 1.5rem 1.6rem; border: 1px solid var(--rule); border-radius: var(--radius); color: inherit; text-decoration: none; background: var(--paper); transition: border-color 0.2s, box-shadow 0.2s; }
.support-card a:hover { border-color: var(--blue); box-shadow: 0 10px 28px rgb(0 40 90 / 0.12); }
.support-media { margin: -1.5rem -1.5rem 1.25rem; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.support-media img { width: 100%; height: 100%; object-fit: cover; }
.support-card h3 { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.5rem; font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--ink); }
.support-card p { margin: 0; color: var(--muted); }
.support-give a { background: var(--sea); border-color: var(--sea); }
.support-give h3, .support-give p { color: #fff; }
.support-give a:hover { border-color: var(--sea-deep); background: var(--sea-deep); }

/* Page heads with a photo */
.page-head.has-photo { position: relative; isolation: isolate; }
.page-head-media { position: absolute; inset: 0; z-index: -2; }
.page-head-media img { width: 100%; height: 100%; object-fit: cover; }
/* Banner photos stay visible, but the words always sit on a dark enough veil (≥ 4.5:1 for white text
   even over a white wall): a steady tint where text runs (left, and the locator on the right),
   lighter in between so the picture still shows, plus a soft shadow under each letter. */
.page-head.has-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgb(0 22 52 / 0.62); }
.page-head.has-photo :is(h1, .lead, p, dt, dd, a, span) { text-shadow: 0 1px 2px rgb(0 12 30 / 0.55), 0 0 18px rgb(0 12 30 / 0.45); }
@media (min-width: 48rem) {
  .page-head.has-photo::before {
    background:
      linear-gradient(90deg, rgb(0 22 52 / 0.84) 0%, rgb(0 22 52 / 0.7) 42%, rgb(0 22 52 / 0.28) 66%, rgb(0 22 52 / 0.62) 86%, rgb(0 22 52 / 0.7) 100%),
      linear-gradient(180deg, rgb(0 22 52 / 0) 55%, rgb(0 22 52 / 0.35) 100%);
  }
}

/* Pray page */
.pray { padding-block: 2rem var(--section); }
.pray-grid { display: grid; gap: 2.5rem; margin-top: 1rem; }
@media (min-width: 60rem) { .pray-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }
.pray-points ol { counter-reset: p; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.pray-points li { counter-increment: p; position: relative; padding: 1rem 0 1rem 3rem; border-top: 1px solid var(--rule); font-size: 1.08rem; line-height: 1.55; }
.pray-points li::before { content: counter(p); position: absolute; left: 0; top: 0.9rem; width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; background: var(--land); color: var(--green-deep); font-weight: 700; font-size: 0.95rem; }
.pray-box { padding: 1.5rem; border-radius: var(--radius); background: var(--wash); margin-bottom: 1.25rem; }
.pray-box h2 { margin: 0 0 0.5rem; font-family: var(--serif); font-size: 1.4rem; font-weight: 600; color: var(--ink); }
.pray-why { max-width: 46rem; margin-top: var(--section); }
.pray-why p { font-size: 1.1rem; line-height: 1.65; }
.pray-ways { margin-top: 2.5rem; }
.pray-ways h2 { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; }
.note { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--rule); max-width: 46rem; font-size: 0.88rem; color: var(--muted); }

@media (prefers-reduced-motion: reduce) { .prog:hover .prog-media img { transform: none; } }
.hero2 .btn:not(.btn-ghost) { background: #fff; border-color: #fff; color: var(--sea-deep); }
.hero2 .btn:not(.btn-ghost):hover { background: #dce8f7; border-color: #dce8f7; }
/* Without a photo, keep the hero compact so it doesn't leave a large empty field. */
.hero2:not(.has-photo) .hero2-inner { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem); }
.hero2:not(.has-photo) .mission span { display: inline; }
.hero2:not(.has-photo) .mission { max-width: 22ch; }
.trust-inner .more { white-space: nowrap; }

.btn-kakao { background: #fee500; border-color: #fee500; color: #191600; }
.btn-kakao:hover { background: #f5d900; border-color: #f5d900; color: #191600; }
.small { font-size: 0.88rem; }

/* 6b. In the field: a horizontal photo strip (scrolls sideways, no script) */
.field { padding-block: var(--section) calc(var(--section) * 0.6); }
.field .display { margin-bottom: 1.5rem; }
.field-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(80vw, 26rem); gap: 1rem;
  margin: 0; padding: 0 var(--gap) 1rem; list-style: none; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gap); scrollbar-width: thin;
}
@media (min-width: 88rem) { .field-strip { padding-inline: calc((100vw - 88rem) / 2 + var(--gap)); } }
.field-strip li { scroll-snap-align: start; }
.field-strip figure { margin: 0; }
.field-strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--wash); }
.field-strip figcaption { margin-top: 0.5rem; font-size: 0.88rem; line-height: 1.45; color: var(--muted); }
.field-strip:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }

/* Built photos come wrapped in <picture>; let the <img> fill its frame directly. */
:is(.hero2-media, .prog-media, .story-media, .support-media, .page-head-media, .field-strip figure) picture { display: contents; }
.hero2.has-photo > .wrap { width: 100%; }
.prog-media img[data-pos], .hero2-media img[data-pos] { object-position: var(--pos); }
/* Pin photos to their frames (a grid row would otherwise stretch to the photo's own height). */
:is(.prog-media, .story-media, .support-media) { position: relative; }
:is(.prog-media, .story-media, .support-media) img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Hero text stays readable over any photo: darken the reading side and the bottom. */
.hero2.has-photo::before {
  background:
    linear-gradient(90deg, rgb(0 22 52 / 0.82) 0%, rgb(0 22 52 / 0.55) 42%, rgb(0 22 52 / 0.08) 75%),
    linear-gradient(180deg, rgb(0 22 52 / 0) 55%, rgb(0 22 52 / 0.6) 100%);
}
.hero2.has-photo .mission, .hero2.has-photo .lead { text-shadow: 0 1px 18px rgb(0 15 40 / 0.45); }
@media (max-width: 47.99rem) {
  .hero2.has-photo::before { background: linear-gradient(180deg, rgb(0 22 52 / 0.35) 0%, rgb(0 22 52 / 0.7) 45%, rgb(0 22 52 / 0.9) 100%); }
}

/* Pray page: official mission and vision */
.pray-mission { display: grid; gap: 1.5rem 3rem; margin-top: var(--section); padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--radius); background: var(--sea); color: #fff; }
@media (min-width: 52rem) { .pray-mission { grid-template-columns: 1fr 1fr; } }
.pray-mission h2 { margin: 0 0 0.6rem; font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: #fff; }
html:lang(ko) .pray-mission h2 { font-family: var(--font); }
.pray-mission p { margin: 0; font-size: 1.08rem; line-height: 1.65; color: #e4edf8; }

/* Give page (giving routes, gift examples) */
.give-intro { max-width: 40rem; margin-top: 1rem; }
.give-ways { margin-top: 2rem; padding: 0; list-style: none; counter-reset: way; }
.give-ways > li { display: grid; gap: 0.5rem 2rem; padding: 1.5rem 0; border-top: 1px solid var(--rule); counter-increment: way; }
.give-ways > li:last-child { border-bottom: 1px solid var(--rule); }
.give-ways h3 { margin: 0; font-size: 1.375rem; color: var(--blue); }
.give-ways h3::before { content: counter(way) ". "; color: var(--muted); font-weight: 400; }
.give-ways h4 { margin: 0 0 0.25rem; font-size: 1.1rem; color: var(--ink); }
.give-way-where { margin: 0.25rem 0 0; color: var(--muted); }
.give-way-body p { max-width: 36rem; margin-bottom: 0.5rem; }
.give-way-body p:last-child { margin-bottom: 0; }
.give-option + .give-option { margin-top: 1.25rem; }
.give-notes { margin: 1.5rem 0 1rem; padding-left: 1.25rem; max-width: 40rem; }
.give-notes li { margin-bottom: 0.25rem; }
.gift-examples { margin: 1rem 0; padding: 0; list-style: none; }
.gift-examples li { padding: 0.75rem 0; border-top: 1px solid var(--rule); }
.gift-amount { font-weight: 700; color: var(--ink); }
.gift-note { color: var(--muted); }
@media (min-width: 48rem) {
  .give-ways > li { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
}

/* About page: official mission and vision */
.mission-official { margin: 1rem 0 1.5rem; padding: 1.25rem 1.5rem; border-radius: var(--radius-sm); background: var(--wash); }
.mission-official p { margin: 0 0 0.75rem; line-height: 1.65; }
.mission-official p:last-child { margin-bottom: 0; }

/* Our story page */
.story .story-intro { margin: 0 0 2.5rem; font-family: var(--serif); font-size: 1.2rem; line-height: 1.55; color: var(--ink); }
html:lang(ko) .story .story-intro { font-family: var(--font); font-size: 1.1rem; }
.story-chapter p:not(.story-when) { font-size: 1.08rem; line-height: 1.7; }
.story .story-when { margin: 0 0 0.25rem; color: var(--blue); font-family: var(--display); font-size: 1rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
html:lang(ko) .story .story-when { letter-spacing: 0; }
.story-nav-when { display: block; color: var(--muted); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.03em; }
.story-next .prog-links { margin-top: 0; }

.footer-legal { margin: 0.2rem 0 0; color: #b9d0ee; font-size: 0.85rem; letter-spacing: 0.04em; }

/* Story photos: a calm landscape frame, whatever the original shape (portrait aerials included). */
.post-hero img { aspect-ratio: 3 / 2; object-fit: cover; }
.post-hero picture { display: contents; }

/* ---------- Place view: "dropped at the location" ---------- */
.chart { transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1); transform-origin: 0 0; }
.chart.is-zoomed { transform: translate(var(--tx, 0), var(--ty, 0)) scale(var(--zs, 2.3)); }
.chart-box { overflow: hidden; }
.chart.is-zoomed .pin:not(.is-active) { opacity: 0.7; transition: opacity 0.4s; }
.chart.is-dragging { transition: none; }
/* Marks and names keep their size when the map is zoomed, so close places separate. */
.chart.is-zoomed .pin > * { transform: scale(calc(1 / var(--zs, 1))); }
.atlas-map .chart-box { position: relative; touch-action: pan-y; }
.atlas-map .chart-box.is-panning { cursor: grabbing; touch-action: none; }
.chart.is-zoomed { cursor: grab; }
.zoom-ctl { position: absolute; right: 1rem; top: 1rem; z-index: 5; display: flex; flex-direction: column; gap: 0.4rem; }
.zoom-ctl[hidden] { display: none; }
.zoom-ctl button { min-width: 2.75rem; height: 2.75rem; padding: 0 0.75rem; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper); color: var(--ink); font: inherit; font-size: 1.35rem; font-weight: 700; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgb(0 20 50 / 0.25); }
.zoom-ctl button:disabled { opacity: 0.45; cursor: default; }
.zoom-ctl .zoom-reset { font-size: 0.85rem; }
.zoom-ctl button[hidden] { display: none; }
.zoom-ctl button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

.detail.place-view { padding: 0 0 1.5rem; animation: pv-in 0.45s cubic-bezier(0.16, 1, 0.3, 1) both; }
.detail.place-view > :not(.pv-photo) { margin-inline: 1.25rem; }
.pv-back { display: inline-flex; align-items: center; gap: 0.3rem; margin: 0.9rem 1.25rem 0.6rem; padding: 0.45rem 0.85rem; border: 1px solid var(--rule); border-radius: 999px; background: var(--paper); color: var(--blue); font: inherit; font-size: 0.9rem; font-weight: 650; cursor: pointer; }
.pv-back:hover { border-color: var(--blue); }
.pv-photo { margin: 0 0 1rem; }
.pv-photo img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.pv-photo picture { display: contents; }
.pv-heading { margin: 1.4rem 0 0.5rem; padding-top: 0.9rem; border-top: 2px solid var(--ink); font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--ink); }
html:lang(ko) .pv-heading { font-family: var(--font); }
.place-view .card-group { border-top: 0; margin-top: 0.4rem; padding-top: 0; }
/* Key figures as small tiles: number on top, label under it, so rows never look misaligned. */
.pv-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; margin: 0.5rem 0 0; }
.pv-stats div { display: flex; flex-direction: column; gap: 0.3rem; padding: 0.75rem 0.85rem 0.85rem; border-radius: 8px; background: var(--wash); border-top: 3px solid var(--blue); }
.pv-stats div:only-child { grid-column: 1 / -1; }
.pv-stats dt { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; line-height: 1.05; color: var(--blue); overflow-wrap: anywhere; }
.pv-stats dd { margin: 0; font-size: 0.86rem; line-height: 1.4; color: var(--text); }
.pv-stats dd .todo-label { display: inline-block; margin-top: 0.3rem; }
.pv-needs, .pv-stories { margin: 0.3rem 0 0; padding-left: 1.1rem; display: grid; gap: 0.4rem; }
.pv-stories a { font-weight: 600; }
@keyframes pv-in { from { opacity: 0; transform: translateY(14px); } }

@media (min-width: 60rem) {
  .atlas-map .detail.place-view { top: 1rem; bottom: 1rem; max-height: none; width: min(27rem, calc(100% - 2rem)); }
  .atlas-map .detail.place-view.pv-right { left: auto; right: 1rem; }
}
@media (max-width: 59.99rem) {
  /* On a phone the place view becomes a full-screen page over the map. */
  .detail.place-view { position: fixed; inset: 0; z-index: 60; overflow-y: auto; overscroll-behavior: contain; border-top: 0; background: var(--paper); }
  html.pv-open, html.pv-open body { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .chart { transition: none; }
  .detail.place-view { animation: none; }
}

/* Place view and list extras: visible focus on the white panel; extras readable in the list too. */
.sea .detail :focus-visible, .detail :focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.place .place-extra { margin-top: 0.6rem; }
.place .place-extra .pv-photo { max-width: 22rem; margin: 0 0 0.6rem; }
.place .place-extra .pv-photo img { border-radius: var(--radius-sm); }
.place .place-extra .pv-stats { grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 0.5rem; }
.place .place-extra .pv-stats dt { font-size: 1.25rem; }
.place .place-extra .pv-stories { padding-left: 1.1rem; }

/* Thank-you page */
.thanks-text { max-width: 60ch; font-size: 1.1rem; line-height: 1.65; }
.thanks-names { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; margin: 0.5rem 0 0; padding: 0; list-style: none; font-weight: 600; color: var(--ink); }

/* Place view: what stands out, and a quote */
.pv-highlight { margin: 0.75rem 0 0; padding: 0.75rem 0.9rem; border-left: 4px solid var(--gold); background: var(--wash); font-family: var(--serif); font-size: 1.08rem; line-height: 1.5; color: var(--ink); }
html:lang(ko) .pv-highlight { font-family: var(--font); }
.pv-quote { margin: 1rem 0 0; padding: 0 0 0 1rem; border-left: 3px solid var(--blue); }
.pv-quote p { margin: 0; font-style: italic; font-size: 1rem; line-height: 1.55; }
.pv-quote footer { margin-top: 0.35rem; font-size: 0.85rem; color: var(--muted); }
.place .place-extra li { display: list-item; }

/* "Next chapter": a photo band at the end of each page that carries the story on */
.next-chapter a { position: relative; isolation: isolate; display: block; min-height: 15rem; overflow: hidden; color: #fff; text-decoration: none; background: var(--sea-deep); }
.nc-media { position: absolute; inset: 0; z-index: -2; }
.nc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
.next-chapter a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(0 22 52 / 0.86) 0%, rgb(0 22 52 / 0.66) 55%, rgb(0 22 52 / 0.35) 100%); }
.nc-text { display: grid; gap: 0.5rem; max-width: 88rem; margin-inline: auto; padding: 3rem var(--gap) 3.25rem; text-shadow: 0 1px 2px rgb(0 12 30 / 0.5); }
.nc-kicker { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.nc-title { font-family: var(--serif); font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); font-weight: 600; line-height: 1.05; }
html:lang(ko) .nc-title { font-family: var(--font); font-weight: 800; }
.nc-teaser { max-width: 46ch; font-size: 1.1rem; line-height: 1.5; }
.nc-go { font-size: 2rem; line-height: 1; transition: transform 0.3s ease-out; }
.next-chapter a:hover .nc-go, .next-chapter a:focus-visible .nc-go { transform: translateX(0.5rem); }
.next-chapter a:hover .nc-media img { transform: scale(1.03); }
.next-chapter a:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
@media (prefers-reduced-motion: reduce) { .nc-media img, .nc-go { transition: none; } }

/* Respond: after a story or inside a place card */
.respond { margin: 2.5rem 0 0; padding: 1.5rem 1.5rem 1.6rem; border-radius: 10px; background: var(--wash); border-left: 4px solid var(--gold); }
.respond-title { margin: 0 0 0.9rem; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--ink); }
html:lang(ko) .respond-title { font-family: var(--font); font-weight: 800; }
.respond-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin: 0; }
.place-view .respond { margin-top: 1.5rem; padding: 1rem 1.1rem; }
.place-view .respond-title { font-size: 1.1rem; }
.place .pv-respond { display: none; }
/* The respond box sits on a light panel even inside dark (.sea) sections: keep its links dark blue. */
.respond a.more, .sea .respond a.more { color: var(--blue); text-decoration-color: currentColor; }
.respond a.more:hover, .sea .respond a.more:hover { color: var(--ink); }

/* The year ahead */
.year-h2 { margin: 0 0 1.25rem; font-family: var(--serif); font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem); font-weight: 600; line-height: 1.1; color: var(--ink); }
html:lang(ko) .year-h2 { font-family: var(--font); font-weight: 800; }
.year-priorities { padding-block: var(--section) 2rem; }
.pri-grid { display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.pri-grid li { padding: 1.5rem; border-top: 4px solid var(--pin); background: var(--wash); border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
.pri-n { display: block; font-family: var(--serif); font-size: 3rem; font-weight: 600; line-height: 1; color: var(--blue); }
.pri-grid h3 { margin: 0.5rem 0 0.4rem; font-size: 1.15rem; color: var(--ink); }
.pri-grid p { margin: 0; }
.year-progress { padding-block: 3rem; background: var(--sea); color: #fff; }
.year-progress .year-h2 { color: #fff; }
.prog-grid { display: grid; gap: 1.25rem; }
.prog-card { padding: 1.4rem 1.5rem; border-radius: var(--radius-sm); background: rgb(255 255 255 / 0.08); border: 1px solid rgb(255 255 255 / 0.18); }
.prog-card h3 { margin: 0 0 0.5rem; font-size: 1.15rem; color: var(--gold); }
.prog-card p { margin: 0; color: #e4edf8; line-height: 1.55; }
.bar-label { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1rem; font-size: 0.9rem; }
.bar { height: 0.7rem; margin-top: 0.4rem; border-radius: 999px; background: rgb(255 255 255 / 0.2); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: inherit; background: var(--pin); }
.year-plans { padding-block: var(--section) 2rem; }
.year-note { margin: -0.5rem 0 1.5rem; color: var(--muted); }
.timeline { margin: 0; padding: 0; list-style: none; border-left: 3px solid var(--rule); }
.timeline li { position: relative; display: grid; gap: 0.25rem 1.5rem; padding: 0 0 1.75rem 1.5rem; }
.timeline li::before { content: ""; position: absolute; left: -0.6rem; top: 0.3rem; width: 0.9rem; height: 0.9rem; border-radius: 50%; background: var(--paper); border: 3px solid var(--blue); }
.tl-when { margin: 0; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue); }
.tl-body h3 { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.3rem; font-size: 1.1rem; color: var(--ink); }
.tl-body p { margin: 0; max-width: 62ch; }
.year-asks { padding-block: 2rem var(--section); }
.ask-grid { display: grid; gap: 1.25rem; }
.ask-card { padding: 1.6rem; border-radius: var(--radius-sm); background: var(--wash); }
.ask-pray { border-left: 4px solid var(--gold); }
@media (min-width: 48rem) {
  .pri-grid { grid-template-columns: repeat(3, 1fr); }
  .prog-grid { grid-template-columns: repeat(2, 1fr); }
  .prog-card:first-child { grid-column: 1 / -1; }
  .timeline li { grid-template-columns: 11rem 1fr; }
  .ask-grid { grid-template-columns: 1fr 1fr; }
}

/* Place view: small extra photos under the main one */
.pv-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem; margin: -0.6rem 0 1rem; padding: 0; list-style: none; }
.pv-gallery img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.pv-gallery picture { display: contents; }
.place .pv-gallery { display: none; }

/* Get involved: travel guide figure and licence document list */
.guide-figure { margin: 1rem 0 0.5rem; max-width: 36rem; }
.guide-figure img { display: block; width: 100%; height: auto; border-radius: var(--radius-sm); border: 1px solid var(--line, #d9dde3); }
.guide-figure figcaption { margin-top: 0.4rem; font-size: 0.88rem; color: var(--muted, #5b6472); }
.doc-list { margin: 0.5rem 0 0; padding-left: 1.4rem; display: grid; gap: 0.3rem; }

/* ---------- Story page, blog style ----------
   One calm reading column; photos sit beside the text they belong to and step out wider than the column. */
.post-dek { max-width: 40rem; margin: 1rem 0 0; font-family: var(--serif); font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem); line-height: 1.5; color: #dbe7f7; }
html:lang(ko) .post-dek { font-family: var(--font); line-height: 1.65; }
.post-article { --col: 42rem; --wide: 60rem; }
.post-article > * { max-width: var(--col); margin-inline: auto; }
.post-article > .post-hero { max-width: var(--wide); margin-top: calc(var(--section) * -0.35); }
.post-article .post-hero img { border-radius: 6px; box-shadow: 0 10px 30px rgb(6 31 92 / 0.18); }
.post-article .prose { max-width: var(--col); font-size: 1.14rem; line-height: 1.75; }
html:lang(ko) .post-article .prose { font-size: 1.08rem; line-height: 1.85; word-break: keep-all; }
.post-article .prose > p:first-of-type { font-size: 1.24rem; line-height: 1.65; color: var(--ink); }
.post-article .prose h2 { margin: 2.8rem 0 0.8rem; padding-top: 1rem; border-top: 2px solid var(--ink); font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem); line-height: 1.2; }
.post-article .prose ul { padding-left: 1.2rem; }
.post-article .prose li { margin-bottom: 0.6rem; }
.post-fig { margin: 2rem 0; }
.post-fig img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; background: var(--wash); }
.post-fig picture { display: contents; }
.post-fig figcaption { margin-top: 0.5rem; font-size: 0.88rem; line-height: 1.45; color: var(--muted); }
.post-fig-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin: 2rem 0; }
.post-fig-row .post-fig { margin: 0; }
.post-figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: 0.75rem; margin: 2rem 0; padding: 0; }
.post-figures div { padding: 1rem 1rem 1.1rem; border-radius: 8px; background: var(--wash); border-top: 3px solid var(--blue); }
.post-figures dt { font-family: var(--serif); font-size: 2rem; font-weight: 600; line-height: 1; color: var(--blue); }
.post-figures dd { margin: 0.45rem 0 0; font-size: 0.86rem; line-height: 1.4; color: var(--text); }
@media (min-width: 60rem) {
  .post-article .prose .post-fig-wide, .post-article .prose .post-fig-row { margin-inline: -6rem; }
}
@media (max-width: 36rem) {
  .post-fig-row { grid-template-columns: 1fr; }
}

/* Home: key numbers under the hero */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.impact { padding: 2rem 0 0.5rem; }
.impact .source { margin: 0; font-size: 0.8rem; color: var(--muted, #5b6472); }

/* Give: "Where are you giving from?" chooser */
.give-picker { margin: 1.25rem 0 2rem; }
.give-picker p { margin: 0 0 0.5rem; font-weight: 600; }
.give-picker ul { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.give-ways > li { scroll-margin-top: 5rem; }
.give-picker .pick { display: inline-block; padding: 0.55rem 1rem; border: 1.5px solid var(--blue); border-radius: 999px; color: var(--blue); font-weight: 600; text-decoration: none; }
.give-picker .pick:hover, .give-picker .pick:focus-visible { background: var(--blue); color: #fff; }

/* Timeline grouped by year (Our work "Since 2005", About history) */
.since-head p { max-width: 32ch; color: var(--muted); }
@media (min-width: 60rem) { .since-head { position: sticky; top: 6rem; align-self: start; } }
.years { margin: 0; padding: 0; list-style: none; }
.year { display: grid; gap: 0.5rem 2rem; padding: 1.4rem 0; border-top: 1px solid var(--rule); }
.year:first-child { padding-top: 0; border-top: 0; }
.year-label { margin: 0; font-family: var(--serif); font-size: 2rem; font-weight: 600; line-height: 1; color: var(--blue); font-variant-numeric: lining-nums tabular-nums; }
.year-range .year-label { font-size: 1.35rem; line-height: 1.2; }
.year ul { margin: 0; padding: 0 0 0 1.25rem; list-style: none; border-left: 2px solid var(--rule); }
.year ul li { position: relative; display: grid; gap: 0.1rem; padding: 0 0 0.9rem; line-height: 1.5; }
.year ul li:last-child { padding-bottom: 0; }
.year ul li::before { content: ""; position: absolute; left: calc(-1.25rem - 6px); top: 0.45rem; width: 10px; height: 10px; border-radius: 50%; background: var(--paper); border: 2px solid var(--green-deep); }
.year-month { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--green-deep); }
@media (min-width: 40rem) { .year { grid-template-columns: 9rem minmax(0, 1fr); } }

.impact-title { margin: 0 0 1.25rem; font-family: var(--serif); font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); font-weight: 600; line-height: 1.15; color: var(--ink); }
.impact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; margin: 0 0 0.9rem; padding: 0; list-style: none; }
.impact-cards li { padding: 1.4rem 1.4rem 1.5rem; border-radius: 10px; background: var(--wash); border-top: 4px solid var(--blue); }
.impact-cards p { margin: 0; }
.impact-n { font-family: var(--serif); font-size: clamp(2.6rem, 2.2rem + 1.5vw, 3.4rem); font-weight: 600; line-height: 1; color: var(--blue); font-variant-numeric: lining-nums; }
.impact-what { margin-top: 0.5rem !important; font-size: 1.15rem; font-weight: 700; line-height: 1.3; color: var(--ink); }
.impact-detail { margin-top: 0.45rem !important; font-size: 0.95rem; line-height: 1.5; color: var(--muted); }
@media (max-width: 39.99rem) {
  .impact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
  .impact-cards li { padding: 1rem 0.9rem 1.1rem; }
  .impact-what { font-size: 1rem; }
  .impact-detail { font-size: 0.85rem; }
}

/* Give: where gifts are needed most */
.needs-list { margin: 1rem 0 1.25rem; padding: 0; list-style: none; counter-reset: need; display: grid; gap: 1rem; }
.needs-list li { counter-increment: need; position: relative; padding: 1rem 1.1rem 1.1rem 3.4rem; border-radius: 8px; background: var(--wash); }
.needs-list li::before { content: counter(need); position: absolute; left: 1.1rem; top: 0.95rem; font-family: var(--serif); font-size: 1.6rem; font-weight: 600; line-height: 1; color: var(--blue); }
.needs-list h3 { margin: 0 0 0.3rem; font-size: 1.05rem; color: var(--ink); }
.needs-list p { margin: 0; color: var(--text); }

.give-online { margin: 0.75rem 0 0.5rem; }

.give-partners { display: grid; gap: 0.75rem; max-width: 46rem; margin: 1.25rem 0 0.5rem; }
.give-partners div { padding: 0.9rem 1.1rem; border-radius: 8px; background: var(--wash); border-left: 4px solid var(--blue); }
.give-partners dt { font-weight: 700; color: var(--ink); }
.give-partners dd { margin: 0.2rem 0 0; }
