/* ==========================================================
   BREATHE website styles
   Brand colours, fonts and layout for every page.
   ========================================================== */

@font-face { font-family: "Bricolage Grotesque"; src: url("/assets/fonts/bricolage-grotesque.woff2") format("woff2-variations"), url("/assets/fonts/bricolage-grotesque.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/assets/fonts/instrument-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/assets/fonts/instrument-sans-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/assets/fonts/instrument-sans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/assets/fonts/instrument-sans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/assets/fonts/instrument-sans-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  /* Brand palette */
  --ink: #0B2A3A;        /* Deep Lagoon Ink */
  --ink-deep: #071E2A;
  --ink-raised: #14384A;
  --lagoon: #1FA597;     /* Lagoon */
  --lagoon-text: #0E6F66;/* Lagoon, darkened for readable text */
  --lagoon-tint: #E3F4F1;
  --mist: #7FD6CC;
  --coral: #FF6B4A;      /* Coral Pulse */
  --coral-text: #B8452C;
  --coral-tint: #FFE3DC;
  --sand: #EFE6D6;       /* Sandbank */
  --air: #F4F8F7;        /* Clear Air */
  --white: #FFFFFF;
  --muted: #3A4F5C;
  --on-ink: #C9D8DC;
  --line: #D9E3E1;
  --line-strong: #C7D5D3;
  --field: #A9BDC2;

  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 120px);
  --section: clamp(64px, 9vw, 120px);
  --radius: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--air); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: var(--lagoon-text); }
a:hover { color: var(--ink); }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--display); letter-spacing: -0.02em; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 16px; top: -60px; padding: 10px 16px; background: var(--ink); color: var(--air); border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section-white { background: var(--white); }
.section-sand { background: var(--sand); }

