/* ==========================================================================
   Eavescroft — editorial design system
   Warm, practical, trustworthy American home-care publication.
   ========================================================================== */

/* ---- Fonts (self-hosted, variable) ------------------------------------- */
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "InterVar";
  src: url("/assets/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---- Design tokens ----------------------------------------------------- */
:root {
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "InterVar", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Light theme (warm off-white) */
  --paper: #f6f2ea;
  --surface: #fbf9f4;
  --surface-2: #efe7d9;
  --ink: #22252a;
  --ink-soft: #4c4942;
  --muted: #726d63;
  --line: #e3dccc;
  --line-strong: #d3c9b4;

  --green: #22402f;
  --green-soft: #2f5641;
  --sage: #6f8c78;
  --sage-bg: #e7ede6;
  --brick: #9d4630;
  --copper: #a3672d;

  --link: var(--green);
  --link-hover: var(--copper);

  /* Scale */
  --wrap: 72rem;
  --wrap-text: 42rem;
  --gap: clamp(1rem, 2.5vw, 2rem);
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(34, 37, 42, 0.04), 0 6px 20px rgba(34, 37, 42, 0.05);
  --shadow-soft: 0 1px 0 var(--line);

  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  --step-1: clamp(1.2rem, 1.12rem + 0.4vw, 1.4rem);
  --step-2: clamp(1.45rem, 1.3rem + 0.7vw, 1.85rem);
  --step-3: clamp(1.8rem, 1.55rem + 1.2vw, 2.6rem);
  --step-4: clamp(2.3rem, 1.9rem + 2vw, 3.6rem);
}

/* ---- Base -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.12;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: var(--step-4); font-weight: 620; }
h2 { font-size: var(--step-2); margin-top: 2em; }
h3 { font-size: var(--step-1); margin-top: 1.6em; }

p { margin: 0 0 1.1em; }
a { color: var(--link); text-decoration-color: color-mix(in srgb, var(--link) 40%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--link-hover); }

img { max-width: 100%; height: auto; display: block; }
strong { font-weight: 620; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

::selection { background: var(--sage-bg); color: var(--ink); }

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

/* ---- Utilities --------------------------------------------------------- */
.wrap { width: min(100% - 2.4rem, var(--wrap)); margin-inline: auto; }
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--copper);
}
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; font-size: var(--step-2); }
.section-head .more { font-size: var(--step--1); font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.muted { color: var(--muted); }
.center { text-align: center; }

.skip-link {
  position: absolute; left: 0.75rem; top: -3.5rem;
  background: var(--green); color: #fff; padding: 0.6rem 1rem;
  border-radius: 8px; z-index: 200; transition: top 0.15s ease; font-weight: 600;
}
.skip-link:focus { top: 0.75rem; color: #fff; }

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 600; font-size: var(--step--1); letter-spacing: 0.01em;
  padding: 0.7rem 1.15rem; border-radius: 999px;
  border: 1px solid var(--green); color: var(--green);
  background: transparent; text-decoration: none; cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.btn:hover { background: var(--green); color: var(--paper); transform: translateY(-1px); }
.btn--solid { background: var(--green); color: var(--paper); }
.btn--solid:hover { background: var(--green-soft); color: var(--paper); }

/* ---- Header & navigation ---------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.1) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1.25rem; min-height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand svg { display: block; height: 30px; width: auto; }
.brand .brand-name { font-family: var(--font-display); font-weight: 640; font-size: 1.35rem; letter-spacing: -0.015em; }

.primary-nav ul { list-style: none; display: flex; gap: 0.25rem; margin: 0; padding: 0; }
.primary-nav a {
  display: inline-block; padding: 0.5rem 0.7rem; border-radius: 8px;
  font-size: 0.94rem; font-weight: 520; color: var(--ink-soft); text-decoration: none;
}
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--green); background: var(--sage-bg); }

.header-tools { display: flex; align-items: center; gap: 0.35rem; }
.icon-btn {
  display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem;
  border: 1px solid transparent; border-radius: 10px; background: transparent;
  color: var(--ink-soft); cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); color: var(--green); }
.icon-btn svg { width: 20px; height: 20px; }
.nav-toggle { display: none; }

/* Mobile menu */
.mobile-menu { display: none; }
@media (max-width: 60rem) {
  .primary-nav { display: none; }
  .nav-toggle { display: inline-grid; }
  .mobile-menu {
    display: block; position: fixed; inset: 4.25rem 0 0 0; z-index: 90;
    background: var(--paper); border-top: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease; overflow-y: auto;
  }
  .mobile-menu[data-open="true"] { opacity: 1; transform: none; pointer-events: auto; }
  .mobile-menu ul { list-style: none; margin: 0; padding: 0.5rem 1.2rem 2rem; }
  .mobile-menu li { border-bottom: 1px solid var(--line); }
  .mobile-menu a {
    display: block; padding: 1rem 0.25rem; font-family: var(--font-display);
    font-size: 1.3rem; color: var(--ink); text-decoration: none;
  }
  .mobile-menu a:hover { color: var(--green); }
  body[data-menu-open="true"] { overflow: hidden; }
}

/* ---- Search box -------------------------------------------------------- */
.search-wrap { padding: 1rem 1.2rem 0; }
.search-field {
  width: 100%; font: inherit; font-size: 1rem; padding: 0.8rem 1rem;
  border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--surface); color: var(--ink);
}
[data-search-results] { display: grid; }
.s-result { display: block; padding: 0.7rem 0.25rem; border-bottom: 1px solid var(--line); text-decoration: none; }
.s-result .s-cat { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sage); }
.s-result .s-title { color: var(--ink); font-family: var(--font-display); font-size: 1.05rem; }
.s-result:hover .s-title { color: var(--green); }

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

