/* ===== 비개발자 코딩 시연 교실 — 공통 포털 스타일 (light-note) ===== */
/* Pretendard 가변 폰트 self-host (레드블루 2026-06-20: jsdelivr 의존·SRI 부재·프라이버시 누출 제거) */
@font-face{ font-family:'Pretendard'; font-weight:45 920; font-style:normal; font-display:swap; src:url('/fonts/PretendardVariable.woff2') format('woff2'); }

:root{
  --bg:#F7F5F0; --fg:#1A1A1A; --accent:#2563EB; --accent2:#5EEAD4;
  --muted:#5B6470; --muted-strong:#4B5563; --line:#E2DED5; --card:#FFFFFF;
  --good:#16A34A; --bad:#DC2626; --lock:#9AA1AC; --lock-bg:#EFEDE7;
  --shadow:0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  --maxw:1100px;
  --font:'Pretendard','Pretendard Variable',-apple-system,BlinkMacSystemFont,'Apple SD Gothic Neo','Malgun Gothic',sans-serif;
}
*{ box-sizing:border-box; }
.sr-only{ position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
html,body{ margin:0; padding:0; }
body{
  background:var(--bg); color:var(--fg);
  font-family:var(--font); font-weight:500; line-height:1.6;
  word-break:keep-all; -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
}
a{ color:inherit; text-decoration:none; }
.wrap{ max-width:var(--maxw); margin:0 auto; padding:34px 22px 90px; }

/* ===== 헤더 ===== */
.top{ text-align:center; margin-bottom:30px; }
.top .crumb{ display:inline-flex; align-items:center; gap:6px; color:var(--muted); font-weight:700;
  font-size:14px; margin-bottom:14px; }
.top .crumb a{ color:var(--accent); }
.top .crumb a:hover{ text-decoration:underline; }
.top .kicker{ color:var(--accent); font-weight:800; letter-spacing:.04em; font-size:14px; }
.top h1{ color:var(--fg); font-size:clamp(26px,3.6vw,42px); font-weight:900; margin:8px 0 6px; line-height:1.18; }
.top p.sub{ color:var(--muted-strong); font-size:clamp(15px,1.9vw,19px); margin:0 auto; max-width:680px; }
.attrib{ display:inline-block; margin-top:14px; padding:5px 13px; border-radius:999px;
  background:#fff; border:1px solid var(--line); color:var(--muted); font-size:12.5px; font-weight:700; }

/* ===== 상단 CTA 바 (홈) ===== */
.ctabar{ display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin:0 0 26px; }
.cta-btn{ display:inline-flex; align-items:center; gap:8px; font-family:inherit; font-weight:800;
  font-size:15px; line-height:1; padding:13px 22px; border-radius:999px; text-decoration:none;
  border:1.5px solid transparent; box-shadow:var(--shadow);
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease; }
.cta-btn:hover{ transform:translateY(-2px); box-shadow:0 6px 20px rgba(0,0,0,.15); }
.cta-btn .ico{ font-size:17px; line-height:1; }
.cta-btn.site{ background:var(--accent); color:#fff; }
.cta-btn.site:hover{ background:#1d4fd0; }
.cta-btn.yt{ background:#D70000; color:#fff; }
.cta-btn.yt:hover{ background:#b80000; }

/* ===== 용어사전 진입 배너 (헤더 아래) ===== */
.dict-banner{ display:flex; align-items:center; gap:18px; margin:0 0 24px;
  background:linear-gradient(100deg,#FEF6E7 0%,#FBE9CC 100%);
  border:1.5px solid #F1DCB0; border-radius:20px; padding:18px 22px; text-decoration:none; color:inherit;
  box-shadow:0 1px 3px rgba(146,64,14,.05);
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.dict-banner:hover{ transform:translateY(-2px); border-color:#D9A441;
  box-shadow:0 2px 6px rgba(146,64,14,.08), 0 16px 34px rgba(146,64,14,.13); }
.dict-banner .db-ic{ flex:0 0 auto; width:56px; height:56px; border-radius:16px;
  display:grid; place-items:center; font-size:30px; background:#fff; border:1px solid #F1DCB0; }
.dict-banner .db-body{ flex:1; min-width:0; }
.dict-banner .db-head{ display:flex; align-items:center; gap:9px; flex-wrap:wrap; }
.dict-banner .db-title{ font-size:clamp(17px,2.1vw,20px); font-weight:900; color:#7C4A12; line-height:1.2; }
.dict-banner .db-new{ font-size:11px; font-weight:800; color:#fff; background:#C2410C; border-radius:999px; padding:2px 9px; letter-spacing:.04em; }
.dict-banner .db-desc{ font-size:14.5px; color:#92400E; margin:5px 0 0; line-height:1.5; }
.dict-banner .db-desc b{ font-weight:800; color:#7C4A12; }
.dict-banner .db-cta{ flex:0 0 auto; display:inline-flex; align-items:center; gap:6px;
  font-weight:800; font-size:15px; color:#fff; background:#B45309; border-radius:999px; padding:13px 21px; white-space:nowrap;
  transition:background .15s ease; }
.dict-banner:hover .db-cta{ background:#92400E; }

/* ===== 기본서 배너 (.book) — 사전은 앰버, 기본서는 초록으로 역할 구분 ===== */
.dict-banner.book{ background:linear-gradient(100deg,#EAF7F1 0%,#D6EEE2 100%);
  border-color:#A8DCC4; box-shadow:0 1px 3px rgba(15,122,79,.05); margin-bottom:14px; }
.dict-banner.book:hover{ border-color:#4CAE86;
  box-shadow:0 2px 6px rgba(15,122,79,.08), 0 16px 34px rgba(15,122,79,.13); }
.dict-banner.book .db-ic{ border-color:#A8DCC4; }
.dict-banner.book .db-title{ color:#0B5B3B; }
.dict-banner.book .db-new{ background:#0f7a4f; }
.dict-banner.book .db-desc{ color:#15694A; }
.dict-banner.book .db-desc b{ color:#0B5B3B; }
.dict-banner.book .db-cta{ background:#0f7a4f; }
.dict-banner.book:hover .db-cta{ background:#0B5B3B; }

/* ===== Jev 가이드 배너 (.jev) — 판단·확률을 떠올리는 인디고 ===== */
.dict-banner.jev{ background:linear-gradient(100deg,#F3F0FF 0%,#E8E3FF 100%);
  border-color:#C9BDF4; box-shadow:0 1px 3px rgba(67,42,122,.06); }
.dict-banner.jev:hover{ border-color:#8F78D4;
  box-shadow:0 2px 6px rgba(67,42,122,.09), 0 16px 34px rgba(67,42,122,.14); }
.dict-banner.jev .db-ic{ border-color:#C9BDF4; }
.dict-banner.jev .db-title{ color:#432A7A; }
.dict-banner.jev .db-new{ background:#6546B8; font-size:12px; }
.dict-banner.jev .db-desc{ color:#5B428A; }
.dict-banner.jev .db-desc b{ color:#432A7A; }
.dict-banner.jev .db-cta{ background:#5B3BB5; }
.dict-banner.jev:hover .db-cta{ background:#432A7A; }

/* ===== 모션 주문 사전 배너 (.motion) — 영상·방송을 떠올리는 로즈 ===== */
.dict-banner.motion{ background:linear-gradient(100deg,#FFF0F2 0%,#FFE1E7 100%);
  border-color:#F7C5CF; box-shadow:0 1px 3px rgba(138,28,51,.06); }
.dict-banner.motion:hover{ border-color:#E27A90;
  box-shadow:0 2px 6px rgba(138,28,51,.09), 0 16px 34px rgba(138,28,51,.14); }
.dict-banner.motion .db-ic{ border-color:#F7C5CF; }
.dict-banner.motion .db-title{ color:#8A1C33; }
.dict-banner.motion .db-new{ background:#C2294A; }
.dict-banner.motion .db-desc{ color:#8F2940; }
.dict-banner.motion .db-desc b{ color:#8A1C33; }
.dict-banner.motion .db-cta{ background:#C2294A; }
.dict-banner.motion:hover .db-cta{ background:#8A1C33; }

/* 코덱스 정석(자매편) — 클로드 정석(초록) 옆 짝, 파랑 계열 (2026-10-01) */
.dict-banner.codex{ background:linear-gradient(100deg,#EAF3FB 0%,#D9E9F7 100%);
  border-color:#B6D3EE; box-shadow:0 1px 3px rgba(31,111,178,.05); }
.dict-banner.codex:hover{ border-color:#5B9BD5;
  box-shadow:0 2px 6px rgba(31,111,178,.08), 0 16px 34px rgba(31,111,178,.13); }
.dict-banner.codex .db-ic{ border-color:#B6D3EE; }
.dict-banner.codex .db-title{ color:#123F6B; }
.dict-banner.codex .db-new{ background:#1F6FB2; }
.dict-banner.codex .db-desc{ color:#24527F; }
.dict-banner.codex .db-desc b{ color:#123F6B; }
.dict-banner.codex .db-cta{ background:#1F6FB2; }
.dict-banner.codex:hover .db-cta{ background:#123F6B; }

/* ===== 홈 섹션 제목 + 「바로 쓰는 자료」 2열 격자 (2026-09-25 홈 정리) =====
   자료가 늘어도 첫 화면이 배너로 덮이지 않게: 가로 배너 → 2열 카드. 휴대폰은 1열. */
.hub-sec{ display:flex; align-items:baseline; gap:4px 10px; flex-wrap:wrap; font-size:clamp(19px,2.3vw,23px);
  font-weight:900; margin:0 0 14px; color:var(--fg); line-height:1.3; }
.hub-sec small{ font-size:13.5px; font-weight:700; color:var(--muted); }
.res{ margin:0 0 34px; }
.res-grid{ display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:14px; }
.res-grid > .dict-banner:last-child:nth-child(odd){ grid-column:1 / -1; }
.res-grid .dict-banner{ display:grid; grid-template-columns:48px minmax(0,1fr); grid-template-rows:1fr auto;
  grid-template-areas:"ic body" "ic cta"; column-gap:14px; row-gap:12px; align-items:start;
  margin:0; padding:18px; height:100%; }
.res-grid .dict-banner .db-ic{ grid-area:ic; width:48px; height:48px; font-size:26px; border-radius:14px; }
.res-grid .dict-banner .db-body{ grid-area:body; }
.res-grid .dict-banner .db-title{ font-size:clamp(16.5px,1.9vw,18.5px); line-height:1.3; }
.res-grid .dict-banner .db-desc{ font-size:14px; margin-top:6px; }
.res-grid .dict-banner .db-cta{ grid-area:cta; justify-self:start; align-self:end; padding:10px 17px; font-size:14px; }
@media (max-width:720px){
  .res-grid{ grid-template-columns:1fr; }
}
/* 휴대폰: 자료 카드를 납작하게(설명 2줄·버튼 대신 제목 옆 →) — 카드 4장이 강의 시즌을 한참 밀어내지 않게. 카드 전체가 링크라 누르면 열림 */
@media (max-width:560px){
  .res-grid{ gap:10px; }
  .res-grid .dict-banner{ grid-template-areas:"ic body"; grid-template-rows:auto; column-gap:12px; padding:13px 14px; }
  .res-grid .dict-banner .db-ic{ width:42px; height:42px; font-size:22px; border-radius:12px; }
  .res-grid .dict-banner .db-cta{ display:none; }
  .res-grid .dict-banner .db-title::after{ content:" →"; }
  .res-grid .dict-banner .db-desc{ font-size:13.5px; margin-top:4px; display:-webkit-box; -webkit-line-clamp:2; line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
}

/* ===== 카드 그리드 ===== */
.grid{ display:grid; gap:18px; grid-template-columns:repeat(auto-fill, minmax(280px,1fr)); }

/* 공통 카드 */
.card{
  position:relative; background:var(--card); border:1px solid var(--line); border-radius:20px;
  padding:22px 22px 20px; box-shadow:var(--shadow); transition:transform .16s ease, box-shadow .16s ease;
  display:flex; flex-direction:column; min-height:178px;
}
.card.clickable{ cursor:pointer; }
.card.clickable:hover{ transform:translateY(-3px); box-shadow:0 2px 6px rgba(0,0,0,.06), 0 16px 36px rgba(0,0,0,.10); border-color:#cfd8ea; z-index:3; }
.card .no{ font-size:13px; font-weight:800; color:var(--accent); letter-spacing:.03em; }
.card h3{ font-size:clamp(18px,2.1vw,22px); font-weight:900; margin:7px 0 4px; color:var(--fg); line-height:1.25; }
.card .meta{ font-size:14.5px; color:var(--muted-strong); margin:0 0 14px; }
.card .spacer{ flex:1; }
.card .row{ display:flex; gap:8px; flex-wrap:wrap; align-items:center; }

/* 배지 */
.badge{ display:inline-flex; align-items:center; gap:5px; font-size:12.5px; font-weight:800;
  padding:4px 10px; border-radius:999px; }
.badge.open{ background:#E7F1FF; color:var(--accent); }
.badge.go{ background:#E7F6EF; color:#166534; }
.badge.soon{ background:var(--lock-bg); color:#5B6168; }
.badge.priv{ background:#EDE9FE; color:#7C3AED; }

/* 버튼 */
.btn{ position:relative; display:inline-flex; align-items:center; gap:5px; font-family:inherit; font-weight:800;
  font-size:14px; padding:8px 11px; border-radius:11px; border:1px solid transparent; cursor:pointer; white-space:nowrap;
  transition:background .15s ease, border-color .15s ease, color .15s ease; }
.btn.primary{ background:var(--accent); color:#fff; }
.btn.primary:hover{ background:#1d4fd0; }
.btn.ghost{ background:#fff; color:var(--fg); border-color:var(--line); }
.btn.ghost:hover{ border-color:var(--accent); color:var(--accent); }
.btn.yt{ background:#fff; color:#cc2222; border-color:#f0d4d4; }
.btn.yt:hover{ border-color:#cc2222; }
.btn.dict{ background:#FEF6E7; color:#92400E; border-color:#F1DCB0; }
.btn.dict:hover{ border-color:#D9A441; color:#7C4A12; }

/* 버튼 말풍선 툴팁 (마우스 올리면 버튼 설명) */
.btn[data-tip]::after{
  content:attr(data-tip);
  position:absolute; left:50%; bottom:calc(100% + 10px); transform:translateX(-50%) translateY(4px);
  background:#0F172A; color:#fff; font-size:12.5px; font-weight:700; line-height:1.45;
  padding:8px 11px; border-radius:10px; width:max-content; max-width:188px; white-space:normal; text-align:center;
  box-shadow:0 8px 22px rgba(15,23,42,.30);
  opacity:0; visibility:hidden; pointer-events:none; transition:opacity .16s ease, transform .16s ease; z-index:60; }
.btn[data-tip]::before{
  content:""; position:absolute; left:50%; bottom:calc(100% + 4px); transform:translateX(-50%) translateY(4px);
  border:6px solid transparent; border-top-color:#0F172A;
  opacity:0; visibility:hidden; pointer-events:none; transition:opacity .16s ease, transform .16s ease; z-index:60; }
.btn[data-tip]:hover::after, .btn[data-tip]:hover::before{ opacity:1; visibility:visible; transform:translateX(-50%) translateY(0); }

/* 잠금 카드 */
.card.locked{ background:var(--lock-bg); border-style:dashed; border-color:#d9d4c8; box-shadow:none; }
.card.locked h3{ color:#4B5563; }
.card.locked .no{ color:#4B5563; }
.card.locked .lockmsg{ display:flex; align-items:center; gap:7px; color:#4B5563;
  font-size:13.5px; font-weight:700; margin-top:auto; }
.card .lockicon{ position:absolute; top:18px; right:20px; font-size:20px; opacity:.55; }

/* coming 시리즈 카드 */
.card.coming{ background:var(--lock-bg); border-style:dashed; border-color:#d9d4c8; box-shadow:none; }
.card.coming h3{ color:#4B5563; }
.card.coming .no{ color:#1E40AF; }

/* 시리즈 카드 큰 이모지 */
.card .emoji{ font-size:30px; line-height:1; margin-bottom:4px; }

/* 푸터 */
.foot{ text-align:center; color:var(--muted-strong); font-size:13px; margin-top:46px; }
.foot a{ color:var(--accent); text-decoration:underline; text-underline-offset:2px; }

/* ===== 비공개 시즌 비밀번호 게이트 ===== */
.gate{ max-width:420px; margin:34px auto 0; background:var(--card); border:1px solid var(--line); border-radius:20px;
  padding:34px 28px; text-align:center; box-shadow:var(--shadow); }
.gate-ic{ font-size:42px; line-height:1; }
.gate-msg{ color:var(--muted); font-size:15px; margin:10px 0 0; }
.gate-input{ width:100%; box-sizing:border-box; margin:20px 0 12px; padding:13px 16px; font-family:inherit; font-size:16px;
  color:var(--fg); background:#fff; border:1px solid var(--line); border-radius:12px; }
.gate-input:focus{ outline:none; border-color:var(--accent); }
.gate-btn{ width:100%; padding:13px; font-family:inherit; font-weight:800; font-size:16px; color:#fff;
  background:var(--accent); border:none; border-radius:12px; cursor:pointer; }
.gate-btn:hover{ background:#1d4fd0; }
.gate-err{ color:var(--bad); font-size:14px; font-weight:700; margin-top:10px; min-height:18px; }

/* ===== 쇼케이스 (시즌 아래 별도 섹션 · 현장 라이브 데모) ===== */
.showcase{ margin-top:52px; }
.sc-divider{ display:flex; align-items:center; gap:14px; margin:0 0 18px; }
.sc-divider::before, .sc-divider::after{ content:""; flex:1; height:1px; background:var(--line); }
.sc-kicker{ color:var(--muted-strong); font-weight:800; font-size:12px; letter-spacing:.16em; }
.sc-title{ text-align:center; font-size:clamp(21px,2.7vw,30px); font-weight:900; margin:0 0 5px; }
.sc-sub{ text-align:center; color:var(--muted-strong); font-size:15px; margin:0 0 22px; }
.sc-grid{ display:grid; gap:16px; grid-template-columns:1fr; max-width:780px; margin:0 auto; }
.sc-card{ display:flex; align-items:center; gap:20px; padding:24px 26px; border-radius:22px; text-decoration:none;
  background:linear-gradient(135deg,#0F172A 0%, #1E293B 100%); color:#fff; border:1px solid #26344E;
  box-shadow:0 14px 40px rgba(15,23,42,.22); transition:transform .16s ease, box-shadow .16s ease; }
.sc-card:hover{ transform:translateY(-3px); box-shadow:0 22px 54px rgba(15,23,42,.32); }
.sc-emoji{ width:64px; height:64px; border-radius:18px; flex-shrink:0; display:flex; align-items:center; justify-content:center;
  font-size:32px; background:rgba(94,234,212,.12); border:1px solid rgba(94,234,212,.28); }
.sc-meta{ flex:1; min-width:0; }
.sc-badge{ display:inline-block; background:rgba(94,234,212,.16); color:#5EEAD4; font-weight:800; font-size:12px;
  padding:4px 11px; border-radius:999px; margin-bottom:8px; }
.sc-meta h3{ color:#fff; font-size:clamp(19px,2.2vw,23px); font-weight:900; margin:0 0 4px; line-height:1.25; }
.sc-meta p{ color:#C3CAD6; font-size:14.5px; margin:0; }
.sc-cta{ flex-shrink:0; background:#fff; color:#0F172A; font-weight:800; font-size:14px; padding:11px 18px;
  border-radius:999px; white-space:nowrap; }

/* 잠긴 쇼케이스 카드 (영상 공개 전 예고) */
.sc-card.locked{ background:linear-gradient(135deg,#262B36 0%, #333A48 100%); border-color:#3B4250;
  box-shadow:0 8px 24px rgba(15,23,42,.14); cursor:default; }
.sc-card.locked:hover{ transform:none; box-shadow:0 8px 24px rgba(15,23,42,.14); }
.sc-card.locked .sc-emoji{ background:rgba(255,255,255,.06); border-color:rgba(255,255,255,.12); filter:grayscale(.35); opacity:.85; }
.sc-card.locked .sc-meta h3{ color:#E5E9F0; }
.sc-card.locked .sc-meta p{ color:#9AA3B2; }
.sc-badge.lock{ background:rgba(255,255,255,.10); color:#C3CAD6; }
.sc-cta.lock{ background:transparent; color:#C3CAD6; border:1px dashed #5A6373; font-weight:700; }

@media (max-width:560px){
  .sc-card{ flex-direction:column; align-items:flex-start; text-align:left; }
  .sc-cta{ align-self:stretch; text-align:center; }
  .wrap{ padding:26px 16px 70px; }
  .grid{ grid-template-columns:1fr; }
  .dict-banner{ flex-wrap:wrap; gap:13px; padding:16px; }
  .dict-banner .db-cta{ width:100%; justify-content:center; }
}

/* ===== 홈 히어로 슬로건 (hub 전용 신규 클래스 — series/404가 공유하는 .top/.kicker/.sub 기존 규칙은 불변) ===== */
.top .kicker.hero-kicker{ display:inline-flex; align-items:center; gap:7px; background:#fff;
  border:1px solid var(--line); border-radius:999px; padding:6px 14px; font-size:13px; }
.top h1.hero-h1{ font-size:clamp(28px,4.4vw,50px); font-weight:920; letter-spacing:-.015em;
  line-height:1.16; margin:14px auto 10px; max-width:820px; }
.hero-h1 .hl-a{ color:var(--accent); }
.top .hero-slogan2{ color:var(--fg); font-weight:800; font-size:clamp(16px,2.2vw,22px);
  line-height:1.5; margin:0 auto 10px; max-width:720px; }
.hero-slogan2 .hl-mark{ font-weight:900; padding:1px 5px; border-radius:5px;
  background:linear-gradient(180deg, rgba(253,230,138,0) 46%, #FDE68A 46%); }
.top p.sub.hero-fn{ font-size:clamp(13.5px,1.7vw,16px); color:var(--muted); }
@media (max-width:560px){
  .top h1.hero-h1{ letter-spacing:-.01em; }
}

/* ===== 바로 쓰는 자료실(/library/) + 홈 「자료실 입구」 — 2026-10-01 · 디자인 ① 미니멀 화이트 =====
   글자는 build.mjs 7.6·libEntryHtml이 catalog.library에서 새김. 이모지 아이콘 없이 강조색(--accent) 하나만 쓴다. */
.lb-entry{ margin:0 0 34px; }
.lb-eh{ display:flex; align-items:baseline; justify-content:space-between; gap:6px 16px; margin:0 0 14px; }
.lb-eh .hub-sec{ margin:0; }
.lb-all{ flex:none; font-size:15px; font-weight:800; color:var(--accent); white-space:nowrap; }
.lb-all:hover{ text-decoration:underline; text-underline-offset:3px; }
.lb-doors{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.lb-door{ min-width:0; background:#fff; border:1px solid var(--line); border-radius:18px; padding:12px 16px 6px; }
.lb-dk{ display:block; padding:2px 0 6px; font-size:13px; font-weight:800; letter-spacing:.04em; color:var(--muted); }
.lb-dk:hover{ color:var(--fg); }
.lb-di{ display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:46px; padding:8px 0; border-top:1px solid #EFEDE8; font-size:15.5px; font-weight:700; color:var(--fg); }
.lb-di .t{ min-width:0; }
a.lb-di .t::after{ content:" →"; color:#B5B9C0; font-weight:600; }
a.lb-di:hover .t{ text-decoration:underline; text-underline-offset:3px; }
.lb-di em{ flex:none; font-style:normal; font-size:13px; font-weight:700; color:var(--muted); font-variant-numeric:tabular-nums; }
.lb-di.is-soon{ color:#9AA1AC; }
@media (max-width:760px){
  .lb-doors{ grid-template-columns:1fr; gap:10px; }
  .lb-eh{ align-items:flex-end; }
  .lb-eh .hub-sec small{ flex-basis:100%; }
  .lb-all .lg{ display:none; }
  .lb-door{ padding:10px 14px 4px; }
  .lb-di{ min-height:44px; }
}

body.lb-page{ background:#fff; }
.lb-wrap{ max-width:980px; margin:0 auto; padding:28px 22px 90px; }
.lb-crumb{ display:flex; align-items:center; flex-wrap:wrap; gap:6px; font-size:13.5px; font-weight:600; color:var(--muted); }
.lb-crumb a{ color:var(--muted); }
.lb-crumb a:hover{ color:var(--fg); text-decoration:underline; }
.lb-crumb [aria-current]{ color:var(--fg); }
.lb-hd{ margin:16px 0 4px; }
.lb-kick{ margin:0; font-size:13px; font-weight:600; letter-spacing:.03em; color:var(--muted); }
.lb-ttl{ margin:6px 0 10px; font-size:clamp(32px,5vw,46px); font-weight:900; letter-spacing:-.045em; line-height:1.12; color:var(--fg); }
.lb-sub{ margin:0; max-width:640px; font-size:clamp(15px,1.8vw,17px); line-height:1.6; color:var(--muted-strong); }
.lb-steps{ list-style:none; margin:24px 0 10px; padding:0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border-top:1px solid #EBEBEB; border-bottom:1px solid #EBEBEB; }
.lb-steps li{ display:flex; align-items:center; gap:12px; min-width:0; padding:14px 16px; }
.lb-steps li + li{ border-left:1px solid #EBEBEB; }
.lb-steps b{ flex:none; display:grid; place-items:center; width:24px; height:24px; border-radius:50%; background:var(--fg); color:#fff; font-size:12.5px; font-weight:800; }
.lb-steps strong{ display:block; font-size:15.5px; font-weight:800; color:var(--fg); }
.lb-steps small{ display:block; font-size:13px; line-height:1.4; color:var(--muted); }
.lb-first{ margin:0; font-size:14px; color:var(--muted); }
.lb-first a{ color:var(--accent); font-weight:700; text-decoration:underline; text-underline-offset:3px; }
.lb-chips{ position:sticky; top:0; z-index:5; display:flex; gap:22px; overflow-x:auto; margin:16px 0 0; border-bottom:1px solid #EBEBEB; background:#fff; scrollbar-width:none; }
.lb-chips::-webkit-scrollbar{ display:none; }
.lb-chips a{ flex:none; display:inline-flex; align-items:center; min-height:46px; margin-bottom:-1px; border-bottom:2px solid transparent; font-size:15px; font-weight:700; color:var(--muted); white-space:nowrap; }
.lb-chips a i{ margin-left:5px; font-style:normal; font-weight:600; color:#B5B9C0; }
.lb-chips a:hover, .lb-chips a.on{ color:var(--fg); border-bottom-color:var(--fg); }
.lb-sec{ margin:36px 0 0; scroll-margin-top:62px; }
.lb-sh{ display:flex; align-items:baseline; flex-wrap:wrap; gap:2px 10px; margin:0 0 14px; }
.lb-sh-t{ font-size:22px; font-weight:900; letter-spacing:-.03em; color:var(--fg); }
.lb-sh-s{ font-size:14px; font-weight:500; color:var(--muted); }
.lb-grid, .lb-rows{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.lb-card{ position:relative; display:flex; flex-direction:column; gap:8px; min-width:0; padding:18px; border-radius:20px; background:#F5F5F7; color:var(--fg); transition:background .15s ease; }
a.lb-card:hover{ background:#EDEDF0; }
.lb-img{ display:block; width:100%; max-width:100%; height:auto; aspect-ratio:16/9; object-fit:cover; border-radius:12px; background:#1b4a30; }
.lb-ph{ display:grid; place-items:center; width:100%; aspect-ratio:16/9; border-radius:12px; background:#ECECEF; color:#8A8F98; font-size:14px; font-weight:700; }
/* 내용 미리보기(썸네일이 없을 때) — 그 페이지의 실제 제목·소제목을 작은 화면처럼 */
.lb-pv{ display:flex; flex-direction:column; width:100%; aspect-ratio:16/9; overflow:hidden; border-radius:12px; background:#fff; border:1px solid #E6E6EA; container-type:inline-size; }
.lb-pv-bar{ flex:none; display:flex; align-items:center; gap:5px; height:24px; padding:0 10px; background:#F0F0F3; border-bottom:1px solid #E6E6EA; font-size:11px; font-weight:600; color:#8A8F98; }
.lb-pv-bar i{ flex:none; width:7px; height:7px; border-radius:50%; background:#D3D5DA; }
.lb-pv-bar span{ margin-left:6px; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.lb-pv-body{ display:flex; flex-direction:column; gap:4px; min-height:0; padding:12px 14px; }
.lb-pv-k{ font-size:11.5px; font-weight:800; letter-spacing:.03em; color:var(--accent); }
.lb-pv-t{ font-size:17px; font-weight:900; letter-spacing:-.03em; line-height:1.25; color:var(--fg); display:-webkit-box; -webkit-line-clamp:2; line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.lb-pv-ul{ display:flex; flex-direction:column; gap:3px; margin-top:6px; padding-top:8px; border-top:1px solid #EFEFF2; }
.lb-pv-li{ position:relative; padding-left:11px; font-size:13px; font-weight:600; line-height:1.5; color:#555B64; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.lb-pv-li::before{ content:""; position:absolute; left:0; top:.62em; width:4px; height:4px; border-radius:50%; background:#B5B9C0; }
@container (max-width:380px){
  .lb-pv-body{ padding:10px 12px; }
  .lb-pv-t{ font-size:15.5px; -webkit-line-clamp:1; line-clamp:1; }
  .lb-pv-li:nth-child(n+4){ display:none; }
}
.lb-ch{ display:flex; align-items:center; flex-wrap:wrap; gap:4px 8px; }
.lb-t{ margin:0; font-size:18.5px; font-weight:800; letter-spacing:-.02em; line-height:1.3; }
.lb-bd{ font-style:normal; font-size:12.5px; font-weight:700; color:var(--accent); }
.lb-d{ display:block; font-size:14.5px; line-height:1.6; color:#555B64; }
.lb-cm{ display:flex; align-items:baseline; flex-wrap:wrap; gap:2px 6px; font-size:13px; font-weight:600; color:var(--muted); }
.lb-num{ font-size:30px; font-weight:900; letter-spacing:-.03em; line-height:1; color:var(--fg); font-variant-numeric:tabular-nums; }
.lb-unit{ margin-right:4px; font-size:14px; font-weight:800; color:var(--fg); }
.lb-cta{ align-self:flex-start; margin-top:auto; padding-top:4px; font-size:15px; font-weight:700; color:var(--accent); }
a.lb-card:hover .lb-cta, a.lb-cta:hover{ text-decoration:underline; text-underline-offset:3px; }
.lb-card.is-soon .lb-t{ color:#8A8F98; }
.lb-row{ display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:6px 14px; }
.lb-rb{ display:flex; flex-direction:column; gap:6px; min-width:0; }
.lb-go{ font-size:20px; color:#B5B9C0; }
a.lb-row:hover .lb-go{ color:var(--fg); }
.lb-lessons{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.lb-ls{ display:block; min-width:0; padding:16px; border:1px solid #EBEBEB; border-radius:16px; color:var(--fg); }
a.lb-ls:hover{ border-color:var(--fg); }
.lb-ls small{ display:block; font-size:12.5px; font-weight:700; color:var(--accent); }
.lb-ls b{ display:block; margin:2px 0 4px; font-size:17px; font-weight:800; }
.lb-ls span{ display:block; font-size:13.5px; line-height:1.45; color:var(--muted); }
.lb-ls.is-soon{ background:#F5F5F7; border-color:transparent; }
.lb-ls.is-soon small{ color:var(--muted); }
.lb-foot{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px 16px; margin-top:48px; padding-top:18px; border-top:1px solid #EBEBEB; font-size:13.5px; color:var(--muted); }
.lb-foot p{ margin:0; }
.lb-foot a{ color:var(--muted); }
.lb-foot a:hover{ color:var(--fg); text-decoration:underline; }
.lb-wrap a:focus-visible, .lb-entry a:focus-visible{ outline:3px solid #93B4F5; outline-offset:2px; border-radius:8px; }
@media (max-width:760px){
  .lb-grid, .lb-rows, .lb-lessons{ grid-template-columns:1fr; }
  .lb-ph{ display:none; }
}
@media (max-width:560px){
  .lb-wrap{ padding:22px 16px 80px; }
  .lb-steps li{ flex-direction:column; justify-content:center; gap:6px; padding:12px 4px; text-align:center; }
  .lb-steps small{ display:none; }
  .lb-steps strong{ font-size:14.5px; }
  .lb-card{ padding:16px; }
  .lb-num{ font-size:28px; }
}
