/* Kumustahan 2.0 — subpages (deck hub, deck pages, how to play, Tagalog,
   about), loaded after v2.css and built on its tokens and pieces (.shell,
   .kicker, .lede, .btn, .store, .kcard, .cover, .faq-list, .footer).
   Pages are generated by tools/site-pages.mjs.
   Mobile-first: base rules are phones; wider layouts in
   @media (min-width: 600px) / (min-width: 861px) / (min-width: 1180px).
   Cards and deck covers are objects (fixed pigments, like the app). A card
   flip keeps the parent flat and each face carries its own transform; faces
   never get overflow: hidden (CLAUDE.md). */

:root {
  --front-rgb: 251, 246, 234;
  --depth-1: #E4A951;
  --depth-2: #C75B3E;
  --depth-3: #7A3426;
}

/* ----------------------------------------------------- font fallbacks */
/* Fraunces and Manrope arrive from Google Fonts after first paint (display=swap).
   Without these, the hero title re-wraps when Fraunces lands and pushes the page
   down (CLS 0.49 on the printable page, 2026-10-14). Each fallback is the system
   face scaled to the web font's measured width at that element's own settings
   (fitted 2026-10-14 by matching line breaks on every subpage at three phone widths: titles 86% = same wrap 95% of the time, headings 88% = 99.8%), so lines wrap the same way.
   Re-measure with Playwright if the title or heading type changes. */
@font-face { font-family: "Fraunces Title Fallback"; src: local("Georgia"); size-adjust: 86%; }
@font-face { font-family: "Fraunces Heading Fallback"; src: local("Georgia"); size-adjust: 88%; }
@font-face { font-family: "Manrope Fallback"; src: local("Arial"); size-adjust: 102.7%; }
@font-face { font-family: "Fraunces Card Fallback"; src: local("Georgia"); size-adjust: 84.1%; }
.p-title { font-family: "Fraunces", "Fraunces Title Fallback", Georgia, serif; }
.p-h2 { font-family: "Fraunces", "Fraunces Heading Fallback", Georgia, serif; }
.p-card .k-q, .p-card .k-b { font-family: "Fraunces", "Fraunces Card Fallback", Georgia, serif; }
body { font-family: "Manrope", "Manrope Fallback", system-ui, -apple-system, "Segoe UI", sans-serif; }

/* ------------------------------------------------------------------ nav */

.p-nav .menu-btn { margin-left: auto; }
.p-nav .brand { display: inline-flex; align-items: center; min-height: 44px; }
.nav-links a[aria-current="page"],
.nav-links a.is-section { background: rgba(var(--ink-rgb), 0.07); }
.menu nav a[aria-current="page"] { color: var(--terracotta); }
/* Without JS the menu can't open: show the one action instead (links live in the footer). */
html:not(.js) .p-nav .menu-btn { display: none; }
html:not(.js) .p-nav .nav-get { display: inline-flex; align-items: center; min-height: 44px; margin-left: auto; padding: 0 16px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 700; text-decoration: none; }

/* -------------------------------------------------------------- shared */

[data-deck="getting"] { --accent: var(--terracotta); }
[data-deck="fun"] { --accent: var(--sun); }
[data-deck="reflect"] { --accent: var(--sage); }
[data-deck="faith"] { --accent: var(--dusk); }
[data-deck="couples"] { --accent: var(--rose); }
[data-deck="friends"] { --accent: var(--violet); }
[data-deck="icebreakers"] { --accent: var(--mint); }

/* Positioned, so each section paints over the hero's glow in page order
   (the glow may fall past the hero onto paper sections, never onto a
   section with its own background). */
.p-section, .p-faq, .p-download { position: relative; }
.p-section { padding: 72px 0; scroll-margin-top: var(--nav-h); }
.p-h2 { font-size: clamp(32px, 8.6vw, 60px); line-height: 1.04; }
.p-section-head { max-width: 48em; margin-bottom: 26px; }
.p-section-head .lede, .p-section > .shell > .lede { margin-top: 14px; }
.p-split { display: grid; gap: 34px; }
.p-split > * { min-width: 0; }
.p-narrow > * { max-width: 780px; }
.p-more { margin-top: 26px; font-size: 15px; color: var(--muted); }
.p-more .text-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); }
.lede a, .p-prose a, .p-prose-section a, .p-list a, .faq-a a, .tl-deck-head p a { font-weight: 700; text-underline-offset: 3px; }
[data-tone="day"] .lede a, .p-prose a, .p-prose-section a { color: var(--ink); }

