/* study.lialoa.com 인강픽 — 심플/직관/신뢰 */
:root {
  --accent: #1c7ed6;
  --accent-dark: #1864ab;
  --point: #f59f00;
  --ink: #212529;
  --ink-soft: #495057;
  --ink-faint: #868e96;
  --line: #e9ecef;
  --bg: #ffffff;
  --bg-soft: #f8f9fa;
  --warn: #e03131;
  --radius: 14px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  word-break: keep-all;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* ── 헤더 ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.95); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  height: 56px;
}
.logo { font-size: 20px; font-weight: 800; letter-spacing: -0.5px; }
.logo em { color: var(--accent); font-style: normal; }
.header-cta {
  background: var(--accent); color: #fff; font-weight: 700; font-size: 14px;
  padding: 9px 16px; border-radius: 999px; white-space: nowrap;
}
.header-cta:active { background: var(--accent-dark); }

.region-nav {
  display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px;
  max-width: 1080px; margin: 0 auto;
  -ms-overflow-style: none; scrollbar-width: none;
}
.region-nav::-webkit-scrollbar { display: none; }
.region-nav a {
  flex: 0 0 auto; font-size: 14px; font-weight: 600; color: var(--ink-soft);
  background: var(--bg-soft); border: 1px solid var(--line);
  padding: 6px 14px; border-radius: 999px;
}
.region-nav a.on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── 히어로 ── */
.hero { padding: 36px 0 10px; text-align: center; }
.hero h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; }
.hero .sub { margin-top: 8px; color: var(--ink-soft); font-size: 15px; }
.hero .stamp { margin-top: 6px; color: var(--ink-faint); font-size: 13px; }
.hero .stamp strong { color: var(--accent); font-weight: 700; }

/* ── 섹션 ── */
.section { padding: 26px 0 8px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.section-head h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.3px; }
.note { font-size: 13.5px; color: var(--ink-faint); margin: 10px 0; }
.gpoint { font-size: 15.5px; color: var(--ink-soft); }

/* ── 비교표 ── */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.cmp { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 14px; }
table.cmp th, table.cmp td {
  border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top;
}
table.cmp thead th {
  background: var(--bg-soft); font-weight: 800; font-size: 15px; text-align: center;
}
table.cmp tbody th {
  background: var(--bg-soft); font-weight: 700; white-space: nowrap; width: 90px;
}
table.cmp td { color: var(--ink-soft); }

