/* StrataSpace — single stylesheet. No external resources, no web fonts. */

:root {
  --paper: #faf7f2;
  --surface: #ffffff;
  --tint: #edf2ee;
  --sand: #f2ece1;
  --line: #d9d1c3;
  --line-soft: #e6dfd3;
  --ink: #16211d;
  --body: #2c3833;
  --muted: #55625c;
  --accent: #1c5a49;
  --accent-deep: #123e32;
  --clay: #97401d;
  --radius: 4px;
  --gap: 1.5rem;
  --measure: 68ch;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}

h1, h2, h3, h4, .brand, .site-nav, .side, .btn, table, .kicker, .paid-note {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.22; margin: 2.2rem 0 0.7rem; font-weight: 650; }
h1 { font-size: 2rem; margin-top: 0; letter-spacing: -0.015em; }
h2 { font-size: 1.4rem; padding-top: 1.4rem; border-top: 1px solid var(--line-soft); }
h3 { font-size: 1.125rem; }
h4 { font-size: 1rem; }

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

a { color: var(--accent-deep); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--clay); }

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

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent-deep); color: #fff;
  padding: 0.6rem 1rem; z-index: 50; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; color: #fff; }

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

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

.head-inner {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0.75rem; padding-top: 0.85rem; padding-bottom: 0.85rem;
}

.brand {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none; margin-right: auto;
}
.brand:hover { color: var(--accent); }
.brand-mark { flex: none; }

.kicker {
  width: 100%; order: 3;
  font-size: 0.78rem; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--muted); margin: 0;
}

.nav-toggle {
  font: inherit; font-size: 0.95rem;
  background: var(--tint); color: var(--accent-deep);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.4rem 0.8rem; cursor: pointer;
}

.site-nav { width: 100%; order: 4; }
.site-nav[hidden] { display: none; }
.site-nav ul { list-style: none; margin: 0.6rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.site-nav li { max-width: none; }
.site-nav a { font-size: 0.97rem; display: inline-block; padding: 0.3rem 0; }

@media (min-width: 720px) {
  .nav-toggle { display: none; }
  .site-nav { width: auto; order: 2; }
  .site-nav[hidden] { display: block; }
  .site-nav ul { margin-top: 0; }
  .kicker { width: auto; order: 5; flex-basis: 100%; }
}

/* ---------- layout: main first in DOM, sidebar placed left on wide screens ---------- */

.layout { display: block; padding-top: 2rem; padding-bottom: 2.5rem; }

@media (min-width: 980px) {
  .layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 3rem; }
  .side { grid-column: 1; grid-row: 1; }
  .main { grid-column: 2; grid-row: 1; }
}

.main { min-width: 0; }

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

.side {
  font-size: 0.95rem;
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}
@media (min-width: 980px) {
  .side { margin-top: 0; border-top: 0; padding-top: 0.25rem; position: sticky; top: 1.5rem; align-self: start; }
}
.side h2 {
  font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); border: 0; padding: 0; margin: 0 0 0.6rem;
}
.side h2 + ul { margin-top: 0; }
.side ul { list-style: none; margin: 0 0 1.6rem; padding: 0; }
.side li { border-bottom: 1px solid var(--line-soft); max-width: none; }
.side a { display: block; padding: 0.45rem 0; text-decoration: none; color: var(--body); }
.side a:hover { color: var(--clay); text-decoration: underline; }
.side a.current { color: var(--accent); font-weight: 650; border-left: 3px solid var(--accent); padding-left: 0.6rem; }

/* ---------- hero summary card ---------- */

.summary-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.2rem;
  margin-bottom: 1.8rem;
}
.summary-card h1 { margin-bottom: 0.6rem; }
.summary-card .lede { font-size: 1.15rem; color: var(--ink); }
.summary-card dl { margin: 1.1rem 0 0; border-top: 1px solid var(--line-soft); padding-top: 0.9rem; }
.summary-card dt { font-size: 0.78rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); font-family: "Segoe UI", Arial, sans-serif; }
.summary-card dd { margin: 0.15rem 0 0.8rem; }
.summary-card dd:last-child { margin-bottom: 0; }

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

.disclosure {
  background: var(--sand);
  border: 1px solid var(--clay);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem 0.9rem;
  margin: 1.8rem 0;
}
.disclosure h2 {
  border: 0; padding: 0; margin: 0 0 0.5rem;
  font-size: 1.05rem; color: var(--clay);
}
.disclosure p { margin-bottom: 0.8rem; }
.disclosure p:last-child { margin-bottom: 0; }

