/* 손으로 읽는 뉴스 · 홈페이지 시안
   모바일 화면을 기준으로 쓰고, 넓은 화면에서 단을 나눈다. */

@font-face { font-family: "Paperlogy"; font-weight: 400; font-display: swap; src: url("fonts/Paperlogy-Regular.woff2") format("woff2"); }
@font-face { font-family: "Paperlogy"; font-weight: 500; font-display: swap; src: url("fonts/Paperlogy-Medium.woff2") format("woff2"); }
@font-face { font-family: "Paperlogy"; font-weight: 700; font-display: swap; src: url("fonts/Paperlogy-Bold.woff2") format("woff2"); }

:root {
  --paper: #f6f1e6;      /* 신문지 바탕 */
  --paper-deep: #ece4d3; /* 띠 구역 바탕 */
  --card: #fffdf8;
  --ink: #1d1b18;
  --muted: #6a6358;
  --rule: #1d1b18;
  --soft-rule: #d6ccb8;
  --accent: #d9480f;     /* 움직임 동사 주황 */
  --accent-ink: #ffffff;
  --book-blue: #00a7eb;   /* 책 표지 파랑 */
  --book-yellow: #ffd900; /* 책 표지 노랑 */
  --book-ink: #06283a;    /* 파랑 위 글씨 */
  --gutter: 20px;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Paperlogy", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: 56px; padding-bottom: 56px; }
.band { background: var(--paper-deep); border-top: 1px solid var(--soft-rule); border-bottom: 1px solid var(--soft-rule); }

h1 { font-size: clamp(38px, 10.5vw, 68px); line-height: 1.16; font-weight: 700; letter-spacing: -0.02em; }
h1 em, .lead em, .verb, .verbs span { color: var(--accent); font-style: normal; font-weight: 700; }
h2 { font-size: clamp(27px, 6.4vw, 38px); line-height: 1.25; font-weight: 700; letter-spacing: -0.015em; }
h3 { font-size: 20px; line-height: 1.35; font-weight: 700; }
.kicker { font-size: 14px; font-weight: 700; letter-spacing: 0.02em; color: var(--muted); margin-bottom: 14px; }
.lead { font-size: 18px; font-weight: 500; margin-top: 18px; text-wrap: balance; }
.sub { color: var(--muted); margin-top: 8px; }
.note { font-size: 14px; color: var(--muted); margin-top: 12px; }
.small { font-size: 13px; color: var(--muted); }

/* 머리 */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 16px;
  padding: 10px var(--gutter);
  background: rgba(246, 241, 230, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--rule);
}
.brand { font-size: 19px; font-weight: 700; text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; }
.brand span { margin-left: 8px; font-size: 13px; font-weight: 500; color: var(--muted); }
.nav { display: none; gap: 22px; margin-left: auto; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; padding: 6px 0; }
.nav a:hover { color: var(--accent); }
.top .btn-small { margin-left: auto; }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px;
  background: var(--ink); color: var(--paper);
  border: 2px solid var(--ink); border-radius: 6px;
  font: inherit; font-weight: 700; font-size: 17px; text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-small { min-height: 40px; padding: 0 14px; font-size: 15px; }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 26px; }
.chip {
  display: inline-flex; align-items: center; min-height: 52px; padding: 0 16px;
  border: 2px dashed var(--soft-rule); border-radius: 6px; color: var(--muted); font-size: 15px; font-weight: 500;
}

