/* Georgina Driver Training — one stylesheet.
   Tokens from brand/tokens.md (closed) and the handoff design system. */

/* ---------- fonts ---------- */
@font-face {
  font-family: 'Source Serif 4';
  src: url('../fonts/source-serif-4-latin-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Libre Franklin';
  src: url('../fonts/libre-franklin-latin-400-600.woff2') format('woff2-variations'),
       url('../fonts/libre-franklin-latin-400-600.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  --slate: #2A4451;
  --slate-deep: #243B47;
  --slate-hover: #1E323C;
  --slate-rule: #3D5765;
  --amber: #C4873F;
  /* Brand amber only reaches 2.78:1 on off-white, so it cannot carry text or a
     focus indicator on light ground. This darker amber clears AA as text on
     off-white/white (4.69 / 5.15) and 3:1 as an indicator on all light grounds.
     See the 2026-08-15 amendments in brand/tokens.md. */
  --amber-on-light: #9C5F26;
  --off-white: #F6F4F0;
  --shade: #EDEBE6;
  --white: #FFFFFF;
  --ink: #1F2E36;
  --grey: #6E6A62; /* tokens.md amendment 2026-08-15, was #7C7870 (WCAG AA) */
  --grey-prose: #55524C;
  --grey-slate: #C3C9CD;
  --text-slate: #E4E6E5;
  --hairline: #DEDBD4;
  --hairline-soft: #E4E1DA;
  --input-border: #C9C6BE;
  --ph-border: #B9B4A9;
  --ph-fill: #EFEDE8;
  --ph-border-slate: #6B8592;
  --ph-label-slate: #8FA0AA;
  --error: #9A3B2A;

  --serif: 'Source Serif 4', 'Source Serif Pro', Georgia, serif;
  --sans: 'Libre Franklin', Helvetica, Arial, sans-serif;
  --mono: ui-monospace, Menlo, monospace;

  --gutter: 20px;
  --shell: 1180px;
  --measure: 680px;
  /* --section is HALF the rhythm: two adjacent sections each contribute it, so
     the gap between them is 2x. README asks for 36-44px mobile, 72-96 desktop. */
  --section: 20px;
  /* Bands carry their own background, so their padding is an inset, not a gap. */
  --band: 40px;
  --hero: 32px;
  --stack: 40px;
}
@media (min-width: 900px) {
  :root { --gutter: 40px; --section: 44px; --band: 80px; --hero: 72px; }
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--off-white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  padding-bottom: 96px; /* clears the sticky call bar */
}
@media (min-width: 900px) {
  body { font-size: 18px; padding-bottom: 0; }
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--slate); }
button { font: inherit; color: inherit; }

/* Focus ring: darker amber on light ground, brand amber on slate. Declared as a
   custom property so it inherits — a slate button sitting on the off-white page
   correctly gets the light value, because outline-offset means the colour
   adjacent to the ring is the page, not the button fill. */
:root { --focus: var(--amber-on-light); }
.band-slate, .site-footer, .call-bar { --focus: var(--amber); }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
/* Fallback for engines without :focus-visible. */
@supports not selector(:focus-visible) {
  a:focus, button:focus, summary:focus,
  input:focus, select:focus, textarea:focus {
    outline: 2px solid var(--amber);
    outline-offset: 2px;
  }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 60;
  background: var(--slate);
  color: var(--off-white);
  padding: 14px 20px;
  font-weight: 500;
  border-radius: 2px;
}
.skip-link:focus { left: 8px; top: 8px; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section); }
.band-slate.section, .band-shade.section { padding-block: var(--band); }
.section--tight { padding-block: calc(var(--band) * 0.7); }
main > .section:first-child { padding-top: var(--hero); }
.section + .section { border-top: 1px solid var(--hairline); }
/* A band's change of ground is the divider; a hairline on top of it just shows
   as a stray light line. */
.section + .band-slate.section,
.section + .band-shade.section { border-top: 0; }
/* An accordion draws its own top rule. Without this the section divider and the
   accordion rule stack up as two hairlines with an empty strip between them. */
