/* 하루 한국사 (obyeollab.com/history) — paper & ink (design pass 3). The OBL-P3 block below is the shared kit, copied byte for byte
   by kiip_prep/tools/pass3-kit/copy.js (do not edit it here). Service rules come after it. No gradients, motion on transform/opacity only. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; }
img, svg { max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* === OBL-P3:START v1 sha256:e7c67b5d4eb4c42d (design pass 3 kit; canonical kiip_prep/tools/pass3-kit/pass3.css; do not edit copies, run copy.js) === */
/* Design pass 3 kit, canonical source (docs/design-pass3-2026-10-31.md). tools/pass3-kit/copy.js puts this file, between the
   OBL-P3 markers it adds, into each site's main stylesheet; copies must stay byte-identical (each repo's tests check the hash).
   Everything is opt-in: tokens and Korean typesetting apply under .p3 (class on <html> or <body>), components are p3-* classes.
   No gradients and no @font-face here: Pretendard comes from https://obyeollab.com/fonts/pretendard/ through the boot script
   (font-boot.js, OBL-P3-FONTBOOT) with font-display: optional; the same script defines "Pretendard Fallback", the metric-adjusted
   system face that --font lists right after Pretendard (local() only, nothing to download). Motion only on transform/opacity. */

/* ---- tokens: paper and ink (AA: text 15.8 / 8.7 / 6.0 on the canvas; dark 15.8 / 10.1 / 7.2) ---- */
.p3 {
  --font: "Pretendard Variable", Pretendard, "Pretendard Fallback", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Segoe UI Variable Text", "Segoe UI", Roboto, "Noto Sans KR", "Noto Sans CJK KR", "Malgun Gothic", "Noto Sans", sans-serif;
  --c-bg: #f6f4ef; --c-surface: #fffdf8; --c-surface-2: #efece4; --c-surface-3: #e6e2d8;
  --c-line: #e2ddd2; --c-line-strong: #857e70;
  --c-text: #1c1a16; --c-text-2: #4a453c; --c-text-3: #625c50;
  --c-ok-soft: #e7f2e9; --c-bad-soft: #f9e8e8;
  --c-tint: #bfcbef;
  --sheet: 0 0 0 1px rgba(28, 26, 22, .06), 0 1px 2px rgba(28, 26, 22, .06);
  --r-sheet: 14px;
  --t-mid: 180ms;
}
@media (prefers-color-scheme: dark) {
  .p3 {
    --c-bg: #151412; --c-surface: #1e1c19; --c-surface-2: #25231f; --c-surface-3: #2f2c27;
    --c-line: #36332d; --c-line-strong: #7f796d;
    --c-text: #f1ede5; --c-text-2: #c6bfb2; --c-text-3: #a8a194;
    --c-ok-soft: #16301f; --c-bad-soft: #371a1d;
    --c-tint: #424963;
    --sheet: 0 0 0 1px var(--c-line);
  }
}
/* illustration tint per service: data-svc on any element (a tile, a section, <body>) */
[data-svc="brand"], [data-svc="tools"] { --c-tint: #bfcbef; } [data-svc="kiip"] { --c-tint: #bfcaeb; } [data-svc="topik"] { --c-tint: #cdc4ef; }
[data-svc="eps"] { --c-tint: #b6d2cc; } [data-svc="life"] { --c-tint: #edc0c5; } [data-svc="drive"] { --c-tint: #e4caae; }
[data-svc="kdrama"] { --c-tint: #dcbfde; } [data-svc="games"] { --c-tint: #edbece; } [data-svc="leadhive"] { --c-tint: #c9cced; }
@media (prefers-color-scheme: dark) {
  [data-svc="brand"], [data-svc="tools"] { --c-tint: #424963; } [data-svc="kiip"] { --c-tint: #414863; } [data-svc="topik"] { --c-tint: #4e4763; }
  [data-svc="eps"] { --c-tint: #335750; } [data-svc="life"] { --c-tint: #664145; } [data-svc="drive"] { --c-tint: #664d2e; }
  [data-svc="kdrama"] { --c-tint: #58455a; } [data-svc="games"] { --c-tint: #663e4c; } [data-svc="leadhive"] { --c-tint: #464863; }
}

/* ---- Korean typesetting: Hangul breaks between words only; a word longer than the line still breaks; scripts without spaces
   break as they need, but Korean inside them (lang="ko" or .p3-ko) keeps whole words. Headings balance, text wraps "pretty". ---- */
.p3 { word-break: keep-all; overflow-wrap: anywhere; }
html:is(:lang(zh), :lang(ja), :lang(th), :lang(km), :lang(my)).p3, html:is(:lang(zh), :lang(ja), :lang(th), :lang(km), :lang(my)) .p3 { word-break: normal; }
.p3 [lang="ko"], .p3 .p3-ko { word-break: keep-all; }
.p3 :is(h1, h2, h3) { text-wrap: balance; }
.p3 :is(p, li) { text-wrap: pretty; }

/* ---- spot illustrations: one hand. 64x64 grid, 2px ink line (thin 1.5, bold 3), round caps; one flat tint mass set 3px off ---- */
.p3-art { display: block; flex: none; width: 56px; height: 56px; overflow: visible; transition: transform var(--t-mid, 180ms) cubic-bezier(.2, 0, 0, 1); }
.p3-art .ink { fill: none; stroke: var(--c-text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.p3-art .ink.paper { fill: var(--c-surface); }
.p3-art .thin { stroke-width: 1.5; }
.p3-art .bold { stroke-width: 3; }
.p3-art .dots { stroke-width: 3.4; }
.p3-art .solid { fill: var(--c-text); }
.p3-art .tint { fill: var(--c-tint); }
:is(a, button):hover > .p3-art, :is(a, button):hover > .p3-art-wrap > .p3-art { transform: rotate(-4deg) scale(1.04); }

/* ---- surfaces: a sheet of paper, a printed rule over a section title, a printed box, a receipt ---- */
.p3-sheet { border-radius: var(--r-sheet); background: var(--c-surface); box-shadow: var(--sheet); }
.p3-rule { padding-top: 12px; border-top: 2px solid var(--c-text); letter-spacing: -.02em; }
.p3-rule--thin { border-top-width: 1px; }
.p3-print { border: 1px solid var(--c-text); border-radius: 2px; background: var(--c-surface); }
.p3-receipt { border-radius: 2px; background: var(--c-surface); box-shadow: var(--sheet); padding-bottom: 22px; font-variant-numeric: tabular-nums;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), 95% 100%, 90% calc(100% - 6px), 85% 100%, 80% calc(100% - 6px), 75% 100%, 70% calc(100% - 6px), 65% 100%, 60% calc(100% - 6px), 55% 100%, 50% calc(100% - 6px), 45% 100%, 40% calc(100% - 6px), 35% 100%, 30% calc(100% - 6px), 25% 100%, 20% calc(100% - 6px), 15% 100%, 10% calc(100% - 6px), 5% 100%, 0 calc(100% - 6px)); }
.p3-receipt__rule { border: 0; border-top: 1px dashed var(--c-line-strong); margin: 10px 0; }
.p3-press { transition: transform var(--t-fast, 120ms) cubic-bezier(.2, 0, 0, 1); -webkit-tap-highlight-color: transparent; }
.p3-press:not([disabled]):active { transform: scale(.985); }

/* ---- data bars: a square track and a fill scaled with transform: scaleX(share) (set by the page; no width animation) ---- */
.p3-bar__track { display: block; height: 8px; background: var(--c-surface-3); overflow: hidden; }
.p3-bar__fill { display: block; height: 100%; background: var(--c-tint); transform-origin: 0 50%; }
.p3-bar__fill--accent { background: var(--c-accent); }

/* ---- answer choices: an OMR bubble that fills when chosen; after grading the grader's hand circle round the right answer and an
   ink slash across a wrong pick (shape + colour + the page's hidden words, never colour alone). Put .p3-opt on the choice (the
   positioned box) and .p3-bubble on its number; states .is-chosen / .is-right / .is-wrong on .p3-opt. --p3-bubble-x = centre of
   the bubble from the choice's padding edge (default 25px). ---- */
.p3-opt { position: relative; }
.p3-opt .p3-bubble { position: relative; isolation: isolate; display: inline-grid; place-items: center; flex: none; width: 20px; height: 28px; padding: 0;
  border: 1.5px solid var(--c-text-2); border-radius: 50%; background: none; color: var(--c-text-2); font-size: .8125rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.p3-opt .p3-bubble::before { content: ""; position: absolute; inset: -1.5px; z-index: -1; border-radius: 50%; background: var(--p3-fill, var(--c-accent)); opacity: 0; }
.p3-opt.is-chosen .p3-bubble { --p3-fill: var(--c-accent); border-color: var(--c-accent); background: none; color: var(--c-on-accent, #fff); }
.p3-opt.is-right .p3-bubble { --p3-fill: var(--c-ok); border-color: var(--c-ok); background: none; color: var(--c-surface); }
.p3-opt.is-wrong .p3-bubble { --p3-fill: var(--c-bad); border-color: var(--c-bad); background: none; color: var(--c-surface); }
.p3-opt:is(.is-chosen, .is-right, .is-wrong) .p3-bubble::before { opacity: 1; animation: p3-fill 160ms cubic-bezier(.2, 0, 0, 1) both; }
.p3-opt.is-right { border-color: var(--c-ok); background: var(--c-ok-soft); }
.p3-opt.is-wrong { border-color: var(--c-bad); background: var(--c-bad-soft); }
.p3-opt:is(.is-right, .is-wrong)::after { content: ""; position: absolute; left: calc(var(--p3-bubble-x, 25px) - 24px); top: 50%; width: 48px; height: 48px; margin-top: -24px;
  background: currentColor; pointer-events: none; animation: p3-mark 180ms cubic-bezier(.2, 0, 0, 1) both; }
.p3-opt.is-right::after { color: var(--c-ok); -webkit-mask: var(--p3-circle) center / contain no-repeat; mask: var(--p3-circle) center / contain no-repeat; }
.p3-opt.is-wrong::after { color: var(--c-text); -webkit-mask: var(--p3-slash) center / contain no-repeat; mask: var(--p3-slash) center / contain no-repeat; }
:root {
  --p3-circle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M9 24.5C7.5 14 15 6.5 24 7c9.5.5 15 8 13 16.5-2 9.5-11.5 14-20 11.5C11 33 7.5 28 8.5 21.5'/%3E%3C/svg%3E");
  --p3-slash: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M9 38 36 6'/%3E%3C/svg%3E");
}

/* ---- motion: transform and opacity only ---- */
.p3-in { animation: p3-in 200ms cubic-bezier(.2, 0, 0, 1) both; }
@keyframes p3-fill { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes p3-mark { from { opacity: 0; transform: scale(.82) rotate(-8deg); } to { opacity: 1; transform: none; } }
@keyframes p3-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes p3-pulse { from { transform: scale(1); } to { transform: scale(1.18); } }
@media (prefers-reduced-motion: reduce) {
  .p3-art, .p3-press, .p3-in, .p3-opt::after, .p3-opt .p3-bubble::before { transition: none !important; animation: none !important; }
}
/* === OBL-P3:END === */

/* ---- service tokens: vermilion seal ink (AA: accent 6.7 on paper, 7.2 on surface; white on accent 7.3; dark 7.7 / 7.1) ---- */
.p3 {
  --c-accent: #9a3324; --c-on-accent: #ffffff; --c-accent-soft: #f8eae4;
  --c-ok: #1d6b3a; --c-bad: #b42534;
  --c-tint: #eecbbd;
  --t-fast: 120ms;
  --wrap: 68rem;
  --gutter: 16px;
}
@media (prefers-color-scheme: dark) {
  .p3 { --c-accent: #e8927a; --c-on-accent: #151412; --c-accent-soft: #33221d; --c-ok: #6fd69a; --c-bad: #ff8a96; --c-tint: #5a3a31; }
}
[data-svc="history"] { --c-tint: #eecbbd; }
@media (prefers-color-scheme: dark) { [data-svc="history"] { --c-tint: #5a3a31; } }

html { background: #f6f4ef; color-scheme: light dark; }
@media (prefers-color-scheme: dark) { html { background: #151412; } }
body.p3 { background: var(--c-bg); color: var(--c-text); font-family: var(--font); font-size: 17px; line-height: 1.6; font-variant-numeric: tabular-nums; }
html[data-ui="en"] .ko-ui { display: none !important; }
html:not([data-ui="en"]) .en-ui { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; border-radius: 4px; }

/* ---- service drawings (tools/art.js): the seal-red mark ---- */
.p3-art .accent { fill: var(--c-accent); }
.hh-brand .p3-art { width: 30px; height: 30px; }

/* ---- header / footer ---- */
.hh-top { border-bottom: 1px solid var(--c-line); background: var(--c-bg); }
.hh-top .wrap { display: flex; align-items: center; gap: 12px; min-height: 56px; }
.hh-brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font-weight: 700; letter-spacing: -.02em; }
.hh-brand svg { width: 30px; height: 30px; flex: none; }
.hh-brand small { font-weight: 400; color: var(--c-text-3); font-size: .8125rem; letter-spacing: 0; }
.hh-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.hh-nav a, .hh-lang { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 10px; border-radius: 10px; text-decoration: none; font-size: .9375rem; color: var(--c-text-2); background: none; border: 0; cursor: pointer; }
.hh-nav a:hover, .hh-lang:hover { background: var(--c-surface-2); color: var(--c-text); }
.hh-lang { border: 1px solid var(--c-line-strong); font-weight: 600; font-size: .8125rem; min-width: 52px; }
.hh-foot { margin-top: 56px; border-top: 2px solid var(--c-text); padding: 20px 0 40px; color: var(--c-text-2); font-size: .875rem; }
.hh-foot p { margin: 0 0 8px; max-width: 46rem; }
.hh-foot nav { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; }
.hh-foot nav a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---- type ---- */
.hh-h1 { font-size: clamp(1.875rem, 1.25rem + 3.1vw, 3.25rem); line-height: 1.17; letter-spacing: -.035em; margin: 28px 0 10px; font-weight: 700; }
.hh-lead { font-size: 1.0625rem; color: var(--c-text-2); max-width: 40rem; margin: 0 0 8px; }
.hh-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: .8125rem; font-weight: 700; color: var(--c-accent); letter-spacing: .02em; margin: 0; }
h2.p3-rule { font-size: 1.25rem; font-weight: 700; margin: 48px 0 14px; }
h3 { font-size: 1.0625rem; margin: 24px 0 8px; letter-spacing: -.01em; }
.hh-meta { color: var(--c-text-3); font-size: .875rem; }

/* ---- the printed timeline rule (era strip under the title) ---- */
.hh-strip { display: block; width: 100%; height: 44px; margin: 6px 0 2px; color: var(--c-text); }
.hh-strip .tick { stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.hh-strip .base { stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.hh-strip .on { fill: var(--c-accent); }
.hh-strip .stroke { fill: var(--c-tint); }

/* ---- home layout ---- */
.hh-home-grid { display: grid; gap: 24px; margin-top: 18px; }
@media (min-width: 900px) {
  .hh-home-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; gap: 32px; }
}

/* ---- question card (daily, practice, embed) ---- */
.hh-card { padding: 18px 16px 16px; }
@media (min-width: 600px) { .hh-card { padding: 22px 22px 18px; } }
.hh-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.hh-date { font-size: .875rem; color: var(--c-text-2); font-weight: 600; }
.hh-chip { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border: 1px solid var(--c-line-strong); border-radius: 2px; font-size: .8125rem; color: var(--c-text-2); background: var(--c-surface); white-space: nowrap; }
/* The daily card is filled by script after the first paint, so it reserves its space: on one-column screens down to the bottom of the
   first screen (whatever follows starts out of view, so a long question never moves anything visible: CLS 0), and on two columns
   the tallest question in the bank (measured 519px at 600px and wider; the side column is taller anyway). */
.hh-daily { display: flex; flex-direction: column; min-height: max(24rem, calc(100vh - 15rem)); min-height: max(24rem, calc(100svh - 15rem)); }
@media (min-width: 600px) { .hh-daily { min-height: max(33rem, calc(100vh - 17rem)); min-height: max(33rem, calc(100svh - 17rem)); } }
@media (min-width: 900px) { .hh-daily { min-height: 33rem; } }
.hh-daily .hh-hint { margin: auto 0 0; padding-top: 12px; border-top: 1px dashed var(--c-line-strong); font-size: .8125rem; color: var(--c-text-3); }
.hh-embed .hh-daily { min-height: calc(100vh - 64px); min-height: calc(100svh - 64px); }
.hh-stem { font-size: 1.125rem; line-height: 1.55; font-weight: 600; margin: 4px 0 12px; letter-spacing: -.01em; }
.hh-clue { margin: 0 0 12px; padding: 12px 14px; font-size: .9688rem; line-height: 1.6; }
.hh-clue p { margin: 0; }
.hh-clue p + p { margin-top: 6px; }
.hh-clue b { display: inline-block; min-width: 1.6em; font-weight: 700; }
.hh-opts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hh-opts .opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 10px 14px 10px 15px; text-align: left; line-height: 1.45;
  background: var(--c-surface); border: 1px solid var(--c-line-strong); border-radius: 12px; cursor: pointer; --p3-bubble-x: 25px; transition: transform var(--t-fast) cubic-bezier(.2, 0, 0, 1); }
.hh-opts .opt:hover:not([disabled]) { border-color: var(--c-text); }
.hh-opts .opt:active:not([disabled]) { transform: scale(.985); }
.hh-opts .opt[disabled] { cursor: default; }
.hh-opts .opt.is-chosen { border-color: var(--c-accent); }
.hh-opts .opt.is-right { border-color: var(--c-ok); background: var(--c-ok-soft); }
.hh-opts .opt.is-wrong { border-color: var(--c-bad); background: var(--c-bad-soft); }
.hh-opts .opt .t { flex: 1; min-width: 0; }
.hh-fb { margin-top: 14px; }
.hh-verdict { font-weight: 700; margin: 0 0 6px; }
.hh-verdict.ok { color: var(--c-ok); }
.hh-verdict.bad { color: var(--c-bad); }
.hh-why { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: .9375rem; color: var(--c-text-2); }
.hh-why li { display: grid; grid-template-columns: 1.6em minmax(0, 1fr); gap: 4px; }
.hh-why li b { color: var(--c-text); }
.hh-why li.right { color: var(--c-text); }
.hh-en { margin: 10px 0 0; font-size: .875rem; color: var(--c-text-3); }
.hh-src { margin: 10px 0 0; font-size: .8125rem; color: var(--c-text-3); }
.hh-src a { color: var(--c-text-2); }
.hh-seq { margin: 8px 0 0; padding: 0; list-style: none; font-size: .9375rem; display: grid; gap: 4px; }
.hh-seq li { display: grid; grid-template-columns: 4.5em minmax(0, 1fr); gap: 6px; }
.hh-seq .y { font-weight: 700; color: var(--c-accent); }
.hh-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--c-line-strong);
  background: var(--c-surface); color: var(--c-text); font-weight: 600; text-decoration: none; cursor: pointer; transition: transform var(--t-fast) cubic-bezier(.2, 0, 0, 1); }
.btn:active:not([disabled]) { transform: scale(.97); }
.btn.primary { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-on-accent); }
.btn[disabled] { opacity: .5; cursor: default; }
.hh-note { font-size: .875rem; color: var(--c-text-2); min-height: 1.4em; margin: 8px 0 0; }

/* ---- streak / stats as a small printed ledger ---- */
.hh-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 16px 0 0; border-top: 1px solid var(--c-text); border-bottom: 1px solid var(--c-text); }
.hh-stats div { padding: 8px 6px; text-align: center; }
.hh-stats div + div { border-left: 1px dashed var(--c-line-strong); }
.hh-stats b { display: block; font-size: 1.375rem; line-height: 1.2; }
.hh-stats span { font-size: .75rem; color: var(--c-text-3); }

/* ---- 오늘의 연표: a card with a big printed year and a seal ---- */
.hh-fact { position: relative; padding: 18px 16px; min-height: 13.5rem; }
.hh-fact .yr { font-size: 2.75rem; line-height: 1; font-weight: 700; letter-spacing: -.03em; margin: 8px 0 6px; }
.hh-fact .yr small { font-size: 1rem; font-weight: 600; margin-left: 4px; color: var(--c-text-2); letter-spacing: 0; }
.hh-fact p { margin: 0 0 6px; }
.hh-fact .hh-seal { position: absolute; right: 14px; top: 14px; }
.hh-seal { width: 52px; height: 52px; flex: none; color: var(--c-accent); }
.hh-seal .frame { fill: none; stroke: currentColor; stroke-width: 3; }
.hh-seal text { fill: currentColor; font-family: var(--font); font-weight: 700; }

/* ---- era hub: printed index with brush markers ---- */
.hh-hub { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--c-text); }
.hh-hub > li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 12px; padding: 14px 0; border-bottom: 1px solid var(--c-line); }
.hh-hub .no { grid-row: span 2; width: 40px; height: 40px; display: grid; place-items: center; font-weight: 700; color: var(--c-accent); border: 2px solid var(--c-accent); border-radius: 3px; font-size: .9375rem; margin-top: 2px; }
.hh-hub h3 { margin: 0; font-size: 1.0625rem; }
.hh-hub h3 a { text-decoration: none; }
.hh-hub h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hh-hub .span { font-weight: 400; color: var(--c-text-3); font-size: .875rem; margin-left: 6px; }
.hh-hub p { margin: 2px 0 6px; color: var(--c-text-2); font-size: .9375rem; }
.hh-hub .links { grid-column: 2; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .9375rem; }
.hh-hub .links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--c-accent); }
@media (min-width: 900px) { .hh-hub { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; } }

/* ---- practice entry tiles ---- */
.hh-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 720px) { .hh-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hh-tile { display: grid; grid-template-rows: auto 1fr auto; gap: 6px; min-height: 9.5rem; padding: 14px; text-decoration: none; border-radius: var(--r-sheet); background: var(--c-surface); box-shadow: var(--sheet); transition: transform var(--t-fast) cubic-bezier(.2, 0, 0, 1); }
.hh-tile:active { transform: scale(.98); }
.hh-tile .p3-art { width: 44px; height: 44px; }
.hh-tile b { font-size: 1rem; }
.hh-tile span { font-size: .8125rem; color: var(--c-text-3); }

/* ---- era article ---- */
.hh-article { max-width: 44rem; }
.hh-article p, .hh-article li { font-size: 1.0625rem; line-height: 1.75; }
.hh-article ul { padding-left: 1.2em; }
.hh-article li + li { margin-top: 6px; }
.hh-article blockquote { margin: 16px 0; padding: 12px 16px; }
.hh-article .hh-en-sum { margin-top: 28px; padding: 14px 16px; font-size: .9375rem; color: var(--c-text-2); }
.hh-article .hh-en-sum p { font-size: .9375rem; margin: 0; }
.hh-cta { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 6px; }
.hh-tl { list-style: none; margin: 8px 0 0; padding: 0 0 0 18px; border-left: 2px solid var(--c-text); }
.hh-tl li { position: relative; display: grid; grid-template-columns: 5.2em minmax(0, 1fr); gap: 8px; padding: 6px 0; font-size: .9688rem; line-height: 1.5; }
.hh-tl li::before { content: ""; position: absolute; left: -25px; top: 13px; width: 10px; height: 10px; border-radius: 50%; background: var(--c-bg); border: 2px solid var(--c-accent); }
.hh-tl .y { font-weight: 700; }
.hh-sources { font-size: .875rem; color: var(--c-text-2); }
.hh-sources ol { padding-left: 1.4em; columns: 1; }
@media (min-width: 720px) { .hh-sources ol { columns: 2; column-gap: 28px; } }
.hh-sources li { break-inside: avoid; margin: 0 0 4px; font-size: .875rem; line-height: 1.5; }
.hh-sources a { word-break: break-all; }
/* home: the "이렇게 공부하면 좋습니다" block (tools/home-guide.js, class tool-editorial-content) */
.hh-guide { margin-top: 8px; }
.hh-guide h3 { margin: 28px 0 8px; font-size: 1.125rem; }
.hh-guide p + p { margin-top: 10px; }
.hh-guide ol { padding-left: 1.4em; }
.hh-guide ol > li + li { margin-top: 8px; }
.hh-guide-eras > li { padding: 4px 0; }
.hh-faq details { border-top: 1px solid var(--c-line); }
.hh-faq details:last-child { border-bottom: 1px solid var(--c-line); }
.hh-faq summary { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 0; cursor: pointer; font-weight: 700; }
.hh-faq summary::before { content: "+"; flex: none; width: 1em; color: var(--c-accent); font-weight: 700; }
.hh-faq details[open] summary::before { content: "−"; }
.hh-faq details p { margin: 0 0 12px; color: var(--c-text-2); }
.hh-pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.hh-pager a { display: inline-flex; flex-direction: column; min-height: 56px; justify-content: center; text-decoration: none; padding: 8px 0; }
.hh-pager a span { font-size: .8125rem; color: var(--c-text-3); }
.hh-pager a b { color: var(--c-accent); }
.hh-pager a.next { text-align: right; margin-left: auto; }

/* ---- practice app ---- */
.hh-prac-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between; margin: 18px 0 10px; }
.hh-prog { display: flex; align-items: center; gap: 10px; min-width: 12rem; flex: 1; }
.hh-prog .p3-bar__track { flex: 1; }
.hh-prog .p3-bar__fill { transform: scaleX(0); transition: transform 200ms cubic-bezier(.2, 0, 0, 1); background: var(--c-accent); }
.hh-pick { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 16px; }
.hh-pick a, .hh-pick button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--c-line-strong); border-radius: 22px; text-decoration: none; background: var(--c-surface); cursor: pointer; font-size: .9375rem; }
.hh-pick [aria-current="true"] { background: var(--c-text); color: var(--c-bg); border-color: var(--c-text); }
.hh-result { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
.hh-result li { display: grid; grid-template-columns: 2.2em minmax(0, 1fr); gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--c-line-strong); font-size: .9375rem; }
.hh-result .m { font-weight: 700; }
.hh-result .m.ok { color: var(--c-ok); }
.hh-result .m.bad { color: var(--c-bad); }
.hh-score { font-size: 2.25rem; font-weight: 700; letter-spacing: -.03em; margin: 6px 0; }

html[data-deep] #hh-picker { display: none; }
html[data-deep] #hh-view { min-height: 44rem; }
.hh-ptitle { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 1.6em; margin: 0 0 6px; font-size: .9375rem; }
.hh-eralist { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--c-text); }
.hh-eralist a { display: grid; grid-template-columns: 40px minmax(0, 1fr) 7.5rem; align-items: center; gap: 12px; min-height: 64px; padding: 8px 0; border-bottom: 1px solid var(--c-line); text-decoration: none; }
.hh-eralist a:hover .nm b { text-decoration: underline; text-underline-offset: 3px; }
.hh-eralist .no { width: 34px; height: 34px; display: grid; place-items: center; border: 2px solid var(--c-accent); color: var(--c-accent); border-radius: 3px; font-weight: 700; font-size: .875rem; }
.hh-eralist .nm { display: grid; gap: 1px; min-width: 0; }
.hh-eralist .nm small { color: var(--c-text-3); font-size: .8125rem; }
.hh-eralist .pc { display: grid; gap: 4px; text-align: right; }
.hh-eralist .p3-bar__fill { transform: scaleX(0); background: var(--c-accent); }
@media (min-width: 900px) { .hh-eralist { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; } }

/* era page: article + a sticky index of the ten eras on wide screens */
.hh-era-grid { display: block; }
.hh-era-aside { display: none; }
@media (min-width: 1100px) {
  .hh-era-grid { display: grid; grid-template-columns: minmax(0, 44rem) minmax(0, 1fr); gap: 56px; align-items: start; }
  .hh-era-aside { display: block; position: sticky; top: 16px; padding: 16px; margin-top: 48px; }
  .hh-era-aside h2 { font-size: 1rem; margin: 0 0 8px; }
  .hh-era-aside ol { list-style: none; margin: 0 0 12px; padding: 0; }
  .hh-era-aside li a { display: flex; align-items: center; gap: 10px; min-height: 40px; text-decoration: none; font-size: .9375rem; color: var(--c-text-2); }
  .hh-era-aside li a .n { width: 24px; font-weight: 700; color: var(--c-text-3); }
  .hh-era-aside li a[aria-current="page"] { color: var(--c-text); font-weight: 700; }
  .hh-era-aside li a[aria-current="page"] .n { color: var(--c-accent); }
  .hh-era-aside .btn { width: 100%; }
}

/* chronology game: tap the events in order */
.hh-chrono { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hh-chrono button { display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; gap: 10px; width: 100%; min-height: 56px; padding: 10px 14px; text-align: left; border: 1px solid var(--c-line-strong); border-radius: 12px; background: var(--c-surface); cursor: pointer; line-height: 1.45; }
.hh-chrono .n { width: 32px; height: 32px; display: grid; place-items: center; border: 1.5px dashed var(--c-line-strong); border-radius: 50%; font-weight: 700; color: var(--c-text-3); }
.hh-chrono button.set .n { border: 2px solid var(--c-accent); color: var(--c-accent); border-style: solid; }
.hh-chrono button.ok { border-color: var(--c-ok); background: var(--c-ok-soft); }
.hh-chrono button.bad { border-color: var(--c-bad); background: var(--c-bad-soft); }
.hh-chrono .yr { display: block; font-size: .8125rem; font-weight: 700; color: var(--c-text-2); margin-top: 2px; }

/* ---- share sheet + ad slot ---- */
.hh-share { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--c-line-strong); }
.ad-slot { display: block; margin: 32px 0; min-height: 0; }

/* ---- embed ---- */
body.hh-embed { font-size: 16px; }
.hh-embed .hh-card { box-shadow: none; border-radius: 0; background: var(--c-bg); padding: 12px; }
.hh-embed-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px 0; }
.hh-embed-head a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; text-decoration: none; }
.hh-embed-head .hh-embed-more { color: var(--c-accent); font-weight: 600; font-size: .875rem; padding: 0 4px; }

@media (prefers-reduced-motion: reduce) {
  .btn, .hh-opts .opt, .hh-tile, .hh-prog .p3-bar__fill { transition: none !important; }
}