/* Depth dots: one, two or three filled. */
.q-depth i, .depth-nav i { position: relative; flex: none; width: 22px; height: 6px; }
.q-depth i::before, .depth-nav i::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--depth-2);
  box-shadow: 8px 0 0 rgba(var(--ink-rgb), 0.16), 16px 0 0 rgba(var(--ink-rgb), 0.16);
}
.q-depth i.d2::before, .depth-nav i.d2::before { box-shadow: 8px 0 0 var(--depth-2), 16px 0 0 rgba(var(--ink-rgb), 0.16); }
.q-depth i.d3::before, .depth-nav i.d3::before { box-shadow: 8px 0 0 var(--depth-2), 16px 0 0 var(--depth-2); }
.q-depth {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(var(--ink-rgb), 0.18);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ----------------------------------------------------------------- hero */

.p-hero {
  position: relative;
  overflow-x: clip;
  overflow-y: visible;
  isolation: isolate;
  padding: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 6px) 0 32px;
}
.p-hero .hero-light { opacity: 0.85; }
.p-hero-grid { display: grid; gap: 44px; }
.p-hero-copy { min-width: 0; }
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 0 4px;
  padding: 0;
  list-style: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.crumbs li + li::before { content: "/"; margin: 0 8px; opacity: 0.5; }