.section:has(> .wrap > .faq) { border-top: 0; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.stack--sm { gap: 12px; }
.stack--lg { gap: 28px; }

.split { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) {
  .split { grid-template-columns: 5fr 7fr; gap: 56px; }
  .split--7-5 { grid-template-columns: 7fr 5fr; }
  .split--end { align-items: end; }
  .split--centre { align-items: center; }
}

.band-shade { background: var(--shade); }
.band-slate {
  background: var(--slate);
  color: var(--off-white);
}
.band-slate h1, .band-slate h2, .band-slate h3, .band-slate .h-serif { color: var(--off-white); }
.band-slate p { color: var(--text-slate); }
.band-slate .small { color: var(--grey-slate); }

/* ---------- type ---------- */
h1, h2, h3, .h-serif {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--slate);
  letter-spacing: -0.005em;
}
h1, .display {
  font-size: 34px;
  line-height: 1.15;
}
h2, .h2 { font-size: 26px; line-height: 1.25; }
h3, .h3 { font-size: 20px; line-height: 1.3; letter-spacing: 0; }
@media (min-width: 900px) {
  h1, .display { font-size: 56px; line-height: 1.1; }
  h2, .h2 { font-size: 34px; line-height: 1.2; }
  h3, .h3 { font-size: 23px; }
}
/* long headline variant — the road test guide h1 */
.display--long { font-size: 33px; }
@media (min-width: 900px) {
  .display--long { font-size: 52px; line-height: 1.12; }
}

