/* ═══════════════════════════════════════════════════════════════════════
   Ryan Brand Components — v2.1.2 (2026-09-13)
   tokens.css 뒤에 로드한다. 값은 전부 var(--…) — 이 파일에 hex 없음.
   ───────────────────────────────────────────────────────────────────────
   API (하나의 이름, 하나의 모양):
     레이아웃  .wrap  .wrap--wide  .stack  .row  .grid-2  .grid-3
     타입      .display .title .subtitle .eyebrow .lead .dek .meta .serif .mono .tabular
     브랜드    .brand > .brand-mark + .wordmark(.w2) + small
     내비      .nav > .nav-in > .brand + .nav-links
     버튼      .btn  .btn-primary(.btn-red) .btn-secondary .btn-ghost .btn-danger .btn-sm .btn-lg .btn-block
     입력      .label .field(.input) .textarea .select .hint .error .form-row .checkbox .switch
     카드      .card  .card-img  .card-body  .card-foot   (.paper = 종이 면만)
     뱃지·칩   .badge(-accent/-success/-warning/-info/-ink)  .chip  .chip.on
     탭        .tabs > .tab[aria-selected]
     표        .tw > table.table
     모달      .modal-overlay > .modal > .modal-head/.modal-body/.modal-foot
     토스트    .toast(-success/-danger/-info)
     빈 상태   .empty
     스켈레톤  .skeleton
     구분      .sec-div (✦)  .hr
     콜아웃    .callout(-scene/-take/-warn/-drop/-info)
     읽기 본문 .prose (= .md)
   ═══════════════════════════════════════════════════════════════════════ */

/* ── 0. 베이스 ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; -webkit-text-size-adjust: 100%; }
body {
    margin: 0; min-height: 100dvh;
    background: var(--bg-base); color: var(--text-primary);
    font-family: var(--font-sans); font-size: var(--text-base); line-height: var(--leading-normal);
    word-break: keep-all; overflow-wrap: break-word; text-wrap: pretty;
}
h1, h2, h3, h4 { text-wrap: balance; margin: 0; font-weight: var(--font-weight-display); }
p { margin: 0; }
a { color: inherit; }
img, svg, video { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: var(--focus-ring-width) solid var(--color-accent); outline-offset: var(--focus-ring-offset); border-radius: var(--radius-xs); }
::selection { background: var(--accent-bg-strong); }
[hidden] { display: none !important; }
.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; }

/* ── 1. 레이아웃 ───────────────────────────────────────────────────────── */
.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 var(--page-padding); }
.wrap--wide { max-width: var(--page-max-width); }
.main { padding-block: var(--space-10) var(--space-16); }  /* 옆 여백은 .wrap 이 준다 — padding 축약형으로 0 을 덮지 말 것 */
.stack { display: flex; flex-direction: column; gap: var(--space-4); }
.stack--tight { gap: var(--space-2); }
.row { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--card-gap); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--card-gap); }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ── 2. 타입 ───────────────────────────────────────────────────────────── */
.serif { font-family: var(--font-display); }
.mono { font-family: var(--font-mono); letter-spacing: var(--tracking-mono); }
.tabular { font-variant-numeric: tabular-nums; }
.display { font-family: var(--font-display); font-weight: var(--font-weight-display); font-size: var(--text-display); line-height: var(--leading-display); letter-spacing: var(--tracking-display); }
.title { font-family: var(--font-display); font-weight: var(--font-weight-display); font-size: var(--text-2xl); line-height: var(--leading-tight); letter-spacing: var(--tracking-tight); }
.subtitle { font-family: var(--font-display); font-weight: var(--font-weight-display); font-size: var(--text-xl); line-height: var(--leading-snug); }
.eyebrow, .kicker { font-size: var(--text-xs); font-weight: var(--font-weight-semibold); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--text-tertiary); }
.lead { font-size: var(--text-md); line-height: var(--leading-relaxed); color: var(--text-secondary); max-width: 58ch; }
.dek { font-family: var(--font-display); font-size: var(--text-lg); line-height: var(--leading-snug); color: var(--text-secondary); }
.meta { font-size: var(--text-sm); color: var(--text-tertiary); }
.meta b { color: var(--text-secondary); font-weight: var(--font-weight-semibold); }
@media (max-width: 640px) { .display { font-size: var(--text-3xl); } .title { font-size: var(--text-xl); } }