.crumbs a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; text-decoration: none; }
.crumbs [aria-current] { color: var(--ink-soft); }
@media (hover: hover) and (pointer: fine) { .crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; } }
.p-title {
  margin-top: 4px;
  max-width: 13em;
  font-size: clamp(40px, 11.4vw, 86px);
  line-height: 0.99;
  letter-spacing: -0.035em;
  font-weight: 520;
}
.p-title em { color: var(--terracotta); font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; }
.p-hero .lede { font-size: 18px; }
.p-stamps { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.p-stamps .stamp { margin: 0; background: rgba(var(--front-rgb), 0.6); }
.p-stamps .stamp b { font-family: var(--display); font-size: 18px; font-weight: 600; color: var(--ink); }
.p-hero .stores { margin-top: 24px; }
.p-def { margin-top: 20px; max-width: 36em; font-size: 14px; line-height: 1.5; color: var(--muted); }
.p-hero-short { padding-bottom: 40px; }

/* Depth mix: a bar and a legend. */
.p-mix { margin-top: 16px; max-width: 30em; }
.p-mix-bar { display: flex; gap: 3px; height: 8px; border-radius: 99px; overflow: hidden; }
.p-mix-bar i { display: block; height: 100%; }
.p-mix-bar .d1, .p-mix-legend .d1 { background: var(--depth-1); }
.p-mix-bar .d2, .p-mix-legend .d2 { background: var(--depth-2); }
.p-mix-bar .d3, .p-mix-legend .d3 { background: var(--depth-3); }
.p-mix-legend { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 8px 0 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.p-mix-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.p-mix-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.p-mix-legend b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* The table: Salo peeks over a small pile (v2.css .hero-stage). */
.p-stage { justify-self: center; width: 100%; }
.p-stage .hero-salo { cursor: default; pointer-events: none; }

/* Cards: both languages on the face; the page's language leads. */
.p-card .k-body { display: grid; gap: 3.4cqi; margin: auto 0; padding: 5cqi 0; }
.p-card .k-body .k-q, .p-card .k-body .k-b { margin: 0; padding: 0; }
.p-card .k-q { font-size: clamp(16px, 7.4cqi, 27px); }
.p-card .k-b { font-size: clamp(14px, 5.8cqi, 20px); }
/* Small print on cards and covers stays ≥ 12px on these pages. */
.p-card .k-kicker, .p-card .k-hint { font-size: clamp(12px, 3.8cqi, 13px); }
.p-card .k-no { font-size: clamp(12px, 4.6cqi, 16px); }
.deck-cover .cover-line { font-size: clamp(12px, 5.6cqi, 14px); }
.store small { font-size: 12px; }
.k-alt { margin: 0; font-family: var(--ui); font-size: clamp(12px, 4.4cqi, 15px); line-height: 1.4; color: #5A4E40; }
/* The hidden face swaps visibility when the bounce spring crosses 90° (about
   120ms of its 865ms), not at v2.css's 280ms, so a WebKit that ignores
   backface-visibility never shows a mirrored face mid-turn. */
.p-card:not(.is-driven) .kface { transition: transform var(--bounce-ms) var(--spring-bounce), visibility 0s linear 120ms; }
/* No JS: both faces, one under the other, nothing to tap. */
html:not(.js) .kcard[data-flip] { aspect-ratio: auto; display: grid; gap: 12px; cursor: default; }
html:not(.js) .kcard[data-flip] .kface { position: relative; inset: auto; transform: none; visibility: visible; }
html:not(.js) .kcard[data-flip] .k-hint, html:not(.js) .p-stage-bubble { visibility: hidden; }
html:not(.js) .table-deck { aspect-ratio: auto; }
html:not(.js) .table-deck .pile { display: none; }
html:not(.js) .table-deck .kcard { position: relative; inset: auto; }

/* ------------------------------------------------------- question lists */

.depth-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.depth-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: rgba(var(--front-rgb), 0.6);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.2s ease;
}
.depth-nav a b { color: var(--muted); font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) { .depth-nav a:hover { border-color: rgba(var(--ink-rgb), 0.32); } }
.q-group { margin-top: 40px; scroll-margin-top: calc(var(--nav-h) + 12px); }
.q-group-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding-bottom: 12px; border-bottom: 1.5px solid var(--ink); }
.q-count { margin: 0; font-size: 13px; font-weight: 700; color: var(--muted); }
.q-list { margin: 0; padding: 0; list-style: none; }
.q {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 0 10px;
  padding: 18px 0 14px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--nav-h) + 12px);
}
.q:target { background: linear-gradient(90deg, rgba(var(--front-rgb), 0.9), rgba(var(--front-rgb), 0)); }
.q-no { padding-top: 5px; font-family: var(--display); font-style: italic; font-size: 15px; color: var(--accent-ink, var(--terracotta)); font-variant-numeric: tabular-nums; }
.q-text { min-width: 0; }
.q-main { font-family: var(--display); font-size: 20px; line-height: 1.3; font-weight: 500; letter-spacing: -0.01em; font-variation-settings: "opsz" 48, "SOFT" 20; color: var(--ink); }
.q-alt { margin-top: 6px; font-size: 15.5px; line-height: 1.45; color: var(--ink-soft); }
.q-back { margin-top: 4px; }
.q-back summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--muted);
  list-style: none;
  cursor: pointer;
}
.q-back summary::-webkit-details-marker { display: none; }
.q-back summary::before {
  content: "";
  flex: none;
  width: 13px;
  height: 17px;
  border-radius: 3px;
  border: 1.5px solid currentColor;
  background: repeating-linear-gradient(45deg, rgba(var(--ink-rgb), 0.12) 0 1.5px, transparent 1.5px 4px);
}
.q-back summary::after {
  content: "";
  width: 7px;
  height: 7px;
  margin: -3px 0 0 2px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.3s var(--spring-snap);
}
.q-back[open] summary { color: var(--ink); }
.q-back[open] summary::after { transform: translateY(3px) rotate(225deg); }
@media (hover: hover) and (pointer: fine) { .q-back summary:hover { color: var(--ink); } }
.q-back-body { margin: 2px 0 8px; padding: 2px 0 2px 14px; border-left: 2px solid var(--accent, var(--terracotta)); }
.q-back-body p { font-family: var(--display); font-style: italic; font-size: 17px; line-height: 1.45; color: var(--ink-soft); }
.q-back-body p + p { margin-top: 8px; font-family: var(--ui); font-style: normal; font-size: 15px; color: var(--muted); }

/* --------------------------------------------------------- about a deck */

