/*
Theme Name: Poonam & Kajormal Foundation
Theme URI: https://poonamandkajormalfoundation.com
Description: Custom theme for the Poonam & Kajormal Foundation. Full-screen looping video homepage with centred logo, a rule and three tabs: Our Story, Contribution, Ideas. White pages with blue ribbons at the foot.
Version: 1.70.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: pkf
*/

/* Layout: white site. Homepage = full-bleed video with a transparent masthead that turns white on hover;
   inner pages = white masthead. Every page ends in two ribbons taken from the logo: baby blue, then deep sea blue. */
:root {
  --paper: #ffffff;
  --ink: #163d57;          /* deep sea blue of the logo lettering: text, bottom ribbon */
  --ink-soft: #4b6577;
  --sky: #a9d9ef;          /* baby blue of the logo: upper ribbon */
  --sea: #2f86b5;          /* water blue: links, active tab */
  --slate: #aebbc7;        /* homepage masthead on hover */
  --line: rgba(22,61,87,.14);
  --veil: rgba(10,30,45,.45);
  --font-display: "Cormorant", "Iowan Old Style", Georgia, serif;
  --font-ui: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--ink); font-family: var(--font-ui); font-size: 16px; line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--sea); outline-offset: 4px; }
[hidden] { display: none !important; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Homepage video ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; background: var(--ink); }
.hero-video, .ambient { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Anchor to the top so heads stay in frame; wide screens crop from the bottom instead. */
.hero-video { z-index: -2; object-position: 50% 0%; }
.ambient { z-index: -3;
  background:
    radial-gradient(60% 50% at 30% 40%, rgba(169,217,239,.55), transparent 70%),
    radial-gradient(50% 60% at 75% 65%, rgba(47,134,181,.6), transparent 70%),
    #163d57;
  background-size: 160% 160%;
  animation: pkf-drift 24s ease-in-out infinite alternate;
}
@keyframes pkf-drift {
  0% { background-position: 0% 0%, 100% 100%; transform: scale(1.05); }
  100% { background-position: 100% 60%, 0% 30%; transform: scale(1.15); }
}

/* ---------- Masthead ---------- */
.masthead { background: var(--paper); color: var(--ink); padding-top: calc(env(safe-area-inset-top, 0px) + 8px);
  border-bottom: 1px solid var(--line); transition: background-color .3s ease, color .3s ease;
  --edge-l: max(16px, 2vw, env(safe-area-inset-left, 0px)); --edge-r: max(16px, 2vw, env(safe-area-inset-right, 0px)); }
.admin-bar .masthead { padding-top: 8px; }
/* Menu and Search sit at the screen edges; the logo stays centred. */
.bar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding-left: var(--edge-l); padding-right: var(--edge-r); padding-block: 0 8px;
}
.bar-btn { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; padding: 8px 4px; justify-self: start; }
.bar-btn svg { width: 20px; height: 20px; }
.bar .search-btn { justify-self: end; }
/* Line Menu and Search up with the "P" of Poonam and the "N" of Foundation at the ends of the logo's arc. */
.bar > .bar-btn { transform: translateY(17px); }
.logo { display: flex; flex-direction: column; align-items: center; text-align: center; }
.logo .custom-logo { max-height: 96px; width: auto; }
.logo { margin-top: 16px; }
.logo-mark { display: block; height: 106px; width: auto; }

.rule { height: 1px; margin-left: var(--edge-l); margin-right: var(--edge-r); background: currentColor; opacity: .35; }

.tabs { display: flex; justify-content: center; gap: clamp(20px, 7vw, 96px); list-style: none; margin: 0;
  padding-left: var(--gutter-l); padding-right: var(--gutter-r); padding-block: 0; }
/* The three tabs only open their dropdowns; the arrow beside each flips up while it is open. */
.tabs .tab { display: inline-flex; align-items: center; gap: 7px; padding: 11px 0; margin: 0; background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0;
  color: inherit; font: inherit; font-size: 13px; font-weight: 600; font-stretch: 85%; letter-spacing: .24em; text-transform: uppercase; cursor: pointer; opacity: .78; transition: opacity .2s, border-color .2s; }
.tabs .tab svg { width: 12px; height: 12px; flex: none; stroke-width: 2.4; transition: transform .2s; }
.tabs .tab:hover, .tabs .tab.is-current, .tabs .tab[aria-expanded="true"] { opacity: 1; border-color: var(--sea); }
.tabs .tab[aria-expanded="true"] svg { transform: rotate(180deg); }
.tabs .tab:focus-visible { outline: 2px solid var(--sea); outline-offset: 4px; }

/* Dropdown panel under a tab, full width below the masthead; opens on hover or keyboard focus on wide screens. */
.masthead { position: relative; z-index: 20; }
.mega { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--sky); color: var(--ink);
  padding: 44px var(--edge-r) 52px var(--edge-l); box-shadow: 0 16px 32px rgba(10,30,45,.18); text-align: left; }
/* Dropdowns open only when their tab is clicked (site.js adds .is-open), never on hover. */
@media (min-width: 900px) { .tabs > li.is-open > .mega { display: block; } }
/* Columns take their content's width and share the leftover space equally between them. */
.mega-inner { max-width: 1440px; margin-inline: auto; display: flex; min-height: 240px; gap: clamp(32px, calc(19.7vw - 177px), 107px); }
.mega-intro { flex: none; }
@media (min-width: 1080px) { .mega-col { flex: none; } }
/* Featured initiatives sits closer to the long goal lines, halving that gap on wide screens. */
/* Our Story's shorter columns spread wider after the first, which stays lined up with Our goals. */
.mega-our-story .mega-col + .mega-col { margin-left: 6.5vw; }
.mega-impact .mega-col:nth-child(3) { margin-left: clamp(-53px, calc(171px - 15.6vw), 0px); }
.mega h2 { font-family: var(--font-display); font-size: clamp(28px, 2.5vw, 36px); font-weight: 600; line-height: 1.1; margin: 0 0 14px; }
.mega p { font-size: 15px; line-height: 1.6; margin: 0 0 18px; max-width: 34ch; }
.mega-more { font-size: 14px; font-weight: 700; letter-spacing: .04em; border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.mega h3 { font-size: clamp(11px, 1.1vw, 13px); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin: 6px 0 16px; white-space: nowrap; }
.mega ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.mega ul a { font-family: var(--font-display); font-size: clamp(17px, 1.46vw, 21px); line-height: 1.3; }
.mega a:hover { color: var(--sea); }
/* Ideas: feed summaries are full sentences, so the columns get a fixed width and smaller type. */
.mega-ideas .mega-col { flex: 0 1 300px; }
.mega-ideas ul a { font-size: clamp(16px, 1.2vw, 18px); }
/* Room for four headlines a column: each is cut to two lines. */
.mega-ideas ul a, .drawer-sub ul a[target] { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }

/* Homepage: the video fills the screen and the masthead floats over it with white lettering (the logo keeps its colours).
   The masthead turns white while the mouse is over it, or for 5 seconds after a tap on it (.is-solid, set in site.js). */
.hero::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 220px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(8,20,30,.55), rgba(8,20,30,0)); }
.hero .masthead { position: absolute; inset: 0 0 auto 0; z-index: 5; background: transparent; color: var(--paper); border-bottom-color: transparent; }
.hero .masthead .bar-btn, .hero .masthead .tabs .tab { text-shadow: 0 1px 8px rgba(0,0,0,.5); opacity: 1; }
.hero .masthead .rule { opacity: .9; }
.hero .masthead .tabs .tab:hover { border-color: var(--paper); }
.hero .masthead.is-solid { background: var(--paper); color: var(--ink); }
.hero .masthead.is-solid .rule { opacity: .35; }
.hero .masthead.is-solid .bar-btn, .hero .masthead.is-solid .tabs .tab { text-shadow: none; }
/* With a mouse, the masthead turns white only while a dropdown is open (clicking Our Story, Impact or Ideas), and
   goes back to see-through when it closes. */
@media (hover: hover) {
  .hero .masthead:has(.tabs > li.is-open) { background: var(--paper); color: var(--ink); }
  .hero .masthead:has(.tabs > li.is-open) .rule { opacity: .35; }
  .hero .masthead:has(.tabs > li.is-open) :is(.bar-btn, .tabs .tab) { text-shadow: none; }
  .hero .masthead:has(.tabs > li.is-open) .tabs .tab:hover { border-color: var(--ink); }
}

/* "Join Us" pill floating in the bottom-left corner of the video. */
.join-btn { position: absolute; z-index: 6;
  left: max(16px, 2vw, env(safe-area-inset-left, 0px)); bottom: calc(env(safe-area-inset-bottom, 0px) + 56px);
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 999px;
  background: var(--sea); color: var(--paper); font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  box-shadow: 0 6px 20px rgba(0,0,0,.3); transition: background-color .2s ease; }
.join-btn:hover { background: var(--ink); }

/* Homepage intro: the photo of Shri Kajormal and Smt. Poonam in the boat starts as a rounded card and grows to fill
   the screen as the visitor scrolls; once it is full, the picture dims a little and the intro text lights up over it.
   site.js sets --e (0 card to 1 full screen) and the word opacities; without script it simply shows full screen with the text. */