.lede {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink);
  text-wrap: pretty;
}
.prose p, .body { text-wrap: pretty; }
.prose p + p { margin-top: 18px; }
.prose { max-width: var(--measure); }
.prose a { color: var(--slate); text-decoration: none; border-bottom: 1px solid var(--ph-border); }
.prose a:hover { color: var(--amber); border-bottom-color: var(--amber); }
.measure { max-width: 620px; }
.small { font-size: 15px; line-height: 1.6; color: var(--grey); }
.secondary { color: var(--grey-prose); }
.label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey);
  line-height: 1.4;
}
.band-slate .label { color: var(--grey-slate); }
.label-rule { display: flex; align-items: center; gap: 12px; }
.label-rule::before {
  content: "";
  width: 34px; height: 2px;
  background: var(--amber);
  flex: none;
}
@media (min-width: 900px) {
  .lede { font-size: 21px; }
  .label-rule::before { width: 40px; }
}
.mono { font-family: var(--mono); font-size: 12px; line-height: 1.6; color: #6E6B64; }

/* ---------- buttons and links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 16px 28px;
  border: 0;
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
@media (min-width: 900px) { .btn { font-size: 18px; } }
.btn--primary { background: var(--slate); color: var(--off-white); }
.btn--primary:hover { background: var(--slate-hover); color: var(--off-white); }
.btn--secondary {
  border: 1.5px solid var(--slate);
  color: var(--slate);
  background: transparent;
  padding: 14.5px 26.5px;
}
.btn--secondary:hover { background: #EAE7E1; color: var(--slate); }
.btn--block { width: 100%; }
@media (min-width: 900px) { .btn--block { width: auto; } }
.band-slate .btn--primary, .btn--on-slate {
  background: var(--off-white);
  color: var(--slate);
}
.band-slate .btn--primary:hover, .btn--on-slate:hover { background: var(--white); color: var(--slate); }
.band-slate .btn--secondary {
  border-color: var(--grey-slate);
  color: var(--off-white);
  background: transparent;
}
.band-slate .btn--secondary:hover { background: rgba(246,244,240,0.08); color: var(--off-white); }
.btn-row { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 900px) {
  .btn-row { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 14px; }
}

.tlink {
  align-self: flex-start;
  display: inline-block;
  font-size: 15px;
  font-weight: 500;
  color: var(--slate);
  text-decoration: none;
  border-bottom: 1.5px solid var(--amber);
  padding-bottom: 3px;
}
.tlink:hover { color: var(--amber); }
@media (min-width: 900px) { .tlink { font-size: 16px; } }
.band-slate .tlink { color: var(--off-white); }
.band-slate .tlink:hover { color: var(--amber); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--off-white);
  border-bottom: 1px solid var(--hairline);
}
.site-header__bar {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--slate);
}
.brand__mark { flex: none; width: 32px; height: 32px; color: var(--slate); }
.site-footer .brand__mark { width: 34px; height: 34px; }
/* Below 64px the amber lane dashes are dropped (tokens.md); the desktop header
   and footer marks carry them per README's header spec. Stroke weight follows
   tokens.md: 10 for the bare icon, 9 for the lockup pairing. */
.brand__arc { stroke-width: 10; }
.brand__dashes { display: none; }
.brand--reversed,
.brand--reversed .brand__name,
.brand--reversed .brand__mark { color: var(--off-white); }
/* Stacked by default; the desktop header sets these inline so the literal
   space between the two spans renders. Never collapse this with a hidden <br>. */
.brand__line { display: block; }
.brand__name {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.05;
  letter-spacing: -0.005em;
  color: var(--slate);
}
.brand__tagline {
  display: none;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--grey);
}
.nav-toggle {
  width: 44px; height: 44px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  margin-right: -8px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span { width: 22px; height: 1.5px; background: var(--slate); }
.site-nav { display: none; }
.site-nav__panel {
  border-top: 1px solid var(--hairline);
  padding-bottom: 16px;
}
.site-nav__panel[hidden] { display: none; }
.site-nav__panel ul { border-bottom: 1px solid var(--hairline); }
.site-nav__panel a {
  display: flex;
  align-items: center;
  min-height: 52px;
  border-top: 1px solid var(--hairline);
  font-size: 17px;
  text-decoration: none;
  color: var(--ink);
}
.site-nav__panel li:first-child a { border-top: 0; }
.site-nav__panel a[aria-current="page"] { color: var(--slate); font-weight: 500; }
.site-nav__panel .btn { margin-top: 16px; }

@media (min-width: 900px) {
  .site-header__bar { height: 88px; gap: 32px; }
  .brand { gap: 14px; }
  .brand__mark { width: 44px; height: 44px; }
  .site-footer .brand__mark { width: 40px; height: 40px; }
  .brand__arc { stroke-width: 9; }
  .brand__dashes { display: block; }
  .brand__name { font-size: 22px; line-height: 1; }
  .site-header .brand__line { display: inline; }
  .brand__tagline { display: block; }
  .brand__text { display: flex; flex-direction: column; gap: 3px; }
  .nav-toggle, .site-nav__panel { display: none !important; }
  .site-nav {
    display: flex;
    align-items: center;
    gap: 26px;
  }
  .site-nav ul { display: flex; align-items: center; gap: 26px; }
  .site-nav ul a {
    font-size: 15px;
    color: var(--ink);
    text-decoration: none;
    padding-bottom: 2px;
    border-bottom: 1.5px solid transparent;
  }
  .site-nav ul a:hover { color: var(--amber); }
  .site-nav ul a[aria-current="page"] {
    font-weight: 500;
    color: var(--slate);
    border-bottom-color: var(--amber);
  }
  .site-nav .btn {
    min-height: 0;
    padding: 13px 20px;
    font-size: 16px;
    white-space: nowrap;
  }
}

/* ---------- sticky call bar ---------- */
.call-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 20;
  background: var(--slate);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.call-bar .btn { min-height: 52px; padding-block: 0; font-size: 17px; }
.call-bar__call { flex: 1; background: var(--off-white); color: var(--slate); }
.call-bar__call:hover { background: var(--white); color: var(--slate); }
.call-bar__alt {
  flex: none;
  border: 1.5px solid var(--grey-slate);
  color: var(--off-white);
  background: transparent;
  padding-inline: 16px;
  font-size: 16px;
}
.call-bar__alt:hover { background: rgba(246,244,240,0.08); color: var(--off-white); }
@media (min-width: 900px) { .call-bar { display: none; } }

/* ---------- footer ---------- */
.site-footer {
  background: var(--slate);
  color: var(--off-white);
  padding: 36px 0 24px;
}
/* One step darker where the footer follows a slate CTA band. */
main:has(> .band-slate:last-child) + .site-footer { background: var(--slate-deep); }
@media (min-width: 900px) { .site-footer { padding: 56px 0 28px; } }
.site-footer__cols {
  display: grid;
  gap: 28px;
}
@media (min-width: 900px) {
  .site-footer__cols { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
}
.site-footer h2 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  /* Was var(--amber): 3.37:1 on slate, unreadable at 11px. Darkening cannot help
     on a dark ground, so these use the existing grey-on-slate token: 6.14 / 7.01. */
  color: var(--grey-slate);
}
.site-footer ul { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.site-footer li { font-size: 15px; }
.site-footer a { color: var(--off-white); text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.site-footer__areas ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}
@media (min-width: 900px) {
  .site-footer__areas ul { display: flex; }
}
.site-footer__id { display: flex; flex-direction: column; gap: 16px; }
.site-footer__desc { font-size: 15px; line-height: 1.7; color: var(--grey-slate); }
.site-footer__phone { font-family: var(--serif); font-size: 24px; text-decoration: none; }
.site-footer__email { font-size: 15px; color: var(--grey-slate); text-decoration: none; }
.site-footer__email:hover { color: var(--amber); }
.site-footer__base {
  border-top: 1px solid var(--slate-rule);
  margin-top: 32px;
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--grey-slate);
}
@media (min-width: 900px) {
  .site-footer__base {
    margin-top: 40px;
    padding-top: 20px;
    flex-direction: row;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
  }
}

/* ---------- rule lists ---------- */
.rule-list { border-top: 1px solid var(--hairline); }
.rule-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 17px;
  line-height: 1.65;
}
@media (min-width: 900px) {
  .rule-list li { padding: 16px 0; font-size: 18px; }
}
.rule-list--last-bare li:last-child { border-bottom: 0; }

