/* Cornerstone Talent Group website stylesheet (Round 3 design).
   The live brand restored on the calm Round 2 foundation:
   - exact live tokens: deep teal #102A30, ivory #F7F5EF, gold #C8AB73 and the supporting live palette;
   - the live serif (Iowan Old Style / Palatino) and sans (Avenir Next / Helvetica Neue) system stacks, no webfonts;
   - dark sticky header, dark two-column homepage hero with the live photograph, compact dark page heads;
   - ivory reading surfaces separated by whitespace and single rules; square corners, no shadows. */

:root {
  /* Live palette (cornerstonetalentgrp.com /styles/site.css) */
  --ink: #102A30;
  --ink-2: #17383E;
  --ink-3: #214950;
  --ivory: #F7F5EF;
  --paper: #EEEBE3;
  --white: #FFFEFA;
  --stone: #D9D3C7;
  --sage: #9BADA8;
  --gold: #C8AB73;
  --gold-soft: #E4D4B4;
  --gold-text: #79602F;
  --muted: #5F6B69;
  --line: #08191D26;
  --line-light: #FFFFFF2B;
  /* Live component values */
  --header-bg: #091C20F7;
  --header-rule: #FFFFFF1F;
  --on-dark-soft: #C8D2D0;
  --nav-text: #C8D1CF;
  --action-border: #C8AB73B3;
  --outline-on-dark: #AFBEB7;
  /* Functional colours: errors and focus */
  --error: #8C2A1E;
  --focus: #214950;
  /* Live type stacks */
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  /* Layout */
  --max: 1200px;
  --gutter: clamp(20px, 4.5vw, 78px);
  --col-gap: clamp(32px, 6vw, 96px);
  --space-section: clamp(72px, 9vw, 128px);
  --space-rule: clamp(36px, 4.5vw, 60px);
  --header-h: 78px;
}

/* ---------- Base ---------- */

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

/* Fragment targets land once, instantly, 24px below the sticky header. One offset only: the root
   scroll-padding. No smooth scrolling (it left fragment navigations mid-animation) and no per-element
   scroll-margin (it doubled the offset). Section anchors sit on their heading blocks in the markup. */
html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  scroll-behavior: auto;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, dt, figure, blockquote, fieldset, legend { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
svg { display: block; max-width: 100%; }
img { max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.015em;
  text-wrap: balance;
}
h2 { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem); }
h3 { font-size: clamp(1.3125rem, 1.15rem + .55vw, 1.625rem); line-height: 1.2; letter-spacing: -.01em; }
p { text-wrap: pretty; }
strong, b { font-weight: 700; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
::selection { background: var(--ink-3); color: var(--white); }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.nowrap { white-space: nowrap; }
.email { overflow-wrap: anywhere; }

/* Dark surfaces share one set of overrides */
.on-dark, .site-header, .page-head, .hero, .site-footer, .calc-results, .article-close {
  --focus: var(--gold-soft);
}
main:focus { outline: none; }

/* ---------- Eyebrows, ledes, small type ---------- */

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 18px;
  font-family: var(--sans); font-size: .8125rem; font-weight: 600; line-height: 1.5;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--gold-text);
}
.eyebrow::before { content: ""; flex: none; width: 26px; height: 0; border-top: 1px solid var(--gold); }
.page-head .eyebrow, .hero .eyebrow, .on-dark .eyebrow, .calc-results .eyebrow, .article-close .eyebrow { color: var(--gold-soft); }

.lede {
  margin-top: clamp(20px, 2.4vw, 28px);
  max-width: 38em;
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);
  line-height: 1.7;
}

.statement {
  max-width: 26em;
  font-family: var(--serif);
  font-size: clamp(1.375rem, 1.15rem + .9vw, 1.875rem);
  line-height: 1.3;
  letter-spacing: -.01em;
}

.small, .meta { font-size: .9375rem; line-height: 1.55; color: var(--muted); }

/* ---------- Actions ---------- */

