/* Vanguard Digital — single stylesheet. No tracking, no external assets except the font stylesheet. */

:root{
  --bg:#faf7f2;
  --surface:#ffffff;
  --tint:#f2ece2;
  --ink:#241f1c;
  --muted:#574d46;
  --line:#d8ccbd;
  --brick:#9e3b26;
  --brick-dark:#7d2c1b;
  --pine:#2c5a4c;
  --radius:2px;
  --measure:38rem;
}

*{box-sizing:border-box}

html{-webkit-text-size-adjust:100%}

body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:"IBM Plex Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  font-size:17px;
  line-height:1.65;
}

h1,h2,h3,h4{
  font-family:"Source Serif 4",Georgia,"Times New Roman",serif;
  font-weight:700;
  line-height:1.2;
  margin:0 0 .6rem;
  letter-spacing:-.01em;
}
h1{font-size:2.05rem}
h2{font-size:1.5rem;margin-top:2.4rem}
h3{font-size:1.18rem;margin-top:1.8rem;font-weight:600}
h4{font-size:1rem;margin-top:1.3rem;font-weight:600}

p,li{max-width:var(--measure)}
p{margin:0 0 1rem}

a{color:var(--brick-dark);text-decoration:underline;text-underline-offset:2px}
a:hover{color:var(--brick)}
a:focus-visible,summary:focus-visible,.skip:focus{
  outline:3px solid var(--pine);
  outline-offset:2px;
}

.wrap{width:100%;max-width:64rem;margin:0 auto;padding:0 20px}

.skip{
  position:absolute;left:-9999px;top:0;background:var(--pine);color:#fff;
  padding:.6rem 1rem;z-index:20;text-decoration:none;
}
.skip:focus{left:0}

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

.site-head{
  background:var(--surface);
  border-bottom:1px solid var(--line);
}
.bar{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:.6rem 1.4rem;
  padding-top:.7rem;
  padding-bottom:.7rem;
}
.wordmark{
  display:flex;align-items:center;gap:.55rem;
  text-decoration:none;color:var(--ink);
  font-family:"Source Serif 4",Georgia,serif;
  font-weight:700;font-size:1.12rem;letter-spacing:-.01em;
}
.mark{
  display:inline-grid;place-items:center;
  width:2rem;height:2rem;
  background:var(--brick);color:#faf7f2;
  font-size:.82rem;border-radius:var(--radius);
}
.nav{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem 1.1rem;font-size:.95rem}
.nav-top{color:var(--muted);text-decoration:none;padding:.25rem 0;border-bottom:2px solid transparent}
.nav-top:hover{color:var(--brick-dark);border-bottom-color:var(--line)}
.nav [aria-current="page"]{color:var(--ink);border-bottom-color:var(--brick)}

.menu{position:relative}
.menu>summary{
  cursor:pointer;list-style:none;color:var(--muted);
  padding:.25rem 0;border-bottom:2px solid transparent;
}
.menu>summary::-webkit-details-marker{display:none}
.menu>summary::after{content:" \25BE"}
.menu[open]>summary{color:var(--ink);border-bottom-color:var(--brick)}
.menu-list{
  list-style:none;margin:.5rem 0 .3rem;padding:0;
  background:var(--surface);
}
.menu-list li{max-width:none}
.menu-list a{
  display:block;padding:.45rem .2rem;color:var(--muted);
  text-decoration:none;border-bottom:1px solid var(--line);font-size:.95rem;
}
.menu-list a:hover{color:var(--brick-dark);background:var(--tint)}

@media (min-width:52rem){
  .bar{flex-wrap:nowrap;justify-content:space-between}
  .menu-list{
    position:absolute;z-index:10;top:2.1rem;left:-.8rem;
    width:20rem;padding:.4rem .8rem;
    border:1px solid var(--line);
    box-shadow:0 10px 24px rgba(36,31,28,.12);
    margin:0;
  }
  .menu-list li:last-child a{border-bottom:none}
}

/* ---------- blocks ---------- */

.band{padding:2.6rem 0;border-bottom:1px solid var(--line)}
.band-tint{background:var(--tint)}
.band-surface{background:var(--surface)}
.band:last-of-type{border-bottom:none}

.hero{padding:3rem 0 2.6rem;background:var(--surface);border-bottom:1px solid var(--line)}
.hero .kicker{
  font-size:.78rem;letter-spacing:.14em;text-transform:uppercase;
  color:var(--pine);margin-bottom:.8rem;font-weight:600;
}
.hero h1{max-width:22ch;font-size:2.4rem}
.hero .lede{font-size:1.1rem;color:var(--muted);max-width:44rem}

.cols{display:grid;gap:2.4rem}
@media (min-width:56rem){
  .cols{grid-template-columns:minmax(0,1fr) 17rem;gap:3rem}
}

.side{font-size:.94rem}
.side h2,.side h3{font-size:1rem;margin-top:0}
.side p,.side li{max-width:none}
.side-box{
  border:1px solid var(--line);background:var(--surface);
  padding:1rem 1.1rem;margin-bottom:1.4rem;border-radius:var(--radius);
}
.side-box ul{margin:.4rem 0 0;padding-left:1.1rem}
.side-box li{margin-bottom:.35rem}

.qlist{list-style:none;padding:0;margin:1.2rem 0 0}
.qlist li{max-width:none;border-top:1px solid var(--line);padding:.9rem 0}
.qlist a{font-family:"Source Serif 4",Georgia,serif;font-size:1.1rem;font-weight:600}
.qlist p{margin:.25rem 0 0;color:var(--muted);max-width:46rem;font-size:.96rem}

