/* ============================================================
   Detox Box by Pace, shared site stylesheet
   Nav · Footer · Cookie banner · Page template · Prose · Cards · CTAs
   Tokens mirror the Pace Detox Box design system.
   ============================================================ */

:root {
  --cream: #f7f2ea;         /* warm cream canvas, never pure white */
  --cream-deep: #efe8da;    /* recessed surface / footer band */
  --ink: #20304f;           /* deep relaxed blue body text */
  --navy: #2a3c5c;          /* logo + strongest headings */
  --muted: #5f6770;         /* slate secondary */
  --sage: #809080;          /* minty sage, soft fills / dividers */
  --sage-deep: #4d6a56;     /* primary action / eyebrows / accents */
  --sage-deep-ink: #3f5848; /* sage pressed / hover-dark */
  --gold: #b0843a;          /* copper/gold, fine accents only */
  --locked: #9a4f43;        /* muted terracotta, urgent / attention */
  --card: #ffffff;
  --line: #e6e0d5;
  --radius-card: 14px;
  --radius-btn: 10px;
  --radius-chip: 8px;
  --shadow-card: 0 30px 60px -40px rgba(0,0,0,.4);
  --shadow-soft: 0 14px 34px -24px rgba(0,0,0,.35);
  --shadow-focus: 0 0 0 3px rgba(77,106,86,.28);
  --ease: cubic-bezier(.22,.61,.36,1);
  --maxw: 1040px;
  --nav-h: 66px;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
img { max-width: 100%; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.col-read { max-width: 760px; }

.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: 12px;
  font-weight: 600; color: var(--sage-deep); margin: 0;
}
.rule-gold { width: 90%; height: 1px; background: var(--gold); opacity: .8; border: 0; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; font-size: 16px; font-weight: 600; font-family: inherit;
  border: 0; border-radius: var(--radius-btn); background: var(--sage-deep); color: #fff;
  text-decoration: none; cursor: pointer;
  transition: background .15s var(--ease), transform .08s var(--ease);
}
.btn:hover { background: var(--sage-deep-ink); }
.btn:active { transform: scale(.98); }
.btn:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; font-size: 15px; font-weight: 600; font-family: inherit;
  border: 1px solid var(--line); border-radius: var(--radius-btn);
  background: var(--card); color: var(--ink); text-decoration: none; cursor: pointer;
  transition: border-color .15s var(--ease), color .15s var(--ease), transform .08s var(--ease);
}
.btn-ghost:hover { border-color: var(--sage); color: var(--sage-deep); }
.btn-ghost:active { transform: scale(.98); }

/* ============================================================
   NAV
   ============================================================ */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247,242,234,.86);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.nav-logo { display: flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; }
.nav-logo svg.mark { width: 30px; height: 30px; display: block; }
.nav-logo .wordmark { height: 30px; width: auto; display: block; }
.nav-logo .wm { font-family: var(--font-display); font-weight: 600; font-size: 21px; color: var(--navy); letter-spacing: .2px; line-height: 1; }
.nav-logo .wm em { font-style: italic; font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .6px; margin-left: 4px; }
.nav-logo .wm-lockup { display: inline-flex; align-items: center; gap: 8px; }
.nav-logo .wm-sep { width: 1px; height: 19px; background: var(--gold); opacity: .85; }
.nav-logo .wm-by { font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 13px; color: var(--muted); letter-spacing: .3px; white-space: nowrap; }

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav-link {
  position: relative; display: inline-block; padding: 9px 14px; border-radius: var(--radius-chip);
  font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none;
  transition: color .14s var(--ease);
}
.nav-link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 1.5px;
  background: var(--sage-deep); transform: scaleX(0); transform-origin: left; opacity: 0;
  transition: transform .18s var(--ease), opacity .18s var(--ease);
}
.nav-link:hover { color: var(--sage-deep); }
.nav-link:hover::after { transform: scaleX(1); opacity: 1; }
.nav-link[aria-current="page"] { color: var(--sage-deep); }
.nav-link[aria-current="page"]::after { transform: scaleX(1); opacity: 1; background: var(--gold); }

