/* ===== style.css ===== */
/* ============================================================
   내곁에 성경 블로그 공통 스타일
   - 색상은 :root 변수로 관리 (data/site.config.js 의 색과 맞춰 수정)
   - 모바일 우선 반응형
   ============================================================ */

/* (R2 2026-10-23 §3 1안) 토큰 교체 — "흑연과 라임 — 계기판"(REBUILD02 §3).
   이전 값: --main #1b2a4a(스페이스 네이비) · --main-dark #12203a · --accent #d43c3c(시그널 레드) · --accent-soft #fdf1e4 · --bg #fff · --bg-soft #f5f7fa · --text #24303c · --text-soft #5b6b7b · --line #e3e8ee
   ★ 이름(--main·--main-dark·--accent·--accent-soft·--bg-soft·--text·--text-soft·--line)은 그대로 둔다 —
     나만의 사이트 스튜디오 인포그래픽 팔레트(mysitestudio/lib/infographic/palette.js)가 이 이름으로 첫 :root 를 읽는다.
   ★ 라임 #C8F135 는 밝아서 글자로 쓰면 대비가 모자란다 → **면으로만**(--lime). 글자로 쓰는 초록은 --main(라임 잉크 #3F6B0A, 대비 5.8).
   빨강(테슬라 상표색)은 쓰지 않는다. 주의색은 '기능 사용 안내 아님·투자 판단 근거 아님' 같은 고지에만 */
:root {
  color-scheme: light dark;
  /* (REBUILD02 1-② 2026-10-24, Claude Design 시안 확정 Q1 1안) 크림 종이 · 네이비 띠(앱과 같은 #1a1a2e) · 진한 골드 글자.
     이름은 자매 사이트와 같게 둔다(스튜디오 팔레트·레이아웃 CSS 가 읽음). 대비는 크림 바탕 #FBF8F1 기준 직접 계산 */
  --main: #1a1a2e;        /* 네이비 잉크 — 링크·제목 포인트 (14.7) */
  --main-dark: #8a6117;   /* 링크 hover — 진한 골드 글자 (5.2) */
  --main-soft: #efe8d8;   /* 연면 — 칩·묶음 상자 바탕 */
  --lime: #ead9b0;        /* 포인트 면(옅은 골드) — 번호 배지·밑줄. 위 글자는 잉크 */
  --accent-line: #a9781f; /* 골드 — 가는 선·밑줄 전용(글자 금지 3.9) */
  --accent: #8a6117;      /* 골드 글자 — 분류 이름·작은 머리말 (5.2, 흰 면 5.5) */
  --accent-soft: #f3eee2; /* 베이지 면 */
  --caution: #7A4A00;
  --caution-soft: #FFF3D6;
  --calm: #4E6B3C;        /* '직접 확인해 보실 곳'·'참고한 자료' 테두리 */
  --calm-soft: #EEF2E6;
  --paper: #fffdf8;       /* 상자·카드 면 */
  --rule: #1a1a2e;
  --ink-band: #1a1a2e;    /* 머리·바닥 띠 */
  --bg: #fbf8f1;          /* 크림 종이 바탕 */
  --bg-soft: #f3eee2;     /* 베이지 면 — 요약·운영자 상자. 이 위 글자는 --text-soft 이상 */
  --text: #1f2430;        /* 잉크 (14.6) */
  --text-soft: #4a4f5c;   /* 보조 (7.7, 베이지 면 7.0) */
  --muted: #6b6f7a;       /* 흐린 글자 — 종이 바탕 위에서만 (4.7) */
  --line: #e6dfcf;
  --chip-line: #d9cfb8;
  --band-text: #f3eee2;   /* 네이비 띠 위 글자 (14.7) */
  --band-soft: #d8d2c3;   /* 네이비 띠 위 보조 글자 (11.3) */
  --band-gold: #e2b85c;   /* 네이비 띠 위 골드 (9.1) */
  --radius: 10px;
  --shadow: none;
  --w-content: 1120px;
  --w-article: 760px;
}

/* ---------- 리셋 & 기본 ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  /* (R2 2026-10-23 §4 1단계 ⑤) 자체 호스팅 NanumSquare Neo(fonts.css) — 못 받으면 기기 글꼴 */
  font-family: "NanumSquare Neo", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  font-weight: 500;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  word-break: keep-all;
}
img { max-width: 100%; height: auto; }
a { color: var(--main); text-decoration: none; }
a:hover { color: var(--accent); }

.container { max-width: var(--w-content); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink-band); color: var(--band-text); padding: 8px 16px; z-index: 100;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- 헤더 ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; gap: 16px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }

/* 앱으로 돌아가기 버튼 — 모든 페이지 헤더에 항상 노출 (네이비 pill) */
.app-cta {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  background: var(--ink-band); color: var(--band-text);
  padding: 8px 15px; border-radius: 999px;
  font-weight: 700; font-size: 14.5px;
}
.app-cta:hover { text-decoration: none; }
/* 데스크톱: 내비 링크 뒤(오른쪽 끝)에 배치 */
@media (min-width: 961px) {
  .site-nav { order: 1; }
  .app-cta { order: 2; margin-left: 6px; }
}
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--ink-band); color: var(--band-text);
  display: grid; place-items: center;
  font-weight: 800; font-size: 15px; letter-spacing: -0.5px;
}
.brand-text { font-weight: 800; font-size: 20px; color: var(--main); line-height: 1.2; display: flex; flex-direction: column; }
.brand-text small { font-weight: 500; font-size: 11px; color: var(--text-soft); letter-spacing: 1.5px; }

.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  padding: 8px 12px; border-radius: 8px;
  font-size: 15px; color: var(--text);
}
.site-nav a:hover { background: var(--bg-soft); color: var(--main); }
.site-nav a.active { color: var(--accent); font-weight: 700; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--main); margin: 5px 0; transition: 0.2s; }

@media (max-width: 960px) {  /* 햄버거 전환 기준 — 메뉴가 두 줄로 꺾이지 않도록 4개 사이트 공통 960px */
  .nav-toggle { display: block; }
  /* 햄버거 → X 애니메이션 (aria-expanded 상태 기반) */
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav {
    display: none; width: 100%; flex-direction: column; padding: 4px 0 12px;
    animation: navDrop 0.18s ease-out;
  }
  .site-nav.open { display: flex; }
  /* 터치 타겟 확대(44px+) + 마지막 항목 구분선 제거 */
  .site-nav a { padding: 13px 8px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 15.5px; }
  .site-nav a:last-child { border-bottom: none; }
  .site-nav a.active { border-left: 3px solid var(--accent); padding-left: 12px; background: var(--accent-soft); }
  @keyframes navDrop {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

/* ---------- 히어로 ---------- */
.hero {
  background: linear-gradient(160deg, var(--main) 0%, var(--main-dark) 100%);
  color: #fff; padding: 72px 0;
}
.hero-kicker { color: var(--accent); font-weight: 700; letter-spacing: 0.5px; margin-bottom: 12px; }
.hero h1 { font-size: clamp(28px, 4.5vw, 42px); line-height: 1.35; margin-bottom: 18px; }
.hero-desc { max-width: 640px; color: #d6dee7; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 12px 22px; border-radius: 10px;
  font-weight: 700; font-size: 15px; transition: 0.15s; border: 1.5px solid transparent;
}
.btn-primary { background: var(--ink-band); color: var(--band-text); }
.btn-primary:hover { background: var(--accent); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,0.5); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.08); }
.page-body .btn-ghost, .notfound .btn-ghost { border-color: var(--main); color: var(--main); }
.page-body .btn-ghost:hover, .notfound .btn-ghost:hover { background: var(--bg-soft); }

