/* 전북 배움탐험대 — 디자인 시스템 · © 2026 고은쌤 제작
   원칙: 흰 바탕 · 짙은 글자 · 강조색 하나 · 얇은 선 · 넉넉한 여백 */

/* ───────── 기준값 ───────── */
:root {
  --bg: #f6f6f4;
  --surface: #ffffff;
  --surface-2: #f2f3f5;
  --surface-3: #e9ebef;
  --ink: #15171c;
  --ink-2: #474c58;
  --ink-3: #737885;
  --line: #e5e6ea;
  --line-2: #d3d6dc;
  --brand: #2b55c4;
  --brand-ink: #1f3f96;
  --brand-soft: #eef2fc;
  --accent: #d4552f;
  --accent-soft: #fcefea;
  --ok: #1a7f52;
  --ok-soft: #e8f5ee;
  --warn: #a86d0c;
  --warn-soft: #fbf3e2;
  --r: 14px;
  --r-sm: 10px;
  --sh: 0 1px 2px rgba(16, 20, 30, .04), 0 1px 3px rgba(16, 20, 30, .05);
  --sh-lg: 0 10px 30px rgba(16, 20, 30, .08), 0 2px 6px rgba(16, 20, 30, .04);
  --font: 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Consolas, monospace;
  --maxw: 1160px;
  --fs: 16px;
  /* 예전 이름 호환 */
  --indigo: var(--brand); --indigo-2: var(--brand-ink); --indigo-soft: var(--brand-soft);
  --red: var(--accent); --red-soft: var(--accent-soft); --green: var(--ok); --green-soft: var(--ok-soft);
  --gold: var(--warn); --gold-soft: var(--warn-soft); --paper: var(--bg); --paper-2: var(--surface-2);
  --card: var(--surface); --serif: var(--font); --shadow: var(--sh); --shadow-lg: var(--sh-lg); --radius: var(--r); --radius-sm: var(--r-sm);
}
html[data-fs="lg"] { --fs: 18px; }
html[data-fs="xl"] { --fs: 20px; }

/* ───────── 기본 ───────── */
* { box-sizing: border-box; }
html { font-size: var(--fs); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.65; word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; cursor: pointer; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { letter-spacing: -.025em; line-height: 1.3; font-weight: 750; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
#app:focus, main:focus { outline: none; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 999; border-radius: 0 0 8px 0; }
.skip:focus { left: 8px; top: 8px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-3); }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.center { text-align: center; }

/* ───────── 머리글 ───────── */
.hd { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid var(--line); }
.hd-in { max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; gap: 20px; padding: 0 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none !important; flex-shrink: 0; min-width: 0; }
.brand svg { width: 32px; height: 32px; flex-shrink: 0; }
.brand b { display: block; font-size: 1.02rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; white-space: nowrap; }
.brand small { display: block; font-size: .7rem; color: var(--ink-3); font-weight: 500; letter-spacing: 0; white-space: nowrap; }
.nav { display: flex; gap: 2px; margin-left: auto; height: 100%; }
.nav a { position: relative; display: flex; align-items: center; gap: 5px; padding: 0 10px; color: var(--ink-2); font-weight: 600; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.nav a:hover { color: var(--ink); }
.nav a.on { color: var(--ink); }
.nav a.on::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--brand); border-radius: 2px; }
.nav a .soon { font-size: .66rem; font-weight: 700; color: var(--ink-3); background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }
.nav-fs { display: none; }
.hd-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.mode { display: inline-flex; background: var(--surface-2); border-radius: 9px; padding: 3px; }
.mode button { border: 0; background: transparent; padding: 5px 12px; border-radius: 7px; font-size: .83rem; font-weight: 700; color: var(--ink-3); white-space: nowrap; }
.mode button.on { background: var(--surface); color: var(--ink); box-shadow: var(--sh); }
.icon-btn { position: relative; width: 36px; height: 36px; display: inline-grid; place-items: center; border: 1px solid var(--line); background: var(--surface); border-radius: 9px; color: var(--ink-2); flex-shrink: 0; }
.icon-btn:hover { border-color: var(--line-2); color: var(--ink); }
.icon-btn .badge { position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--accent); color: #fff; font-size: .66rem; font-weight: 800; display: grid; place-items: center; }
.icon-btn .badge[hidden] { display: none; }
.menu-btn { display: none; }

