/* Shared styling for the section pages added with the site navigation.
   Palette and type are LenderBryan's existing ones, lifted from index.html so
   the new pages sit beside the old ones without a seam. */

/* The site palette. Where every value came from, the contrast table and
   the rule about what it may not drift toward are in the internal palette notes.

   The names below are historical. "gold" has held the blue accent since
   2026-10-22, because renaming it means touching it in roughly 1,200 places
   across the built pages and every generator, and a rename that large is its own
   job with its own chance of breaking something. The honest names are aliased
   underneath; write new rules against those and the old names can be retired
   gradually.

   One rule is not a preference. --gold (#006EFD) fails WCAG AA as body text on
   every tinted background, so it carries fills, rules, borders and large type
   only. Small text and links use --gold-deep (#075DCD). */
:root{
  --cream:#E2E5EA; --cream2:#F8F8F8; --strip:#EFF3F9; --white:#ffffff;
  --gold:#006EFD; --gold-deep:#075DCD; --gold-soft:#DEF0FF;
  --ink:#222222; --muted:#666666; --line:#EEEEEE;

  /* Say what they are, not what colour they used to be. */
  --band:var(--cream); --ground:var(--cream2); --surface:var(--white);
  --signal:var(--gold); --signal-deep:var(--gold-deep); --signal-soft:var(--gold-soft);
  --radius:16px; --shadow:0 14px 40px rgba(34,34,34,.09);
  --serif:"Playfair Display",Georgia,"Times New Roman",serif;
  --sans:"Inter",-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; scroll-padding-top:86px; }
body{
  margin:0; background:var(--cream2); color:var(--ink);
  font-family:var(--sans); font-size:16.5px; line-height:1.65;
  -webkit-font-smoothing:antialiased;
}

.wrap{ max-width:1100px; margin:0 auto; padding:0 22px; }
.narrow{ max-width:800px; }

/* ---- page head ---- */
.page-head{ background:var(--cream); border-bottom:1px solid var(--line); padding:54px 0 46px; }
.eyebrow{
  font-size:12px; font-weight:600; letter-spacing:.14em; text-transform:uppercase;
  color:var(--gold-deep); margin-bottom:12px;
}
.page-head h1{
  font-family:var(--serif); font-size:clamp(32px,5vw,46px); font-weight:700;
  line-height:1.12; margin:0 0 14px; letter-spacing:-.015em; text-wrap:balance;
}
.page-head .lede{ font-size:18px; color:var(--muted); margin:0; max-width:68ch; }

/* ---- sections ---- */
section{ padding:48px 0; }
section + section{ border-top:1px solid var(--line); }
h2{
  font-family:var(--serif); font-size:clamp(24px,3.2vw,32px); font-weight:700;
  margin:0 0 8px; letter-spacing:-.01em; text-wrap:balance;
}
h3{ font-size:18px; font-weight:650; margin:26px 0 8px; }
p{ margin:0 0 15px; max-width:72ch; }
a{ color:var(--gold-deep); }
.sub{ color:var(--muted); margin:0 0 26px; max-width:70ch; }

/* ---- card grid ---- */
.cards{ display:grid; grid-template-columns:repeat(auto-fill,minmax(258px,1fr)); gap:16px; }
.card{
  display:block; background:var(--white); border:1px solid var(--line);
  border-radius:var(--radius); padding:20px 20px 18px; text-decoration:none;
  color:inherit; transition:transform .16s, box-shadow .16s, border-color .16s;
}
.card:hover{ transform:translateY(-2px); box-shadow:var(--shadow); border-color:var(--gold-soft); }
.card .kicker{
  font-size:11.5px; font-weight:600; letter-spacing:.12em; text-transform:uppercase;
  color:var(--gold-deep); margin-bottom:7px;
}
.card h3{ font-family:var(--serif); font-size:19px; font-weight:700; margin:0 0 6px; }
.card p{ font-size:14.5px; color:var(--muted); margin:0; line-height:1.55; }

/* ---- checklist and fact blocks ---- */
.panel{
  background:var(--white); border:1px solid var(--line);
  border-radius:var(--radius); padding:26px 26px 22px; margin-bottom:18px;
}
.panel h2{ margin-top:0; }
ul.docs{ list-style:none; margin:0; padding:0; }
ul.docs li{
  position:relative; padding:9px 0 9px 30px; border-bottom:1px solid var(--strip);
  font-size:15.5px;
}
ul.docs li:last-child{ border-bottom:0; }
ul.docs li::before{
  content:""; position:absolute; left:4px; top:16px; width:11px; height:7px;
  border-left:2px solid var(--gold); border-bottom:2px solid var(--gold);
  transform:rotate(-45deg);
}
ul.docs li b{ font-weight:650; }
ul.docs li span{ display:block; font-size:13.5px; color:var(--muted); margin-top:2px; }

