/* 45초책방 — 네이비 #12203D · 오렌지 #FF7A00 · 크림 #FFF6E9 */

:root {
  --navy: #12203D;
  --navy-700: #1B2E55;
  --navy-500: #334A78;
  --orange: #FF7A00;
  --orange-600: #E56D00;
  --orange-100: #FFE9D3;
  --cream: #FFF6E9;
  --paper: #FFFFFF;
  --ink: #16233C;
  --ink-soft: #4C5B75;
  --ink-faint: #7A87A0;
  --line: #E4E2DC;
  --line-soft: #EFEDE7;

  --wrap: 1120px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(18,32,61,.06), 0 8px 24px rgba(18,32,61,.06);
  --shadow-lg: 0 2px 4px rgba(18,32,61,.08), 0 18px 48px rgba(18,32,61,.12);

  --font: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI",
          "Malgun Gothic", "맑은 고딕", "Apple SD Gothic Neo", system-ui, sans-serif;
  --font-serif: "Nanum Myeongjo", "Apple SD Gothic Neo", Georgia, serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--cream);
  word-break: keep-all;
  overflow-wrap: anywhere;
}

img { max-width: 100%; height: auto; }
a { color: var(--navy); text-decoration-color: rgba(18,32,61,.28); text-underline-offset: 3px; }
a:hover { color: var(--orange-600); }
h1, h2, h3 { line-height: 1.3; letter-spacing: -.02em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.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;
}
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- 헤더 ---------- */
.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: flex; align-items: center; gap: 20px;
  min-height: 68px; flex-wrap: wrap; padding-block: 10px;
}
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand-mark {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--orange); color: #fff; font-weight: 800; font-size: 16px;
  letter-spacing: -.04em;
}
.brand-text strong { display: block; font-size: 17px; letter-spacing: -.02em; }
.brand-text small { display: block; font-size: 11.5px; color: #A9B7D1; line-height: 1.4; }

.site-nav { display: flex; gap: 18px; margin-left: auto; flex-wrap: wrap; }
.site-nav a { color: #D8E1F2; text-decoration: none; font-size: 14.5px; }
.site-nav a:hover { color: #fff; }

.site-search { display: flex; gap: 6px; }
.site-search input {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  color: #fff; border-radius: 999px; padding: 7px 14px; font-size: 14px; width: 150px;
  font-family: inherit;
}
.site-search input::placeholder { color: #93A3C0; }
.site-search input:focus { outline: 2px solid var(--orange); outline-offset: 1px; }
.site-search button {
  background: var(--orange); border: 0; color: #fff; border-radius: 999px;
  padding: 7px 14px; font-size: 14px; cursor: pointer; font-family: inherit;
}

/* ---------- 히어로 ---------- */
.hero { background: var(--navy); color: #fff; padding-block: 56px 64px; }
.hero-inner { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; }
.hero-kicker {
  color: var(--orange); font-weight: 700; font-size: 13px;
  letter-spacing: .12em; margin-bottom: 14px;
}
.hero-title { font-size: clamp(28px, 4vw, 44px); margin-bottom: 18px; }
.hero-lead { color: #C3CFE4; font-size: 17px; max-width: 54ch; }
.hero-lead strong { color: #fff; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-cover { position: relative; display: block; flex-shrink: 0; }
.hero-cover img {
  width: 260px; border-radius: 6px; box-shadow: var(--shadow-lg);
  transform: rotate(-2deg); transition: transform .25s ease;
}
.hero-cover:hover img { transform: rotate(0) translateY(-4px); }
.hero-cover-tag {
  position: absolute; top: -10px; left: -10px;
  background: var(--orange); color: #fff; font-size: 12px; font-weight: 700;
  padding: 5px 11px; border-radius: 999px;
}

/* ---------- 버튼 ---------- */
.btn {
  display: inline-block; padding: 11px 20px; border-radius: 999px;
  font-size: 14.5px; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; font-family: inherit; transition: all .18s ease;
}
.btn-sm { padding: 6px 13px; font-size: 13px; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-600); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.3); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-outline { border-color: var(--line); background: var(--paper); color: var(--navy); }
.btn-outline:hover { border-color: var(--orange); color: var(--orange-600); }
.btn-outline-light { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ---------- 섹션 ---------- */
.section { padding-block: 48px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.section-title {
  font-size: 13px; font-weight: 700; letter-spacing: .12em;
  color: var(--ink-faint); text-transform: uppercase; margin-bottom: 20px;
}
.section-more { font-size: 14px; text-decoration: none; color: var(--ink-soft); }
.page-head { margin-bottom: 32px; }
.page-title { font-size: clamp(26px, 3.4vw, 36px); }
.page-lead { color: var(--ink-soft); font-size: 17px; }
.empty { color: var(--ink-faint); padding: 40px 0; }
.center { text-align: center; }
.err-code { font-size: 64px; font-weight: 800; color: var(--orange); margin: 0; line-height: 1; }

/* ---------- 카드 ---------- */
.grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.card {
  background: var(--paper); border: 1px solid var(--line-soft);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-cover { display: block; background: var(--cream); line-height: 0; }
.card-cover img { width: 100%; aspect-ratio: 3/4; object-fit: contain; padding: 18px; }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--ink-faint); margin-bottom: 10px;
}
.card-title { font-size: 19px; margin-bottom: 6px; }
.card-title a { text-decoration: none; }
.card-subtitle { font-size: 14px; color: var(--ink-soft); margin-bottom: 8px; }
.card-byline { font-size: 13.5px; color: var(--ink-faint); margin-bottom: 12px; }
.card-hook {
  font-family: var(--font-serif); font-size: 17px; color: var(--navy);
  border-left: 3px solid var(--orange); padding-left: 14px; margin-bottom: 14px;
}
.card-summary { font-size: 14.5px; color: var(--ink-soft); flex: 1; }
.card-more { margin: 14px 0 0; font-size: 14px; font-weight: 600; }
.card-more a { text-decoration: none; color: var(--orange-600); }

.card-featured { flex-direction: row; }
.card-featured .card-cover { flex: 0 0 260px; display: grid; place-items: center; }
.card-featured .card-title { font-size: 26px; }
@media (max-width: 720px) {
  .card-featured { flex-direction: column; }
  .card-featured .card-cover { flex: none; }
}

/* ---------- 칩 ---------- */
.chip {
  display: inline-block; background: var(--orange-100); color: var(--orange-600);
  font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px;
}
.chip-accent { background: var(--navy); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-link { text-decoration: none; background: var(--paper); color: var(--ink-soft); border: 1px solid var(--line); }
.chip-link:hover { border-color: var(--orange); color: var(--orange-600); }
.chip-link em { font-style: normal; color: var(--ink-faint); }

/* ---------- 띠 ---------- */
.band { background: var(--navy-700); color: #fff; padding-block: 52px; }
.band-inner { max-width: 780px; }
.band h2 { font-size: 24px; }
.band p { color: #C3CFE4; }

/* ---------- 편 상세 ---------- */
.breadcrumb { padding-block: 18px 0; font-size: 13.5px; color: var(--ink-faint); }
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }

.ep { padding-block: 24px 64px; }
.ep-header {
  display: grid; grid-template-columns: 1fr 280px; gap: 44px;
  align-items: start; padding-bottom: 34px; border-bottom: 1px solid var(--line);
}
.ep-kicker { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.ep-title { font-size: clamp(28px, 4vw, 42px); margin-bottom: 8px; }
.ep-subtitle { font-size: 18px; color: var(--ink-soft); margin-bottom: 14px; }
.ep-byline { font-size: 14.5px; color: var(--ink-faint); margin-bottom: 20px; }
.ep-hook {
  font-family: var(--font-serif); font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.6; color: var(--navy);
  border-left: 4px solid var(--orange); padding-left: 18px; margin-bottom: 18px;
}
.ep-summary { font-size: 16.5px; color: var(--ink-soft); }
.ep-header-cover img { width: 100%; border-radius: 6px; box-shadow: var(--shadow-lg); }
@media (max-width: 780px) {
  .ep-header { grid-template-columns: 1fr; gap: 26px; }
  .ep-header-cover { max-width: 200px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-cover img { width: 190px; }
}

.ep-facts {
  display: flex; flex-wrap: wrap; gap: 0 40px;
  margin: 26px 0 0; padding: 20px 24px;
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius);
}
.ep-facts div { margin: 0; }
.ep-facts dt { font-size: 12px; color: var(--ink-faint); letter-spacing: .06em; }
.ep-facts dd { margin: 2px 0 0; font-size: 15.5px; font-weight: 600; }

.ep-video { margin-top: 40px; }
.ep-video h2, .ep-toc h2, .ep-buy h2, .ep-channels h2, .ep-fit h2 {
  font-size: 13px; font-weight: 700; letter-spacing: .12em;
  color: var(--ink-faint); text-transform: uppercase;
}
.video-frame {
  position: relative; max-width: 340px; aspect-ratio: 9/16;
  border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- 본문 블록 ---------- */
.ep-body { max-width: 72ch; margin-top: 44px; font-size: 17px; }
.blk-heading {
  font-size: 22px; margin-top: 2.2em; padding-top: .4em;
  border-top: 1px solid var(--line-soft);
}
.blk-heading .anchor {
  color: var(--line); text-decoration: none; margin-right: .35em; font-weight: 400;
}
.blk-heading:hover .anchor { color: var(--orange); }
.blk-text { color: var(--ink); }
.blk-quote {
  margin: 1.6em 0; padding: 20px 24px; background: var(--paper);
  border-left: 4px solid var(--orange); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.blk-quote p { font-family: var(--font-serif); font-size: 19px; margin: 0; }
.blk-quote-who { display: block; margin-top: 10px; font-size: 13px; color: var(--ink-faint); font-style: normal; }

/* 첫 문단 직답 — 검색 발췌문과 AI 답변이 여기서 잘려도 뜻이 통해야 한다. */
.blk-lead {
  margin: 1.2em 0 1.6em; padding: 18px 22px; background: var(--paper);
  border-left: 5px solid var(--orange); border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 18px; font-weight: 600; line-height: 1.7;
}

/* 근거 링크 — 무엇을 보고 썼는지 */
.blk-links { margin: 1em 0 1.6em; padding-left: 1.2em; }
.blk-links li { margin: 6px 0; font-size: 15px; }

.blk-qa {
  margin: 1.2em 0; padding: 18px 20px; background: var(--paper);
  border: 1px solid var(--line-soft); border-radius: var(--radius);
}
.blk-faq { background: transparent; border-color: var(--line); }
.blk-qa p { display: flex; gap: 12px; margin: 0; font-size: 16px; }
.blk-qa .qa-a { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.qa-tag {
  flex: 0 0 auto; font-size: 11.5px; font-weight: 700; padding: 2px 9px;
  border-radius: 999px; height: fit-content; margin-top: 4px;
}
.qa-tag-q { background: var(--orange-100); color: var(--orange-600); }
.qa-tag-a { background: #E7ECF6; color: var(--navy-500); }
.qa-body { flex: 1; }

.blk-list { padding-left: 1.3em; }
.blk-list li { margin-bottom: .6em; }
.blk-meta {
  display: flex; gap: 24px; align-items: flex-start; margin: 1.4em 0;
  padding: 22px; background: var(--paper); border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}
.blk-meta-cover img { width: 140px; border-radius: 4px; box-shadow: var(--shadow); }
.blk-meta-table { border-collapse: collapse; font-size: 15px; }
.blk-meta-table th {
  text-align: left; color: var(--ink-faint); font-weight: 500;
  padding: 5px 18px 5px 0; white-space: nowrap; vertical-align: top;
}
.blk-meta-table td { padding: 5px 0; }
@media (max-width: 560px) { .blk-meta { flex-direction: column; } }

.blk-image { margin: 1.8em 0; }
.blk-image img { width: 100%; border-radius: var(--radius); }
.blk-image figcaption {
  margin-top: 10px; font-size: 13.5px; color: var(--ink-faint); text-align: center;
}
.blk-link a { font-weight: 600; color: var(--orange-600); }
.blk-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.blk-divider { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.blk-small { font-size: 13.5px; color: var(--ink-faint); }

/* ---------- 목차·적합 ---------- */
.ep-toc, .ep-fit, .ep-buy, .ep-channels { margin-top: 48px; }
.toc-table { width: 100%; border-collapse: collapse; font-size: 15.5px; background: var(--paper); }
.toc-table th, .toc-table td {
  text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.toc-table thead th {
  font-size: 12.5px; color: var(--ink-faint); letter-spacing: .06em;
  background: var(--cream); border-bottom: 1px solid var(--line);
}
.toc-table tbody th { width: 30%; font-weight: 700; color: var(--navy); }
@media (max-width: 640px) {
  .toc-table, .toc-table tbody, .toc-table tr, .toc-table th, .toc-table td { display: block; width: auto; }
  .toc-table thead { display: none; }
  .toc-table tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .toc-table tbody th { padding-bottom: 4px; }
}

.ep-fit { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 720px) { .ep-fit { grid-template-columns: 1fr; } }
.fit-box { padding: 22px 24px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line-soft); }
.fit-yes { border-left: 4px solid var(--orange); }
.fit-no { border-left: 4px solid var(--navy-500); }
.fit-box ul { padding-left: 1.2em; margin: 0; }
.fit-box li { margin-bottom: .7em; font-size: 15.5px; }

.buy-links { display: flex; gap: 10px; flex-wrap: wrap; }
.buy-note { font-size: 13px; color: var(--ink-faint); }
.channel-list { list-style: none; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.channel-list a {
  display: inline-block; padding: 7px 15px; background: var(--paper);
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 14px; text-decoration: none;
}
.channel-list a:hover { border-color: var(--orange); color: var(--orange-600); }

.ep-footer {
  margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--line);
  font-size: 13.5px; color: var(--ink-faint);
}
.ep-sources a { color: var(--ink-soft); }
.ep-disclosure {
  padding: 14px 18px; background: var(--orange-100); color: #8A4A00;
  border-radius: var(--radius-sm); font-size: 13.5px;
}
.ep-tags { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- 프로즈 ---------- */
.prose { max-width: 74ch; }
.prose h2 { font-size: 22px; margin-top: 2em; }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: .5em; }
.faq details {
  background: var(--paper); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 16px 20px; margin-bottom: 10px;
}
.faq summary { font-weight: 600; cursor: pointer; }
.faq p { margin: 12px 0 0; color: var(--ink-soft); }

/* ---------- 검색·페이저 ---------- */
.search-big { display: flex; gap: 10px; margin-bottom: 32px; max-width: 560px; }
.search-big input {
  flex: 1; padding: 12px 18px; border: 1px solid var(--line);
  border-radius: 999px; font-size: 16px; font-family: inherit; background: var(--paper);
}
.search-big input:focus { outline: 2px solid var(--orange); outline-offset: 1px; }
.pager { display: flex; gap: 14px; align-items: center; justify-content: center; margin-top: 40px; }
.pager .btn-ghost { border-color: var(--line); color: var(--ink); }
.pager .btn-ghost:hover { background: var(--paper); color: var(--orange-600); }
.pager-now { font-size: 14px; color: var(--ink-faint); }

/* ---------- 플래시 ---------- */
.flash { padding: 12px 18px; border-radius: var(--radius-sm); font-size: 14.5px; margin: 16px 0; }
.flash-error { background: #FDE8E6; color: #97241A; }
.flash-ok { background: #E4F4E9; color: #1C6B37; }

/* ---------- 푸터 ---------- */
.site-footer { background: var(--navy); color: #A9B7D1; margin-top: 40px; padding-block: 44px 20px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; }
@media (max-width: 720px) { .footer-inner { grid-template-columns: 1fr; gap: 24px; } }
.footer-brand { color: #fff; font-weight: 700; font-size: 17px; margin-bottom: 10px; }
.footer-brand span { color: var(--orange); font-weight: 500; font-size: 14px; }
.footer-disclosure { font-size: 13px; line-height: 1.7; max-width: 52ch; }
.footer-head { color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 7px; }
.footer-links a { color: #A9B7D1; text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 32px; padding-top: 18px;
  font-size: 12.5px;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #6A7A98; text-decoration: none; }
