/* 연말정산 미리보기: https://obyeollab.com/yearend/ . Design pass 3 "paper and ink": the OBL-P3 block below is the shared kit
   (copied by kiip_prep/tools/pass3-kit/copy.js, never edited here); everything after it is this service's own. No gradients, no
   emoji icons, no pill badges; motion only on transform and opacity. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 12px; }
body { margin: 0; }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
/* @kit-anchor: the OBL-P3 block goes right after this line */

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

/* ================= Year-end preview ================= */
.p3 {
  --c-accent: #2347a6; --c-accent-hover: #1a3782; --c-accent-soft: #e6ebf8; --c-on-accent: #ffffff; --c-focus: var(--c-accent);
  --c-ok: #13753d; --c-ok-soft2: #e3f1e7; --c-bad: #b3261e; --c-warn: #8a5a00; --c-warn-soft: #f3eddf;
  --c-tint: #c3cdee;
  --gutter: 16px;
  font-family: var(--font); font-size: 1rem; line-height: 1.65; color: var(--c-text); background: var(--c-bg);
  min-height: 100vh; -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums;
}
@media (prefers-color-scheme: dark) {
  .p3 { --c-accent: #a9bdf5; --c-accent-hover: #c3d1f8; --c-accent-soft: #232b40; --c-on-accent: #151412; --c-ok: #6fd69a; --c-ok-soft2: #17301f; --c-bad: #ff8a8a; --c-warn: #f2c063; --c-warn-soft: #33270f; --c-tint: #3a4566; }
}
.p3 a { color: var(--c-accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.p3 a:hover { color: var(--c-accent-hover); }
.p3 :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 2px solid var(--c-focus); outline-offset: 2px; border-radius: 4px; }
.ye-vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; }
.ye-wrap { width: 100%; max-width: 74rem; margin-inline: auto; padding-inline: var(--gutter); }
.ye-small { font-size: .875rem; color: var(--c-text-3); }

/* ---- header ---- */
.ye-head { border-bottom: 1px solid var(--c-line); background: var(--c-bg); }
.ye-head__in { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; min-height: 56px; padding-block: 6px; }
.ye-brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--c-text) !important; text-decoration: none; font-weight: 700; letter-spacing: -.02em; }
.ye-brand__mark { width: 28px; height: 28px; flex: none; }
.ye-brand small { font-weight: 400; color: var(--c-text-3); font-size: .8125rem; letter-spacing: 0; }
.ye-navwrap { order: 3; flex: 1 0 100%; min-width: 0; margin-inline: calc(var(--gutter) * -1); }
@media (min-width: 64rem) { .ye-navwrap { order: 0; flex: 1 1 auto; margin-inline: 0; } }
.ye-nav { display: flex; gap: 2px; margin: 0; padding: 0 var(--gutter); list-style: none; overflow-x: auto; scrollbar-width: none; }
@media (min-width: 64rem) { .ye-nav { padding: 0; justify-content: flex-end; } }
.ye-nav::-webkit-scrollbar { display: none; }
.ye-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; white-space: nowrap; color: var(--c-text-2); text-decoration: none; font-size: .9375rem; border-radius: 8px; }
.ye-nav a[aria-current="page"] { color: var(--c-text); font-weight: 700; box-shadow: inset 0 -2px 0 var(--c-accent); border-radius: 0; }
.ye-nav a:hover { color: var(--c-accent); }

/* ---- hero and the notice ---- */
.ye-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding-block: 28px 16px; }
.ye-kicker { margin: 0 0 6px; font-size: .875rem; font-weight: 700; color: var(--c-accent); letter-spacing: -.005em; }
.ye-hero h1 { margin: 0; font-size: clamp(2rem, 1.3rem + 3.2vw, 3.5rem); line-height: 1.15; letter-spacing: -.04em; font-weight: 800; }
.ye-hero__lead { max-width: 40rem; margin: 14px 0 0; color: var(--c-text-2); font-size: 1.0625rem; }
.ye-hero .p3-art { width: 96px; height: 96px; margin-top: 6px; display: none; }
@media (min-width: 40rem) { .ye-hero .p3-art { display: block; } }
.ye-asof { margin: 10px 0 0; font-size: .8125rem; color: var(--c-text-3); }
.ye-safe { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; margin: 0 0 20px; padding: 12px 14px; border: 1px solid var(--c-text); border-left-width: 4px; border-radius: 2px; background: var(--c-surface); max-width: 52rem; }
.ye-safe__mark { width: 22px; height: 22px; margin-top: 2px; color: var(--c-accent); }
.ye-safe p { margin: 0; font-size: .9375rem; line-height: 1.6; }
.ye-safe p + p { grid-column: 2; color: var(--c-text-2); font-size: .875rem; }

