/* Korea No Filter
   Palette: cool paper, celadon (Korean green-glaze pottery), ink, and a dojang seal red
   used only for verdict stamps. Type: Schibsted Grotesk for UI and headings,
   Literata for long reading. */

@font-face { font-family: "Schibsted Grotesk"; src: url("/fonts/schibsted.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Literata"; src: url("/fonts/literata.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Tiny subset: only the Hangul on stamps and the logo seal. */
@font-face { font-family: "KNF Seal"; src: url("/fonts/notokr-900-sub.woff2") format("woff2"); font-weight: 900; font-display: swap; }

:root {
  --paper: #FAFBF9;
  --surface: #EEF4F1;
  --celadon: #D5E5DD;
  --green: #22594D;
  --green-hover: #17443A;
  --ink: #16202A;
  --muted: #55636A;
  --line: #CCDAD3;
  --seal: #BF262D;
  --focus: #1D6FD8;
  --ui: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --read: "Literata", Georgia, "Times New Roman", serif;
  --ko: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --wrap: 1120px;
  --tabbar-h: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #111917;
    --surface: #18231F;
    --celadon: #22322D;
    --green: #8CCBB8;
    --green-hover: #ABDCCD;
    --ink: #E6EDE9;
    --muted: #9AABA4;
    --line: #2D3F39;
    --seal: #EE5A5F;
    --focus: #7FB2FF;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--ui); line-height: 1.15; margin: 0; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: 1.45rem; font-weight: 700; }
p { margin: 0 0 1em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* Buttons and chips */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border: 0; border-radius: 10px;
  background: var(--green); color: var(--paper);
  font: 600 1rem/1 var(--ui); text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--green-hover); color: var(--paper); }
.btn-quiet { background: transparent; color: var(--green); box-shadow: inset 0 0 0 1.5px var(--green); }
.btn-quiet:hover { background: var(--surface); color: var(--green-hover); }
.btn-big { min-height: 52px; padding: 0 26px; font-size: 1.05rem; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--green); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
  color: var(--ink); font: 500 0.9rem/1 var(--ui); cursor: pointer;
}
.chip svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.chip:hover { border-color: var(--green); }
.chip[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--paper); }
.chip[aria-pressed="true"] svg { fill: currentColor; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-in { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; height: 60px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-seal { width: 34px; height: 34px; color: var(--seal); transform: rotate(-4deg); }
.brand-name { font-weight: 800; font-size: 1.08rem; letter-spacing: -0.02em; }
.mainnav { display: flex; gap: 4px; margin-right: auto; }
.mainnav a { padding: 8px 12px; border-radius: 8px; color: var(--muted); font-weight: 500; text-decoration: none; }
.mainnav a:hover { color: var(--ink); background: var(--surface); }
.mainnav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--green); border-radius: 0; }
.topbar-actions { display: flex; gap: 4px; }
.iconbtn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; color: var(--ink); }
.iconbtn:hover { background: var(--surface); color: var(--ink); }
.iconbtn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* Reading progress */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 30; pointer-events: none; }
.progress span { display: block; height: 100%; width: 0; background: var(--green); }

/* Bottom tab bar (phones) */
.tabbar { display: none; }
.sheet { display: none; }
@media (max-width: 820px) {
  body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
  .mainnav, .hide-sm { display: none; }
  .topbar-in { height: 54px; justify-content: space-between; }
  .tabbar {
    position: fixed; z-index: 25; left: 0; right: 0; bottom: 0;
    display: grid; grid-template-columns: repeat(5, 1fr);
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--paper); border-top: 1px solid var(--line);
  }
  .tabbar a, .tabbar button {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    background: none; border: 0; color: var(--muted); font: 500 0.72rem/1 var(--ui); text-decoration: none; cursor: pointer;
  }
  .tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
  .tabbar [aria-current="page"] { color: var(--green); }
  .tabbar [aria-current="page"] svg { stroke-width: 2.3; }
  .sheet[open] {
    display: block; position: fixed; inset: auto 0 0 0; margin: 0; width: 100%; max-width: none; max-height: 85vh; overflow: auto;
    border: 0; border-radius: 18px 18px 0 0; padding: 10px 20px calc(20px + env(safe-area-inset-bottom));
    background: var(--paper); color: var(--ink); box-shadow: 0 -10px 40px rgba(10, 20, 18, 0.18);
  }
  .sheet::backdrop { background: rgba(10, 20, 18, 0.4); }
  .sheet-grip { width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 0 auto 14px; }
  .sheet-h { font-weight: 700; font-size: 1.2rem; margin-bottom: 8px; }
  .sheet-list { list-style: none; padding: 0; margin: 0 0 14px; }
  .sheet-list a { display: block; padding: 14px 2px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
  .sheet-list strong { display: block; font-size: 1.05rem; }
  .sheet-list span { display: block; color: var(--muted); font-size: 0.92rem; margin-top: 2px; }
  .sheet-close { width: 100%; }
}