/* dropdown */
.nav-dd { position: relative; }
.nav-dd-trigger {
  display: inline-flex; align-items: center; gap: 5px; padding: 9px 14px; border: 0; background: none;
  font-family: inherit; font-size: 15px; font-weight: 500; color: var(--ink); cursor: pointer;
  border-radius: var(--radius-chip); transition: color .14s var(--ease);
}
.nav-dd-trigger:hover, .nav-dd.open .nav-dd-trigger { color: var(--sage-deep); }
.nav-dd-trigger svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.nav-dd.open .nav-dd-trigger svg { transform: rotate(180deg); }
.nav-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 216px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card);
  box-shadow: var(--shadow-card); padding: 8px; margin: 0; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .16s var(--ease), transform .16s var(--ease), visibility .16s;
}
.nav-dd.open .nav-menu, .nav-dd:hover .nav-menu, .nav-dd:focus-within .nav-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-menu a {
  display: block; padding: 10px 12px; border-radius: var(--radius-chip);
  font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: none;
  transition: background .12s var(--ease), color .12s var(--ease);
}
.nav-menu a .sub { display: block; font-size: 12px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.nav-menu a:hover { background: var(--cream-deep); color: var(--sage-deep); }

.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-cta { padding: 10px 18px; font-size: 14px; }

/* hamburger — shown at ALL widths for now (the desktop "More" dropdown is commented out in _nav.html;
   revert to display:none to restore the dropdown breakpoint behaviour). */
.nav-toggle {
  display: inline-flex; width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  align-items: center; justify-content: center; border-radius: var(--radius-chip);
}
.nav-toggle span { position: relative; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s var(--ease), opacity .2s var(--ease); }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s var(--ease), top .2s var(--ease); }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
body.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* mobile drawer */
.nav-scrim {
  position: fixed; inset: 0; background: rgba(32,48,79,.32); z-index: 190;
  opacity: 0; visibility: hidden; transition: opacity .2s var(--ease), visibility .2s;
}
body.nav-open .nav-scrim { opacity: 1; visibility: visible; }
.nav-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(86vw, 360px); z-index: 200;
  background: var(--cream); border-left: 1px solid var(--line);
  box-shadow: -30px 0 60px -40px rgba(0,0,0,.5);
  transform: translateX(100%); transition: transform .26s var(--ease);
  display: flex; flex-direction: column; padding: 20px 22px 28px; overflow-y: auto;
}
body.nav-open .nav-drawer { transform: translateX(0); }
.nav-drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.nav-drawer-close { width: 40px; height: 40px; border: 0; background: none; cursor: pointer; color: var(--navy); display: flex; align-items: center; justify-content: center; border-radius: var(--radius-chip); }
.nav-drawer-close svg { width: 22px; height: 22px; }
.drawer-link { display: block; padding: 14px 6px; font-size: 18px; font-weight: 500; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.drawer-link:hover { color: var(--sage-deep); }
.drawer-group-label { margin: 22px 6px 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--sage); font-weight: 600; }
.drawer-cta { margin-top: 24px; }
.drawer-foot { margin-top: auto; padding-top: 24px; }
.drawer-foot .social-row { justify-content: flex-start; }