.home-intro { --e: 1; --shade: .5; position: relative; height: 320svh; background: var(--paper); }
.home-reveal-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.home-reveal-frame { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: calc(78% + 22% * var(--e)); height: calc(58% + 42% * var(--e)); border-radius: calc(26px * (1 - var(--e))); overflow: hidden; }
.home-reveal-frame img { position: relative; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.home-reveal-frame::after { content: ""; position: absolute; inset: 0; background: rgba(8, 20, 30, var(--shade)); }
/* Computers: centred on the page, from Shri Kajormal's ear down to Smt. Poonam's neck (top and width set by site.js). */
.home-intro-inner { position: absolute; z-index: 1; left: 50%; top: 23%; translate: -50% 0; width: min(32vw, 520px); margin: 0; text-align: center; }
.home-intro-text { font-family: var(--font-display); font-weight: 500; color: var(--paper); font-size: clamp(22px, 2.8vw, 38px);
  line-height: 1.2; margin: 0; text-shadow: 0 1px 14px rgba(0,0,0,.35); }
/* No joined letters (such as "Th"): spacing splits them apart, which would throw the measured widths out. */
.home-intro-text .ln { display: block; white-space: nowrap; font-variant-ligatures: none; font-feature-settings: "liga" 0, "dlig" 0; }
.home-intro-fit .home-intro-text .ln { text-align: left; }
/* A blank line between the two paragraphs, and another before the link. */
.home-intro-text-2 { margin-top: 1.2em; margin-bottom: 1.2em; }
.home-intro-text .w { transition: opacity .2s linear; }
.home-intro-more { display: inline-block; margin-top: 40px; font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--paper);
  border-bottom: 2px solid currentColor; padding-bottom: 4px; transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.home-intro-more:hover { color: var(--sky); }
.home-intro.is-waiting .home-intro-more { opacity: 0; transform: translateY(16px); pointer-events: none; }
.home-reveal-frame picture { display: contents; }
/* Phones: an upright photo fills the screen, framed so both faces (in its upper part) stay in view. The text sits over
   the lower half, where the picture darkens gently towards the bottom; the link sits near the bottom edge. */
@media (max-width: 699px) {
  .home-reveal-frame img { object-fit: cover; object-position: 53% 30%; }
  .home-reveal-frame::after { background: linear-gradient(180deg,
      rgba(8, 20, 30, calc(var(--shade) * .3)) 0%, rgba(8, 20, 30, calc(var(--shade) * .45)) 42%,
      rgba(8, 20, 30, calc(var(--shade) * 1.5)) 72%, rgba(8, 20, 30, calc(var(--shade) * 1.7)) 100%); }
  .home-intro-inner { position: absolute; inset: 0; align-self: stretch; justify-self: stretch; width: auto; margin: 0; translate: none;
    padding: 0 20px 15svh; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
  .home-intro-text { width: 100%; }
  .home-intro-text-2 { margin-bottom: 0; }
  .home-intro-more { position: absolute; top: auto; bottom: 6svh; left: 0; right: 0; width: max-content; margin: 0 auto; }
}
/* Reduced motion: no growing; the photo is full screen with the text, in a normal-height section. */
@media (prefers-reduced-motion: reduce) {
  .home-intro { height: auto; }
  .home-reveal-stage { position: relative; }
  .home-intro-more { transition: none; }
}

/* ---------- Inner pages ---------- */
.content { max-width: 760px; margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); padding-block: 72px 96px; }
.content h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(36px, 5vw, 60px); line-height: 1.05; margin: 0 0 32px; text-wrap: balance; }
.content h2, .content h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; text-wrap: balance; }
.content h2 { font-size: 30px; }
.content p, .content li { color: var(--ink-soft); }
.content a { color: var(--sea); text-decoration: underline; text-underline-offset: 3px; }
.content article + article { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.content .entry-title a { color: var(--ink); text-decoration: none; }
.content p { font-size: 17px; line-height: 1.7; }

/* Page title: short, bold, condensed capitals, centred above the page. */
.page .content .entry-title { font-family: var(--font-ui); font-weight: 700; font-stretch: 75%; text-transform: uppercase; text-align: center;
  font-size: clamp(36px, 4.5vw, 56px); letter-spacing: .01em; line-height: 1; margin: 0 0 56px; }
/* Large centred statement, wider than the text column, with key words in blue italics. */
.content .statement { position: relative; left: 50%; transform: translateX(-50%); width: min(1100px, calc(100vw - 32px));
  font-family: var(--font-display); font-weight: 500; font-size: clamp(34px, 5.2vw, 72px); line-height: 1.12; text-align: center;
  color: var(--ink); text-wrap: balance; margin: 0 0 64px; }
.content .statement em { color: var(--sea); }

/* Story sections: an opening lead, name headings with dates, italic subtitles, a pull quote and a sign-off. */
.content .lead { font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 27px); line-height: 1.45; color: var(--ink);
  margin: 88px 0 0; padding-top: 56px; border-top: 1px solid var(--line); }
/* Photo wider than the text column, with a small caption underneath. */
.content .wide { position: relative; left: 50%; transform: translateX(-50%); width: min(1100px, calc(100vw - 32px)); margin: 0 0 56px; }
/* Cropped to a landscape frame so tall photos don't fill the screen; "focus-bottom" trims the top instead of both ends. */
.content .wide img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 6px; }
.content .wide.focus-bottom img { object-position: 50% 85%; }
/* Our Founders: the photo after the intro, as wide as the text */
.content .founders-photo { margin: 36px 0 48px; }
.content .founders-photo img { display: block; width: 100%; height: auto; }
.content .founders-photo figcaption { font-size: 13px; line-height: 1.4; color: var(--ink-soft); margin-top: 10px; padding-left: 4px; }
.content .wide figcaption { font-size: 13px; color: var(--ink-soft); margin-top: 10px; padding-left: 4px; }
.content .entry-title + .lead { margin-top: 0; padding-top: 0; border-top: 0; }
.content h2 { margin: 40px 0 4px; }
.content h3 { font-size: 23px; margin: 28px 0 4px; }
.content li { font-size: 17px; line-height: 1.7; margin-bottom: 8px; }
.content h2 .years { font-weight: 500; color: var(--ink-soft); white-space: nowrap; }
.content .subtitle { font-family: var(--font-display); font-style: italic; font-size: 22px; color: var(--sea); margin: 0 0 24px; }
.content .wp-block-quote { margin: 32px 0; padding: 4px 0 4px 28px; border-left: 4px solid var(--sky); }
.content .wp-block-quote p { font-family: var(--font-display); font-style: italic; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.4; color: var(--ink); margin: 0 0 16px; }
.content .wp-block-quote cite { font-style: normal; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.content .wp-block-quote cite::before { content: "\2014\00a0"; }
.content .signoff { font-weight: 600; color: var(--ink); }

/* Offices: a centred line under the title, then a photo card per office with its address. */
.content .offices-intro { font-family: var(--font-display); font-size: clamp(19px, 2vw, 22px); text-align: center; margin: -36px 0 56px; }
.content .offices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 48px 32px; }
.content .office { margin: 0; }
.content .office img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; }
.content .office h2 { font-family: var(--font-ui); font-weight: 700; font-stretch: 75%; font-size: 26px; margin: 22px 0 6px; }
.content .office p { margin: 0; }

/* Contact: a large two-tone heading, then a tall photo beside the enquiry form. */
.contact { max-width: 1240px; margin-inline: auto; padding: 64px var(--gutter-r) 96px var(--gutter-l); }
.contact-head { text-align: center; margin-bottom: 56px; }
.contact-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--sea); margin: 0 0 18px; }
.contact h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(48px, 8vw, 112px); line-height: .98; letter-spacing: -.01em;
  margin: 0 auto 28px; text-wrap: balance; }
.contact h1 em { color: var(--sea); }
@media (min-width: 700px) { .contact h1 em { display: block; } }
.contact-sub { font-size: 18px; color: var(--ink-soft); margin: 0; }
.contact-body { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: stretch; }
.contact-photo { width: 100%; height: 100%; min-height: 420px; max-height: 640px; object-fit: cover; border-radius: 22px; display: block; }
.contact-form { align-self: start; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px, 3vw, 32px);
  box-shadow: 0 20px 50px rgba(22,61,87,.08); }
.contact-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.contact-form .field-row[hidden] { display: none; }
.contact-form .field-row-end { align-items: end; }
.contact-form .field { margin: 0 0 14px; }
.contact-form label { display: block; font-size: 13px; font-weight: 600; line-height: 1.35; margin-bottom: 6px; }
.contact-form label span[aria-hidden] { color: var(--sea); }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; color: var(--ink);
  background: #f2f8fb; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; }