/* ── 3. 브랜드 ─────────────────────────────────────────────────────────── */
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; white-space: nowrap; color: var(--text-primary); }
.brand-mark { width: var(--brand-mark-size); height: var(--brand-mark-size); flex-shrink: 0; color: var(--brand-mark); fill: currentColor; }
.brand-mark path, .brand-mark polygon { fill: currentColor; }
.wordmark { font-family: var(--font-display); font-weight: var(--font-weight-display); font-size: var(--wordmark-size); line-height: 1; letter-spacing: var(--tracking-tight); }
.wordmark .w2 { font-style: italic; font-weight: var(--font-weight-display); font-synthesis: none; }
.brand small { font-size: var(--text-xs); color: var(--text-tertiary); font-weight: var(--font-weight-medium); align-self: flex-end; padding-bottom: 1px; }
@media (max-width: 640px) { .brand small { display: none; } }

/* ── 4. 내비 ───────────────────────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: var(--z-header); background: var(--nav-bg); backdrop-filter: blur(var(--nav-blur)); -webkit-backdrop-filter: blur(var(--nav-blur)); border-bottom: 1px solid var(--border-subtle); padding-top: var(--safe-top); }
.nav-in { max-width: var(--measure); margin: 0 auto; padding: 0 var(--page-padding); min-height: var(--header-height); display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); }
.nav--wide .nav-in { max-width: var(--page-max-width); }
.nav-links { display: flex; gap: 2px; align-items: center; white-space: nowrap; }
.nav-links a, .nav-links button { font-size: var(--text-sm); text-decoration: none; color: var(--text-secondary); padding: 8px 10px; border-radius: var(--radius-sm); min-height: 40px; display: inline-flex; align-items: center; background: none; border: 0; transition: color var(--duration-fast) var(--ease-out), background var(--duration-fast) var(--ease-out); }
.nav-links a:hover, .nav-links button:hover { color: var(--text-primary); }
.nav-links a[aria-current="page"] { color: var(--text-primary); font-weight: var(--font-weight-semibold); background: var(--bg-elevated); }
.nav-links form { margin: 0; }

/* ── 5. 버튼 ───────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: var(--btn-height); padding: 0 var(--btn-padding-x); border-radius: var(--btn-radius); font-size: var(--btn-font-size); font-weight: var(--btn-font-weight); line-height: 1.2; text-decoration: none; cursor: pointer; border: 1px solid transparent; white-space: nowrap; transition: background var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out), opacity var(--duration-fast) var(--ease-out), transform var(--duration-instant) var(--ease-out); }
.btn:active { transform: scale(var(--press-scale)); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.45; cursor: default; pointer-events: none; }
.btn-primary, .btn-red, .btn-danger { background: var(--color-accent); color: var(--on-accent); }
.btn-primary:hover, .btn-red:hover, .btn-danger:hover { background: var(--accent-hover); }
.btn-primary:active, .btn-red:active, .btn-danger:active { background: var(--accent-active); }
.btn-secondary { background: var(--bg-surface); color: var(--text-primary); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--text-primary); }
.btn-ghost { background: none; color: var(--text-secondary); }
.btn-ghost:hover { color: var(--text-primary); background: var(--bg-elevated); }
.btn-sm { min-height: var(--btn-height-sm); padding: 0 14px; font-size: var(--text-sm); }
.btn-lg { min-height: var(--btn-height-lg); padding: 0 26px; font-size: var(--text-base); }
.btn-block { display: flex; width: 100%; }
.btn .ic, .btn svg { width: 1.1em; height: 1.1em; }

/* ── 6. 입력 ───────────────────────────────────────────────────────────── */
.label { display: block; font-size: var(--text-sm); font-weight: var(--font-weight-medium); color: var(--text-secondary); margin-bottom: var(--gap-label-control); }
.label .opt { font-weight: var(--font-weight-normal); color: var(--text-tertiary); margin-left: 4px; }
.field, .input, .textarea, .select { width: 100%; min-height: var(--input-height); padding: 10px var(--input-padding-x); border: 1px solid var(--border-emphasis); border-radius: var(--input-radius); background: var(--bg-surface); color: var(--text-primary); font-size: var(--input-font-size); line-height: 1.5; transition: border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out); }
.field:hover, .input:hover, .textarea:hover, .select:hover { border-color: var(--border-strong); }
.field::placeholder, .input::placeholder, .textarea::placeholder { color: var(--text-ghost); }
.field:focus, .input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--text-primary); box-shadow: 0 0 0 1px var(--border-strong); }  /* 포커스 = 잉크 선 + 옅은 1px. 레드는 액션에만 */
.field[aria-invalid="true"], .input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--color-danger); box-shadow: 0 0 0 1px var(--color-danger); }
.textarea { resize: vertical; min-height: 112px; }
.select { appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='currentColor' stroke-width='1.6' stroke-linecap='round'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; }
.hint { font-size: var(--text-xs); color: var(--text-tertiary); margin-top: var(--gap-control-hint); }
.error { font-size: var(--text-xs); color: var(--danger-text); margin-top: var(--gap-control-hint); }
.form-row { margin-bottom: var(--gap-group); }
.checkbox, .radio { display: inline-flex; align-items: center; gap: 10px; min-height: var(--touch-target); cursor: pointer; font-size: var(--text-sm); }
.checkbox input, .radio input { width: 18px; height: 18px; margin: 0; accent-color: var(--color-accent); }
.switch { position: relative; width: 44px; height: 26px; border-radius: var(--radius-full); background: var(--border-strong); border: 0; padding: 0; transition: background var(--duration-fast) var(--ease-out); flex-shrink: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg-surface); transition: transform var(--duration-fast) var(--ease-out); }
.switch[aria-checked="true"] { background: var(--color-accent); }
.switch[aria-checked="true"]::after { transform: translateX(18px); }

