/* ===== 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 {
  --main: #3F6B0A;        /* 라임 잉크 — 링크·번호·분류 꼬리표 글자 (바탕 대비 5.8 · 흰 면 6.3) */
  --main-dark: #2E5006;   /* 진한 라임 잉크 — 연라임 면 위 글자 */
  --main-soft: #EEF9D6;   /* 연라임 면 — 묶음·사전 칩 바탕 */
  --lime: #C8F135;        /* 라임 면 — 머리 선·번호 배지·짧은 답 띠·형광펜 밑줄 (위 글자는 잉크, 대비 13.9) */
  --accent: #8A5A00;      /* 주의 글자 */
  --accent-soft: #FFF4DB; /* 주의 면 */
  --caution: #8A5A00;
  --caution-soft: #FFF4DB;
  --bg: #F4F5F7;          /* 쿨 화이트(티타늄) 바탕 */
  --paper: #FFFFFF;       /* 머리·상자 흰 면 */
  --bg-soft: #ECEEF1;     /* 옅은 회색 면 (표 머리·요약) */
  --text: #14161A;        /* 흑연 잉크 */
  --text-soft: #5B6470;   /* 보조 (바탕 대비 약 5.5) */
  --line: #D5D9E0;        /* 목록 줄 1px */
  --rule: #14161A;        /* 구획 2px 잉크 선 */
  --ink-band: #14161A;    /* 흑연 띠 — 오늘의 소식 띠·바닥만 */
  --radius: 2px;
  --shadow: none;
  --w-content: 1200px;
  --w-article: 760px;
}

/* ---------- 리셋 & 기본 ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  /* (R2 2026-10-23 §4 1단계 ⑤) 자체 호스팅 Spoqa Han Sans Neo(fonts.css) — 못 받으면 기기 글꼴 */
  font-family: "Spoqa Han Sans 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(--main); color: #fff; padding: 8px 16px; z-index: 100;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- 헤더 ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
  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; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--main); color: #fff;
  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(--accent); color: #fff; }
.btn-primary:hover { background: #d3731f; 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: #fff; 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: #fff; 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; }
.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; }

/* 카드 썸네일 (2026-09-27) — 대표 이미지가 있는 카드만 위쪽에 꽉 차게 얹는다 */
.card.has-thumb .card-link { padding-top: 0; }
.card-thumb {
  display: block; width: calc(100% + 44px); margin: 0 -22px 16px;
  aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg-soft);
}

/* 칼럼 카드: 일반 글과 구분되는 톤 */
.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(--main); color: #fff; 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: #fff; box-shadow: var(--shadow); }
.author-avatar {
  flex: none; width: 52px; height: 52px; border-radius: 50%;
  background: var(--main); color: #fff; 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; }

/* 글 대표 이미지 (2026-09-27) — 글 주제를 한 장으로 보여 주는 삽화. 파일이 없으면 아예 그려지지 않는다 */
.article-hero { margin: 6px 0 28px; }
.article-hero img {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--radius); background: var(--bg-soft); box-shadow: var(--shadow);
}

.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; } }

/* 목차 */
.toc {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 22px; margin: 28px 0; background: #fff;
}
.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; }

/* 본문 표 (2026-09-27) — 비교·나열 내용을 목록 대신 표로 세운다.
   좁은 화면에서는 표만 옆으로 밀어 본다 (본문 전체가 넘치지 않는다) */
.table-wrap { margin: 26px 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap table { border-collapse: collapse; width: 100%; min-width: 420px; font-size: 14px; background: #fff; }
.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(--main); color: #fff; font-weight: 700; white-space: nowrap; }
.table-wrap tbody th { background: var(--bg-soft); font-weight: 600; width: 22%; color: var(--main); }
.table-wrap tbody tr:nth-child(even) td { background: var(--bg-soft); }

/* 실수/체크리스트 박스 */
.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: #fff;
}
.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); }

/* 직접 확인해 보실 곳 (2026-09-27) — 글에서 언급한 기관의 공식 창구, 근거를 확인하러 가는 첫 관문 */
.source-box {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; margin: 28px 0; background: var(--bg-soft);
  border-top: 3px solid var(--main);
}
.source-box h2 { font-size: 18px; color: var(--main); padding-top: 0; }
.source-note { font-size: 13px; color: var(--text-soft); margin: 6px 0 14px; }
.source-box ul { list-style: none; display: grid; gap: 10px; }
.source-box li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: 15px; padding-left: 20px; position: relative; }
.source-box li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.source-box li span { font-size: 13px; 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: #fff;
}
.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 { 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(--main); color: #fff; 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; }

/* 비공식 고지 박스 (소개 페이지) */
.notice-box {
  background: var(--bg-soft);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding-top: 14px; padding-bottom: 14px; padding-left: 18px; padding-right: 18px;
  margin-top: 20px; margin-bottom: 20px;
}
.notice-box p { margin: 0; font-size: 15px; color: var(--text-soft); }

/* 푸터 비공식 고지 줄 */
.footer-disclaimer { font-size: 12px; opacity: 0.75; margin-bottom: 6px; }


/* 본문 이미지 (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: #fff; 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); }

/* ===== layouts/instrument.css ===== */
/* ============================================================
   레이아웃 타입 — instrument (계기판 · 흑연과 라임)
   (R2 2026-10-23 §3 1안) REBUILD02 §3: 쿨 화이트 바탕 · 흑연 잉크 · 라임 한 점(면으로만) · Spoqa Han Sans Neo 500·700
   시안(디자인 캔버스): https://claude.ai/artifact/2bUyEkXLmz2AeN8Np8S1vJ

   ★ 이 파일이 하는 일
     style.css(뼈대 — 토큰은 :root)를 **덮어쓰기만** 한다. 뼈대 구조는 건드리지 않는다.
     앞부분은 러브시큐 dossier.css 의 글 틀 v2·편집 원칙·묶음·소식 규칙을 옮긴 것(토큰 이름이 같아 색은 이 사이트 값으로 그려진다),
     맨 뒤 '계기판' 절이 이 사이트만의 모양(머리 라임 선·번호 배지·땅과 하늘 홈·막혔을 때 칩·코스·왼쪽 차례 레일·흑연 바닥)이다.
     되돌리기: data/site.config.js 의 layout 을 "" 로 비우면 뼈대만 남는다.

   ★ 모양 규칙 (시안 Tokens)
     모서리 2px · 그림자·그라데이션 없음(h1 형광펜만 예외 — 단색 띠) · 번호는 라임 사각 배지 · 2px 잉크 선으로 구획
     라임(#C8F135)은 **면으로만** — 위 글자는 잉크. 글자로 쓰는 초록은 --main(#3F6B0A)
     문장 속 링크 = 잉크 글자 + 라임 형광펜 밑줄 3px (색만으로 구분하지 않는다 — 접근성 link-in-text-block)
   ============================================================ */
/* ---------- 바탕·글자 ---------- */
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: 3px; background: var(--main); font-weight: 700; font-size: 13px; 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: 13px; 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: 12px; }
}
@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: 14px; color: var(--main); white-space: nowrap; }
.section-updated { font-size: 13px; 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: 12.5px; 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: 14px; 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: 2px; background: #E4E7EC;
}
@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: 12.5px; color: var(--text-soft); }

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

