/* AI·디지털 전환 지도 */
#panel .section-reading-guide{margin:0 0 24px;padding:20px;background:var(--surface,#f1f6fc);border:1px solid var(--line,#c7d8e9);border-left:4px solid #527caf;border-radius:12px;color:var(--ink,#20364f)}#panel .section-reading-guide h3{font-size:18px;margin:0 0 10px}.section-reading-guide h4{font-size:14px;margin:18px 0 6px;color:var(--ink2,#4d6078)}.section-reading-guide p,.section-help,.topic-help{font-size:15px;line-height:1.85;word-break:keep-all;overflow-wrap:anywhere}.section-reading-guide p{margin:0}.topic-help{color:var(--ink2,#4d6078);margin:8px 0 18px}.topic-menu .topic-description{display:block;font-size:13px;line-height:1.7;color:var(--ink2,#4d6078);font-weight:400;white-space:normal;margin:8px 0}.card-explanation{grid-column:2;font-size:14px;line-height:1.8;color:var(--ink2);text-align:left;word-break:keep-all;overflow-wrap:anywhere}
:root {
  --bg: #f6f3ec; --bg2: #efe9dd; --card: #ffffff; --ink: #1d1b16; --ink2: #5b564b; --line: #ddd5c4;
  --hub: #1d2a44; --hub2: #2f4a7a; --accent: #d7263d; --ok: #2e9e5b; --warn: #c2410c;
  --shadow: 0 6px 22px rgba(40, 30, 10, .12); --pw: clamp(380px, 38vw, 580px); --pwh: clamp(330px, 27vw, 430px); --floor1: #fffdf8; --floor2: #e9e1cf;
  --font: 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --floor1: #2a3040; --floor2: #1b1e25; --bg: #14161b; --bg2: #1b1e25; --card: #20242c; --ink: #eceae4; --ink2: #a8a497; --line: #333845; --hub: #e9e4d6; --hub2: #b9c7e6; --shadow: 0 6px 22px rgba(0, 0, 0, .45); }
}
:root[data-theme="dark"] { --floor1: #2a3040; --floor2: #1b1e25; --bg: #14161b; --bg2: #1b1e25; --card: #20242c; --ink: #eceae4; --ink2: #a8a497; --line: #333845; --hub: #e9e4d6; --hub2: #b9c7e6; --shadow: 0 6px 22px rgba(0, 0, 0, .45); }

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow: hidden; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
.muted { color: var(--ink2); font-size: .92em; }

/* 머리줄 */
.top { height: 58px; display: flex; align-items: center; gap: 12px; padding: 0 16px; border-bottom: 1px solid var(--line); background: var(--bg); position: relative; z-index: 20; }
.brand { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.brand h1 { font-size: 19px; margin: 0; letter-spacing: -.02em; white-space: nowrap; }
.brand h1 a.home { color: inherit; text-decoration: none; cursor: pointer; border-radius: 8px; }
.brand h1 a.home:hover { color: var(--accent); }
.brand h1 a.home:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.brand .by { color: var(--ink2); font-size: 13px; white-space: nowrap; }
.tools { display: flex; gap: 6px; margin-left: auto; }
.tbtn { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 5px 12px; font-size: 13px; white-space: nowrap; }
.tbtn:hover { border-color: var(--ink2); }
#btn-theme { display: none; }
/* 화면 동기화: 강사 화면에만 보이는 단추(2026-11-07) */
.tbtn.tsync { border-color: var(--hub2); color: var(--hub2); font-weight: 700; }
.tbtn.tsync:hover { background: var(--hub2); color: var(--bg); }

/* 무대: 비스듬히 내려다본 원판 */
.stage { position: relative; height: calc(100% - 58px); display: grid; grid-template-columns: 1fr 0; transition: grid-template-columns .9s cubic-bezier(.22, .8, .2, 1); }
body.panel-open .stage { grid-template-columns: 1fr var(--pw); }
body.panel-open.at-hub .stage { grid-template-columns: 1fr var(--pwh); }
#map { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 50% 0%, var(--bg) 0%, var(--bg) 45%, var(--bg2) 100%); --base: 110px; }
#links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#links .orbit { fill: none; stroke: var(--ink2); stroke-opacity: .22; stroke-width: 1.5; stroke-dasharray: 2 7; }
#links .orbit.inner { stroke-opacity: .12; }
#links .spoke { fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 1 7; }
#links .clink { fill: none; stroke-width: 1.6; stroke-opacity: .5; stroke-linecap: round; stroke-linejoin: round; }
/* 은하: 기울어진 원판 위의 별 먼지와 두 갈래 나선 빛, 아주 천천히 돈다 */
#map::before { content: ""; position: absolute; left: 50%; top: 56%; width: 150vmax; height: 150vmax; pointer-events: none; opacity: .55;
  transform: translate(-50%, -50%) scaleY(.42) rotate(0deg); animation: galaxy 150s linear infinite;
  background:
    radial-gradient(circle, color-mix(in srgb, var(--hub2) 16%, transparent) 0 6%, transparent 30%),
    conic-gradient(from 0deg, transparent 0 4%, color-mix(in srgb, var(--hub2) 9%, transparent) 12%, transparent 22% 54%, color-mix(in srgb, var(--accent) 6%, transparent) 62%, transparent 72%),
    radial-gradient(1.4px 1.4px at 12% 18%, var(--ink2) 50%, transparent 51%) 0 0 / 61px 59px,
    radial-gradient(1px 1px at 70% 40%, var(--ink2) 50%, transparent 51%) 0 0 / 43px 47px,
    radial-gradient(1.2px 1.2px at 35% 80%, var(--hub2) 50%, transparent 51%) 0 0 / 89px 83px;
  -webkit-mask: radial-gradient(closest-side, #000 15%, rgba(0,0,0,.5) 55%, transparent 100%); mask: radial-gradient(closest-side, #000 15%, rgba(0,0,0,.5) 55%, transparent 100%); }
@keyframes galaxy { to { transform: translate(-50%, -50%) scaleY(.42) rotate(360deg); } }
body.calm #map::before { animation: none; }
/* 화질 가볍게: 커다란 배경 회전, 흐르는 점선, 겹겹 그림자를 끈다 */
body.lite #map::before { display: none; }
body.lite #links .spoke, body.lite #links .clink, body.lite #links .orbit { animation: none; }
body.lite .hub, body.lite .hub.is-active { box-shadow: inset -10px -12px 0 rgba(0,0,0,.18); }
body.lite .hub::before { display: none; }
body.lite .orb, body.lite .area:hover .orb, body.lite .area.is-selected .orb, body.lite .area.is-hot .orb { box-shadow: inset -7px -9px 0 rgba(0,0,0,.14); transition: none; }
body.lite .area.is-selected .orb { outline: 4px solid color-mix(in srgb, var(--c) 40%, transparent); outline-offset: 3px; }
body.lite .area.is-selected .orb::before { display: none; }
body.lite .leaf, body.lite .leaf.feat { box-shadow: none; }
body.lite .sat { box-shadow: 0 3px 8px rgba(0,0,0,.12); transition: transform .5s ease, opacity .35s ease, box-shadow 0s, visibility 0s; }
body.lite .sat.is-hidden { transition: transform .5s ease, opacity .35s ease, box-shadow 0s, visibility 0s linear .35s; }
body.lite .sat:hover, body.lite .sat.is-active { box-shadow: 0 0 0 3px var(--c); }
body.lite .ftwrap, body.lite .opening { animation: none; }
body.lite .node { will-change: auto; }
/* 여는 이야기가 덮고 있는 동안 뒤의 지도 움직임을 멈춘다 */
body.op-open #map::before, body.op-open #links .spoke, body.op-open #links .clink, body.op-open .hub::before, body.op-open .orb::before { animation-play-state: paused; }
#links .lline { fill: none; stroke-width: 1.2; stroke-linecap: round; }
#links .shadow { fill: #000; }
@keyframes flow { to { stroke-dashoffset: -120; } }
#nodes { position: absolute; inset: 0; perspective: 1300px; perspective-origin: 50% 20%; }
.node { position: absolute; left: 0; top: 0; border: 0; padding: 0; background: none; will-change: transform; transform-origin: 50% 50%; }
.node:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.mini-l, .a-lab { display: none; }

.hub { width: calc(var(--base) * 1.55); height: calc(var(--base) * 1.55); border-radius: 50%; color: #f5f2ea; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle at 34% 28%, #6f8cc8 0%, #2f4a7a 34%, #17233d 72%, #0c1426 100%);
  box-shadow: inset -12px -16px 28px rgba(0,0,0,.45), inset 10px 12px 22px rgba(255,255,255,.18), 0 18px 34px rgba(20,30,60,.28), 0 0 0 10px rgba(47,74,122,.10); }
.hub::after { content: ""; position: absolute; left: 20%; top: 11%; width: 34%; height: 20%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,.55), rgba(255,255,255,0)); transform: rotate(-24deg); pointer-events: none; }
.hub-t { font-size: calc(var(--base) * .24); font-weight: 800; line-height: 1.2; letter-spacing: -.03em; text-align: center; }
.hub-s { font-size: clamp(10px, calc(var(--base) * .14), 13px); white-space: nowrap; opacity: .8; margin-top: 6px; }
.hub-p { font-size: 12px; font-weight: 700; margin-top: 5px; padding: 1px 10px; border-radius: 999px; background: rgba(255,255,255,.16); }
.hub-p:empty { display: none; }
.hub::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(80, 110, 170, .35); animation: ring 5s ease-out infinite; pointer-events: none; }
@keyframes ring { 0% { transform: scale(.95); opacity: .9; } 100% { transform: scale(1.32); opacity: 0; } }
.hub.as-mini::before { display: none; }
.hub-hint { display: none; font-size: 12px; margin-top: 8px; padding: 2px 10px; border-radius: 999px; background: rgba(255,255,255,.16); }
.hub.is-collapsed .hub-hint { display: block; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.hub.is-active { box-shadow: inset -12px -16px 28px rgba(0,0,0,.45), inset 10px 12px 22px rgba(255,255,255,.18), 0 18px 34px rgba(20,30,60,.28), 0 0 0 7px var(--accent); }
.hub.as-mini > span:not(.mini-l) { display: none; }
.hub.as-mini .mini-l { display: block; font-size: 30px; font-weight: 800; line-height: 1.15; text-align: center; padding: 0 10px; word-break: keep-all; }

.area { width: var(--base); height: calc(var(--base) + 24px); display: flex; flex-direction: column; align-items: center; color: var(--on, #fff); }
.orb { position: relative; width: var(--base); height: var(--base); flex: none; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: radial-gradient(circle at 33% 27%, color-mix(in srgb, var(--c) 45%, #fff) 0%, var(--c) 38%, color-mix(in srgb, var(--c) 72%, #000) 100%);
  box-shadow: inset -9px -12px 20px rgba(0,0,0,.28), inset 7px 9px 16px rgba(255,255,255,.22), 0 12px 20px rgba(0,0,0,.16); transition: box-shadow .3s; }
.orb::after { content: ""; position: absolute; left: 19%; top: 10%; width: 36%; height: 21%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,.6), rgba(255,255,255,0)); transform: rotate(-24deg); pointer-events: none; }
.orb > span { position: relative; z-index: 1; color: var(--on, #fff); }
.area .a-no { font-size: calc(var(--base) * .11); opacity: .85; font-weight: 800; }
.area .a-name { font-size: calc(var(--base) * .15); font-weight: 800; line-height: 1.22; padding: 0 9%; word-break: keep-all; }
.area .a-meta { font-size: calc(var(--base) * .095); opacity: .85; margin-top: 3px; }
.area:hover .orb { box-shadow: inset -9px -12px 20px rgba(0,0,0,.28), inset 7px 9px 16px rgba(255,255,255,.22), 0 16px 26px rgba(0,0,0,.24), 0 0 0 5px color-mix(in srgb, var(--c) 35%, transparent); }
.area.is-selected .orb { box-shadow: inset -9px -12px 20px rgba(0,0,0,.28), inset 7px 9px 16px rgba(255,255,255,.22), 0 16px 26px rgba(0,0,0,.24), 0 0 0 6px color-mix(in srgb, var(--c) 40%, transparent), 0 0 0 12px color-mix(in srgb, var(--c) 14%, transparent); }
.area.tiny .orb > span:not(.a-no) { display: none; }
.area.tiny .a-no { font-size: calc(var(--base) * .22); }
.area.tiny .a-lab { display: block; position: absolute; left: 50%; top: calc(var(--base) + 4px); transform: translateX(-50%); font-size: calc(var(--base) * .2); font-weight: 700; color: var(--ink); white-space: nowrap; text-shadow: 0 1px 0 var(--bg), 0 0 6px var(--bg); }
/* 갈래를 연 작은 고리: 구슬이 작아져도 이름표는 화면에서 12px 아래로 줄지 않게 */
body.in-area .area.tiny .a-lab { font-size: max(calc(var(--base) * .2), calc(12px * var(--inv, 1))); }
.area.tiny.lab-up .a-lab { top: auto; bottom: calc(100% + 2px); }
.area.tiny.lab-l .a-lab, .area.tiny.lab-r .a-lab { top: calc(var(--base) / 2); transform: translateY(-50%); }
.area.tiny.lab-l .a-lab { left: auto; right: calc(100% + 5px); }
.area.tiny.lab-r .a-lab { left: calc(100% + 5px); }
.area.is-hot .orb { box-shadow: inset -9px -12px 20px rgba(0,0,0,.28), inset 7px 9px 16px rgba(255,255,255,.22), 0 18px 30px rgba(0,0,0,.26), 0 0 0 6px color-mix(in srgb, var(--c) 32%, transparent), 0 0 34px color-mix(in srgb, var(--c) 55%, transparent); }
.area.is-selected .orb::before { content: ""; position: absolute; inset: -12px; border-radius: 50%; border: 2px dashed color-mix(in srgb, var(--c) 65%, transparent); animation: spin 18s linear infinite; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.sat { width: var(--cw, 180px); background: var(--card); border-radius: 14px; border: 2px solid color-mix(in srgb, var(--c) 70%, var(--line)); box-shadow: 0 14px 26px rgba(30, 20, 0, .16); text-align: left; overflow: hidden; display: flex; flex-direction: column;
  transition: transform 1.05s cubic-bezier(.2, .8, .2, 1), opacity .75s ease, box-shadow .25s, visibility 0s; backface-visibility: hidden; }
/* 숨은 카드는 흐려진 뒤 visibility 로 아예 그리지 않는다(숨은 카드 300여 장이 레이어로 남아 지도가 끊겼다, 2026-11-05) */
.sat.is-hidden { opacity: 0; pointer-events: none; visibility: hidden; transition: transform 1.05s cubic-bezier(.2, .8, .2, 1), opacity .75s ease, box-shadow .25s, visibility 0s linear .75s; }
.sat .ph { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; background: color-mix(in srgb, var(--c) 18%, var(--bg2)); overflow: hidden; }
.sat .ph img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.sat .ph-k { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 15px; color: color-mix(in srgb, var(--c) 80%, #000); }
.sat .k { position: absolute; left: 6px; top: 6px; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
/* 그림 없는 카드의 표지(2026-11-04): 갈래 색 바탕, 오른쪽 아래 큰 종류 그림, 왼쪽 아래 짧은 제목, 오른쪽 위 연도 */
.ph-cv { position: absolute; inset: 0; display: block; overflow: hidden; color: var(--on, #fff);
  background: radial-gradient(120% 90% at 100% 100%, color-mix(in srgb, var(--c) 72%, #fff) 0%, transparent 60%), linear-gradient(150deg, color-mix(in srgb, var(--c) 78%, #000) 0%, var(--c) 70%); }
.ph-cv::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, rgba(255,255,255,.07) 0 2px, transparent 2px 11px); pointer-events: none; }
.ph-cv-i { position: absolute; right: -4%; bottom: -12%; width: 52%; height: auto; aspect-ratio: 1; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; opacity: .32; }
.ph-cv-y { position: absolute; right: 7px; top: 6px; padding: 1px 7px; border-radius: 999px; background: rgba(0,0,0,.28); font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.ph-cv-t { position: absolute; left: 9px; right: 30%; bottom: 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: clamp(12px, calc(var(--cw, 180px) * .078), 18px); font-weight: 800; line-height: 1.28; word-break: keep-all; text-shadow: 0 1px 3px rgba(0,0,0,.3); }
.sat.grp .ph-cv-i { width: 40%; left: 30%; right: auto; top: 22%; bottom: auto; opacity: .55; stroke-width: 1.3; }
/* 작은 카드(자료가 많아 카드가 작아질 때): 연도를 숨기고 제목을 줄여 종류 표와 겹치지 않게 한다 */
.sat .ph, .rv-thumb.rv-cv { container-type: inline-size; }
.rv-thumb.rv-cv { padding: 0; border: 0; background: none; }
@container (max-width: 140px) { .ph-cv-y { display: none; } .ph-cv-t { font-size: 11px; -webkit-line-clamp: 2; right: 8px; } }

.sat .t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding: 6px 9px 0; margin-bottom: 7px; height: calc(2.7em + 6px); font-size: 13px; font-weight: 700; line-height: 1.35; color: var(--ink); word-break: keep-all; }
.sat:hover, .sat.is-active { box-shadow: 0 18px 32px rgba(30, 20, 0, .22), 0 0 0 3px var(--c); }
/* 묶음 카드(2026-11-02): 카드 여러 장이 겹친 모양, 오른쪽 위에 자료 수. 누르면 자료 카드가 흩어져 나온다 */
.sat.grp { overflow: visible; box-shadow: 5px 5px 0 -1px var(--card), 5px 5px 0 1px color-mix(in srgb, var(--c) 45%, var(--line)), 10px 10px 0 -1px var(--card), 10px 10px 0 1px color-mix(in srgb, var(--c) 30%, var(--line)), 0 14px 26px rgba(30, 20, 0, .16); }
.sat.grp .ph { border-radius: 12px 12px 0 0; }
.sat.grp:hover { box-shadow: 5px 5px 0 -1px var(--card), 5px 5px 0 1px var(--c), 10px 10px 0 -1px var(--card), 10px 10px 0 1px color-mix(in srgb, var(--c) 60%, var(--line)), 0 18px 32px rgba(30, 20, 0, .22), 0 0 0 3px var(--c); }
.sat.grp .k { font-size: 12px; padding: 2px 7px; }
.sat .n { position: absolute; right: 6px; top: 6px; min-width: 28px; height: 28px; padding: 0 7px; border-radius: 999px; display: grid; place-items: center; background: var(--c); color: var(--on, #fff); font-size: 14px; font-weight: 800; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.sat .t small { display: block; font-size: 12px; font-weight: 500; color: var(--ink2); margin-top: 2px; }
.sat.grp.ref:not(.is-hidden) { opacity: .82; }
.sat.grp.ref:not(.is-hidden) .ph img { filter: grayscale(.6); }
/* 여러 자료를 담은 카드 표시(2026-11-03, 11-04): 짙은 바탕 폴더 모양 표에 안에 든 자료 종류(영상, 사이트·글 …)를 쓴다 */
.sat.grp .k.k-grp { display: inline-flex; align-items: center; gap: 5px; background: #1d2330; color: #fff; border: 1px solid rgba(255,255,255,.35); font-weight: 800; letter-spacing: .02em; }
.sat.grp .k.k-grp svg { width: 14px; height: 14px; fill: #ffd34d; }
.sat.grp .t { color: color-mix(in srgb, var(--c) 70%, var(--ink)); }
/* 「묶음으로」 카드(2026-11-03): 갈래 색으로 꽉 채우고 크게 써서 다른 카드와 바로 구별되게 한다 */
.sat.back { border: 3px solid var(--c); }
.sat.back .ph { background: var(--c); }
.sat.back .ph-k { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--on, #fff); font-size: clamp(18px, calc(var(--cw, 180px) * .13), 28px); font-weight: 900; }
.sat.back .ph-k b { font-size: 1.6em; line-height: 1; margin-top: -.12em; }
.sat.back .t { font-weight: 800; color: var(--ink); }
.sat.back:hover .ph { filter: brightness(1.08); }
/* 오른쪽 칸 머리의 「묶음으로」(2026-11-03) */
.p-sgback { display: inline-flex; align-items: center; gap: 6px; margin: 10px 0 2px; padding: 8px 16px; border: 0; border-radius: 999px; background: var(--on, #fff); color: var(--c); font-size: 16px; font-weight: 800; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.22); }
.p-head .p-sgback { color: var(--c); }
.p-sgback[hidden] { display: none; }
.p-sgback:hover { transform: translateY(-1px); }
/* 자료 형태로 모아 보기, 해마다 맡은 일 (2026-11-02) */
.p-fmt { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 10px; }
.p-fmt > span { font-size: 13px; font-weight: 700; color: var(--ink2); margin-right: 2px; }
.p-fmt button { border: 1px solid var(--line); background: var(--card); color: var(--ink2); border-radius: 999px; padding: 4px 11px; font: inherit; font-size: 13px; cursor: pointer; }
.p-fmt button[aria-pressed="true"] { background: var(--ink); color: var(--card); border-color: var(--ink); }
.p-items .item[hidden], .p-items .p-grp[hidden] { display: none; }
.p-hist details { border-bottom: 1px solid var(--line); }
.p-hist summary { cursor: pointer; font-weight: 700; font-size: 15px; padding: 8px 0; }
.p-hist summary small { font-weight: 500; color: var(--ink2); margin-left: 6px; }
.p-hist ul { margin: 0 0 10px; padding-left: 18px; display: flex; flex-direction: column; gap: 5px; }
.p-hist li { font-size: 14px; line-height: 1.55; }
.p-hist li small { display: block; font-size: 13px; color: var(--ink2); }
.p-ref { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 8px; }
.p-ref > summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--ink2); padding: 6px 0; }
.p-ref > summary small { display: block; font-weight: 500; font-size: 12px; margin-top: 2px; }
/* 2026-11-05 끊김 줄이기: 점은 행성마다 상자(.lbox)에 담아 상자만 옮긴다. 점과 숨은 카드는 따로 레이어를 만들지 않는다 */
.lbox { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; will-change: transform; }
.node.leaf, .node.sat.is-hidden { will-change: auto; }
.leaf { width: 9px; height: 9px; border-radius: 50%; background: color-mix(in srgb, var(--c) 72%, #fff); box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--c) 45%, var(--bg)); opacity: 0; }
.leaf.feat { width: 15px; height: 15px; background: radial-gradient(circle at 34% 30%, color-mix(in srgb, var(--c) 30%, #fff) 0%, var(--c) 55%, color-mix(in srgb, var(--c) 72%, #000) 100%); box-shadow: 0 0 0 2px var(--bg), 0 2px 6px rgba(0,0,0,.25); }
.leaf:hover, .leaf:focus-visible { box-shadow: 0 0 0 3px var(--c), 0 0 0 5px var(--bg), 0 3px 10px rgba(0,0,0,.3); }
#tip { position: absolute; left: 0; top: 0; z-index: 900; pointer-events: none; max-width: 280px; background: var(--card); color: var(--ink); border: 1.5px solid color-mix(in srgb, var(--c, var(--hub)) 60%, var(--line)); border-radius: 12px; padding: 6px 11px 7px; box-shadow: 0 10px 24px rgba(20, 15, 0, .18); opacity: 0; transition: opacity .3s ease; }
#tip.on { opacity: 1; }
#tip b { display: block; font-size: 13.5px; line-height: 1.35; word-break: keep-all; }
#tip span { display: block; font-size: 12px; color: var(--ink2); line-height: 1.4; word-break: keep-all; }
/* 지도 위 여는 말 */
.opening { position: absolute; left: 22px; right: 22px; top: 12px; z-index: 6; max-width: 860px; }
.opening p { margin: 0; word-break: keep-all; }
.opening .op-k { font-size: 12.5px; font-weight: 800; color: var(--accent); }
.opening .op-h { margin-top: 2px; font-size: clamp(18px, 1.7vw, 28px); font-weight: 800; letter-spacing: -.03em; line-height: 1.3; color: var(--ink); text-shadow: 0 1px 0 var(--bg), 0 0 14px var(--bg); }
.opening .op-s { margin-top: 3px; font-size: clamp(13px, 1.05vw, 16px); color: var(--ink2); text-shadow: 0 0 10px var(--bg); }
.opening .op-b { margin-top: 7px; border: 1.5px solid var(--accent); color: var(--accent); background: var(--card); border-radius: 999px; padding: 3px 14px; font-size: 13px; font-weight: 700; }
.opening .op-b:hover { background: var(--accent); color: #fff; }
.opening { animation: rise 1s .2s cubic-bezier(.22, .8, .2, 1) backwards; }
#map.narrow .opening .op-s { display: none; }
body.calm .opening { animation: none; }
body.panel-open.at-hub.hub-wide .stage { grid-template-columns: 1fr var(--pw); }
/* 특집: 지도 오른쪽 위 카드 */
.ft-badge { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11.5px; font-weight: 800; letter-spacing: .02em; }
/* 특집 나란히(2026-10-25): 지도 오른쪽 위에 특집 카드를 나란히 두고 카드마다 × 로 따로 닫는다 */
#map.has-ft.ft1 .opening { right: 346px; }
#map.has-ft.ft2 .opening { right: 656px; }
#map.has-ft:has(.ftwrap[hidden]) .opening { right: 150px; }
.ftwrap { position: absolute; right: 16px; top: 12px; z-index: 6; display: flex; gap: 10px; align-items: stretch; animation: rise 1s .5s cubic-bezier(.22, .8, .2, 1) backwards; }
.ftcard > .pin-x { position: absolute; right: -9px; top: -9px; z-index: 2; }
.ftwrap > .restore-chip.under { right: 0; top: calc(100% + 7px); }
.ftcard { position: relative; width: 300px; display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: 1fr auto; gap: 8px 10px; padding: 10px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); border: 1.5px solid color-mix(in srgb, var(--accent) 45%, var(--line)); }
.ftcard p { margin: 0; word-break: keep-all; }
.ft-ph { position: relative; display: block; border-radius: 10px; overflow: hidden; align-self: start; aspect-ratio: 4 / 3; background: var(--bg2); }
.ft-ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.ft-ph:hover img { transform: scale(1.06); }
.ft-ph .ft-badge { position: absolute; left: 5px; top: 5px; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.ft-k { font-size: 11.5px; font-weight: 800; color: var(--accent); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.ft-h { margin-top: 2px !important; font-size: 17px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); line-height: 1.25; }
.ft-s { margin-top: 3px !important; font-size: 12.5px; line-height: 1.45; color: var(--ink2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ft-a { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; gap: 6px; align-self: end; }
.ft-a > * { text-align: center; }
.ft-open, .ft-more { border-radius: 999px; padding: 3px 12px; font-size: 12.5px; font-weight: 700; text-decoration: none; cursor: pointer; }
.ft-open { background: var(--accent); color: #fff; border: 1.5px solid var(--accent); }
.ft-more { background: var(--card); color: var(--ink); border: 1.5px solid var(--line); }
.ft-open:hover { filter: brightness(1.08); } .ft-more:hover { border-color: var(--ink2); }
@media (max-width: 1240px) {
  .ftcard { width: 232px; grid-template-columns: 1fr; }
  .ftcard .ft-ph { display: none; }
  #map.has-ft.ft1 .opening { right: 278px; }
  #map.has-ft.ft2 .opening { right: 520px; }
}
#map.narrow .ftcard { width: 200px; grid-template-columns: 1fr; padding: 9px 11px; }
#map.narrow .ft-ph, #map.narrow .ft-s { display: none; }
body.calm .ftwrap { animation: none; }
.ftlist { display: none; }
/* 특집: 오른쪽 칸 맨 위 */
.p-feat { margin: 0 0 18px; padding: 14px 14px 16px; border-radius: 16px; background: color-mix(in srgb, var(--accent) 6%, var(--card)); border: 1.5px solid color-mix(in srgb, var(--accent) 35%, var(--line)); }
.p-feat p { word-break: keep-all; }
.pf-k { margin: 0; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 12.5px; font-weight: 800; color: var(--accent); }
.p-body .p-feat .pf-h { margin: 5px 0 3px; font-size: 22px; letter-spacing: -.02em; line-height: 1.3; color: var(--ink); }
.pf-s { margin: 0 0 10px; font-size: 14.5px; line-height: 1.6; color: var(--ink2); }
.pf-gal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.pf-im { position: relative; display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--bg2); }
.pf-im.big { grid-column: 1 / -1; }
.pf-im img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.pf-im:hover img { transform: scale(1.04); }
.pf-im span { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 8px 5px; font-size: 11.5px; font-weight: 700; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .6)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-im.big span { font-size: 13px; padding: 18px 10px 7px; }
.pf-stats { list-style: none; margin: 12px 0 4px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.pf-stats li { display: flex; flex-direction: column; align-items: center; padding: 7px 2px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); }
.pf-stats b { font-size: 16px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pf-stats span { font-size: 11.5px; color: var(--ink2); white-space: nowrap; }
.pf-then { margin-top: 14px; padding: 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.pf-then h4 { margin: 0 0 8px; font-size: 15.5px; }
.pf-vs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 6px; align-items: center; }
.pf-side { margin: 0; }
.pf-side img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 9px; background: var(--bg2); }
.pf-side.old img { image-rendering: pixelated; }
.pf-side figcaption { margin-top: 4px; font-size: 12px; font-weight: 700; color: var(--ink2); word-break: keep-all; }
.pf-side.now figcaption { color: var(--accent); }
.pf-arrow { color: var(--accent); font-weight: 800; }
.pf-rows { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.pf-rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: center; font-size: 13.5px; line-height: 1.45; word-break: keep-all; }
.pf-rows .o { color: var(--ink2); }
.pf-rows .n { font-weight: 700; color: var(--ink); }
.pf-old { display: inline-block; margin-top: 10px; font-size: 13.5px; font-weight: 700; color: var(--accent); }
.pf-pt { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.pf-pt h4 { margin: 0 0 3px; font-size: 15.5px; }
.pf-pt p { margin: 0; font-size: 14.5px; line-height: 1.7; }
.pf-pt a { display: inline-block; margin-top: 5px; font-size: 13.5px; font-weight: 700; color: var(--accent); }
.pf-a { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pf-a .btn { text-decoration: none; }
body.big .pf-pt p, body.big .pf-s { font-size: 16.5px; }
/* 칸 안의 여는 이야기 */
.p-open { scroll-margin-top: 120px; }
.item { scroll-margin-top: 120px; }
@media (max-width: 1100px) { .brand .by { display: none; } }
.p-open p { word-break: keep-all; }
.p-open .op-k { margin: 0; font-size: 12.5px; font-weight: 800; color: var(--accent); }
.p-open .op-h { margin: 4px 0; font-size: 21px; color: var(--ink); line-height: 1.38; letter-spacing: -.02em; word-break: keep-all; }
.p-open .op-s { margin: 0 0 4px; font-size: 15px; color: var(--ink2); }
.beat { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; padding-top: 12px; margin-top: 10px; border-top: 1px dashed var(--line); }
.beat-n { margin: 2px 0 0; width: 24px; height: 24px; border-radius: 50%; background: var(--hub); color: var(--bg); display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.beat.close .beat-n { background: var(--accent); color: #fff; }
.beat h4 { margin: 0 0 4px; font-size: 16.5px; line-height: 1.4; word-break: keep-all; }
.beat p { margin: 0 0 8px; font-size: 14.5px; line-height: 1.7; }
.media { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.mtile { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--bg); padding: 0; text-align: left; text-decoration: none; color: var(--ink); transition: border-color .2s, transform .3s; }
.mtile:hover { border-color: var(--ink2); transform: translateY(-2px); }
.mtile img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top center; display: block; }
.mt-doc { aspect-ratio: 16 / 9; display: grid; place-items: center; background: color-mix(in srgb, var(--hub2) 14%, var(--bg)); font-weight: 800; color: var(--hub2); font-size: 13px; }
.mt-t { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 11.5px; line-height: 1.35; padding: 5px 6px 6px; font-weight: 600; word-break: keep-all; }
.mt-play { display: inline-block; width: 0; height: 0; border-left: 7px solid var(--accent); border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; margin-right: 4px; vertical-align: 1px; }
body.big .beat p { font-size: 16.5px; } body.big .beat h4 { font-size: 18px; } body.big .mt-t { font-size: 13px; }
#vid-dlg { width: min(94vw, 1100px); max-width: none; padding: 12px; }
#vid-dlg .vid-box iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; display: block; background: #000; }
#vid-dlg .vid-t { margin: 8px 4px 0; font-weight: 700; word-break: keep-all; }
.opcard { display: none; }
#map.narrow .sat .t { font-size: 12px; padding: 5px 7px 0; margin-bottom: 6px; height: calc(2.7em + 5px); }

.k { display: inline-block; align-self: flex-start; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--bg2); color: var(--ink2); }
.k-video { background: #ffe1e1; color: #a1121f; }
.k-game { background: #ffe9d6; color: #9a3d00; }
.k-site { background: #dfeaff; color: #1a4aa8; }
.k-book { background: #efe2ff; color: #5b2aa0; }
.k-post { background: #dcf3e6; color: #17683b; }
.k-tool { background: #d8f2f4; color: #0b6870; }
.k-doc { background: #ece9e2; color: #555; }
.k-prize, .k-patent { background: #f7e7b4; color: #6b4f00; }
.k-coach, .k-study, .k-cert, .k-pick, .k-role, .k-talk, .k-path { background: #f3ecd9; color: #6b5420; }

/* 오른쪽 칸 */
#panel { background: var(--card); border-left: 1px solid var(--line); overflow-y: auto; overscroll-behavior: contain; height: 100%; }
body:not(.panel-open) #panel { display: none; }
/* 2026-11-05 끊김 줄이기: 오른쪽 칸이 0.9초 동안 열릴 때 칸 안 글을 장면마다 다시 배치하지 않게, 칸 폭을 미리 정하고 바깥과 떼어 둔다.
   칸은 열리는 동안 오른쪽에서 밀려 들어오고 넘친 부분은 잘린다. 휴대폰·세운 태블릿은 아래 맨 끝 규칙이 되돌린다 */
#panel { width: var(--pw); contain: strict; }
body.at-hub:not(.hub-wide) #panel { width: var(--pwh); }
.stage { overflow: clip; }
.p-head { position: sticky; top: 0; z-index: 3; background: var(--c); color: var(--on, #fff); padding: 14px 20px 16px; }
.p-head * { color: var(--on, #fff); }
.p-head h2 { font-size: 26px; margin: 2px 0 0; letter-spacing: -.03em; line-height: 1.25; clear: both; word-break: keep-all; }
.p-kicker { margin: 0; font-size: 13px; font-weight: 700; opacity: .85; }
.p-sub { margin: 2px 0 0; font-size: 14.5px; opacity: .9; }
.p-close, .p-nav button { border: 1px solid color-mix(in srgb, var(--on, #fff) 55%, transparent); background: transparent; border-radius: 999px; padding: 3px 12px; font-size: 13px; }
.p-close { float: right; margin-left: 6px; position: relative; z-index: 2; }
.p-nav { float: right; display: flex; gap: 6px; position: relative; z-index: 2; }
.p-body { padding: 6px 20px 60px; display: flex; flex-direction: column; }
.p-body > section { animation: rise .75s cubic-bezier(.22, .8, .2, 1) both; }
.p-body > section:nth-child(2) { animation-delay: .08s; } .p-body > section:nth-child(3) { animation-delay: .16s; } .p-body > section:nth-child(4) { animation-delay: .24s; } .p-body > section:nth-child(n+5) { animation-delay: .3s; }
.p-head h2, .p-head .p-sub, .p-head .p-kicker { animation: rise .6s cubic-bezier(.22, .8, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.p-body section { padding: 14px 0; border-bottom: 1px solid var(--line); }
.p-body section:last-child { border-bottom: 0; }
.p-body h3 { font-size: 14px; margin: 0 0 8px; color: var(--ink2); letter-spacing: .02em; }
.p-story p, .p-future p { margin: 0 0 10px; font-size: 16.5px; line-height: 1.75; word-break: keep-all; }
.p-future { background: linear-gradient(0deg, transparent, transparent); }
.p-future p { font-size: 15.5px; }
.p-time ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.p-time li { display: grid; grid-template-columns: 92px 1fr; gap: 10px; font-size: 14.5px; }
.p-time b { color: var(--accent); font-variant-numeric: tabular-nums; }

.qcard { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin-bottom: 12px; }
.qcard.answered { border-color: color-mix(in srgb, var(--ok) 60%, var(--line)); }
.q-type { margin: 0; font-size: 12px; font-weight: 700; color: var(--accent); }
.qcard h4 { margin: 2px 0 10px; font-size: 18px; line-height: 1.45; word-break: keep-all; }
.q-opts { display: grid; gap: 6px; }
.opt { text-align: left; border: 1.5px solid var(--line); background: var(--card); border-radius: 12px; padding: 9px 12px; font-size: 15.5px; }
.opt:hover { border-color: var(--ink2); }
.opt.is-mine { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, var(--card)); font-weight: 700; }
.q-scale .scale-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; font-size: 13px; color: var(--ink2); }
.q-scale input[type=range] { width: 100%; accent-color: var(--accent); height: 28px; }
.scale-send { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.scale-send output { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.btn { display: inline-block; border: 0; background: var(--hub); color: var(--bg); border-radius: 999px; padding: 7px 16px; font-size: 14px; font-weight: 650; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn:disabled { opacity: .5; }
.only-presenter { display: none; }
body.presenter .only-presenter { display: inline-block; margin-top: 10px; }
.only-presenter-block { display: none; }
body.presenter .only-presenter-block { display: block; }
.only-presenter-inline { display: none !important; }
body.presenter .only-presenter-inline { display: inline-block !important; }
.slide figcaption a.src { display: inline-block; margin-top: 6px; font-size: 12px; color: #fff; border: 1px solid rgba(255,255,255,.6); border-radius: 999px; padding: 1px 10px; text-decoration: none; }
.slide figcaption a.src:hover { background: rgba(255,255,255,.18); }
.item-imgs a { display: block; }
.item-imgs a.pres-link { pointer-events: none; }
body.presenter .item-imgs a.pres-link { pointer-events: auto; }
.deck { display: flex; flex-direction: column; border: 1px dashed var(--accent); border-radius: 12px; padding: 8px 12px; margin-bottom: 6px; text-decoration: none; }
.deck span { font-size: 13px; color: var(--ink2); }

.q-res { margin-top: 12px; }
.res-n { margin: 6px 0 0; font-size: 13px; color: var(--ink2); }
.bar-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(60px, 1fr) auto; gap: 10px; align-items: center; font-size: 14px; padding: 3px 0; }
.bar-lbl { word-break: keep-all; line-height: 1.35; }
.bar { height: 14px; background: var(--bg2); border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--hub2); border-radius: 999px; transition: width .5s ease; }
.bar-row.is-mine .bar i { background: var(--ok); }
.bar-row.is-answer .bar i { background: var(--accent); }
.bar-num { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.bar-num small { color: var(--ink2); font-weight: 500; }
.tag-mine { font-size: 11px; color: var(--ok); font-weight: 700; }
.tag-ans { font-size: 11px; color: #fff; background: var(--accent); padding: 0 6px; border-radius: 6px; }
.hist { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; height: 130px; align-items: end; }
.hcol { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.hcol i { display: block; width: 100%; background: var(--hub2); border-radius: 6px 6px 0 0; min-height: 2px; transition: height .5s ease; }
.hcol.is-mine i { background: var(--ok); }
.hnum { font-size: 12px; font-weight: 700; }
.hlbl { font-size: 11px; color: var(--ink2); margin-top: 3px; }

.item { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 8px; background: var(--card); overflow: hidden; }
.item.is-open { border-color: var(--ink2); }
.item-h { width: 100%; display: flex; gap: 10px; align-items: center; background: none; border: 0; padding: 10px 12px; text-align: left; }
.item-h .t { flex: 1; font-weight: 650; font-size: 15px; line-height: 1.4; word-break: keep-all; }
.chev { width: 9px; height: 9px; border-right: 2px solid var(--ink2); border-bottom: 2px solid var(--ink2); transform: rotate(45deg); transition: transform .2s; flex: none; }
.item.is-open .chev { transform: rotate(-135deg); }
.item-b { padding: 0 14px 14px; }
.item-b p { margin: 0 0 8px; font-size: 15px; line-height: 1.7; word-break: keep-all; }
.item-b .why b, .item-b .next b { display: inline-block; font-size: 12px; margin-right: 8px; padding: 0 8px; border-radius: 6px; vertical-align: 1px; }
.item-b .why b { background: var(--hub); color: var(--bg); }
.item-b .next b { background: var(--accent); color: #fff; }
.item-b .credit { font-size: 13px; color: var(--ink2); }
.item-a { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.embed iframe, .embed video { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; margin-top: 10px; background: #000; display: block; }

.fact { padding: 10px 0; border-top: 1px dashed var(--line); }
.fact p { margin: 0; font-size: 15px; line-height: 1.7; word-break: keep-all; }
.fact .src { font-size: 12.5px; color: var(--ink2); margin-top: 3px; }
.facts-b { margin-top: 10px; }

.p-join { display: flex; gap: 16px; align-items: center; }
.p-join .qr { width: 132px; flex: none; background: #fff; border-radius: 12px; padding: 6px; }
.p-join .qr svg { width: 100%; height: auto; display: block; }
.join-t { margin: 0; font-weight: 700; }
.join-u { margin: 2px 0 0; font-size: 13px; color: var(--ink2); word-break: break-all; }
.join-n { margin: 6px 0 0; font-size: 13px; color: var(--ink2); }
.join-n b { color: var(--ok); }
.chip small { opacity: .8; font-weight: 600; margin-left: 2px; }
body.at-hub .p-join .qr { width: 112px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 0; background: var(--c); color: var(--on, #fff); border-radius: 999px; padding: 4px 12px; font-size: 13.5px; font-weight: 650; }
/* 한눈에 보기 */
.ov-kinds { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; }
.ov-kinds li { display: flex; flex-direction: column; align-items: center; padding: 7px 2px 6px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.ov-kinds b { font-size: 19px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--ink); }
.ov-kinds span { font-size: 12px; color: var(--ink2); white-space: nowrap; }
.ov-band { display: flex; gap: 2px; height: 12px; margin: 0 0 10px; border-radius: 999px; overflow: hidden; }
.ov-seg { border: 0; padding: 0; min-width: 3px; background: var(--c); cursor: pointer; }
.ov-seg:hover { filter: brightness(1.15); }
.ov-rows { display: flex; flex-direction: column; gap: 2px; }
.ov-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) clamp(48px, 24%, 150px) 26px; gap: 9px; align-items: center; width: 100%; padding: 6px 6px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.ov-row:hover, .ov-row:focus-visible { background: color-mix(in srgb, var(--c) 12%, var(--card)); }
.ov-no { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: var(--on, #fff); font-size: 12px; font-weight: 800; }
.ov-tx { min-width: 0; display: flex; flex-direction: column; }
.ov-tx b { font-size: 14px; line-height: 1.3; word-break: keep-all; }
.ov-tx small { font-size: 12px; color: var(--ink2); line-height: 1.35; word-break: keep-all; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ov-bar { height: 10px; border-radius: 999px; background: color-mix(in srgb, var(--c) 14%, var(--bg2)); overflow: hidden; }
.ov-bar i { display: block; height: 100%; border-radius: 999px; background: var(--c); transform-origin: left; animation: ovgrow .9s cubic-bezier(.22, .8, .2, 1) both; }
@keyframes ovgrow { from { transform: scaleX(0); } }
.ov-n { font-size: 14px; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.ov-cap { margin: 6px 0 0; font-size: 12.5px; color: var(--ink2); }
body.calm .ov-bar i { animation: none; }
body.big .ov-tx b { font-size: 16px; } body.big .ov-tx small { font-size: 13.5px; }

.wall-p { margin: 0 0 8px; font-size: 15px; }
.wall-f { display: flex; gap: 8px; align-items: flex-end; }
.wall-f textarea { flex: 1; font: inherit; font-size: 15px; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; background: var(--bg); color: var(--ink); resize: vertical; }
.wall-l { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.wall-l li { background: var(--bg); border-radius: 12px; padding: 8px 12px; position: relative; }
.wall-l li.is-mine { outline: 1.5px solid color-mix(in srgb, var(--ok) 55%, transparent); }
.wall-l li p { margin: 0; font-size: 15px; word-break: keep-all; line-height: 1.55; padding-right: 50px; }
.wall-l li span { font-size: 12px; color: var(--ink2); }
.wall-l li.empty { color: var(--ink2); font-size: 14px; background: none; padding-left: 0; }
.hide-c { position: absolute; right: 8px; top: 8px; font-size: 12px; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 0 8px; }

/* 사진 슬라이드 */
.p-body section.p-show { padding: 12px 0 10px; border-bottom: 1px solid var(--line); }
.show-frame { position: relative; overflow: hidden; border-radius: 14px; background: #0f1320; }
.show-track { display: flex; transition: transform .85s cubic-bezier(.22, .8, .2, 1); }
.slide { flex: 0 0 100%; margin: 0; position: relative; }
.slide[data-i] { cursor: pointer; }
.slide-ph { aspect-ratio: 16 / 9; background: radial-gradient(circle at 50% 40%, #2a3350, #0f1320); display: grid; place-items: center; overflow: hidden; }
.slide-ph img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.slide-ph img.tall { object-fit: contain; object-position: center; }
/* 제목은 사진 아래 띠에: 슬라이드 속 글자를 덮지 않게 */
.slide figcaption { min-height: 68px; padding: 9px 14px 10px; background: #0f1320; color: #fff; }
.slide figcaption b { display: block; font-size: 15px; line-height: 1.35; word-break: keep-all; }
.slide figcaption span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12.5px; opacity: .88; line-height: 1.45; margin-top: 2px; word-break: keep-all; }
.show-btn { position: absolute; top: calc((100% - 68px) / 2 - 18px); width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); color: #111; font-size: 22px; line-height: 1; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.show-btn.prev { left: 8px; } .show-btn.next { right: 8px; }
.show-count { position: absolute; right: 10px; top: 8px; font-size: 12px; color: #fff; background: rgba(0,0,0,.45); padding: 1px 8px; border-radius: 999px; }
.slide-ph { cursor: pointer; }
.show-full { position: absolute; left: 10px; top: 8px; border: 0; border-radius: 999px; padding: 3px 12px; background: rgba(0,0,0,.55); color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; }
.show-full:hover { background: rgba(0,0,0,.75); }
.slide figcaption a.src + a.src { margin-left: 4px; }
.show-dots { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; margin-top: 8px; }
.show-dots button { width: 7px; height: 7px; border-radius: 50%; border: 0; padding: 0; background: var(--line); }
.show-dots button.on { background: var(--accent); width: 18px; border-radius: 999px; }
.item-th { width: 64px; height: 36px; border-radius: 6px; object-fit: cover; object-position: top center; flex: none; background: var(--bg2); }
.item-th.none { display: block; }
.item-tt { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.item-imgs { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 6px; margin-bottom: 10px; }
.item-imgs img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top center; border-radius: 8px; border: 1px solid var(--line); }

/* 휴대폰 목록 */
#list { display: none; }

/* 대화상자 */
dialog { border: 0; border-radius: 20px; padding: 24px; background: var(--card); color: var(--ink); box-shadow: var(--shadow); max-width: min(92vw, 560px); }
dialog::backdrop { background: rgba(10, 12, 18, .55); }
.qr-big { width: min(64vh, 80vw, 440px); margin: 0 auto; background: #fff; padding: 8px; border-radius: 12px; }
.qr-big svg { width: 100%; height: auto; display: block; }
.qr-url { text-align: center; font-size: 20px; font-weight: 800; margin: 12px 0 0; word-break: break-all; }
dialog .row { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; }
dialog input[type=password] { font: inherit; font-size: 18px; width: 100%; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
dialog .err { color: var(--warn); font-size: 14px; min-height: 1.4em; margin: 6px 0 0; }
dialog h2 { margin: 0 0 10px; font-size: 20px; }
#start-dlg { width: min(94vw, 520px); }
#start-dlg[open] { animation: pop .5s cubic-bezier(.22, .8, .2, 1); }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
.start-k { margin: 0; font-size: 13px; color: var(--ink2); }
.start-k b { color: var(--ink); }
#start-dlg h2 { font-size: 24px; margin: 2px 0 6px; letter-spacing: -.02em; }
#start-dlg fieldset { border: 0; padding: 0; margin: 14px 0 0; min-width: 0; }
#start-dlg legend { font-size: 13px; font-weight: 700; color: var(--ink2); padding: 0; margin-bottom: 6px; }
.pick { display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 12px; margin-bottom: 6px; cursor: pointer; background: var(--bg); }
.pick input { margin-top: 5px; accent-color: var(--hub2); }
.pick b { display: block; font-size: 16px; }
.pick small { display: block; font-size: 13.5px; color: var(--ink2); line-height: 1.45; word-break: keep-all; }
.pick:has(input:checked) { border-color: var(--hub2); background: color-mix(in srgb, var(--hub2) 10%, var(--card)); }
.start-row { display: grid; grid-template-columns: repeat(2, auto); justify-content: space-between; gap: 4px 24px; }
.seg { display: inline-block; cursor: pointer; position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-block; border: 1.5px solid var(--line); border-radius: 999px; padding: 5px 14px; font-size: 14.5px; background: var(--bg); }
.seg input:checked + span { border-color: var(--hub2); background: var(--hub2); color: #fff; font-weight: 700; }
.seg input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
#start-dlg .row { margin-top: 18px; }
#start-dlg .start-go { font-size: 16px; padding: 9px 24px; }

/* 글자 크게 */
body.big .p-story p { font-size: 18.5px; }
body.big .p-future p, body.big .item-b p, body.big .fact p, body.big .wall-l li p { font-size: 17px; }
body.big .qcard h4 { font-size: 20.5px; }
body.big .opt { font-size: 17.5px; padding: 11px 14px; }
body.big .item-h .t { font-size: 16.5px; }
body.big .bar-row { font-size: 15.5px; }
body.big .card-t { font-size: 19px; }

#toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); background: var(--hub); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-size: 14.5px; opacity: 0; transition: .3s; z-index: 50; pointer-events: none; max-width: 92vw; text-align: center; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }

/* 자료 받기: 머리줄 단추, 지도 위 단추, 칸 안 목록, 전체 목록 창 */
.tbtn.tdl { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.tbtn.tdl:hover { filter: brightness(1.08); border-color: var(--accent); }
.opening .op-b + .op-b { margin-left: 6px; }
.opening .op-b-dl { background: var(--accent); color: #fff; }
.opening .op-b-dl:hover { filter: brightness(1.08); }
.btn.dl { background: var(--accent); color: #fff; }
.p-dl ul { list-style: none; margin: 0; padding: 0; }
.p-dl .dl-p { margin: 0 0 10px; font-size: 14.5px; color: var(--ink2); line-height: 1.6; }
.dl-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 6px; margin-bottom: 10px !important; }
.dl-sum button { width: 100%; display: flex; flex-direction: column; align-items: center; padding: 8px 4px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; }
.dl-sum button:hover { border-color: var(--accent); }
.dl-sum b { font-size: 20px; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; line-height: 1.2; }
.dl-sum span { font-size: 12px; color: var(--ink2); word-break: keep-all; text-align: center; }
.p-dl.is-hub { margin: 4px 0 6px; padding: 14px; border: 1.5px solid color-mix(in srgb, var(--accent) 40%, var(--line)); border-radius: 16px; background: color-mix(in srgb, var(--accent) 5%, var(--card)); }
.p-dl.is-hub h3 { color: var(--accent); }
.dl-rows { display: grid; gap: 6px; margin-bottom: 10px !important; }
.dl-rows a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); text-decoration: none; }
.dl-rows a:hover { border-color: var(--accent); }
.dl-rows .dl-tx { flex: 1; min-width: 0; }
.dl-rows b { display: block; font-size: 14.5px; line-height: 1.4; word-break: keep-all; }
.dl-rows small { display: block; font-size: 12px; color: var(--ink2); }
.dl-go { flex: none; font-size: 13px; font-weight: 700; color: var(--accent); white-space: nowrap; }
#dl-dlg { width: min(96vw, 1180px); max-width: none; height: min(92vh, 940px); padding: 0; display: none; flex-direction: column; overflow: hidden; }
#dl-dlg[open] { display: flex; }
.dl-head { display: flex; align-items: flex-start; gap: 12px; padding: 16px 22px 10px; border-bottom: 1px solid var(--line); }
.dl-head > div { flex: 1; min-width: 0; }
.dl-k { margin: 0; font-size: 12.5px; font-weight: 800; color: var(--accent); }
#dl-dlg h2 { margin: 2px 0 4px; font-size: 22px; letter-spacing: -.02em; }
.dl-note { margin: 0; line-height: 1.55; }
/* 왼쪽 주제, 오른쪽 찾기·목록 */
.dl-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 228px 1fr; }
.dl-topics { overflow-y: auto; overscroll-behavior: contain; padding: 10px 10px 14px; border-right: 1px solid var(--line); background: var(--bg); display: flex; flex-direction: column; gap: 2px; }
.dl-topics button { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; border: 0; background: transparent; color: var(--ink); border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 14.5px; font-weight: 650; cursor: pointer; word-break: keep-all; line-height: 1.35; }
.dl-topics button small { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--ink2); font-variant-numeric: tabular-nums; }
.dl-topics button:hover { background: var(--card); }
.dl-topics button[aria-pressed="true"] { background: var(--hub); color: var(--bg); }
.dl-topics button[aria-pressed="true"] small { color: inherit; opacity: .85; }
.dl-topics button.none { opacity: .45; }
.dl-topics button[data-tab="all"] { margin-bottom: 6px; border: 1px solid var(--line); }
.dl-main { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.dl-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 22px; border-bottom: 1px solid var(--line); }
.dl-q { font: inherit; font-size: 15px; flex: 1 1 280px; min-width: 0; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); }
.dl-q:focus { outline: none; border-color: var(--hub2); }
.dl-count { font-size: 13px; font-weight: 700; color: var(--ink2); white-space: nowrap; }
.dl-kinds { display: flex; flex-wrap: wrap; gap: 5px; flex-basis: 100%; }
.dl-kinds button { border: 1px solid var(--line); background: var(--card); color: var(--ink2); border-radius: 999px; padding: 3px 11px; font: inherit; font-size: 12.5px; font-weight: 650; cursor: pointer; }
.dl-kinds button[aria-pressed="true"] { border-color: var(--hub2); color: var(--hub2); background: color-mix(in srgb, var(--hub2) 10%, var(--card)); }
.dl-list { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 22px 16px; }
.dl-g { padding-top: 10px; }
.dl-g h3 { position: sticky; top: 0; z-index: 1; margin: 0; padding: 8px 0 4px; font-size: 16px; background: var(--card); color: var(--ink); }
.dl-g h3 small { margin-left: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink2); }
.dl-gs { margin: 0 0 4px; font-size: 13px; color: var(--ink2); }
.dl-card { display: flex; align-items: flex-start; gap: 14px; padding: 12px 14px; margin-top: 8px; border: 1px solid var(--line); border-left: 6px solid var(--c); border-radius: 12px; background: var(--card); }
.dl-card .dl-tx { flex: 1; min-width: 0; }
.dl-kind { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 0 0 3px; }
.dk { font-size: 11.5px; font-weight: 800; padding: 1px 8px; border-radius: 6px; background: var(--bg2); color: var(--ink2); }
.dk-class { background: color-mix(in srgb, var(--ok) 16%, var(--card)); color: color-mix(in srgb, var(--ok) 80%, var(--ink)); }
.dk-lecture { background: color-mix(in srgb, var(--accent) 13%, var(--card)); color: color-mix(in srgb, var(--accent) 80%, var(--ink)); }
.dk-training, .dk-script, .dk-case { background: color-mix(in srgb, var(--hub2) 15%, var(--card)); color: color-mix(in srgb, var(--hub2) 85%, var(--ink)); }
.dk-web { background: color-mix(in srgb, var(--warn) 14%, var(--card)); color: color-mix(in srgb, var(--warn) 85%, var(--ink)); }
.dl-tchip { border: 1px dashed var(--line); background: transparent; color: var(--ink2); border-radius: 6px; padding: 0 7px; font: inherit; font-size: 11.5px; cursor: pointer; }
.dl-tchip:hover { border-color: var(--hub2); color: var(--hub2); }
.dl-card h4 { margin: 0; font-size: 16px; line-height: 1.4; word-break: keep-all; }
.dl-meta { margin: 2px 0 0; font-size: 12.5px; color: var(--ink2); }
.dl-d { margin: 5px 0 0; font-size: 14px; line-height: 1.6; color: var(--ink); word-break: keep-all; }
.dl-card mark, .sx mark { background: color-mix(in srgb, #f4b400 45%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.dl-a { flex: none; display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.dl-a .btn { text-align: center; white-space: nowrap; }
.dl-a .btn:not(.ghost) { background: var(--accent); color: #fff; }
.dl-empty { margin: 0; padding: 16px 22px; color: var(--ink2); }
.dl-foot { margin: 0; padding: 10px 22px 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink2); line-height: 1.55; }
.dl-foot a { color: var(--accent); font-weight: 700; white-space: nowrap; }
@media (max-width: 1100px) and (min-width: 761px) { .dl-body { grid-template-columns: 190px 1fr; } .dl-topics button { font-size: 13.5px; padding: 7px 8px; } }
@media (max-height: 640px) and (min-width: 761px) { .dl-head { padding-top: 10px; } .dl-note { display: none; } #dl-dlg h2 { font-size: 19px; } }
body.big .dl-card h4 { font-size: 18px; } body.big .dl-d { font-size: 15.5px; }

/* 휴대폰 */
@media (max-width: 760px), (max-height: 500px) and (max-width: 959px) and (pointer: coarse) {
  .dlcard { display: block; text-align: left; border: 1.5px solid color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius: 18px; padding: 13px 16px 12px; background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
  .dlcard span { display: block; word-break: keep-all; }
  .dlcard .dl-k { font-size: 12px; }
  .dlcard .dl-h { font-size: 17px; font-weight: 800; line-height: 1.4; margin-top: 3px; }
  .dlcard .dl-s { font-size: 13px; color: var(--ink2); margin-top: 3px; }
  .dlcard .op-more { margin-top: 6px; font-size: 13.5px; font-weight: 700; color: var(--accent); }
  .p-body .p-dl { order: 1; }
  #dl-dlg { width: 100vw; height: 100dvh; max-height: none; border-radius: 0; }
  .dl-head, .dl-tools, .dl-list, .dl-foot { padding-left: 16px; padding-right: 16px; }
  .dl-note { display: none; }
  .dl-body { display: flex; flex-direction: column; }
  .dl-topics { flex: none; flex-direction: row; overflow-x: auto; overflow-y: hidden; padding: 8px 12px; border-right: 0; border-bottom: 1px solid var(--line); gap: 6px; scrollbar-width: none; }
  .dl-topics button { width: auto; flex: none; white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 13.5px; }
  .dl-topics button[data-tab="all"] { margin-bottom: 0; }
  .dl-main { flex: 1; }
  .dl-card { flex-direction: column; gap: 8px; }
  .dl-a { flex-direction: row; flex-wrap: wrap; }
  body { overflow: auto; }
  .top { height: auto; flex-wrap: wrap; padding: 10px 16px; gap: 6px 10px; position: sticky; top: 0; }
  .brand h1 { font-size: 17px; }
  .brand .by { display: none; }
  .tools { margin-left: auto; }
  #btn-theme, #btn-qr, #btn-sync { display: none; }
  .stage { display: block; height: auto; }
  #map { display: none; }
  #list { display: grid; gap: 10px; padding: 14px 16px 96px; }
  .card { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; gap: 0 12px; align-items: center; text-align: left; border: 0; border-radius: 16px; padding: 12px 14px; background: var(--card); box-shadow: var(--shadow); border-left: 8px solid var(--c); }
  .card-no { grid-row: 1 / 3; width: 38px; height: 38px; border-radius: 50%; background: var(--c); color: var(--on, #fff); display: grid; place-items: center; font-weight: 800; font-size: 13px; }
  .card-t { font-weight: 800; font-size: 17px; }
  .card-s { grid-column: 2; font-size: 13px; color: var(--ink2); }
  .card-q { grid-row: 1 / 3; grid-column: 3; font-size: 12px; color: var(--ink2); }
  .card-img { grid-row: 1 / 4; grid-column: 3; width: 76px; height: 50px; object-fit: cover; object-position: top center; border-radius: 8px; }
  .card { grid-template-rows: auto auto auto; }
  .card-no { grid-row: 1 / 4; }
  .card-d { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 3px; margin-top: 6px; }
  .card-d i { display: block; width: 6px; height: 6px; border-radius: 50%; background: color-mix(in srgb, var(--c) 55%, var(--card)); }
  .card-d i.f { width: 9px; height: 9px; background: var(--c); }
  .card-d em { font-style: normal; font-size: 12px; color: var(--ink2); white-space: nowrap; margin-left: 5px; }
  .card-d.q { font-size: 12px; color: var(--ink2); }
  .opcard { display: block; text-align: left; border: 0; border-radius: 18px; padding: 14px 16px 12px; background: var(--hub); color: var(--bg); box-shadow: var(--shadow); }
  .opcard span { display: block; word-break: keep-all; }
  .opcard .op-k { font-size: 12px; font-weight: 800; color: color-mix(in srgb, var(--accent) 55%, var(--bg)); }
  .opcard .op-h { font-size: 19px; font-weight: 800; line-height: 1.4; margin-top: 4px; }
  .opcard .op-s { font-size: 14px; opacity: .85; margin-top: 4px; line-height: 1.5; }
  .opcard .op-more { margin-top: 8px; font-size: 13.5px; font-weight: 700; }
  .ftlist { display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: auto auto auto auto; gap: 0 12px; align-items: start; text-align: left; border: 1.5px solid color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius: 18px; padding: 12px 14px; background: var(--card); color: var(--ink); box-shadow: var(--shadow); position: relative; }
  .ftlist img { grid-row: 1 / 5; width: 96px; height: 96px; object-fit: cover; border-radius: 12px; }
  .ftlist .ft-badge { position: absolute; left: 18px; top: 16px; }
  .ftlist span:not(.ft-badge) { display: block; word-break: keep-all; }
  .ftlist .ft-h { font-size: 18px; }
  .ftlist .op-more { margin-top: 6px; font-size: 13.5px; font-weight: 700; color: var(--accent); }
  .p-body .p-open { order: 2; }
  .media { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #vid-dlg { width: 100vw; padding: 8px; }
  .mmap { display: block; background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 8px 8px 10px; }
  .mmap svg { display: block; width: 100%; max-width: 420px; margin: 0 auto; height: auto; overflow: visible; }
  .mm-spokes line { stroke-width: .35; stroke-dasharray: .6 1.6; opacity: .45; }
  .mm-twigs line { stroke-width: .18; opacity: .45; }
  .mm-dots circle { animation: sprout .9s cubic-bezier(.22, .8, .2, 1) both; transform-box: fill-box; transform-origin: center; }
  .mm-n { cursor: pointer; outline: none; animation: sprout .8s cubic-bezier(.22, .8, .2, 1) both; transform-box: fill-box; transform-origin: center; }
  .mm-n text { font-size: 3.6px; font-weight: 800; text-anchor: middle; pointer-events: none; }
  .mm-n:active > circle:nth-of-type(2), .mm-n:focus-visible > circle:nth-of-type(2) { stroke: var(--ink); stroke-width: .6; }
  .mm-hit { fill: transparent; }
  .mm-hubc { fill: var(--hub); }
  .mm-hub text { fill: var(--bg); text-anchor: middle; font-weight: 800; }
  .mm-h1 { font-size: 3.3px; }
  .mm-h2 { font-size: 2.6px; font-weight: 600 !important; opacity: .85; }
  .mm-cap { margin: 4px 0 0; text-align: center; font-size: 12.5px; color: var(--ink2); }
  @keyframes sprout { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: none; } }
  body.calm .mm-dots circle, body.calm .mm-n { animation: none; }
  .show-frame { touch-action: pan-y; }
  .item-h { min-height: 52px; }
  .p-close, .p-nav button { padding: 6px 14px; font-size: 14px; }
  #tip { display: none; }
  body.panel-open #panel { display: block; position: fixed; inset: 0; z-index: 30; border: 0; }
  .p-head { padding: 12px 16px 14px; }
  .p-head h2 { font-size: 22px; }
  .p-body { padding: 4px 16px 110px; }
  .p-body .p-q { order: 1; } .p-body .p-show { order: 2; } .p-body .p-wall { order: 3; } .p-body .p-story { order: 3; } .p-body .p-join { order: 4; display: none; }
  .p-body .p-areas { order: 5; } .p-body .p-time { order: 6; } .p-body .p-future { order: 7; } .p-body .p-items { order: 8; } .p-body .p-facts { order: 9; }
  .bar-row { grid-template-columns: minmax(0, 1.4fr) minmax(40px, .8fr) auto; font-size: 13.5px; }
  .slide figcaption span { -webkit-line-clamp: 1; }
  .slide figcaption { padding: 8px 12px 9px; min-height: 0; }
}
@media (max-height: 500px) and (max-width: 959px) and (pointer: coarse) { .top { position: static; } #list { grid-template-columns: repeat(2, minmax(0, 1fr)); } #list > .findcard, #list > .space, #list > .topic-menu, #list > .list-credit { grid-column: 1 / -1; } }
/* 세운 태블릿: 지도 위, 칸 아래 */
@media (min-width: 761px) and (max-width: 1100px) and (orientation: portrait) {
  .stage, body.panel-open .stage, body.panel-open.at-hub .stage { grid-template-columns: 1fr; grid-template-rows: 1fr 0; transition: grid-template-rows .9s cubic-bezier(.22, .8, .2, 1); }
  body.panel-open .stage, body.panel-open.at-hub .stage { grid-template-rows: 52% 48%; }
  #panel { border-left: 0; border-top: 1px solid var(--line); }
}
/* 보기 설정 「움직임 줄이기」 */
body.calm .sat { transition-duration: .2s; }
body.calm .hub.is-collapsed .hub-hint, body.calm .hub::before, body.calm .area.is-selected .orb::before, body.calm #links .spoke, body.calm #links .clink, body.calm .p-body > section, body.calm .p-head h2, body.calm .p-head .p-sub, body.calm .p-head .p-kicker, body.calm #start-dlg[open] { animation: none; }
body.calm .stage, body.calm .show-track { transition: none; }


/* ---------- 찾기 · 색인 · 앨범 (2026-10-23) ---------- */
.tbtn svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.tbtn.tfind { border-color: var(--hub2); color: var(--hub2); font-weight: 700; }
.tbtn.talbum { font-weight: 700; }
.opening .op-b-find { border-color: var(--hub2); color: var(--hub2); }
#find-dlg { width: min(96vw, 980px); max-width: none; height: min(90vh, 900px); padding: 0; display: none; flex-direction: column; overflow: hidden; }
#find-dlg[open] { display: flex; }
.fx-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px 10px; border-bottom: 1px solid var(--line); }
.fx-ic { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--hub2); stroke-width: 2.4; stroke-linecap: round; }
.fx-q { flex: 1; min-width: 0; font: inherit; font-size: 18px; padding: 9px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); }
.fx-q:focus { outline: none; border-color: var(--hub2); }
.fx-types { display: flex; gap: 6px; padding: 8px 18px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.fx-types button { flex: none; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 4px 12px; font: inherit; font-size: 13.5px; font-weight: 650; cursor: pointer; white-space: nowrap; }
.fx-types button small { margin-left: 5px; font-size: 12px; color: var(--ink2); font-variant-numeric: tabular-nums; }
.fx-types button[aria-pressed="true"] { background: var(--hub); border-color: var(--hub); color: var(--bg); }
.fx-types button[aria-pressed="true"] small { color: inherit; opacity: .85; }
.fx-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 4px 18px 18px; }
.fx-hint { margin: 12px 0 6px; font-size: 14px; color: var(--ink2); line-height: 1.6; word-break: keep-all; }
.fx-jump { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; gap: 2px; padding: 6px 0; background: var(--card); border-bottom: 1px solid var(--line); }
.fx-jump a { min-width: 30px; text-align: center; padding: 3px 6px; border-radius: 8px; font-weight: 800; font-size: 14px; color: var(--hub2); text-decoration: none; }
.fx-jump a:hover { background: var(--bg2); }
.fx-ix { display: grid; grid-template-columns: 44px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); scroll-margin-top: 44px; }
.fx-ix h3 { margin: 0; font-size: 22px; color: var(--accent); line-height: 1.2; }
.fx-ix > div { display: flex; flex-wrap: wrap; gap: 6px; }
.fx-w { border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 8px; padding: 4px 10px; font: inherit; font-size: 14px; cursor: pointer; }
.fx-w small { margin-left: 5px; font-size: 11.5px; color: var(--ink2); font-variant-numeric: tabular-nums; }
.fx-w:hover { border-color: var(--hub2); color: var(--hub2); }
.fx-g { padding-top: 12px; }
.fx-g h3 { margin: 0 0 6px; font-size: 15px; }
.fx-g h3 small { margin-left: 6px; font-size: 12.5px; color: var(--ink2); font-weight: 600; }
.fx-more { margin-top: 8px; }
.sx-l { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sx { display: flex; align-items: stretch; gap: 6px; }
.sx-a { flex: 1; min-width: 0; display: flex; align-items: flex-start; gap: 10px; text-align: left; border: 1px solid var(--line); border-left: 5px solid var(--c); background: var(--card); color: var(--ink); border-radius: 10px; padding: 8px 12px; font: inherit; cursor: pointer; text-decoration: none; }
.sx-a:hover { border-color: var(--hub2); }
.sx-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sx-top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.sx-k { font-size: 11.5px; font-weight: 800; padding: 0 7px; border-radius: 6px; background: var(--bg2); color: var(--ink2); }
.sx-w { font-size: 12px; color: var(--ink2); }
.sx-t { font-size: 15px; font-weight: 700; line-height: 1.45; word-break: keep-all; }
.sx-s { font-size: 13px; color: var(--ink2); line-height: 1.55; word-break: keep-all; }
.sx-go { font-style: normal; color: var(--ink2); align-self: center; }
.sx-b { flex: none; align-self: center; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 700; text-decoration: none; background: var(--accent); color: #fff; white-space: nowrap; }
.sx-img { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; flex: none; }
.sx-l.grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.sx-l.grid .sx-a { flex-direction: column; border-left-width: 1px; padding: 6px; }
.sx-l.grid .sx-img { width: 100%; height: auto; aspect-ratio: 4 / 3; }
.sx-l.grid .sx-s, .sx-l.grid .sx-k { display: none; }
.sx-l.grid .sx-t { font-size: 13px; }
.sx-blog .sx-a { border-left-color: #03c75a; }
.linkish { border: 0; background: none; padding: 0; font: inherit; color: var(--hub2); font-weight: 700; text-decoration: underline; cursor: pointer; }
/* 들어가며 칸: 찾기, 앨범 */
.p-find .pf-f { display: flex; gap: 6px; }
.p-find .pf-f input { flex: 1; min-width: 0; font: inherit; font-size: 15px; padding: 8px 12px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); }
.p-find .pf-s { margin: 8px 0 0; font-size: 13.5px; color: var(--ink2); line-height: 1.6; word-break: keep-all; }
.p-find .dl-rows { margin-top: 10px !important; }
.pa-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }
.pa-g { position: relative; border: 0; padding: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 1; background: var(--bg2); cursor: pointer; }
.pa-g img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pa-g span { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 6px 5px; font-size: 11.5px; font-weight: 700; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); text-align: left; line-height: 1.3; word-break: keep-all; }
/* 앨범: 휴대폰 갤러리처럼 정사각 바둑판 */
#album-dlg { width: min(96vw, 1180px); max-width: none; height: min(92vh, 940px); padding: 0; display: none; flex-direction: column; overflow: hidden; }
#album-dlg[open] { display: flex; }
.al-tabs { display: flex; gap: 6px; padding: 8px 22px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.al-tabs button { flex: none; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 4px 12px; font: inherit; font-size: 13.5px; font-weight: 650; cursor: pointer; white-space: nowrap; }
.al-tabs button small { margin-left: 5px; font-size: 12px; color: var(--ink2); }
.al-tabs button[aria-pressed="true"] { background: var(--hub); border-color: var(--hub); color: var(--bg); }
.al-tabs button[aria-pressed="true"] small { color: inherit; opacity: .85; }
.al-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 22px 18px; }
.al-g { padding-top: 12px; }
.al-g h3 { position: sticky; top: 0; z-index: 1; display: flex; align-items: baseline; gap: 8px; margin: 0; padding: 8px 0 4px; font-size: 16px; background: var(--card); }
.al-g h3 small { font-size: 12.5px; color: var(--ink2); font-weight: 600; }
.al-g h3 em { margin-left: auto; font-style: normal; font-size: 12.5px; color: var(--ink2); }
.al-d { margin: 0 0 8px; font-size: 13.5px; color: var(--ink2); line-height: 1.55; word-break: keep-all; }
.al-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 3px; }
.al-ph { border: 0; padding: 0; aspect-ratio: 1; overflow: hidden; background: var(--bg2); cursor: zoom-in; }
.al-ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.al-ph:hover img { transform: scale(1.05); }
.findcard { display: none; }
@media (max-width: 760px), (max-height: 500px) and (max-width: 959px) and (pointer: coarse) {
  #find-dlg, #album-dlg { width: 100vw; height: 100dvh; max-height: none; border-radius: 0; }
  .fx-head, .fx-types, .fx-body, .al-tabs, .al-body { padding-left: 12px; padding-right: 12px; }
  .fx-q { font-size: 16px; }
  .sx { flex-wrap: wrap; }
  .sx-b { margin-left: auto; }
  .al-grid { grid-template-columns: repeat(3, 1fr); gap: 2px; }
  .al-d { display: none; }
  .tbtn.talbum { display: none; }
  .findcard { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 0 12px; align-items: center; text-align: left; border: 1.5px solid var(--hub2); border-radius: 18px; padding: 12px 16px; background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
  .findcard .fc-i { grid-row: 1 / 3; width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--hub2); position: relative; }
  .findcard .fc-i::after { content: ""; position: absolute; width: 10px; height: 3px; background: var(--hub2); right: -8px; bottom: -3px; transform: rotate(45deg); border-radius: 2px; }
  .findcard .fc-t { font-size: 17px; font-weight: 800; }
  .findcard .fc-s { font-size: 13px; color: var(--ink2); }
}

/* 만드는 순서(process)와 자료 묶음(groups) (2026-10-23) */
.p-proc ol { list-style: none; counter-reset: st; margin: 0; padding: 0; display: grid; gap: 6px; }
.p-proc li { counter-increment: st; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.p-proc summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 9px 12px 9px 46px; position: relative; cursor: pointer; list-style: none; }
.p-proc summary::-webkit-details-marker { display: none; }
.p-proc summary::before { content: counter(st); position: absolute; left: 10px; top: 8px; width: 26px; height: 26px; border-radius: 50%; background: var(--c, var(--hub2)); color: var(--on, #fff); display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.p-proc summary b { font-size: 15px; }
.p-proc summary small { font-size: 12px; color: var(--ink2); }
.p-proc details[open] summary { border-bottom: 1px dashed var(--line); }
.p-proc details p { margin: 8px 14px 10px 46px; font-size: 14.5px; line-height: 1.65; word-break: keep-all; }
.p-proc details p.why { color: var(--ink2); }
.p-proc details p.why b { margin-right: 6px; color: var(--accent); }
.p-grp { margin-top: 14px; }
.p-grp:first-of-type { margin-top: 4px; }
.p-grp h4 { margin: 0 0 2px; font-size: 15.5px; padding-left: 10px; border-left: 4px solid var(--c, var(--hub2)); }
.p-grp-i { margin: 0 0 6px 14px; font-size: 13.5px; color: var(--ink2); line-height: 1.55; word-break: keep-all; }
.p-also-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0 0 14px; font-size: 12.5px; color: var(--ink2); }
.p-also { border: 1px dashed var(--line); background: var(--bg); color: var(--ink); border-radius: 999px; padding: 3px 10px; font: inherit; font-size: 13px; cursor: pointer; }
.p-also:hover { border-color: var(--hub2); color: var(--hub2); }

/* 3D 원판: 바닥 동심원과 끌어서 돌리기 (2026-10-23) */
#links .orbit.ring { stroke-dasharray: none; stroke-opacity: .1; stroke-width: 1; }
#map { cursor: grab; }
#map.dragging, #map.dragging * { cursor: grabbing !important; user-select: none; }
body.in-area #map { cursor: default; }

/* 평면 보기 (2026-10-23): 느린 컴퓨터에서 3D 원판 대신 갈래 카드와 작은 지도. 휴대폰 목록 카드 규칙을 컴퓨터 화면에도 쓴다 */
.map-shape { position: absolute; left: 14px; bottom: 12px; z-index: 6; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 5px 14px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; box-shadow: var(--shadow); }
.map-shape:hover { border-color: var(--hub2); color: var(--hub2); }
#map.slow .map-shape { background: #f4b400; border-color: #f4b400; color: #1d1b16; animation: shapePulse 1.4s ease-in-out 4; }
@keyframes shapePulse { 50% { transform: scale(1.08); } }
.flatbar { display: none; }
@media (min-width: 761px) {
  body.flat #map { display: none; }
  body.flat #list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); align-content: start; gap: 12px; padding: 14px 20px 40px; overflow-y: auto; height: 100%; min-width: 0; }
  body.flat .flatbar { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 12px; background: var(--bg2); font-size: 13.5px; color: var(--ink2); }
  body.flat .flatbar .shape-btn { border: 1.5px solid var(--hub2); background: var(--card); color: var(--hub2); border-radius: 999px; padding: 4px 14px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
  body.flat #list .mmap { grid-column: span 2; grid-row: span 3; align-self: start; }
  body.flat #list .mmap svg { max-width: 460px; }
  body.flat .findcard { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 0 12px; align-items: center; text-align: left; border: 1.5px solid var(--hub2); border-radius: 18px; padding: 12px 16px; background: var(--card); color: var(--ink); box-shadow: var(--shadow); cursor: pointer; }
  body.flat .findcard .fc-i { grid-row: 1 / 3; width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--hub2); position: relative; }
  body.flat .findcard .fc-i::after { content: ""; position: absolute; width: 10px; height: 3px; background: var(--hub2); right: -8px; bottom: -3px; transform: rotate(45deg); border-radius: 2px; }
  body.flat .findcard .fc-t { font-size: 17px; font-weight: 800; }
  body.flat .findcard .fc-s { font-size: 13px; color: var(--ink2); }
  body.flat .card, body.flat .opcard, body.flat .dlcard, body.flat .ftlist { cursor: pointer; }
  body.flat .dlcard { display: block; text-align: left; border: 1.5px solid color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius: 18px; padding: 13px 16px 12px; background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
  body.flat .dlcard span { display: block; word-break: keep-all; }
  body.flat .dlcard .dl-k { font-size: 12px; }
  body.flat .dlcard .dl-h { font-size: 17px; font-weight: 800; line-height: 1.4; margin-top: 3px; }
  body.flat .dlcard .dl-s { font-size: 13px; color: var(--ink2); margin-top: 3px; }
  body.flat .dlcard .op-more { margin-top: 6px; font-size: 13.5px; font-weight: 700; color: var(--accent); }
  body.flat .card { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; gap: 0 12px; align-items: center; text-align: left; border: 0; border-radius: 16px; padding: 12px 14px; background: var(--card); box-shadow: var(--shadow); border-left: 8px solid var(--c); }
  body.flat .card-no { grid-row: 1 / 3; width: 38px; height: 38px; border-radius: 50%; background: var(--c); color: var(--on, #fff); display: grid; place-items: center; font-weight: 800; font-size: 13px; }
  body.flat .card-t { font-weight: 800; font-size: 17px; }
  body.flat .card-s { grid-column: 2; font-size: 13px; color: var(--ink2); }
  body.flat .card-q { grid-row: 1 / 3; grid-column: 3; font-size: 12px; color: var(--ink2); }
  body.flat .card-img { grid-row: 1 / 4; grid-column: 3; width: 76px; height: 50px; object-fit: cover; object-position: top center; border-radius: 8px; }
  body.flat .card { grid-template-rows: auto auto auto; }
  body.flat .card-no { grid-row: 1 / 4; }
  body.flat .card-d { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 3px; margin-top: 6px; }
  body.flat .card-d i { display: block; width: 6px; height: 6px; border-radius: 50%; background: color-mix(in srgb, var(--c) 55%, var(--card)); }
  body.flat .card-d i.f { width: 9px; height: 9px; background: var(--c); }
  body.flat .card-d em { font-style: normal; font-size: 12px; color: var(--ink2); white-space: nowrap; margin-left: 5px; }
  body.flat .card-d.q { font-size: 12px; color: var(--ink2); }
  body.flat .opcard { display: block; text-align: left; border: 0; border-radius: 18px; padding: 14px 16px 12px; background: var(--hub); color: var(--bg); box-shadow: var(--shadow); }
  body.flat .opcard span { display: block; word-break: keep-all; }
  body.flat .opcard .op-k { font-size: 12px; font-weight: 800; color: color-mix(in srgb, var(--accent) 55%, var(--bg)); }
  body.flat .opcard .op-h { font-size: 19px; font-weight: 800; line-height: 1.4; margin-top: 4px; }
  body.flat .opcard .op-s { font-size: 14px; opacity: .85; margin-top: 4px; line-height: 1.5; }
  body.flat .opcard .op-more { margin-top: 8px; font-size: 13.5px; font-weight: 700; }
  body.flat .ftlist { display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: auto auto auto auto; gap: 0 12px; align-items: start; text-align: left; border: 1.5px solid color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius: 18px; padding: 12px 14px; background: var(--card); color: var(--ink); box-shadow: var(--shadow); position: relative; }
  body.flat .ftlist img { grid-row: 1 / 5; width: 96px; height: 96px; object-fit: cover; border-radius: 12px; }
  body.flat .ftlist .ft-badge { position: absolute; left: 18px; top: 16px; }
  body.flat .ftlist span:not(.ft-badge) { display: block; word-break: keep-all; }
  body.flat .ftlist .ft-h { font-size: 18px; }
  body.flat .ftlist .op-more { margin-top: 6px; font-size: 13.5px; font-weight: 700; color: var(--accent); }
  body.flat .mmap { display: block; background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 8px 8px 10px; }
  body.flat .mmap svg { display: block; width: 100%; max-width: 420px; margin: 0 auto; height: auto; overflow: visible; }
  body.flat .mm-spokes line { stroke-width: .35; stroke-dasharray: .6 1.6; opacity: .45; }
  body.flat .mm-twigs line { stroke-width: .18; opacity: .45; }
  body.flat .mm-dots circle { animation: sprout .9s cubic-bezier(.22, body.flat .8, body.flat .2, 1) both; transform-box: fill-box; transform-origin: center; }
  body.flat .mm-n { cursor: pointer; outline: none; animation: sprout .8s cubic-bezier(.22, body.flat .8, body.flat .2, 1) both; transform-box: fill-box; transform-origin: center; }
  body.flat .mm-n text { font-size: 3.6px; font-weight: 800; text-anchor: middle; pointer-events: none; }
  body.flat .mm-n:active > circle:nth-of-type(2), body.flat .mm-n:focus-visible > circle:nth-of-type(2) { stroke: var(--ink); stroke-width: .6; }
  body.flat .mm-hit { fill: transparent; }
  body.flat .mm-hubc { fill: var(--hub); }
  body.flat .mm-hub text { fill: var(--bg); text-anchor: middle; font-weight: 800; }
  body.flat .mm-h1 { font-size: 3.3px; }
  body.flat .mm-h2 { font-size: 2.6px; font-weight: 600 !important; opacity: .85; }
  body.flat .mm-cap { margin: 4px 0 0; text-align: center; font-size: 12.5px; color: var(--ink2); }
}

/* 3D 레고학교로 가는 머리줄 단추와 목록 카드 (2026-10-24) */
.tbtn.tschool { font-weight: 700; text-decoration: none; color: inherit; display: inline-flex; align-items: center; }
a.dlcard { text-decoration: none; }
.schoolcard { border-color: color-mix(in srgb, #F2CD37 70%, var(--line)) !important; }
/* 휴대폰에서도 머리줄에 3D 레고학교 단추를 둔다(2026-11-07). 320px 폭에서도 찾기·3D 레고학교·자료실이 한 줄에 든다 */
@media (max-width: 760px), (max-height: 500px) and (max-width: 959px) and (pointer: coarse) {
  .tbtn.tschool { padding: 5px 10px; }
}
/* 내 강의실(lecture.html)로 가는 머리줄 단추 (2026-11-10). 비밀번호로 여는 강의 발표 모음 */
.tbtn.tlecture { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; border-color: #2f4a7a; color: #2f4a7a; }
:root[data-theme="dark"] .tbtn.tlecture { border-color: #b9c7e6; color: #b9c7e6; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tbtn.tlecture { border-color: #b9c7e6; color: #b9c7e6; } }
@media (max-width: 760px), (max-height: 500px) and (max-width: 959px) and (pointer: coarse) {
  .tbtn.tlecture { padding: 5px 10px; }
}
/* 360px보다 좁으면 자료실 단추가 밀려나므로 숨긴다(지도 관리 화면에서도 갈 수 있음) */
@media (max-width: 370px) { .tbtn.tlecture { display: none; } }

.pf-side.old.smooth img { image-rendering: auto; }

/* 지도 안내 카드(2026-10-25): 첫 화면은 지식 지도다. 안내와 특집은 × 로 닫고 작은 단추로 다시 연다 */
.opening.intro { width: fit-content; max-width: 760px; padding: 10px 44px 12px 16px; border-radius: 16px; background: color-mix(in srgb, var(--card) 96%, transparent); border: 1px solid var(--line); box-shadow: var(--shadow); }
.opening.intro .op-h { font-size: clamp(17px, 1.45vw, 24px); text-shadow: none; }
.opening.intro .op-s { text-shadow: none; }
.opening .op-b-lec { background: var(--hub); border-color: var(--hub); color: var(--bg); }
.opening .op-b-lec:hover { filter: brightness(1.15); background: var(--hub); color: var(--bg); }
.opening > .pin-x { position: absolute; right: 8px; top: 8px; }
.pin-x { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink2); font-size: 17px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.pin-x:hover { color: var(--ink); border-color: var(--ink2); }
.restore-chip { position: absolute; top: 12px; z-index: 6; border: 1.5px solid var(--line); background: var(--card); color: var(--ink2); border-radius: 999px; padding: 3px 13px; font-size: 12.5px; font-weight: 700; cursor: pointer; box-shadow: var(--shadow); }
.restore-chip:hover { color: var(--ink); border-color: var(--ink2); }
.restore-chip.left { left: 22px; }
.restore-chip.right { right: 16px; border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); color: var(--accent); }
.opening[hidden], .ftwrap[hidden], .ftcard[hidden], .restore-chip[hidden], #lecnote[hidden] { display: none !important; }
.credit { position: absolute; right: 16px; bottom: 9px; z-index: 5; margin: 0; font-size: 12.5px; font-weight: 700; color: var(--ink2); letter-spacing: -.01em; pointer-events: none; white-space: nowrap; }
.list-credit { display: none; }
#lecnote { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 30; display: flex; gap: 8px; align-items: center; max-width: calc(100vw - 32px); background: var(--hub); color: var(--bg); padding: 6px 8px 6px 16px; border-radius: 999px; box-shadow: var(--shadow); font-size: 14px; font-weight: 600; }
#lecnote span { word-break: keep-all; }
#lecnote .ln-go { background: var(--accent); color: #fff; border: 0; border-radius: 999px; padding: 4px 13px; font-size: 13px; font-weight: 800; cursor: pointer; white-space: nowrap; }
#lecnote .ln-x { background: transparent; color: inherit; border: 0; font-size: 18px; line-height: 1; padding: 0 6px; cursor: pointer; opacity: .8; }
@media (max-width: 760px), (max-height: 500px) and (max-width: 959px) and (pointer: coarse) {
  .list-credit { display: block; grid-column: 1 / -1; text-align: right; margin: 4px 4px 72px; font-size: 12.5px; font-weight: 700; color: var(--ink2); }
  #lecnote { left: 12px; right: 12px; transform: none; max-width: none; bottom: 74px; font-size: 13px; }
}

/* 주요 강의 창(2026-10-25): lectures.js 의 강의를 주제 탭과 표지 카드로 */
#lec-dlg { width: min(96vw, 1180px); max-width: none; height: min(92vh, 940px); padding: 0; display: none; flex-direction: column; overflow: hidden; }
#lec-dlg[open] { display: flex; }
.lec-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 22px; border-bottom: 1px solid var(--line); }
.lec-tabs button { border: 1px solid var(--line); background: var(--bg); color: var(--ink2); border-radius: 999px; padding: 4px 13px; font-size: 13px; font-weight: 700; cursor: pointer; }
.lec-tabs button[aria-pressed="true"] { background: var(--hub); border-color: var(--hub); color: var(--bg); }
.lec-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 22px 26px; }
.lec-grp > h3 { margin: 16px 0 8px; font-size: 16px; letter-spacing: -.02em; }
.lec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 14px; }
.lec { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--card); scroll-margin-top: 12px; }
.lec.hl { outline: 3px solid var(--accent); outline-offset: 2px; }
.lec-ph { position: relative; aspect-ratio: 16 / 9; background: var(--bg2); }
.lec-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lec-n { position: absolute; right: 8px; bottom: 8px; padding: 2px 9px; border-radius: 999px; background: rgba(0, 0, 0, .62); color: #fff; font-size: 12px; font-weight: 700; }
.lec-tx { display: flex; flex-direction: column; gap: 4px; padding: 11px 14px 14px; }
.lec-tx p, .lec-tx h3 { margin: 0; word-break: keep-all; }
.lec-k { font-size: 12px; font-weight: 800; color: var(--accent); }
.lec-h { font-size: 17px; line-height: 1.3; letter-spacing: -.02em; color: var(--ink); }
.lec-w { font-size: 12.5px; color: var(--ink2); }
.lec-s { font-size: 13.5px; line-height: 1.55; color: var(--ink); }
.lec-a { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.lec-a .btn { font-size: 12.5px; padding: 5px 11px; text-decoration: none; }
.lec-a .lec-area { border-color: color-mix(in srgb, var(--c) 60%, var(--line)); color: var(--ink); }
.lec-decks { margin: 6px 0 0; padding: 8px 10px; list-style: none; border-radius: 10px; background: var(--bg); font-size: 12.5px; }
.lec-decks li { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; }
.lec-decks a { color: var(--hub2); font-weight: 700; text-decoration: none; }
.lec-decks small { flex: none; color: var(--ink2); }
@media (max-width: 760px), (max-height: 500px) and (max-width: 959px) and (pointer: coarse) {
  #lec-dlg { width: 100vw; height: 100dvh; max-height: none; border-radius: 0; }
  .lec-tabs { flex-wrap: nowrap; overflow-x: auto; padding: 8px 16px; scrollbar-width: none; }
  .lec-tabs button { flex: none; }
  .lec-body { padding: 4px 16px 24px; }
  .lec-grid { grid-template-columns: 1fr; }
}
/* 창 오른쪽 위 × (보기 설정, 참여 QR, 발표자 비밀번호) */
dialog:has(> .dlg-x) { position: fixed; }
dialog > .dlg-x { position: absolute; right: 12px; top: 12px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink2); font-size: 20px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0 0 2px; z-index: 2; }
dialog > .dlg-x:hover { color: var(--ink); border-color: var(--ink2); }
#start-dlg h2, #pin-dlg h2 { padding-right: 36px; }
/* 강의·연수 갈래 안의 주요 강의 */
.p-lec-l { display: grid; gap: 6px; margin: 0 0 10px; }
.p-lec-i { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px; align-items: center; text-align: left; font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 6px; cursor: pointer; }
.p-lec-i:hover { border-color: var(--ink2); }
.p-lec-i img, .p-lec-i .none { width: 72px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 7px; background: var(--bg2); display: block; }
.p-lec-i b { display: block; font-size: 14.5px; line-height: 1.35; word-break: keep-all; }
.p-lec-i small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ink2); word-break: keep-all; }

/* 2026-10-28: visible resource formats, mobile topics, readable details. */
.rv-map-item{background:#fff;border:1px solid #dae3ed;border-radius:13px;margin:0 0 13px;overflow:hidden}.rv-map-item .item-h{align-items:flex-start;gap:17px;padding:18px}.rv-map-item .item-tt{flex:1;min-width:0}.rv-map-item .t{font-size:17px;line-height:1.55}.rv-map-item.rv-video{aspect-ratio:auto;max-height:none;width:auto}.rv-map-item .rv-thumb.rv-video{width:104px;height:74px}.p-items>h3{font-size:21px;margin-bottom:18px}.p-body{line-height:1.8}.fx-format-label{display:flex;align-items:center;gap:12px;padding:10px 20px;border-bottom:1px solid var(--line);font-size:14px;flex-shrink:0}.fx-format{padding:8px 12px;border:1px solid #b6c8da;border-radius:8px;background:#fff;color:#183b5d;font:inherit}.topic-menu{background:#fff;border:1px solid #d8e1ea;border-radius:18px;padding:20px;margin:12px 0}.topic-menu h2{font-size:21px;margin:0 0 17px}.topic-menu>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.topic-menu button{padding:13px 12px;text-align:left;min-height:72px;border:1px solid #dce4ed;border-left:4px solid var(--topic);border-radius:9px;background:#f8fafc;color:#223950;cursor:pointer}.topic-menu b{display:block;font-size:14px;line-height:1.45;word-break:keep-all}.topic-menu span{display:block;font-size:11px;color:#52687b;margin-top:5px}.map-fold{background:#fff;border-radius:14px;border:1px solid #d8e1ea;margin:12px 0}.map-fold>summary{padding:15px 18px;cursor:pointer;font-size:14px;font-weight:700}.map-fold .mmap{margin:0}.rv-map-item .item-h:hover{background:#f5f8fc}body.dark .rv-map-item{background:#18283b}body.dark .rv-map-item .item-h{color:#eef4fc}body.dark .rv-map-item .rv-kicker,body.dark .rv-map-item .rv-excerpt{color:#b9ccdf}
@media(max-width:760px){.topic-menu>div{grid-template-columns:repeat(2,minmax(0,1fr))}.rv-map-item .item-h{gap:12px;padding:14px}.rv-map-item .t{font-size:16px}.rv-map-item .rv-thumb,.rv-map-item .rv-thumb.rv-video{width:82px;height:64px}.rv-map-item .rv-thumb.rv-document,.rv-map-item .rv-thumb.rv-book{width:54px;height:75px;margin:0 14px}.fx-format-label{padding:10px 14px}}

.dl-resource-cover{display:flex;align-items:center;gap:16px;margin-bottom:16px;font-size:13px;color:var(--muted)}

/* Full-width navigation must not share a grid row with individual cards. */
@media(min-width:761px){
 body{display:flex;flex-direction:column}
 .top{height:auto;min-height:58px;flex-shrink:0;flex-wrap:wrap;padding:10px 16px}
 .tools{flex-wrap:wrap;justify-content:flex-end;min-width:0}
 .stage{flex:1;min-height:0;height:auto}
 body.flat #list{align-items:start;grid-auto-rows:max-content;grid-template-columns:repeat(auto-fit,minmax(min(280px,100%),1fr))}
 body.flat #list>.findcard,body.flat #list>.space,body.flat #list>.topic-menu,body.flat #list>.list-credit{grid-column:1 / -1}
 body.flat #list>.topic-menu,body.flat #list>.map-fold{margin:0;min-width:0}
 body.flat #list>.findcard{min-height:76px;align-content:center;grid-template-rows:auto auto}
 body.flat #list .topic-menu>div{grid-template-columns:repeat(auto-fit,minmax(min(180px,100%),1fr))}
 body.flat #list>.ftlist{align-content:start;grid-template-rows:repeat(4,min-content)}
 body.flat #list>.card{align-content:start;grid-template-rows:repeat(4,min-content);min-width:0}
 body.flat .card-explanation{grid-row:3;grid-column:2 / -1;margin-top:7px}
 body.flat .card-d{grid-row:4;grid-column:2 / -1}
 body.flat .card-img{grid-row:1 / 3;grid-column:3}
 body.flat .card-no{grid-row:1 / 5}
 body.flat #list .map-fold .mmap{grid-row:auto;grid-column:auto;box-shadow:none}
}
.topic-menu,.map-fold{background:var(--card);color:var(--ink);border-color:var(--line)}
.topic-menu button{background:var(--bg);color:var(--ink);border-color:var(--line);border-left-color:var(--topic)}
.topic-menu span{color:var(--ink2)}


/* Browse with real covers and descriptions before opening a resource. */
.topic-menu>div,body.flat #list .topic-menu>div{grid-template-columns:repeat(auto-fit,minmax(min(250px,100%),1fr));gap:16px}
.topic-menu button{display:flex;flex-direction:column;min-width:0;padding:0 16px 16px;overflow:hidden;border-left-width:1px;border-top:4px solid var(--topic)}
.topic-menu button:hover{border-color:var(--topic);box-shadow:0 4px 14px #14263c12}
.topic-menu .topic-cover{display:block;width:calc(100% + 32px);margin:0 -16px 16px;background:var(--bg2)}
.topic-menu .topic-cover .rv-thumb{display:flex;width:100%;height:152px;max-height:none;aspect-ratio:auto;border-radius:0;margin:0;background:var(--bg2)}
.topic-menu .topic-cover img{width:100%;height:100%;object-fit:contain}
.topic-menu .topic-cover .rv-thumb-label{margin:0;font-size:11px;color:#253b51}
.topic-menu .topic-heading{display:flex;width:100%;align-items:center;justify-content:space-between;gap:8px;margin:0}
.topic-menu .topic-heading b{font-size:17px;color:var(--ink)}
.topic-menu .topic-heading>span{white-space:nowrap;margin:0}
.topic-menu .topic-description{font-size:14px;line-height:1.75;margin:12px 0}
.topic-menu .topic-formats{display:flex;flex-wrap:wrap;gap:5px;margin:0 0 12px}
.topic-formats em{font-style:normal;font-size:11px;border:1px solid var(--line);border-radius:5px;padding:2px 7px;background:var(--card)}
.topic-menu .topic-sample{display:block;width:100%;border-top:1px solid var(--line);padding-top:12px;margin-top:auto}
.topic-sample small{display:block;font-size:11px;color:var(--ink2);margin-bottom:6px}
.topic-sample strong{display:block;color:var(--ink);font-size:13px;line-height:1.6;font-weight:650;word-break:keep-all;overflow-wrap:anywhere}
.topic-menu .topic-sample>span{font-size:12px;line-height:1.6}
.topic-menu .topic-open{margin-top:16px;color:var(--hub2);font-weight:700;font-size:12px}
#find-dlg{width:min(96vw,1080px)}
.fx-g{padding-top:20px}.fx-g h3{margin-bottom:10px}.sx-l{gap:12px}
.sx{flex-wrap:wrap;gap:0;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--card)}
.sx-a{flex-basis:100%;border:0;border-left:4px solid var(--c);border-radius:0;padding:16px;gap:18px}
.sx-a:focus-visible,.sx-preview:focus-visible{outline:3px solid var(--hub2);outline-offset:-3px}
.sx-a>.rv-thumb,.sx-a>.rv-thumb.rv-video,.sx-img,.sx-placeholder{flex:none;width:156px;height:110px;max-height:none;aspect-ratio:auto;margin:0;border-radius:8px;object-fit:contain;background:var(--bg2)}
.sx-a>.rv-thumb img{object-fit:contain;width:100%;height:100%}
.sx-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;color:var(--hub2);font-size:19px;font-weight:750}
.sx-placeholder small{font-size:11px;font-weight:400;color:var(--ink2)}
.sx-tx{gap:7px}.sx-t{font-size:17px;line-height:1.6}.sx-s{font-size:14px;line-height:1.8;overflow-wrap:anywhere}
.sx-match{font-size:12px;line-height:1.7;padding:8px 10px;background:var(--bg2);border-radius:5px;color:var(--ink2)}
.sx-open{font-size:12px;color:var(--hub2);font-weight:650;margin-top:4px}
.sx-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;width:100%;border-top:1px solid var(--line);padding:9px 14px;background:var(--bg)}
.sx-preview{font:inherit;font-size:13px;font-weight:700;padding:7px 15px;border:1px solid var(--hub2);border-radius:8px;background:var(--card);color:var(--hub2);cursor:pointer;min-height:36px}
.sx-actions .sx-b{font-size:12px;white-space:normal;text-align:center;border-radius:8px}
.sx-l.grid .sx-s{display:block;font-size:12px;line-height:1.65}.sx-l.grid .sx-a{padding:12px}.sx-l.grid .sx-open{font-size:11px}
@media(max-width:760px){
 #find-dlg{width:100vw}.sx-a{gap:12px;padding:13px;flex-wrap:wrap}
 .sx-a>.rv-thumb,.sx-a>.rv-thumb.rv-video,.sx-img,.sx-placeholder{width:96px;height:76px}
 .sx-tx{flex-basis:calc(100% - 108px)}.sx-t{font-size:16px}.sx-s{font-size:13px;line-height:1.8}
 .sx-top{gap:5px}.sx-k{font-size:10px}.sx-w{font-size:11px}
 .sx-l.grid .sx-tx{flex-basis:auto}.sx-l.grid .sx-img{width:100%;height:110px}
 .topic-menu{padding:16px}.topic-menu>div{grid-template-columns:1fr}.topic-menu .topic-cover .rv-thumb{height:160px}
}

/* 여섯 묶음(2026-10-30, 10-31 드라이브 01~06 번호와 색): 지도 바닥의 묶음 이름과 띠, 아래 분류 띠, 주제 고르기·목록의 묶음 머리글 */
.zone-lab { position: absolute; left: 0; top: 0; pointer-events: none; opacity: 0; text-align: center; white-space: nowrap; padding: 3px 11px 4px; border-radius: 999px; background: color-mix(in srgb, var(--card) 94%, transparent); border: 1.5px solid color-mix(in srgb, var(--zc) 55%, var(--line)); box-shadow: 0 2px 8px #14263c14; color: var(--ink2); line-height: 1.2; will-change: transform; }
.zone-lab b { display: block; font-size: 13px; font-weight: 800; color: var(--ink); }
.zone-lab b em, .zone-key em, .tm-zone em, .card-zone em { font-style: normal; font-weight: 800; color: var(--zc); margin-right: 5px; font-variant-numeric: tabular-nums; }
.zone-lab small { display: block; font-size: 10.5px; }
body.lite .zone-lab { background: var(--card); }
.zarc { stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.zone-key { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 6; display: flex; align-items: center; gap: 2px; padding: 3px 4px 3px 12px; border-radius: 999px; background: color-mix(in srgb, var(--card) 92%, transparent); border: 1px solid var(--line); box-shadow: var(--shadow); white-space: nowrap; }
.zone-key .zk-t { font-size: 12px; font-weight: 800; color: var(--ink2); margin-right: 4px; }
.zone-key button { display: inline-flex; align-items: center; gap: 0; border: 1.5px solid transparent; background: none; color: var(--ink); border-radius: 999px; padding: 3px 10px 3px 8px; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.zone-key button i { width: 9px; height: 9px; border-radius: 50%; background: var(--zc); margin-right: 6px; flex: none; }
.zone-key button em { margin-right: 4px; }
.zone-key button:hover, .zone-key button.is-on { border-color: var(--zc); background: color-mix(in srgb, var(--zc) 10%, transparent); }
.zone-key button[aria-pressed="true"] { background: var(--zc); border-color: var(--zc); color: #fff; }
.zone-key button[aria-pressed="true"] em { color: #fff; }
.zone-key button[aria-pressed="true"] i { background: #fff; }
.zone-key button:focus-visible { outline: 2px solid var(--zc); outline-offset: 1px; }
:root[data-theme="dark"] .zone-key button:not([aria-pressed="true"]) em, :root[data-theme="dark"] .zone-lab b em, :root[data-theme="dark"] .tm-zone em, :root[data-theme="dark"] .card-zone em { filter: brightness(1.7); }
#map.narrow .zone-key .zk-t { display: none; }
#map.narrow .zone-key button { padding: 3px 7px 3px 6px; font-size: 11.5px; }
.topic-menu .tm-zone { grid-column: 1 / -1; margin: 10px 0 -4px; font-size: 16px; font-weight: 800; color: var(--ink); display: flex; align-items: baseline; gap: 8px; border-left: 4px solid var(--zc); padding-left: 9px; }
.topic-menu .tm-zone em { margin-right: -3px; }
.topic-menu .tm-zone small { font-size: 12.5px; font-weight: 500; color: var(--ink2); }
#list > .card-zone { grid-column: 1 / -1; margin: 14px 2px 0; font-size: 15px; font-weight: 800; color: var(--ink); display: flex; align-items: baseline; gap: 8px; border-left: 4px solid var(--zc); padding-left: 9px; }
#list > .card-zone em { margin-right: -3px; }
#list > .card-zone small { font-size: 12.5px; font-weight: 500; color: var(--ink2); }

/* 태양계(2026-10-31): 지도 칸은 밝게·어둡게 설정과 상관없이 밤하늘이다. 가운데 해, 행성마다 제 궤도, 묶음 부채꼴, 망원경과 왕복선 */
#map { --bg: #070b1c; --bg2: #0c1330; --card: #131a33; --ink: #edf1fb; --ink2: #a4aed0; --line: #2a3459; --hub2: #a9bcff;
  --floor1: rgba(120, 150, 255, .1); --floor2: rgba(80, 100, 220, .03); --shadow: 0 8px 26px rgba(0, 0, 0, .5);
  isolation: isolate; color: var(--ink); background: radial-gradient(70% 62% at 50% 58%, #172152 0%, #0c1333 42%, #070a1c 78%, #04060f 100%); }
#map::before { left: 0; top: 0; width: 100%; height: 100%; transform: none; opacity: 1; animation: none; -webkit-mask: none; mask: none;
  background:
    radial-gradient(40% 32% at 16% 24%, rgba(140, 90, 220, .16), transparent 70%),
    radial-gradient(36% 30% at 86% 76%, rgba(50, 140, 220, .13), transparent 70%),
    radial-gradient(1.2px 1.2px at 20% 30%, #fff 50%, transparent 51%) 0 0 / 97px 89px,
    radial-gradient(1px 1px at 70% 60%, #dfe6ff 50%, transparent 51%) 0 0 / 61px 67px,
    radial-gradient(1.6px 1.6px at 40% 80%, #ffe9c4 50%, transparent 51%) 0 0 / 173px 149px,
    radial-gradient(.9px .9px at 85% 15%, #c9d6ff 50%, transparent 51%) 0 0 / 43px 41px; }
#map::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(1.8px 1.8px at 30% 40%, #fff 50%, transparent 51%) 0 0 / 211px 193px, radial-gradient(1.5px 1.5px at 75% 25%, #fff 50%, transparent 51%) 0 0 / 137px 157px;
  animation: twinkle 4.5s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: .2; } to { opacity: .95; } }
body.lite #map::before { display: block; }
body.lite #map::after, body.calm #map::after { animation: none; opacity: .6; }
/* 해 */
.hub { color: #3a1c00; background: radial-gradient(circle at 42% 38%, #fffbe6 0%, #ffe68a 22%, #ffc23d 48%, #ff9a26 72%, #e8641a 100%);
  box-shadow: 0 0 22px 6px rgba(255, 196, 80, .55), 0 0 70px 24px rgba(255, 150, 40, .3), 0 0 150px 60px rgba(255, 120, 30, .13); }
.hub::after { left: 18%; top: 12%; width: 30%; height: 18%; background: radial-gradient(closest-side, rgba(255, 255, 255, .75), rgba(255, 255, 255, 0)); }
.hub::before { inset: -12px; border: 0; background: radial-gradient(closest-side, transparent 74%, rgba(255, 190, 80, .5) 84%, transparent 100%); animation: corona 4.8s ease-in-out infinite; }
@keyframes corona { 0%, 100% { transform: scale(1); opacity: .95; } 50% { transform: scale(1.12); opacity: .5; } }
.hub-t { color: #3a1c00; text-shadow: 0 1px 0 rgba(255, 245, 210, .6); }
.hub-s { color: #6b3400; opacity: 1; font-weight: 800; letter-spacing: .02em; }
.hub-hint, .hub-p { background: rgba(80, 30, 0, .14); color: #3a1c00; }
.hub.is-active { box-shadow: 0 0 22px 6px rgba(255, 196, 80, .55), 0 0 70px 24px rgba(255, 150, 40, .3), 0 0 0 7px var(--accent); }
.hub.as-mini .mini-l { color: #3a1c00; }
body.lite .hub, body.lite .hub.is-active { box-shadow: 0 0 0 6px rgba(255, 170, 60, .35); }
body.calm .hub::before { animation: none; }
/* 행성: 해를 향한 쪽(--lx, --ly)이 밝다. 자료가 많은 갈래는 줄무늬, 가장 큰 갈래는 고리 */
.orb { --planet: radial-gradient(circle at var(--lx, 34%) var(--ly, 30%), color-mix(in srgb, var(--c) 42%, #fff) 0%, var(--c) 34%, color-mix(in srgb, var(--c) 62%, #000) 74%, color-mix(in srgb, var(--c) 28%, #000) 100%);
  background: var(--planet); box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent), 0 0 18px color-mix(in srgb, var(--c) 32%, transparent); }
.orb::after { left: calc(var(--lx, 34%) - 20%); top: calc(var(--ly, 30%) - 12%); width: 34%; height: 20%; transform: none; opacity: .7; }
.orb > span { text-shadow: 0 0 5px color-mix(in srgb, var(--c) 85%, #000); }
.area.giant .orb { background: repeating-linear-gradient(-14deg, rgba(255, 255, 255, .1) 0 7%, rgba(0, 0, 0, .09) 7% 12%, transparent 12% 19%), var(--planet); }
.pring { position: absolute; left: -36%; top: 31%; width: 172%; height: 38%; border-radius: 50%; border: calc(var(--base) * .055) solid rgba(236, 214, 170, .72); border-top-color: rgba(236, 214, 170, .2);
  transform: rotate(-16deg); pointer-events: none; box-shadow: 0 0 6px rgba(255, 230, 180, .25); }
.area:hover .orb, .area.is-hot .orb { box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 42%, transparent), 0 0 30px color-mix(in srgb, var(--c) 62%, transparent); }
.area.is-selected .orb { box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 45%, transparent), 0 0 0 12px color-mix(in srgb, var(--c) 16%, transparent), 0 0 34px color-mix(in srgb, var(--c) 50%, transparent); }
body.lite .orb { box-shadow: none; }
body.lite .orb::after { left: 19%; top: 10%; }
/* 궤도, 소행성 띠, 묶음 부채꼴, 묶음 이름 */
#links .porb { fill: none; stroke: #b9c6f0; stroke-opacity: .17; stroke-width: 1; }
#links .porb.on { stroke: var(--pc); stroke-opacity: .8; stroke-width: 1.6; }
#links .belt { fill: none; stroke: #c9d2f2; stroke-opacity: .3; stroke-width: 2.4; stroke-dasharray: 1 5; stroke-linecap: round; }
#links .orbit { stroke: #b9c6f0; }
#links .spoke { stroke-width: 2; }
.zarc { fill-opacity: .09; stroke-opacity: .32; stroke-width: 1.2; }
.zarc.on { fill-opacity: .2; stroke-opacity: .85; }
.zone-lab { padding: 2px 10px 3px; background: color-mix(in srgb, var(--zc) 26%, #0b1124); border-color: color-mix(in srgb, var(--zc) 75%, #fff); box-shadow: 0 0 12px color-mix(in srgb, var(--zc) 40%, transparent); }
.zone-lab b { font-size: 12.5px; color: #fff; }
#map .zone-lab b em, #map .zone-key button:not([aria-pressed="true"]) em { color: color-mix(in srgb, var(--zc) 50%, #fff); filter: none; }
/* 우주 망원경, 우주 왕복선, 국제우주정거장, 인공위성, 우주인, 별똥별: 누를 수 없는 장식 */
.space-obj { position: absolute; left: 0; top: 0; width: 64px; pointer-events: none; opacity: 0; will-change: transform; transition: opacity .6s; }
.space-obj svg { display: block; width: 100%; height: auto; overflow: visible; }
.sp-shuttle { width: 78px; }
.sp-iss { width: 96px; }
.sp-sat { width: 46px; }
.sp-astro { width: 30px; }
.sp-pan { fill: #2a5fb8; stroke: #9fc2ff; stroke-width: 1; }
.sp-grid { stroke: #9fc2ff; stroke-width: .8; opacity: .6; }
.sp-arm { stroke: #c9d2e6; stroke-width: 2; }
.sp-body { fill: #dfe4ec; stroke: #8b95a8; stroke-width: 1; }
.sp-cap { fill: #b9c0cc; stroke: #8b95a8; stroke-width: 1; }
.sp-lens { fill: #20304f; }
/* 왕복선 */
.sp-hull { fill: #f4f5f7; stroke: #8f98a8; stroke-width: 1; }
.sp-wing { fill: #e3e7ee; stroke: #8f98a8; stroke-width: 1; }
.sp-edge { fill: none; stroke: #2b2f38; stroke-width: 2.4; stroke-linecap: round; }
.sp-bay { fill: none; stroke: #aab2c0; stroke-width: 1; }
.sp-nose { fill: #23272f; }
.sp-win { fill: #2a3550; }
.sp-tail { stroke: #3a3f4a; stroke-width: 2.4; stroke-linecap: round; }
.sp-eng { fill: #6d7584; }
/* ISS */
.sp-arr rect { fill: #c99a3b; stroke: #f2d48a; stroke-width: .8; }
.sp-arrl { stroke: #7a5a1c; stroke-width: .7; opacity: .7; }
.sp-truss { fill: #c9ced8; stroke: #8b95a8; stroke-width: .8; }
.sp-rad { fill: #f4f6fa; stroke: #a7afbd; stroke-width: .8; }
.sp-mod { fill: #e6e9ef; stroke: #8b95a8; stroke-width: 1; }
/* 인공위성 */
.sp-gold { fill: #d9a93f; stroke: #8a6a20; stroke-width: 1; }
.sp-dish { fill: #eef1f6; stroke: #8b95a8; stroke-width: 1.2; }
/* 우주인 */
.sp-suit { fill: #f6f7f9; stroke: #9aa3b2; stroke-width: 1; }
.sp-pack { fill: #c7ccd6; stroke: #9aa3b2; stroke-width: 1; }
.sp-limb { stroke: #eef0f4; stroke-width: 3.6; stroke-linecap: round; }
.sp-visor { fill: #e0a83a; stroke: #7a5a1c; stroke-width: .8; }
.sp-chest { fill: #5b8bd6; }
.sp-fire { fill: #ffb547; transform-box: fill-box; transform-origin: 100% 50%; } /* 불꽃 깜빡임은 2026-11-05에 뺐다(장면마다 다시 그렸다) */
@keyframes fire { from { transform: scaleX(.7); opacity: .7; } to { transform: scaleX(1.2); opacity: 1; } }
.sp-comet { position: absolute; left: -12%; top: 14%; z-index: -1; width: 150px; height: 2px; border-radius: 2px; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(220, 235, 255, .85)); animation: comet 37s linear 6s infinite; }
.sp-comet::after { content: ""; position: absolute; right: -3px; top: -2px; width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px 2px rgba(200, 225, 255, .8); }
@keyframes comet { 0% { transform: translate(0, 0) rotate(16deg); opacity: 0; } 1% { opacity: 1; } 7% { transform: translate(62vw, 18vw) rotate(16deg); opacity: 0; } 100% { transform: translate(62vw, 18vw) rotate(16deg); opacity: 0; } }
body.lite .space-obj, body.calm .space-obj, body.lite .sp-comet, body.calm .sp-comet, body.op-open .sp-comet { display: none; }
/* 키가 낮은 화면(학생 노트북 1366x630, 1024x600): 안내·특집 카드를 한 줄 줄여 태양계가 덜 납작해지게 한다 */
@media (max-height: 720px) and (min-width: 761px) {
  .opening.intro { padding: 8px 40px 9px 14px; }
  .opening.intro .op-s { display: none; }
  .ftcard { grid-template-columns: 1fr; }
  .ftcard .ft-ph, .ftcard .ft-s { display: none; }
}
/* 태양계에서는 행성이 묶음 안에서 크기 순서로 놓이므로 번호를 감춘다(작은 행성은 이름을 아래에 단다) */
.area .a-no { display: none; }

/* 휴대폰·평면 태양계 고르기(2026-11-03): 3D 지도와 같은 밤하늘, 가운데 해, 두 궤도의 행성. 밝게·어둡게 설정과 상관없이 어둡다 */
.space { grid-column: 1 / -1; min-width: 0; border-radius: 20px; overflow: hidden; color: #edf1fb; padding: 0 0 12px;
  background: radial-gradient(70% 62% at 50% 52%, #172152 0%, #0c1333 42%, #070a1c 78%, #04060f 100%); box-shadow: 0 8px 26px rgba(10, 16, 40, .35); }
.sp-sky { position: relative; isolation: isolate; width: 100%; aspect-ratio: 2.1 / 1; min-height: 280px; max-height: min(66vh, 580px); --rx: 41%; --ry: 38.5%;
  --b: clamp(24px, calc(5vmin + 6px), 44px); --sun: clamp(70px, 17vmin, 124px); }
.sp-sky::before, .sp-sky::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.sp-sky::before { background:
    radial-gradient(40% 32% at 16% 24%, rgba(140, 90, 220, .18), transparent 70%),
    radial-gradient(36% 30% at 86% 76%, rgba(50, 140, 220, .15), transparent 70%),
    radial-gradient(1.2px 1.2px at 20% 30%, #fff 50%, transparent 51%) 0 0 / 97px 89px,
    radial-gradient(1px 1px at 70% 60%, #dfe6ff 50%, transparent 51%) 0 0 / 61px 67px,
    radial-gradient(1.6px 1.6px at 40% 80%, #ffe9c4 50%, transparent 51%) 0 0 / 173px 149px,
    radial-gradient(.9px .9px at 85% 15%, #c9d6ff 50%, transparent 51%) 0 0 / 43px 41px; }
.sp-sky::after { background: radial-gradient(1.8px 1.8px at 30% 40%, #fff 50%, transparent 51%) 0 0 / 211px 193px, radial-gradient(1.5px 1.5px at 75% 25%, #fff 50%, transparent 51%) 0 0 / 137px 157px;
  animation: twinkle 4.5s ease-in-out infinite alternate; }
.sp-orbit { position: absolute; left: 50%; top: 50%; width: calc(var(--rx) * 2 * var(--r)); height: calc(var(--ry) * 2 * var(--r)); transform: translate(-50%, -50%);
  border-radius: 50%; border: 1px dashed rgba(185, 198, 240, .3); pointer-events: none; animation: spOrbit 60s linear infinite; }
.sp-orbit + .sp-orbit { animation-direction: reverse; animation-duration: 44s; }
@keyframes spOrbit { to { transform: translate(-50%, -50%) rotate(360deg); } }
/* 해: 3D 지도의 해와 같은 색 */
.sp-sun { position: absolute; left: 50%; top: 50%; z-index: 2; width: var(--sun); height: var(--sun); transform: translate(-50%, -50%); border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-content: center; text-align: center; color: #3a1c00; font: inherit; padding: 0;
  background: radial-gradient(circle at 42% 38%, #fffbe6 0%, #ffe68a 22%, #ffc23d 48%, #ff9a26 72%, #e8641a 100%);
  box-shadow: 0 0 22px 6px rgba(255, 196, 80, .55), 0 0 70px 24px rgba(255, 150, 40, .28), 0 0 140px 50px rgba(255, 120, 30, .12); }
.sp-sun::before { content: ""; position: absolute; inset: -12px; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, transparent 74%, rgba(255, 190, 80, .5) 84%, transparent 100%); animation: corona 4.8s ease-in-out infinite; }
.sp-sun b { font-size: calc(var(--sun) * .15); line-height: 1.22; font-weight: 800; text-shadow: 0 1px 0 rgba(255, 245, 210, .6); }
.sp-sun small { font-size: calc(var(--sun) * .11); font-weight: 800; color: #6b3400; margin-top: 2px; }
.sp-sun:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
/* 행성: 공 가운데가 궤도 위에 오고 이름표는 그 아래. 뒤쪽(위) 행성은 조금 작다 */
.sp-p { position: absolute; z-index: 3; left: calc(50% + var(--x) * var(--rx)); top: calc(50% + var(--y) * var(--ry)); display: flex; flex-direction: column; align-items: center;
  transform: translate(-50%, calc(var(--b) * var(--s) * -.5 - 4px)) scale(calc(.92 + .08 * var(--y))); padding: 4px 4px 2px; border: 0; background: none; color: #fff; font: inherit; cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: opacity .35s; }
.sp-ball { position: relative; display: block; width: calc(var(--b) * var(--s)); height: calc(var(--b) * var(--s)); border-radius: 50%; animation: spBob 5.5s ease-in-out var(--dl) infinite;
  --planet: radial-gradient(circle at var(--lx) var(--ly), color-mix(in srgb, var(--c) 42%, #fff) 0%, var(--c) 34%, color-mix(in srgb, var(--c) 62%, #000) 74%, color-mix(in srgb, var(--c) 28%, #000) 100%);
  background: var(--planet); box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent), 0 0 16px color-mix(in srgb, var(--c) 40%, transparent); transition: box-shadow .2s; }
.sp-p.giant .sp-ball, .sp-p.ringed .sp-ball { background: repeating-linear-gradient(-14deg, rgba(255, 255, 255, .1) 0 7%, rgba(0, 0, 0, .09) 7% 12%, transparent 12% 19%), var(--planet); }
/* 자료 스무 건 넘는 갈래는 달 하나가 돈다 */
.sp-p.giant .sp-ball::before { content: ""; position: absolute; inset: -7px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle at 50% 2.5px, #e6eaf8 0 2px, transparent 2.6px); animation: spSpin 9s linear var(--dl) infinite; }
.sp-ring { position: absolute; left: -38%; top: 32%; width: 176%; height: 36%; border-radius: 50%; border: 2.5px solid rgba(236, 214, 170, .75); border-top-color: rgba(236, 214, 170, .22); transform: rotate(-16deg); pointer-events: none; }
@keyframes spBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes spSpin { to { transform: rotate(360deg); } }
.sp-lab { margin-top: 5px; font-size: 12.5px; font-weight: 800; line-height: 1.15; white-space: nowrap; letter-spacing: -.01em; text-shadow: 0 1px 3px #000, 0 0 8px #000, 0 0 2px #000; }
.sp-lab small { margin-left: 3px; font-size: 10.5px; font-weight: 700; color: #b9c4e8; }
.sp-p:hover .sp-ball, .sp-p:focus-visible .sp-ball { box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 50%, transparent), 0 0 26px color-mix(in srgb, var(--c) 70%, transparent); }
.sp-p:active .sp-ball { box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 60%, transparent), 0 0 30px color-mix(in srgb, var(--c) 80%, transparent); }
.sp-p:focus-visible { outline: none; }
.sp-p:focus-visible .sp-lab { text-decoration: underline; text-underline-offset: 3px; }
.sp-p.dim { opacity: .22; }
/* 별똥별 */
.sp-shoot { position: absolute; left: 8%; top: 14%; width: 90px; height: 1.6px; border-radius: 2px; pointer-events: none; opacity: 0; transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .95)); animation: spShoot 11s ease-in 3s infinite; }
@keyframes spShoot { 0% { opacity: 0; transform: rotate(18deg) translateX(0); } 3% { opacity: 1; } 10% { opacity: 0; transform: rotate(18deg) translateX(260px); } 100% { opacity: 0; transform: rotate(18deg) translateX(260px); } }
/* 분류 단추: 누르면 그 묶음 행성만 밝다 */
.sp-zones { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; padding: 2px 12px 0; }
.sp-zones > span { font-size: 12px; font-weight: 800; color: #a4aed0; margin-right: 2px; }
.sp-zones button { border: 1.5px solid color-mix(in srgb, var(--zc) 70%, #fff); background: color-mix(in srgb, var(--zc) 18%, #0b1124); color: #fff; border-radius: 999px; padding: 4px 11px 4px 9px; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.sp-zones button em { font-style: normal; font-weight: 800; margin-right: 4px; color: color-mix(in srgb, var(--zc) 55%, #fff); }
.sp-zones button[aria-pressed="true"] { background: color-mix(in srgb, var(--zc) 60%, #0b1124); box-shadow: 0 0 12px color-mix(in srgb, var(--zc) 55%, transparent); }
.sp-cap { margin: 8px 12px 0; text-align: center; font-size: 12.5px; color: #a4aed0; word-break: keep-all; }
/* 세운 화면: 정사각에 가까운 하늘, 위아래로 넉넉한 궤도 */
@media (max-aspect-ratio: 1 / 1) {
  .sp-sky { aspect-ratio: 1 / 1.14; max-height: none; --rx: 39%; --ry: 41%; --b: clamp(22px, calc(6vmin + 2px), 40px); --sun: clamp(66px, 21vmin, 110px); }
  .sp-lab { font-size: 11.5px; }
  .sp-lab small { font-size: 10px; }
}
@media (max-width: 359px) { .sp-lab { font-size: 10.5px; letter-spacing: -.03em; } .sp-lab small { font-size: 9px; margin-left: 2px; } }
body.calm .sp-sky::after, body.lite .sp-sky::after { animation: none; opacity: .6; }
body.calm .space *, body.calm .space *::before, body.lite .space *, body.lite .space *::before { animation: none !important; }
body.calm .sp-shoot, body.lite .sp-shoot { display: none; }
/* 휴대폰과 세운 태블릿: 칸 폭 고정을 되돌린다(2026-11-05) */
@media (max-width: 760px), (max-height: 500px) and (max-width: 959px) and (pointer: coarse) { #panel, body.at-hub:not(.hub-wide) #panel { width: auto; contain: none; } .stage { overflow: visible; } }
@media (min-width: 761px) and (max-width: 1100px) and (orientation: portrait) { #panel, body.at-hub:not(.hub-wide) #panel { width: auto; contain: none; } }
/* 특집 엘리스 정보교원 연수 Track 2(2026-11-07): 「강의·연수」 칸 맨 위, 일차별 차시 카드 */
.p-elice .pf-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.el-big { margin: 10px 0 4px; display: grid; gap: 6px; }
.el-big p { margin: 0; padding: 9px 11px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); font-size: 13.5px; line-height: 1.6; color: var(--ink2); word-break: keep-all; }
.el-big b { display: block; margin-bottom: 2px; font-size: 12.5px; color: var(--accent); }
.el-day { margin-top: 16px; }
.el-day h4 { margin: 0 0 8px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 15.5px; line-height: 1.4; color: var(--ink); word-break: keep-all; }
.el-day h4 span { flex: none; padding: 1px 9px; border-radius: 999px; background: var(--ink); color: var(--card); font-size: 12px; font-weight: 800; }
.el-day ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.el-row { padding: 9px 10px 8px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.el-row.mine { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: inset 3px 0 0 var(--accent); }
.el-hd { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 9px; align-items: start; }
.el-n { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 34px; border-radius: 9px; background: var(--bg2); font-size: 16px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.1; }
.el-n small { font-size: 9.5px; font-weight: 700; color: var(--ink2); }
.el-t small { display: block; font-size: 12px; color: var(--ink2); }
.el-t small b { color: var(--accent); }
.el-t > b { display: block; font-size: 14.5px; line-height: 1.4; color: var(--ink); word-break: keep-all; }
.el-ln { margin: 8px 0 0 43px; display: flex; flex-wrap: wrap; gap: 5px; }
.el-a { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; line-height: 1.35; text-decoration: none; border: 1px solid var(--line); color: var(--ink); background: var(--bg2); word-break: keep-all; }
.el-a.deck { background: var(--accent); border-color: var(--accent); color: #fff; }
.el-a.deck.ghost { background: transparent; color: var(--accent); }
.el-a:hover { filter: brightness(1.08); text-decoration: underline; }
.el-more { margin: 6px 0 0 43px; }
.el-more summary { cursor: pointer; font-size: 12.5px; color: var(--ink2); }
.el-more dl { margin: 6px 0 2px; display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 5px 8px; font-size: 13px; line-height: 1.6; }
.el-more dt { font-weight: 800; color: var(--ink); }
.el-more dd { margin: 0; color: var(--ink2); word-break: keep-all; }
.el-src { margin: 14px 0 0; font-size: 12px; color: var(--ink2); word-break: keep-all; }
body.big .el-t > b { font-size: 16.5px; }
body.big .el-more dl, body.big .el-big p { font-size: 15px; }
@media (max-width: 520px) {
  .p-elice .pf-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .el-ln, .el-more { margin-left: 0; }
  .el-more dl { grid-template-columns: 1fr; gap: 1px; }
  .el-more dd { margin-bottom: 6px; }
}
/* 전체 화면(2026-11-07): 칸 머리 「전체 화면」을 누르면 칸이 지도 자리까지 덮고, 글은 가운데 1080px 안에 둔다. 휴대폰·세운 태블릿은 칸이 이미 화면 폭이라 단추를 숨긴다 */
body.panel-open.panel-full #panel { position: absolute; inset: 0; z-index: 30; width: auto; border-left: 0; }
body.panel-full #panel .p-head { padding-left: max(20px, calc((100% - 1080px) / 2)); padding-right: max(20px, calc((100% - 1080px) / 2)); }
body.panel-full #panel .p-body { width: 100%; max-width: 1120px; margin: 0 auto; }
.p-nav .p-full { font-weight: 700; }
.p-nav .p-full[aria-pressed="true"] { background: var(--on, #fff); color: var(--c, var(--accent)); }
@media (max-width: 760px), (max-height: 500px) and (max-width: 959px) and (pointer: coarse) { .p-nav .p-full { display: none; } }
@media (min-width: 761px) and (max-width: 1100px) and (orientation: portrait) { .p-nav .p-full { display: none; } }

/* 대표 연수 사이트, 헬피코드, 접는 칸 (2026-11-07) */
.op-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.op-acts .btn { margin: 0; }
.btn.op-site { text-decoration: none; background: var(--accent); color: #fff; border-color: var(--accent); }
.lec-site { display: grid; gap: 3px; margin: 6px 0 14px; padding: 14px 16px; border-radius: 14px; border: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--card)); color: var(--ink); text-decoration: none; }
.lec-site:hover { background: color-mix(in srgb, var(--accent) 12%, var(--card)); }
.lec-site .ls-k { font-size: 12.5px; font-weight: 800; color: var(--accent); }
.lec-site .ls-t { font-size: 18px; line-height: 1.35; }
.lec-site .ls-s { font-size: 13.5px; line-height: 1.6; color: var(--ink2); word-break: keep-all; }
.lec-site .ls-go { justify-self: start; margin-top: 6px; padding: 5px 12px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 800; }
.lec-site.in-dlg { margin: 12px 0 18px; padding: 18px 20px; }
.lec-site.in-dlg .ls-t { font-size: 22px; }
.el-tools { display: grid; gap: 8px; margin: 10px 0 12px; }
.el-tool { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; border: 2px solid var(--accent); background: var(--card); color: var(--ink); text-decoration: none; }
.el-tool:hover { background: color-mix(in srgb, var(--accent) 8%, var(--card)); }
.el-tool-k { font-size: 12px; font-weight: 800; color: var(--accent); }
.el-tool b { font-size: 16.5px; }
.el-tool span:not(.el-tool-k) { font-size: 13.5px; line-height: 1.6; color: var(--ink2); word-break: keep-all; }
.el-tool em { justify-self: start; margin-top: 6px; font-style: normal; padding: 4px 12px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 800; }
details.el-day { border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 0 12px; }
details.el-day + details.el-day { margin-top: 8px; }
details.el-day > summary { list-style: none; cursor: pointer; padding: 11px 0; }
details.el-day > summary::-webkit-details-marker { display: none; }
details.el-day > summary h4 { margin: 0; }
details.el-day > summary h4 small { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--ink2); }
details.el-day > summary h4::after { content: "펼치기"; flex: none; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--ink2); }
details.el-day[open] > summary h4::after { content: "접기"; }
details.el-day[open] > ol { padding-bottom: 12px; }
.p-body .fold > h3 { margin: 0; }
.fold-t { all: unset; box-sizing: border-box; display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); font-size: 15px; font-weight: 800; color: var(--ink); }
.fold-t:hover { border-color: var(--ink2); }
.fold-t:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fold-i { flex: none; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--ink2); }
.fold:not(.folded) > h3 { margin-bottom: 10px; }
.fold.folded > :not(h3) { display: none !important; }
/* 특집 2 교사를 위한 적정 기술 (2026-11-07) */
.p-jj { margin-top: 16px; }
.jj-l { list-style: none; margin: 0; padding: 0 0 12px; display: grid; gap: 4px; }
.jj-l a { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 8px; align-items: baseline; padding: 7px 10px; border-radius: 9px; text-decoration: none; color: var(--ink); background: var(--bg); }
.jj-l a:hover { background: color-mix(in srgb, var(--accent) 8%, var(--card)); }
.jj-l b { font-size: 12.5px; color: var(--accent); font-variant-numeric: tabular-nums; }
.jj-l span { font-size: 14px; line-height: 1.5; word-break: keep-all; }
.jj-l i { font-style: normal; font-size: 12px; color: var(--ink2); }
/* 찾기 창 「AI에게 묻기」(2026-11-07, find-ai.js): 같은 창 안에서 찾기와 AI 답변을 오간다. 말풍선·근거 카드 모양은 chat.css 것을 쓴다 */
.fx-ai-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 12px; padding: 10px 16px; font: inherit; font-size: 15px; font-weight: 800; color: #fff; cursor: pointer; background: linear-gradient(135deg, #6a3fd0, #1e63c6); box-shadow: 0 4px 14px rgba(70, 60, 200, .28); }
.fx-ai-btn svg { width: 18px; height: 18px; fill: currentColor; }
.fx-ai-btn:hover { filter: brightness(1.08); }
.fx-ai-btn[aria-pressed="true"] { background: linear-gradient(135deg, #5a31bd, #1a54a8); }
#find-dlg.ai-busy .fx-ai-btn { opacity: .6; pointer-events: none; }
#find-dlg.ai-mode .fx-types, #find-dlg.ai-mode .fx-format-label, #find-dlg.ai-mode .fx-body { display: none; }
#find-dlg.ai-mode .fx-q { border-color: #6a3fd0; }
.fx-ai-bar { display: flex; align-items: center; gap: 10px; padding: 8px 18px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink2); background: color-mix(in srgb, #6a3fd0 7%, var(--card)); }
.fx-ai-bar[hidden], .fx-ai[hidden] { display: none; }
.fx-ai-bar span { flex: 1; min-width: 0; word-break: keep-all; }
.fx-ai-bar button { flex: none; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 4px 12px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.fx-ai-bar button:hover { border-color: #6a3fd0; }
.fx-ai { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 14px 18px 18px; }
.fx-ai-log { display: flex; flex-direction: column; gap: 12px; max-width: 820px; margin: 0 auto; }
.fx-ai .chat-m { font-size: 15.5px; max-width: 94%; }
.fx-ai .chat-m.bot { background: var(--bg2); }
.fx-ai .chat-src li { transition: box-shadow .3s, border-color .3s; }
.fx-ai .chat-src li.hl { border-color: #6a3fd0; box-shadow: 0 0 0 3px color-mix(in srgb, #6a3fd0 25%, transparent); }
.fx-ai button.cite { border: 0; cursor: pointer; font-family: inherit; margin-left: 2px; vertical-align: 2px; }
.fx-ai-note { max-width: 820px; margin: 14px auto 0; font-size: 12.5px; color: var(--ink2); word-break: keep-all; }
@media (max-width: 760px) {
  .fx-ai-btn { padding: 9px 11px; font-size: 14px; }
  .fx-head { gap: 6px; }
  .fx-ai-bar { padding: 7px 12px; flex-wrap: wrap; } .fx-ai-bar span { flex-basis: 100%; order: 3; }
  .fx-ai { padding: 12px; }
}

/* 특집 1 챗봇 다듬기 교실(2026-11-07, dadeumgi.js): 「강의·연수」 칸 맨 위. 입장 코드를 크게 보이고 복사 단추를 단다 */
.p-cbd { --cbd: #23775a; border-color: color-mix(in srgb, var(--cbd) 55%, var(--line)); background: color-mix(in srgb, var(--cbd) 7%, var(--card)); }
.p-cbd .pf-k { color: var(--cbd); }
.p-cbd .pf-k .ft-badge { background: var(--cbd); }
.cbd-top { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 14px; align-items: start; margin-top: 6px; }
.cbd-im { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--bg2); }
.cbd-im img { display: block; width: 100%; height: auto; }
.cbd-b .pf-h { margin-top: 0; }
.cbd-code { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 10px; padding: 8px 10px 8px 14px; border-radius: 12px; background: var(--card); border: 2px dashed var(--cbd); }
.cbd-code span { font-size: 13px; font-weight: 800; color: var(--ink2); }
.cbd-code b { font-size: 28px; line-height: 1.1; font-weight: 800; letter-spacing: .12em; color: var(--cbd); font-variant-numeric: tabular-nums; }
.cbd-code button { border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 999px; padding: 4px 12px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.cbd-code button:hover { border-color: var(--cbd); }
.p-cbd .cbd-go { display: flex; justify-content: center; background: var(--cbd); border-color: var(--cbd); color: #fff; font-weight: 800; font-size: 16px; padding: 10px 16px; }
.p-cbd .cbd-go:hover { filter: brightness(1.08); }
.cbd-steps { list-style: none; margin: 14px 0 4px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cbd-steps li { padding: 10px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.cbd-steps b { display: flex; align-items: center; gap: 7px; font-size: 14.5px; color: var(--ink); }
.cbd-steps b i { font-style: normal; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--cbd); color: #fff; font-size: 12.5px; }
.cbd-steps span { display: block; margin-top: 4px; font-size: 13px; line-height: 1.6; color: var(--ink2); word-break: keep-all; }
body.panel-full .cbd-top { grid-template-columns: 280px minmax(0, 1fr); }
@media (max-width: 1100px) { .cbd-steps { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .cbd-top { grid-template-columns: 1fr; } .cbd-im { max-width: 260px; } }
/* 특집: 서·논술형 평가 도구 간소화판(seonon.js). 챗봇 다듬기 틀(.cbd-*)을 같이 쓰고 색만 파랑 */
.p-seo { --cbd: #1f5fae; }
/* 특집: AI몬스터 사본으로 가져가기(aimon.js). 서논술 틀을 같이 쓰고 색만 보라 */
.p-aim { --cbd: #6d3fc0; }
.aim-docs { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 0 0; font-size: 13.5px; font-weight: 700; }
.aim-docs a { color: var(--cbd); text-decoration: underline; text-underline-offset: 3px; }
.seo-try b { letter-spacing: .08em; }
.seo-try em { font-style: normal; font-size: 13px; font-weight: 700; color: var(--ink2); }
.seo-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0 0; }
.seo-links a { display: block; padding: 10px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.seo-links a:hover { border-color: var(--cbd); }
.seo-links b { display: block; font-size: 14.5px; color: var(--cbd); }
.seo-links span { display: block; margin-top: 4px; font-size: 13px; line-height: 1.6; color: var(--ink2); word-break: keep-all; }
@media (max-width: 1100px) { .seo-links { grid-template-columns: 1fr; } }

/* 이운희(2026-11-08): 「성과와 기록」 자리는 행성 대신 얼굴 그림. 금빛 테와 도는 궤도 고리, 아래 이름표. 누르면 profile/ 로 간다 */
.area.me .orb { background: #f2d27f; box-shadow: 0 0 0 calc(var(--base) * .045) #e7c06a, 0 0 0 calc(var(--base) * .1) rgba(231, 192, 106, .2), 0 0 calc(var(--base) * .5) rgba(231, 192, 106, .5); overflow: visible; }
.area.me .orb::after { display: none; }
.area.me .orb::before { content: ""; position: absolute; inset: -22%; border-radius: 50%; border: 1.5px dashed rgba(240, 214, 150, .65); animation: meSpin 26s linear infinite; pointer-events: none;
  background: radial-gradient(circle at 50% 0, #ffe9a8 0 3.5%, transparent 4%); }
.area.me .me-face { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.area.me .me-tag { position: absolute; left: 50%; bottom: -9%; transform: translateX(-50%); z-index: 2; padding: .18em .75em; border-radius: 999px; background: #16213d; color: #f6dd96; font-size: calc(var(--base) * .14); font-weight: 800; white-space: nowrap; text-shadow: none; box-shadow: 0 0 0 2px #e7c06a, 0 4px 10px rgba(0, 0, 0, .35); }
.area.me:hover .orb, .area.me.is-hot .orb { box-shadow: 0 0 0 calc(var(--base) * .05) #f2cf77, 0 0 0 calc(var(--base) * .13) rgba(231, 192, 106, .32), 0 0 calc(var(--base) * .7) rgba(231, 192, 106, .75); }
.area.me .pring { display: none; }
body.lite .area.me .orb::before, body.calm .area.me .orb::before { animation: none; }
@keyframes meSpin { to { transform: rotate(360deg); } }
/* 휴대폰·평면 태양계 */
.sp-p.me .sp-ball { background: #f2d27f; overflow: hidden; box-shadow: 0 0 0 2.5px #e7c06a, 0 0 18px rgba(231, 192, 106, .6); }
.sp-p.me .sp-ball img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-p.me .sp-lab { color: #f6dd96; }
.sp-p.me .sp-lab small { color: #f0cd7c; }
/* 평면 카드와 갈래 칸 맨 위 프로필 카드 */
.card-img.me-card { object-position: center 30%; }
.me-link { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; padding: 14px 16px; border-radius: 16px; text-decoration: none; color: #eef1fb; background: linear-gradient(150deg, #24345e, #16213d); box-shadow: 0 0 0 1.5px #e7c06a; }
.me-link img { flex: none; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px #e7c06a; }
.me-link > span:not(.me-go) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.me-link small { font-size: 12.5px; font-weight: 800; color: #f0cd7c; }
.me-link b { font-size: 16px; line-height: 1.4; }
.me-link em { font-style: normal; font-size: 12.5px; color: #c9d0e6; line-height: 1.45; margin-top: 2px; }
.me-go { flex: none; padding: 7px 13px; border-radius: 999px; background: #e7c06a; color: #241800; font-weight: 800; font-size: 14px; }
.me-link:hover .me-go { background: #f2d27f; }

/* 11-08 사용자 요청: 자료 카드를 아래로 길게 쌓지 않고 바둑판으로 나눠 보인다(갈래 칸 .p-cards, 자료실 .dl-cards).
   칸 너비에 맞춰 열 수가 바뀐다: 좁은 칸 2열, 넓은 칸 3열, 전체 화면 4열 안팎 */
.p-cards, .dl-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, max(160px, 22%)), 1fr)); gap: 12px; margin: 8px 0 4px; }
.p-cards > .item { margin: 0; display: flex; min-width: 0; }
.p-cards .rv-map-item .item-h { flex-direction: column; align-items: stretch; gap: 10px; padding: 10px 10px 14px; height: 100%; }
.p-cards .rv-map-item .rv-thumb, .p-cards .rv-map-item .rv-thumb.rv-video, .p-cards .rv-map-item .rv-thumb.rv-document, .p-cards .rv-map-item .rv-thumb.rv-book { width: 100%; height: auto; aspect-ratio: 16 / 10; margin: 0; }
.p-cards .rv-map-item .rv-thumb.rv-cv { aspect-ratio: 16 / 10; }
.p-cards .item-tt { display: flex; flex-direction: column; flex: 1; padding: 0 4px; }
.p-cards .rv-map-item .item-h .t { flex: none; font-size: 15.5px; line-height: 1.45; margin-top: 2px; }
.p-cards .rv-excerpt { -webkit-line-clamp: 3; font-size: 13px; line-height: 1.6; }
.p-cards .rv-card-action { margin-top: auto; padding-top: 8px; }
body.big .p-cards .rv-map-item .item-h .t { font-size: 17px; }
.dl-cards .dl-card { margin: 0; flex-direction: column; gap: 10px; min-width: 0; }
.dl-cards .dl-card .dl-tx { width: 100%; }
.dl-cards .dl-resource-cover { flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 10px; }
.dl-cards .dl-resource-cover .rv-thumb, .dl-cards .dl-resource-cover .rv-thumb.rv-video, .dl-cards .dl-resource-cover .rv-thumb.rv-document, .dl-cards .dl-resource-cover .rv-thumb.rv-book { width: 100%; height: auto; aspect-ratio: 16 / 10; margin: 0; }
.dl-cards .dl-d { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dl-cards .dl-a { flex-direction: row; flex-wrap: wrap; margin-top: auto; width: 100%; }
.dl-cards .dl-a .btn { flex: 1 1 auto; white-space: normal; word-break: keep-all; min-width: 0; }

/* 저서 칸 서재(2026-11-09 사용자: 「서재처럼 좀 예쁘게 디자인해서 딱딱 들어가게 해줘」).
   책 표지(2:3)를 같은 너비로 세워 칸마다 높이가 맞고, 표지 밑 나무 판자가 이웃 칸과 이어져 한 줄의 책장처럼 보인다. app.js shelfHTML() */
.shelf { --wood1: #c99b62; --wood2: #9a6a38; --wood3: #6e4823; --shelf-bg: #f3ead9; --shelf-ink: #3b2a17;
  margin: 10px 0 8px; padding: 16px 14px 12px; border-radius: 14px; background: var(--shelf-bg);
  box-shadow: inset 0 0 0 1px rgba(110, 72, 35, .18), inset 0 10px 24px rgba(110, 72, 35, .08); }
:root[data-theme="dark"] .shelf { --shelf-bg: #2a2219; --shelf-ink: #f1e6d4; --wood1: #8a6438; --wood2: #6a4724; --wood3: #452c14; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .shelf { --shelf-bg: #2a2219; --shelf-ink: #f1e6d4; --wood1: #8a6438; --wood2: #6a4724; --wood3: #452c14; } }
.shelf .item { margin: 0; border: 0; background: none; box-shadow: none; }
.shelf .item-h { width: 100%; text-align: left; background: none; border: 0; padding: 0; color: var(--shelf-ink); }
.shelf-top { margin-bottom: 14px; }
.shelf-sign .item-h { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; padding: 12px 14px; border-radius: 10px;
  background: linear-gradient(180deg, var(--wood1), var(--wood2)); color: #fff8ec; box-shadow: 0 2px 0 var(--wood3), 0 6px 14px rgba(60, 35, 10, .18); }
.shelf-sign .ss-k { grid-column: 1; font-size: 11.5px; letter-spacing: .08em; opacity: .85; }
.shelf-sign b { grid-column: 1; font-size: 16px; }
.shelf-sign small { grid-column: 1; font-size: 12.5px; opacity: .9; line-height: 1.45; }
.shelf-sign .ss-go { grid-column: 2; grid-row: 1 / span 3; font-weight: 700; white-space: nowrap; }
.shelf-sign .item-h:hover { filter: brightness(1.06); }
.shelf-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 118px), 1fr)); gap: 22px 16px; }
.shelf-slot { display: flex; flex-direction: column; min-width: 0; }
.shelf-book .item-h { display: flex; flex-direction: column; align-items: stretch; }
.sb-cover { position: relative; display: block; aspect-ratio: 2 / 3; margin: 0 8% ; border-radius: 2px 5px 5px 2px; overflow: hidden; background: var(--wood1);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .25), 4px 6px 12px rgba(40, 25, 8, .28); transform-origin: bottom center; transition: transform .18s ease, box-shadow .18s ease; }
.sb-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sb-cover > :not(img) { width: 100%; height: 100%; }
.sb-cover::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, .28) 0, rgba(255, 255, 255, .18) 3%, rgba(0, 0, 0, .08) 6%, transparent 12%, transparent 90%, rgba(0, 0, 0, .08)); }
.shelf-book .item-h:hover .sb-cover, .shelf-book .item-h:focus-visible .sb-cover { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 1px 0 rgba(0, 0, 0, .25), 6px 12px 18px rgba(40, 25, 8, .32); }
.shelf-book .item-h:focus-visible { outline: none; }
.shelf-book .item-h:focus-visible .sb-tt b { text-decoration: underline; }
.sb-plank { display: block; height: 11px; margin: 0 -8px; border-radius: 2px;
  background: linear-gradient(180deg, var(--wood1) 0 35%, var(--wood2) 35% 80%, var(--wood3) 80%); box-shadow: 0 5px 8px -3px rgba(40, 25, 8, .35); }
.sb-tt { display: block; margin-top: 9px; padding: 0 2px; }
.sb-tt b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13.5px; line-height: 1.38; word-break: keep-all; }
.sb-tt small { display: block; margin-top: 2px; font-size: 11.5px; opacity: .72; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-extra { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.shelf-extra .item-h { width: auto; font-size: 11.5px; padding: 3px 8px; border-radius: 999px; border: 1px solid rgba(110, 72, 35, .35); color: var(--shelf-ink); background: rgba(255, 255, 255, .35); }
:root[data-theme="dark"] .shelf-extra .item-h { background: rgba(255, 255, 255, .06); border-color: rgba(241, 230, 212, .3); }
.shelf-extra .item-h:hover { border-color: var(--wood2); }
@media (prefers-reduced-motion: reduce) { .sb-cover { transition: none; } }

/* 휴대폰 가독성(2026-11-09 사용자: 「모바일일때 가독성이 떨어지고」). 휴대폰(760px 이하·눕힌 휴대폰)에서만.
   자료 카드는 한 줄에 한 장, 왼쪽 그림 + 오른쪽 글로 놓아 제목과 소개가 잘리지 않게 하고, 작은 글씨(13~14px)를 15px 안팎으로 키운다.
   저서 서재(.shelf)는 따로 짜인 칸이라 건드리지 않는다. */
@media (max-width: 760px), (max-height: 500px) and (max-width: 959px) and (pointer: coarse) {
  .p-cards { grid-template-columns: 1fr; gap: 10px; }
  .p-cards .rv-map-item .item-h { flex-direction: row; align-items: flex-start; gap: 12px; padding: 12px; }
  .p-cards .rv-map-item .rv-thumb, .p-cards .rv-map-item .rv-thumb.rv-video, .p-cards .rv-map-item .rv-thumb.rv-document,
  .p-cards .rv-map-item .rv-thumb.rv-book, .p-cards .rv-map-item .rv-thumb.rv-cv { width: 112px; flex: none; aspect-ratio: 4 / 3; height: auto; border-radius: 10px; }
  .p-cards .item-tt { padding: 0; min-width: 0; }
  .p-cards .rv-map-item .item-h .t { font-size: 16.5px; line-height: 1.42; word-break: keep-all; }
  .p-cards .rv-excerpt { font-size: 15px; line-height: 1.62; -webkit-line-clamp: 3; }
  .p-cards .rv-kicker { font-size: 12.5px; }
  .p-cards .rv-card-action { font-size: 14px; padding-top: 6px; }
  .p-grp h4 { font-size: 18px; margin-top: 6px; }
  .p-grp-i { font-size: 15px; line-height: 1.65; margin-left: 12px; }
  .p-sub { font-size: 15.5px; line-height: 1.5; }
  .p-story p, .p-future p { font-size: 17px; line-height: 1.8; }
  #panel .section-help, #panel .section-reading-guide { font-size: 15px; line-height: 1.7; }
  .topic-menu .topic-description { font-size: 15.5px; line-height: 1.7; }
  .topic-menu .topic-heading b { font-size: 21px; }
  .dl-cards { grid-template-columns: 1fr; }
  .p-also-row { font-size: 14.5px; line-height: 1.7; }
  .sp-lab { font-size: 12.5px; }
  .sp-lab small { font-size: 10.5px; }
  .sp-cap { font-size: 14px; line-height: 1.6; }
}
