/* =============================================================
   shared.css — Path of Breathing
   Variables · Reset · Body · Nav · Animations
   Linked by every page on the site.
   ============================================================= */

/* ── Registered color tokens — typed so the browser can
   interpolate them when data-theme changes. Every element that
   uses var(--x) automatically sees the animated value with no
   per-element transition needed. ─────────────────────────────── */
@property --bg      { syntax: '<color>'; inherits: true; initial-value: #0e0d0c; }
@property --bg2     { syntax: '<color>'; inherits: true; initial-value: #161513; }
@property --bg3     { syntax: '<color>'; inherits: true; initial-value: #1e1c1a; }
@property --border  { syntax: '<color>'; inherits: true; initial-value: rgba(255,255,255,0.07); }
@property --text    { syntax: '<color>'; inherits: true; initial-value: #e8e4dc; }
@property --muted   { syntax: '<color>'; inherits: true; initial-value: #9a9690; }
@property --accent  { syntax: '<color>'; inherits: true; initial-value: #c9a96e; }
@property --accent2 { syntax: '<color>'; inherits: true; initial-value: #8b6f47; }

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
  --bg:       #0e0d0c;
  --bg2:      #161513;
  --bg3:      #1e1c1a;
  --border:   rgba(255,255,255,0.07);
  --text:     #e8e4dc;
  --muted:    #9a9690;
  --accent:   #c9a96e;
  --accent2:  #8b6f47;
  /* Translucent accent tints for hover borders — themed so light
     mode doesn't inherit the dark gold. */
  --accent-tint:        rgba(201,169,110,0.28);
  --accent-tint-strong: rgba(201,169,110,0.4);
  --serif:    'Cormorant Garamond', Georgia, serif;
  --sans:     'DM Sans', system-ui, sans-serif;
  --ease:     0.4s cubic-bezier(0.4,0,0.2,1);
  --pad:      clamp(24px, 5vw, 80px);
}

/* ── Light theme — warm paper. Accent golds darken for contrast
   against the light ground; everything else is the same palette
   inverted in warmth, not flipped to clinical white. ──────────── */
[data-theme="light"] {
  --bg:       #f5f2ec;
  --bg2:      #ede9e0;
  --bg3:      #e5e0d4;
  --border:   rgba(0,0,0,0.09);
  --text:     #2b2823;
  --muted:    #6f6a61;
  --accent:   #8f5f13;
  --accent2:  #b08a3e;
  --accent-tint:        rgba(143,95,19,0.28);
  --accent-tint-strong: rgba(143,95,19,0.4);
}


/* ── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  /* Backstop for Safari compositor edge cases — and the source of
     truth for overscroll/status-bar area color on iOS. Must use
     var(--bg) so it follows the theme toggle; a hardcoded dark value
     shows as a black bar above the nav when switching to light mode. */
  background: var(--bg);
  /* Animate the registered color tokens when data-theme flips.
     Because the tokens are typed via @property and inherit, every
     element using var(--x) picks up the interpolated value — no
     per-element transitions needed. */
  transition: --bg 0.6s ease, --bg2 0.6s ease, --bg3 0.6s ease,
              --border 0.6s ease, --text 0.6s ease, --muted 0.6s ease,
              --accent 0.6s ease, --accent2 0.6s ease;
}

/* ── Base ────────────────────────────────────────────────────── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.022;
  pointer-events: none;
  z-index: 1000;
}

.band-content a {
  color: var(--accent);
}

.band-content a:visited {
  color: var(--accent);
}

/* ── Visually hidden — accessible but not visible ───────────── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Skip to content ─────────────────────────────────────────── */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg);
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 10px 20px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-to-content:focus {
  top: 16px;
}

/* ── Navigation ──────────────────────────────────────────────── */
nav {
  width: 100%;
  background: var(--bg);
}

.nav-inner {
  max-width: var(--max-w, 1280px);
  margin: 0 auto;
  padding: calc(24px + env(safe-area-inset-top)) var(--pad, clamp(24px, 5vw, 80px)) 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}


.nav-logo {
  display: flex;
  align-items: center;
  color: var(--accent);
  text-decoration: none;
  transition: color var(--ease);
  opacity: 0.7;
  grid-column: 1;
  justify-self: start;
  width: fit-content;
}
.nav-logo:hover { color: var(--text); opacity: 1; }

/* Nav right group */
.nav-right {
  display: flex;
  align-items: center;
  gap: 25px;
  justify-self: end;
  grid-column: 3;
}

.nav-link {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--ease);
  padding-left: 1rem;
  white-space: nowrap;
}
@media (hover: hover) {
  .nav-link:hover { color: var(--text); }
}
.nav-link:focus { outline: none; color: var(--muted); }



/* ── Footer shared ───────────────────────────────────────────── */
.footer-logo {
  color: var(--accent);
  opacity: 0.5;
  text-decoration: none;
  transition: opacity var(--ease), color var(--ease);
  display: block;
  width: 36px;
  height: 36px;
  line-height: 0;
}
.footer-logo:hover { opacity: 1; color: var(--text); }

.footer-mark {
  color: inherit;
}

/* ── Book hero ───────────────────────────────────────────────── */
.book-hero {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 var(--pad, clamp(24px, 5vw, 80px)) 100px;
  border-bottom: 1px solid var(--border);
}

.module-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  margin-top: 60px;
}

.module-context {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 32px;
}

.book-title {
  font-family: var(--serif);
  font-size: clamp(64px, 9vw, 125px);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 30px;
}

.book-intro {
  font-family: var(--sans);
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 400;
  line-height: 1.9;
  color: var(--text);
}
.book-intro + .book-intro { margin-top: 1.5em; }
.book-intro em { color: var(--accent); font-style: italic; }
.book-intro a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.book-intro a:hover { color: var(--text); }

/* ── Animations ──────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; opacity: 1 !important; }
}

/* ── Table of contents ───────────────────────────────────────── */
.toc {
  padding: 64px 0 72px;
  border-bottom: 1px solid var(--border);
}

.toc-header {
  /* A real <button> for keyboard access — reset UA button styles */
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 32px;
  cursor: pointer;
  user-select: none;
}

.toc-chevron {
  font-size: 20px;
  color: var(--accent);
  display: inline-block;
  transition: transform 0.3s ease;
  opacity: 0.7;
  line-height: 1;
}
.toc.collapsed .toc-chevron { transform: rotate(-90deg); }

.toc-items {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: 1200px;
  opacity: 1;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}
.toc.collapsed .toc-items { max-height: 0; opacity: 0; }

.toc-link {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: border-color 0.3s ease, opacity 0.3s ease;
  opacity: 0.62;
}
.toc-link:last-child { border-bottom: none; }
@media (hover: hover) {
  .toc-link:hover { opacity: 1; border-color: var(--accent-tint); }
}
.toc-link.is-active { opacity: 1; }
.toc-link.is-active .toc-name { color: var(--accent); }

.toc-num {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--accent);
  min-width: 22px;
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity 0.3s;
}
@media (hover: hover) {
  .toc-link:hover .toc-num { opacity: 1; }
}
.toc-link.is-active .toc-num { opacity: 1; }

.toc-name {
  font-family: var(--sans);
  font-size: clamp(14px, 1.35vw, 16px);
  font-weight: 400;
  color: var(--text);
  transition: color 0.3s ease;
}

.toc-arrow {
  margin-left: auto;
  font-size: 11px;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  flex-shrink: 0;
}
@media (hover: hover) {
  .toc-link:hover .toc-arrow { opacity: 0.6; transform: translateX(0); }
}
.toc-link.is-active .toc-arrow { opacity: 0.6; transform: translateX(0); }


/* ── Breathing overlay — first-visit entrance ────────────────── */
#breath-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  /* var(--bg), not a hardcoded dark — theme.js sets data-theme from
     the visitor's system preference before first paint, so the
     overlay matches the page behind it. A fixed dark here left black
     safe-area bars against a light page on iOS. */
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0;
  opacity: 1;
  transition: opacity 1.6s cubic-bezier(0.4,0,0.2,1);
  cursor: pointer;
  /* NO will-change, transform, or backface tricks here.
     Previous attempts all added GPU-promotion CSS in the hope of
     "containing" the brownish flash — but they were the cause of it.
     will-change:opacity pre-promotes the overlay to a compositor layer.
     When the text labels then fire their CSS opacity transitions inside
     that pre-promoted layer, Safari has to re-rasterize it, and briefly
     shows the stale compositor buffer — revealing the warm-colored page
     behind. Without will-change the overlay stays in the normal paint
     flow; there is no pre-created layer to go stale, so no flash.
     The fade-out transition still GPU-composes fine: it just promotes
     at the moment it actually runs, not preemptively. */
  isolation: isolate;
}
#breath-overlay.leaving {
  opacity: 0;
  pointer-events: none;
}
/* Ring lives inside a fixed-size wrapper so scaling never overlaps the text below */
.breath-ring-wrap {
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.breath-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid var(--accent-tint-strong);
  animation: breath-cycle 9s ease-in-out forwards;
  /* No will-change — Safari already GPU-promotes @keyframes on
     transform/opacity automatically. Explicit will-change was
     creating a nested compositor sub-layer inside the overlay,
     which compounded the compositing problem. */
}
@keyframes breath-cycle {
  0%   { transform: scale(0.85); opacity: 0.15; }
  8%   { opacity: 0.6; }
  42%  { transform: scale(2.4);  opacity: 0.75; }
  52%  { transform: scale(2.4);  opacity: 0.70; }
  92%  { transform: scale(0.85); opacity: 0.20; }
  100% { transform: scale(0.85); opacity: 0.05; }
}
/* Two-label crossfade wrapper — avoids a textContent DOM mutation
   (which triggers a Safari repaint and can cause the flash). */
