/* Wiley Valuation Advisory — design system.
   Spec §8 color, §8.1 computed contrast, §9 typography (zero webfonts),
   §13 global components. The operative contrast rule: on charcoal grounds
   all body text is --wva-cool or #fff; blue and steel are display and
   decoration only on dark. Encoded as two token sets, per spec. */

:root {
  --wva-blue: #2B749F;      /* Martinique. Links, rules, buttons, H2 on light */
  --wva-steel: #506F84;     /* dark-ground accent: large display + non-text UI */
  --wva-charcoal: #192026;  /* signature ground; body text color on light */
  --wva-gray: #676767;      /* secondary text on light */
  --wva-cool: #B7B1AD;      /* body text on charcoal */
  --wva-paper: #FFFFFF;
  --wva-tint: #F2F4F6;

  /* Action tone: a more saturated sibling of Martinique, used ONLY for
     button fills so the one thing a reader can do carries more energy than
     the surrounding accent. Measured: 4.72:1 with white text (AA normal),
     3.49:1 on charcoal (AA for UI components). The spec's brand accent
     --wva-blue is unchanged and still governs links, rules and headings. */
  --wva-action: #1179B8;
  --wva-action-hover: #0C5F91;   /* 6.86:1 with white text */

  /* Light-theme component tokens (default ground) */
  --ink: var(--wva-charcoal);
  --muted: var(--wva-gray);
  --accent: var(--wva-blue);
  --ground: var(--wva-paper);
  --rule: #D9DEE3;

  --font-serif: Georgia, "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Consolas, monospace;

  --measure: 70ch;
}

