/* 나이 계산기: https://obyeollab.com/age/ . 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 === */

/* ================= Age calculator ================= */
.p3 {
  --c-accent: #a3345b; --c-accent-hover: #822748; --c-accent-soft: #f8e8ee; --c-on-accent: #ffffff; --c-focus: var(--c-accent);
  --c-ok: #13753d; --c-bad: #b3261e; --c-warn: #8a5a00; --c-warn-soft: #f3eddf;
  --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;
}
[data-svc="age"] { --c-tint: #f1c6d4; }
@media (prefers-color-scheme: dark) {
  .p3 { --c-accent: #f0a3bf; --c-accent-hover: #f7c3d6; --c-accent-soft: #3a1f2a; --c-on-accent: #151412; --c-ok: #6fd69a; --c-bad: #ff8a8a; --c-warn: #f2c063; --c-warn-soft: #33270f; }
  [data-svc="age"] { --c-tint: #5e3342; }
}
.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; }
.ag-wrap { width: 100%; max-width: 74rem; margin-inline: auto; padding-inline: var(--gutter); }
.ag-small { font-size: .875rem; color: var(--c-text-3); max-width: 46rem; }

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

/* ---- hero and the notice ---- */
.ag-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding-block: 28px 16px; }
.ag-kicker { margin: 0 0 6px; font-size: .875rem; font-weight: 700; color: var(--c-accent); letter-spacing: -.005em; }
.ag-hero h1 { margin: 0; font-size: clamp(2rem, 1.3rem + 3.2vw, 3.5rem); line-height: 1.15; letter-spacing: -.04em; font-weight: 800; }
.ag-hero__lead { max-width: 42rem; margin: 14px 0 0; color: var(--c-text-2); font-size: 1.0625rem; }
.ag-hero .p3-art { width: 104px; height: 104px; margin-top: 6px; display: none; }
@media (min-width: 40rem) { .ag-hero .p3-art { display: block; } }
.ag-asof { margin: 10px 0 0; font-size: .8125rem; color: var(--c-text-3); max-width: 52rem; }
.ag-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; }
.ag-safe__mark { width: 22px; height: 22px; margin-top: 2px; color: var(--c-accent); }
.ag-safe p { margin: 0; font-size: .9375rem; line-height: 1.6; }
.ag-safe p + p { grid-column: 2; color: var(--c-text-2); font-size: .875rem; }

/* ---- the calculator: form + result ---- */
.ag-app { display: block; padding-bottom: 8px; }
.ag-app__top { display: grid; gap: 20px; align-items: start; }
@media (min-width: 64rem) { .ag-app__top { grid-template-columns: 25rem minmax(0, 1fr); gap: 32px; } }
.ag-side { min-width: 0; display: grid; gap: 12px; }
.ag-form { padding: 16px; display: block; }
.ag-form__h { margin: 0; font-size: 1.125rem; font-weight: 800; letter-spacing: -.02em; }
.ag-field { display: block; margin: 14px 0 0; }
.ag-field__l { display: block; margin: 0 0 6px; font-size: .9375rem; font-weight: 600; color: var(--c-text); line-height: 1.4; }
.ag-field__h { display: block; margin: 6px 0 0; font-size: .8125rem; color: var(--c-text-3); line-height: 1.5; }
.ag-unit { position: relative; display: block; }
.ag-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; }
.ag-unit .ag-in { padding-right: 52px; text-align: right; }
select.ag-in { font-size: 1rem; font-weight: 500; }
.ag-in:focus { border-color: var(--c-accent); box-shadow: 0 0 0 1px var(--c-accent); outline: none; }
.ag-in[aria-invalid="true"] { border-color: var(--c-bad); box-shadow: 0 0 0 1px var(--c-bad); }
.ag-unit__u { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--c-text-2); font-size: .9375rem; pointer-events: none; }
.ag-err { display: block; margin: 6px 0 0; color: var(--c-bad); font-size: .875rem; font-weight: 600; }
.ag-two { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 10px; }
.ag-two .ag-field { margin-top: 14px; }
.ag-g__note { margin: 14px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--c-surface-2); color: var(--c-text-2); font-size: .875rem; }
.ag-radios { margin: 16px 0 0; padding: 0; border: 0; min-width: 0; }
.ag-radios > legend { padding: 0; margin: 0 0 6px; font-weight: 600; font-size: .9375rem; }
.ag-radios .ag-field__h { margin: 0 0 8px; }
.ag-seg { display: grid; gap: 0; border: 1px solid var(--c-line-strong); border-radius: 12px; overflow: hidden; }
.ag-seg--2 { grid-template-columns: 1fr 1fr; }
.ag-seg--4 { grid-template-columns: 1fr 1fr; }
@media (min-width: 30rem) { .ag-seg--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ag-seg__o { position: relative; display: flex; min-width: 0; }
.ag-seg__o input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.ag-seg__o span { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; padding: 6px 8px; text-align: center; font-size: .9375rem; font-weight: 600; color: var(--c-text-2); background: var(--c-surface); line-height: 1.3; box-shadow: inset 1px 1px 0 var(--c-line-strong); }
.ag-seg__o input:checked + span { background: var(--c-accent); color: var(--c-on-accent); }
.ag-seg__o input:focus-visible + span { outline: 2px solid var(--c-focus); outline-offset: -4px; }
.ag-seg { box-shadow: none; }
.ag-seg .ag-seg__o span { margin: -1px 0 0 -1px; }
.ag-privacy { margin: 14px 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; }
.ag-formtools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.ag-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; text-align: center; line-height: 1.3; }
.ag-btn:hover { border-color: var(--c-accent); color: var(--c-accent) !important; }
.ag-btn:disabled { opacity: .6; cursor: progress; }
.ag-btn--primary { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-on-accent) !important; }
.ag-btn--primary:hover { background: var(--c-accent-hover); border-color: var(--c-accent-hover); color: var(--c-on-accent) !important; }
.ag-btn--quiet { border-color: transparent; background: transparent; color: var(--c-text-2) !important; }
.ag-btn--sm { min-height: 44px; padding: 0 14px; font-size: .9375rem; }