/* ---- the calculator: form + result ---- */
.ye-app { display: grid; gap: 20px; align-items: start; padding-bottom: 8px; }
@media (min-width: 64rem) { .ye-app { grid-template-columns: minmax(0, 1fr) 26rem; gap: 32px; } }
.ye-side { min-width: 0; }
.ye-form { display: grid; gap: 12px; }
.ye-step { padding: 0; }
.ye-step > summary { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto 18px; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px; cursor: pointer; list-style: none; }
.ye-step > summary::-webkit-details-marker { display: none; }
.ye-step > summary::after { content: ""; width: 9px; height: 9px; margin-top: -4px; border: solid var(--c-text-2); border-width: 0 2px 2px 0; transform: rotate(45deg); justify-self: center; }
.ye-step[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
.ye-step__n { display: grid; place-items: center; width: 32px; height: 32px; border: 1.5px solid var(--c-text-2); border-radius: 50%; font-weight: 700; font-size: .9375rem; color: var(--c-text-2); }
.ye-step.is-filled .ye-step__n { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-on-accent); }
.ye-step__t { display: block; font-weight: 700; font-size: 1.0625rem; letter-spacing: -.02em; line-height: 1.35; }
.ye-step__t small { display: block; font-weight: 400; font-size: .8125rem; color: var(--c-text-3); letter-spacing: 0; }
.ye-step__s { font-size: .8125rem; color: var(--c-text-2); text-align: right; font-weight: 600; max-width: 9em; line-height: 1.3; }
.ye-step__b { padding: 2px 16px 16px; border-top: 1px solid var(--c-line); }
.ye-field { display: block; margin: 14px 0 0; }
.ye-field__l { display: block; margin: 0 0 6px; font-size: .9375rem; font-weight: 600; color: var(--c-text); line-height: 1.4; }
.ye-field__h { display: block; margin: 6px 0 0; font-size: .8125rem; color: var(--c-text-3); line-height: 1.5; }
.ye-field__r { display: block; min-height: 1.25em; margin: 4px 0 0; font-size: .8125rem; color: var(--c-accent); font-weight: 600; line-height: 1.25; }
.ye-won { position: relative; display: block; }
.ye-in { width: 100%; min-height: 52px; padding: 10px 14px; border: 1px solid var(--c-line-strong); border-radius: 12px; background: var(--c-surface); color: var(--c-text); font-size: 1.125rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.ye-won .ye-in { padding-right: 52px; text-align: right; }
select.ye-in { font-size: 1rem; font-weight: 500; }
.ye-in:focus { border-color: var(--c-accent); box-shadow: 0 0 0 1px var(--c-accent); outline: none; }
.ye-in[aria-invalid="true"] { border-color: var(--c-bad); box-shadow: 0 0 0 1px var(--c-bad); }
.ye-in::placeholder { color: var(--c-text-3); opacity: 1; font-weight: 400; }
.ye-won__u { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--c-text-2); font-size: .9375rem; pointer-events: none; }
.ye-err { display: block; margin: 6px 0 0; color: var(--c-bad); font-size: .875rem; font-weight: 600; }
.ye-field--half { display: inline-block; width: calc(50% - 6px); vertical-align: top; }
.ye-field--half + .ye-field--half { margin-left: 8px; }
.ye-mini { margin: 10px 0 0; border: 1px dashed var(--c-line-strong); border-radius: 10px; }
.ye-mini > summary { display: flex; align-items: center; min-height: 44px; padding: 0 12px; cursor: pointer; font-size: .875rem; color: var(--c-accent); font-weight: 600; }
.ye-mini__b { padding: 0 12px 12px; }
.ye-mini__b .ye-field { margin-top: 4px; }
.ye-sub { margin: 8px 0 0; padding: 4px 0 0 14px; border-left: 2px solid var(--c-line); }
.ye-group { margin: 16px 0 0; padding: 0; border: 0; min-width: 0; }
.ye-group > legend, .ye-group__l { padding: 0; margin: 0 0 4px; font-weight: 700; font-size: .9375rem; }
.ye-est { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--c-surface-2); font-size: .875rem; color: var(--c-text-2); min-height: 2.6em; }
.ye-est:empty { display: none; }
.ye-check { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; min-height: 44px; padding: 10px 0; cursor: pointer; line-height: 1.45; }
.ye-check input { position: absolute; left: 0; top: 0; width: 44px; height: 44px; margin: 0; opacity: 0; cursor: pointer; }
.ye-check__box { position: relative; width: 24px; height: 24px; margin-top: 0; border: 1.5px solid var(--c-line-strong); border-radius: 6px; background: var(--c-surface); }
.ye-check__box::after { content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid var(--c-on-accent); border-width: 0 2px 2px 0; transform: rotate(45deg); opacity: 0; }
.ye-check input:checked + .ye-check__box { background: var(--c-accent); border-color: var(--c-accent); }
.ye-check input:checked + .ye-check__box::after { opacity: 1; }
.ye-check input:focus-visible + .ye-check__box { outline: 2px solid var(--c-focus); outline-offset: 2px; }
.ye-check__t { font-size: .9375rem; font-weight: 500; }
.ye-check__t small { display: block; margin-top: 2px; font-size: .8125rem; color: var(--c-text-3); font-weight: 400; }
.ye-radios { margin: 14px 0 0; padding: 0; border: 0; min-width: 0; }
.ye-radios > legend { padding: 0; margin: 0 0 6px; font-weight: 600; font-size: .9375rem; }
.ye-radios .ye-field__h { margin: 0 0 8px; }
.ye-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--c-line-strong); border-radius: 12px; overflow: hidden; }
.ye-seg__o { position: relative; display: flex; }
.ye-seg__o input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.ye-seg__o span { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; padding: 6px 10px; text-align: center; font-size: .9375rem; font-weight: 600; color: var(--c-text-2); background: var(--c-surface); line-height: 1.3; }
.ye-seg__o + .ye-seg__o span { border-left: 1px solid var(--c-line-strong); }
.ye-seg__o input:checked + span { background: var(--c-accent); color: var(--c-on-accent); }
.ye-seg__o input:focus-visible + span { outline: 2px solid var(--c-focus); outline-offset: -4px; }
.ye-deps, .ye-edus { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ye-dep { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 6.5rem; gap: 0 10px; padding: 12px; border: 1px solid var(--c-line); border-radius: 12px; background: var(--c-surface-2); }
.ye-dep .ye-field { margin: 0; }
.ye-dep .ye-field__l { font-size: .8125rem; }
.ye-dep .ye-in { min-height: 48px; font-size: 1rem; }
.ye-dep select.ye-in { padding-right: 8px; }
.ye-dep--edu { grid-template-columns: minmax(0, 1fr); gap: 8px; }
@media (min-width: 40rem) { .ye-dep--edu { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.ye-dep__opts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0 18px; margin-top: 4px; }
.ye-dep__opts .ye-check { padding: 6px 0; }
.ye-dep__status { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; font-size: .8125rem; }
.ye-dep__status li { padding: 1px 7px; border: 1px solid var(--c-line-strong); border-radius: 2px; color: var(--c-text-2); }
.ye-dep__status li.is-yes { border-color: var(--c-ok); color: var(--c-ok); }
.ye-dep__status li.is-no { border-style: dashed; color: var(--c-text-3); }
.ye-dep__rm { grid-column: 1 / -1; justify-self: end; }
.ye-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 16px; border: 1px solid var(--c-line-strong); border-radius: 12px; background: var(--c-surface); color: var(--c-text) !important; font-weight: 600; text-decoration: none; cursor: pointer; }
.ye-btn:hover { border-color: var(--c-accent); color: var(--c-accent) !important; }
.ye-btn--primary { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-on-accent) !important; }
.ye-btn--primary:hover { background: var(--c-accent-hover); border-color: var(--c-accent-hover); color: var(--c-on-accent) !important; }
.ye-btn--quiet { border-color: transparent; background: transparent; color: var(--c-text-2) !important; }
.ye-btn--sm { min-height: 44px; padding: 0 14px; font-size: .9375rem; }
.ye-btn--add { margin-top: 10px; border-style: dashed; }
.ye-meter { margin: 12px 0 4px; padding: 10px 12px; border-radius: 10px; background: var(--c-surface-2); }
.ye-meter__t { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; font-size: .8125rem; color: var(--c-text-2); margin-bottom: 6px; }
.ye-meter__t span:last-child { font-weight: 700; color: var(--c-text); }
.ye-meter .p3-bar__track { height: 10px; }
.ye-meter .p3-bar__fill { background: var(--c-accent); transform: scaleX(0); transition: transform 240ms cubic-bezier(.2, 0, 0, 1); }
.ye-formfoot { padding: 6px 16px 14px; }
.ye-formtools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.ye-privacy { margin: 10px 0 0; padding-top: 10px; border-top: 1px dashed var(--c-line-strong); color: var(--c-text-3); font-size: .8125rem; line-height: 1.5; }