.contact-form select { appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23163d57' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.contact-form textarea { resize: vertical; min-height: 104px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--sea); outline-offset: 1px; background-color: var(--paper); }
.contact-form button { width: 100%; height: 48px; margin-top: 4px; border: 0; border-radius: 999px; background: var(--ink); color: var(--paper); cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; transition: background-color .2s ease; }
.contact-form button:hover { background: var(--sea); }
.contact-form button:disabled { opacity: .6; cursor: wait; }
.contact-msg { margin: 14px 0 0; font-size: 15px; color: var(--sea); }
.contact-msg:empty { display: none; }
.contact-msg.is-error { color: #b42318; }
/* Thank-you note that takes the form's place once it is sent. */
.contact-form.is-sent > :not(.contact-thanks) { display: none; }
.contact-thanks { min-height: 380px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; outline: 0;
  animation: signup-in .35s ease-out; }
.contact-thanks[hidden] { display: none; }
.contact-thanks img { width: 96px; height: auto; margin-bottom: 18px; }
.contact-thanks h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.1; margin: 0 0 10px; color: var(--ink); text-wrap: balance; }
.contact-thanks p { font-size: 18px; color: var(--ink-soft); margin: 0 0 26px; }
.contact-form .contact-again { width: auto; height: auto; padding: 0; background: none; color: var(--sea); font-size: 14px; letter-spacing: .04em; text-transform: none;
  border-bottom: 2px solid currentColor; border-radius: 0; }
.contact-form .contact-again:hover { background: none; color: var(--ink); }
@media (max-width: 860px) {
  .contact-body { grid-template-columns: 1fr; }
  .contact-photo { height: auto; min-height: 0; aspect-ratio: 4 / 3; }
}
@media (max-width: 520px) {
  .contact-form .field-row { grid-template-columns: 1fr; }
}

/* Ideas: approved stories and reports one after another, thumbnail on the left and summary on the right. */
.content.ideas { max-width: 1040px; }
.content .ideas-intro { font-family: var(--font-display); font-size: clamp(19px, 2vw, 22px); text-align: center; margin: -36px auto 24px; max-width: 40ch; }
.content .ideas-list h2 { font-family: var(--font-ui); font-weight: 700; font-stretch: 75%; text-transform: uppercase; font-size: 26px; letter-spacing: .02em;
  margin: 56px 0 8px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.content .ideas-empty { margin: 20px 0; }
.content .idea { display: grid; grid-template-columns: 260px 1fr; gap: 28px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.content .idea + .idea { margin-top: 0; padding-top: 28px; border-top: 0; }
.content .idea-thumb { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: var(--sky); text-decoration: none; }
.content .idea-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Publisher logo when the story has no picture: a full logo card, or a logo centred on white. */
.content .idea-thumb .idea-logo-contain { object-fit: contain; padding: 14% 12%; box-sizing: border-box; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
/*
 * Made thumbnail, under the picture and seen when there is none (PDF reports, or a site that refuses
 * its image): the focus area's colour with the logo as a faded watermark, the kind and source, the headline.
 */
.content .idea-made { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 16px 18px; color: var(--paper);
  background-repeat: no-repeat; background-size: 100% 100%, 150px auto; background-position: 0 0, right -38px top -30px; }
.content .idea-made-kind { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .85; max-width: 70%; }
.content .idea-made-title { margin-top: auto; font-family: var(--font-display); font-size: 21px; line-height: 1.15;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.content .idea-made-area { margin-top: 10px; padding-top: 8px; border-top: 1px solid currentColor; font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.content .idea-thumb-learning { background: var(--sky); }
.content .idea-thumb-learning .idea-made { color: var(--ink); }
.content .idea-thumb-skills { background: var(--sea); }
.content .idea-thumb-rights { background: var(--ink); }
.content .idea-thumb-land, .content .idea-thumb-none { background: #55724a; }
/* The logo is drawn faint by laying the tile's own colour, slightly see-through, over it. */
.content .idea-thumb-learning .idea-made { background-image: linear-gradient(rgba(169,217,239,.8), rgba(169,217,239,.8)), url(assets/logo-color.png); }
.content .idea-thumb-skills .idea-made { background-image: linear-gradient(rgba(47,134,181,.82), rgba(47,134,181,.82)), url(assets/logo-color.png); }
.content .idea-thumb-rights .idea-made { background-image: linear-gradient(rgba(22,61,87,.84), rgba(22,61,87,.84)), url(assets/logo-color.png); }
.content .idea-thumb-land .idea-made, .content .idea-thumb-none .idea-made { background-image: linear-gradient(rgba(85,114,74,.82), rgba(85,114,74,.82)), url(assets/logo-color.png); }
.content .idea-meta { font-size: 12px !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 6px; }
.content .idea h3 { margin: 0 0 8px; font-size: clamp(20px, 2vw, 24px); }
.content .idea h3 a { color: var(--ink); text-decoration: none; }
.content .idea h3 a:hover { color: var(--sea); }
.content .idea-text p:not(.idea-meta) { margin: 0 0 10px; }
.content .idea-more { font-size: 14px; font-weight: 700; text-decoration: none; }
@media (max-width: 640px) {
  .content .idea { grid-template-columns: 1fr; gap: 14px; }
}

/* ---------- Programme panels (goal pages): a full-width dark band of cards that scroll sideways ---------- */
.content .programmes { position: relative; left: 50%; transform: translateX(-50%); width: 100vw; margin: 72px 0;
  padding: 72px 0 76px; background: #11293b; color: var(--paper); text-align: center; }
.content .programmes-eyebrow { font-size: 13px !important; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--sky) !important; margin: 0 0 14px; }
.content .programmes > h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(40px, 6vw, 76px); line-height: 1.02;
  margin: 0 auto; max-width: 20ch; padding: 0 16px; color: var(--paper); }
.content .programmes > h2 em { color: var(--sky); }
.content .programmes-sub { font-family: var(--font-display); font-style: italic; font-size: clamp(21px, 2.2vw, 26px); color: var(--sky); margin: 14px 0 0; }
.content .programmes-intro { max-width: 640px; margin: 22px auto 0; padding: 0 16px; font-size: 17px; line-height: 1.65; color: rgba(255,255,255,.82); }
.content .goal-note { max-width: 620px; margin: 0 auto 24px; text-align: center; font-size: 15px; font-style: italic; color: var(--ink-soft); }
.programmes-nav { display: flex; justify-content: center; gap: 10px; margin: 32px 0 44px; }
.programmes-nav button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.55); background: transparent;
  color: var(--paper); font-size: 20px; cursor: pointer; transition: background .2s, opacity .2s; }
.programmes-nav button:hover:not(:disabled) { background: rgba(255,255,255,.12); }
.programmes-nav button:disabled { opacity: .3; cursor: default; }
/* When every card fits, the arrows go and the cards sit centred. */
.programmes-nav[hidden] { display: none; }
.programmes-nav[hidden] + .programmes-track { justify-content: center; margin-top: 30px; }
.programmes-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; text-align: left;
  padding: 14px max(16px, calc((100vw - 1440px) / 2)) 28px; scroll-padding: 0 max(16px, calc((100vw - 1440px) / 2)); }
.programmes-track::-webkit-scrollbar { display: none; }
.programme { flex: 0 0 min(400px, 84vw); scroll-snap-align: start; display: flex; flex-direction: column; margin: 0;
  background: #1a3549; border: 1px solid rgba(255,255,255,.1); border-radius: 22px; overflow: hidden;
  transition: background .3s, border-color .3s, transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
/* A card lifts slightly off the band when pointed at. */
.programme:hover { transform: translateY(-10px); box-shadow: 0 18px 36px rgba(0,0,0,.35); }
.content .programme + .programme { margin-top: 0; padding-top: 0; border-top: 1px solid rgba(255,255,255,.1); }
.programme img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.programme-body { padding: 28px 32px 36px; }
.programme-num { display: block; font-family: var(--font-display); font-size: 20px; color: var(--sky); margin-bottom: 22px; }
.content .programme h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 2.6vw, 36px); line-height: 1.05; margin: 0; color: var(--paper); }
.programme-gloss { display: block; font-family: var(--font-display); font-style: italic; font-size: 21px; color: var(--sky); margin: 6px 0 16px; }
.content .programme p { font-size: 15px; line-height: 1.65; color: rgba(255,255,255,.82); margin: 0 0 12px; }
/* The first card is lit until another is pointed at. */
.programme:first-child, .programmes-track:hover .programme:hover { background: var(--sea); border-color: var(--sea); }
.programmes-track:hover .programme:first-child:not(:hover) { background: #1a3549; border-color: rgba(255,255,255,.1); }
.programme:first-child .programme-num, .programme:first-child .programme-gloss,
.programmes-track:hover .programme:hover .programme-num, .programmes-track:hover .programme:hover .programme-gloss { color: var(--paper); }
.programmes-track:hover .programme:first-child:not(:hover) .programme-num,
.programmes-track:hover .programme:first-child:not(:hover) .programme-gloss { color: var(--sky); }
/* Education cards: a full blank line between paragraphs, so each card's text runs to the same length. */
.content #programmes .programme-body > p, .content #programmes-step-3 .programme-body > p { margin-bottom: 1.65em; }
.content #programmes .programme-body > p:last-child, .content #programmes-step-3 .programme-body > p:last-child { margin-bottom: 0; }
.programme-head { display: flex; flex-direction: column; justify-content: flex-end; }
.programme-head .programme-num { margin-bottom: auto; padding-bottom: 22px; }
.programme-step { display: block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.7); margin: 0 0 14px; }
.programme h3 + .programme-step { margin-top: 14px; }
.content .programme h3 + p { margin-top: 16px; }
.programme-list { list-style: none; margin: 0; padding: 0; }
.content .programme-list li { position: relative; font-size: 15px; line-height: 1.6; color: rgba(255,255,255,.82); margin: 0 0 12px; padding-left: 18px; }
.programme-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--sky); }
.programme:first-child .programme-list li::before, .programmes-track:hover .programme:hover .programme-list li::before { background: var(--paper); }
.content .programme-list strong { color: var(--paper); }

/* ---------- Goal pages: tagline, figures that count up, the journey and the link onwards ---------- */
.content .goal-tagline { font-family: var(--font-display); font-style: italic; font-size: clamp(24px, 3vw, 34px); line-height: 1.25;
  text-align: center; color: var(--sea); margin: -46px 0 64px; text-wrap: balance; }
