/* ==========================================================================
   Ostwalden — online counselling platform.
   Design language: warm bone paper, forest/sage greens taken from the client's
   logo, a literary serif for voice and a quiet grotesque for everything else.
   Soft organic shapes carry the brand instead of decoration; the reference the
   client chose (hqtherapy.com) reads calm and unhurried, and the one she
   rejected (theselfspace.com) reads fast and loud, so every choice here leans
   slow: long line-height, low contrast motion, nothing that shouts.
   ========================================================================== */

/* --- tokens --------------------------------------------------------------- */
:root {
  --paper:      #F7F4ED;   /* warm bone ground */
  --paper-2:    #F0EBE0;   /* alternating bands */
  --paper-3:    #E5DED1;   /* cards, wells */
  --paper-deep: #1E2B25;   /* near-black green for dark bands */

  --ink:   #1E2B25;        /* headings */
  --ink-2: #3A4A42;        /* body copy */
  --ink-3: #56655C;        /* small meta — lightest tone that still passes AA */

  --forest:     #2C4A3E;   /* client's primary */
  --forest-deep:#1E3329;
  --sage:       #7A9E8E;   /* client's secondary */
  --sage-soft:  #C5D6CB;
  --sage-wash:  #E3EDE6;

  --ochre:      #C08A3E;   /* the single warm accent: CTAs, never small text */
  --ochre-deep: #8A5F22;
  --ochre-wash: #F3E7D2;

  --rule:      rgba(30, 43, 37, .15);
  --rule-soft: rgba(30, 43, 37, .08);

  --f-display: "Newsreader", "Hoefler Text", Georgia, "Times New Roman", serif;
  --f-body:    "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --gut: clamp(1.25rem, 4vw, 3.25rem);
  --max: 1360px;
  --band-y: clamp(4rem, 9vw, 8.5rem);
  --r: 14px;                /* corner radius — soft, not pill */
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --- reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--f-body);
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; color: var(--ink); }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible {
  outline: 2.5px solid var(--forest);
  outline-offset: 3px;
  border-radius: 3px;
}
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--forest); color: var(--paper);
  padding: .9rem 1.4rem; border-radius: 0 0 var(--r) 0; font-size: .95rem;
}
.skip:focus { left: 0; }
.vh {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* --- layout primitives ---------------------------------------------------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
.band { padding-block: var(--band-y); }
.band--tint { background: var(--paper-2); }
.band--wash { background: var(--sage-wash); }
.band--dark {
  background: var(--paper-deep);
  --ink: #F2EFE7; --ink-2: #CBD6CF; --ink-3: #9FB0A6;
  --rule: rgba(242, 239, 231, .18); --rule-soft: rgba(242, 239, 231, .1);
  color: var(--ink-2);
}
.band--dark .eyebrow { color: var(--sage); }

/* Editorial rail: a sticky label column beside the content. */
.rail { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); }
@media (min-width: 900px) {
  .rail { grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); }
  .rail__label { position: sticky; top: calc(var(--head-h, 72px) + 2rem); align-self: start; }
}

/* --- type ----------------------------------------------------------------- */
/* Newsreader is an optical-size variable face; large settings want a lower
   optical size and tighter tracking than its text settings. */
.display {
  font-family: var(--f-display);
  font-weight: 400;
  font-variation-settings: "opsz" 44;
  line-height: 1.08;
  letter-spacing: -.012em;
  color: var(--ink);
  text-wrap: balance;
}
.display--xl { font-size: clamp(2.6rem, 6.4vw, 5.1rem); }
.display--l  { font-size: clamp(2.05rem, 4.2vw, 3.3rem); line-height: 1.14; }
.display--m  { font-size: clamp(1.5rem, 2.5vw, 2.05rem); line-height: 1.22; letter-spacing: -.006em; }
.display--s  { font-size: clamp(1.2rem, 1.6vw, 1.42rem); line-height: 1.3; letter-spacing: 0; }
.display em { font-style: italic; color: var(--forest); }

