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

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

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

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

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

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

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

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

/* 청약 알리미 service rules. tools/build.js writes web/css/app.css = this file after the design-pass-3 kit block (tools/p3-kit.css, OBL-P3).
   Paper and ink; one accent (brick) for what you press and where you are; no gradients; motion on transform/opacity only. */

/* ---- tokens of this service (the kit supplies paper, ink, lines, fonts) ---- */
html { background: #f6f4ef; -webkit-text-size-adjust: 100%; }
@media (prefers-color-scheme: dark) { html { background: #151412; } }
.p3 {
  --c-accent: #a8431c; --c-accent-soft: #f6e8df; --c-on-accent: #ffffff;
  --c-ok: #1e6b3d; --c-bad: #b3261e; --c-warn: #7a5200; --c-warn-soft: #f6ecd2;
  --c-tint: #efc9b4;
  --gap: 16px;
}
@media (prefers-color-scheme: dark) {
  .p3 {
    --c-accent: #f0a07a; --c-accent-soft: #3a2519; --c-on-accent: #1d0f07;
    --c-ok: #7fcf9a; --c-bad: #f19b94; --c-warn: #e8c46c; --c-warn-soft: #33290f;
    --c-tint: #6b3f2a;
  }
}
[data-svc="apt"] { --c-tint: #efc9b4; }
@media (prefers-color-scheme: dark) { [data-svc="apt"] { --c-tint: #6b3f2a; } }

/* ---- base ---- */
body.apt { margin: 0; background: var(--c-bg); color: var(--c-text); font-family: var(--font); font-size: 1rem; line-height: 1.6; min-width: 320px; }
.apt *, .apt *::before, .apt *::after { box-sizing: border-box; }
.apt a { color: var(--c-accent); text-underline-offset: 3px; }
.apt a:hover { text-decoration-thickness: 2px; }
.apt :focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; border-radius: 2px; }
.apt h1, .apt h2, .apt h3 { margin: 0; font-weight: 700; line-height: 1.25; }
.apt p { margin: 0; }
.apt ul, .apt ol { margin: 0; padding: 0; list-style: none; }
.apt button { font: inherit; color: inherit; }
.apt table { border-collapse: collapse; }
.a-wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 16px; }
.a-skip { position: absolute; left: 8px; top: -60px; z-index: 20; padding: 12px 16px; background: var(--c-text); color: var(--c-bg); border-radius: 4px; }
.a-skip:focus { top: 8px; }
.a-visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.a-muted { color: var(--c-text-3); }

/* ---- header ---- */
.a-head { border-bottom: 1px solid var(--c-line); background: var(--c-surface); }
.a-head__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.a-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; }
.a-brand .p3-art { width: 34px; height: 34px; }
.a-brand small { font-weight: 400; color: var(--c-text-3); font-size: .8125rem; letter-spacing: 0; }
.a-head__tools { display: flex; align-items: center; gap: 4px; }
@media (max-width: 480px) { .a-brand small { display: none; } }
.a-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; white-space: nowrap; color: var(--c-text-2) !important; text-decoration: none; font-size: .9375rem; }
.a-link:hover { color: var(--c-accent) !important; text-decoration: underline; }
.a-lang { min-height: 44px; min-width: 44px; padding: 0 8px; border: 1px solid var(--c-line-strong); border-radius: 10px; background: var(--c-surface); color: var(--c-text); font-size: .875rem; }
.a-sub { border-bottom: 1px solid var(--c-line); background: var(--c-bg); }
.a-sub__in { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.a-sub a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--c-text-2); text-decoration: none; font-size: .9375rem; white-space: nowrap; border-bottom: 3px solid transparent; }
.a-sub a:hover { color: var(--c-accent); }
.a-sub a[aria-current="page"] { color: var(--c-text); border-bottom-color: var(--c-accent); font-weight: 600; }

/* ---- hero, disclaimer, source line ---- */
.a-hero { padding: 28px 0 8px; }
.a-hero h1 { font-size: clamp(1.875rem, 1.25rem + 3.1vw, 3.375rem); line-height: 1.17; letter-spacing: -.035em; max-width: 20ch; }
.a-hero .a-lead { margin-top: 12px; color: var(--c-text-2); font-size: 1.0625rem; max-width: 40rem; }
.a-disclaimer { margin-top: 18px; display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-left: 6px solid var(--c-accent); }
.a-disclaimer strong { display: block; font-size: 1.0625rem; letter-spacing: -.01em; }
.a-disclaimer span { display: block; margin-top: 2px; font-size: .9375rem; color: var(--c-text-2); }
.a-source { margin-top: 10px; min-height: 1.5em; font-size: .875rem; color: var(--c-text-3); font-variant-numeric: tabular-nums; }
.a-source a { color: inherit; }
.a-banner { margin-top: 12px; padding: 12px 14px; border: 1px solid var(--c-warn); border-radius: 2px; background: var(--c-warn-soft); color: var(--c-text); font-size: .9375rem; }
.a-banner[hidden] { display: none; }
.a-banner strong { color: var(--c-warn); }

/* ---- layout: lists left, calendar and score on the right from 1000px ---- */
.a-main { padding-bottom: 40px; }
.a-view-switch { display: flex; gap: 0; margin: 18px 0 4px; border: 1px solid var(--c-line-strong); border-radius: 10px; overflow: hidden; width: max-content; max-width: 100%; }
.a-view-switch button { min-height: 44px; min-width: 96px; padding: 0 16px; border: 0; background: var(--c-surface); cursor: pointer; font-weight: 600; color: var(--c-text-2); }
.a-view-switch button[aria-pressed="true"] { background: var(--c-text); color: var(--c-bg); }
.a-grid { display: block; margin-top: 8px; }
html[data-state="loading"] .a-grid { min-height: 100svh; }
.a-col--side { display: none; }
.a-grid[data-view="cal"] .a-col--lists > :not(.a-filters) { display: none; }
.a-grid[data-view="cal"] .a-col--side { display: block; }
.a-grid[data-view="cal"] .a-col--lists > .a-filters { display: block; }
@media (min-width: 1000px) {
  .a-view-switch { display: none; }
  .a-grid, .a-grid[data-view="cal"] { display: grid; grid-template-columns: minmax(0, 1fr) 22.5rem; gap: 32px; align-items: start; }
  .a-grid .a-col--lists > :not(.a-filters) { display: revert; }
  .a-col--side, .a-grid[data-view="cal"] .a-col--side { display: block; }
}

/* ---- filters ---- */
.a-filters { margin-top: 12px; }
.a-filters__toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 0 16px; border: 1px solid var(--c-line-strong); border-radius: 10px; background: var(--c-surface); cursor: pointer; font-weight: 700; text-align: left; }
.a-filters__toggle .a-count { min-width: 28px; height: 28px; padding: 0 8px; display: inline-grid; place-items: center; border-radius: 14px; background: var(--c-surface-3); font-size: .8125rem; font-variant-numeric: tabular-nums; }
.a-filters__toggle[data-active="true"] .a-count { background: var(--c-accent); color: var(--c-on-accent); }
.a-filters__toggle::after { content: ""; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin: -4px 4px 0 auto; transition: transform var(--t-mid, 180ms); flex: none; }
.a-filters__toggle[aria-expanded="true"]::after { transform: rotate(-135deg); margin-top: 4px; }
.a-filters__body { margin-top: 8px; padding: 14px 16px 16px; }
.a-filters:not([data-open="true"]) .a-filters__body { display: none; }
.a-fgroup { margin: 0 0 14px; padding: 0; border: 0; min-width: 0; }
.a-fgroup legend { padding: 0; margin-bottom: 6px; font-size: .8125rem; font-weight: 700; color: var(--c-text-2); letter-spacing: 0; }
.a-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.a-chip { min-height: 44px; padding: 0 14px; border: 1px solid var(--c-line-strong); border-radius: 22px; background: var(--c-surface); color: var(--c-text); cursor: pointer; font-size: .9375rem; }
.a-chip[aria-pressed="true"] { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-on-accent); font-weight: 600; }
.a-chip:not([aria-pressed="true"]):hover { border-color: var(--c-text); }
.a-search { display: block; width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--c-line-strong); border-radius: 10px; background: var(--c-bg); color: var(--c-text); font: inherit; }
.a-search::placeholder { color: var(--c-text-3); }
.a-freset { min-height: 44px; padding: 0 16px; border: 1px solid var(--c-line-strong); border-radius: 10px; background: transparent; cursor: pointer; font-weight: 600; }
.a-filters__note { margin-top: 8px; font-size: .8125rem; color: var(--c-text-3); }