.paid-note {
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--sand);
  border-left: 3px solid var(--clay);
  padding: 0.6rem 0.85rem;
  margin: 1.4rem 0 0.7rem;
  max-width: var(--measure);
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--accent-deep);
}
.btn:hover { background: var(--accent-deep); color: #fff; }

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

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.15rem 1.25rem 0.9rem;
  margin: 1.6rem 0;
}
.panel > :last-child { margin-bottom: 0; }
.panel h3 { margin-top: 0; }
.panel > h2:first-child { border-top: 0; padding-top: 0; margin-top: 0; font-size: 1.15rem; }

.panel-watch { background: var(--sand); border-color: var(--line); }
.panel-tint { background: var(--tint); border-color: #c8d8cf; }

.checklist { list-style: none; padding-left: 0; }
.checklist li {
  position: relative; padding-left: 1.7rem; margin-bottom: 0.65rem;
}
.checklist li::before {
  content: ""; position: absolute; left: 0.15rem; top: 0.52em;
  width: 0.7rem; height: 0.35rem;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.terms dt { font-weight: 650; color: var(--ink); margin-top: 0.9rem; }
.terms dd { margin: 0.15rem 0 0; max-width: var(--measure); }

.entry-list { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.entry-list li { border-top: 1px solid var(--line-soft); padding: 0.9rem 0; max-width: none; }
.entry-list li:last-child { border-bottom: 1px solid var(--line-soft); }
.entry-list a { font-weight: 650; font-size: 1.05rem; }
.entry-list p { margin: 0.25rem 0 0; color: var(--muted); }

.table-scroll { overflow-x: auto; margin: 1.4rem 0; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: 0.97rem; background: var(--surface); }
caption { text-align: left; font-size: 0.9rem; color: var(--muted); padding: 0.7rem 0.85rem; border-bottom: 1px solid var(--line-soft); }
th, td { text-align: left; vertical-align: top; padding: 0.7rem 0.85rem; border-bottom: 1px solid var(--line-soft); }
thead th { background: var(--tint); color: var(--ink); border-bottom: 1px solid var(--line); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
th[scope="row"] { font-weight: 650; color: var(--ink); }

.faq { margin: 1.4rem 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.faq-item { border-bottom: 1px solid var(--line-soft); }
.faq-item:last-child { border-bottom: 0; }
.faq-q {
  width: 100%; text-align: left; font: inherit;
  font-family: "Segoe UI", Arial, sans-serif; font-weight: 650; font-size: 1rem;
  color: var(--ink); background: none; border: 0; cursor: pointer;
  padding: 0.9rem 2.5rem 0.9rem 1rem; position: relative;
}
.faq-q::after {
  content: ""; position: absolute; right: 1.1rem; top: 1.25rem;
  width: 0.55rem; height: 0.55rem;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
}
.faq-q[aria-expanded="true"]::after { transform: rotate(-135deg); top: 1.45rem; }
.faq-a { padding: 0 1rem 0.4rem; }
.faq-a[hidden] { display: none; }

.related { margin: 2rem 0 0; }
.related ul { padding-left: 1.2rem; }

.jump { font-size: 0.95rem; }
.jump ol { padding-left: 1.3rem; }

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

figure { margin: 1.6rem 0; }
figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 0.5rem; max-width: var(--measure); }
svg.diagram { width: 100%; height: auto; max-width: 620px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }

.effective { font-size: 0.95rem; color: var(--muted); margin-bottom: 1.6rem; }

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

.site-foot {
  background: var(--surface);
  border-top: 2px solid var(--accent);
  padding: 2rem 0 2.5rem;
  font-size: 0.95rem;
}
.foot-name { font-weight: 700; color: var(--ink); font-size: 1.05rem; margin-bottom: 0.2rem; font-family: "Segoe UI", Arial, sans-serif; }
.site-foot p { margin: 0 0 0.25rem; max-width: 74ch; }
.foot-block { margin-bottom: 1.1rem; }
.foot-links { margin: 0 0 1.1rem; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem 0.75rem; }
.foot-links li { max-width: none; }
.foot-links li + li::before { content: "· "; color: var(--muted); }
.foot-trademark { color: var(--muted); }
.foot-reviewed { color: var(--muted); margin-top: 1.1rem; }