.arrow { flex: none; width: 18px; height: 18px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 12px 24px;
  background: var(--gold); color: var(--ink);
  border: 1px solid var(--gold-text); border-radius: 0;
  font-family: var(--sans); font-size: 1rem; font-weight: 600; line-height: 1.3; letter-spacing: .01em;
  text-align: left; text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { background: var(--gold-soft); border-color: var(--gold); }
.page-head .btn, .hero .btn, .on-dark .btn, .calc-results .btn, .article-close .btn { border-color: var(--gold); }

.btn-outline { background: transparent; color: var(--white); border-color: var(--outline-on-dark); }
.btn-outline:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

.btn-quiet { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-quiet:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

.text-link {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-weight: 600;
  text-decoration: underline; text-decoration-color: var(--gold);
  text-decoration-thickness: 1.5px; text-underline-offset: 6px;
}
.text-link:hover { color: var(--gold-text); text-decoration-thickness: 2px; }
.page-head .text-link, .hero .text-link, .on-dark .text-link { color: var(--gold-soft); }
.page-head .text-link:hover, .hero .text-link:hover, .on-dark .text-link:hover { color: var(--white); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: clamp(28px, 3.4vw, 40px); }

/* ---------- Skip link ---------- */

.skip {
  position: absolute; left: var(--gutter); top: 8px; z-index: 80;
  padding: 10px 16px; background: var(--white); color: var(--ink); font-weight: 600;
  border: 2px solid var(--ink);
  transform: translateY(-300%);
}
.skip:focus { transform: none; }

/* ---------- Header and navigation (dark, sticky, full width like the live site) ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg); color: var(--white);
  border-bottom: 1px solid var(--header-rule);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px;
  min-height: var(--header-h); padding-inline: var(--gutter);
}

.brand { display: inline-flex; align-items: center; min-height: 44px; color: var(--white); text-decoration: none; }
.brand-logo { width: clamp(176px, 15vw, 218px); height: auto; overflow: visible; shape-rendering: geometricPrecision; text-rendering: geometricPrecision; }
.brand-logo-name { fill: currentColor; font: 400 36px/1 var(--sans); letter-spacing: -1.35px; }
.brand-logo-subtitle { fill: currentColor; font: 700 9px/1 var(--sans); letter-spacing: 5px; }

.menu-toggle { display: none; }

.site-nav { margin-left: auto; }
.site-nav ul { display: flex; flex-wrap: wrap; align-items: center; gap: 0 clamp(14px, 1.8vw, 30px); }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--nav-text); font-size: .9375rem; font-weight: 500; letter-spacing: .01em;
  text-decoration: none; transition: color .2s ease;
}
.site-nav a:hover { color: var(--white); }
.site-nav a[aria-current] { color: var(--white); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1.5px; text-underline-offset: 9px; }
.site-nav .nav-contact {
  margin-left: clamp(4px, 1vw, 14px); padding: 0 18px;
  color: var(--gold-soft); border: 1px solid var(--action-border);
  font-weight: 600; letter-spacing: .035em;
}
.site-nav .nav-contact:hover,
.site-nav .nav-contact[aria-current] { background: var(--gold); border-color: var(--gold); color: var(--ink); text-decoration: none; }

@media (max-width: 1079px) {
  :root { --header-h: 70px; }
  .site-nav { flex-basis: 100%; margin-left: 0; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding-block: 4px 22px; }
  .site-nav li + li { border-top: 1px solid var(--line-light); }
  .site-nav a {
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    min-height: 54px; color: var(--white); font-size: 1.0625rem;
  }
  .site-nav a::after {
    content: ""; flex: none; width: 8px; height: 8px; margin-right: 6px;
    border-top: 1.5px solid var(--gold); border-right: 1.5px solid var(--gold); transform: rotate(45deg);
  }
  .site-nav a[aria-current] { text-underline-offset: 6px; }
  .site-nav li:last-child { border-top: 0; }
  .site-nav .nav-contact { margin: 14px 0 0; padding: 0 16px; border-color: var(--gold); }
  .site-nav .nav-contact::after { border-color: currentColor; }

  .js .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    margin-left: auto; min-height: 44px; min-width: 92px; padding: 0 16px;
    background: transparent; color: var(--white);
    border: 1px solid var(--outline-on-dark); border-radius: 0;
    font-size: .9375rem; font-weight: 600; letter-spacing: .04em; cursor: pointer;
  }
  .menu-toggle .bars { position: relative; width: 16px; height: 10px; border-block: 1.5px solid currentColor; }
  .menu-toggle[aria-expanded="true"] .bars { height: 0; border-bottom: 0; }
  .js .menu-toggle:hover { border-color: var(--gold-soft); color: var(--gold-soft); }
  .js .menu-toggle[aria-expanded="true"] { border-color: var(--gold); color: var(--gold-soft); }
  .js .site-nav { display: none; }
  @media (max-width: 359px) {
    .header-inner { gap: 0 12px; }
    .brand-logo { width: 150px; }
    .js .menu-toggle { min-width: 0; padding: 0 12px; }
  }
  .js .site-nav.is-open {
    display: block;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto; overscroll-behavior: contain;
  }
}

/* ---------- Homepage hero: the live dark branded frame with the live photograph ---------- */

.hero {
  display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  min-height: clamp(560px, 46vw, 680px);
  background: var(--ink); color: var(--white);
  overflow: hidden;
}
.hero-copy { align-self: center; padding: clamp(64px, 7vw, 104px) clamp(28px, 5vw, 84px) clamp(64px, 7vw, 96px) var(--gutter); }
.hero h1 {
  max-width: 13em;
  font-size: clamp(2.25rem, 1.15rem + 3.7vw, 4.3125rem);
  line-height: 1.04; letter-spacing: -.035em;
}
@media (max-width: 359px) { .hero h1, .page-head h1 { font-size: 2rem; } }
.hero h1 em, .page-head h1 em { font-style: italic; color: var(--gold-soft); }
.hero-kicker {
  margin-top: clamp(22px, 2.6vw, 30px); padding-left: 18px;
  border-left: 2px solid var(--gold);
  font-family: var(--serif); font-size: clamp(1.375rem, 1.1rem + .9vw, 1.875rem); line-height: 1.2; letter-spacing: -.01em;
  color: var(--white);
}
.hero-intro { margin-top: 18px; max-width: 34em; color: var(--on-dark-soft); font-size: 1.125rem; line-height: 1.7; }
.hero-visual { position: relative; min-height: 100%; background: var(--ink-2); overflow: hidden; }
.hero-visual img {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  object-fit: cover; object-position: 57% center;
  filter: saturate(.72) contrast(1.06);
}
@media (max-width: 899px) {
  .hero { display: block; min-height: 0; }
  .hero-copy { padding: clamp(48px, 9vw, 72px) var(--gutter) clamp(44px, 8vw, 64px); }
  .hero-visual { height: clamp(230px, 58vw, 420px); }
  .hero-visual img { object-position: center 40%; }
}
@media (max-width: 559px) {
  .hero .actions .btn { width: 100%; justify-content: space-between; }
}

/* ---------- Interior page head (compact dark band) ---------- */

.page-head { background: var(--ink); color: var(--white); padding-block: clamp(56px, 7vw, 104px) clamp(52px, 6vw, 88px); }
.page-head h1 {
  max-width: 15em;
  font-size: clamp(2.375rem, 1.3rem + 3vw, 4rem);
  line-height: 1.05; letter-spacing: -.03em;
}
.page-head .lede { color: var(--on-dark-soft); }
.page-head .lede a, .page-head .scope-note a { color: var(--gold-soft); }
.page-head .scope-note { margin-top: 16px; max-width: 38em; color: var(--on-dark-soft); }
.page-head .meta { margin-top: 18px; color: var(--sage); }
.page-head .meta a { color: var(--gold-soft); }

.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 22px; font-size: .9375rem; color: var(--sage); }
.breadcrumb li + li::before { content: "/"; margin-right: 10px; color: var(--sage); }
.breadcrumb a { color: var(--gold-soft); display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Sections: a rule, then a title column and a body column ---------- */

.section { padding-top: var(--space-section); }
.section:last-child, .section--last { padding-bottom: var(--space-section); }
.band { background: var(--paper); padding-block: var(--space-section); margin-top: var(--space-section); }
.band + .section { padding-top: var(--space-section); }

.section-grid {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px;
  padding-top: var(--space-rule); border-top: 1px solid var(--line);
}
.band .section-grid { border-top: 0; padding-top: 0; }
.section-intro { margin-top: 14px; max-width: 24em; color: var(--muted); }
.section-intro a { color: var(--ink); }
@media (min-width: 900px) {
  .section-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: var(--col-gap); }
  .section-grid--stack { grid-template-columns: minmax(0, 1fr); }
}

.body-copy { max-width: 38em; }
.body-copy > * + * { margin-top: 1em; }
.body-copy .statement + p { margin-top: 28px; }

/* ---------- Steps (numbered, gold numerals) ---------- */

.steps { display: grid; gap: clamp(32px, 4vw, 52px); counter-reset: step; }
.step { position: relative; padding-left: clamp(52px, 5vw, 72px); counter-increment: step; }
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: .1em;
  font-family: var(--serif); font-size: clamp(1.3125rem, 1.15rem + .55vw, 1.625rem); line-height: 1.2;
  color: var(--gold-text);
}
.step h3 { margin-bottom: 10px; }
.step p { max-width: 38em; }
.step p + p { margin-top: 12px; }
.boundary { font-size: .9375rem; line-height: 1.55; color: var(--muted); }
.step .boundary { padding-left: 14px; border-left: 2px solid var(--stone); }

