/* 오늘 주가 왜 이래? — 디자인 기조: 금융 정보 서비스형
   - 짙은 남색 상단 막대, 연회색 바탕 위 흰 패널(얇은 테두리, 각진 모서리)
   - 섹션 제목은 굵은 글씨 + 아래 2px 선 (신문·증권 정보 화면 방식)
   - 종목은 시세판처럼 촘촘한 행 목록, 숫자는 고정폭 정렬
   - 색은 등락(빨강·파랑)과 남색 하나만 쓴다 */
:root {
  --navy: #0d2240; --navy-2: #16345e; --accent: #1f5fbf;
  --bg: #eef1f5; --panel: #fff; --ink: #111827; --sub: #4b5563; --faint: #8a94a3;
  --line: #d9dee5; --hair: #edf0f4; --head: #f6f8fa;
  --up: #d91f26; --down: #1a56c4; --flat: #4b5563; --dir-color: var(--flat);
  --star: #e8a200; --w: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root { --navy: #0a1628; --navy-2: #12243f; --accent: #5b9cff;
          --bg: #0e1116; --panel: #161b22; --ink: #e6e9ee; --sub: #a3adba; --faint: #7d8794;
          --line: #2b323c; --hair: #20262e; --head: #1b2129; --up: #ff5a5f; --down: #5c9bff; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); word-break: keep-all;
       font: 15px/1.6 "Pretendard", "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 860px; }
.page { padding-top: 28px; padding-bottom: 28px; }
.dir-up { --dir-color: var(--up); }
.dir-down { --dir-color: var(--down); }
.dir-flat { --dir-color: var(--flat); }
.chg { color: var(--dir-color); font-variant-numeric: tabular-nums; font-weight: 700; }
.stars { color: var(--star); letter-spacing: 1px; font-size: 13px; white-space: nowrap; }
.muted { color: var(--sub); }
.more { color: var(--accent); font-size: 13px; font-weight: 600; }
.more:hover { text-decoration: underline; }

/* ---- 상단 막대 ---- */
.gnav { background: var(--navy); color: #fff; border-bottom: 3px solid var(--up); }
.gnav-in { max-width: var(--w); margin: 0 auto; padding: 0 20px; height: 54px; display: flex; align-items: center; justify-content: space-between; }
.logo { font-weight: 800; font-size: 18px; letter-spacing: -0.02em; color: #fff; }
.logo span { color: #ff6b6b; }
.gnav nav { display: flex; height: 100%; }
.gnav nav a { display: flex; align-items: center; padding: 0 16px; font-size: 14px; color: #c8d3e3; font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -3px; }
.gnav nav a:hover { color: #fff; }
.gnav nav a.on { color: #fff; border-bottom-color: #fff; }
@media (max-width: 560px) { .gnav nav a { padding: 0 9px; font-size: 13px; } .logo { font-size: 16px; } }

/* ---- 제목 ---- */
.display-xl { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; margin: 0 0 6px; }
.list-sub { color: var(--sub); font-size: 14px; margin: 0 0 22px; }
.eyebrow { margin: 0; font-size: 13px; color: var(--sub); font-weight: 600; }
.sec-title { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.sec-title small { font-size: 12px; color: var(--faint); font-weight: 500; margin-left: 8px; letter-spacing: 0; }

/* ---- 하루 정리: 머리 ---- */
.hero { padding: 26px 0 8px; }
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hero h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; margin: 2px 0 16px; }
.pager { display: flex; gap: 0; border: 1px solid var(--line); background: var(--panel); }
.pager a, .pager span { min-width: 34px; height: 32px; display: inline-grid; place-items: center; font-size: 16px; padding: 0 8px; }
.pager > * + * { border-left: 1px solid var(--line); }
.pager span { color: var(--faint); opacity: .5; }
.pager .pager-cal { font-size: 13px; font-weight: 600; }
.pager a:hover { background: var(--head); }

.indices { display: grid; grid-template-columns: 1fr 1fr; background: var(--panel); border: 1px solid var(--line); }
.index { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "name name" "pct close" "gist gist" "more more";
         column-gap: 10px; padding: 18px 20px; }
.index + .index { border-left: 1px solid var(--line); }
.index:hover { background: var(--head); }
.index-name { grid-area: name; font-size: 14px; font-weight: 800; }
.index-pct { grid-area: pct; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; }
.index-close { grid-area: close; align-self: end; padding-bottom: 5px; font-size: 14px; color: var(--sub); font-variant-numeric: tabular-nums; }
.index-gist { grid-area: gist; font-size: 14px; color: var(--ink); margin: 8px 0 6px; padding-top: 8px; border-top: 1px dashed var(--line); }
.index .more { grid-area: more; }
@media (max-width: 640px) { .indices { grid-template-columns: 1fr; } .index + .index { border-left: 0; border-top: 1px solid var(--line); } }

.upcoming { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-top: 10px; padding: 10px 14px;
            background: var(--panel); border: 1px solid var(--line); font-size: 14px; }
.up-label { font-size: 12px; font-weight: 800; color: #fff; background: var(--navy-2); padding: 2px 8px; }
.upcoming a:hover { color: var(--accent); }
.upcoming a b { font-weight: 700; margin-right: 2px; }

/* ---- 종목 목록 ---- */
.band { padding: 22px 0 8px; }
.band > .wrap { }
.band .wrap > .sec-title, .band .seg, .band .rows { background: transparent; }
.seg { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin: -4px 0 0; }
.seg button { font: inherit; font-size: 14px; font-weight: 600; border: 0; background: none; color: var(--sub); padding: 10px 14px;
              cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.seg button.on { color: var(--ink); border-bottom-color: var(--accent); font-weight: 800; }
.seg button:hover { color: var(--ink); }
.rows { background: var(--panel); border: 1px solid var(--line); border-top: 0; }
.row { display: grid; grid-template-columns: 170px 92px 1fr 64px; gap: 14px; align-items: start; padding: 12px 16px; border-top: 1px solid var(--hair); }
.row:first-child { border-top: 0; }
a.row:hover { background: var(--head); }
.row[hidden] { display: none; }
.row-head { background: var(--head); font-size: 12px; font-weight: 700; color: var(--sub); padding: 7px 16px; border-top: 0; border-bottom: 1px solid var(--line); }
.row-head span:nth-child(2), .row-head span:nth-child(4) { text-align: right; }
.r-name b { display: block; font-size: 15px; font-weight: 800; }
.r-name em { font-style: normal; font-size: 12px; color: var(--faint); }
.r-pct { text-align: right; font-size: 16px; font-weight: 800; }
.r-tags { display: block; font-size: 12px; font-weight: 700; color: var(--navy-2); }
@media (prefers-color-scheme: dark) { .r-tags { color: var(--accent); } }
.r-gist { display: block; font-size: 13px; color: var(--sub); line-height: 1.5; }
.r-stars { text-align: right; }
@media (max-width: 640px) {
  .row { grid-template-columns: 1fr auto; gap: 2px 10px; }
  .row-head { display: none; }
  .r-cause { grid-column: 1 / -1; }
  .r-stars { display: none; }
}
.empty { background: var(--panel); border: 1px solid var(--line); padding: 16px; color: var(--sub); }

/* ---- 나머지 종목, 달력 ---- */
.plain { padding: 22px 0 8px; }
.fold { background: var(--panel); border: 1px solid var(--line); margin-bottom: 8px; }
.fold summary { cursor: pointer; padding: 12px 16px; font-size: 14px; font-weight: 700; list-style: none; display: flex; gap: 8px; align-items: center; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary::after { content: "펼치기 ▾"; margin-left: auto; font-size: 12px; color: var(--accent); font-weight: 600; }
.fold[open] summary::after { content: "접기 ▴"; }
.fold summary span { font-size: 12px; color: #fff; background: var(--navy-2); padding: 1px 7px; font-weight: 700; }
.fold[open] summary { border-bottom: 1px solid var(--hair); }
.fold > :not(summary) { margin-left: 16px; margin-right: 16px; }
.fold-note { color: var(--sub); font-size: 13px; margin: 12px 0 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 14px; }
.chip { border: 1px solid var(--line); padding: 3px 9px; font-size: 13px; background: var(--panel); }
.chip a { text-decoration: underline; text-underline-offset: 3px; }
.chip b { margin-left: 3px; }

.cal-wrap { margin-top: 18px; background: var(--panel); border: 1px solid var(--line); padding: 14px 16px; max-width: 480px; }
.cal-wrap .more { display: inline-block; margin-top: 8px; }
.month-label { font-size: 15px; font-weight: 800; margin: 0 0 8px; }
.cal { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cal th { font-size: 12px; color: var(--sub); font-weight: 600; padding: 5px 0; text-align: center; background: var(--head); border: 1px solid var(--line); }
.cal td { border: 1px solid var(--line); padding: 0; height: 44px; text-align: center; vertical-align: middle; }
.cal td a, .cal td > .dnum { height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.cal td.has a:hover { background: var(--head); }
.cal td.sel { outline: 2px solid var(--accent); outline-offset: -2px; }
.cal .dnum { font-size: 13px; font-weight: 700; }
.cal .dnum.off { font-weight: 400; color: var(--faint); }
.cal .dpct { font-size: 11px; font-weight: 700; color: var(--dir-color); font-variant-numeric: tabular-nums; }
.months { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.months .month { background: var(--panel); border: 1px solid var(--line); padding: 14px 16px; }
@media (max-width: 700px) { .months { grid-template-columns: 1fr; } }

/* ---- 지수·종목 카드 페이지 ---- */
.card { padding: 26px 0 10px; }
.card-head { background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--dir-color); padding: 18px 22px 16px; }
.card-head .eyebrow a:hover { color: var(--accent); }
.card-head h1 { margin: 4px 0 0; font-size: 26px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.3; }
.h-q { color: var(--dir-color); margin-left: 6px; }
.seo-sub { margin: 4px 0 0; font-size: 12px; color: var(--faint); }

.price-row { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--panel); border: 1px solid var(--line); border-top: 0; margin: 0 0 16px; }
.stat { padding: 12px 16px; }
.stat + .stat { border-left: 1px solid var(--hair); }
.stat .label { display: block; font-size: 12px; color: var(--sub); font-weight: 600; }
.stat .value { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat .value.chg { color: var(--dir-color); }
@media (max-width: 560px) {
  .price-row { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--hair); }
}

.chart-box { background: var(--panel); border: 1px solid var(--line); padding: 12px 10px 4px; margin-bottom: 16px; }
.chart { width: 100%; height: auto; display: block; }
.chart .price { fill: none; stroke: var(--dir-color); stroke-width: 2; stroke-linejoin: round; }
.chart .vol { fill: var(--faint); opacity: .3; }
.chart .grid { stroke: var(--line); stroke-dasharray: 2 3; }
.chart .base { stroke: var(--faint); stroke-width: 1; stroke-dasharray: 6 4; }
.chart .ax { fill: var(--faint); font-size: 11px; font-variant-numeric: tabular-nums; }

.card section { background: var(--panel); border: 1px solid var(--line); padding: 18px 22px; margin-bottom: 16px; }
.card section.chart-box { padding: 12px 10px 4px; }
.card section.price-row { padding: 0; }
.card h2 { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 14px; padding-bottom: 9px; border-bottom: 2px solid var(--ink); }
.hint { color: var(--faint); font-size: 12px; font-weight: 500; letter-spacing: 0; margin-left: 8px; }

.background ul { margin: 0; padding-left: 18px; font-size: 14px; }
.decomp-bar { display: flex; gap: 2px; height: 32px; font-size: 12px; }
.decomp-bar .seg { all: unset; display: flex; align-items: center; justify-content: center; white-space: nowrap; overflow: hidden;
                   min-width: 0; padding: 0 8px; background: var(--hair); color: var(--sub); font-size: 12px; font-weight: 700; }
.decomp-bar .seg.main { background: var(--dir-color); color: #fff; }
.decomp-note { margin: 10px 0 0; font-size: 14px; color: var(--sub); }
.decomp-note b { color: var(--ink); }
.peers { margin: 6px 0 0; font-size: 13px; color: var(--sub); }

.flows .price-row { grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); margin: 0; }
.flows .stat:nth-child(3) { border-left: 1px solid var(--hair); border-top: 0; }
.flows .value.pos { color: var(--up); }
.flows .value.neg { color: var(--down); }

.cause { padding: 14px 0; border-top: 1px solid var(--hair); }
.causes h2 + .cause { border-top: 0; padding-top: 0; }
.cause-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.rank { width: 20px; height: 20px; display: inline-grid; place-items: center; background: var(--navy); color: #fff; font-size: 12px; font-weight: 800; }
.tag { font-size: 12px; font-weight: 700; color: var(--navy-2); border: 1px solid var(--line); padding: 1px 7px; background: var(--head); }
@media (prefers-color-scheme: dark) { .tag { color: var(--accent); } }
.tag.muted { color: var(--sub); }
.layer { font-size: 12px; color: var(--faint); }
.summary { margin: 0 0 10px; font-size: 15px; line-height: 1.65; }
.sources { margin: 0; padding: 0; list-style: none; font-size: 14px; border-top: 1px dashed var(--line); }
.sources li { padding: 7px 0; border-bottom: 1px dashed var(--hair); }
.sources li a:hover { color: var(--accent); text-decoration: underline; }
.sources .meta { display: block; color: var(--faint); font-size: 12px; }
.sources .more { color: var(--faint); font-size: 12px; font-weight: 500; }

.notice h2 { border-bottom: 0; padding-bottom: 0; margin-bottom: 4px; }
.notice p { margin: 0; color: var(--sub); }
.evidence details summary { cursor: pointer; font-size: 14px; }
.evidence .hint { color: var(--accent); }
table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 10px; }
th { text-align: left; font-size: 12px; color: var(--sub); font-weight: 700; padding: 7px 8px; background: var(--head); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
td { padding: 8px; border-bottom: 1px solid var(--hair); vertical-align: top; }
td.pts { white-space: nowrap; font-variant-numeric: tabular-nums; }
td.chg { white-space: nowrap; }
.members .fold { border: 1px solid var(--line); margin-top: 12px; }
.members h2[style] { margin-top: 18px !important; }
.unknown-list { font-size: 14px; line-height: 1.9; }
.gist-list { list-style: none; padding: 0; margin: 0; }
.gist-list li { padding: 9px 0; border-bottom: 1px solid var(--hair); font-size: 14px; line-height: 1.5; }
.gist-list li a { font-weight: 800; }
.gist-list li a:hover { color: var(--accent); }
.gist-list .chg { margin: 0 8px; }
.gist-list .gist { color: var(--sub); }
.disclaimer { margin: 4px 0 0; color: var(--faint); font-size: 12px; }

/* ---- 일정별 기록 ---- */
.page section.upcoming { display: block; margin: 0 0 18px; padding: 14px 18px; }
.page section.upcoming h2 { font-size: 15px; margin: 0 0 6px; }
.page section.upcoming ul { margin: 0; padding-left: 18px; }
.page section.upcoming a { color: var(--accent); margin-left: 6px; font-size: 13px; }
.ev-base, .ev-kind { background: var(--panel); border: 1px solid var(--line); padding: 18px 22px; margin-bottom: 18px; }
.ev-kind h2, .ev-base h2 { font-size: 18px; font-weight: 800; margin: 0 0 10px; padding-bottom: 9px; border-bottom: 2px solid var(--ink); }
.ev-how { color: var(--sub); font-size: 14px; margin: 0 0 14px; }
.ev-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 12px; }
.ev-group { border: 1px solid var(--line); padding: 14px 16px; }
.ev-o { margin: 0; font-size: 16px; font-weight: 800; }
.ev-o .muted { font-size: 13px; font-weight: 600; margin-left: 4px; }
.ev-read { margin: 10px 0 0; font-size: 13px; color: var(--sub); }
td.pos { color: var(--up); }
td.neg { color: var(--down); }
.source { font-size: 12px; color: var(--faint); margin: 12px 0 0; }
.hint-line { color: var(--faint); font-size: 12px; margin: 0 0 4px; }
.ev-kind .fold { margin-top: 14px; }

/* ---- 아래 ---- */
.foot { background: var(--navy); color: #b7c3d4; padding: 22px 0 32px; margin-top: 28px; }
.foot p { margin: 0 0 6px; font-size: 12px; line-height: 1.6; }

/* 필터 결과가 없을 때 */
.seg .cnt { font-size: 12px; color: var(--faint); font-weight: 600; margin-left: 2px; }
.seg button.on .cnt { color: var(--accent); }
.empty-filter { background: var(--panel); border: 1px solid var(--line); border-top: 0; padding: 22px 18px; }
.empty-filter b { display: block; font-size: 15px; }
.empty-filter span { display: block; margin-top: 4px; font-size: 13px; color: var(--sub); }
.empty-filter[hidden], .rows[hidden] { display: none; }
.plain .sec-title { margin-top: 6px; }
/* 제호(신문 이름판) */
.masthead { background: var(--bg); padding-top: 18px; }
.mast-in { max-width: var(--w); margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 16px; }
.mast-title { font-family: "Noto Serif KR","Nanum Myeongjo","Batang","Times New Roman",serif; font-weight: 900;
              font-size: clamp(30px, 5.4vw, 52px); letter-spacing: -0.04em; line-height: 1.1; color: var(--ink); text-align: center; white-space: nowrap; }
.mast-title em { font-style: normal; color: var(--accent); }
.mast-side { margin: 0 0 6px; font-size: 12px; line-height: 1.45; color: var(--sub); }
.mast-side.right { text-align: right; }
.mast-tag { max-width: var(--w); margin: 10px auto 0; padding: 8px 20px 0; text-align: center; font-size: 13px; color: var(--sub);
            border-top: 1px solid var(--ink); }
.mast-nav { max-width: var(--w); margin: 10px auto 0; padding: 0 20px; display: flex; justify-content: center; gap: 0;
            border-top: 3px double var(--ink); border-bottom: 1px solid var(--ink); }
.mast-nav a { padding: 9px 22px; font-size: 14px; font-weight: 700; color: var(--sub); }
.mast-nav a + a { border-left: 1px solid var(--hair); }
.mast-nav a.on, .mast-nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
@media (max-width: 640px) {
  .mast-in { grid-template-columns: 1fr; }
  .mast-side { display: none; }
  .mast-tag { font-size: 12px; }
  .mast-nav { margin: 8px 12px 0; padding: 0; }
  .mast-nav a { padding: 8px 10px; font-size: 13px; flex: 1; text-align: center; }
}

/* ===== 확정 디자인: 데스크톱 앱형 (2026-11-30 선택) ===== */
/* 11. 데스크톱 앱형: 따뜻한 크림 바탕, 명조 제목 + 고딕 본문, 흙빛 주황 포인트 하나,
   부드럽게 둥근 모서리, 아주 옅은 선, 조용한 여백. 장식·그림자·강한 색 면 없음 */
:root { --navy:#3d3929; --navy-2:#3d3929; --accent:#c96442; --bg:#faf9f5; --panel:#fff; --ink:#3d3929; --sub:#6f6b5f;
        --faint:#a19d90; --line:#e8e5da; --hair:#f0ede4; --head:#f5f3ec; --up:#c4452f; --down:#3b66b8; --star:#c96442; }
body { font-family: "Pretendard","Malgun Gothic","Apple SD Gothic Neo",system-ui,sans-serif; font-size: 15px; }
.mast-title, .hero h1, .display-xl, .card-head h1, .sec-title, .card h2, .ev-kind h2, .ev-base h2, .index-pct, .month-label {
  font-family: "Noto Serif KR","Nanum Myeongjo","Georgia","Batang",serif; font-weight: 500; letter-spacing: -0.02em; }
/* 제호: 가운데, 차분한 명조 인사말 느낌 */
.masthead { background: var(--bg); padding: 34px 0 0; }
.mast-in { grid-template-columns: 1fr; } .mast-side { display: none; }
.mast-title { font-size: clamp(30px, 4.6vw, 44px); font-weight: 500; color: var(--ink); }
.mast-title em { color: var(--accent); }
.mast-tag { border: 0; color: var(--sub); font-size: 14px; margin-top: 6px; }
.mast-nav { border: 0; margin-top: 18px; gap: 4px; }
.mast-nav a { border: 0 !important; border-radius: 10px; padding: 7px 14px; font-weight: 500; color: var(--sub); }
.mast-nav a:hover { background: var(--head); text-decoration: none; }
.mast-nav a.on { background: #ebe8dd; color: var(--ink); text-decoration: none; }
/* 면: 흰 바탕, 옅은 선, 둥근 모서리 */
.indices, .upcoming, .rows, .fold, .cal-wrap, .card-head, .price-row, .chart-box, .card section, .ev-base, .ev-kind, .empty-filter, .months .month {
  border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.indices { overflow: hidden; } .index + .index { border-left: 1px solid var(--line); }
.hero { padding-top: 34px; } .hero h1 { font-size: 34px; }
.index-name { font-weight: 600; color: var(--sub); } .index-pct { font-size: 34px; }
.index-gist { border-top: 1px solid var(--hair); }
.upcoming { margin-top: 12px; } .up-label { background: #f6e6df; color: var(--accent); border-radius: 8px; font-weight: 600; }
.fold summary span { background: #f6e6df; color: var(--accent); border-radius: 6px; font-weight: 600; }
.sec-title, .card h2, .ev-kind h2, .ev-base h2 { border-bottom: 0; padding-bottom: 0; font-size: 24px; }
.sec-title small { font-family: "Pretendard","Malgun Gothic",sans-serif; }
.card h2 .hint { font-family: "Pretendard","Malgun Gothic",sans-serif; }
.seg { border: 0; gap: 4px; margin-bottom: 12px; }
.seg button { border: 0; border-radius: 10px; padding: 7px 14px; font-weight: 500; }
.seg button:hover { background: var(--head); }
.seg button.on { background: #ebe8dd; color: var(--ink); font-weight: 600; } .seg button.on .cnt { color: var(--accent); }
.rows { overflow: hidden; border-top: 1px solid var(--line); } .row-head { background: var(--head); font-weight: 500; }
.row { padding: 14px 18px; } a.row:hover { background: #fbf8f2; }
.r-tags { color: var(--accent); font-weight: 600; }
.tag { border: 0; border-radius: 6px; background: #f6e6df; color: var(--accent); font-weight: 600; }
.rank { background: var(--accent); border-radius: 6px; }
.more { color: var(--accent); font-weight: 500; }
.card-head { border-top: 1px solid var(--line); padding: 22px 24px; } .card-head h1 { font-size: 30px; } .h-q { color: var(--accent); }
.price-row { margin-top: 12px; border-top: 1px solid var(--line); } .card section { margin-bottom: 12px; padding: 22px 24px; }
.decomp-bar .seg { border-radius: 8px; } .decomp-bar .seg.main { background: var(--accent); }
.pager { border-radius: 10px; overflow: hidden; }
.cal th { background: var(--head); } .cal td.sel { outline-color: var(--accent); }
.foot { background: transparent; color: var(--faint); border-top: 1px solid var(--line); }

@media (prefers-color-scheme: dark) {
:root { --bg:#262624; --panel:#30302e; --ink:#f0eee6; --sub:#c2c0b6; --faint:#8f8d85; --line:#3e3e3a; --hair:#383835; --head:#2c2c2a;
        --up:#ff8a73; --down:#8ab0ff; }
.mast-nav a.on, .seg button.on { background:#3e3e3a; } .up-label, .fold summary span, .tag { background:#4a3428; } a.row:hover { background:#353532; }
}

/* 근거 신뢰도: 3칸 막대 + 높음·보통·낮음 */
.rel { display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; vertical-align: middle; }
.rel i { width: 5px; height: 12px; border-radius: 2px; background: var(--line); }
.rel i:nth-child(1) { height: 7px; } .rel i:nth-child(2) { height: 10px; } .rel i:nth-child(3) { height: 13px; }
.rel i.on { background: var(--accent); }
.rel b { margin-left: 5px; font-size: 13px; font-weight: 600; color: var(--ink); }
.rel-1 i.on { background: var(--faint); } .rel-1 b { color: var(--sub); }
.stat .value .rel b { font-size: 18px; } .stat .value .rel i { width: 6px; }
.r-stars { text-align: right; }
.rel { align-items: flex-end; } .rel b { line-height: 1; margin-bottom: -1px; }
.row { grid-template-columns: 170px 92px 1fr 84px; }
@media (max-width: 640px) { .row { grid-template-columns: 1fr auto; } }