/* ---- result ---- */
.ye-result { min-width: 0; }
@media (min-width: 64rem) { .ye-result { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-bottom: 8px; } }
.ye-empty { padding: 20px 18px; }
.ye-empty__k { margin: 0; font-size: .875rem; font-weight: 700; color: var(--c-text-3); }
.ye-empty__big { margin: 6px 0 10px; font-size: 1.375rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.35; }
.ye-empty ol { margin: 0; padding-left: 1.2em; color: var(--c-text-2); font-size: .9375rem; }
.ye-head-card { padding: 18px; margin: 0 0 12px; }
.ye-head-card__k { margin: 0; font-size: .9375rem; font-weight: 700; color: var(--c-text-2); }
.ye-head-card__v { margin: 4px 0 0; font-size: clamp(2.25rem, 1.8rem + 2.2vw, 3rem); line-height: 1.1; font-weight: 800; letter-spacing: -.045em; overflow-wrap: anywhere; }
.ye-head-card.is-refund .ye-head-card__v { color: var(--c-accent); }
.ye-head-card.is-pay .ye-head-card__v { color: var(--c-bad); }
.ye-head-card__sub { margin: 6px 0 0; color: var(--c-text-2); font-size: .9375rem; }
.ye-head-card__words { margin: 2px 0 0; color: var(--c-text-3); font-size: .8125rem; }
.ye-kv { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px dashed var(--c-line-strong); font-size: .9375rem; }
.ye-kv dt { color: var(--c-text-2); }
.ye-kv dd { margin: 0; text-align: right; font-weight: 700; }
.ye-mode { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--c-accent-soft); font-size: .875rem; color: var(--c-text); }
.ye-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.ye-res-h { margin: 22px 0 8px; font-size: 1.125rem; font-weight: 800; letter-spacing: -.02em; }
.ye-bd { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--c-text); }
.ye-bd li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 0 8px; padding: 9px 0; border-bottom: 1px solid var(--c-line); font-size: .9375rem; }
.ye-bd__op { color: var(--c-text-3); font-weight: 700; text-align: center; }
.ye-bd__l { min-width: 0; }
.ye-bd__l b { font-weight: 600; }
.ye-bd__n { display: block; margin-top: 2px; font-size: .8125rem; color: var(--c-text-3); line-height: 1.45; }
.ye-bd__c { display: block; margin-top: 2px; font-size: .78125rem; }
.ye-bd__c a { display: inline-flex; align-items: center; min-height: 28px; }
.ye-bd__v { text-align: right; font-weight: 600; white-space: nowrap; }
.ye-bd li.is-sum { background: var(--c-surface-2); }
.ye-bd li.is-sum .ye-bd__l b, .ye-bd li.is-sum .ye-bd__v { font-weight: 800; }
.ye-tips { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ye-tip { padding: 12px 14px; border: 1px solid var(--c-line-strong); border-left: 4px solid var(--c-accent); border-radius: 2px; background: var(--c-surface); }
.ye-tip b { display: block; font-size: .9375rem; letter-spacing: -.01em; }
.ye-tip p { margin: 4px 0 0; font-size: .875rem; color: var(--c-text-2); line-height: 1.55; }
.ye-tip small { display: block; margin-top: 4px; font-size: .78125rem; color: var(--c-text-3); }
.ye-tip small .ye-bd__c { display: inline; }
.ye-flat { margin: 16px 0 0; padding: 14px; }
.ye-flat h3 { margin: 0 0 6px; font-size: 1rem; }
.ye-flat p { margin: 6px 0 0; font-size: .875rem; color: var(--c-text-2); }
.ye-dock { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 12px calc(var(--gutter) * -1) 0; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--c-line-strong); background: var(--c-surface); font-weight: 700; }
.ye-dock a { min-height: 44px; display: inline-flex; align-items: center; }
@media (min-width: 64rem) { .ye-dock { display: none; } }