/* ---------- 홈 ---------- */
.home-top {
  display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 56px;
  padding-top: 28px; padding-bottom: 44px; /* 위에 브리핑 띠가 있어 40 → 28 */
}
/* (2026-10-16 사용자 "사이트 설명 부분 모던하게 트렌드하게") 사이트 소개는 짧게 한 덩어리 — 알약 꼬리표 · h1(가운데 줄 형광펜) · 실제 숫자 칩.
   이름 뜻 긴 문장은 아래 운영자 상자('사이트 소개')로 옮겼다. 그라데이션·그림자 없음 */
.home-kicker {
  display: inline-flex; align-items: center; gap: 7px; margin: 0 0 12px; padding: 4px 11px 4px 9px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: 12.5px; color: var(--text-soft);
}
.kicker-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--main); flex: none; }
.home-kicker a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.home-intro h1 { margin: 0 0 12px; font-size: 34px; line-height: 1.25; letter-spacing: -0.03em; }
.h1-em { color: var(--main); }
.trust-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; padding: 0; list-style: none; }
.trust-chips li { padding: 3px 10px; border-radius: 3px; background: var(--paper); border: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.home-latest { min-width: 0; }

.home-band { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.home-band > .container { padding-top: 40px; padding-bottom: 44px; }
.start-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; }
.start-grid a { display: block; height: 100%; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.start-grid a:hover .start-title { color: var(--main); }
.start-n { display: block; color: var(--main); font-weight: 700; font-size: 13px; margin-bottom: 2px; }
.start-title { display: block; font-size: 18px; font-weight: 700; line-height: 1.45; letter-spacing: -0.02em; }
.start-sub {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 14px; color: var(--text-soft); line-height: 1.6; margin-top: 4px;
}

.home-cats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 56px;
  padding-top: 44px; padding-bottom: 20px;
}
.cat-block { min-width: 0; }
.home-chips { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 14px; }
.home-chips-desc { margin-top: 12px; font-size: 13.5px; color: var(--text-soft); }

.home-bottom {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 56px; align-items: start;
  padding-top: 36px; padding-bottom: 56px;
}
/* (2026-10-17 사용자 "공간효율·좌측과 밸런스") 왼쪽 = 칼럼 카드 + 사이트 소개 카드 / 오른쪽 = 압축한 운영자 카드 */
.hb-left { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.hb-left .sec-head { margin-bottom: -6px; }
.col-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.col-card {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 10px; row-gap: 3px; align-items: baseline;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--text);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.col-card:hover, .col-card:focus-visible { border-color: var(--main); transform: translateY(-1px); text-decoration: none; }
.col-card-title { font-size: 15.5px; font-weight: 700; line-height: 1.45; letter-spacing: -0.02em; }
.col-card:hover .col-card-title { color: var(--main); }
.col-card-sub {
  grid-column: 2; font-size: 13.5px; line-height: 1.55; color: var(--text-soft);
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.site-card { margin-top: auto; padding: 16px 18px; border-radius: 10px; background: var(--main-soft); } /* 아래 끝을 오른쪽 카드와 맞춘다(넓은 화면 2단일 때) */
@media (min-width: 1100px) { .home-bottom { align-items: stretch; } } /* 태블릿 폭은 오른쪽이 훨씬 길어 가운데가 비므로 넓은 PC 만 */
.site-card .owner-box-meaning { margin: 0 0 8px; font-size: 16px; font-weight: 700; line-height: 1.5; color: var(--main-dark); letter-spacing: -0.02em; }
.site-card-link { font-size: 13.5px; font-weight: 700; color: var(--main); }

.owner-box { border: 2px solid var(--rule); border-radius: 10px; background: var(--paper); padding: 20px 22px; }
.owner-box-meaning { margin: 0 0 18px; font-size: 15px; line-height: 1.65; color: var(--text); }
.owner-box-label { margin: 0 0 4px; font-size: 12.5px; color: var(--text-soft); }
.ob-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.ob-head .author-avatar { width: 44px; height: 44px; font-size: 18px; }
.ob-id .owner-box-label { margin: 0; }
.owner-box-name { margin: 0; font-size: 20px; line-height: 1.2; }
.owner-box-name a { color: var(--text); }
.ob-creds { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ob-creds li { padding: 3px 9px; border-radius: 999px; background: var(--main-soft); color: var(--main-dark); font-size: 12.5px; font-weight: 700; }
.ob-creds li.more { background: none; padding: 3px 2px; }
.ob-creds li.more a { color: var(--main); }
.owner-box-bio { margin: 0 0 14px; font-size: 14px; line-height: 1.6; color: var(--text-soft); }
.ob-ed { padding-top: 12px; border-top: 1px solid var(--line); }
.owner-box .principle-list { margin-bottom: 14px; }
.owner-box .principle-list li { padding: 5px 0 5px 20px; font-size: 14.5px; line-height: 1.6; }
.owner-box-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; font-size: 13.5px; }
.owner-box-links a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px;
  font-weight: 700; color: var(--text);
}
.owner-box-links a:first-child { background: var(--main); border-color: var(--main); color: #fff; }
.owner-box-links a:hover { border-color: var(--main); text-decoration: none; }
@media (prefers-reduced-motion: reduce) { .col-card { transition: none; } .col-card:hover { transform: none; } }

@media (max-width: 960px) {
  .home-top { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 24px; }
  .q-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 6px; } /* 한 단으로 내려와 폭이 넓을 때만 2열 */
  .q-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } /* 한 단으로 내려와 넓으면 4열 × 2줄 */
  .start-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
}
@media (max-width: 760px) {
  .home-cats, .home-bottom { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 600px) {
  .home-top { padding-top: 20px; padding-bottom: 36px; gap: 28px; }
  .home-intro h1 { font-size: 26px; line-height: 1.3; margin-bottom: 8px; }
  .home-intro h1 br { display: none; } /* 폰은 한 줄 — 상황 바로가기를 위로 */
  .home-kicker { margin-bottom: 8px; }
  .trust-chips { margin-bottom: 14px; }
  .q-list { grid-template-columns: minmax(0, 1fr); }
  .q-panel { padding: 14px 10px 10px; margin: 0 -4px; }
  .q-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .q-tile { gap: 8px; padding: 8px; font-size: 13.5px; }
  .q-ico { width: 30px; height: 30px; }
  .q-row { font-size: 15.5px; padding: 6px 8px; }
  .sec-head h2 { font-size: 18px; }
  .start-grid { grid-template-columns: minmax(0, 1fr); }
  .start-grid a { padding: 14px 0; }
  .start-title { font-size: 16.5px; }
  .home-band > .container { padding-top: 30px; padding-bottom: 30px; }
  .home-cats { padding-top: 30px; }
  .owner-box { padding: 16px; }
}

/* ---------- 목록 페이지(카테고리·칼럼·운영자) ---------- */
.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: 12.5px; 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: 14px; color: var(--text-soft); margin-bottom: 6px; }
.card-meta { font-size: 12.5px; color: var(--text-soft); }
.column-card { background: transparent; }
.plainlist li { border-bottom-color: var(--line); }
.plainlist .card-meta { font-size: 12.5px; }

/* ---------- 브레드크럼 ---------- */
.breadcrumb { font-size: 13.5px; 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: 14px; 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: 14px; 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: 13.5px; 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: 17px; line-height: 1.65; color: var(--text-soft); margin: 0 0 18px; }
.article-meta { font-size: 13.5px; 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: 3px; margin: 0 0 28px; }
.article-main .short-answer .short-answer-label { margin: 0 0 8px; padding: 0; border: 0; font-size: 13px; color: var(--main-dark); letter-spacing: 0; }
.short-answer p { margin: 0; font-size: 17px; line-height: 1.7; }

/* 대표 그림 */
.article-hero { margin: 0 0 24px; }
.article-hero img { border-radius: 2px; background: #E4E7EC; }

/* 바로 가기 (jumps 있을 때만) */
.jumps { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 28px; }
.jumps-label { font-size: 13.5px; 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: 15.5px; line-height: 1.7; 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: 17px; line-height: 1.85; margin-bottom: 18px; }
.body-list { margin: 0 0 18px 22px; }
.body-list li { font-size: 16.5px; line-height: 1.75; margin-bottom: 8px; }
.body-list li::marker { color: var(--main); }
.article-bodyimg img { border-radius: 2px; }
.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: 3px; padding: 14px 18px; margin: 28px 0; }
.editorial-note .box-title { font-size: 13px; 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: 16px; 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: 16px; line-height: 1.75; 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: 13.5px; 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: 13px; 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: 14.5px; }
.changelog time { color: var(--text-soft); margin-right: 6px; }
.log-type { font-size: 12.5px; font-weight: 700; color: var(--text-soft); margin-right: 4px; }
.log-type.is-fix { color: var(--main); }

.article-notice { font-size: 13.5px; 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: 3px; 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: 14.5px; 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: 3px; }

@media (max-width: 600px) {
  .page-body.article-body { padding-top: 16px; }
  .breadcrumb { margin-bottom: 14px; font-size: 13px; }
  .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: 13px; 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: 12.5px; font-weight: 700; letter-spacing: 0.02em; color: var(--main); }
.changelog-note { margin: 8px 0 0; font-size: 13px; 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: 14.5px; 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: 12.5px; flex: 0 0 auto; }
.owner-box .ed-sum-lead { font-size: 14px; 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: 13.5px; }
.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: 14px; }

