/* ==========================================================================
   Chadwick Place Homeowners' Association
   site.css  —  the single stylesheet for the whole site.

   HOW THIS FILE IS ORGANIZED
     1. Design tokens ....... colors, type scale, spacing. Change these first.
     2. Reset & base ........ sensible defaults
     3. Layout .............. containers, bands, grids
     4. Header & nav
     5. Components .......... cards, documents, rules, callouts, steps, forms
     6. Footer
     7. Utilities
     8. Print & motion preferences

   If you only want to change the colors of the site, edit section 1.
   ========================================================================== */


/* 1. DESIGN TOKENS ========================================================= */

:root {
  /* --- Palette ---------------------------------------------------------- */
  --navy:        #1B3A5C;   /* primary: headers, headings, links            */
  --navy-deep:   #12283F;   /* darker navy for gradients and the footer     */
  --navy-soft:   #2C5480;   /* hover states                                 */
  --slate:       #4A5D73;   /* secondary text                               */
  --slate-light: #7A8899;   /* metadata, captions                           */
  --brass:       #C9A227;   /* accent: rules, active states, the mark       */
  --brass-deep:  #A8851C;   /* accent hover                                 */
  --brass-pale:  #F5EDD3;   /* accent backgrounds                           */

  --paper:       #FFFFFF;   /* page ground                                  */
  --paper-tint:  #F7F9FB;   /* alternating band                             */
  --paper-warm:  #FBFAF7;   /* document library band                        */
  --rule-line:   #E3E8EE;   /* hairlines and borders                        */
  --ink:         #16202B;   /* body text                                    */

  --ok:          #2F6F4F;
  --warn:        #9A6318;
  --warn-pale:   #FDF6E9;

  /* --- Type ------------------------------------------------------------- */
  --font-display: "Source Serif 4", "Iowan Old Style", "Palatino Linotype",
                  Palatino, Georgia, "Times New Roman", serif;
  --font-body:    Inter, -apple-system, BlinkMacSystemFont, "Segoe UI",
                  Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono:    ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Fluid type scale — grows with the viewport, no media queries needed.   */
  --step--1: clamp(0.82rem, 0.80rem + 0.10vw, 0.88rem);
  --step-0:  clamp(1.00rem, 0.97rem + 0.15vw, 1.09rem);
  --step-1:  clamp(1.19rem, 1.13rem + 0.28vw, 1.36rem);
  --step-2:  clamp(1.41rem, 1.31rem + 0.49vw, 1.70rem);
  --step-3:  clamp(1.68rem, 1.51rem + 0.83vw, 2.13rem);
  --step-4:  clamp(2.00rem, 1.73rem + 1.33vw, 2.66rem);
  --step-5:  clamp(2.37rem, 1.96rem + 2.05vw, 3.32rem);

  /* --- Spacing ---------------------------------------------------------- */
  --s-1: 0.25rem;  --s-2: 0.5rem;   --s-3: 0.75rem;  --s-4: 1rem;
  --s-5: 1.5rem;   --s-6: 2rem;     --s-7: 3rem;     --s-8: 4rem;
  --s-9: 6rem;     --s-10: 8rem;

  /* --- Structure -------------------------------------------------------- */
  --measure:   68ch;      /* comfortable reading width for body copy        */
  --container: 74rem;
  --container-narrow: 52rem;
  --radius:    10px;
  --radius-sm: 6px;

  --shadow-sm: 0 1px 2px rgba(22,32,43,.06), 0 1px 3px rgba(22,32,43,.05);
  --shadow:    0 2px 4px rgba(22,32,43,.05), 0 6px 16px rgba(22,32,43,.07);
  --shadow-lg: 0 4px 8px rgba(22,32,43,.05), 0 16px 40px rgba(22,32,43,.11);

  --ease: cubic-bezier(.32,.72,.34,1);
}


/* 2. RESET & BASE ========================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;   /* so anchor links clear the sticky header */
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis-weight: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.18;
  letter-spacing: -0.011em;
  margin: 0 0 var(--s-4);
  text-wrap: balance;
  font-weight: 600;
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
h4 { font-size: var(--step-0); font-family: var(--font-body); font-weight: 650;
     letter-spacing: .01em; }

p  { margin: 0 0 var(--s-4); max-width: var(--measure); text-wrap: pretty; }
ul, ol { margin: 0 0 var(--s-4); padding-left: 1.35rem; max-width: var(--measure); }
li { margin-bottom: var(--s-2); }
li::marker { color: var(--slate-light); }

