/* Paperwork Navigator stylesheet. The OBL-P3 block below is the design pass 3 kit (kiip_prep/tools/pass3-kit, copied by copy.js; do not edit it). Own rules follow the block. */

/* === 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 === */

/* ================= Paperwork Navigator (own rules, after the kit block) ================= */
body.pw {
  --c-accent: #2440b3; --c-accent-hover: #1b3293; --c-accent-soft: #eaecf5; --c-on-accent: #ffffff; --c-ok: #1d6b3a; --c-warn: #8a4b0c; --c-warn-soft: #f8ecd9;
  --fs-small: .9375rem; --fs-body: 1.0625rem; --fs-h2: 1.375rem; --fs-h3: 1.125rem; --measure: 42rem; --gutter: 16px; --tap: 44px;
  margin: 0; background: var(--c-bg); color: var(--c-text); font-family: var(--font); font-size: var(--fs-body); line-height: 1.6; -webkit-text-size-adjust: 100%;
}
@media (prefers-color-scheme: dark) {
  body.pw { --c-accent: #9db0ff; --c-accent-hover: #b9c6ff; --c-accent-soft: #292c38; --c-on-accent: #151412; --c-ok: #7fd49b; --c-warn: #f0b26a; --c-warn-soft: #3a2e1e; }
}
body.pw *, body.pw *::before, body.pw *::after { box-sizing: border-box; }
body.pw a { color: var(--c-accent); text-underline-offset: 3px; }
body.pw a:hover { color: var(--c-accent-hover); }
body.pw :focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; border-radius: 4px; }
.pw-vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pw-skip { position: absolute; left: -999px; top: 0; background: var(--c-surface); padding: 12px 16px; z-index: 10; }
.pw-skip:focus { left: 8px; top: 8px; }
.pw-wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 var(--gutter); }

/* header: one line (brand + language), then the service tab strip. Fixed heights keep the layout still (CLS 0). */
.pw-head { background: var(--c-surface); border-bottom: 1px solid var(--c-line); }
.pw-head__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
.pw-brand { display: inline-flex; align-items: center; gap: 10px; min-height: var(--tap); color: var(--c-text); text-decoration: none; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.pw-brand img { width: 28px; height: 28px; display: block; }
.pw-brand span span { font-weight: 400; color: var(--c-text-3); }
.pw-lang { display: inline-flex; align-items: center; gap: 6px; }
.pw-lang select { min-height: var(--tap); width: 9.5rem; max-width: 100%; padding: 0 10px; border: 1px solid var(--c-line-strong); border-radius: 10px; background: var(--c-surface); color: var(--c-text); font: inherit; font-size: var(--fs-small); }
.pw-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: thin; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); border-top: 1px solid var(--c-line); }
.pw-tabs a { flex: none; display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 12px; color: var(--c-text-2); text-decoration: none; font-size: var(--fs-small); border-bottom: 3px solid transparent; white-space: nowrap; }
.pw-tabs a[aria-current="page"] { color: var(--c-text); font-weight: 700; border-bottom-color: var(--c-accent); }
.pw-tabs a:hover { color: var(--c-accent); }

main.pw-main { padding-top: 24px; padding-bottom: 48px; }
.pw-hero { display: grid; gap: 12px; padding: 8px 0 20px; }
.pw-hero__top { display: flex; align-items: center; gap: 16px; }
.pw-hero h1 { margin: 0; font-size: clamp(1.875rem, 1.25rem + 3.1vw, 3.375rem); line-height: 1.17; letter-spacing: -.035em; font-weight: 700; }
.pw-hero .p3-art { width: 88px; height: 88px; }
.pw-lead { margin: 0; max-width: var(--measure); color: var(--c-text-2); }
.pw-chip { display: inline-block; margin: 0; padding: 8px 12px; border: 1px dashed var(--c-line-strong); border-radius: 2px; font-size: var(--fs-small); color: var(--c-text-2); background: var(--c-surface); }
.pw-section { margin-top: 48px; }
.pw-section > h2, .pw-article h2 { margin: 0 0 14px; font-size: var(--fs-h2); line-height: 1.3; font-weight: 700; }
.pw-section > h2.p3-rule, .pw-article h2.p3-rule { padding-top: 12px; }