/* The opening paragraphs sit between the tagline and the figures. */
.content .goal-intro { margin: 0 0 20px; padding-top: 0; border-top: 0; }
/* Environment's intro runs a line longer than the other pages; tighten it so its stats sit at the same height. */
@media (min-width: 900px) {
  .content .goal-intro-long { font-size: clamp(21px, 2.3vw, 26px); line-height: 1.4; margin-top: -12px; }
  .content .goal-intro-long + .stats { margin-top: 64px; }
}
.content .stats { position: relative; left: 50%; transform: translateX(-50%); width: min(1100px, calc(100vw - 32px)); margin: 72px 0 64px; text-align: center; }.content .section-eyebrow { font-family: var(--font-ui); font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--sea); text-align: center; margin: 0 0 28px; }
/* Open figures: a rule above each, a large serif number with a smaller unit, a short line beneath. */
.content .stats-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(44px, 6.4vw, 84px); line-height: 1.02; letter-spacing: -.01em;
  color: var(--ink); text-align: center; margin: 0 0 48px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 32px; row-gap: 8px; }
.stat { border-top: 1px solid var(--ink); padding: 34px 8px 40px; }
.stat-num { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(64px, 7.4vw, 104px); line-height: .9; letter-spacing: -.02em;
  color: var(--ink); font-variant-numeric: tabular-nums; margin-bottom: 10px; white-space: nowrap; }
.stat-unit { font-size: .42em; font-weight: 500; letter-spacing: 0; margin-left: .08em; }
.stat-accent .stat-num { color: var(--sea); }
.content .stat p { font-size: 15px; line-height: 1.45; color: var(--ink); max-width: 30ch; margin: 0 auto 8px; text-wrap: balance; }
.content .stat .stat-source { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); max-width: none; margin: 0 auto; }
@media (max-width: 760px) { .stats-grid { grid-template-columns: repeat(2, 1fr); column-gap: 18px; } .stat { padding: 26px 4px 30px; } }
@media (max-width: 480px) { .stats-grid { grid-template-columns: 1fr; } }
.content .journey { position: relative; left: 50%; transform: translateX(-50%); width: min(1100px, calc(100vw - 32px)); margin: 56px 0 0; }
.content .journey > h2 { text-align: center; font-size: clamp(34px, 4vw, 48px); font-weight: 500; margin: 0 0 32px; }
/* The cycle: three Kota-stone segments in lightening shades round a white centre, each a link to its programmes.
   The step pointed at (or the page's own step, when none is) turns deep slate; a pointed-at step also lifts out. */
.cycle { --stone-1: #e3e8e4; --stone-2: #d0d8d3; --stone-3: #bcc7c1; --stone-deep: #4d5e58; --stone-ink: #2c3a36;
  display: block; width: min(675px, 100%); height: auto; margin: 0 auto; overflow: visible; }