/* ---------- Type helpers ---------- */
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--lagoon-text); }
.eyebrow-rule { display: flex; align-items: center; gap: 12px; }
.eyebrow-rule::before { content: ""; width: 32px; height: 4px; border-radius: 2px; background: var(--coral); flex-shrink: 0; }
.on-ink .eyebrow { color: var(--mist); }
.h1 { font-weight: 800; font-size: clamp(42px, 6vw, 80px); line-height: 1.02; letter-spacing: -0.035em; }
.h2 { font-weight: 800; font-size: clamp(32px, 3.6vw, 48px); line-height: 1.08; letter-spacing: -0.03em; }
.h3 { font-weight: 700; font-size: clamp(22px, 2vw, 26px); line-height: 1.2; }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--muted); }
.on-ink .lede { color: var(--on-ink); }
.muted { color: var(--muted); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px 48px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head > div { display: flex; flex-direction: column; gap: 16px; max-width: 680px; }
.section-head > p { max-width: 480px; font-size: 18px; color: var(--muted); }
.arrow-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; text-decoration: none; }
.arrow-link svg { transition: transform .15s; }
.arrow-link:hover svg { transform: translateX(3px); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 28px; border-radius: 999px; border: 1.5px solid transparent; font-family: var(--body); font-weight: 600; font-size: 17px; line-height: 1.1; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 16px; }
.btn-coral { background: var(--coral); color: var(--ink); }
.btn-coral:hover { background: #FF8466; color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--air); }
.btn-ink:hover { background: var(--ink-raised); color: var(--air); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--air); }
.btn-ghost-light { border-color: #5E7A86; color: var(--air); background: transparent; }
.btn-ghost-light:hover { border-color: var(--air); color: var(--air); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(244, 248, 247, 0.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.wordmark { font-family: var(--display); font-weight: 700; font-size: 32px; letter-spacing: -1px; line-height: 1; color: var(--ink); }
.site-footer .wordmark { color: var(--air); font-size: 28px; }
.site-nav { display: flex; align-items: center; gap: 36px; font-weight: 500; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; padding: 8px 0; border-bottom: 3px solid transparent; }
.site-nav a:not(.btn):hover { border-bottom-color: var(--line-strong); }
.site-nav a[aria-current="page"] { font-weight: 700; border-bottom-color: var(--coral); }
.menu-btn { display: none; width: 48px; height: 48px; border: 0; border-radius: 24px; background: var(--ink); color: var(--air); align-items: center; justify-content: center; cursor: pointer; }

@media (max-width: 960px) {
  .header-inner { height: 72px; }
  .wordmark { font-size: 27px; }
  .site-header .atoll { width: 36px; height: 36px; }
  .menu-btn { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px; background: var(--air); border-bottom: 1px solid var(--line); box-shadow: 0 16px 32px rgba(11,42,58,0.12); }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 16px 0; font-size: 19px; border-bottom: 1px solid var(--line); }
  .site-nav a[aria-current="page"] { border-bottom: 1px solid var(--line); color: var(--lagoon-text); }
  .site-nav .btn { margin-top: 20px; min-height: 52px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink); color: var(--air); }
.hero-ring { position: absolute; right: -200px; top: -150px; width: 760px; height: 760px; pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 48px 64px; align-items: center; padding-block: clamp(64px, 8vw, 112px) clamp(64px, 8vw, 120px); }
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.hero-copy .lede { max-width: 620px; }
.feature-card { display: flex; flex-direction: column; gap: 18px; padding: 32px; border-radius: var(--radius); background: var(--air); color: var(--ink); text-decoration: none; box-shadow: 0 24px 60px rgba(0,0,0,0.25); transition: transform .2s; }
.feature-card:hover { transform: translateY(-4px); color: var(--ink); }
.feature-card .meta-line { justify-content: space-between; }
.feature-card h2 { font-weight: 800; font-size: 40px; line-height: 1.05; letter-spacing: -1px; }
.feature-card p { font-size: 16px; color: var(--muted); }
.feature-card-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.feature-card-foot strong { color: var(--lagoon-text); display: inline-flex; gap: 8px; align-items: center; }
.bar { display: block; width: 48px; height: 5px; border-radius: 3px; background: var(--coral); }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-ring { width: 420px; height: 420px; right: -170px; top: -120px; }
  .feature-card { padding: 24px; }
  .feature-card h2 { font-size: 32px; }
}

/* ---------- Acronym band ---------- */
.acronym { background: var(--sand); }
.acronym .wrap { padding-block: 40px; display: flex; justify-content: space-between; align-items: center; gap: 16px 40px; flex-wrap: wrap; }
.acronym p { font-family: var(--display); font-weight: 500; font-size: clamp(18px, 1.7vw, 24px); line-height: 1.35; max-width: 880px; }
.acronym b { font-weight: 800; }

/* ---------- Stat band ---------- */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.stat { padding: 28px 28px 8px 0; display: flex; flex-direction: column; gap: 10px; }
.stat + .stat { padding-left: 28px; border-left: 1px solid var(--line-strong); }
.stat-n { font-family: var(--display); font-weight: 800; font-size: clamp(44px, 5vw, 64px); letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-n small { font-size: 0.45em; letter-spacing: 0; }
.stat-alert .stat-n { color: var(--coral-text); }
.stat-l { font-size: 16px; line-height: 1.5; color: var(--muted); max-width: 340px; }
.stat-src { margin-top: 24px; font-size: 14px; color: var(--muted); }
@media (max-width: 760px) {
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stat, .stat + .stat { padding: 24px 0; border-left: 0; }
  .stat + .stat { border-top: 1px solid var(--line-strong); }
}

/* ---------- Pillar cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { padding: clamp(28px, 3vw, 36px); border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.card p { color: var(--muted); }
.card-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--lagoon-tint); display: flex; align-items: center; justify-content: center; color: var(--lagoon-text); }
.card-output { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.card-output b { display: block; font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink); margin-bottom: 4px; }
@media (max-width: 960px) { .card-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Publication cards ---------- */
.pub-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pub-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pub-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--air); color: var(--ink); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.pub-card:hover { color: var(--ink); transform: translateY(-4px); box-shadow: 0 16px 40px rgba(11,42,58,0.12); }
.pub-card-art { height: 240px; display: flex; align-items: flex-end; justify-content: center; background: var(--sand); padding-top: 36px; }
.pub-card-art-ink { background: var(--ink); }
.pub-card-art .cover { border-radius: 6px 6px 0 0; }
.pub-card-body { padding: 28px; display: flex; flex-direction: column; gap: 12px; flex-grow: 1; }
.pub-card-body h3 { font-weight: 700; font-size: 26px; line-height: 1.15; }
.pub-card-body p { font-size: 16px; line-height: 1.55; color: var(--muted); }
.pub-card-foot { margin-top: auto; padding-top: 12px; display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); }
.meta-line { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; font-size: 13px; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase; color: var(--muted); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; }
.badge-coral { background: var(--coral-tint); color: #9A3620; }
.chip { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--lagoon-tint); color: var(--ink); font-size: 14px; }
@media (max-width: 1100px) { .pub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .pub-grid, .pub-grid-2 { grid-template-columns: minmax(0, 1fr); } .pub-card-art { height: 200px; } }

