/* Natural Zen Counselling — shared tokens and base.
   Sampled from the logo lockup. Every colour here is a token; nothing is a literal. */
:root {
  --surface-page: #f7fafe; --surface-raised: #ffffff; --surface-mist: #edf3fb;
  --surface-lilac: #f1eefb; --surface-deep: #3e1b68;
  --ink: #3e1b68; --ink-body: #4b4a5a; --ink-muted: #635f75; --ink-inverse: #f6f2fd;
  --brand-violet: #7f6bc4; --brand-lavender: #af96dd; --brand-blue: #a0c0e7; --brand-periwinkle: #cbd0ef;
  --action: #5b45a0; --action-hover: #4a3789;
  --action-alt: #3e6796; --action-alt-hover: #325679;
  --on-action: #ffffff;
  --border-soft: #e2e8f4; --border-strong: #7c88a8; --focus-ring: #5b45a0;
  --note-ground: #fdf6e8; --note-ink: #6b4a12;
  --shadow-rest: 0 1px 2px rgba(62,27,104,.05), 0 4px 16px rgba(62,27,104,.05);
  --shadow-lift: 0 2px 4px rgba(62,27,104,.06), 0 12px 32px rgba(62,27,104,.1);
  --radius-sm: 8px; --radius-md: 14px; --radius-lg: 24px; --radius-xl: 36px; --radius-pill: 999px;
  --ease-out: cubic-bezier(.22,.61,.36,1);
  --ease-soft: cubic-bezier(.4,0,.2,1);
  --font-display: Fraunces, "Iowan Old Style", Georgia, serif;
  --font-body: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --maxw: 1140px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --surface-page: #191327; --surface-raised: #221a35; --surface-mist: #1e1b33;
    --surface-lilac: #241c38; --surface-deep: #120d1d;
    --ink: #f3eefc; --ink-body: #cfc8de; --ink-muted: #a79fbd; --ink-inverse: #f3eefc;
    --brand-violet: #9d87dd; --brand-lavender: #bda5e8; --brand-blue: #7fa5d4; --brand-periwinkle: #4a4470;
    --action: #a78bdf; --action-hover: #bda2ef;
    --action-alt: #8fb6df; --action-alt-hover: #a6c6e8;
    --on-action: #191327;
    --border-soft: #332a4a; --border-strong: #7a6fa4; --focus-ring: #c5aef5;
    --note-ground: #2b2416; --note-ink: #f0dcb0;
    --shadow-rest: 0 1px 2px rgba(0,0,0,.4); --shadow-lift: 0 12px 32px rgba(0,0,0,.5);
  }
}
:root[data-theme="dark"] {
  --surface-page: #191327; --surface-raised: #221a35; --surface-mist: #1e1b33;
  --surface-lilac: #241c38; --surface-deep: #120d1d;
  --ink: #f3eefc; --ink-body: #cfc8de; --ink-muted: #a79fbd; --ink-inverse: #f3eefc;
  --brand-violet: #9d87dd; --brand-lavender: #bda5e8; --brand-blue: #7fa5d4; --brand-periwinkle: #4a4470;
  --action: #a78bdf; --action-hover: #bda2ef;
  --action-alt: #8fb6df; --action-alt-hover: #a6c6e8;
  --on-action: #191327;
  --border-soft: #332a4a; --border-strong: #7a6fa4; --focus-ring: #c5aef5;
  --note-ground: #2b2416; --note-ink: #f0dcb0;
  --shadow-rest: 0 1px 2px rgba(0,0,0,.4); --shadow-lift: 0 12px 32px rgba(0,0,0,.5);
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--surface-page); color: var(--ink-body);
  font-family: var(--font-body); font-size: 17px; line-height: 29px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  font-family: var(--font-display); font-variation-settings: "SOFT" 30, "WONK" 0;
  color: var(--ink); font-weight: 400; margin: 0; text-wrap: balance;
}
h1 { font-size: clamp(31px, 4.8vw, 46px); line-height: 1.1; letter-spacing: -.014em; }
h2 { font-size: clamp(25px, 3.4vw, 32px); line-height: 1.24; }
h3 { font-size: clamp(19px, 2.2vw, 22px); line-height: 1.38; font-weight: 500; }
p { margin: 0; }
a { color: var(--action); }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: 20px; }
.section { padding-block: clamp(44px, 6.5vw, 86px); }
.eyebrow {
  font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--action); margin: 0 0 10px;
}
.lead { font-size: clamp(17px, 2vw, 19px); line-height: 1.68; color: var(--ink-body); max-width: 37rem; }
.band-lilac { background: var(--surface-lilac); }
.band-mist { background: var(--surface-mist); }
.head-block { max-width: 38rem; margin-bottom: clamp(24px, 3.2vw, 40px); }
.head-block p { margin-top: 14px; }