.breath-text-wrap {
  position: relative;
  height: 18px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.breath-text {
  position: absolute;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  /* No CSS transition — the crossfade is driven by breath.js via
     requestAnimationFrame so no CSS compositor promotion ever fires
     inside the overlay, which was the cause of Safari's color flashes. */
  white-space: nowrap;
}
.breath-skip {
  margin-top: 36px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  animation: breath-skip-in 1s 5s forwards;
}
@keyframes breath-skip-in {
  to { opacity: 0.75; }
}
@media (prefers-reduced-motion: reduce) {
  #breath-overlay { display: none !important; }
}

@media (max-width: 700px) {
  .nav-right {
    gap: 25px;
  }
  .nav-link {
    padding-left: 4px;
  }
}

/* ── Hamburger button ────────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  grid-column: 3;
  justify-self: end;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--muted);
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); background: var(--accent); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); background: var(--accent); }

/* ── Mobile menu ─────────────────────────────────────────────── */
.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.nav-mobile.is-open { display: flex; }

.nav-mobile-link {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
  padding: 16px clamp(24px, 5vw, 80px);
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.nav-mobile-link:last-child { border-bottom: none; }
.nav-mobile-link:hover { color: var(--accent); }

.nav-mobile-group {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--border);
}

.nav-mobile-group-btn {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  background: none;
  border: none;
  padding: 16px clamp(24px, 5vw, 80px);
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav-mobile-group-btn.is-open { color: var(--accent); }

.nav-mobile-chevron {
  font-size: 16px;
  color: var(--accent);
  opacity: 0.6;
  transition: transform 0.2s ease;
  display: inline-block;
}
.nav-mobile-group-btn.is-open .nav-mobile-chevron { transform: rotate(180deg); opacity: 1; }

.nav-mobile-children {
  display: none;
  flex-direction: column;
  background: var(--bg2);
  border-left: 2px solid var(--accent2);
  margin-left: clamp(24px, 5vw, 80px);
}
.nav-mobile-children.is-open { display: flex; }

.nav-mobile-child {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  padding: 13px 20px;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.nav-mobile-child:last-child { border-bottom: none; }
.nav-mobile-child:hover { color: var(--accent); }

.nav-mobile-room,
.nav-mobile-timer {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Desktop dropdowns ───────────────────────────────────────── */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-btn {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: color var(--ease);
}
@media (hover: hover) {
  .nav-dropdown:hover .nav-dropdown-btn { color: var(--text); }
}
.nav-dropdown.is-open .nav-dropdown-btn { color: var(--text); }

.nav-dropdown-chevron {
  font-size: 12px;
  opacity: 0.6;
  display: inline-block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
@media (hover: hover) {
  .nav-dropdown:hover .nav-dropdown-chevron { opacity: 1; transform: rotate(180deg); }
}
.nav-dropdown.is-open .nav-dropdown-chevron { opacity: 1; transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 14px;
  background: transparent;
  min-width: 130px;
  display: none;
  flex-direction: column;
  z-index: 100;
}

.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  inset: 14px 0 0 0;
  background: var(--bg2);
  border: 1px solid var(--border);
  z-index: -1;
}
@media (hover: hover) {
  .nav-dropdown:hover .nav-dropdown-menu { display: flex; }
}
.nav-dropdown.is-open .nav-dropdown-menu { display: flex; }

.nav-dropdown-item {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  padding: 13px 20px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  text-align: center;
  transition: color 0.2s;
}
.nav-dropdown-item:last-child { border-bottom: none; }
@media (hover: hover) {
  .nav-dropdown-item:hover { color: var(--text); }
}

/* ── Room (door) & timer icons ───────────────────────────────── */
.nav-room,
.nav-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-decoration: none;
  padding: 0 0 0 1rem;
  transition: color var(--ease);
  flex-shrink: 0;
}
@media (hover: hover) {
  .nav-room:hover,
  .nav-timer:hover { color: var(--accent); }
}

/* ── Theme toggle ────────────────────────────────────────────── */
.nav-theme {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 0 0 1rem;
  transition: color var(--ease);
  flex-shrink: 0;
  line-height: 0;
}
@media (hover: hover) {
  .nav-theme:hover { color: var(--accent); }
}

.nav-mobile-theme {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  text-align: left;
  padding: 16px clamp(24px, 5vw, 80px);
  width: 100%;
}

/* ── Responsive: swap nav-right for hamburger ────────────────── */
@media (max-width: 768px) {
  .nav-right     { display: none; }
  .nav-hamburger { display: flex; }
}

.tldr-coda {
  position: relative;
  margin-top: 1.5rem;
  padding-top: 2.5rem;
  text-align: center;
  font-family: var(--sans);
}

/* ── Footer — shared across all pages ───────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px var(--pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.footer-updated {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--muted);
  opacity: 0.7;
}

.footer-support,
.footer-report {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--muted);
  opacity: 0.7;
  text-decoration: none;
  transition: opacity 0.3s;
  margin-top: 24px;
}
/* Support sits above the report link — a little air between them. */
.footer-support { margin-top: 28px; }
.footer-report  { margin-top: 10px; }
.footer-support:hover,
.footer-report:hover { opacity: 0.85; }

/* ── Call-to-action link — homepage and support page ─────────── */
.hero-cta {
  margin-top: 1.5em;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent2);
  padding-bottom: 4px;
  width: fit-content;
  transition: gap 0.3s, color 0.3s;
  opacity: 0;
  animation: fadeUp 0.8s 0.65s forwards;
}
.hero-cta:hover { gap: 20px; color: var(--text); }
.hero-cta::after { content: '→'; }

/* ── Support page — donation buttons ─────────────────────────────
   Three primary monthly tiers (the invited path) and one quiet
   one-time pill (choose your amount). Same pill language as the
   room/timer buttons. */
.support-give {
  margin-top: 2.2em;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 22px;
}
.band-content a.support-btn {
  display: inline-block;
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 10px 26px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: border-color 0.3s, color 0.3s;
}
.band-content a.support-btn:hover {
  color: var(--text);
  border-color: var(--accent);
}
.band-content a.support-btn-primary {
  color: var(--accent);
  border-color: var(--accent-tint-strong);
}
.band-content a.support-btn-primary:hover {
  border-color: var(--accent);
}
.support-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.support-group-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.7;
}
.support-group-btns {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Print — clean text on paper, no chrome ──────────────────── */
@media print {
  :root, [data-theme="light"], [data-theme="dark"] {
    --bg:      #ffffff;
    --bg2:     #ffffff;
    --bg3:     #ffffff;
    --border:  #cccccc;
    --text:    #000000;
    --muted:   #444444;
    --accent:  #000000;
    --accent2: #333333;
  }

  html, body { background: #ffffff; }

  /* Grain overlay and vertical border lines */
  body::before,
  body::after { display: none !important; }

  nav,
  footer,
  .skip-to-content,
  #breath-overlay,
  .toc,
  .next-book,
  .nav-back,
  .philosopher-back,
  .hero-cta,
  .nav-mobile,
  .timer-wrap { display: none !important; }

  a { color: #000000; text-decoration: none; }

  /* Don't split a koan across pages if it can be helped */
  .koan, .band, .band-grid, .pull-quote { break-inside: avoid; }
}