/* ───────── 레이아웃 ───────── */
main { max-width: var(--maxw); margin: 0 auto; padding: 36px 24px 80px; min-height: 70vh; }
.page-hd { margin: 0 0 28px; }
.page-hd .eyebrow { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 8px; }
.page-hd h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0 0 10px; font-weight: 800; letter-spacing: -.035em; }
.page-hd p { color: var(--ink-2); margin: 0; max-width: 720px; font-size: 1.02rem; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); }
.pad { padding: 22px; }
.section { margin-top: 48px; }
.section > h2 { font-size: 1.3rem; font-weight: 800; margin: 0 0 16px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.section > h2 small { font-size: .84rem; color: var(--ink-3); font-weight: 500; letter-spacing: 0; }
.h-sm { font-size: 1rem !important; font-weight: 750 !important; letter-spacing: -.02em; margin: 0 0 10px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.side { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 14px; }

/* ───────── 버튼·칩·태그 ───────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 40px; padding: 0 16px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); border-radius: var(--r-sm); font-weight: 650; font-size: .9rem; text-decoration: none !important; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn:hover { border-color: var(--ink-3); background: var(--surface-2); }
.btn.pri { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.pri:hover { background: var(--brand-ink); border-color: var(--brand-ink); }
.btn.red { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.red:hover { filter: brightness(.94); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.sm { height: 34px; padding: 0 12px; font-size: .84rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); padding: 6px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600; text-decoration: none !important; transition: .12s; }
.chip:hover { border-color: var(--line-2); color: var(--ink); background: var(--surface-2); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip .n { opacity: .55; font-weight: 500; font-size: .8em; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 6px; font-size: .76rem; font-weight: 650; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; text-decoration: none !important; }
a.tag:hover { background: var(--surface-3); }
.tag.comp { background: var(--brand-soft); color: var(--brand-ink); }
.tag.cross { background: var(--ok-soft); color: var(--ok); }
.code { font-family: var(--mono); font-size: .78rem; font-weight: 600; background: var(--brand-soft); color: var(--brand-ink); padding: 3px 7px; border-radius: 6px; border: 0; white-space: nowrap; }
button.code:hover { background: var(--brand); color: #fff; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.band { font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.band.b1 { background: var(--accent-soft); color: #b8441f; }
.band.b2 { background: var(--ok-soft); color: var(--ok); }
.band.b3 { background: var(--brand-soft); color: var(--brand-ink); }

/* ───────── 필터 ───────── */
.filters { display: flex; flex-direction: column; gap: 14px; padding: 18px 20px; margin-bottom: 20px; }
.filters .frow { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.filters .flabel { font-size: .78rem; font-weight: 700; color: var(--ink-3); width: 64px; flex-shrink: 0; }
.search { flex: 1; min-width: 200px; position: relative; }
.search input { width: 100%; height: 40px; padding: 0 14px 0 38px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 17px; color: var(--ink-3); }
.search input:focus, select.sel:focus, .field input:focus, .field select:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }
select.sel { height: 40px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: .87rem; font-weight: 600; color: var(--ink-2); cursor: pointer; user-select: none; }
.switch input { width: 36px; height: 20px; appearance: none; background: var(--line-2); border-radius: 10px; position: relative; transition: .2s; cursor: pointer; margin: 0; flex-shrink: 0; }
.switch input::after { content: ''; position: absolute; width: 16px; height: 16px; background: #fff; border-radius: 50%; top: 2px; left: 2px; transition: .2s; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.switch input:checked { background: var(--brand); }
.switch input:checked::after { left: 18px; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: var(--r-sm); padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 7px 14px; border-radius: 8px; font-weight: 650; font-size: .87rem; color: var(--ink-2); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--sh); }

/* ───────── 홈 ───────── */
.hero { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--sh); }
.hero-in { position: relative; z-index: 2; padding: 56px 52px 132px; max-width: 720px; }
.hero .eyebrow { display: inline-flex; gap: 7px; align-items: center; font-size: .8rem; font-weight: 650; color: var(--ink-2); background: var(--surface-2); padding: 6px 12px; border-radius: 999px; }
.hero .eyebrow svg { color: var(--brand); }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); line-height: 1.18; margin: 20px 0 16px; letter-spacing: -.045em; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p { font-size: 1.06rem; color: var(--ink-2); margin: 0 0 26px; max-width: 600px; }
.hero-art { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; pointer-events: none; }
.hero-art svg { display: block; width: 100%; height: auto; }
.hero-cap { position: absolute; z-index: 2; bottom: 14px; right: 20px; font-size: .74rem; color: var(--ink-3); font-weight: 600; }
.made-by { font-size: .82rem; color: var(--ink-3); font-weight: 500; }
.made-by b { color: var(--ink-2); font-weight: 700; }
.mascot { display: none; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }
.stat { padding: 20px 22px; }
.stat b { display: block; font-size: 1.9rem; font-weight: 800; letter-spacing: -.04em; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat b small { font-size: .55em !important; color: var(--ink-3) !important; font-weight: 600; }
.stat span { display: block; margin-top: 6px; font-size: .85rem; color: var(--ink-3); font-weight: 600; }
.entry { display: flex; flex-direction: column; gap: 6px; padding: 24px; text-decoration: none !important; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.entry:hover { border-color: var(--line-2); box-shadow: var(--sh-lg); }
.entry .ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); margin-bottom: 8px; }
.entry .ic svg { width: 20px; height: 20px; }
.entry h3 { margin: 0; font-size: 1.04rem; font-weight: 750; }
.entry p { margin: 0; color: var(--ink-2); font-size: .91rem; }
.entry .go { margin-top: auto; padding-top: 12px; font-weight: 650; font-size: .85rem; color: var(--brand); }
.bar { display: block; height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; transition: width .6s; }
.basis { display: grid; grid-template-columns: 1.1fr 1fr; overflow: hidden; }
.basis .q { padding: 28px; background: var(--ink); color: #d7dae1; }
.basis .q h3 { margin: 0 0 10px; color: #fff; font-size: 1.15rem; }
.basis .q b { color: #fff !important; }
.basis blockquote { margin: 14px 0 0; padding: 12px 16px; border-left: 2px solid #6c8cf0; background: rgba(255, 255, 255, .05); border-radius: 0 8px 8px 0; font-size: .92rem; color: #e8eaef; }
.basis blockquote cite { display: block; margin-top: 6px; font-style: normal; font-size: .76rem; color: #9aa1b0; }
.basis .a { padding: 28px; }
.basis .a h3 { font-size: 1.15rem; }
.basis ol { margin: 8px 0 0; padding-left: 20px; color: var(--ink-2); }
.basis li { margin: 7px 0; }

/* ───────── 성취기준 목록 ───────── */
.dom { margin-bottom: 30px; }
.dom-hd { display: flex; align-items: baseline; gap: 10px; margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.dom-hd h2 { margin: 0; font-size: 1.02rem; font-weight: 750; }
.dom-hd span { font-size: .8rem; color: var(--ink-3); }
.std { display: grid; grid-template-columns: 100px minmax(0, 1fr) auto; gap: 14px; padding: 14px 18px; margin-bottom: 8px; align-items: start; cursor: pointer; transition: border-color .12s, box-shadow .12s; }
.std:hover { border-color: var(--brand); box-shadow: var(--sh-lg); }
.std .c { font-family: var(--mono); font-weight: 600; color: var(--brand-ink); font-size: .84rem; padding-top: 2px; }
.std .t { font-size: .95rem; }
.std .links { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.std .lk { display: inline-flex; align-items: center; gap: 6px; font-size: .77rem; font-weight: 600; padding: 3px 9px; border-radius: 6px; background: var(--surface-2); color: var(--ink-2); }
.std .cnt { font-size: .74rem; font-weight: 700; color: var(--ok); background: var(--ok-soft); padding: 4px 9px; border-radius: 6px; white-space: nowrap; }
.std.nolink { background: transparent; box-shadow: none; }
.std.nolink .t { color: var(--ink-2); }
.std.nolink .cnt { background: var(--surface-2); color: var(--ink-3); }

/* ───────── 소재 카드 ───────── */
.tcard { display: flex; flex-direction: column; overflow: hidden; text-decoration: none !important; color: var(--ink); transition: border-color .15s, box-shadow .15s; border-top: 3px solid var(--c, var(--brand)); }
.tcard:hover { border-color: var(--line-2); border-top-color: var(--c, var(--brand)); box-shadow: var(--sh-lg); }
.tcard .top { display: flex; align-items: center; gap: 8px; padding: 16px 20px 0; color: var(--c, var(--ink-2)); }
.tcard .top svg { width: 18px; height: 18px; order: 2; margin-left: auto; opacity: .8; }
.tcard .top .cat { font-size: .76rem; font-weight: 700; color: var(--c, var(--ink-2)); }
.tcard .body { padding: 8px 20px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tcard h3 { margin: 0; font-size: 1.04rem; font-weight: 750; line-height: 1.4; }
.tcard p { margin: 0; font-size: .88rem; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tcard .meta { margin-top: auto; padding-top: 12px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: .76rem; color: var(--ink-3); }

/* ───────── 상세 화면 ───────── */
.detail-hero { position: relative; padding: 30px 32px 26px; margin-bottom: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); color: var(--ink); overflow: hidden; }
.detail-hero::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c, var(--brand)); }
.detail-hero .crumbs { font-size: .83rem; color: var(--ink-3); }
.detail-hero .crumbs a { color: var(--ink-3); }
.detail-hero .crumbs a:hover { color: var(--ink); }
.detail-hero h1 { margin: 8px 0 12px; font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 800; letter-spacing: -.035em; }
.detail-hero p { color: var(--ink-2); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 10px 4px; margin-right: 16px; font-weight: 650; font-size: .92rem; color: var(--ink-3); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button.on { color: var(--ink); border-color: var(--ink); }
.prose { font-size: 1rem; color: var(--ink-2); }
.prose p { margin: 0 0 12px; }
.prose b { color: var(--ink); }
.kidbox { background: var(--surface-2); border-radius: var(--r-sm); padding: 18px 20px; font-size: 1.05rem; line-height: 1.8; color: var(--ink); }
.points { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.points li { position: relative; padding-left: 16px; color: var(--ink-2); }
.points li::before { content: ''; position: absolute; left: 0; top: .72em; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-3); }
.points li b { color: var(--ink); }
.act { padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); margin-bottom: 10px; }
.act h3, .act h4 { margin: 0 0 6px; font-size: .98rem; font-weight: 700; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; letter-spacing: -.02em; }
.act p { margin: 0 0 10px; color: var(--ink-2); font-size: .93rem; }
.minimap { height: 200px; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line); }
.kv { display: grid; grid-template-columns: 76px 1fr; gap: 7px 12px; font-size: .9rem; margin: 0; }
.kv dt { color: var(--ink-3); font-weight: 600; }
.kv dd { margin: 0; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 12px 18px; font-size: .93rem; color: var(--ink-2); border-left: 1px solid var(--line-2); margin-left: 4px; }
.timeline li:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline li::before { content: ''; position: absolute; left: -4px; top: .5em; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.qbox { margin: 0; padding-left: 20px; }
.qbox li { margin: 7px 0; font-weight: 600; color: var(--ink); }
.fuse { display: grid; gap: 8px; }
.fuse div { background: var(--surface-2); border-radius: var(--r-sm); padding: 10px 14px; font-size: .92rem; color: var(--ink-2); }
.fuse b { color: var(--ink); }
.callout { border-radius: var(--r-sm); padding: 14px 16px; background: var(--brand-soft); color: var(--brand-ink); font-size: .92rem; }
.callout.warm { background: var(--warn-soft); color: #7a510b; }
.note { font-size: .79rem; color: var(--ink-3); margin-top: 8px; }

/* ───────── 핵심 아이디어 ───────── */
.core { margin: 0 0 18px; border: 1px solid var(--line); background: var(--surface-2); border-radius: var(--r-sm); padding: 12px 16px; }
.core summary { cursor: pointer; font-size: .9rem; list-style: none; color: var(--ink-2); }
.core summary::-webkit-details-marker { display: none; }
.core summary::before { content: '›'; display: inline-block; width: 14px; color: var(--ink-3); transition: transform .2s; }
.core[open] summary::before { transform: rotate(90deg); }
.core summary b { color: var(--ink); }
.core-tag { font-size: .7rem; font-weight: 700; color: var(--brand-ink); background: var(--brand-soft); border-radius: 5px; padding: 2px 6px; margin-right: 4px; }
.core-list { margin: 10px 0 0; padding-left: 20px; font-size: .9rem; color: var(--ink-2); }
.core-list li { margin: 5px 0; }

/* ───────── 모달 ───────── */
.modal-bg { position: fixed; inset: 0; background: rgba(15, 18, 25, .45); backdrop-filter: blur(2px); z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; overflow-y: auto; animation: fade .15s; }
.modal { background: var(--surface); border-radius: 16px; width: 100%; max-width: 740px; box-shadow: 0 24px 60px rgba(15, 18, 25, .25); animation: up .18s; }
.modal-hd { padding: 20px 24px 16px; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: flex-start; }
.modal-hd h2 { margin: 0; font-size: 1.08rem; line-height: 1.5; }
.modal-bd { padding: 20px 24px 24px; }
.close { margin-left: auto; border: 0; background: var(--surface-2); width: 32px; height: 32px; border-radius: 8px; font-size: 1.1rem; flex-shrink: 0; color: var(--ink-2); }
.close:hover { background: var(--surface-3); color: var(--ink); }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(10px); opacity: 0; } }
.levels { width: 100%; border-collapse: collapse; font-size: .91rem; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.levels th { width: 48px; background: var(--surface-2); font-weight: 750; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.levels td { padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.levels tr:last-child th, .levels tr:last-child td { border-bottom: 0; }
.levels tr:first-child th { color: var(--brand-ink); }

/* ───────── 지도 ───────── */
.map-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; }
#map { height: 620px; border-radius: var(--r); border: 1px solid var(--line); background: #e8ecef; }
.map-list { max-height: 620px; overflow-y: auto; padding: 6px; }
.reg-item { display: flex; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm); align-items: center; text-decoration: none !important; color: var(--ink); }
.reg-item:hover { background: var(--surface-2); }
.reg-item .rn { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-weight: 700; color: #fff; font-size: .78rem; flex-shrink: 0; }
.reg-item b { display: block; font-size: .93rem; }
.reg-item small { color: var(--ink-3); font-size: .78rem; }
.leaflet-popup-content { font-family: var(--font); margin: 12px 14px; }
.leaflet-container a.leaflet-popup-close-button { color: var(--ink-3); }
.pop b { font-size: .95rem; }
.pop p { margin: 4px 0 6px; font-size: .84rem; color: var(--ink-2); }
.reg-label { color: #fff; font-weight: 700; font-size: 11.5px; padding: 3px 8px; border-radius: 6px; white-space: nowrap; box-shadow: 0 1px 4px rgba(0, 0, 0, .2); font-family: var(--font); }
.legend { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0 0; font-size: .82rem; color: var(--ink-2); }
.legend span { display: inline-flex; gap: 6px; align-items: center; }

/* ───────── 수업 꾸러미 ───────── */
.lcard { padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; text-decoration: none !important; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.lcard:hover { border-color: var(--line-2); box-shadow: var(--sh-lg); }
.lcard h3 { margin: 4px 0 0; font-size: 1.02rem; font-weight: 750; line-height: 1.45; }
.lcard p { margin: 0; color: var(--ink-2); font-size: .88rem; }
.lcard .meta { margin-top: auto; display: flex; gap: 6px; flex-wrap: wrap; padding-top: 8px; }
.bigq { border-left: 3px solid var(--brand); padding: 4px 0 4px 16px; margin-bottom: 20px; font-size: 1.22rem; font-weight: 750; letter-spacing: -.025em; line-height: 1.45; color: var(--ink); }
.bigq span { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .1em; color: var(--brand); margin-bottom: 4px; }
.flow { display: grid; gap: 10px; }
.flow .h { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 16px 18px !important; }
.flow .h .no { width: 44px; height: 44px; border-radius: 10px; background: var(--surface-2); color: var(--ink); display: grid; place-items: center; font-weight: 750; font-size: .8rem; line-height: 1.15; text-align: center; }
.flow .h .no svg { color: var(--ink-2); }
.flow .h h3 { margin: 2px 0 4px; font-size: .98rem; font-weight: 700; }
.flow .h ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: .92rem; }
.hgoal { margin: 0 0 6px; font-size: .87rem; color: var(--brand-ink); font-weight: 600; }

/* ───────── 설계 도구 ───────── */
.form { display: grid; gap: 16px; }
.field label, .field .lbl { display: block; font-weight: 700; font-size: .86rem; margin-bottom: 6px; color: var(--ink-2); }
.field input[type=text], .field select, .field textarea { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); }
.pick { display: grid; grid-template-columns: 1fr; gap: 2px; max-height: 340px; overflow-y: auto; padding: 4px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.pick label { display: flex; gap: 8px; align-items: flex-start; padding: 7px 9px; border-radius: 7px; font-size: .86rem; cursor: pointer; font-weight: 500; }
.pick label:hover { background: var(--surface-2); }
.pick input { margin-top: 4px; accent-color: var(--brand); }
.layout.planner { grid-template-columns: 360px minmax(0, 1fr); }
.layout.planner #pForm { position: sticky; top: 88px; }
.doc { background: #fff; padding: 40px 44px; border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--sh); font-size: .94rem; }
.doc h2 { text-align: center; font-size: 1.4rem; font-weight: 800; margin: 0 0 4px; }
.doc .sub { text-align: center; color: var(--ink-3); margin: 0 0 24px; font-size: .87rem; }
.doc h3 { font-size: 1.02rem; font-weight: 750; margin: 24px 0 8px; padding-bottom: 5px; border-bottom: 1.5px solid var(--ink); }
.doc table { width: 100%; border-collapse: collapse; font-size: .87rem; margin: 6px 0; }
.doc th, .doc td { border: 1px solid #b9bec7; padding: 7px 9px; vertical-align: top; text-align: left; }
.doc th { background: #f1f3f5; font-weight: 700; white-space: nowrap; }
.layout.year { grid-template-columns: minmax(0, 1fr) 300px; }
.ygrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ymonth { padding: 14px; display: flex; flex-direction: column; gap: 8px; min-height: 150px; }
.ym-hd { display: flex; justify-content: space-between; align-items: baseline; }
.ym-hd b { font-size: 1.05rem; font-weight: 800; letter-spacing: -.02em; }
.ym-hd span { font-size: .78rem; }
.ym-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; flex: 1; align-content: start; }
.ym-list li { display: flex; gap: 6px; align-items: flex-start; font-size: .83rem; padding: 7px 8px 7px 10px; border-radius: 8px; background: var(--brand-soft); line-height: 1.4; border-left: 2px solid var(--brand); }
.ym-list li.topic { background: var(--ok-soft); border-left-color: var(--ok); }
.ym-list li a { flex: 1; color: var(--ink); font-weight: 600; }
.ym-x { border: 0; background: transparent; color: var(--ink-3); font-size: 1rem; line-height: 1; width: 24px; height: 24px; border-radius: 6px; flex-shrink: 0; }
.ym-x:hover { background: var(--accent-soft); color: var(--accent); }
.ym-add { width: 100%; height: 34px !important; font-size: .83rem; color: var(--ink-2); }
.ycov-row { display: grid; grid-template-columns: 84px 1fr 50px; gap: 10px; align-items: center; font-size: .85rem; margin: 6px 0; color: var(--ink-2); }
.ycov-row span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.ycov-total { display: flex; align-items: baseline; gap: 6px; margin-bottom: 12px; color: var(--ink-3); font-size: .87rem; }
.ycov-total b { font-size: 2rem; font-weight: 800; color: var(--ink); letter-spacing: -.04em; }

/* ───────── 학생 탐험 ───────── */
.stamps { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.stamp { aspect-ratio: 1; border-radius: 50%; border: 1.5px dashed var(--line-2); display: grid; place-items: center; text-align: center; cursor: pointer; background: var(--surface); transition: border-color .15s, transform .15s; position: relative; padding: 10px; }
.stamp:hover { border-color: var(--ink-3); transform: translateY(-2px); }
.stamp b { display: block; font-size: 1.02rem; font-weight: 750; }
.stamp small { display: block; font-size: .72rem; color: var(--ink-3); margin-top: 2px; }
.stamp.got { border: 2px solid var(--accent); color: var(--accent); background: var(--accent-soft); }
.stamp.got::after { content: '완료'; position: absolute; bottom: 16%; font-size: .66rem; font-weight: 700; background: var(--accent); color: #fff; padding: 2px 8px; border-radius: 999px; }
.progress { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width .5s; }
.quiz-q { font-size: 1.2rem; font-weight: 750; line-height: 1.5; margin: 8px 0 16px; letter-spacing: -.02em; }
.quiz-q + .tts { margin: -6px 0 16px; }
.opts { display: grid; gap: 8px; }
.opt { text-align: left; border: 1px solid var(--line-2); background: var(--surface); padding: 14px 16px; border-radius: var(--r-sm); font-size: 1rem; font-weight: 600; display: flex; gap: 12px; align-items: center; transition: .12s; }
.opt:hover:not(:disabled) { border-color: var(--brand); background: var(--brand-soft); }
.opt .n { width: 26px; height: 26px; border-radius: 7px; background: var(--surface-2); display: grid; place-items: center; font-weight: 700; font-size: .85rem; flex-shrink: 0; }
.opt.right { border-color: var(--ok); background: var(--ok-soft); }
.opt.right .n { background: var(--ok); color: #fff; }
.opt.wrong { border-color: var(--accent); background: var(--accent-soft); }
.opt:disabled { cursor: default; }
.explain { margin-top: 14px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--surface-2); font-size: .97rem; }
.big-ok { font-size: 2.6rem; text-align: center; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 200; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 8px; height: 12px; border-radius: 2px; animation: drop 1.6s ease-in forwards; }
@keyframes drop { to { transform: translateY(105vh) rotate(720deg); opacity: .8; } }

/* ───────── 바구니·노트 ───────── */
.bitem { display: flex; gap: 12px; align-items: center; padding: 14px 18px; }
.bitem .k { font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.bitem a { font-weight: 650; }
.empty { text-align: center; padding: 56px 20px; color: var(--ink-3); }
.empty svg { width: 44px; height: 44px; opacity: .5; }
.empty p { margin: 12px 0 16px; }
.note-step { margin-bottom: 14px; }
.note-step label { display: block; }
.step-h { display: block; font-size: 1.05rem; font-weight: 750; color: var(--ink); margin-bottom: 2px; letter-spacing: -.02em; }
.note-step textarea, .ask-form textarea { width: 100%; margin-top: 10px; border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 12px 14px; font: inherit; line-height: 1.7; resize: vertical; background: var(--surface); }
.note-step textarea:focus, .ask-form textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }
.note-card { text-decoration: none !important; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.note-card:hover { border-color: var(--line-2); box-shadow: var(--sh-lg); }
.tts { display: inline-flex; align-items: center; gap: 6px; height: 32px; border: 1px solid var(--line-2); background: var(--surface); border-radius: 8px; padding: 0 12px; font-weight: 600; font-size: .82rem; color: var(--ink-2); }
.tts:hover { border-color: var(--ink-3); color: var(--ink); }
.tts.on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ───────── 소개 ───────── */
.feat .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.flowchain { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; counter-reset: fc; }
.flowchain li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; counter-increment: fc; }
.flowchain li::before { content: counter(fc, decimal-leading-zero); display: block; font-family: var(--mono); font-size: .72rem; color: var(--brand); font-weight: 600; margin-bottom: 4px; }
.flowchain b { display: block; font-size: .95rem; }
.flowchain span { font-size: .8rem; color: var(--ink-3); }
.heat { border-collapse: separate; border-spacing: 3px; font-size: .82rem; width: 100%; }
.heat th { font-weight: 650; color: var(--ink-2); text-align: left; padding: 2px 6px; white-space: nowrap; }
.heat td.hm { text-align: center; border-radius: 7px; padding: 7px 4px; background: rgba(43, 85, 196, calc(.06 + var(--p) * .78)); color: var(--ink); min-width: 70px; }
.heat td.hm b { display: block; font-size: .9rem; font-variant-numeric: tabular-nums; }
.heat td.hm small { color: rgba(21, 23, 28, .65); }
.heat td.na { background: var(--surface-2); color: var(--ink-3); text-align: center; }
.levels.pubdata th, .levels.pubdata td, .levels.obs th, .levels.obs td, .levels.tide th, .levels.tide td { font-size: .87rem; padding: 9px 12px; }
.levels.pubdata th, .levels.obs th { width: auto; text-align: left; }

/* ───────── 데이터 탐구실 ───────── */
.live-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.live-card { display: flex; flex-direction: column; gap: 12px; }
.live-card.wide { grid-column: 1 / -1; }
.live-card .h-sm { margin: 0 !important; }
.live-big { font-size: 3rem; font-weight: 800; letter-spacing: -.05em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.live-big small { font-size: 1.1rem; color: var(--ink-3); margin-left: 4px; font-weight: 600; }
.live-link { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.live-q { margin: 8px 0 0; font-size: .89rem; color: var(--ink-2); }
.pm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pm-row > div { background: var(--surface-2); border-radius: var(--r-sm); padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.pm-row b { font-size: 1.9rem; font-weight: 800; letter-spacing: -.04em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pm-row small { color: var(--ink-3); font-size: .77rem; }
.pm { align-self: flex-start; font-size: .74rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; color: #fff; }
.pm.g1 { background: #2f6fde; } .pm.g2 { background: var(--ok); } .pm.g3 { background: #c47a12; } .pm.g4 { background: #cc3a3a; } .pm.na { background: var(--ink-3); }
.fest { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.fest-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: var(--r-sm); border: 1px solid var(--line); }
.fest-item img, .fest-ph { width: 60px; height: 60px; border-radius: 8px; object-fit: cover; flex-shrink: 0; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-3); }
.fest-item b { font-size: .92rem; }
.fest-item p { margin: 2px 0 0; font-size: .79rem; }
.obs-chart { width: 100%; height: auto; max-height: 220px; margin-bottom: 10px; }

/* ───────── 반디 AI ───────── */
.ask-item { margin-bottom: 16px; display: grid; gap: 8px; }
.ask-q { justify-self: end; max-width: 85%; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 14px 14px 4px 14px; font-weight: 550; }
.ask-a { max-width: 94%; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh); padding: 16px 18px; border-radius: 14px 14px 14px 4px; }
.ask-a::before { content: '반디'; display: block; font-size: .72rem; font-weight: 700; color: var(--brand); letter-spacing: .04em; margin-bottom: 6px; }
.ask-text { line-height: 1.8; }
.ask-src { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .83rem; }
.ask-a .spin { width: 16px; height: 16px; display: inline-block; vertical-align: middle; }

/* ───────── 첫 방문 ───────── */
.welcome { text-align: center; }
.w-mascot { width: 96px; margin: 0 auto 6px; }
.w-mascot svg { width: 100%; height: auto; }
.w-lead { font-size: 1.02rem; margin: 0 0 20px; line-height: 1.7; color: var(--ink-2); }
.w-lead b { color: var(--ink); }
.w-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.w-card { border: 1px solid var(--line-2); background: var(--surface); border-radius: var(--r); padding: 22px 16px; display: flex; flex-direction: column; align-items: center; gap: 6px; transition: border-color .15s, box-shadow .15s; }
.w-card:hover { border-color: var(--brand); box-shadow: var(--sh-lg); }
.w-card .w-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-size: 0; }
.w-card.s .w-ic { background: var(--accent-soft); color: var(--accent); }
.w-card .w-ic svg { width: 22px; height: 22px; }
.w-card b { font-size: 1.08rem; font-weight: 750; }
.w-card small { color: var(--ink-3); font-size: .82rem; line-height: 1.5; }
.w-note { font-size: .79rem; color: var(--ink-3); margin: 18px 0 0; }
.welcome-bg .modal { max-width: 540px; }

/* ───────── 바닥글·알림 ───────── */
.ft { border-top: 1px solid var(--line); background: var(--surface); }
.ft-in { max-width: var(--maxw); margin: 0 auto; padding: 32px 24px 40px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; font-size: .84rem; color: var(--ink-3); }
.ft b { color: var(--ink-2); }
.ft .copy { font-size: .95rem; font-weight: 750; color: var(--ink); margin-bottom: 6px; }
.ft .copy b { color: var(--ink); }
.ft p { margin: 4px 0; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(16px); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 10px; font-weight: 600; font-size: .9rem; z-index: 300; opacity: 0; transition: .22s; pointer-events: none; box-shadow: var(--sh-lg); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.loading { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 90px 20px; color: var(--ink-3); font-weight: 600; }
.spin { width: 22px; height: 22px; border: 2px solid var(--line-2); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ───────── 반응형 ───────── */
@media (max-width: 1180px) and (min-width: 961px) {
  .nav a { padding: 0 7px; font-size: .84rem; }
  .nav a.on::after { left: 7px; right: 7px; }
  .brand small { display: none; }
}
@media (max-width: 1100px) { .ygrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .layout, .layout.planner, .layout.year, .map-wrap, .basis { grid-template-columns: 1fr; }
  .side, .layout.planner #pForm { position: static; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .menu-btn { display: inline-grid; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; height: auto; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; flex-direction: column; box-shadow: var(--sh-lg); max-height: calc(100vh - 64px); overflow-y: auto; overscroll-behavior: contain; }
  .nav.open { display: flex; }
  .nav a { min-height: 46px; padding: 0 8px; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .nav a.on { color: var(--brand); }
  .nav a.on::after { display: none; }
  .nav-fs { display: flex; align-items: center; min-height: 46px; border: 0; background: none; padding: 0 8px; font-weight: 600; color: var(--ink-2); }
  .hd-tools { margin-left: auto; }
  .mode button { min-height: 44px; min-width: 48px; padding: 0 12px; }
  .icon-btn { width: 44px; height: 44px; }
  #fsBtn { display: none; }
  #map { height: 440px; }
  .map-list { max-height: none; }
  body.menu-open { overflow: hidden; }
  body.menu-open::after { content: ''; position: fixed; inset: 0; background: rgba(15, 18, 25, .3); z-index: 40; }
  .live-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  main { padding: 22px 16px 60px; }
  .hd-in { padding: 0 12px; gap: 8px; height: 60px; }
  .brand small { display: none; }
  .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); }
  .heat td.hm { min-width: 0; padding: 6px 2px; }
  .heat td.hm small { display: none; }
  .hero-in { padding: 34px 22px 100px; }
  .std { grid-template-columns: 1fr; gap: 6px; }
  .std .cnt { justify-self: start; }
  .doc { padding: 22px 16px; }
  .ft-in { grid-template-columns: 1fr; }
  .filters .flabel { width: 100%; }
  .stamps { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .stamp b { font-size: .9rem; }
  .stamp small { display: none; }
  .w-pick { grid-template-columns: 1fr; }
  .ygrid { grid-template-columns: 1fr; }
  .detail-hero { padding: 24px 20px 20px; }
}
@media (max-width: 420px) {
  .hd-in { padding: 0 10px; gap: 6px; }
  .brand { gap: 7px; }
  .brand b { font-size: .92rem; }
  .brand svg { width: 28px; height: 28px; }
  .hd-tools { gap: 4px; }
  .mode { padding: 2px; }
  .mode button { min-width: 40px; padding: 0 8px; font-size: .78rem; }
  .icon-btn { width: 40px; height: 40px; }
}
/* 아주 좁은 화면(320px 등): 로고 글자를 줄이고 도구가 밀려나지 않게 */
@media (max-width: 360px) {
  .brand b { font-size: .84rem; letter-spacing: -.04em; }
  .mode button { min-width: 36px; padding: 0 6px; font-size: .74rem; }
  .icon-btn { width: 38px; height: 38px; }
}
@media (max-width: 330px) {
  .brand b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ───────── 인쇄 ───────── */
@media print {
  @page { size: A4; margin: 16mm 14mm; }
  body { background: #fff; font-size: 11pt; }
  .hd, .ft, .no-print, .toast, .modal-bg { display: none !important; }
  main { padding: 0; max-width: none; }
  .card, .doc { box-shadow: none; border: 0; padding: 0; }
  body.print-ws > *:not(#print-area) { display: none !important; }
  body.print-ws #print-area { display: block !important; }
  a { color: inherit; }
}
#print-area { display: none; }
.ws { font-family: var(--font); color: #000; }
.ws .ws-hd { border: 1.5px solid #000; padding: 10px 14px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.ws .ws-hd h1 { font-size: 15pt; margin: 0; }
.ws .ws-name { font-size: 10pt; white-space: nowrap; }
.ws .ws-goal { background: #f3f3f3; padding: 8px 12px; font-size: 10pt; margin-bottom: 14px; border-left: 3px solid #000; }
.ws .ws-q { margin: 0 0 14px; page-break-inside: avoid; }
.ws .ws-q b { display: block; margin-bottom: 6px; }
.ws .ws-a { border: 1px solid #999; border-radius: 6px; min-height: 70px; }
.ws .ws-self { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 10pt; }
.ws .ws-self td, .ws .ws-self th { border: 1px solid #999; padding: 6px; text-align: center; }
.ws .rub { width: 100%; border-collapse: collapse; font-size: 9.5pt; }
.ws .rub th, .ws .rub td { border: 1px solid #888; padding: 6px; vertical-align: top; }
.ws .rub th { background: #eee; }
.ws .ws-ft { margin-top: 14px; font-size: 8pt; color: #666; text-align: right; }

/* 반디 AI 설정 전: 관련 메뉴·버튼에 '준비 중' 표시 */
html[data-ai="off"] a[href^="#/ask"]::after { content: '준비 중'; position: static; display: inline-block; width: auto; height: auto; background: var(--surface-2); color: var(--ink-3); font-size: .66rem; font-weight: 700; padding: 1px 6px; border-radius: 4px; margin-left: 6px; }
html[data-ai="off"] .btn[href^="#/ask"] { color: var(--ink-3); }
.chip:disabled, .opt:disabled, textarea:disabled { opacity: .55; cursor: not-allowed; }
.pcount { float: right; font-weight: 600; color: var(--ink-3); }
.pcount.over { color: var(--accent); }
.ai-soon { display: none; }
html[data-ai="off"] .ai-soon { display: inline-block; vertical-align: middle; margin-left: 6px; background: var(--surface-2); color: var(--ink-3); font-size: .7rem; font-weight: 700; letter-spacing: 0; padding: 2px 7px; border-radius: 5px; }