/* header */
header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
  background: var(--surface-page); border-bottom: 1px solid transparent;
  transition: box-shadow 160ms var(--ease-out), border-color 160ms var(--ease-out);
}
header.stuck { box-shadow: var(--shadow-rest); border-color: var(--border-soft); background: var(--surface-raised); }
.bar { display: flex; align-items: center; gap: 16px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; }
.brand-name {
  font-family: var(--font-display); font-variation-settings: "SOFT" 30, "WONK" 0;
  font-size: 20px; font-weight: 500; color: var(--ink); line-height: 1.1;
}
.brand-sub {
  display: block; font-family: var(--font-body); font-size: 9.5px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; color: var(--ink-muted);
}
nav.main { display: flex; gap: 4px; align-items: center; }
nav.main a {
  font-size: 15.5px; font-weight: 600; color: var(--ink-body); text-decoration: none;
  padding: 9px 13px; border-radius: var(--radius-pill);
  transition: color 160ms var(--ease-out), background-color 160ms var(--ease-out);
}
nav.main a.btn-primary { color: var(--on-action); }
nav.main a.btn-primary:hover { color: var(--on-action); background: var(--action-hover); }
nav.main a:hover, nav.main a[aria-current="page"] { color: var(--ink); background: var(--surface-lilac); }
.menu-btn { display: none; }

/* buttons */
.btn {
  font-family: inherit; font-size: 16px; font-weight: 600; line-height: 20px;
  padding: 14px 26px; border-radius: var(--radius-pill); border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; display: inline-flex; align-items: center;
  justify-content: center; gap: 8px; min-height: 48px;
  transition: background-color 160ms var(--ease-out), transform 160ms var(--ease-out),
              box-shadow 160ms var(--ease-out), border-color 160ms var(--ease-out);
}
.btn-primary { background: var(--action); color: var(--on-action); }
.btn-primary:hover { background: var(--action-hover); transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.btn-secondary { background: transparent; color: var(--action); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--action); transform: translateY(-1px); }
.btn-sm { padding: 11px 20px; font-size: 15px; min-height: 44px; }
.btn-light { background: var(--surface-raised); color: var(--action); }
.btn-light:hover { transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.btn-ghost-light { background: transparent; color: var(--ink-inverse); border-color: rgba(246,242,253,.45); }
.btn-ghost-light:hover { border-color: var(--ink-inverse); transform: translateY(-1px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* page head */
.pagehead { padding-block: clamp(32px, 5vw, 58px) clamp(10px, 2vw, 18px); }
.crumbs { font-size: 14px; color: var(--ink-muted); margin-bottom: 18px; }
.crumbs a { color: var(--ink-muted); text-decoration: none; }
.crumbs a:hover { color: var(--action); text-decoration: underline; text-underline-offset: 3px; }

/* notes */
.note {
  background: var(--note-ground); color: var(--note-ink); border-radius: var(--radius-lg);
  padding: 20px 24px; font-size: 15.5px; line-height: 26px; margin-top: 24px; max-width: 48rem;
}
.note p + p { margin-top: 12px; }
.note a { color: var(--note-ink); font-weight: 600; }
.todo {
  display: inline-block; margin-top: 14px; font-size: 13px; line-height: 20px;
  background: var(--note-ground); color: var(--note-ink);
  border: 1px dashed var(--note-ink); border-radius: var(--radius-sm); padding: 7px 11px;
}

/* footer */
footer { background: var(--surface-deep); color: var(--ink-inverse); }
.foot-cta { padding-block: clamp(48px, 6.5vw, 84px); text-align: center; border-bottom: 1px solid rgba(246,242,253,.16); }
.foot-cta h2 { color: var(--ink-inverse); margin-bottom: 14px; }
.foot-cta p { color: rgba(246,242,253,.8); max-width: 36rem; margin: 0 auto 26px; }
.foot-cta .btn-row { justify-content: center; }
.foot-cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 32px; padding-block: clamp(36px, 5vw, 58px); }
.foot-cols { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr); }
.foot-cols h3 { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(246,242,253,.62); margin: 0 0 14px; font-family: var(--font-body); }
.foot-cols a { color: var(--ink-inverse); text-decoration: none; font-size: 15px; line-height: 30px; opacity: .88; }
.foot-cols a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; }
.foot-cols p { font-size: 15px; line-height: 27px; color: rgba(246,242,253,.8); }
.crisis { background: rgba(246,242,253,.09); border-radius: var(--radius-md); padding: 16px 20px; font-size: 14.5px; line-height: 24px; color: var(--ink-inverse); margin-top: 8px; }
.crisis a { text-decoration: underline; text-underline-offset: 3px; }
.foot-base {
  border-top: 1px solid rgba(246,242,253,.16); padding-block: 22px;
  display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center;
  font-size: 13.5px; color: rgba(246,242,253,.65);
}
.foot-base a { color: rgba(246,242,253,.8); text-decoration: none; font-size: 13.5px; }

