/* 특강 다시보기 — jaejinkim.com/lectures */
:root {
  --bg: #F6F7F9;
  --surface: #FFFFFF;
  --ink: #17181A;
  --body: #3D4148;
  --muted: #5F6670;
  --line: #E3E5E8;
  --line-strong: #D5D8DD;
  --soft: #EEF0F2;
  --accent: #2457D6;
  --accent-ink: #1F4FBF;
  --accent-tint: rgba(36, 87, 214, 0.09);
  --player: #14161A;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Noto Sans KR', system-ui, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-ink); }
a:hover { color: #163A8F; }
button, input { font: inherit; color: inherit; }
img, iframe { display: block; max-width: 100%; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 12px; color: #fff; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.mono { font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 500; }

/* ── Header ── */
.site-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-head .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 16px; padding-top: 14px; padding-bottom: 14px;
}
.brand { font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand span { font-weight: 400; color: var(--muted); font-size: 15px; margin-left: 4px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 2px; margin: 0 -10px; }
.site-nav a {
  padding: 10px 12px; border-radius: 8px; color: var(--body);
  text-decoration: none; font-size: 15px; min-height: 44px; display: inline-flex; align-items: center;
}
.site-nav a:hover { background: var(--soft); color: var(--ink); }
.site-nav a[aria-current] { color: var(--accent); background: var(--accent-tint); font-weight: 700; }

/* ── Buttons & chips ── */
.btn {
  min-height: 48px; display: inline-flex; align-items: center; gap: 8px;
  padding: 0 18px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink); text-decoration: none;
  font-size: 15px; font-weight: 500; cursor: pointer;
}
.btn:hover { border-color: #B9BEC6; color: var(--ink); }
.btn svg { flex: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--body);
  font-size: 15px; font-weight: 500; cursor: pointer;
}
.chip:hover { border-color: #B9BEC6; color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

.tag {
  display: inline-block; font-size: 13px; font-weight: 700; color: var(--accent);
  background: var(--accent-tint); padding: 2px 10px; border-radius: 999px; line-height: 1.6;
}
.tag-qa { color: var(--body); background: var(--soft); }

/* ── Search page ── */
.hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.hero-inner {
  max-width: 880px; margin: 0 auto; padding: 56px 24px 36px;
  display: flex; flex-direction: column; gap: 14px; text-align: center;
}
.eyebrow { margin: 0; font-size: 14px; font-weight: 700; color: var(--accent); }
.hero h1 { margin: 0; font-size: clamp(28px, 5vw, 40px); line-height: 1.3; }
.hero .lead { margin: 0 auto; max-width: 712px; font-size: 17px; line-height: 1.7; color: var(--body); }
.lecture-line { margin: 0; font-size: 14px; color: var(--muted); }
.search { display: flex; flex-direction: column; gap: 8px; text-align: left; margin-top: 10px; }
.hero .search { width: 100%; max-width: 712px; margin-left: auto; margin-right: auto; }
.search label { font-size: 14px; font-weight: 700; color: var(--body); }
.search-box { position: relative; display: flex; align-items: center; }
.search-box svg { position: absolute; left: 16px; color: var(--muted); pointer-events: none; }
.search-box input {
  width: 100%; min-height: 56px; padding: 0 16px 0 48px;
  border: 1.5px solid #C9CDD3; border-radius: 12px; font-size: 17px;
  color: var(--ink); background: var(--surface);
}
.search-box input::placeholder { color: #6B7280; }
.search-box input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.hero .chips { justify-content: center; margin-top: 6px; }
.filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; margin-top: 4px; }
.filters label { font-size: 14px; font-weight: 700; color: var(--body); }
.select { position: relative; display: inline-flex; align-items: center; max-width: 100%; }
.select select {
  appearance: none; -webkit-appearance: none; min-height: 44px; max-width: 100%;
  padding: 0 40px 0 14px; border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; cursor: pointer;
  text-overflow: ellipsis;
}
.select select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.select svg { position: absolute; right: 12px; color: var(--muted); pointer-events: none; }

.vinfo {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: var(--radius); padding: 18px 22px;
}
.vinfo[hidden] { display: none; }
.vinfo .vk, .vcard .vk { margin: 0 0 2px; font-size: 13px; color: var(--muted); }
.vinfo h2 { margin: 0; font-size: 18px; line-height: 1.45; }

.videos { padding-bottom: 40px; }
.videos > h2 { margin: 0 0 14px; font-size: 20px; }
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 16px; }
.vcard {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.vthumb { aspect-ratio: 16 / 9; background: var(--soft); border-bottom: 1px solid var(--line); }
.vthumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vbody { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px; }
.vcard h3 { margin: 0 0 6px; font-size: 15.5px; line-height: 1.45; }
.vcard .actions { margin-top: auto; }
.vcard .btn { min-height: 40px; padding: 0 14px; font-size: 14px; }

/* 추천 질문 (검색·필터를 쓰면 숨김) */
.picks { background: var(--accent-tint); border-bottom: 1px solid var(--line); }
.picks[hidden] { display: none; }
.picks > .wrap { padding-top: 28px; padding-bottom: 30px; display: flex; flex-direction: column; gap: 16px; }
.picks-head h2 { margin: 0; font-size: 20px; }
.picks-head p { margin: 4px 0 0; font-size: 15px; color: var(--body); }
.picks .card.compact { min-height: 0; }
.picks-list {
  list-style: none; margin: 0; padding: 0; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 10px;
}
.picks-list a {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; min-height: 44px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink);
}
.picks-list a:hover { border-color: #B9BEC6; color: var(--ink); }
.picks-list .no { flex: none; width: 28px; font: 700 20px/1.3 "IBM Plex Mono", ui-monospace, monospace; color: var(--accent); }
.picks-list .t { display: flex; flex-direction: column; gap: 4px; font-size: 16px; font-weight: 700; line-height: 1.45; }
.picks-list .m { font-size: 13px; font-weight: 400; color: var(--muted); }

.results { padding-top: 32px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 18px; }
.count { margin: 0; font-size: 15px; color: var(--muted); }
.count strong { color: var(--ink); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.card {
  display: flex; flex-direction: column; gap: 10px; padding: 22px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink); min-height: 220px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.card:hover { color: var(--ink); border-color: #B9BEC6; box-shadow: 0 6px 20px rgba(23, 24, 26, 0.06); }
.card[hidden] { display: none !important; }
.card .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.card h2 { margin: 0; font-size: 18px; line-height: 1.45; }
.card p {
  margin: 0 0 auto; font-size: 15px; line-height: 1.65; color: var(--body);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border-top: 1px solid #EEF0F2; padding-top: 12px; margin-top: 4px;
}
.card-foot .when { font-size: 13px; color: var(--muted); }
.card-foot .when { min-width: 0; }
.vname {
  display: block; font-size: 13px; font-weight: 500; color: var(--body);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 1px;
}
.card-foot .go { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--accent); }

.empty {
  background: var(--surface); border: 1px dashed #C9CDD3; border-radius: var(--radius);
  padding: 40px 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
}
.empty[hidden] { display: none; }
.empty p { margin: 0; }
.empty .big { font-size: 17px; font-weight: 700; }
.empty .btn { margin-top: 6px; }

.bottom { padding-bottom: 72px; }
.bottom-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; }
.panel-link {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 24px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); text-decoration: none; color: var(--ink);
}
.panel-link:hover { color: var(--ink); border-color: #B9BEC6; }
.panel-link strong { display: block; font-size: 16px; }
.panel-link span.sub { display: block; font-size: 14px; color: var(--muted); }
.panel-link .arrow { flex: none; color: var(--accent); font-weight: 700; font-size: 15px; }

/* ── 질문 남기기 ── */
.ask { padding-bottom: 40px; scroll-margin-top: 16px; }
.ask-box {
  display: flex; flex-wrap: wrap; gap: 24px 44px; padding: 30px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.ask-text { flex: 1 1 300px; display: flex; flex-direction: column; gap: 10px; }
.ask-text .eyebrow, .thanks-box .eyebrow { color: var(--accent); font-size: 14px; font-weight: 700; margin: 0; }
.ask-text h2 { margin: 0; font-size: 24px; line-height: 1.35; }
.ask-text > p { margin: 0; font-size: 16px; line-height: 1.7; color: var(--body); }
.ask-steps { list-style: none; counter-reset: step; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ask-steps li { counter-increment: step; display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; }
.ask-steps li::before {
  content: counter(step); flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent-tint); color: var(--accent); font-weight: 700; font-size: 13px;
  display: inline-flex; align-items: center; justify-content: center;
}
.ask-form { flex: 1.5 1 380px; display: flex; flex-direction: column; gap: 8px; position: relative; }
.ask-form label { font-size: 14px; font-weight: 700; color: var(--body); }
.ask-form .req { font-size: 12px; font-weight: 700; color: var(--accent); margin-left: 4px; }
.ask-form .opt { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 4px; }
.ask-form textarea, .ask-form input[type="email"], .ask-form input[type="url"] {
  width: 100%; border: 1.5px solid #C9CDD3; border-radius: 10px; background: var(--surface);
  font: inherit; font-size: 16px; color: var(--ink); padding: 12px 14px;
}
.ask-form textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.ask-form input[type="email"], .ask-form input[type="url"] { min-height: 48px; }
.ask-form .flabel { font-size: 14px; font-weight: 700; color: var(--body); }
.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.file-pick {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px;
  border: 1.5px dashed #C9CDD3; border-radius: 10px; background: var(--soft); min-width: 0;
}
.file-pick .file-btn { min-height: 34px; padding: 0 14px; font-size: 14px; flex: none; color: var(--ink); }
.file-pick:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.file-name { font-size: 14px; color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-name.has { color: var(--ink); }
.ask-form .check { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink); margin-top: 6px; cursor: pointer; }
.ask-form .check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.ask-note.warn { color: #B42318; font-weight: 700; }
.ask-form textarea:focus, .ask-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.ask-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-top: 6px; }
.ask-row .field { display: flex; flex-direction: column; gap: 8px; }
.ask-row .select, .ask-row .select select { width: 100%; min-height: 48px; }
.ask-note { margin: 0; font-size: 13px; color: var(--muted); }
.ask-row.ask-who { grid-template-columns: minmax(0, 320px); }
.ask-form .btn { align-self: flex-start; margin-top: 6px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.thanks { padding-top: 56px; padding-bottom: 96px; }
.thanks-box { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; text-align: center; align-items: center; }
.thanks-box h1 { margin: 0; font-size: 30px; }
.thanks-box p { margin: 0; font-size: 16px; line-height: 1.7; color: var(--body); }
.thanks-box .actions { justify-content: center; margin-top: 8px; }
.cta .actions { flex-wrap: wrap; }

/* ── 개인정보 처리방침 ── */
.policy { max-width: 820px; padding-top: 40px; padding-bottom: 80px; }
.policy h1 { margin: 0 0 6px; font-size: 30px; }
.policy .policy-date { margin: 0 0 20px; font-size: 14px; color: var(--muted); }
.policy h2 { margin: 32px 0 10px; font-size: 18px; }
.policy p, .policy li { font-size: 15px; line-height: 1.75; color: var(--body); }
.policy p { margin: 0 0 10px; }
.policy ul { margin: 0 0 10px; padding-left: 20px; }
.policy-table { overflow-x: auto; margin: 0 0 12px; }
.policy table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; background: var(--surface); }
.policy th, .policy td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; line-height: 1.6; }
.policy thead th { background: var(--soft); font-weight: 700; }
.policy tbody th { font-weight: 700; white-space: nowrap; }

/* ── Player page ── */
.player-page { padding-top: 16px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 22px; }
.topbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.topbar .btn { min-height: 44px; padding: 0 14px 0 10px; }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }

.layout { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.primary { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.side { flex: 1 1 320px; min-width: 0; }

.video { position: relative; aspect-ratio: 16 / 9; background: var(--player); border-radius: 12px; overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.info { display: flex; flex-direction: column; gap: 8px; }
.info .meta { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14px; color: var(--muted); }
.info .meta .num { font-weight: 700; color: var(--accent); }
.info h1 { margin: 0; font-size: clamp(24px, 3.2vw, 30px); line-height: 1.4; }
.info .lead { margin: 0; font-size: 16px; line-height: 1.75; color: var(--body); }

.points-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; }
.points-box h2 { margin: 0 0 8px; font-size: 15px; color: var(--body); }
.points { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.points li { font-size: 15px; line-height: 1.65; color: var(--ink); }
.points li::marker { color: var(--accent); }

.actions { display: flex; flex-wrap: wrap; gap: 8px; }

.pager { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.pager a {
  display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink);
}
.pager a:hover { color: var(--ink); border-color: #B9BEC6; }
.pager a span { font-size: 13px; color: var(--muted); }
.pager a strong { font-size: 15px; line-height: 1.5; }
.pager .next { text-align: right; }
.pager .spacer { display: block; }

.chapters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.chapters summary {
  list-style: none; cursor: pointer; padding: 16px 18px; display: flex; align-items: center;
  justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line);
}
.chapters summary::-webkit-details-marker { display: none; }
.chapters summary strong { font-size: 16px; }
.chapters summary .sub { display: block; font-size: 13px; color: var(--muted); font-weight: 400; }
.chapters summary .chev { flex: none; color: var(--muted); transition: transform .15s ease; }
.chapters[open] summary .chev { transform: rotate(180deg); }
.chapters:not([open]) summary { border-bottom: 0; }
.chapter-list { position: relative; padding: 0 8px 8px; max-height: 620px; overflow-y: auto; }
.chapter-list ol { list-style: none; margin: 0; padding: 0; }
.chapter-list .group {
  margin: 0; padding: 14px 12px 6px; font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: 0.02em;
}
.chapter-list a {
  min-height: 44px; display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px;
  border-radius: 10px; text-decoration: none; color: var(--ink);
}
.chapter-list a:hover { background: var(--soft); color: var(--ink); }
.chapter-list a .tc { flex: none; width: 58px; font-size: 13px; color: var(--muted); padding-top: 2px; }
.chapter-list a .t { flex: 1 1 auto; min-width: 0; font-size: 14.5px; line-height: 1.5; font-weight: 500; }
.chapter-list a .now { display: none; font-size: 12px; font-weight: 700; color: var(--accent); margin-top: 2px; }
.chapter-list a[aria-current="page"] { background: var(--accent-tint); }
.chapter-list a[aria-current="page"] .t { color: var(--accent); font-weight: 700; }
.chapter-list a[aria-current="page"] .tc { color: var(--accent); }
.chapter-list a[aria-current="page"] .now { display: block; }

.side { display: flex; flex-direction: column; gap: 16px; }
.other-videos { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 8px 12px; }
.other-videos h2 { margin: 0; padding: 0 12px 6px; font-size: 15px; }
.other-videos ul { list-style: none; margin: 0; padding: 0; }
.other-videos li a {
  display: flex; flex-direction: column; gap: 1px; padding: 10px 12px; border-radius: 10px;
  text-decoration: none; color: var(--ink); min-height: 44px;
}
.other-videos li a:hover { background: var(--soft); color: var(--ink); }
.other-videos .t { font-size: 14.5px; font-weight: 500; line-height: 1.45; }
.other-videos .c { font-size: 12.5px; color: var(--muted); }
.other-videos .all { display: inline-block; margin: 6px 12px 2px; font-size: 14px; font-weight: 700; text-decoration: none; }

.bd-part { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.bd-part .video { width: 100%; }
.bd-part h2 { margin: 0; font-size: 18px; line-height: 1.45; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.bd-num {
  font-size: 13px; font-weight: 700; color: #fff; background: var(--accent);
  padding: 2px 10px; border-radius: 999px; line-height: 1.6;
}

.related h2, .cta h2 { margin: 0 0 14px; font-size: 18px; }
.rel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.rel {
  display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink);
}
.rel:hover { color: var(--ink); border-color: #B9BEC6; }
.rel .rel-meta { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }
.rel .rel-meta b { color: var(--accent); }
.rel strong { font-size: 16px; line-height: 1.45; }

.cta {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.cta h2 { margin: 0 0 2px; font-size: 17px; }
.cta p { margin: 0; font-size: 15px; color: var(--body); }

/* ── Footer ── */
.site-foot { border-top: 1px solid var(--line); background: var(--surface); }
.site-foot .wrap { padding-top: 24px; padding-bottom: 32px; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--muted); }
.site-foot a { color: var(--muted); }

@media (max-width: 640px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .hero-inner { padding: 40px 16px 28px; }
  .chapter-list { max-height: none; }
  .pager .next { text-align: left; }
  .card { min-height: 0; }
  .filters { justify-content: flex-start; }
  .select, .select select { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ── Home (메인) ── */
.btn-sm { min-height: 44px; padding: 0 16px; margin-left: 6px; font-weight: 700; }
.site-nav a.btn-primary { color: #FFFFFF; background: var(--accent); padding: 0 16px; }
.site-nav a.btn-primary:hover { color: #FFFFFF; background: var(--accent-ink); }
.info-card .eyebrow { color: var(--accent); font-size: 14px; font-weight: 700; }
.card.compact h3 { flex: 1 1 auto; }
.btn-lg { min-height: 52px; padding: 0 22px; border-radius: 12px; font-size: 16px; }
.lang {
  min-height: 44px; padding: 0 12px; border-radius: 8px; border: 0; background: transparent;
  color: var(--muted); font-size: 14px; font-weight: 700; cursor: pointer;
}
.lang:hover { background: var(--soft); color: var(--ink); }

.home-hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.hero-grid { padding-top: 56px; padding-bottom: 56px; display: flex; flex-wrap: wrap; align-items: center; gap: 40px; }
.hero-text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.hero-text h1 { margin: 0; font-size: clamp(32px, 4.6vw, 48px); line-height: 1.25; }
.hero-text .lead { margin: 0; font-size: 17px; line-height: 1.75; color: var(--body); }
.creds { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.creds li { font-size: 14px; color: var(--body); background: #F0F1F3; padding: 6px 12px; border-radius: 8px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.hero-photo { flex: 1 1 380px; min-width: 0; }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; object-position: 50% 30%; border-radius: 18px; }

.stats { padding-top: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.stat .num { margin: 0; font-size: 30px; font-weight: 700; color: var(--accent); line-height: 1.2; }
.stat .label { margin: 4px 0 0; font-size: 14px; color: var(--muted); }

.section { padding-top: 72px; display: flex; flex-direction: column; gap: 20px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.section-head .eyebrow { margin: 0 0 6px; }
.section-head h2 { margin: 0; font-size: 28px; line-height: 1.35; }
.section-head .sub { margin: 6px 0 0; font-size: 16px; color: var(--body); }
.more { font-size: 15px; font-weight: 700; color: var(--accent); text-decoration: none; padding: 10px 0; }
.more:hover { color: var(--accent-ink); text-decoration: underline; }

.home-search .search-box input { padding-right: 104px; }
.search-go { position: absolute; right: 6px; min-height: 44px; padding: 0 18px; }

.card.compact { min-height: 0; padding: 20px 22px; }
.card.compact h3 { margin: 0; font-size: 17px; line-height: 1.45; }
.card .tline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.card .tline .mono { font-size: 13px; color: var(--muted); }

.cards-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.cards-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 14px; }
.cards-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }

.info-card {
  display: flex; flex-direction: column; gap: 8px; padding: 22px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.info-card h3 { margin: 0; font-size: 17px; line-height: 1.45; }
.info-card p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--body); }

.teach ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.teach li { font-size: 15px; line-height: 1.6; color: var(--body); }
.teach details > summary {
  list-style: none; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center;
  font-size: 14px; font-weight: 700; color: var(--accent);
}
.teach details > summary::-webkit-details-marker { display: none; }
.teach details[open] > summary .when-closed { display: none; }
.teach details:not([open]) > summary .when-open { display: none; }
.teach details ul { margin-top: 2px; }
.teach .actions { margin-top: auto; padding-top: 14px; }

.work .kind { margin: 0; font-size: 13px; color: var(--muted); }
.work .name { margin: 0; font-size: 17px; font-weight: 700; }
.work .role { margin: 0; font-size: 14px; color: var(--body); }

.feature { padding: 28px; gap: 10px; }
.feature .eyebrow { margin: 0; }
.feature h2 { margin: 0; font-size: 24px; line-height: 1.4; }
.feature .actions { margin-top: 6px; }

.home-bottom { padding-top: 72px; padding-bottom: 80px; }
.contact-band {
  background: #17181A; color: #FFFFFF; border-radius: 18px; padding: 40px 36px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.contact-band h2 { margin: 0; font-size: 26px; line-height: 1.4; }
.contact-band p { margin: 8px 0 0; font-size: 16px; color: #D5D8DD; }
.contact-band .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-invert { background: #FFFFFF; border-color: #FFFFFF; color: #17181A; font-weight: 700; }
.btn-invert:hover { background: #E9EBEE; border-color: #E9EBEE; color: #17181A; }
.btn-dark { background: transparent; border-color: #5F6670; color: #FFFFFF; }
.btn-dark:hover { border-color: #FFFFFF; color: #FFFFFF; }

@media (max-width: 640px) {
  .hero-grid { padding-top: 36px; padding-bottom: 40px; gap: 28px; }
  .section { padding-top: 56px; }
  .contact-band { padding: 28px 22px; }
  .site-nav .btn-sm { display: none; }
  .stat { padding: 16px 18px; }
  .stat .num { font-size: 26px; }
}

.ask-link { margin: 16px 0 0; font-size: 15px; font-weight: 700; }
.ask-link a { text-decoration: none; }

/* 소식 받기 */
.news-box { background: var(--surface); }
.picks-set { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.picks-set legend { font-size: 14px; font-weight: 700; color: var(--body); margin-bottom: 8px; padding: 0; }
.news-form .check { margin-top: 0; }
.consents { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; padding: 14px 16px; background: var(--soft); border-radius: 10px; }
.consents .consent-detail { margin: 0 0 6px 26px; }
.news-form input[type="text"] {
  width: 100%; min-height: 48px; border: 1.5px solid #C9CDD3; border-radius: 10px; background: var(--surface);
  font: inherit; font-size: 16px; color: var(--ink); padding: 12px 14px;
}
.news-form input[type="text"]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }

/* ── 책 (메인 띠 · /book/) ── */
.btn-ink { background: #17181A; border-color: #17181A; color: #FFFFFF; font-weight: 700; }
.btn-ink:hover { background: #2C2F34; border-color: #2C2F34; color: #FFFFFF; }
.book-tag {
  margin: 0; align-self: flex-start; display: inline-block; font-size: 13px; font-weight: 700; line-height: 1.6;
  color: #F2C230; background: #17181A; padding: 3px 12px; border-radius: 999px;
}

.book-band-wrap { padding-top: 28px; }
.book-band {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; padding: 20px 28px 20px 20px;
  background: #FAF5E4; border: 1px solid #EADFB8; border-radius: 18px;
}
.book-thumb { flex: none; width: 104px; border-radius: 10px; overflow: hidden; background: #FFFFFF; border: 1px solid #EADFB8; }
.book-thumb img { width: 100%; height: auto; }
.book-band-text { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.book-band-text h2 { margin: 2px 0 0; font-size: 24px; line-height: 1.35; }
.book-band-text h2 span { font-size: 16px; font-weight: 500; color: var(--body); margin-left: 6px; white-space: nowrap; }
.book-band-text > p:not(.book-tag) { margin: 0; font-size: 15px; line-height: 1.6; color: var(--body); }
.book-band .actions { flex: none; }

.book-hero { background: #FAF5E4; border-bottom: 1px solid #EADFB8; }
.book-hero-grid { padding-top: 56px; padding-bottom: 56px; display: flex; flex-wrap: wrap; align-items: center; gap: 36px 56px; }
.book-hero-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.book-hero-text h1 { margin: 6px 0 0; font-size: clamp(40px, 6.4vw, 68px); line-height: 1.12; letter-spacing: -0.01em; }
.book-sub { margin: 0; font-size: clamp(19px, 2.4vw, 24px); font-weight: 700; line-height: 1.4; color: var(--ink); }
.book-hero-text .lead { margin: 4px 0 0; max-width: 520px; font-size: 17px; line-height: 1.75; color: var(--body); }
.book-hero-text .cta-row { margin-top: 10px; }
.book-by { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.book-cover { flex: 0 1 400px; min-width: 0; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.book-cover picture { display: block; border-radius: 18px; overflow: hidden; background: #FFFFFF; border: 1px solid #EADFB8; }
.book-cover img { width: 100%; height: auto; }
.book-cover figcaption { font-size: 13px; color: var(--muted); text-align: center; }

.book-author ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.book-author li { font-size: 15px; line-height: 1.65; color: var(--body); }
.book-author .actions { margin-top: 10px; }
.book-notify { scroll-margin-top: 16px; }
.book-form .picks-set { margin-top: 10px; }
#notify { scroll-margin-top: 16px; }

@media (max-width: 640px) {
  .book-band { padding: 18px; }
  .book-thumb { width: 84px; }
  .book-band-text { flex-basis: 180px; }
  .book-band-text h2 { font-size: 21px; }
  .book-band-text h2 span { display: block; margin: 2px 0 0; font-size: 15px; white-space: normal; }
  .book-band .actions { flex: 1 1 100%; }
  .book-hero-grid { padding-top: 32px; padding-bottom: 36px; gap: 28px; }
  .book-cover { flex-basis: 300px; order: -1; max-width: 320px; }
}