/* ---- summary and lists ---- */
.a-summary { margin: 14px 0 0; min-height: 1.6em; font-size: .9375rem; color: var(--c-text-2); }
.a-sec { margin-top: 36px; }
.a-sec__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.a-sec__head h2 { font-size: 1.25rem; letter-spacing: -.02em; }
.a-sec__head h2 .a-n { margin-left: 6px; font-weight: 400; color: var(--c-text-3); font-variant-numeric: tabular-nums; }
.a-sec__sub { font-size: .8125rem; color: var(--c-text-3); }
.a-list { margin-top: 12px; display: grid; gap: 10px; }
.a-more { margin-top: 12px; min-height: 44px; padding: 0 18px; border: 1px solid var(--c-line-strong); border-radius: 10px; background: var(--c-surface); cursor: pointer; font-weight: 600; }
.a-empty { margin-top: 12px; padding: 16px; border: 1px dashed var(--c-line-strong); border-radius: 2px; color: var(--c-text-2); }
.a-done > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 700; font-size: 1.0625rem; }

.a-card { display: grid; grid-template-columns: 68px minmax(0, 1fr) 44px; gap: 12px; align-items: start; padding: 12px; }
.a-stub { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 68px; padding: 6px 4px; border-radius: 6px; text-align: center; line-height: 1.15; border: 2px solid var(--c-accent); font-variant-numeric: tabular-nums; }
.a-stub b { font-size: 1.0625rem; letter-spacing: -.02em; white-space: nowrap; }
.a-stub span { margin-top: 3px; font-size: .75rem; font-weight: 600; }
.a-stub--open { background: var(--c-accent); color: var(--c-on-accent); }
.a-stub--soon { background: transparent; color: var(--c-accent); }
.a-stub--announce { background: var(--c-accent-soft); color: var(--c-accent); border-style: dashed; }
.a-stub--done { background: var(--c-surface-2); color: var(--c-text-2); border-color: var(--c-line-strong); border-style: dotted; }
.a-card__body { min-width: 0; }
.a-card__title { font-size: 1.0625rem; letter-spacing: -.015em; }
.a-card__title a { color: var(--c-text); text-decoration: none; }
.a-card__title a:hover { color: var(--c-accent); text-decoration: underline; }
.a-card__meta { margin-top: 2px; font-size: .8125rem; color: var(--c-text-3); }
.a-card__dates { margin-top: 6px; font-size: .9375rem; color: var(--c-text-2); font-variant-numeric: tabular-nums; }
.a-card__dates b { color: var(--c-text); }
.a-dd { display: inline-block; margin-right: 12px; }
.a-now { display: inline-block; margin-top: 6px; padding: 1px 8px; border: 1px solid var(--c-accent); border-radius: 2px; color: var(--c-accent); font-size: .8125rem; font-weight: 700; }
.a-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.a-tag { padding: 0 6px; border: 1px solid var(--c-line-strong); border-radius: 2px; font-size: .75rem; color: var(--c-text-2); line-height: 1.6; }
.a-star { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; cursor: pointer; color: var(--c-text-3); }
.a-star svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.a-star[aria-pressed="true"] { color: var(--c-accent); }
.a-star[aria-pressed="true"] svg { fill: currentColor; }
.a-star:hover { background: var(--c-surface-2); }