/* reveal — default visible, JS opts in */
.js-reveal .reveal { opacity: .001; transform: translateY(16px); }
.js-reveal .reveal.in { opacity: 1; transform: none; transition: opacity 520ms var(--ease-out), transform 520ms var(--ease-out); }
.js-reveal .reveal.in.s1 { transition-delay: 60ms; }
.js-reveal .reveal.in.s2 { transition-delay: 120ms; }

.proto { background: var(--ink); color: var(--surface-page); font-size: 13px; line-height: 20px; padding: 9px 20px; text-align: center; }

@media (max-width: 940px) {
  .foot-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  nav.main { display: none; }
  nav.main.open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
    align-items: stretch; background: var(--surface-raised); border-top: 1px solid var(--border-soft);
    box-shadow: var(--shadow-lift); padding: 10px 16px 18px; gap: 2px;
  }
  nav.main.open a { padding: 13px 14px; border-radius: var(--radius-md); }
  nav.main.open .btn { margin-top: 8px; }
  .menu-btn {
    display: inline-flex; align-items: center; background: transparent;
    border: 1.5px solid var(--border-strong); border-radius: var(--radius-pill);
    padding: 9px 16px; font-family: inherit; font-size: 15px; font-weight: 600;
    color: var(--ink); cursor: pointer; min-height: 44px;
  }
  header { position: relative; }
}
@media (max-width: 620px) {
  .wrap { padding-inline: 16px; }
  .foot-cols { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .menu-btn, nav.main.open .btn { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}

/* ------------------------------------------------------------------ *
 * Phone layout guard.
 *
 * Several page stylesheets carry their own copy of these grid rules.
 * Those copies are concatenated after this file, so at equal specificity
 * they were winning and holding the footer at four columns on a phone,
 * which made every page scroll sideways. These selectors are one step
 * more specific on purpose, so the phone layout always wins, and the
 * tracks are minmax(0, …) so a long word can never push a column wider
 * than the screen.
 * ------------------------------------------------------------------ */
@media (max-width: 940px) {
  footer .foot-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  body .legal-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  footer .foot-cols { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  body .contact-grid { grid-template-columns: minmax(0, 1fr); }
}
/* Shared layout for the privacy and terms pages.
   Long-form policy text with a sticky contents rail. */

.legal-grid {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

/* Contents rail */
.toc { position: sticky; top: 92px; }
.toc h2 {
  font-family: var(--font-body);
  font-size: 11.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-muted); margin-bottom: 14px;
}
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a {
  display: block; padding: 7px 0 7px 26px; position: relative;
  font-size: 14.5px; line-height: 21px;
  color: var(--ink-body); text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color 180ms var(--ease-out);
}
.toc a::before {
  content: counter(toc); position: absolute; left: 0; top: 7px;
  font-size: 12px; font-weight: 700; color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}
.toc a:hover { color: var(--action); text-decoration: underline; text-underline-offset: 3px; }
.toc a:hover::before { color: var(--action); }
.toc a:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }

/* Prose column */
.legal { max-width: 68ch; }
.legal > section { scroll-margin-top: 96px; }
.legal > section + section {
  margin-top: clamp(34px, 4.2vw, 52px);
  padding-top: clamp(34px, 4.2vw, 52px);
  border-top: 1px solid var(--border-soft);
}
.legal h2 { font-size: clamp(23px, 2.5vw, 28px); margin-bottom: 16px; }
.legal h3 { font-size: 18px; margin: 30px 0 10px; }
.legal p { font-size: 17px; line-height: 30px; color: var(--ink-body); }
.legal p + p { margin-top: 15px; }
.legal ul { margin: 15px 0 0; padding: 0; list-style: none; }
.legal ul li {
  position: relative; padding-left: 24px;
  font-size: 17px; line-height: 29px; color: var(--ink-body);
}
.legal ul li + li { margin-top: 10px; }
.legal ul li::before {
  content: ""; position: absolute; left: 4px; top: 12px;
  width: 6px; height: 6px; border-radius: var(--radius-pill);
  background: var(--brand-lavender);
}
.legal strong { color: var(--ink); font-weight: 700; }
.legal a { font-weight: 600; }

/* The plain-language summary at the top */
.summary {
  background: var(--surface-lilac);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 34px);
  margin-bottom: clamp(34px, 4.2vw, 48px);
}
.summary h2 { font-size: 20px; margin-bottom: 14px; }
.summary ul li::before { background: var(--action); }
.summary ul li { color: var(--ink-body); }

/* A single highlighted paragraph inside a section */
.pullout {
  background: var(--surface-mist);
  border-left: 3px solid var(--brand-violet);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 18px 22px;
  margin-top: 20px;
}
.pullout p { font-size: 16px; line-height: 27px; }

/* Retention / collection tables */
.legal table {
  width: 100%; border-collapse: collapse; margin-top: 20px;
  font-size: 15.5px; line-height: 24px;
}
.legal caption {
  text-align: left; font-size: 13.5px; line-height: 21px;
  color: var(--ink-muted); margin-bottom: 10px;
}
.legal th, .legal td {
  text-align: left; vertical-align: top;
  padding: 13px 16px 13px 0;
  border-bottom: 1px solid var(--border-soft);
}
.legal th {
  font-size: 11.5px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-muted);
  padding-top: 0;
}
.legal td { color: var(--ink-body); }
.legal td:first-child { color: var(--ink); font-weight: 600; padding-right: 24px; }

