/* OByeolLab brand home (obyeollab.com/) — the 2026-11-19 renewal ("앱처럼 쓰는 홈"). Loaded after site.css, by index.html only.
   site.css keeps the shared chrome (header, footer, buttons, the pass 3 drawings); everything here is scoped to body.hm, so no
   other page of the root changes.

   Look: day is paper and ink, night is the night sky the brand's star lives in. Flat colour fields, hairline rules, one type
   family in three weights (400 / 600 / 800), tabular numerals for dates. No blur, no glow, no gradient text; the only gradient
   is the canvas of an open story card. The one decoration is the logo's star: a plain yellow dot (.hm-star).

   Theme: follows prefers-color-scheme; the header control stores "light" or "dark" in localStorage (obl.theme) and home-boot.js
   puts it on <html data-theme> before the first paint. Each dark value is therefore written twice: once for the system setting
   (unless the reader chose light) and once for the reader's own choice.

   Icons: one hand. 24 x 24 grid, a 2px line with round caps and joins, no fills (.hm-i draws every <symbol id="hm-*">). */

/* ---------------------------------------------------------------- tokens */
body.hm {
  --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-accent: #2b55d9; --c-accent-hover: #2147bd; --c-accent-soft: #e6eaf7; --c-on-accent: #ffffff; --c-focus: #2b55d9;
  --c-ok: #13753d; --c-ok-soft: #e7f2e9; --c-bad: #c0283a; --c-bad-soft: #f9e8e8;
  --c-star: #f5b301; --c-tint: #bfcbef;
  --c-warn: #8a5a00; --c-warn-soft: #fdf3df; --c-info: #1f5fbf; --c-info-soft: #e9f1fc;
  --e-1: 0 1px 2px rgba(16, 24, 40, .08); --e-2: 0 8px 24px rgba(16, 24, 40, .14), 0 1px 3px rgba(16, 24, 40, .08);
  --sheet: 0 0 0 1px var(--c-line);
  --hm-night: #0d1020; --hm-night-line: #2a3152; --hm-night-text: #eef0f6; --hm-night-text-2: #c2c8da;
  --hm-r: 16px; --hm-card: 156px; --hm-line-2: #cdc6b6;
  --fw-medium: 600; --fw-semibold: 600; --fw-bold: 800;
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) body.hm {
    --c-bg: #0f1322; --c-surface: #191f38; --c-surface-2: #212845; --c-surface-3: #2c3455;
    --c-line: #323b60; --c-line-strong: #7d87a8;
    --c-text: #eef0f6; --c-text-2: #c2c8da; --c-text-3: #a0a8c0;
    --c-accent: #9db2ff; --c-accent-hover: #b7c6ff; --c-accent-soft: #243163; --c-on-accent: #0f1322; --c-focus: #9db2ff;
    --c-ok: #6fd69a; --c-ok-soft: #143322; --c-bad: #ff8a96; --c-bad-soft: #3a171c;
    --c-star: #ffcf4a; --c-tint: #414863;
    --c-warn: #f2c063; --c-warn-soft: #33270f; --c-info: #8ab8ff; --c-info-soft: #152841;
    --e-1: 0 0 0 1px var(--c-line); --e-2: 0 0 0 1px var(--c-line), 0 12px 32px rgba(0, 0, 0, .5);
    --hm-night: #0a0d1a; --hm-night-line: #323b60; --hm-line-2: #4d5886;
  }
}
html[data-theme="dark"] body.hm {
  --c-bg: #0f1322; --c-surface: #191f38; --c-surface-2: #212845; --c-surface-3: #2c3455;
  --c-line: #323b60; --c-line-strong: #7d87a8;
  --c-text: #eef0f6; --c-text-2: #c2c8da; --c-text-3: #a0a8c0;
  --c-accent: #9db2ff; --c-accent-hover: #b7c6ff; --c-accent-soft: #243163; --c-on-accent: #0f1322; --c-focus: #9db2ff;
  --c-ok: #6fd69a; --c-ok-soft: #143322; --c-bad: #ff8a96; --c-bad-soft: #3a171c;
  --c-star: #ffcf4a; --c-tint: #414863;
  --c-warn: #f2c063; --c-warn-soft: #33270f; --c-info: #8ab8ff; --c-info-soft: #152841;
  --e-1: 0 0 0 1px var(--c-line); --e-2: 0 0 0 1px var(--c-line), 0 12px 32px rgba(0, 0, 0, .5);
  --hm-night: #0a0d1a; --hm-night-line: #323b60; --hm-line-2: #4d5886;
}
html[data-theme="light"] { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }
/* TINTS:START the per-service drawing tints of site.css for a theme the reader chose against the system setting (generated from site.css; tests/home-renewal-2026-11-19.test.js compares) */
@media (prefers-color-scheme: dark) {
  html[data-theme="light"] .hm [data-svc="brand"] { --c-tint: #bfcbef; }
  html[data-theme="light"] .hm [data-svc="tools"] { --c-tint: #bfcbef; }
  html[data-theme="light"] .hm [data-svc="kiip"] { --c-tint: #bfcaeb; }
  html[data-theme="light"] .hm [data-svc="topik"] { --c-tint: #cdc4ef; }
  html[data-theme="light"] .hm [data-svc="eps"] { --c-tint: #b6d2cc; }
  html[data-theme="light"] .hm [data-svc="life"] { --c-tint: #edc0c5; }
  html[data-theme="light"] .hm [data-svc="drive"] { --c-tint: #e4caae; }
  html[data-theme="light"] .hm [data-svc="kdrama"] { --c-tint: #dcbfde; }
  html[data-theme="light"] .hm [data-svc="games"] { --c-tint: #edbece; }
  html[data-theme="light"] .hm [data-svc="leadhive"] { --c-tint: #c9cced; }
  html[data-theme="light"] .hm [data-svc="lab-breath"] { --c-tint: #c4dbef; }
  html[data-theme="light"] .hm [data-svc="lab-windows"] { --c-tint: #f3dd9c; }
  html[data-theme="light"] .hm [data-svc="lab-wear"] { --c-tint: #e2cbb0; }
  html[data-theme="light"] .hm [data-svc="paperwork"] { --c-tint: #c3d6ee; }
  html[data-theme="light"] .hm [data-svc="moving"] { --c-tint: #f1d0ae; }
  html[data-theme="light"] .hm [data-svc="apt"] { --c-tint: #c8e0bb; }
  html[data-theme="light"] .hm [data-svc="exams"] { --c-tint: #eee0a3; }
  html[data-theme="light"] .hm [data-svc="matchum"] { --c-tint: #bce2d8; }
  html[data-theme="light"] .hm [data-svc="history"] { --c-tint: #e7bfae; }
  html[data-theme="light"] .hm [data-svc="holidays"] { --c-tint: #e1c9ee; }
  html[data-theme="light"] .hm [data-svc="vaccine"] { --c-tint: #f0c8d6; }
  html[data-theme="light"] .hm [data-svc="kimjang"] { --c-tint: #d6e3a4; }
  html[data-theme="light"] .hm [data-svc="yearend"] { --c-tint: #b9dde2; }
  html[data-theme="light"] .hm [data-svc="cartax"] { --c-tint: #d6dfb2; }
  html[data-theme="light"] .hm [data-svc="energy"] { --c-tint: #f0d9a8; }
  html[data-theme="light"] .hm [data-svc="seollal"] { --c-tint: #ecd48f; }
  html[data-theme="light"] .hm [data-svc="benefits"] { --c-tint: #d9c8ef; }
  html[data-theme="light"] .hm [data-svc="checkup"] { --c-tint: #f0c9c1; }
  html[data-theme="light"] .hm [data-svc="age"] { --c-tint: #f1c6d4; }
  html[data-theme="light"] .hm [data-svc="recycle"] { --c-tint: #bcdccf; }
  html[data-theme="light"] .hm [data-svc="my"] { --c-tint: #c9d3f0; }
  html[data-theme="light"] .hm [data-svc="paper"] { --c-tint: #c5d3ea; }
  html[data-theme="light"] .hm [data-svc="words"] { --c-tint: #d5c9ee; }
  html[data-theme="light"] .hm [data-svc="sos"] { --c-tint: #f1cdbf; }
  html[data-theme="light"] .hm [data-svc="name"] { --c-tint: #b8dcd6; }
}
html[data-theme="dark"] .hm [data-svc="brand"] { --c-tint: #424963; }
html[data-theme="dark"] .hm [data-svc="tools"] { --c-tint: #424963; }
html[data-theme="dark"] .hm [data-svc="kiip"] { --c-tint: #414863; }
html[data-theme="dark"] .hm [data-svc="topik"] { --c-tint: #4e4763; }
html[data-theme="dark"] .hm [data-svc="eps"] { --c-tint: #335750; }
html[data-theme="dark"] .hm [data-svc="life"] { --c-tint: #664145; }
html[data-theme="dark"] .hm [data-svc="drive"] { --c-tint: #664d2e; }
html[data-theme="dark"] .hm [data-svc="kdrama"] { --c-tint: #58455a; }
html[data-theme="dark"] .hm [data-svc="games"] { --c-tint: #663e4c; }
html[data-theme="dark"] .hm [data-svc="leadhive"] { --c-tint: #464863; }
html[data-theme="dark"] .hm [data-svc="lab-breath"] { --c-tint: #2e4a60; }
html[data-theme="dark"] .hm [data-svc="lab-windows"] { --c-tint: #66562a; }
html[data-theme="dark"] .hm [data-svc="lab-wear"] { --c-tint: #5e4731; }
html[data-theme="dark"] .hm [data-svc="paperwork"] { --c-tint: #2f4a63; }
html[data-theme="dark"] .hm [data-svc="moving"] { --c-tint: #6a4525; }
html[data-theme="dark"] .hm [data-svc="apt"] { --c-tint: #3a5a33; }
html[data-theme="dark"] .hm [data-svc="exams"] { --c-tint: #5e5528; }
html[data-theme="dark"] .hm [data-svc="matchum"] { --c-tint: #2d5950; }
html[data-theme="dark"] .hm [data-svc="history"] { --c-tint: #683e2f; }
html[data-theme="dark"] .hm [data-svc="holidays"] { --c-tint: #5a4068; }
html[data-theme="dark"] .hm [data-svc="vaccine"] { --c-tint: #66404f; }
html[data-theme="dark"] .hm [data-svc="kimjang"] { --c-tint: #4b5d2b; }
html[data-theme="dark"] .hm [data-svc="yearend"] { --c-tint: #2b5560; }
html[data-theme="dark"] .hm [data-svc="cartax"] { --c-tint: #4a5432; }
html[data-theme="dark"] .hm [data-svc="energy"] { --c-tint: #5a4522; }
html[data-theme="dark"] .hm [data-svc="seollal"] { --c-tint: #6b5a2a; }
html[data-theme="dark"] .hm [data-svc="benefits"] { --c-tint: #4a3d63; }
html[data-theme="dark"] .hm [data-svc="checkup"] { --c-tint: #5a3530; }
html[data-theme="dark"] .hm [data-svc="age"] { --c-tint: #5e3342; }
html[data-theme="dark"] .hm [data-svc="recycle"] { --c-tint: #2f4d43; }
html[data-theme="dark"] .hm [data-svc="my"] { --c-tint: #3d4766; }
html[data-theme="dark"] .hm [data-svc="paper"] { --c-tint: #2c3b55; }
html[data-theme="dark"] .hm [data-svc="words"] { --c-tint: #3a2f58; }
html[data-theme="dark"] .hm [data-svc="sos"] { --c-tint: #5e3a2f; }
html[data-theme="dark"] .hm [data-svc="name"] { --c-tint: #2a524d; }
/* TINTS:END */

/* topic colours of the "지금" row: flat discs, white ink (AA on each) */
.hm [data-c="blue"] { --orb: #2b55d9; --orb-deep: #172a6b; }
.hm [data-c="violet"] { --orb: #6747c7; --orb-deep: #2f2168; }
.hm [data-c="teal"] { --orb: #17788a; --orb-deep: #0c3f49; }
.hm [data-c="green"] { --orb: #2e7a4c; --orb-deep: #153d26; }
.hm [data-c="red"] { --orb: #b53c4b; --orb-deep: #5b1c25; }

/* ---------------------------------------------------------------- base */
.hm { font-weight: 400; }
.hm h1, .hm h2, .hm h3 { font-weight: 800; }
.hm strong, .hm b { font-weight: 600; }
.hm-vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.hm-sprite { position: absolute; }
.hm-i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hm-star { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--c-star); }
.hm main > .wrap { padding-bottom: var(--s-6); }

/* ---------------------------------------------------------------- header: logo, language, "전체", theme */
.hm .ui-header__tools { gap: 4px; }
.hm-theme { display: inline-flex; align-items: center; gap: 6px; min-width: var(--tap); height: var(--tap); padding: 0 10px; border: 0; border-radius: var(--r-2); background: transparent; color: var(--c-text-2); font: inherit; font-size: var(--fs-small); font-weight: 600; cursor: pointer; }
.hm-theme:hover { background: var(--c-surface-2); color: var(--c-text); }
.hm-theme .hm-i { width: 22px; height: 22px; }
.hm-theme [data-t] { display: none; }
html:not([data-theme]) .hm-theme [data-t="auto"], html[data-theme="light"] .hm-theme [data-t="light"], html[data-theme="dark"] .hm-theme [data-t="dark"] { display: inline-block; }
.hm-theme .hm-theme__s { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
html:not([data-js]) .hm-theme { visibility: hidden; } /* the control needs script; its place is kept so nothing shifts */
.hm-allbtn { display: none; align-items: center; gap: 6px; height: var(--tap); padding: 0 12px; border-radius: var(--r-2); color: var(--c-text-2); font-size: var(--fs-small); font-weight: 600; text-decoration: none; }
.hm-allbtn:hover { background: var(--c-surface-2); color: var(--c-text); }
@media (min-width: 900px) {
  .hm-allbtn { display: inline-flex; }
  .hm-theme .hm-theme__s { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
}

/* ---------------------------------------------------------------- "지금" row: one orb per timely topic */
.hm-now { max-width: var(--page-max); margin: 0 auto; padding: 14px 0 0; }
.hm-now__list { display: flex; gap: 4px; margin: 0; padding: 4px calc(var(--gutter) - 6px) 6px; list-style: none; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding: 0 var(--gutter); overscroll-behavior-x: contain; scrollbar-width: none; }
.hm-now__list::-webkit-scrollbar { display: none; }
.hm-now__i { flex: none; scroll-snap-align: start; }
.hm-orb { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 78px; padding: 5px 2px 2px; border-radius: 14px; color: var(--c-text); text-decoration: none; -webkit-tap-highlight-color: transparent; }
.hm-orb:hover { color: var(--c-text); }
.hm-orb__disc { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--orb); color: #fff; box-shadow: 0 0 0 3px var(--c-bg), 0 0 0 4.5px var(--orb); transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
@media (hover: hover) { .hm-orb:hover .hm-orb__disc { box-shadow: 0 0 0 3px var(--c-bg), 0 0 0 6px var(--orb); } }
.hm-orb:active .hm-orb__disc { transform: scale(.96); }
.hm-orb__disc .hm-i { width: 27px; height: 27px; }
.hm-orb__n { font-size: 1.0625rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1, "zero" 0; line-height: 1; }
/* a date orb (and the big number of its story card) holds the opening and the closing day of its event; the closing day shows from
   the second day of the window on (home-boot.js writes the rule before the first paint, home-now.js sets .is-run) */
.hm-n--close { display: none; }
.is-run .hm-n--open { display: none; }
.is-run .hm-n--close { display: inline; }
.hm-orb__l { max-width: 100%; color: var(--c-text-2); font-size: .8125rem; font-weight: 600; line-height: 1.25; text-align: center; overflow-wrap: anywhere; }
.hm-now__i.is-today .hm-orb__l { color: var(--c-text); }
.hm-now__i.is-today .hm-orb::after { content: ""; position: absolute; top: 5px; right: 9px; width: 12px; height: 12px; border-radius: 50%; background: var(--c-star); box-shadow: 0 0 0 2.5px var(--c-bg); }
/* without script nobody can tell which day it is: the row stays out and the strip below lists every item with its own dates */
html:not([data-js]) .hm-now { display: none; }

/* ---------------------------------------------------------------- hero: the question, the rotating line, the command bar */
.hm .home-hero { display: block; padding-top: var(--s-5); padding-bottom: var(--s-5); }
.hm-today { display: flex; align-items: center; gap: 8px; min-height: 1.5em; margin: 0 0 10px; color: var(--c-text-2); font-size: .9375rem; font-weight: 600; line-height: 1.5; font-variant-numeric: tabular-nums; }
.hm-today:not(:empty)::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--c-star); }
.hm .home-hero h1 { max-width: 9.5em; margin: 0 0 14px; font-size: clamp(2.5rem, 13.4vw, 3.75rem); font-weight: 800; line-height: 1.1; letter-spacing: -.05em; text-wrap: balance; }
html:not(:lang(ko), :lang(ja), :lang(zh)) .hm .home-hero h1 { max-width: 14em; font-size: clamp(2rem, 9vw, 3.25rem); letter-spacing: -.035em; }
html:is(:lang(th), :lang(km), :lang(my), :lang(ne), :lang(bn), :lang(si)) .hm .home-hero h1 { line-height: 1.4; letter-spacing: 0; }
.hm-rot { display: grid; margin: 0 0 var(--s-5); color: var(--c-text-2); font-size: 1.1875rem; font-weight: 600; line-height: 1.4; letter-spacing: -.02em; }
.hm-rot__l { grid-area: 1 / 1; opacity: 0; animation: hm-rot 12s infinite both; }
.hm-rot__l:first-child { opacity: 1; }
.hm-rot__l:nth-child(2) { animation-delay: 3s; }
.hm-rot__l:nth-child(3) { animation-delay: 6s; }
.hm-rot__l:nth-child(4) { animation-delay: 9s; }
.hm-rot__l strong { color: var(--c-accent); font-weight: 800; }
@keyframes hm-rot { 0% { opacity: 0; transform: translateY(5px); } 3%, 25% { opacity: 1; transform: none; } 28%, 100% { opacity: 0; transform: translateY(-5px); } }

.hm-cmd { position: relative; max-width: 42rem; }
.hm .home-search { max-width: none; }
.hm .home-search label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hm .home-search__row .ui-input input { min-height: 58px; padding-left: 50px; border: 1.5px solid var(--c-text); border-radius: 16px; background: var(--c-surface); font-size: 1.0625rem; }
.hm .home-search__row .ui-input input:focus { border-color: var(--c-accent); box-shadow: 0 0 0 1.5px var(--c-accent); }
.hm .home-search__row .ui-input__icon { left: 17px; width: 22px; height: 22px; color: var(--c-text); }
.hm .home-search__row .ui-btn { min-height: 58px; padding: 0 20px; border-radius: 16px; font-weight: 600; }
.hm-kbd { display: none; position: absolute; right: 14px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border: 1px solid var(--hm-line-2); border-radius: 7px; background: var(--c-bg); color: var(--c-text-2); font: 600 .8125rem/24px var(--font); text-align: center; pointer-events: none; }
@media (min-width: 900px) { html[data-js] .hm-kbd { display: block; } html[data-js] .hm .home-search__row .ui-input input { padding-right: 52px; } }
html[data-js] .hm .ui-input:focus-within .hm-kbd { display: none; } /* the hint has done its work once the reader is in the field */
.hm-cmd__panel { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 25; max-height: min(62vh, 30rem); overflow-y: auto; overscroll-behavior: contain; padding: 6px; border: 1px solid var(--c-line-strong); border-radius: 16px; background: var(--c-surface); box-shadow: var(--e-2); }
.hm-cmd__status p { margin: 0; padding: 10px 12px 8px; color: var(--c-text-2); font-size: var(--fs-small); line-height: 1.5; }
.hm-cmd__g { margin: 0; padding: 12px 12px 4px; color: var(--c-text-3); font-size: .8125rem; font-weight: 600; }
.hm-res { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-items: center; min-height: 52px; padding: 8px 12px; border-radius: 10px; color: var(--c-text); text-decoration: none; }
.hm-res:hover, .hm-res.is-active, .hm-res:focus-visible { background: var(--c-surface-2); color: var(--c-text); }
.hm-res:focus-visible { outline-offset: -2px; }
.hm-res__dot { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--c-surface-3); color: var(--c-text-2); }
.hm-res__dot .hm-i { width: 17px; height: 17px; }
.hm-res[data-c] .hm-res__dot { border-radius: 50%; background: var(--orb); color: #fff; font-variant-numeric: tabular-nums; }
.hm-res[data-c] .hm-orb__n { font-size: .6875rem; letter-spacing: -.04em; }
.hm-res__b { display: flex; flex-direction: column; min-width: 0; }
.hm-res__t { font-size: 1rem; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.hm-res__m { color: var(--c-text-2); font-size: .8125rem; line-height: 1.45; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden; }
.hm-res mark { background: none; color: var(--c-accent); font-weight: 800; }
.hm-cmd__foot { display: flex; align-items: center; gap: 6px; margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--c-line); }
.hm-cmd__all { flex: 1; display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: var(--c-accent); font: inherit; font-size: var(--fs-small); font-weight: 600; text-align: left; cursor: pointer; }
.hm-cmd__all:hover { background: var(--c-surface-2); }
.hm-cmd__all .hm-i { width: 18px; height: 18px; }
.hm-cmd__x { display: inline-grid; place-items: center; width: var(--tap); height: var(--tap); border: 0; border-radius: 50%; background: transparent; color: var(--c-text-2); cursor: pointer; }
.hm-cmd__x:hover { background: var(--c-surface-2); color: var(--c-text); }

.hm-chips { display: flex; flex-wrap: wrap; gap: 8px; max-width: 42rem; margin: 14px 0 0; }
.hm-chip { min-height: var(--tap); padding: 0 15px; border: 1px solid var(--c-line-strong); border-radius: 999px; background: transparent; color: var(--c-text); font: inherit; font-size: .9375rem; font-weight: 600; line-height: 1.2; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
.hm-chip:hover { border-color: var(--c-text); background: var(--c-surface); }
.hm-chip:active { transform: scale(.97); }
.hm-chip:focus-visible { border-radius: 999px; }

.hm-strip { max-width: 42rem; margin: 14px 0 0; }
.hm-strip__a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 10px; row-gap: 1px; min-height: 58px; padding: 9px 12px 9px 16px; border-radius: var(--hm-r); background: var(--c-accent-soft); color: var(--c-text); text-decoration: none; line-height: 1.35; transition: transform var(--t-fast) var(--ease); }
.hm-strip__a:hover { color: var(--c-text); }
.hm-strip__a:active { transform: scale(.99); }
.hm-strip__a:focus-visible { border-radius: var(--hm-r); }
.hm-strip__a[hidden] { display: none; }
.hm-strip__a .hm-star { grid-row: 1; align-self: center; }
.hm .hm-strip__k { grid-column: 2; min-height: 1.35em; color: var(--c-accent); font-size: .9375rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.hm-strip__t { grid-column: 2; min-width: 0; font-size: .9375rem; font-weight: 600; overflow-wrap: anywhere; }
.hm-strip__a .hm-i { grid-column: 3; grid-row: 1 / span 2; width: 18px; height: 18px; color: var(--c-text-2); }
.hm-strip__a:hover .hm-strip__t { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
/* the badge of a line before the page script has run. home-boot.js knows the day before the first paint and names the state of
   the line that shows (html[data-now-k]); the four Korean badges are in the HTML and the one that is true today shows, so the
   deferred script changes nothing a Korean reader sees. Without script the line carries its own dates in words (.hm-k--when),
   which is true on any day; then the strip is a plain list of every item. */
.hm-k { display: none; }
html[data-now-k="soon"] .hm-k--soon, html[data-now-k="today"] .hm-k--today, html[data-now-k="last"] .hm-k--last, html[data-now-k="until"] .hm-k--until, html[data-now-k="new"] .hm-k--new, html:not([data-js]) .hm-k--when { display: inline; }
html:not([data-js]) .hm-strip { display: grid; gap: 6px; }
.hm .home-hero .lead { max-width: 42rem; min-height: 0; margin: var(--s-4) 0 0; color: var(--c-text-2); font-size: .9375rem; line-height: 1.65; }
/* from tablets up the question sits in the middle of the page (2026-11-19: left-aligned at 42rem it left the right half empty) */
@media (min-width: 720px) {
  .hm-now { padding-top: 20px; }
  .hm-now__list { justify-content: safe center; gap: 6px; }
  .hm .home-hero { padding-top: 28px; padding-bottom: var(--s-6); text-align: center; }
  .hm-today { justify-content: center; margin-bottom: 12px; padding-right: 16px; } /* the dot and its gap: the date itself is on the axis */
  .hm .home-hero h1, html:not(:lang(ko), :lang(ja), :lang(zh)) .hm .home-hero h1 { margin-left: auto; margin-right: auto; }
  .hm-cmd, .hm-chips, .hm-strip, .hm .home-hero .lead { margin-left: auto; margin-right: auto; }
  .hm-cmd { max-width: 44rem; text-align: left; }
  .hm-chips { max-width: 44rem; justify-content: center; margin-top: 16px; }
  .hm-strip { width: fit-content; min-width: min(100%, 22rem); max-width: 44rem; margin-top: 20px; text-align: left; }
  .hm .home-hero .lead { max-width: 35rem; margin-top: 20px; text-wrap: balance; }
}
@media (min-width: 900px) {
  .hm-now { padding-top: 28px; }
  .hm .home-hero { padding-top: 36px; padding-bottom: 44px; }
  .hm .home-hero h1 { max-width: none; margin-bottom: 16px; font-size: 4.5rem; line-height: 1.08; }
  html:not(:lang(ko), :lang(ja), :lang(zh)) .hm .home-hero h1 { max-width: 16em; font-size: 3.5rem; }
  .hm-rot { margin-bottom: 28px; font-size: 1.375rem; }
}

/* ---------------------------------------------------------------- sections: one header (title, "모두 보기", the pager), one rhythm */
.hm .home-sec { position: relative; margin-top: 44px; padding-top: 0; border-top: 0; }
.hm .home-sec > h2, .hm .hm-head h2, .hm .home-h2 { margin: 0; padding: 0; border: 0; font-size: 1.375rem; line-height: 1.3; letter-spacing: -.035em; }
.hm .home-sec > h2 { margin-bottom: 14px; }
.hm .sec-note { max-width: 40rem; margin: 6px 0 14px; color: var(--c-text-2); font-size: .9375rem; line-height: 1.6; }
.hm .home-sec > h2 + .sec-note { margin-top: -8px; }
.hm-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; margin-bottom: 14px; }
.hm-head__t { display: contents; }
.hm .hm-head h2 { grid-column: 1; }
.hm .hm-head .sec-note { grid-column: 1 / -1; margin-bottom: 0; }
.hm-head__all { position: relative; grid-column: 2; grid-row: 1; display: inline-flex; align-items: center; gap: 1px; height: 34px; padding: 0 7px 0 13px; border: 1px solid var(--c-line); border-radius: 999px; background: var(--c-surface); color: var(--c-text); font-size: .8125rem; font-weight: 600; line-height: 1; text-decoration: none; white-space: nowrap; transition: border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
.hm-head__all::before { content: ""; position: absolute; inset: -6px 0; } /* 46px to the finger */
.hm-head__all:hover { border-color: var(--hm-line-2); color: var(--c-text); }
.hm-head__all:active { transform: scale(.97); }
.hm-head__all:focus-visible { border-radius: 999px; }
.hm-head__all .hm-i { width: 15px; height: 15px; color: var(--c-text-3); }

/* the pager of a track: two small round buttons at the right end of the title line (wide screens, when the track has more) */
.hm-row { position: static; }
.hm-row__btn { display: none; position: absolute; top: -1px; right: 0; z-index: 2; width: 36px; height: 36px; padding: 0; place-items: center; border: 1px solid var(--c-line); border-radius: 50%; background: var(--c-surface); color: var(--c-text); cursor: pointer; transition: border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
.hm-row__btn--prev { right: 42px; }
.hm-row__btn .hm-i { width: 18px; height: 18px; }
.hm-row__btn:hover { border-color: var(--hm-line-2); }
.hm-row__btn:active { transform: scale(.94); }
.hm-row__btn:focus-visible { border-radius: 50%; }
.hm-row__btn[disabled] { border-color: var(--c-line); color: var(--c-text-3); opacity: .5; cursor: default; transform: none; }
.hm .p3-season, .hm-group { position: relative; }
.hm .p3-season .hm-row__btn, .hm-group .hm-row__btn { top: -6px; }
@media (min-width: 900px) {
  .hm-row.is-ready .hm-row__btn { display: grid; } /* is-ready: the script knows which way the track can go (no arrow shows and then goes) */
  .hm-row.is-ready.is-static .hm-row__btn { display: none; } /* everything fits: nothing to page */
  .hm-head--pager .hm-head__all { margin-right: 86px; }
}

/* a track: edge to edge on phones, snapping card by card; the scrollbar is hidden, the cut-off card shows there is more */
.hm .p3-svc, .hm .p3-tools, .hm .home-guides, .hm .home-info {
  display: flex; grid-template-columns: none; align-items: stretch; gap: 10px; margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); overscroll-behavior-x: contain; scrollbar-width: none;
  border: 0; border-radius: 0; background: none; counter-reset: g;
}
.hm .p3-svc::-webkit-scrollbar, .hm .p3-tools::-webkit-scrollbar, .hm .home-guides::-webkit-scrollbar, .hm .home-info::-webkit-scrollbar { display: none; }
.hm .p3-svc > li, .hm .p3-tools > li, .hm .home-guides > li, .hm .home-info > li { flex: 0 0 var(--hm-card); min-width: 0; scroll-snap-align: start; border: 0; padding: 0; }
.hm .p3-svc > .p3-svc__hero { flex-basis: calc(var(--hm-card) * 2 + 10px); }

/* one card: a flat sheet with a hairline; the same hover, press and focus on every kind */
.hm .p3-svc .p3-tile, .hm .p3-tools .p3-tool, .hm .home-guides .ui-row, .hm .home-info > li, .hm .p3-spec { border: 1px solid var(--c-line); border-radius: var(--hm-r); background: var(--c-surface); box-shadow: none; }
.hm .p3-svc .p3-tile, .hm .p3-tools .p3-tool, .hm .home-guides .ui-row { color: var(--c-text); text-decoration: none; -webkit-tap-highlight-color: transparent; transition: border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
@media (hover: hover) { .hm .p3-svc .p3-tile:hover, .hm .p3-tools .p3-tool:hover, .hm .home-guides .ui-row:hover { border-color: var(--hm-line-2); background: var(--c-surface); } }
.hm .p3-svc .p3-tile:active, .hm .p3-tools .p3-tool:active, .hm .home-guides .ui-row:active { transform: scale(.985); }
.hm .p3-svc .p3-tile:focus-visible, .hm .p3-tools .p3-tool:focus-visible, .hm .home-guides .ui-row:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 2px; border-radius: var(--hm-r); }
.hm .p3-tile:hover .p3-tile__title, .hm .p3-tool:hover .p3-tool__name { text-decoration: none; }

/* the drawing of a service sits on a chip in the service's own tint; drawn smaller than it was made for, so its line is thickened */
.hm .p3-svc .p3-tile .p3-art, .hm .p3-tools .p3-tool .p3-art, .hm .p3-my__kicker .p3-art {
  grid-column: auto; grid-row: auto; align-self: flex-start; box-sizing: border-box; width: 46px; height: 46px; margin: 0; padding: 6px; border-radius: 13px;
  background: var(--c-surface-2); background: color-mix(in srgb, var(--c-tint) 42%, var(--c-surface)); transition: none; }
.hm :is(a, button):hover > .p3-art { transform: none; }
.hm .p3-tile .p3-art .ink, .hm .p3-tool .p3-art .ink, .hm .p3-my__kicker .p3-art .ink { stroke-width: 2.6; }
.hm .p3-tile .p3-art .thin, .hm .p3-tool .p3-art .thin, .hm .p3-my__kicker .p3-art .thin { stroke-width: 1.9; }
.hm .p3-tile .p3-art .bold, .hm .p3-tool .p3-art .bold, .hm .p3-my__kicker .p3-art .bold { stroke-width: 3.6; }
.hm .p3-tile .p3-art .dots, .hm .p3-tool .p3-art .dots { stroke-width: 4; }

/* service card: the chip, the name, one or two lines; a small dot in the corner that lights when the service was opened (내 별자리) */
.hm .p3-svc .p3-tile { position: relative; display: flex; flex-direction: column; gap: 2px; height: 100%; min-height: 150px; padding: 14px 14px 16px; }
.hm .p3-svc .p3-tile .p3-tile__title { grid-column: auto; align-self: auto; margin-top: 12px; padding-right: 2px; font-size: .9375rem; font-weight: 600; line-height: 1.32; letter-spacing: -.02em; }
.hm .p3-svc .p3-tile .p3-tile__meta { grid-column: auto; align-self: auto; color: var(--c-text-2); font-size: .8125rem; line-height: 1.5; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.hm .p3-svc .p3-tile .p3-tile__pitch { grid-column: auto; margin-top: 6px; color: var(--c-text-2); font-size: .8125rem; line-height: 1.55; }
/* the first card of 공부·시험 is two cards wide and lies down: the chip beside the name, the line and the pitch */
.hm .p3-svc .p3-svc__hero .p3-tile { display: grid; grid-template-columns: auto minmax(0, 1fr); align-content: start; column-gap: 14px; row-gap: 2px; padding-right: 30px; }
.hm .p3-svc .p3-svc__hero .p3-tile .p3-art { grid-row: 1 / span 3; }
.hm .p3-svc .p3-svc__hero .p3-tile > span { grid-column: 2; }
.hm .p3-svc .p3-svc__hero .p3-tile .p3-tile__title { margin-top: 1px; font-size: 1.0625rem; font-weight: 800; letter-spacing: -.03em; }
.hm .p3-svc .p3-tile::after, .hm .p3-tools .p3-tool::after { content: ""; position: absolute; top: 15px; right: 15px; width: 6px; height: 6px; border-radius: 50%; background: var(--hm-line-2); }
.hm .is-lit::after { content: ""; position: absolute; top: 10px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--c-star); }
.hm .p3-svc .p3-tile.is-lit::after, .hm .p3-tools .p3-tool.is-lit::after { top: 14px; right: 14px; width: 8px; height: 8px; background: var(--c-star); }
.hm .p3-lab__badge { height: 18px; margin-left: 2px; padding: 0 5px; font-size: .6875rem; vertical-align: 1px; }
/* a track with a single card (게임) and, on wide screens, the three of 실험실: the cards lie down and fill the line */
.hm .p3-svc.p3-svc--one > li { flex-basis: min(100%, 21rem); }
.hm .p3-svc.p3-svc--one .p3-tile { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; align-content: center; column-gap: 12px; row-gap: 1px; min-height: 76px; padding: 14px 32px 14px 14px; }
.hm .p3-svc.p3-svc--one .p3-tile .p3-art { grid-row: 1 / 3; align-self: center; }
.hm .p3-svc.p3-svc--one .p3-tile .p3-tile__title { margin-top: 0; align-self: end; }
.hm .p3-svc.p3-svc--one .p3-tile .p3-tile__meta { align-self: start; }
@media (min-width: 900px) {
  .hm .p3-svc.p3-svc--lab > li { flex: 1 1 0; }
  .hm .p3-svc.p3-svc--lab .p3-tile { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; align-content: center; column-gap: 14px; row-gap: 1px; min-height: 84px; padding: 16px 32px 16px 16px; }
  .hm .p3-svc.p3-svc--lab .p3-tile .p3-art { grid-row: 1 / 3; align-self: center; }
  .hm .p3-svc.p3-svc--lab .p3-tile .p3-tile__title { margin-top: 0; align-self: end; }
  .hm .p3-svc.p3-svc--lab .p3-tile .p3-tile__meta { align-self: start; }
}

/* the two groups of 생활 서비스 */
.hm .p3-season { margin: 0 0 22px; padding: 0; border-radius: 0; background: none; }
.hm .p3-subh { margin: 0 0 2px; font-size: 1rem; font-weight: 800; line-height: 1.5; letter-spacing: -.025em; }
.hm .p3-subh__note { margin: 0 0 12px; font-size: .875rem; line-height: 1.55; }
.hm #h-year { margin-bottom: 12px; }
.hm .p3-season__mark { width: 18px; height: 18px; stroke-width: 2; }

/* tools: the same card */
.hm .p3-toolbox.p3-receipt { position: static; padding: 0; border-radius: 0; background: none; box-shadow: none; clip-path: none; }
.hm .p3-tools > li { flex-basis: 172px; }
.hm .p3-tools .p3-tool { position: relative; display: flex; flex-direction: column; gap: 2px; height: 100%; min-height: 138px; padding: 14px 14px 16px; }
.hm .p3-tools .p3-tool__name { align-self: auto; margin-top: 12px; font-size: .9375rem; font-weight: 600; line-height: 1.32; letter-spacing: -.02em; }
.hm .p3-tools .p3-tool__meta { align-self: auto; color: var(--c-text-2); font-size: .8125rem; line-height: 1.5; }
.hm .p3-toolbox__foot { justify-content: flex-start; margin: 6px 0 0; padding: 0; border: 0; }
.hm .p3-toolbox__foot a { color: var(--c-accent); font-size: .875rem; }

/* guides: a numbered card per guide, all of them in the track */
.hm .home-guides > li { flex-basis: min(80%, 17.5rem); border-top: 0; counter-increment: g; }
.hm .home-guides .ui-row { display: flex; flex-direction: column; align-items: stretch; gap: 10px; height: 100%; min-height: 0; padding: 14px 16px 16px; }
.hm .home-guides .ui-row::before { content: counter(g, decimal-leading-zero); align-self: flex-start; min-width: 30px; padding: 4px 7px; border-radius: 8px; background: var(--c-accent-soft); color: var(--c-accent); font-size: .75rem; font-weight: 800; line-height: 1.2; letter-spacing: .02em; text-align: center; font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.hm .home-guides .ui-row__body { gap: 6px; }
.hm .home-guides .ui-row__title { font-size: .9375rem; font-weight: 600; line-height: 1.42; letter-spacing: -.02em; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.hm .home-guides .ui-row__meta { color: var(--c-text-2); font-size: .8125rem; line-height: 1.55; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.hm .home-more { gap: 0 20px; margin-top: 6px; font-size: .875rem; font-weight: 600; }
.hm .home-more a { color: var(--c-accent); }
/* the exam-site guide links: one row of quiet pills that scrolls sideways on phones */
.hm #exam-guides { flex-wrap: nowrap; gap: 6px; margin: 8px calc(-1 * var(--gutter)) 0; padding: 2px var(--gutter) 4px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.hm #exam-guides::-webkit-scrollbar { display: none; }
.hm #exam-guides a { flex: none; min-height: 40px; padding: 0 8px 0 13px; border: 1px solid var(--c-line); border-radius: 999px; color: var(--c-text-2); font-size: .8125rem; white-space: nowrap; transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.hm #exam-guides a::after { width: 14px; height: 14px; background: var(--c-text-3); -webkit-mask-size: 14px; mask-size: 14px; }
.hm #exam-guides a:hover { border-color: var(--hm-line-2); color: var(--c-text); text-decoration: none; }
.hm #exam-guides a:focus-visible { border-radius: 999px; }

/* 서비스 소개: the whole description on each card, its link as the card's last line */
.hm .home-info > li { flex-basis: min(84%, 20.5rem); display: flex; flex-direction: column; padding: 16px 16px 4px; }
.hm .home-info > li:first-child { padding-top: 16px; }
.hm .home-info h3 { margin: 0 0 6px; font-size: 1rem; letter-spacing: -.02em; }
.hm .home-info p { max-width: none; margin: 0 0 6px; font-size: .875rem; line-height: 1.65; }
.hm .home-info p + p { color: var(--c-text-3); font-size: .8125rem; }
.hm .home-info a { justify-content: space-between; align-self: stretch; margin-top: auto; border-top: 1px solid var(--c-line); color: var(--c-accent); font-size: .875rem; font-weight: 600; }
.hm .home-info p:last-of-type { margin-bottom: 12px; }

/* 내 한국 생활 달력: one slim sheet under the hero */
.hm .p3-my { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin: 0; padding: 16px; border: 1px solid var(--c-line); border-radius: 20px; background: var(--c-surface); box-shadow: none; --c-accent: #2b55d9; --c-accent-hover: #2147bd; --c-on-accent: #ffffff; --c-focus: #2b55d9; }
.hm .p3-my__kicker { gap: 10px; color: var(--c-text-2); font-size: .875rem; font-weight: 600; }
.hm .p3-my__kicker .p3-art { width: 40px; height: 40px; padding: 5px; border-radius: 12px; }
.hm .p3-my .p3-my__title { max-width: 24em; margin: 12px 0 4px; font-size: 1.25rem; line-height: 1.3; letter-spacing: -.035em; }
.hm .p3-my__lead { margin: 0 0 14px; color: var(--c-text-2); font-size: .9375rem; }
.hm .p3-my__go { min-height: 48px; padding: 0 18px; border-radius: 12px; font-weight: 600; }
.hm .p3-my__cal { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 12px 0 0; border: 0; border-top: 1px solid var(--c-line); }
.hm .p3-my__ex { margin: 0; }
.hm .p3-my__tl { display: flex; flex-wrap: wrap; gap: 6px; }
.hm .p3-my__tl::before { content: none; }
.hm .p3-my__tl > li { display: inline-flex; gap: 6px; padding: 5px 11px; border: 1px solid var(--c-line); border-radius: 999px; background: var(--c-bg); font-size: .8125rem; line-height: 1.4; }
.hm .p3-my__tl > li::before { content: none; }
.hm .p3-my__m { font-size: .8125rem; font-weight: 800; }
.hm .p3-my__t { font-weight: 400; }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .hm .p3-my { --c-accent: #9db2ff; --c-accent-hover: #b7c6ff; --c-on-accent: #0f1322; --c-focus: #9db2ff; } }
html[data-theme="dark"] .hm .p3-my { --c-accent: #9db2ff; --c-accent-hover: #b7c6ff; --c-on-accent: #0f1322; --c-focus: #9db2ff; }
@media (min-width: 720px) {
  .hm .p3-my { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 28px; padding: 22px 24px; }
  .hm .p3-my__cal { flex-direction: column; align-items: flex-start; padding: 2px 0 2px 24px; border-top: 0; border-left: 1px solid var(--c-line); }
  .hm .p3-my__tl { flex-direction: column; }
}

/* 같이 공부하는 방 keeps its own night card, and the KIIP round band its own words; here only their place in the rhythm. On the
   night page the study card is a shade lighter than the sky behind it, so it still reads as a card. */
.hm .p3-study { margin: 0 0 10px; border-radius: var(--hm-r); }
.hm .p3-study__go { border-radius: 12px; font-weight: 600; }
.hm .p3-study.is-lit::after { top: 12px; right: 12px; }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .hm .p3-study { --st-bg: #1c2247; --st-line: #3a4477; } }
html[data-theme="dark"] .hm .p3-study { --st-bg: #1c2247; --st-line: #3a4477; }
.hm .kr-band { margin-bottom: 10px; border-width: 1px; border-color: color-mix(in srgb, var(--c-accent) 45%, var(--c-accent-soft)); border-radius: var(--hm-r); }

/* 바로 해 보기: three sheets of one height */
.hm .p3-try__row { align-items: stretch; gap: 10px; padding-bottom: 6px; scrollbar-width: none; }
.hm .p3-try__row::-webkit-scrollbar { display: none; }
.hm .p3-spec { padding: 18px 18px 10px; }
.hm .p3-spec.p3-receipt { padding-bottom: 10px; clip-path: none; }
.hm .p3-spec__kicker { color: var(--c-text-2); }
.hm .p3-spec .p3-print { border-color: var(--hm-line-2); border-radius: 10px; background: var(--c-bg); }
.hm .p3-omr__opt:not(.is-right, .is-wrong) { border-color: var(--hm-line-2); }
.hm .p3-omr__opt { border-radius: 12px; }
.hm .p3-spec__total { font-variant-numeric: tabular-nums; }
.hm .p3-spec__more { color: var(--c-accent); font-size: .875rem; }
.hm .p3-lab__gather { margin: 8px 0 0; font-size: .875rem; }
.hm .p3-lab__more { margin-top: 0; }

@media (min-width: 600px) { body.hm { --hm-card: 172px; } .hm .p3-tools > li { flex-basis: 188px; } }
@media (min-width: 900px) {
  body.hm { --hm-card: 184px; }
  .hm .home-sec { margin-top: 64px; }
  .hm .home-sec > h2, .hm .hm-head h2, .hm .home-h2 { font-size: 1.5rem; }
  .hm .home-sec > h2 { margin-bottom: 16px; }
  .hm-head { margin-bottom: 16px; }
  .hm .p3-svc, .hm .p3-tools, .hm .home-guides, .hm .home-info { margin: 0; padding-left: 0; padding-right: 0; scroll-padding: 0; gap: 12px; }
  .hm .p3-svc > .p3-svc__hero { flex-basis: calc(var(--hm-card) * 2 + 12px); }
  .hm .home-guides > li { flex-basis: 17.5rem; }
  .hm .home-info > li { flex-basis: 20.5rem; }
  .hm #exam-guides { flex-wrap: wrap; margin: 10px 0 0; padding: 2px 0 0; overflow: visible; }
  .hm #exam-guides a { min-height: 36px; }
  .hm .p3-try__row { gap: 12px; }
}

/* ---------------------------------------------------------------- 내 별자리: a strip of night in both themes */
.hm-sky { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 44px; padding: 20px 18px 14px; border: 1px solid var(--hm-night-line); border-radius: 20px; background: var(--hm-night); color: var(--hm-night-text); }
html:not([data-js]) .hm-sky { display: none; }
.hm-sky__t { min-width: 0; }
.hm-sky h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; color: var(--hm-night-text); font-size: 1.125rem; letter-spacing: -.03em; }
.hm-sky p { max-width: 26rem; margin: 0; color: var(--hm-night-text-2); font-size: .875rem; line-height: 1.6; }
.hm-sky__clear { min-height: var(--tap); margin: 4px 0 0 -10px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: #b9c8ff; font: inherit; font-size: .875rem; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.hm-sky__clear:focus-visible, .hm-sky__rl a:focus-visible { outline: 2px solid #b9c8ff; outline-offset: 2px; }
/* 최근에 연 서비스: the last few stars as links (drawn by home-app.js from the same list as the stars, when there are two or more).
   One line that scrolls sideways if it must, so its height is the same for any names in any language. */
.hm-sky__r { margin-top: 14px; }
.hm-sky__r[hidden] { display: none; }
.hm-sky .hm-sky__rt { margin: 0 0 8px; color: var(--hm-night-text-2); font-size: .8125rem; font-weight: 600; line-height: 1.5; letter-spacing: 0; white-space: nowrap; }
.hm-sky__rl { display: flex; gap: 6px; min-height: 40px; margin: 0 -18px; padding: 0 18px; list-style: none; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.hm-sky__rl::-webkit-scrollbar { display: none; }
.hm-sky__rl > li { flex: none; }
.hm-sky__rl a { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 13px 0 11px; border: 1px solid #3a4470; border-radius: 999px; color: var(--hm-night-text); font-size: .875rem; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap; transition: border-color var(--t-fast) var(--ease); }
.hm-sky__rl a::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: #ffcf4a; }
.hm-sky__rl a:hover { border-color: #8f9ac4; color: var(--hm-night-text); }
.hm-sky__rl a:focus-visible { outline-offset: -2px; border-radius: 999px; }
/* a returning reader (html[data-stars], put there by home-boot.js before the first paint): the room of the button and of the links
   is kept while home-app.js has not drawn them yet, and the sentence keeps two lines, so the panel has its final height at once */
html[data-stars] .hm-sky__clear[hidden] { display: inline-block !important; visibility: hidden; }
html[data-stars="many"] .hm-sky__r[hidden] { display: block !important; visibility: hidden; }
html[data-stars] .hm-sky p { min-height: 3.2em; }
.hm-sky__svg { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; }
.hm-sky__svg .s { fill: #56608a; }
.hm-sky__svg .s.on { fill: #ffcf4a; transition: r var(--t-med) var(--ease); }
.hm-sky__svg polyline { fill: none; stroke: #c9a544; stroke-width: 1; stroke-linejoin: round; stroke-linecap: round; }
/* wide: the words beside the sky; the links and the button are a line of their own under both */
@media (min-width: 720px) {
  .hm-sky { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 0 28px; padding: 24px 28px 20px; }
  .hm-sky__t { display: contents; }
  .hm-sky h2 { grid-column: 1; grid-row: 1; align-self: end; }
  .hm-sky p { grid-column: 1; grid-row: 2; align-self: start; }
  .hm-sky__svg { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .hm-sky__r { grid-column: 1 / -1; grid-row: 3; display: flex; align-items: center; gap: 14px; min-width: 0; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--hm-night-line); }
  html[data-stars="many"] .hm-sky__r[hidden] { display: flex !important; }
  .hm-sky .hm-sky__rt { flex: none; margin: 0; }
  .hm-sky__rl { flex: 1; min-width: 0; margin: 0; padding: 0; }
  .hm-sky__clear { grid-column: 1 / -1; grid-row: 4; justify-self: start; margin-top: 6px; }
}
@media (min-width: 900px) { .hm-sky { margin-top: 64px; } }

/* ---------------------------------------------------------------- 소개: the statement, the method, the channels, contact */
.hm #about { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--c-line); }
.hm .home-about { gap: var(--s-5); }
.hm .home-about .hm-claim { max-width: 16em; margin: 12px 0 var(--s-4); color: var(--c-text); font-size: 1.5rem; font-weight: 800; line-height: 1.3; letter-spacing: -.04em; text-wrap: balance; }
.hm .home-about p { font-size: .9375rem; line-height: 1.75; }
.hm .points { font-size: .9375rem; }
.hm .points .hm-i { margin-top: 3px; }
.hm .home-contact { padding: 20px; border: 1px solid var(--c-line); border-radius: var(--hm-r); background: var(--c-surface); box-shadow: none; }
.hm .home-contact .home-h2 { margin-bottom: 8px; font-size: 1.125rem; }
.hm .mail { display: inline-flex; align-items: center; min-height: var(--tap); font-size: 1.0625rem; font-weight: 600; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.hm-sns { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 12px; row-gap: 10px; align-items: center; max-width: var(--measure); margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--c-line); }
.hm-sns__face { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--c-line); object-fit: cover; }
.hm .home-about .hm-sns__t { margin: 0; color: var(--c-text-2); font-size: .9375rem; line-height: 1.5; }
.hm .home-about .hm-sns__l { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.hm-sns__l a { display: inline-flex; align-items: center; gap: 7px; min-height: var(--tap); padding: 0 15px 0 13px; border: 1px solid var(--c-line-strong); border-radius: 999px; color: var(--c-text); font-size: .9375rem; font-weight: 600; text-decoration: none; transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease); }
.hm-sns__l a:hover { border-color: var(--c-text); background: var(--c-surface); color: var(--c-text); }
.hm-sns__l a:focus-visible { border-radius: 999px; }
@media (min-width: 900px) {
  .hm #about { margin-top: 64px; padding-top: 56px; }
  .hm .home-about { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--s-7); }
  .hm .home-about .hm-claim { font-size: 1.875rem; }
}

/* ---------------------------------------------------------------- "전체": the static list (and the same list inside the sheet) */
.hm-all { margin-top: 40px; padding: 0 16px; border: 1px solid var(--c-line); border-radius: var(--hm-r); background: var(--c-surface); }
.hm-all > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; cursor: pointer; list-style: none; font-size: 1rem; font-weight: 800; letter-spacing: -.03em; }
.hm-all > summary::-webkit-details-marker { display: none; }
.hm-all > summary:focus-visible { outline-offset: 6px; border-radius: 8px; }
.hm-all > summary .hm-i { color: var(--c-text-2); transition: transform var(--t-med) var(--ease); }
.hm-all[open] > summary .hm-i { transform: rotate(90deg); }
.hm-all[open] > summary { border-bottom: 1px solid var(--c-line); }
.hm-all__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px 28px; padding: 2px 0 14px; }
.hm-all__g h3 { margin: 14px 0 4px; color: var(--c-text-3); font-size: .8125rem; font-weight: 600; letter-spacing: 0; }
.hm-all__g ul { margin: 0; padding: 0; list-style: none; }
.hm-all__g a { position: relative; display: flex; align-items: center; min-height: var(--tap); padding: 6px 18px 6px 0; border-top: 1px solid var(--c-line); color: var(--c-text); font-size: .9375rem; font-weight: 600; line-height: 1.4; text-decoration: none; }
.hm-all__g li:first-child a { border-top: 0; }
.hm-all__g a:hover { color: var(--c-accent); }
.hm-all__g a:focus-visible { outline-offset: -2px; }
.hm-all__g a.is-lit::after { top: 50%; right: 4px; margin-top: -4px; }
@media (min-width: 600px) { .hm-all__body { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hm #all-life, .hm [data-g="life"] { grid-row: span 2; } }
@media (min-width: 900px) { .hm-all__body { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.hm-sheet { width: 100%; max-width: 100%; max-height: 88dvh; margin: auto 0 0; padding: 0; border: 0; border-radius: 20px 20px 0 0; background: var(--c-bg); color: var(--c-text); overflow: hidden; }
.hm-sheet[open] { display: flex; flex-direction: column; animation: hm-up 200ms var(--ease) both; }
.hm-sheet::backdrop { background: rgba(8, 10, 20, .6); }
.hm-sheet__head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 8px var(--gutter); border-bottom: 1px solid var(--c-line); }
.hm-sheet__head h2 { margin: 0; font-size: 1.1875rem; letter-spacing: -.03em; }
.hm-sheet__x { display: inline-grid; place-items: center; width: var(--tap); height: var(--tap); border: 0; border-radius: 50%; background: transparent; color: var(--c-text); cursor: pointer; }
.hm-sheet__x:hover { background: var(--c-surface-2); }
.hm-sheet__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 var(--gutter) calc(20px + env(safe-area-inset-bottom)); }
.hm-sheet__body .hm-all__body { padding-top: 0; }
@keyframes hm-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 720px) { .hm-sheet { width: min(60rem, calc(100% - 48px)); max-height: 84dvh; margin: auto; border: 1px solid var(--c-line); border-radius: 20px; } }

/* ---------------------------------------------------------------- the dock (phones): solid, hairline, four destinations */
.hm-dock { position: fixed; left: 50%; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 40; display: flex; width: min(26rem, calc(100% - 20px)); height: 66px; padding: 5px; transform: translateX(-50%); border: 1px solid var(--c-line-strong); border-radius: 20px; background: var(--c-surface); box-shadow: 0 6px 20px rgba(10, 12, 24, .16); }
.hm .hm-dock__i { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 15px; color: var(--c-text-2); font-size: .6875rem; font-weight: 600; line-height: 1.15; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.hm-dock__i span { max-width: 100%; padding: 0 2px; text-align: center; text-wrap: balance; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.hm-dock__i .hm-i { width: 21px; height: 21px; }
.hm .hm-dock__i:hover { color: var(--c-text); }
.hm .hm-dock__i[aria-current="true"] { background: var(--c-accent-soft); color: var(--c-accent); }
.hm .ui-footer { padding-bottom: calc(var(--s-6) + 84px + env(safe-area-inset-bottom)); } /* the last line of the page clears the dock */
.hm .ui-footer { margin-top: 56px; }
.hm .ui-footer__links { gap: 0 20px; }
.hm .ui-footer a { text-decoration: none; }
.hm .ui-footer a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.hm .ui-footer__fine { font-variant-numeric: tabular-nums; }
.hm.is-search .hm-dock { visibility: hidden; } /* the open result list is never under the dock */
@media (min-width: 900px) { .hm-dock { display: none; } .hm .ui-footer { padding-bottom: var(--s-7); } }
@media print { .hm-dock { display: none; } }

/* ---------------------------------------------------------------- story cards: a full-screen dialog, opened by a tap only */
.hm-story { width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: #0b0e1a linear-gradient(180deg, var(--orb-deep, #172a6b) 0%, #0b0e1a 68%); color: #fff; overflow: hidden; }
.hm-story::backdrop { background: rgba(6, 8, 16, .82); }
.hm-story__in { position: relative; display: flex; flex-direction: column; height: 100%; padding: calc(10px + env(safe-area-inset-top)) 18px calc(14px + env(safe-area-inset-bottom)); }
.hm-story__bars { display: flex; gap: 4px; }
.hm-story__bars i { flex: 1 1 0; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.hm-story__bars i::after { content: ""; display: block; height: 100%; background: #fff; transform: scaleX(0); transform-origin: 0 50%; }
.hm-story__bars i.is-done::after { transform: none; }
.hm-story__bars i.is-on::after { animation: hm-bar 7s linear both; }
.hm-story.is-paused .hm-story__bars i.is-on::after { animation-play-state: paused; }
@keyframes hm-bar { from { transform: scaleX(0); } to { transform: none; } }
.hm-story__top { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.hm-story__who { display: inline-flex; align-items: center; gap: 8px; font-size: .9375rem; font-weight: 600; }
.hm-story__who .ui-logo { width: 26px; height: 26px; }
.hm-story__n { margin-right: auto; color: #e6e9f5; font-size: .875rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.hm-story__btn { display: inline-grid; place-items: center; width: var(--tap); height: var(--tap); border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; }
.hm-story__btn:hover { background: rgba(255, 255, 255, .14); }
.hm-story__btn:focus-visible, .hm-card__go:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.hm-story__btn[disabled] { visibility: hidden; }
.hm-story__play, .hm-story.is-paused .hm-story__pause { display: none; }
.hm-story.is-paused .hm-story__play { display: block; }
@media (prefers-reduced-motion: reduce) { .hm #storyPause { display: none; } } /* nothing advances by itself, so there is nothing to pause */
.hm-story__cards { flex: 1; min-height: 0; display: grid; }
.hm-card { grid-area: 1 / 1; display: flex; flex-direction: column; justify-content: flex-end; min-height: 0; padding: 0 0 4px; }
.hm-card[hidden], .hm-card:not(.is-on) { display: none; }
.hm-card__vis { margin: auto 0; padding: 12px 0; }
.hm-card__big { margin: 0; font-size: clamp(5rem, 30vw, 8rem); font-weight: 800; line-height: 1; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.hm-week { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 5px; max-width: 26rem; margin: 18px 0 0; padding: 0; list-style: none; }
.hm-week li { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 7px; border: 1px solid rgba(255, 255, 255, .42); border-radius: 10px; font-variant-numeric: tabular-nums; }
.hm-week b { font-size: 1.0625rem; font-weight: 800; line-height: 1.1; }
.hm-week span { color: #e6e9f5; font-size: .6875rem; line-height: 1.2; }
.hm-week li[aria-current] { border-color: #fff; background: #fff; color: #0b0e1a; }
.hm-week li[aria-current] span { color: #0b0e1a; }
.hm-card__orb { display: grid; place-items: center; width: 132px; height: 132px; border-radius: 50%; background: var(--orb); box-shadow: 0 0 0 6px #0b0e1a, 0 0 0 7.5px var(--orb); }
.hm-card__orb .hm-i { width: 60px; height: 60px; }
.hm-card__k { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; margin: 0 0 12px; padding: 5px 11px; border: 1px solid rgba(255, 255, 255, .55); border-radius: 999px; font-size: .8125rem; font-weight: 600; line-height: 1.3; font-variant-numeric: tabular-nums; }
.hm-card.is-today .hm-card__k::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ffcf4a; }
.hm-card__t { margin: 0 0 10px; font-size: clamp(1.5rem, 6.6vw, 1.875rem); font-weight: 800; line-height: 1.25; letter-spacing: -.04em; text-wrap: balance; }
.hm-card__m { margin: 0 0 18px; color: #e6e9f5; font-size: 1rem; line-height: 1.65; }
.hm-card__go { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 8px 18px; border-radius: 16px; background: #fff; color: #0b0e1a; font-size: 1.0625rem; font-weight: 800; letter-spacing: -.02em; text-align: center; text-decoration: none; }
.hm-card__go:hover { color: #0b0e1a; background: #e9ecf7; }
.hm-story__nav { display: flex; justify-content: space-between; margin-top: 6px; }
@media (min-width: 720px) {
  .hm-story { width: 26.5rem; height: min(47rem, calc(100dvh - 48px)); margin: auto; border-radius: 24px; }
  .hm-card__big { font-size: 7rem; }
}