/* ---- result ---- */
.ag-result { min-width: 0; }
.ag-block { margin-top: 18px; }
.ag-res-h { margin: 0 0 8px; font-size: 1.125rem; font-weight: 800; letter-spacing: -.02em; }
.ag-kv { display: grid; margin: 0; border-top: 2px solid var(--c-text); }
.ag-kv__r { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; padding: 8px 0; border-bottom: 1px solid var(--c-line); font-size: .9375rem; }
.ag-kv dt { color: var(--c-text-2); min-width: 0; }
.ag-kv dt small { display: block; font-size: .8125rem; color: var(--c-text-3); line-height: 1.45; font-weight: 400; }
.ag-kv dd { margin: 0; text-align: right; font-weight: 700; white-space: nowrap; }
.ag-kv__r.is-sum dt, .ag-kv__r.is-total dt { color: var(--c-text); font-weight: 700; }
.ag-kv__r.is-total { background: var(--c-surface-2); }
.ag-kv__r.is-total dd { font-weight: 800; }
.ag-note { margin: 8px 0 0; font-size: .8125rem; color: var(--c-text-3); line-height: 1.5; max-width: 46rem; }
.ag-basis { margin: 8px 0 0; font-size: .8125rem; color: var(--c-text-3); max-width: 46rem; }
.ag-basis a { display: inline-block; min-height: 24px; }
.ag-table--win tr.is-chosen th, .ag-table--win tr.is-chosen td { background: var(--c-accent-soft); }
.ag-table th small { display: block; font-weight: 400; font-size: .8125rem; color: var(--c-text-3); }
.ag-save { font-weight: 800; color: var(--c-accent); }
.ag-na { color: var(--c-text-3); }
.ag-steps { margin: 12px 0; padding: 0; list-style: none; counter-reset: ctstep; max-width: 44rem; }
.ag-steps > li { position: relative; margin: 0; padding: 0 0 16px 44px; counter-increment: ctstep; }
.ag-steps > li::before { content: counter(ctstep); 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; }
.ag-steps > li::after { content: ""; position: absolute; left: 13px; top: 34px; bottom: 4px; width: 0; border-left: 1.5px dashed var(--c-line-strong); }
.ag-steps > li:last-child::after { display: none; }
.ag-steps b { display: block; margin-bottom: 2px; }
.ag-formula .ag-steps > li { font-size: .9375rem; overflow-wrap: anywhere; }
.ag-status { position: fixed; left: 50%; bottom: 20px; z-index: 20; transform: translateX(-50%); max-width: calc(100vw - 32px); margin: 0; padding: 10px 16px; border-radius: 10px; background: var(--c-text); color: var(--c-bg); font-size: .9375rem; animation: p3-in 160ms both; }