/* Dark-band token set (§8.1). Apply .band-dark to any charcoal section. */
.band-dark {
  --ink: #FFFFFF;
  --muted: var(--wva-cool);
  --accent: var(--wva-cool);     /* links on charcoal are cool, never blue */
  --ground: var(--wva-charcoal);
  --rule: #303A43;
  background: var(--ground);
  color: var(--muted);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Motion: one gesture, used twice. Elements settle upward on load and on
   first scroll into view. Nothing loops, nothing bounces, nothing moves
   after it has arrived. */
@media (prefers-reduced-motion: no-preference) {
  .settle { opacity: 0; transform: translateY(14px); }
  .settle.in {
    opacity: 1; transform: none;
    transition: opacity 620ms cubic-bezier(0.16, 1, 0.3, 1),
                transform 620ms cubic-bezier(0.16, 1, 0.3, 1);
  }
  .settle:nth-child(2).in { transition-delay: 70ms; }
  .settle:nth-child(3).in { transition-delay: 140ms; }
  .settle:nth-child(4).in { transition-delay: 210ms; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .settle { opacity: 1 !important; transform: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17.5px;
  line-height: 1.7;
  color: var(--wva-charcoal);
  background: var(--wva-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: var(--font-serif); line-height: 1.16; text-wrap: balance; }
h1 {
  font-size: clamp(36px, 5.4vw, 58px); margin: 0 0 0.42em; font-weight: 600;
  letter-spacing: -0.018em;
}
h2 {
  font-size: clamp(27px, 2.6vw, 32px); margin: 0 0 0.6em; color: var(--wva-blue);
  font-weight: 600; letter-spacing: -0.012em; max-width: 24ch;
}
.band-dark h2 { color: #FFFFFF; }
.eyebrow + h2 { margin-top: 2px; }
h3 { font-size: 22px; margin: 0 0 0.45em; letter-spacing: -0.005em; }
h4 {
  font-family: var(--font-sans); font-size: 13px; text-transform: uppercase;
  letter-spacing: 0.09em; margin: 0 0 0.8em; color: var(--wva-steel);
  font-weight: 600;
}

p, li { max-width: var(--measure); }
p { margin: 0 0 1.15em; }
ul, ol { padding-left: 1.15em; }
li { margin-bottom: 0.5em; }
li::marker { color: var(--wva-blue); }
.band-dark li::marker { color: var(--wva-steel); }

a {
  color: var(--wva-blue);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 160ms cubic-bezier(0.16, 1, 0.3, 1);
}
a:hover { text-decoration-thickness: 2px; }
.band-dark a { color: var(--wva-cool); }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--wva-blue); outline-offset: 2px;
}
.band-dark a:focus-visible, .band-dark button:focus-visible {
  outline-color: var(--wva-cool);
}

.dek { font-size: 20px; color: var(--wva-gray); max-width: 62ch; margin: 0 0 1.2em; }
.band-dark .dek { color: var(--wva-cool); }

.eyebrow {
  font-family: var(--font-sans); font-size: 13px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--wva-steel); margin: 0 0 10px;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--wva-blue);
  flex: none;
}
.band-dark .eyebrow { color: var(--wva-cool); }
.band-dark .eyebrow::before { background: var(--wva-steel); }

::selection { background: var(--wva-blue); color: #FFFFFF; }

.kicker {
  font-family: var(--font-serif); font-style: italic; font-size: 19px;
  color: var(--wva-cool); margin: 0 0 14px;
}

/* ---- layout ------------------------------------------------------------- */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
/* Three-tier rhythm: tight for utility rows, base for most, major for the
   sections doing the arguing. Uniform padding is monotony. */
section.block { padding: 92px 0; }
section.block--tight { padding: 44px 0; }
section.block--major { padding: 132px 0; }
.tint { background: var(--wva-tint); }

/* Charcoal is never flat: a barely-there vertical lift keeps the dark bands
   from reading as a filled rectangle. */
.band-dark {
  background-image: linear-gradient(178deg, #1D262D 0%, var(--wva-charcoal) 62%);
}

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--wva-paper);
  color: var(--wva-charcoal); padding: 10px 16px; z-index: 100;
}
.skip:focus { left: 0; }

/* ---- header (§13 site-header) ------------------------------------------- */
.site-header {
  background: var(--wva-charcoal); color: var(--wva-cool);
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid #2A343D;
}
/* the drafting keyline: one blue rule under the whole chrome */
.site-header::after {
  content: ""; display: block; height: 2px;
  background: linear-gradient(90deg, var(--wva-blue) 0%, var(--wva-steel) 70%, transparent 100%);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 28px; min-height: 76px;
}
.brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; }
.brand svg { width: 180px; height: auto; display: block; }
.brand img { width: 34px; height: 34px; display: block; opacity: 0.95; }
.brand .brand-word {
  font-family: var(--font-serif); font-size: 19px; color: #fff;
  letter-spacing: 0.015em; white-space: nowrap;
}
.nav { margin-left: auto; }
.nav ul {
  display: flex; align-items: center; gap: 26px; list-style: none;
  margin: 0; padding: 0;
}
.nav li { display: flex; align-items: center; }
.nav a, .nav button {
  appearance: none; -webkit-appearance: none;
  color: #FFFFFF; text-decoration: none; font-size: 15.5px; background: none;
  border: 0; margin: 0; font-family: var(--font-sans); cursor: pointer;
  display: inline-block; padding: 8px 2px; line-height: 20px;
}
.nav a:hover, .nav button:hover { color: var(--wva-cool); }
.nav li { position: relative; }
.nav .sub {
  display: none; position: absolute; top: 100%; left: 0; min-width: 260px;
  background: var(--wva-charcoal); border: 1px solid #303A43; padding: 8px 0;
}
.nav li:hover > .sub, .nav li:focus-within > .sub { display: block; }
.nav .sub a { display: block; padding: 9px 18px; font-size: 15px; }