/* ---------- Home: audience paths and resource pair ---------- */

.paths { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--line); }
.path { padding-top: var(--space-rule); }
.path + .path { margin-top: var(--space-rule); border-top: 1px solid var(--line); }
.path h2 { margin-bottom: 14px; }
.path p { max-width: 30em; }
.path .actions { margin-top: 14px; }
@media (min-width: 760px) {
  .paths { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .path { padding-right: var(--col-gap); }
  .path + .path { margin-top: 0; border-top: 0; border-left: 1px solid var(--line); padding-left: var(--col-gap); padding-right: 0; }
}

.pair { display: grid; gap: 0; border-top: 1px solid var(--line); }
.pair li { padding-block: 22px; border-bottom: 1px solid var(--line); }
.pair h3 { margin-bottom: 6px; }
.pair h3 a { text-decoration-color: var(--gold); text-underline-offset: .18em; }
.pair p { color: var(--muted); max-width: 36em; }

/* ---------- Employers: roles and settings ---------- */

.scope { display: grid; gap: 40px var(--col-gap); }
@media (min-width: 700px) { .scope { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.scope h3 { margin-bottom: 10px; }
.scope p { color: var(--muted); max-width: 32em; }
.scope .plain-list { margin-top: 14px; }
.scope-tag { display: inline-block; margin-bottom: 8px; font-size: .8125rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-text); }
.caveat { margin-top: clamp(28px, 3vw, 40px); max-width: 44em; padding-left: 14px; border-left: 2px solid var(--gold); color: var(--muted); font-size: .9375rem; }

.plain-list { display: grid; gap: 8px; }
.plain-list li { position: relative; padding-left: 22px; }
.plain-list li::before { content: ""; position: absolute; left: 0; top: .82em; width: 10px; border-top: 1.5px solid var(--gold); }

.cell-label { display: block; font-size: .8125rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-text); }

/* ---------- Lenses / three-up lists ---------- */

.three-up { display: grid; gap: 32px var(--col-gap); }
@media (min-width: 900px) { .three-up { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.three-up h3 { margin-bottom: 10px; }
.three-up p { color: var(--muted); }
.assurance { margin-top: clamp(28px, 3vw, 40px); font-weight: 600; max-width: 40em; }

/* ---------- Definition outline (candidate introduction) ---------- */

.outline { display: grid; border-top: 1px solid var(--line); }
.outline > div { display: grid; gap: 6px 32px; padding-block: 20px; border-bottom: 1px solid var(--line); }
@media (min-width: 700px) { .outline > div { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.outline dt { font-family: var(--serif); font-size: 1.25rem; line-height: 1.3; }
.outline dd { color: var(--muted); }
.download-note { margin-top: 10px; max-width: 40em; color: var(--muted); font-size: .9375rem; }

/* ---------- Closing line ---------- */

.closing p { max-width: 34em; }
.closing .small { margin-top: 20px; }
.closing .actions { margin-top: 26px; }

/* ---------- About ---------- */

.values-list { display: grid; gap: 36px var(--col-gap); margin-top: clamp(36px, 4.4vw, 56px); }
@media (min-width: 900px) { .values-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.values-list h3 { margin-bottom: 10px; }
.values-list li { padding-top: 18px; border-top: 2px solid var(--gold); }

/* ---------- Native disclosures (FAQ answers, care settings) ---------- */

.folds { border-top: 1px solid var(--line); }
.fold { border-bottom: 1px solid var(--line); }
.fold > summary {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 64px; padding: 16px 0; cursor: pointer; list-style: none;
  font-family: var(--serif); font-size: clamp(1.1875rem, 1.1rem + .35vw, 1.375rem);
  line-height: 1.3; letter-spacing: -.008em;
}
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::before, .fold > summary::after { content: ""; flex: none; color: var(--gold-text); }
.fold > summary::after { width: 16px; height: 0; border-top: 2px solid; }
.fold > summary::before {
  position: absolute; right: 7px; top: 50%; width: 0; height: 16px; margin-top: -8px;
  border-left: 2px solid; transition: transform .2s ease;
}
.fold[open] > summary::before { transform: rotate(90deg); }
.fold > summary:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: var(--gold); }
.fold-body { padding: 0 0 26px; max-width: 42em; }
.fold-body p + p { margin-top: 10px; }

.jump-nav { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 22px; }
.jump-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--gold-soft); font-weight: 600; }

/* ---------- Resources library ---------- */

.latest { display: grid; gap: 0 var(--col-gap); border-top: 1px solid var(--line); }
@media (min-width: 900px) { .latest { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.latest li { padding-block: 18px; border-bottom: 1px solid var(--line); }
.latest h3 { font-size: clamp(1.1875rem, 1.1rem + .3vw, 1.3125rem); line-height: 1.3; }
.latest h3 a, .lib-title a { text-decoration-color: var(--gold); text-underline-offset: .18em; }
.item-meta { margin-bottom: 4px; font-size: .875rem; line-height: 1.5; color: var(--muted); }
.item-meta .cat { color: var(--gold-text); font-weight: 600; }

.library-controls { display: none; }
.js .library-controls {
  display: grid; gap: 18px 20px; align-items: end;
  padding: clamp(20px, 2.4vw, 28px); background: var(--paper); border-top: 2px solid var(--gold);
}
@media (min-width: 760px) { .js .library-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .js .library-controls { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.5fr) auto; } }
.library-controls .field { gap: 6px; }
.library-buttons { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.library-buttons .btn { min-height: 52px; }
.link-button {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px;
  background: none; border: 0; cursor: pointer;
  font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1.5px; text-underline-offset: 6px;
}
.link-button:hover { color: var(--gold-text); }

.results-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-top: clamp(28px, 3vw, 40px); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.results-head h2 { font-size: clamp(1.375rem, 1.2rem + .6vw, 1.75rem); }
.results-head:focus { outline: none; }
.results-head:focus-visible { outline: 3px solid var(--focus); outline-offset: 6px; }
.result-count { font-weight: 600; }
.result-filters { width: 100%; font-size: .9375rem; color: var(--muted); }

.lib-list { display: grid; }
.lib-item { padding-block: 22px; border-bottom: 1px solid var(--line); }
.lib-title { font-size: clamp(1.1875rem, 1.1rem + .35vw, 1.375rem); line-height: 1.3; }
.lib-desc { margin-top: 6px; max-width: 46em; color: var(--muted); }
.lib-empty { padding-block: 28px; border-bottom: 1px solid var(--line); }
.lib-empty p + p { margin-top: 8px; }

.pager { display: none; }
.js .pager:not([hidden]) { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; }
.pager a, .pager span.gap {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 0 12px;
  border: 1px solid var(--line); text-decoration: none; font-weight: 600;
}
.pager a:hover { border-color: var(--ink); }
.pager a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.pager a[aria-disabled="true"] { color: var(--muted); border-style: dashed; pointer-events: none; }
.pager span.gap { border: 0; min-width: 24px; padding: 0; }
.pager .page-status { margin-left: auto; color: var(--muted); font-size: .9375rem; }

/* ---------- Article ---------- */

.page-head .article-title { max-width: 18em; font-size: clamp(2.125rem, 1.3rem + 2.6vw, 3.5rem); line-height: 1.06; letter-spacing: -.025em; }

.article-layout {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px var(--col-gap);
  padding-top: var(--space-rule); padding-bottom: clamp(56px, 7vw, 96px);
}
@media (min-width: 960px) {
  .article-layout { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: start; }
  .toc { position: sticky; top: calc(var(--header-h) + 24px); }
}
.toc h2 { margin-bottom: 8px; font-family: var(--sans); font-size: .8125rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--gold-text); }
.jump-list { counter-reset: toc; border-top: 1px solid var(--line); }
.jump-list li { border-bottom: 1px solid var(--line); }
.jump-list a {
  display: flex; align-items: center; min-height: 44px; padding-block: 6px;
  line-height: 1.35; color: var(--muted); text-decoration: none; font-size: .9375rem;
}
.jump-list a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); }

.prose { max-width: 38em; font-family: var(--serif); font-size: clamp(1.125rem, 1.06rem + .25vw, 1.25rem); line-height: 1.65; }
.prose h2 { font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); line-height: 1.15; margin: 2em 0 .6em; }
.prose > section:first-child h2 { margin-top: 0; }
.prose h3 { font-size: clamp(1.25rem, 1.15rem + .4vw, 1.5rem); margin: 1.6em 0 .5em; }
.prose p + p, .prose p + ul, .prose ul + p, .prose p + ol, .prose ol + p, .prose ul + ul, .prose ol + ol, .prose p + .table-scroll, .prose .table-scroll + p { margin-top: 1em; }
.prose ul, .prose ol { display: grid; gap: .5em; }
.prose ul > li { position: relative; padding-left: 1.3em; }
.prose ul > li::before { content: ""; position: absolute; left: 0; top: .78em; width: .6em; border-top: 1.5px solid var(--gold); }
.prose ol { counter-reset: item; }
.prose ol > li { position: relative; padding-left: 1.8em; counter-increment: item; }
.prose ol > li::before { content: counter(item) "."; position: absolute; left: 0; top: 0; color: var(--gold-text); font-family: var(--sans); font-weight: 600; font-size: .9em; }
.prose a { text-decoration-color: var(--gold-text); }
.prose blockquote { padding-left: 18px; border-left: 2px solid var(--gold); }

.table-scroll { margin: 1.4em 0 1.2em; overflow-x: auto; border-top: 2px solid var(--gold); }
.table-scroll:focus-visible { outline-offset: 2px; }
.data-table { width: 100%; min-width: 560px; border-collapse: collapse; font-family: var(--sans); font-size: .9375rem; line-height: 1.6; color: var(--ink); }
.data-table th, .data-table td { padding: 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.data-table th { font-weight: 600; background: var(--paper); }

.sources, .article-close {
  margin-top: clamp(48px, 6vw, 72px); padding-top: var(--space-rule); border-top: 1px solid var(--line);
  font-family: var(--sans); font-size: 1rem; line-height: 1.6;
}
.prose .sources h2, .prose .article-close h2 { margin: 0 0 12px; font-size: clamp(1.375rem, 1.2rem + .6vw, 1.75rem); }
.sources ul { display: grid; gap: 16px; margin-top: 18px; }
.prose .sources ul > li { padding-left: 0; }
.prose .sources ul > li::before { display: none; }
.sources li a { display: block; font-weight: 600; }
.sources li span { display: block; margin-top: 2px; color: var(--muted); font-size: .9375rem; }
.article-close { padding: clamp(24px, 3vw, 36px); background: var(--ink); color: var(--white); border-top: 0; }
.article-close h2 { color: var(--white); max-width: 26em; }
.article-close .actions { margin-top: 20px; }

.related { padding-block: clamp(48px, 6vw, 80px) var(--space-section); }
.related .section-grid { border-top: 1px solid var(--line); }
.related-list { display: grid; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .related-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--col-gap); } }
.related-list li { padding-block: 18px; border-bottom: 1px solid var(--line); }
.related-list h3 { font-size: clamp(1.1875rem, 1.1rem + .3vw, 1.375rem); line-height: 1.3; }
.related-list h3 a { text-decoration-color: var(--gold); text-underline-offset: .18em; }
.related-cat { margin-bottom: 4px; font-size: .875rem; font-weight: 600; color: var(--gold-text); }