@media (max-width: 880px) {
  .nav-links, .nav-dd, .nav-right .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ============================================================
   PAGE TEMPLATE (shared header band for content pages)
   ============================================================ */
main { display: block; }
.page-hero { padding: 62px 0 40px; }
.page-hero .eyebrow { margin-bottom: 14px; }
.page-hero h1 {
  font-family: var(--font-display); font-weight: 700; color: var(--navy);
  font-size: clamp(38px, 5.6vw, 60px); line-height: 1.05; letter-spacing: -.02em; margin: 0;
  max-width: 18ch; text-wrap: balance;
}
.page-hero .lede { font-size: 20px; color: var(--muted); margin: 22px 0 0; max-width: 58ch; }
.page-hero .rule-gold { margin: 26px 0 0; }
.page-hero--center { text-align: center; }
.page-hero--center h1, .page-hero--center .lede { margin-left: auto; margin-right: auto; }
.page-hero--center .eyebrow { }
.page-hero--center .rule-gold { margin-left: auto; margin-right: auto; }

.section { padding: 30px 0 64px; }
.section--tint { background: var(--cream-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 60ch; margin-bottom: 34px; }
.section-head h2 { font-family: var(--font-display); font-weight: 600; color: var(--navy); font-size: clamp(26px, 3.4vw, 36px); line-height: 1.14; letter-spacing: -.01em; margin: 12px 0 0; }
.section-head .lede { font-size: 17px; color: var(--muted); margin: 14px 0 0; }

/* ---------- Prose ---------- */
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 20px; }
.prose p { font-size: 17.5px; color: var(--ink) } /* margin: 6px;*/
.prose .dropcap::first-letter { font-family: var(--font-display); font-size: 3.4em; line-height: .82; float: left; padding: 6px 12px 0 0; color: var(--sage-deep); font-weight: 700; }
.prose h2 { font-family: var(--font-display); font-weight: 600; color: var(--navy); font-size: 28px; line-height: 1.18; letter-spacing: -.01em; margin: 44px 0 0; }
.prose h3 { font-size: 19px; font-weight: 600; color: var(--navy); margin: 32px 0 0; }
.prose ul, .prose ol { margin: 10px; padding-left: 20px; color: var(--ink); font-size: 17.5px; }
.prose li + li { margin-top: 8px; }
.prose a { color: var(--sage-deep); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(77,106,86,.4); }
.prose a:hover { text-decoration-color: var(--sage-deep); }
.prose blockquote {
  margin: 32px 0; padding: 6px 0 6px 24px; border-left: 3px solid var(--gold);
  font-family: var(--font-display); font-style: italic; font-size: 23px; line-height: 1.35; color: var(--navy);
}
.prose figure { margin: 32px 0; }
.prose figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; text-align: center; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }

/* ---------- Labeled placeholder graphic ---------- */
.ph {
  position: relative; display: flex; align-items: center; justify-content: center; text-align: center;
  background: var(--cream-deep);
  background-image: repeating-linear-gradient(-45deg, rgba(128,144,128,.06) 0 12px, transparent 12px 24px);
  border: 1.5px dashed var(--sage); border-radius: var(--radius-card);
  color: var(--sage-deep); overflow: hidden; min-height: 180px;
}
.ph--wide { aspect-ratio: 16 / 9; }
.ph--photo { aspect-ratio: 3 / 2; }
.ph--square { aspect-ratio: 1 / 1; }
.ph--tall { aspect-ratio: 4 / 5; }
.ph--banner { aspect-ratio: 24 / 7; min-height: 160px; }
.ph::before {
  content: "PLACEHOLDER"; position: absolute; top: 11px; left: 13px;
  font-size: 10px; letter-spacing: .16em; font-weight: 600; color: var(--sage); opacity: .8;
}
.ph .ph-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 28px; max-width: 88%; }
.ph .ph-inner svg { width: 34px; height: 34px; opacity: .8; }
.ph .ph-label { font-size: 14.5px; font-weight: 500; line-height: 1.4; color: var(--sage-deep); }
.ph .ph-dim { font-size: 11.5px; color: var(--sage); letter-spacing: .04em; }

/* ============================================================
   BLOG
   ============================================================ */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card {
  display: flex; flex-direction: column; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden;
  box-shadow: var(--shadow-card); text-decoration: none; color: inherit;
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}
.post-card:hover { transform: translateY(-3px); border-color: var(--sage); }
.post-thumb { border: 0; border-radius: 0; min-height: 0; aspect-ratio: 3 / 2; }
.post-thumb::before { content: "PLACEHOLDER"; }
.post-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-cat { font-size: 11px; text-transform: uppercase; letter-spacing: .13em; font-weight: 600; color: var(--sage-deep); }
.post-title { font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 1.2; color: var(--navy); margin: 10px 0 0; letter-spacing: -.01em; }
.post-excerpt { font-size: 14.5px; color: var(--muted); margin: 10px 0 0; }
.post-meta { font-size: 12.5px; color: var(--sage); margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }

.post-card--feature { grid-column: 1 / -1; flex-direction: row; }
.post-card--feature .post-thumb { flex: 0 0 46%; aspect-ratio: auto; }
.post-card--feature .post-body { padding: 40px; justify-content: center; }
.post-card--feature .post-title { font-size: 30px; }
.post-card--feature .post-excerpt { font-size: 16px; max-width: 46ch; }

@media (max-width: 860px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .post-card--feature { flex-direction: column; }
  .post-card--feature .post-thumb { flex: none; aspect-ratio: 16/9; width: 100%; }
  .post-card--feature .post-body { padding: 28px; }
}
@media (max-width: 560px) { .post-grid { grid-template-columns: 1fr; } }

/* ============================================================
   FOLLOW-OUR-JOURNEY CTA (email → social reveal)
   ============================================================ */
.cta-follow {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card);
  box-shadow: var(--shadow-card); padding: 48px 40px; text-align: center; max-width: 720px; margin: 0 auto;
}
.cta-follow .rule-gold { margin: 16px auto 0; }
.cta-follow h2 { font-family: var(--font-display); font-weight: 600; color: var(--navy); font-size: clamp(26px, 3.2vw, 34px); line-height: 1.14; margin: 16px 0 0; letter-spacing: -.01em; }
.cta-follow p { font-size: 16px; color: var(--muted); margin: 12px auto 0; max-width: 46ch; }
.follow-form { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; max-width: 460px; margin: 24px auto 0; }
.follow-form input[type="email"] {
  flex: 1 1 240px; padding: 14px 16px; font-size: 16px; font-family: inherit;
  border: 1px solid var(--line); border-radius: var(--radius-btn); background: var(--card); color: var(--ink);
  transition: box-shadow .15s var(--ease), border-color .15s var(--ease);
}
.follow-form input[type="email"]::placeholder { color: #9aa0a6; }
.follow-form input[type="email"]:focus { outline: none; border-color: var(--sage-deep); box-shadow: var(--shadow-focus); }
.follow-note { font-size: 13px; color: var(--muted); margin-top: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.cta-social { display: none; }
.cta-follow.revealed .follow-form, .cta-follow.revealed .follow-note { display: none; }
.cta-follow.revealed .cta-social { display: block; animation: fadeUp .3s var(--ease); }
.cta-social .thanks-line { font-family: var(--font-display); font-size: 22px; color: var(--sage-deep); margin: 6px 0 4px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.social-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.social-link {
  width: 46px; height: 46px; border-radius: var(--radius-btn); border: 1px solid var(--line);
  background: var(--card); color: var(--ink); display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; transition: border-color .15s var(--ease), color .15s var(--ease), transform .08s var(--ease);
}
.social-link:hover { border-color: var(--sage); color: var(--sage-deep); transform: translateY(-2px); }
.social-link svg { width: 20px; height: 20px; }

/* ============================================================
   HELP, "Beyond discipline"
   ============================================================ */
.resource-list { display: grid; gap: 18px; }
.resource {
  background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--sage-deep);
  border-radius: 0 var(--radius-card) var(--radius-card) 0; padding: 24px 26px; box-shadow: var(--shadow-card);
}
.resource--urgent { border-left-color: var(--locked); }
.resource .res-top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.resource h3 { font-size: 18px; font-weight: 600; color: var(--navy); margin: 0; }
.resource .res-tag { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; color: var(--sage); }
.resource--urgent .res-tag { color: var(--locked); }
.resource .res-contact { font-family: var(--font-display); font-size: 26px; font-weight: 600; color: var(--navy); margin: 10px 0 0; letter-spacing: -.01em; }
.resource .res-contact a { text-decoration: none; color: inherit; }
.resource .res-desc { font-size: 15px; color: var(--muted); margin: 8px 0 0; max-width: 60ch; }
.resource .res-links { margin-top: 14px; display: flex; gap: 14px; flex-wrap: wrap; }
.resource .res-links a { font-size: 14px; font-weight: 500; color: var(--sage-deep); text-decoration: underline; text-underline-offset: 3px; }
.help-callout {
  background: var(--cream-deep); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 22px 26px; font-size: 15px; color: var(--ink);
}
.help-callout strong { color: var(--navy); }

/* ============================================================
   QUIZ MOCKUP, "About you"
   ============================================================ */
.quiz-shell { max-width: 640px; margin: 0 auto; }
.quiz-progress { height: 6px; background: var(--cream-deep); border-radius: 99px; overflow: hidden; border: 1px solid var(--line); }
.quiz-progress > span { display: block; height: 100%; background: var(--sage-deep); border-radius: 99px; transition: width .3s var(--ease); }
.quiz-progress-label { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--sage); font-weight: 600; margin: 12px 0 0; }

.quiz-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card);
  box-shadow: var(--shadow-card); padding: 32px; margin-top: 20px;
}
.quiz-kind { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; font-weight: 600; color: var(--gold); }
.quiz-q { font-family: var(--font-display); font-weight: 600; font-size: 24px; color: var(--navy); line-height: 1.2; margin: 10px 0 0; letter-spacing: -.01em; }
.quiz-help { font-size: 14px; color: var(--muted); margin: 8px 0 0; }
.quiz-options { margin-top: 22px; display: grid; gap: 12px; }