/* 첫 화면: 책 표지 색 */
.hero-book { background: var(--book-blue); color: var(--book-ink); border-bottom: 2px solid var(--rule); }
.hero { padding-top: 40px; padding-bottom: 0; display: grid; gap: 28px; }
.hero-book h1 { color: #fff; }
.hero-book .lead { color: var(--book-ink); }
.pill { display: inline-block; margin-bottom: 18px; padding: 6px 14px; border-radius: 999px; background: var(--book-yellow); color: var(--book-ink); font-size: 14px; font-weight: 700; }
.btn-yellow { background: var(--book-yellow); border-color: var(--book-ink); color: var(--book-ink); }
.btn-yellow:hover { background: #fff; border-color: var(--book-ink); color: var(--book-ink); }
.hero-book .btn-line { border-color: var(--book-ink); color: var(--book-ink); }
.hero-book .btn-line:hover { background: var(--book-ink); color: #fff; }
.hero-cover { justify-self: center; align-self: end; }
.hero-cover img { width: min(250px, 62vw); margin-bottom: -4px; filter: drop-shadow(0 14px 18px rgba(6, 40, 58, 0.35)); }
.hero-photo img { border: 1px solid var(--rule); border-radius: 4px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* 책 */
.book { display: grid; gap: 28px; }
.book-cover { justify-self: center; }
.book-cover img { width: min(240px, 64vw); border: 1px solid var(--rule); border-radius: 3px; box-shadow: 8px 8px 0 var(--book-yellow); }
.book-sub { margin-top: 12px; font-size: 18px; font-weight: 500; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.badges li { padding: 5px 12px; border: 2px solid var(--book-blue); border-radius: 4px; background: #fff; color: #00679a; font-size: 14px; font-weight: 700; }
.cover-quote { margin-top: 24px; border-left-color: var(--book-blue); }
.book-bridge { margin-top: 22px; color: var(--muted); }
.sign-note { margin-top: 24px; padding: 22px 20px; background: #fff; border: 2px solid var(--book-blue); border-radius: 6px; box-shadow: 6px 6px 0 var(--book-yellow); }
.sign-note h3 { color: #00679a; }
.sign-note .plain { margin-top: 12px; }

/* 손으로 읽는 뉴스 들머리 */
.news-intro { display: grid; gap: 28px; }
h2.big { font-size: clamp(36px, 9.5vw, 60px); line-height: 1.15; }
.kits-sec { background: var(--paper-deep); border-top: 1px solid var(--soft-rule); border-bottom: 1px solid var(--soft-rule); }

/* 읽는 법 */
.steps { display: grid; gap: 14px; margin-top: 28px; }
.steps li {
  position: relative;
  background: var(--card); border: 1px solid var(--rule); border-radius: 4px;
  padding: 22px 20px 20px 72px;
}
.num {
  position: absolute; left: 20px; top: 20px;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: var(--paper); font-weight: 700; font-size: 18px;
}
.steps p { color: var(--muted); margin-top: 4px; }
.steps img { margin-top: 16px; border-radius: 3px; aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.verbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.verbs span {
  padding: 6px 14px; border: 2px solid var(--accent); border-radius: 999px;
  font-size: 18px; line-height: 1.4; background: #fff;
}

/* 움직임 세 가지 */
.kits { display: grid; gap: 16px; margin-top: 28px; }
.kit { background: var(--card); border: 1px solid var(--rule); border-radius: 4px; padding: 14px 14px 20px; }
.kit img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: center 35%; border-radius: 3px; border: 1px solid var(--soft-rule); }
.kit .verb { font-size: 26px; line-height: 1.2; margin-top: 16px; }
.kit h3 { margin-top: 4px; }
.kit p:last-child { color: var(--muted); margin-top: 4px; }
.strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 28px; }
.strip img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 3px; border: 1px solid var(--soft-rule); }

/* 월간 구독 */
.sub-box { display: grid; gap: 28px; background: var(--card); border: 2px solid var(--rule); border-radius: 6px; padding: 28px 20px; }
.plain { margin-top: 20px; display: grid; gap: 8px; }
.plain li { position: relative; padding-left: 18px; }
.plain li::before { content: "·"; position: absolute; left: 4px; font-weight: 700; }
.price { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--soft-rule); font-size: 22px; font-weight: 700; line-height: 1.4; }
.price span { display: block; font-size: 14px; font-weight: 400; color: var(--muted); }
.first { margin-top: 10px; display: inline-block; background: var(--accent); color: var(--accent-ink); font-weight: 700; padding: 5px 12px; border-radius: 4px; }
.sub-photo { justify-self: center; text-align: center; }
.sub-photo img { width: 100%; max-width: 230px; margin: 0 auto; background: #fff; border: 1px solid var(--soft-rule); border-radius: 4px; padding: 14px; }

/* 기록 */
.timeline { margin-top: 24px; border-top: 2px solid var(--rule); }
.timeline li { display: grid; gap: 2px; padding: 16px 0; border-bottom: 1px solid var(--soft-rule); }
.timeline time { font-size: 14px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }

/* 만든 사람 */
.author { display: grid; gap: 32px; }
blockquote { align-self: center; border-left: 4px solid var(--accent); padding: 4px 0 4px 20px; }
blockquote p { font-size: 21px; font-weight: 500; line-height: 1.55; }
cite { display: block; margin-top: 12px; font-style: normal; font-size: 14px; color: var(--muted); }

/* 소식 */
.news { display: grid; gap: 32px; margin-top: 28px; }
.posts h3 { padding-bottom: 12px; border-bottom: 2px solid var(--rule); }
.post-list li { border-bottom: 1px solid var(--soft-rule); }
.post-list a { display: grid; gap: 2px; padding: 14px 0; text-decoration: none; }
.post-list time { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.post-title { font-weight: 500; }
.post-list a:hover .post-title { color: var(--accent); }
.channels { display: grid; gap: 12px; align-content: start; }
.channel { display: grid; gap: 2px; padding: 18px 20px; background: var(--card); border: 1px solid var(--rule); border-radius: 4px; text-decoration: none; transition: transform 0.15s, box-shadow 0.15s; }
.channel:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.ch-name { font-size: 14px; font-weight: 700; color: var(--muted); }
.ch-id { font-size: 19px; font-weight: 700; overflow-wrap: anywhere; }
.ch-desc { font-size: 15px; color: var(--muted); }

/* 발 */
.foot { background: var(--ink); color: var(--paper); padding: 40px 0 48px; font-size: 15px; }
.foot .wrap { display: grid; gap: 10px; }
.foot-brand { font-size: 20px; font-weight: 700; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot .small { color: #a9a294; margin-top: 8px; }

/* 넓은 화면 */
@media (min-width: 720px) {
  :root { --gutter: 32px; }
  body { font-size: 18px; }
  .section { padding-top: 80px; padding-bottom: 80px; }
  .nav { display: flex; }
  .top .btn-small { margin-left: 8px; }
  .book { grid-template-columns: 280px 1fr; gap: 56px; align-items: center; }
  .book-cover img { width: 260px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li { padding: 76px 22px 22px; }
  .kits { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .kit img { aspect-ratio: 1 / 1; }
  .strip { grid-template-columns: repeat(4, 1fr); }
  .sub-box { grid-template-columns: 1fr 260px; align-items: center; padding: 44px; }
  .timeline li { grid-template-columns: 130px 1fr; gap: 16px; }
  .author { grid-template-columns: 1fr 1fr; gap: 56px; }
  .news { grid-template-columns: 1.3fr 1fr; gap: 48px; }
}
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.25fr 1fr; align-items: center; gap: 48px; padding-top: 64px; }
  .hero-text { padding-bottom: 64px; }
  .news-intro .hero-text { padding-bottom: 0; }
  .hero-cover img { width: 340px; }
  .news-intro { grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .channel { transition: none; }
}

/* ───────── 2026-11-19 추가: 움직이는 뉴스 · 수업 현장 · 기관 수업 ───────── */
:root {
  --pink: #f3a7c3;
  --sky: #a9d6ee;
  --leaf: #cfe6c2;
  --leaf-ink: #2f6b2a;
  --stone: #ddd6c7;
  --white: #ffffff;
}

/* 영상 공통 */
video.clip { display: block; width: 100%; height: auto; background: var(--paper-deep); border: 1px solid var(--rule); border-radius: 4px; }
.hero-photo video.clip { aspect-ratio: 16 / 9; object-fit: cover; }

/* 숫자 세 개 */
.facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 22px; }
.facts li { display: grid; }
.facts strong { font-size: 34px; line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; }
.facts span { font-size: 14px; color: var(--muted); }

/* 실험실 */
.lab { background: var(--card); border-top: 2px solid var(--rule); border-bottom: 2px solid var(--rule); }
.tabs {
  display: flex; gap: 8px; margin-top: 28px; padding-bottom: 6px;
  overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.tabs [role="tab"] {
  flex: 0 0 auto; scroll-snap-align: start;
  display: grid; gap: 0; text-align: left;
  min-width: 132px; padding: 10px 14px;
  background: var(--paper); color: var(--ink);
  border: 2px solid var(--rule); border-radius: 6px;
  font: inherit; cursor: pointer;
}
.tabs [role="tab"] b { font-size: 19px; color: var(--accent); font-weight: 700; line-height: 1.3; }
.tabs [role="tab"] span { font-size: 14px; color: var(--muted); font-weight: 500; }
.tabs [role="tab"][aria-selected="true"] { background: var(--ink); color: var(--paper); }
.tabs [role="tab"][aria-selected="true"] span { color: #d9d1c1; }
.tabs [role="tab"][aria-selected="true"] b { color: #ff8a4c; }
.tabs [role="tab"]:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.panel { display: grid; gap: 28px; margin-top: 18px; padding: 20px; background: var(--paper); border: 2px solid var(--rule); border-radius: 8px; }
.panel[hidden] { display: none; }
.stage { position: relative; background: var(--white); border: 1px solid var(--rule); border-radius: 6px; padding: 10px; }
.stage svg { display: block; width: 100%; height: auto; touch-action: none; user-select: none; -webkit-user-select: none; }
.car-svg:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.hint { font-size: 14px; color: var(--muted); text-align: center; margin-top: 6px; }
.controls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.result { margin-top: 12px; min-height: 1.65em; font-weight: 700; }
.result.good { color: var(--leaf-ink); }

.readout { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.readout div { display: grid; justify-items: center; padding: 10px 6px; background: var(--white); border: 1px solid var(--soft-rule); border-radius: 6px; }
.readout span { font-size: 13px; color: var(--muted); font-weight: 500; }
.readout strong { font-size: 30px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.readout small { font-size: 12px; color: var(--muted); }
.readout div:nth-child(1) strong { color: var(--accent); }
.readout div:nth-child(2) strong { color: #c2457a; }
.readout div:nth-child(3) strong { color: #2b7fae; }

.info-col .topic { font-size: 14px; font-weight: 700; color: var(--muted); }
.info-col .q { font-size: clamp(22px, 5vw, 28px); line-height: 1.3; margin: 6px 0 12px; }
.info-col > p { color: var(--ink); }
.caveat { margin-top: 10px; font-size: 14px; color: var(--muted); }
.voices { display: grid; gap: 8px; margin-top: 18px; }
.voices li {
  position: relative; padding: 10px 14px 10px 16px;
  background: var(--white); border-left: 4px solid var(--accent); border-radius: 0 6px 6px 0;
  font-weight: 500; line-height: 1.5;
}
.voices small, .door-lists small { margin-left: 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.mini { margin-top: 16px; }
.mini img { width: 100%; border: 1px solid var(--rule); border-radius: 4px; aspect-ratio: 4 / 3; object-fit: cover; }
.mini video.clip { aspect-ratio: 4 / 3; object-fit: cover; }
.mini-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mini-pair .mini { margin-top: 16px; }

/* 곰: 원인 버튼 */
.causes { display: grid; gap: 10px; margin-top: 12px; }
.causes fieldset { margin: 0; padding: 10px 12px 12px; border: 1px solid var(--soft-rule); border-radius: 6px; background: var(--white); display: flex; flex-wrap: wrap; gap: 6px; }
.causes legend { padding: 0 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.cause {
  font: inherit; font-size: 15px; font-weight: 500; cursor: pointer;
  padding: 7px 12px; border-radius: 999px; border: 2px solid var(--rule); background: var(--paper); color: var(--ink);
}
.cause[data-side="L"][aria-pressed="true"] { background: var(--leaf); border-color: var(--leaf-ink); color: var(--leaf-ink); }
.cause[data-side="R"][aria-pressed="true"] { background: var(--stone); border-color: #6a6358; }
.cause[aria-pressed="true"]::before { content: "✓ "; font-weight: 700; }

/* 문 열기 */
.door-stage { padding: 18px 14px 10px; }
.house { position: relative; max-width: 360px; margin: 0 auto; }
.roof { height: 44px; background: #d97a5b; clip-path: polygon(50% 0, 100% 100%, 0 100%); border-radius: 2px; }
.sign { text-align: center; font-size: 13px; font-weight: 700; padding: 4px 0; background: var(--white); border: 1px solid var(--rule); border-radius: 4px; width: 66%; margin: -6px auto 8px; position: relative; }
.doorway { position: relative; aspect-ratio: 560 / 571; border: 3px solid var(--rule); border-radius: 4px; overflow: hidden; perspective: 900px; background: #f0e9d8; }
.doorway img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.door {
  position: absolute; top: 0; bottom: 0; width: 50%; padding: 0;
  border: 0; cursor: pointer; font: inherit;
  background: repeating-linear-gradient(90deg, #f7f2e7 0 18px, #efe7d6 18px 20px);
  box-shadow: inset 0 0 0 2px var(--rule);
  transition: transform 0.7s cubic-bezier(.3,.7,.2,1);
  display: grid; place-items: center;
}
.door span { font-size: 15px; font-weight: 700; color: var(--muted); background: var(--white); padding: 4px 10px; border: 1px solid var(--soft-rule); border-radius: 4px; }
.door::after { content: ""; position: absolute; top: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.door-l { left: 0; transform-origin: left center; }
.door-l::after { right: 12px; }
.door-r { right: 0; transform-origin: right center; }
.door-r::after { left: 12px; }
.door-l[aria-pressed="true"] { transform: rotateY(-108deg); }
.door-r[aria-pressed="true"] { transform: rotateY(108deg); }
.door:focus-visible { outline: 3px solid var(--accent); outline-offset: -4px; }
.door-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; opacity: 0.35; transition: opacity 0.4s; }
.door-lists.shown { opacity: 1; }
.door-lists > div { background: var(--white); border: 1px solid var(--soft-rule); border-radius: 6px; padding: 12px 14px; }
.door-lists h4 { font-size: 14px; margin: 0 0 6px; }
.door-lists > div:first-child h4 { color: var(--leaf-ink); }
.door-lists > div:last-child h4 { color: #a33a1b; }
.door-lists li { font-size: 15px; padding: 3px 0; border-bottom: 1px dashed var(--soft-rule); }
.door-lists li:last-child { border-bottom: 0; }

/* 검 */
.steps-line { counter-reset: s; display: grid; gap: 4px; margin: 10px 4px 2px; }
.steps-line li { counter-increment: s; position: relative; padding: 4px 0 4px 34px; font-size: 15px; color: var(--muted); }
.steps-line li::before { content: counter(s); position: absolute; left: 0; top: 4px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; border: 2px solid var(--soft-rule); color: var(--muted); background: var(--white); }
.steps-line li.done { color: var(--ink); }
.steps-line li.done::before { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.steps-line li.now { color: var(--ink); font-weight: 700; }
.steps-line li.now::before { background: var(--accent); border-color: var(--accent); color: var(--white); }
.promise { margin-top: 16px; padding: 14px 16px; background: var(--white); border: 2px solid var(--rule); border-radius: 6px; }
.promise h4 { margin: 0 0 6px; font-size: 16px; }
.promise ol { list-style: decimal; padding-left: 22px; display: grid; gap: 2px; }

/* 수업 현장 */
.field { background: var(--paper-deep); border-top: 1px solid var(--soft-rule); border-bottom: 1px solid var(--soft-rule); }
.sessions { display: grid; gap: 10px; margin-top: 28px; }
.sessions li { display: grid; grid-template-columns: 56px 1fr; column-gap: 12px; padding: 14px 16px; background: var(--card); border: 1px solid var(--rule); border-radius: 6px; }
.sessions time { grid-row: span 3; font-size: 24px; font-weight: 700; line-height: 1.2; }
.sessions .who { font-size: 14px; color: var(--muted); font-weight: 700; }
.sessions .what { font-weight: 700; }
.sessions .say { color: var(--muted); font-size: 15px; }
.mosaic { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 28px; }
.mosaic figure { margin: 0; }
.mosaic img, .mosaic video.clip { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border: 1px solid var(--rule); border-radius: 4px; }
.mosaic .m-wide { grid-column: span 2; }
.mosaic .m-wide video.clip { aspect-ratio: 16 / 9; }

/* 기관 수업 */
.class-box { display: grid; gap: 32px; padding: 28px 20px; background: var(--card); border: 2px solid var(--rule); border-radius: 8px; box-shadow: 8px 8px 0 var(--book-yellow); }
.timebar { display: flex; gap: 3px; margin-top: 24px; font-size: 13px; font-weight: 700; }
.timebar span { display: grid; align-content: end; min-width: 0; padding: 8px 6px; min-height: 64px; background: var(--paper-deep); border: 1px solid var(--rule); border-radius: 4px; line-height: 1.25; overflow-wrap: anywhere; }
.timebar span b { display: block; font-size: 20px; }
.timebar span.hot { background: var(--accent); color: var(--white); border-color: var(--accent); }
.age-h { margin-bottom: 12px; }
.ages { display: grid; gap: 8px; }
.ages li { display: grid; gap: 2px; padding: 12px 14px; background: var(--paper); border: 1px solid var(--soft-rule); border-radius: 6px; }
.ages .verb { font-size: 16px; }
.ages p { font-size: 15px; }
.strip { margin-top: 24px; }

@media (min-width: 720px) {
  .panel { padding: 28px; }
  .sessions { grid-template-columns: repeat(5, 1fr); }
  .sessions li { grid-template-columns: 1fr; row-gap: 2px; align-content: start; }
  .sessions time { grid-row: auto; font-size: 28px; }
  .mosaic { grid-template-columns: repeat(4, 1fr); }
  .mosaic .m-wide { grid-column: span 2; grid-row: span 2; }
  .mosaic .m-wide video.clip { aspect-ratio: auto; height: 100%; }
  .class-box { grid-template-columns: 1.15fr 1fr; padding: 44px; align-items: start; }
}
@media (min-width: 960px) {
  .panel { grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: start; }
  .tabs { overflow: visible; }
  .tabs [role="tab"] { flex: 1 1 0; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .door, .door-lists { transition: none; }
}

/* SVG 글자 · 움직임 */
.svg-label { font-family: "Paperlogy", "Apple SD Gothic Neo", sans-serif; font-size: 15px; fill: var(--ink); }
.svg-label.strong { font-size: 17px; font-weight: 700; }
.svg-label.small { font-size: 14px; fill: var(--muted); }
.svg-label.tiny { font-size: 11px; font-weight: 700; }
.gear-svg { cursor: grab; }
.gear-svg.grabbing { cursor: grabbing; }
.car-svg { cursor: pointer; }
#sword-svg .part, #sword-svg .fold, #sword-svg line { transition: transform 0.6s cubic-bezier(.3,.7,.2,1), opacity 0.4s; }
.bear { transition: opacity 0.5s 0.3s; }
.controls .btn:disabled { opacity: 0.4; cursor: default; }
.controls .btn:disabled:hover { background: transparent; color: var(--ink); border-color: var(--ink); }
.controls .btn:not(.btn-line):disabled:hover { background: var(--ink); color: var(--paper); }
@media (min-width: 720px) {
  .mosaic .m-wide video.clip { aspect-ratio: 1 / 1; height: auto; }
}
@media (prefers-reduced-motion: reduce) {
  #sword-svg .part, #sword-svg .fold, #sword-svg line, .bear { transition: none; }
}

/* 머리 메뉴: 중간 폭에서 글자가 쪼개지지 않게 (11/19) */
.nav a, .btn { white-space: nowrap; }
@media (min-width: 720px) and (max-width: 979px) {
  .nav { display: none; }
  .top .btn-small { margin-left: auto; }
}