/* ---------- Legal pages ---------- */

.legal-wrap { padding-top: var(--space-rule); padding-bottom: var(--space-section); }
.legal { max-width: 42em; }
.legal-intro { font-family: var(--serif); font-size: clamp(1.25rem, 1.12rem + .5vw, 1.5rem); line-height: 1.42; margin-bottom: clamp(32px, 4vw, 48px); }
.legal-section + .legal-section { margin-top: clamp(28px, 3.4vw, 40px); }
.legal-section h2 { font-size: clamp(1.375rem, 1.2rem + .6vw, 1.75rem); margin-bottom: 10px; }
.legal-section p { line-height: 1.65; }

/* ---------- Forms ---------- */

.form { display: grid; gap: clamp(26px, 3vw, 34px); }
.form-group > legend, .group-label {
  margin-bottom: 18px;
  font-family: var(--serif); font-size: clamp(1.3125rem, 1.15rem + .55vw, 1.625rem);
  line-height: 1.2; letter-spacing: -.01em;
}
.form-group-body { display: grid; gap: 22px; }
.mode-intro { color: var(--muted); font-size: .9375rem; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px clamp(16px, 2vw, 28px); }
@media (min-width: 640px) { .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: 8px; align-content: start; }
.field label { font-weight: 600; line-height: 1.4; }
.optional { font-weight: 400; color: var(--muted); }
.hint { font-size: .9375rem; line-height: 1.5; color: var(--muted); }