.choice {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-btn);
  transition: border-color .14s var(--ease), background .14s var(--ease), transform .06s var(--ease);
}
.choice:hover { border-color: var(--sage); }
.choice:active { transform: scale(.995); }
.choice .box {
  flex-shrink: 0; width: 22px; height: 22px; border: 1.5px solid var(--sage); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: #fff; transition: all .14s var(--ease);
}
.choice.multi .box { border-radius: 6px; }
.choice .box svg { width: 13px; height: 13px; opacity: 0; transform: scale(.6); transition: all .14s var(--ease); }
.choice .txt { font-size: 15.5px; color: var(--ink); font-weight: 500; }
.choice .txt small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; margin-top: 2px; }
.choice.selected { border-color: var(--sage-deep); background: rgba(77,106,86,.055); }
.choice.selected .box { background: var(--sage-deep); border-color: var(--sage-deep); }
.choice.selected .box svg { opacity: 1; transform: scale(1); }

.quiz-scale { display: flex; gap: 10px; margin-top: 22px; }
.quiz-scale button {
  flex: 1; padding: 16px 0; font-family: inherit; font-size: 17px; font-weight: 600; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-btn); cursor: pointer;
  transition: all .14s var(--ease);
}
.quiz-scale button:hover { border-color: var(--sage); }
.quiz-scale button.selected { background: var(--sage-deep); border-color: var(--sage-deep); color: #fff; }
.quiz-scale-ends { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-top: 10px; }

.quiz-text {
  width: 100%; margin-top: 20px; padding: 15px 16px; font-family: inherit; font-size: 16px;
  color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-btn);
  resize: vertical; min-height: 120px; transition: box-shadow .15s var(--ease), border-color .15s var(--ease);
}
.quiz-text:focus { outline: none; border-color: var(--sage-deep); box-shadow: var(--shadow-focus); }
.quiz-input {
  width: 100%; margin-top: 20px; padding: 15px 16px; font-family: inherit; font-size: 16px;
  color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-btn);
  transition: box-shadow .15s var(--ease), border-color .15s var(--ease);
}
.quiz-input:focus { outline: none; border-color: var(--sage-deep); box-shadow: var(--shadow-focus); }
.quiz-charcount { font-size: 12px; color: var(--sage); margin-top: 8px; text-align: right; }