.p-about-deck, .p-prose-section.is-alt, .tl-deck.is-alt { background: var(--back); }
.p-big { margin-top: 18px; max-width: 30em; font-family: var(--display); font-size: clamp(20px, 5.4vw, 26px); line-height: 1.42; font-weight: 420; font-variation-settings: "opsz" 48, "SOFT" 40; }
.p-setup { margin-top: 20px; max-width: 34em; font-size: 16px; color: var(--ink-soft); }
.p-setup b { display: block; margin-bottom: 4px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.p-checks { align-self: start; display: grid; margin: 0; padding: 0; list-style: none; }
.p-checks li { position: relative; padding: 14px 0 14px 32px; border-top: 1px solid rgba(var(--ink-rgb), 0.14); font-size: 16px; line-height: 1.5; }
.p-checks li:last-child { border-bottom: 1px solid rgba(var(--ink-rgb), 0.14); }
.p-checks li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 19px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--accent-ink, var(--terracotta));
  border-bottom: 2px solid var(--accent-ink, var(--terracotta));
  transform: rotate(-45deg);
}

/* ---------------------------------------------------------- prose + boxes */

.p-prose p:not(.kicker), .p-prose-section p:not(.kicker, .p-more) { max-width: 38em; font-size: 17px; line-height: 1.65; color: var(--ink-soft); }
.p-prose .p-h2 + p, .p-prose p + p:not(.kicker), .p-prose-section .p-h2 + p, .p-prose-section p + p { margin-top: 16px; }
.p-side { display: grid; gap: 14px; align-content: start; }
.p-box { padding: 22px; border-radius: 22px; background: var(--front); border: 1px solid var(--line); }
.p-box h3 { margin-bottom: 14px; font-size: 21px; }
.p-tags, .p-tips { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.p-tags li { position: relative; padding-left: 18px; font-size: 15.5px; line-height: 1.45; }
.p-tags li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent, var(--terracotta)); }
.p-tips { counter-reset: tip; gap: 12px; }
.p-tips li { position: relative; padding-left: 32px; font-size: 15.5px; line-height: 1.5; counter-increment: tip; }
.p-tips li::before { content: counter(tip, decimal-leading-zero); position: absolute; left: 0; top: 1px; font-family: var(--display); font-style: italic; font-size: 15px; color: var(--accent-ink, var(--terracotta)); }
.p-list { display: grid; margin: 22px 0 0; padding: 0; list-style: none; }
.p-list li { position: relative; padding: 14px 0 14px 24px; border-top: 1px solid rgba(var(--ink-rgb), 0.14); font-size: 16.5px; line-height: 1.55; color: var(--ink-soft); }
.p-list li:last-child { border-bottom: 1px solid rgba(var(--ink-rgb), 0.14); }
.p-list li::before { content: ""; position: absolute; left: 3px; top: 24px; width: 7px; height: 7px; border-radius: 50%; background: var(--terracotta); }
.p-list b { color: var(--ink); }

/* ----------------------------------------------------------------- depth */

.depth-cards { display: grid; gap: 12px; margin: 30px 0 0; padding: 0; list-style: none; }
.depth-card { display: grid; gap: 14px; align-content: start; justify-items: start; padding: 22px; border-radius: 22px; background: var(--front); border: 1px solid var(--line); }
.depth-text { font-family: var(--display); font-size: 19px; line-height: 1.38; }
.depth-n { font-size: 13px; font-weight: 700; color: var(--muted); }

/* ------------------------------------------------------------------- faq */

.p-faq { padding-top: 96px; padding-bottom: 96px; }
.p-faq h2 { font-size: clamp(34px, 8.4vw, 58px); }

/* --------------------------------------------------------- deck covers */

.deck-cover { position: relative; display: block; width: 100%; aspect-ratio: 5 / 7; container-type: inline-size; }
.deck-cover .cover { position: absolute; inset: 0; border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.deck-cover .cover-top, .deck-cover .cover-title, .deck-cover .cover-line { display: block; }
.deck-cover .cover-top { display: flex; }
.deck-cover .cover-title { font-family: var(--display); font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0; text-wrap: balance; }
/* Small covers (hub tiles, Tagalog sections): the symbol and the title. */
.deck-cover .cover-sym { flex: none; }
@container (max-width: 150px) {
  .deck-cover .cover { padding: 10cqi 10cqi 11cqi; }
  .deck-cover .cover-top span, .deck-cover .cover-line { display: none; }
  .deck-cover .cover-top { justify-content: flex-end; }
  .deck-cover .cover-sym { width: 26cqi; height: 26cqi; margin-bottom: 8cqi; }
  .deck-cover .cover-title { font-size: 15.5cqi; }
}
.cover-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; margin: 28px 0 0; padding: 0; list-style: none; }
.cover-link { display: grid; gap: 10px; text-decoration: none; }
.cover-link .cover { transition: transform 0.4s var(--spring-snap), box-shadow 0.3s ease; }
.cover-link-desc { font-size: 14px; line-height: 1.45; color: var(--ink-soft); }
@media (hover: hover) and (pointer: fine) { .cover-link:hover .cover { transform: translateY(-5px); } }