.btn {
  display: inline-block; background: var(--wva-action); color: #FFFFFF;
  font-family: var(--font-sans); font-size: 16px; font-weight: 600;
  letter-spacing: 0.005em; padding: 14px 26px;
  text-decoration: none; border: 0; cursor: pointer;
  transition: background-color 180ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 180ms cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 180ms cubic-bezier(0.16, 1, 0.3, 1);
}
.btn:hover {
  background: var(--wva-action-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -8px rgba(17, 121, 184, 0.85);
}
.btn:active { transform: translateY(0); box-shadow: none; }
@media (prefers-reduced-motion: reduce) {
  .btn:hover { transform: none; }
}
.btn--ghost {
  background: transparent; color: var(--wva-action);
  border: 1px solid var(--wva-action); box-shadow: none;
}
.btn--ghost:hover { background: transparent; color: var(--wva-action-hover); }
.band-dark .btn--ghost { color: #fff; border-color: var(--wva-cool); }

.nav-toggle { display: none; }

/* ---- utility bar (§12.2) ------------------------------------------------- */
.utility-bar {
  background: var(--wva-blue); color: #FFFFFF; font-size: 15px;
  text-align: center; padding: 9px 16px; position: relative;
}
.utility-bar a { color: #FFFFFF; font-weight: 600; }
.utility-bar button {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: #fff; font-size: 18px; cursor: pointer;
  padding: 4px 8px;
}

/* ---- hero-dark (§13) ----------------------------------------------------- */
.hero-dark { padding: 132px 0 120px; position: relative; overflow: hidden; }
.hero-dark h1 { color: #FFFFFF; max-width: 21ch; margin-bottom: 0.55em; }
.hero-dark .dek { max-width: 56ch; font-size: 19px; line-height: 1.72; }
.hero-dark .tagline {
  font-family: var(--font-sans); font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.26em; color: var(--wva-steel); margin: 0 0 40px;
  padding-bottom: 22px; position: relative;
}
.hero-dark .tagline::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 52px; height: 1px;
  background: var(--wva-steel);
}
.hero-dark .buttons { display: flex; gap: 26px; flex-wrap: wrap; align-items: center; margin-top: 38px; }
.hero-dark .buttons a:not(.btn) { color: var(--wva-cool); }
.hero-texture {
  position: absolute; inset: 0; opacity: 0.08; pointer-events: none;
  background-size: cover; background-position: right center;
}
/* fade the texture out under the text column */
.hero-texture {
  -webkit-mask-image: linear-gradient(90deg, transparent 8%, #000 60%);
  mask-image: linear-gradient(90deg, transparent 8%, #000 60%);
}

/* The instrument itself: a visible illustration layer on the hero's right,
   distinct from the 8% background texture. Fades in from the edge so it
   never crowds the copy. */
.hero-art {
  position: absolute; top: 0; right: 0; bottom: 0; width: 34%;
  background-size: cover; background-position: center; opacity: 0.5;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
}
/* On a phone the copy occupies the full width, so the instrument drops to a
   trace. Legibility of the headline outranks the illustration. */
@media (max-width: 860px) {
  .hero-art {
    opacity: 0.1; width: 72%;
    -webkit-mask-image: linear-gradient(200deg, transparent 0%, #000 70%);
    mask-image: linear-gradient(200deg, transparent 0%, #000 70%);
  }
}

.hero-light { padding: 72px 0 48px; }
.hero-light h1 { color: var(--wva-charcoal); }

/* ---- record-line: the countable facts as a ruled editorial row, not tiles.
   Figures inline in Georgia, labels run on as prose. No boxes, no grid of
   equal tiles, nothing that counts up. ------------------------------------- */
.record-line {
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding: 26px 0; display: flex; flex-wrap: wrap; gap: 12px 56px;
}
.record-line .entry { max-width: 30ch; }
.record-line .fig {
  font-family: var(--font-serif); font-size: 38px; color: var(--wva-blue);
  line-height: 1.1; letter-spacing: -0.01em;
}
.record-line .lbl { font-size: 15px; color: var(--wva-gray); margin-top: 4px; }
.band-dark .record-line { border-color: var(--rule); }
.band-dark .record-line .fig { color: #FFFFFF; }
.band-dark .record-line .lbl { color: var(--wva-cool); }

/* ---- docket: full-width ruled rows for the three engagement modes. The
   sequence label is real (a buyer assesses, then builds, then holds). ------ */
.docket { border-top: 2px solid var(--wva-blue); }
.docket .row {
  display: grid; grid-template-columns: 220px 1fr; gap: 8px 44px;
  padding: 30px 0; border-bottom: 1px solid var(--rule);
}
.docket .mode {
  font-family: var(--font-sans); font-size: 13px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--wva-steel); padding-top: 7px;
}
.docket h3 { margin: 0 0 8px; }
.docket p { margin: 0 0 10px; }
.docket .go { font-weight: 600; text-decoration: none; }
.docket .go::after { content: " \2192"; }

/* ---- ruled columns: three readers, no card boxes ------------------------- */
.ruled-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.ruled-cols > div { border-top: 2px solid var(--wva-charcoal); padding-top: 16px; }
.ruled-cols h3 { margin-top: 0; font-size: 20px; }
.ruled-cols p { font-size: 16px; }
.ruled-cols .go { font-weight: 600; text-decoration: none; }
.ruled-cols .go::after { content: " \2192"; }

.go { font-weight: 600; text-decoration: none; }
.go::after { content: " \2192"; }

/* ---- callout (§13) -------------------------------------------------------- */
.callout {
  border: 1px solid var(--rule); border-top: 2px solid var(--wva-blue);
  background: var(--wva-tint);
  padding: 20px 24px; font-size: 16px; margin: 26px 0; max-width: var(--measure);
}
.callout p:last-child { margin-bottom: 0; }

/* ---- lede: the opening paragraph of a major section, set up a step ------- */
.lede-para {
  font-size: 20px; line-height: 1.62; color: var(--wva-charcoal);
  max-width: 62ch; margin-bottom: 1.4em;
}
.band-dark .lede-para { color: #FFFFFF; }

/* ---- pull: one sentence given the room it earns. Serif, no quote marks,
   no italic, a rule above. Used at most once per page. ---------------------- */
.pull {
  font-family: var(--font-serif); font-size: clamp(23px, 2.2vw, 28px);
  line-height: 1.38; letter-spacing: -0.008em; color: var(--wva-charcoal);
  max-width: 26ch; margin: 48px 0; padding-top: 24px;
  border-top: 2px solid var(--wva-blue);
}
.band-dark .pull { color: #FFFFFF; border-top-color: var(--wva-steel); }

/* ---- schedule: numbered documentary rows. The number is the record's
   index, not decoration, so it is set in the serif and given a column. ------ */
.schedule { counter-reset: sched; border-top: 1px solid var(--rule); }
.schedule > li {
  counter-increment: sched; list-style: none; max-width: none;
  display: grid; grid-template-columns: 56px 1fr; gap: 0 28px;
  padding: 26px 0; border-bottom: 1px solid var(--rule); margin: 0;
}
.schedule > li::before {
  content: counter(sched, decimal-leading-zero);
  grid-column: 1; grid-row: 1 / span 2;
  font-family: var(--font-serif); font-size: 17px; color: var(--wva-blue);
  padding-top: 3px; font-variant-numeric: tabular-nums;
}
.schedule .term {
  grid-column: 2; grid-row: 1;
  font-weight: 600; display: block; margin-bottom: 5px;
  color: var(--wva-charcoal); font-size: 17.5px;
}
.schedule p { grid-column: 2; grid-row: 2; margin: 0; max-width: 66ch; }
.band-dark .schedule > li::before { color: var(--wva-steel); }
.band-dark .schedule .term { color: #FFFFFF; }

/* ---- section rail: a sticky index for the long pages. Information, not
   ornament: it tells the reader how much page is left and where they are. -- */
.railed { display: grid; grid-template-columns: 200px 1fr; gap: 0 64px; }
.rail { position: sticky; top: 108px; align-self: start; }
.rail p {
  font-family: var(--font-sans); font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.09em; color: var(--wva-steel); margin: 0 0 14px;
}
.rail ol { list-style: none; margin: 0; padding: 0; counter-reset: railn; }
.rail li { counter-increment: railn; margin: 0; max-width: none; }
.rail a {
  display: block; padding: 7px 0 7px 26px; font-size: 14.5px;
  color: var(--wva-gray); text-decoration: none; position: relative;
  border-left: 1px solid var(--rule); margin-left: -1px;
}
.rail a::before {
  content: counter(railn, decimal-leading-zero);
  position: absolute; left: 10px; font-size: 11px; color: var(--wva-steel);
  font-variant-numeric: tabular-nums; top: 9px;
}
.rail a:hover, .rail a.current {
  color: var(--wva-blue); border-left: 2px solid var(--wva-blue);
}
@media (max-width: 980px) {
  .railed { grid-template-columns: 1fr; gap: 0; }
  .rail { display: none; }
}

/* ---- method-steps (§13) — the engagement as a documented sequence -------- */
.method-steps { list-style: none; counter-reset: phase; padding: 0; margin: 0; }
.method-steps li {
  counter-increment: phase; padding: 30px 0 30px 88px; position: relative;
  border-top: 1px solid var(--rule); max-width: none;
}
.method-steps li:last-child { border-bottom: 1px solid var(--rule); }
.method-steps li::before {
  content: "Phase " counter(phase); position: absolute; left: 0; top: 33px;
  font-family: var(--font-sans); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.09em; color: var(--wva-steel); width: 72px;
}
/* the tick that makes the column read as a scale */
.method-steps li::after {
  content: ""; position: absolute; left: 0; top: 30px; width: 18px;
  height: 2px; background: var(--wva-blue);
}
.method-steps .phase-name {
  font-family: var(--font-serif); font-weight: 600; font-size: 21px;
  display: block; margin-bottom: 6px;
}
.method-steps p { margin: 0 0 8px; }
.method-steps .produces {
  color: var(--wva-gray); font-size: 15.5px; margin: 10px 0 0;
  padding-top: 10px; border-top: 1px dotted var(--rule); max-width: 62ch;
}
.band-dark .method-steps li::after { background: var(--wva-steel); }

/* ---- engagement-block (§13): a specification sheet, not a pricing card.
   No field can hold a currency value. --------------------------------------- */
.engagement-block {
  border: 1px solid var(--rule); border-top: 2px solid var(--wva-charcoal);
  background: var(--wva-paper); max-width: 760px;
}
.tint .engagement-block { background: var(--wva-paper); }
.engagement-block dl { display: grid; grid-template-columns: 230px 1fr; margin: 0; }
.engagement-block dt {
  font-family: var(--font-sans); font-size: 11.5px; text-transform: uppercase;
  letter-spacing: 0.09em; color: var(--wva-steel); padding: 17px 22px;
  border-top: 1px solid var(--rule); font-weight: 600;
  background: #FAFBFC;
}
.engagement-block dd {
  margin: 0; padding: 17px 22px; border-top: 1px solid var(--rule);
  font-size: 16px;
}
.engagement-block dt:first-of-type, .engagement-block dd:first-of-type { border-top: 0; }

/* ---- source-list (§13) — a credibility device, styled visibly ------------- */
.source-list {
  border-top: 3px solid var(--wva-blue); padding: 18px 0 0; margin: 40px 0 0;
}
.source-list h2, .source-list h3 { font-family: var(--font-sans); font-size: 15px;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--wva-charcoal); }
.source-list ol { padding-left: 1.3em; font-size: 15.5px; color: var(--wva-gray); }

/* ---- ghosted compass mark on charcoal argument bands (§15.8) -------------- */
.band-ghost { position: relative; overflow: hidden; }
.band-ghost .wrap { position: relative; z-index: 1; }
.band-ghost::before {
  content: ""; position: absolute; right: -60px; top: 50%;
  transform: translateY(-50%); width: 380px; height: 380px;
  background: var(--ghost-mark) no-repeat center / contain;
  opacity: 0.05; pointer-events: none;
}

/* ---- cta-band (§13) — once per page, near the bottom ---------------------- */
.cta-band { text-align: left; }
.cta-band .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap; padding-top: 52px; padding-bottom: 52px;
}
.cta-band p {
  font-family: var(--font-serif); font-size: 21px; color: #FFFFFF;
  margin: 0; max-width: 52ch; line-height: 1.5;
}

/* ---- footer (§12.3) -------------------------------------------------------- */
.site-footer { padding: 76px 0 34px; font-size: 15.5px; }
.site-footer .cols {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px;
}
.site-footer h2 {
  font-family: var(--font-sans); font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.1em; color: #FFFFFF; margin-bottom: 16px;
  padding-bottom: 12px; border-bottom: 1px solid #2A343D; max-width: none;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .contact-block { font-style: normal; line-height: 1.7; }
.site-footer .legal-row {
  border-top: 1px solid #303A43; margin-top: 40px; padding-top: 18px;
  font-size: 14px; color: var(--wva-cool);
}
.site-footer .legal-row a { color: var(--wva-cool); }

/* ---- tables ---------------------------------------------------------------- */
.table-scroll { overflow-x: auto; margin: 26px 0 34px; }
table.spec {
  border-collapse: collapse; width: 100%; font-size: 16px; line-height: 1.6;
}
table.spec caption {
  text-align: left; font-weight: 600; padding-bottom: 12px; color: var(--wva-gray);
}
table.spec th {
  font-family: var(--font-sans); font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.09em; text-align: left; color: var(--wva-steel);
  border-bottom: 2px solid var(--wva-blue); padding: 0 26px 11px 0;
  white-space: nowrap; font-weight: 600;
}
table.spec td {
  border-bottom: 1px solid var(--rule); padding: 17px 26px 17px 0;
  vertical-align: top;
}
table.spec tr:last-child td { border-bottom: 0; }
table.spec td:first-child { color: var(--wva-charcoal); font-weight: 600; }
table.spec td:last-child, table.spec th:last-child { padding-right: 0; }

/* ---- forms ------------------------------------------------------------------ */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; max-width: 760px; }
.f { display: flex; flex-direction: column; gap: 6px; }
.f--full { grid-column: 1 / -1; }
.f label { font-size: 15px; font-weight: 600; }
.f input, .f select, .f textarea {
  font: inherit; padding: 10px 12px; border: 1px solid #9AA4AC;
  background: #fff; color: var(--wva-charcoal);
}
.f .err { color: #A33A2A; font-size: 14px; display: none; }
.f.invalid .err { display: block; }
.f.invalid input, .f.invalid select, .f.invalid textarea { border-color: #A33A2A; }
.hp { position: absolute; left: -9999px; }
.form-status { margin-top: 18px; font-size: 16px; }

/* ---- day counter ------------------------------------------------------------ */
.day-count { font-variant-numeric: tabular-nums; }

/* ---- responsive ------------------------------------------------------------- */
@media (max-width: 860px) {
  .ruled-cols, .site-footer .cols { grid-template-columns: 1fr; }
  .docket .row { grid-template-columns: 1fr; gap: 4px 0; padding: 24px 0; }
  .docket .mode { padding-top: 0; }
  .record-line { flex-direction: column; gap: 18px; }
  .band-ghost::before { display: none; }
  section.block--major { padding: 72px 0; }
  .engagement-block dl { grid-template-columns: 1fr; }
  .engagement-block dt { border-top: 1px solid var(--rule); padding-bottom: 2px; }
  .engagement-block dd { border-top: 0; padding-top: 2px; }

  /* header: one row, brand left, toggle right; menu is a panel below */
  .site-header .wrap {
    position: relative; flex-wrap: nowrap; gap: 12px; min-height: 64px;
  }
  .brand .brand-word { font-size: 17px; }
  .header-cta { display: none; }
  .nav-toggle {
    display: block; margin-left: auto; flex: none; background: none;
    border: 1px solid var(--wva-cool); color: #fff; font-size: 14px;
    padding: 8px 13px; cursor: pointer; line-height: 1;
  }

  .nav { display: none; }
  .nav.open {
    display: block; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--wva-charcoal); border-top: 1px solid #2A343D;
    padding: 8px 24px 22px; max-height: calc(100vh - 64px); overflow-y: auto;
  }
  .nav.open ul { display: block; }             /* undo the desktop flex row */
  .nav.open li { display: block; }
  .nav.open > ul > li { border-bottom: 1px solid #242E36; }
  .nav.open > ul > li:last-child { border-bottom: 0; }
  .nav.open a, .nav.open button {
    display: block; width: 100%; text-align: left; padding: 13px 0;
    font-size: 16px;
  }
  .nav.open button { color: var(--wva-cool); cursor: default; }
  .nav .sub {
    display: block; position: static; border: 0; min-width: 0;
    padding: 0 0 10px 16px; background: none;
  }
  .nav.open .sub a { padding: 9px 0; font-size: 15px; color: #E6EAED; }

  /* the mobile CTA lives at the foot of the open menu, not in the bar */
  .nav.open .menu-cta { display: block; margin-top: 16px; }
  .nav.open .menu-cta .btn { display: block; text-align: center; }

  /* utility bar: leave room for the dismiss control */
  .utility-bar { padding: 10px 44px; font-size: 14px; line-height: 1.45; }
  .utility-bar button { right: 6px; }

  /* Vertical air is a desktop luxury. On a phone the same padding just
     pushes the headline below the fold. */
  .hero-dark { padding: 56px 0 60px; }
  .hero-light { padding: 44px 0 32px; }
  .hero-dark .tagline { margin-bottom: 26px; padding-bottom: 16px; }
  .hero-dark .buttons { margin-top: 28px; gap: 18px; }
  .hero-dark .dek, .dek { font-size: 17.5px; }
  section.block { padding: 56px 0; }
  section.block--major { padding: 64px 0; }
  section.block--tight { padding: 32px 0; }
  .wrap { padding: 0 22px; }
  .pull { font-size: 21px; margin: 32px 0; max-width: none; }
  .schedule > li { grid-template-columns: 34px 1fr; gap: 0 14px; padding: 20px 0; }
  .method-steps li { padding: 24px 0 24px 0; }
  .method-steps li::before { position: static; display: block; margin-bottom: 10px; }
  .method-steps li::after { display: none; }
}
/* .nav li carries display:flex, so the desktop hide needs equal reach */
@media (min-width: 861px) { .nav li.menu-cta { display: none; } }
