/* ScheduleMyServices: deep teal / emerald, warm amber accents on off-white.
   Mobile-first. Serif display headings, system sans body. No external fonts. */
:root {
  --bg: #f8f6f0;
  --surface: #ffffff;
  --tint: #eaf2ee;
  --sand: #f6eedd;
  --ink: #142b2a;
  --muted: #475a58;
  --line: #d9d4c6;
  --teal-950: #082826;
  --teal-900: #0b3533;
  --teal-800: #0d4744;
  --teal-700: #0f5e58;
  --link: #0b6656;
  --link-hover: #074a3f;
  --emerald: #138a6e;
  --amber: #f2b544;
  --amber-strong: #e79a1c;
  --amber-ink: #7d4700;
  --amber-soft: #fcf1da;
  --danger-ink: #8f2a12;
  --danger-soft: #fdece6;
  --focus: #b86a00;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, "URW Palladio L", P052, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Liberation Sans", Arial, sans-serif;
  --r-lg: 6px;
  --r-sm: 4px;
  --wrap: 1200px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1.5rem; }
@media (prefers-reduced-motion: no-preference) { html { 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;
}
img, svg { max-width: 100%; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
main:focus { outline: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.2; margin: 0 0 0.5em; color: var(--teal-900); text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.35rem + 2.8vw, 3.25rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.45rem, 1.15rem + 1.2vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.25em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.narrow { max-width: 820px; }
.center { text-align: center; }
.small { font-size: 0.9rem; color: var(--muted); }

/* ---------- Skip link ---------- */
.skip-link { position: absolute; left: 12px; top: -100px; z-index: 100; background: var(--amber); color: var(--teal-950); padding: 0.6rem 1rem; font-weight: 700; border-radius: var(--r-sm); }
.skip-link:focus { top: 12px; color: var(--teal-950); }

/* ---------- Masthead ---------- */
.masthead { background: var(--teal-900); color: #fff; border-bottom: 4px solid var(--amber); position: relative; z-index: 20; --focus: var(--amber); }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: #fff; text-decoration: none; min-width: 0; }
.brand:hover { color: #fff; }
.logo-mark { width: 36px; height: 36px; flex: none; }
.brand-word { font-family: var(--serif); font-size: 1.28rem; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
.brand-word em { font-style: italic; font-weight: 400; color: var(--amber); padding: 0 0.04em; }
@media (max-width: 359px) { .brand-word { font-size: 1.08rem; } .logo-mark { width: 30px; height: 30px; } }

.menu-toggle { display: inline-flex; align-items: center; gap: 0.4rem; font: inherit; font-weight: 600; font-size: 0.95rem; color: #fff; background: transparent; border: 1.5px solid rgba(255, 255, 255, 0.55); border-radius: var(--r-sm); padding: 0.45rem 0.75rem; cursor: pointer; min-height: 44px; }
.menu-toggle:hover { border-color: var(--amber); }
.menu-toggle .icon-close { display: none; }
.masthead.is-open .menu-toggle .icon-close { display: inline; }
.masthead.is-open .menu-toggle .icon-open { display: none; }

.primary-nav { display: none; width: 100%; padding-bottom: 0.75rem; }
.masthead.is-open .primary-nav { display: block; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.primary-nav li { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.primary-nav a { display: block; padding: 0.8rem 0.25rem; color: #fff; text-decoration: none; font-weight: 600; }
.primary-nav a:hover { color: var(--amber); }
.primary-nav a[aria-current] { color: var(--amber); }
.primary-nav a[aria-current]::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); margin-right: 0.55rem; vertical-align: 0.15em; }

@media (min-width: 1000px) {
  .menu-toggle { display: none; }
  .primary-nav { display: block; width: auto; padding: 0; }
  .primary-nav ul { display: flex; gap: 0.25rem; border: 0; }
  .primary-nav li { border: 0; }
  .primary-nav a { padding: 0.5rem 0.7rem; font-size: 0.98rem; border-radius: var(--r-sm); position: relative; }
  .primary-nav a[aria-current]::before { display: none; }
  .primary-nav a[aria-current]::after { content: ""; position: absolute; left: 0.7rem; right: 0.7rem; bottom: 0.1rem; height: 3px; background: var(--amber); border-radius: 2px; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none; border-radius: var(--r-sm); padding: 0.75rem 1.15rem; min-height: 44px; border: 2px solid transparent; cursor: pointer; }
.btn-primary { background: var(--teal-800); color: #fff; }
.btn-primary:hover { background: var(--teal-950); color: #fff; }
.btn-amber { background: var(--amber); color: var(--teal-950); }
.btn-amber:hover { background: #ffc960; color: var(--teal-950); }
.btn-ghost { border-color: currentColor; color: var(--teal-800); background: transparent; padding: 0.55rem 0.9rem; }
.btn-ghost:hover { background: var(--teal-800); color: #fff; border-color: var(--teal-800); }

/* ---------- Common labels ---------- */
.eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber-ink); margin-bottom: 0.6rem; }
.eyebrow-light { color: var(--amber); }
.kicker { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-700); margin: 0 0 0.3rem; }
.kicker a { color: inherit; text-decoration: none; }
.kicker a:hover { text-decoration: underline; }
.lede { font-size: clamp(1.08rem, 1rem + 0.4vw, 1.25rem); color: var(--ink); max-width: 46rem; }

/* ---------- Sections ---------- */
.section { padding: 3.25rem 0; }
.section-tint { background: var(--tint); }
.section-head { max-width: 46rem; margin-bottom: 2rem; }
.section-head p:last-child { color: var(--muted); margin-bottom: 0; }

/* ---------- Home hero ---------- */
.hero { padding: 2.5rem 0 3rem; background:
  linear-gradient(180deg, rgba(234, 242, 238, 0.9), rgba(248, 246, 240, 0) 70%),
  repeating-linear-gradient(90deg, transparent 0 39px, rgba(15, 94, 88, 0.05) 39px 40px); }
.hero-grid { display: grid; gap: 2rem; align-items: start; }
.hero-grid > *, .cat-layout > *, .guide-layout > *, .doc-layout > *, .contact-layout > *, .footer-grid > *, .cat-band > *, .ed-grid > * { min-width: 0; }
.hero h1 { max-width: 18ch; }
.hero-copy > p:not(.lede):not(.eyebrow) { color: var(--muted); max-width: 42rem; }
@media (min-width: 900px) {
  .hero { padding: 4rem 0 4.5rem; }
  .hero-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 3.5rem; }
}

.search-form { margin: 1.5rem 0 1rem; max-width: 36rem; }
.search-form label { display: block; font-weight: 700; margin-bottom: 0.4rem; color: var(--teal-900); }
.search-row { display: flex; gap: 0.5rem; }
.search-row input { flex: 1; min-width: 0; font: inherit; padding: 0.7rem 0.85rem; border: 2px solid #8a9a95; border-radius: var(--r-sm); background: #fff; color: var(--ink); min-height: 48px; }
.search-row input:focus-visible { border-color: var(--teal-700); }
.search-row .btn { flex: none; }
@media (max-width: 419px) { .search-row .btn .btn-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; } }

.quick-links { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.quick-links a { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.45rem 0.8rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--teal-800); font-weight: 600; text-decoration: none; font-size: 0.95rem; min-height: 44px; }
.quick-links a:hover { border-color: var(--teal-700); background: var(--tint); }

.plan-card { background: var(--teal-900); color: #e9f2ef; border-radius: var(--r-lg); padding: 1.6rem 1.4rem; box-shadow: 10px 10px 0 var(--amber); margin-right: 10px; --focus: var(--amber); }
.plan-card h2 { color: #fff; font-size: 1.35rem; }
.plan-steps { list-style: none; padding: 0; margin: 1.2rem 0 0; counter-reset: step; }
.plan-steps li { display: flex; gap: 0.9rem; padding: 0.95rem 0; border-top: 1px solid rgba(255, 255, 255, 0.15); }
.plan-steps strong { display: block; color: #fff; font-size: 1.05rem; }
.plan-steps span:not(.step-icon) { color: #cfe0db; font-size: 0.97rem; }
.step-icon { width: 2.6rem; height: 2.6rem; border-radius: 50%; background: rgba(242, 181, 68, 0.16); color: var(--amber); display: inline-flex; align-items: center; justify-content: center; flex: none; }

/* ---------- Category bands (home) ---------- */
.cat-bands { display: grid; gap: 1.25rem; }
.cat-band { display: grid; gap: 1.25rem; background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--teal-700); border-radius: var(--r-lg); padding: 1.4rem; }
.cat-band.cat-automotive { border-left-color: var(--amber-strong); }
.cat-band.cat-technology { border-left-color: var(--emerald); }
.cat-band-head h3 { font-size: 1.5rem; margin: 0.6rem 0 0.35rem; }
.cat-band-head p { color: var(--muted); }
.cat-badge { display: inline-flex; align-items: center; justify-content: center; width: 2.9rem; height: 2.9rem; border-radius: var(--r-lg); background: var(--tint); color: var(--teal-800); }
.cat-badge .icon { width: 1.6rem; height: 1.6rem; }
.cat-automotive .cat-badge { background: var(--amber-soft); color: var(--amber-ink); }
.cat-band-list { list-style: none; margin: 0; padding: 0; columns: 1; column-gap: 2rem; }
.cat-band-list li { break-inside: avoid; border-bottom: 1px dashed var(--line); }
.cat-band-list a { display: block; padding: 0.55rem 0; text-decoration: none; color: var(--ink); font-weight: 500; }
.cat-band-list a::before { content: "→"; color: var(--teal-700); margin-right: 0.5rem; }
.cat-band-list a:hover { color: var(--link); text-decoration: underline; }
@media (min-width: 760px) {
  .cat-band { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr); padding: 1.8rem 2rem; gap: 2.5rem; }
  .cat-band-list { columns: 2; }
}

/* ---------- Featured list ---------- */
.feat-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.feat-item { display: flex; gap: 1rem; background: var(--surface); padding: 1.3rem 1.2rem; }
.feat-no { font-family: var(--serif); font-size: 2.2rem; line-height: 1; color: var(--amber-ink); font-weight: 700; min-width: 2.6rem; }
.feat-item h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.feat-item h3 a { color: var(--teal-900); text-decoration: none; }
.feat-item h3 a:hover { text-decoration: underline; color: var(--link); }
.feat-item p:last-child { margin: 0; color: var(--muted); font-size: 0.97rem; }
@media (min-width: 760px) { .feat-list { grid-template-columns: 1fr 1fr; } }

/* ---------- Journey ---------- */
.journey { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; counter-reset: j; }
.journey li { position: relative; padding-top: 1rem; border-top: 3px solid var(--teal-700); }
.journey li:nth-child(2) { border-top-color: var(--amber-strong); }
.journey li:nth-child(3) { border-top-color: var(--emerald); }
.journey li:nth-child(4) { border-top-color: var(--teal-900); }
.journey-icon { width: 2rem; height: 2rem; color: var(--teal-700); }
.journey h3 { margin: 0.6rem 0 0.4rem; }
.journey p { color: var(--muted); margin: 0; }
@media (min-width: 640px) { .journey { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .journey { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Dark editorial panel ---------- */
.section-dark { background: var(--teal-900); color: #dfeae6; --focus: var(--amber); }
.section-dark h2 { color: #fff; }
.section-dark a:not(.btn) { color: #fff; }
.ed-grid { display: grid; gap: 2rem; }
.ed-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.ed-points li { display: flex; gap: 0.75rem; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--r-lg); padding: 1rem 1.1rem; }
.ed-points .icon { color: var(--amber); margin-top: 0.2rem; }
.ed-points strong { color: #fff; }
@media (min-width: 900px) { .ed-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 3.5rem; align-items: start; } }

/* ---------- Notice / contact strip ---------- */
.notice { background: var(--amber-soft); border: 2px solid var(--amber-strong); border-radius: var(--r-lg); padding: 1.5rem 1.4rem; max-width: 60rem; }
.notice h2 { font-size: 1.4rem; }
.notice p:last-child { margin-bottom: 0; }
.notice a { color: var(--amber-ink); font-weight: 700; }
.contact-strip { padding-top: 0; }
.contact-strip-inner { display: grid; gap: 1.25rem; align-items: center; border-top: 1px solid var(--line); padding-top: 2.5rem; }
.contact-strip-inner p { color: var(--muted); margin: 0; max-width: 40rem; }
.email-big { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: clamp(1rem, 0.9rem + 0.8vw, 1.3rem); color: var(--teal-900); background: var(--surface); border: 2px solid var(--teal-700); border-radius: var(--r-lg); padding: 0.8rem 1.1rem; text-decoration: none; max-width: 100%; overflow-wrap: anywhere; }
.email-big:hover { background: var(--teal-800); color: #fff; }
@media (min-width: 900px) { .contact-strip-inner { grid-template-columns: 1fr auto; } }

/* ---------- Inner page heroes ---------- */
.page-hero { padding: 1.5rem 0 2rem; background: var(--tint); border-bottom: 1px solid var(--line); }
.page-hero.cat-automotive { background: var(--amber-soft); }
.page-hero.cat-technology { background: #e6f1ed; }
.crumbs ol { list-style: none; margin: 0 0 1.2rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 0; font-size: 0.92rem; color: var(--muted); }
.crumbs li:not(:last-child)::after { content: "/"; margin: 0 0.5rem; color: #7c8b88; }
.crumbs a { color: var(--teal-800); }
.crumbs [aria-current] { color: var(--muted); }
.byline { font-size: 0.93rem; color: var(--muted); margin: 0; }
.cat-hero-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.cat-hero-row h1 { margin: 0; }
.cat-badge-lg { width: 3.6rem; height: 3.6rem; background: var(--surface); }
.cat-badge-lg .icon { width: 2rem; height: 2rem; }
.count { margin: 0.25rem 0 0; font-weight: 600; color: var(--teal-700); }
.cat-intro { max-width: 48rem; }
.cat-intro p:first-child { font-size: 1.12rem; }
.cat-intro p:last-child { margin-bottom: 0; }

/* ---------- Category layout ---------- */
.cat-layout { display: grid; gap: 2rem; padding-top: 2.5rem; padding-bottom: 3.5rem; }
.guide-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--teal-900); }
.guide-row { display: grid; gap: 0.4rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.guide-row h3, .guide-row h2 { font-size: 1.2rem; margin-bottom: 0.35rem; }
.guide-row h3 a, .guide-row h2 a { color: var(--teal-900); text-decoration: none; }
.guide-row h3 a:hover, .guide-row h2 a:hover { color: var(--link); text-decoration: underline; }
.guide-row p { margin: 0; color: var(--muted); }
.guide-row-meta { font-size: 0.88rem; color: var(--muted); display: flex; align-items: center; gap: 0.35rem; white-space: nowrap; }
@media (min-width: 640px) { .guide-row { grid-template-columns: 1fr auto; gap: 1.5rem; align-items: start; } }
.aside-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.25rem; margin-bottom: 1.25rem; }
.aside-box h2 { font-size: 1.2rem; }
.aside-note { font-size: 0.92rem; color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { display: flex; gap: 0.6rem; padding: 0.35rem 0; }
.checks .icon { color: var(--emerald); margin-top: 0.22rem; }
.other-cats { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.other-cats a { display: flex; align-items: center; gap: 0.6rem; padding: 0.7rem 0.85rem; border: 1px solid var(--line); border-radius: var(--r-sm); text-decoration: none; font-weight: 600; color: var(--teal-800); background: var(--bg); }
.other-cats a:hover { border-color: var(--teal-700); background: var(--tint); }
.other-cats-row { margin: 2rem 0; }
@media (min-width: 640px) { .other-cats-row { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) {
  .cat-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 3.5rem; }
  .cat-aside { position: sticky; top: 1.5rem; align-self: start; }
}

/* ---------- Guide layout ---------- */
.guide-hero { padding-bottom: 2.25rem; }
.guide-hero h1 { max-width: 22ch; }
.guide-layout, .doc-layout { display: grid; gap: 1.75rem; padding-top: 2rem; padding-bottom: 3.5rem; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.1rem 1.2rem; font-size: 0.95rem; }
.toc h2 { font-family: var(--sans); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 0.6rem; }
.toc ol { margin: 0; padding-left: 1.4em; }
.toc li { padding: 0.18rem 0; }
.toc li::marker { color: var(--amber-ink); font-weight: 700; }
.toc a { color: var(--teal-800); text-decoration: none; }
.toc a:hover { text-decoration: underline; }
@media (min-width: 1000px) {
  .guide-layout, .doc-layout { grid-template-columns: 270px minmax(0, 1fr); gap: 3.5rem; }
  .doc-layout-single { grid-template-columns: minmax(0, 1fr); }
  .toc { position: sticky; top: 1.5rem; align-self: start; max-height: calc(100vh - 3rem); overflow: auto; background: transparent; border: 0; border-left: 3px solid var(--amber); border-radius: 0; padding: 0.2rem 0 0.2rem 1.1rem; }
}
.guide-body, .doc-body { max-width: 46rem; min-width: 0; }
.doc-layout-single .doc-body { margin: 0; }

.booklist { background: var(--amber-soft); border: 1px solid #ecd3a3; border-top: 5px solid var(--amber-strong); border-radius: var(--r-lg); padding: 1.25rem 1.3rem 1.1rem; margin-bottom: 2.25rem; }
.booklist h2 { display: flex; align-items: center; gap: 0.55rem; font-size: 1.35rem; margin-bottom: 0.6rem; color: var(--teal-950); }
.booklist h2 .icon { color: var(--amber-ink); }
.booklist .checks .icon { color: var(--teal-700); }

.prose h2 { margin-top: 2.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); display: flex; align-items: baseline; gap: 0.75rem; }
.prose > h2:first-child, .prose > section:first-child h2 { margin-top: 0; }
.sec-no { font-family: var(--sans); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em; color: var(--amber-ink); background: var(--amber-soft); border-radius: var(--r-sm); padding: 0.15rem 0.4rem; flex: none; position: relative; top: -0.2em; }
.prose h3 { margin-top: 1.6rem; font-size: 1.15rem; }
.prose li { margin: 0.35rem 0; }
.prose li::marker { color: var(--teal-700); font-weight: 700; }
.prose ol > li { padding-left: 0.2rem; }
.prose li p { margin: 0.35rem 0 0; }
.prose a.ext::after, .sources a.ext::after, .contact-layout a.ext::after { content: "↗"; font-size: 0.8em; margin-left: 0.15em; text-decoration: none; display: inline-block; }
.prose blockquote { margin: 1.5rem 0; padding: 0.5rem 1rem; border-left: 4px solid var(--line); color: var(--muted); }

.callout { margin: 1.6rem 0; padding: 1rem 1.15rem; border-radius: var(--r-lg); border: 1px solid; }
.callout p { margin: 0; }
.callout-label { display: inline-block; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.1rem 0.45rem; border-radius: var(--r-sm); margin-right: 0.35rem; }
.callout-tip { background: var(--tint); border-color: #b9d4cb; }
.callout-tip .callout-label { background: var(--teal-800); color: #fff; }
.callout-note { background: var(--surface); border-color: var(--line); }
.callout-note .callout-label { background: var(--muted); color: #fff; }
.callout-safety { background: var(--danger-soft); border-color: #eab5a5; border-left: 5px solid var(--danger-ink); }
.callout-safety .callout-label { background: var(--danger-ink); color: #fff; }

.sources { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.sources h2 { display: flex; align-items: center; gap: 0.5rem; font-size: 1.3rem; }
.sources h2 .icon { color: var(--teal-700); }
.sources ul { padding-left: 1.2em; }
.sources li { margin: 0.3rem 0; }
.independence { margin-top: 2rem; padding: 1rem 1.15rem; background: var(--surface); border: 1px dashed #9aa9a5; border-radius: var(--r-lg); font-size: 0.95rem; color: var(--muted); }
.independence p { margin: 0; }
.independence strong { color: var(--ink); }

.related h2 { margin-bottom: 1.25rem; }
.related-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.related-list li { background: var(--surface); border-radius: var(--r-lg); border: 1px solid var(--line); border-top: 4px solid var(--teal-700); padding: 1.15rem 1.2rem; }
.related-list h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.related-list h3 a { color: var(--teal-900); text-decoration: none; }
.related-list h3 a:hover { color: var(--link); text-decoration: underline; }
.related-list p:last-child { margin: 0; color: var(--muted); font-size: 0.95rem; }
.more-link { margin: 1.5rem 0 0; font-weight: 700; }
.more-link a { display: inline-flex; align-items: center; gap: 0.4rem; }
@media (min-width: 760px) { .related-list { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Docs / contact ---------- */
.doc-hero h1 { max-width: 24ch; }
.prose section + section h2 { margin-top: 2.2rem; }
.contact-layout { display: grid; gap: 2rem; padding-top: 2rem; padding-bottom: 3.5rem; }
.contact-card { background: var(--teal-900); color: #dfeae6; border-radius: var(--r-lg); padding: 1.5rem 1.4rem; align-self: start; --focus: var(--amber); }
.contact-card h2 { color: #fff; display: flex; align-items: center; gap: 0.5rem; font-size: 1.35rem; }
.contact-card h2 .icon { color: var(--amber); }
.contact-card .email-big { background: transparent; color: #fff; border-color: var(--amber); }
.contact-card .email-big:hover { background: var(--amber); color: var(--teal-950); }
.contact-card p:last-child { margin: 0; font-size: 0.95rem; }
.contact-layout .prose { max-width: 46rem; min-width: 0; }
.contact-layout .prose section:first-child h2 { margin-top: 0; padding-top: 0; border-top: 0; }
@media (min-width: 1000px) { .contact-layout { grid-template-columns: 360px minmax(0, 1fr); gap: 3.5rem; } .contact-card { position: sticky; top: 1.5rem; } }

/* ---------- Search ---------- */
.search-results-wrap { padding-top: 2rem; padding-bottom: 3.5rem; }
.search-status { font-weight: 600; color: var(--teal-900); }
.search-results:empty { border: 0; }
.search-results { margin-bottom: 2rem; }
.search-results mark { background: var(--amber-soft); color: inherit; padding: 0 0.1em; }
.notice-inline { background: var(--amber-soft); border-left: 4px solid var(--amber-strong); padding: 0.8rem 1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-950); color: #c9dad5; padding: 3rem 0 0; margin-top: 0; font-size: 0.96rem; --focus: var(--amber); }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--amber); }
.footer-grid { display: grid; gap: 2rem; padding-bottom: 2.5rem; }
.footer-brand p { margin: 1rem 0 0; max-width: 32rem; }
.footer-email { display: flex; gap: 0.5rem; align-items: flex-start; }
.footer-email .icon { color: var(--amber); margin-top: 0.2rem; }
.footer-email a { font-weight: 700; overflow-wrap: anywhere; }
.footer-col h2 { font-family: var(--sans); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--amber); margin-bottom: 0.8rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin: 0.1rem 0; }
.footer-col a { display: inline-block; padding: 0.3rem 0; text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, 0.14); padding-top: 1.25rem; padding-bottom: 1.5rem; font-size: 0.88rem; color: #a9c0ba; }
.footer-base p { margin: 0; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 3rem; } .footer-brand { grid-column: auto; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .masthead, .site-footer, .toc, .related, .skip-link { display: none !important; }
  body { background: #fff; }
}