.updated {
  font-size: 14.5px; line-height: 23px; color: var(--ink-muted);
  margin-top: clamp(34px, 4.2vw, 48px);
  padding-top: 22px; border-top: 1px solid var(--border-soft);
}

@media (max-width: 900px) {
  .legal-grid { grid-template-columns: 1fr; gap: 30px; }
  .toc { position: static; }
  .toc ol { columns: 2; column-gap: 28px; }
  .toc li { break-inside: avoid; }
  .legal table, .legal thead, .legal tbody, .legal tr, .legal th, .legal td { display: block; }
  .legal th { display: none; }
  .legal tr { padding: 14px 0; border-bottom: 1px solid var(--border-soft); }
  .legal td { border: 0; padding: 0; }
  .legal td:first-child { margin-bottom: 4px; }
}
@media (max-width: 520px) {
  .toc ol { columns: 1; }
}
/* Natural Zen Counselling — article layout.
   Loaded alongside nz-shared.css on every article page, so the four
   articles share one cached stylesheet instead of repeating it inline. */
h1 { font-size: clamp(30px, 4.6vw, 44px); line-height: 1.12; letter-spacing: -.013em; }
h2 { font-size: clamp(23px, 3vw, 29px); line-height: 1.26; margin-top: clamp(36px, 4.5vw, 54px); }
h3 { font-size: 20px; line-height: 1.4; font-weight: 500; margin-top: 30px; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding-inline: 20px; }
.col { width: 100%; max-width: 39rem; margin: 0 auto; padding-inline: 20px; }
.arthead { padding-block: clamp(30px, 4.5vw, 54px) 0; }
.eyebrow {
    font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--action); margin: 0 0 12px;
  }
