/* ODF site base v2 (2026-10-04) — Toss/Kakao grammar on a white page.
   White floor, grey rounded panels (#F6F7F9, 24/20/12), objects bottom-right of cards, 48/700 hero, two-tier buttons,
   numbers band, label+chip grid, centred statements. Tokens come from domain.yaml via <style> on :root. */

:root {
  --panel: #F6F7F9;
  --panel-2: #F2F4F6;
  --ln: #E5E8EB;
  --r-lg: 24px; --r-md: 20px; --r-sm: 12px;
  --shadow-float: 0 12px 32px rgba(0, 0, 0, 0.08);
  --fs-display: 52px; --fs-h2: 40px; --fs-h3: 20px; --fs-lead: 20px; --fs-body: 16px; --fs-small: 15px; --fs-cap: 13px;
  --sp-section: 120px; --sp-head: 32px; --sp-gap: 24px; --sp-pad: 32px;
  --max: 1120px; --gutter: 24px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --surface: #fff; --surface-2: #fff; --on-primary: #fff; --header-bg: rgba(255, 255, 255, 0.88);
}
[data-variant="notes"] { --fs-display: 49px; }
[data-variant="index"] { --fs-display: 56px; --r-lg: 20px; --r-md: 16px; --r-sm: 10px; }

html { scroll-behavior: smooth; background: var(--c-bg); }
body { margin: 0; background: var(--c-bg); color: var(--c-ink); font-family: var(--font-body), "Pretendard Variable", "Noto Sans KR", "Apple SD Gothic Neo", sans-serif; font-size: var(--fs-body); line-height: 1.7; -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: break-word; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 3px; }
::selection { background: var(--c-theme); }
h1, h2, h3 { margin: 0; line-height: 1.3; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0; }
img, svg { display: block; max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
[id] { scroll-margin-top: 88px; }
.num { font-variant-numeric: tabular-nums; }
.cap { font-size: var(--fs-cap); font-weight: 500; letter-spacing: 0.02em; color: var(--c-muted); }
.small { font-size: var(--fs-small); color: var(--c-muted); line-height: 1.6; }

/* ---------- header ---------- */
.header { position: sticky; top: 0; z-index: 20; background: var(--header-bg); backdrop-filter: saturate(1.2) blur(10px); }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.wordmark { display: inline-flex; align-items: baseline; gap: 8px; font-family: var(--font-display), var(--font-body), sans-serif; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; padding: 12px 0; }
.wordmark .mark { width: 10px; height: 10px; background: var(--c-primary); border-radius: 3px; align-self: center; }
[data-variant="notes"] .wordmark { font-weight: 400; font-size: 23px; }
[data-variant="index"] .wordmark { font-family: "DM Sans", var(--font-body), sans-serif; font-weight: 800; letter-spacing: -0.03em; text-transform: uppercase; }
[data-variant="index"] .wordmark .mark { background: var(--c-point); border-radius: 2px; }
.wordmark small { font-family: var(--font-body), sans-serif; font-size: var(--fs-cap); font-weight: 500; letter-spacing: 0.08em; color: var(--c-muted); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 10px 12px; font-size: 15px; font-weight: 500; color: var(--c-muted); border-radius: 10px; }
.nav a[aria-current], .nav a:hover { color: var(--c-ink); background: var(--panel); }
.sample-chip { margin-left: 12px; font-size: var(--fs-cap); font-weight: 600; color: var(--c-ink); background: color-mix(in srgb, var(--c-point) 22%, var(--c-bg)); border-radius: 999px; padding: 6px 10px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.sample-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c-point); }
.menu-toggle { display: none; margin-left: auto; min-height: 44px; padding: 8px 12px; border: 1px solid var(--ln); background: var(--surface-2); border-radius: var(--r-sm); font-size: 14px; }
.menu-toggle span { margin-left: 8px; font-size: 18px; }

/* ---------- buttons · chips · fields ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; background: var(--c-primary); color: var(--on-primary); border: 1px solid var(--c-primary); border-radius: 999px; font-weight: 600; font-size: 16px; transition: transform 0.2s var(--ease), filter 0.2s; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }
.btn.tint { background: transparent; color: var(--c-primary); border-color: color-mix(in srgb, var(--c-primary) 45%, var(--c-bg)); }
.btn.sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; background: var(--surface-2); border: 1px solid var(--ln); border-radius: var(--r-sm); font-size: 15px; font-weight: 500; transition: transform 0.2s var(--ease), border-color 0.2s; }
.chip:hover { transform: translateY(-1px); border-color: var(--c-primary); }
.chip.on { background: var(--c-primary); color: var(--on-primary); border-color: var(--c-primary); }
.chip.sm { min-height: 44px; padding: 0 14px; font-size: 14px; }
.tag { display: inline-block; font-size: var(--fs-cap); font-weight: 600; padding: 3px 8px; border-radius: 6px; background: var(--panel-2); color: var(--c-muted); white-space: nowrap; }
.tag.point { background: color-mix(in srgb, var(--c-point) 22%, var(--c-bg)); color: var(--c-ink); }
[data-variant="finder"] .tag.point { background: color-mix(in srgb, var(--c-point) 12%, var(--c-bg)); color: var(--c-point); }
.tag.primary { background: color-mix(in srgb, var(--c-primary) 12%, var(--c-bg)); color: var(--c-primary); }
.field label { display: block; font-size: var(--fs-cap); font-weight: 500; color: var(--c-muted); margin-bottom: 6px; }
.field select, .field input { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--ln); border-radius: var(--r-sm); background: var(--surface-2); }
.field input.lookup { min-height: 56px; font-size: 18px; box-shadow: var(--shadow-float); border-color: transparent; }
.field [disabled] { color: var(--c-muted); cursor: not-allowed; }

/* ---------- panels ---------- */
.panel { position: relative; background: var(--panel); border-radius: var(--r-lg); padding: var(--sp-pad); }
.panel.float { background: var(--surface); box-shadow: var(--shadow-float); }
.panel.tint { background: var(--c-theme); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.obj { position: absolute; right: 24px; bottom: 20px; width: auto; height: 120px; pointer-events: none; }
.obj img { width: auto; height: 100%; }
.obj.lg { height: 150px; right: 28px; bottom: 24px; }
.obj.sm { height: 80px; right: 20px; bottom: 16px; }
.obj.float img { animation: float 8s ease-in-out infinite; }
.has-obj { padding-right: 160px; }

/* ---------- hero (split: text | product) ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; padding-top: 64px; padding-bottom: 0; }
[data-variant="finder"] { --fs-display: 44px; }
.hero .eyebrow { font-size: var(--fs-cap); font-weight: 600; letter-spacing: 0.04em; color: var(--c-primary); margin-bottom: 16px; }
.hero h1 { font-family: var(--font-display), var(--font-body), sans-serif; font-size: var(--fs-display); line-height: 1.25; letter-spacing: -0.02em; }
[data-variant="notes"] .hero h1 { font-weight: 400; letter-spacing: -0.03em; line-height: 1.3; }
.hero .lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--c-muted); margin-top: 20px; max-width: 520px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero .hint { margin-top: 20px; }
.product { min-height: 420px; display: flex; flex-direction: column; }
.product .panel-head { margin-bottom: 20px; padding-right: 136px; }
.product .obj.lg { height: 104px; width: auto; top: 10px; right: 22px; bottom: auto; }
.product .device { align-self: center; }
.finder label { display: block; font-size: var(--fs-cap); font-weight: 500; color: var(--c-muted); margin-bottom: 6px; }
.finder select, .finder input { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--ln); border-radius: var(--r-sm); background: var(--surface-2); }
.finder-note { font-size: var(--fs-cap); color: var(--c-muted); margin: -8px 0 16px; }
.product .finder { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); gap: 10px; align-items: end; margin-bottom: 20px; }
.product .finder .btn { min-height: 48px; }

/* rows (inside panels) */
.rows { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; align-items: center; min-height: 60px; padding: 12px 0; border-top: 1px solid var(--ln); }
.row:first-child { border-top: 0; }
.row h3, .row .t { font-size: 16px; font-weight: 600; line-height: 1.45; }
.row p { font-size: var(--fs-cap); color: var(--c-muted); margin-top: 2px; }
.row .end { display: flex; align-items: center; gap: 10px; }
.row .arrow { color: var(--c-muted); transition: transform 0.25s var(--ease); }
.row:hover .arrow { transform: translateX(4px); color: var(--c-ink); }
.row { position: relative; }
.row a.cover { position: absolute; inset: 0; }
.row .end { position: relative; z-index: 1; }
.row.skeleton span { display: block; height: 12px; border-radius: 6px; background: var(--panel-2); }
.row.skeleton .t { width: 60%; margin-bottom: 8px; } .row.skeleton p { width: 36%; }
.more { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; font-weight: 600; color: var(--c-primary); white-space: nowrap; }

/* ---------- sections ---------- */
.section { padding-top: var(--sp-section); }
.section-head { margin-bottom: var(--sp-head); max-width: 720px; }
.section-head h2 { font-family: var(--font-display), var(--font-body), sans-serif; font-size: var(--fs-h2); line-height: 1.3; }
[data-variant="notes"] .section-head h2 { font-weight: 400; }
.section-head p { font-size: var(--fs-lead); color: var(--c-muted); margin-top: 10px; line-height: 1.6; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; max-width: none; }

/* numbers band */
.numbers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.numbers > div { padding: 8px 32px; border-left: 1px solid var(--ln); }
.numbers > div:first-child { padding-left: 0; border-left: 0; }
.numbers .val { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; margin-top: 6px; }
.numbers .val b { font-size: 18px; font-weight: 600; color: var(--c-muted); margin-left: 4px; }
.numbers .note { font-size: var(--fs-cap); color: var(--c-muted); margin-top: 6px; }

/* label + chip grid */
.chipgrid { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px 32px; align-items: start; padding: 24px 0; border-top: 1px solid var(--ln); }
.chipgrid:first-of-type { border-top: 0; }
.chipgrid .lbl { font-size: 17px; font-weight: 700; padding-top: 10px; }

/* bento */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--sp-gap); }
.card { position: relative; background: var(--panel); border-radius: var(--r-lg); padding: var(--sp-pad); min-height: 184px; grid-column: span 4; transition: transform 0.25s var(--ease); display: flex; flex-direction: column; }
.card:hover { transform: translateY(-2px); }
.card.w6 { grid-column: span 6; } .card.w8 { grid-column: span 8; } .card.w12 { grid-column: span 12; }
.card.tall { grid-row: span 2; }
.card .idx { font-size: var(--fs-cap); font-weight: 700; color: var(--c-primary); letter-spacing: 0.06em; margin-bottom: 12px; }
.card h3 { font-size: var(--fs-h3); line-height: 1.4; }
.card h3.big { font-size: 25px; }
.card p { font-size: var(--fs-small); color: var(--c-muted); margin-top: 8px; line-height: 1.6; max-width: 40ch; }
.card .ex { margin-top: 16px; padding: 12px 14px; background: var(--surface); border-radius: var(--r-sm); font-size: 14px; line-height: 1.6; max-width: 46ch; }
.card.has-obj .ex { max-width: min(46ch, calc(100% - 140px)); }
.card .ex b { color: var(--c-primary); }
.card .meta { font-size: var(--fs-cap); color: var(--c-muted); margin-top: auto; padding-top: 20px; }
.card.has-obj { padding-bottom: 150px; }
.card.has-obj p { max-width: 30ch; }
.card.w8.has-obj { padding-bottom: var(--sp-pad); padding-right: 220px; }
.card.w8 .obj, .card.w6 .obj { height: 150px; }
.card a.cover { position: absolute; inset: 0; border-radius: inherit; }
.card.white { background: var(--surface); border: 1px solid var(--ln); }