/* ---- content sections and articles ---- */
.ye-sec { padding-top: 40px; }
.ye-sec > h2, .ye-art h2 { margin: 0 0 12px; font-size: 1.375rem; font-weight: 800; letter-spacing: -.025em; }
.ye-sec h3, .ye-art h3 { margin: 22px 0 6px; font-size: 1.0625rem; letter-spacing: -.015em; }
.ye-art p, .ye-art li, .ye-sec > p, .ye-sec > ul > li { max-width: 42rem; }
.ye-art { padding-block: 8px 24px; }
.ye-art > header h1 { margin: 22px 0 0; font-size: clamp(1.75rem, 1.2rem + 2.6vw, 2.75rem); line-height: 1.2; letter-spacing: -.035em; font-weight: 800; max-width: 22em; }
.ye-lead { margin: 12px 0 0; font-size: 1.125rem; color: var(--c-text-2); max-width: 42rem; }
.ye-art section { padding-top: 30px; }
.ye-art ul, .ye-art ol, .ye-sec ul { padding-left: 1.2em; }
.ye-art li, .ye-sec li { margin: 5px 0; }
.ye-list { list-style: none; padding-left: 0 !important; }
.ye-list li { margin: 0 0 10px; padding-left: 14px; border-left: 2px solid var(--c-line-strong); }
.ye-list b { display: block; }
.ye-check-list { list-style: none; padding-left: 0 !important; max-width: 46rem; }
.ye-check-list li { margin: 0 0 8px; padding: 8px 12px; border: 1px dashed var(--c-warn); border-radius: 2px; font-size: .9375rem; color: var(--c-text-2); }
.ye-check-list b { color: var(--c-warn); margin-right: 6px; }
.ye-basis { margin: 12px 0 0; font-size: .8125rem; color: var(--c-text-3); max-width: 46rem; }
.ye-q { margin: 12px 0; padding: 10px 14px; border-left: 3px solid var(--c-accent); background: var(--c-surface); border-radius: 0 8px 8px 0; color: var(--c-text); font-size: .9375rem; max-width: 42rem; }
.ye-q q { quotes: "\201C" "\201D"; }
.ye-q cite { display: block; margin-top: 4px; font-style: normal; font-size: .8125rem; color: var(--c-text-3); }
.ye-tablewrap { margin: 12px 0; overflow-x: auto; border-top: 2px solid var(--c-text); max-width: 46rem; }
.ye-table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.5; }
.ye-table th, .ye-table td { padding: 10px 12px 10px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--c-line); }
.ye-table th { font-weight: 700; color: var(--c-text-2); font-size: .875rem; }
.ye-table td:first-child { font-weight: 600; }
@media (max-width: 39.99rem) {
  .ye-tablewrap:not(.ye-tablewrap--ex) { border-top: 0; overflow: visible; }
  .ye-table thead { display: none; }
  .ye-table, .ye-table tbody, .ye-table tr, .ye-table td { display: block; width: 100%; }
  .ye-table tr { padding: 10px 0; border-top: 1px solid var(--c-line); }
  .ye-table tbody tr:first-child { border-top: 2px solid var(--c-text); }
  .ye-table td { padding: 2px 0; border: 0; }
  .ye-table td:not(:first-child)::before { content: attr(data-label) ": "; color: var(--c-text-3); font-size: .8125rem; font-weight: 700; }
}
.ye-ex { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.ye-ex th, .ye-ex td { padding: 8px 0; border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: top; font-weight: 500; }
.ye-ex thead th { font-size: .8125rem; color: var(--c-text-3); font-weight: 700; }
.ye-ex td { text-align: right; white-space: nowrap; padding-left: 12px; font-weight: 600; }
.ye-ex td small { display: block; font-weight: 400; font-size: .75rem; }
.ye-ex tr.is-sum th, .ye-ex tr.is-sum td { font-weight: 800; background: var(--c-surface-2); }
.ye-ex__note { display: block; font-size: .8125rem; color: var(--c-text-3); font-weight: 400; }
.ye-steps { margin: 12px 0; padding: 0; list-style: none; counter-reset: yestep; max-width: 42rem; }
.ye-steps > li { position: relative; margin: 0; padding: 0 0 18px 48px; counter-increment: yestep; }
.ye-steps > li::before { content: counter(yestep); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 28px; height: 28px; border: 1.5px solid var(--c-text-2); border-radius: 50%; color: var(--c-text-2); font-size: .875rem; font-weight: 700; }
.ye-steps > li::after { content: ""; position: absolute; left: 13px; top: 34px; bottom: 4px; width: 0; border-left: 1.5px dashed var(--c-line-strong); }
.ye-steps > li:last-child::after { display: none; }
.ye-steps b { display: block; margin-bottom: 2px; }
.ye-en { margin-top: 28px; padding: 14px 16px; border: 1px solid var(--c-line-strong); border-radius: 2px; background: var(--c-surface); max-width: 42rem; }
.ye-en h2 { margin: 0 0 6px; font-size: 1rem; }
.ye-en p { margin: 6px 0; font-size: .96875rem; }
.ye-faq details { border-bottom: 1px solid var(--c-line); max-width: 42rem; }
.ye-faq summary { display: flex; align-items: center; min-height: 48px; padding: 6px 0; cursor: pointer; font-weight: 600; letter-spacing: -.01em; }
.ye-faq details > div { padding: 0 0 12px; color: var(--c-text-2); }
.ye-faq details > div p { margin: 6px 0; }
.ye-cards { display: grid; gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
@media (min-width: 40rem) { .ye-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .ye-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ye-card-link { display: block; height: 100%; padding: 14px 14px 12px; color: var(--c-text) !important; text-decoration: none; }
.ye-card-link:hover { box-shadow: 0 0 0 1px var(--c-accent); }
.ye-card-link b { display: block; font-size: 1.0625rem; letter-spacing: -.015em; line-height: 1.35; }
.ye-card-link span { display: block; margin-top: 4px; font-size: .9375rem; color: var(--c-text-2); }
.ye-card-link .p3-art { width: 44px; height: 44px; margin-bottom: 8px; }
.ye-artgrid { display: block; }
.ye-aside { display: none; }
@media (min-width: 64rem) {
  .ye-artgrid { display: grid; grid-template-columns: minmax(0, 46rem) 16rem; gap: 56px; justify-content: start; align-items: start; }
  .ye-aside { display: block; position: sticky; top: 16px; padding-top: 22px; }
  .ye-aside h2 { margin: 0 0 6px; font-size: .875rem; color: var(--c-text-3); font-weight: 700; letter-spacing: 0; }
  .ye-aside ol { margin: 0 0 16px; padding: 0; list-style: none; border-top: 2px solid var(--c-text); }
  .ye-aside li a { display: flex; align-items: center; min-height: 44px; padding: 4px 0; border-bottom: 1px solid var(--c-line); color: var(--c-text-2); text-decoration: none; font-size: .9375rem; line-height: 1.4; }
  .ye-aside li a:hover { color: var(--c-accent); }
  .ye-aside .ye-btn { width: 100%; }
}
.ye-sources { font-size: .875rem; color: var(--c-text-2); padding-top: 36px; }
.ye-sources ol { padding-left: 1.4em; max-width: 52rem; }
.ye-sources li { margin: 0 0 10px; }
.ye-sources q { quotes: "\201C" "\201D"; }
.ye-src__note { color: var(--c-text-3); }
.ad-slot { margin: 28px 0; text-align: center; }
.ad-slot[hidden] { display: none; }

/* ---- dates and checklist ---- */
.ye-dates { margin: 12px 0; padding: 0; list-style: none; max-width: 46rem; border-top: 2px solid var(--c-text); }
.ye-date { display: grid; grid-template-columns: 1fr; gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--c-line); }
@media (min-width: 40rem) { .ye-date { grid-template-columns: 11rem minmax(0, 1fr); } }
.ye-date__d { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-weight: 800; letter-spacing: -.015em; }
.ye-date__none { color: var(--c-text-2); font-weight: 700; }
.ye-date__b b { display: block; font-size: 1.03125rem; letter-spacing: -.015em; }
.ye-date__b p { margin: 4px 0 0; font-size: .9375rem; color: var(--c-text-2); }
.ye-date__b small { display: block; margin-top: 4px; font-size: .8125rem; color: var(--c-text-3); }
.ye-badge { display: inline-flex; align-items: center; min-height: 24px; padding: 0 7px; border: 1px solid currentColor; border-radius: 2px; font-size: .78125rem; font-weight: 700; white-space: nowrap; }
.ye-badge--check { color: var(--c-warn); background: var(--c-warn-soft); border-style: dashed; }
.ye-docs { margin: 6px 0 0; padding: 0 !important; list-style: none; max-width: 46rem; }
.ye-docs li { margin: 0; border-bottom: 1px solid var(--c-line); }
.ye-check--doc input:checked ~ .ye-check__t { color: var(--c-text-3); text-decoration: line-through; text-decoration-thickness: 1px; }

/* ---- footer ---- */
.ye-foot { margin-top: 48px; padding: 24px 0 36px; border-top: 1px solid var(--c-line); color: var(--c-text-2); font-size: .875rem; }
.ye-foot p { margin: 0 0 10px; max-width: 52rem; }
.ye-foot ul { display: flex; flex-wrap: wrap; gap: 0 16px; margin: 0 0 10px; padding: 0; list-style: none; }
.ye-foot a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
.ye-toast { position: fixed; left: 50%; bottom: 20px; z-index: 20; transform: translateX(-50%); max-width: calc(100vw - 32px); padding: 10px 16px; border-radius: 10px; background: var(--c-text); color: var(--c-bg); font-size: .9375rem; animation: p3-in 160ms both; }

/* ---- print: the result only (calculator) or the dates and checklist; never ads ---- */
@media print {
  .p3 { --c-bg: #fff; --c-surface: #fff; --c-surface-2: #f2f2f2; --c-text: #000; --c-text-2: #222; --c-text-3: #444; --c-line: #bbb; --c-line-strong: #666; --c-accent: #000; background: #fff; color: #000; font-size: 10.5pt; }
  .ye-head, .ye-foot, .ye-nav, .ad-slot, ins.adsbygoogle, .ye-hero .p3-art, .ye-dock, .ye-tools, .ye-cards, .ye-aside, .ye-formtools { display: none !important; }
  .ye-wrap { max-width: none; padding-inline: 0; }
  body.ye-calc .ye-side, body.ye-calc .ye-sec, body.ye-calc .ye-en, body.ye-calc .ye-sources, body.ye-calc .ye-hero__lead { display: none !important; }
  body.ye-calc .ye-app { display: block; }
  .ye-result { position: static; max-height: none; overflow: visible; }
  .ye-bd li, .ye-tip, .ye-date { break-inside: avoid; }
}
@media (prefers-reduced-motion: reduce) { .ye-meter .p3-bar__fill, .ye-toast { transition: none !important; animation: none !important; } }