.lede {
  font-size: clamp(1.1rem, 1.02rem + .42vw, 1.38rem);
  line-height: 1.62;
  color: var(--ink-2);
  max-width: 62ch;
  text-wrap: pretty;
}
.eyebrow {
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--forest);
  margin: 0 0 1.1rem;
}
.meta { font-size: .88rem; line-height: 1.6; color: var(--ink-3); }
.measure { max-width: 66ch; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.75rem; } .mt-4 { margin-top: 2.75rem; }
.stack > * + * { margin-top: 1rem; }
.stack-1 > * + * { margin-top: .4rem; }

/* --- links & buttons ------------------------------------------------------ */
.link {
  color: var(--forest);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
  text-decoration-color: color-mix(in srgb, var(--forest) 42%, transparent);
  transition: text-decoration-color .2s var(--ease), color .2s var(--ease);
}
.link:hover { text-decoration-color: currentColor; }
.band--dark .link, .link--on { color: var(--sage); }

.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .92rem 1.6rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: .94rem; font-weight: 500; letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  transition: background .22s var(--ease), border-color .22s var(--ease), color .22s var(--ease);
}
.btn:hover { border-color: var(--forest); background: color-mix(in srgb, var(--forest) 6%, transparent); }
.btn--solid {
  background: var(--forest); border-color: var(--forest); color: var(--paper);
}
.btn--solid:hover { background: var(--forest-deep); border-color: var(--forest-deep); color: var(--paper); }
/* Ochre only ever sits behind dark text — it has too little contrast to be a
   text or icon colour on paper. */
