/* Zen Network — shared stylesheet
   Consumer awareness resource. Warm off-white / deep teal / ochre palette.
   Serif headings, humanist sans body. Border-led separation, calm spacing. */

:root {
  --bg: #f6f3ec;
  --surface: #ffffff;
  --surface-tint: #eef1ea;
  --ink: #1f2b28;
  --ink-soft: #46534f;
  --ink-mute: #5c6a66;
  --teal: #0f5f5a;
  --teal-dark: #0a4642;
  --teal-deep: #073430;
  --ochre: #b26a17;
  --ochre-soft: #f3e6cf;
  --line: #d8d2c4;
  --line-strong: #c3bca9;
  --focus: #0f5f5a;
  --radius: 8px;
  --radius-lg: 14px;
  --maxw: 1120px;
  --readw: 720px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

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;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

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

/* ---- Focus states ---- */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ---- Layout ---- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

main { display: block; }

.layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding: 2.25rem 0 3rem;
}
@media (min-width: 900px) {
  .layout.has-toc { grid-template-columns: 240px minmax(0, 1fr); gap: 3rem; }
}

.prose { max-width: var(--readw); }
.prose.wide { max-width: 100%; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 243, 236, 0.94);
  backdrop-filter: saturate(120%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
}
.brand .mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.brand .brand-sub { display: block; font-family: var(--sans); font-size: 0.68rem; font-weight: 500; color: var(--ink-mute); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 1px; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle .bars { width: 18px; height: 2px; background: var(--ink); position: relative; display: inline-block; }
.nav-toggle .bars::before,
.nav-toggle .bars::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); }
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after { top: 6px; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.35rem;
  align-items: center;
  flex-wrap: wrap;
}
.site-nav a {
  display: inline-block;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius);
}
.site-nav a:hover { color: var(--teal-dark); background: var(--surface-tint); }
.site-nav a[aria-current="page"] { color: var(--teal-dark); font-weight: 600; box-shadow: inset 0 -2px 0 var(--ochre); }

@media (max-width: 860px) {
  .site-nav {
    display: none;
    width: 100%;
  }
  .site-header .bar { flex-wrap: wrap; }
  .site-nav.open { display: block; padding-bottom: 0.75rem; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0.15rem; }
  .site-nav a { padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--line); border-radius: 0; }
}
@media (min-width: 861px) {
  .nav-toggle { display: none; }
  .site-nav { display: block !important; }
}

/* ---- Hero ---- */
.hero {
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(120% 120% at 12% -10%, rgba(15,95,90,0.10), transparent 55%),
    radial-gradient(90% 90% at 100% 0%, rgba(178,106,23,0.08), transparent 50%);
}
.hero-inner { padding: 3rem 0 2.5rem; }
.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ochre);
  font-weight: 700;
  margin-bottom: 0.9rem;
}
h1 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-size: clamp(2rem, 5vw, 2.9rem);
  margin: 0 0 1rem;
  color: var(--teal-deep);
}
.hero .lede {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0;
}

/* contents-first hero card */
.hero-contents {
  margin-top: 2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
  max-width: 640px;
}
.hero-contents h2 { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); margin: 0 0 0.8rem; font-family: var(--sans); }
.hero-contents ol { margin: 0; padding-left: 1.2rem; columns: 2; column-gap: 2rem; }
@media (max-width: 560px) { .hero-contents ol { columns: 1; } }
.hero-contents li { margin: 0 0 0.4rem; }
.hero-contents a { color: var(--teal-dark); text-decoration: none; }
.hero-contents a:hover { text-decoration: underline; }

/* ---- Headings in flow ---- */
h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  line-height: 1.2;
  color: var(--teal-deep);
  margin: 2.4rem 0 0.9rem;
  letter-spacing: -0.01em;
}
h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--ink);
  margin: 1.8rem 0 0.6rem;
}
h4 { font-size: 1.05rem; margin: 1.4rem 0 0.4rem; }

.prose p, .prose ul, .prose ol { margin: 0 0 1.1rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin: 0 0 0.5rem; }

a { color: var(--teal-dark); }
a:hover { color: var(--ochre); }

.section { padding: 2.4rem 0; border-bottom: 1px solid var(--line); }
.section:last-of-type { border-bottom: 0; }
.section-lead { max-width: var(--readw); }