/* ------------------------------------------------------------- deck hub */

.p-section.p-hub { padding-top: 16px; }
.deck-tiles { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.deck-tile {
  position: relative;
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 16px;
  border-radius: 26px;
  background: var(--front);
  border: 1px solid var(--line);
  transition: border-color 0.2s ease;
}
.deck-tile-body { min-width: 0; }
.deck-tile-name { font-size: 25px; line-height: 1.06; }
.deck-tile-link { text-decoration: none; outline: none; }
.deck-tile-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.deck-tile:focus-within { outline: 2.5px solid var(--terracotta); outline-offset: 3px; }
.deck-tile-desc { margin-top: 6px; font-size: 15px; line-height: 1.45; color: var(--ink-soft); }
.deck-tile-count { margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.deck-tile-count b { color: var(--ink); }
.deck-tile .p-mix { margin-top: 10px; }
.deck-tile-cta { display: inline-flex; margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--accent-ink, var(--ink)); }
@media (hover: hover) and (pointer: fine) { .deck-tile:hover { border-color: rgba(var(--ink-rgb), 0.3); } }

/* ---------------------------------------------------------- how to play */

.p-tldr { align-self: center; max-width: 34em; padding: 26px; border-radius: 26px; background: var(--front); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.p-tldr .kicker { margin-bottom: 10px; }
.p-tldr-text { font-family: var(--display); font-size: clamp(19px, 5.4vw, 25px); line-height: 1.4; font-weight: 420; font-variation-settings: "opsz" 48, "SOFT" 40; }
.p-steps { padding: 90px 0; }
.p-steps-grid { display: grid; gap: 44px; }
.p-steps-grid > * { min-width: 0; }
.p-step-list { display: grid; gap: 22px; margin: 30px 0 0; padding: 0; list-style: none; }
.p-step { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 6px 12px; padding-top: 20px; border-top: 1px solid var(--gabi-line); scroll-margin-top: calc(var(--nav-h) + 12px); }
.p-step .step-no { grid-row: span 2; padding-top: 4px; }
.p-step h3 { font-size: clamp(24px, 6vw, 32px); }
.p-step p { max-width: 32em; font-size: 17px; color: var(--gabi-soft); }
.p-steps .p-steps-shot { display: block; justify-self: center; margin-top: 0; }

.sample-grid { display: grid; gap: 34px; justify-items: center; margin: 30px 0 0; padding: 0; list-style: none; }
.sample { display: grid; gap: 12px; justify-items: center; width: 100%; }
.sample .kcard { --w: min(84vw, 320px); }
.sample-deck { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 700; color: var(--accent-ink, var(--ink)); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .sample-deck:hover { text-decoration: underline; text-underline-offset: 3px; } }

/* -------------------------------------------------------------- tagalog */

.tl-jump { margin-top: 26px; }
.tl-deck-head .deck-cover { width: 92px; margin-bottom: 20px; }
.tl-en-name { display: block; margin-top: 8px; font-family: var(--ui); font-size: 13px; font-weight: 700; letter-spacing: 0.14em; line-height: 1.3; text-transform: uppercase; color: var(--muted); }
.tl-deck-head p { margin-top: 14px; max-width: 32em; font-size: 17px; line-height: 1.6; color: var(--ink-soft); }
.tl-deck-head .text-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; }
.tl-list { border-top: 1.5px solid var(--ink); }

/* ----------------------------------------------------------------- about */

.p-about-salo { justify-self: center; width: min(46vw, 220px); aspect-ratio: 420 / 430; }
.p-about-salo .salo-still { width: 100%; height: 100%; }
.p-factsheet { display: grid; margin: 28px 0 0; border-top: 1.5px solid var(--ink); }
.p-factsheet > div { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.p-factsheet dt { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.p-factsheet dd { margin: 0; font-size: 16.5px; line-height: 1.5; }
.p-factsheet a { font-weight: 700; text-underline-offset: 3px; }
.press-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.press-item { display: grid; gap: 4px; height: 100%; padding: 10px 10px 14px; border-radius: 18px; background: var(--front); border: 1px solid var(--line); text-decoration: none; }
.press-thumb { display: grid; place-items: center; aspect-ratio: 4 / 3; margin-bottom: 6px; border-radius: 12px; background: rgba(var(--ink-rgb), 0.06); overflow: hidden; }
.press-thumb img { width: 100%; height: 100%; object-fit: contain; }
.press-label { font-size: 15px; font-weight: 700; }
.press-meta { font-size: 13px; color: var(--muted); }

/* -------------------------------------------------------------- download */

.p-download { position: relative; overflow: clip; isolation: isolate; padding: 100px 0 110px; text-align: center; }
.p-download-glow {
  position: absolute;
  left: -30%;
  right: -30%;
  bottom: -70%;
  height: 130%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(233, 165, 124, 0.36), rgba(122, 94, 124, 0.2) 52%, rgba(21, 18, 15, 0) 76%);
  pointer-events: none;
}
.p-download-inner { display: grid; justify-items: center; }
.p-download-salo { position: relative; width: clamp(120px, 32vw, 170px); aspect-ratio: 420 / 430; margin-bottom: 16px; }
.p-download-salo .salo-still { width: 100%; height: 100%; }
.p-download-bubble { top: -30%; left: 38%; font-size: 15px; white-space: nowrap; }
.p-download h2 { max-width: 12em; font-size: clamp(38px, 10vw, 80px); }
.p-download-sub { margin-top: 16px; max-width: 30em; font-size: 17px; color: var(--gabi-soft); }
.p-download .stores { margin-top: 26px; justify-content: center; }

/* ============================================================ ≥ 600 */

@media (min-width: 600px) {
  .cover-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .deck-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sample-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .sample .kcard { --w: min(100%, 320px); }
  .depth-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .p-factsheet > div { grid-template-columns: 190px minmax(0, 1fr); gap: 20px; }
  .press-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ============================================================ ≥ 861 */

@media (min-width: 861px) {
  .p-section { padding: 110px 0; }
  .p-hero { padding-bottom: 40px; }
  .p-hero-short { padding-bottom: 50px; }
  .p-hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: center; gap: 60px; }
  .p-title { font-size: clamp(52px, 5.8vw, 78px); }
  .p-split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 70px; align-items: start; }
  .p-section-head { margin-bottom: 34px; }

  .q-group { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 0 56px; align-items: start; margin-top: 56px; }
  .q-group-head { position: sticky; top: calc(var(--nav-h) + 24px); flex-direction: column; align-items: flex-start; padding: 18px 0 0; border-bottom: 0; }
  .q-group .q-list { border-top: 1.5px solid var(--ink); }
  .q { grid-template-columns: 44px minmax(0, 1fr); padding: 22px 0 16px; }
  .q-main { font-size: 23px; }
  .q-text { max-width: 46em; }

  .cover-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
  .deck-tile { grid-template-columns: 140px minmax(0, 1fr); gap: 22px; padding: 20px; }
  .deck-tile-name { font-size: 28px; }

  .p-steps { padding: 120px 0; }
  .p-steps-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 80px; align-items: start; }
  .p-steps .p-steps-shot { width: 320px; position: sticky; top: calc(var(--nav-h) + 30px); }
  .sample-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }

  .tl-deck .p-split { grid-template-columns: 300px minmax(0, 1fr); gap: 64px; }
  .tl-deck-head { position: sticky; top: calc(var(--nav-h) + 24px); }

  .p-about-salo { width: 260px; }
  .p-faq { padding-top: 120px; padding-bottom: 120px; }
  .p-download { padding: 130px 0 140px; }
}

