/* soothing.space
   One stylesheet. Light and dark follow the device setting. */

@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f5f1ea;
  --paper-2: #ece6dc;
  --card: #fffdf9;
  --ink: #222629;
  --ink-2: #4a5056;
  --ink-3: #6b7177;
  --line: #e1dace;
  --line-2: #cfc6b6;
  --sage: #3e6c5c;
  --sage-ink: #ffffff;
  --sage-2: #5e8c7b;
  --sage-soft: #dde9e2;
  --sage-tint: #eef4f0;
  --clay: #a95c42;
  --clay-soft: #f3e1d8;
  --shadow: 0 1px 2px rgba(34, 38, 41, .05), 0 8px 28px rgba(34, 38, 41, .06);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 22px;
  --wrap: 1120px;
  --text: 680px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121617;
    --paper-2: #181d1e;
    --card: #1b2122;
    --ink: #ece8e2;
    --ink-2: #c2bfb8;
    --ink-3: #9c9993;
    --line: #2a3234;
    --line-2: #3a4447;
    --sage: #8cc0ac;
    --sage-ink: #0f1a16;
    --sage-2: #6fa592;
    --sage-soft: #22352f;
    --sage-tint: #19272a;
    --clay: #e19e82;
    --clay-soft: #3a2a23;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .25);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (min-width: 900px) { body { font-size: 1.125rem; } }

img, svg { display: block; max-width: 100%; }
a { color: var(--sage); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--sage-2); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 50;
  background: var(--card); color: var(--ink); padding: 8px 14px; border-radius: 10px;
}
.skip:focus { left: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-head { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
  font-family: var(--serif); font-size: 1.3rem; font-weight: 520; letter-spacing: -.01em;
}
.brand svg { width: 28px; height: 28px; color: var(--sage); }
.brand .dot { color: var(--sage); }
.site-nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 0 -8px; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
  color: var(--ink-2); text-decoration: none; font-size: .95rem; font-weight: 550;
  padding: 8px 10px; border-radius: 999px; white-space: nowrap;
}
.site-nav a:hover { color: var(--ink); background: var(--paper-2); }
.site-nav a[aria-current="page"] { color: var(--ink); background: var(--sage-tint); }
@media (max-width: 640px) {
  .site-head .wrap { padding-top: 6px; padding-bottom: 4px; gap: 4px; }
  .site-nav { width: 100%; padding-bottom: 4px; justify-content: space-between; }
  .site-nav a { font-size: .9rem; padding: 7px 8px; }
}

/* Page top */
.crumbs { font-size: .875rem; color: var(--ink-3); margin: 22px 0 6px; }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs span[aria-hidden] { margin: 0 6px; }
.page-head { max-width: 760px; }
h1, h2 {
  font-family: var(--serif);
  font-weight: 520;
  letter-spacing: -.015em;
  line-height: 1.12;
  margin: 0;
}
h1 { font-size: clamp(2.05rem, 5.2vw, 3.1rem); margin: 6px 0 10px; }
.lede { font-size: 1.12rem; color: var(--ink-2); margin: 0 0 22px; max-width: 640px; }
@media (min-width: 900px) { .lede { font-size: 1.2rem; } }