/* ── 7. 카드 · 종이 ────────────────────────────────────────────────────── */
.paper { background: var(--bg-surface); border: 1px solid var(--border-emphasis); }
.rounded { border-radius: var(--card-radius); }
.card { background: var(--bg-surface); border: 1px solid var(--border-emphasis); border-radius: var(--card-radius); overflow: hidden; transition: border-color var(--duration-normal) var(--ease-out); }
a.card, .card a.card-link { text-decoration: none; color: inherit; display: block; }
.card:hover { border-color: var(--border-strong); }
.card-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg-elevated); }
.card-body { padding: var(--card-padding); display: flex; flex-direction: column; gap: var(--space-2); }
.card-body h2, .card-body h3 { font-family: var(--font-display); font-size: var(--text-lg); line-height: var(--leading-snug); }
.card-body p { color: var(--text-secondary); font-size: var(--text-sm); line-height: var(--leading-normal); }
.card-foot { padding: var(--space-3) var(--card-padding); border-top: 1px solid var(--border-subtle); display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); }
.card-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--card-gap); }

/* ── 8. 뱃지 · 칩 ──────────────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: var(--badge-padding); border-radius: var(--badge-radius); font-size: var(--badge-font-size); font-weight: var(--font-weight-medium); line-height: 1.5; background: none; border: 1px solid var(--border-emphasis); color: var(--text-secondary); white-space: nowrap; }
.badge-accent  { border-color: var(--danger-line);  color: var(--accent-text); }
.badge-success { border-color: var(--success-line); color: var(--success-text); }
.badge-warning { border-color: var(--warning-line); color: var(--warning-text); }
.badge-info    { border-color: var(--info-line);    color: var(--info-text); }
.badge-danger  { border-color: var(--danger-line);  color: var(--danger-text); }
.badge-ink     { background: var(--bg-inverse); border-color: var(--bg-inverse); color: var(--text-inverse); }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: var(--chip-height); padding: 0 14px; border-radius: var(--chip-radius); border: 1px solid var(--border-emphasis); background: var(--bg-surface); color: var(--text-secondary); font-size: var(--text-sm); font-weight: var(--font-weight-medium); cursor: pointer; text-decoration: none; transition: border-color var(--duration-fast) var(--ease-out), background var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out); }
.chip:hover { border-color: var(--border-strong); color: var(--text-primary); }
.chip:active { transform: scale(var(--press-scale)); }
.chip.on, .chip[aria-pressed="true"] { background: var(--bg-inverse); color: var(--text-inverse); border-color: var(--bg-inverse); }

/* ── 9. 탭 ─────────────────────────────────────────────────────────────── */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border-emphasis); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex-shrink: 0; padding: 10px 14px; min-height: var(--touch-target); border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; color: var(--text-tertiary); font-size: var(--text-sm); font-weight: var(--font-weight-medium); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out); }
.tab:hover { color: var(--text-primary); }
.tab[aria-selected="true"], .tab.on, .tab[aria-current="page"] { color: var(--text-primary); font-weight: var(--font-weight-semibold); border-bottom-color: var(--color-accent); }
.seg { display: inline-flex; padding: 3px; border-radius: var(--radius-md); background: var(--bg-elevated); gap: 2px; }
.seg > * { padding: 6px 12px; border-radius: var(--radius-sm); border: 0; background: none; color: var(--text-secondary); font-size: var(--text-sm); font-weight: var(--font-weight-medium); min-height: 32px; text-decoration: none; display: inline-flex; align-items: center; }
.seg > .on, .seg > [aria-pressed="true"], .seg > [aria-current="page"] { background: var(--bg-surface); color: var(--text-primary); box-shadow: var(--shadow-sm); }