.quiz-select-wrap { position: relative; margin-top: 20px; }
.quiz-select {
  width: 100%; padding: 15px 44px 15px 16px; font-family: inherit; font-size: 16px; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-btn);
  appearance: none; -webkit-appearance: none; cursor: pointer;
}
.quiz-select:focus { outline: none; border-color: var(--sage-deep); box-shadow: var(--shadow-focus); }
.quiz-select-wrap svg { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--sage-deep); pointer-events: none; }

.quiz-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 26px; gap: 12px; }
.quiz-note { text-align: center; font-size: 13px; color: var(--muted); margin-top: 22px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--cream-deep); border-top: 1px solid var(--line);
  padding: 44px 0 24px; margin-top: 56px; color: var(--muted); font-size: 14px;
}
.footer-centered { display: flex; flex-direction: column; align-items: center; text-align: center; }
.footer-centered .wordmark { height: 80px; width: auto; display: block; }
.footer-centered .footer-logo { display: inline-block; margin-top: 24px; }
.footer-centered .footer-blurb { margin-top: 8px; max-width: 46ch; }
.footer-quote { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 16px; line-height: 1.55; color: var(--navy); max-width: 540px; width: 92%; margin: 4px auto 0; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px; margin-top: 18px; }
.footer-nav a { font-size: 16px; font-weight: 500; color: var(--ink); text-decoration: none; transition: color .14s var(--ease); }
.footer-nav a:hover { color: var(--sage-deep); }
.footer-centered .social-row { margin-top: 18px; justify-content: center; }
.footer-brand .fb-mark { display: flex; align-items: center; gap: 10px; }
.footer-brand .fb-mark svg { width: 28px; height: 28px; }
.footer-brand .fb-mark .wordmark { height: 34px; width: auto; }
.footer-brand .fb-name { font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--navy); }
.footer-brand .fb-lockup { display: inline-flex; align-items: center; gap: 9px; }
.footer-brand .fb-sep { width: 1px; height: 20px; background: var(--gold); opacity: .85; }
.footer-brand .fb-by { font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 15px; color: var(--muted); letter-spacing: .3px; }
.footer-tag { font-family: var(--font-display); font-style: italic; font-size: 16px; color: var(--sage-deep); margin: 14px 0 0; }
.footer-blurb { font-size: 13.5px; color: var(--muted); margin: 10px 0 0; max-width: 34ch; }
.footer-head { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; font-weight: 600; color: var(--navy); margin: 0 0 14px; }
.footer-link { display: block; padding: 5px 0; font-size: 14.5px; color: var(--muted); text-decoration: none; transition: color .14s var(--ease); }
.footer-link:hover { color: var(--sage-deep); }

.footer-follow p { font-size: 13.5px; color: var(--muted); margin: 0 0 12px; max-width: 32ch; }
.footer-follow .follow-form { justify-content: flex-start; margin: 0; max-width: none; }
.footer-follow .follow-form input[type="email"] { flex: 1 1 160px; padding: 12px 14px; font-size: 15px; }
.footer-follow .cta-social { margin-top: 4px; }
.footer-follow .cta-social .thanks-line { font-size: 17px; margin: 0 0 8px; }
.footer-follow .social-row { justify-content: flex-start; margin-top: 12px; }
.footer-follow.revealed .follow-form, .footer-follow.revealed p.pre { display: none; }

.footer-bottom {
  border-top: 1px solid var(--line); margin-top: 28px; padding-top: 20px;
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  font-size: 13px; color: var(--muted);
}
.footer-legal a { color: var(--sage-deep); text-decoration: none; }
.footer-legal a:hover { text-decoration: underline; }
.footer-links-inline { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.footer-links-inline a, .footer-links-inline button {
  font: inherit; font-size: 13px; color: var(--muted); background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: none; transition: color .14s var(--ease);
}
.footer-links-inline a:hover, .footer-links-inline button:hover { color: var(--sage-deep); }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: center; }
}


/* ============================================================
   Utilities
   ============================================================ */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }
