/* Rice Purity Tester: playful pastel design system.
 * Cream paper, ink outlines, sticker shadows, rounded display type. */

@font-face { font-family: "Fredoka"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("/assets/fonts/fredoka.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/assets/fonts/nunito.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/nunito-italic.woff2") format("woff2"); }

:root {
  --bg: #fff8ef;
  --paper: #ffffff;
  --ink: #2b2340;
  --ink-muted: #4f4766;
  --ink-faint: #665e7c;
  --line: #ecdfcd;
  --line-strong: #2b2340;
  --pink: #ff8fb1;
  --pink-soft: #ffe1ea;
  --mint: #6fd6b1;
  --mint-soft: #d9f6ea;
  --lav: #b6a3ff;
  --lav-soft: #ece6ff;
  --butter: #ffd36b;
  --butter-soft: #fff1c9;
  --peach: #ffb08a;
  --peach-soft: #ffe6d9;
  --link: #6b3fd4;
  --display: "Fredoka", "Avenir Next Rounded", "Arial Rounded MT Bold", system-ui, sans-serif;
  --sans: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --maxw: 72rem;
  --radius: 18px;
  --sticker: 3px 3px 0 var(--ink);
  --sticker-lg: 5px 5px 0 var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(circle at 1px 1px, rgba(43, 35, 64, 0.07) 1px, transparent 0);
  background-size: 22px 22px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.18; color: var(--ink); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); margin: 0 0 1rem; }
h2, h3 { scroll-margin-top: 5.5rem; }
h2 { font-size: clamp(1.55rem, 3.6vw, 2.2rem); margin: 3rem 0 1rem; }
h3 { font-size: clamp(1.2rem, 2.6vw, 1.45rem); margin: 2rem 0 0.7rem; }
h4 { font-size: 1.1rem; margin: 1.4rem 0 0.4rem; }
p { margin: 0 0 1.15rem; }
p, li { color: var(--ink-muted); }
strong, b { color: var(--ink); }
a { color: var(--link); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: rgba(107, 63, 212, 0.3); }
a:hover { text-decoration-color: var(--link); }
ul, ol { padding-left: 1.4rem; margin: 0 0 1.15rem; }
li { margin-bottom: 0.45rem; }
blockquote { margin: 1.5rem 0; padding: 1rem 1.25rem; background: var(--lav-soft); border-left: 5px solid var(--lav); border-radius: 0 12px 12px 0; font-style: italic; }
blockquote p:last-child { margin: 0; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1rem; }
.wrap-narrow { max-width: 48rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .wrap, .wrap-narrow { padding: 0 1.5rem; } }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 0.5rem 1rem; z-index: 99; }
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 248, 239, 0.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 2px solid var(--ink); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--display); font-weight: 700; font-size: 1.2rem; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand svg { flex: 0 0 auto; }
.brand .tld { color: var(--ink-faint); font-weight: 500; }
.site-nav { display: flex; align-items: center; gap: 0.35rem; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 0.95rem; padding: 0.45rem 0.8rem; border-radius: 999px; border: 2px solid transparent; }
.site-nav a:hover { background: var(--butter-soft); }
.site-nav a[aria-current="page"] { border-color: var(--ink); background: var(--butter); }
.nav-toggle { display: none; font: 700 0.95rem var(--sans); color: var(--ink); background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; padding: 0.5rem 1rem; min-height: 44px; box-shadow: var(--sticker); cursor: pointer; }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 2px solid var(--ink); padding: 0.5rem 1rem 1rem; }
  .site-nav.open { display: flex; }
  .site-nav a { border-radius: 12px; padding: 0.8rem 0.9rem; }
}

/* ---------- buttons & chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; font: 700 1.05rem var(--display); letter-spacing: 0.01em; color: var(--ink); background: var(--pink); border: 2.5px solid var(--ink); border-radius: 999px; padding: 0.85rem 1.6rem; min-height: 48px; box-shadow: var(--sticker); cursor: pointer; text-decoration: none; transition: transform 0.12s ease, box-shadow 0.12s ease; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); color: var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-lg { font-size: 1.2rem; padding: 1rem 2.2rem; min-height: 56px; }
.btn-ghost { background: var(--paper); }
.btn-mint { background: var(--mint); }
.btn-butter { background: var(--butter); }
.btn-lav { background: var(--lav); }
.btn-sm { font-size: 0.92rem; padding: 0.55rem 1rem; min-height: 44px; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; list-style: none; padding: 0; margin: 1.25rem 0 0; }
.chips li { margin: 0; font-weight: 700; font-size: 0.88rem; color: var(--ink); background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; padding: 0.3rem 0.8rem; }
.chips li:nth-child(4n+1) { background: var(--mint-soft); }
.chips li:nth-child(4n+2) { background: var(--pink-soft); }
.chips li:nth-child(4n+3) { background: var(--butter-soft); }
.chips li:nth-child(4n+4) { background: var(--lav-soft); }

/* ---------- hero ---------- */
.hero { text-align: center; padding: 2.5rem 0 1.5rem; }
.hero .kicker { display: inline-block; font: 700 0.85rem var(--sans); letter-spacing: 0.06em; text-transform: uppercase; background: var(--lav-soft); border: 2px solid var(--ink); border-radius: 999px; padding: 0.25rem 0.9rem; margin-bottom: 1rem; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--butter) 62%); padding: 0 0.15em; }
.hero .lede { font-size: 1.15rem; max-width: 40rem; margin: 0 auto; }
.mascot { display: block; margin: 0 auto 0.5rem; width: 92px; height: 92px; animation: bob 3.2s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-6px) rotate(4deg); } }
@media (prefers-reduced-motion: reduce) { .mascot, .score-badge { animation: none !important; } html { scroll-behavior: auto; } }
.age-note { font-size: 0.9rem; color: var(--ink-faint); margin-top: 1rem; }

/* ---------- test ---------- */
.test-card { background: var(--paper); border: 2.5px solid var(--ink); border-radius: 24px; box-shadow: var(--sticker-lg); padding: 1.25rem 0.9rem 1.5rem; margin: 1.5rem auto 2rem; max-width: 50rem; }
@media (min-width: 640px) { .test-card { padding: 1.75rem 1.75rem 2rem; } }
.test-instructions { text-align: center; font-weight: 600; color: var(--ink-muted); margin: 0 0 1rem; }
.test-bar { position: sticky; top: 4.15rem; z-index: 20; display: flex; align-items: center; gap: 0.8rem; background: var(--butter-soft); border: 2px solid var(--ink); border-radius: 999px; padding: 0.45rem 0.6rem 0.45rem 1rem; margin: 0 0 1.25rem; box-shadow: var(--sticker); }
.test-bar .live { font: 700 0.95rem var(--display); white-space: nowrap; }
.test-bar .live b { font-size: 1.2rem; }
.test-bar .track { flex: 1; height: 12px; background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; }
.test-bar .fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--mint), var(--lav), var(--pink)); transition: width 0.25s ease; }
.test-bar .count { font-size: 0.85rem; font-weight: 700; color: var(--ink-muted); white-space: nowrap; }
.q-group { border: 0; padding: 0; margin: 0 0 1.5rem; min-width: 0; }
.q-group legend { display: flex; align-items: center; gap: 0.5rem; width: 100%; font: 600 1.15rem var(--display); color: var(--ink); padding: 0 0 0.6rem; }
.q-group legend .n { margin-left: auto; font: 700 0.8rem var(--sans); color: var(--ink-faint); background: var(--bg); border: 1.5px solid var(--line); border-radius: 999px; padding: 0.1rem 0.6rem; }
.q-list { list-style: none; padding: 0; margin: 0; }
.q-list li { margin: 0 0 0.4rem; }
.q-item { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.7rem 0.75rem; min-height: 48px; border: 2px solid var(--line); border-radius: 14px; background: var(--paper); cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease; -webkit-tap-highlight-color: transparent; }
.q-item:hover { border-color: var(--ink-faint); }
.q-item input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.q-item .box { flex: 0 0 auto; width: 26px; height: 26px; margin-top: 1px; border: 2.5px solid var(--ink); border-radius: 8px; background: var(--paper); display: grid; place-items: center; transition: background 0.15s ease, transform 0.15s ease; }
.q-item .box svg { width: 16px; height: 16px; opacity: 0; transform: scale(0.4); transition: all 0.15s ease; }
.q-item input:checked + .box { background: var(--pink); transform: rotate(-6deg); }
.q-item input:checked + .box svg { opacity: 1; transform: scale(1); }
.q-item input:focus-visible + .box { outline: 3px solid var(--link); outline-offset: 2px; }
.q-item:has(input:checked) { background: var(--pink-soft); border-color: var(--pink); }
.q-item .num { flex: 0 0 auto; min-width: 1.9rem; font: 700 0.85rem var(--display); color: var(--ink-faint); margin-top: 3px; }
.q-item .txt { flex: 1; color: var(--ink); font-weight: 600; line-height: 1.45; }
.q-item .hint-btn { flex: 0 0 auto; position: relative; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--ink-faint); background: var(--paper); color: var(--ink-muted); font: 700 0.85rem var(--display); cursor: pointer; padding: 0; }
.q-item .hint-btn::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; }
.q-item .hint-btn[aria-expanded="true"] { background: var(--lav); color: var(--ink); border-color: var(--ink); }
.q-hint { display: block; margin: 0.35rem 0 0 0; font-size: 0.9rem; font-weight: 500; color: var(--ink-muted); background: var(--lav-soft); border-radius: 10px; padding: 0.45rem 0.7rem; }
.q-hint[hidden] { display: none; }
.test-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 1.5rem; }
.privacy-line { text-align: center; font-size: 0.9rem; color: var(--ink-faint); margin: 1rem 0 0; }
.privacy-line b { color: var(--ink-muted); }
.test-card.computing .btn-lg { animation: wiggle 0.5s ease-in-out infinite; }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-2deg); } 75% { transform: rotate(2deg); } }

/* ---------- results ---------- */
#results[hidden] { display: none; }
.result-card { background: var(--paper); border: 2.5px solid var(--ink); border-radius: 24px; box-shadow: var(--sticker-lg); padding: 1.75rem 1rem 1.5rem; margin: 0 auto 2rem; max-width: 50rem; text-align: center; }
@media (min-width: 640px) { .result-card { padding: 2.25rem 2rem 2rem; } }
.result-card .kicker { font: 700 0.85rem var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); margin: 0; }
.score-badge { width: 170px; height: 170px; margin: 0.75rem auto 0.9rem; border-radius: 50%; border: 3px solid var(--ink); background: var(--butter); box-shadow: var(--sticker-lg); display: grid; place-items: center; animation: pop 0.5s cubic-bezier(.2, 1.6, .5, 1) both; }
.score-badge b { font: 700 4.4rem/1 var(--display); color: var(--ink); }
.score-badge small { display: block; font: 700 0.85rem var(--sans); color: var(--ink-muted); margin-top: -0.2rem; }
@keyframes pop { from { transform: scale(0.3) rotate(-20deg); opacity: 0; } to { transform: scale(1) rotate(0); opacity: 1; } }
.band-name { font: 600 1.7rem var(--display); margin: 0 0 0.4rem; }
.band-blurb { max-width: 34rem; margin: 0 auto 1.25rem; }
.result-section { text-align: left; border-top: 2px dashed var(--line); padding-top: 1.25rem; margin-top: 1.25rem; }
.result-section h3 { margin: 0 0 0.75rem; font-size: 1.2rem; }
.cmp-row { display: grid; grid-template-columns: 7.5rem 1fr 2.6rem; align-items: center; gap: 0.6rem; margin: 0 0 0.55rem; font-size: 0.92rem; font-weight: 700; color: var(--ink-muted); }
.cmp-row .bar { height: 18px; background: var(--bg); border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; }
.cmp-row .bar span { display: block; height: 100%; background: var(--lav); border-right: 2px solid var(--ink); }
.cmp-row.you .bar span { background: var(--pink); }
.cmp-row .val { font: 700 1rem var(--display); color: var(--ink); text-align: right; }
.cmp-note { font-size: 0.85rem; color: var(--ink-faint); margin: 0.5rem 0 0; }
.cat-grid { display: grid; grid-template-columns: 1fr; gap: 0.5rem; }
@media (min-width: 640px) { .cat-grid { grid-template-columns: 1fr 1fr; gap: 0.6rem 1.25rem; } }
.cat-row { display: grid; grid-template-columns: 1.6rem 1fr auto; align-items: center; gap: 0.2rem 0.5rem; font-size: 0.92rem; }
.cat-row .lbl { font-weight: 700; color: var(--ink); }
.cat-row .lbl a { color: var(--ink); text-decoration-color: rgba(43, 35, 64, 0.25); }
.cat-row .pct { font: 700 0.95rem var(--display); }
.cat-row .bar { grid-column: 2 / 4; height: 10px; background: var(--bg); border: 1.5px solid var(--ink); border-radius: 999px; overflow: hidden; }
.cat-row .bar span { display: block; height: 100%; background: var(--mint); }
.result-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-top: 1.5rem; }
.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); background: var(--ink); color: #fff; font-weight: 700; padding: 0.7rem 1.2rem; border-radius: 999px; z-index: 60; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); }
.stats-optin { background: var(--mint-soft); border: 2px solid var(--ink); border-radius: 16px; padding: 1rem; text-align: left; }
.stats-optin p { margin: 0 0 0.75rem; font-size: 0.95rem; }
.stats-optin .row { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.stats-optin select, .field select, .field input { font: 600 1rem var(--sans); color: var(--ink); background: var(--paper); border: 2px solid var(--ink); border-radius: 12px; padding: 0.6rem 0.8rem; min-height: 46px; }
.result-links { font-size: 0.95rem; margin: 1.25rem 0 0; }

/* ---------- stats widget ---------- */
.stats-table td.num, .stats-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.stats-empty { font-style: italic; color: var(--ink-faint); }

/* ---------- couples ---------- */
.couple-card { background: var(--paper); border: 2.5px solid var(--ink); border-radius: 24px; box-shadow: var(--sticker-lg); padding: 1.5rem 1rem; margin: 1.5rem 0 2rem; }
@media (min-width: 640px) { .couple-card { padding: 1.75rem; } }
.couple-card h2 { margin-top: 0; font-size: 1.5rem; border: 0; }
.field { margin: 0 0 1rem; }
.field label { display: block; font-weight: 800; color: var(--ink); margin: 0 0 0.35rem; }
.field input { width: 100%; }
.couple-scores { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0.5rem; text-align: center; margin: 1rem 0; }
.couple-scores .who { font-weight: 800; color: var(--ink-muted); font-size: 0.9rem; }
.couple-scores .big { font: 700 3rem/1 var(--display); color: var(--ink); }
.couple-scores .heart { font-size: 2rem; }
.couple-lists { display: grid; gap: 1rem; }
@media (min-width: 720px) { .couple-lists { grid-template-columns: repeat(3, 1fr); } }
.couple-lists > div { background: var(--bg); border: 2px solid var(--line); border-radius: 14px; padding: 0.9rem; }
.couple-lists h3 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.couple-lists ul { margin: 0; padding-left: 1.1rem; font-size: 0.9rem; }

/* ---------- articles ---------- */
.article { padding: 0.5rem 0 2rem; }
.article > h2 { padding-bottom: 0.4rem; border-bottom: 3px solid var(--butter); display: block; }
.byline { display: flex; align-items: center; gap: 0.75rem; font-size: 0.9rem; color: var(--ink-faint); margin: 0 0 1.75rem; }
.byline .avatar { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font: 700 1.1rem var(--display); color: var(--ink); background: var(--mint); border: 2px solid var(--ink); }
.byline b { display: block; color: var(--ink); font-size: 0.98rem; }
.byline a { color: var(--ink-faint); }
.featured-img { margin: 0 0 2rem; }
.hero .featured-img { max-width: 44rem; margin: 1.25rem auto 0.5rem; }
.featured-img img { display: block; width: 100%; border: 2.5px solid var(--ink); border-radius: 20px; box-shadow: var(--sticker); }
.callout { background: var(--butter-soft); border: 2px solid var(--ink); border-radius: 16px; padding: 1rem 1.2rem; margin: 1.5rem 0; box-shadow: var(--sticker); }
.callout.mint { background: var(--mint-soft); }
.callout.pink { background: var(--pink-soft); }
.callout.lav { background: var(--lav-soft); }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout > strong:first-child { font-family: var(--display); font-size: 1.05rem; }
.table-scroll { overflow-x: auto; margin: 1.5rem 0; border: 2px solid var(--ink); border-radius: 16px; background: var(--paper); -webkit-overflow-scrolling: touch; }
.table-scroll table { margin: 0; min-width: 520px; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1.5px solid var(--line); vertical-align: top; }
th { font-family: var(--display); font-weight: 600; color: var(--ink); background: var(--lav-soft); }
td { color: var(--ink-muted); }
tbody tr:last-child td { border-bottom: 0; }
.table-credit { font-size: 0.82rem; font-style: italic; color: var(--ink-faint); margin: -0.75rem 0 1.5rem; }
.score-jump { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: flex-end; background: var(--lav-soft); border: 2px solid var(--ink); border-radius: 16px; padding: 1rem; margin: 1.5rem 0; }
.score-jump .field { margin: 0; flex: 1 1 10rem; }
.score-jump output { display: block; flex: 1 1 100%; font-weight: 600; color: var(--ink); }

/* ---------- toc & reading progress ---------- */
#read-progress { position: fixed; top: 0; left: 0; height: 4px; width: 0; z-index: 70; background: linear-gradient(90deg, var(--mint), var(--lav), var(--pink)); }
.toc { background: var(--paper); border: 2px solid var(--ink); border-radius: 16px; padding: 0.75rem 1.1rem; margin: 0 0 2rem; }
.toc summary { font: 600 1.05rem var(--display); cursor: pointer; min-height: 32px; }
.toc ol { margin: 0.6rem 0 0.25rem; }
.toc li { margin: 0 0 0.3rem; font-size: 0.95rem; }

/* ---------- FAQ ---------- */
.faq { margin-top: 3rem; }
.faq h2 { border-bottom: 3px solid var(--butter); padding-bottom: 0.4rem; }
.faq details { background: var(--paper); border: 2px solid var(--ink); border-radius: 16px; margin: 0 0 0.75rem; padding: 0 1.1rem; }
.faq details[open] { box-shadow: var(--sticker); }
.faq summary { list-style: none; cursor: pointer; font: 600 1.08rem var(--display); color: var(--ink); padding: 1rem 2rem 1rem 0; position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 0.85rem; width: 1.6rem; height: 1.6rem; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%; font-size: 1.1rem; background: var(--butter); line-height: 1; }
.faq details[open] summary::after { content: "−"; background: var(--pink); }
.faq .faq-a { padding: 0 0 1.1rem; }
.faq .faq-a p:last-child { margin-bottom: 0; }

/* ---------- hub grid, breadcrumbs, related ---------- */
.spoke-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin: 1.5rem 0 2.5rem; }
@media (min-width: 640px) { .spoke-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .spoke-grid { grid-template-columns: repeat(3, 1fr); } }
.spoke-card { display: block; background: var(--paper); border: 2.5px solid var(--ink); border-radius: 20px; padding: 1.2rem 1.25rem; text-decoration: none; box-shadow: var(--sticker); transition: transform 0.12s ease, box-shadow 0.12s ease; }
.spoke-card:hover { transform: translate(-2px, -2px); box-shadow: var(--sticker-lg); }
.spoke-card .emo { font-size: 1.6rem; display: block; margin-bottom: 0.3rem; }
.spoke-card h3 { margin: 0 0 0.35rem; font-size: 1.15rem; color: var(--ink); }
.spoke-card p { margin: 0; font-size: 0.93rem; color: var(--ink-muted); }
.spoke-card:nth-child(4n+1) { background: var(--mint-soft); }
.spoke-card:nth-child(4n+2) { background: var(--pink-soft); }
.spoke-card:nth-child(4n+3) { background: var(--butter-soft); }
.spoke-card:nth-child(4n+4) { background: var(--lav-soft); }
.breadcrumbs { font-size: 0.88rem; color: var(--ink-faint); padding-top: 1.25rem; }
.breadcrumbs a { color: var(--ink-faint); }
.related { background: var(--lav-soft); border: 2px solid var(--ink); border-radius: 20px; padding: 1.25rem 1.4rem; margin: 3rem 0 1rem; }
.related h2 { margin: 0 0 0.75rem; font-size: 1.3rem; border: 0; padding: 0; }
.related ul { list-style: none; padding: 0; margin: 0; }
.related li { padding: 0.45rem 0; border-bottom: 1.5px dashed rgba(43, 35, 64, 0.2); margin: 0; }
.related li:last-child { border: 0; }
.related li::before { content: "🍚 "; }
.cta-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; justify-content: space-between; background: var(--pink-soft); border: 2.5px solid var(--ink); border-radius: 20px; padding: 1.1rem 1.25rem; margin: 2rem 0; box-shadow: var(--sticker); }
.cta-inline p { margin: 0; flex: 1 1 16rem; color: var(--ink); font-weight: 600; }

/* ---------- footer ---------- */
.site-footer { margin-top: 3rem; background: var(--ink); color: #e9e4f5; padding: 2.5rem 0 1.5rem; }
.site-footer p, .site-footer li { color: #cfc8e2; }
.site-footer a { color: #fff; text-decoration-color: rgba(255, 255, 255, 0.35); }
.site-footer .footer-h { color: var(--butter); font-size: 1rem; line-height: 1.3; margin: 0 0 0.6rem; scroll-margin-top: 0; }
.footer-intro { max-width: 44rem; font-size: 0.95rem; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 1.5rem auto; }
@media (min-width: 820px) { .footer-cols { grid-template-columns: repeat(4, 1fr); } }
.footer-cols ul { list-style: none; padding: 0; margin: 0; }
.footer-cols li { font-size: 0.93rem; margin: 0 0 0.45rem; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; border-top: 1px solid rgba(255, 255, 255, 0.15); padding-top: 1rem; font-size: 0.85rem; color: #b9b1d0; }
.footer-bottom span { color: #b9b1d0; }

/* ---------- cookie banner ---------- */
#cookie-banner { position: fixed; left: 0.75rem; right: 0.75rem; bottom: 0.75rem; z-index: 80; display: flex; justify-content: center; }
#cookie-banner .cb-inner { max-width: 44rem; background: var(--paper); border: 2.5px solid var(--ink); border-radius: 20px; box-shadow: var(--sticker-lg); padding: 1rem 1.1rem; display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; }
#cookie-banner p { margin: 0; flex: 1 1 18rem; font-size: 0.9rem; color: var(--ink-muted); }
#cookie-banner .cb-actions { display: flex; gap: 0.5rem; }
@media (max-width: 600px) {
  #cookie-banner { left: 0.5rem; right: 0.5rem; bottom: 0.5rem; }
  #cookie-banner .cb-inner { padding: 0.75rem 0.85rem; gap: 0.5rem; box-shadow: var(--sticker); }
  #cookie-banner p { font-size: 0.8rem; line-height: 1.45; flex-basis: 100%; }
}

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 3rem 0; }
.notfound .big { font: 700 6rem/1 var(--display); }

/* ---------- print (the printable test) ---------- */
@media print {
  .site-header, .site-footer, .test-bar, .test-actions, .privacy-line, #results, .hint-btn, .related, .faq, #cookie-banner, #read-progress, .toc, .cta-inline, .no-print { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .test-card { box-shadow: none; border: 0; padding: 0; }
  .q-item { border: 0; padding: 0.15rem 0; min-height: 0; }
  .q-group { break-inside: avoid-page; }
}
