/* Whizardries v4 layer, loaded after v3.css.
   Adds: three-door entry (an overview row of three cards, then one band per door), a dark
   "Ground rule" band, a credentials band ("The record"), peer endorsements, and anchor handling
   for the sticky header. Same tokens as Design System v1.0. Signal stays the single accent: on
   dark surfaces freely, on light ones only as a thin rule (the two sanctioned light uses).
   Removing this file (and its <link> in partials/header.php) returns the v3 look. */

/* ---- Anchors under the sticky header ---------------------------------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.band[id] { scroll-margin-top: 72px; }
@media (max-width: 767px) { .band[id] { scroll-margin-top: 60px; } }

/* ---- Band labels (h4 kicker ahead of an h2) --------------------------- */
.band .band-inner > .eyebrow:first-child { margin-bottom: var(--space-sm); }

/* ---- Doors overview: three cards in one row --------------------------- */
.band--k-where-to-start .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.band--k-where-to-start .card { border-top-width: 4px; padding: 32px 28px 28px; }
.band--k-where-to-start .card h3 { font-family: var(--font-display); font-size: 26px; line-height: 1.15; }
.band--k-where-to-start .card .card-link a::after { content: " \2193"; }
@media (max-width: 1024px) { .band--k-where-to-start .card-grid { grid-template-columns: 1fr; } }

/* ---- One band per door ------------------------------------------------ */
.band--door .band-inner > .eyebrow:first-child {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.band--door .band-inner > .eyebrow:first-child::before {
  content: "";
  width: 28px;
  height: 3px;
  background: var(--signal-500);
  border-radius: 2px;
}
.band--door h2 { margin-bottom: var(--space-sm); }
.band--door h2 + p { color: var(--linen-600); max-width: 40rem; }

/* ---- Ground rule: the permission policy, stated once ------------------ */
.band--k-ground-rule { padding: var(--space-xl) 0; }
.band--k-ground-rule .eyebrow { color: var(--signal-400); }
.band--k-ground-rule h2 {
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.3rem + 1.8vw, 2.8rem);
  line-height: 1.1;
  max-width: 18em;
}
.band--k-ground-rule p {
  color: var(--linen-200);
  font-size: 19px;
  line-height: 1.65;
  max-width: 40rem;
}
.band--k-ground-rule a { color: #fff; }
/* A dark band followed by the dark closing CTA would merge; keep a hairline between them. */
.band--k-ground-rule + .band--cta { border-top: 1px solid rgba(255, 255, 255, 0.1); }

/* ---- The record: credentials, after the doors ------------------------- */
.band--k-the-record ul.facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.band--k-the-record ul.facts > li { font-size: 15px; line-height: 1.55; }
@media (max-width: 1024px) { .band--k-the-record ul.facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .band--k-the-record ul.facts { grid-template-columns: 1fr; } }

/* ---- Peer endorsements ------------------------------------------------ */
.endorsement-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
  margin: var(--space-lg) 0 0;
}
@media (max-width: 767px) { .endorsement-grid { grid-template-columns: 1fr; } }
.endorsement {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--linen-50);
  border: 0.5px solid var(--linen-200);
  border-radius: var(--radius);
  padding: 32px 28px 28px;
}
.endorsement blockquote {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin: 0 0 var(--space-md);
  font-style: normal;
  font-size: 18px;
  line-height: 1.65;
  color: var(--linen-800);
}
.endorsement blockquote p::before { content: "\201C"; }
.endorsement blockquote p::after { content: "\201D"; }
.endorsement figcaption {
  margin-top: auto;
  padding-top: var(--space-sm);
  border-top: 0.5px solid var(--linen-200);
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.4;
}
.endorsement-name { font-family: var(--font-ui-strong); color: var(--linen-800); font-size: 15px; }
.endorsement-role { color: var(--linen-600); }
.endorsement-note { color: var(--linen-600); font-style: italic; font-family: var(--font-body); }

/* ---- Schedule page: calendar sits directly under the intro ------------ */
/* The intro, the calendar and the explainer are three linen bands in a row, so each one's 96px
   padding stacked into ~190px of empty linen on both sides of the calendar. Same surface, so
   the bands should read as one: drop the calendar band's top padding and halve the next one's. */
.band--linen + .band--embed { padding-top: 0; }
.band--embed + .band--linen { padding-top: var(--space-lg); }