/* ---- Breadcrumbs ------------------------------------------------------- */
.breadcrumbs { font-size: var(--step--1); color: var(--muted); padding: 1rem 0 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; }
.breadcrumbs li::after { content: "›"; margin-left: 0.4rem; color: var(--line-strong); }
.breadcrumbs li:last-child::after { content: ""; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--green); }
.breadcrumbs [aria-current="page"] { color: var(--ink-soft); }

/* ---- Hero -------------------------------------------------------------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.hero h1 { font-size: var(--step-4); max-width: 14ch; margin-bottom: 0.5rem; }
.hero .lede { font-size: var(--step-1); color: var(--ink-soft); max-width: 34ch; margin-bottom: 1.6rem; font-family: var(--font-display); font-weight: 380; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero-figure { position: relative; }
.hero-figure img, .hero-figure svg { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 5 / 4; object-fit: cover; }
.hero-figure figcaption { font-size: var(--step--1); color: var(--muted); margin-top: 0.6rem; }
@media (max-width: 52rem) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { order: -1; }
  .hero-figure img, .hero-figure svg { aspect-ratio: 16 / 10; }
}

/* ---- Topic chips row --------------------------------------------------- */
.topics { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.9rem; }
.topic {
  display: flex; flex-direction: column; gap: 0.3rem; padding: 1.1rem 1.2rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink); transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.topic:hover { border-color: var(--sage); transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.topic .t-name { font-family: var(--font-display); font-weight: 580; font-size: 1.12rem; }
.topic .t-desc { font-size: var(--step--1); color: var(--muted); line-height: 1.5; }

/* ---- Cards ------------------------------------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: var(--gap); }
.card {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card a.card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.card a.card-media img, .card a.card-media svg { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover a.card-media img { transform: scale(1.03); }
.card-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.card .kicker { font-size: var(--step--1); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--sage); }
.card h3 { font-size: var(--step-1); margin: 0; line-height: 1.2; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--green); }
.card .excerpt { color: var(--ink-soft); font-size: 0.98rem; margin: 0; }
.card .meta { margin-top: auto; font-size: var(--step--1); color: var(--muted); display: flex; gap: 0.6rem; align-items: center; }

/* Featured card (spans, horizontal on wide) */
.card--feature { grid-column: 1 / -1; }
@media (min-width: 48rem) {
  .card--feature { flex-direction: row; }
  .card--feature a.card-media { flex: 0 0 48%; aspect-ratio: auto; }
  .card--feature .card-body { justify-content: center; padding: clamp(1.2rem, 3vw, 2.4rem); }
  .card--feature h3 { font-size: var(--step-2); }
}

/* ---- Sections spacing -------------------------------------------------- */
.section { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section--tint { background: var(--surface-2); }
.section--green { background: var(--green); color: #f2efe6; }
.section--green h2, .section--green h3 { color: #fff; }
.section--green .eyebrow { color: color-mix(in srgb, var(--copper) 60%, #fff); }
.section--green a { color: #fff; text-decoration-color: rgba(255,255,255,.4); }

/* ---- Article layout ---------------------------------------------------- */
.article { padding: 1rem 0 3rem; }
.article-head { max-width: var(--wrap-text); margin: 1.5rem auto 0; }
.article-head h1 { font-size: var(--step-3); margin-bottom: 0.6rem; }
.article-head .dek { font-size: var(--step-1); color: var(--ink-soft); font-family: var(--font-display); font-weight: 380; }
.article-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.1rem; align-items: center; margin-top: 1rem; font-size: var(--step--1); color: var(--muted); }
.article-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line-strong); }
.article-hero { max-width: var(--wrap); margin: 1.6rem auto; }
.article-hero img, .article-hero svg { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.article-hero figcaption { font-size: var(--step--1); color: var(--muted); margin-top: 0.55rem; text-align: center; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 16rem; gap: clamp(1.5rem, 4vw, 3.5rem); max-width: var(--wrap); margin-inline: auto; align-items: start; }
.prose { max-width: var(--wrap-text); }
.prose > * { margin-inline: auto; }
.prose h2 { scroll-margin-top: 5.5rem; }
.prose h3 { scroll-margin-top: 5.5rem; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.3rem; }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--sage); }
.prose blockquote {
  margin: 1.6rem 0; padding: 0.4rem 0 0.4rem 1.3rem;
  border-left: 3px solid var(--sage); color: var(--ink-soft);
  font-family: var(--font-display); font-style: italic; font-size: var(--step-1);
}
.lead { font-size: var(--step-1); color: var(--ink); font-family: var(--font-display); font-weight: 400; }

/* Direct-answer block at top of an article/problem page */
.answer {
  background: var(--sage-bg); border: 1px solid color-mix(in srgb, var(--sage) 40%, var(--line));
  border-radius: var(--radius); padding: 1.2rem 1.35rem; margin: 0 0 1.6rem;
}
.answer p { margin: 0; }
.answer .answer-label { font-size: var(--step--1); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--green); display: block; margin-bottom: 0.35rem; }

/* Callouts */
.callout { border-radius: var(--radius); padding: 1.1rem 1.3rem; margin: 1.6rem 0; border: 1px solid var(--line); background: var(--surface); }
.callout .callout-title { font-weight: 700; margin: 0 0 0.35rem; display: flex; align-items: center; gap: 0.5rem; }
.callout p:last-child { margin: 0; }
.callout--safety { background: color-mix(in srgb, var(--brick) 8%, var(--surface)); border-color: color-mix(in srgb, var(--brick) 35%, var(--line)); }
.callout--safety .callout-title { color: var(--brick); }
.callout--tip { background: var(--sage-bg); border-color: color-mix(in srgb, var(--sage) 40%, var(--line)); }
.callout--tip .callout-title { color: var(--green); }

/* Tables */
.prose table, .table-wrap table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.table-wrap { overflow-x: auto; margin: 1.6rem 0; border: 1px solid var(--line); border-radius: var(--radius); }
.prose th, .prose td, .table-wrap th, .table-wrap td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose thead th, .table-wrap thead th { background: var(--surface-2); font-weight: 640; color: var(--ink); }
.prose tbody tr:last-child td, .table-wrap tbody tr:last-child td { border-bottom: 0; }

/* Table of contents (sticky sidebar) */
.toc { position: sticky; top: 5.5rem; font-size: 0.92rem; }
.toc .toc-title { font-size: var(--step--1); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.6rem; }
.toc ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc li a { display: block; padding: 0.28rem 0 0.28rem 0.9rem; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-soft); text-decoration: none; }
.toc li.lvl-3 a { padding-left: 1.7rem; font-size: 0.88rem; color: var(--muted); }
.toc li a:hover { color: var(--green); }
.toc li a.is-active { color: var(--green); border-left-color: var(--green); font-weight: 560; }
@media (max-width: 60rem) {
  .article-layout { grid-template-columns: 1fr; }
  .toc { position: static; margin: 0 auto 1.5rem; max-width: var(--wrap-text); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; }
  .toc details summary { cursor: pointer; font-weight: 600; }
}

/* ---- FAQ --------------------------------------------------------------- */
.faq { max-width: var(--wrap-text); margin: 2.5rem auto 0; }
.faq h2 { margin-top: 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 0.4rem 0; }
.faq summary {
  cursor: pointer; list-style: none; padding: 0.85rem 2rem 0.85rem 0; position: relative;
  font-family: var(--font-display); font-size: var(--step-1); font-weight: 520; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0.2rem; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--sage); font-family: var(--font-body); line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { color: var(--green); }
.faq .faq-body { padding: 0 0 1rem; color: var(--ink-soft); }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ---- Related & author -------------------------------------------------- */
.related { max-width: var(--wrap); margin: 3rem auto 0; }
.byline { display: flex; gap: 0.9rem; align-items: center; max-width: var(--wrap-text); margin: 2.5rem auto 0; padding: 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.byline .avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 640; flex: 0 0 auto; }
.byline .b-name { font-weight: 620; }
.byline .b-desc { font-size: var(--step--1); color: var(--muted); }

/* ---- Category hub ------------------------------------------------------ */
.cat-header { padding: clamp(2rem, 4vw, 3rem) 0 1.5rem; }
.cat-header h1 { font-size: var(--step-3); max-width: 18ch; }
.cat-header .intro { max-width: 52ch; font-size: var(--step-1); color: var(--ink-soft); font-family: var(--font-display); font-weight: 380; }
.hub-lead { font-size: var(--step-1); margin: 0 0 1.2rem; color: var(--ink); }

/* ---- Category pagination ---------------------------------------------- */
.pagination {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 0.5rem 1rem; margin-top: 2.5rem;
}
.pagination .page-arrow {
  font-weight: 600; font-size: var(--step--1); letter-spacing: 0.01em;
  padding: 0.55rem 1rem; border: 1px solid var(--green); color: var(--green);
  border-radius: 999px; text-decoration: none; white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease;
}
.pagination .page-arrow:hover { background: var(--green); color: var(--paper); }
.pagination .page-arrow.is-disabled { border-color: var(--line); color: var(--muted); opacity: 0.5; }
.pagination .page-numbers { list-style: none; display: flex; gap: 0.3rem; margin: 0; padding: 0; }
.pagination .page-numbers a,
.pagination .page-numbers .is-current {
  display: inline-grid; place-items: center; min-width: 2.4rem; height: 2.4rem;
  padding: 0 0.5rem; border-radius: 8px; font-size: 0.95rem; text-decoration: none;
}
.pagination .page-numbers a { color: var(--ink-soft); }
.pagination .page-numbers a:hover { background: var(--sage-bg); color: var(--green); }
.pagination .page-numbers .is-current { background: var(--green); color: var(--paper); font-weight: 640; }
.pagination .page-gap { display: inline-grid; place-items: center; min-width: 1.6rem; height: 2.4rem; color: var(--muted); }

/* ---- Editorial principles list ---------------------------------------- */
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.5rem; }
.principle .p-num { font-family: var(--font-display); font-size: 1.6rem; color: var(--copper); }
.principle h3 { font-size: var(--step-1); margin: 0.2rem 0 0.4rem; }
.principle p { color: color-mix(in srgb, currentColor 82%, transparent); font-size: 0.98rem; margin: 0; }

/* ---- Footer ------------------------------------------------------------ */
.site-footer { background: var(--green); color: #e9e5d9; margin-top: 4rem; padding: clamp(2.5rem, 5vw, 4rem) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: var(--step--1); letter-spacing: .08em; text-transform: uppercase; font-weight: 600; margin: 0 0 0.9rem; opacity: .85; }
.site-footer a { color: #e9e5d9; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; font-size: 0.95rem; }
.footer-brand .brand-name { font-family: var(--font-display); font-size: 1.5rem; color: #fff; font-weight: 640; }
.footer-brand p { max-width: 34ch; color: #cfd7cc; font-size: 0.96rem; margin-top: 0.6rem; }
.footer-brand .f-email { display: inline-block; margin-top: 0.6rem; font-weight: 560; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 2.2rem; padding-top: 1.3rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: var(--step--1); color: #b9c3b6; }
@media (max-width: 46rem) { .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; } }

/* ---- Print (for checklists) ------------------------------------------- */
@media print {
  .site-header, .site-footer, .toc, .related, .breadcrumbs, .hero-actions, .nav-toggle, .mobile-menu, .byline { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .article-layout { display: block; }
  a { color: #000; text-decoration: none; }
  .callout, .answer { border: 1px solid #999; }
}