/* ---- tables ---- */
.ag-tablewrap { margin: 8px 0; overflow-x: auto; border-top: 2px solid var(--c-text); max-width: 52rem; }
.ag-table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.5; }
.ag-table th, .ag-table td { padding: 9px 10px 9px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--c-line); }
.ag-table thead th { font-weight: 700; color: var(--c-text-2); font-size: .8125rem; }
.ag-table tbody th { font-weight: 700; }
.ag-table td { font-variant-numeric: tabular-nums; }
@media (max-width: 47.99rem) {
  .ag-tablewrap { border-top: 0; overflow: visible; }
  .ag-table thead { display: none; }
  .ag-table, .ag-table tbody, .ag-table tr, .ag-table th, .ag-table td { display: block; width: 100%; }
  .ag-table tr { padding: 10px 0; border-top: 1px solid var(--c-line); }
  .ag-table tbody tr:first-child { border-top: 2px solid var(--c-text); }
  .ag-table th, .ag-table td { padding: 2px 0; border: 0; }
  .ag-table tr.is-chosen { background: var(--c-accent-soft); padding-inline: 8px; }
  .ag-table td::before { content: attr(data-label) ": "; color: var(--c-text-3); font-size: .8125rem; font-weight: 700; }
}

/* ---- content sections and articles ---- */
.ag-sec { padding-top: 40px; }
.ag-sec > h2, .ag-art h2 { margin: 0 0 12px; font-size: 1.375rem; font-weight: 800; letter-spacing: -.025em; }
.ag-sec h3, .ag-art h3 { margin: 22px 0 6px; font-size: 1.0625rem; letter-spacing: -.015em; }
.ag-art p, .ag-art li, .ag-sec > p, .ag-sec > ul > li { max-width: 44rem; }
.ag-art { padding-block: 8px 24px; min-width: 0; }
.ag-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; }
.ag-lead { margin: 12px 0 18px; font-size: 1.125rem; color: var(--c-text-2); max-width: 44rem; }
.ag-art section { padding-top: 30px; }
.ag-art ul, .ag-art ol, .ag-sec ul { padding-left: 1.2em; }
.ag-art li, .ag-sec li { margin: 5px 0; }
.ag-list { list-style: none; padding-left: 0 !important; max-width: 46rem; }
.ag-list li { margin: 0 0 10px; padding-left: 14px; border-left: 2px solid var(--c-line-strong); }
.ag-list b { display: block; }
.ag-check-list { list-style: none; padding-left: 0 !important; max-width: 46rem; }
.ag-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); background: var(--c-surface); }
.ag-check-list b { color: var(--c-warn); margin-right: 6px; }
.ag-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: 44rem; overflow-wrap: anywhere; }
.ag-q q { quotes: "\201C" "\201D"; }
.ag-q cite { display: block; margin-top: 4px; font-style: normal; font-size: .8125rem; color: var(--c-text-3); }
.ag-en { margin-top: 28px; padding: 14px 16px; border: 1px solid var(--c-line-strong); border-radius: 2px; background: var(--c-surface); max-width: 44rem; }
.ag-en h2 { margin: 0 0 6px; font-size: 1rem; }
.ag-en p { margin: 6px 0; font-size: .96875rem; }
.ag-faq details { border-bottom: 1px solid var(--c-line); max-width: 44rem; }
.ag-faq summary { display: flex; align-items: center; min-height: 48px; padding: 6px 0; cursor: pointer; font-weight: 600; letter-spacing: -.01em; }
.ag-faq details > div { padding: 0 0 12px; color: var(--c-text-2); }
.ag-faq details > div p { margin: 6px 0; }
.ag-cards { display: grid; gap: 12px; margin: 28px 0 0; padding: 0 !important; list-style: none; }
@media (min-width: 40rem) { .ag-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .ag-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ag-cards li { margin: 0; }
.ag-card-link { display: block; height: 100%; padding: 14px 14px 12px; color: var(--c-text) !important; text-decoration: none; }
.ag-card-link:hover { box-shadow: 0 0 0 1px var(--c-accent); }
.ag-card-link b { display: block; font-size: 1.0625rem; letter-spacing: -.015em; line-height: 1.35; }
.ag-card-link span { display: block; margin-top: 4px; font-size: .9375rem; color: var(--c-text-2); }
.ag-card-link .p3-art { width: 44px; height: 44px; margin-bottom: 8px; }
.ag-artgrid { display: block; }
.ag-aside { display: none; }
@media (min-width: 64rem) {
  .ag-artgrid { display: grid; grid-template-columns: minmax(0, 48rem) 16rem; gap: 56px; justify-content: start; align-items: start; }
  .ag-aside { display: block; position: sticky; top: 16px; padding-top: 22px; }
  .ag-aside h2 { margin: 0 0 6px; font-size: .875rem; color: var(--c-text-3); font-weight: 700; letter-spacing: 0; }
  .ag-aside ol { margin: 0 0 16px; padding: 0; list-style: none; border-top: 2px solid var(--c-text); }
  .ag-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; }
  .ag-aside li a:hover { color: var(--c-accent); }
  .ag-aside .ag-btn { width: 100%; }
}
.ag-sources { font-size: .875rem; color: var(--c-text-2); padding-top: 36px; }
.ag-sources ol { padding-left: 1.4em; max-width: 52rem; }
.ag-sources li { margin: 0 0 10px; overflow-wrap: anywhere; }
.ag-sources q { quotes: "\201C" "\201D"; }
.ag-sources a { display: inline-block; min-height: 24px; }
.ag-src__took { color: var(--c-text-2); }
.ag-src__note { color: var(--c-text-3); }
.ad-slot { margin: 28px 0; text-align: center; }
.ad-slot[hidden] { display: none; }