/* Home hero */
.hero { padding: 56px 0 48px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.hero-grid > *, .twocol > * { min-width: 0; }
.hero h1 { max-width: 12ch; }
.hero-sub { font-size: 1.15rem; color: var(--muted); max-width: 46ch; margin: 18px 0 28px; }
.ask {
  display: flex; align-items: center; gap: 10px; max-width: 620px;
  padding: 6px 6px 6px 16px; border: 2px solid var(--ink); border-radius: 14px; background: var(--paper);
}
.ask:focus-within { border-color: var(--green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 18%, transparent); }
.ask svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.ask input { flex: 1; min-width: 0; width: 100%; border: 0; outline: 0; background: none; color: var(--ink); font: 400 1.05rem/1.2 var(--ui); padding: 10px 0; }
.ask input::-webkit-search-cancel-button { display: none; }
.ask-try { margin: 26px 0 10px; color: var(--muted); font-size: 0.95rem; }
.asks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.asks a {
  display: inline-block; padding: 9px 14px; border-radius: 10px; background: var(--surface);
  color: var(--ink); text-decoration: none; font-weight: 500;
}
.asks a:hover { background: var(--celadon); color: var(--ink); }

/* Changed recently */
.changed { border-left: 3px solid var(--green); padding-left: 24px; }
.changed-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.changed-head h2 { font-size: 1.15rem; }
.changed-head a { font-size: 0.92rem; }
.changed-list { list-style: none; margin: 0; padding: 0; }
.changed-list li { padding: 14px 0; border-top: 1px solid var(--line); }
.changed-list li:first-child { border-top: 0; padding-top: 0; }
.changed-list time { font-size: 0.85rem; color: var(--muted); }
.changed-title { font-weight: 700; margin: 2px 0 4px; line-height: 1.3; }
.changed-title a { color: var(--ink); }
.changed-body { font-size: 0.95rem; color: var(--muted); margin: 0; }

/* Bands */
.band { padding: 56px 0; }
.band-plain { background: var(--surface); }
.band-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.band-head a { font-weight: 500; }

/* Tools */
.toolgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.toolgrid-full { grid-template-columns: repeat(2, 1fr); }
.toolcard {
  display: flex; flex-direction: column; height: 100%; gap: 10px; padding: 22px;
  border-radius: 14px; background: var(--paper); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none;
}
.band-plain .toolcard { background: var(--paper); }
.toolcard:hover { border-color: var(--green); color: var(--ink); }
.toolcard-q { font-size: 1.2rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
.toolcard-d { color: var(--muted); font-size: 0.95rem; flex: 1; }
.toolcard-cta { color: var(--green); font-weight: 600; }

/* Article rows */
.rows { list-style: none; margin: 0; padding: 0; }
.row + .row { border-top: 1px solid var(--line); }
.row-link { display: flex; gap: 18px; align-items: flex-start; padding: 18px 0; color: var(--ink); text-decoration: none; }
.row-link:hover .row-title { color: var(--green); }
.row-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.row-title { font-size: 1.15rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.row-dek { color: var(--muted); }
.row-meta { color: var(--muted); font-size: 0.85rem; display: flex; align-items: center; gap: 8px; }
.sep { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: 0.6; }
.row-tool { flex: none; padding: 4px 8px; border-radius: 6px; background: var(--celadon); color: var(--green); font-size: 0.8rem; font-weight: 600; margin-top: 3px; }

/* Stamp */
.stamp { display: inline-block; flex: none; color: var(--seal); }
.stamp svg { width: 100%; height: 100%; }
.stamp-lg { width: 112px; height: 112px; transform: rotate(-9deg); }
.stamp-sm { width: 54px; height: 54px; transform: rotate(-7deg); }
@media (prefers-reduced-motion: no-preference) {
  .answer-verdict .stamp-lg { animation: thunk 420ms cubic-bezier(.2, 1.6, .4, 1) 200ms both; }
  @keyframes thunk { from { transform: rotate(-9deg) scale(1.6); opacity: 0; } to { transform: rotate(-9deg) scale(1); opacity: 1; } }
}

.twocol { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.how h2 { margin-bottom: 18px; font-size: 1.15rem; }
.verdict-key { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.verdict-key li { display: flex; gap: 14px; align-items: center; }
.note { color: var(--muted); font-size: 0.95rem; margin-top: 14px; }

/* Topics */
.topics { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; }
.topics a { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 20px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.topics a:hover .topic-name { color: var(--green); }
.topic-name { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.015em; }
.topic-count { color: var(--muted); font-size: 0.88rem; align-self: center; text-align: right; }
.topic-blurb { grid-column: 1 / -1; color: var(--muted); }

.whois { max-width: 760px; }
.whois h2 { margin-bottom: 14px; }
.whois p { font-family: var(--read); font-size: 1.12rem; line-height: 1.7; }

/* Page heads */
.page-head { padding-top: 40px; padding-bottom: 28px; }
.page-head .dek, .art-head .dek { font-size: 1.2rem; color: var(--muted); max-width: 60ch; margin: 14px 0 0; }
.crumbs { display: flex; gap: 8px; font-size: 0.9rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }

/* Article */
.art-head { padding-top: 40px; max-width: 880px; margin-left: auto; margin-right: auto; }
.art-head h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3rem); }
.art-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 20px; color: var(--muted); font-size: 0.93rem; }
.checked { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-weight: 600; }
.checked svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.art-actions { display: inline-flex; gap: 8px; margin-left: auto; }

.answer { max-width: 880px; margin-top: 28px; }
.answer-card {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px;
  padding: 26px 28px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
}
.answer-verdict { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding-right: 28px; border-right: 1px solid var(--line); }
.verdict-line { font-weight: 600; font-size: 0.98rem; line-height: 1.4; margin: 0; }
.answer-h { font-size: 1.05rem; margin-bottom: 10px; }
.answer-body ul { margin: 0; padding-left: 1.1em; }
.answer-body li { margin: 0 0 8px; }
.answer-body li::marker { color: var(--green); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 16px 0 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.facts div { padding: 14px 16px; border-left: 1px solid var(--line); }
.facts div:first-child { border-left: 0; }
.facts dt { font-size: 0.82rem; color: var(--muted); margin-bottom: 4px; }
.facts dd { margin: 0; font-weight: 600; line-height: 1.35; font-size: 0.95rem; }

.art-grid { display: grid; grid-template-columns: 220px minmax(0, 680px); gap: 48px; justify-content: center; margin-top: 44px; }
.toc { position: sticky; top: 84px; align-self: start; font-size: 0.92rem; }
.toc summary { font-weight: 700; cursor: pointer; margin-bottom: 8px; list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--ink); }
.toc a.active { color: var(--ink); border-left-color: var(--green); font-weight: 600; }

.prose { font-family: var(--read); font-size: 1.12rem; line-height: 1.72; min-width: 0; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-family: var(--ui); font-size: 1.55rem; margin: 2.2em 0 0.6em; }
.prose h3 { font-family: var(--ui); font-size: 1.2rem; margin: 1.8em 0 0.5em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.15em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--green); }
.prose strong { font-weight: 600; }
.prose a { color: var(--green); }
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--line); border-radius: 12px; }
.prose table { width: 100%; border-collapse: collapse; font-family: var(--ui); font-size: 0.95rem; line-height: 1.4; min-width: 560px; }
.prose th, .prose td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose thead th { background: var(--surface); font-weight: 700; }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose tbody td:first-child { font-weight: 600; }
.prose-page { max-width: 680px; }

