/* ==========================================================================
   Mirai Home — shared stylesheet
   Palette: deep indigo ground, warm paper, brand gold accent (from the printed
   signage), sage secondary.
   Type: Fraunces (display) over Public Sans (text).
   ========================================================================== */

:root {
  /* Neutrals biased cool, toward the indigo — deliberately not a warm cream. */
  --paper:        #F8F9FB;
  --paper-alt:    #EEF0F5;
  --surface:      #FFFFFF;
  --ink:          #16192B;
  --ink-soft:     #3B4157;
  --muted:        #646C83;
  --line:         #E1E4EA;
  --line-strong:  #C9CEDA;

  --indigo:       #1C2745;
  --indigo-deep:  #121A30;
  --indigo-tint:  #EAECF2;

  /* Brand gold, taken from the printed signage and business card.
     4.92:1 on white and 4.71:1 on --paper, so it is safe for both button
     fills with white text and for body links. */
  --accent:       #896C39;
  --brand-gold:   #896C39;
  --on-accent:    #FFFFFF;
  --accent-hover: #6E5528;
  --accent-tint:  #FAF6EC;

  --sage:         #47614F;
  --sage-tint:    #E9F0EA;

  --warn-tint:    #FBF1DC;
  --warn-line:    #E0C489;
  --warn-ink:     #6B5216;

  --radius:   10px;
  --radius-l: 16px;

  --maxw: 1120px;
  --measure: 68ch;

  --shadow-sm: 0 1px 2px rgba(22, 25, 43, .05);
  --shadow-md: 0 6px 24px -12px rgba(22, 25, 43, .22);

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-text: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:        #0D1120;
    --paper-alt:    #141A2C;
    --surface:      #161C30;
    --ink:          #ECEDF3;
    --ink-soft:     #C3C8D6;
    --muted:        #98A0B5;
    --line:         #262E45;
    --line-strong:  #37405B;

    --indigo:       #101728;
    --indigo-deep:  #0A0F1C;
    --indigo-tint:  #1B2238;

    --accent:       #C9A667;   /* lifted so gold reads on a dark ground */
    --brand-gold:   #C9A667;
    --on-accent:    #16192B;   /* gold is light: buttons need dark text here */
    --accent-hover: #DCBC84;
    --accent-tint:  #2A2416;

    --sage:         #8FB39B;
    --sage-tint:    #17251C;

    --warn-tint:    #2A2313;
    --warn-line:    #5C4A1E;
    --warn-ink:     #E3C98A;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-md: 0 6px 24px -12px rgba(0, 0, 0, .6);
  }
}

:root[data-theme="dark"] {
  --brand-gold:   #C9A667;
  --paper:        #0D1120;
  --paper-alt:    #141A2C;
  --surface:      #161C30;
  --ink:          #ECEDF3;
  --ink-soft:     #C3C8D6;
  --muted:        #98A0B5;
  --line:         #262E45;
  --line-strong:  #37405B;

  --indigo:       #101728;
  --indigo-deep:  #0A0F1C;
  --indigo-tint:  #1B2238;

  --accent:       #C9A667;
  --on-accent:    #16192B;
  --accent-hover: #DCBC84;
  --accent-tint:  #2A2416;

  --sage:         #8FB39B;
  --sage-tint:    #17251C;

  --warn-tint:    #2A2313;
  --warn-line:    #5C4A1E;
  --warn-ink:     #E3C98A;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-md: 0 6px 24px -12px rgba(0, 0, 0, .6);
}

/* --- reset ---------------------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.65;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: "SOFT" 20, "WONK" 0;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.15rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }
h4 { font-size: 1.02rem; font-family: var(--font-text); font-weight: 700; letter-spacing: 0; }

p { margin: 0 0 1.1em; max-width: var(--measure); text-wrap: pretty; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; max-width: var(--measure); }
li { margin-bottom: .45em; }
li::marker { color: var(--accent); }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }

strong { font-weight: 650; }
small { font-size: .82rem; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--on-accent); padding: .7rem 1.1rem;
  border-radius: 0 0 var(--radius) 0; font-weight: 600;
}
.skip-link:focus { left: 0; color: var(--on-accent); }

/* --- layout --------------------------------------------------------------- */

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.15rem, 4vw, 2rem); }
/* A narrow reading column that keeps the SAME container box as .wrap, so its
   left edge lines up with headings in a full-width .wrap on the same page.
   Constraining the children rather than the container is what makes that hold. */
.wrap-narrow > * { max-width: 780px; }

section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
section.tight { padding: clamp(2rem, 4vw, 3rem) 0; }
section + section { border-top: 1px solid var(--line); }
section.band { background: var(--paper-alt); }
section.band + section, section + section.band { border-top: 0; }