.disclosure{
  border:2px solid var(--brick);
  background:var(--surface);
  padding:1.2rem 1.3rem;
  border-radius:var(--radius);
  margin:0 0 1.6rem;
}
.disclosure h2{margin-top:0;font-size:1.15rem;color:var(--brick-dark)}
.disclosure p{margin-bottom:.6rem;max-width:46rem}
.disclosure p:last-child{margin-bottom:0}

.callout{
  border-left:4px solid var(--pine);
  background:var(--tint);
  padding:1rem 1.2rem;margin:1.6rem 0;border-radius:var(--radius);
}
.callout h3{margin-top:0;font-size:1.05rem}
.callout p:last-child{margin-bottom:0}

.watch{
  border:1px solid var(--brick);
  background:#fdf3ef;
  padding:1rem 1.2rem;margin:1.6rem 0;border-radius:var(--radius);
}
.watch h3{margin-top:0;font-size:1.05rem;color:var(--brick-dark)}
.watch ul{margin:.4rem 0 0;padding-left:1.15rem}
.watch li:last-child{margin-bottom:0}

.method{
  border:1px dashed var(--line);
  padding:1rem 1.2rem;margin:1.6rem 0;background:var(--surface);
}
.method h3{margin-top:0;font-size:1.05rem}

.quick{
  background:var(--surface);border:1px solid var(--line);
  padding:1.1rem 1.3rem;margin:1.5rem 0;border-radius:var(--radius);
}
.quick h2,.quick h3{margin-top:0}
.quick p:last-child{margin-bottom:0}

.cta-wrap{margin:1.4rem 0 .4rem}
.cta{
  display:inline-block;background:var(--brick);color:#fff;
  padding:.75rem 1.4rem;text-decoration:none;font-weight:600;
  border-radius:var(--radius);border:1px solid var(--brick-dark);
}
.cta:hover{background:var(--brick-dark);color:#fff}
.aff-note{font-size:.92rem;color:var(--muted);max-width:44rem;margin-bottom:1.4rem}

table{border-collapse:collapse;width:100%;margin:1.4rem 0;font-size:.95rem}
caption{text-align:left;font-size:.9rem;color:var(--muted);margin-bottom:.5rem}
th,td{border:1px solid var(--line);padding:.6rem .7rem;text-align:left;vertical-align:top}
th{background:var(--tint);font-weight:600}
td p,th p{max-width:none}
.table-scroll{overflow-x:auto}

dl.defs{margin:1.4rem 0}
dl.defs dt{font-weight:600;margin-top:1rem;font-family:"Source Serif 4",Georgia,serif;font-size:1.05rem}
dl.defs dd{margin:.2rem 0 0;color:var(--muted);max-width:var(--measure)}

ol.steps{padding-left:1.2rem}
ol.steps li{margin-bottom:.7rem}

ul.check{list-style:none;padding-left:0}
ul.check li{padding-left:1.7rem;position:relative;margin-bottom:.55rem}
ul.check li::before{
  content:"";position:absolute;left:0;top:.45rem;
  width:.7rem;height:.7rem;border:2px solid var(--pine);border-radius:var(--radius);
}

.qa{border-top:1px solid var(--line);margin-top:1.4rem}
.qa details{border-bottom:1px solid var(--line)}
.qa summary{
  cursor:pointer;padding:.85rem 0;font-weight:600;
  font-family:"Source Serif 4",Georgia,serif;font-size:1.06rem;
}
.qa summary::marker{color:var(--brick)}
.qa .body{padding:0 0 .9rem}
.qa .body p:last-child{margin-bottom:0}

.related{border-top:2px solid var(--line);margin-top:2.6rem;padding-top:1.2rem}
.related ul{padding-left:1.1rem}
.related li{margin-bottom:.4rem}

.source{font-size:.92rem;color:var(--muted)}

.strip{display:grid;gap:1.2rem}
@media (min-width:44rem){.strip{grid-template-columns:1fr 1fr}}
.strip .item{border-top:2px solid var(--brick);padding-top:.7rem}
.strip .item h3{margin-top:0;font-size:1.05rem}
.strip .item p{margin-bottom:0;font-size:.96rem;color:var(--muted)}

.legal p,.legal li{max-width:42rem}
.legal .eff{font-weight:600;border-left:4px solid var(--brick);padding-left:.8rem}

figure.diagram{margin:1.8rem 0;padding:0}
figure.diagram svg{width:100%;height:auto;max-width:34rem;display:block}
figure.diagram figcaption{font-size:.9rem;color:var(--muted);margin-top:.5rem;max-width:var(--measure)}

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

.site-foot{
  background:var(--ink);color:#e8e0d6;
  padding:2.4rem 0 3rem;font-size:.93rem;
}
.site-foot a{color:#f0c9b8}
.site-foot a:hover{color:#fff}
.site-foot p{max-width:46rem;margin:0 0 .25rem}
.pub{margin-bottom:1rem}
.pub-name{font-family:"Source Serif 4",Georgia,serif;font-size:1.1rem;font-weight:700;color:#fff}
.foot-links{margin:1rem 0}
.tm{margin-top:1rem;color:#c3b7aa}
.rev{margin-top:.8rem;color:#c3b7aa}

@media (prefers-reduced-motion:reduce){
  *{animation:none !important;transition:none !important}
}