@media (min-width: 1180px) {
  .deck-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .deck-tile { grid-template-columns: 120px minmax(0, 1fr); }
}

/* ================================================== reduced motion */

@media (prefers-reduced-motion: reduce) {
  .p-card:not(.is-driven) .kface { transition: opacity 0.3s ease; }
  .nav { transition: color 0.35s ease, background-color 0.35s ease; }
  .nav.is-hidden { transform: none; }
  .cover-link .cover { transition: none; }
  .cover-link:hover .cover { transform: none; }
  .q-back summary::after { transition: none; }
}

/* ---------------------------------------------- topics (questions/*) */

.q-group-title { font-family: var(--display); font-size: 21px; line-height: 1.15; font-weight: 600; text-wrap: balance; }
.q-group-note { flex-basis: 100%; margin-top: 4px; font-size: 14px; line-height: 1.45; color: var(--ink-soft); }
.q-group-head:has(.q-group-title) { flex-wrap: wrap; row-gap: 2px; }
.topic-links { display: grid; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.topic-link {
  display: grid;
  gap: 4px;
  min-height: 44px;
  padding: 16px 18px;
  border-radius: 20px;
  background: var(--front);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.2s ease, transform 0.3s var(--spring-snap);
}
.topic-link b { font-family: var(--display); font-size: 20px; line-height: 1.15; font-weight: 600; }
.topic-link span { font-size: 14px; line-height: 1.45; color: var(--ink-soft); }
@media (hover: hover) and (pointer: fine) { .topic-link:hover { border-color: rgba(var(--ink-rgb), 0.3); transform: translateY(-2px); } }
.p-box .topic-links { margin-top: 12px; }
.p-box .topic-link { background: transparent; }
.topic-group.is-alt { background: var(--card-back, rgba(var(--ink-rgb), 0.04)); }
.p-deck-links { display: grid; gap: 4px; margin: 10px 0 0; padding: 0; list-style: none; }
.p-deck-links a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; color: var(--ink); text-underline-offset: 3px; }
.p-deck-links i { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); flex: none; }