.arthead h1 { margin-bottom: 20px; text-wrap: balance; }
.standfirst { font-size: clamp(18.5px, 2.2vw, 21px); line-height: 1.6; color: var(--ink-body); text-wrap: pretty; }
.byline {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px;
    margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--border-soft);
    font-size: 14.5px; line-height: 22px; color: var(--ink-muted);
  }
.byline strong { color: var(--ink); font-weight: 700; font-size: 15px; }
.byline span:not(:last-child)::after {
    content: ""; display: inline-block; vertical-align: middle;
    width: 3px; height: 3px; border-radius: var(--radius-pill);
    background: currentColor; opacity: .55; margin-left: 14px;
  }
article { padding-block: clamp(6px, 1vw, 12px) clamp(40px, 5vw, 64px); }
article p { font-size: 18px; line-height: 32px; text-wrap: pretty; }
article p + p { margin-top: 22px; }
article h2, article h3 { text-wrap: balance; }
article h2 + p, article h3 + p { margin-top: 14px; }
article > p > a, article li > a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
article ul { margin: 20px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
article ul li { font-size: 17.5px; line-height: 30px; padding-left: 28px; position: relative; text-wrap: pretty; }
article ul li::before {
    content: ""; position: absolute; left: 0; top: 11px; width: 8px; height: 8px;
    border-radius: var(--radius-pill); background: var(--brand-lavender);
  }
article strong { color: var(--ink); font-weight: 700; }
.table-scroll { overflow-x: auto; margin-top: 24px; border: 1px solid var(--border-soft); border-radius: var(--radius-lg); }
.table-scroll table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; background: var(--surface-raised); }
.table-scroll th, .table-scroll td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--border-soft); vertical-align: top; line-height: 23px; }
.table-scroll thead th { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); background: var(--surface-mist); }
.table-scroll tbody th { font-weight: 700; color: var(--ink); font-size: 15px; }
.table-scroll tr:last-child td, .table-scroll tr:last-child th { border-bottom: 0; }
.pull {
    margin: clamp(32px, 4vw, 46px) 0; padding: 26px 30px;
    background: var(--surface-lilac); border-radius: var(--radius-lg);
    font-family: var(--font-display); font-variation-settings: "SOFT" 30, "WONK" 0;
    font-size: clamp(20px, 2.4vw, 24px); line-height: 1.48; color: var(--ink); text-wrap: pretty;
  }
.note {
    background: var(--note-ground); color: var(--note-ink); border-radius: var(--radius-lg);
    padding: 22px 26px; font-size: 16px; line-height: 27px; margin-top: 30px;
  }
.note p + p { margin-top: 12px; }
.cta-box {
    margin-top: clamp(40px, 5vw, 56px); background: var(--surface-raised);
    border: 1px solid var(--border-soft); border-radius: var(--radius-lg);
    padding: clamp(24px, 3.4vw, 36px); box-shadow: var(--shadow-rest);
  }
.cta-box h2 { margin-top: 0; font-size: clamp(21px, 2.6vw, 26px); margin-bottom: 12px; }
.cta-box p { font-size: 17px; line-height: 29px; }
.cta-box .btn-row { margin-top: 22px; }
.sources { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--border-soft); }
.sources h3 { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    color: var(--ink-muted); font-family: var(--font-body); margin: 0 0 12px; }
.sources ul { margin: 0; }
.sources li { font-size: 14.5px; line-height: 24px; }
.sources li::before { background: var(--brand-periwinkle); top: 9px; }
.updated { margin-top: 20px; font-size: 14px; color: var(--ink-muted); }
.author-box {
    margin-top: clamp(36px, 4.5vw, 52px); display: flex; gap: 20px; align-items: flex-start;
    background: var(--surface-mist); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 30px);
  }