/* 작성자 페이지 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: 13px; color: var(--main); font-weight: 700; font-variant-numeric: tabular-nums; }
.au-topics .au-short { grid-column: 1 / -1; font-size: 13.5px; color: var(--text-soft); line-height: 1.55; }
.au-more { font-size: 14px; }
.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: 13.5px; }
.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: 3px; background: var(--main-soft); color: var(--main-dark); font-size: 14px; line-height: 1.45; }
.ed-jumps a:hover { background: #E2F3BE; 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: 14px; 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: 3px; 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: 3px; 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: 14px; }
.footer-about p { font-size: 13.5px; 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: 13.5px; }
.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: 3px; box-shadow: none; }

/* ---------- 오늘의 보안 브리핑 — /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: 13px; 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: 13px; 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: 3px; background: var(--main-soft); color: var(--main-dark); font-size: 13px; }
.nb-src { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; 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: 12.5px; font-weight: 700; color: var(--main-dark); background: var(--main-soft); padding: 1px 7px; border-radius: 3px; }
.news-day-count { margin-left: auto; font-size: 13px; 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: 13px; 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: 14.5px; line-height: 1.65; color: var(--text-soft); }
.news-go { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 13px; color: var(--main); }
.news-ours { display: inline-block; margin-top: 8px; font-size: 14px; color: var(--main-dark); }
.news-ours b { margin-right: 4px; padding: 1px 7px; border-radius: 3px; background: var(--main-soft); font-size: 12.5px; }
.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: 14px; font-weight: 700; color: var(--text); }
.news-note p { margin-top: 8px; font-size: 14px; 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; }

/* 홈 브리핑 띠 — (2026-10-16 사용자 "티커처럼 모든 기사들이 롤링되게, 짬프레스처럼. 위치도 상단쪽으로")
   헤더 바로 아래 어두운 잉크 띠. 짬프레스 구조(왼쪽 제목 칸 + 오른쪽 주제 줄)를 따르되 테슬라구닝 색 — 주황·마스트헤드 느낌은 쓰지 않는다.
   대비(바탕 #15181C): 꼬리표·점·화살표 라임 #C8F135 = 14.6 · 본문 #E6E8EB = 14.51 · 보조 #AEB5BE = 8.61 (모두 4.5 이상)
   한 줄 = 주제 · 무슨 일 · 오른쪽 칸(나를 지키려면/언론사). 항목은 한 칸에 겹쳐 두고 보이는 것만 is-on(main.js 가 3초마다 바꿈) */
