/* Coravend — shared stylesheet. System fonts only; no external requests. */

:root {
  --bg: #fbf7f0;
  --surface: #ffffff;
  --tint: #f3ebdd;
  --ink: #2b2622;
  --muted: #5a5048;
  --rule: #ddd0bc;
  --accent: #8a3418;
  --accent-ink: #fbf7f0;
  --accent-soft: #f6e3d6;
  --ochre: #a36a12;
  --focus: #1d5c63;
  --radius: 3px;
  --measure: 44rem;
  --wide: 68rem;
  --s1: 0.5rem;
  --s2: 0.875rem;
  --s3: 1.375rem;
  --s4: 2.25rem;
  --s5: 3.5rem;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

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

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

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

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

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

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

.skip {
  position: absolute; left: var(--s2); top: -4rem; z-index: 10;
  background: var(--ink); color: var(--bg); padding: var(--s1) var(--s2);
  border-radius: var(--radius);
}
.skip:focus { top: var(--s2); }

.wrap { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 1rem; }

/* Header and navigation: horizontal top bar */
.site-head { background: var(--surface); border-bottom: 1px solid var(--rule); }
.head-inner { display: flex; align-items: center; justify-content: space-between; padding-top: var(--s2); padding-bottom: var(--s2); }
.brand {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--serif); font-weight: 700; font-size: 1.45rem;
  color: var(--ink); text-decoration: none; letter-spacing: 0.01em;
}
.brand-mark { width: 1.6rem; height: 1.6rem; color: var(--accent); }
.nav-toggle {
  display: none; font: inherit; font-size: 0.95rem;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 0.35rem 0.8rem; cursor: pointer;
}
.site-nav { border-top: 1px solid var(--rule); background: var(--tint); }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0 1.2rem; padding-top: 0.45rem; padding-bottom: 0.45rem; margin-top: 0; margin-bottom: 0; }
.site-nav a { display: inline-block; padding: 0.25rem 0; font-size: 0.95rem; color: var(--ink); text-decoration: none; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--ochre); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--accent); font-weight: 600; }

@media (max-width: 760px) {
  .js .nav-toggle { display: inline-block; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li { border-bottom: 1px solid var(--rule); }
  .site-nav li:last-child { border-bottom: 0; }
  .site-nav a { display: block; padding: 0.6rem 0; }
}

/* Main column: centred single column */
main { display: block; padding: var(--s4) 0 var(--s5); }
main:focus { outline: none; }
.col { max-width: var(--measure); margin: 0 auto; padding: 0 1rem; }

h1, h2, h3 { font-family: var(--serif); line-height: 1.22; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 4.6vw, 2.75rem); margin: 0 0 var(--s3); letter-spacing: -0.005em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin: var(--s5) 0 var(--s2); padding-top: var(--s3); border-top: 1px solid var(--rule); }
h3 { font-size: 1.2rem; margin: var(--s4) 0 var(--s1); }
p, ul, ol, dl, table { margin: 0 0 var(--s3); }
li { margin-bottom: 0.4rem; }

.eyebrow { font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s1); font-weight: 600; }
.lede { font-size: 1.2rem; color: var(--muted); }
.meta-line { font-size: 0.95rem; color: var(--muted); border-left: 3px solid var(--ochre); padding-left: var(--s2); }

/* Hero (homepage, question-led) */
.hero { padding-bottom: var(--s3); }
.hero-art { display: block; width: 100%; max-width: 22rem; height: auto; margin: 0 0 var(--s3); color: var(--accent); }

/* Disclosure box */
.disclosure {
  background: var(--accent-soft); border: 1px solid var(--accent); border-radius: var(--radius);
  padding: var(--s3); margin: 0 0 var(--s4);
}
.disclosure h2 { margin: 0 0 var(--s1); padding: 0; border: 0; font-size: 1.25rem; }
.disclosure p:last-child { margin-bottom: 0; }