.cycle-seg { cursor: pointer; transform-origin: 320px 320px; transition: transform .35s cubic-bezier(.2,.8,.3,1.2), filter .35s; }
.cycle-seg:focus { outline: none; }
.content .cycle a, .cycle text { text-decoration: none; }
.cycle-fill { stroke: var(--paper); stroke-width: 8; stroke-linejoin: round; transition: fill .3s; }
.cycle-seg-1 .cycle-fill { fill: var(--stone-1); }
.cycle-seg-2 .cycle-fill { fill: var(--stone-2); }
.cycle-seg-3 .cycle-fill { fill: var(--stone-3); }
.cycle-icon { fill: none; stroke: var(--stone-ink); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; transition: stroke .3s; }
.cycle-label { font-family: var(--font-ui); font-size: 21px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; fill: var(--stone-ink); transition: fill .3s; }
.cycle-items { font-family: var(--font-ui); font-size: 16px; font-weight: 500; fill: var(--stone-ink); transition: fill .3s; }
.cycle-seg-1:is(:hover, :focus-visible) { transform: translate(0, -16px) scale(1.06); }
.cycle-seg-2:is(:hover, :focus-visible) { transform: translate(14px, 8px) scale(1.06); }
.cycle-seg-3:is(:hover, :focus-visible) { transform: translate(-14px, 8px) scale(1.06); }
.cycle-seg:is(:hover, :focus-visible) { filter: drop-shadow(0 14px 18px rgba(30,42,38,.28)); }
.cycle:not(:has(.cycle-seg:is(:hover, :focus-visible))) .is-current .cycle-fill,
.cycle-seg:is(:hover, :focus-visible) .cycle-fill { fill: var(--stone-deep); }
.cycle:not(:has(.cycle-seg:is(:hover, :focus-visible))) .is-current :is(.cycle-label, .cycle-items),
.cycle-seg:is(:hover, :focus-visible) :is(.cycle-label, .cycle-items) { fill: var(--paper); }
.cycle:not(:has(.cycle-seg:is(:hover, :focus-visible))) .is-current .cycle-icon,
.cycle-seg:is(:hover, :focus-visible) .cycle-icon { stroke: var(--paper); }
/* The dotted outer ring: each dot swells and darkens in turn, top first and clockwise, so the ring appears to turn. */
.cycle-ring circle { fill: #9aa9a2; transform-box: fill-box; transform-origin: center; animation: cycle-ring 4.8s linear infinite; }
@keyframes cycle-ring {
  0%, 12%, 100% { transform: scale(1); fill: #b9c4be; }
  4%            { transform: scale(2.1); fill: #4d5e58; }
}
.cycle-core { fill: var(--paper); }
.cycle-sprout { fill: #7a8b84; }
.cycle-title { font-family: var(--font-display); font-size: 31px; font-weight: 600; fill: var(--stone-ink); }
.cycle-rule { stroke: #9aa9a2; stroke-width: 2.5; stroke-linecap: round; }
.cycle-note { font-family: var(--font-ui); font-size: 13.5px; fill: #5c6d67; }
@media (prefers-reduced-motion: reduce) { .cycle-seg { transition: none; } .cycle-ring circle { animation: none; fill: #9aa9a2; } }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.content .goal-bridge { text-align: center; margin: 0 auto; max-width: 620px; }
.content .goal-bridge .statement { margin-bottom: 20px; }
.content .goal-next { display: inline-block; margin-top: 18px; font-weight: 700; font-size: 16px; text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.content .goal-next span { color: var(--ink-soft); font-weight: 400; }
@media (prefers-reduced-motion: reduce) { .programme { transition: none; } .programme:hover { transform: none; } }

/* ---------- Our role: the values as tabs beside one panel ---------- */
.content .entry-title + .lead + .wide { margin-top: 48px; }
/* How we work: three principles, each a large number, a statement and its theme, with the detail alongside. */
.content .principles { position: relative; left: 50%; transform: translateX(-50%); width: min(1100px, calc(100vw - 32px)); margin: 8px 0 88px; }
/* Near-even columns, so the statement and its detail run to about the same depth; both start level at the top. */
.content .principle { display: grid; grid-template-columns: 5.5fr 6.5fr; gap: clamp(28px, 5vw, 72px); align-items: start; padding: 48px 0; border-top: 1px solid var(--ink); }
.content .principle:last-child { border-bottom: 1px solid var(--ink); }
.principle-num { display: block; font-family: var(--font-display); font-size: clamp(64px, 7vw, 96px); font-weight: 600; line-height: .9; color: var(--sea); opacity: .3; margin-bottom: 14px; }
.content .principle h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(32px, 3.4vw, 44px); line-height: 1.08; margin: 0 0 16px; color: var(--ink); text-wrap: balance; }
.content .principle-tag { font-family: var(--font-display); font-style: italic; font-size: clamp(19px, 1.8vw, 23px); line-height: 1.35; color: var(--sea); margin: 0; }
.content .principle-body p { font-size: 17px; line-height: 1.7; margin: 0 0 18px; }
.content .principle-body p:last-child { margin-bottom: 0; }
/* Side by side, both columns span the row: the number's top lines up with the first line of the detail, and the
   statement and its theme settle at the foot, level with the detail's last line. Each row's split suits its text.
   Principle 02 is mirrored: its detail on the left, the number and statement on the right. */
@media (min-width: 900px) {
  .content .principle { align-items: stretch; }
  .principle-head { display: flex; flex-direction: column; }
  .principle-num { margin-top: -.27em; }
  .content .principle h2 { margin-top: auto; padding-top: 24px; }
  .content .principle:nth-child(2) { grid-template-columns: 7fr 5fr; }
  .principle:nth-child(2) .principle-head { order: 2; }
  .content .principle:nth-child(3) { grid-template-columns: 6fr 6fr; }
}
@media (max-width: 899px) { .content .principle { grid-template-columns: 1fr; gap: 20px; padding: 36px 0; } }
/* Photo carousel (Our role): swipe or use the arrows; each photo is shown whole over a soft blur of itself. */
.content .gallery { position: relative; left: 50%; transform: translateX(-50%); width: min(1100px, calc(100vw - 32px)); margin: 48px 0 56px; }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; border-radius: 6px; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track:focus-visible { outline: 2px solid var(--sea); outline-offset: 4px; }
.content .gallery-slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; }
.gallery-slide { position: relative; }
.gallery-slide img { position: relative; z-index: 1; display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: contain; }
.gallery-slide::before { content: ""; position: absolute; inset: 0; bottom: auto; aspect-ratio: 16 / 10; background: #11293b var(--bg) center / cover; filter: blur(28px) brightness(.55); transform: scale(1.15); }
.gallery-slide { overflow: hidden; }
.content .gallery-slide figcaption { font-size: 13px; color: var(--ink-soft); margin: 0; padding: 10px 4px 0; background: var(--paper, #fff); position: relative; z-index: 1; }
.gallery-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 18px; }
.gallery-controls button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(22,61,87,.35); background: transparent; color: var(--ink); font-size: 18px; cursor: pointer; transition: background .2s, opacity .2s; }
.gallery-controls button:hover:not(:disabled) { background: rgba(22,61,87,.08); }
.gallery-controls button:disabled { opacity: .3; cursor: default; }
.gallery-dots { display: flex; gap: 8px; }
.gallery-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgba(22,61,87,.25); }
.gallery-dots button[aria-current="true"] { background: var(--sea); }
@media (prefers-reduced-motion: reduce) { .gallery-track { scroll-behavior: auto; } }
.content .values { position: relative; left: 50%; transform: translateX(-50%); width: min(1100px, calc(100vw - 32px));
  margin: 88px 0 56px; padding-top: 64px; border-top: 1px solid var(--line); text-align: center; }
.content .values .programmes-eyebrow { color: var(--sea) !important; }
/* Set like the page headlines (e.g. OUR ROLE): condensed, bold, capitals. */
.content .values > h2 { font-family: var(--font-ui); font-weight: 700; font-stretch: 75%; text-transform: uppercase; letter-spacing: .01em;
  font-size: clamp(36px, 4.5vw, 56px); line-height: 1; margin: 0 0 44px; color: var(--ink); }
/* Without script: a plain grid of the five values. */
.values-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 32px; text-align: left; }
.content .value h3 { font-size: 30px; margin: 4px 0 10px; color: var(--ink); }
.value-num { font-family: var(--font-display); font-size: 20px; color: var(--sea); }
/* With script: the names down the left of a dark board, the chosen value large on the right. */
.values-board.is-tabs { grid-template-columns: minmax(250px, 4fr) 7fr; gap: 0; background: #11293b; border-radius: 22px; overflow: hidden;
  box-shadow: 0 24px 48px rgba(17,41,59,.18); }
.values-tabs { display: flex; flex-direction: column; justify-content: center; padding: 28px 0; background: #0c2131; }
.values-tabs button { display: flex; align-items: baseline; gap: 16px; width: 100%; padding: 18px 36px; border: 0; border-left: 4px solid transparent;
  background: transparent; color: rgba(255,255,255,.58); font-family: var(--font-display); font-size: clamp(24px, 2.3vw, 30px); font-weight: 600;
  text-align: left; cursor: pointer; transition: color .2s, background .2s, border-color .2s; }
.values-tabs button span { font-size: 16px; font-weight: 500; color: var(--sky); opacity: .7; }
.values-tabs button:hover { color: var(--paper); }
.values-tabs button[aria-selected="true"] { color: var(--paper); background: #1a3549; border-left-color: var(--sky); }
.values-tabs button[aria-selected="true"] span { opacity: 1; }
.values-tabs button:focus-visible { outline: 2px solid var(--sky); outline-offset: -6px; }
/* Every panel sits in the same cell, so the board keeps the height of the longest and never jumps. */
.values-panels { display: grid; align-items: center; padding: clamp(40px, 5vw, 72px); }
.is-tabs .value { grid-area: 1 / 1; visibility: hidden; opacity: 0; transform: translateY(10px); transition: opacity .35s, transform .35s, visibility 0s .35s; }
.is-tabs .value.is-active { visibility: visible; opacity: 1; transform: none; transition: opacity .35s, transform .35s; }
.is-tabs .value-num { display: block; font-size: clamp(64px, 7vw, 96px); font-weight: 600; line-height: .9; color: var(--sky); opacity: .35; margin-bottom: 8px; }
.content .is-tabs .value h3 { font-style: italic; font-weight: 500; font-size: clamp(40px, 4.4vw, 58px); line-height: 1; margin: 0 0 22px; color: var(--paper); }
.content .is-tabs .value p { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: rgba(255,255,255,.86); margin: 0; max-width: 46ch; }
@media (max-width: 760px) {
  .values-board.is-tabs { grid-template-columns: 1fr; }
  .values-tabs { flex-direction: row; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; padding: 0 8px; }
  .values-tabs::-webkit-scrollbar { display: none; }
  .values-tabs button { flex: 0 0 auto; width: auto; gap: 8px; padding: 18px 16px 14px; border-left: 0; border-bottom: 3px solid transparent; font-size: 21px; }
  .values-tabs button[aria-selected="true"] { border-bottom-color: var(--sky); }
  .values-tabs button span { font-size: 13px; }
  .values-panels { padding: 32px 24px 40px; }
}
@media (prefers-reduced-motion: reduce) { .is-tabs .value, .is-tabs .value.is-active { transition: none; transform: none; } }
.content .role-more { text-align: center; }

/* ---------- Our Story: figures, the five areas as photo links, stories of change, then the call to get involved ---------- */
.content .story-intro { text-align: left; text-wrap: pretty; }
/* Our Story: the founder's words sit in a soft blue panel with a large opening quote mark, set apart from the text around them. */
.content .story-quote { position: relative; margin: 48px 0 56px; padding: 44px clamp(24px, 5vw, 56px) 36px clamp(72px, 9vw, 104px);
  border-left: 0; border-radius: 18px; background: #f1f5f8; background: color-mix(in srgb, var(--sky) 30%, var(--paper)); }
.content .story-quote::before { content: "\201C"; position: absolute; left: clamp(16px, 2.6vw, 30px); top: 6px;
  font-family: var(--font-display); font-size: clamp(96px, 11vw, 140px); line-height: 1; color: var(--sea); opacity: .55; }
.content .story-quote p { font-size: clamp(23px, 2.8vw, 31px); line-height: 1.38; margin-bottom: 20px; }
.content .story-quote cite { color: var(--sea); }
@media (max-width: 560px) {
  .content .story-quote { padding: 64px 22px 28px; }
  .content .story-quote::before { left: 18px; top: -2px; font-size: 92px; }
}
.content .story-block { position: relative; left: 50%; transform: translateX(-50%); width: min(1100px, calc(100vw - 32px)); margin: 16px 0 88px; text-align: center; }
.content .story-block > h2 { font-weight: 500; font-size: clamp(36px, 4.8vw, 60px); line-height: 1.05; margin: 0 0 40px; color: var(--ink); }
.story-areas { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.content .story-area { display: block; color: var(--ink); text-decoration: none; }
.story-area img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 16px; margin-bottom: 14px;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
.story-area span { font-family: var(--font-display); font-size: clamp(22px, 2vw, 27px); font-weight: 600; border-bottom: 2px solid transparent; transition: border-color .25s, color .25s; }
.story-area:is(:hover, :focus-visible) img { transform: translateY(-8px); box-shadow: 0 18px 32px rgba(22,61,87,.25); }
.story-area:is(:hover, :focus-visible) span { color: var(--sea); border-color: currentColor; }
.story-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.content .story-card { position: relative; margin: 0; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 3; background: #11293b;
  transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s; }
.story-card img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.story-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,30,45,.85) 0%, rgba(10,30,45,.25) 45%, rgba(10,30,45,0) 70%); }
.content .story-card figcaption { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 22px 24px; text-align: left;
  font-family: var(--font-display); font-size: clamp(22px, 2.1vw, 28px); font-weight: 600; line-height: 1.15; color: var(--paper); text-wrap: balance; }
/* A story lifts off the page and its photo eases in when pointed at. */
.story-card:hover { transform: translateY(-12px) scale(1.03); box-shadow: 0 26px 44px rgba(17,41,59,.32); }
.story-card:hover img { transform: scale(1.06); }
.content .story-join { margin-top: 0; }
/* Impact's Stories of change: figures first, then a photo for each initiative that opens its story. */
.initiative-stats { margin-bottom: 40px; }
.content .story-card figcaption a { color: inherit; text-decoration: none; }
.story-card figcaption a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.story-card:has(a:focus-visible) { outline: 2px solid var(--sea); outline-offset: 4px; }
.content .story-card figcaption a:focus-visible { outline: none; }
/* Impact: the three initiative photos stand tall, wider than the text column, each with its focus area above its name. */
.content .story-block:has(.story-cards-tall) { width: min(1240px, calc(100vw - 32px)); }
.content .story-cards-tall { gap: 20px; }
.content .story-cards-tall .story-card { aspect-ratio: 3 / 4; border-radius: 24px; }
.content .story-cards-tall .story-card::after { background: linear-gradient(to top, rgba(10,30,45,.92) 0%, rgba(10,30,45,.4) 40%, rgba(10,30,45,0) 65%); }
/* The caption fills the card (text kept at the foot), so its link answers a click anywhere on the photo. */
.content .story-cards-tall figcaption { top: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
  padding: 28px 30px 30px; font-size: clamp(28px, 2.7vw, 38px); }
/* Each name breaks onto two lines at a set point, so the three captions always match. */
.content .story-cards-tall figcaption a { display: inline; }
.story-tag { display: block; margin-bottom: 10px; font-family: var(--font-ui); font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--sky); }
@media (max-width: 900px) { .content .story-cards-tall { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .content .story-cards-tall { grid-template-columns: 1fr; } .content .story-cards-tall .story-card { aspect-ratio: 4 / 5; } }
/* Leadership: portrait beside the biography; stacked on phones. */
/* Wider than the text column so the biography ends level with the bottom of the portrait. */
.content .leader { position: relative; left: 50%; transform: translateX(-50%); width: min(820px, calc(100vw - 32px)); display: grid; grid-template-columns: 300px 1fr;
  gap: 51px; align-items: start; text-align: left; margin: 16px 0 72px; }
.content .leader-photo { margin: 0; }
.leader-photo img { display: block; width: 100%; height: auto; border-radius: 16px; }
.content .leader-body h2 { font-family: var(--font-display); font-size: clamp(32px, 3.6vw, 44px); font-weight: 600; line-height: 1.1; margin: 0; color: var(--ink); }
.content .leader-role { font-family: var(--font-ui); font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--sea); margin: 10px 0 24px; }
.content .leader-body p:not(.leader-role) { line-height: 1.7; margin: 0 0 18px; }
@media (max-width: 700px) { .content .leader { grid-template-columns: 1fr; gap: 28px; } .content .leader-photo { max-width: 320px; } }
/* Our Story figures sit on a warm stone band that runs the full width of the screen. */
.content .story-stats { width: 100vw; background: #f3f2ee; margin: 56px 0; padding: 64px max(16px, calc((100vw - 1100px) / 2)) 40px; }
/* Our Story: a thin rule between sections, as wide as the content. */
.content .story-sep { position: relative; left: 50%; transform: translateX(-50%); width: min(1100px, calc(100vw - 32px)); height: 0; margin: 56px 0;
  border: 0; border-top: 1px solid rgba(22,61,87,.16); background: none; }
.content .story-links-title { grid-column: 1 / -1; margin-bottom: 12px; }
/* FAQ: each question opens in place; the plus turns into a minus while it is open. */
.content .faq { text-align: left; }
.content .faq > h2 { font-family: var(--font-display); font-size: clamp(30px, 3.6vw, 44px); font-weight: 600; line-height: 1.1; margin: 0 0 16px; color: var(--ink); }
.content .faq-intro { margin: 0 0 40px; }
.faq-list { border-top: 1px solid rgba(22,61,87,.18); }
.faq-item { border-bottom: 1px solid rgba(22,61,87,.18); }
.faq-item summary { position: relative; display: block; list-style: none; cursor: pointer; padding: 24px 56px 24px 0;
  font-family: var(--font-display); font-size: clamp(20px, 2vw, 25px); font-weight: 500; line-height: 1.3; color: var(--ink); transition: color .2s; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before, .faq-item summary::after { content: ""; position: absolute; right: 12px; top: 50%; width: 18px; height: 1.5px; background: currentColor;
  transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.faq-item summary::after { transform: rotate(90deg); }
.faq-item[open] summary::after { transform: rotate(0deg); }
.faq-item summary:is(:hover, :focus-visible) { color: var(--sea); }
.content .faq-answer { padding: 0 56px 28px 0; }
.content .faq-answer p { margin: 0 0 14px; line-height: 1.7; }
.content .faq-answer p:last-child { margin-bottom: 0; }
.content .faq-answer a { color: var(--sea); }
@media (max-width: 560px) { .faq-item summary { padding-right: 44px; } .content .faq-answer { padding-right: 0; } }
@media (prefers-reduced-motion: reduce) { .faq-item summary::before, .faq-item summary::after { transition: none; } }
/* Featured initiatives: the Rights-page layout, intro on the left and the three initiatives on the right; menu links land clear of the header. */
.content .initiatives .workshop { scroll-margin-top: 120px; }
.content .workshops.initiatives { margin-top: 8px; }
.content .initiatives .workshops-grid { margin-top: 0; }
.content .workshops-intro .workshops-quote { font-size: clamp(32px, 3vw, 44px); line-height: 1.12; text-wrap: balance; }
.content .workshop p a { color: var(--sky); }
.content .workshop.is-current p a { color: var(--paper); }
.stat-pre { font-size: .62em; font-weight: 500; margin-right: .04em; vertical-align: .18em; }
/* Signposts to the rest of the site: each is one card that lifts when pointed at, so it reads as something to open. */
.content .story-links { position: relative; left: 50%; transform: translateX(-50%); width: min(1240px, calc(100vw - 32px)); margin: 8px 0 96px;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; text-align: left; }
.content .story-links > .story-link { display: grid; grid-template-rows: subgrid; grid-row: span 3; row-gap: 0; align-content: start; margin: 0; padding: 0; border: 1px solid rgba(22,61,87,.12); border-radius: 16px; overflow: hidden;
  background: #fff; color: var(--ink); text-decoration: none; box-shadow: 0 2px 6px rgba(22,61,87,.08);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, border-color .35s; }
.story-link img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin: 0; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.content .story-link h3 { font-family: var(--font-display); font-size: clamp(19px, 1.6vw, 23px); white-space: nowrap;
  font-weight: 600; line-height: 1.15; margin: 20px 18px 10px; color: var(--ink); transition: color .25s; }
.content .story-link p { font-size: 14.5px; line-height: 1.6; margin: 0 18px 22px; color: var(--ink); }
.content .story-links > .story-link:is(:hover, :focus-visible) { transform: translateY(-10px); border-color: rgba(22,61,87,.22); box-shadow: 0 22px 40px rgba(22,61,87,.22); }
.story-link:is(:hover, :focus-visible) img { transform: scale(1.05); }
.content .story-link:is(:hover, :focus-visible) h3 { color: var(--sea); }
@media (prefers-reduced-motion: reduce) { .content .story-links > .story-link, .story-link img { transition: none; } }
@media (max-width: 1271px) { .content .story-links { grid-template-columns: repeat(3, 1fr); } .content .story-link p { max-width: 290px; } }
@media (max-width: 760px) { .content .story-links { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .content .story-links { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .story-areas { grid-template-columns: repeat(3, 1fr); } .story-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .story-areas { grid-template-columns: 1fr 1fr; } .story-cards { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .story-area img, .story-card, .story-card img { transition: none; }
  .story-area:hover img, .story-card:hover, .story-card:hover img { transform: none; } }

/* ---------- Holding pages (News, FAQs) until their content arrives ---------- */
.content .coming-soon { text-align: center; padding: 24px 0 48px; }
.content .coming-soon-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.1; color: var(--ink); margin: 0 0 12px; }
.content .coming-soon p { font-size: 19px; margin: 0 0 28px; }

/* ---------- Get involved: four ways side by side in pairs, then why give with us on a dark band ---------- */
.content .involve-statement { margin-bottom: 40px; }
.content .involve-intro { text-align: center; max-width: 660px; margin-inline: auto; }
.content .involve { position: relative; left: 50%; transform: translateX(-50%); width: min(1100px, calc(100vw - 32px));
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin: 56px 0 0; }
.content .involve-way + .involve-way, .content .value + .value { margin-top: 0; padding-top: 0; border-top: 0; }
.content .involve-way + .involve-way { padding-top: clamp(28px, 3.4vw, 44px); }
.involve-way { display: flex; flex-direction: column; padding: clamp(28px, 3.4vw, 44px); background: #eef5f9; border-radius: 22px;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, background-color .35s ease; }
/* Each way pops up: under the mouse on a computer, or as it scrolls through the middle of a phone screen (.is-pop, site.js). */
.involve-way.is-pop { transform: translateY(-8px) scale(1.025); background: #fff; box-shadow: 0 18px 40px rgba(22,61,87,.18); }
@media (hover: hover) {
  .involve-way:hover { transform: translateY(-8px) scale(1.025); background: #fff; box-shadow: 0 18px 40px rgba(22,61,87,.18); }
}
@media (prefers-reduced-motion: reduce) { .involve-way { transition: none; } .involve-way.is-pop, .involve-way:hover { transform: none; } }
.involve-num { font-family: var(--font-display); font-size: 20px; color: var(--sea); margin-bottom: 14px; }
.content .involve-way h2 { font-size: clamp(30px, 2.8vw, 38px); font-weight: 600; line-height: 1.05; margin: 0 0 16px; color: var(--ink); }
.content .involve-way p, .content .involve-way li { font-size: 16px; line-height: 1.65; }
.content .involve-way p { margin: 0 0 12px; }
.content .involve-way ul { list-style: none; margin: 4px 0 8px; padding: 0; }
.content .involve-way li { position: relative; margin: 0 0 10px; padding-left: 18px; }
.involve-way li::before { content: ""; position: absolute; left: 0; top: .66em; width: 7px; height: 7px; border-radius: 50%; background: var(--sea); }
.content .involve-way li strong { color: var(--ink); }
.content .involve-link { margin-top: auto; padding-top: 14px; align-self: flex-start; font-weight: 700; font-size: 15px; text-decoration: none;
  border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.content .involve-why { position: relative; left: 50%; transform: translateX(-50%); width: 100vw; margin: 72px 0 -96px; padding: 80px 16px 88px;
  background: #11293b; text-align: center; }
.content .involve-why > h2 { font-weight: 500; font-size: clamp(38px, 5.4vw, 68px); line-height: 1.04; margin: 0 auto 24px; max-width: 18ch; color: var(--paper); }
.content .involve-why > h2 em { color: var(--sky); }
.content .involve-why > p { max-width: 640px; margin: 0 auto 18px; font-size: 17px; line-height: 1.7; color: rgba(255,255,255,.84); }
.content .involve-why .involve-close { font-family: var(--font-display); font-style: italic; font-size: clamp(22px, 2.2vw, 27px); line-height: 1.4; color: var(--sky); margin-top: 28px; }
.content .involve-cta { display: inline-block; margin-top: 18px; padding: 14px 34px; border-radius: 999px; background: var(--paper); color: var(--ink);
  font-weight: 700; font-size: 15px; letter-spacing: .04em; text-decoration: none; transition: background .2s, color .2s; }
.content .involve-cta:hover { background: var(--sky); }
@media (max-width: 760px) { .content .involve { grid-template-columns: 1fr; gap: 16px; } }

/* ---------- Contribution page: the five focus areas as programme cards, each card one link to its page ---------- */
.content .focus-areas { margin-top: 56px; }
/* Wide screens show all five focus areas side by side, with no arrows; narrower ones show three, so scrolling reveals the other two. */
@media (min-width: 1360px) {
  .focus-areas .programme { flex: 1 1 0; min-width: 0; }
  .content .focus-areas .programme h3 { font-size: 26px; line-height: 1.12; }
}
.focus-areas .programme { position: relative; }
.content .focus-areas .programme h3 a { color: inherit; text-decoration: none; }
.focus-areas .programme h3 a::after { content: ""; position: absolute; inset: 0; }
.focus-areas .programme h3 a:focus-visible { outline: none; }
.focus-areas .programme:has(a:focus-visible) { outline: 2px solid var(--sky); outline-offset: 4px; }
/* Each focus area's name sits on a fine line; pointing at the panel sends a light running along it, again and again. */
.focus-areas .programme-num { position: relative; padding-bottom: 8px; margin-bottom: 18px; border-bottom: 1px solid rgba(169,217,239,.45); }
.focus-areas .programme-num::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1.5px; height: 2px; opacity: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--paper) 50%, transparent) -60% 0 / 28% 100% no-repeat; }
.focus-areas .programme:is(:hover, :focus-within) .programme-num::after { animation: stage-pulse 2.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .focus-areas .programme:is(:hover, :focus-within) .programme-num::after { animation: none; opacity: 1; background-size: 100% 100%; background-position: 0 0; } }

/* ---------- Footer ribbons ---------- */
.ribbon { padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.ribbon-inner { max-width: 1440px; margin-inline: auto; }
.ribbon-sky { background: var(--sky); color: var(--ink); padding-block: 48px; }
.ribbon-sky .ribbon-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.foot-brand { display: flex; align-items: center; gap: 16px; }
.foot-brand img { height: 72px; width: auto; }
.foot-brand span { font-family: var(--font-display); font-size: clamp(17px, 4.6vw, 24px); font-weight: 600; line-height: 1.15; white-space: nowrap; }
.foot-social { display: flex; gap: 16px; list-style: none; margin: 0; padding: 0; }
.foot-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid currentColor; }
.foot-social a:hover { background: var(--ink); color: var(--sky); }
.foot-social svg { width: 20px; height: 20px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 12px 40px; list-style: none; margin: 0; padding: 0; }
.foot-links a { font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; border-bottom: 2px solid transparent; padding-bottom: 4px; }
.foot-links a:hover { border-color: var(--ink); }
.ribbon-deep { background: var(--ink); color: rgba(255,255,255,.82); padding-block: 18px calc(env(safe-area-inset-bottom, 0px) + 18px); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.ribbon-deep .ribbon-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

/* ---------- Overlays ---------- */
.scrim { position: fixed; inset: 0; background: var(--veil); backdrop-filter: blur(6px); z-index: 100; }
.drawer { position: fixed; inset: 0 auto 0 0; width: min(360px, 88vw); background: var(--paper); color: var(--ink); z-index: 101; display: flex; flex-direction: column; gap: 24px; overflow-y: auto;
  padding-top: calc(env(safe-area-inset-top, 0px) + 24px); padding-bottom: 24px; padding-right: 24px; padding-left: max(24px, env(safe-area-inset-left, 0px)); border-right: 4px solid var(--sky); }
.drawer p { color: var(--ink-soft); font-size: 14px; margin: 0; }
.drawer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.drawer ul ul { padding-left: 16px; }
.drawer a { display: block; padding: 8px 0; font-family: var(--font-display); font-size: 24px; }
.drawer a:hover { color: var(--sea); }
.drawer .drawer-tree { gap: 0; }
.drawer-row { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); }
.drawer-row a { flex: 1; }
.drawer-toggle { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; background: none; border: 0; color: inherit;
  font-family: var(--font-display); font-size: 24px; text-align: left; cursor: pointer; }
.drawer-toggle:hover { color: var(--sea); }
.drawer-toggle svg { width: 20px; height: 20px; margin-right: 10px; transition: transform .2s; }
.drawer-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.drawer-sub { display: grid; gap: 10px; padding: 20px 0 24px; border-bottom: 1px solid var(--line); }
.drawer-sub[hidden] { display: none; }
.drawer-sub h2 { font-family: var(--font-display); font-size: 30px; font-weight: 600; line-height: 1.1; margin: 0; }
.drawer .drawer-sub p { font-size: 14px; line-height: 1.6; }
.drawer .drawer-more { display: inline-block; justify-self: start; font-family: var(--font-ui); font-size: 13px; font-weight: 700; letter-spacing: .04em; padding: 0 0 2px; border-bottom: 2px solid currentColor; }
.drawer-sub h3 { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin: 18px 0 0; }
.drawer .drawer-sub ul { padding-left: 0; gap: 0; }
.drawer-sub ul a { font-size: 20px; padding: 5px 0; }
.drawer .drawer-extra { gap: 0; margin-top: 0; }
.drawer-extra a { border-bottom: 1px solid var(--line); }
/* Newsletter sign-up: card that slides up in the bottom-left corner, leaving the page usable around it. */
.signup { position: fixed; z-index: 102; left: max(16px, 2vw); bottom: max(16px, 2vw); width: min(400px, calc(100vw - 32px));
  max-height: calc(100svh - 32px); overflow-y: auto; animation: signup-in .35s ease-out; background: var(--paper); color: var(--ink); border-radius: 12px;
  padding: 40px 32px 36px; text-align: center; box-shadow: 0 24px 60px rgba(10,30,45,.3); }
@keyframes signup-in { from { opacity: 0; transform: translateY(24px); } }
@media (prefers-reduced-motion: reduce) { .signup { animation: none; } }
.signup-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; display: grid; place-items: center; color: var(--sea); }
.signup-close svg { width: 22px; height: 22px; }
.signup-logo { display: block; width: 96px; margin: 0 auto 24px; }
.signup h2 { font-family: var(--font-ui); font-weight: 700; font-stretch: 75%; text-transform: uppercase; font-size: clamp(28px, 7vw, 38px);
  line-height: 1.05; letter-spacing: .01em; margin: 0 0 16px; text-wrap: balance; }
.signup > p { font-size: 17px; line-height: 1.5; margin: 0 auto 24px; max-width: 30ch; }
.signup form { display: grid; gap: 12px; }
.signup input[type="email"] { width: 100%; height: 52px; padding: 0 20px; border: 1.5px solid var(--ink); border-radius: 999px;
  font: inherit; font-size: 16px; color: var(--ink); text-align: center; background: var(--paper); }
.signup input[type="email"]::placeholder { color: var(--ink-soft); }
.signup button[type="submit"] { height: 52px; border-radius: 999px; background: var(--ink); color: var(--paper);
  font-weight: 700; font-stretch: 75%; font-size: 17px; letter-spacing: .06em; text-transform: uppercase; }
.signup button[type="submit"]:hover { background: var(--sea); }
.signup button[type="submit"]:disabled { opacity: .6; cursor: default; }
.signup-msg { min-height: 1.5em; margin: 4px 0 0; font-size: 15px; color: var(--ink-soft); }
.signup-msg.is-error { color: #b3261e; }

/* Where the tab dropdowns work, the menu holds only the links that aren't in them. */
@media (hover: hover) and (min-width: 900px) {
  .drawer .drawer-tree { display: none; }
  .drawer .drawer-extra { margin-top: 0; }
}
.searchbox { position: fixed; inset: 0 0 auto 0; z-index: 101; background: var(--paper); color: var(--ink); border-bottom: 4px solid var(--sky);
  padding-top: calc(env(safe-area-inset-top, 0px) + 28px); padding-bottom: 28px; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.searchbox form { display: flex; gap: 12px; max-width: 900px; margin-inline: auto; align-items: center; }
.searchbox input { flex: 1; min-width: 0; background: transparent; border: 0; border-bottom: 1px solid var(--ink-soft); color: var(--ink); font-family: var(--font-display); font-size: clamp(22px, 3vw, 34px); padding: 6px 0; }
.searchbox input:focus { outline: none; border-color: var(--sea); }

@media (max-width: 560px) {
  .bar-btn span { display: none; }
  .logo { margin-top: 10px; }
  .logo-mark { height: 86px; }
  .bar > .bar-btn { transform: translateY(12px); }
  .tabs { gap: 18px; }
  .tabs .tab { font-size: 11px; letter-spacing: .14em; gap: 5px; }
  .tabs .tab svg { width: 10px; height: 10px; }
  .ribbon-sky { padding-block: 36px; }
}
/* Tall phone screens play the upright video (see header.php), filling the screen from its centre. */
@media (orientation: portrait) and (max-width: 900px) {
  .hero-video { object-position: 50% 50%; }
}

@media (prefers-reduced-motion: reduce) { .ambient { animation: none; } .masthead { transition: none; } }

/* Contact: the photo takes the form's height, so both sit the same size side by side. */
@media (min-width: 861px) {
  .contact-form { align-self: stretch; }
  .contact-photo { height: 0; min-height: 100%; max-height: none; }
}

/* Footer: a quieter second row of links (Contact, Get involved, Privacy policy) under the main tabs. */
.foot-links-sub { gap: 10px 32px; }
.foot-links-sub a { font-size: 12px; font-weight: 500; letter-spacing: .16em; opacity: .85; }
.foot-links-sub a:hover { opacity: 1; }
@media (max-width: 520px) { .foot-links-sub { gap: 10px 18px; } }

/* Footer layout: tabs and social icons share one row, level with the brand name;
   a rule runs under that row, and the smaller links sit below it. */
.ribbon-sky .ribbon-inner { align-items: flex-start; }
.foot-main { display: flex; flex-direction: column; }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 56px;
  min-height: 90px; padding-bottom: 18px; border-bottom: 1px solid rgba(22,61,87,.35); }
.foot-links-sub { padding-top: 18px; }
.foot-social span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid currentColor; }
.foot-social span svg { width: 20px; height: 20px; }

/* Main tabs: always underlined; on hover the line runs out to the right and redraws from the left. */
.foot-top .foot-links a { border-bottom: 0; padding-bottom: 6px;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 2px no-repeat; }
.foot-top .foot-links a:hover, .foot-top .foot-links a:focus-visible { animation: pkf-line-flow .8s ease-in-out; }
@keyframes pkf-line-flow {
  0%   { background-position: right bottom; background-size: 100% 2px; }
  45%  { background-position: right bottom; background-size: 0 2px; }
  46%  { background-position: left bottom;  background-size: 0 2px; }
  100% { background-position: left bottom;  background-size: 100% 2px; }
}
@media (prefers-reduced-motion: reduce) { .foot-top .foot-links a:hover { animation: none; } }
@media (max-width: 699px) {
  .foot-main { width: 100%; }
  .foot-top { min-height: 0; }
  /* Phones: the logo and name, the social icons and the links all sit centred. */
  .ribbon-sky .ribbon-inner { flex-direction: column; align-items: center; text-align: center; }
  .foot-brand { justify-content: center; }
  .foot-top, .foot-links-sub, .ribbon-deep .ribbon-inner { justify-content: center; }
  .ribbon-deep .ribbon-inner { text-align: center; }
}

/* The journey cycle: larger (the drawing has room round the ring for the dotted outer circle), with a dark amber dot
   after the first of each segment's two items. */
.cycle { width: min(765px, 100%); }
.cycle-dot { fill: #a8650a; font-weight: 700; }
.cycle-note { font-size: 14.5px; }

/* Programme stage labels (In school, Leaving school) sit above their cards; In school spans its two cards. */
.programmes-track { padding-top: 54px; }
.programme { position: relative; overflow: visible; }
.programme img { border-radius: 21px 21px 0 0; }
.programme-stage { position: absolute; left: -1px; bottom: calc(100% + 12px); width: calc(100% + 2px); padding-bottom: 8px;
  border-bottom: 1px solid rgba(169,217,239,.45); font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--sky); text-align: left; white-space: nowrap; }
.programme-stage-span { width: calc(200% + 20px); }
/* A label spanning two cards sits in the first; it lifts with the second card too, as it heads both. */
.programme-stage-span { transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.programme-stage-span.stage-lift { transform: translateY(-10px); }
@media (prefers-reduced-motion: reduce) { .programme-stage-span.stage-lift { transform: none; } }
/* Stage-label motion (set up by site.js): the letters type out, the line draws in beneath them, then a light keeps
   running along the line from left to right. */
.programme-stage.stage-wait, .workshop-line.stage-wait { border-bottom-color: transparent; }
.stage-wait .stage-ch { opacity: 0; transition: opacity .05s linear; }
.stage-typed .stage-ch { opacity: 1; }
.stage-wait::before, .stage-wait::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; pointer-events: none; }
.stage-wait::before { height: 1px; background: rgba(169,217,239,.45); transform: scaleX(0); transform-origin: left; }
.stage-typed::before { transform: scaleX(1); transition: transform var(--type-time, 900ms) cubic-bezier(.4,0,.2,1); }
.stage-wait::after { height: 2px; bottom: -1.5px; opacity: 0;
  background: linear-gradient(90deg, transparent, var(--sky) 50%, transparent) -60% 0 / 28% 100% no-repeat; }
.stage-typed::after { animation: stage-pulse 3.6s ease-in-out var(--type-time, 900ms) infinite; }
@keyframes stage-pulse {
  0%   { opacity: 1; background-position: -60% 0; }
  55%  { opacity: 1; background-position: 160% 0; }
  56%, 100% { opacity: 0; background-position: 160% 0; }
}
@media (min-width: 900px) {
  .programme { flex-basis: min(400px, calc((100vw - 64px) / 3)); }
}

/* Rights page, Kanoon Seekho: the programme intro stays in view on the left while the three workshops scroll past on
   the right; the list under the intro marks the workshop being read. Stacks into one column on narrow screens. */
.content .workshops { position: relative; left: 50%; transform: translateX(-50%); width: 100vw; margin: 72px 0;
  padding: 72px 0 80px; background: #11293b; color: var(--paper); }
.content .workshops > .programmes-eyebrow { text-align: center; }
.workshops-grid { width: min(1360px, calc(100% - 64px)); margin: 44px auto 0; display: grid; grid-template-columns: minmax(300px, 4fr) 8fr; gap: clamp(32px, 4vw, 64px); align-items: start; }
.workshops-intro { position: sticky; top: 40px; }
.content .workshops-intro h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(40px, 4.6vw, 64px); line-height: 1.02; margin: 0; color: var(--paper); }
.content .workshops-intro h2 em { display: block; color: var(--sky); font-size: .76em; margin-top: 6px; white-space: nowrap; }
@media (max-width: 899px) { .content .workshops-intro h2 em { white-space: normal; } }
.content .workshops-sub { font-family: var(--font-display); font-style: italic; font-size: clamp(21px, 2vw, 25px); line-height: 1.3; color: var(--sky); margin: 16px 0 0; }
.content .workshops-intro > p:not(.workshops-sub) { font-size: 17px; line-height: 1.65; color: rgba(255,255,255,.82); margin: 22px 0 0; }
.workshops-index { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid rgba(169,217,239,.3); }
.content .workshops-index li { margin: 0; padding: 0; border-bottom: 1px solid rgba(169,217,239,.3); }
.content .workshops-index a { display: flex; gap: 14px; align-items: baseline; padding: 13px 0; font-size: 15px; line-height: 1.4;
  color: rgba(255,255,255,.62); text-decoration: none; transition: color .25s, padding-left .25s; }
.workshops-index span { font-family: var(--font-display); font-size: 20px; color: var(--sky); opacity: .6; min-width: 12px; transition: opacity .25s; }
.content .workshops-index a:is(:hover, :focus-visible, .is-current) { color: var(--paper); padding-left: 8px; }
.workshops-index a:is(:hover, :focus-visible, .is-current) span { opacity: 1; }
.workshops-list { display: grid; gap: 28px; }
.content .workshop { margin: 0; padding: 0; border: 1px solid rgba(255,255,255,.1); border-radius: 22px; overflow: hidden; background: #1a3549;
  scroll-margin-top: 40px; transition: background .3s, border-color .3s; }
.content .workshop.is-current { background: var(--sea); border-color: var(--sea); }
/* Landscape cards: the photo fills the left third, the text runs beside it. */
.content .workshop { display: grid; grid-template-columns: 34% 1fr; }
.workshop img { display: block; width: 100%; height: 100%; min-height: 100%; object-fit: cover; }
.workshop-body { padding: 30px 36px 26px; display: flex; flex-direction: column; justify-content: center; }
.workshop-num { display: block; font-family: var(--font-display); font-size: 20px; color: var(--sky); margin-bottom: 10px; }
.workshop.is-current .workshop-num { color: var(--paper); }
/* Environment: an underline beneath each "Initiative N" label, animated like the stage labels on Education. */
.workshop-line { position: relative; padding-bottom: 8px; margin-bottom: 16px; border-bottom: 1px solid rgba(169,217,239,.45); }
.content .workshop h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 2.5vw, 34px); line-height: 1.08; margin: 0 0 16px; color: var(--paper); }
.content .workshop p { font-size: 15.5px; line-height: 1.65; color: rgba(255,255,255,.85); margin: 0 0 14px; }
.content .workshop .programme-list li { color: rgba(255,255,255,.85); }
.workshop.is-current .programme-list li::before { background: var(--paper); }
@media (max-width: 899px) {
  .workshops-grid { grid-template-columns: 1fr; margin-top: 28px; width: calc(100% - 32px); }
  .workshops-intro { position: static; }
  .workshops-index { display: none; }
  .content .workshop { grid-template-columns: 1fr; }
  .workshop img { height: auto; aspect-ratio: 2 / 1; }
  .workshop-body { padding: 24px 22px 26px; }
}
/* Environment page, Prakriti Sanrakshan: the same layout with five shorter initiative cards, sized to their own text. */
.workshop-gloss { display: block; font-family: var(--font-display); font-style: italic; font-size: 19px; line-height: 1.3; color: var(--sky); margin: -8px 0 14px; }
.workshop.is-current .workshop-gloss { color: var(--paper); }
.workshops-compact .workshops-list { gap: 20px; }
/* A wider intro column so "Prakriti Sanrakshan" and "“Nature Conservation”" each fit on one line. */
@media (min-width: 900px) { .workshops-compact .workshops-grid { grid-template-columns: minmax(300px, 5.2fr) 6.8fr; } }
.content .workshops-compact .workshop { min-height: 230px; }
.workshops-compact .workshop-body { padding: 26px 32px; }
/* Five initiatives would make the list under the intro too tall to stay in view, so this page leaves it out. */
.workshops-compact .workshops-index { margin-top: 24px; }
.content .workshops-compact .workshops-index a { padding: 9px 0; }