input[type="text"], input[type="email"], input[type="search"], select, textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  background: var(--white); color: var(--ink);
  border: 1.5px solid var(--muted); border-radius: 0;
  font-size: 1rem; line-height: 1.4;
}
input[type="search"] { -webkit-appearance: none; appearance: none; }
textarea { min-height: 128px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: var(--ink); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--error); border-width: 2.5px; }

.check { grid-template-columns: 26px minmax(0, 1fr); gap: 6px 12px; align-items: start; }
.check input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--ink-3); }
.check label { font-weight: 400; padding-top: 2px; }
.check .field-error { grid-column: 2; }

/* Honeypot mirrors the live contract; hidden from people and assistive technology */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.field-error { color: var(--error); font-weight: 700; font-size: .9375rem; line-height: 1.4; }
.form-errors:empty { display: none; }
.form-errors { padding: 16px 20px; background: var(--white); border-left: 4px solid var(--error); }
.form-errors ul { margin-top: 8px; display: grid; gap: 2px; }
.form-errors a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 8px; line-height: 1.4; color: var(--error); font-weight: 600; }

.form-note { margin-top: 18px; max-width: 36em; font-size: .9375rem; line-height: 1.55; color: var(--muted); }
.form-status { margin-top: 18px; max-width: 36em; padding: 12px 16px; background: var(--white); border-left: 4px solid var(--error); font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.form-status:empty { margin: 0; padding: 0; border: 0; }
.form-status a { color: var(--error); }

.form-done { padding-top: 24px; border-top: 3px solid var(--gold); }
.form-done h2, .form-done h3 { margin-bottom: 12px; font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); }
.form-done p { max-width: 38em; }
.form-done p + p { margin-top: 10px; }
.form-done .btn { margin-top: 24px; }

