/* ==========================================================
   core/layout.css — 페이지 뼈대
   .wrap(최대 폭) · .section(세로 간격) · .sec-head(섹션 제목)
   · .page-hero(하위 페이지 공통 상단) · .basis(기준 줄) · 2단 레이아웃
   ========================================================== */

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.wrap-narrow { max-width: 780px; }

.section { position: relative; padding: 36px 0; }
.section.section-top { padding-top: 20px; }
.section-tint { background: var(--surface-2); }
.section-paper { background: var(--paper); }

/* ---------- 섹션 제목 ---------- */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.sec-head > div:first-child { min-width: 0; }
.sec-eyebrow { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 13px; font-weight: 700; color: var(--brand-deep); }
.sec-title { font-size: 21px; font-weight: 800; line-height: 1.3; letter-spacing: -.035em; }
.sec-desc { margin-top: 5px; font-size: 14px; color: var(--ink-3); }

/* ---------- 하위 페이지 공통 상단 (제목 위 경로 표시 없음) ---------- */
.page-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(620px 300px at 94% -30%, #E4E2FD 0%, rgba(228, 226, 253, 0) 66%),
    linear-gradient(180deg, var(--paper) 0%, #fff 100%);
  border-bottom: 1px solid var(--line-2);
}
.page-hero-inner { position: relative; padding-top: 18px; padding-bottom: 22px; }
.page-kicker { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 13.5px; font-weight: 800; color: var(--brand-deep); }
.page-kicker .ico { width: 16px; height: 16px; }
.page-hero h1 { margin-top: 0; font-size: 26px; font-weight: 800; line-height: 1.28; letter-spacing: -.045em; }
.page-hero h1 em { font-style: normal; color: var(--brand-deep); }
.page-hero-desc { margin-top: 8px; font-size: 15px; color: var(--ink-2); max-width: 42em; }
.page-hero-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }

/* ---------- 기준 줄: 집계 기간 · 수집일 · 출처 ---------- */
.basis { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.basis .ico { width: 14px; height: 14px; color: var(--ink-4); margin-right: -6px; }
.basis > span + span::before, .basis > span + a::before, .basis > a + span::before { content: "·"; margin-right: 10px; color: var(--ink-4); }
.basis a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.basis a:hover { text-decoration-color: var(--ink-3); }
.basis.is-stale { color: var(--warn-deep); }

/* ---------- 목록 + 옆 요약 ---------- */
.split { display: grid; gap: 16px; }
.side { display: grid; gap: 12px; align-content: start; min-width: 0; }

.stack-16 > * + * { margin-top: 16px; }
.more-row { margin-top: 16px; text-align: center; }

@media (min-width: 768px) {
  .wrap { padding: 0 24px; }
  .sec-title { font-size: 26px; }
  .sec-desc { font-size: 15px; }
  .page-hero-inner { padding-top: 26px; padding-bottom: 30px; }
  .page-hero h1 { font-size: 36px; }
  .page-hero-desc { font-size: 16px; }
}
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
  .side-sticky { position: sticky; top: calc(var(--hdr-h) + var(--nav-h) + 16px); }
}
@media (min-width: 1024px) {
  .section { padding: 52px 0; }
}