/* ── 10. 표 ────────────────────────────────────────────────────────────── */
.tw { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border-emphasis); border-radius: var(--radius-md); background: var(--bg-surface); }
.table { width: 100%; border-collapse: collapse; font-size: var(--table-font-size); }
.table th, .table td { padding: var(--table-cell-padding); text-align: left; vertical-align: top; border-bottom: 1px solid var(--border-subtle); }
.table th { font-size: var(--text-xs); font-weight: var(--font-weight-semibold); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--text-tertiary); background: var(--bg-elevated); position: sticky; top: 0; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--bg-elevated); }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ── 11. 모달 ──────────────────────────────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; z-index: var(--z-modal); background: var(--overlay); backdrop-filter: blur(var(--modal-blur)); -webkit-backdrop-filter: blur(var(--modal-blur)); display: flex; align-items: center; justify-content: center; padding: var(--space-4); animation: fade-in var(--duration-normal) var(--ease-out); }
.modal { width: var(--modal-width); max-height: min(90dvh, 720px); overflow: auto; background: var(--bg-surface); border: 1px solid var(--border-emphasis); border-radius: var(--modal-radius); box-shadow: var(--shadow-lg); animation: pop-in var(--duration-normal) var(--ease-out); }
.modal-head { padding: var(--modal-padding) var(--modal-padding) 0; display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-3); }
.modal-head h2 { font-family: var(--font-display); font-size: var(--text-xl); line-height: var(--leading-snug); }
.modal-body { padding: var(--space-4) var(--modal-padding); color: var(--text-secondary); }
.modal-foot { padding: 0 var(--modal-padding) var(--modal-padding); display: flex; justify-content: flex-end; gap: var(--space-2); }
.modal-close { background: none; border: 0; width: 36px; height: 36px; border-radius: var(--radius-sm); color: var(--text-tertiary); display: inline-flex; align-items: center; justify-content: center; font-size: 20px; line-height: 1; }
.modal-close:hover { background: var(--bg-elevated); color: var(--text-primary); }
@media (max-width: 640px) {
    .modal-overlay { align-items: flex-end; padding: 0; }
    .modal { width: 100%; max-height: 92dvh; border-radius: var(--modal-radius) var(--modal-radius) 0 0; border-bottom: 0; padding-bottom: var(--safe-bottom); animation: sheet-in var(--duration-slow) var(--ease-out); }
}