/* ---------- price table ---------- */
/* border-collapse: collapse would make the browser ignore the table's own
   padding, so the rows would sit flush against the border. `separate` with
   zero spacing keeps the inset and still draws unbroken hairline rows. */
.ptable {
  background: var(--white);
  border: 1px solid var(--hairline);
  padding: 8px 18px;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
@media (min-width: 900px) { .ptable { padding: 14px 28px; } }
.ptable caption { text-align: left; }
.ptable th, .ptable td {
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline-soft);
  vertical-align: baseline;
}
.ptable tr:last-child th, .ptable tr:last-child td { border-bottom: 0; }
.ptable th {
  font-weight: 400;
  font-size: 17px;
  text-align: left;
  color: var(--ink);
  padding-right: 14px;
}
.ptable td {
  font-family: var(--serif);
  font-size: 21px;
  color: var(--slate);
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
@media (min-width: 900px) {
  .ptable th, .ptable td { padding: 18px 0; }
  .ptable th { font-size: 18px; padding-right: 20px; }
  .ptable td { font-size: 24px; }
}

/* ---------- comparison table (BDE) ---------- */
.ctable {
  background: var(--white);
  border: 1px solid var(--hairline);
  padding: 18px;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
@media (min-width: 900px) { .ctable { padding: 30px 34px; } }
.ctable thead th {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
  padding-bottom: 10px;
  border-bottom: 1.5px solid var(--slate);
  text-align: right;
  vertical-align: bottom;
}
.ctable thead th:first-child { text-align: left; }
.ctable tbody th {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4;
  text-align: left;
  color: var(--ink);
  padding: 13px 10px 13px 0;
  border-bottom: 1px solid var(--hairline-soft);
}
.ctable tbody td {
  font-size: 16px;
  text-align: right;
  width: 58px;
  padding: 13px 0;
  border-bottom: 1px solid var(--hairline-soft);
  font-variant-numeric: tabular-nums;
}
.ctable .is-no { color: var(--grey); }
.ctable tfoot th {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  text-align: left;
  color: var(--ink);
  padding: 16px 10px 0 0;
  border-bottom: 0;
}
.ctable tfoot td {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--slate);
  text-align: right;
  padding: 14px 0 0;
  border-bottom: 0;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
@media (min-width: 900px) {
  .ctable thead th { font-size: 12px; letter-spacing: 0.16em; padding-bottom: 14px; }
  .ctable tbody th { font-size: 18px; padding: 15px 16px 15px 0; }
  .ctable tbody td { font-size: 18px; width: 130px; padding: 15px 0; }
  .ctable tfoot th { padding-top: 18px; }
  .ctable tfoot td { font-size: 26px; padding-top: 15px; }
}

/* ---------- notes, callouts ---------- */
.note-amber {
  border-left: 2px solid var(--amber);
  background: var(--shade);
  padding: 20px 18px;
  font-size: 16px;
  line-height: 1.75;
  text-wrap: pretty;
}
@media (min-width: 900px) {
  .note-amber { padding: 26px 28px; font-size: 17px; line-height: 1.8; }
}

/* ---------- town grid ---------- */
.town-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.town-grid li {
  background: var(--off-white);
  padding: 16px 14px;
  font-size: 17px;
  font-weight: 500;
  color: var(--slate);
}
.town-grid li.is-aside { font-size: 15px; font-weight: 400; color: var(--grey); }
@media (min-width: 900px) {
  .town-grid li { padding: 20px 22px; font-size: 18px; }
  .town-grid li.is-aside { font-size: 16px; }
  .town-grid--4 { grid-template-columns: repeat(4, 1fr); }
  .town-grid--4 li {
    padding: 28px 24px;
    min-height: 132px;
    display: flex;
    align-items: flex-start;
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 400;
  }
  .town-grid--4 li.is-aside {
    align-items: flex-end;
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.65;
  }
}

/* ---------- service / lesson cards ---------- */
.card-grid {
  display: grid;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
@media (min-width: 900px) {
  .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: var(--off-white);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (min-width: 900px) { .card { padding: 32px 28px; } }
.card p { font-size: 17px; line-height: 1.7; color: var(--grey-prose); flex: 1; }
.card__links { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: baseline; }

/* ---------- photo slots ---------- */
.photo {
  background-image: repeating-linear-gradient(135deg, #E4E1DA 0 8px, #EDEBE6 8px 16px);
  border: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
}
.photo--3-2 { aspect-ratio: 3 / 2; }
.photo--4-5 { aspect-ratio: 4 / 5; }
.photo--1-1 { aspect-ratio: 1 / 1; }
@media (min-width: 900px) {
  .photo--hero { aspect-ratio: 4 / 5; }
}

/* ---------- content placeholders ---------- */
.placeholder {
  border: 1px dashed var(--ph-border);
  background: var(--ph-fill);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
@media (min-width: 900px) { .placeholder { padding: 28px; } }
.placeholder p { font-size: 17px; line-height: 1.7; color: var(--grey-prose); text-wrap: pretty; }
@media (min-width: 900px) { .placeholder p { font-size: 19px; line-height: 1.75; } }
.placeholder--on-slate {
  border-color: var(--ph-border-slate);
  background: transparent;
}
.placeholder--on-slate .mono { color: var(--grey-slate); }
.placeholder--on-slate p { color: var(--text-slate); }

/* ---------- quotes and reviews ---------- */
.pullquote {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-top: 2px solid var(--amber);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
@media (min-width: 900px) { .pullquote { padding: 36px 34px; gap: 18px; } }
.pullquote p {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.45;
  color: var(--slate);
  text-wrap: pretty;
}
@media (min-width: 900px) { .pullquote p { font-size: 27px; } }
.pullquote--offwhite { background: var(--off-white); }

.attrib {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey);
  font-style: normal;
}

.review-grid { display: grid; gap: 14px; }
@media (min-width: 900px) {
  .review-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
}
.review {
  background: var(--white);
  border: 1px solid var(--hairline);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
@media (min-width: 900px) { .review { padding: 26px; } }
.review p { font-size: 17px; line-height: 1.7; color: var(--ink); text-wrap: pretty; }

/* ---------- numbered guide sections ---------- */
.numlist { display: flex; flex-direction: column; gap: 10px; }
.numlist li { display: flex; gap: 12px; font-size: 16px; }
.numlist .num { font-family: var(--mono); font-size: 13px; color: var(--grey); }
.numlist a { color: var(--slate); text-decoration: none; }
.numlist a:hover { color: var(--amber); }
.numlist .is-current a {
  font-weight: 500;
  border-bottom: 1.5px solid var(--amber);
  padding-bottom: 1px;
}
@media (min-width: 900px) {
  .numlist li { font-size: 17px; gap: 14px; }
  .numlist .num { font-size: 14px; }
}
.sec-num {
  font-family: var(--mono);
  font-size: 13px;
  /* 13-14px text: needs 4.5:1. Brand amber gives 2.78 on off-white. */
  color: var(--amber-on-light);
}
@media (min-width: 900px) { .sec-num { font-size: 14px; } }
.sec-head { display: flex; align-items: baseline; gap: 12px; }
@media (min-width: 900px) {
  .sec-head { flex-direction: column; align-items: flex-start; gap: 10px; }
}

.mistakes { display: grid; gap: 0; }
@media (min-width: 900px) {
  .mistakes { grid-template-columns: 1fr 1fr; column-gap: 40px; }
}
.mistakes li {
  border-top: 1px solid var(--slate-rule);
  padding: 18px 0;
}
.mistakes h3 {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.3;
  color: var(--off-white);
  margin-bottom: 8px;
}
@media (min-width: 900px) { .mistakes h3 { font-size: 22px; } }
.mistakes p { font-size: 16px; line-height: 1.7; color: var(--grey-slate); }

/* ---------- on-this-page ---------- */
.onpage { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.onpage a {
  font-size: 15px;
  font-weight: 500;
  color: var(--slate);
  text-decoration: none;
  border-bottom: 1.5px solid var(--amber);
  padding-bottom: 2px;
}
.onpage a:hover { color: var(--amber); }
@media (min-width: 900px) {
  .onpage {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 10px;
    border-left: 1px solid var(--hairline);
    padding-left: 28px;
  }
  .onpage a { font-size: 17px; border-bottom: 0; align-self: flex-start; }
  .onpage a:hover { border-bottom: 1.5px solid var(--amber); }
}
.onpage-wrap { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 900px) {
  .onpage-wrap { gap: 12px; }
  .onpage-wrap > .label { padding-left: 28px; }
  .onpage-wrap { position: relative; }
  .onpage-wrap > .label { border-left: 1px solid var(--hairline); padding-bottom: 2px; }
}

/* ---------- breadcrumb ---------- */
.crumbs { font-size: 15px; color: var(--grey); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--grey); }
.crumbs a { color: var(--slate); text-decoration: none; border-bottom: 1px solid var(--ph-border); }
.crumbs a:hover { color: var(--amber); }

/* ---------- FAQ accordion ---------- */
.faq { border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.35;
  color: var(--slate);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--sans);
  font-size: 22px;
  line-height: 1;
  color: var(--grey);
  flex: none;
  padding-top: 4px;
}
/* The open marker is a functional state indicator, not decoration, so it takes
   the AA-safe amber. Brand amber gave 2.78:1 on off-white. Accordions only ever
   sit on light ground (the FAQ page and the embedded BDE list). */
.faq details[open] summary::after { content: "\2212"; color: var(--amber-on-light); }
.faq summary:hover { color: var(--amber); }
.faq .faq__answer {
  padding-bottom: 22px;
  max-width: 620px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  text-wrap: pretty;
}
.faq .faq__answer p + p { margin-top: 16px; }

/* ---------- About Igor ----------
   DOM order is the mobile order the handoff specifies: label, name, lede,
   photo, conviction, quotes, background, CTA. Desktop re-places the photo
   and CTA into a right-hand column without touching that order. */
.about { display: flex; flex-direction: column; gap: 28px; }
.about__conviction { border-top: 1px solid var(--hairline); padding-top: 24px; }
@media (min-width: 900px) {
  .about {
    display: grid;
    grid-template-columns: 1fr 380px;
    column-gap: 48px;
    row-gap: 28px;
    align-items: start;
  }
  .about__intro      { grid-column: 1; grid-row: 1; }
  .about__conviction { grid-column: 1; grid-row: 2; }
  .about__quotes     { grid-column: 1; grid-row: 3; }
  .about__background { grid-column: 1; grid-row: 4; }
  .about__photo      { grid-column: 2; grid-row: 1 / span 2; }
  .about__cta        { grid-column: 2; grid-row: 3; }
}

/* ---------- stat pair ---------- */
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.stats div { background: var(--off-white); padding: 20px; }
.stats .stat {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.1;
  color: var(--slate);
}
.stats .stat-note { font-size: 15px; color: var(--grey-prose); margin-top: 4px; line-height: 1.5; }

/* ---------- form ---------- */
.form {
  background: var(--white);
  border: 1px solid var(--hairline);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 520px;
}
@media (min-width: 900px) { .form { padding: 26px 24px; } }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-prose);
}
.field label .optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--grey);
}
.field input, .field select, .field textarea {
  font-family: var(--sans);
  font-size: 17px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--input-border);
  border-radius: 2px;
  padding: 15px 14px;
  min-height: 52px;
  width: 100%;
}
.field textarea { min-height: 110px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus {
  border: 1.5px solid var(--slate);
  padding: 14.5px 13.5px;
  outline: 2px solid rgba(196, 135, 63, 0.35);
  outline-offset: 1px;
}
.field .hint { font-size: 13px; color: var(--grey); }
.field .error-msg { font-size: 13px; color: var(--error); }
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border: 1.5px solid var(--error); padding: 14.5px 13.5px; }
.form__note { font-size: 13px; line-height: 1.6; color: var(--grey); }
.form__note a { color: var(--slate); text-decoration: none; border-bottom: 1px solid var(--amber); }
.form__note a:hover { color: var(--amber); }
.hp { position: absolute; left: -9999px; }
.success {
  border: 1.5px solid var(--slate);
  background: var(--white);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 520px;
}

/* ---------- misc ---------- */
.cta-inline { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 900px) {
  .cta-band__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    flex-wrap: wrap;
  }
  .cta-band__text { max-width: 620px; }
  .cta-band__actions { display: flex; flex-direction: column; gap: 12px; }
}
.cta-card {
  background: var(--slate);
  color: var(--off-white);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cta-card p { font-size: 17px; line-height: 1.6; color: var(--off-white); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