.facts{ display:grid; grid-template-columns:168px 1fr; gap:0; margin:4px 0 18px; }
.facts dt{
  padding:11px 0; border-top:1px solid var(--strip);
  font-size:13.5px; font-weight:600; color:var(--muted);
}
.facts dd{ padding:11px 0; border-top:1px solid var(--strip); margin:0; font-size:15.5px; }
@media (max-width:600px){
  .facts{ grid-template-columns:1fr; }
  .facts dd{ border-top:0; padding-top:0; padding-bottom:14px; }
}

/* ---- callouts ---- */
.note{
  background:var(--strip); border:1px solid var(--gold-soft); border-radius:13px;
  padding:16px 18px; font-size:14.5px; color:var(--muted); margin:18px 0;
}
.note b{ color:var(--ink); }

/* ---- buttons ---- */
.btn{
  display:inline-block; padding:12px 24px; border-radius:999px;
  background:var(--gold); color:#fff; font-weight:600; font-size:15px;
  text-decoration:none; transition:background .15s;
}
.btn:hover{ background:var(--gold-deep); }
.btn.ghost{ background:transparent; color:var(--gold-deep); border:1px solid var(--gold); }
.btn.ghost:hover{ background:var(--gold-soft); }
.btn-row{ display:flex; flex-wrap:wrap; gap:12px; margin-top:22px; }

/* ---- program filter (/programs) ----
   The bar ships hidden and its script shows it, so without JavaScript every
   card shows and no button does nothing. A display rule beats the hidden
   attribute, so both need it spelled out. */
.prog-filter[hidden], #program-cards .card[hidden]{ display:none; }
.prog-filter-btns{ display:flex; flex-wrap:wrap; gap:8px; }
.prog-filter-btns button{
  font:inherit; font-size:14.5px; font-weight:600; cursor:pointer;
  padding:9px 18px; border-radius:999px; border:1px solid var(--gold);
  background:var(--white); color:var(--gold-deep);
  transition:background .15s, color .15s;
}
.prog-filter-btns button:hover{ background:var(--gold-soft); }
.prog-filter-btns button[aria-pressed="true"]{ background:var(--gold-deep); border-color:var(--gold-deep); color:#fff; }
.prog-count{ font-size:13.5px; color:var(--muted); margin:10px 0 18px; }

/* ---- glossary ---- */
.az{ display:flex; flex-wrap:wrap; gap:6px; margin-bottom:28px; }
.az a{
  display:inline-flex; align-items:center; justify-content:center;
  width:34px; height:34px; border-radius:9px; background:var(--white);
  border:1px solid var(--line); text-decoration:none; font-weight:600; font-size:14px;
}
.az a:hover{ background:var(--gold-soft); border-color:var(--gold-soft); }
.gl-group{ margin-bottom:30px; }
.gl-group > h2{
  font-size:26px; color:var(--gold); border-bottom:2px solid var(--gold-soft);
  padding-bottom:6px; margin-bottom:14px;
}
.az-label{
  font-size:12px; font-weight:600; letter-spacing:.14em; text-transform:uppercase;
  color:var(--muted); margin:-12px 0 8px;
}
.az-short a{ width:auto; padding:0 10px; }
.gl dt{ font-weight:650; margin-top:16px; font-size:16px; }
.gl dt:target{ color:var(--gold-deep); }
.gl dd{ margin:3px 0 0; color:var(--muted); font-size:15.5px; max-width:72ch; }

/* ---- link list ---- */
ul.links{ list-style:none; margin:0; padding:0; }
ul.links li{ padding:12px 0; border-bottom:1px solid var(--strip); }
ul.links li:last-child{ border-bottom:0; }
ul.links a{ font-weight:600; text-decoration:none; }
ul.links a:hover{ text-decoration:underline; }
ul.links span{ display:block; font-size:14px; color:var(--muted); margin-top:2px; }

/* ---- footer ---- */
footer{
  background:var(--ink); color:#a3acb9; margin-top:40px;
  padding:40px 0 34px; font-size:13.5px; line-height:1.6;
}
footer a{ color:#def0ff; }
.foot-top{
  display:flex; flex-wrap:wrap; gap:18px; justify-content:space-between;
  align-items:center; padding-bottom:20px; border-bottom:1px solid #3b3734;
}
.foot-brand{ font-family:var(--serif); font-size:20px; color:#fff; }
.foot-brand span{ color:#def0ff; }
.foot-contact{ display:flex; flex-wrap:wrap; gap:20px; }
.foot-contact a{ text-decoration:none; }
.foot-contact a:hover{ text-decoration:underline; }
.disclaimer{ padding-top:20px; color:#8b90a0; font-size:12.5px; max-width:none; }