.faq { margin-top: 2.6em; }
.faq h2 { margin-top: 0; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 32px 16px 0; position: relative;
  font-family: var(--ui); font-weight: 600; font-size: 1.05rem; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 22px; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 26px; }
.faq details p { margin: 0 0 18px; }

.trail { margin-top: 2.6em; padding: 22px 24px; border-radius: 14px; background: var(--surface); font-family: var(--ui); font-size: 0.95rem; line-height: 1.5; }
.trail h2 { font-size: 1.1rem; margin: 0 0 12px; }
.trail-sub { font-weight: 700; margin: 14px 0 6px; }
.log, .sources { margin: 0; padding-left: 1.2em; }
.log { list-style: none; padding: 0; }
.log time { font-weight: 600; margin-right: 6px; }
.sources li { margin-bottom: 6px; }
.sources span { color: var(--muted); }
.report { margin: 16px 0 0; }

.related { max-width: 880px; margin: 56px auto 0; }
.related h2 { margin-bottom: 6px; }

/* Ads */
.ad { max-width: 728px; margin: 32px auto; padding: 0 20px; }
.ad-label { font-size: 0.75rem; color: var(--muted); margin: 0 0 4px; }

/* Tool pages */
.tool-checked { margin: 10px 0 0; color: var(--green); font-weight: 600; font-size: 0.93rem; }
.tool-body { max-width: 800px; margin-left: auto; margin-right: auto; }
.quiz fieldset { border: 0; padding: 0; margin: 0 0 30px; }
.quiz legend { font-weight: 700; font-size: 1.15rem; margin-bottom: 12px; padding: 0; }
.hint { color: var(--muted); margin: -6px 0 12px; font-size: 0.95rem; }
.opts { display: flex; flex-wrap: wrap; gap: 10px; }
.opts-stack { flex-direction: column; align-items: stretch; }
.opts label { position: relative; cursor: pointer; }
.opts input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opts span {
  display: flex; align-items: center; min-height: 48px; padding: 10px 18px;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); font-weight: 500;
}
.opts label:hover span { border-color: var(--green); }
.opts input:checked + span { border-color: var(--green); background: var(--celadon); box-shadow: inset 0 0 0 1px var(--green); }
.opts input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.form-error { color: var(--seal); font-weight: 600; margin-top: 12px; }