.btn--accent { background: var(--ochre); border-color: var(--ochre); color: #22190A; font-weight: 600; }
.btn--accent:hover { background: #B07C33; border-color: #B07C33; color: #22190A; }
.btn__arrow { transition: transform .25s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }
.band--dark .btn { border-color: rgba(242,239,231,.28); color: #F2EFE7; }
.band--dark .btn:hover { background: rgba(242,239,231,.09); border-color: rgba(242,239,231,.5); }
/* Must out-specify the rule above: the accent button keeps dark text wherever it
   sits, because paper-on-ochre is only 2.6:1. */
.band--dark .btn--accent { color: #22190A; }
.band--dark .btn--accent:hover { background: #B07C33; border-color: #B07C33; color: #22190A; }

/* --- brand shape device --------------------------------------------------- */
/* Soft organic blobs behind key sections. Decorative only, aria-hidden. */
.blob { position: absolute; z-index: 0; pointer-events: none; }
.blob svg { width: 100%; height: auto; display: block; }
.has-blobs { position: relative; overflow: clip; }
.has-blobs > .wrap { position: relative; z-index: 1; }

/* --- header --------------------------------------------------------------- */
.site-head {
  position: sticky; top: 0; z-index: 90;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.site-head.is-stuck { border-bottom-color: var(--rule-soft); background: color-mix(in srgb, var(--paper) 95%, transparent); }
.site-head__grid {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 72px; padding-block: .85rem;
}
.brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; margin-right: auto; }
/* Sized by width: the lockup is wordmark-dominant, so height is unreliable. */
.brand__logo { width: clamp(132px, 12vw, 168px); height: auto; flex: none; }
.brand__tag {
  display: none; font-size: .76rem; color: var(--ink-3);
  padding-left: .9rem; border-left: 1px solid var(--rule); line-height: 1.35; max-width: 15ch;
}
@media (min-width: 1100px) { .brand__tag { display: block; } }

.nav { display: none; gap: clamp(1.1rem, 2vw, 2rem); }
@media (min-width: 960px) { .nav { display: flex; align-items: center; } }
.nav a {
  position: relative; text-decoration: none; font-size: .93rem; color: var(--ink-2);
  padding-block: .35rem; transition: color .2s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: var(--forest); transform: scaleX(0); transform-origin: left;
  transition: transform .26s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--forest); }

.head-right { display: flex; align-items: center; gap: 1rem; }
.head-cta { display: none; }
@media (min-width: 960px) { .head-cta { display: inline-flex; padding: .65rem 1.25rem; font-size: .88rem; } }

.burger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 9px; border: 0; background: none; cursor: pointer;
}
@media (min-width: 960px) { .burger { display: none; } }
.burger span { height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.drawer {
  position: fixed; inset: 0; z-index: 85;
  background: var(--paper);
  padding: calc(var(--head-h, 72px) + 2rem) var(--gut) 2rem;
  display: flex; flex-direction: column; gap: 1rem;
  transform: translateY(-101%); transition: transform .38s var(--ease);
  overflow-y: auto;
}
.drawer[data-open="true"] { transform: translateY(0); }
@media (min-width: 960px) { .drawer { display: none; } }
.drawer__link {
  font-family: var(--f-display); font-size: clamp(1.9rem, 8vw, 2.8rem);
  line-height: 1.24; color: var(--ink); text-decoration: none; display: block; padding-block: .18rem;
}
.drawer__link[aria-current="page"] { color: var(--forest); font-style: italic; }

/* --- hero ----------------------------------------------------------------- */
.hero { padding-block: clamp(3rem, 8vw, 6.5rem) clamp(3rem, 7vw, 5.5rem); }
.hero__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 980px) { .hero__grid { grid-template-columns: 1.05fr .95fr; } }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
.hero__note { margin-top: 1.6rem; font-size: .88rem; color: var(--ink-3); max-width: 46ch; }

/* --- figures -------------------------------------------------------------- */
.figure { margin: 0; }
.figure__frame {
  position: relative; overflow: hidden; border-radius: var(--r);
  background: var(--paper-3);
}
.figure__frame img { width: 100%; height: 100%; object-fit: cover; }
.ratio-32 { aspect-ratio: 3 / 2; }
.ratio-11 { aspect-ratio: 1 / 1; }
.ratio-45 { aspect-ratio: 4 / 5; }
.figure--tall .figure__frame { aspect-ratio: 3 / 4; }
.figure__cap {
  display: flex; justify-content: space-between; gap: 1rem;
  margin-top: .7rem; font-size: .82rem; color: var(--ink-3);
}
.figure--zoom .figure__frame img { transition: transform .8s var(--ease); }
.figure--zoom:hover .figure__frame img { transform: scale(1.028); }

/* --- cards & grids -------------------------------------------------------- */
.grid { display: grid; gap: clamp(1.1rem, 2.4vw, 1.9rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 268px), 1fr)); }

.card {
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r);
  padding: clamp(1.4rem, 2.4vw, 2.1rem);
  display: flex; flex-direction: column; gap: .85rem;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.band--tint .card, .band--wash .card { background: var(--paper); }
.card:hover { border-color: var(--rule); }
.card__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.15rem; height: 2.15rem; border-radius: 8px;
  background: var(--sage-soft); color: var(--forest-deep);
  font-size: .86rem; font-weight: 600; flex: none;
}
.card__tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; padding-top: .5rem; }
.tag {
  font-size: .76rem; color: var(--ink-3);
  border: 1px solid var(--rule); border-radius: 999px; padding: .25rem .7rem;
}

/* Service rows — a fuller treatment than a card for the three services. */
.svc { border-top: 1px solid var(--rule); padding-block: clamp(2rem, 4vw, 3.2rem); }
.svc:last-child { border-bottom: 1px solid var(--rule); }
.svc__grid { display: grid; gap: clamp(1.25rem, 3vw, 2.5rem); align-items: start; }
@media (min-width: 900px) { .svc__grid { grid-template-columns: 7rem 1fr minmax(0, 19rem); } }
.svc__no { font-family: var(--f-display); font-size: 2rem; color: var(--sage); line-height: 1; }

/* --- list markers --------------------------------------------------------- */
/* Absolutely positioned, never grid columns: a grid <li> puts inline children
   into separate tracks and shreds the wrapping. */
.ticks { list-style: none; }
.ticks li { position: relative; padding-left: 1.7rem; margin-bottom: .55rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: .62rem; height: .62rem; border-radius: 50%;
  border: 1.5px solid var(--sage); background: transparent;
}
.ticks--solid li::before { background: var(--sage); border-color: var(--sage); }

/* --- callouts ------------------------------------------------------------- */
.note {
  border-left: 3px solid var(--sage);
  background: var(--sage-wash);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 1.15rem 1.35rem;
  font-size: .95rem;
}
.note--urgent { border-left-color: var(--ochre-deep); background: var(--ochre-wash); }
.note strong { color: var(--ink); }