.author-box .kicker {
    font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--ink-muted); margin: 0 0 7px;
  }
.author-box h3 { margin: 0 0 8px; font-size: 19px; }
.author-box p { font-size: 16px; line-height: 27px; }
.author-box a { font-weight: 600; }
.related { background: var(--surface-lilac); padding-block: clamp(40px, 5.5vw, 72px); }
.related h2 { margin-top: 0; margin-bottom: 24px; }
.rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rel-card {
    background: var(--surface-raised); border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg); padding: 22px 24px; text-decoration: none; display: block;
    transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out), border-color 260ms var(--ease-out);
  }
.rel-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: var(--action); }
.rel-card .kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--action); margin-bottom: 9px; }
.rel-card h3 { margin: 0 0 8px; font-size: 18px; }
.rel-card p { font-size: 14.5px; line-height: 23px; color: var(--ink-muted); }
@media (max-width: 940px) {
.rel-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
.rel-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
.wrap, .col { padding-inline: 16px; }
.author-box { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ------------------------------------------------------------------ *
 * On this page — a contents list. Earns its place on a phone, where a
 * long article otherwise gives no sense of its own shape.
 * ------------------------------------------------------------------ */
.toc-art {
  background: var(--surface-mist); border-radius: var(--radius-lg);
  padding: 20px 24px; margin: 28px 0 34px;
}
.toc-art .toc-title {
  font-size: 11.5px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-muted); margin: 0 0 12px;
}
.toc-art ol { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.toc-art li { counter-increment: t; }
.toc-art li + li { margin-top: 2px; }
.toc-art a {
  display: block; position: relative; padding: 8px 0 8px 26px;
  font-size: 16px; line-height: 24px; color: var(--ink-body);
  text-decoration: none; border-radius: var(--radius-sm);
}
.toc-art a::before {
  content: counter(t); position: absolute; left: 0; top: 8px;
  font-size: 12px; font-weight: 700; color: var(--action);
  font-variant-numeric: tabular-nums;
}
.toc-art a:hover { color: var(--action); text-decoration: underline; text-underline-offset: 3px; }
article h2, article h3 { scroll-margin-top: 96px; }


/* ------------------------------------------------------------------ *
 * The header artwork. Each article carries its own, drawn in the brand
 * palette, and each one holds its own ground so the single file sits
 * correctly on the light page and the dark one.
 * ------------------------------------------------------------------ */
.art-hero {
  width: 100%; max-width: 52rem; margin: clamp(26px, 3.4vw, 38px) auto 0;
  padding-inline: 20px;
}
.art-hero img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-rest);
}

/* ------------------------------------------------------------------ *
 * Keep reading. Somebody who has got this far into an article is the
 * person most likely to want the next one, so this is where it goes.
 * ------------------------------------------------------------------ */
.readmore {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 20px 28px;
  background: var(--surface-mist); border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 30px);
  margin: clamp(34px, 4.5vw, 50px) 0;
}
.readmore > div { flex: 1 1 18rem; }
.readmore .kicker {
  font-size: 11.5px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--action); margin: 0 0 8px;
}
.readmore h2 { margin: 0 0 8px; font-size: clamp(20px, 2.3vw, 24px); line-height: 1.26; }
.readmore p { margin: 0; font-size: 16px; line-height: 26px; color: var(--ink-body); }
.readmore .btn { flex: none; }

.rel-more { margin: 26px 0 0; }

@media (max-width: 620px) {
  .art-hero { padding-inline: 16px; }
  .art-hero img { border-radius: var(--radius-md); }
  .readmore { padding: 22px 20px; }
  .readmore .btn { width: 100%; }
  article p { font-size: 17.5px; line-height: 31px; }
  article ul li { font-size: 17px; line-height: 29px; }
}

/* Skip link: visible only once it has focus. */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--action); color: var(--on-action);
  padding: 12px 20px; border-radius: 0 0 var(--radius-md) 0;
  font-weight: 700; text-decoration: none;
}
.skip:focus { left: 0; }

/* A section opened from the menu should clear the sticky header. */
section[id], div[id], main[id] { scroll-margin-top: 92px; }

