/* 쉬는 날 플래너 (holidays): paper and ink. Order: base reset, the design pass 3 kit block (inserted by
   node ../kiip_prep/tools/pass3-kit/copy.js --css web/css/app.css; do not edit the block), then this service's rules.
   No gradients, no @font-face (Pretendard comes from js/font-boot.js), no inline styles in the pages (CSP). Motion: transform and opacity only. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
/* language: both texts are in the page, html[data-lang] picks one (set before first paint by js/lang-boot.js) */
.l-en { display: none; }
html[data-lang="en"] .l-en { display: inline; }
html[data-lang="en"] .l-ko { display: none; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* === OBL-UI:END === */

/* === 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 === */
/* (the line above is only the anchor copy.js looks for) */

/* ---- tokens of this service (the kit gives paper, ink, surfaces; accent and day colours are ours) ---- */
.p3 {
  --c-accent: #0f5f57; --c-on-accent: #ffffff; --c-accent-soft: #e0eeeb; --c-accent-mid: #bfe0d9;
  --c-hol: #b42318; --c-hol-soft: #fbe9e7; --c-sat: #1f4f99; --c-ok: #23653a; --c-bad: #b42318;
  --c-focus: #0f5f57;
  --t-fast: 120ms;
}
@media (prefers-color-scheme: dark) {
  .p3 {
    --c-accent: #5fcfbf; --c-on-accent: #0d1f1c; --c-accent-soft: #17302b; --c-accent-mid: #1f4d43;
    --c-hol: #ff9d92; --c-hol-soft: #3a1d1b; --c-sat: #93b8f5; --c-ok: #7ad394; --c-bad: #ff9d92;
    --c-focus: #5fcfbf;
  }
}
[data-svc="holidays"] { --c-tint: #bfdccf; }
@media (prefers-color-scheme: dark) { [data-svc="holidays"] { --c-tint: #2f5648; } }

body.p3 { background: var(--c-bg); color: var(--c-text); font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; }
.p3 a { color: var(--c-accent); text-underline-offset: 3px; }
.p3 a:hover { text-decoration-thickness: 2px; }
.p3 :focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; border-radius: 4px; }
.wrap { width: 100%; max-width: 64rem; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; padding: 10px 14px; background: var(--c-text); color: var(--c-bg); border-radius: 8px; }
.skip:focus { top: 8px; }
main { display: block; padding-bottom: 40px; }
section { margin-top: 48px; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
h1 { font-size: clamp(1.875rem, 1.25rem + 3.1vw, 3.375rem); line-height: 1.17; letter-spacing: -.035em; font-weight: 700; }
h2 { font-size: 1.375rem; font-weight: 700; letter-spacing: -.02em; }
h3 { font-size: 1.125rem; font-weight: 700; }
p { margin: 0 0 12px; }
.muted { color: var(--c-text-3); }
.small { font-size: .875rem; }
.nowrap { white-space: nowrap; }

/* ---- header ---- */
.bar { background: var(--c-bg); border-bottom: 1px solid var(--c-line); }
.bar__in { display: flex; align-items: center; gap: 12px; min-height: 56px; }
.brand { font-weight: 700; text-decoration: none; color: var(--c-text) !important; letter-spacing: -.02em; display: inline-flex; align-items: center; min-height: 44px; }
.svc-name { font-weight: 600; color: var(--c-text-2); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; padding-left: 12px; border-left: 1px solid var(--c-line-strong); }
.lang { margin-left: auto; min-height: 44px; min-width: 64px; padding: 0 14px; border: 1px solid var(--c-line-strong); border-radius: 10px; background: var(--c-surface); cursor: pointer; font-weight: 600; font-size: .9375rem; }
.nav { display: flex; flex-wrap: wrap; gap: 0 4px; padding-bottom: 6px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; margin-left: -10px; color: var(--c-text-2); text-decoration: none; font-weight: 600; font-size: .9375rem; }
.nav a[aria-current="page"] { color: var(--c-text); box-shadow: inset 0 -3px 0 var(--c-accent); }

/* ---- hero and the three numbers ---- */
.hero { display: grid; gap: 16px; padding-top: 28px; }
.kicker { margin: 0 0 8px; color: var(--c-accent); font-weight: 700; font-size: .9375rem; letter-spacing: -.01em; }
.lede { max-width: 40rem; color: var(--c-text-2); font-size: 1.125rem; margin-top: 14px; }
.hero__art { display: none; }
.facts { margin-top: 24px; padding: 4px 16px; }
.facts dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; }
.facts dl > div { padding: 12px 8px 12px 0; }
.facts dl > div + div { padding-left: 12px; border-left: 1px solid var(--c-line); }
.facts dt { font-size: .8125rem; color: var(--c-text-3); line-height: 1.35; min-height: 2.7em; }
.facts dd { margin: 4px 0 0; font-size: 1.75rem; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.facts dd small { font-size: .875rem; font-weight: 600; margin-left: 2px; color: var(--c-text-2); }
.facts .src { margin: 0; padding: 8px 0 10px; border-top: 1px dashed var(--c-line-strong); font-size: .8125rem; color: var(--c-text-3); }
@media (min-width: 720px) {
  .hero { grid-template-columns: 1fr 140px; align-items: end; }
  .hero__art { display: block; }
  .hero__art .p3-art { width: 128px; height: 128px; }
}

/* ---- planner form ---- */
.controls { padding: 16px; display: grid; gap: 18px; }
.field > label, .field > .lab, .fieldset > legend { display: block; font-weight: 700; margin-bottom: 6px; }
.field .hint { margin: 4px 0 0; font-size: .875rem; color: var(--c-text-3); }
.stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--c-line-strong); border-radius: 12px; background: var(--c-surface); overflow: hidden; }
.stepper button { width: 48px; min-height: 48px; border: 0; background: var(--c-surface-2); font-size: 1.375rem; font-weight: 700; cursor: pointer; }
.stepper button:active { background: var(--c-surface-3); }
.stepper input { width: 4.5rem; min-height: 48px; border: 0; border-left: 1px solid var(--c-line); border-right: 1px solid var(--c-line); text-align: center; font-size: 1.5rem; font-weight: 700; background: transparent; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pick { min-height: 44px; min-width: 44px; padding: 0 14px; border: 1px solid var(--c-line-strong); border-radius: 10px; background: var(--c-surface); cursor: pointer; font-weight: 600; }
.pick[aria-pressed="true"], .pick.is-on { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-on-accent); }
select, input[type="text"], input[type="date"], input[type="number"].plain { min-height: 48px; width: 100%; padding: 0 12px; border: 1px solid var(--c-line-strong); border-radius: 10px; background: var(--c-surface); }
.row2 { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.sub-fields { display: grid; gap: 12px; margin-top: 12px; padding: 12px; border: 1px dashed var(--c-line-strong); border-radius: 10px; }
.sub-fields[hidden] { display: none; }
.check { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 8px 0; cursor: pointer; }
.check input { flex: none; width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--c-accent); }
.check span { line-height: 1.45; }
details.more { border-top: 1px solid var(--c-line); padding-top: 4px; }
details.more > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 700; list-style: none; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: "+"; margin-left: auto; font-size: 1.375rem; font-weight: 400; }
details.more[open] > summary::after { content: "\2212"; }
.group-checks { display: grid; gap: 0 16px; grid-template-columns: 1fr 1fr; }
.company-add { display: grid; gap: 8px; grid-template-columns: 1fr; }
.company-list { list-style: none; margin: 8px 0 0; padding: 0; }
.company-list li { display: flex; align-items: center; gap: 8px; min-height: 44px; border-bottom: 1px solid var(--c-line); }
.company-list li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn { min-height: 44px; padding: 0 16px; border: 1px solid var(--c-line-strong); border-radius: 10px; background: var(--c-surface); font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; color: var(--c-text); }
.btn--primary { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-on-accent); }
.btn--ghost { border-color: var(--c-line); font-weight: 600; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.p3 a.btn--primary { color: var(--c-on-accent); }

/* ---- results ---- */
.tabs { display: flex; gap: 0; margin: 16px 0 0; border-bottom: 2px solid var(--c-text); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: 1 0 auto; min-height: 48px; padding: 0 14px; border: 0; border-radius: 10px 10px 0 0; background: transparent; font-weight: 700; color: var(--c-text-2); cursor: pointer; white-space: nowrap; }
.tab[aria-selected="true"] { background: var(--c-text); color: var(--c-bg); }
.tab-note { margin: 12px 0 14px; color: var(--c-text-2); font-size: .9375rem; min-height: 4.2em; }
@media (min-width: 720px) { .tab-note { min-height: 3.2em; } }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.brk { position: relative; padding: 14px 14px 12px; border-radius: var(--r-sheet); background: var(--c-surface); box-shadow: var(--sheet); min-height: 11.25rem; overflow: hidden; transition: transform var(--t-fast) cubic-bezier(.2, 0, 0, 1); }
.brk.is-in { box-shadow: 0 0 0 2px var(--c-accent); }
.brk.is-hl { box-shadow: 0 0 0 3px var(--c-text); }
.brk__head { display: flex; align-items: center; gap: 10px; min-height: 48px; }
.rank { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border: 1.5px solid var(--c-text-2); border-radius: 50%; font-size: .875rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.brk__dates { flex: 1; min-width: 0; font-size: 1.0625rem; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn--add { flex: none; min-width: 64px; }
.btn--add[aria-pressed="true"] { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-on-accent); }
.strip { display: flex; gap: 2px; height: 12px; margin: 6px 0 10px; }
.sq { flex: 1 1 0; max-width: 16px; min-width: 3px; border-radius: 2px; background: var(--c-surface-3); }
.sq--hol { background: var(--c-hol); }
.sq--leave { background: var(--c-accent); }
.sq--co { background: var(--c-text-3); }
.brk__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 6px; min-height: 32px; }
.chip { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border: 1px solid var(--c-line-strong); border-radius: 6px; font-size: .875rem; font-weight: 600; white-space: nowrap; }
.chip b { font-size: 1.0625rem; margin-right: 1px; font-variant-numeric: tabular-nums; }
.chip--days { background: var(--c-accent-soft); border-color: transparent; color: var(--c-text); }
.alt { font-size: .8125rem; color: var(--c-text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.brk__leave { margin: 0 0 4px; font-size: .9375rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 3em; }
.brk__leave .k { font-weight: 700; margin-right: 4px; }
.brk__names { margin: 0; font-size: .875rem; color: var(--c-text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cards-more { margin-top: 12px; display: flex; justify-content: center; }
@media (min-width: 720px) { .cards { grid-template-columns: 1fr 1fr; } .brk__dates { font-size: 1.125rem; } }

/* ---- my plan ---- */
.plan { padding: 16px; margin-top: 48px; scroll-margin-top: 16px; }
.plan h2 { margin-bottom: 8px; }
.plan__sum { font-size: 1.5rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.3; margin: 8px 0 4px; min-height: 2.6em; }
.plan__msg { margin: 0 0 10px; min-height: 1.6em; font-size: .9375rem; color: var(--c-text-2); }
.plan__msg.is-warn { color: var(--c-bad); font-weight: 600; }
.plan-list { list-style: none; margin: 0 0 12px; padding: 0; min-height: 3.6rem; max-height: 17rem; overflow: auto; border-top: 1px solid var(--c-line); }
.plan-list li { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 6px 0; border-bottom: 1px solid var(--c-line); }
.plan-list .t { flex: 1; min-width: 0; line-height: 1.4; }
.plan-list .t b { display: block; }
.plan-list .empty { color: var(--c-text-3); border-bottom: 0; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.btns .btn { flex: 1 1 9rem; }
.privacy-note { margin: 12px 0 0; font-size: .8125rem; color: var(--c-text-3); }
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--c-text); color: var(--c-bg); transform: translateY(100%); opacity: 0; pointer-events: none; transition: transform var(--t-mid) cubic-bezier(.2, 0, 0, 1), opacity var(--t-mid); }
.dock.is-on { transform: none; opacity: 1; pointer-events: auto; }
.dock__in { display: flex; align-items: center; gap: 12px; min-height: 56px; padding-top: 6px; padding-bottom: 6px; }
.dock__t { flex: 1; min-width: 0; font-weight: 700; line-height: 1.3; }
.dock a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border-radius: 10px; background: var(--c-bg); color: var(--c-text) !important; font-weight: 700; text-decoration: none; }

/* ---- the year calendar ---- */
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0 16px; padding: 0; list-style: none; font-size: .875rem; }
.legend li { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; }
.legend i { width: 20px; height: 20px; border-radius: 4px; display: inline-block; flex: none; }
.legend .lg-hol { background: var(--c-hol-soft); box-shadow: inset 0 0 0 1.5px var(--c-hol); }
.legend .lg-sub { background: var(--c-hol-soft); box-shadow: inset 0 0 0 1.5px var(--c-hol); position: relative; }
.legend .lg-sub::after { content: ""; position: absolute; right: 1px; top: 1px; border-top: 7px solid var(--c-hol); border-left: 7px solid transparent; }
.legend .lg-rest { background: var(--c-surface-2); box-shadow: inset 0 0 0 1px var(--c-line-strong); }
.legend .lg-leave { background: var(--c-accent); border-radius: 50%; }
.legend .lg-co { background: var(--c-surface-3); box-shadow: inset 0 0 0 1.5px var(--c-text-2); }
.months { display: grid; gap: 14px; grid-template-columns: 1fr; }
.mo { padding: 8px 4px 10px; border-radius: var(--r-sheet); background: var(--c-surface); box-shadow: var(--sheet); }
.mo__t { padding: 4px 8px 6px; font-size: 1.0625rem; border-bottom: 2px solid var(--c-text); margin: 0 4px 4px; }
.mo__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.dh { text-align: center; font-size: .75rem; font-weight: 700; padding: 4px 0; color: var(--c-text-3); }
.dh.dow-sun { color: var(--c-hol); }
.dh.dow-sat { color: var(--c-sat); }
.start-0 .dh:nth-child(7) + .day { grid-column-start: 1; }
.start-1 .dh:nth-child(7) + .day { grid-column-start: 2; }
.start-2 .dh:nth-child(7) + .day { grid-column-start: 3; }
.start-3 .dh:nth-child(7) + .day { grid-column-start: 4; }
.start-4 .dh:nth-child(7) + .day { grid-column-start: 5; }
.start-5 .dh:nth-child(7) + .day { grid-column-start: 6; }
.start-6 .dh:nth-child(7) + .day { grid-column-start: 7; }
.day { position: relative; display: grid; place-items: center; width: 100%; min-width: 0; height: 44px; padding: 0; border: 0; border-radius: 0; background: transparent; font-size: .9375rem; font-variant-numeric: tabular-nums; color: var(--c-text); }
button.day { cursor: pointer; border-radius: 8px; }
button.day:active .n { transform: scale(.9); }
.day .n { position: relative; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; transition: transform var(--t-fast); }
.day.dow-sun, .day.t-hol, .day.t-sub { color: var(--c-hol); }
.day.dow-sat { color: var(--c-sat); }
.day.t-hol, .day.t-sub { font-weight: 700; }
.day.t-hol::before, .day.t-sub::before, .day.t-rest::before, .day.t-co::before { content: ""; position: absolute; inset: 2px 1px; border-radius: 8px; }
.day.t-rest::before { background: var(--c-surface-2); }
.day.t-co::before { background: var(--c-surface-3); box-shadow: inset 0 0 0 1.5px var(--c-text-2); }
.day.t-hol::before { background: var(--c-hol-soft); box-shadow: inset 0 0 0 1.5px var(--c-hol); }
.day.t-sub::before { background: var(--c-hol-soft); box-shadow: inset 0 0 0 1.5px var(--c-hol); }
.day.t-sub::after { content: ""; position: absolute; right: 3px; top: 3px; border-top: 9px solid var(--c-hol); border-left: 9px solid transparent; z-index: 2; }
.day.in-brk::before { content: ""; position: absolute; inset: 2px 0; border-radius: 0; background: var(--c-accent-soft); box-shadow: none; }
.day.in-brk.t-hol::before, .day.in-brk.t-sub::before { background: var(--c-hol-soft); box-shadow: inset 0 0 0 1.5px var(--c-hol); inset: 2px 0; border-radius: 0; }
.day.in-plan::before { content: ""; position: absolute; inset: 2px 0; border-radius: 0; background: var(--c-accent-mid); box-shadow: none; }
.day.in-plan.t-hol::before, .day.in-plan.t-sub::before { background: var(--c-accent-mid); box-shadow: inset 0 0 0 1.5px var(--c-hol); }
.day.in-brk.brk-s::before, .day.in-plan.brk-s::before { border-top-left-radius: 10px; border-bottom-left-radius: 10px; left: 2px; }
.day.in-brk.brk-e::before, .day.in-plan.brk-e::before { border-top-right-radius: 10px; border-bottom-right-radius: 10px; right: 2px; }
.day.is-leave .n { background: var(--c-accent); color: var(--c-on-accent); font-weight: 700; }
.day.is-leave { color: var(--c-on-accent); }
.day:not(.is-off):not(.is-leave).in-brk { font-weight: 700; }
@media (min-width: 600px) { .months { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .months { grid-template-columns: repeat(3, 1fr); } }

/* ---- tables and long text ---- */
.table-wrap { overflow-x: auto; margin: 12px 0 16px; border: 1px solid var(--c-text); border-radius: 2px; background: var(--c-surface); -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .9375rem; font-variant-numeric: tabular-nums; }
caption { text-align: left; padding: 10px 12px 4px; font-weight: 700; }
th, td { padding: 9px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--c-line); }
thead th { border-bottom: 2px solid var(--c-text); font-size: .8125rem; color: var(--c-text-2); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tr.is-sub td:first-child { box-shadow: inset 3px 0 0 var(--c-hol); }
td.yes { font-weight: 700; color: var(--c-ok); }
td.no { color: var(--c-text-3); }
.article > header { padding-top: 28px; }
.type { display: block; margin-top: 2px; font-size: .8125rem; color: var(--c-text-3); }
.article h2 { margin-top: 40px; padding-top: 12px; border-top: 2px solid var(--c-text); }
.article h3 { margin-top: 24px; }
.article p, .article li { max-width: 40rem; }
.article ul, .article ol { padding-left: 1.3rem; margin: 0 0 14px; }
.article li { margin-bottom: 6px; }
.article blockquote { margin: 12px 0 16px; padding: 10px 14px; border-left: 4px solid var(--c-accent); background: var(--c-surface); max-width: 40rem; }
.article blockquote p { margin: 0 0 6px; }
.article blockquote p:last-child { margin-bottom: 0; }
.article .cite, .cite { font-size: .8125rem; color: var(--c-text-3); }
sup.fn { font-size: .75rem; line-height: 0; }
sup.fn a { display: inline-block; min-width: 20px; text-align: center; }
.callout { margin: 16px 0; padding: 14px 16px; max-width: 40rem; }
.callout p { margin: 0 0 8px; }
.callout p:last-child { margin-bottom: 0; }
.steps { counter-reset: s; list-style: none; padding-left: 0 !important; }
.steps li { position: relative; padding-left: 40px; min-height: 32px; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; display: grid; place-items: center; border: 1.5px solid var(--c-text-2); border-radius: 50%; font-weight: 700; font-size: .875rem; }
/* the guide block under the planner (how it works, an example, common mistakes, questions): article measure on the home page */
.tool-editorial-content h3 { margin-top: 28px; margin-bottom: 8px; }
.tool-editorial-content h4 { margin: 18px 0 6px; font-size: 1rem; line-height: 1.4; }
.tool-editorial-content p, .tool-editorial-content li { max-width: 40rem; }
.tool-editorial-content ul, .tool-editorial-content ol { padding-left: 1.3rem; margin: 0 0 14px; }
.tool-editorial-content li { margin-bottom: 6px; }
.eng { margin-top: 40px; padding: 14px 16px; border: 1px dashed var(--c-line-strong); border-radius: 10px; background: var(--c-surface); }
.eng h2 { font-size: 1rem; border: 0; padding: 0; margin: 0 0 6px; }
.eng p { max-width: 40rem; font-size: .9375rem; }
.sources ol { padding-left: 1.4rem; font-size: .9375rem; }
.sources li { margin-bottom: 8px; overflow-wrap: anywhere; }
.pager { display: grid; gap: 8px; margin-top: 32px; }
.pager a { display: flex; align-items: center; min-height: 52px; padding: 8px 14px; border: 1px solid var(--c-line-strong); border-radius: 10px; background: var(--c-surface); text-decoration: none; font-weight: 600; color: var(--c-text); }
@media (min-width: 720px) { .pager { grid-template-columns: 1fr 1fr; } }
/* a brand tool that goes with the planner: a small sheet with the tools drawing, like the related-service sheets on the brand's tool pages */
.rel-tools { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .rel-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rel-tool { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; align-content: start; min-height: 5.5rem; padding: 14px 16px; text-decoration: none; transition: box-shadow var(--t-fast) linear; }
.p3 a.rel-tool, .p3 a.rel-tool:hover { color: var(--c-text); }
.rel-tool:hover { box-shadow: 0 0 0 2px var(--c-accent); }
.rel-tool .p3-art { grid-row: 1 / span 2; align-self: start; width: 44px; height: 44px; }
.rel-tool__t { font-weight: 700; font-size: 1.0625rem; line-height: 1.35; letter-spacing: -.015em; }
.rel-tool:hover .rel-tool__t { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.rel-tool__d { color: var(--c-text-2); font-size: .9375rem; line-height: 1.5; }
.ad-slot { margin: 32px 0; }
.ad-slot[hidden] { display: none; }
.foot { margin-top: 56px; padding: 24px 0 120px; border-top: 2px solid var(--c-text); color: var(--c-text-2); font-size: .875rem; }
.foot p { max-width: 44rem; }
.foot a { color: var(--c-text-2); }
.live { min-height: 1.6em; margin: 8px 0 0; font-size: .875rem; color: var(--c-text-2); }

/* ---- print: the plan and the calendar only, no ads, no controls ---- */
@media print {
  body.p3 { background: #fff; color: #000; font-size: 11pt; }
  .bar, .nav, .hero, .facts, .controls, .tabs, .tab-note, .cards, .cards-more, .btns, .dock, .ad-slot, .foot, #planner, #results, .pager, .skip, .privacy-note, #tools, #sources { display: none !important; }
  .plan { box-shadow: none; border: 1px solid #000; break-inside: avoid; }
  .day.in-brk:not(.in-plan)::before { display: none; }
  .months { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .mo { box-shadow: none; border: 1px solid #000; break-inside: avoid; }
  .day { height: 26px; font-size: 9pt; }
  .day .n { width: 22px; height: 22px; }
}
@media (prefers-reduced-motion: reduce) { .brk, .dock, .day .n { transition: none !important; } }