a {
  color: var(--navy);
  text-decoration-color: color-mix(in srgb, var(--navy) 34%, transparent);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color .16s var(--ease), text-decoration-color .16s var(--ease);
}
a:hover { color: var(--navy-soft); text-decoration-color: currentColor; }

strong { font-weight: 640; color: var(--navy); }
small  { font-size: var(--step--1); }
hr { border: 0; border-top: 1px solid var(--rule-line); margin: var(--s-7) 0; }
img, svg { max-width: 100%; height: auto; display: block; }

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

::selection { background: var(--brass-pale); color: var(--navy-deep); }

.skip-link {
  position: absolute; top: -100%; left: var(--s-4); z-index: 999;
  background: var(--navy); color: #fff; padding: var(--s-3) var(--s-5);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm); font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 0; color: #fff; }


/* 3. LAYOUT =============================================================== */

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}
.container--narrow { width: min(100% - 2.5rem, var(--container-narrow)); }

.band { padding-block: var(--s-8); }
.band--tint  { background: var(--paper-tint); }
.band--warm  { background: var(--paper-warm); }
.band--tight { padding-block: var(--s-7); }

.band--navy {
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #E8EEF5;
}
.band--navy h2, .band--navy h3 { color: #fff; }
.band--navy a { color: #fff; text-decoration-color: rgba(255,255,255,.45); }
.band--navy a:hover { color: var(--brass); }

.section-head { margin-bottom: var(--s-6); }
.section-head p { color: var(--slate); font-size: var(--step-1); }

/* The small brass-ruled label that sits above a section heading. */
.eyebrow {
  display: flex; align-items: center; gap: var(--s-3);
  font-family: var(--font-body);
  font-size: var(--step--1); font-weight: 650;
  letter-spacing: .105em; text-transform: uppercase;
  color: var(--brass-deep); margin-bottom: var(--s-3);
}
.eyebrow::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(to right,
              color-mix(in srgb, var(--brass) 55%, transparent), transparent);
}
.band--navy .eyebrow { color: var(--brass); }
.band--navy .eyebrow::after {
  background: linear-gradient(to right, rgba(201,162,39,.5), transparent);
}

.grid { display: grid; gap: var(--s-5); }
/* Breakpoints ascend, so the widest matching rule is the one that wins. */
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2, 1fr); }
                            .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) { .grid--sidebar { grid-template-columns: 1fr 19rem; gap: var(--s-7); } }
@media (min-width: 900px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }


/* 4. HEADER & NAV ========================================================= */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--navy) 96%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-5); min-height: 4.5rem;
}