/* wizard */
.pw-wizard { padding: 20px 16px 24px; }
.pw-wizard h2 { margin: 0 0 4px; font-size: var(--fs-h2); }
.pw-step { border: 0; padding: 0; margin: 20px 0 0; min-width: 0; }
.pw-step > legend { padding: 0; margin: 0 0 8px; font-weight: 700; font-size: 1rem; }
.pw-hint { margin: 4px 0 0; font-size: var(--fs-small); color: var(--c-text-3); }
.pw-flows { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 560px) { .pw-flows { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .pw-flows { grid-template-columns: repeat(3, 1fr); } }
.pw-flow { position: relative; }
.pw-flow input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pw-flow label { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 14px; border: 1px solid var(--c-line-strong); border-radius: 12px; background: var(--c-surface); font-weight: 600; line-height: 1.3; }
.pw-flow input:checked + label { border-color: var(--c-accent); background: var(--c-accent-soft); box-shadow: inset 0 0 0 1px var(--c-accent); }
.pw-flow input:focus-visible + label { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.pw-flow label::before { content: ''; flex: none; width: 20px; height: 20px; border: 2px solid var(--c-line-strong); border-radius: 50%; }
.pw-flow input:checked + label::before { border-color: var(--c-accent); background: var(--c-accent); box-shadow: inset 0 0 0 3px var(--c-accent-soft); }
.pw-field { display: grid; gap: 6px; margin-top: 10px; }
.pw-field label { font-size: var(--fs-small); color: var(--c-text-2); }
.pw-field select, .pw-field input[type="date"] { width: 100%; max-width: 26rem; min-height: 48px; padding: 0 12px; border: 1px solid var(--c-line-strong); border-radius: 10px; background: var(--c-surface); color: var(--c-text); font: inherit; }
.pw-opts { display: grid; gap: 8px; }
.pw-opt { display: flex; align-items: center; gap: 10px; min-height: var(--tap); padding: 6px 10px; border: 1px solid var(--c-line); border-radius: 10px; background: var(--c-surface); }
.pw-opt input { width: 22px; height: 22px; flex: none; accent-color: var(--c-accent); }
.pw-cond[hidden] { display: none; }
/* the default procedure (one date field) is 78px tall; fields that other procedures add change the height only after the reader picks one (a reader action, not a layout shift) */
.pw-cond-area { min-height: 4.9rem; }
.pw-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.pw-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border: 1px solid var(--c-accent); border-radius: 12px; background: var(--c-accent); color: var(--c-on-accent); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.pw-btn:hover { background: var(--c-accent-hover); color: var(--c-on-accent); }
.pw-btn--ghost { background: var(--c-surface); color: var(--c-accent); }
.pw-btn--ghost:hover { background: var(--c-accent-soft); color: var(--c-accent-hover); }
.pw-btn[disabled] { opacity: .5; cursor: not-allowed; }

/* result: a receipt */
.pw-result { margin-top: 24px; scroll-margin-top: 16px; }
.pw-result[hidden] { display: none; }
.pw-receipt { padding: 18px 16px 28px; border-top: 4px solid var(--c-accent); }
.pw-receipt h2 { margin: 0 0 4px; font-size: var(--fs-h2); }
.pw-receipt h3 { margin: 24px 0 8px; font-size: var(--fs-h3); padding-top: 10px; border-top: 1px dashed var(--c-line-strong); }
.pw-meta { margin: 0; color: var(--c-text-3); font-size: var(--fs-small); }
.pw-alert { margin: 14px 0 0; padding: 10px 12px; border-left: 4px solid var(--c-warn); background: var(--c-warn-soft); border-radius: 2px; font-size: var(--fs-small); color: var(--c-text); }
.pw-note { margin: 10px 0 0; padding: 10px 12px; border-left: 4px solid var(--c-accent); background: var(--c-accent-soft); border-radius: 2px; font-size: var(--fs-small); }
.pw-dls { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pw-dl { display: grid; grid-template-columns: 7.2rem 1fr; gap: 4px 14px; align-items: start; padding: 10px 0; border-bottom: 1px dotted var(--c-line-strong); }
.pw-dl:last-child { border-bottom: 0; }
.pw-dl__date { font-weight: 700; font-size: 1.125rem; font-variant-numeric: tabular-nums; line-height: 1.3; }
.pw-dl__date small { display: block; font-weight: 400; font-size: .8125rem; color: var(--c-text-3); }
.pw-dl__label { margin: 0; }
.pw-tag { display: inline-block; margin-top: 4px; padding: 2px 8px; border: 1px solid var(--c-line-strong); border-radius: 2px; font-size: .75rem; color: var(--c-text-2); }
.pw-tag--derived { border-style: dashed; }
details.pw-why { margin-top: 6px; font-size: var(--fs-small); }
details.pw-why > summary { cursor: pointer; color: var(--c-accent); min-height: 32px; display: flex; align-items: center; }
.pw-quote { margin: 8px 0 0; padding: 8px 12px; border-left: 3px solid var(--c-line-strong); background: var(--c-surface-2); font-size: .875rem; color: var(--c-text-2); }
.pw-quote cite { display: block; margin-top: 6px; font-style: normal; font-size: .8125rem; color: var(--c-text-3); }
.pw-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pw-check { display: flex; gap: 10px; align-items: flex-start; min-height: var(--tap); padding: 6px 0; }
.pw-check input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--c-accent); }
.pw-check small { display: block; color: var(--c-text-3); }
.pw-fees { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pw-fee { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dotted var(--c-line-strong); }
.pw-fee__v { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pw-list { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
/* hub: the "이렇게 써 보세요" block (tools/hub-guide.js, class tool-editorial-content) */
.tool-editorial-content h3 { margin: 18px 0 10px; font-size: 1.0625rem; line-height: 1.4; }
.tool-editorial-content > div + div, .tool-editorial-content > ul + ul { margin-top: 18px; }
.tool-editorial-content > h2.p3-rule ~ h2.p3-rule { margin-top: 36px; }
.pw-steps { gap: 10px; }
.pw-faqs details.pw-faq { border-top: 1px solid var(--c-line); }
.pw-faqs details.pw-faq:last-child { border-bottom: 1px solid var(--c-line); }
.pw-faqs details.pw-faq > summary { display: flex; align-items: center; gap: 10px; min-height: var(--tap); padding: 8px 0; cursor: pointer; font-weight: 700; }
.pw-faqs details.pw-faq > summary::before { content: "+"; flex: none; width: 1em; color: var(--c-accent); }
.pw-faqs details.pw-faq[open] > summary::before { content: "−"; }
.pw-faqs details.pw-faq > p { margin: 0 0 12px; color: var(--c-text-2); }
.pw-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 0; padding: 0; list-style: none; }
.pw-links a { display: inline-flex; align-items: center; min-height: var(--tap); }
.pw-out { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; }
.pw-sources { margin: 0; padding-left: 1.4em; display: grid; gap: 10px; font-size: var(--fs-small); }
.pw-toast { margin-top: 8px; min-height: 1.5em; font-size: var(--fs-small); color: var(--c-ok); }

/* flow tiles on the hub and the next-procedure strip on article pages */
.pw-tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .pw-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .pw-tiles { grid-template-columns: repeat(3, 1fr); } }
.pw-tile { display: flex; flex-direction: column; gap: 6px; height: 100%; min-height: 9.5rem; padding: 16px; border-radius: var(--r-sheet); background: var(--c-surface); box-shadow: var(--sheet); color: var(--c-text); text-decoration: none; }
.pw-tile:hover { color: var(--c-text); box-shadow: 0 0 0 2px var(--c-accent); }
.pw-tile__t { font-weight: 700; font-size: 1.125rem; letter-spacing: -.02em; }
.pw-tile__d { color: var(--c-text-2); font-size: var(--fs-small); }
.pw-tile__n { font-variant-numeric: tabular-nums; color: var(--c-accent); font-weight: 700; }
/* brand tools that go with the service (hub and article pages): a small sheet with the tools drawing, two to a row */
.pw-tiles--tools { grid-template-columns: 1fr; }
@media (min-width: 560px) { .pw-tiles--tools { grid-template-columns: repeat(2, 1fr); } }
.pw-article .pw-tiles--tools { grid-template-columns: 1fr; }   /* the article column is narrow: one tile per row */
.pw-tile--tool { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; align-content: start; min-height: 5.5rem; padding: 14px 16px; }
.pw-tile--tool .p3-art { grid-row: 1 / span 3; align-self: start; width: 44px; height: 44px; }
.pw-tile--tool .pw-tile__t { font-size: 1.0625rem; line-height: 1.35; overflow-wrap: anywhere; }
.pw-tile--tool .pw-tile__d { line-height: 1.5; overflow-wrap: anywhere; }

/* article pages */
.pw-crumbs { margin: 0 0 12px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: var(--fs-small); color: var(--c-text-3); }
.pw-crumbs li + li::before { content: '›'; margin-right: 8px; }
.pw-article { max-width: var(--measure); }
.pw-article h1 { margin: 0 0 8px; font-size: clamp(1.75rem, 1.2rem + 2.6vw, 2.75rem); line-height: 1.2; letter-spacing: -.035em; }
.pw-article p, .pw-article li { max-width: var(--measure); }
.pw-article h3 { margin: 24px 0 6px; font-size: var(--fs-h3); }
.pw-toc { margin: 16px 0 24px; padding: 14px 16px; }
.pw-toc ol { margin: 0; padding-left: 1.4em; display: grid; gap: 2px; }
.pw-toc a { display: inline-flex; align-items: center; min-height: 32px; }
.pw-facts { margin: 16px 0; padding: 14px 16px; }
.pw-facts dl { margin: 0; display: grid; grid-template-columns: 6.5rem 1fr; gap: 8px 14px; }
.pw-facts dt { font-weight: 700; }
.pw-facts dd { margin: 0; }
.pw-cite { font-size: .75em; vertical-align: super; line-height: 0; }
.pw-cite a { padding: 0 2px; text-decoration: none; }
.pw-table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: var(--fs-small); font-variant-numeric: tabular-nums; border: 1px solid var(--c-text); background: var(--c-surface); }
.pw-table th, .pw-table td { text-align: left; padding: 8px 10px; border: 1px solid var(--c-line-strong); vertical-align: top; }
.pw-table th { background: var(--c-surface-2); }
.pw-tablewrap { overflow-x: auto; }
.pw-lang-block { margin-top: 48px; padding-top: 12px; border-top: 2px solid var(--c-text); }
.pw-summaries { display: grid; gap: 14px; margin-top: 12px; }
.pw-summaries h3 { margin: 0 0 4px; font-size: 1rem; }
.pw-summaries p { margin: 0; }
.pw-langjump { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 8px 0 0; padding: 0; list-style: none; font-size: var(--fs-small); }
.pw-langjump a { display: inline-flex; align-items: center; min-height: 32px; }
.pw-cta { margin-top: 24px; padding: 16px; }
.ad-slot { margin: 32px 0; }
.ad-slot[hidden] { display: none; }
.pw-foot { margin-top: 64px; padding: 24px 0 40px; border-top: 1px solid var(--c-line); color: var(--c-text-2); font-size: var(--fs-small); }
.pw-foot ul { list-style: none; margin: 8px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.pw-foot a { display: inline-flex; align-items: center; min-height: var(--tap); }
.pw-foot p { margin: 8px 0; max-width: 60rem; }

/* hold the wizard still until the saved language is applied (first paint of a returning reader who chose another language) */
html[data-pw-lang]:not([data-pw-ready]) #pwApp { visibility: hidden; }

/* print view: a plain checklist, no ads, no navigation */
body.pw-print { background: #fff; color: #000; }
.pw-printbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 16px 0; }
.pw-sheetpage { padding: 16px; }
.pw-sheetpage h1 { margin: 0 0 4px; font-size: 1.5rem; }
@page { size: A4; margin: 16mm; }
@media print {
  body.pw { background: #fff; color: #000; font-size: 11pt; }
  .pw-noprint, .pw-head, .pw-foot, .pw-printbar, .pw-out, .ad-slot { display: none !important; }
  .pw-receipt, .pw-sheetpage { box-shadow: none; clip-path: none; padding: 0; border-top: 0; }
  .pw-sheetpage a { color: #000; text-decoration: none; }
  details.pw-why { display: block; }
  details.pw-why > summary { display: none; }
  details.pw-why > * { display: block; }
  .pw-check { break-inside: avoid; }
  .pw-dl { break-inside: avoid; }
  .pw-quote { background: none; }
}
@media (prefers-reduced-motion: reduce) { body.pw * { transition: none !important; animation: none !important; } }
@media (max-width: 420px) { .pw-dl { grid-template-columns: 1fr; } .pw-facts dl { grid-template-columns: 1fr; } .pw-fee { flex-direction: column; gap: 2px; } }
@keyframes pw-reveal { to { visibility: visible; } }
html[data-pw-lang]:not([data-pw-ready]) #pwApp { animation: pw-reveal 0s 2.5s forwards; }