/* statement */
.statement { text-align: center; max-width: 760px; margin: 0 auto; padding-top: var(--sp-section); }
.statement h2 { font-family: var(--font-display), var(--font-body), sans-serif; font-size: var(--fs-h2); line-height: 1.4; }
[data-variant="notes"] .statement h2 { font-weight: 400; }
.statement .links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-top: 20px; }
.statement .links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--c-primary); }
.statement .cap { margin-top: 12px; }

/* ---------- site devices ---------- */
/* d2 device frame + call cards + big numbers + emergency bar */
.device { width: 340px; margin: 0 auto; background: #111; border-radius: 40px; padding: 12px; box-shadow: var(--shadow-float); }
.screen { background: var(--surface); border-radius: 30px; padding: 18px 16px 22px; min-height: 480px; display: grid; gap: 12px; align-content: start; }
.screen .cap { margin-bottom: 2px; }
.callcard { position: relative; background: var(--surface); border-radius: var(--r-md); padding: 18px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.callcard .cover { position: absolute; inset: 0; border-radius: inherit; }
.callcard .btn { position: relative; z-index: 1; }
.callcard h3 { font-size: 17px; }
.callcard p { font-size: var(--fs-cap); color: var(--c-muted); margin-top: 4px; }
.screen .callcard { padding: 14px; }
.bignums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.bignum { display: block; padding: 24px 0 8px; }
.bignum .n { font-size: 61px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: var(--c-point); font-variant-numeric: tabular-nums; }
.bignum .l { display: block; margin-top: 10px; font-weight: 600; }
.bignum .s { display: block; font-size: var(--fs-cap); color: var(--c-muted); margin-top: 2px; }

/* d3 lookup, sheet, label guide, notes stack */
.sheet { position: relative; background: var(--surface); border: 1px solid var(--ln); border-radius: var(--r-md); padding: 16px 18px 12px; max-width: 460px; justify-self: center; width: 100%; }
.sheet .st, .sheet .sb { display: flex; justify-content: space-between; font-size: var(--fs-cap); letter-spacing: 0.06em; color: var(--c-muted); }
.sheet .st { border-bottom: 1px solid var(--ln); padding-bottom: 8px; } .sheet .sb { border-top: 1px solid var(--ln); padding-top: 8px; }
.sheet .still { position: relative; aspect-ratio: 6 / 5; margin: 6px 0 8px; }
.sheet .still::before { content: ""; position: absolute; left: 50%; top: 50%; width: 70%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: color-mix(in srgb, var(--c-point) 9%, var(--surface)); }
.sheet .still .obj { right: auto; bottom: auto; width: auto; }
.sheet .still .obj img { height: 100%; width: auto; }
.sheet .still .obj.jar { left: 24%; top: 12%; height: 76%; z-index: 2; }
.sheet .still .obj.leaf { left: 58%; top: 4%; height: 50%; transform: rotate(12deg); z-index: 1; }
.sheet .still .obj.capsule { left: 6%; top: 68%; height: 20%; transform: rotate(-18deg); z-index: 3; }
.guide { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.label-art { position: sticky; top: 88px; }
.lab-card { background: var(--surface); border: 1px solid var(--ln); border-radius: var(--r-md); padding: 18px 20px 20px; }
.lab-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; margin-bottom: 8px; border-bottom: 1px solid var(--ln); }
.lab-ico { display: block; width: 52px; flex: none; }
.lab-ico img { display: block; width: 100%; height: auto; }
.lab-name { flex: 1; font-family: var(--font-display), serif; font-size: 18px; }
.lab-badge { font-size: var(--fs-cap); color: var(--c-primary); border: 1px solid var(--c-primary); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.lab-row { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px; border-radius: var(--r-sm); transition: background 0.3s; }
.lab-row .mk { width: 26px; height: 26px; border-radius: 50%; background: var(--c-primary); color: var(--on-primary); display: grid; place-items: center; font-size: 13px; font-weight: 700; transition: background 0.3s; }
.lab-row b { display: block; font-size: 15px; font-weight: 600; }
.lab-row .v { display: block; font-size: var(--fs-small); color: var(--c-muted); margin-top: 2px; }
.label-art[data-current] .lab-row .mk { background: var(--surface); color: var(--c-primary); box-shadow: inset 0 0 0 1px var(--c-primary); }
.label-art[data-current="1"] .lab-1, .label-art[data-current="2"] .lab-2, .label-art[data-current="3"] .lab-3, .label-art[data-current="4"] .lab-4, .label-art[data-current="5"] .lab-5 { background: color-mix(in srgb, var(--c-point) 12%, var(--surface)); }
.label-art[data-current="1"] .lab-1 .mk, .label-art[data-current="2"] .lab-2 .mk, .label-art[data-current="3"] .lab-3 .mk, .label-art[data-current="4"] .lab-4 .mk, .label-art[data-current="5"] .lab-5 .mk { background: var(--c-primary); color: var(--on-primary); box-shadow: none; }
.step.on { background: var(--surface); box-shadow: var(--shadow-float); }
.step.on .n { background: var(--c-point); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.step { background: var(--panel); border-radius: var(--r-md); padding: 24px 28px; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; }
.step .n { width: 36px; height: 36px; border-radius: 50%; background: var(--c-primary); color: var(--on-primary); display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.step h3 { font-size: 18px; } .step p { font-size: var(--fs-small); color: var(--c-muted); margin-top: 6px; }
.stack { display: grid; gap: 16px; }
.note-card { background: var(--panel); border-radius: var(--r-lg); padding: 28px 32px; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; align-items: start; transition: transform 0.25s var(--ease); }
.note-card:hover { transform: translateY(-2px); }
.note-card .date { font-size: var(--fs-cap); color: var(--c-muted); padding-top: 6px; }
.note-card h3 { font-family: var(--font-display), serif; font-weight: 400; font-size: 25px; line-height: 1.35; }
.note-card p { font-size: var(--fs-small); color: var(--c-muted); margin-top: 8px; max-width: 60ch; }

/* d4 console + log */
.console .bars { display: grid; gap: 10px; }
.console .bar { display: grid; grid-template-columns: 110px minmax(0, 1fr) 56px; gap: 12px; align-items: center; font-size: 14px; }
.console .bar i { display: block; height: 10px; border-radius: 5px; background: var(--ln); overflow: hidden; }
.console .bar i b { display: block; height: 100%; width: var(--w, 0%); background: var(--c-ink); border-radius: 5px; transition: width 1.2s var(--ease); }
.console .bar.avg i b { background: var(--c-point); }
.console .bar .v { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.console .cond { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; padding-right: 150px; }
.console .obj.lg { top: auto; bottom: 18px; right: 22px; width: 132px; }
.console .panel-head { padding-right: 0; }
.log .row { grid-template-columns: 110px minmax(0, 1fr) auto; }
.log .row .d { font-size: var(--fs-cap); color: var(--c-muted); font-variant-numeric: tabular-nums; }


/* ---------- d1 장부형: numbers head + workbench + deadline strip + list panels ---------- */
.ledger-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: end; padding-top: 56px; }
.ledger-head h1 { font-family: var(--font-display), var(--font-body), sans-serif; font-size: var(--fs-display); line-height: 1.25; letter-spacing: -0.02em; }
.ledger-head .lead { font-size: var(--fs-lead); color: var(--c-muted); margin-top: 16px; max-width: 520px; line-height: 1.6; }
.ledger-head .eyebrow { font-size: var(--fs-cap); font-weight: 600; color: var(--c-primary); margin-bottom: 14px; letter-spacing: 0.04em; }
.bignumbers { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 8px 160px 8px 0; }
.bignumbers .cap { display: block; }
.bignumbers .val { font-size: 49px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin-top: 6px; }
.bignumbers .val b { font-size: 20px; font-weight: 600; color: var(--c-muted); margin-left: 4px; }
.bignumbers .obj { right: 0; bottom: 0; height: 120px; }
.workbench { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px; margin-top: 32px; }
.rail { display: grid; gap: 20px; align-content: start; }
.rail .grp .cap { display: block; margin-bottom: 8px; }
.rail .chips { gap: 8px; }
.rail .chip { min-height: 44px; padding: 0 12px; font-size: 14px; gap: 8px; }
.rail .chip i { font-style: normal; color: var(--c-muted); font-size: 12px; }
.rail .meta { font-size: var(--fs-cap); color: var(--c-muted); padding-top: 8px; border-top: 1px solid var(--ln); }
.ledger .cols { display: grid; grid-template-columns: minmax(0, 1fr) 160px 90px; gap: 16px; font-size: var(--fs-cap); font-weight: 600; color: var(--c-muted); padding-bottom: 10px; border-bottom: 1px solid var(--c-ink); }
.ledger .row { grid-template-columns: minmax(0, 1fr) 160px 90px; gap: 16px; min-height: 64px; }
.ledger .row .org { font-size: var(--fs-cap); color: var(--c-muted); }
.ledger .row .end { justify-content: flex-end; }
.strip { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 6px; align-items: end; }
.strip .day { text-align: center; min-height: 72px; display: grid; align-content: end; gap: 6px; font-size: var(--fs-cap); color: var(--c-muted); }
.strip .day b { display: block; height: 28px; border-radius: 8px; background: var(--ln); }
.strip .day.has b { background: var(--c-primary); }
.strip .day.soon b { background: var(--c-point); }
.strip .day.today span { color: var(--c-ink); font-weight: 700; }
.strip .day .n { font-size: 11px; }
.strip-empty { min-height: 72px; }
.strip-wrap { position: relative; padding-right: 150px; }
.listpanel .row { grid-template-columns: 48px minmax(0, 1fr) auto; align-items: start; min-height: 0; padding: 20px 0; }
.listpanel .row .idx { font-size: var(--fs-cap); font-weight: 700; color: var(--c-primary); padding-top: 4px; }
.listpanel .row h3 { font-size: 18px; }
.listpanel .row p { font-size: var(--fs-small); margin-top: 4px; max-width: 70ch; }
.listpanel .row.lead h3 { font-size: 25px; }

/* ---------- d2 한 손 찾기형: centred column + sticky aside ---------- */
.one { display: grid; grid-template-columns: minmax(0, 720px) 300px; gap: 56px; justify-content: center; align-items: start; padding-top: 48px; }
.one-main { display: grid; gap: var(--sp-section); }
.one-head { position: relative; padding-right: 150px; }
.one-head h1 { font-family: var(--font-display), var(--font-body), sans-serif; font-size: var(--fs-display); line-height: 1.25; letter-spacing: -0.02em; }
.one-head .lead { font-size: var(--fs-lead); color: var(--c-muted); margin-top: 16px; line-height: 1.6; }
.one-head .eyebrow { font-size: var(--fs-cap); font-weight: 600; color: var(--c-primary); margin-bottom: 14px; letter-spacing: 0.04em; }
.one-head .obj { right: 0; top: 0; bottom: auto; height: 120px; }
.tool { display: grid; gap: 18px; }
.tool .grp .cap { display: block; margin-bottom: 8px; }
.cards { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; }
.cards .callcard h3 { font-size: 20px; }
.cards .callcard p { font-size: 15px; }
.cards .callcard .btn { min-height: 48px; padding: 0 20px; }
.aside { position: sticky; top: 88px; display: grid; gap: 12px; }
.aside .em { display: block; padding: 24px; }
.aside .em .n { font-size: 44px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: var(--c-point); }
.aside .em .l { display: block; margin-top: 8px; font-weight: 700; }
.aside .em .s { display: block; font-size: var(--fs-cap); color: var(--c-muted); margin-top: 4px; }
.aside .rows { padding: 0 24px; }
.aside .rows .row { min-height: 52px; padding: 8px 0; }
.aside .rows .t { font-size: 15px; }
.aside .obj { height: 72px; right: 16px; top: 16px; bottom: auto; }
.checklist { display: grid; gap: 8px; }
.check { display: grid; grid-template-columns: 24px 36px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px 16px; background: var(--surface); border-radius: var(--r-md); cursor: pointer; border: 1px solid var(--ln); }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check .box { width: 22px; height: 22px; border: 2px solid var(--c-muted); border-radius: 7px; margin-top: 2px; }
.check.on .box { background: var(--c-primary); border-color: var(--c-primary); box-shadow: inset 0 0 0 4px var(--surface); }
.check .n { font-size: var(--fs-cap); font-weight: 700; color: var(--c-primary); padding-top: 4px; }
.check strong { display: block; font-weight: 600; }
.check small { display: block; font-size: var(--fs-small); color: var(--c-muted); margin-top: 2px; }
.check.on strong { color: var(--c-muted); text-decoration: line-through; }
.check:has(input:focus-visible) { outline: 2px solid var(--c-primary); outline-offset: 2px; }
.checklist .cap { margin-top: 4px; }
.qcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.qcards .card { min-height: 0; }
.qcards .card h3 { font-size: 20px; }

/* ---------- d4 관측소형: typographic hero + full-width console ---------- */
.typo { text-align: center; max-width: 820px; margin: 0 auto; padding-top: 64px; }
.typo .fig { font-family: "DM Sans", var(--font-body), sans-serif; font-size: var(--fs-cap); letter-spacing: 0.14em; color: var(--c-muted); margin-bottom: 20px; }
.typo h1 { font-family: var(--font-display), var(--font-body), sans-serif; font-size: var(--fs-display); line-height: 1.2; letter-spacing: -0.03em; }
.typo .lead { font-size: var(--fs-lead); color: var(--c-muted); margin: 20px auto 0; max-width: 640px; line-height: 1.6; }
.typo .actions { display: flex; justify-content: center; gap: 10px; margin-top: 28px; }
.console2 { margin-top: 48px; }
.console2 .head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding-bottom: 20px; border-bottom: 1px solid var(--ln); margin-bottom: 24px; }
.console2 .head .k { display: grid; }
.console2 .head .k .cap { font-weight: 500; }
.console2 .head .k .v { font-size: 25px; font-weight: 700; letter-spacing: -0.02em; }
.console2 .head .k .v b { font-size: 14px; font-weight: 600; color: var(--c-muted); margin-left: 2px; }
.console2 .head .tag { margin-left: auto; }
.console2 .body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; }
.console2 .bars { display: grid; gap: 12px; }
.console2 .bar { display: grid; grid-template-columns: 120px minmax(0, 1fr) 56px; gap: 12px; align-items: center; font-size: 15px; }
.console2 .bar i { display: block; height: 12px; border-radius: 6px; background: var(--surface-2); position: relative; }
.console2 .bar i b { display: block; height: 100%; width: var(--w, 0%); background: var(--c-ink); border-radius: 6px; }
.console2 .bar.avg { font-weight: 700; }
.console2 .bar.avg i::after { content: ""; position: absolute; left: var(--w, 0%); top: -6px; width: 3px; height: 24px; margin-left: -1px; background: var(--c-point); border-radius: 2px; }
.console2 .bar .v { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.console2 .conds { position: relative; padding-bottom: 110px; }
.console2 .conds .row { grid-template-columns: 84px minmax(0, 1fr) auto; min-height: 44px; padding: 8px 0; font-size: 14px; line-height: 1.45; }
.console2 .conds .row .k { color: var(--c-muted); }
.console2 .conds .obj { right: 0; bottom: 0; top: auto; height: 100px; }
.console2 .note { margin-top: 20px; font-size: var(--fs-cap); color: var(--c-muted); }
.log .row { grid-template-columns: 110px minmax(0, 1fr) 200px; }
.log .row .d { font-size: var(--fs-cap); color: var(--c-muted); font-variant-numeric: tabular-nums; }
.log .row .nums { display: flex; gap: 16px; justify-content: flex-end; font-variant-numeric: tabular-nums; font-size: 14px; }
.log .row .nums b { font-weight: 700; }
.log .row .nums .up { color: var(--c-primary); } .log .row .nums .down { color: var(--c-muted); }

/* ---------- motion ---------- */
html.js-motion [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
html.js-motion [data-reveal].in { opacity: 1; transform: none; }
html.js-motion [data-stagger] > * { opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--ease) var(--d, 0s), transform 0.6s var(--ease) var(--d, 0s), border-color 0.2s; }
html.js-motion [data-stagger].in > * { opacity: 1; transform: none; }
html.js-motion [data-stagger].in.done > * { transition-delay: 0s; }
html.js-motion [data-stagger] > h1 { opacity: 1; transform: none; }
[data-stagger] > :nth-child(1) { --d: 0.0s; }
[data-stagger] > :nth-child(2) { --d: 0.08s; }
[data-stagger] > :nth-child(3) { --d: 0.16s; }
[data-stagger] > :nth-child(4) { --d: 0.24s; }
[data-stagger] > :nth-child(5) { --d: 0.32s; }
[data-stagger] > :nth-child(6) { --d: 0.4s; }
[data-stagger] > :nth-child(7) { --d: 0.48s; }
[data-stagger] > :nth-child(8) { --d: 0.56s; }
[data-stagger] > :nth-child(9) { --d: 0.64s; }
[data-stagger] > :nth-child(10) { --d: 0.72s; }
[data-stagger] > :nth-child(11) { --d: 0.8s; }
[data-stagger] > :nth-child(12) { --d: 0.88s; }
.ln { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.ln > span { display: inline-block; }
html.js-motion [data-stagger] .ln > span { transform: translateY(112%); transition: transform 0.9s var(--ease); }
html.js-motion .in .ln > span { transform: none; }
html.js-motion .in .ln:nth-of-type(2) > span { transition-delay: 0.1s; }
html.js-motion .product.in .obj.press .fx { animation: press 0.9s cubic-bezier(0.2, 0.9, 0.3, 1) 0.6s both; }
html.js-motion .product.in .obj.ring .fx { animation: ring 1.4s ease-in-out 1s 1; transform-origin: 50% 80%; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes press { 0% { transform: translateY(-60px) rotate(-10deg) scale(1.08); opacity: 0; } 55% { transform: translateY(4px) rotate(1deg) scale(1); opacity: 1; } 75% { transform: translateY(-2px); } 100% { transform: none; opacity: 1; } }
@keyframes ring { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(-6deg); } 30% { transform: rotate(6deg); } 45% { transform: rotate(-5deg); } 60% { transform: rotate(5deg); } 75% { transform: rotate(-2deg); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fillin { to { fill-opacity: 1; } }

/* ---------- reader (shared) ---------- */
.page-head { padding: 56px 0 24px; border-bottom: 1px solid var(--ln); margin-bottom: var(--sp-between); }
.page-head h1 { font-family: var(--font-display), var(--font-body), sans-serif; font-size: calc(var(--fs-display) * 0.82); }
[data-variant="notes"] .page-head h1 { font-weight: 400; }
.page-head p { color: var(--c-muted); margin-top: 10px; }
.crumb { font-size: var(--fs-meta); color: var(--c-muted); padding: 20px 0 0; display: flex; gap: 8px; flex-wrap: wrap; }
.crumb a { padding: 12px 0; display: inline-block; text-decoration: underline; text-underline-offset: 4px; }
.article-head { padding: 24px 0 28px; border-bottom: 1px solid var(--ln); margin-bottom: var(--sp-group); max-width: 820px; }
.article-head .eyebrow { font-size: var(--fs-meta); color: var(--c-muted); font-weight: 500; }
.article-head h1 { font-family: var(--font-display), var(--font-body), sans-serif; font-size: calc(var(--fs-display) * 0.86); line-height: 1.3; margin-top: 12px; }
[data-variant="notes"] .article-head h1 { font-weight: 400; }
.article-head .dek { font-size: 18px; color: var(--c-muted); margin-top: 16px; line-height: 1.7; }
.article-head .meta { font-size: var(--fs-meta); color: var(--c-muted); margin-top: 18px; display: flex; gap: 16px; flex-wrap: wrap; }
.reader { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: 56px; padding-bottom: var(--sp-section); }
.toc { align-self: start; position: sticky; top: 88px; font-size: var(--fs-meta); }
.toc strong { display: block; font-size: var(--fs-cap); letter-spacing: 0.06em; color: var(--c-muted); margin-bottom: 10px; }
.toc a { display: flex; align-items: center; min-height: 44px; padding: 4px 0; color: var(--c-muted); }
.toc a:hover { color: var(--c-ink); }
.article { font-size: 17px; line-height: 1.85; }
.article h2 { font-family: var(--font-display), var(--font-body), sans-serif; font-size: var(--fs-h2); margin: 44px 0 14px; scroll-margin-top: 88px; }
[data-variant="notes"] .article h2 { font-weight: 400; }
.article h3 { font-size: var(--fs-h3); margin: 28px 0 10px; }
.article p { margin: 0 0 16px; }
.article ul, .article ol { padding-left: 22px; margin: 0 0 16px; }
.article li + li { margin-top: 6px; }
.article strong { font-weight: 600; }
.article a { text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.article blockquote { margin: 24px 0; padding: 16px 20px; border: 1px solid var(--ln); border-radius: var(--radius); }
.article table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 16px 0; }
.article th, .article td { border: 1px solid var(--ln); padding: 8px 10px; text-align: left; vertical-align: top; }
.sources { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--ln); font-size: var(--fs-meta); }
.sources strong { display: block; font-size: var(--fs-cap); letter-spacing: 0.06em; color: var(--c-muted); margin-bottom: 10px; }
.sources ol { padding-left: 20px; margin: 0; }
.sources li { margin-bottom: 8px; line-height: 1.7; }
.sources a { text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.sources .checked { white-space: nowrap; color: var(--c-muted); }
.fields { display: grid; grid-template-columns: 200px 1fr; margin: var(--sp-between) 0; border-top: 1px solid var(--ln); }
.fields dt, .fields dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--ln); }
.fields dt { color: var(--c-muted); font-size: var(--fs-meta); padding-right: 12px; }
.fields dd { white-space: pre-wrap; }
.notice-box { margin-top: var(--sp-between); padding: 16px 18px; border: 1px solid var(--ln); border-radius: var(--radius); font-size: var(--fs-meta); color: var(--c-muted); }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: var(--sp-inside); background: var(--c-theme); border-radius: var(--radius); padding: var(--sp-between); margin-bottom: var(--sp-between); }
.filters label { display: block; font-size: var(--fs-cap); font-weight: 500; color: var(--c-muted); margin-bottom: 6px; }
.filters select, .filters input { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--ln); border-radius: var(--radius); background: var(--c-bg); }
.notice-page { padding: 0 0 var(--sp-section); }
.notice-page .lead { font-size: 18px; color: var(--c-muted); margin: 0 0 var(--sp-between); line-height: 1.7; }
.notice-page h2 { font-size: var(--fs-h2); margin: var(--sp-group) 0 12px; font-family: var(--font-display), var(--font-body), sans-serif; }
[data-variant="notes"] .notice-page h2 { font-weight: 400; }
.notice-page p { margin: 0 0 14px; line-height: 1.8; }
.notice-page ul { padding-left: 20px; line-height: 1.9; }
.notice-page li a { text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.updated { font-size: var(--fs-cap); color: var(--c-muted); margin-top: var(--sp-group); }

/* ---------- footer ---------- */
.footer { margin-top: var(--sp-section); background: var(--panel); padding: 48px 0 56px; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: start; }
.footer .wordmark { font-size: 18px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-links a { display: inline-block; padding: 12px 0; font-size: 14px; color: var(--c-muted); }
.footer-links a:hover { color: var(--c-ink); }
.footer p { font-size: var(--fs-cap); color: var(--c-muted); margin-top: 8px; max-width: 560px; }
.footer .copy { margin-top: 16px; }

/* ---------- responsive ---------- */
@media (max-width: 768px) {
  :root { --gutter: 16px; --sp-section: 80px; --sp-pad: 20px; --sp-gap: 16px; --fs-display: 34px; --fs-h2: 26px; }
  [data-variant="index"] { --fs-display: 38px; }
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 32px; padding-bottom: 0; }
  .product .obj.lg { height: 84px; width: auto; top: 8px; right: 16px; }
  .console .obj.lg { display: none; }
  .console .cond { padding-right: 0; }
  .product .panel-head { padding-right: 108px; }
  .card.tall { grid-row: auto; }
  .hero .lead { font-size: 17px; }
  .product { min-height: 0; }
  .numbers { grid-template-columns: 1fr; }
  .numbers > div { padding: 12px 0; border-left: 0; border-top: 1px solid var(--ln); }
  .numbers > div:first-child { border-top: 0; }
  .chipgrid { grid-template-columns: 1fr; gap: 10px; }
  .chipgrid .lbl { padding-top: 0; }
  .card, .card.w6, .card.w8, .card.w12 { grid-column: span 12; min-height: 0; }
  .card.has-obj { padding-bottom: 120px; } .card.w8.has-obj { padding-right: var(--sp-pad); padding-bottom: 120px; }
  .obj, .card.w8 .obj, .card.w6 .obj { height: 96px; width: auto; right: 16px; bottom: 14px; } .obj.lg { height: 110px; }
  .has-obj { padding-right: var(--sp-pad); }
  .device { width: 100%; max-width: 360px; }
  .bignums { grid-template-columns: 1fr; }
  .bignum .n { font-size: 44px; }
  .guide { grid-template-columns: 1fr; gap: 24px; }
  .label-art { position: relative; top: auto; }
  .note-card { grid-template-columns: 1fr; gap: 6px; padding: 22px 20px; }
  .sheet { max-width: 460px; margin: 24px auto 28px; }
  .reader { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; border-bottom: 1px solid var(--ln); padding-bottom: 12px; }
  .toc a { padding: 8px 0; }
  .fields { grid-template-columns: 1fr; }
  .fields dt { border-bottom: 0; padding-bottom: 0; }
  .footer-inner { grid-template-columns: 1fr; }
  .statement h2 { font-size: 24px; }
  .ledger-head { grid-template-columns: 1fr; gap: 24px; padding-top: 32px; }
  .bignumbers { padding-right: 110px; gap: 16px; }
  .bignumbers .val { font-size: 40px; }
  .bignumbers .obj { height: 88px; }
  .workbench { grid-template-columns: 1fr; gap: 24px; }
  .ledger .cols { display: none; }
  .rail-count { display: block; margin: -8px 0 12px; font-size: 15px; color: var(--c-ink); }
  .rail-count b { font-size: 20px; }
  .ledger .row { grid-template-columns: minmax(0, 1fr) auto; }
  .ledger .row .org { grid-column: 1 / -1; }
  .strip { grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: 12px; }
  .strip-wrap { padding-right: 0; }
  .strip-wrap .obj { display: none; }
  .one { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 32px; }
  .one-main, .tool { grid-template-columns: minmax(0, 1fr); min-width: 0; }
  .tool .grp { min-width: 0; }
  .one-head { padding-right: 0; }
  .one-head .obj { display: none; }
  .one-head .lead { font-size: 16px; margin-top: 12px; }
  .one-main { gap: 48px; }
  /* Phone: each chip group is one swipeable row (edge-peek), so the first call card lands inside the first screen. */
  .tool .chips { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--sp-pad)); padding: 0 var(--sp-pad) 6px; scrollbar-width: none; }
  .tool .chips::-webkit-scrollbar { display: none; }
  .tool .chips .chip { flex: none; scroll-snap-align: start; }
  .tool { gap: 12px; }
  .aside { position: static; }
  .qcards { grid-template-columns: 1fr; }
  .typo { padding-top: 40px; }
  .console2 .body { grid-template-columns: 1fr; gap: 24px; }
  .console2 .conds { padding-bottom: 0; }
  .console2 .conds .obj { display: none; }
  .console2 .bar { grid-template-columns: 96px minmax(0, 1fr) 48px; font-size: 14px; }
  .log .row { grid-template-columns: 90px minmax(0, 1fr); }
  .log .row .nums { grid-column: 2; justify-content: flex-start; }
}
@media (max-width: 640px) {
  .table thead { display: none; }
  .table tr { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--ln); }
  .table td { border: 0; padding: 0; width: auto; }
  .menu-toggle { display: inline-flex; align-items: center; }
  .nav { display: none; }
  .header.open .nav { display: flex; flex-direction: column; width: 100%; margin: 0; padding: 8px 0 12px; border-top: 1px solid var(--ln); }
  .header-inner { flex-wrap: wrap; row-gap: 0; }
  .nav a { padding: 12px 0; font-size: 16px; }
  .sample-chip { order: 5; width: 100%; margin: 0 0 8px; border-radius: 8px; justify-content: center; font-size: 12px; padding: 5px 8px; }
  .wordmark small { display: none; }
  .menu-toggle { margin-left: auto; }
  [id], .article h2 { scroll-margin-top: 112px; }
}
html.m-off * { transition: none !important; animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ---------- v2.1 (2026-10-04) "내 조건" blocks: match workbench · nearby finder · fit survey · set picker ---------- */
button.chip { cursor: pointer; }
.chip[disabled] { opacity: 0.45; cursor: not-allowed; }
.chip[aria-pressed="true"] { background: var(--c-primary); color: var(--on-primary); border-color: var(--c-primary); }
.linkbtn { background: none; border: 0; padding: 0; min-height: 0; font: inherit; font-weight: 600; color: var(--c-primary); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.hint { font-size: var(--fs-cap); color: var(--c-muted); margin-top: 6px; }
.empty { font-size: var(--fs-small); color: var(--c-muted); padding: 20px 0; }
.rail .field select { min-height: 48px; }
.rail .meta .linkbtn { font-size: inherit; }
.ledger-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.ledger-top h2 { font-size: 20px; }
.ledger-top h2 b { font-size: 25px; margin: 0 2px; }
.ledger-top .cap b { color: var(--c-ink); font-weight: 700; }
.ledger .row .end { gap: 8px; }
.ledger .row .end .btn.ics { padding: 0 12px; font-size: 14px; }
.ledger .cols, .ledger .row { grid-template-columns: minmax(0, 1fr) 150px 164px; }
@media (min-width: 769px) { .rail-count { display: none; } }
.switch.sm { min-height: 40px; font-size: 14px; }
.switch.sm .box { width: 36px; height: 22px; } .switch.sm .box::after { width: 16px; height: 16px; } .switch.sm input:checked + .box::after { transform: translateX(14px); }
.count.home-filter { margin-bottom: 4px; }
.ing .daily { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 2px; }
.ing .daily li::before { content: "하루 섭취량 · "; }

.tool .basis .opts { display: grid; gap: 10px; }
.tool .basis .chips { gap: 8px; }
.tool .basis .btn { justify-self: start; }
.switch { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-size: 15px; font-weight: 500; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .box { width: 40px; height: 24px; border-radius: 12px; background: var(--ln); position: relative; transition: background 0.2s; flex: none; }
.switch .box::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--surface-2); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); transition: transform 0.2s var(--ease); }
.switch input:checked + .box { background: var(--c-primary); }
.switch input:checked + .box::after { transform: translateX(16px); }
.switch:has(input:focus-visible) .box { outline: 2px solid var(--c-primary); outline-offset: 2px; }
.cap.count { margin: 16px 0 10px; }
.callcard .tag { margin-top: 8px; display: inline-block; }
.callcard.empty { box-shadow: none; background: var(--panel); }

.fit { display: grid; gap: 24px; }
.survey { display: grid; gap: 20px; }
.survey .q .cap { display: block; margin-bottom: 8px; }
.survey .q .cap small { font-weight: 400; margin-left: 6px; }
.fit-results { display: grid; gap: 16px; }
.fit-results .panel h3 { font-family: var(--font-display), serif; font-weight: 400; font-size: 25px; }
.fit-results .panel.tint p { margin-top: 8px; max-width: 70ch; }
.kdri ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 600; }
.kdri .cap:last-child { margin-top: 10px; }
.ings { list-style: none; margin: 16px 0 0; padding: 0; }
.ing { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 20px; align-items: start; padding: 18px 0; border-top: 1px solid var(--ln); }
.ing:first-child { border-top: 0; padding-top: 4px; }
.ing-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ing-head strong { font-size: 17px; }
.ing .claim { font-family: var(--font-display), serif; font-size: 17px; line-height: 1.6; margin-top: 6px; max-width: 60ch; }
.ing .cap { margin-top: 6px; }
.ing .caution { margin-top: 8px; font-size: var(--fs-cap); color: var(--c-muted); max-width: 60ch; line-height: 1.6; }
.ing .caution.strong { font-size: var(--fs-small); color: var(--c-ink); background: color-mix(in srgb, var(--c-point) 14%, var(--c-bg)); border-radius: var(--r-sm); padding: 10px 12px; }
.ing .btn { align-self: center; white-space: nowrap; }