/* ---- calendar ---- */
.a-panel { padding: 14px 14px 16px; margin-top: 12px; }
.a-panel h2 { font-size: 1.125rem; letter-spacing: -.02em; }
.a-cal__bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 6px 0 4px; }
.a-cal__bar h2 { flex: 1; text-align: center; }
.a-cal__nav { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--c-line-strong); border-radius: 10px; background: var(--c-surface); cursor: pointer; }
.a-cal__nav[disabled] { opacity: .35; cursor: default; }
.a-cal__nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.a-cal__legend { display: flex; gap: 14px; justify-content: center; font-size: .8125rem; color: var(--c-text-2); margin-bottom: 6px; }
.a-cal__grid { width: 100%; table-layout: fixed; }
.a-cal__grid th { padding: 4px 0; font-size: .75rem; font-weight: 600; color: var(--c-text-3); text-align: center; }
.a-cal__grid td { padding: 1px; }
.a-day { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 1px; width: 100%; min-height: 56px; padding: 3px 0; border: 1px solid transparent; border-radius: 6px; background: transparent; cursor: pointer; font-size: .875rem; font-variant-numeric: tabular-nums; }
.a-day:hover { background: var(--c-surface-2); }
.a-day[data-out="true"] { color: var(--c-text-3); }
.a-day[data-today="true"] .a-d { border-bottom: 2px solid var(--c-accent); font-weight: 700; }
.a-day[aria-pressed="true"] { border-color: var(--c-accent); background: var(--c-accent-soft); }
.a-mk { min-width: 30px; padding: 0 4px; border-radius: 2px; font-size: .75rem; line-height: 1.35; font-weight: 600; }
.a-mk--recv { background: var(--c-text); color: var(--c-bg); }
.a-mk--win { border: 1px solid var(--c-accent); color: var(--c-accent); line-height: 1.2; }
.a-leg { display: inline-flex; align-items: center; gap: 6px; }
.a-leg .a-mk { min-width: 0; }
.a-dayinfo { margin-top: 12px; min-height: 3em; font-size: .9375rem; }
.a-dayinfo h3 { font-size: 1rem; }
.a-dayinfo ul { margin-top: 6px; display: grid; gap: 2px; }
.a-dayinfo li a { display: inline-flex; align-items: center; min-height: 44px; }
.a-dayinfo h4 { margin: 10px 0 0; font-size: .8125rem; color: var(--c-text-2); }