.brand { display: flex; align-items: center; gap: var(--s-3);
         text-decoration: none; color: #fff; flex-shrink: 0; }
.brand:hover { color: #fff; }
.brand__mark { width: 2.4rem; height: 2.4rem; flex-shrink: 0; }
.brand__text { display: flex; flex-direction: column; line-height: 1.12; }
.brand__name {
  font-family: var(--font-display); font-size: 1.16rem; font-weight: 600;
  letter-spacing: .002em; color: #fff;
}
.brand__sub {
  font-size: .645rem; letter-spacing: .17em; text-transform: uppercase;
  color: var(--brass); font-weight: 600; margin-top: .18rem;
}

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; margin-right: -.4rem;
  background: none; border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius-sm); color: #fff; cursor: pointer;
  transition: background .16s var(--ease);
}
.nav-toggle:hover { background: rgba(255,255,255,.09); }
.nav-toggle svg { width: 1.25rem; height: 1.25rem; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open  { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.nav ul {
  list-style: none; display: flex; align-items: center;
  gap: var(--s-1); margin: 0; padding: 0; max-width: none;
}
.nav li { margin: 0; }
.nav a {
  display: block; padding: .5rem .7rem; border-radius: var(--radius-sm);
  color: #C8D6E5; font-size: .925rem; font-weight: 500; text-decoration: none;
  white-space: nowrap;
  transition: color .16s var(--ease), background .16s var(--ease);
}
.nav a:hover { color: #fff; background: rgba(255,255,255,.09); }
.nav a[aria-current="page"] { color: #fff; font-weight: 600; }
.nav a[aria-current="page"]::after {
  content: ""; display: block; height: 2px; margin-top: .3rem;
  background: var(--brass); border-radius: 2px;
}
.nav__cta {
  margin-left: var(--s-2);
  background: var(--brass); color: var(--navy-deep) !important;
  font-weight: 650 !important; padding: .5rem 1rem !important;
}
.nav__cta:hover { background: #DBB53C; color: var(--navy-deep) !important; }
.nav__cta::after { display: none !important; }

/* Mobile navigation: the list becomes a panel below the bar. */
@media (max-width: 860px) {
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--navy-deep);
    border-bottom: 1px solid rgba(255,255,255,.10);
    box-shadow: var(--shadow-lg);
    display: none;
  }
  .nav[data-open="true"] { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: var(--s-3); gap: 2px; }
  .nav a { padding: .8rem 1rem; font-size: 1rem; }
  .nav a[aria-current="page"] {
    background: rgba(255,255,255,.07); border-left: 3px solid var(--brass);
  }
  .nav a[aria-current="page"]::after { display: none; }
  .nav__cta { margin: var(--s-2) 0 0; text-align: center; }
}
@media (min-width: 861px) { .nav-toggle { display: none; } }


/* 5. COMPONENTS =========================================================== */

/* --- Hero --------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(158deg, #24486E 0%, var(--navy) 44%, var(--navy-deep) 100%);
  color: #fff;
  padding-block: clamp(var(--s-8), 11vw, var(--s-10));
}
/* Faint ornamental wash, drawn from the neighborhood sign motif.
   Tiled at a fixed size so it reads as texture, not as one giant flower. */
.hero__ornament {
  position: absolute; inset: 0; pointer-events: none;
  background-image: url("../img/ornament.svg");
  background-repeat: repeat;
  background-size: 132px 132px;
  opacity: .07;
  -webkit-mask-image: linear-gradient(to left, transparent 10%, #000 58%);
  mask-image: linear-gradient(to left, transparent 10%, #000 58%);
}
.hero__inner { position: relative; z-index: 1; }

/* From the medium breakpoint the hero splits: copy left, entrance photo right.
   Below it, the photo stacks under the buttons. */
@media (min-width: 900px) {
  .hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: var(--s-8);
    align-items: center;
  }
}

.hero__figure { margin: var(--s-7) 0 0; }
.hero__figure img {
  width: 100%; height: auto; border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 20px 55px rgba(0,0,0,.38), 0 3px 10px rgba(0,0,0,.22);
}
@media (min-width: 900px) { .hero__figure { margin: 0; } }
.hero h1 { color: #fff; margin-bottom: var(--s-4); max-width: 18ch; }
.hero__lede {
  font-size: var(--step-1); color: #C6D6E6; max-width: 46ch;
  margin-bottom: var(--s-6);
}
.hero__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4);
  font-size: var(--step--1); letter-spacing: .1em; text-transform: uppercase;
  font-weight: 600; color: var(--brass); margin-bottom: var(--s-5);
}
.hero__meta span { display: flex; align-items: center; gap: var(--s-3); }
.hero__meta span:not(:last-child)::after {
  content: ""; width: 4px; height: 4px; border-radius: 50%;
  background: rgba(201,162,39,.55);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .78rem 1.4rem; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: .95rem; font-weight: 620;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background .17s var(--ease), border-color .17s var(--ease),
              color .17s var(--ease), transform .17s var(--ease),
              box-shadow .17s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.05em; height: 1.05em; flex-shrink: 0; }

.btn--primary { background: var(--brass); color: var(--navy-deep); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: #DBB53C; color: var(--navy-deep); box-shadow: var(--shadow); }

.btn--ghost { background: rgba(255,255,255,.07); color: #fff;
              border-color: rgba(255,255,255,.28); }
.btn--ghost:hover { background: rgba(255,255,255,.14); color: #fff; }

.btn--solid { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.btn--solid:hover { background: var(--navy-soft); color: #fff; box-shadow: var(--shadow); }

.btn--outline { background: transparent; color: var(--navy); border-color: var(--rule-line); }
.btn--outline:hover { background: var(--paper-tint); border-color: var(--slate-light);
                      color: var(--navy); }

/* --- Cards -------------------------------------------------------------- */
.card {
  background: var(--paper); border: 1px solid var(--rule-line);
  border-radius: var(--radius); padding: var(--s-5);
  display: flex; flex-direction: column;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease),
              transform .18s var(--ease);
}
.card h3 { margin-bottom: var(--s-2); }
.card p  { color: var(--slate); font-size: .95rem; margin-bottom: var(--s-4); }
.card p:last-child { margin-bottom: 0; }
.card__foot { margin-top: auto; padding-top: var(--s-2); }

a.card { text-decoration: none; color: inherit; }
a.card:hover {
  border-color: color-mix(in srgb, var(--brass) 55%, var(--rule-line));
  box-shadow: var(--shadow); transform: translateY(-2px);
}
a.card:hover h3 { color: var(--navy-soft); }

.card__icon {
  width: 2.6rem; height: 2.6rem; border-radius: var(--radius-sm);
  background: var(--brass-pale); color: var(--brass-deep);
  display: grid; place-items: center; margin-bottom: var(--s-4);
}
.card__icon svg { width: 1.35rem; height: 1.35rem; }

.card__link {
  font-weight: 620; font-size: .93rem; color: var(--navy);
  display: inline-flex; align-items: center; gap: .4rem;
}
.card__link svg { width: .85em; height: .85em; transition: transform .18s var(--ease); }
a.card:hover .card__link svg { transform: translateX(3px); }

/* --- Document library --------------------------------------------------- */
.doc-list { list-style: none; padding: 0; margin: 0; max-width: none; }
.doc-list > li { margin: 0; border-bottom: 1px solid var(--rule-line); }
.doc-list > li:first-child { border-top: 1px solid var(--rule-line); }
.doc {
  display: flex; align-items: flex-start; gap: var(--s-4);
  padding: var(--s-5) var(--s-4) var(--s-4);
  text-decoration: none; color: inherit;
  transition: background .16s var(--ease);
}
.doc:hover { background: var(--paper-tint); }
.doc__icon {
  flex-shrink: 0; width: 2.75rem; height: 2.75rem; border-radius: var(--radius-sm);
  background: var(--navy); color: #fff; display: grid; place-items: center;
  font-size: .58rem; font-weight: 700; letter-spacing: .06em;
}
.doc__body { flex: 1; min-width: 0; }
.doc__title {
  display: block;
  font-family: var(--font-display); font-size: var(--step-1); font-weight: 600;
  color: var(--navy); margin: 0 0 .3rem;
}
.doc:hover .doc__title { color: var(--navy-soft); }
.doc__desc { display: block; color: var(--slate); font-size: .93rem;
             margin: 0 0 .55rem; max-width: 62ch; }
.doc__meta {
  display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4);
  font-size: var(--step--1); color: var(--slate-light);
}
.doc__meta span { display: inline-flex; align-items: center; gap: .35rem; }
.doc__action { flex-shrink: 0; align-self: center; color: var(--slate-light);
               transition: color .16s var(--ease), transform .16s var(--ease); }
.doc__action svg { width: 1.15rem; height: 1.15rem; }
.doc:hover .doc__action { color: var(--brass-deep); transform: translateY(2px); }

/* Secondary link for a document — a real link, so it sits outside the
   surrounding anchor rather than nested inside it. */
.doc__extra {
  margin: 0; padding: 0 var(--s-4) var(--s-5) calc(2.75rem + var(--s-4) + var(--s-4));
  font-size: .9rem;
}
.doc__extra a { font-weight: 600; }
@media (max-width: 560px) { .doc__extra { padding-left: var(--s-4); } }

.badge {
  display: inline-block; padding: .18rem .5rem; border-radius: 4px;
  font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: var(--brass-pale); color: var(--brass-deep); vertical-align: middle;
}
.badge--ok { background: #E7F2EC; color: var(--ok); }

/* --- Rules -------------------------------------------------------------- */
.rule-search { position: relative; }
.rule-search input {
  width: 100%; padding: .85rem 1rem .85rem 2.85rem;
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--rule-line);
  border-radius: var(--radius-sm); transition: border-color .16s var(--ease),
                                                box-shadow .16s var(--ease);
}
.rule-search input:focus {
  outline: none; border-color: var(--navy-soft);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--navy-soft) 18%, transparent);
}
.rule-search svg {
  position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  width: 1.05rem; height: 1.05rem; color: var(--slate-light); pointer-events: none;
}
.rule-search__count {
  margin: var(--s-3) 0 var(--s-6); font-size: var(--step--1); color: var(--slate-light);
}

.rule {
  display: grid; grid-template-columns: 3rem 1fr; gap: var(--s-4);
  padding: var(--s-5) 0; border-bottom: 1px solid var(--rule-line);
  scroll-margin-top: 6rem;
}
.rule[hidden] { display: none; }
.rule__num {
  font-family: var(--font-display); font-size: var(--step-2); font-weight: 600;
  color: var(--brass); line-height: 1.1; font-variant-numeric: tabular-nums;
}
.rule__body > :last-child { margin-bottom: 0; }
.rule__body h3 { margin-bottom: var(--s-2); font-size: var(--step-1); }
.rule__body p  { margin-bottom: var(--s-3); }
.rule:target { background: var(--warn-pale); border-radius: var(--radius);
               box-shadow: 0 0 0 var(--s-4) var(--warn-pale); }
.rule__anchor {
  font-size: var(--step--1); color: var(--slate-light); text-decoration: none;
  opacity: 0; transition: opacity .16s var(--ease);
}
.rule:hover .rule__anchor, .rule__anchor:focus { opacity: 1; }

@media (max-width: 560px) {
  .rule { grid-template-columns: 1fr; gap: var(--s-2); }
  .rule__num { font-size: var(--step-1); }
}

/* --- Callouts ----------------------------------------------------------- */
.callout {
  padding: var(--s-5); border-radius: var(--radius);
  border-left: 3px solid var(--brass); background: var(--paper-warm);
  margin-bottom: var(--s-5);
}
.callout > :last-child { margin-bottom: 0; }
.callout h3 { font-size: var(--step-0); font-family: var(--font-body);
              font-weight: 650; margin-bottom: var(--s-2); }
.callout p  { font-size: .95rem; color: var(--slate); }
.callout--warn { border-left-color: var(--warn); background: var(--warn-pale); }
/* Emphasis applied by site.js when the matching reason is picked in the
   contact form. Purely additive — the note is readable without it. */
.callout--active {
  background: var(--brass-pale);
  box-shadow: 0 0 0 2px var(--brass);
}
.callout--note { border-left-color: var(--navy-soft); background: var(--paper-tint); }

/* --- Steps -------------------------------------------------------------- */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; max-width: none; }
.steps > li {
  position: relative; padding-left: 3.6rem; padding-bottom: var(--s-6);
  margin: 0; counter-increment: step;
}
.steps > li::before {
  content: counter(step);
  position: absolute; left: 0; top: -.1rem;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
}
/* the connecting spine between step markers */
.steps > li:not(:last-child)::after {
  content: ""; position: absolute; left: 1.19rem; top: 2.55rem; bottom: .35rem;
  width: 2px; background: linear-gradient(var(--rule-line), var(--rule-line));
}
.steps h3 { margin-bottom: var(--s-2); font-size: var(--step-1); }
.steps > li > :last-child { margin-bottom: 0; }

/* --- Decision flow (fence / pool) --------------------------------------- */
.flow { display: grid; gap: var(--s-4); }
.flow__node {
  border: 1px solid var(--rule-line); border-radius: var(--radius);
  padding: var(--s-5); background: var(--paper);
}
.flow__node h3 { font-size: var(--step-0); font-family: var(--font-body);
                 font-weight: 650; margin-bottom: var(--s-2); }
.flow__node p:last-child { margin-bottom: 0; }
.flow__node--q { border-color: var(--navy); border-width: 1px; background: var(--paper-tint); }
.flow__node--yes { border-left: 3px solid var(--ok); }
.flow__node--no  { border-left: 3px solid var(--warn); }
.flow__answers { display: grid; gap: var(--s-4); }
@media (min-width: 700px) { .flow__answers { grid-template-columns: 1fr 1fr; } }
.flow__label {
  display: inline-block; font-size: var(--step--1); font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; margin-bottom: var(--s-2);
}
.flow__label--yes { color: var(--ok); }
.flow__label--no  { color: var(--warn); }
.flow__arrow { display: grid; place-items: center; color: var(--slate-light); }
.flow__arrow svg { width: 1.4rem; height: 1.4rem; }

/* --- Fact list ---------------------------------------------------------- */
.facts { display: grid; gap: 0; margin: 0; max-width: none; }
.facts > div {
  display: grid; grid-template-columns: 12rem 1fr; gap: var(--s-4);
  padding: var(--s-4) 0; border-bottom: 1px solid var(--rule-line);
}
.facts dt { font-weight: 620; color: var(--navy); font-size: .95rem; }
.facts dd { margin: 0; color: var(--slate); }
.facts dd > :last-child { margin-bottom: 0; }
@media (max-width: 620px) {
  .facts > div { grid-template-columns: 1fr; gap: var(--s-1); }
}

/* --- Forms -------------------------------------------------------------- */
.form { display: grid; gap: var(--s-5); }
.field { display: grid; gap: var(--s-2); }
.field label { font-weight: 620; font-size: .93rem; color: var(--navy); }
.field .hint { font-size: var(--step--1); color: var(--slate-light); font-weight: 400; }
.field .req  { color: var(--brass-deep); font-weight: 700; }

.field input, .field select, .field textarea {
  width: 100%; padding: .78rem .9rem;
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--rule-line);
  border-radius: var(--radius-sm);
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.field textarea { min-height: 9.5rem; resize: vertical; line-height: 1.6; }
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%234A5D73' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M4 6.5l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .85rem center;
  background-size: 1rem; padding-right: 2.6rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy-soft);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--navy-soft) 18%, transparent);
}
.field input::placeholder, .field textarea::placeholder { color: #A6B2C0; }

.form__row { display: grid; gap: var(--s-5); }
@media (min-width: 620px) { .form__row { grid-template-columns: 1fr 1fr; } }

/* Honeypot — hidden from people, catches naive bots. */
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }


/* 6. FOOTER =============================================================== */

.site-footer {
  background: var(--navy-deep); color: #A9BCCF;
  padding-block: var(--s-8) var(--s-6); margin-top: var(--s-8);
  font-size: .93rem;
}
.site-footer a { color: #D3E0EC; text-decoration-color: rgba(211,224,236,.35); }
.site-footer a:hover { color: var(--brass); }
.site-footer h4 {
  color: #fff; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: var(--s-4); font-weight: 650;
}
.footer-grid { display: grid; gap: var(--s-6); }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; gap: var(--s-7); } }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: var(--s-2); }
.site-footer p { color: #A9BCCF; }
.footer-brand__name {
  font-family: var(--font-display); font-size: 1.15rem; color: #fff;
  margin-bottom: var(--s-2); font-weight: 600;
}
.footer-bottom {
  margin-top: var(--s-7); padding-top: var(--s-5);
  border-top: 1px solid rgba(255,255,255,.10);
  display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5);
  justify-content: space-between; align-items: center;
  font-size: .84rem; color: #8195A9;
}
.footer-bottom p { margin: 0; color: #8195A9; }


/* 7. UTILITIES ============================================================ */

.lede      { font-size: var(--step-1); color: var(--slate); max-width: 58ch; }
.muted     { color: var(--slate-light); }
.small     { font-size: var(--step--1); }
.center    { text-align: center; }
.mt-0 { margin-top: 0; }      .mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: var(--s-4); } .mb-6 { margin-bottom: var(--s-6); }
.mt-6 { margin-top: var(--s-6); }
.prose > :last-child { margin-bottom: 0; }
.stack > * + * { margin-top: var(--s-4); }
.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;
}

.page-head { padding-block: var(--s-8) var(--s-6); border-bottom: 1px solid var(--rule-line); }
.page-head h1 { margin-bottom: var(--s-3); }

.breadcrumb {
  font-size: var(--step--1); color: var(--slate-light); margin-bottom: var(--s-4);
}
.breadcrumb a { color: var(--slate); }
.breadcrumb span { margin-inline: .45rem; opacity: .5; }

/* Wide content must scroll inside itself, never the page body. */
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }


/* 8. PRINT & MOTION ======================================================= */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .btn:hover, a.card:hover { transform: none; }
}

@media print {
  .site-header, .site-footer, .nav-toggle, .hero__actions,
  .rule-search, .btn { display: none !important; }
  body { color: #000; background: #fff; font-size: 11pt; }
  .hero { background: none !important; color: #000; padding-block: 0; }
  .hero h1, .hero__lede { color: #000; }
  .band { padding-block: 1rem; background: none !important; }
  a { text-decoration: none; color: #000; }
  .rule, .doc { page-break-inside: avoid; }
  h1, h2, h3 { page-break-after: avoid; color: #000; }
  .container { width: 100%; }
}