.setpick { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 48px; }
.setpick + .console2 { margin-top: 16px; }

/* ---------- dark mode (d4) — tokens only; compositions unchanged ---------- */
[data-mode="dark"] { --panel: #1C1F25; --panel-2: #262A32; --ln: #2E333B; --surface: #1C1F25; --surface-2: #272B33; --on-primary: #111318; --header-bg: rgba(18, 20, 24, 0.86); --shadow-float: 0 12px 32px rgba(0, 0, 0, 0.45); color-scheme: dark; }
[data-mode="dark"] .panel.float { background: #22262E; }
[data-mode="dark"] .chip { border-color: #3A4049; }
[data-mode="dark"] .callcard { box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4); }
[data-mode="dark"] .console2 .bar i { background: #2A2F38; }
[data-mode="dark"] .card .ex { background: var(--surface-2); }
[data-mode="dark"] .obj img { filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.55)); }
[data-mode="dark"] .btn:hover { filter: brightness(0.94); }
[data-mode="dark"] .switch .box::after { background: #EDEFF2; }

@media (max-width: 768px) {
  .ledger .cols { display: none; }
  .ledger .row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .ledger .row .org { order: 3; }
  .ledger .row .end { justify-content: flex-start; }
  .ledger-top h2 { font-size: 18px; }
  .tool .basis .opts { gap: 8px; }
  .ing { grid-template-columns: minmax(0, 1fr); }
  .ing .btn { justify-self: start; }
  .setpick { margin-top: 32px; }
}

/* ---------- v0.4 (2026-10-04) — 리캐치·뱅크샐러드·엘리펀트 문법: 전폭 색 띠 교대 · 눈썹 라벨 + 큰 제목 · 미디어 행/카드 · 숫자 띠 · 알약 버튼 ---------- */
.band { padding: 96px 0; }
.band.tight { padding: 64px 0; }
.band.tint { background: var(--c-theme); }
.band.grey { background: var(--panel); }
.band.ink { background: var(--c-ink); color: var(--c-bg); --c-muted: color-mix(in srgb, var(--c-bg) 68%, transparent); --ln: color-mix(in srgb, var(--c-bg) 16%, transparent); --panel: color-mix(in srgb, var(--c-bg) 8%, transparent); --surface: color-mix(in srgb, var(--c-bg) 10%, transparent); }
.band.ink .cap { color: var(--c-muted); }
.band.ink .btn { background: var(--c-bg); color: var(--c-ink); border-color: var(--c-bg); }
.band.ink .btn.tint { background: transparent; color: var(--c-bg); border-color: color-mix(in srgb, var(--c-bg) 40%, transparent); }
.band.grey .panel, .band.tint .panel { background: var(--surface); border: 1px solid var(--ln); }
.band.grey .panel.float, .band.tint .panel.float { border: 0; }
.band + .footer { margin-top: 0; }
.sh { margin-bottom: 40px; max-width: 760px; }
.sh.center { margin-left: auto; margin-right: auto; text-align: center; }
.sh.row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; max-width: none; }
.sh .tag-eyebrow, .tag-eyebrow { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px; background: color-mix(in srgb, var(--c-primary) 10%, var(--c-bg)); color: var(--c-primary); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; margin-bottom: 16px; }
.band.ink .tag-eyebrow { background: color-mix(in srgb, var(--c-bg) 12%, transparent); color: var(--c-bg); }
.sh h2 { font-family: var(--font-display), var(--font-body), sans-serif; font-size: var(--fs-h2); line-height: 1.25; letter-spacing: -0.02em; }
[data-variant="notes"] .sh h2 { font-weight: 400; }
.sh p { font-size: 18px; color: var(--c-muted); margin-top: 14px; line-height: 1.65; }
.sh.center p { margin-left: auto; margin-right: auto; max-width: 600px; }

/* hero A — tint band, copy left + product/object right (뱅크샐러드) */
.hero-band { padding: 72px 0 80px; }
.hero-band .hero { padding-top: 0; }
.hero-band .hero h1 { font-size: var(--fs-display); }
.hero-band .hero .lead { color: var(--c-muted); }
.hero-band .art { position: relative; min-height: 320px; display: grid; place-items: center; }
.hero-band .art .obj { position: static; display: block; height: 300px; width: auto; }
.hero-band .art .obj img { height: 100%; width: auto; }
.hero-band .numbers-inline { display: flex; gap: 32px; margin-top: 32px; }
.hero-band .numbers-inline .val { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin-top: 4px; }
.hero-band .numbers-inline .val b { font-size: 18px; font-weight: 600; color: var(--c-muted); margin-left: 4px; }
/* hero B — centred headline + two pill buttons + art below (리캐치·엘리펀트) */
.hero-center { text-align: center; max-width: 880px; margin: 0 auto; padding-top: 72px; }
.hero-center .eyebrow { font-size: var(--fs-cap); font-weight: 600; letter-spacing: 0.04em; color: var(--c-primary); margin-bottom: 18px; }
.hero-center h1 { font-family: var(--font-display), var(--font-body), sans-serif; font-size: var(--fs-display); line-height: 1.2; letter-spacing: -0.03em; }
[data-variant="notes"] .hero-center h1 { font-weight: 400; line-height: 1.3; }
.hero-center .lead { font-size: var(--fs-lead); color: var(--c-muted); margin: 20px auto 0; max-width: 620px; line-height: 1.6; }
.hero-center .actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-center .hint { margin-top: 20px; display: flex; justify-content: center; }
.hero-center .field { margin: 28px auto 0; max-width: 560px; text-align: left; }
.hero-art { position: relative; display: grid; place-items: center; margin-top: 40px; min-height: 260px; }
.hero-art > .obj { position: static; display: block; height: 300px; width: auto; }
.hero-art > .obj img { height: 100%; width: auto; }
.hero-art .sheet { position: relative; }

/* media rows (리캐치) — object card left, text right */
.mrows { display: grid; gap: 24px; }
.mrow { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 40px; align-items: center; }
.mrow .media { position: relative; aspect-ratio: 4 / 3; background: var(--panel); border-radius: var(--r-md); display: grid; place-items: center; overflow: hidden; }
.band.grey .mrow .media, .band.tint .mrow .media { background: var(--surface); border: 1px solid var(--ln); }
.mrow .media .obj { position: static; display: block; height: 150px; width: auto; }
.mrow .media .obj img { height: 100%; width: auto; }
.mrow .media .idx { position: absolute; left: 16px; top: 14px; font-size: var(--fs-cap); font-weight: 700; color: var(--c-primary); letter-spacing: 0.06em; }
.mrow h3 { font-size: 22px; line-height: 1.35; }
.mrow p { font-size: 16px; color: var(--c-muted); margin-top: 10px; max-width: 56ch; line-height: 1.7; }
.mrow .more { margin-top: 8px; }
/* media-top cards (뱅크샐러드 Pick) */
.mcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-gap); }
.mcards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mcard { position: relative; background: var(--surface); border: 1px solid var(--ln); border-radius: var(--r-md); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.25s var(--ease); }
.mcard:hover { transform: translateY(-2px); }
.mcard .media { aspect-ratio: 16 / 9; background: var(--panel); display: grid; place-items: center; }
.band.grey .mcard .media, .band.tint .mcard .media { background: color-mix(in srgb, var(--c-primary) 6%, var(--surface)); }
.mcard .media .obj { position: static; display: block; height: 110px; width: auto; }
.mcard .media .obj img { height: 100%; width: auto; }
.mcard .body { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.mcard .body .cap { color: var(--c-primary); font-weight: 700; }
.mcard h3 { font-size: 19px; line-height: 1.4; }
[data-variant="notes"] .mcard h3 { font-family: var(--font-display), serif; font-weight: 400; font-size: 22px; }
.mcard p { font-size: var(--fs-small); color: var(--c-muted); line-height: 1.6; }
.mcard .meta { margin-top: auto; padding-top: 12px; font-size: var(--fs-cap); color: var(--c-muted); }
.mcard a.cover { position: absolute; inset: 0; }
/* number band (엘리펀트) */
.numband { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; text-align: center; }
.numband .k .cap { display: block; margin-bottom: 8px; }
.numband .k .v { font-size: 64px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.numband .k .v b { font-size: 22px; font-weight: 600; margin-left: 6px; color: var(--c-muted); }
.numband .k .btn { margin-top: 18px; }
.numband .k .s { display: block; margin-top: 10px; font-size: var(--fs-small); color: var(--c-muted); }
.band.ink .strip .day b { background: color-mix(in srgb, var(--c-bg) 22%, transparent); }
.band.ink .strip .day.has b { background: var(--c-bg); }
.band.ink .strip .day.soon b { background: var(--c-point); }
.band.ink .strip .day.today span { color: var(--c-bg); }
/* statement as a band */
.band .statement { padding-top: 0; }
.band.tint .statement .links a, .band.grey .statement .links a { color: var(--c-primary); }
/* footer 3 columns (뱅크샐러드) */
.footer { border-radius: 0; margin-top: 0; padding: 64px 0 56px; }
.footer-inner { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px 48px; }
.footer-col strong { display: block; font-size: var(--fs-cap); font-weight: 700; color: var(--c-ink); margin-bottom: 8px; letter-spacing: 0.04em; }
.footer-col a { display: block; padding: 8px 0; font-size: 15px; color: var(--c-muted); }
.footer-col a:hover { color: var(--c-ink); }
.footer-links { display: block; }
.footer-links a { display: block; padding: 8px 0; font-size: 15px; }
/* d4 dark bands */
[data-mode="dark"] .band.grey { background: #1C1F25; }
[data-mode="dark"] .band.tint { background: #23262E; }
[data-mode="dark"] .band.grey .panel, [data-mode="dark"] .band.tint .panel { background: #272B33; }
[data-mode="dark"] .band.ink { background: #F2F4F7; color: #111318; --c-muted: #4E5968; }
[data-mode="dark"] .mcard { background: #1C1F25; }

@media (max-width: 768px) {
  :root { --fs-display: 34px; --fs-h2: 28px; }
  .band { padding: 64px 0; }
  .band.tight { padding: 48px 0; }
  .sh { margin-bottom: 28px; }
  .sh p { font-size: 16px; }
  .hero-band { padding: 40px 0 56px; }
  .hero-band .art { min-height: 0; margin-top: 24px; }
  .hero-band .art .obj { height: 180px; }
  .hero-band .numbers-inline { gap: 24px; }
  .hero-band .numbers-inline .val { font-size: 32px; }
  .hero-center { padding-top: 40px; }
  .hero-art { margin-top: 28px; min-height: 0; }
  .hero-art > .obj { height: 200px; }
  .mrow .media .obj { height: 120px; }
  .mcard .media .obj { height: 100px; }
  .mrow { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .mrow .media { aspect-ratio: 16 / 9; }
  .mcards, .mcards.two { grid-template-columns: minmax(0, 1fr); }
  .numband { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .numband .k .v { font-size: 48px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
}

.band .section { padding-top: 56px; }
.band > .wrap > .section:first-child, .band > .section:first-child { padding-top: 0; }
[data-variant="index"] .hero-center .eyebrow { font-family: "DM Sans", var(--font-body), sans-serif; letter-spacing: 0.14em; color: var(--c-muted); font-weight: 500; }
[data-variant="index"] .hero-art > .obj { height: 340px; }
.hero-band .hero .ln { display: block; }
@media (max-width: 768px) {
  .aside { display: none; }
  .one { padding-top: 0; }
  .hero-band .hero { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}

/* ============================================================
   v0.4 review fixes (2026-10-05) — docs/design/2026-10-04-v04-design-review.md
   ============================================================ */

/* F-01 ledger: the rail flexes and the ledger reflows by its own width (container query, not a new breakpoint) */
.ledger { container-type: inline-size; }
@media (min-width: 769px) { .workbench { grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); } }
@media (min-width: 769px) {
  @container (max-width: 560px) {
    .ledger .cols { display: none; }
    .ledger .row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 4px; }
    .ledger .row .org { grid-column: 1 / -1; order: 3; }
  }
}

/* F-02 reader/notice spacing tokens were referenced but never defined (gap since v0.3) — set on the v0.4 scale */
:root { --sp-between: 40px; --sp-group: 48px; --sp-inside: 20px; --fs-meta: 13px; --fs-h2-read: 26px; }
@media (max-width: 768px) { :root { --sp-between: 28px; --sp-group: 36px; --sp-inside: 16px; --fs-h2-read: 22px; } }

/* F-03 band titles stay 40; reading headings get their own, smaller size so they never outrank the page title */
.article h2, .notice-page h2 { font-size: var(--fs-h2-read); line-height: 1.35; }

/* F-07 d1 display back to the documented 48; balanced wrapping so a line never ends with one word */
[data-variant="ledger"] { --fs-display: 48px; }
@media (max-width: 768px) { [data-variant="ledger"] { --fs-display: 34px; } }
.hero h1 .ln > span, .hero-center h1 .ln > span, .statement h2, .sh h2, .page-head h1, .article-head h1 { text-wrap: balance; }
.hero-band .hero > div:first-child { min-width: 0; }

/* F-11 nothing under 12px */
.strip .day .n { font-size: 12px; }
.survey .q .cap small { font-size: 12px; }

/* F-13 centred hero lead matches the left hero on phones */
@media (max-width: 768px) { .hero-center .lead { font-size: 17px; } }

/* F-04 F-05 hero objects scale by the column, never squash: size by max-height, keep the ratio */
.hero-band .art .obj, .hero-art > .obj, [data-variant="index"] .hero-art > .obj { height: auto; max-width: 100%; }
.hero-band .art .obj img, .hero-art > .obj img { height: auto; width: auto; max-width: 100%; max-height: var(--hero-obj, 300px); }
[data-variant="index"] { --hero-obj: 340px; }
@media (max-width: 768px) {
  :root, [data-variant="index"] { --hero-obj: 200px; }
  .hero-band .art { --hero-obj: 180px; }
}

/* F-10 F-14 tap areas >= 44px; breadcrumb items share one baseline */
.footer-col a { padding: 12px 0; }
.crumb { align-items: center; }
.crumb a { padding: 12px 6px; margin: 0 -6px; }
.records .row h3 > a::after { content: ""; position: absolute; inset: 0; }
.records .row .side .btn, .records .row .side a { position: relative; z-index: 1; }
.more-rows { margin-top: 20px; }

/* F-15 focus ring stays visible on the ink band */
.band.ink :focus-visible { outline-color: var(--c-bg); }

/* F-16 skip link, shown on first Tab */
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--c-ink); color: var(--c-bg); border-radius: var(--r-sm); transition: top 0.2s var(--ease); }
.skip:focus { top: 12px; }
main:focus { outline: none; }

/* F-19 one line colour per theme; reading pages use the home radius steps */
:root { --ln: var(--c-line); }
.article blockquote, .notice-box { border-radius: var(--r-sm); }
.filters { border-radius: var(--r-md); }
.filters select, .filters input { border-radius: var(--r-sm); }

/* F-23 d3 chip band: 12 chips + a link to the rest */
.chip-all { align-self: center; margin-left: 4px; }

/* F-08 D-003: on phones the finder/workbench comes right after the hero copy — the hero object steps aside */
@media (max-width: 768px) {
  [data-variant="finder"] .hero-band .art, [data-variant="ledger"] .hero-band .art { display: none; }
}

/* F-10 posts list: whole row opens the post */
.posts-list .row h3 > a::after { content: ""; position: absolute; inset: 0; }

/* d2 nationwide data (2026-10-05): 시도 + 시군구 side by side in the finder tool */
.field-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
/* record fields: long URLs and comma lists from the sources wrap instead of running off a phone screen */
.fields dd { overflow-wrap: anywhere; min-width: 0; }

/* d4 SEARCH INDEX 기대감 랜딩 (2026-10-05 개정 2): answer-card drawing, question bento, objects per cell. No numbers. */
.si-hero { padding: 40px 0 96px; container-type: inline-size; }
.si-split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; align-items: center; }
.si-copy .eyebrow { font-size: var(--fs-cap); font-weight: 600; letter-spacing: 0.04em; color: var(--c-primary); margin-bottom: 18px; }
.si-copy h1 { font-family: var(--font-display), var(--font-body), sans-serif; font-size: var(--fs-display); line-height: 1.2; letter-spacing: -0.03em; }
.si-copy h1 .ln > span { white-space: nowrap; }
.si-copy .lead { font-size: var(--fs-lead); color: var(--c-muted); margin-top: 20px; line-height: 1.6; max-width: 520px; }
.si-copy .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.si-visual { position: relative; padding: 48px 0 24px 48px; }
.si-visual > .obj { left: -12px; top: -8px; right: auto; bottom: auto; height: 200px; z-index: 0; }
.si-card { position: relative; z-index: 1; background: #22262E; border-radius: var(--r-lg); box-shadow: var(--shadow-float); padding: 28px; display: grid; gap: 22px; }
.si-q { justify-self: end; max-width: 82%; background: var(--surface-2); border-radius: 16px 16px 4px 16px; padding: 12px 16px; font-size: 15px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.si-slot { border: 1px dashed color-mix(in srgb, var(--c-ink) 45%, transparent); border-radius: 8px; padding: 1px 8px; font-weight: 600; }
.si-a { display: grid; gap: 12px; }
.si-who { font-size: var(--fs-cap); color: var(--c-muted); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.si-who::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #7a808a, #16181c 70%); }
.si-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 26px; }
.sk { display: inline-block; height: 10px; border-radius: 5px; background: #2E333B; }
.si-hit { font-weight: 700; font-size: 15px; padding: 2px 8px; border-radius: 6px; color: #111318; background: linear-gradient(var(--c-point), var(--c-point)) no-repeat left center / 100% 100%; animation: si-mark 0.9s 0.7s both; }
.si-cite { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-cap); font-weight: 600; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--c-point); color: var(--c-point); animation: si-in 0.5s 1.6s both; }
.si-src { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--ln); padding-top: 16px; }
.si-src .cap { color: var(--c-muted); margin-right: 4px; }
.si-pill { height: 28px; border-radius: 999px; background: #2E333B; display: inline-block; }
.si-pill.on { display: inline-flex; align-items: center; padding: 0 12px; font-size: var(--fs-cap); font-weight: 600; background: transparent; border: 1px solid var(--c-point); color: var(--c-ink); animation: si-in 0.5s 2.1s both; }
.si-note { font-size: 12px; font-weight: 700; color: var(--c-point); letter-spacing: 0.02em; animation: si-in 0.5s 2.4s both; }
@keyframes si-mark { from { background-size: 0% 100%; color: var(--c-ink); } to { background-size: 100% 100%; color: #111318; } }
@keyframes si-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.si-know { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-gap); }
.si-k { position: relative; background: var(--surface); border: 1px solid var(--ln); border-radius: var(--r-md); padding: 28px 28px 28px; display: grid; gap: 10px; align-content: start; }
.si-k > .obj { right: 20px; top: 18px; bottom: auto; width: 104px; height: 104px; }
.si-k > .obj img { width: 100%; height: 100%; object-fit: contain; }
.si-k h3 { font-size: 20px; line-height: 1.4; padding-right: 116px; min-height: 2.8em; }
.si-k p { color: var(--c-muted); font-size: var(--fs-small); line-height: 1.6; padding-right: 116px; }
.si-dia { margin-top: 12px; min-height: 104px; background: var(--panel-2); border-radius: var(--r-sm); padding: 20px; display: grid; align-content: center; gap: 10px; }
.si-tiles { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.si-tiles i { position: relative; height: 28px; border-radius: 8px; background: #2E333B; overflow: hidden; }
.si-tiles i::after { content: ""; position: absolute; inset: 0; background: var(--c-point); opacity: 0; }
.si-tiles i.on::after { opacity: 1; }
.si-key { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--c-muted); }
.si-key::before { content: ""; width: 12px; height: 12px; border-radius: 4px; background: var(--c-point); }
.si-track { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; font-size: var(--fs-cap); }
.si-track .l { color: var(--c-muted); font-weight: 600; }
.si-track .bar { height: 2px; background: #4A505A; border-radius: 1px; transform-origin: left center; }
.si-track .end { font-weight: 600; padding: 2px 10px; border-radius: 999px; background: #2E333B; }
.si-track.cite .bar { background: var(--c-point); }
.si-track.cite .end { background: transparent; border: 1px solid var(--c-point); color: var(--c-point); }
.si-qp { display: flex; flex-wrap: wrap; gap: 8px; }
.si-qp span { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-cap); font-weight: 600; padding: 5px 12px; border-radius: 999px; background: #2E333B; color: var(--c-muted); }
.si-qp span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #4A505A; }
.si-qp span.on { color: var(--c-ink); }
.si-qp span.on::before { background: var(--c-point); }
.si-time { position: relative; display: flex; justify-content: space-between; align-items: center; height: 30px; }
.si-time::before { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 2px; background: #2E333B; }
.si-time i { position: relative; width: 10px; height: 10px; border-radius: 50%; background: #4A505A; }
.si-time i.now { width: 16px; height: 16px; background: var(--c-point); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c-point) 22%, transparent); }
.si-time-l { display: flex; justify-content: space-between; font-size: 12px; color: var(--c-muted); }
.si-check { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.si-check .sh { margin-bottom: 8px; }
.si-check-obj { position: static; display: block; height: 180px; margin-top: 32px; }
.si-end { position: relative; padding-top: 72px; }
.si-end-obj { position: static; display: block; height: 200px; margin: 0 auto 8px; width: fit-content; }
/* d4 motion (2026-10-05): answer card writes itself, then each scene lights up when it scrolls in.
   Gallery patterns adapted to the site's own reveal engine (.in): scroll-reveal stagger, svg-path-draw (as scaleX), underline-reveal (as marker).
   Without js-motion (m-off, reduced motion, no JS) everything stays in its final state. */
@keyframes si-grow { from { transform: scaleX(0); } }
@keyframes si-fade { from { opacity: 0; } }
@keyframes si-pop { from { opacity: 0; transform: translateY(8px) scale(0.96); } }
@keyframes si-rise { from { opacity: 0; transform: translateY(14px) rotate(-8deg); } }
@keyframes si-scope { from { opacity: 0; transform: translateY(12px) rotate(-14deg); } }
@keyframes si-ring { from { transform: scale(1); opacity: 0.7; } to { transform: scale(2.4); opacity: 0; } }
.si-hit, .si-cite, .si-pill.on, .si-note { animation: none; }
html.js-motion .si-card .si-q { animation: si-pop 0.5s var(--ease) 0.1s backwards; }
html.js-motion .si-card .sk, html.js-motion .si-card .si-pill:not(.on) { transform-origin: left center; animation: si-grow 0.5s var(--ease) backwards; }
html.js-motion .si-card .si-line:nth-of-type(1) .sk { animation-delay: 0.35s; }
html.js-motion .si-card .si-line:nth-of-type(2) .sk { animation-delay: 0.6s; }
html.js-motion .si-card .si-line:nth-of-type(3) .sk { animation-delay: 0.85s; }
html.js-motion .si-card .si-line:nth-of-type(4) .sk { animation-delay: 1.1s; }
html.js-motion .si-card .si-src .si-pill:not(.on) { animation-delay: 1.4s; }
html.js-motion .si-card .si-hit { animation: si-mark 0.9s var(--ease) 1.25s backwards; }
html.js-motion .si-card .si-cite { animation: si-pop 0.5s var(--ease) 1.9s backwards; }
html.js-motion .si-card .si-pill.on { animation: si-pop 0.5s var(--ease) 2.2s backwards; }
html.js-motion .si-card .si-note { animation: si-fade 0.5s var(--ease) 2.6s backwards; }
html.js-motion .si-know .si-k > .obj img { animation: none; }
html.js-motion .si-know.in .si-k > .obj img { animation: si-rise 0.8s var(--ease) calc(var(--d, 0s) + 0.2s) backwards; }
.si-k > .obj { transition: transform 0.35s var(--ease); }
.si-k:hover > .obj { transform: translateY(-4px) rotate(-4deg); }
html.js-motion .si-know:not(.in) .si-tiles i.on::after { opacity: 0; }
html.js-motion .si-know.in .si-tiles i.on::after { animation: si-fade 0.35s var(--ease) calc(var(--i, 0) * 90ms + 0.5s) backwards; }
html.js-motion .si-know.in .si-track .bar { animation: si-grow 0.8s var(--ease) 0.55s backwards; }
html.js-motion .si-know.in .si-track.cite .bar { animation-delay: 0.85s; }
html.js-motion .si-know.in .si-track .end { animation: si-pop 0.45s var(--ease) 1.25s backwards; }
html.js-motion .si-know.in .si-track.cite .end { animation-delay: 1.55s; }
html.js-motion .si-know.in .si-qp span { animation: si-pop 0.45s var(--ease) backwards; }
html.js-motion .si-know.in .si-qp span:nth-child(1) { animation-delay: 0.6s; }
html.js-motion .si-know.in .si-qp span:nth-child(2) { animation-delay: 0.72s; }
html.js-motion .si-know.in .si-qp span:nth-child(3) { animation-delay: 0.84s; }
html.js-motion .si-know.in .si-qp span:nth-child(4) { animation-delay: 0.96s; }
html.js-motion .si-know.in .si-time i { animation: si-pop 0.4s var(--ease) backwards; }
html.js-motion .si-know.in .si-time i:nth-child(1) { animation-delay: 0.6s; }
html.js-motion .si-know.in .si-time i:nth-child(2) { animation-delay: 0.75s; }
html.js-motion .si-know.in .si-time i:nth-child(3) { animation-delay: 0.9s; }
html.js-motion .si-know.in .si-time i:nth-child(4) { animation-delay: 1.05s; }
html.js-motion .si-know.in .si-time i:nth-child(5) { animation-delay: 1.2s; }
.si-time i.now::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--c-point); opacity: 0; }
html.js-motion .si-know.in .si-time i.now::after { animation: si-ring 1.6s var(--ease) 1.5s 3; }
html.js-motion .si-how .mrows.in .mrow .media .obj img { animation: si-rise 0.9s var(--ease) calc(var(--d, 0s) + 0.15s) backwards; }
html.js-motion .si-check-art.in .obj img { animation: si-rise 0.9s var(--ease) 0.2s backwards; }
.si-check-obj { transition: transform 0.5s var(--ease); transform-origin: bottom center; }
.si-check:not(:has(.check:not(.on))) .si-check-obj { transform: translateY(-6px) rotate(-5deg); }
.si-end-obj img { transform-origin: bottom center; }
html.js-motion .si-end-art.in .obj img { animation: si-scope 1.2s var(--ease) 0.15s backwards; }
/* tablet: the split hero stacks before the one-line title would clip (769–1000) */
@container (max-width: 1000px) {
  .si-split { grid-template-columns: 1fr; gap: 32px; }
  .si-copy h1 .ln > span { white-space: normal; }
  .si-visual { max-width: 600px; }
}
@media (max-width: 768px) {
  .si-hero { padding: 24px 0 64px; }
  .si-split, .si-know, .si-check { grid-template-columns: 1fr; }
  .si-split { gap: 24px; }
  .si-copy h1 .ln > span { white-space: normal; }
  .si-visual { padding: 24px 0 0; }
  .si-visual { padding-top: 40px; }
  .si-visual > .obj { left: -4px; right: auto; top: -8px; height: 84px; z-index: 2; }
  .si-q { max-width: 100%; }
  .si-card, .si-k { padding: 20px; }
  .si-k > .obj { width: 72px; height: 72px; right: 14px; top: 14px; }
  .si-k h3, .si-k p { padding-right: 80px; }
  .si-k h3 { min-height: 0; }
  .si-check { gap: 24px; }
  .si-check-obj { display: none; }
  .si-end-obj { height: 140px; }
}

/* band head on phones: the "more" link drops under the lead instead of squeezing it (found on d4 checklist band) */
@media (max-width: 640px) {
  .sh.row { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* ===== posts (v0.5 reader, 2026-10-05): list = tint head → feature → grey cards → service band; post = tint hero + cover → reader → service → next ===== */
.band.tint .tag-eyebrow { background: var(--surface); }
.cover-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.cover-link:focus-visible { outline: none; }
.mcard:has(.cover-link:focus-visible), .feature:has(.cover-link:focus-visible) { outline: 2px solid var(--c-primary); outline-offset: 3px; }
/* list head */
.posts-head { padding: 72px 0 64px; }
.posts-head h1 { font-family: var(--font-display), var(--font-body), sans-serif; font-size: calc(var(--fs-display) * 0.9); line-height: 1.2; letter-spacing: -0.03em; }
[data-variant="notes"] .posts-head h1 { font-weight: 400; }
.posts-head .lead { font-size: var(--fs-lead); color: var(--c-muted); margin-top: 16px; max-width: 640px; line-height: 1.6; }
.posts-head .counts { margin-top: 20px; font-size: var(--fs-cap); font-weight: 600; color: var(--c-muted); letter-spacing: 0.02em; }
/* feature (lead guide) */
.posts-feature { padding: 72px 0; }
.feature { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.feature .media { aspect-ratio: 4 / 3; background: var(--panel); border-radius: var(--r-lg); display: grid; place-items: center; overflow: hidden; }
.feature .media img { height: 260px; width: auto; max-width: 70%; object-fit: contain; transition: transform 0.5s var(--ease); }
.feature:hover .media img { transform: translateY(-6px) scale(1.02); }
.feature .cap { color: var(--c-primary); font-weight: 700; }
.feature h2 { font-family: var(--font-display), var(--font-body), sans-serif; font-size: 34px; line-height: 1.3; letter-spacing: -0.02em; margin-top: 10px; }
[data-variant="notes"] .feature h2 { font-weight: 400; }
.feature p { font-size: 17px; color: var(--c-muted); line-height: 1.7; margin-top: 16px; max-width: 46ch; }
.feature .meta { display: block; margin-top: 18px; font-size: var(--fs-cap); color: var(--c-muted); }
.feature .btn { margin-top: 24px; }
/* post cards (list + next) */
.post-cards { list-style: none; padding: 0; margin: 0; }
.post-cards .mcard .media { aspect-ratio: 16 / 9; overflow: hidden; }
.post-cards .mcard .media img { height: 150px; width: auto; max-width: 70%; object-fit: contain; transition: transform 0.5s var(--ease); }
.post-cards .mcard:hover .media img { transform: translateY(-4px) scale(1.03); }
.post-cards .mcard h3 a { color: inherit; }
/* service band */
.post-service .svc { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.post-service .tag-eyebrow { margin-bottom: 12px; }
.post-service .svc-line { font-family: var(--font-display), var(--font-body), sans-serif; font-size: 26px; font-weight: 700; line-height: 1.4; letter-spacing: -0.02em; max-width: 30ch; }
[data-variant="notes"] .post-service .svc-line { font-weight: 400; }
.post-service .svc-src { font-size: var(--fs-cap); color: var(--c-muted); margin-top: 10px; }
.post-service .btn { flex-shrink: 0; }
/* post hero */
.read-progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 30; pointer-events: none; }
.read-progress > div { height: 100%; background: var(--c-primary); transform: scaleX(0); transform-origin: 0 50%; }
[data-mode="dark"] .read-progress > div { background: var(--c-point); }
.post-hero { padding: 0 0 64px; }
.post-hero .crumb { padding-top: 16px; }
.post-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: center; margin-top: 24px; }
.post-hero.has-cover .post-hero-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.post-hero h1 { font-family: var(--font-display), var(--font-body), sans-serif; font-size: calc(var(--fs-display) * 0.86); line-height: 1.25; letter-spacing: -0.03em; text-wrap: balance; }
[data-variant="notes"] .post-hero h1 { font-weight: 400; }
.post-hero .dek { font-size: 19px; color: var(--c-muted); margin-top: 18px; line-height: 1.65; max-width: 40em; }
.post-hero .meta { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 22px; font-size: var(--fs-cap); color: var(--c-muted); }
.post-hero .meta span + span::before { content: ""; display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: currentColor; margin: 0 12px 3px -10px; opacity: 0.6; }
.post-cover { margin: 0; aspect-ratio: 1 / 1; max-height: 340px; justify-self: end; width: 100%; max-width: 340px; background: var(--surface); border-radius: var(--r-lg); display: grid; place-items: center; }
.post-cover img { height: 240px; width: auto; max-width: 80%; object-fit: contain; }
html.js-motion .post-cover img { animation: post-float 6s var(--ease) infinite alternate; }
@keyframes post-float { from { transform: translateY(0); } to { transform: translateY(-8px); } }
/* reader */
.reader { grid-template-columns: 200px minmax(0, 700px); gap: 72px; padding-top: 56px; padding-bottom: 96px; justify-content: start; }
.toc { top: 96px; }
.toc strong { font-size: 12px; font-weight: 700; color: var(--c-ink); letter-spacing: 0.04em; margin-bottom: 8px; }
.toc a { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 6px; align-items: center; min-height: 44px; padding: 6px 0 6px 12px; margin-left: -12px; border-radius: var(--r-sm); line-height: 1.5; font-size: 14px; transition: color 0.2s, background 0.2s; }
.toc a .n { font-variant-numeric: tabular-nums; color: var(--c-muted); font-size: 12px; }
.toc a[aria-current] { color: var(--c-ink); background: var(--panel); font-weight: 600; }
.toc a[aria-current] .n { color: var(--c-primary); }
.toc-m { display: none; }
.article { font-size: 17px; line-height: 1.85; }
.article > p:first-child { font-size: 19px; line-height: 1.75; color: var(--c-ink); }
.article h2 { font-size: var(--fs-h2-read, 26px); line-height: 1.35; letter-spacing: -0.02em; margin: 64px 0 16px; }
.article h3 { font-size: 19px; margin: 36px 0 10px; }
.article p { margin: 0 0 18px; }
.article strong { font-weight: 700; }
.article a { color: var(--c-primary); text-decoration-color: color-mix(in srgb, var(--c-primary) 40%, transparent); }
.article ul, .article ol { margin: 0 0 20px; padding-left: 0; list-style: none; counter-reset: li; }
.article ul li, .article ol li { position: relative; padding-left: 28px; }
.article ul li::before { content: ""; position: absolute; left: 8px; top: 0.78em; width: 6px; height: 6px; border-radius: 50%; background: var(--c-primary); }
.article ol li { counter-increment: li; }
.article ol li::before { content: counter(li); position: absolute; left: 0; top: 0.28em; width: 20px; height: 20px; border-radius: 50%; background: color-mix(in srgb, var(--c-primary) 12%, var(--c-bg)); color: var(--c-primary); font-size: 12px; font-weight: 700; line-height: 20px; text-align: center; }
.article li + li { margin-top: 8px; }
.article blockquote { margin: 28px 0; padding: 20px 24px; background: var(--panel); border: 0; border-radius: var(--r-md); font-size: 16px; }
.article blockquote p:last-child { margin-bottom: 0; }
.article sup.cite { font-size: 12px; line-height: 0; vertical-align: 0.5em; margin-left: 3px; }
.article sup.cite a { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 6px; background: var(--panel); color: var(--c-muted); font-weight: 700; text-decoration: none; font-variant-numeric: tabular-nums; }
.article sup.cite a::after { content: ""; position: absolute; inset: -8px -3px; }
.article sup.cite a:hover { background: var(--c-primary); color: var(--on-primary); }
.article .table-wrap { margin: 28px 0 12px; overflow-x: auto; border: 1px solid var(--ln); border-radius: var(--r-md); -webkit-overflow-scrolling: touch; }
.article table { margin: 0; font-size: 15px; line-height: 1.6; width: 100%; min-width: 0; }
.article table:has(th:nth-child(3)) { min-width: 520px; }
.article th, .article td { border: 0; border-bottom: 1px solid var(--ln); padding: 12px 16px; }
.article th { background: var(--panel); font-weight: 700; font-size: 14px; white-space: nowrap; }
.article tr:last-child td { border-bottom: 0; }
.article td + td, .article th + th { border-left: 1px solid var(--ln); }
.article .table-wrap + p { font-size: var(--fs-cap); color: var(--c-muted); line-height: 1.6; }
.article { counter-reset: fig; }
.article .fig { margin: 36px 0; counter-increment: fig; }
.article .fig-media { background: var(--panel); border-radius: var(--r-lg); aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden; }
.article .fig-media img { height: 280px; width: auto; max-width: 80%; object-fit: contain; }
.article .fig figcaption { margin-top: 12px; font-size: 14px; color: var(--c-muted); line-height: 1.6; }
.article .fig figcaption::before { content: "그림 " counter(fig) "  "; font-weight: 700; color: var(--c-ink); white-space: pre; }
/* sources */
.sources { margin-top: 56px; padding: 28px 32px; border: 0; background: var(--panel); border-radius: var(--r-lg); scroll-margin-top: 96px; }
.sources strong { font-size: 13px; color: var(--c-ink); font-weight: 700; margin-bottom: 14px; }
.sources ol { list-style: none; padding: 0; display: grid; gap: 4px; }
.sources li { position: relative; min-height: 44px; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: start; margin: 0; padding: 8px 0; scroll-margin-top: 96px; border-radius: var(--r-sm); }
.sources li:target { background: color-mix(in srgb, var(--c-primary) 10%, transparent); }
.sources li .n { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 8px; background: var(--surface); font-size: 12px; font-weight: 700; color: var(--c-muted); font-variant-numeric: tabular-nums; }
.sources .src-body { display: grid; gap: 2px; font-size: 15px; line-height: 1.55; }
.sources .src-body a { color: var(--c-ink); text-decoration: underline; text-decoration-color: var(--ln); text-underline-offset: 4px; }
.sources .src-body a:hover { text-decoration-color: currentColor; }
.sources .src-body a::after { content: ""; position: absolute; inset: 0; }
.sources .src-body a:focus-visible { outline: none; }
.sources li:has(a:focus-visible) { outline: 2px solid var(--c-primary); outline-offset: 2px; }
.sources .src-meta { font-size: var(--fs-cap); color: var(--c-muted); }
.posts-next { padding-top: 80px; }
/* reader pages: band titles stay below the page title (h1) */
.posts-more .sh h2, .posts-next .sh h2 { font-size: 28px; }
.posts-next .mcard .media { aspect-ratio: 2 / 1; }
/* dark site (d4): tint band is the raised dark surface */
[data-mode="dark"] .post-cover, [data-mode="dark"] .feature .media { background: #1C1F25; }
[data-mode="dark"] .post-hero .post-cover { background: #1C1F25; }
[data-mode="dark"] .article sup.cite a:hover { background: var(--c-point); color: #111318; }
[data-mode="dark"] .article ul li::before { background: var(--c-point); }
[data-mode="dark"] .article ol li::before { background: color-mix(in srgb, var(--c-point) 18%, transparent); color: var(--c-point); }
[data-mode="dark"] .article a { color: var(--c-ink); text-decoration-color: var(--c-point); }
[data-mode="dark"] .feature .cap, [data-mode="dark"] .post-cards .cap { color: var(--c-point); }
@media (max-width: 1024px) {
  .reader { grid-template-columns: 180px minmax(0, 1fr); gap: 48px; }
}
@media (max-width: 768px) {
  .posts-head { padding: 48px 0 40px; }
  .posts-head h1 { font-size: 32px; }
  .posts-head .lead { font-size: 17px; }
  .posts-feature { padding: 48px 0; }
  .feature { grid-template-columns: 1fr; gap: 24px; }
  .feature h2 { font-size: 26px; }
  .post-service .svc { flex-direction: column; align-items: flex-start; gap: 20px; }
  .post-service .svc-line { font-size: 21px; }
  .post-hero { padding-bottom: 40px; }
  .post-hero.has-cover .post-hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .post-hero h1 { font-size: 30px; }
  .post-hero .dek { font-size: 17px; }
  .post-cover { justify-self: start; max-width: none; aspect-ratio: 2 / 1; max-height: 180px; }
  .post-cover img { height: 130px; }
  [data-variant="ledger"] .post-cover, [data-variant="finder"] .post-cover { display: none; }
  .feature .media { aspect-ratio: 2 / 1; }
  .posts-more .sh h2, .posts-next .sh h2 { font-size: 22px; }
  .article sup.cite a { min-width: 24px; height: 24px; }
  .article table { font-size: 14px; }
  /* wide tables scroll inside their frame: first column pinned, edge shadows show there is more */
  .article .table-wrap { background: linear-gradient(to right, var(--c-bg) 30%, transparent) left / 40px 100% no-repeat local, linear-gradient(to left, var(--c-bg) 30%, transparent) right / 40px 100% no-repeat local, radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, 0.14), transparent) right / 14px 100% no-repeat scroll; }
  .article table:has(th:nth-child(3)) th:first-child, .article table:has(th:nth-child(3)) td:first-child { position: sticky; left: 0; z-index: 1; background: var(--c-bg); box-shadow: 1px 0 0 var(--ln); }
  .article table:has(th:nth-child(3)) th:first-child { background: var(--panel); }
  .feature .media img { height: 190px; }
  .post-cards .mcard .media img { height: 120px; }
  .article .fig-media img { height: 200px; }
  .reader { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 28px; padding-bottom: 64px; }
  .reader > .toc, .reader > div[aria-hidden] { display: none; }
  .toc-m { display: block; margin-bottom: 28px; background: var(--panel); border-radius: var(--r-md); }
  .toc-m summary { min-height: 52px; display: flex; align-items: center; padding: 0 18px; font-size: 15px; font-weight: 600; cursor: pointer; list-style: none; }
  .toc-m summary::-webkit-details-marker { display: none; }
  .toc-m summary::after { content: "+"; margin-left: auto; font-size: 20px; color: var(--c-muted); }
  .toc-m[open] summary::after { content: "−"; }
  .toc-m nav { padding: 0 18px 12px; display: grid; }
  .toc-m nav a { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 6px; min-height: 44px; align-items: center; font-size: 15px; color: var(--c-muted); }
  .toc-m nav a .n { font-size: 12px; }
  .article { font-size: 16.5px; }
  .article > p:first-child { font-size: 17.5px; }
  .article h2 { font-size: 22px; margin-top: 48px; }
  .article .fig { margin: 28px 0; }
  .article .fig-media { aspect-ratio: 4 / 3; }
  .sources { padding: 20px; margin-top: 40px; }
}
/* posts list v2 (2026-10-05, user: "첫 섹션 없애고 추천 글 하나 + 리스트") — 토스피드 list grammar */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.posts-top { padding: 48px 0 96px; }
.posts-top .feature .cap { letter-spacing: 0.02em; }
.posts-index { margin-top: 80px; }
.pi-head { display: flex; align-items: baseline; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid var(--ln); }
.pi-head h2 { font-family: var(--font-display), var(--font-body), sans-serif; font-size: 28px; line-height: 1.3; letter-spacing: -0.02em; }
[data-variant="notes"] .pi-head h2 { font-weight: 400; }
.pi-head .count { font-size: var(--fs-cap); color: var(--c-muted); font-weight: 600; }
.post-rows { list-style: none; padding: 0; margin: 0; }
.prow { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 48px; align-items: center; padding: 32px 0; border-bottom: 1px solid var(--ln); }
.prow:has(.cover-link:focus-visible) { outline: 2px solid var(--c-primary); outline-offset: 4px; border-radius: var(--r-sm); }
.prow .cap { color: var(--c-primary); font-weight: 700; }
.prow h3 { font-family: var(--font-display), var(--font-body), sans-serif; font-size: 22px; line-height: 1.4; letter-spacing: -0.02em; margin-top: 6px; }
[data-variant="notes"] .prow h3 { font-weight: 400; font-size: 22px; }
.prow h3 a { color: inherit; }
.prow p { font-size: 16px; color: var(--c-muted); line-height: 1.65; margin-top: 8px; max-width: 60ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prow .meta { display: block; margin-top: 12px; font-size: var(--fs-cap); color: var(--c-muted); }
.prow .thumb { aspect-ratio: 3 / 2; background: var(--panel); border-radius: var(--r-md); display: grid; place-items: center; overflow: hidden; }
.prow .thumb img { height: 112px; width: auto; max-width: 75%; object-fit: contain; transition: transform 0.5s var(--ease); }
.prow:hover .thumb img { transform: translateY(-4px) scale(1.03); }
.prow:hover h3 a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
[data-mode="dark"] .prow .cap { color: var(--c-point); }
@media (max-width: 768px) {
  .posts-top { padding: 24px 0 64px; }
  .posts-index { margin-top: 48px; }
  .pi-head h2 { font-size: 20px; }
  .prow { grid-template-columns: minmax(0, 1fr) 96px; gap: 16px; padding: 20px 0; align-items: start; }
  .prow h3 { font-size: 17px; }
  [data-variant="notes"] .prow h3 { font-size: 19px; }
  .prow p { font-size: 14px; }
  .prow .meta { margin-top: 8px; }
  .prow .thumb { aspect-ratio: 1 / 1; border-radius: var(--r-sm); }
  .prow .thumb img { height: 68px; }
  .posts-top .feature .media img { height: min(190px, 36vw); }
}
/* sources folded by default (user 2026-10-05); citation chips and #src-n open it (ReadAids) */
details.sources { padding: 0; }
details.sources summary { display: flex; align-items: center; gap: 8px; min-height: 60px; padding: 0 32px; cursor: pointer; list-style: none; border-radius: var(--r-lg); }
details.sources summary::-webkit-details-marker { display: none; }
details.sources summary strong { margin: 0; }
details.sources summary .src-count { font-size: var(--fs-cap); color: var(--c-muted); font-weight: 600; }
details.sources summary::after { content: "+"; margin-left: auto; font-size: 22px; line-height: 1; color: var(--c-muted); }
details.sources[open] summary::after { content: "−"; }
details.sources summary:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }
details.sources ol { padding: 0 32px 24px; }
@media (max-width: 768px) {
  details.sources { padding: 0; }
  details.sources summary { padding: 0 20px; min-height: 56px; }
  details.sources ol { padding: 0 20px 16px; }
}

/* logo C — label (decision 2026-10-05): bordered tag, tab-icon cell | name. Outer link keeps a 44px tap height. */
.wordmark.logo-label { padding: 2px 0; align-items: center; }
.logo-box { display: inline-flex; align-items: stretch; height: 40px; border: 2px solid var(--c-ink); border-radius: 8px; overflow: hidden; background: var(--c-bg); }
[data-variant="index"] .logo-box { border-radius: 0; }
.logo-cell { width: 38px; flex: none; border-right: 2px solid var(--c-ink); }
.logo-cell svg { display: block; width: 100%; height: 100%; }
.logo-name { display: inline-flex; align-items: center; padding: 0 12px 0 10px; font-size: 19px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
[data-variant="notes"] .logo-name { font-weight: 700; }
[data-variant="index"] .logo-name { font-family: "DM Sans", var(--font-body), sans-serif; text-transform: uppercase; }
.footer .logo-name { font-size: 17px; }

/* Posts list category chips (2026-10-06): one row under the list head; phone scrolls sideways. */
.post-cats { margin-top: 20px; }
.post-rows .prow[hidden], .post-rows .prow[data-picked], ul.related > li[hidden], .posts-top .feature[hidden] { display: none; }
.post-cats-line { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.post-cats .chip i { font-style: normal; color: var(--c-muted); font-size: 13px; margin-left: 6px; }
.post-cats .chip.on i { color: inherit; opacity: 0.8; }
@media (max-width: 720px) {
  .post-cats { flex-wrap: nowrap; overflow-x: auto; margin-left: calc(-1 * var(--sp-pad)); margin-right: calc(-1 * var(--sp-pad)); padding: 0 var(--sp-pad) 4px; scrollbar-width: none; }
  .post-cats::-webkit-scrollbar { display: none; }
  .post-cats .chip { flex: none; }
}