/* Optional detail, collapsed by default: a ruled row, not a box */
.disclosure { border-block: 1px solid var(--line); }
.disclosure > summary {
  position: relative;
  display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 12px 0;
  font-weight: 600; cursor: pointer; list-style: none;
}
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary::before, .disclosure > summary::after { content: ""; flex: none; color: var(--gold-text); }
.disclosure > summary::before { width: 14px; height: 0; border-top: 2px solid; }
.disclosure > summary::after {
  position: absolute; left: 6px; top: 50%; width: 0; height: 14px; margin-top: -7px;
  border-left: 2px solid; transition: transform .2s ease;
}
.disclosure[open] > summary::after { transform: rotate(90deg); }
.disclosure-body { display: grid; gap: 22px; padding: 6px 0 28px; }

.form-layout { display: grid; gap: 40px var(--col-gap); padding-top: var(--space-rule); padding-bottom: var(--space-section); }
@media (min-width: 960px) { .form-layout { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
.form-aside h2 { margin-bottom: 14px; }
.form-aside p { color: var(--muted); max-width: 28em; }
.form-aside p + p, .form-aside p + .actions { margin-top: 14px; }
.form-aside .text-link { color: var(--ink); }
.contact-form { max-width: 46rem; }

/* Contact mode selector: a required choice, nothing preselected; native radios */
.modes { display: grid; gap: 2px; }
.mode { display: flex; align-items: center; gap: 14px; min-height: 48px; cursor: pointer; font-weight: 500; line-height: 1.35; }
.mode input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--ink-3); cursor: pointer; }
.modes[aria-invalid="true"] { padding-left: 14px; border-left: 3px solid var(--error); }
.mode-note { font-weight: 500; max-width: 36em; }