.eyebrow {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
  display: block;
}
.eyebrow.quiet { color: var(--muted); }

.lede { font-size: clamp(1.06rem, 1.8vw, 1.2rem); color: var(--ink-soft); max-width: 62ch; }

.grid { display: grid; gap: clamp(1.1rem, 2.4vw, 1.75rem); }
.grid.two   { grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.grid.four  { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
/* Paired form fields inside a tool column — stays two-up in a narrow container. */
.grid.pair  { grid-template-columns: repeat(auto-fit, minmax(min(100%, 175px), 1fr)); gap: 0 1.1rem; }

.stack > * + * { margin-top: 1.5rem; }

/* --- header --------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex; align-items: center; gap: 1.25rem;
  min-height: 68px;
}

.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  color: var(--ink); text-decoration: none; font-weight: 700;
  letter-spacing: .04em; font-size: .95rem; text-transform: uppercase;
  margin-right: auto; flex-shrink: 0;
}
.brand:hover { color: var(--ink); }
.brand svg { width: auto; height: 25px; flex-shrink: 0; overflow: visible; }
.brand-name { font-family: var(--font-display); font-weight: 600; letter-spacing: .06em; }

.nav { display: flex; align-items: center; gap: .15rem; }
.nav a {
  color: var(--ink-soft); text-decoration: none; font-size: .93rem;
  font-weight: 500; padding: .5rem .7rem; border-radius: var(--radius);
  white-space: nowrap;
}
.nav a:hover { color: var(--ink); background: var(--indigo-tint); }
.nav a[aria-current="page"] { color: var(--accent); font-weight: 650; }

.header-cta {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--accent); color: var(--on-accent) !important; text-decoration: none;
  padding: .5rem .9rem; border-radius: var(--radius);
  font-size: .9rem; font-weight: 600; white-space: nowrap;
}
.header-cta:hover { background: var(--accent-hover); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line-strong);
  border-radius: var(--radius); color: var(--ink); padding: .45rem .6rem;
  cursor: pointer; font: inherit; font-size: .85rem;
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: .4rem; order: 3; }
  .nav {
    order: 4; width: 100%; flex-direction: column; align-items: stretch;
    gap: 0; padding: .5rem 0 1rem; border-top: 1px solid var(--line);
  }
  .nav[data-open="false"] { display: none; }
  .nav a { padding: .7rem .25rem; }
  .header-inner { flex-wrap: wrap; }
  .header-cta { order: 2; }
}

/* --- hero ----------------------------------------------------------------- */

.hero {
  background: var(--indigo);
  color: #F3F1EC;
  padding: clamp(3.5rem, 9vw, 7rem) 0;
  border-top: 0;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 100% at 88% 0%, rgba(201, 166, 103, .20), transparent 60%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { color: #FDFCFA; }
.hero .eyebrow { color: #D8B87A; }
.hero p { color: #C9CEDC; }
.hero .lede { color: #D5D9E4; }
.hero a:not(.btn) { color: #E3C68C; }

.hero-em { color: #D8B87A; font-style: italic; font-variation-settings: "SOFT" 40, "WONK" 1; }

.hero-facts {
  display: flex; flex-wrap: wrap; gap: 0 2.5rem;
  margin-top: 2.25rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.hero-facts div { padding: .4rem 0; }
.hero-facts dt {
  font-size: .7rem; letter-spacing: .13em; text-transform: uppercase;
  color: #98A1BA; margin-bottom: .2rem;
}
.hero-facts dd { margin: 0; font-weight: 600; font-size: .97rem; color: #F3F1EC; }
.hero-facts dd a { color: #E3C68C; }

/* --- buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-size: .95rem; font-weight: 600;
  padding: .72rem 1.3rem; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--indigo-tint); color: var(--ink); border-color: var(--muted); }
.hero .btn-ghost { color: #F3F1EC; border-color: rgba(255,255,255,.3); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.09); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.75rem; }

/* --- cards ---------------------------------------------------------------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: clamp(1.25rem, 2.4vw, 1.75rem);
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: .5rem; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }

a.card { text-decoration: none; color: inherit; display: block; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
a.card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); color: inherit; }
a.card h3 { color: var(--ink); }
a.card:hover h3 { color: var(--accent); }
a.card .card-more { color: var(--accent); font-weight: 600; font-size: .9rem; display: inline-block; margin-top: .35rem; }

.card-num {
  font-family: var(--font-display);
  font-size: 1.5rem; color: var(--accent); display: block; margin-bottom: .4rem;
  font-variation-settings: "SOFT" 20, "WONK" 1;
}

/* --- notes / callouts ----------------------------------------------------- */

.note {
  border-left: 3px solid var(--accent);
  background: var(--accent-tint);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
  font-size: .95rem;
}
.note p:last-child { margin-bottom: 0; }
.note-title { font-weight: 700; display: block; margin-bottom: .3rem; }

.note.estimate { border-left-color: var(--warn-line); background: var(--warn-tint); color: var(--warn-ink); }
.note.estimate a { color: inherit; }
.note.sage { border-left-color: var(--sage); background: var(--sage-tint); color: var(--ink); }
.note.plain { border-left-color: var(--line-strong); background: var(--paper-alt); }

/* --- tables --------------------------------------------------------------- */

.table-scroll { overflow-x: auto; margin: 1.5rem 0; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: .94rem; min-width: 460px; }
th, td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--line); }
th { font-weight: 650; font-size: .78rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.total td { border-top: 2px solid var(--ink); border-bottom: 0; font-weight: 700; font-size: 1.05rem; padding-top: .9rem; }

/* --- forms & tools -------------------------------------------------------- */

.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.field .hint { display: block; font-size: .82rem; color: var(--muted); font-weight: 400; margin-top: .15rem; }

input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%; font: inherit; font-size: .97rem;
  padding: .62rem .8rem;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: 2px solid var(--accent-tint); outline-offset: 0; }
textarea { min-height: 110px; resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 2.2rem; }

.input-prefix { position: relative; }
.input-prefix span { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .95rem; pointer-events: none; }
.input-prefix input { padding-left: 1.7rem; }
.input-suffix { position: relative; }
.input-suffix span { position: absolute; right: .85rem; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .95rem; pointer-events: none; }
.input-suffix input { padding-right: 2.2rem; }

fieldset { border: 0; padding: 0; margin: 0 0 1.5rem; }
legend {
  padding: 0; font-weight: 700; font-size: .78rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: .9rem;
}

.tool {
  display: grid; gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}
@media (max-width: 860px) { .tool { grid-template-columns: 1fr; } }

.tool-inputs { min-width: 0; }
.tool-output {
  min-width: 0;
  position: sticky; top: 92px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-l); padding: clamp(1.25rem, 2.5vw, 1.75rem);
  box-shadow: var(--shadow-md);
}
@media (max-width: 860px) { .tool-output { position: static; } }

.readout {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 2.9rem);
  font-weight: 500; line-height: 1.05; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ink); margin: .1rem 0 .2rem;
}
.readout.accent { color: var(--accent); }
.readout.sage { color: var(--sage); }
.readout-label { font-size: .78rem; letter-spacing: .11em; text-transform: uppercase; color: var(--muted); }
.readout-sub { font-size: .9rem; color: var(--muted); margin: 0 0 1.25rem; }

.bar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: var(--paper-alt); margin: 1.25rem 0 .75rem; }
.bar > span { display: block; height: 100%; }
.bar-key { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; font-size: .82rem; color: var(--muted); }
.bar-key span { display: inline-flex; align-items: center; gap: .4rem; }
.bar-key i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; flex-shrink: 0; }

.swatch-1 { background: var(--indigo); } :root[data-theme="dark"] .swatch-1, :root:not([data-theme="light"]) .swatch-1 {}
.swatch-2 { background: var(--accent); }
.swatch-3 { background: var(--sage); }
.swatch-4 { background: #8A93AC; }
.swatch-5 { background: var(--line-strong); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .swatch-1 { background: #5A6E9E; }
}
:root[data-theme="dark"] .swatch-1 { background: #5A6E9E; }

.assumptions {
  margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line);
  font-size: .87rem; color: var(--muted);
}
.assumptions h4 { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.assumptions ul { padding-left: 1.1em; margin-bottom: 0; }
.assumptions li { margin-bottom: .3em; }

details.disclose {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: .85rem 1.1rem; margin: 1.25rem 0; background: var(--surface);
}
details.disclose summary { cursor: pointer; font-weight: 650; font-size: .93rem; }
details.disclose[open] summary { margin-bottom: .8rem; }
details.disclose > *:last-child { margin-bottom: 0; }

/* --- router quiz ---------------------------------------------------------- */

.router-step { display: none; }
.router-step[data-active="true"] { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.choice-list { display: grid; gap: .6rem; margin: 1.25rem 0 0; padding: 0; list-style: none; max-width: none; }
.choice {
  width: 100%; text-align: left; font: inherit; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--radius); padding: .9rem 1.1rem; color: var(--ink);
  transition: border-color .15s ease, background .15s ease;
}
.choice:hover { border-color: var(--accent); background: var(--accent-tint); }
.choice b { display: block; font-weight: 650; margin-bottom: .1rem; }
.choice span { font-size: .88rem; color: var(--muted); }

.progress-dots { display: flex; gap: .35rem; margin-bottom: 1rem; }
.progress-dots i { width: 22px; height: 3px; border-radius: 99px; background: var(--line-strong); display: block; }
.progress-dots i.on { background: var(--accent); }

/* --- neighborhood / list bits --------------------------------------------- */

.pill-row { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 1.25rem; padding: 0; list-style: none; max-width: none; }
.pill {
  display: inline-block; font-size: .82rem; font-weight: 600;
  padding: .3rem .7rem; border-radius: 99px;
  background: var(--indigo-tint); color: var(--ink-soft);
  border: 1px solid var(--line); text-decoration: none;
}
a.pill:hover { border-color: var(--accent); color: var(--accent); }
.pill.cfd { background: var(--warn-tint); color: var(--warn-ink); border-color: var(--warn-line); }
.pill.clear { background: var(--sage-tint); color: var(--sage); border-color: color-mix(in srgb, var(--sage) 35%, transparent); }

.factbox {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius-l);
  overflow: hidden; margin: 1.75rem 0;
}
.factbox div { background: var(--surface); padding: 1rem 1.15rem; }
.factbox dt { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .25rem; }
.factbox dd { margin: 0; font-weight: 600; font-size: .95rem; }

.linklist { list-style: none; padding: 0; max-width: none; }
.linklist li { margin-bottom: .9rem; padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
.linklist li:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.linklist a { font-weight: 650; }
.linklist p { font-size: .9rem; color: var(--muted); margin: .15rem 0 0; }

.timeline { list-style: none; padding: 0; max-width: var(--measure); counter-reset: step; }
.timeline li {
  position: relative; padding-left: 2.6rem; padding-bottom: 1.6rem;
  border-left: 1px solid var(--line); margin-left: .8rem; margin-bottom: 0;
}
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: -.85rem; top: -.15rem;
  width: 1.7rem; height: 1.7rem; border-radius: 99px;
  background: var(--accent); color: var(--on-accent);
  font-size: .78rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.timeline h4 { margin-bottom: .2rem; }
.timeline p:last-child { margin-bottom: 0; }

/* --- portrait ------------------------------------------------------------- */

.portrait-row { display: grid; grid-template-columns: minmax(200px, 280px) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 720px) { .portrait-row { grid-template-columns: 1fr; } }
.portrait {
  aspect-ratio: 4 / 5; border-radius: var(--radius-l); overflow: hidden;
  background: var(--indigo-tint); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: var(--muted); font-size: .85rem;
}
/* The photograph fills the frame edge to edge; only a text fallback gets padding. */
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portrait > span { padding: 1.25rem; }

/* --- footer --------------------------------------------------------------- */

.site-footer {
  background: var(--indigo-deep); color: #B9C0D2;
  padding: clamp(2.5rem, 5vw, 4rem) 0 2rem;
  font-size: .9rem;
}
.site-footer h4 { color: #F3F1EC; font-size: .74rem; letter-spacing: .13em; text-transform: uppercase; margin-bottom: .9rem; font-weight: 700; }
.site-footer a { color: #C9CEDC; text-decoration: none; }
.site-footer a:hover { color: #E3C68C; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5em; }
.site-footer p { color: #98A1BA; }

.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-legal {
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: .75rem 2rem; align-items: baseline;
  font-size: .82rem; color: #8A93AC;
}
.footer-legal p { margin: 0; max-width: 70ch; color: #8A93AC; }
.footer-legal .licence { color: #F3F1EC; font-weight: 600; }

.eho { display: inline-flex; align-items: center; gap: .5rem; }
.eho svg { width: 15px; height: 15px; opacity: .8; }

/* --- misc ----------------------------------------------------------------- */

.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); text-decoration: underline; }

/* Vertical only — the shorthand here would wipe .wrap's horizontal padding and
   put headings flush against the screen edge on narrow viewports. */
.page-head { padding-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.page-head h1 { margin-bottom: .4rem; }

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

.form-status { margin-top: 1rem; padding: .9rem 1.1rem; border-radius: var(--radius); font-size: .93rem; }
.form-status[data-state="ok"] { background: var(--sage-tint); color: var(--sage); border: 1px solid color-mix(in srgb, var(--sage) 35%, transparent); }
.form-status[data-state="err"] { background: var(--accent-tint); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.form-status[data-state="busy"] { background: var(--paper-alt); color: var(--muted); border: 1px solid var(--line); }