/* ── 12. 토스트 ────────────────────────────────────────────────────────── */
.toast { position: fixed; left: 50%; bottom: calc(24px + var(--safe-bottom)); transform: translateX(-50%); z-index: var(--z-toast); max-width: min(92vw, 420px); padding: 12px 18px; border-radius: var(--toast-radius); background: var(--bg-inverse); color: var(--text-inverse); font-size: var(--text-sm); font-weight: var(--font-weight-medium); line-height: 1.4; box-shadow: var(--shadow-md); pointer-events: none; animation: toast-in var(--duration-normal) var(--ease-out); }
.toast-success { background: var(--color-success); color: var(--on-accent); }
.toast-danger  { background: var(--color-danger);  color: var(--on-accent); }
.toast-info    { background: var(--color-info);    color: var(--on-accent); }

/* ── 13. 빈 상태 · 스켈레톤 · 진행 ────────────────────────────────────── */
.empty { text-align: center; padding: var(--space-12) var(--space-6); border: 1px solid var(--border-emphasis); border-radius: var(--card-radius); background: var(--bg-surface); display: flex; flex-direction: column; align-items: center; gap: var(--space-2); }
.empty .mark { font-size: 28px; color: var(--brand-mark); line-height: 1; }
.empty h3 { font-family: var(--font-display); font-size: var(--text-lg); }
.empty p { color: var(--text-secondary); font-size: var(--text-sm); max-width: 40ch; }
.empty .btn { margin-top: var(--space-2); }
.skeleton { background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--bg-elevated-2) 50%, var(--bg-elevated) 75%); background-size: 200% 100%; border-radius: var(--radius-sm); animation: shimmer 1.5s ease-in-out infinite; color: transparent; }
.progress { height: var(--progress-height); border-radius: var(--radius-full); background: var(--bg-elevated-2); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--color-accent); border-radius: inherit; transition: width var(--duration-slow) var(--ease-out); }
.spinner { width: 20px; height: 20px; border: 2px solid var(--border-emphasis); border-top-color: var(--color-accent); border-radius: 50%; animation: spin .8s linear infinite; }

/* ── 14. 구분 · 콜아웃 ─────────────────────────────────────────────────── */
.hr { border: 0; border-top: 1px solid var(--border-emphasis); margin: var(--space-8) 0; }
.sec-div { display: flex; align-items: center; gap: var(--space-4); margin: var(--space-12) 0 var(--space-6); color: var(--brand-mark); }
.sec-div::before, .sec-div::after { content: ""; flex: 1; border-top: 1px solid var(--border-emphasis); }
.sec-div span { font-size: 14px; line-height: 1; }
.sec-div span:empty::before { content: var(--divider-glyph); }
.callout { margin: var(--space-6) 0; padding: 16px 20px 16px 22px; background: var(--bg-elevated); border: 0; border-left: 3px solid var(--border-strong); border-radius: 0 var(--radius-md) var(--radius-md) 0; font-size: var(--text-base); line-height: var(--leading-relaxed); color: var(--text-primary); }
.callout > :first-child { margin-top: 0; } .callout > :last-child { margin-bottom: 0; }
.callout-label { display: block; font-size: var(--text-xs); font-weight: var(--font-weight-bold); letter-spacing: var(--tracking-caps); color: var(--text-tertiary); margin-bottom: 6px; }
.callout-scene { border-left-color: var(--color-accent); }
.callout-scene .callout-label { color: var(--accent-text); }
.callout-take  { border-left-color: var(--color-success); }
.callout-take  .callout-label { color: var(--success-text); }
.callout-warn  { border-left-color: var(--color-warning); }
.callout-warn  .callout-label { color: var(--warning-text); }
.callout-info  { border-left-color: var(--color-info); }
.callout-info  .callout-label { color: var(--info-text); }
.callout-drop  { border-left-color: var(--border-emphasis); color: var(--text-secondary); }
.callout-list  { display: grid; gap: var(--space-2); }