.next-steps { display: grid; gap: 14px; }
.next-steps dt { font-weight: 600; }
.next-steps dd { color: var(--muted); }

/* ---------- Vacancy calculator ---------- */

.calc { display: grid; gap: 32px var(--col-gap); padding-top: var(--space-rule); }
@media (min-width: 960px) { .calc { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: start; } }
.calc-inputs { display: grid; gap: 22px; }
.calc-note { color: var(--muted); font-size: .9375rem; }
.unit-input { display: flex; align-items: stretch; }
.unit-input input { flex: 1 1 auto; min-width: 0; }
.unit-input .unit {
  flex: none; display: inline-flex; align-items: center; padding: 0 14px;
  border: 1.5px solid var(--muted); border-left: 0; background: var(--paper);
  font-size: .9375rem; color: var(--muted);
}
.unit-input .unit-pre { border-left: 1.5px solid var(--muted); border-right: 0; }
.calc-buttons { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }

.calc-results { padding: clamp(24px, 3vw, 40px); background: var(--ink); color: var(--white); }
@media (min-width: 960px) { .calc-results { position: sticky; top: calc(var(--header-h) + 24px); } }
.calc-total { margin-top: 4px; font-family: var(--serif); font-size: clamp(2.75rem, 2rem + 3vw, 4.25rem); line-height: 1.05; letter-spacing: -.03em; color: var(--gold-soft); }
.calc-summary { margin-top: 10px; color: var(--on-dark-soft); }
.calc-breakdown { display: grid; margin-top: 22px; border-top: 1px solid var(--line-light); }
.calc-breakdown > div { display: flex; justify-content: space-between; gap: 16px; padding-block: 12px; border-bottom: 1px solid var(--line-light); }
.calc-breakdown dt { color: var(--on-dark-soft); }
.calc-breakdown dd { font-weight: 700; white-space: nowrap; }
.calc-invalid { margin-top: 14px; padding-left: 12px; border-left: 3px solid var(--gold); color: var(--white); font-weight: 600; }
.calc-method { margin-top: 18px; font-size: .9375rem; line-height: 1.55; color: var(--on-dark-soft); }
.calc-results .actions { margin-top: 22px; }
.calc-results.is-invalid .calc-total, .calc-results.is-invalid .calc-breakdown, .calc-results.is-invalid .calc-summary { display: none; }