/* ---- Home hero: copy left, portrait right ------------------------------ */
/* The person the practice is named for is visible before the first scroll. The headline stays
   about the visitor; the portrait only answers "who will I be talking to". */
.hero--split { padding: var(--space-xl) 0; }
.hero--split .band-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
  gap: 64px;
  align-items: center;
}
.hero--split .hero-copy { min-width: 0; }
.hero-portrait { margin: 0; }
.hero-portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 58% 30%;
  border-radius: 6px;
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.55);
}
.hero-portrait figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: var(--space-sm);
  padding-left: 14px;
  border-left: 3px solid var(--signal-400);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
  color: var(--linen-200);
}
.hero-portrait-name { font-family: var(--font-ui-strong); font-size: 16px; color: #fff; }
@media (max-width: 1024px) {
  .hero--split .band-inner { grid-template-columns: minmax(0, 1fr) 280px; gap: var(--space-lg); }
}
@media (max-width: 767px) {
  .hero--split { padding: var(--space-lg) 0; }
  .hero--split .band-inner { grid-template-columns: 1fr; gap: var(--space-md); }
  /* On a phone the portrait is a short landscape strip under the button, not a tall block. */
  .hero-portrait img { aspect-ratio: 3 / 2; object-position: 58% 25%; }
}

/* ---- Home domain check: form left, sample readout right ---------------- */
.band--domain-check-home .band-inner { max-width: calc(1140px + var(--space-md) * 2); }
.dc-panel--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.dc-split-main { min-width: 0; }
.dc-sample {
  margin: 0;
  padding: 20px;
  background: var(--white, #fff);
  border: 0.5px solid var(--linen-200);
  border-radius: 6px;
  box-shadow: 0 18px 40px -28px rgba(19, 29, 63, 0.45);
}
.dc-sample-label {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--linen-800);
}
.dc-sample-label span {
  font-family: var(--font-ui-strong);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy-800);
}
.dc-sample .dc-checks { gap: 8px; }
.dc-sample .dc-check { padding: 12px 16px; background: var(--linen-50); }
.dc-sample .dc-check-head { margin-bottom: 4px; }
.dc-sample .dc-check-title { margin: 0; font-family: var(--font-ui-strong); font-size: 16px; }
.dc-sample .dc-check p:not(.dc-check-title) { font-size: 14px; line-height: 1.5; }
.dc-sample .dc-badge { font-size: 10px; padding: 5px 8px; }
.dc-sample figcaption { margin-top: 12px; font-family: var(--font-ui); font-size: 13px; color: var(--linen-600); }
@media (max-width: 1024px) {
  .dc-panel--split { grid-template-columns: 1fr; gap: var(--space-lg); }
}

/* ---- The record: speaking photo beside the credentials ---------------- */
.band--k-the-record.has-photo .band-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
  column-gap: 64px;
  align-items: start;
}
.band--k-the-record.has-photo .band-inner > * { grid-column: 1; }
.band--k-the-record.has-photo .record-photo { grid-column: 2; grid-row: 1 / span 3; }
.band--k-the-record.has-photo ul.facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.record-photo { margin: 0; }
.record-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 0.5px solid var(--linen-200);
}
.record-photo figcaption { margin-top: 10px; font-family: var(--font-ui); font-size: 14px; line-height: 1.45; color: var(--linen-600); }
@media (max-width: 1024px) {
  .band--k-the-record.has-photo .band-inner { grid-template-columns: minmax(0, 1fr) 260px; column-gap: var(--space-lg); }
  .band--k-the-record.has-photo ul.facts { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .band--k-the-record.has-photo .band-inner { grid-template-columns: 1fr; }
  .band--k-the-record.has-photo .record-photo { grid-column: 1; grid-row: auto; max-width: 420px; margin-bottom: var(--space-md); }
}

/* ---- Home bio without its photo (the portrait is in the hero) --------- */
.home-bio--text .band-inner { display: block; max-width: calc(760px + var(--space-md) * 2); }

/* ---- Touch targets (WCAG 2.2 2.5.8: at least 24px) -------------------- */
/* Small text links get 4px of padding above and below, taken back with a negative margin,
   so the hit area grows to 24px+ without moving anything on the page. */
.card .card-link a,
.card h3 a,
.home-bio p > a:only-child,
.about-who-text p > a:only-child,
.site-footer a:not(.btn) {
  display: inline-block;
  padding-block: 4px;
  margin-block: -4px;
}