/* ---- score estimator ---- */
.a-cal__body { min-height: 23.2rem; }
.a-score-tables { display: grid; gap: 0; }
.a-score__row { display: grid; gap: 4px; margin-top: 10px; }
.a-score__row label { font-size: .875rem; font-weight: 600; }
.a-score__row select { min-height: 44px; padding: 0 10px; border: 1px solid var(--c-line-strong); border-radius: 10px; background: var(--c-bg); color: var(--c-text); font: inherit; }
.a-score__out { margin-top: 12px; padding: 10px 12px; border: 1px solid var(--c-text); border-radius: 2px; background: var(--c-surface); font-variant-numeric: tabular-nums; min-height: 4.6em; }
.a-score__out b { font-size: 1.5rem; letter-spacing: -.03em; }
.a-score__out small { display: block; color: var(--c-text-2); font-size: .8125rem; }
.a-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border: 2px solid var(--c-accent); border-radius: 10px; background: var(--c-accent); color: var(--c-on-accent) !important; font-weight: 700; text-decoration: none !important; cursor: pointer; text-align: center; }
.a-btn:hover { filter: none; box-shadow: 0 0 0 2px var(--c-accent-soft); }
.a-btn--ghost { background: transparent; color: var(--c-accent) !important; }
.a-btn--ink { background: var(--c-text); border-color: var(--c-text); color: var(--c-bg) !important; }
.a-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.a-cite { margin-top: 10px; font-size: .8125rem; color: var(--c-text-3); }

