@font-face { font-family: 'Pretendard'; src: url('fonts/PretendardVariable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  /* Green-led palette from the cover: muted forest green dominates, apricot only as accent (easy on the eyes) */
  --navy: #2f6b4f;        /* primary green (buttons, stage) */
  --navy-2: #3b7d5e;
  --ink: #1e2621;
  --muted: #66716a;
  --line: #dde4da;
  --paper: #f4f6f1;
  --card: #ffffff;
  --gold: #e07a2e;        /* KEYTERM orange */
  --gold-2: #dba03a;      /* MASTER gold */
  --gold-soft: #fbefe0;   /* apricot wash */
  --arch: #2e8a55;
  --accent: #f0a35e;      /* route / pass marker (apricot) */
  --top-bg: #2c5a45;
  --top-fg: #f1f4ee;
  --top-line: rgba(255,255,255,.22);
  --hero-base: #386b52;
  --c1: rgba(255,255,255,.07); --c2: rgba(246,190,128,.38); --c3: rgba(246,190,128,.2); --c4: rgba(132,180,140,.35);
  --ok: #1f7a54; --ok-soft: #e4f3ec; --bad: #b3372f; --bad-soft: #f8e6e4;
  --radius: 14px;
  --serif: 'Nunito', 'Pretendard', -apple-system, sans-serif;
  --wm: #f6a469;          /* Keyterm Pass Route wordmark (orange) */
  --sans: 'Pretendard', -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-text-size-adjust: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--navy-2); }