/* ---------- Drawn covers ---------- */
.cover { position: relative; overflow: hidden; background: var(--air); color: var(--ink); display: flex; flex-direction: column; gap: 10px; box-shadow: 0 -6px 24px rgba(11,42,58,0.12); }
.cover-ink { background: var(--ink); color: var(--air); }
.pub-card-art-ink .cover-ink { background: var(--ink-raised); }
.cover-sm { width: 156px; height: 204px; padding: 16px 15px; }
.cover-md { width: 168px; height: 224px; padding: 18px 16px; border-radius: 6px; box-shadow: 0 8px 24px rgba(11,42,58,0.14); }
.cover-lg { width: 240px; height: 339px; padding: 24px 22px; border-radius: 4px; box-shadow: 0 12px 32px rgba(11,42,58,0.18); gap: 14px; }
.cover-top { display: flex; align-items: center; gap: 5px; }
.cover-top .atoll { width: 14px; height: 14px; }
.cover-lg .cover-top .atoll { width: 18px; height: 18px; }
.cover-word { font-family: var(--display); font-weight: 700; font-size: 11px; }
.cover-lg .cover-word { font-size: 13px; }
.cover-no { margin-left: auto; font-size: 8px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; opacity: 0.75; }
.cover-lg .cover-no { font-size: 9px; }
.cover-bar { margin-top: 22px; width: 22px; height: 3px; border-radius: 2px; background: var(--coral); }
.cover-lg .cover-bar { margin-top: 44px; width: 28px; }
.cover-ink .cover-bar { background: var(--lagoon); }
.cover-title { position: relative; z-index: 1; font-family: var(--display); font-weight: 800; font-size: 19px; line-height: 1.04; letter-spacing: -0.02em; }
.cover-lg .cover-title { font-size: 27px; }
.cover-ring { position: absolute; right: -44px; bottom: -44px; width: 140px; height: 140px; }
.cover-lg .cover-ring { width: 210px; height: 210px; right: -66px; bottom: -62px; }

/* ---------- Focus areas ---------- */
.focus-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.focus-item { padding: 32px; border-bottom: 1px solid var(--line-strong); border-left: 1px solid var(--line-strong); display: flex; flex-direction: column; gap: 10px; color: var(--ink); text-decoration: none; transition: background .15s; }
.focus-item:nth-child(3n+1) { border-left: 0; padding-left: 0; }
.focus-item:hover { color: var(--ink); background: rgba(31,165,151,0.06); }
.focus-num { font-family: var(--display); font-size: 15px; font-weight: 700; color: var(--lagoon-text); }
.focus-name { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -0.02em; line-height: 1.15; }
.focus-text { font-size: 16px; color: var(--muted); }
@media (max-width: 960px) {
  .focus-grid { grid-template-columns: minmax(0, 1fr); }
  .focus-item, .focus-item:nth-child(3n+1) { border-left: 0; padding: 24px 0; }
  .focus-name { font-size: 22px; }
}