.home-brief { --hb-bg: #14161A; --hb-accent: #C8F135; --hb-text: #E6E8EB; --hb-dim: #AEB5BE; --hb-line: #2C3138; background: var(--hb-bg); color: var(--hb-text); }
.home-brief-inner { display: grid; grid-template-columns: 196px minmax(0, 1fr); gap: 8px 32px; align-items: center; padding-top: 12px; padding-bottom: 12px; }
.hb-head { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hb-eyebrow { margin: 0; font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em; color: var(--hb-accent); }
.hb-head h2 { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.3; letter-spacing: -0.03em; color: #fff; }
.hb-date { display: block; margin-top: 2px; font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--hb-dim); white-space: nowrap; }
.hb-all { margin-top: 4px; font-size: 13.5px; font-weight: 700; color: var(--hb-text); }
.hb-all:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.hb-arrow { color: var(--hb-accent); }
.home-brief a:focus-visible { outline-color: var(--hb-accent); }
.hb-list { list-style: none; margin: 0; padding: 0; min-width: 0; }
.hb-list > li { display: grid; min-width: 0; }
.hb-list > li + li { border-top: 1px solid var(--hb-line); }
.hb-item {
  grid-area: 1 / 1; display: grid; grid-template-columns: 128px minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; align-items: center;
  padding: 3px 0; font-size: 14px; line-height: 21px; color: var(--hb-text); min-width: 0;
}
.hb-item:not(.is-on) { visibility: hidden; pointer-events: none; }
/* 주제 이름은 같은 줄에서 늘 같은 글자라 고정돼 보이고, 무슨 일·오른쪽 칸만 서서히 바뀐다 */
/* 투명도 전환은 넘어가는 순간 반투명 글자가 대비 검사(4.5)에 걸려 빼고 위치만 미끄러지게 (2026-10-16) */
.hb-item.is-on .hb-what, .hb-item.is-on .hb-side { animation: hb-in 0.35s ease; }
@keyframes hb-in { from { transform: translateY(6px); } to { transform: none; } }

@media (prefers-reduced-motion: reduce) { .hb-item.is-on .hb-what, .hb-item.is-on .hb-side { animation: none; } }
.hb-item:hover { color: #fff; }
.hb-item:hover .hb-what { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--hb-accent); }
.hb-topic { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--hb-accent); white-space: nowrap; overflow: hidden; }
.hb-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--hb-accent); flex: none; }
.hb-what, .hb-side { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-what { font-weight: 700; }
.hb-side { color: var(--hb-dim); font-size: 13.5px; }
.hb-side b { margin-right: 4px; font-size: 12px; font-weight: 700; color: var(--hb-accent); }
@media (max-width: 960px) {
  .home-brief-inner { grid-template-columns: minmax(0, 1fr); gap: 6px; padding-top: 12px; padding-bottom: 10px; }
  .hb-head { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
  .hb-eyebrow { width: 100%; }
  .hb-head h2 { font-size: 17px; }
  .hb-date { display: inline; margin: 0 0 0 4px; }
  .hb-all { margin: 0 0 0 auto; }
  .hb-item { grid-template-columns: 112px minmax(0, 1fr); gap: 12px; }
  .hb-side { display: none; } /* 좁은 화면은 주제 · 한 줄만 — 나를 지키려면은 /news/ 에서 */
}
@media (max-width: 600px) {
  .hb-eyebrow { display: none; }
  .hb-item { grid-template-columns: 96px minmax(0, 1fr); gap: 10px; padding: 6px 0; font-size: 14px; }
  .hb-topic { font-size: 12.5px; gap: 6px; }
}
@media (max-width: 340px) {
  .hb-item { grid-template-columns: 78px minmax(0, 1fr); gap: 8px; }
  .hb-dot { display: none; }
  .hb-all { font-size: 13px; }
}
@media (max-width: 600px) {
  .news-brief { padding: 16px 16px 4px; }
  .news-brief-list > li { grid-template-columns: 30px minmax(0, 1fr); gap: 8px; }
  .news-brief-list .row-n { font-size: 17px; }
  .nb-what { font-size: 16px; }
  .news-list { padding-left: 0; }
}
/* 주간 소식 정리 글 — 소식(소제목)마다 원문 출처 한 줄 */
.news-source { font-size: 13.5px; 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; }

/* ---------- (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: 13.5px; 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: 13px; font-weight: 500; color: var(--text-soft); margin-left: 4px; }
.cluster-desc { margin: 0 0 8px; font-size: 14.5px; 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: 13px; }
/* 딸린 글 끝 '묶음 다음 글' — 한 칸 */
.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: 13px; 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: 13.5px; 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: 13px; 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: 12.5px; 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; }

/* ============================================================
   ★ 계기판 — 테슬라구닝만의 모양 (R2 2026-10-23 §3 1안). 위 규칙을 덮어쓴다
   ============================================================ */

/* 문장 속 링크 — 잉크 글자 + 라임 형광펜 밑줄 (본문 링크·요약·FAQ) */
.inline-link, .article-main section p a.inline-link, .article-main .body-list a.inline-link {
  color: var(--text); font-weight: 700; text-decoration: underline; text-decoration-color: var(--lime);
  text-decoration-thickness: 3px; text-underline-offset: 3px;
}
.inline-link:hover { color: var(--main); text-decoration-color: var(--main); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; box-shadow: 0 0 0 4px var(--lime); }

/* 머리 — 흰 면 + 라임 4px 머리 선 + 1px 밑선 (어두운 띠 머리는 쓰지 않는다 — 테크구닝과 겹침) */
.site-header { background: var(--paper); border-top: 4px solid var(--lime); border-bottom: 1px solid var(--line); }
.brand-mark { width: 34px; height: 34px; border-radius: 2px; background: var(--text); color: var(--lime); font-size: 12px; letter-spacing: -0.02em; }
.brand-text { font-size: 20px; }
.site-nav a { font-weight: 700; font-size: 14.5px; }
.site-nav a.nav-sub { color: var(--text-soft); font-weight: 500; }
.site-nav a:hover { color: var(--text); box-shadow: inset 0 -3px 0 var(--line); }
.site-nav a.active { color: var(--text); box-shadow: inset 0 -3px 0 var(--lime); }
@media (max-width: 960px) {
  .site-nav a:hover, .site-nav a.active { box-shadow: none; }
  .site-nav a.active { border-left: 4px solid var(--lime); background: var(--main-soft); }
}
@media (max-width: 600px) { .brand-mark { width: 30px; height: 30px; font-size: 11px; } }

/* 공용 머리줄 — 2px 잉크 선, 더 보기는 라임 잉크 굵게 */
.more-link { font-weight: 700; font-size: 13.5px; }
.section-updated { margin: 0 auto 0 4px; }

/* 번호 배지 — 라임 사각, 위 글자 잉크 (목록 줄) */
.latest-row > a { grid-template-columns: 26px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 0; border-top: 1px solid var(--line); }
.latest-row.has-thumb > a { grid-template-columns: 26px minmax(0, 1fr) 64px; }
.latest-row:first-child > a { border-top: 0; }
.latest-row .row-n {
  width: 24px; height: 24px; display: grid; place-items: center; align-self: start; margin-top: 2px;
  border-radius: 2px; background: var(--lime); color: var(--text); font-size: 12px; line-height: 1;
}
.latest-row > a:hover { background: transparent; }
.latest-row .row-meta { font-size: 12px; color: var(--main); font-weight: 700; }
.latest-row .row-meta time { color: var(--text-soft); font-weight: 500; }
.row-title { font-size: 15.5px; line-height: 1.42; }
.latest-row .card-thumb, .latest-row .row-thumb { width: 64px; height: 64px; }
.hub-tag { color: var(--text); background: var(--lime); padding: 0 5px; border-radius: 2px; }
@media (max-width: 600px) {
  .latest-row > a { grid-template-columns: 24px minmax(0, 1fr); gap: 10px; }
  .latest-row.has-thumb > a { grid-template-columns: 24px minmax(0, 1fr) 56px; }
  .latest-row .row-n { width: 22px; height: 22px; font-size: 11px; }
  .latest-row .card-thumb, .latest-row .row-thumb { width: 56px; height: 56px; }
}
/* 카테고리 페이지 목록은 줄이 넉넉하게 */
.cat-list .latest-row > a { padding: 16px 0; }
.cat-list .row-title { font-size: 17px; }

/* 칩 — 연라임 면, 잉크 글자 */
.chip { background: var(--main-soft); color: var(--text); font-weight: 700; border-radius: 2px; font-size: 13.5px; }
.chip:hover { background: #E2F3BE; color: var(--text); }

/* ---------- 홈: 첫 화면 3단 (소개 / 땅 / 하늘) ---------- */
.home-top {
  display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr) minmax(0, 1.15fr); gap: 40px;
  padding-top: 32px; padding-bottom: 32px;
}
.home-kicker { padding: 0; border: 0; background: none; border-radius: 0; font-weight: 700; font-size: 13px; }
.kicker-dot { width: 8px; height: 8px; background: var(--lime); box-shadow: 0 0 0 2px var(--text); }
.home-intro h1 { font-size: 30px; line-height: 1.32; margin: 0 0 14px; }
.h1-em { color: var(--text); background: linear-gradient(transparent 62%, var(--lime) 62%); padding: 0 2px; }
.home-meaning { margin: 0 0 18px; font-size: 14px; line-height: 1.7; color: #3A414B; }
.gauges {
  list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--rule); border-radius: 2px; background: var(--paper);
}
.gauges li { padding: 9px 12px; min-width: 0; }
.gauges li + li { border-left: 1px solid var(--line); }
.g-k { display: block; font-size: 11px; font-weight: 700; color: var(--text-soft); letter-spacing: 0.04em; }
.g-v { font-size: 22px; font-weight: 700; line-height: 1.3; font-variant-numeric: tabular-nums; }
.g-v.is-text { font-size: 15px; line-height: 2; }
.g-u { font-size: 12px; color: var(--text-soft); }
.home-indep { margin: 14px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--text-soft); }