/* top bar */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: var(--top-bg); color: var(--top-fg); border-bottom: 1px solid var(--top-line); }
.top .in { max-width: 1040px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--top-fg); text-decoration: none; }
.brand .mark { width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; }
.brand b { font-family: var(--serif); font-size: 19px; letter-spacing: -.2px; font-weight: 800; color: var(--wm); }
.brand small { display: block; font-family: var(--serif); font-size: 9.5px; letter-spacing: 2px; color: #b9d2c1; font-weight: 700; margin-top: -2px; }
.top .sp { flex: 1; }
.top .who { font-size: 13px; opacity: .85; }
.iconbtn { white-space: nowrap; text-decoration: none; background: transparent; border: 1px solid var(--top-line); color: var(--top-fg); border-radius: 9px; padding: 6px 10px; cursor: pointer; font-size: 13px; }

main { max-width: 1040px; margin: 0 auto; padding-block: 20px 80px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
body::before { content: ''; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--navy); }

/* hero: topographic "pass" with a route of 4 stops (Level 1 → Final) */
.topo { background-color: var(--hero-base); background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%27480%27%20height%3D%27240%27%20viewBox%3D%270%200%20480%20240%27%20fill%3D%27none%27%20stroke%3D%27white%27%20stroke-opacity%3D%27.09%27%20stroke-width%3D%271.2%27%3E%3Cpath%20d%3D%27M-10%20200%20C%2080%20170%20120%20210%20200%20180%20S%20330%20120%20490%20150%27/%3E%3Cpath%20d%3D%27M-10%20170%20C%2070%20140%20130%20180%20210%20150%20S%20330%2090%20490%20120%27/%3E%3Cpath%20d%3D%27M-10%20140%20C%2060%20110%20140%20150%20220%20120%20S%20330%2060%20490%2090%27/%3E%3Cpath%20d%3D%27M-10%20110%20C%2050%2080%20150%20120%20230%2090%20S%20330%2030%20490%2060%27/%3E%3Cpath%20d%3D%27M-10%2080%20C%2040%2050%20160%2090%20240%2060%20S%20330%200%20490%2030%27/%3E%3Cpath%20d%3D%27M-10%2050%20C%2030%2020%20170%2060%20250%2030%20S%20330%20-30%20490%200%27/%3E%3Cellipse%20cx%3D%27380%27%20cy%3D%2770%27%20rx%3D%2740%27%20ry%3D%2718%27/%3E%3Cellipse%20cx%3D%27380%27%20cy%3D%2770%27%20rx%3D%2722%27%20ry%3D%279%27/%3E%3C/svg%3E"); background-size: 480px 240px; color: #fff; }
.hero { border-radius: var(--radius); padding: 26px 26px 22px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 18px 28px; align-items: center; overflow: hidden; }
.hero .hl { min-width: 0; }
.hero .hr { min-width: 0; }
.word { display: flex; flex-direction: column; }
.word .ey { font-size: 12px; color: #cfe2d4; font-weight: 600; letter-spacing: .5px; }
.word .nick { font-family: var(--serif); font-size: 46px; font-weight: 900; letter-spacing: -.8px; line-height: 1.05; margin-top: 4px; color: var(--wm); }
.word .en { font-family: var(--serif); font-size: 12px; letter-spacing: 3.5px; font-weight: 700; color: var(--accent); margin-top: 4px; }
.word .slogan { font-size: 14px; color: #e3eee6; margin-top: 12px; }
svg.route { width: 100%; height: auto; max-width: 100%; display: block; overflow: visible; }
svg.route text { font-family: var(--sans); }
svg.route text.n { fill: #2f6b4f; font-size: 12px; font-weight: 800; }
svg.route text.n.f { fill: #fff; font-size: 13px; }
svg.route text.l { fill: #fff; font-size: 12.5px; font-weight: 700; }
svg.route text.k { fill: #cfe2d4; font-size: 11px; font-weight: 500; }
.hero .stats { grid-column: 1 / -1; display: flex; gap: 10px; flex-wrap: wrap; }
.hero .stats div { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); border-radius: 12px; padding: 9px 14px; min-width: 96px; }
.hero .stats div b { display: block; font-family: var(--serif); font-size: 22px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.hero .stats div span { font-size: 12px; color: #cfe2d4; }
/* chapter list as a route: numbered stops joined by a dotted line */
.chaps.routeline { position: relative; }
.chaps.routeline::before { content: ''; position: absolute; left: 32px; top: 24px; bottom: 24px; border-left: 2px dotted var(--accent); }
.chaps.routeline .chap .num { position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 50%; background: var(--card); border: 2px solid var(--navy); color: var(--navy); font-size: 15px; display: grid; place-items: center; }

h2.sec { font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin: 28px 2px 10px; font-weight: 700; }

/* tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 10px; min-height: 118px; cursor: pointer; transition: transform .12s, box-shadow .12s; text-align: left; }
.tile:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(15,42,74,.08); }
.tile .ic { width: 42px; height: 42px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--line); color: var(--navy); display: grid; place-items: center; }
.tile b { font-size: 15px; }
.tile span { font-size: 12px; color: var(--muted); margin-top: -6px; }
.tile.locked { opacity: .45; }
.tile.locked .ic { background: #eee; }

/* chapter list */
.chaps { display: grid; gap: 8px; }
.chap { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; text-align: left; width: 100%; }
.chap:hover { border-color: var(--navy-2); }
.chap .num { font-family: var(--serif); font-size: 20px; width: 36px; color: var(--navy); font-weight: 800; text-align: center; }
.chap .tx { flex: 1; min-width: 0; }
.chap .tx b { display: block; font-size: 15px; }
.chap .tx span { font-size: 12px; color: var(--muted); }
.chap .cnt { font-size: 12px; color: var(--muted); white-space: nowrap; }
.chap.on { border-color: var(--navy); box-shadow: inset 3px 0 0 var(--gold); }

/* page head */
.ph { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.back { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 7px 12px; cursor: pointer; font-size: 14px; }
.ph h1 { font-size: 20px; margin: 0; font-family: var(--serif); font-weight: 600; color: var(--navy); }

/* cards & form */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card + .card { margin-top: 12px; }
.seg { display: inline-flex; background: #ebe8e0; border-radius: 11px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 8px 12px; border-radius: 9px; cursor: pointer; font-size: 13px; color: var(--muted); }
.seg button.on { background: var(--card); color: var(--navy); font-weight: 700; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.btn { background: var(--navy); color: #fff; border: 0; border-radius: 10px; padding: 11px 18px; cursor: pointer; font-weight: 600; font-size: 15px; }
.btn:hover { background: var(--navy-2); }
.btn.ghost { background: var(--card); color: var(--navy); border: 1px solid var(--line); }
.btn.gold { background: var(--gold); }
.btn.sm { padding: 7px 12px; font-size: 13px; }
.btn:disabled { opacity: .4; cursor: default; }
input[type=text], input[type=password], input[type=url], textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; background: #fff; font-size: 15px; }
textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--navy-2); outline-offset: -1px; }
label.f { display: block; font-size: 12px; color: var(--muted); margin: 12px 0 5px; font-weight: 600; }
.muted { color: var(--muted); font-size: 13px; }
.tag { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 99px; background: var(--gold-soft); color: #7a5b17; font-weight: 700; letter-spacing: .3px; }
.tag.navy { background: #e3eaf4; color: var(--navy); }

/* quiz */
.qbar { height: 4px; background: #e8e5dd; border-radius: 4px; overflow: hidden; margin: 14px 0 18px; }
.qbar i { display: block; height: 100%; background: var(--gold); transition: width .25s; }
.prompt { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.qterm { font-family: var(--serif); font-size: 30px; font-weight: 600; color: var(--navy); line-height: 1.2; }
.qdef { font-size: 19px; line-height: 1.5; }
.opts { display: grid; gap: 8px; margin-top: 18px; }
.opt { text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 14px; cursor: pointer; font-size: 15px; display: flex; gap: 10px; align-items: flex-start; }
.opt:hover:not(:disabled) { border-color: var(--navy-2); }
.opt .k { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; font-size: 12px; color: var(--muted); }
.opt.ok { border-color: var(--ok); background: var(--ok-soft); }
.opt.bad { border-color: var(--bad); background: var(--bad-soft); }
.hint { display: flex; gap: 6px; margin: 12px 0; }
.hint i { display: inline-block; height: 32px; min-width: 56px; border-bottom: 2px solid var(--navy); }
.fb { margin-top: 14px; padding: 12px 14px; border-radius: 12px; font-size: 14px; }
.fb.ok { background: var(--ok-soft); color: var(--ok); }
.fb.bad { background: var(--bad-soft); color: var(--bad); }
.fb .src { display: block; color: var(--muted); font-size: 12px; margin-top: 6px; }
.result { text-align: center; padding: 26px 10px; }
.result .big { font-family: var(--serif); font-size: 54px; color: var(--navy); font-weight: 600; }

/* shadowing */
.shadow-stage { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 26px 20px; text-align: center; min-height: 250px; display: flex; flex-direction: column; justify-content: center; position: relative; }
.shadow-stage .t { font-family: var(--serif); font-size: 32px; font-weight: 600; }
.shadow-stage .d { font-size: 17px; opacity: .88; margin-top: 12px; max-width: 640px; margin-left: auto; margin-right: auto; }
.shadow-stage .d.hide { filter: blur(7px); }
.shadow-stage .ko { color: var(--gold); font-size: 14px; margin-top: 6px; }
.ring { position: absolute; top: 14px; right: 14px; width: 46px; height: 46px; }
.ring circle { fill: none; stroke-width: 4; }
.ring .bg { stroke: rgba(255,255,255,.18); }
.ring .fg { stroke: var(--gold); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset .1s linear; }
.ring text { fill: #fff; font-size: 14px; font-weight: 700; }
.stage-idx { position: absolute; top: 18px; left: 18px; font-size: 12px; opacity: .6; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chips button { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 5px 11px; font-size: 12px; cursor: pointer; }
.chips button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.chips button.done { border-color: var(--gold); }

/* mock exam */
.item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.item .meta { display: flex; gap: 6px; margin-bottom: 10px; }
.dialog { background: #faf9f6; border-left: 3px solid var(--gold); padding: 10px 14px; margin: 10px 0; font-family: var(--serif); font-size: 16px; }
.dialog p { margin: 3px 0; }
.note { border: 1px dashed var(--line); border-radius: 10px; padding: 10px 14px; font-size: 14px; margin: 10px 0; }
.task { font-weight: 600; font-size: 15px; margin-top: 10px; }
.levels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 14px; }
.levels button { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 10px 4px; cursor: pointer; font-size: 13px; line-height: 1.25; }
.levels button b { display: block; font-size: 15px; color: var(--navy); }
.levels button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.levels button.on b { color: var(--gold); }
.check { list-style: none; padding: 0; margin: 10px 0 0; }
.check li { display: flex; gap: 8px; padding: 7px 0; border-bottom: 1px solid #f0eee8; font-size: 14px; }
.check li:last-child { border: 0; }
.check .m { flex: none; width: 20px; text-align: center; font-weight: 700; }
.check .y { color: var(--ok); }
.check .n { color: var(--bad); }
.score { display: flex; align-items: baseline; gap: 6px; margin-top: 8px; }
.score b { font-family: var(--serif); font-size: 36px; color: var(--navy); }
.counter { text-align: right; font-size: 12px; color: var(--muted); margin-top: 4px; }
.counter.over { color: var(--bad); font-weight: 700; }

/* video */
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.vcard { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.vcard .frame { aspect-ratio: 16/9; background: #0b1a2e; display: grid; place-items: center; color: rgba(255,255,255,.5); }
.vcard iframe { width: 100%; height: 100%; border: 0; display: block; }
.vcard .cap { padding: 10px 12px; font-size: 14px; }
.empty { text-align: center; color: var(--muted); padding: 34px 10px; font-size: 14px; }
.empty svg { opacity: .35; margin-bottom: 8px; }

/* tables (admin) */
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th, table.t td { padding: 9px 8px; border-bottom: 1px solid #efece5; text-align: center; }
table.t th { font-size: 12px; color: var(--muted); font-weight: 600; }
table.t td:first-child, table.t th:first-child { text-align: left; }
.tablewrap { overflow-x: auto; }
.sw { width: 18px; height: 18px; accent-color: var(--navy); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; z-index: 50; }
.foot { margin-top: 40px; font-size: 11px; color: var(--muted); line-height: 1.7; border-top: 1px solid var(--line); padding-top: 14px; }
.demo-badge { background: var(--gold); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 99px; font-weight: 700; }

/* login */
.login { max-width: 380px; margin: 40px auto; }
.login .logo { margin: 0 auto 0; }
.loginpage { padding-top: 30px; }
.logowrap { border-radius: var(--radius) var(--radius) 0 0; padding: 26px 22px 18px; display: flex; flex-direction: column; gap: 14px; }
.login .card { border-radius: 0 0 var(--radius) var(--radius); }
.login h1.x { font-family: var(--serif); font-weight: 600; color: var(--navy); margin: 10px 0 2px; font-size: 26px; }

@media (max-width: 560px) {
  .hero { grid-template-columns: 1fr; padding: 22px 18px 18px; }
  .hero .stats div { min-width: 0; padding: 8px 12px; flex: 1; }
  .word .nick { font-size: 38px; }
  .qterm { font-size: 25px; }
  .shadow-stage .t { font-size: 26px; }
  .top .who, .brand small, .demo-badge { display: none; }
  .brand b { font-size: 17px; white-space: nowrap; }
  .top .in { gap: 8px; }
  .levels button { font-size: 11px; }
}

/* about */
.about-why p { margin: 0 0 8px; font-size: 15px; max-width: 62ch; }
.about-why p:last-child { margin: 0; }
.feat { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.fi { display: flex; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.fi .ic, .aboutlink .ic { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--line); color: var(--navy); display: grid; place-items: center; }
.fi b { display: block; font-size: 14px; }
.fi span span { font-size: 12px; color: var(--muted); }
.director { display: flex; gap: 16px; align-items: flex-start; }
.director .avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--hero-base); color: #fff; display: grid; place-items: center; }
.director b { display: block; font-size: 20px; margin: 4px 0 4px; }
.director span span { display: block; font-size: 14px; color: var(--muted); }
.aboutlink { display: flex; align-items: center; gap: 12px; margin-top: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; text-decoration: none; color: var(--ink); }
.aboutlink > span:nth-child(2) { flex: 1; }
.aboutlink b { display: block; font-size: 14px; }
.aboutlink span span { font-size: 12px; color: var(--muted); }
.director span.tag { display: inline-block; font-size: 11px; color: var(--navy); }
.hero .hr svg.route { max-width: 440px; margin-left: auto; }

/* term cards */
.tlist { display: grid; gap: 10px; }
.tcard { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.tcard.compact { background: transparent; border: 0; padding: 0; }
.tcard .th { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; }
.tcard .th b { font-size: 17px; color: var(--navy); }
.tcard .th .ko { font-size: 13px; color: var(--muted); }
.tcard .kp { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 600; color: #8a4b12; background: var(--gold-soft); border-radius: 6px; padding: 2px 8px; }
.tcard .df { margin-top: 6px; font-size: 15px; }
.tcard .kx { margin-top: 6px; font-size: 14px; color: #3d4a42; background: var(--paper); border-left: 3px solid var(--navy); padding: 7px 10px; border-radius: 0 8px 8px 0; }
.tcard .src { margin-top: 6px; font-size: 11.5px; color: var(--muted); }
.blank { display: inline-block; border-bottom: 2px solid var(--navy); color: transparent; min-width: 40px; }
.fig { margin-top: 10px; }
.fig.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.fig.flow span { border: 1.5px solid var(--line); background: var(--card); border-radius: 8px; padding: 5px 10px; font-size: 12.5px; font-weight: 600; }
.fig.flow span.on { border-color: var(--accent); background: var(--gold-soft); }
.fig.flow i { font-style: normal; color: var(--accent); font-weight: 700; }
.fig.tree .root { display: inline-block; background: var(--navy); color: #fff; border-radius: 8px; padding: 4px 10px; font-size: 12.5px; font-weight: 700; }
.fig.tree div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; padding-left: 14px; border-left: 2px dotted var(--accent); }
.fig.tree div span { border: 1.5px solid var(--line); background: var(--card); border-radius: 8px; padding: 4px 9px; font-size: 12.5px; }
.fig.tree div span.on { border-color: var(--accent); background: var(--gold-soft); font-weight: 700; }
.figsvg { width: 100%; max-width: 320px; height: auto; display: block; }
.figsvg text { font-size: 11px; text-anchor: middle; fill: var(--ink); font-family: var(--sans); font-weight: 600; }
.figsvg .c3 { fill: var(--paper); stroke: var(--line); }
.figsvg .c2 { fill: var(--gold-soft); stroke: var(--accent); stroke-width: 1.5; }
.figsvg .c1 { fill: var(--navy); }
.figsvg text.w { fill: #fff; }
.figsvg .ln { fill: none; stroke: var(--accent); stroke-width: 3; }
.figsvg .dot { fill: var(--navy); }
.figsvg .ax { fill: var(--muted); font-weight: 400; }

/* ---------- 뒤로 · 홈 (MMEA와 같은 모양) ---------- */
.navrow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.backbtn { display: inline-block; background: var(--card); color: var(--navy); border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px; font-size: 14px; font-weight: 800; line-height: 1.6; text-decoration: none; cursor: pointer; }
.backbtn:hover { background: var(--ok-soft); }
.linkbtn { display: block; margin: 14px auto 0; background: none; border: 0; color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.ph h1 { font-family: var(--sans); font-weight: 800; }

/* ---------- 오래 보는 화면(퀴즈·용어·쉐도잉·모의고사 등): 눈이 편한 밝은 색 ---------- */
body.calm {
  --paper: #f5f3ec; --card: #fffdf8; --ink: #2b302c; --muted: #6b706a; --line: #e5e1d6;
  --top-bg: #e8efe9; --top-fg: #2e5a47; --top-line: #d5e2d8; --wm: #c9632b;
}
body.calm::before { background: #e8efe9; }
body.calm .brand .mark { background: #d6e5da; color: #2f6b4f; }
body.calm .brand small { color: #6d8a78; }
body.calm .iconbtn { border-color: #c7d8cc; color: #2e5a47; }
body.calm .demo-badge { filter: none; }
body.calm .opt { background: var(--card); }
body.calm .qdef { font-size: 20px; line-height: 1.65; }
body.calm .df { line-height: 1.65; }

/* 개념 비교 */
.cmp { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 12px; }
.cmp summary { cursor: pointer; font-weight: 800; color: var(--navy); }
.cmpbox { margin-top: 14px; }
.cmpbox table { width: 100%; border-collapse: collapse; margin: 6px 0; font-size: 14px; }
.cmpbox th { text-align: left; vertical-align: top; width: 38%; padding: 7px 10px 7px 0; border-top: 1px solid var(--line); color: var(--ink); }
.cmpbox td { padding: 7px 0; border-top: 1px solid var(--line); color: var(--ink); }
@media (max-width: 560px) { .cmpbox th { width: 42%; font-size: 13px; } }
/* 기출 원문 그림 · 변형 지문 */
.pimg { display: block; width: 100%; max-width: 820px; height: auto; margin: 10px auto 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 6px; box-sizing: border-box; }
.vpass { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin: 10px 0; line-height: 1.7; font-size: 15.5px; }
.vpass p { margin: 0 0 10px; }
.vpass .box { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin: 8px 0; }
table.t { border-collapse: collapse; width: 100%; margin: 8px 0; font-size: 14px; }
table.t th, table.t td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
table.t th { background: var(--paper); }
.pwrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pimg { cursor: zoom-in; }
.pimg.zoom { width: 820px; max-width: none; cursor: zoom-out; }
/* 별점 */
.stars { display: inline-block; font-size: 14px; letter-spacing: 1px; line-height: 1; vertical-align: 1px; background: linear-gradient(90deg, #e0a526 var(--p), #d6d1c4 var(--p)); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.starrow { gap: 8px; margin-bottom: 6px; }
.notice { font-size: 12.5px; color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-top: 14px; line-height: 1.6; }
.notice b { color: var(--ink); }

.ana h3{font-size:15px;margin:14px 0 6px;color:var(--navy)}.ana h3:first-child{margin-top:0}.ana p,.ana li,.ana .model{line-height:1.65;font-weight:400}.ana b{font-weight:700}.ana ol,.ana ul{padding-left:20px;margin:0}.ana .model{background:var(--bg2,#f4f6f5);border-radius:10px;padding:10px 12px;line-height:1.6}
.slotk{display:block;margin-top:10px}.slotk b{color:var(--navy);margin-right:4px}