/* ---------- Dark panel ---------- */
.panel { position: relative; overflow: hidden; border-radius: 28px; background: var(--ink); color: var(--air); padding: clamp(32px, 5vw, 72px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 32px 64px; align-items: center; }
.panel-copy { display: flex; flex-direction: column; gap: 20px; }
.panel-copy p { color: var(--on-ink); font-size: 18px; }
.panel-links { display: flex; flex-direction: column; gap: 14px; }
.panel-link { min-height: 56px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-radius: 16px; background: var(--ink-raised); color: var(--air); text-decoration: none; font-weight: 600; }
.panel-link:hover { background: #1C4659; color: var(--air); }
@media (max-width: 960px) { .panel { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Subscribe ---------- */
.subscribe { display: flex; justify-content: space-between; align-items: center; gap: 32px 64px; flex-wrap: wrap; }
.subscribe > div { display: flex; flex-direction: column; gap: 14px; max-width: 560px; }
.subscribe form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 15px; font-weight: 600; }
.input, .textarea, .select { width: 100%; min-height: 56px; padding: 0 20px; border-radius: 16px; border: 1.5px solid var(--field); background: var(--white); color: var(--ink); font-family: var(--body); font-size: 17px; }
.input-pill { border-radius: 999px; width: 380px; max-width: 100%; }
.textarea { min-height: 160px; padding: 16px 20px; resize: vertical; line-height: 1.5; }
.select { min-height: 48px; padding: 0 16px; border-radius: 12px; font-size: 16px; }
.input:focus, .textarea:focus, .select:focus { outline: 3px solid var(--lagoon); outline-offset: 0; border-color: var(--lagoon); }
@media (max-width: 700px) { .subscribe form, .subscribe .field { width: 100%; } .input-pill { width: 100%; } .subscribe .btn { width: 100%; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-deep); color: var(--on-ink); padding-block: 80px 48px; font-size: 16px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: 40px 24px; }
.footer-brand { display: flex; flex-direction: column; gap: 20px; max-width: 380px; }
.footer-note { font-size: 14px; color: #9DB3BA; }
.footer-col { display: flex; flex-direction: column; gap: 14px; }
.footer-col h2 { font-family: var(--body); font-size: 16px; font-weight: 600; letter-spacing: 0; color: var(--air); }
.footer-col a { color: var(--on-ink); text-decoration: none; }
.footer-col a:hover { color: var(--mist); }
.footer-base { margin-top: 56px; padding-top: 28px; border-top: 1px solid #1E4254; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Page header (inner pages) ---------- */
.page-head { background: var(--sand); }
.page-head .wrap { padding-block: clamp(56px, 7vw, 88px) clamp(40px, 5vw, 64px); display: flex; flex-direction: column; gap: 20px; }
.page-head .eyebrow { color: #8A3A26; }
.page-head .lede { max-width: 760px; }

/* ---------- Publications library ---------- */
.search { position: relative; max-width: 760px; margin-top: 12px; }
.search svg { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search .input { border-radius: 999px; padding-left: 56px; height: 60px; }
.library { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 48px; padding-block: 48px var(--section); }
.filters { display: flex; flex-direction: column; gap: 36px; align-self: start; position: sticky; top: 112px; }
.filters fieldset { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 8px; }
.filters legend, .filter-label { padding: 0 0 12px; font-size: 14px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
.check { display: flex; align-items: center; gap: 12px; min-height: 40px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--lagoon-text); }
.check .count { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-btn { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--field); background: var(--white); color: var(--ink); font-family: var(--body); font-size: 15px; cursor: pointer; }
.pill-btn:hover { border-color: var(--ink); }
.pill-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--air); }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 20px; border-bottom: 2px solid var(--ink); }
.results-bar label { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.results-bar .select { width: auto; min-height: 44px; }
.pub-row { padding: 40px 0; border-bottom: 1px solid var(--line-strong); display: flex; gap: 36px; }
.pub-row-cover { flex-shrink: 0; text-decoration: none; }
.pub-row-body { display: flex; flex-direction: column; gap: 12px; flex-grow: 1; min-width: 0; }
.pub-row h2 { font-weight: 700; font-size: clamp(26px, 2.4vw, 32px); line-height: 1.1; }
.pub-row h2 a { color: var(--ink); text-decoration: none; }
.pub-row h2 a:hover { color: var(--lagoon-text); }
.pub-row p { color: var(--muted); }
.pub-row-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.pub-row-actions .push { margin-left: auto; }
.empty { margin-top: 40px; padding: 32px; border-radius: var(--radius); border: 1.5px dashed var(--field); color: var(--muted); }
@media (max-width: 960px) {
  .library { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .filters { position: static; gap: 24px; }
  .type-filter { flex-direction: row !important; flex-wrap: wrap; column-gap: 20px !important; }
}
@media (max-width: 700px) {
  .pub-row { flex-direction: column; gap: 20px; padding: 32px 0; }
  .pub-row-actions .push { margin-left: 0; }
}

/* ---------- Single publication ---------- */
.pub-hero { position: relative; overflow: hidden; background: var(--ink); color: var(--air); }
.pub-hero .hero-ring { width: 640px; height: 640px; right: -180px; top: -200px; }
.pub-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 3fr); gap: 32px 64px; align-items: end; padding-block: 56px 88px; }
.pub-hero-copy { display: flex; flex-direction: column; gap: 24px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 15px; color: var(--on-ink); }
.crumbs a { color: var(--on-ink); }
.pub-title { font-weight: 800; font-size: clamp(48px, 7vw, 96px); line-height: 1; letter-spacing: -0.04em; }
.pub-title em { font-style: normal; color: var(--lagoon); }
.pub-meta { display: flex; flex-wrap: wrap; gap: 8px 32px; font-size: 16px; color: var(--on-ink); }
.pub-meta strong { color: var(--air); margin-right: 6px; }
.pub-hero-actions { display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 960px) { .pub-hero-grid { grid-template-columns: minmax(0, 1fr); padding-block: 40px 56px; } .pub-hero-actions { flex-direction: row; flex-wrap: wrap; } }

.pub-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 48px 96px; padding-block: clamp(56px, 7vw, 88px) var(--section); }
.pub-main { display: flex; flex-direction: column; gap: 56px; min-width: 0; }
.pub-aside { display: flex; flex-direction: column; gap: 32px; align-self: start; position: sticky; top: 112px; }
@media (max-width: 1100px) { .pub-layout { grid-template-columns: minmax(0, 1fr); } .pub-aside { position: static; } }

.block { display: flex; flex-direction: column; gap: 20px; }
.block-title { font-weight: 800; font-size: clamp(28px, 2.6vw, 36px); letter-spacing: -0.03em; line-height: 1.1; }

/* Long-form text written in Markdown */
.prose { display: flex; flex-direction: column; gap: 20px; font-size: 19px; line-height: 1.7; }
.prose h2 { margin-top: 32px; font-weight: 800; font-size: clamp(28px, 2.6vw, 36px); line-height: 1.1; letter-spacing: -0.03em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 12px; font-weight: 700; font-size: 22px; line-height: 1.25; }
.prose ul, .prose ol { margin: 0; padding-left: 24px; display: flex; flex-direction: column; gap: 8px; }
.prose blockquote { margin: 8px 0; padding: 4px 0 4px 28px; border-left: 5px solid var(--coral); font-family: var(--display); font-weight: 700; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.25; letter-spacing: -0.02em; }
.prose blockquote p { margin: 0; }
.prose strong { font-weight: 700; }

.key-box { padding: clamp(28px, 3vw, 40px); border-radius: var(--radius); background: var(--ink); color: var(--air); display: flex; flex-direction: column; gap: 24px; }
.key-box .eyebrow { color: var(--mist); }
.key-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 20px; counter-reset: k; }
.key-list li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; counter-increment: k; font-size: 18px; line-height: 1.55; color: var(--on-ink); }
.key-list li::before { content: counter(k); font-family: var(--display); font-weight: 800; font-size: 26px; color: var(--coral); line-height: 1.1; }
.key-list strong { color: var(--white); }

.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line-strong); margin-left: 7px; display: flex; flex-direction: column; }
.timeline li { position: relative; padding: 0 0 22px 28px; font-size: 17px; line-height: 1.55; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--air); border: 3px solid var(--lagoon); }
.timeline li.alert::before { background: var(--coral); border-color: var(--coral); }
.timeline b { display: block; font-family: var(--display); font-size: 17px; }