/* Affiliate button + note */
.aff { border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); padding: var(--s3); margin: var(--s3) 0 var(--s4); }
.btn {
  display: inline-block; background: var(--accent); color: var(--accent-ink);
  font-weight: 600; text-decoration: none; padding: 0.7rem 1.2rem; border-radius: var(--radius);
  border: 2px solid var(--accent);
}
.btn:hover { background: #6f2912; border-color: #6f2912; }
.aff-note { font-size: 1rem; margin: var(--s2) 0 0; color: var(--ink); }

/* Body units */
.quick { background: var(--surface); border: 1px solid var(--rule); border-top: 4px solid var(--ochre); border-radius: var(--radius); padding: var(--s3); margin: var(--s3) 0 var(--s4); }
.quick h2, .quick h3 { margin-top: 0; padding-top: 0; border-top: 0; font-size: 1.2rem; }
.quick ul, .quick ol { margin-bottom: 0; }

.callout { border-left: 4px solid var(--accent); background: var(--surface); padding: var(--s2) var(--s3); margin: var(--s3) 0; }
.callout p:last-child { margin-bottom: 0; }

.watch { border: 1px solid var(--rule); background: var(--tint); border-radius: var(--radius); padding: var(--s3); margin: var(--s3) 0 var(--s4); }
.watch h3 { margin-top: 0; }
.watch ul { margin-bottom: 0; }

.checklist { list-style: none; padding-left: 0; }
.checklist li { position: relative; padding-left: 2rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.3rem; width: 1.1rem; height: 1.1rem;
  border: 2px solid var(--accent); border-radius: 2px; background: var(--surface);
}

.steps { counter-reset: step; list-style: none; padding-left: 0; }
.steps > li { counter-increment: step; position: relative; padding-left: 2.6rem; margin-bottom: var(--s2); }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0.05rem;
  width: 1.8rem; height: 1.8rem; line-height: 1.8rem; text-align: center;
  font-weight: 700; font-size: 0.95rem; color: var(--accent-ink); background: var(--accent); border-radius: 50%;
}

dl.terms dt { font-weight: 700; font-family: var(--serif); font-size: 1.08rem; margin-top: var(--s2); }
dl.terms dd { margin: 0.2rem 0 0; padding-left: var(--s2); border-left: 2px solid var(--rule); }

.pc { display: grid; grid-template-columns: 1fr; gap: var(--s2); margin: var(--s3) 0; }
@media (min-width: 640px) { .pc { grid-template-columns: 1fr 1fr; } }
.pc > div { border: 1px solid var(--rule); background: var(--surface); border-radius: var(--radius); padding: var(--s2) var(--s3); }
.pc h3 { margin-top: 0.2rem; font-size: 1.08rem; }
.pc ul { margin-bottom: 0; padding-left: 1.2rem; }

.table-wrap { overflow-x: auto; margin: var(--s3) 0 var(--s4); border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 0.97rem; margin: 0; }
caption { text-align: left; font-weight: 600; padding: var(--s2) var(--s2) 0; }
th, td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--rule); }
thead th { background: var(--tint); font-family: var(--serif); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }

.guides { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr; gap: var(--s2); }
@media (min-width: 640px) { .guides { grid-template-columns: 1fr 1fr; } }
.guides li { border: 1px solid var(--rule); background: var(--surface); border-radius: var(--radius); padding: var(--s2) var(--s3); margin: 0; }
.guides a { font-family: var(--serif); font-weight: 700; font-size: 1.1rem; }
.guides p { margin: 0.3rem 0 0; font-size: 0.98rem; color: var(--muted); }

.faq-item { border: 1px solid var(--rule); background: var(--surface); border-radius: var(--radius); margin-bottom: var(--s1); }
.faq-item summary { cursor: pointer; padding: var(--s2) var(--s3); font-weight: 600; list-style-position: outside; margin-left: 1rem; }
.faq-item[open] summary { border-bottom: 1px solid var(--rule); }
.faq-a { padding: var(--s2) var(--s3); }
.faq-a p:last-child { margin-bottom: 0; }

.related { border-top: 1px solid var(--rule); margin-top: var(--s5); padding-top: var(--s3); }
.related h2 { border: 0; padding: 0; margin-top: 0; font-size: 1.2rem; }

.legal h2 { font-size: 1.35rem; margin-top: var(--s4); }
.pubblock { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: var(--s2) var(--s3); }

/* Footer: identical publisher block on every page */
.site-foot { background: var(--ink); color: #efe7da; padding: var(--s4) 0; font-size: 0.97rem; }
.site-foot a { color: #f5c9a8; }
.site-foot p { margin: 0 0 var(--s2); max-width: var(--measure); }
.foot-site { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; color: #fbf7f0; }
.foot-tm, .foot-date { color: #d9cfc1; }
.foot-date { margin-bottom: 0; }

@media (max-width: 420px) {
  body { font-size: 1rem; }
  .aff, .quick, .watch, .disclosure { padding: var(--s2); }
}

@media print {
  .site-nav, .nav-toggle, .skip { display: none !important; }
  .site-foot { background: none; color: #000; }
}