/* ── 15. 읽기 본문 (.prose = .md) — Lenny 규격 ─────────────────────────── */
.prose, .md { font-size: var(--text-prose); line-height: var(--leading-relaxed); color: var(--text-primary); }
.prose > * + *, .md > * + * { margin-top: 1.25em; }
.prose h2, .md h2 { font-family: var(--font-display); font-size: var(--text-xl); line-height: var(--leading-snug); margin-top: 2.2em; }
.prose h3, .md h3 { font-family: var(--font-display); font-size: var(--text-lg); line-height: var(--leading-snug); margin-top: 1.8em; }
.prose h2 + *, .prose h3 + *, .md h2 + *, .md h3 + * { margin-top: 0.7em; }
.prose p.lead-para, .md p.lead-para { font-size: var(--text-md); color: var(--text-secondary); line-height: var(--leading-relaxed); }
.prose a, .md a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover, .md a:hover { text-decoration-thickness: 2px; }
.prose strong, .md strong { font-weight: var(--font-weight-semibold); }
.prose ul, .prose ol, .md ul, .md ol { padding-left: 1.4em; }
.prose li + li, .md li + li { margin-top: 0.4em; }
.prose li::marker, .md li::marker { color: var(--text-tertiary); }
.prose blockquote, .md blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--color-accent); font-family: var(--font-display); font-size: var(--text-lg); line-height: var(--leading-snug); color: var(--text-secondary); }
.prose hr, .md hr { border: 0; border-top: 1px solid var(--border-emphasis); margin: 2.4em 0; }
.prose img, .md img { width: 100%; border-radius: var(--radius-sm); background: var(--bg-elevated); }
.prose figure, .md figure { margin: 1.8em 0; }
.prose figcaption, .md figcaption { font-size: var(--text-sm); color: var(--text-tertiary); margin-top: 8px; text-align: center; }
.prose code, .md code { font-family: var(--font-mono); font-size: 0.9em; background: var(--bg-elevated); padding: 1px 6px; border-radius: var(--radius-xs); }
.prose pre, .md pre { background: var(--bg-elevated); padding: 14px 16px; border-radius: var(--radius-md); overflow-x: auto; font-size: var(--text-sm); line-height: 1.6; }
.prose pre code, .md pre code { background: none; padding: 0; }
.prose .tw, .md .tw { margin: 1.6em 0; }
.prose table, .md table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); line-height: 1.5; }
.prose th, .md th { text-align: left; font-size: var(--text-xs); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--text-tertiary); background: var(--bg-elevated); padding: 10px 12px; border-bottom: 1px solid var(--border-emphasis); }
.prose td, .md td { padding: 10px 12px; border-bottom: 1px solid var(--border-subtle); vertical-align: top; }
.prose tr:last-child td, .md tr:last-child td { border-bottom: 0; }
.prose .sec-div + h2, .md .sec-div + h2 { margin-top: 0; }
@media (max-width: 640px) { .prose, .md { font-size: var(--text-base); } }

/* ── 16. 애니메이션 ────────────────────────────────────────────────────── */
@keyframes fade-in  { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop-in   { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
@keyframes sheet-in { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes shimmer  { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes spin     { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