.tint-box { padding: 28px 32px; border-radius: var(--radius); background: var(--lagoon-tint); display: flex; flex-direction: column; gap: 10px; }
.tint-box h3 { font-weight: 700; font-size: 21px; }
.sand-box { background: var(--sand); }

.proposals { display: flex; flex-direction: column; border-top: 2px solid var(--ink); }
.proposal { padding: 24px 0; border-bottom: 1px solid var(--line-strong); display: grid; grid-template-columns: 56px 1fr; gap: 16px; }
.proposal-num { font-family: var(--display); font-weight: 800; font-size: 30px; color: var(--lagoon-text); line-height: 1; }
.proposal h3 { font-family: var(--body); font-size: 20px; font-weight: 700; letter-spacing: 0; margin-bottom: 6px; }
.proposal p { font-size: 17px; line-height: 1.6; color: var(--muted); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: 15px; line-height: 1.45; }
thead tr { background: var(--ink); }
th { color: var(--air); text-align: left; font-weight: 600; padding: 14px 16px; font-size: 14px; }
td { padding: 14px 16px; border-top: 1px solid var(--line); vertical-align: top; }
td:first-child { font-weight: 600; width: 28%; }
tr.chosen td { background: var(--lagoon-tint); }
.rating { display: inline-block; margin-bottom: 4px; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.rating-neg { background: var(--coral-tint); color: #9A3620; }
.rating-mix { background: #FFF1CC; color: #6B4E00; }
.rating-pos { background: #D5EFEA; color: #0B5F57; }

.side-card { padding: 32px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 24px; }
.side-card .btn { align-self: stretch; }
.side-title { font-size: 14px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; font-family: var(--body); }
.side-group { display: flex; flex-direction: column; gap: 14px; }
.side-group + .side-group { padding-top: 28px; border-top: 1px solid var(--line-strong); }
.share { display: flex; flex-wrap: wrap; gap: 10px; }
.share .btn { min-height: 44px; padding: 0 16px; font-size: 15px; font-weight: 500; border-color: var(--field); }
.cite-box { padding: 28px 32px; border-radius: 16px; background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.cite-text { font-family: Georgia, "Times New Roman", serif; font-size: 17px; line-height: 1.6; }
.refs { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.related-link { display: flex; flex-direction: column; gap: 6px; color: var(--ink); text-decoration: none; }
.related-link:hover { color: var(--lagoon-text); }
.related-link span:last-child { font-family: var(--display); font-weight: 700; font-size: 21px; line-height: 1.2; }

/* ---------- About & Our work ---------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 96px; }
.split-head { display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 960px) { .split { grid-template-columns: minmax(0, 1fr); } }
.gap-table .rating { margin-bottom: 6px; }
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 760px) { .principles { grid-template-columns: minmax(0, 1fr); } }
.acronym-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-top: 2px solid var(--ink); }
.acronym-list li { display: grid; grid-template-columns: 64px 1fr; align-items: baseline; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line-strong); font-size: 19px; }
.acronym-list b { font-family: var(--display); font-weight: 800; font-size: 34px; color: var(--lagoon-text); line-height: 1; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 48px 96px; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.form .full { grid-column: 1 / -1; }
.form-note { font-size: 15px; color: var(--muted); }
@media (max-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .form { grid-template-columns: minmax(0, 1fr); } }

/* ---------- News ---------- */
.news-list { display: flex; flex-direction: column; border-top: 2px solid var(--ink); }
.news-item { padding: 32px 0; border-bottom: 1px solid var(--line-strong); display: grid; grid-template-columns: 200px 1fr; gap: 12px 32px; }
.news-item time { color: var(--muted); font-size: 15px; font-weight: 600; }
.news-item h2 { font-weight: 700; font-size: 28px; line-height: 1.15; }
.news-item h2 a { color: var(--ink); text-decoration: none; }
@media (max-width: 700px) { .news-item { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; gap: 24px; padding-block: var(--section); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .pub-hero-actions, .share, .skip { display: none !important; }
  body { background: #fff; }
}