.caveats { display: grid; gap: 10px; max-width: 44em; }
.method { margin-top: var(--space-section); }

/* ---------- Footer: the live compact dark footer ---------- */

.site-footer { background: var(--ink); color: var(--ivory); padding-block: clamp(56px, 7vw, 88px) 32px; }
.site-footer a { color: var(--ivory); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px var(--col-gap); }
@media (min-width: 900px) { .footer-top { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; } }
.footer-brand { display: inline-flex; align-items: center; min-height: 44px; color: var(--white); text-decoration: none; }
.footer-brand .brand-logo { width: clamp(176px, 16vw, 220px); }
.footer-statement { margin-top: 18px; max-width: 26em; font-family: var(--serif); font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); line-height: 1.35; color: var(--white); }
.footer-contact { display: grid; gap: 2px; color: var(--on-dark-soft); }
.footer-contact a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; color: var(--gold-soft); }
.footer-contact a:hover { text-decoration: underline; text-underline-offset: 5px; }
.footer-contact address { font-style: normal; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 28px; margin-top: clamp(36px, 4vw, 56px); padding-top: 12px; border-top: 1px solid var(--line-light); }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--on-dark-soft); }
.footer-links a:hover, .footer-links a[aria-current] { color: var(--white); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 5px; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 32px; margin-top: 20px; font-size: .9375rem; color: var(--on-dark-soft); }
.footer-verse p { font-family: var(--serif); font-size: 1.0625rem; line-height: 1.45; color: var(--white); }
.footer-verse cite { font-style: normal; color: var(--gold-soft); }

/* ---------- Motion, forced colours and print ---------- */

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

@media (forced-colors: active) {
  .btn, .site-nav .nav-contact, .js .menu-toggle, .pager a { border: 1px solid ButtonText; }
  .hero-visual img { filter: none; }
}

@media print {
  .menu-toggle, .skip, .site-nav, .library-controls, .pager { display: none !important; }
  .site-header { position: static; }
  .site-header, .page-head, .hero, .site-footer, .article-close, .calc-results { background: none; color: #000; }
  .hero-visual { display: none; }
}