/* ---- notice detail ---- */
.a-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 12px; color: var(--c-text-2) !important; text-decoration: none; font-weight: 600; }
.a-back:hover { color: var(--c-accent) !important; }
.a-detail h1 { margin-top: 4px; font-size: clamp(1.625rem, 1.2rem + 2.2vw, 2.5rem); letter-spacing: -.03em; line-height: 1.2; }
.a-detail__kind { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; }
.a-pill { padding: 0 10px; border: 1px solid var(--c-text); border-radius: 2px; font-size: .8125rem; font-weight: 600; line-height: 1.8; }
.a-detail__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.a-detail__cols { display: grid; gap: 24px; margin-top: 8px; }
@media (min-width: 900px) { .a-detail__cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; } }
.a-detail h2 { margin-top: 28px; font-size: 1.25rem; letter-spacing: -.02em; }
.a-facts { margin: 12px 0 0; display: grid; gap: 0; }
.a-facts div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--c-line); }
.a-facts dt { font-size: .875rem; color: var(--c-text-3); }
.a-facts dd { margin: 0; overflow-wrap: anywhere; }
.a-tl { margin-top: 14px; position: relative; }
.a-tl li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding-bottom: 18px; position: relative; }
.a-tl li::before { content: ""; position: absolute; left: 10px; top: 22px; bottom: 0; width: 2px; background: var(--c-line-strong); }
.a-tl li:last-child::before { display: none; }
.a-dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--c-line-strong); background: var(--c-bg); margin-top: 2px; }
.a-tl [data-st="past"] .a-dot { background: var(--c-text-3); border-color: var(--c-text-3); }
.a-tl [data-st="now"] .a-dot { background: var(--c-accent); border-color: var(--c-accent); box-shadow: 0 0 0 4px var(--c-accent-soft); }
.a-tl [data-st="next"] .a-dot { border-color: var(--c-accent); border-style: dashed; }
.a-tl__label { font-weight: 700; }
.a-tl__date { font-variant-numeric: tabular-nums; color: var(--c-text-2); }
.a-tl__st { display: inline-block; margin-left: 6px; padding: 0 6px; border: 1px solid currentColor; border-radius: 2px; font-size: .75rem; font-weight: 600; color: var(--c-text-3); }
.a-tl [data-st="now"] .a-tl__st { color: var(--c-accent); }
.a-tl [data-st="next"] .a-tl__st { color: var(--c-accent); border-style: dashed; }
.a-tl [data-st="past"] .a-tl__label { color: var(--c-text-2); font-weight: 600; }
.a-tl__odd { display: block; font-size: .8125rem; color: var(--c-warn); }
.a-scroll { margin-top: 12px; overflow-x: auto; border: 1px solid var(--c-line-strong); border-radius: 2px; background: var(--c-surface); }
.a-scroll:focus-visible { outline-offset: 0; }
.a-tbl { width: 100%; min-width: 380px; font-size: .875rem; font-variant-numeric: tabular-nums; }
.a-tbl caption { padding: 8px 10px; text-align: left; font-size: .8125rem; color: var(--c-text-3); }
.a-tbl th, .a-tbl td { padding: 8px 7px; border-top: 1px solid var(--c-line); text-align: right; vertical-align: top; }
.a-tbl th:first-child, .a-tbl td:first-child { text-align: left; padding-left: 10px; }
.a-tbl td:last-child, .a-tbl th:last-child { padding-right: 10px; }
.a-tbl thead th { background: var(--c-surface-2); font-weight: 700; color: var(--c-text-2); white-space: nowrap; }
.a-tbl .a-sp { display: block; margin-top: 2px; font-size: .75rem; color: var(--c-text-3); text-align: left; }
.a-note { margin-top: 10px; font-size: .8125rem; color: var(--c-text-3); }
.a-toast { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 20px); max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 10px; background: var(--c-text); color: var(--c-bg); font-size: .9375rem; opacity: 0; pointer-events: none; transition: opacity 160ms, transform 160ms; z-index: 30; }
.a-toast[data-show="true"] { opacity: 1; transform: translate(-50%, 0); }
html[data-route="detail"] #view-detail { min-height: 100svh; }
#d-models-body { min-height: 8rem; }
html[data-route="home"] #view-detail, html[data-route="detail"] #view-home, html[data-route="detail"] .a-hero-home, html[data-route="detail"] .a-about { display: none; }