/* ---- print page ---- */
.ag-print-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 20px; }
.ag-print-top h1 { margin: 0; font-size: 1.75rem; letter-spacing: -.03em; }
.ag-print-body { max-width: 52rem; }

/* ---- footer ---- */
.ag-foot { margin-top: 48px; padding: 24px 0 36px; border-top: 1px solid var(--c-line); color: var(--c-text-2); font-size: .875rem; }
.ag-foot p { margin: 0 0 10px; max-width: 52rem; }
.ag-foot ul { display: flex; flex-wrap: wrap; gap: 0 16px; margin: 0 0 10px; padding: 0; list-style: none; }
.ag-foot a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }

/* ---- age calculator: date fields, language, result cards, table ---- */
.ag-lang { margin: 12px 0 0; }
.ag-lang label { display: block; margin: 0 0 6px; font-size: .9375rem; font-weight: 600; }
.ag-in--sel { font-size: 1rem; font-weight: 500; }
.ag-date { margin: 16px 0 0; padding: 0; border: 0; min-width: 0; }
.ag-date > legend { padding: 0; margin: 0 0 6px; font-size: .9375rem; font-weight: 600; }
.ag-dgrid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.ag-dp label { display: block; }
.ag-dp__l { display: block; margin: 0 0 4px; font-size: .8125rem; color: var(--c-text-3); }
.ag-dp .ag-in { text-align: center; padding-inline: 6px; }
.ag-ref { margin: 14px 0 0; }
.ag-ref > summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; color: var(--c-accent); font-weight: 600; font-size: .9375rem; }
.ag-check { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 8px 0 0; font-size: .9375rem; cursor: pointer; }
.ag-check input { width: 22px; height: 22px; flex: none; accent-color: var(--c-accent); }
.ag-ainotice { margin: 0 0 14px; padding: 10px 14px; border: 1px solid var(--c-warn); border-radius: 2px; background: var(--c-warn-soft); font-size: .9375rem; }
.ag-ainotice p { margin: 0; }
.ag-ainotice p + p { margin-top: 4px; }
.ag-linkbtn { min-height: 44px; padding: 0 6px; border: 0; background: none; color: var(--c-accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ag-empty { margin: 0; padding: 22px 18px; border: 1px dashed var(--c-line-strong); border-radius: 2px; color: var(--c-text-2); min-height: 9rem; }
.ag-asof + .ag-ages, .ag-ages { margin-top: 8px; }
.ag-ages { display: grid; gap: 10px; }
@media (min-width: 40rem) { .ag-ages { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ag-age--main { grid-column: 1 / -1; } }
.ag-age { padding: 14px 16px; margin: 0; }
.ag-age p { margin: 0; }
.ag-age__k { font-size: .9375rem; font-weight: 700; color: var(--c-text-2); }
.ag-age__v { margin-top: 2px !important; font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.25rem); line-height: 1.15; font-weight: 800; letter-spacing: -.03em; }
.ag-age--main .ag-age__v { font-size: clamp(2.75rem, 2rem + 4vw, 4.25rem); color: var(--c-accent); }
.ag-age__d { margin-top: 4px !important; font-size: .8125rem; color: var(--c-text-3); line-height: 1.5; }
.ag-dday { margin-left: 4px; color: var(--c-accent); white-space: nowrap; }
.ag-kv { margin-top: 14px; }
.ag-kv dd small { display: block; margin-top: 2px; font-size: .8125rem; font-weight: 400; color: var(--c-text-3); line-height: 1.5; white-space: normal; }
.ag-kv dd { white-space: normal; }
.ag-tools { margin: 18px 0 0; padding: 16px; }
.ag-tools h3 { margin: 0 0 8px; font-size: 1.0625rem; letter-spacing: -.015em; }
.ag-show { margin: 0; padding: 0; border: 0; min-width: 0; }
.ag-show > legend { padding: 0; margin: 0 0 2px; font-size: .9375rem; font-weight: 600; }
.ag-show { display: flex; flex-wrap: wrap; gap: 0 18px; }
.ag-show > legend { flex: 1 0 100%; }
.ag-tools__btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.ag-tools__ics { display: grid; gap: 8px; margin-top: 6px; }
@media (min-width: 40rem) { .ag-tools__ics { grid-template-columns: minmax(0, 1fr) auto; } }
.ag-table--age th[scope="row"] { min-width: 11rem; }
.ag-table--age th small { display: block; margin-top: 3px; font-weight: 400; font-size: .8125rem; color: var(--c-text-3); line-height: 1.5; }
.ag-table--age td.ag-basis { font-size: .8125rem; }
.ag-table--age td.ag-basis a { display: inline-block; min-height: 24px; }
.ag-table--age tr.is-yes td.ag-me { color: var(--c-ok); font-weight: 700; }
.ag-table--age tr.is-soon td.ag-me { font-weight: 700; }
.ag-table--age tr.is-ended td.ag-me { color: var(--c-text-3); }
.ag-table--age tr.is-yes th[scope="row"] { box-shadow: inset 3px 0 0 var(--c-ok); padding-left: 8px; }
.ag-table--age tr.is-soon th[scope="row"] { box-shadow: inset 3px 0 0 var(--c-accent); padding-left: 8px; }
.ag-check-flag { display: inline-block; padding: 0 6px; border: 1px dashed var(--c-warn); border-radius: 2px; color: var(--c-warn); font-size: .75rem; font-weight: 700; }
.ag-kind { display: inline-block; padding: 0 6px; border: 1px solid var(--c-line-strong); border-radius: 2px; color: var(--c-text-2); font-size: .75rem; font-weight: 700; }
.ag-table--wide { min-width: 0; }
.ag-app .ag-tablewrap { max-width: none; }
.ag-bullets { max-width: 44rem; }
.ag-bullets li { margin: 8px 0; }
@media (max-width: 47.99rem) { .ag-table--age tr.is-yes, .ag-table--age tr.is-soon { padding-inline: 8px; } .ag-table--age th[scope="row"] { min-width: 0; } .ag-table--age tr.is-yes th[scope="row"], .ag-table--age tr.is-soon th[scope="row"] { box-shadow: none; padding-left: 0; } }

/* ---- print: the result only (calculator) or the print page; never ads ---- */
@media print {
  .p3 { --c-bg: #fff; --c-surface: #fff; --c-surface-2: #f2f2f2; --c-accent-soft: #eee; --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; }
  .ag-head, .ag-foot, .ag-nav, .ad-slot, ins.adsbygoogle, .ag-hero .p3-art, .ag-tools, .ag-cards, .ag-aside, .ag-formtools, .ag-noprint, .ag-status { display: none !important; }
  .ag-wrap { max-width: none; padding-inline: 0; }
  body.ag-calc .ag-side, body.ag-calc .ag-sec, body.ag-calc .ag-en, body.ag-calc .ag-sources, body.ag-calc .ag-hero__lead { display: none !important; }
  body.ag-calc .ag-app__top { display: block; }
  .ag-table thead { display: table-header-group !important; }
  .ag-kv__r, .ag-table tr { break-inside: avoid; }
}
@media (prefers-reduced-motion: reduce) { .ag-status { animation: none !important; } }
