/* Vantage Portal — single stylesheet for all pages.
   Warm paper palette, rust accent, deep teal structure.
   Separation is carried by borders and background tint, never by shadow. */

:root {
  --paper:   #faf6f0;
  --surface: #ffffff;
  --tint:    #f2ebe0;
  --ink:     #241f1c;
  --ink-2:   #4a4038;
  --line:    #ddd0be;
  --line-2:  #c8b9a3;
  --rust:    #9c3a19;
  --rust-d:  #6d2810;
  --teal:    #14504b;
  --flag-bg: #fdf3e4;
  --flag-ln: #c08a2e;
  --note-bg: #eef3f1;
  --note-ln: #14504b;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --r: 3px;
  --s1: 6px;
  --s2: 12px;
  --s3: 20px;
  --s4: 32px;
  --s5: 52px;
  --s6: 76px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  overflow-wrap: break-word;
}

/* ---------- skip link ---------- */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--rust-d);
  color: #fff;
  padding: 10px 16px;
  z-index: 50;
}
.skip:focus { left: 0; }

/* ---------- links and focus ---------- */

a { color: var(--rust); }
a:hover { color: var(--rust-d); }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

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

.site-head {
  background: var(--surface);
  border-bottom: 2px solid var(--line-2);
}

.head-in {
  max-width: 1160px;
  margin: 0 auto;
  padding: var(--s2) var(--s3);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2);
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: .01em;
  margin-right: auto;
}
.mark svg { display: block; }
.mark span { white-space: nowrap; }

.nav-toggle {
  display: none;
  font: inherit;
  font-size: .95rem;
  background: var(--tint);
  color: var(--ink);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  padding: 7px 14px;
  cursor: pointer;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px var(--s3);
  font-size: .95rem;
}
.site-nav a {
  text-decoration: none;
  color: var(--ink-2);
  padding: 3px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--rust-d); border-bottom-color: var(--line-2); }
.site-nav a[aria-current="page"] { color: var(--rust-d); border-bottom-color: var(--rust); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding-top: var(--s2);
    border-top: 1px solid var(--line);
    margin-top: var(--s1);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 9px 0; border-bottom: 1px solid var(--line); }
}

/* ---------- shell and layout ---------- */

.shell {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--s3);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: var(--s5);
  align-items: start;
  padding: var(--s5) 0 var(--s6);
}

@media (max-width: 960px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: var(--s4); padding: var(--s4) 0 var(--s5); }
}

.prose { min-width: 0; max-width: 72ch; }

/* ---------- sidebar ---------- */

.side {
  position: sticky;
  top: var(--s3);
  border-left: 3px solid var(--line-2);
  padding-left: var(--s3);
  font-size: .94rem;
}
@media (max-width: 960px) {
  .side {
    position: static;
    border-left: 0;
    border-top: 3px solid var(--line-2);
    padding-left: 0;
    padding-top: var(--s3);
  }
}
.side h2 {
  font-size: .82rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  font-family: var(--sans);
  color: var(--ink-2);
  margin: 0 0 var(--s2);
}
.side ol, .side ul { margin: 0; padding-left: 1.1em; }
.side li { margin-bottom: 7px; }
.side a { text-decoration: none; }
.side a:hover { text-decoration: underline; }

/* ---------- typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--serif);
  line-height: 1.22;
  color: var(--ink);
  margin: 0 0 var(--s2);
  font-weight: 700;
}

h1 { font-size: 2.3rem; letter-spacing: -.012em; }
h2 { font-size: 1.62rem; margin-top: var(--s5); }
h3 { font-size: 1.22rem; margin-top: var(--s4); }
h4 { font-size: 1.04rem; margin-top: var(--s3); font-family: var(--sans); }

@media (max-width: 560px) {
  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.38rem; }
}

p { margin: 0 0 var(--s3); }

.standfirst {
  font-size: 1.14rem;
  color: var(--ink-2);
  border-left: 3px solid var(--rust);
  padding-left: var(--s3);
  margin-bottom: var(--s4);
}

.eyebrow {
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
  margin: 0 0 var(--s1);
}

.effective {
  font-size: .95rem;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
  padding-bottom: var(--s2);
  margin-bottom: var(--s4);
}

ul, ol { margin: 0 0 var(--s3); padding-left: 1.35em; }
li { margin-bottom: var(--s1); }

dl { margin: 0 0 var(--s3); }
dt { font-weight: 700; margin-top: var(--s2); }
dd { margin: 0 0 var(--s2); color: var(--ink-2); }

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

.hero {
  background: var(--surface);
  border-bottom: 2px solid var(--line-2);
  padding: var(--s5) 0 var(--s4);
}

.index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--s2);
  margin: var(--s4) 0 0;
  padding: 0;
  list-style: none;
}
.index-grid li { margin: 0; }
.index-grid a {
  display: block;
  height: 100%;
  border: 1px solid var(--line);
  border-left: 4px solid var(--rust);
  border-radius: var(--r);
  background: var(--paper);
  padding: var(--s2) var(--s3);
  text-decoration: none;
  color: var(--ink);
}
.index-grid a:hover { background: var(--tint); border-left-color: var(--rust-d); }
.index-grid strong { display: block; font-family: var(--serif); font-size: 1.05rem; }
.index-grid span { display: block; font-size: .9rem; color: var(--ink-2); margin-top: 3px; }

/* ---------- affiliate disclosure ---------- */