.world { min-width: 0; }
.world .sec-head { padding-bottom: 8px; }
.world .sec-head h2 { font-size: 18px; }
.world-eyebrow { display: inline-block; margin-right: 8px; font-size: 11px; letter-spacing: 0.14em; color: var(--text-soft); vertical-align: 2px; }
.world-list { margin-top: 2px; }

/* 막혔을 때 바로 — 칩 한 줄(타일이 아니라 알약). 폰은 가로로 밀어 본다 */
.stuck-band {
  display: flex; align-items: center; gap: 12px 20px; padding-top: 18px; padding-bottom: 18px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 2px;
}
.stuck-band h2 { margin: 0; font-size: 16px; white-space: nowrap; flex: none; }
.stuck-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.stuck-chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 15px;
  border: 1px solid var(--rule); border-radius: 999px; background: var(--paper); color: var(--text);
  font-size: 14px; font-weight: 700; white-space: nowrap;
}
.stuck-chip:hover { background: var(--lime); color: var(--text); }
.sc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 2px var(--text); flex: none; }
.stuck-chip:hover .sc-dot { background: var(--text); }
@media (min-width: 1201px) { .stuck-band { margin-left: auto; margin-right: auto; max-width: calc(var(--w-content) - 80px); padding-left: 24px; padding-right: 24px; } }
@media (max-width: 1200px) { .stuck-band { margin: 0 40px; padding-left: 20px; padding-right: 20px; } }

/* 처음이라면 이 순서로 — 코스 3열 스텝 */
.home-courses { padding-top: 44px; padding-bottom: 8px; }
.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.course { min-width: 0; padding-top: 14px; }
.course-n { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: var(--main); font-variant-numeric: tabular-nums; }
.course-name { margin: 0 0 8px; font-size: 17px; }
.course-name a { color: var(--text); }
.course-name a:hover { color: var(--main); }
.course-steps { list-style: none; margin: 0; padding: 0; }
.course-steps li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14.5px; line-height: 1.45; }
.course-steps a { color: var(--text); }
.course-steps a:hover { color: var(--main); text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; }
.cs-n { flex: none; width: 22px; height: 22px; border: 1.5px solid var(--rule); border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; }

/* 분류별 최신 3 × 5 */
.home-cats { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px 24px; padding-top: 36px; padding-bottom: 32px; }
.home-cats .sec-head h2 { font-size: 15.5px; }
.home-cats .short-row { grid-template-columns: minmax(0, 1fr); gap: 2px; font-size: 14.5px; border-bottom: 0; border-top: 1px solid var(--line); }
.home-cats .short-list li:first-child .short-row { border-top: 0; }

/* 용어 사전 띠 */
.term-band {
  display: flex; align-items: center; gap: 16px 24px; padding-top: 20px; padding-bottom: 20px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 2px;
}
.tb-head { flex: none; }
.tb-head h2 { margin: 0; font-size: 16px; }
.tb-head h2 a { color: var(--text); }
.tb-head p { margin: 2px 0 0; font-size: 13px; color: var(--text-soft); max-width: 220px; line-height: 1.5; }
.term-band .home-chips { flex: 1; padding: 0; min-width: 0; }
@media (min-width: 1201px) { .term-band { margin-left: auto; margin-right: auto; max-width: calc(var(--w-content) - 80px); padding-left: 24px; padding-right: 24px; } }
@media (max-width: 1200px) { .term-band { margin: 0 40px; padding-left: 20px; padding-right: 20px; } }

/* 칼럼 + 운영자 */
.home-bottom { padding-top: 44px; }
.col-card { border-radius: 2px; }
.col-card:hover, .col-card:focus-visible { border-color: var(--rule); transform: none; }
.owner-box { border: 1px solid var(--rule); border-radius: 2px; }
.owner-box .author-avatar, .author-avatar { background: var(--lime); color: var(--text); border-radius: 2px; }
.owner-box-links a { border-radius: 999px; }
.owner-box-links a:first-child { background: var(--text); border-color: var(--text); color: var(--bg); }
.ed-titles a .n, .ed-titles .n { color: var(--main); }