.result { margin-top: 36px; padding: 26px 28px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); scroll-margin-top: 80px; }
.result-k { color: var(--muted); font-size: 0.92rem; margin: 0 0 4px; }
.result-pick { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 10px; }
.result-why { font-size: 1.05rem; }
.result-math { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0; }
.result-math div { padding: 14px 16px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
.result-math dt { font-size: 0.88rem; color: var(--muted); }
.result-math dd { margin: 4px 0 0; font-size: 1.3rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.result-notes { padding-left: 1.2em; margin: 0 0 16px; }
.result-notes li { margin-bottom: 8px; }
.result-more { display: flex; gap: 20px; flex-wrap: wrap; margin: 0; }
.hood + .hood { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.hood-st { color: var(--muted); font-size: 0.93rem; }
.tool-foot { color: var(--muted); font-size: 0.92rem; margin-top: 34px; max-width: 70ch; }

.checklist section { margin-bottom: 30px; }
.checklist h2 { font-size: 1.2rem; margin-bottom: 8px; }
.checklist ul { list-style: none; margin: 0; padding: 0; }
.checklist li { border-top: 1px solid var(--line); }
.checklist label { display: flex; gap: 14px; padding: 14px 0; cursor: pointer; align-items: flex-start; }
.checklist input { flex: none; width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--green); cursor: pointer; }
.checklist input:checked + span { color: var(--muted); }
.checklist input:checked + span strong { text-decoration: line-through; text-decoration-color: var(--green); text-decoration-thickness: 2px; }
.cl-progress {
  position: sticky; top: 60px; z-index: 5; display: flex; align-items: center; gap: 14px;
  padding: 12px 0; margin-bottom: 18px; background: var(--paper); border-bottom: 1px solid var(--line);
}
.cl-count { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cl-bar { flex: 1; height: 8px; border-radius: 8px; background: var(--celadon); overflow: hidden; }
.cl-bar span { display: block; height: 100%; width: 0; background: var(--green); transition: width 0.25s; }

.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.tabs button { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); font: 500 0.95rem/1 var(--ui); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.phrase-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.phrase {
  width: 100%; height: 100%; text-align: left; display: flex; flex-direction: column; gap: 6px; padding: 18px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--paper); color: var(--ink); cursor: pointer; font: inherit;
}
.phrase:hover { border-color: var(--green); }
.ph-en { font-weight: 600; }
.ph-ko { font-family: var(--ko); font-weight: 700; font-size: 1.35rem; line-height: 1.35; }
.ph-note { color: var(--muted); font-size: 0.88rem; }
.showcard[open] {
  width: min(92vw, 720px); max-width: none; border: 0; border-radius: 20px; padding: 36px 28px 24px;
  background: var(--paper); color: var(--ink); text-align: center;
}
.showcard::backdrop { background: rgba(10, 20, 18, 0.55); }
.showcard-ko { font-family: var(--ko); font-weight: 900; font-size: clamp(2rem, 8vw, 3.6rem); line-height: 1.25; margin: 0 0 14px; word-break: keep-all; }
.showcard-en { color: var(--muted); font-size: 1.05rem; margin-bottom: 24px; }
.showcard .btn { width: 100%; }

/* Search / saved / empty */
.search-status { color: var(--muted); margin: 16px 0 0; }
.empty { padding: 28px; border: 1.5px dashed var(--line); border-radius: 16px; }
.empty-h { font-weight: 700; font-size: 1.15rem; }
.empty-links { padding-left: 1.2em; margin: 18px 0 0; }
.empty-links li { margin-bottom: 6px; }
mark { background: var(--celadon); color: inherit; border-radius: 3px; padding: 0 2px; }

.changes-full { list-style: none; margin: 0; padding: 0; font-family: var(--ui); }
.changes-full li { padding: 22px 0; border-top: 1px solid var(--line); }
.changes-full time { color: var(--muted); font-size: 0.9rem; }
.changes-full h2 { font-size: 1.3rem; margin: 4px 0 8px; }
.changes-links { display: flex; gap: 18px; margin: 0; }

/* Footer */
.footer { margin-top: 80px; border-top: 1px solid var(--line); background: var(--surface); font-size: 0.95rem; }
.footer-in { max-width: var(--wrap); margin: 0 auto; padding: 44px 20px 36px; display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
.footer-name { font-weight: 800; font-size: 1.1rem; margin-bottom: 6px; }
.footer-brand p:last-child { color: var(--muted); }
.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-h { font-weight: 700; margin-bottom: 8px; }
.footer-nav a { display: block; color: var(--muted); text-decoration: none; padding: 4px 0; }
.footer-nav a:hover { color: var(--ink); text-decoration: underline; }
.footer-fine { grid-column: 1 / -1; color: var(--muted); font-size: 0.85rem; margin: 0; padding-top: 20px; border-top: 1px solid var(--line); }

/* Responsive */
@media (max-width: 1020px) {
  .toolgrid { grid-template-columns: repeat(2, 1fr); }
  .art-grid { grid-template-columns: minmax(0, 680px); }
  .toc { position: static; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
  .toc summary { margin: 0; }
  .toc details[open] summary { margin-bottom: 8px; }
}
@media (max-width: 820px) {
  body { font-size: 16.5px; }
  .hero { padding: 32px 0 36px; }
  .hero-grid, .twocol { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .changed { border-left: 0; padding-left: 0; border-top: 3px solid var(--green); padding-top: 20px; }
  .band { padding: 40px 0; }
  .topics { grid-template-columns: 1fr; }
  .answer-card { grid-template-columns: 1fr; gap: 18px; padding: 20px; }
  .answer-verdict { flex-direction: row; text-align: left; padding: 0 0 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .stamp-lg { width: 92px; height: 92px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(3) { border-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .art-actions { margin-left: 0; }
  .prose { font-size: 1.08rem; }
  .footer { margin-top: 56px; }
  .footer-in { grid-template-columns: 1fr; }
  .phrase-list { grid-template-columns: 1fr; }
  .cl-progress { top: 54px; }
}
@media (max-width: 520px) {
  .wrap, .topbar-in { padding-left: 16px; padding-right: 16px; }
  .toolgrid, .toolgrid-full { grid-template-columns: 1fr; }
  .ask { padding-left: 12px; }
  .ask .btn { padding: 0 14px; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
  .result { padding: 20px; }
  .result-math { grid-template-columns: 1fr; }
  .row-link { gap: 14px; }
  .stamp-sm { width: 46px; height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .topbar, .tabbar, .footer, .art-actions, .ad, .progress, .toc { display: none !important; }
}
.aff-note { max-width: 880px; margin-top: 18px; color: var(--muted); font-size: 0.88rem; }

/* Photos */
.photo { margin: 1.6em 0 1.8em; }
.photo img { width: 100%; height: auto; border-radius: 12px; background: var(--surface); }
.photo figcaption { font-family: var(--ui); font-size: 0.9rem; line-height: 1.45; color: var(--muted); margin-top: 8px; }
.photo .credit { display: block; font-size: 0.78rem; margin-top: 2px; }
.photo .credit a { color: var(--muted); }
.row-meta { flex-wrap: wrap; }
.row-meta > * { white-space: nowrap; }

/* Inline verdict tags inside guides */
.vtag { display: inline-flex; align-items: baseline; gap: 4px; padding: 1px 8px; border: 1.5px solid currentColor; border-radius: 999px; font-family: var(--ui); font-size: 0.78rem; font-weight: 700; line-height: 1.5; white-space: nowrap; vertical-align: 0.1em; }
.vtag [lang="ko"] { font-family: "KNF Seal", var(--ko); font-weight: 900; }
.vtag-worth { color: var(--seal); background: color-mix(in srgb, var(--seal) 8%, transparent); }
.vtag-depends { color: var(--muted); }
.vtag-skip { color: var(--ink); background: var(--surface); text-decoration: none; }
.prose h3 .vtag { margin-left: 8px; font-size: 0.72rem; }

/* List rows: fixed media column so every title starts at the same x */
.row-text { flex: 1 1 auto; }
.row-media { position: relative; flex: 0 0 152px; width: 152px; height: 96px; margin-top: 3px; }
.row-media .row-thumb { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; background: var(--surface); }
.row-media .stamp-sm { position: absolute; right: -10px; bottom: -12px; width: 50px; height: 50px; background: var(--paper); border-radius: 50%; box-shadow: 0 0 0 3px var(--paper); }
.band-plain .row-media .stamp-sm { background: var(--surface); box-shadow: 0 0 0 3px var(--surface); }
.row-media-stamp { display: grid; place-items: center; background: var(--surface); border-radius: 10px; }
.row-media-stamp .stamp-sm { position: static; width: 64px; height: 64px; box-shadow: none; background: none; }
@media (max-width: 520px) {
  .row-media { flex-basis: 104px; width: 104px; height: 72px; }
  .row-media .stamp-sm { width: 40px; height: 40px; right: -8px; bottom: -10px; }
  .row-dek { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}
@media (max-width: 520px) { .row-meta .sep, .row-meta span:last-child { display: none; } }

.answer-card.has-verdict { grid-template-columns: 200px minmax(0, 1fr); }
@media (max-width: 820px) { .answer-card.has-verdict { grid-template-columns: 1fr; } }
.art-hero { max-width: 880px; margin-top: 24px; }
.art-hero .photo { margin: 0; }
.art-hero .photo img { aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; }

.tool-page .page-head { max-width: 800px; margin-left: auto; margin-right: auto; }
.tool-page .related { max-width: 800px; }

/* QA pass, Oct 2026: shared column widths */
.art-head, .answer, .art-hero, .related { max-width: 988px; }
.plain-page .page-head, .plain-page main > .wrap { max-width: 840px; }
.plain-page .prose-page { max-width: none; }
.prose .rows, .prose .row { font-family: var(--ui); }
.band-head { flex-wrap: wrap; row-gap: 6px; }
.band-head a { white-space: nowrap; }
.empty-links a, .changes-full a { display: inline-block; padding: 4px 0; }