.disclose {
  background: var(--flag-bg);
  border: 1px solid var(--flag-ln);
  border-radius: var(--r);
  padding: var(--s3);
  margin: var(--s4) 0;
  font-size: 1rem;
}
.disclose h2 {
  margin: 0 0 var(--s2);
  font-size: 1.14rem;
  font-family: var(--sans);
}
.disclose p:last-child { margin-bottom: 0; }

.cta-note {
  font-size: .95rem;
  color: var(--ink-2);
  margin: var(--s2) 0 0;
  max-width: 62ch;
}

.cta {
  display: inline-block;
  background: var(--rust-d);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: var(--r);
  border: 1px solid var(--rust-d);
}
.cta:hover { background: var(--rust); color: #fff; }

/* ---------- panels ---------- */

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--s3) var(--s4);
  margin: var(--s4) 0;
}
.panel > :last-child { margin-bottom: 0; }
.panel h3 { margin-top: 0; }

.flag {
  background: var(--flag-bg);
  border-left: 5px solid var(--flag-ln);
  border-radius: var(--r);
  padding: var(--s3);
  margin: var(--s4) 0;
}
.flag > :last-child { margin-bottom: 0; }
.flag h3 { margin-top: 0; font-size: 1.1rem; }

.note {
  background: var(--note-bg);
  border-left: 5px solid var(--note-ln);
  border-radius: var(--r);
  padding: var(--s3);
  margin: var(--s4) 0;
}
.note > :last-child { margin-bottom: 0; }
.note h3 { margin-top: 0; font-size: 1.1rem; }

.answer {
  background: var(--tint);
  border: 1px dashed var(--line-2);
  border-radius: var(--r);
  padding: var(--s3);
  margin: 0 0 var(--s4);
}
.answer > :last-child { margin-bottom: 0; }
.answer p:first-child { font-weight: 600; }

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

.symptom {
  border: 1px solid var(--line);
  border-top: 4px solid var(--teal);
  border-radius: var(--r);
  background: var(--surface);
  padding: var(--s3) var(--s4) var(--s2);
  margin: var(--s4) 0;
}
.symptom h3 { margin-top: 0; }
.symptom .label {
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 700;
  margin: var(--s3) 0 var(--s1);
}
.symptom > :last-child { margin-bottom: var(--s3); }

/* ---------- checklist ---------- */

.checklist { list-style: none; padding-left: 0; }
.checklist li {
  position: relative;
  padding-left: 34px;
  margin-bottom: var(--s2);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 17px;
  height: 17px;
  border: 2px solid var(--teal);
  border-radius: 2px;
}

/* ---------- numbered procedure ---------- */

.steps { counter-reset: step; list-style: none; padding-left: 0; }
.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 46px;
  margin-bottom: var(--s3);
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  background: var(--teal);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: .95rem;
  font-weight: 700;
}

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

.table-wrap {
  overflow-x: auto;
  margin: var(--s3) 0 var(--s4);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 520px;
  background: var(--surface);
  font-size: .96rem;
}
caption {
  text-align: left;
  padding: var(--s2) var(--s3);
  color: var(--ink-2);
  font-size: .92rem;
  background: var(--tint);
  border-bottom: 1px solid var(--line);
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: var(--s2) var(--s3);
  border-bottom: 1px solid var(--line);
}
thead th {
  background: var(--tint);
  font-family: var(--sans);
  font-size: .88rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 600; }

/* ---------- accordion (native details) ---------- */

.qa {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  margin-bottom: var(--s2);
}
.qa summary {
  cursor: pointer;
  padding: var(--s2) var(--s3);
  font-weight: 600;
  font-family: var(--serif);
  font-size: 1.08rem;
  list-style-position: inside;
}
.qa[open] summary { border-bottom: 1px solid var(--line); background: var(--tint); }
.qa .qa-body { padding: var(--s3) var(--s3) var(--s1); }
.qa .qa-body > :last-child { margin-bottom: var(--s2); }

/* ---------- related reading ---------- */

.related {
  border-top: 3px solid var(--line-2);
  margin-top: var(--s5);
  padding-top: var(--s3);
}
.related h2 { margin-top: 0; font-size: 1.24rem; }
.related ul { list-style: none; padding-left: 0; }
.related li { border-bottom: 1px solid var(--line); padding: var(--s1) 0; }
.related li:last-child { border-bottom: 0; }

/* ---------- section rhythm on the homepage ---------- */

.band { padding: var(--s5) 0; border-bottom: 1px solid var(--line); }
.band:last-of-type { border-bottom: 0; }
.band-tint { background: var(--tint); }
.band .wide { max-width: 78ch; }

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

.site-foot {
  background: var(--ink);
  color: #efe6d9;
  padding: var(--s5) 0 var(--s4);
  font-size: .95rem;
}
.foot-in { max-width: 1160px; margin: 0 auto; padding: 0 var(--s3); }
.site-foot p { margin: 0 0 var(--s1); }
.foot-name {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--s2);
}
.site-foot a { color: #f0c79a; }
.site-foot a:hover { color: #fff; }
.foot-links {
  margin: var(--s3) 0;
  padding-top: var(--s3);
  border-top: 1px solid #453b34;
}
.foot-tm, .foot-rev {
  color: #c9bcae;
  max-width: 82ch;
  margin-top: var(--s3);
}
.foot-rev { margin-top: var(--s2); }
.site-foot a:focus-visible { outline-color: #f0c79a; }

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

.contact-block p { margin-bottom: var(--s1); }
.lede-list > li { margin-bottom: var(--s2); }
abbr[title] { text-decoration-style: dotted; }