@media (max-width: 1100px) {
  .home-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-intro { grid-column: 1 / -1; }
  .home-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .home-top { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .course-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .home-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .home-top { padding-top: 20px; padding-bottom: 24px; gap: 24px; }
  .home-intro h1 { font-size: 24px; margin-bottom: 10px; }
  .home-intro h1 br:last-of-type { display: none; }
  .home-meaning { display: none; } /* 폰은 h1 짧게 → '땅' 열이 바로 (이름 뜻은 바닥글·소개에 있다) */
  .gauges { display: flex; flex-wrap: wrap; gap: 6px; border: 0; background: none; }
  .gauges li { padding: 4px 10px; border: 1px solid var(--rule) !important; border-radius: 2px; background: var(--paper); }
  .g-k { display: inline; margin-right: 4px; font-size: 12px; color: var(--text); }
  .g-v, .g-v.is-text { font-size: 12px; line-height: 1.6; }
  .g-u { font-size: 12px; color: var(--text); }
  .home-indep { margin-top: 10px; font-size: 12px; }
  .stuck-band, .term-band { margin: 0 16px; padding: 14px 14px; flex-direction: column; align-items: stretch; }
  .stuck-chips { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; margin: 0 -14px; padding: 2px 14px 4px; scrollbar-width: none; }
  .stuck-chips::-webkit-scrollbar { display: none; }
  .stuck-chips li { scroll-snap-align: start; flex: none; }
  .stuck-chip { min-height: 44px; }
  .home-courses { padding-top: 32px; }
  .home-cats { grid-template-columns: minmax(0, 1fr); padding-top: 28px; }
  .tb-head p { max-width: none; }
}

/* ---------- 글 페이지: 왼쪽 차례 레일 (PC 1100px+) ---------- */
@media (min-width: 1100px) {
  .article-layout { grid-template-columns: 220px minmax(0, 760px); gap: 56px; }
  .toc-side { order: -1; }
  .toc-side-inner { border-top: 0; margin-top: 46px; padding-top: 0; }
}
.toc-side-title { font-size: 11px; letter-spacing: 0.14em; color: var(--text-soft); margin-bottom: 10px; }
.toc-side .toc-list a { grid-template-columns: 20px minmax(0, 1fr); padding: 8px 0 8px 12px; border-bottom: 0; border-left: 2px solid var(--line); font-size: 13.5px; }
.toc-side .toc-list a.is-active { border-left: 4px solid var(--lime); padding-left: 10px; color: var(--text); }
.toc-side .toc-list a:hover { color: var(--text); border-left-color: var(--text); }
.toc-fold { border-top: 0 !important; }
.toc.toc-fold { background: var(--paper); border: 1px solid var(--rule) !important; border-radius: 2px; padding: 0 14px; }
.toc-fold .toc-count { min-width: 24px; height: 24px; display: inline-grid; place-items: center; border-radius: 2px; background: var(--lime); color: var(--text); font-weight: 700; font-size: 12px; margin-left: auto; }

/* 글 머리 — 분류 꼬리표·비공식 고지 한 줄 */
.article-cat a { color: var(--main); }
.article-indep { margin: 8px 0 0; font-size: 12.5px; color: var(--text-soft); }
.cluster-line b { color: var(--text); }

/* 한 줄 결론 — 흰 면 + 왼쪽 라임 6px 띠 */
.short-answer { background: var(--paper); border: 1px solid var(--line); border-left: 6px solid var(--lime); border-radius: 2px; }
.article-main .short-answer .short-answer-label { font-size: 11px; letter-spacing: 0.14em; color: var(--main); }

/* 바로 가기 칩 — 알약 */
.jumps .chip { background: var(--paper); border: 1px solid var(--rule); border-radius: 999px; min-height: 36px; display: inline-flex; align-items: center; padding: 0 14px; }
.jumps .chip:hover { background: var(--lime); }
@media (max-width: 600px) { .jumps .chip { min-height: 44px; } }

/* 핵심 요약·직접 확인 상자 */
.summary-box { border: 1px solid var(--line); border-top: 1px solid var(--line); border-radius: 2px; }
.summary-box li::marker { color: var(--text); }
.source-box { border: 1px solid var(--rule); border-radius: 2px; }
.source-box li::before { color: var(--text); }
.body-list li::marker { color: var(--text); }
.faq summary::marker { color: var(--text); }
.log-type.is-fix { color: var(--text); background: var(--lime); padding: 0 5px; border-radius: 2px; }
.fix-badge { color: var(--text); background: var(--lime); padding: 0 5px; border-radius: 2px; }

/* ---------- 바닥 — 흑연 띠 ---------- */
.site-footer { background: var(--ink-band); color: #C9CED6; border-top: 0; }
.footer-brand, .footer-links-title, .footer-meaning { color: #F4F5F7; }
.footer-brand small { color: #AEB5BE; }
.footer-about p, .footer-bottom, .footer-links a { color: #C9CED6; }
.footer-owner a, .footer-about p a { color: var(--lime); }
.footer-owner a:hover, .footer-links a:hover { color: #FFFFFF; }
.footer-bottom { border-top: 1px solid #2C3138; }
.footer-disclaimer { color: #F4F5F7; }
.back-to-top { background: var(--text); color: var(--lime); }

/* 오늘의 소식 띠 — 흑연 + 라임 (N단계) */
.home-brief { border-bottom: 0; }
.col-card { grid-template-columns: 82px minmax(0, 1fr); } /* 날짜 2026.08.20 한 줄 */
@media (max-width: 600px) { .col-card { grid-template-columns: minmax(0, 1fr); } .col-card-sub { grid-column: 1; } }
.home-cats .short-list li:nth-child(4) { } @media (max-width: 600px) { .home-cats .short-list li:nth-child(4) { display: none; } }
.article-body .article-indep { margin: 8px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--text-soft); }

/* 전일 종가 한 줄 (/news/ 만, 2026-10-23) — 색으로 오르내림을 강조하지 않는다(사실 숫자만). 라임 면 기호는 쓰지 않는다 */
.quotes { margin: 0 0 24px; padding: 14px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 2px; }
.quotes-title { margin: 0 0 8px; font-size: 15px; }
.quotes-basis { margin-left: 6px; font-size: 12.5px; font-weight: 500; color: var(--text-soft); }
.quotes-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.quotes-list li { display: flex; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums; }
.q-sym { font-weight: 700; letter-spacing: 0.04em; }
.q-name { font-size: 13px; color: var(--text-soft); }
.q-close { font-weight: 700; font-size: 17px; }
.q-chg { font-size: 14px; color: var(--text-soft); }
.quotes-note { margin: 10px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--text-soft); }
.quotes-note a { color: var(--text-soft); text-decoration: underline; }

/* ---------- (2026-10-23) 처음이라면 이 순서로 — 코스 탭 + 단계 표시줄 ----------
   전: 3열 세로 목록(PC 343·폰 841px) → 후: 탭 한 줄 + 1→2→3→4 충전 칸 한 줄(PC)·세로 4줄(폰).
   러브시큐·짬프레스의 '가로 카드 띠'와 다르게 계기판 결: 선택한 탭은 흑연 면 + 라임 글자, 칸 번호는 라임 사각, 칸 사이 잇는 선 */
.home-courses { padding-top: 40px; padding-bottom: 8px; }
.course-tabs { display: flex; gap: 6px; margin: 14px 0 0; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.course-tabs::-webkit-scrollbar { display: none; }
.ct-tab {
  flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--text);
  font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.ct-tab:hover { border-color: var(--rule); }
.ct-tab[aria-selected="true"] { background: var(--text); border-color: var(--text); color: var(--lime); }
.ct-n { font-size: 11px; letter-spacing: 0.06em; color: var(--text-soft); font-variant-numeric: tabular-nums; }
.ct-tab[aria-selected="true"] .ct-n { color: #AEB5BE; }
.course-panel { margin-top: 14px; }
.home-courses.js-tabs .course-panel[data-off] { display: none; }
.course-track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: none; }
.course-track li { position: relative; min-width: 0; }
.course-track li + li::before { content: ""; position: absolute; left: 0; top: 23px; width: 14px; border-top: 2px solid var(--rule); transform: translateX(-7px); }
.course-track a {
  display: flex; gap: 10px; align-items: flex-start; height: 100%; margin-right: 14px; padding: 12px 14px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 2px; color: var(--text); font-size: 14.5px; font-weight: 700; line-height: 1.45;
}
.course-track li:last-child a { margin-right: 0; }
.course-track a:hover { border-color: var(--rule); color: var(--text); }
.course-track .cs-n { flex: none; width: 22px; height: 22px; border: 0; border-radius: 2px; background: var(--lime); color: var(--text); font-size: 11.5px; font-weight: 700; display: grid; place-items: center; }
.cs-t { min-width: 0; }
.course-all { display: inline-block; margin-top: 10px; font-size: 13.5px; font-weight: 700; color: var(--main); }
.home-courses:not(.js-tabs) .course-panel + .course-panel { margin-top: 18px; } /* 스크립트가 없으면 코스가 모두 펼쳐진다 */
@media (max-width: 900px) {
  .course-track { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 0; }
  .course-track li + li::before { display: none; }
  .course-track li:nth-child(odd) a { margin-right: 8px; }
  .course-track li:nth-child(even) a { margin-right: 0; }
}
@media (max-width: 600px) {
  .home-courses { padding-top: 30px; }
  .course-tabs { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
  .ct-tab { min-height: 44px; }
  .course-track { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .course-track li:nth-child(odd) a, .course-track li:nth-child(even) a { margin-right: 0; }
  .course-track a { padding: 11px 12px; border-radius: 0; border-bottom-width: 0; }
  .course-track li:first-child a { border-radius: 2px 2px 0 0; }
  .course-track li:last-child a { border-bottom-width: 1px; border-radius: 0 0 2px 2px; }
}
@media (min-width: 1000px) {
  /* 넓은 화면: 코스 탭 7개를 같은 너비 칸 한 줄로(계기판 버튼 줄) — 잘림·한 칸만 떨어지는 줄바꿈 없음 */
  .course-tabs { display: grid; grid-template-columns: repeat(var(--ct-count, 7), minmax(0, 1fr)); gap: 6px; overflow: visible; }
  .ct-tab { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; min-height: 56px; padding: 8px 12px;
    border-radius: 2px; white-space: normal; text-align: left; font-size: 13.5px; line-height: 1.35; }
}

/* ---------- (2026-10-23 사용자 "주가 정보를 메인에서도 · 전일·전주·전월 대비") ----------
   홈 흑연 띠 맨 아래 얇은 한 줄(띠 전체 폭) · /news/ 작은 표. 오르내림을 색으로 강조하지 않는다(사실 숫자만, 가드레일) */
.hb-quotes {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 22px;
  margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--hb-line, #2C3138); font-size: 13px; color: var(--hb-text, #E6E8EB);
  font-variant-numeric: tabular-nums;
}
.hq-head { font-weight: 700; color: var(--hb-accent, #C8F135); white-space: nowrap; }
.hq-head span { margin-left: 4px; font-weight: 500; color: var(--hb-dim, #AEB5BE); }
.hq-dv { display: none; margin-left: 0 !important; }
.hq-head:hover { color: #fff; }
.hq-item { margin: 0; white-space: nowrap; }
.hq-item .q-sym { letter-spacing: 0.04em; color: #fff; }
.hq-close { margin: 0 4px; font-weight: 700; color: #fff; }
.hq-cmp { margin-left: 6px; color: var(--hb-text, #E6E8EB); }
.hq-k { color: var(--hb-dim, #AEB5BE); font-size: 12px; }
.hq-note { margin: 0 0 0 auto; font-size: 11.5px; color: var(--hb-dim, #AEB5BE); }
.home-brief.hb-only .home-brief-inner { padding-top: 10px; padding-bottom: 10px; }
.home-brief.hb-only .hb-quotes { margin-top: 0; padding-top: 0; border-top: 0; }
@media (max-width: 760px) {
  .hb-quotes { gap: 2px 14px; font-size: 12.5px; }
  .hq-head { width: 100%; }
  .hq-cmp { margin-left: 4px; }
  .hq-note { margin-left: 0; width: 100%; }
}

/* /news/ 작은 표 */
.quotes-wrap { margin: 0; border-top: 0; }
.quotes-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 14.5px; }
.quotes-table th, .quotes-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.quotes-table thead th { font-size: 12.5px; font-weight: 700; color: var(--text-soft); background: none; }
.quotes-table th[scope="row"], .quotes-table thead th:first-child { text-align: left; }
.quotes-table .q-close { font-weight: 700; font-size: 16px; }
.quotes-table .q-chg { color: var(--text); }
.quotes-wrap { border: 0 !important; }
.quotes-table th, .quotes-table td { border-left: 0 !important; border-right: 0 !important; border-top: 0 !important; background: none !important; }
.quotes-table thead th { border-bottom: 2px solid var(--rule) !important; }
@media (min-width: 761px) { .hb-quotes { gap: 4px 16px; } .hq-cmp { margin-left: 4px; } }
/* (2026-10-23 사용자 "폰은 전일만 보이게") 760px 이하 홈 종가 줄은 전일 대비만 — 전주·전월은 /news/ 표에서 */
@media (max-width: 760px) {
  .hb-quotes .hq-cmp ~ .hq-cmp { display: none; }
  .hb-quotes .hq-k { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* '전일' 글자는 읽기 프로그램에만 — 두 종목을 한 줄에 */
  .hb-quotes { column-gap: 16px; }
  .hq-dv { display: inline; } /* 폰에서만 '· 전일 대비'를 머리줄에 */
  .hq-close { margin: 0 2px 0 4px; }
}

/* ---------- (2026-10-23 사용자 "상승·하락 컬러(미장 기준) + 티커처럼 좌측 롤링, 증권사 전광판") ----------
   상승 = 초록 ▲ · 하락 = 빨강 ▼(화살표를 함께 — 색만으로 구분하지 않음). 흑연 띠 위 대비: 초록 #4ADE80 ≈ 10.6 · 빨강 #FF7A7A ≈ 7.0
   흰 표 위: 초록 #15803D ≈ 5.0 · 빨강 #C0262D ≈ 5.9 */
.q-up, .q-down, .q-flat { white-space: nowrap; font-variant-numeric: tabular-nums; }
.q-up > span[aria-hidden], .q-down > span[aria-hidden] { margin-right: 2px; font-size: 0.82em; }
.quotes-table .q-up { color: #15803D; font-weight: 700; }
.quotes-table .q-down { color: #C0262D; font-weight: 700; }
.quotes-table .q-flat { color: var(--text-soft); }
.hb-quotes .q-up { color: #4ADE80; font-weight: 700; }
.hb-quotes .q-down { color: #FF7A7A; font-weight: 700; }
.hb-quotes .q-flat { color: #AEB5BE; }

/* 전광판 줄 — 머리 | 흐르는 칸 | 멈춤 | 고지 */
.hb-quotes { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 4px 14px; }
.hq-marquee { overflow: hidden; min-width: 0; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%); }
.hq-track { display: flex; width: max-content; animation: hq-run 36s linear infinite; }
.hq-lane { display: flex; align-items: baseline; margin: 0; padding: 2px 0; white-space: nowrap; }
.hq-item { display: inline-flex; align-items: baseline; gap: 6px; }
.hq-sep { margin: 0 18px; color: #4A5260; }
.hq-cmp { margin-left: 4px; display: inline-flex; gap: 4px; align-items: baseline; }
.hq-note { margin: 0; white-space: nowrap; }
@keyframes hq-run { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.hb-quotes:hover .hq-track, .hb-quotes:focus-within .hq-track, .hb-quotes.is-paused .hq-track { animation-play-state: paused; }
.hq-pause { border: 1px solid #4A5260; background: transparent; color: #E6E8EB; }
.hq-pause:hover, .hq-pause[aria-pressed="true"] { background: var(--lime); border-color: var(--lime); color: var(--text); }
@media (prefers-reduced-motion: reduce) {
  .hq-track { animation: none; }
  .hq-lane[aria-hidden="true"], .hq-pause { display: none; }
  .hq-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}
@media (max-width: 760px) {
  .hb-quotes { grid-template-columns: minmax(0, 1fr) auto; }
  .hq-head { grid-column: 1 / -1; width: auto; }
  .hq-note { grid-column: 1 / -1; }
  .hq-track { animation-duration: 18s; } /* 폰은 전일만이라 줄이 짧다 */
  .hq-sep { margin: 0 14px; }
}

/* ---------- (2026-10-23 사용자 "오늘의 브리핑 페이지 종가 표도 전광판처럼") /news/ 종가 전광판 ----------
   흑연 판 + 칸 줄(#2C3138) + 숫자 같은 폭. 상승 #4ADE80 · 하락 #FF7A7A(판 위 대비 10.6 · 7.0), 머리 글자 #AEB5BE(8.6) */
.quotes.quotes-board { padding: 0; background: none; border: 0; }
.qb-panel { background: #14161A; border: 1px solid #000; border-radius: 4px; overflow: hidden; color: #E6E8EB; }
.qb-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; padding: 12px 16px; border-bottom: 1px solid #2C3138; }
.quotes-board .quotes-title { margin: 0; display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--lime); letter-spacing: 0.02em; }
.qb-lamp { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px rgba(200, 241, 53, 0.18); }
.quotes-board .quotes-basis { margin: 0; font-size: 12.5px; color: #AEB5BE; }
.qb-scroll { overflow-x: auto; }
.quotes-board .quotes-table { min-width: 520px; font-size: 15px; }
.quotes-board .quotes-table th, .quotes-board .quotes-table td { padding: 12px 16px; border-bottom: 1px solid #2C3138 !important; color: #E6E8EB; }
.quotes-board .quotes-table thead th { font-size: 11.5px; letter-spacing: 0.08em; color: #AEB5BE; border-bottom: 1px solid #2C3138 !important; }
.quotes-board .quotes-table tbody tr:last-child th, .quotes-board .quotes-table tbody tr:last-child td { border-bottom: 0 !important; }
.quotes-board .quotes-table td + td, .quotes-board .quotes-table th + td { border-left: 1px solid #22262D !important; }
.quotes-board .q-sym { color: #FFFFFF; letter-spacing: 0.06em; }
.quotes-board .q-name { color: #AEB5BE; font-size: 12.5px; }
.quotes-board .q-close { color: #FFFFFF; font-size: 19px; letter-spacing: 0.02em; }
.quotes-board .q-up { color: #4ADE80; }
.quotes-board .q-down { color: #FF7A7A; }
.quotes-board .q-flat { color: #AEB5BE; }
.quotes-board .quotes-note { margin-top: 10px; }
@media (max-width: 600px) {
  .quotes-board .quotes-table th, .quotes-board .quotes-table td { padding: 10px 12px; }
  .quotes-board .q-close { font-size: 17px; }
}
@media (max-width: 600px) {
  /* 폰: 다섯 칸을 한 화면에 — 종목 한글 이름·열 머리 '대비'를 줄이고 칸 여백을 좁힌다(가로 밀기 없이) */
  .quotes-board .quotes-table { min-width: 0; font-size: 13px; }
  .quotes-board .quotes-table th, .quotes-board .quotes-table td { padding: 10px 6px; }
  .quotes-board .quotes-table th:first-child { padding-left: 12px; }
  .quotes-board .quotes-table tr > :last-child { padding-right: 12px; }
  .quotes-board .q-name, .quotes-board .qh-sub { display: none; }
  .quotes-board .q-close { font-size: 15px; }
  .quotes-board .quotes-table thead th { font-size: 11px; letter-spacing: 0.02em; }
}
@media (max-width: 360px) {
  .quotes-board .quotes-table { font-size: 12px; }
  .quotes-board .quotes-table th, .quotes-board .quotes-table td { padding: 9px 4px; }
  .quotes-board .quotes-table th:first-child { padding-left: 10px; }
  .quotes-board .quotes-table tr > :last-child { padding-right: 10px; }
  .quotes-board .q-close { font-size: 13.5px; }
}
@media (max-width: 360px) {
  .quotes-board .q-up > span[aria-hidden], .quotes-board .q-down > span[aria-hidden] { margin-right: 0; font-size: 0.7em; }
  .quotes-board .quotes-table th, .quotes-board .quotes-table td { padding-left: 3px; padding-right: 3px; }
  .quotes-board .q-sym { letter-spacing: 0; }
  .quotes-board .quotes-table { font-size: 11.5px; }
}
@media (max-width: 360px) { .quotes-board .qb-panel { margin: 0 -16px; border-radius: 0; border-left: 0; border-right: 0; } }