/* Comparison tables: scroll sideways inside their own box on phones. */
.p-table-wrap { margin-top: 22px; overflow-x: auto; border: 1px solid var(--line); border-radius: 20px; background: var(--front); -webkit-overflow-scrolling: touch; }
.p-table-wrap:focus-visible { outline: 2.5px solid var(--terracotta); outline-offset: 3px; }
.p-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.p-table caption { padding: 14px 16px 0; text-align: left; font-size: 13px; font-weight: 700; color: var(--muted); }
.p-table th, .p-table td { padding: 12px 16px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.p-table thead th { border-top: 0; font-size: 13px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.p-table tbody th { font-weight: 700; color: var(--ink); }
.p-table td { color: var(--ink-soft); }

/* Printable deck */
.print-actions { margin-top: 22px; }
.print-actions .btn { min-height: 48px; }
.pc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.pc {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 250px;
  padding: 18px;
  border-radius: 18px;
  background: var(--front);
  border: 1px solid var(--line);
  border-top: 6px solid var(--accent);
  break-inside: avoid;
}
.pc-top { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.pc-q { font-family: var(--display); font-size: 21px; line-height: 1.2; color: var(--ink); text-wrap: pretty; }
.pc-tl { font-size: 14px; line-height: 1.45; color: var(--ink-soft); font-style: italic; }
.pc-mark { margin-top: auto; font-size: 11px; font-weight: 700; color: var(--muted); }

@media (min-width: 600px) {
  .topic-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-box .topic-links { grid-template-columns: 1fr; }
}
@media (min-width: 1180px) {
  .topic-group .topic-links, .p-related .topic-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media print {
  @page { size: auto; margin: 10mm; }
  body { background: #fff !important; }
  body::before, .p-nav, .menu, .skip-link, .no-print, .p-download, .footer, .crumbs { display: none !important; }
  .print-sheet { padding: 0 !important; }
  .print-sheet .shell { max-width: none; padding: 0; }
  .pc-grid { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .pc { min-height: 0; height: 62mm; border-radius: 0; border: 1px dashed #999; border-top: 4mm solid var(--accent); background: #fff; padding: 5mm; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .pc-q { font-size: 15pt; color: #1F1B16; }
  .pc-tl { font-size: 10.5pt; color: #4a4239; }
  .pc-top, .pc-mark { font-size: 7.5pt; color: #6d6458; }
}