/* ---- static explanation and guide pages ---- */
.a-about { margin-top: 56px; }
.a-about h2, .a-doc h2 { margin-top: 36px; font-size: 1.25rem; letter-spacing: -.02em; }
.a-about h3, .a-doc h3 { margin-top: 20px; font-size: 1.0625rem; }
.a-about p, .a-doc p, .a-doc li, .a-about li { max-width: 40rem; }
.a-about p, .a-doc p { margin-top: 10px; color: var(--c-text); }
.a-steps { counter-reset: step; margin-top: 14px; display: grid; gap: 10px; max-width: 40rem; }
.a-steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; }
.a-steps .p3-bubble { margin-top: 2px; border-color: var(--c-text); color: var(--c-text); }
.a-guides { margin-top: 14px; display: grid; gap: 10px; }
@media (min-width: 720px) { .a-guides { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.a-gcard { display: grid; gap: 6px; padding: 14px; color: var(--c-text) !important; text-decoration: none; min-height: 44px; }
.a-gcard:hover { box-shadow: 0 0 0 2px var(--c-accent); }
.a-gcard b { font-size: 1rem; letter-spacing: -.01em; }
.a-gcard span { font-size: .875rem; color: var(--c-text-2); }
.a-faq { margin-top: 14px; display: grid; gap: 8px; max-width: 40rem; }
.a-faq details { border: 1px solid var(--c-line-strong); border-radius: 2px; background: var(--c-surface); }
.a-faq summary { cursor: pointer; padding: 12px 14px; font-weight: 700; min-height: 44px; }
.a-faq details > div { padding: 0 14px 14px; color: var(--c-text-2); }
.a-faq details > div p:first-child { margin-top: 0; }
.a-en { margin-top: 28px; padding: 14px 16px; border-top: 2px solid var(--c-text); background: var(--c-surface); max-width: 40rem; font-size: .9375rem; color: var(--c-text-2); }
.a-en h2 { margin: 0 0 6px; font-size: 1rem; }
.a-en p { margin-top: 6px; }
.a-doc { padding-top: 20px; padding-bottom: 48px; }
.a-doc h1 { font-size: clamp(1.75rem, 1.25rem + 2.6vw, 2.75rem); line-height: 1.2; letter-spacing: -.035em; max-width: 24ch; }
.a-crumbs { margin-top: 8px; font-size: .875rem; color: var(--c-text-3); }
.a-crumbs a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
.a-answer { margin-top: 16px; padding: 14px 16px; border: 1px solid var(--c-text); border-radius: 2px; background: var(--c-surface); max-width: 40rem; }
.a-answer strong { display: block; margin-bottom: 4px; font-size: .8125rem; color: var(--c-accent); letter-spacing: .02em; }
.a-toc { margin-top: 18px; padding: 12px 16px; max-width: 40rem; }
.a-toc ol { counter-reset: t; display: grid; gap: 0; }
.a-toc li { counter-increment: t; }
.a-toc a { display: flex; gap: 10px; align-items: center; min-height: 44px; color: var(--c-text); text-decoration: none; }
.a-toc a::before { content: counter(t, decimal-leading-zero); font-variant-numeric: tabular-nums; color: var(--c-text-3); font-size: .8125rem; }
.a-toc a:hover { color: var(--c-accent); text-decoration: underline; }
blockquote.law { margin: 14px 0 0; padding: 10px 14px; max-width: 40rem; border-left: 4px solid var(--c-line-strong); background: var(--c-surface); }
blockquote.law p { margin: 0 !important; font-size: .9375rem; color: var(--c-text); }
blockquote.law footer { margin-top: 6px; font-size: .8125rem; color: var(--c-text-3); }
blockquote.law cite { font-style: normal; }
.a-doc ul.a-bul, .a-about ul.a-bul { margin-top: 10px; padding-left: 1.2em; list-style: disc; max-width: 40rem; display: grid; gap: 4px; }
.a-doc ol.a-num { margin-top: 10px; padding-left: 1.4em; list-style: decimal; max-width: 40rem; display: grid; gap: 4px; }
.a-twrap { margin-top: 14px; overflow-x: auto; border: 1px solid var(--c-line-strong); border-radius: 2px; background: var(--c-surface); }
.a-twrap:focus-visible { outline-offset: 0; }
.a-dt { width: 100%; min-width: 520px; font-size: .875rem; }
.a-dt.a-dt--fit { min-width: 0; }   /* two short columns (the main page's worked example) fit a phone */
.a-dt caption { padding: 8px 12px; text-align: left; font-size: .8125rem; color: var(--c-text-3); }
.a-dt th, .a-dt td { padding: 8px 12px; border-top: 1px solid var(--c-line); text-align: left; vertical-align: top; }
.a-dt thead th { background: var(--c-surface-2); color: var(--c-text-2); font-weight: 700; }
.a-dt td.n, .a-dt th.n { text-align: right; font-variant-numeric: tabular-nums; }
.a-src { margin-top: 28px; padding-top: 12px; border-top: 2px solid var(--c-text); }
.a-src h2 { margin-top: 0; }
.a-src li { margin-top: 6px; font-size: .9375rem; }
.a-flow { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; max-width: 40rem; }
.a-flow span { padding: 6px 10px; border: 1px solid var(--c-text); border-radius: 2px; background: var(--c-surface); font-size: .875rem; font-weight: 600; }
.a-flow i { font-style: normal; color: var(--c-text-3); }

/* ---- footer ---- */
.a-foot { margin-top: 40px; padding: 24px 0 36px; border-top: 1px solid var(--c-line); background: var(--c-surface); font-size: .875rem; color: var(--c-text-2); }
.a-foot ul { display: flex; flex-wrap: wrap; gap: 0 4px; }
.a-foot a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; color: var(--c-text-2); }
.a-foot p { margin-top: 8px; max-width: 44rem; }
.ad-slot { margin: 32px auto 0; max-width: 40rem; }
.ad-slot[hidden] { display: none; }

@media print {
  .a-head, .a-sub, .a-filters, .a-view-switch, .a-detail__actions, .a-foot, .ad-slot, .a-toast, .a-col--side, .a-star { display: none !important; }
  body.apt { background: #fff; color: #000; }
}
@media (prefers-reduced-motion: reduce) { .a-toast, .a-filters__toggle::after { transition: none; } }