/* ── 브랜드 카드 ── */
.bgrid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.bcard {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; background: #fff; display: flex; flex-direction: column;
}
.bcard .bimg { display: block; margin: -20px -20px 14px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.bcard .bimg img { width: 100%; height: auto; }
.bcard h3 { font-size: 18px; font-weight: 800; }
.bcard h3 a { color: var(--accent); }
.bcard .co { font-size: 13px; color: var(--ink-faint); font-weight: 500; margin-left: 4px; }
.bcard .tagline { margin: 6px 0 4px; font-size: 14.5px; color: var(--ink-soft); }
.bcard .sub-h { margin-top: 12px; font-size: 13.5px; font-weight: 800; color: var(--accent); }
.bcard .sub-h.warn { color: var(--warn); }
.bcard ul { padding-left: 18px; font-size: 14px; color: var(--ink-soft); }
.bcard li { margin: 3px 0; }
.bcard .fit { margin-top: 12px; font-size: 14px; color: var(--ink-soft); }
.bcard .btn { margin-top: 14px; }
.bcard .more-link { margin-top: 10px; font-size: 13.5px; font-weight: 700; color: var(--accent); text-align: center; }

/* ── 버튼 ── */
.btn {
  display: block; text-align: center;
  background: var(--accent); color: #fff;
  font-size: 15px; font-weight: 700;
  padding: 12px 0; border-radius: 10px;
}
.btn:active { background: var(--accent-dark); }
.btn.sm { font-size: 13px; padding: 8px 10px; border-radius: 8px; }

/* ── 학년 칩 ── */
.gchips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.glabel { font-size: 13px; font-weight: 800; color: var(--ink-faint); margin-right: 2px; }
.gchip {
  font-size: 14px; font-weight: 700; color: var(--ink-soft);
  background: var(--bg-soft); border: 1px solid var(--line);
  padding: 7px 16px; border-radius: 999px;
}
.gchip.on, .gchip:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── FAQ ── */
.faq details {
  border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 16px; margin-bottom: 10px; background: #fff;
}
.faq summary { font-weight: 700; font-size: 15px; cursor: pointer; list-style: none; }
.faq summary::before { content: "Q. "; color: var(--accent); font-weight: 800; }
.faq details p { margin-top: 10px; font-size: 14px; color: var(--ink-soft); }

/* ── 본문(아티클) ── */
.article { max-width: 720px; margin: 0 auto; padding: 36px 16px 48px; }
.article h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; line-height: 1.35; }
.article .meta { margin: 10px 0 24px; color: var(--ink-faint); font-size: 13px; }
.article h2 { font-size: 20px; font-weight: 800; margin: 32px 0 10px; }
.article p, .article li { font-size: 15.5px; color: var(--ink-soft); margin-bottom: 10px; }
.article ul, .article ol { padding-left: 22px; margin-bottom: 14px; }
.article .tip {
  background: #e7f5ff; border-left: 4px solid var(--accent);
  padding: 12px 16px; border-radius: 0 8px 8px 0; margin: 16px 0;
}
.article .tip p { margin: 0; }
.article .btn { max-width: 420px; margin: 10px auto; }
.article .gchips { margin: 12px 0; }

/* ── 본문 이미지 (제휴 배너) ── */
figure.pimg { margin: 16px 0; }
figure.pimg .pimg-a { display: block; }
figure.pimg img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }
figure.pimg figcaption { margin-top: 6px; font-size: 12.5px; color: var(--ink-faint); text-align: center; }

/* ── 리스트 카드 (블로그 인덱스) ── */
.list-card {
  display: block; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; margin-bottom: 12px;
}
.list-card h3 { font-size: 17px; font-weight: 700; }
.list-card p { margin-top: 6px; font-size: 14px; color: var(--ink-soft); }
.list-card .date-sm { font-size: 12px; color: var(--ink-faint); }

/* ── 관련 링크 ── */
.rel-list { list-style: none; padding: 0 !important; }
.rel-list li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.rel-list a { color: var(--accent); font-weight: 700; }

/* ── 하단 고정 CTA (모바일) ── */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.95); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  display: block;
}
.sticky-cta .btn { margin: 0 auto; max-width: 420px; font-size: 16px; padding: 14px 0; }
body:has(.sticky-cta) { padding-bottom: 76px; }

/* ── 광고 규칙 2026-10-06: 상단 공정위+랜딩 / 중상단 사진+신청폼 ── */
.aff-top { margin: 14px 0 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); }
.aff-top .ftc { margin: 0 0 10px; font-size: 12.5px; line-height: 1.6; color: var(--ink-faint); }
.aff-top .btn { margin: 0 auto; max-width: 420px; }
.aff-form { margin: 24px 0; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.aff-form .aff-photo { display: block; width: 100%; max-width: 640px; height: auto; margin: 0 auto 10px; border-radius: 10px; }
.aff-form-h { margin: 4px 0 8px; font-weight: 800; text-align: center; }
.aff-form iframe { display: block; width: 100%; min-height: 420px; border: 0; }
@media (max-width: 640px) {
  .hero h1 { font-size: 22px; }
}

/* ── 푸터 ── */
.site-footer {
  margin-top: 48px; padding: 28px 0 40px;
  background: var(--bg-soft); border-top: 1px solid var(--line);
  font-size: 13px; color: var(--ink-faint);
}
.site-footer .links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 14px; }
.site-footer .links a { font-weight: 600; color: var(--ink-soft); }
.site-footer p { margin-bottom: 6px; }