/* Crisis strip — must be findable fast, so it is high-contrast and never
   collapsed behind an accordion. */
.crisis {
  background: var(--forest-deep); color: #EDF2EF;
  border-radius: var(--r); padding: clamp(1.15rem, 2.4vw, 1.6rem) clamp(1.25rem, 2.6vw, 1.9rem);
}
.crisis h2, .crisis h3 { color: #FFF; font-family: var(--f-display); font-size: 1.22rem; margin-bottom: .45rem; }
.crisis a { color: #B9D3C5; text-decoration: underline; text-underline-offset: .2em; }
.crisis strong { color: #FFF; }

/* --- stats ---------------------------------------------------------------- */
.facts { display: grid; gap: clamp(1.2rem, 3vw, 2.4rem); }
@media (min-width: 720px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.fact__n { font-family: var(--f-display); font-size: clamp(2.1rem, 4vw, 3rem); color: var(--forest); line-height: 1; }
.fact__t { margin-top: .5rem; font-size: .92rem; color: var(--ink-3); }

/* --- careers -------------------------------------------------------------- */
.vac { border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; }
.vac__head { padding: clamp(1.4rem, 3vw, 2.2rem); background: var(--paper-2); border-bottom: 1px solid var(--rule); }
.vac__body { padding: clamp(1.4rem, 3vw, 2.2rem); }
.vac__facts { display: grid; gap: .1rem 1.5rem; margin-top: 1.4rem; }
@media (min-width: 640px) { .vac__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.vac__facts div { display: flex; gap: .6rem; padding-block: .42rem; border-bottom: 1px solid var(--rule-soft); font-size: .92rem; }
.vac__facts dt { color: var(--ink-3); min-width: 8.5rem; flex: none; }
.vac__facts dd { margin: 0; color: var(--ink); }

/* --- forms ---------------------------------------------------------------- */
.form { display: grid; gap: 1.1rem; max-width: 40rem; }
.field { display: grid; gap: .42rem; }
.field label { font-size: .88rem; font-weight: 500; color: var(--ink); }
.field .hint { font-size: .82rem; color: var(--ink-3); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--rule); border-radius: 10px;
  padding: .8rem .95rem; width: 100%;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--forest);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--forest) 16%, transparent);
}
.field [aria-invalid="true"] { border-color: #9A3324; }
.err { font-size: .84rem; color: #8A2E20; }
/* Honeypot: off-screen rather than display:none — bots skip hidden fields. */
.hp { position: absolute !important; left: -9999px; top: 0; width: 1px; height: 1px; overflow: hidden; }
.form__status { font-size: .93rem; }
.form__status[data-state="ok"] { color: var(--forest); }
.form__status[data-state="err"] { color: #8A2E20; }

/* --- footer --------------------------------------------------------------- */
.site-foot {
  background: var(--paper-deep); color: #CBD6CF;
  --ink: #F2EFE7; --ink-2: #CBD6CF; --ink-3: #9FB0A6;
  --rule: rgba(242,239,231,.16); --rule-soft: rgba(242,239,231,.09);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.foot-top { display: grid; gap: clamp(2rem, 4vw, 3rem); }
@media (min-width: 760px) { .foot-top { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.foot-logo { width: clamp(104px, 10vw, 132px); height: auto; }
.foot-addr { font-style: normal; font-size: .9rem; line-height: 1.7; color: #9FB0A6; margin-top: 1.25rem; }
.foot-h { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #F2EFE7; margin: 0 0 .9rem; }
.foot-list { list-style: none; display: grid; gap: .5rem; font-size: .92rem; }
.foot-list a { color: #CBD6CF; text-decoration: none; }
.foot-list a:hover { color: #FFF; text-decoration: underline; text-underline-offset: .2em; }
/* The footer is dark but is not a .band--dark, so .link would otherwise stay
   forest green on near-black. */
.site-foot .link { color: var(--sage); }
.statutory { margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 1.5rem; border-top: 1px solid var(--rule); font-size: .81rem; line-height: 1.7; color: #93A49A; }
.foot-bottom { display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; justify-content: space-between; margin-top: 1.5rem; font-size: .81rem; color: #93A49A; }
.foot-bottom nav { display: flex; flex-wrap: wrap; gap: 1.1rem; }
.foot-bottom a { color: #93A49A; text-decoration: none; }
.foot-bottom a:hover { color: #E4EBE7; }

/* --- prose (legal pages) -------------------------------------------------- */
.prose { max-width: 74ch; }
.prose h2 {
  font-family: var(--f-display); font-size: clamp(1.45rem, 2.4vw, 1.95rem);
  line-height: 1.24; margin: 2.6rem 0 .85rem; color: var(--ink);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.06rem; font-weight: 600; margin: 1.9rem 0 .6rem; color: var(--ink); }
.prose p, .prose li { color: var(--ink-2); }
.prose ul, .prose ol { margin: 0 0 1.15em; padding: 0; list-style: none; }
.prose ol { counter-reset: n; }
/* Same absolute-marker rule as .ticks, for the same reason. */
.prose ul li, .prose ol li { position: relative; padding-left: 1.7rem; margin-bottom: .5rem; }
.prose ul li::before { content: "—"; position: absolute; left: 0; top: 0; color: var(--sage); }
.prose ol li::before {
  counter-increment: n; content: counter(n) "."; position: absolute; left: 0; top: 0;
  color: var(--sage); font-variant-numeric: tabular-nums;
}
.prose table { width: 100%; border-collapse: collapse; margin: 1.2rem 0 1.8rem; font-size: .9rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: .7rem .8rem; border-bottom: 1px solid var(--rule); }
.prose th { color: var(--ink); font-weight: 600; background: var(--paper-2); }
.prose .toc { background: var(--paper-2); border-radius: var(--r); padding: 1.3rem 1.5rem; }
.prose .toc ul li::before { content: none; }
.prose .toc ul li { padding-left: 0; margin-bottom: .35rem; }
.legal-meta { font-size: .88rem; color: var(--ink-3); margin-bottom: 2rem; }

/* --- cookie consent ------------------------------------------------------- */
.cc {
  position: fixed; left: var(--gut); right: var(--gut); bottom: 1.25rem; z-index: 120;
  max-width: 46rem; margin-inline: auto;
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: var(--r); box-shadow: 0 18px 50px rgba(30, 43, 37, .17);
  transform: translateY(140%); transition: transform .45s var(--ease);
}
.cc[data-open="true"] { transform: translateY(0); }
.cc__panel { padding: clamp(1.25rem, 3vw, 1.75rem); }
.cc__title { font-family: var(--f-display); font-size: 1.22rem; margin-bottom: .55rem; }
.cc__body { font-size: .92rem; color: var(--ink-2); margin-bottom: 1.1rem; }
.cc__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.cc__actions .btn { padding: .72rem 1.25rem; font-size: .9rem; }
.cc__prefs { display: none; margin-top: 1.25rem; border-top: 1px solid var(--rule); padding-top: 1.1rem; }
.cc__prefs[data-open="true"] { display: block; }
.cc__cat { display: flex; gap: 1rem; align-items: flex-start; justify-content: space-between; padding-block: .85rem; border-bottom: 1px solid var(--rule-soft); }
.cc__cat h3 { font-size: .95rem; font-weight: 600; margin-bottom: .2rem; }
.cc__cat p { font-size: .84rem; color: var(--ink-3); margin: 0; }
.switch { position: relative; flex: none; width: 46px; height: 26px; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; background: var(--paper-3); border-radius: 999px; transition: background .2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: #FFF; border-radius: 50%; transition: transform .22s var(--ease); }
.switch input:checked + span { background: var(--sage); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:disabled + span { opacity: .55; }
.switch input:focus-visible + span { outline: 2.5px solid var(--forest); outline-offset: 2px; }

/* --- reveal --------------------------------------------------------------- */
/* Scoped to .js (added by boot.js before first paint): with scripting off the
   content is simply visible, rather than invisible forever. */
.js .rv { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .rv.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; } }