/* The guide (tool card) */
.guide {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 18px 18px;
  max-width: 720px;
  margin: 0 0 40px;
  position: relative;
}
@media (min-width: 720px) { .guide { padding: 28px 28px 22px; } }
.guide-main { display: grid; grid-template-columns: 1fr; justify-items: center; gap: 6px; }
.stage {
  width: min(78vw, 340px);
  aspect-ratio: 1 / 1;
  position: relative;
  user-select: none;
}
.stage svg { width: 100%; height: 100%; overflow: visible; }
.stage-wide { width: min(86vw, 460px); aspect-ratio: 46 / 30; }
.phase {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 6.2vw, 1.6rem);
  font-weight: 500;
  line-height: 1.3;
  height: 1.3em;
  margin: 6px 0 2px;
  max-width: 100%;
  text-align: center;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cue {
  color: var(--ink-3);
  font-size: .98rem;
  line-height: 1.55;
  min-height: 3.1em;
  text-align: center;
  max-width: 520px;
  margin: 0;
}
@media (max-width: 400px) {
  .wrap { padding: 0 16px; }
  .guide { padding: 18px 12px 14px; }
}
.controls {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin: 14px 0 4px; flex-wrap: wrap;
}
.btn {
  appearance: none; border: 0; cursor: pointer;
  font: inherit; font-weight: 650; font-size: 1.02rem;
  width: 108px; height: 48px; padding: 0 12px;
  border-radius: 999px;
  background: var(--sage); color: var(--sage-ink);
  transition: transform .15s ease, background .2s ease;
}
.btn:hover { background: var(--sage-2); }
.btn:active { transform: scale(.98); }
.btn-wide { width: auto; min-width: 108px; padding: 0 22px; }
.icon-btn {
  appearance: none; cursor: pointer; padding: 0;
  width: 42px; height: 42px; border-radius: 999px;
  border: 1px solid var(--line-2); background: transparent; color: var(--ink-2);
  display: inline-grid; place-items: center;
}
.icon-btn:hover { color: var(--ink); background: var(--paper-2); }
.icon-btn svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn[aria-pressed="true"] { background: var(--sage-tint); color: var(--sage); border-color: var(--sage-2); }
.icon-btn[hidden] { display: none; }
button:disabled, .icon-btn:disabled { opacity: .4; cursor: default; }
.icon-btn:disabled:hover { background: transparent; color: var(--ink-2); }

.settings {
  border-top: 1px solid var(--line);
  margin-top: 16px; padding-top: 14px;
  display: grid; gap: 10px; justify-items: center; grid-auto-rows: minmax(40px, auto);
}
.setting { display: flex; align-items: center; gap: 10px; }
.setting-label { font-size: .85rem; color: var(--ink-3); font-weight: 600; letter-spacing: .02em; }
.chips { display: inline-flex; background: var(--paper-2); border-radius: 999px; padding: 3px; }
.chip {
  appearance: none; border: 0; cursor: pointer; font: inherit;
  font-size: .9rem; font-weight: 600; color: var(--ink-2);
  padding: 7px 12px; border-radius: 999px; background: transparent;
  min-width: 44px;
}
.chip[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.stepper { display: inline-flex; align-items: center; gap: 2px; background: var(--paper-2); border-radius: 999px; padding: 3px; }
.stepper button {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  width: 34px; height: 34px; border-radius: 999px; font: inherit; font-size: 1.2rem; color: var(--ink-2);
}
.stepper button:hover { background: var(--card); color: var(--ink); }
.stepper output { min-width: 3.4em; text-align: center; font-weight: 650; font-size: .95rem; }

.guide-foot {
  display: flex; justify-content: center; gap: 18px; flex-wrap: wrap;
  margin-top: 12px; font-size: .9rem;
}
.guide-foot a { color: var(--ink-3); }
.guide-foot a:hover { color: var(--ink); }

/* Present mode: real full screen, or a full-window layer where that is not allowed.
   Kept as separate rules so a browser that does not know one selector keeps the others. */
.guide:fullscreen { max-width: none; margin: 0; border: 0; border-radius: 0; box-shadow: none; display: flex; flex-direction: column; justify-content: center; align-items: center; background: var(--paper); padding: 4vh 4vw; overflow: auto; }
.guide:-webkit-full-screen { max-width: none; margin: 0; border: 0; border-radius: 0; box-shadow: none; display: flex; flex-direction: column; justify-content: center; align-items: center; background: var(--paper); padding: 4vh 4vw; width: 100%; height: 100%; }
.guide.present { position: fixed; inset: 0; z-index: 100; max-width: none; margin: 0; border: 0; border-radius: 0; box-shadow: none; display: flex; flex-direction: column; justify-content: center; align-items: center; background: var(--paper); padding: max(4vh, env(safe-area-inset-top)) 4vw max(4vh, env(safe-area-inset-bottom)); overflow: auto; }
html.present-open, html.present-open body { overflow: hidden; }
.guide:fullscreen .settings, .guide:fullscreen .guide-foot, .guide:fullscreen .chooser { display: none; }
.guide:-webkit-full-screen .settings, .guide:-webkit-full-screen .guide-foot, .guide:-webkit-full-screen .chooser { display: none; }
.guide.present .settings, .guide.present .guide-foot, .guide.present .chooser { display: none; }
.guide:fullscreen .stage { width: min(62vh, 86vw); }
.guide:-webkit-full-screen .stage { width: min(62vh, 86vw); }
.guide.present .stage { width: min(58vh, 86vw); }
.guide:fullscreen .phase { font-size: clamp(2rem, 5vh, 3.2rem); }
.guide:-webkit-full-screen .phase { font-size: clamp(2rem, 5vh, 3.2rem); }
.guide.present .phase { font-size: clamp(1.9rem, 4.6vh, 3rem); }
.guide:fullscreen .cue { font-size: clamp(1.1rem, 2.6vh, 1.6rem); }
.guide:-webkit-full-screen .cue { font-size: clamp(1.1rem, 2.6vh, 1.6rem); }
.guide.present .cue { font-size: clamp(1.05rem, 2.4vh, 1.5rem); }
.guide-spacer { display: block; }

/* Visual pieces (shared by the guide engine) */
.v-track { fill: none; stroke: var(--line); stroke-width: 2; }
.v-track-strong { fill: none; stroke: var(--line-2); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.v-orb { fill: var(--sage-soft); stroke: var(--sage-2); stroke-width: 2; }
.v-core { fill: var(--sage); opacity: .12; }
.v-progress { fill: none; stroke: var(--sage); stroke-width: 4; stroke-linecap: round; }
.v-dot { fill: var(--sage); }
.v-dot-halo { fill: var(--sage); opacity: .18; }
.v-active { fill: none; stroke: var(--sage); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.v-count { font-family: var(--sans); font-weight: 650; fill: var(--ink); text-anchor: middle; dominant-baseline: central; }
.v-small { font-family: var(--sans); font-weight: 600; fill: var(--ink-3); text-anchor: middle; }
.v-body { fill: var(--paper-2); stroke: var(--line-2); stroke-width: 1.5; transition: fill .4s ease, stroke .4s ease; }
.v-body.on { fill: var(--sage-soft); stroke: var(--sage); stroke-width: 2.5; }
.v-body.tense { fill: var(--clay-soft); stroke: var(--clay); stroke-width: 2.5; }
.v-balloon { fill: var(--clay-soft); stroke: var(--clay); stroke-width: 2; }

.v-band { fill: none; stroke-width: 14; stroke-linecap: round; opacity: .22; }
.v-band-on { fill: none; stroke-width: 14; stroke-linecap: round; }
.rb-0 { stroke: #df8f86; } .rb-1 { stroke: #e9b56f; } .rb-2 { stroke: #d9c867; } .rb-3 { stroke: #86bf98; } .rb-4 { stroke: #82a9d8; }
.v-ground { stroke: var(--line-2); stroke-width: 2; stroke-linecap: round; }
.v-string { fill: none; stroke: var(--line-2); stroke-width: 2; stroke-linecap: round; }
.v-shine { fill: none; stroke: #ffffff; stroke-opacity: .55; stroke-width: 6; stroke-linecap: round; }
@media (prefers-color-scheme: dark) { .v-shine { stroke-opacity: .25; } }
.v-body.on { animation: glow 3.2s ease-in-out infinite; }
@keyframes glow { 50% { fill-opacity: .55; } }

.timer-bar { height: 4px; border-radius: 99px; background: var(--paper-2); overflow: hidden; width: 60%; max-width: 260px; margin: 8px 0 2px; }
.timer-bar span { display: block; height: 100%; width: 0; background: var(--sage); }

.chooser { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin: 0 0 12px; }
.chooser .chip { background: var(--paper-2); padding: 7px 11px; }
@media (max-width: 400px) { .chooser { gap: 4px; } .chooser .chip { padding: 7px 9px; font-size: .88rem; min-width: 0; } }
.chooser .chip[aria-pressed="true"] { background: var(--sage); color: var(--sage-ink); box-shadow: none; }

/* 5-4-3-2-1 */
.senses-stage { display: grid; justify-items: center; align-content: center; gap: 4px; min-height: 230px; width: 100%; }
.big-number { font-family: var(--serif); font-size: 6rem; line-height: 1; font-weight: 450; color: var(--sage); text-align: center; min-height: 1em; }
.sense-name { text-align: center; font-weight: 650; color: var(--ink-2); letter-spacing: .02em; font-size: 1.15rem; min-height: 1.6em; }
.counter-dots { display: flex; gap: 12px; justify-content: center; margin: 12px 0 6px; min-height: 46px; flex-wrap: nowrap; }
.counter-dots button {
  appearance: none; cursor: pointer; padding: 0;
  width: 44px; height: 44px; border-radius: 999px;
  border: 2px solid var(--line-2); background: transparent;
  transition: background .2s ease, border-color .2s ease;
}
.counter-dots button[aria-pressed="true"] { background: var(--sage); border-color: var(--sage); }

/* Grounding picker */
.pick-stage { display: grid; justify-items: center; align-content: center; gap: 8px; min-height: 190px; width: 100%; max-width: 560px; text-align: center; }
.pick-name { font-family: var(--serif); font-size: 1.85rem; line-height: 1.15; font-weight: 520; margin: 0; min-height: 2.3em; display: grid; align-items: end; }
.pick-how { color: var(--ink-2); margin: 0; min-height: 5em; }
.picker-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; width: 100%; }
.picker-list button, .kit-list button {
  appearance: none; cursor: pointer; font: inherit; font-size: .95rem; text-align: left; color: var(--ink);
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 14px;
  background: var(--paper); border: 1px solid var(--line);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.picker-list button:hover, .kit-list button:hover { border-color: var(--line-2); }
.picker-list button[aria-pressed="true"] { border-color: var(--sage); background: var(--sage-tint); }
.guide:fullscreen .picker-list { display: none; }
.guide.present .picker-list { display: none; }

/* Self-soothe kit */
.kit-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; width: 100%; }
.kit-list button { padding-left: 46px; position: relative; white-space: normal; min-height: 62px; line-height: 1.3; display: flex; align-items: center; }
.kit-list button::before {
  content: ""; position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; margin-top: -10px;
  border-radius: 6px; border: 2px solid var(--line-2); background: var(--card);
}
.kit-list button[aria-pressed="true"] { border-color: var(--sage); background: var(--sage-tint); }
.kit-list button[aria-pressed="true"]::before {
  background: var(--sage); border-color: var(--sage);
  box-shadow: inset 0 0 0 3px var(--card);
}
.kit-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.kit-foot output { font-weight: 650; color: var(--ink-2); }
.kit-print { display: none; }

/* Article */
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
@media (min-width: 1040px) {
  .layout { grid-template-columns: minmax(0, var(--text)) 300px; justify-content: space-between; }
}
.prose { max-width: var(--text); }
.prose h2 { font-size: clamp(1.55rem, 3vw, 1.95rem); margin: 44px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--sans); font-size: 1.12rem; font-weight: 700; margin: 26px 0 6px; letter-spacing: -.005em; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 16px; }
.prose li { margin: 4px 0; }
.prose li::marker { color: var(--ink-3); }
.prose strong { font-weight: 680; }
.prose sup a { text-decoration: none; font-size: .78em; font-weight: 650; }

ol.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 18px; }
ol.steps li {
  counter-increment: s; position: relative; padding: 4px 0 10px 52px; margin: 0; min-height: 40px;
}
ol.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 2px;
  width: 36px; height: 36px; border-radius: 999px;
  background: var(--sage-tint); color: var(--sage); border: 1px solid var(--sage-soft);
  display: grid; place-items: center; font-weight: 700; font-size: .95rem;
}

.note {
  border-left: 3px solid var(--clay);
  background: var(--card);
  border-radius: 0 14px 14px 0;
  padding: 14px 18px;
  margin: 18px 0;
}
.note p:last-child { margin-bottom: 0; }
.note-title { font-weight: 700; margin: 0 0 4px; }
.help-line { border-left-color: var(--sage); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 0 0 24px; }
.fact { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.fact b { display: block; font-family: var(--serif); font-weight: 520; font-size: 1.3rem; line-height: 1.2; }
.fact span { color: var(--ink-3); font-size: .88rem; }

.sources { font-size: .92rem; color: var(--ink-2); }
.sources ol { padding-left: 1.4em; }
.sources li { margin: 6px 0; }
.updated { color: var(--ink-3); font-size: .9rem; margin-top: 18px; }

/* Side column */
.aside { display: grid; gap: 18px; align-content: start; }
@media (min-width: 1040px) { .aside { position: sticky; top: 20px; } }
.aside-box { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; }
.aside-box h2 { font-family: var(--sans); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; margin: 0 0 10px; }
.aside-box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.aside-box li a { display: block; padding: 6px 0; color: var(--ink); text-decoration: none; font-weight: 550; }
.aside-box li a:hover { color: var(--sage); }

.app-card { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; }
.app-card img { width: 56px; height: 56px; border-radius: 13px; }
.app-card p { margin: 0; font-size: .95rem; color: var(--ink-2); }
.app-card a { font-weight: 650; }

/* Cards and grids */
.section { margin: 56px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.card {
  display: block; text-decoration: none; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 18px 18px 16px;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--sage-2); transform: translateY(-2px); }
.card h3 { font-family: var(--serif); font-size: 1.25rem; font-weight: 520; margin: 10px 0 4px; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--ink-2); font-size: .95rem; line-height: 1.5; }
.card .tag { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.card svg { width: 44px; height: 44px; }

.hero { padding: 26px 0 8px; display: grid; gap: 28px; align-items: center; }
@media (min-width: 980px) { .hero { grid-template-columns: 1.05fr .95fr; gap: 48px; padding-top: 44px; } }
.hero h1 { font-size: clamp(2.3rem, 5.6vw, 3.6rem); }
.hero .guide { margin: 0; }

.band { background: var(--paper-2); border-radius: 26px; padding: 26px 22px; }
@media (min-width: 720px) { .band { padding: 34px 36px; } }

/* Embed code */
.embed-code {
  width: 100%; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .82rem;
  background: var(--paper); color: var(--ink-2); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 12px; resize: none; height: 5.4em;
}

/* Footer */
.site-foot { border-top: 1px solid var(--line); margin-top: 72px; padding: 32px 0 40px; color: var(--ink-3); font-size: .92rem; }
.foot-cols { display: grid; gap: 22px 32px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.foot-col h2 { font-family: var(--sans); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; margin: 0 0 8px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.foot-col a { color: var(--ink-2); text-decoration: none; }
.foot-col a:hover { color: var(--ink); text-decoration: underline; }
.foot-base { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 16px; display: grid; gap: 6px; }
.foot-base p { margin: 0; }
.foot-help { color: var(--ink-2); }

/* Embed page */
.embed-body { background: var(--card); }
.embed-main { padding: 8px 0 4px; }
.embed-body .guide { border: 0; box-shadow: none; margin: 0 auto; max-width: 720px; }
.embed-brand { text-align: center; font-size: .85rem; margin: 2px 0 10px; }
.embed-brand a { color: var(--ink-3); }

/* Printable cards */
.card-page { background: #fff; color: #1d2124; }
.print-card { max-width: 720px; margin: 24px auto; padding: 36px 40px; border: 1px solid #ddd; border-radius: 18px; }
.print-card h1 { font-size: 2.4rem; margin: 0 0 6px; color: #1d2124; }
.print-card .lede { color: #4a5056; }
.print-card ol { font-size: 1.15rem; line-height: 1.6; padding-left: 1.4em; }
.print-card .card-art { width: 220px; margin: 10px auto 18px; }
.print-card .card-art svg { width: 100%; height: auto; }
.print-card .card-art .v-track-strong { stroke: #b9b2a4; }
.print-card .card-art .v-active, .print-card .card-art .v-progress { stroke: #3e6c5c; }
.print-card .card-art .v-dot { fill: #3e6c5c; }
.print-card .card-art .v-orb { fill: #dde9e2; stroke: #5e8c7b; }
.print-tip { text-align: center; color: #6b7177; font-size: .95rem; }
.print-tip button { font: inherit; }
@media print {
  @page { size: A4 portrait; margin: 14mm; }
  .print-tip { display: none; }
  .print-card { border: 0; margin: 0; padding: 0; max-width: none; }
  body.print-kit > *:not(.kit-print) { display: none !important; }
  body.print-kit { background: #fff; color: #1d2124; }
  body.print-kit .kit-print { display: block; font-family: var(--sans); }
  .kit-print h1 { font-family: var(--serif); font-size: 26pt; font-weight: 520; margin: 0 0 14pt; }
  .kit-print h2 { font-size: 13pt; margin: 14pt 0 4pt; text-transform: uppercase; letter-spacing: .06em; }
  .kit-print ul { margin: 0; padding-left: 16pt; font-size: 13pt; line-height: 1.6; }
}


/* Cards, lists and small pieces */
.card-icon { width: 44px; height: 44px; fill: none; stroke: var(--sage); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.card-icon .fill { fill: var(--sage); stroke: none; }
.card-icon .fill-soft { fill: var(--sage-soft); }
.card-icon .dash { stroke-dasharray: 3 3; }
.help-strip { max-width: 720px; margin: -24px 0 36px; font-size: .92rem; color: var(--ink-2); background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--sage); border-radius: 0 12px 12px 0; padding: 10px 14px; }
.tech-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.tech-list li { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; margin: 0; }
.table { width: 100%; border-collapse: collapse; margin: 6px 0 20px; font-size: .97rem; }
.table th, .table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.table td:first-child { font-weight: 650; white-space: nowrap; padding-right: 16px; }
.copy-row { display: flex; align-items: center; gap: 14px; margin: 8px 0 20px; }
.btn-quiet { width: 120px; height: 40px; font-size: .92rem; background: var(--paper-2); color: var(--ink); }
.btn-quiet:hover { background: var(--line); }
.prose-solo { max-width: var(--text); }
.prose h3 + ul { margin-top: 4px; }
.aside-box li a[href^="/cards/"] { color: var(--sage); }

/* Printable card pages */
.print-parts { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); margin-top: 10px; }
.print-part { text-align: center; }
.print-part .card-art { width: 150px; margin: 0 auto 6px; }
.print-part h2 { font-family: var(--serif); font-size: 1.3rem; margin: 4px 0 6px; color: #1d2124; }
.print-part ol { text-align: left; font-size: 1rem !important; padding-left: 1.2em; }
.print-cols { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.print-cols h2 { font-family: var(--serif); font-size: 1.35rem; margin: 6px 0 8px; color: #1d2124; }
.print-cols ul { padding-left: 1.1em; margin: 0; font-size: .95rem; line-height: 1.5; }
.print-cols li { margin: 0 0 8px; }
.print-senses { list-style: none; padding: 0 !important; display: grid; gap: 14px; font-size: 1.6rem !important; }
.print-num { display: inline-block; width: 1.6em; font-family: var(--serif); font-size: 2.6rem; color: #3e6c5c; vertical-align: middle; }
.print-foot { font-size: 1.05rem; margin-top: 12px; }
.card-page .table td { color: #1d2124; }
@media (max-width: 720px) { .print-parts, .print-cols { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  .card:hover { transform: none; }
}

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