/* ---- Cards / grids ---- */
.grid { display: grid; gap: 1.25rem; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card .more { font-weight: 600; text-decoration: none; }
.card .more::after { content: " \2192"; }

/* ---- Callouts / panels ---- */
.callout {
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  background: var(--surface-tint);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin: 1.6rem 0;
}
.callout h3, .callout h4 { margin-top: 0; }
.callout p:last-child, .callout ul:last-child, .callout ol:last-child { margin-bottom: 0; }

.watch {
  border: 1px solid #e6cfa8;
  border-left: 4px solid var(--ochre);
  background: var(--ochre-soft);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin: 1.6rem 0;
}
.watch h3, .watch h4 { margin-top: 0; color: #7a4708; }
.watch p:last-child, .watch ul:last-child { margin-bottom: 0; }

.quick-answer {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.4rem;
  margin: 1.5rem 0 2rem;
}
.quick-answer .label { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ochre); font-weight: 700; }
.quick-answer p { margin: 0.4rem 0 0; font-size: 1.08rem; }

/* ---- Disclosure box ---- */
.disclosure-box {
  background: #fff;
  border: 2px solid var(--teal);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.4rem;
  margin: 0 0 2rem;
}
.disclosure-box h2 { margin: 0 0 0.5rem; font-size: 1.15rem; color: var(--teal-deep); }
.disclosure-box p { margin: 0 0 0.6rem; }
.disclosure-box p:last-child { margin-bottom: 0; }
.disclosure-inline {
  display: block;
  font-size: 0.92rem;
  color: var(--ink-mute);
  margin: 0.5rem 0 0;
  font-style: italic;
}

/* ---- Buttons / links to vendor ---- */
.btn {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--teal-dark);
  transition: background 0.15s ease;
}
.btn:hover { background: var(--teal-dark); color: #fff; }
.btn.secondary { background: transparent; color: var(--teal-dark); }
.btn.secondary:hover { background: var(--surface-tint); color: var(--teal-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin: 0.4rem 0; }

/* ---- Tables ---- */
.table-scroll { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; min-width: 480px; background: var(--surface); }
caption { text-align: left; font-size: 0.9rem; color: var(--ink-mute); padding: 0.6rem 0.9rem; }
th, td { text-align: left; padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--teal-deep); color: #fff; font-size: 0.9rem; letter-spacing: 0.02em; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) td { background: var(--surface-tint); }

/* ---- Definition list ---- */
.deflist { margin: 1.4rem 0; }
.deflist dt { font-weight: 700; color: var(--teal-dark); margin-top: 1rem; font-family: var(--serif); }
.deflist dd { margin: 0.25rem 0 0; padding-left: 0; }

/* ---- Checklist ---- */
.checklist { list-style: none; padding-left: 0; margin: 1.4rem 0; }
.checklist li { position: relative; padding-left: 1.9rem; margin-bottom: 0.7rem; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.35em;
  width: 1.1rem; height: 1.1rem;
  border: 2px solid var(--teal);
  border-radius: 4px;
  background:
    linear-gradient(45deg, transparent 44%, var(--teal) 45%, var(--teal) 55%, transparent 56%) no-repeat,
    linear-gradient(-45deg, transparent 44%, var(--teal) 45%, var(--teal) 55%, transparent 56%) no-repeat;
  background-size: 0 0;
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 0.32rem; top: 0.42em;
  width: 0.32rem; height: 0.62rem;
  border: solid var(--teal);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ---- FAQ accordion ---- */
.faq { margin: 1.5rem 0; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 0.7rem;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 0.9rem 1.1rem;
  font-weight: 600;
  color: var(--teal-dark);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--ochre); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq .faq-body { padding: 0 1.1rem 1.1rem; }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ---- Table of contents (sidebar) ---- */
.toc {
  position: sticky;
  top: 84px;
  align-self: start;
  font-size: 0.92rem;
}
.toc h2 { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); font-family: var(--sans); margin: 0 0 0.7rem; }
.toc ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc li { margin: 0; }
.toc a { display: block; padding: 0.3rem 0 0.3rem 0.8rem; color: var(--ink-soft); text-decoration: none; margin-left: -2px; border-left: 2px solid transparent; }
.toc a:hover { color: var(--teal-dark); border-left-color: var(--ochre); }
@media (max-width: 899px) {
  .toc { position: static; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; background: var(--surface); }
  .toc ul { border-left: 0; }
}

/* ---- Related reading ---- */
.related { margin: 2.5rem 0 0; }
.related ul { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.related a {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  text-decoration: none;
  color: var(--ink);
  background: var(--surface);
}
.related a:hover { border-color: var(--teal); }
.related a strong { display: block; color: var(--teal-dark); }
.related a span { font-size: 0.9rem; color: var(--ink-mute); }

/* ---- Resource links ---- */
.resources { list-style: none; padding: 0; margin: 1.2rem 0; display: grid; gap: 0.9rem; }
.resources li { border: 1px solid var(--line); border-radius: var(--radius); padding: 0.9rem 1.1rem; background: var(--surface); }
.resources a { font-weight: 600; text-decoration: none; }
.resources p { margin: 0.3rem 0 0; font-size: 0.95rem; color: var(--ink-soft); }

/* ---- Meta line ---- */
.page-meta { font-size: 0.85rem; color: var(--ink-mute); margin: 0.5rem 0 0; }

/* ---- Breadcrumb ---- */
.crumbs { font-size: 0.85rem; color: var(--ink-mute); padding: 1rem 0 0; }
.crumbs a { color: var(--ink-mute); }
.crumbs a:hover { color: var(--teal-dark); }

/* ---- Footer ---- */
.site-footer {
  background: var(--teal-deep);
  color: #d6e2df;
  margin-top: 3rem;
  padding: 2.5rem 0 2rem;
  font-size: 0.93rem;
  line-height: 1.7;
}
.site-footer .foot-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .site-footer .foot-grid { grid-template-columns: 1.4fr 1fr; } }
.site-footer h2 { color: #fff; font-size: 1.05rem; margin: 0 0 0.6rem; font-family: var(--sans); font-weight: 700; }
.site-footer address { font-style: normal; margin: 0; }
.site-footer .publisher strong { color: #fff; font-family: var(--serif); font-size: 1.05rem; }
.site-footer a { color: #f2e7d4; }
.site-footer a:hover { color: #fff; }
.foot-nav ul { list-style: none; padding: 0; margin: 0; }
.foot-nav li { margin-bottom: 0.35rem; }
.foot-policy { margin: 1.2rem 0 0.6rem; }
.foot-policy a { white-space: nowrap; }
.trademark { color: #a8bdb9; font-size: 0.85rem; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 1rem; margin-top: 1.4rem; }
.reviewed { color: #90a6a2; font-size: 0.82rem; margin-top: 0.6rem; }

/* ---- Utility ---- */
.lead-para { font-size: 1.15rem; color: var(--ink-soft); }
.muted { color: var(--ink-mute); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
figure.diagram { margin: 1.6rem 0; text-align: center; }
figure.diagram svg { max-width: 100%; height: auto; }
figure.diagram figcaption { font-size: 0.88rem; color: var(--ink-mute); margin-top: 0.6rem; }