/* ---------- 섹션 공통 ---------- */
/* 주의: .container 와 같은 요소에 쓰이므로 좌우 패딩을 덮어쓰지 않게 상하만 지정 */
.section { padding-top: 56px; padding-bottom: 56px; }
.section-sm { margin: 40px 0; }
.section-tint { background: var(--bg-soft); }
.section h2, .section-sm h2 { font-size: 24px; color: var(--main); margin-bottom: 18px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.section-desc { color: var(--text-soft); margin: -8px 0 20px; }
.more-link { font-weight: 700; font-size: 14px; color: var(--accent); }

.two-col { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- 카테고리 카드 ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
@media (max-width: 960px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
.cat-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 16px; display: flex; flex-direction: column; gap: 6px;
  transition: 0.15s; box-shadow: var(--shadow);
}
.cat-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.cat-icon { font-size: 26px; }
.cat-name { font-weight: 800; color: var(--main); }
.cat-short { font-size: 13px; color: var(--text-soft); line-height: 1.5; }

/* ---------- 글 카드 ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .card-grid { grid-template-columns: 1fr; } }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); transition: 0.15s; overflow: hidden;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card-link { display: block; padding: 22px; height: 100%; color: inherit; }
/* 카드 썸네일 (2026-09-27) — 이미지가 있는 카드만. 글자 위쪽으로 꽉 차게 */
.card.has-thumb .card-link { padding-top: 0; }
.card-thumb {
  display: block; width: calc(100% + 44px); margin: 0 -22px 16px; height: auto;
  aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg-soft);
}
.card-link:hover { color: inherit; }
.card-cat { font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.card-title { font-size: 17px; line-height: 1.5; color: var(--main); margin-bottom: 8px; }
.card-sub {
  font-size: 14px; color: var(--text-soft); line-height: 1.6; margin-bottom: 12px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta { font-size: 12.5px; color: #93a1af; }

/* 칼럼 카드: 일반 글과 구분되는 톤 */
.column-card { background: var(--accent-soft); border-color: #f2ddc4; }
.column-card:hover { border-color: var(--accent); }
.column-label { color: var(--accent); font-weight: 800; font-size: 13px; letter-spacing: 0.3px; }

/* ---------- 홈 하단 ---------- */
.owner-strip { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: stretch; }
@media (max-width: 800px) { .owner-strip { grid-template-columns: 1fr; } }
.cta-box {
  background: var(--ink-band); color: var(--band-text); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
}
.cta-box h2 { color: #fff; font-size: 20px; margin: 0; }
.cta-box p { color: #c9d4de; font-size: 14.5px; }

/* ---------- 운영자 박스 ---------- */
.author-box {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; margin: 36px 0 0;
}
.home-author { margin: 0; background: var(--paper); box-shadow: var(--shadow); }
.author-avatar {
  flex: none; width: 52px; height: 52px; border-radius: 50%;
  background: var(--ink-band); color: var(--band-text); font-weight: 800; font-size: 20px;
  display: grid; place-items: center;
}
.author-avatar.big { width: 76px; height: 76px; font-size: 30px; }
.author-name { font-size: 17px; font-weight: 800; color: var(--main); margin-bottom: 4px; }
.author-role { font-size: 13.5px; color: var(--text-soft); font-weight: 500; }
.author-bio { font-size: 14.5px; color: var(--text-soft); }
.owner-link { border-bottom: 2px solid var(--accent); padding-bottom: 1px; }

/* ---------- 페이지 공통 ---------- */
/* 주의: .container 와 같은 요소에 쓰이므로 좌우 패딩을 덮어쓰지 않게 상하만 지정 */
.page-body { padding-top: 36px; padding-bottom: 72px; }
.page-head { margin: 18px 0 32px; max-width: var(--w-article); }
.page-head h1 { font-size: clamp(26px, 4vw, 34px); color: var(--main); line-height: 1.4; margin-bottom: 12px; }
.page-head p { color: var(--text-soft); }

.breadcrumb { font-size: 13px; color: var(--text-soft); display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb .sep { color: #b6c0ca; }
.breadcrumb span[aria-current] { color: var(--text-soft); max-width: 320px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.count { font-size: 14px; color: var(--text-soft); font-weight: 500; }
.catlist-item { border-top: 1px solid var(--line); padding: 28px 0; max-width: var(--w-article); }
.catlist-item h2 { font-size: 21px; margin-bottom: 10px; }
.catlist-item p { color: var(--text-soft); margin-bottom: 10px; }

.plainlist { list-style: none; }
.plainlist li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- 글 상세 ---------- */
.article-body article { max-width: var(--w-article); margin: 0 auto; }
.article-head { margin: 20px 0 28px; }
.article-cat { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.article-cat a { color: var(--accent); }
.article-head h1 { font-size: clamp(25px, 4vw, 33px); line-height: 1.45; color: var(--main-dark); margin-bottom: 12px; }
.article-sub { font-size: 16.5px; color: var(--text-soft); margin-bottom: 14px; }
.article-meta { font-size: 13.5px; color: #93a1af; }

.article-body section { margin: 36px 0; }
.article-body h2 { font-size: 21px; color: var(--main); margin-bottom: 14px; padding-top: 8px; }
.article-body p { margin-bottom: 14px; font-size: 16px; }
.body-list { margin: 4px 0 14px 22px; }
.body-list li { margin-bottom: 8px; font-size: 15.5px; }

/* 요약 박스 */
.summary-box {
  background: var(--bg-soft); border-left: 4px solid var(--main);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 20px 22px; margin: 28px 0;
}
.box-title { font-weight: 800; color: var(--main); margin-bottom: 10px; }
.summary-box ul { margin-left: 20px; }
.summary-box li { margin-bottom: 6px; font-size: 15px; }

/* 운영자 한마디 (2026-09-28) — 운영자가 직접 쓴 한 줄. 목록과 따로, 글 끝 실수·체크 상자 뒤 */
.owner-note {
  border: 1px dashed var(--main); border-radius: var(--radius);
  padding: 18px 22px; margin: 28px 0; background: var(--bg-soft); min-width: 0;
}
.owner-note .box-title { margin-bottom: 6px; }
.owner-note .owner-note-text { font-size: 15.5px; line-height: 1.8; overflow-wrap: anywhere; margin-bottom: 0; }
@media (max-width: 600px) { .owner-note { padding: 16px 18px; } }

/* 글 대표 이미지 (2026-09-27) — 글 주제를 한 장으로 보여 주는 삽화 */
.article-hero { margin: 4px 0 26px; }
.article-hero img {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--radius); background: var(--bg-soft);
}

/* 본문 표 (2026-09-27) — 비교 내용을 목록 대신 표로.
   좁은 화면에서는 표만 옆으로 밀어 본다 (본문은 넘치지 않는다) */
.table-wrap { margin: 24px 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap table {
  border-collapse: collapse; width: 100%; min-width: 420px;
  font-size: 14px; background: var(--paper);
}
.table-wrap caption {
  caption-side: top; text-align: left; font-weight: 700; color: var(--main);
  font-size: 15px; padding-bottom: 8px;
}
.table-wrap th, .table-wrap td {
  border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top;
  line-height: 1.6;
}
.table-wrap thead th { background: var(--bg-soft); font-weight: 700; color: var(--main); white-space: nowrap; }
.table-wrap tbody th { background: var(--bg-soft); font-weight: 600; width: 22%; }
.table-wrap tbody tr:nth-child(even) td { background: #fcfdfe; }

/* 직접 확인해 보실 곳 (2026-09-27) — 글에서 언급한 번역본을 펴낸 곳의 공식 창구 */
.source-box {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; margin: 28px 0; background: var(--bg-soft);
}
.source-box h2 { font-size: 18px; color: var(--main); }
.source-note { font-size: 13px; color: var(--text-soft); margin: 6px 0 12px; }
.source-box ul { list-style: none; display: grid; gap: 8px; }
.source-box li {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px;
  font-size: 15px; padding-left: 18px; position: relative;
}
.source-box li::before { content: "↗"; position: absolute; left: 0; color: var(--accent); font-size: 13px; }
.source-box li span { font-size: 13px; color: var(--text-soft); }

/* 목차 */
.toc {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 22px; margin: 28px 0; background: var(--paper);
}
.toc-title { font-weight: 800; color: var(--main); margin-bottom: 8px; font-size: 15px; }
.toc ol { margin-left: 22px; }
.toc li { margin: 4px 0; font-size: 14.5px; }

/* 실수/체크리스트 박스 */
.mistakes-box {
  background: #fdf3f0; border-left: 4px solid #d9634a;
  border-radius: 0 var(--radius) var(--radius) 0; padding: 20px 22px;
}
.mistakes-box h2 { color: #b44a34; font-size: 18px; }
.mistakes-box ul { margin-left: 20px; }
.mistakes-box li { margin-bottom: 8px; font-size: 15px; }

.check-box {
  background: #f0f7f1; border-left: 4px solid #4a9159;
  border-radius: 0 var(--radius) var(--radius) 0; padding: 20px 22px;
}
.check-box h2 { color: #3a7447; font-size: 18px; }
.checklist { list-style: none; }
.checklist li { margin-bottom: 8px; font-size: 15px; padding-left: 26px; position: relative; }
.checklist li::before { content: "✓"; position: absolute; left: 2px; color: #4a9159; font-weight: 800; }

/* FAQ */
.faq details {
  border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 18px; margin-bottom: 10px; background: var(--paper);
}
.faq summary { font-weight: 700; cursor: pointer; color: var(--main); font-size: 15.5px; }
.faq details p { margin: 10px 0 2px; font-size: 15px; color: var(--text-soft); }

.article-notice {
  font-size: 13.5px; color: #93a1af; border-top: 1px dashed var(--line);
  padding-top: 16px; margin-top: 40px;
}

/* 관련 글 */
.related { margin-top: 36px; }
.related h2 { font-size: 18px; }
.related ul { list-style: none; }
.related li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.tag-col {
  font-size: 11px; background: var(--accent-soft); color: var(--accent);
  padding: 2px 8px; border-radius: 20px; font-weight: 700; margin-left: 6px;
}

/* ---------- 칼럼 상세 ---------- */
.column-article .article-head { border-left: 4px solid var(--accent); padding-left: 18px; }
.column-para { font-size: 16.5px; margin-bottom: 20px; }

/* ---------- 운영자 페이지 ---------- */
.author-hero { display: flex; gap: 22px; align-items: center; }
.guest-note { color: var(--text-soft); margin-bottom: 20px; font-size: 15px; }
.principle-list { list-style: none; }
.principle-list li {
  padding: 10px 0 10px 24px; position: relative; font-size: 15px;
}
.principle-list li::before { content: "—"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

/* ---------- 일반 문서(prose) ---------- */
.prose { max-width: var(--w-article); }
.prose h2 { font-size: 20px; color: var(--main); margin: 32px 0 12px; }
.prose p { margin-bottom: 14px; }
.prose ul { margin: 0 0 14px 22px; }
.prose li { margin-bottom: 6px; }
.legal p, .legal li { font-size: 15px; }

/* ---------- 문의 폼 ---------- */
.contact-form { max-width: 560px; margin: 8px 0 36px; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; color: var(--main); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font: inherit; font-size: 15px; background: var(--paper);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--accent);
}
.contact-form .btn { border: none; cursor: pointer; }
.form-note { font-size: 13px; color: #93a1af; margin-top: 12px; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 90px 20px; }
.nf-code { font-size: 80px; font-weight: 800; color: var(--line); line-height: 1; margin-bottom: 12px; }
.notfound h1 { color: var(--main); margin-bottom: 12px; }
.notfound p { color: var(--text-soft); margin-bottom: 24px; }
.notfound .hero-actions { justify-content: center; }

/* ---------- 푸터 ---------- */
.site-footer { background: var(--main-dark); color: #b9c5d1; margin-top: 40px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; padding: 48px 20px 28px;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }
.footer-brand { color: #fff; font-weight: 800; font-size: 18px; margin-bottom: 10px; }
.footer-brand small { font-weight: 500; font-size: 11px; letter-spacing: 1.5px; color: #8fa0b0; }
.footer-about p { font-size: 14px; margin-bottom: 8px; }
.footer-owner a { color: #fff; }
.footer-owner a:hover { color: var(--accent); }
.footer-links { display: flex; gap: 48px; }
.footer-links-title { color: #fff; font-weight: 700; font-size: 13.5px; margin-bottom: 10px; }
.footer-links a { display: block; color: #b9c5d1; font-size: 14px; padding: 4px 0; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 18px 20px; font-size: 13px; color: #8fa0b0; }

/* ============================================================
   모바일 UI/UX 개선 (2026-08 개선분)
   - 가로 오버플로우 원천 차단 (좌우 잘림 방지)
   - 소형 화면 여백·타이포 최적화
   - 맨 위로 버튼
   ============================================================ */

/* 가로 스크롤/잘림 방지: 어떤 요소가 넘쳐도 페이지가 옆으로 밀리지 않게 */
html, body { overflow-x: clip; max-width: 100%; }
body { overflow-wrap: break-word; }  /* keep-all 유지하되 긴 토큰(URL 등)은 강제 줄바꿈 */
.card, .cat-card, .panel, .summary-box, .toc, .mistakes-box, .check-box, .source-box, .table-wrap { min-width: 0; }

/* 브레드크럼: 줄바꿈 대신 가로 스와이프 (제목이 길어도 레이아웃 안 깨짐) */
@media (max-width: 600px) {
  .breadcrumb {
    flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; padding-bottom: 4px;
  }
  .breadcrumb::-webkit-scrollbar { display: none; }
  .breadcrumb a, .breadcrumb span { white-space: nowrap; }
}

/* 소형 화면 여백·타이포 최적화 */
@media (max-width: 600px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .hero { padding: 44px 0; }
  .hero-desc { font-size: 15px; }
  .section { padding-top: 40px; padding-bottom: 40px; }
  .section h2, .section-sm h2 { font-size: 21px; }
  .page-body { padding-top: 24px; padding-bottom: 56px; }
  .page-head { margin: 14px 0 24px; }
  .card-grid { gap: 14px; }
  .card-link { padding: 18px; }
  .cat-grid { gap: 10px; }
  .cat-card { padding: 16px 14px; }
  .article-body h2 { font-size: 19.5px; }
  .article-sub { font-size: 15.5px; }
  .summary-box, .toc, .mistakes-box, .check-box, .source-box { padding: 16px 18px; }
  .author-box { padding: 18px; gap: 12px; }
  .author-hero { gap: 14px; }
  .author-avatar.big { width: 60px; height: 60px; font-size: 24px; }
  .footer-grid { padding: 36px 16px 22px; }
  .footer-links { gap: 32px; }
  .btn { padding: 12px 18px; font-size: 14.5px; }
  .cta-box { padding: 22px; }
}

/* 터치 반응: 탭 하이라이트 제거 + 카드 눌림 피드백 */
a, button { -webkit-tap-highlight-color: transparent; }
@media (hover: none) {
  .card:active, .cat-card:active { transform: scale(0.985); border-color: var(--accent); }
}

/* 맨 위로 버튼 (main.js가 생성, 600px 이상 스크롤 시 표시) */
.back-to-top {
  position: fixed; right: 16px; bottom: 20px; z-index: 60;
  width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--ink-band); color: var(--band-text); font-size: 18px;
  box-shadow: 0 4px 14px rgba(22, 50, 79, 0.3);
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.back-to-top.show { opacity: 0.92; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { opacity: 1; }

/* ---------- 공유하기 버튼 ---------- */
.share-box { text-align: center; margin: 28px 0 8px; }
.share-box .share-btn { font-size: 15px; padding: 12px 22px; cursor: pointer; border: none; border-radius: 8px; }
/* 푸터의 블로그 공유하기 버튼 — 금색 배경으로 눈에 띄게 */
.footer-share-btn { margin-top: 12px; font-size: 14px; font-weight: 700; padding: 10px 18px; border: none; border-radius: 8px; background: var(--accent); color: var(--main-dark); cursor: pointer; }
.footer-share-btn:hover { filter: brightness(1.08); }
.footer-share-btn:disabled { opacity: 0.85; cursor: default; }


/* 본문 이미지 (jjampress 에서 옮김, 2026-09-28) — 소제목 아래 인포그래픽.
   비율은 그림에 맡긴다 — 16:9 로 자르면 글자 있는 정사각 그림이 잘려 깨져 보인다 */
.article-bodyimg { margin: 26px 0; }
.article-bodyimg img {
  display: block; width: 100%; height: auto;
  border-radius: var(--radius); background: var(--bg-soft);
}
.article-bodyimg figcaption {
  margin-top: 8px; font-size: 0.86rem; color: var(--text-soft); text-align: center;
}

/* ============================================================
   (SEO 2026-10-05 §A-4·9) 카테고리 "글 목록" h2 · 글 머리 "YYYY년 M월 기준" · 홈 최신 글 갱신일
   ============================================================ */
.section-title { font-size: 18px; color: var(--main); margin: 8px 0 14px; }
.section-title span { font-weight: 500; font-size: 14px; color: var(--text-soft); }
.article-basis { font-size: 13px; color: var(--text-soft); margin: -4px 0 8px; }
.section-updated { font-size: 13px; color: var(--text-soft); margin: 0 auto 0 4px; }

/* ============================================================
   (P5 2026-10-05) 쓸모 페이지 — 용어 사전 /tools/glossary/ · 홈 띠 · 글 하단 "이 글의 용어" 칩
   기존 토큰(--main·--accent·--line·--bg-soft·--radius)만 쓴다. 테크구닝에서 옮겨 온 블록 — 색은 이 사이트 토큰을 따른다
   ============================================================ */
.glossary .page-head { margin-bottom: 24px; }
.glossary-meta { font-size: 13px; margin-top: 8px; }

/* 색인 — 묶음별 칸, 항목은 용어 + 한 줄 정의 */
.glossary-index {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; margin-bottom: 40px;
}
.glossary-index h2 { font-size: 18px; color: var(--main); margin-bottom: 12px; }
.glossary-index-group + .glossary-index-group { margin-top: 18px; }
.glossary-index-head { font-size: 15px; color: var(--main); margin-bottom: 6px; }
.glossary-index-head .count { font-size: 12px; font-weight: 500; color: var(--text-soft); margin-left: 4px; }
.glossary-index ul {
  list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 20px;
}
.glossary-index li a { display: block; padding: 6px 0; border-bottom: 1px dashed var(--line); color: var(--text); }
.glossary-index li a:hover { color: var(--accent); }
.glossary-index li b { display: block; color: var(--main); font-size: 14.5px; }
.glossary-index li span { display: block; font-size: 12.5px; color: var(--text-soft); line-height: 1.5; }

/* 본문 — 묶음 머리 + 용어 블록 */
.glossary-group { max-width: var(--w-article); }
.glossary-group-head {
  font-weight: 800; color: var(--accent); font-size: 14px; letter-spacing: 0.02em;
  border-bottom: 2px solid var(--accent); padding-bottom: 6px; margin: 44px 0 4px;
}
.glossary-term { padding: 22px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.glossary-term h2 { font-size: 21px; color: var(--main); line-height: 1.4; margin-bottom: 8px; }
.glossary-short { font-weight: 700; color: var(--text); margin-bottom: 8px; }
.glossary-body { color: var(--text); margin-bottom: 12px; }
.glossary-label { font-size: 12.5px; font-weight: 800; color: var(--text-soft); margin-bottom: 4px; }
.glossary-rel ul { list-style: none; margin-bottom: 10px; }
.glossary-rel li { padding: 3px 0; font-size: 14.5px; }
.glossary-rel li::before { content: "→ "; color: var(--accent); }
.glossary-top { font-size: 12.5px; text-align: right; margin-top: 4px; }
.glossary-top a { color: var(--text-soft); }
.glossary-group[id] { scroll-margin-top: 80px; }

/* 칩 — 함께 보기·이 글의 용어 공용 */
.chip-list { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-block; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--paper); font-size: 13.5px; color: var(--main); line-height: 1.5;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }

/* 글 하단 "이 글의 용어" */
.glossary-chips { margin-top: 36px; }
.glossary-chips h2 { font-size: 18px; }
.glossary-chips-desc { font-size: 13.5px; color: var(--text-soft); margin-bottom: 10px; }

/* 홈 띠 */
.glossary-band-wrap { margin-top: -24px; margin-bottom: 8px; }
.glossary-band {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 16px;
  background: var(--bg-soft); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: var(--radius); padding: 16px 20px; color: var(--text);
}
.glossary-band:hover { border-color: var(--accent); color: var(--text); }
.glossary-band-title { font-weight: 800; color: var(--main); }
.glossary-band-desc { grid-column: 1; font-size: 13.5px; color: var(--text-soft); }
.glossary-band-go { grid-column: 2; grid-row: 1 / span 2; font-size: 20px; color: var(--accent); }

@media (max-width: 600px) {
  .glossary-index { padding: 16px; }
  .glossary-index ul { grid-template-columns: minmax(0, 1fr); }
  .glossary-term h2 { font-size: 19px; }
  .glossary-band-wrap { margin-top: -12px; }
}

/* (SEO 2026-10-05 §B-17 보정, 2026-10-06) WebP 용 <picture> 포장이 격자·플렉스의 한 칸을 차지하지 않게 — 안의 <img> 가 예전처럼 직접 자식인 것처럼 놓인다.
   짬프레스·러브시큐 카드(.card-thumb { grid-row: 1 / span 4 })가 포장 때문에 제목이 그림 아래로 흘러내린 것을 고침 (사용자 폰 캡처). */
picture { display: contents; }

/* 화면에서만 숨김 — 검색 엔진·화면 읽기 프로그램에는 남는다 (2026-10-13) */
.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; }

/* (2026-10-13 스튜디오 덧붙임 17) 제목 자리에 놓은 대표 이미지 — 글 머리 안이라 위 여백은 없애고 아래만 */
.article-head .article-hero-title { margin: 0 0 18px; }
/* 제목 글자가 든 그림은 잘리면 안 된다 — 사이트가 대표 그림을 다른 비율(짬프레스 PC 21:9·폰 3:2)로 잘라도 이 그림만은 원본 비율 그대로 (2026-10-13 사용자 보고) */
.article-head .article-hero-title img { aspect-ratio: auto; height: auto; object-fit: contain; }
/* PC 에서는 제목 자리 대표를 폭 880px 로 가운데 — 글 폭에 꽉 차면 너무 크다 (2026-10-14 사용자). 1:1(부제 여백 포함, is-square)은 720px. 폰은 화면 폭 그대로 */
@media (min-width: 961px) {
  .article-head .article-hero-title { max-width: 880px; margin-left: auto; margin-right: auto; }
  .article-head .article-hero-title.is-square { max-width: 720px; }
}

/* 제목 글자가 든 1:1 대표(위 그림 영역 + 아래 부제 흰 여백)는 카드·슬라이더에서 **위쪽 기준**으로 채운다 (2026-10-14) — 제목·그림은 남고 아래 흰 띠만 빠진다.
   처음엔 contain 으로 통째로 보였는데 양옆 여백이 생겨 사용자가 없애 달라고 함. 속성을 두 번 적어 .hs-fig img 같은 규칙보다 앞서게 */
img[data-titleimg="square"][data-titleimg] { object-fit: cover; object-position: 50% 0; }

/* ---------- (R3 2026-10-16 §4 3단계 ①③) 본문 속 링크·주제 묶음 — 뼈대(어느 layout 에서도 보이게). 모양은 layouts/*.css 가 덮어쓴다 ---------- */
.inline-link { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.cluster-line { font-size: 13.5px; color: var(--text-soft); margin: 0 0 12px; }
.cluster-box { margin: 36px 0 0; padding: 18px 20px; border: 1px solid var(--line); background: var(--bg-soft); }
.cluster-list { padding-left: 0; list-style: none; }
.cluster-next { margin: 32px 0 0; }
.cluster-next a { display: block; }
.hub-tag { font-weight: 700; color: var(--main); }

/* ---------- (REBUILD02 1-② 2026-10-24) 다크 모드 — 기기 설정을 따른다. 토큰만 바꾸고 규칙은 그대로 ----------
   대비(바탕 #12131f 기준): 글자 14.9 · 보조 11.2 · 흐린 7.5 · 골드 글자 9.9. 그림은 그대로 둔다 */
@media (prefers-color-scheme: dark) {
  :root {
    --main: #ece7da;
    --main-dark: #e2b85c;
    --main-soft: #24263a;
    --lime: #4a3f22;
    --accent-line: #c9a24e;
    --accent: #e2b85c;
    --accent-soft: #1f2133;
    --caution: #f2c87a;
    --caution-soft: #2e2716;
    --calm: #9fc28a;
    --calm-soft: #1d2619;
    --paper: #1b1d2c;
    --rule: #3a3c55;
    --ink-band: #0c0d16;
    --bg: #12131f;
    --bg-soft: #1f2133;
    --text: #ece7da;
    --text-soft: #cfc8b8;
    --muted: #aba595;
    --line: #2c2e44;
    --chip-line: #3a3c55;
  }
  img { opacity: 0.94; }
}


/* ===== layouts/shelf.css ===== */
/* ============================================================
   레이아웃 타입 — shelf (서가 · 크림 종이와 네이비 띠) — REBUILD02 1-② 2026-10-24, Claude Design 시안 확정(Q1·Q2·Q5·Q12 추천안)
   ★ 이 파일이 하는 일
     style.css(뼈대 — 토큰은 :root)를 **덮어쓰기만** 한다.
     앞부분은 형제 사이트(브라보라이프 wayfinder.css ← 테슬라구닝·러브시큐)의 글 틀 v2·편집 원칙·묶음·용어 사전 규칙을 **규칙만** 가져왔고
     (오늘의 소식 절은 뺐다 — Q9), 맨 뒤 '서가' 절이 이 사이트만의 모양이다(네이비 머리·바닥 띠, 고운바탕 제목, 새 글 + 지금 어디쯤인가요 홈, '가' 단추, 다크 모드).
     되돌리기: data/site.config.js 의 layout 을 "" 로 비우면 뼈대만 남는다.
   ★ 색 규칙 (대비는 직접 계산 — REBUILD02 §7 1-① 행)
     골드 면·선(#A9781F, --accent-line)은 선 전용(글자 3.9 미달). 골드 글자는 --accent(#8A6117, 종이 위 5.2).
     흐린 글자(#6B6F7A)는 종이 바탕 위에서만(4.7) — 베이지 면(#F3EEE2) 위에서는 --text-soft(7.7).
     문장 속 링크 = 잉크 글자 + 골드 밑줄 2px(색만으로 구분하지 않는다)
   ============================================================ */
/* ---------- 바탕·글자 ---------- */
body { background: var(--bg); color: var(--text); letter-spacing: -0.01em; line-height: 1.75; }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
strong, b { font-weight: 700; }
a { color: var(--main); }
a:hover { color: var(--main-dark); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--main); outline-offset: 2px; }
time, .row-n, .toc-n, .start-n, .row-date, .toc-count { font-variant-numeric: tabular-nums; }
.container { max-width: var(--w-content); padding-left: 40px; padding-right: 40px; }
@media (max-width: 600px) { .container { padding-left: 16px; padding-right: 16px; } }

/* 문장 속 링크 — 밑줄 (본문·요약·FAQ·문서 페이지) */
.article-main section p a, .article-main .body-list a, .summary-box a, .faq a, .owner-note a, .editorial-note a,
.prose p a, .prose li a, .ed-request p a, .page-head p a, .author-bio a, .footer-about p a, .home-kicker a, .glossary-body a, .glossary-short a {
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.owner-link { border-bottom: 0; padding-bottom: 0; }

/* ---------- 머리 ---------- */
.site-header { position: static; background: var(--paper); border-bottom: 2px solid var(--rule); }
.header-inner { min-height: 66px; padding-top: 10px; padding-bottom: 10px; gap: 12px 24px; }
.brand { gap: 10px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark { width: 30px; height: 30px; border-radius: 6px; background: var(--main); font-weight: 700; font-size: 15px; letter-spacing: 0; }
.brand-text { flex-direction: row; align-items: baseline; gap: 8px; font-size: 21px; font-weight: 700; color: var(--text); letter-spacing: -0.03em; }
.brand-text small { font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--text-soft); }
.site-nav { gap: 2px 4px; }
.site-nav a { padding: 8px 9px; border-radius: 0; font-size: 15px; color: var(--text); }
.site-nav a.nav-sub { color: var(--text-soft); }
.site-nav a:hover { background: none; color: var(--main); }
.site-nav a.active { color: var(--main); font-weight: 700; }
.nav-toggle { padding: 11px; margin-right: -11px; }
.nav-toggle span { background: var(--text); }
@media (max-width: 960px) {
  .header-inner { min-height: 58px; padding-top: 6px; padding-bottom: 6px; }
  .site-nav a { padding: 13px 4px; }
  .site-nav a.active { border-left: 3px solid var(--main); padding-left: 12px; background: var(--main-soft); }
}
@media (max-width: 600px) {
  .brand-text { font-size: 19px; }
  .brand-mark { width: 28px; height: 28px; font-size: 15px; }
}
@media (max-width: 340px) { .brand-text small { display: none; } }

/* ---------- 공용 머리줄(2px 잉크 선 + 오른쪽 '더 보기') ---------- */
.sec-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap;
  border-bottom: 2px solid var(--rule); padding-bottom: 10px; margin: 0 0 2px;
}
.sec-head h2 { margin: 0; font-size: 20px; line-height: 1.35; }
.sec-head h2 a { color: var(--text); }
.sec-head h2 a:hover { color: var(--main); }
.more-link { font-weight: 500; font-size: 15px; color: var(--main); white-space: nowrap; }
.section-updated { font-size: 15px; color: var(--text-soft); margin: 0 auto 0 4px; }

/* 번호 목록 한 줄 — 홈 최신 글 · 카테고리 목록 */
.latest-list, .q-list, .short-list, .start-grid { list-style: none; }
.latest-row > a {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text);
}
.latest-row.has-thumb > a { grid-template-columns: 44px minmax(0, 1fr) 72px; }
.latest-row > a:hover { color: var(--text); background: var(--paper); }
.latest-row > a:hover .row-title { color: var(--main); }
.latest-row .row-n { font-size: 22px; font-weight: 700; color: var(--main); line-height: 1; }
.row-body { min-width: 0; }
.row-meta { display: block; font-size: 15px; color: var(--text-soft); margin-bottom: 3px; }
.row-title { display: block; font-size: 17px; font-weight: 700; line-height: 1.45; letter-spacing: -0.02em; margin: 0; color: inherit; }
.row-sub {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 15px; color: var(--text-soft); line-height: 1.6; margin-top: 4px;
}
/* picture{display:contents} 아래 <source> 가 격자 한 칸을 차지하지 않게 */
.latest-row source { display: none; }
.latest-row .card-thumb, .latest-row .row-thumb {
  width: 72px; height: 72px; margin: 0; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 6px; background: var(--bg-soft);
}
@media (max-width: 600px) {
  .latest-row > a { grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 13px 0; }
  .latest-row.has-thumb > a { grid-template-columns: 30px minmax(0, 1fr) 60px; }
  .latest-row .row-n { font-size: 18px; }
  .row-title { font-size: 15.5px; }
  .latest-row .card-thumb, .latest-row .row-thumb { width: 60px; height: 60px; }
}
@media (max-width: 320px) {
  .latest-row.has-thumb > a { grid-template-columns: 26px minmax(0, 1fr) 52px; gap: 10px; }
  .latest-row .card-thumb, .latest-row .row-thumb { width: 52px; height: 52px; }
}

/* 짧은 줄 — 분류별·칼럼 */
.short-row {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; align-items: baseline;
  padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; line-height: 1.5; color: var(--text);
}
.short-row:hover { color: var(--main); }
.row-date { font-size: 15px; color: var(--text-soft); }

/* 칩 — 용어·바로 가기 */
.chip {
  display: inline-block; padding: 7px 12px; border: 0; border-radius: 6px;
  background: var(--main-soft); color: var(--main-dark); font-size: 15px; line-height: 1.45;
}
.chip:hover { color: var(--main-dark); background: var(--lime); }


/* ---------- 목록 페이지(카테고리·칼럼·운영자) ---------- */
.page-head h1 { color: var(--text); letter-spacing: -0.03em; }
.page-head p { color: var(--text-soft); }
.section-title { font-size: 18px; color: var(--text); border-bottom: 2px solid var(--rule); padding-bottom: 10px; margin: 8px 0 2px; }
.cat-list { max-width: 860px; }
.catlist-item { border-top: 2px solid var(--rule); }
.catlist-item h2 a { color: var(--text); }
.count { color: var(--text-soft); }

/* 칼럼 카드(칼럼 목록·운영자 페이지) — 카드 대신 줄 */
.card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; border-top: 2px solid var(--rule); }
@media (max-width: 760px) { .card-grid { grid-template-columns: minmax(0, 1fr); } }
.card { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; }
.card:hover { transform: none; border-color: var(--line); background: var(--paper); }
.card-link { padding: 16px 0; }
.card-cat, .column-label { font-size: 15px; font-weight: 700; color: var(--main); margin-bottom: 4px; }
.card-title { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.card-sub { font-size: 15px; color: var(--text-soft); margin-bottom: 6px; }
.card-meta { font-size: 15px; color: var(--text-soft); }
.column-card { background: transparent; }
.plainlist li { border-bottom-color: var(--line); }
.plainlist .card-meta { font-size: 15px; }

/* ---------- 브레드크럼 ---------- */
.breadcrumb { font-size: 15px; color: var(--text-soft); gap: 6px; margin-bottom: 18px; }
.breadcrumb a { color: var(--text-soft); }
.breadcrumb a:hover { color: var(--main); }
.breadcrumb .sep { color: var(--text-soft); }

/* ---------- 글 페이지 ---------- */
.page-body.article-body { padding-top: 28px; padding-bottom: 64px; }
.article-layout { display: block; }
.article-body article.article-main { max-width: var(--w-article); margin: 0 auto; min-width: 0; }
.toc-side { display: none; }
@media (min-width: 1100px) {
  .article-layout { display: grid; grid-template-columns: minmax(0, 760px) 260px; gap: 56px; justify-content: center; align-items: start; }
  .article-body article.article-main { margin: 0; }
  .toc-side { display: block; align-self: stretch; }
  .toc-side-inner {
    position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto;
    padding-top: 14px; border-top: 2px solid var(--rule); margin-top: 38px;
  }
  .toc-fold { display: none; }
}
.toc-side-title { margin: 0 0 6px; font-size: 15px; font-weight: 700; }
.toc-list { list-style: none; margin: 0; }
.toc-list li { margin: 0; }
.toc-list a {
  display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 6px;
  padding: 8px 0; font-size: 15px; line-height: 1.5; color: var(--text-soft); border-bottom: 1px solid var(--line);
}
.toc-list a:hover, .toc-list a.is-active { color: var(--main); }
.toc-list a.is-active { font-weight: 700; }

/* 접는 차례 (폰·좁은 화면) */
.toc.toc-fold { border: 0; border-top: 2px solid var(--rule); border-radius: 0; background: transparent; padding: 0; margin: 0 0 24px; }
.toc-fold summary { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 10px 0; cursor: pointer; font-size: 15px; font-weight: 700; }
.toc-fold summary .toc-title { color: var(--text); margin: 0; font-size: 15px; font-weight: 700; }
.toc-fold .toc-count { color: var(--text-soft); font-weight: 500; }
.toc-fold .toc-list { margin: 0 0 6px; }
.toc-fold .toc-list a { font-size: 15px; padding: 10px 0; color: var(--text); }

/* 머리 */
.article-head { margin: 0 0 22px; padding: 0; border: 0; }
.article-cat { font-size: 15px; font-weight: 500; margin: 0 0 12px; color: var(--text-soft); }
.article-cat a { color: var(--main); font-weight: 700; }
.article-head h1 { font-size: 34px; line-height: 1.35; letter-spacing: -0.03em; color: var(--text); margin: 0 0 14px; }
.article-sub { font-size: 18px; line-height: 1.65; color: var(--text-soft); margin: 0 0 18px; }
.article-meta { font-size: 15px; color: var(--text-soft); padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.article-meta .owner-link { color: var(--text); font-weight: 700; }
.article-basis { margin: 0; font-size: inherit; color: inherit; }
.fix-badge { color: var(--main); font-weight: 700; }

/* 짧은 답 (answer 있을 때만) */
.short-answer { background: var(--main-soft); padding: 20px 22px; border-radius: 6px; margin: 0 0 28px; }
.article-main .short-answer .short-answer-label { margin: 0 0 8px; padding: 0; border: 0; font-size: 15px; color: var(--main-dark); letter-spacing: 0; }
.short-answer p { margin: 0; font-size: 18px; line-height: 1.75; }

/* 대표 그림 */
.article-hero { margin: 0 0 24px; }
.article-hero img { border-radius: 6px; background: var(--bg-soft); }

/* 바로 가기 (jumps 있을 때만) */
.jumps { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 28px; }
.jumps-label { font-size: 15px; color: var(--text-soft); margin-right: 2px; }

/* 핵심 요약 */
.summary-box { background: var(--paper); border: 1px solid var(--line); border-left: 0; border-top: 2px solid var(--rule); border-radius: 0; padding: 16px 20px 10px; margin: 0 0 24px; }
.summary-box .box-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.summary-box li { font-size: 17px; line-height: 1.75; margin-bottom: 6px; }
.summary-box li::marker { color: var(--main); }

/* 본문 */
.article-body section { margin: 0; }
.article-main > section:not([class]) > h2, .article-main > .faq > h2 {
  margin: 44px 0 14px; padding-top: 14px; border-top: 2px solid var(--rule);
  font-size: 24px; line-height: 1.4; color: var(--text); scroll-margin-top: 16px;
}
.article-body p { font-size: 18px; line-height: 1.85; margin-bottom: 18px; }
.body-list { margin: 0 0 18px 22px; }
.body-list li { font-size: 18px; line-height: 1.8; margin-bottom: 8px; }
.body-list li::marker { color: var(--main); }
.article-bodyimg img { border-radius: 6px; }
.table-wrap { border-radius: 0; border: 0; border-top: 2px solid var(--rule); }
.table-wrap thead th, .table-wrap tbody th { color: var(--text); }
.table-wrap caption { background: transparent; color: var(--text-soft); }

/* 편집 기준 (editorialNote 있을 때만) */
.editorial-note { background: var(--bg-soft); border-radius: 6px; padding: 14px 18px; margin: 28px 0; }
.editorial-note .box-title { font-size: 15px; font-weight: 700; color: var(--text-soft); margin-bottom: 4px; }
.editorial-note p { margin: 0; font-size: 15px; line-height: 1.7; }

/* FAQ — 펼침 */
.faq details { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; padding: 14px 0; margin: 0; }
.faq summary { font-size: 17px; font-weight: 700; color: var(--text); line-height: 1.55; }
.faq summary::marker { color: var(--main); }
.faq details p { margin: 10px 0 2px; font-size: 17px; line-height: 1.8; color: var(--text); }

/* 직접 확인해 보실 곳 (+ 참고한 자료) */
.source-box { border: 2px solid var(--rule); border-radius: 0; background: var(--paper); padding: 20px 22px; margin: 36px 0 0; }
.source-box h2 { font-size: 17px; color: var(--text); margin: 0 0 4px; }
.source-cols { display: grid; gap: 16px; }
.source-box.has-refs .source-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
.source-box.has-refs .source-col:first-child { padding-right: 20px; border-right: 1px solid var(--line); }
.source-box.has-refs .source-col + .source-col { padding-left: 20px; }
.source-col-title { margin: 6px 0 6px; font-size: 15px; font-weight: 700; }
.source-note { font-size: 15px; color: var(--text-soft); margin: 4px 0 12px; }
.source-box li { font-size: 15px; }
.source-box li::before { color: var(--main); }
.source-box li span { color: var(--text-soft); }
@media (max-width: 700px) {
  .source-box.has-refs .source-cols { grid-template-columns: minmax(0, 1fr); }
  .source-box.has-refs .source-col:first-child { padding-right: 0; border-right: 0; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
  .source-box.has-refs .source-col + .source-col { padding-left: 0; padding-top: 6px; }
}

/* 운영자 한마디 — 사람 목소리, 인용 결 */
.owner-note { border: 0; border-left: 2px solid var(--rule); border-radius: 0; background: transparent; padding: 4px 0 4px 20px; margin: 32px 0 0; }
.owner-note .box-title { font-size: 15px; font-weight: 500; color: var(--text-soft); margin-bottom: 6px; }
.owner-note .owner-note-text { font-size: 16px; line-height: 1.75; }

/* 변경 기록 (changelog 있을 때만) */
.changelog { margin-top: 32px; padding-top: 14px; border-top: 2px solid var(--rule); scroll-margin-top: 16px; }
.changelog h2 { font-size: 15px; margin: 0 0 8px; }
.changelog ol { list-style: none; }
.changelog li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.changelog time { color: var(--text-soft); margin-right: 6px; }
.log-type { font-size: 15px; font-weight: 700; color: var(--text-soft); margin-right: 4px; }
.log-type.is-fix { color: var(--main); }

.article-notice { font-size: 15px; color: var(--text-soft); border-top: 1px solid var(--line); padding-top: 16px; margin-top: 36px; }

/* 작성자 상자 */
.author-box { background: transparent; border: 0; border-top: 2px solid var(--rule); border-radius: 0; padding: 18px 0 0; margin: 32px 0 0; }
.author-avatar { width: 44px; height: 44px; border-radius: 6px; background: var(--main); font-weight: 700; font-size: 18px; }
.author-avatar.big { width: 64px; height: 64px; font-size: 26px; }
.author-name { font-size: 16px; font-weight: 700; color: var(--text); }
.author-name a { color: var(--text); }
.author-role { color: var(--text-soft); }
.author-bio { font-size: 15px; color: var(--text-soft); line-height: 1.7; }

/* 이 글의 용어 · 관련 글 */
.glossary-chips { margin-top: 32px; padding-top: 14px; border-top: 2px solid var(--rule); }
.glossary-chips h2, .related h2 { font-size: 15px; margin: 0 0 10px; color: var(--text); }
.glossary-chips-desc { color: var(--text-soft); }
.related { margin-top: 32px; padding-top: 14px; border-top: 2px solid var(--rule); }
.related h2 { margin-bottom: 2px; }
.related li { padding: 0; border-bottom: 1px solid var(--line); }
.related li a { display: block; padding: 13px 0; font-size: 16px; font-weight: 700; line-height: 1.5; color: var(--text); }
.related li a:hover { color: var(--main); }
.tag-col { background: var(--main-soft); color: var(--main-dark); border-radius: 6px; }

@media (max-width: 600px) {
  .page-body.article-body { padding-top: 16px; }
  .breadcrumb { margin-bottom: 14px; font-size: 15px; }
  .article-head h1 { font-size: 25px; line-height: 1.38; margin-bottom: 10px; }
  .article-sub { font-size: 16px; margin-bottom: 14px; }
  .article-meta { font-size: 15px; padding-bottom: 14px; }
  .short-answer { padding: 16px; margin-bottom: 20px; }
  .short-answer p { font-size: 16.5px; }
  .article-hero { margin-bottom: 18px; }
  .summary-box { padding: 14px 16px 8px; }
  .article-main > section:not([class]) > h2, .article-main > .faq > h2 { margin: 34px 0 12px; padding-top: 12px; font-size: 21px; }
  .article-body p { font-size: 17px; line-height: 1.8; margin-bottom: 16px; }
  .source-box { padding: 16px; }
}

/* ---------- 칼럼 글 ---------- */
.column-article .article-head { border-left: 0; padding-left: 0; }
.column-para { font-size: 17px; line-height: 1.85; }

/* ---------- 문서 페이지(소개·정책·운영자) ---------- */
.prose h2, .section-sm h2 { font-size: 20px; color: var(--text); border-top: 2px solid var(--rule); padding-top: 12px; margin: 36px 0 12px; }
.principle-list li::before { color: var(--main); }
.notice-box { background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--rule); border-radius: 0; }
.author-hero { align-items: flex-start; }

/* ---------- (R3 2026-10-16 §4 2단계) 편집 원칙 요약·작성자 4칸·/editorial/ ---------- */
.eyebrow { margin: 0 0 6px; font-size: 15px; font-weight: 700; letter-spacing: 0.02em; color: var(--main); }
.changelog-note { margin: 8px 0 0; font-size: 15px; color: var(--text-soft); }

/* 조 제목 목록 — 홈 운영자 상자·소개·작성자 요약 공용 */
.ed-sum-lead { margin: 0 0 10px; font-size: 15px; line-height: 1.7; color: var(--text); }
.ed-titles { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.ed-titles li { border-bottom: 1px solid var(--line); }
.ed-titles a { display: flex; gap: 10px; align-items: baseline; padding: 8px 0; font-size: 15px; line-height: 1.5; color: var(--text); }
.ed-titles a:hover { color: var(--main); }
.ed-titles .n, .ed-steps .n, .ed-n { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--main); }
.ed-titles .n { font-size: 15px; flex: 0 0 auto; }
.owner-box .ed-sum-lead { font-size: 15px; line-height: 1.65; margin-bottom: 6px; }
.owner-box .ed-titles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; margin-bottom: 12px; } /* (2026-10-17) 8줄 → 2열 4줄 */
.owner-box .ed-titles a { padding: 6px 0; font-size: 15px; }
.ed-summary.in-prose { margin: 36px 0 0; }
.ed-summary.in-prose h2 { margin-top: 0; }
.prose .ed-titles a { text-decoration: none; }

/* 정정 요청 3단계 서식 */
.ed-steps { list-style: none; margin: 12px 0 14px; padding: 0; }
.ed-steps li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 8px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.55; }
.ed-steps .n { font-size: 15px; }

/* 작성자 페이지 4칸 */
.author-cells { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; margin: 8px 0 12px; }
.author-cell { border-top: 2px solid var(--rule); padding-top: 14px; min-width: 0; }
.author-cell h2 { font-size: 20px; margin: 0 0 12px; color: var(--text); border: 0; padding: 0; }
.author-cell p { font-size: 15px; line-height: 1.75; margin: 0 0 12px; }
.author-cell p a { text-decoration: underline; text-underline-offset: 3px; }
.au-topics { list-style: none; margin: 0 0 10px; padding: 0; }
.au-topics li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.au-topics a { font-weight: 700; color: var(--text); }
.au-topics a:hover { color: var(--main); }
.au-topics .n { font-size: 15px; color: var(--main); font-weight: 700; font-variant-numeric: tabular-nums; }
.au-topics .au-short { grid-column: 1 / -1; font-size: 15px; color: var(--text-soft); line-height: 1.55; }
.au-more { font-size: 15px; }
.author-cell .ed-titles { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 760px) {
  .author-cells { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .ed-titles { grid-template-columns: minmax(0, 1fr); }
}

/* /editorial/ */
.editorial-page { max-width: calc(var(--w-article) + 80px); }
.ed-head { margin-bottom: 18px; }
.ed-lead { font-size: 17px; line-height: 1.7; color: var(--text) !important; margin-bottom: 10px; }
.ed-meta { font-size: 15px; }
.ed-jumps { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; padding: 0 0 18px; border-bottom: 1px solid var(--line); }
.ed-jumps a { display: inline-block; padding: 7px 12px; border-radius: 6px; background: var(--main-soft); color: var(--main-dark); font-size: 15px; line-height: 1.45; }
.ed-jumps a:hover { background: var(--lime); color: var(--main-dark); }
.ed-sec { margin: 36px 0 0; scroll-margin-top: 16px; }
.ed-sec > h2 { font-size: 22px; color: var(--text); border-top: 2px solid var(--rule); padding-top: 12px; margin: 0 0 14px; scroll-margin-top: 16px; }
.ed-sec h3 { font-size: 17px; color: var(--text); margin: 22px 0 10px; }
.ed-sec p, .ed-sec li { font-size: 16px; line-height: 1.75; }
.ed-principles { list-style: none; margin: 0; padding: 0; }
.ed-principles > li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 16px; }
.ed-principles .ed-n { font-size: 22px; line-height: 1.2; }
.ed-principles h3 { margin: 0 0 4px; font-size: 17px; }
.ed-principles p { margin: 0; }
.ed-list { margin: 0 0 12px; padding-left: 20px; }
.ed-list li { margin: 0 0 8px; }
.ed-list li::marker { color: var(--main); }
.ed-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 20px; border-top: 1px solid var(--line); }
.ed-type { padding: 14px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.ed-type p { margin: 0 0 6px; font-size: 15px; line-height: 1.65; }
.ed-type .ed-type-when { color: var(--text-soft); }
.ed-type-label strong { font-size: 15px; }
.is-fix { color: var(--main); }
.is-up { color: var(--text); }
.is-none { color: var(--text-soft); }
.ed-form { margin: 16px 0 0; font-size: 15px !important; color: var(--text-soft); }
.ed-flow { margin: 0 0 12px; padding-left: 22px; }
.ed-flow li { margin: 0 0 8px; }
.ed-flow li::marker { color: var(--main); font-weight: 700; }
.ed-request { margin: 22px 0 0; padding: 18px 20px; background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--main); }
.ed-request h3 { margin-top: 0; }
.ed-request p { font-size: 15px; }
.ed-sub { color: var(--text-soft); font-size: 15px !important; }
.ed-empty { padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--text-soft); }
.ed-fixes { list-style: none; margin: 0; padding: 0; }
.ed-fixes li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.ed-fixes time { color: var(--text-soft); font-variant-numeric: tabular-nums; }
.ed-fix-note { display: block; color: var(--text-soft); font-size: 15px; margin-top: 2px; }
@media (max-width: 760px) {
  .ed-types { grid-template-columns: minmax(0, 1fr); }
  .ed-principles > li { grid-template-columns: 32px minmax(0, 1fr); gap: 10px; }
  .ed-principles .ed-n { font-size: 18px; }
  .ed-fixes li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .ed-request { padding: 16px; }
}

/* ---------- 용어 사전 ---------- */
.glossary-index { background: var(--paper); border-radius: 0; border: 0; border-top: 2px solid var(--rule); border-bottom: 1px solid var(--line); padding: 16px 0 20px; }
.glossary-index h2, .glossary-index-head { color: var(--text); }
.glossary-index li a { color: var(--text); }
.glossary-index li a:hover { color: var(--main); }
.glossary-index li b { color: var(--text); }
.glossary-group-head { color: var(--main); border-bottom: 2px solid var(--rule); }
.glossary-term h2 { color: var(--text); }
.glossary-rel li::before { color: var(--main); }

/* ---------- 버튼·폼·404 ---------- */
.btn { border-radius: 6px; font-weight: 700; }
.btn-primary { background: var(--main); color: #fff; }
.btn-primary:hover { background: var(--main-dark); color: #fff; }
.page-body .btn-ghost, .notfound .btn-ghost { border-color: var(--rule); color: var(--text); }
.form-row label { color: var(--text); }
.form-row input, .form-row select, .form-row textarea { border-radius: 6px; background: var(--paper); }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--main); }
.form-note { color: var(--text-soft); }
.notfound h1 { color: var(--text); }

/* ---------- 바닥 ---------- */
.site-footer { background: var(--paper); color: var(--text-soft); border-top: 2px solid var(--rule); margin-top: 0; }
.footer-grid { padding: 32px 40px 24px; }
.footer-brand { color: var(--text); font-weight: 700; }
.footer-brand small { color: var(--text-soft); letter-spacing: 0; }
.footer-meaning { color: var(--text); font-size: 15px; }
.footer-about p { font-size: 15px; color: var(--text-soft); }
.footer-owner a { color: var(--main); }
.footer-owner a:hover { color: var(--main-dark); }
.footer-links-title { color: var(--text); font-weight: 700; }
.footer-links a { color: var(--text-soft); font-size: 15px; }
.footer-links a:hover { color: var(--main); }
.footer-bottom { border-top: 1px solid var(--line); color: var(--text-soft); padding-left: 40px; padding-right: 40px; }
.footer-disclaimer { opacity: 1; }
@media (max-width: 600px) {
  .footer-grid { padding: 26px 16px 20px; }
  .footer-bottom { padding-left: 16px; padding-right: 16px; }
}

/* 맨 위로 */
.back-to-top { background: var(--text); border-radius: 6px; box-shadow: none; }


/* ---------- (R3 2026-10-16 §4 3단계 ①③) 본문 속 링크·주제 묶음 — 번호와 선(카드·그림자 없음) ---------- */
.inline-link { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
/* 글 머리 한 줄 — 분류 바로 아래 */
.cluster-line { margin: -4px 0 12px; font-size: 15px; line-height: 1.55; color: var(--text-soft); }
.cluster-line b { color: var(--text); font-weight: 700; }
.cluster-line .cl-pos { font-variant-numeric: tabular-nums; }
.cluster-line a { color: var(--main); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
/* 허브 글 아래 묶음 번호 목록 — 2px 잉크 선 상자 */
.article-main .cluster-box, .column-article .cluster-box { margin: 40px 0 0; padding: 20px 22px 8px; border: 2px solid var(--rule); border-radius: 0; background: var(--paper); }
.article-main .cluster-box h2 { margin: 0 0 4px; padding: 0; border: 0; font-size: 18px; color: var(--text); }
.cluster-box .cl-count { font-size: 15px; font-weight: 500; color: var(--text-soft); margin-left: 4px; }
.cluster-desc { margin: 0 0 8px; font-size: 15px; line-height: 1.65; color: var(--text-soft); }
.cluster-list { margin: 0; padding: 0; }
.cluster-list li { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: baseline; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15.5px; line-height: 1.5; }
.cluster-list .cl-n { font-weight: 700; color: var(--main); font-variant-numeric: tabular-nums; }
.cluster-list a { color: var(--text); font-weight: 700; text-decoration: none; }
.cluster-list a:hover { color: var(--main); }
.cluster-list .is-current { color: var(--text-soft); }
.cluster-list .is-current em { font-style: normal; font-size: 15px; }
/* 딸린 글 끝 '묶음 다음 글' — 한 칸 */
.cluster-next { margin: 36px 0 0; border-top: 2px solid var(--rule); border-bottom: 1px solid var(--line); }
.cluster-next > a:first-child { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 16px; padding: 16px 0 12px; color: var(--text); }
.cluster-next .cn-label { grid-column: 1; font-size: 15px; font-weight: 700; color: var(--main); }
.cluster-next .cn-title { grid-column: 1; font-size: 17px; font-weight: 700; line-height: 1.45; letter-spacing: -0.02em; }
.cluster-next .cn-go { grid-column: 2; grid-row: 1 / 3; align-self: center; font-size: 20px; color: var(--main); }
.cluster-next > a:first-child:hover .cn-title { color: var(--main); }
.cluster-next .cn-all { display: inline-block; padding: 0 0 12px; font-size: 15px; color: var(--text-soft); text-decoration: underline; text-underline-offset: 3px; }
/* 카테고리 페이지 허브 표시 */
.cat-hubs { margin: 0 0 28px; max-width: 860px; }
.cat-hub-list { list-style: none; margin: 0; padding: 0; }
.cat-hub-list a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.cat-hub-list a:hover .start-title { color: var(--main); }
.hub-tag { font-weight: 700; color: var(--main); }
@media (max-width: 600px) {
  .article-main .cluster-box, .column-article .cluster-box { padding: 16px 16px 6px; }
  .cluster-list li { grid-template-columns: 28px minmax(0, 1fr); font-size: 15px; }
  .cluster-next .cn-title { font-size: 16px; }
}

/* (R3 4단계) 참고한 자료의 적용 범위 한 줄 — sources[].note 있을 때만 */
.source-box li .ref-note { flex-basis: 100%; margin-top: 0; font-size: 15px; color: var(--text-soft); }
.source-box li .ref-note::before { content: "※ "; }

/* (2026-10-16 사용자 "최신글은 롤링" A안·3초) 최신 글 15편 = 5편씩 3쪽, 같은 자리에 겹쳐 두고 보이는 쪽만 is-on */
.latest-pages { display: grid; }
.latest-page { grid-area: 1 / 1; }
.latest-page:not(.is-on) { visibility: hidden; pointer-events: none; }
.latest-page.is-on { animation: lp-in 0.35s ease; }
@keyframes lp-in { from { transform: translateY(8px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .latest-page.is-on { animation: none; } }
.latest-ctrl { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.lp-dot { width: 24px; height: 24px; padding: 0; border: 0; background: transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.lp-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: width 0.2s ease, background 0.2s ease; }
.lp-dot.is-on::before { width: 20px; border-radius: 4px; background: var(--main); }
.lp-pause { margin-left: auto; font: inherit; font-size: 15px; color: var(--text-soft); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; min-height: 28px; cursor: pointer; }
.lp-pause:hover { color: var(--main); border-color: var(--main); }

/* (2026-10-16 사용자 "롤링 멈춤 버튼을 글자 말고 심볼로, 트렌디하게") 멈춤·재생 기호 버튼 — 32px 동그라미, 돌 때 ❚❚ · 멈춘 뒤 ▶(aria-pressed 로 바꿔 보임).
   멈춘 상태는 면을 채워 '지금 멈춰 있음'이 한눈에 보이게. 이름은 aria-label·title(멈춤/재생) — 글자가 없어도 읽기·말풍선 그대로 */
.lp-pause { width: 32px; height: 32px; min-height: 0; padding: 0; display: inline-grid; place-items: center; flex: none; border-radius: 50%; font-size: 0; line-height: 0; transition: background .2s, border-color .2s, color .2s, transform .15s; }
.lp-pause svg { width: 14px; height: 14px; display: block; }
.lp-pause .i-play { display: none; transform: translateX(1px); }
.lp-pause[aria-pressed="true"] .i-pause { display: none; }
.lp-pause[aria-pressed="true"] .i-play { display: block; }
.lp-pause:hover, .lp-pause[aria-pressed="true"] { background: var(--main); border-color: var(--main); color: #fff; }
.lp-pause:active { transform: scale(.92); }
.lp-pause:focus-visible { outline: 2px solid var(--main); outline-offset: 2px; }



/* ============================================================
   ★ 서가 — 내곁에 성경만의 모양 (REBUILD02 1-②, Claude Design 시안). 위 규칙을 덮어쓴다
     크림 종이 · 네이비 머리·바닥 띠 · 진한 골드 한 점 · 고운바탕(명조) 제목 · 그림자·그라데이션·자동 움직임 없음
     글자: 본문 17px/1.8 · 최소 15px · 터치 44px 이상 · '가' 크게 +2px / 작게 -2px(15px 아래로는 안 내려감 — max(15px, …))
   ============================================================ */
:root { --fs-up: 0px; --w-article: 720px; --font-title: "Gowun Batang", "AppleMyungjo", "Noto Serif KR", serif; }
html.fs-lg { --fs-up: 2px; }
html.fs-sm { --fs-up: -2px; }

body { background: var(--bg); line-height: 1.8; font-size: max(15px, calc(17px + var(--fs-up))); }
h1, h2, h3, .sh-title, .brand-text, .nl-title, .st-name, .owner-box-name, .col-card-title, .short-answer p, .column-para, .footer-brand, .ha-text {
  font-family: var(--font-title); letter-spacing: -0.01em;
}
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--accent-line); outline-offset: 3px; box-shadow: none; }

/* 문장 속 링크 — 잉크 글자 + 골드 밑줄 2px (색만으로 구분하지 않는다) */
.inline-link, .article-main section p a.inline-link, .article-main .body-list a.inline-link,
.article-main section p a, .article-main .body-list a, .prose p a, .prose li a, .source-box a {
  color: var(--text); text-decoration: underline; text-decoration-color: var(--accent-line);
  text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.inline-link:hover, .article-main section p a:hover { color: var(--accent); }

/* ---------- 머리 — 네이비 띠 ---------- */
.site-header { position: static; background: var(--ink-band); border: 0; color: var(--band-text); }
.header-inner { min-height: 68px; gap: 8px 20px; }
.brand { min-height: 48px; color: var(--band-text); }
.brand:hover { color: var(--band-text); }
.brand-text { flex-direction: row; align-items: baseline; gap: 8px; font-size: 23px; font-weight: 700; color: var(--band-text); }
.brand-text small { font-family: inherit; font-size: 15px; font-weight: 400; color: var(--band-soft); letter-spacing: 0; }
.site-nav a { color: var(--band-text); font-size: 15px; min-height: 44px; display: inline-flex; align-items: center; padding: 0 10px; }
.site-nav a.nav-sub { color: var(--band-soft); }
.site-nav a:hover { background: transparent; color: var(--band-gold); }
.site-nav a.active { color: var(--band-text); font-weight: 700; box-shadow: inset 0 -3px 0 var(--band-gold); }
.nav-toggle { min-width: 44px; min-height: 44px; }
.nav-toggle span { background: var(--band-text); }
.app-cta { order: 3; background: transparent; color: var(--band-text); border: 1.5px solid var(--band-gold); min-height: 44px; padding: 0 16px; font-size: 15px; font-weight: 600; }
.app-cta svg { color: var(--band-gold); }
.app-cta:hover { color: var(--band-gold); }
/* '가' 글자 크기 단추 — 띠 위 테두리 동그라미 */
.fs-toggle {
  order: 2; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px 0 6px; margin-left: auto;
  border: 1.5px solid #6f6a5e; border-radius: 999px; background: transparent; color: var(--band-text);
  font: inherit; font-size: 15px; cursor: pointer;
}
.fs-toggle[hidden] { display: none; }
.fs-ga { display: inline-grid; place-items: center; width: 30px; height: 30px; font-family: var(--font-title); font-size: 18px; line-height: 1; color: var(--band-text); }
.fs-toggle[data-fs="lg"] { border-color: var(--band-gold); }
.fs-toggle[data-fs="lg"] .fs-ga { font-size: 21px; color: var(--band-gold); }
.fs-toggle[data-fs="sm"] .fs-ga { font-size: 14px; }
.site-nav { order: 1; }
.nav-toggle { order: 4; }
@media (min-width: 961px) { .site-nav { flex: 1 1 auto; } .fs-toggle { margin-left: 0; } }
@media (max-width: 960px) {
  .header-inner { min-height: 60px; flex-wrap: wrap; column-gap: 8px; }
  .brand { margin-right: auto; }
  .site-nav { order: 5; flex-basis: 100%; background: var(--ink-band); }
  .site-nav a { display: flex; min-height: 52px; padding: 0 4px; border-top: 1px solid rgba(255,255,255,0.08); }
  .site-nav a.active { box-shadow: none; border-left: 4px solid var(--band-gold); padding-left: 12px; }
  .fs-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .fs-toggle { padding: 0; width: 44px; justify-content: center; }
  .app-cta { padding: 0; width: 44px; justify-content: center; }
  .app-cta span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .brand-text { font-size: 21px; }
}
@media (max-width: 420px) { .brand-text small { display: none; } }

/* ---------- 공용 머리말 ---------- */
.sh-title { font-size: 24px; font-weight: 700; margin: 0 0 4px; color: var(--text); }
.sh-title a { color: inherit; }
.sh-desc { margin: 0 0 12px; font-size: 15px; color: var(--muted); }
.more-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--accent); }
.more-link:hover { color: var(--text); }
@media (max-width: 600px) { .sh-title { font-size: 22px; } }

/* ---------- 홈 ---------- */
.home .home-top { padding-top: 44px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.home-kicker { margin: 0 0 8px; font-size: 15px; font-weight: 600; color: var(--accent); letter-spacing: 0.02em; }
.home-top h1 { margin: 0; font-size: 40px; line-height: 1.35; max-width: 760px; letter-spacing: -0.02em; }
.home-lead { margin: 14px 0 0; max-width: 680px; color: var(--text-soft); font-size: max(15px, calc(17px + var(--fs-up))); }
.home-by { font-size: 15px; color: var(--muted); }
.home-by a { color: var(--text); font-weight: 600; }
@media (max-width: 600px) { .home .home-top { padding-top: 26px; padding-bottom: 18px; } .home-top h1 { font-size: 28px; line-height: 1.4; } }

.home-split { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 48px; padding-top: 30px; padding-bottom: 36px; }
@media (max-width: 900px) { .home-split { grid-template-columns: 1fr; gap: 24px; padding-top: 22px; } }
.nl-list { list-style: none; margin: 0; padding: 0; }
.nl-row { border-top: 1px solid var(--line); padding: 16px 0; }
.nl-meta { margin: 0; font-size: 15px; color: var(--muted); }
.nl-cat { color: var(--accent); font-weight: 600; }
.nl-title { display: block; margin-top: 4px; font-size: max(15px, calc(21px + var(--fs-up))); line-height: 1.5; font-weight: 700; color: var(--text); }
.nl-title:hover { color: var(--accent); }
.nl-sub { margin: 4px 0 0; color: var(--text-soft); font-size: max(15px, calc(16px + var(--fs-up))); line-height: 1.65; }
@media (max-width: 600px) { .nl-row { padding: 14px 0; } .nl-title { font-size: max(15px, calc(19px + var(--fs-up))); } }

.stations { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.station { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); }
.station:hover { border-color: var(--accent-line); color: var(--text); }
.st-n { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: var(--ink-band); color: var(--band-text); font-size: 15px; font-weight: 700; display: inline-grid; place-items: center; }
.st-body { min-width: 0; display: flex; flex-direction: column; }
.st-when { font-size: 15px; color: var(--accent); font-weight: 600; line-height: 1.5; }
.st-name { font-size: max(15px, calc(19px + var(--fs-up))); font-weight: 700; line-height: 1.4; }
.st-hub { font-size: 15px; color: var(--muted); line-height: 1.5; }
@media (prefers-color-scheme: dark) { .st-n { background: var(--band-gold); color: #12131f; } }

/* 이런 게 궁금하셨죠 (2026-10-24 공간 효율) — 카드 4열(질문 2줄+분류 줄, 폰 106px/개) → Q 목록 2단.
   PC 는 질문 한 줄 + 오른쪽 분류, 900px 이하는 분류를 숨겨 한 줄 유지, 600px 이하 1단·줄 48px(누르기 최소 높이) */
.home-questions { padding-top: 24px; padding-bottom: 24px; border-top: 1px solid var(--line); }
.q-cards { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; border-bottom: 1px solid var(--line); }
.q-cards li { border-top: 1px solid var(--line); }
.q-card { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 9px 2px; box-sizing: border-box; color: var(--text); }
.q-card::before { content: "Q"; flex: none; font-size: 15px; font-weight: 700; color: var(--accent); }
.q-card:hover, .q-card:hover .q-text { color: var(--accent); }
.q-text { flex: 1; min-width: 0; font-size: max(15px, calc(16px + var(--fs-up))); font-weight: 600; line-height: 1.45; }
.q-cat { flex: none; font-size: 15px; color: var(--muted); }
@media (max-width: 900px) { .q-cards { column-gap: 24px; } .q-cat { display: none; } }
@media (max-width: 600px) { .q-cards { grid-template-columns: 1fr; } }

.home-bundles { padding-top: 28px; padding-bottom: 28px; border-top: 1px solid var(--line); }
.bundles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 760px) { .bundles { grid-template-columns: 1fr; } }
.bundle { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 16px; }
.bundle summary { list-style: none; cursor: pointer; min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bundle summary::-webkit-details-marker { display: none; }
.b-name { font-family: var(--font-title); font-size: max(15px, calc(18px + var(--fs-up))); font-weight: 700; }
.b-count { font-size: 15px; color: var(--muted); }
.b-blurb { margin: 0 0 8px; font-size: 15px; color: var(--text-soft); }
.b-list { margin: 0 0 14px; padding-left: 22px; }
.b-list a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); font-size: max(15px, calc(16px + var(--fs-up))); }

.term-band { display: flex; gap: 12px 24px; align-items: center; flex-wrap: wrap; padding-top: 28px; padding-bottom: 32px; border-top: 1px solid var(--line); }
.term-band .tb-head { flex: 0 0 260px; }
.term-band .tb-head p { margin: 2px 0 0; font-size: 15px; color: var(--muted); }
.term-band .home-chips { flex: 1 1 400px; }
.chip-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--chip-line); background: var(--paper); color: var(--text); font-size: 15px; font-weight: 400; }
.chip:hover { border-color: var(--accent-line); background: var(--paper); color: var(--text); }
.chip-more { border-color: transparent; background: transparent; color: var(--accent); font-weight: 600; }

.home-bottom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding-top: 32px; padding-bottom: 32px; border-top: 1px solid var(--line); }
@media (max-width: 900px) { .home-bottom { grid-template-columns: 1fr; } }
.col-cards { list-style: none; margin: 0; padding: 0; }
.col-card { display: flex; flex-direction: column; padding: 16px 0; border-top: 1px solid var(--line); color: var(--text); }
.col-card-title { font-size: max(15px, calc(20px + var(--fs-up))); font-weight: 700; line-height: 1.5; }
.col-card .row-date { font-size: 15px; color: var(--muted); }
.owner-box { background: var(--bg-soft); border-radius: 12px; padding: 24px 26px; border: 0; box-shadow: none; }
.owner-box-label { margin: 0; font-size: 15px; font-weight: 600; color: var(--accent); }
.owner-box-name { margin: 4px 0 10px; font-size: 22px; font-weight: 700; }
.owner-box-name a { color: var(--text); }
.ed-sum-lead { margin: 0 0 12px; font-size: 16px; color: var(--text); line-height: 1.75; }
.owner-box .ed-titles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; margin: 0 0 12px; padding: 0; list-style: none; }
.owner-box .ed-titles a { color: var(--text-soft); font-size: 15px; }
.owner-box-links { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin: 0; }
.owner-box-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; color: var(--text); }
.owner-box-links a.btn-ink { padding: 0 18px; border-radius: 8px; background: var(--ink-band); color: var(--band-text); font-weight: 600; }
@media (max-width: 600px) { .owner-box { padding: 20px; } .owner-box .ed-titles { grid-template-columns: 1fr; } }

.home-app { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 4px; margin-bottom: 48px; padding: 20px 26px; border: 1px solid var(--chip-line); border-radius: 12px; }
.ha-text { margin: 0; font-size: 20px; }
.ha-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--text); color: var(--text); font-weight: 600; font-size: 15px; }
.ha-btn:hover { color: var(--accent); border-color: var(--accent-line); }

/* ---------- 글 페이지: 차례는 본문 위 접힘(Q12) · 글 폭 720 ---------- */
.article-layout, .article-layout:where(*) { display: block !important; }
.toc-side { display: none !important; }
.toc-fold { display: block !important; }
.article-body article.article-main { max-width: var(--w-article); margin: 0 auto; }
.toc.toc-fold { background: var(--paper); border: 1px solid var(--line) !important; border-radius: var(--radius); padding: 0 18px; }
.toc-fold summary { min-height: 48px; font-size: 16px; }
.toc-fold .toc-list a { min-height: 44px; font-size: max(15px, calc(16px + var(--fs-up))); align-items: center; }
.breadcrumb { font-size: 15px; color: var(--muted); }
.breadcrumb a { min-height: 44px; display: inline-flex; align-items: center; color: var(--muted); }
.article-cat a, .cluster-line a { color: var(--accent); font-weight: 600; }
.article-head h1 { font-size: 36px; line-height: 1.4; letter-spacing: -0.02em; }
.article-sub { font-size: max(15px, calc(18px + var(--fs-up))); color: var(--text-soft); }
.article-meta { font-size: 15px; color: var(--muted); }
@media (max-width: 600px) { .article-head h1 { font-size: 27px; line-height: 1.42; } }
.short-answer { background: var(--paper); border: 1px solid var(--chip-line); border-radius: 12px; }
.article-main .short-answer .short-answer-label { font-size: 15px; letter-spacing: 0.02em; color: var(--accent); font-weight: 700; }
.short-answer p { font-size: max(15px, calc(19px + var(--fs-up))); line-height: 1.75; }
.jumps .chip { min-height: 44px; }
.article-body p { font-size: max(15px, calc(17px + var(--fs-up))); }
.body-list li { font-size: max(15px, calc(17px + var(--fs-up))); }
.article-body h2 { font-size: 24px; line-height: 1.45; color: var(--text); }
@media (max-width: 600px) { .article-body h2 { font-size: 22px; } }
.summary-box { background: var(--bg-soft); border: 0; border-radius: 12px; }
.summary-box li { font-size: max(15px, calc(16px + var(--fs-up))); color: var(--text); }
.faq summary { font-size: max(15px, calc(17px + var(--fs-up))); min-height: 52px; display: flex; align-items: center; gap: 8px; color: var(--text); }
.faq details p { font-size: max(15px, calc(16px + var(--fs-up))); }
.editorial-note, .article-main .editorial-note { border-left: 3px solid var(--accent-line); background: var(--paper); color: var(--text-soft); font-size: 15px; }
.source-box { background: var(--paper); border: 1px solid var(--line); border-top: 1px solid var(--line); border-radius: 12px; }
.source-box h2 { color: var(--text); }
.source-box li::before { content: none; }
.author-box { background: var(--bg-soft); border: 0; border-radius: 12px; }
.author-box .author-role, .author-box .author-bio { color: var(--text-soft); }
.author-avatar { background: var(--ink-band); color: var(--band-gold); font-family: var(--font-title); }
.column-para { font-size: max(15px, calc(18px + var(--fs-up))); line-height: 1.9; }

/* ---------- 바닥 — 네이비 띠 ---------- */
.site-footer { background: var(--ink-band); color: var(--band-soft); border-top: 0; }
.footer-brand { color: var(--band-text); font-size: 21px; }
.footer-brand small { color: var(--band-soft); font-family: inherit; }
.footer-meaning { color: var(--band-text); }
.footer-links-title { color: var(--band-gold); font-size: 15px; }
.footer-about p, .footer-bottom, .footer-links a { color: var(--band-soft); font-size: 15px; }
.footer-links a { min-height: 40px; display: flex; align-items: center; }
.footer-owner a, .footer-about p a { color: var(--band-text); }
.footer-links a:hover, .footer-owner a:hover { color: var(--band-gold); }
.footer-bottom { border-top: 1px solid #34364d; color: #a9a495; }
.footer-share-btn { min-height: 44px; }

/* 최소 글자 15px — 뼈대의 13~14px 글자를 올린다 */
.card-meta, .card-cat, .tag-col, .section-updated, .source-note, .ref-note, .author-role, .form-row label, .table-wrap caption, .table-wrap table { font-size: max(15px, 1em); }

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

/* (1-② 측정 보정 2026-10-24) PC 머리가 두 줄로 넘어가 첫 글이 504px — '가'는 시안처럼 동그라미 하나(글자 이름은 화면 읽기용으로만), 메뉴 간격을 좁힌다 */
.fs-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fs-toggle { padding: 0; width: 44px; justify-content: center; }
.site-nav a { padding: 0 8px; }
@media (min-width: 961px) { .header-inner { flex-wrap: nowrap; } .site-nav { flex-wrap: nowrap; min-width: 0; } .brand { margin-right: 8px; flex: 0 0 auto; } }
@media (min-width: 961px) and (max-width: 1180px) { .site-nav a.nav-sub { display: none; } }
/* 바닥 공유 단추 — 네이비 띠 위 테두리 단추 */
.footer-share-btn, .site-footer .share-btn { background: transparent; color: var(--band-text); border: 1.5px solid var(--band-gold); border-radius: 999px; padding: 0 18px; font-size: 15px; }
.footer-share-btn:hover { color: var(--band-gold); }
/* PC 메뉴 — 한 줄(글자가 두 줄로 꺾이지 않게). 좁은 PC 는 칼럼·용어 사전·소개를 바닥 메뉴에 맡긴다 */
.site-nav a { white-space: nowrap; }
@media (min-width: 961px) and (max-width: 1360px) { .site-nav a.nav-sub { display: none; } }
/* 첫 글 위치 목표(PC ≤ 420 · 폰 ≤ 620) — 머리말 여백을 줄인다 */
.home .home-top { padding-top: 30px; padding-bottom: 20px; }
.home-top h1 { font-size: 36px; }
.home-split { padding-top: 22px; }
@media (max-width: 600px) { .home .home-top { padding-top: 22px; padding-bottom: 16px; } .home-top h1 { font-size: 27px; } }
/* 브레드크럼 — '/' 가 글자와 같은 줄에 */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; column-gap: 6px; }
.breadcrumb .sep { line-height: 1; }
/* (1-② 측정 보정 — 브라보 R2 보정 규칙 이식) 최소 글자 15px · 목록 링크 44px 이상 (문장 속 링크는 예외) */
.source-box li, .source-box li span, .source-box .ref-note, .source-box .ref-checked, .source-box time, .author-role { font-size: 15px; }
.source-box li a, .cluster-list a, .cluster-line a.cl-start, .ed-titles a, .tb-head h2 a, .owner-box-name a { display: inline-flex; align-items: center; min-height: 44px; }
.ed-titles a { display: flex; }
.nl-title { display: flex; align-items: center; min-height: 44px; }

/* ---------- (REBUILD02 N단계 2026-10-24) 오늘의 성경 소식 — /news/ 와 홈 띠. 브라보라이프 규칙 이식(색은 토큰) ---------- */
/* ---------- 오늘의 보안 브리핑 — /news/ 와 홈 띠 (R3 N단계 2026-10-16) ----------
   서류함 결 그대로: 2px 잉크 선 머리 · 1px 회색 줄 목록 · 번호 01~03(라임 잉크) · 그림자·둥근 카드 없음.
   브리핑 상자만 2px 잉크 테두리 흰 면(홈 운영자 상자와 같은 꼴). '나를 지키려면' 꼬리표는 연보라 면 글자 */
.news-head { margin-bottom: 26px; }
.news-lead { font-size: 15.5px; line-height: 1.75; color: var(--text-soft); max-width: 760px; }
.news-lead b { color: var(--text); }
.news-updated { margin-top: 6px; font-size: 15px; color: var(--text-soft); }
.news-brief { border: 2px solid var(--rule); background: var(--paper); padding: 20px 24px 8px; margin: 0 0 36px; }
.news-brief .sec-head { border-bottom-width: 1px; border-bottom-color: var(--line); }
.news-brief-date { font-size: 15px; color: var(--text-soft); margin-right: auto; font-variant-numeric: tabular-nums; }
.news-brief-list { list-style: none; }
.news-brief-list > li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.news-brief-list > li:last-child { border-bottom: 0; }
.news-brief-list .row-n { font-size: 20px; font-weight: 700; color: var(--main); line-height: 1.3; font-variant-numeric: tabular-nums; }
.nb-what { margin: 0 0 6px; font-size: 16.5px; font-weight: 700; line-height: 1.55; color: var(--text); }
.nb-why { margin: 0 0 8px; font-size: 15px; line-height: 1.7; color: var(--text); }
.nb-why b { display: inline-block; margin-right: 6px; padding: 1px 7px; border-radius: 6px; background: var(--main-soft); color: var(--main-dark); font-size: 15px; }
.nb-src { display: inline-flex; align-items: center; gap: 4px; font-size: 15px; color: var(--text-soft); line-height: 1.5; }
.nb-src:hover { color: var(--main); }
.news-days-title { margin-top: 0; }
.news-day { border-bottom: 1px solid var(--line); }
.news-day > summary {
  display: flex; align-items: baseline; gap: 10px; padding: 14px 0; cursor: pointer; list-style: none;
  font-weight: 700; font-size: 16px; color: var(--text);
}
.news-day > summary::-webkit-details-marker { display: none; }
.news-day > summary::before { content: "+"; width: 14px; color: var(--main); font-weight: 700; }
.news-day[open] > summary::before { content: "−"; }
.news-day-tag { font-size: 15px; font-weight: 700; color: var(--main-dark); background: var(--main-soft); padding: 1px 7px; border-radius: 6px; }
.news-day-count { margin-left: auto; font-size: 15px; font-weight: 500; color: var(--text-soft); font-variant-numeric: tabular-nums; }
.news-list { list-style: none; padding: 0 0 8px 24px; }
.news-item { border-top: 1px solid var(--line); padding: 14px 0; }
.news-link { display: block; color: var(--text); }
.news-link:hover .news-title { color: var(--main); }
.news-src { display: block; font-size: 15px; color: var(--text-soft); margin-bottom: 2px; }
.news-title { display: block; font-size: 16px; font-weight: 700; line-height: 1.5; letter-spacing: -0.01em; }
.news-sum { display: block; margin-top: 4px; font-size: 15px; line-height: 1.65; color: var(--text-soft); }
.news-go { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 15px; color: var(--main); }
.news-ours { display: inline-block; margin-top: 8px; font-size: 15px; color: var(--main-dark); }
.news-ours b { margin-right: 4px; padding: 1px 7px; border-radius: 6px; background: var(--main-soft); font-size: 15px; }
.news-empty { padding: 24px 0; color: var(--text-soft); }
.news-note { margin: 28px 0 0; border-top: 2px solid var(--rule); padding-top: 12px; }
.news-note > summary { cursor: pointer; font-size: 15px; font-weight: 700; color: var(--text); }
.news-note p { margin-top: 8px; font-size: 15px; line-height: 1.75; color: var(--text-soft); }
.news-note p a { text-decoration: underline; text-underline-offset: 3px; }
.news-follow { margin: 32px 0 48px; }
.news-follow-list { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 14px; list-style: none; }

/* 주간 소식 정리 글 — 소식(소제목)마다 원문 출처 한 줄 */
.news-source { font-size: 15px; color: var(--text-soft); border-top: 1px dashed var(--line); padding-top: 10px; margin-top: 6px; }
.news-source a { text-decoration: underline; text-underline-offset: 3px; }


/* ---------- 오늘의 제도 소식 — 홈 띠(정적 3줄, 롤링 없음)·/news/ (N단계) ---------- */
.home-brief { background: var(--main-soft); border-bottom: 1px solid var(--line); color: var(--text); }
.home-brief-inner { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 8px 28px; align-items: start; padding-top: 14px; padding-bottom: 14px; }
.home-brief .hb-head { display: flex; flex-direction: column; gap: 2px; }
.home-brief .hb-head h2 { margin: 0; font-size: 18px; color: var(--text); }
.home-brief .hb-date { display: block; font-size: 15px; font-weight: 400; color: var(--text-soft); }
.home-brief .hb-all { display: inline-flex; align-items: center; min-height: 40px; font-size: 15px; font-weight: 700; color: var(--main); }
.home-brief .hb-list { list-style: none; margin: 0; padding: 0; }
.home-brief .hb-list li { border-top: 1px solid rgba(154, 74, 30, 0.18); }
.home-brief .hb-list li:first-child { border-top: 0; }
.home-brief .hb-item { display: flex; align-items: baseline; gap: 10px; min-height: 44px; padding: 8px 0; color: var(--text); position: static; opacity: 1; transform: none; }
.home-brief .hb-item:hover .hb-what { color: var(--main); }
.home-brief .hb-topic { flex: none; padding: 1px 10px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 15px; font-weight: 700; color: var(--main-dark); }
.home-brief .hb-what { font-size: max(15px, calc(16px + var(--fs-up))); line-height: 1.55; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
@media (max-width: 760px) {
  .home-brief-inner { grid-template-columns: minmax(0, 1fr); gap: 4px; padding-top: 10px; padding-bottom: 8px; }
  .home-brief .hb-head { flex-direction: row; align-items: center; justify-content: space-between; }
  .home-brief .hb-date { display: inline; margin-left: 6px; }
  .home-brief .hb-list li:nth-child(n+3) { display: none; } /* 폰은 2줄 — 첫 글을 너무 밀지 않게 */
}
.news-page .news-item, .news-page .news-day { border-radius: 6px; }
.news-page .news-title { font-size: max(15px, calc(17px + var(--fs-up))); }
.news-page .news-sum, .news-page .news-src, .news-page .news-go, .news-page .news-ours { font-size: 15px; }
.news-page .news-day summary { min-height: 52px; }
.news-brief .nb-what { font-size: max(15px, calc(18px + var(--fs-up))); }
.news-brief .nb-why, .news-brief .nb-src { font-size: 16px; }


/* ============================================================
   (REBUILD02 덧붙임 2026-10-24) 머리 다시 정리 + 오늘의 말씀 티커 + 공간 줄이기
   사용자 "헤더 메뉴가 글자 크게 아이콘과 겹칩니다 — ui/ux 전체적으로, 공간 활용 효율적으로"
   원인: 1361px 이상에서 칼럼·용어 사전·소개·오늘의 소식이 다시 나타나 메뉴가 '가' 단추 밑으로 밀려 들어갔다(그 아래 폭에서는 아예 숨어 닿을 길이 없었다).
   고침: PC 는 분류 5 + '더 보기 ▾' 하나로 — 메뉴 수와 상관없이 한 줄. 1100px 이하는 햄버거 하나로 전부.
   ============================================================ */
.nav-more-list a.nav-sub { display: flex; }
@media (min-width: 1101px) {
  .header-inner { flex-wrap: nowrap; gap: 0 14px; }
  .site-nav { display: flex; flex: 1 1 auto; align-items: center; flex-wrap: nowrap; gap: 0; min-width: 0; }
  .site-nav > a { padding: 0 9px; }
  .nav-toggle { display: none; }
  .nav-more { position: relative; }
  .nav-more-btn { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 10px; background: none; border: 0; color: var(--band-soft); font: inherit; font-size: 15px; cursor: pointer; white-space: nowrap; }
  .nav-more-btn:hover, .nav-more-btn[aria-expanded="true"] { color: var(--band-gold); }
  .nav-more-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
  .nav-more.has-active .nav-more-btn { color: var(--band-text); box-shadow: inset 0 -3px 0 var(--band-gold); }
  .nav-more-list { display: none; position: absolute; left: 0; top: calc(100% + 6px); z-index: 60; min-width: 180px; padding: 6px; background: var(--ink-band); border: 1px solid #34364d; border-radius: 10px; flex-direction: column; }
  .nav-more-list.open { display: flex; }
  .nav-more-list a { min-height: 44px; padding: 0 12px; border-radius: 6px; white-space: nowrap; color: var(--band-text); box-shadow: none; }
  .nav-more-list a:hover { background: rgba(255,255,255,0.07); color: var(--band-gold); }
  .nav-more-list a.active { color: var(--band-gold); box-shadow: none; }
}
@media (min-width: 1101px) and (max-width: 1260px) {
  .app-cta { padding: 0; width: 44px; justify-content: center; }
  .app-cta span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .brand-text small { display: none; }
}
@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .header-inner { flex-wrap: wrap; column-gap: 8px; min-height: 60px; }
  .brand { margin-right: auto; }
  .fs-toggle { margin-left: 0; }
  .site-nav { display: none; order: 5; flex-basis: 100%; flex-direction: column; padding: 4px 0 12px; }
  .site-nav.open { display: flex; }
  .site-nav a { display: flex; min-height: 52px; padding: 0 4px; border-top: 1px solid rgba(255,255,255,0.08); box-shadow: none; }
  .site-nav a.active { border-left: 4px solid var(--band-gold); padding-left: 12px; }
  .nav-more-btn { display: none; }
  .nav-more-list { display: flex; flex-direction: column; }
  .app-cta { padding: 0; width: 44px; justify-content: center; }
  .app-cta span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .brand-text { font-size: 21px; }
}

/* ---------- 오늘의 말씀 티커 — 머리 아래 한 줄(44px) ---------- */
.verse-ticker { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.vt-inner { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.vt-label { flex: 0 0 auto; margin: 0; display: flex; align-items: baseline; gap: 6px; font-size: 15px; line-height: 1.3; }
.vt-label b { font-family: var(--font-title); font-weight: 700; color: var(--accent); }
.vt-src { color: var(--text-soft); font-size: 15px; }
.vt-window { flex: 1 1 auto; min-width: 0; overflow: hidden; display: flex; }
.vt-track { list-style: none; margin: 0; padding: 0 48px 0 0; display: flex; gap: 48px; white-space: nowrap; flex: 0 0 auto; }
.vt-track a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); font-size: 15px; }
.vt-track a:hover .vt-text { text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 4px; }
.vt-ref { color: var(--accent); font-weight: 600; margin-left: 8px; }
.vt-window.is-rolling .vt-track { animation: vt-roll var(--vt-dur, 60s) linear infinite; }
.vt-window.is-paused .vt-track, .vt-window:hover .vt-track, .vt-window:focus-within .vt-track { animation-play-state: paused; }
@keyframes vt-roll { from { transform: translateX(0); } to { transform: translateX(-100%); } }
/* 흐르지 않을 때(스크립트 없음·움직임 줄이기) — 첫 구절만 한 줄, 넘치면 말줄임 */
.vt-window:not(.is-rolling) .vt-track { flex: 1 1 auto; min-width: 0; padding-right: 0; }
.vt-window:not(.is-rolling) .vt-track li:not(:first-child) { display: none; }
.vt-window:not(.is-rolling) .vt-track li { min-width: 0; }
.vt-window:not(.is-rolling) .vt-track a { display: block; line-height: 44px; overflow: hidden; text-overflow: ellipsis; }
.vt-pause { flex: 0 0 auto; width: 44px; height: 44px; margin-right: -10px; border: 0; background: transparent; color: var(--text-soft); display: inline-grid; place-items: center; cursor: pointer; }
.vt-pause[hidden] { display: none; }
.vt-pause .i-play { display: none; }
.vt-pause[aria-pressed="true"] .i-play { display: block; }
.vt-pause[aria-pressed="true"] .i-pause { display: none; }
@media (prefers-reduced-motion: reduce) { .vt-window .vt-track { animation: none !important; } }
@media (max-width: 600px) { .vt-src { display: none; } .vt-inner { gap: 10px; } }

/* ---------- 공간 줄이기 — 홈 구획 여백·카드 높이 ---------- */
.home-bundles, .term-band, .home-bottom { padding-top: 24px; padding-bottom: 24px; }
.home-split { padding-bottom: 24px; }
.stations { gap: 8px; }
.station { padding: 11px 14px; }
.nl-row { padding: 12px 0; }
.sh-title { margin-bottom: 2px; }
.sh-desc { margin-bottom: 8px; }
.home-app { margin-bottom: 32px; padding: 16px 22px; }
/* 폰 메뉴 — 지금 있는 분류: 네이비 위 골드 글자(밝은 면 위 밝은 글자로 안 보이던 것) */
@media (max-width: 1100px) {
  .site-nav a.active { background: rgba(255,255,255,0.06); color: var(--band-gold); font-weight: 700; }
}
/* 폰에서는 앞의 '개역한글' 대신 구절마다 출처를 붙인다(출처 표기 — 성명표시권) */
@media (max-width: 600px) {
  .vt-ref::after { content: " · 개역한글"; color: var(--text-soft); font-weight: 400; }
}
@media (max-width: 1100px) { .site-nav a, .site-nav a:last-child { border-bottom: 1px solid rgba(255,255,255,0.08); } }

/* ---------- (2026-10-24) 말씀 창 — 티커 구절을 누르면: 그림 · 말씀 · 앞뒤 맥락 · 앱 바로 가기 ---------- */
.vt-window.is-held .vt-track { animation-play-state: paused; }
.verse-dialog { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 14px; background: var(--paper); color: var(--text); overflow: auto; }
.verse-dialog::backdrop { background: rgba(18, 19, 31, 0.6); }
.vd-close-row { position: sticky; top: 0; z-index: 2; display: flex; justify-content: flex-end; height: 0; margin: 0; }
.vd-close { width: 44px; height: 44px; margin: 8px 8px 0 0; border: 0; border-radius: 50%; background: rgba(18, 19, 31, 0.55); color: #fff; display: inline-grid; place-items: center; cursor: pointer; }
.vd-pic, .vd-img { display: block; width: 100%; }
.vd-img { aspect-ratio: 3 / 2; object-fit: cover; background: var(--bg-soft); }
.vd-pic[hidden] { display: none; }
.vd-body { padding: 18px 22px 22px; }
.vd-label { margin: 0; font-size: 15px; font-weight: 600; color: var(--accent); }
.vd-label span { margin-left: 6px; font-weight: 400; color: var(--text-soft); }
.vd-ref { margin: 4px 0 8px; font-size: 22px; line-height: 1.4; }
.vd-text { margin: 0; padding: 0; font-family: var(--font-title); font-size: max(15px, calc(19px + var(--fs-up))); line-height: 1.8; }
.vd-ctx { margin: 14px 0 0; padding: 12px 14px; background: var(--bg-soft); border-radius: 10px; font-size: 15px; line-height: 1.7; color: var(--text); }
.vd-ctx b { display: block; margin-bottom: 2px; color: var(--accent); font-size: 15px; }
.vd-ctx[hidden] { display: none; }
.vd-app { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; margin-top: 16px; border-radius: 10px; background: var(--ink-band); color: var(--band-text); font-weight: 600; font-size: 16px; box-sizing: border-box; }
.vd-app:hover { color: var(--band-gold); }
.vd-note { margin: 10px 0 0; font-size: 15px; color: var(--text-soft); text-align: center; }
@media (max-width: 600px) { .vd-body { padding: 14px 16px 18px; } .vd-ref { font-size: 20px; } }
/* 말씀 창 가운데 — 뼈대의 '* { margin: 0 }' 이 dialog 기본 가운데 정렬(margin: auto)까지 지운다 */
.verse-dialog { margin: auto; inset: 0; }

/* ---------- (2026-10-24) 홈 첫 화면 '오늘의 말씀' 그림 슬라이드 — PC 는 글 오른쪽, 좁은 화면은 글 아래 ---------- */
.home-top.has-vh { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 400px); gap: 36px; align-items: center; }
@media (max-width: 900px) { .home-top.has-vh { grid-template-columns: 1fr; gap: 16px; } }
.vh-stage { position: relative; aspect-ratio: 3 / 2; border-radius: 12px; overflow: hidden; background: var(--bg-soft); }
@media (max-width: 600px) { .vh-stage { aspect-ratio: 16 / 9; } }
.vh-slide { position: absolute; inset: 0; display: block; opacity: 0; visibility: hidden; transition: opacity 0.9s ease, visibility 0s linear 0.9s; color: #fff; }
.vh-slide.is-on { opacity: 1; visibility: visible; z-index: 1; transition: opacity 0.9s ease, visibility 0s; }
.vh-slide picture, .vh-slide img { display: block; width: 100%; height: 100%; }
.vh-slide img { object-fit: cover; }
.vh-cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 2px; padding: 34px 16px 12px; background: linear-gradient(to bottom, rgba(14, 15, 28, 0), rgba(14, 15, 28, 0.86) 42%); }
.vh-ref { font-size: 15px; font-weight: 700; color: #f1d38c; }
.vh-ref small { margin-left: 4px; font-size: 15px; font-weight: 400; color: rgba(255, 255, 255, 0.82); }
.vh-text { font-family: var(--font-title); font-size: 15px; line-height: 1.6; color: #fff; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vh-slide:hover .vh-text, .vh-slide:focus-visible .vh-text { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(241, 211, 140, 0.7); }
.vh { position: relative; }
.home-top.has-vh { grid-template-columns: minmax(0, 1fr) minmax(260px, 380px); }
@media (max-width: 900px) { .home-top.has-vh { grid-template-columns: 1fr; } }
/* 점·멈춤 단추는 그림 오른쪽 위에 얹는다 — 그림 아래 한 줄을 아껴 '새 글'이 덜 밀리게 */
.vh-ctrl { position: absolute; top: 8px; right: 8px; z-index: 2; display: flex; align-items: center; padding: 0 4px; border-radius: 16px; background: rgba(14, 15, 28, 0.6); }
.vh-ctrl[hidden] { display: none; }
.vh-dot, .vh-pause { width: 26px; height: 30px; border: 0; padding: 0; background: transparent; display: inline-grid; place-items: center; cursor: pointer; color: #fff; }
.vh-dot::before { content: ""; width: 7px; height: 7px; border-radius: 4px; background: #fff; opacity: 0.6; transition: width 0.3s, opacity 0.3s; }
.vh-dot[aria-current="true"]::before { width: 18px; opacity: 1; background: #f1d38c; }
.vh-dot:focus-visible, .vh-pause:focus-visible { outline: 2px solid #f1d38c; outline-offset: -2px; border-radius: 8px; }
.vh-pause .i-play { display: none; }
.vh-pause[aria-pressed="true"] .i-play { display: block; }
.vh-pause[aria-pressed="true"] .i-pause { display: none; }
@media (prefers-reduced-motion: reduce) { .vh-slide, .vh-slide.is-on { transition: none; } .vh-pause { display: none; } }
/* 태블릿 폭에서는 그림이 화면을 다 덮지 않게 */
@media (min-width: 601px) and (max-width: 900px) { .vh { max-width: 600px; } .vh-stage { aspect-ratio: 16 / 9; } }
