/* 수급노트 — 리퀴드 글래스 리스트.
   기본 라이트, <html class="dark"> 로 다크 전환 (헤더 버튼이 토글, localStorage 에 저장).
   색 규약: 한국 시장 관습대로 상승·강세 = 빨강, 하락 = 파랑. */

:root {
  --fg: #14161a; --fg2: #454b56; --mute: #6b7383;
  --hair: rgba(20,22,26,.07);
  --up: #e0353b; --down: #2563c9; --gold: #d99e00;
  --r: 20px;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  --glass-bg: linear-gradient(160deg, rgba(255,255,255,.34), rgba(255,255,255,.14));
  --glass-blur: blur(24px) saturate(185%) brightness(1.03);
  --glass-shadow:
    0 14px 38px rgba(20,22,26,.11),
    inset 0 1.4px 0 rgba(255,255,255,.98),
    inset 1px 0 0 rgba(255,255,255,.5),
    inset -1px 0 0 rgba(255,255,255,.34),
    inset 0 -1.2px 0 rgba(255,255,255,.24),
    0 0 0 .5px rgba(150,160,185,.20);
  --rim: linear-gradient(138deg,
      rgba(255,255,255,1) 0%, rgba(255,255,255,.45) 14%,
      rgba(255,255,255,0) 36%, rgba(255,255,255,0) 62%,
      rgba(255,255,255,.42) 86%, rgba(255,255,255,.85) 100%);
  --chip: rgba(20,22,26,.05);
}

html.dark {
  --fg: #e9ecf2; --fg2: #b4bbc8; --mute: #8b93a5;
  --hair: rgba(255,255,255,.07);
  --up: #ff5865; --down: #5b9bff; --gold: #ffc94d;
  --glass-bg: linear-gradient(160deg, rgba(255,255,255,.085), rgba(255,255,255,.045));
  --glass-blur: blur(28px) saturate(1.18) brightness(1.06);
  --glass-shadow:
    0 10px 34px rgba(0,0,0,.44),
    inset 0 1.4px 0 rgba(255,255,255,.34),
    inset 1px 0 0 rgba(255,255,255,.14),
    inset -1px 0 0 rgba(255,255,255,.08),
    inset 0 -1.2px 0 rgba(255,255,255,.06),
    0 0 0 .5px rgba(255,255,255,.10);
  --rim: linear-gradient(138deg,
      rgba(255,255,255,.85) 0%, rgba(255,255,255,.24) 15%,
      rgba(255,255,255,0) 38%, rgba(255,255,255,0) 64%,
      rgba(255,255,255,.20) 87%, rgba(255,255,255,.5) 100%);
  --chip: rgba(255,255,255,.07);
}

* { box-sizing: border-box; }

body {
  margin: 0; color: var(--fg); font-variant-numeric: tabular-nums;
  font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Apple SD Gothic Neo",
    "Noto Sans KR", Segoe UI, Roboto, sans-serif;
  line-height: 1.55; -webkit-font-smoothing: antialiased; word-break: keep-all;
  /* 저채도 4색 메시 — 유리 뒤에 비칠 것이 있어야 유리로 보인다. 뷰포트 고정. */
  background:
    radial-gradient(72vw 62vh at 4% 2%, #dfe9e4 0%, transparent 60%),
    radial-gradient(66vw 58vh at 99% 20%, #dbe4f0 0%, transparent 58%),
    radial-gradient(62vw 56vh at 26% 90%, #e4e2ec 0%, transparent 56%),
    radial-gradient(60vw 52vh at 92% 94%, #efe9de 0%, transparent 54%),
    linear-gradient(180deg, #f4f6f8, #eceff3);
  background-attachment: fixed;
}
html.dark body { background: #0b0d11; }

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- 배경 애니메이션 ---------- */
/* 주기를 서로 나누어떨어지지 않게(47·59·71) 잡아 반복이 눈에 띄지 않게 한다. */

.aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aurora i { position: absolute; display: block; border-radius: 50%; filter: blur(90px); will-change: transform; }
.aurora i:nth-child(1) { width: 54vw; height: 54vw; left: -12vw; top: 4vh;
  background: rgba(126,164,146,.24); animation: drift1 47s ease-in-out infinite; }
.aurora i:nth-child(2) { width: 52vw; height: 52vw; right: -12vw; top: 48vh;
  background: rgba(126,150,190,.24); animation: drift2 59s ease-in-out infinite; }
.aurora i:nth-child(3) { width: 44vw; height: 44vw; left: 26vw; top: 62vh;
  background: rgba(158,140,180,.18); animation: drift3 71s ease-in-out infinite; }
html.dark .aurora i:nth-child(1) { background: rgba(86,132,124,.17); }
html.dark .aurora i:nth-child(2) { background: rgba(84,106,146,.16); }
html.dark .aurora i:nth-child(3) { background: rgba(112,104,140,.13); }

@keyframes drift1 { 0%,100%{transform:translate3d(0,0,0) scale(1)}
  33%{transform:translate3d(9vw,7vh,0) scale(1.14)} 66%{transform:translate3d(-5vw,12vh,0) scale(.92)} }
@keyframes drift2 { 0%,100%{transform:translate3d(0,0,0) scale(1)}
  40%{transform:translate3d(-11vw,-8vh,0) scale(1.18)} 70%{transform:translate3d(-4vw,9vh,0) scale(.9)} }
@keyframes drift3 { 0%,100%{transform:translate3d(0,0,0) scale(1)}
  50%{transform:translate3d(7vw,-13vh,0) scale(1.22)} }
@media (prefers-reduced-motion: reduce) { .aurora i { animation: none; } }

/* ---------- 헤더 ---------- */

header.site {
  position: sticky; top: 0; z-index: 30; padding: 0;
  background: rgba(255,255,255,.62);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--hair);
}
html.dark header.site { background: rgba(11,13,17,.68); }
.site-bar { max-width: 760px; margin: 0 auto; display: flex; align-items: center;
  justify-content: space-between; gap: 14px; padding: 12px 18px 8px; }
.brand { font-weight: 750; font-size: 16.5px; letter-spacing: -.02em; }
.brand::before { content:""; display:inline-block; width:7px; height:7px; border-radius:50%;
  background: var(--up); margin-right: 8px; vertical-align: 1px; }
.theme-btn { appearance: none; border: 0; font: inherit; font-size: 12px; font-weight: 600;
  color: var(--fg2); background: var(--chip); padding: 4px 10px; border-radius: 20px; cursor: pointer; }

/* 최상위 두 축 — 수급 발굴 / 하우스뷰. 탭(모드)보다 한 단계 위다.
   성격이 다른 두 자료라 여기서 갈리고, 아래 탭은 수급 발굴 안에서만 쓰인다. */
.site-nav { max-width: 760px; margin: 0 auto; padding: 0 18px 2px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.secs { display: flex; gap: 4px; }
.sec { font-size: 15px; font-weight: 700; letter-spacing: -.01em; color: var(--mute);
  padding: 3px 11px 4px; border-radius: 999px; }
.sec:hover { color: var(--fg2); text-decoration: none; }
.sec.is-on { color: var(--fg); background: var(--chip); }
.site-nav .sub { font-size: 12.5px; font-weight: 550; color: var(--mute); white-space: nowrap; }

/* ---------- 탭 ---------- */

.tabs { max-width: 760px; margin: 0 auto; padding: 0 18px; display: flex; gap: 2px;
  overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { appearance: none; background: none; border: 0; border-bottom: 2px solid transparent;
  padding: 7px 11px 9px; margin-bottom: -1px; font: inherit; font-size: 13px; font-weight: 650;
  color: var(--mute); cursor: pointer; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.tab:hover { color: var(--fg2); }
.tab.is-on { color: var(--fg); border-bottom-color: var(--up); }
.tab-n { font-size: 10.5px; font-weight: 700; line-height: 1.6; background: var(--chip);
  color: var(--mute); border-radius: 20px; padding: 0 7px; }
.tab.is-on .tab-n { color: var(--up); }

main { max-width: 760px; margin: 0 auto; padding: 26px 18px 8px; position: relative; z-index: 1; }
footer.site { max-width: 760px; margin: 40px auto 0; padding: 24px 18px 46px;
  border-top: 1px solid var(--hair); font-size: 12.5px; color: var(--mute); position: relative; z-index: 1; }
footer.site p { margin: 0 0 4px; }
.fine { font-size: 11.5px; }

/* ---------- 리포트 헤딩 ---------- */

h1 { margin: 0 0 7px; font-size: clamp(23px,5vw,30px); letter-spacing: -.03em;
  line-height: 1.25; font-weight: 750; }
.meta { margin: 0 0 26px; font-size: 12.5px; color: var(--mute); }
.mode { margin: 0 0 42px; }
.mode > h2 { margin: 0 0 6px; font-size: 18.5px; font-weight: 750; letter-spacing: -.02em;
  display: flex; align-items: center; gap: 9px; }
.mode > h2::before { content:""; width:4px; height:16px; border-radius:3px;
  background: var(--mute); flex-shrink: 0; }
.mode-strong > h2::before { background: var(--up); }
.mode-early > h2::before { background: var(--gold); }
.blurb { margin: 0 0 18px 13px; font-size: 13px; color: var(--fg2); line-height: 1.6; }
.count { font-size: 11px; font-weight: 700; color: var(--mute); background: var(--chip);
  border-radius: 20px; padding: 2px 9px; }
.tier { margin: 0 0 22px; }
.tier-h { margin: 0 0 3px; font-size: 13.5px; font-weight: 700; display: flex; gap: 8px; align-items: center; }
.sub { margin: 0 0 12px; font-size: 12px; color: var(--mute); }

/* ---------- 유리 표면 ---------- */

.rows, .method, .disclaimer, .empty, .backfill-note, .hv-block, .hv-list, .ai-badge {
  position: relative; border-radius: var(--r);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
}
/* 굴절 림 — 좌상단에서 밝게 시작해 사라졌다가 우하단에서 다시 살아난다 */
.rows::after, .method::after, .disclaimer::after, .backfill-note::after,
.hv-block::after, .hv-list::after, .ai-badge::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--r); pointer-events: none;
  padding: 1.4px; background: var(--rim);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}

/* ---------- 업종 요약 스트립 ---------- */

.sector-strip { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 16px 13px; }
.ss-item { position: relative; overflow: hidden; z-index: 0; display: inline-flex;
  align-items: baseline; gap: 6px; padding: 4px 10px; border-radius: 8px; font-size: 11.5px;
  background: var(--chip); border: 1px solid var(--hair); }
/* 칩 **전체**를 비율만큼 진하게. 부분 채우기(width)는 칩 폭이 글자 길이마다 달라서
   같은 비율도 전혀 다른 지점을 자르고 글자 중간을 가로지른다. --i 는 build.py 가 넣는다.
   (예전엔 --w 를 읽었는데 코드가 --i 를 내보내 정의되지 않은 값이 되어 농도가 통째로 죽었다) */
.ss-item::before { content:""; position:absolute; inset:0; z-index:-1;
  background: var(--up); opacity: calc(var(--i, 0) * 0.16); }
.ss-item.is-top { border-color: color-mix(in srgb, var(--up) 40%, transparent); }
.ss-item b { font-weight: 600; color: var(--fg2); }
.ss-item i { font-style: normal; font-weight: 700; color: var(--up); }

/* ---------- 종목 리스트 ---------- */

.rows { list-style: none; margin: 0; padding: 0; overflow: hidden; }
.row { display: flex; gap: 11px; align-items: flex-start; padding: 11px 16px 10px;
  border-top: 1px solid var(--hair); }
/* 첫 행은 위에 구분선이 없어 패널 모서리에 붙어 보인다 — 여백으로 숨통을 틔운다.
   마지막 행도 대칭으로 맞춘다. */
.row:first-child { border-top: 0; padding-top: 17px; }
.row:last-child { padding-bottom: 15px; }
.rank { font-family: var(--mono); font-size: 10.5px; color: var(--mute); padding-top: 4px; flex-shrink: 0; }
.row-main { flex: 1; min-width: 0; }
.row-top { display: flex; align-items: baseline; gap: 7px; }
.name { font-size: 14.5px; font-weight: 700; letter-spacing: -.02em; }
.star { color: var(--gold); font-size: 11px; }
.sector-tag { font-size: 10.5px; color: var(--mute); flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.code { font-family: var(--mono); font-size: 10px; color: var(--mute); }
.mini { width: 78px; height: 24px; flex-shrink: 0; display: block; align-self: center; }
.mini-line { fill: none; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.mini.up .mini-line { stroke: var(--up); } .mini.up .mini-dot { fill: var(--up); }
.mini.down .mini-line { stroke: var(--down); } .mini.down .mini-dot { fill: var(--down); }

.metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin: 6px 0 7px; }
.m { min-width: 0; }
.m-v { display: block; font-size: 14.5px; font-weight: 750; letter-spacing: -.02em; }
.m-v.pos { color: var(--up); } .m-v.neg { color: var(--down); }
.m-k { display: block; font-size: 9.5px; color: var(--mute); white-space: nowrap; }
.m-bar { display: block; height: 3px; border-radius: 2px; margin-top: 5px;
  background: var(--chip); overflow: hidden; }
.m-bar i { display: block; height: 100%; border-radius: 2px;
  background: linear-gradient(90deg, var(--up), #f0803a); }

.subline { margin: 0; font-size: 11.5px; color: var(--fg2); }
.subline b { font-weight: 650; color: var(--fg); }
.subline .neg { color: var(--down); }
.nodata { color: var(--mute); background: var(--chip); border-radius: 6px; padding: 1px 7px; font-weight: 600; }

/* 펼치기 버튼 — 이전엔 11px 회색 텍스트라 눈에 안 띄었고 모바일 탭 영역도 부족했다.
   칩 형태 + 32px 높이로 만들어 '누를 수 있는 것' 임을 분명히 한다. */
.row details { margin-top: 9px; }
.row summary {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 30px; padding: 0 12px 0 10px;
  border-radius: 20px; border: 1px solid var(--hair);
  background: var(--chip); color: var(--fg2);
  font-size: 11.5px; font-weight: 650;
  cursor: pointer; list-style: none;
  transition: color .12s, border-color .12s, background .12s;
}
.row summary:hover {
  color: var(--fg);
  border-color: color-mix(in srgb, var(--up) 35%, transparent);
  background: color-mix(in srgb, var(--up) 7%, var(--chip));
}
.row summary:focus-visible { outline: 2px solid var(--up); outline-offset: 2px; }
.row summary::marker, .row summary::-webkit-details-marker { display: none; }
.row summary::after {
  content: ""; width: 7px; height: 7px; margin-left: 1px;
  border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform .18s ease;
}
.row details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.row details[open] summary { color: var(--fg); }

/* ---------- 확대 차트 + 52주 위치 ---------- */

.spark-wrap { margin: 11px 0 4px; }
.spark { display: block; width: 100%; height: auto; border: 1px solid var(--hair); border-radius: 10px; }
.spark-line { fill: none; stroke: var(--up); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.spark-area { fill: var(--up); opacity: .08; stroke: none; }
.spark-dot { fill: var(--up); }
/* 현재가 기준선 — 1년 레인지 안 위치를 한눈에. 데이터 선보다 뒤에 깔린다. */
.spark-now { stroke: var(--fg); stroke-width: 1; stroke-dasharray: 4 4; opacity: .3; }
.spark-period { margin: 5px 0 0; font-size: 10px; color: var(--mute); font-family: var(--mono); text-align: center; }
.pos52 { margin-top: 10px; }
.pos52-bar { position: relative; height: 5px; border-radius: 3px; background: var(--chip); }
.pos52-bar span { position: absolute; top: 50%; width: 3px; height: 13px;
  transform: translate(-50%,-50%); background: var(--fg); border-radius: 2px; }
.pos52-cap { display: flex; justify-content: space-between; align-items: baseline;
  gap: 8px; margin-top: 6px; font-size: 10.5px; color: var(--mute); }
.pos52-cap b { color: var(--fg); font-size: 11px; font-weight: 700; }
dl.detail { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 11px 0 0; font-size: 12px; }
dl.detail dt { color: var(--mute); }
dl.detail dd { margin: 0; text-align: right; font-weight: 550; }

/* ---------- 방법론 / 고지 / 백필 ---------- */

.method, .disclaimer, .backfill-note { padding: 16px 18px; margin-bottom: 16px; }
.method .tier-h, .disclaimer h2 { margin: 0 0 10px; font-size: 13px; font-weight: 700; }
/* 선정 기준 — 제목 아래 설명으로 쌓는다.
   값이 숫자가 아니라 두세 줄짜리 문장이라, 좌우 2열로 두면 모바일에서
   오른쪽 열이 좁아져 글자가 서너 개씩 끊긴다 (dl.detail 과 성격이 다르다). */
dl.steps { margin: 0; }
dl.steps dt { margin-top: 14px; font-size: 12px; font-weight: 700; color: var(--fg); }
dl.steps dt:first-child { margin-top: 0; }
dl.steps dd { margin: 3px 0 0; font-size: 12.5px; line-height: 1.65; color: var(--fg2); }
.funnel { margin: 12px 0 0; font-size: 11px; color: var(--mute); font-family: var(--mono);
  line-height: 1.8; background: var(--chip); border-radius: 8px; padding: 9px 11px; }
.disclaimer ul { margin: 0; padding-left: 17px; font-size: 12px; color: var(--fg2); }
.disclaimer li { margin-bottom: 7px; line-height: 1.6; }
.disclaimer b { color: var(--fg); }
.backfill-note { margin: 0 0 16px 13px; font-size: 12px; color: var(--fg2); line-height: 1.6; }
.backfill-note b { color: var(--fg); }
.empty { padding: 24px; text-align: center; color: var(--mute); font-size: 13px; }

/* ---------- 날짜 내비 / 아카이브 ---------- */

.daynav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px;
  font-size: 13px; font-weight: 550; }
.daynav a:only-child { margin-left: auto; }
/* 월별 접기 — <details> 라 JS 없이 동작한다 */
.ym {
  position: relative; border-radius: var(--r); margin-bottom: 10px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
}
.ym::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--r); pointer-events: none;
  padding: 1.4px; background: var(--rim);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.ym > summary {
  cursor: pointer; list-style: none; padding: 14px 18px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
}
.ym > summary::marker, .ym > summary::-webkit-details-marker { display: none; }
.ym-t { font-size: 15px; font-weight: 750; letter-spacing: -.02em; }
.ym-t::before { content: "▸ "; color: var(--mute); font-weight: 400; }
.ym[open] .ym-t::before { content: "▾ "; }
.ym-n { font-size: 11.5px; color: var(--mute); white-space: nowrap; }

.archive-list { list-style: none; margin: 0; padding: 0 18px 6px; }
.archive-list li { display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hair); }
.archive-list li:last-child { border-bottom: 0; }
.archive-list a { font-weight: 650; }
.tally { font-size: 11.5px; color: var(--mute); white-space: nowrap; }

@media (max-width: 430px) {
  .metrics { gap: 8px; }
  .m-v { font-size: 13px; }
  .mini { width: 62px; height: 22px; }
  .row { padding: 10px 13px 9px; gap: 9px; }
  .row:first-child { padding-top: 15px; }
  .row:last-child { padding-bottom: 13px; }
}

/* ---------- 하우스뷰 ----------
   스크리너와 시각 언어를 반대로 간다. 저기는 조밀한 숫자·표, 여기는 읽는 글:
   본문을 키우고 행간을 넓히고 한 줄에 담기는 글자 수를 줄인다.
   같은 사이트인 건 헤더·유리 표면이 유지해준다. */

.house { max-width: 640px; margin: 0 auto; }
.house h1 { margin: 0 0 10px; font-size: 24px; font-weight: 750; letter-spacing: -.02em; }
.house .lede { margin: 0 0 8px; font-size: 17px; line-height: 1.62; font-weight: 550;
  color: var(--fg); }
.house .lede .tone { display: inline-block; margin-right: 7px; padding: 2px 9px;
  border-radius: 999px; font-size: 12px; font-weight: 700; vertical-align: 2px;
  background: var(--chip); color: var(--mute); }
.tone-up .tone { color: var(--up); background: color-mix(in srgb, var(--up) 12%, transparent); }
.tone-down .tone { color: var(--down); background: color-mix(in srgb, var(--down) 12%, transparent); }
.house .meta { margin: 0 0 16px; font-size: 12px; color: var(--mute); }

.ai-badge { padding: 11px 15px; margin: 0 0 18px; font-size: 12.5px; line-height: 1.6;
  color: var(--fg2); }
.ai-badge b { color: var(--fg); }

.hv-block { padding: 18px 20px 20px; margin-bottom: 14px; }
.hv-block h2 { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .01em;
  color: var(--mute); text-transform: none; }
.hv-block p { margin: 0 0 10px; font-size: 15px; line-height: 1.75; color: var(--fg); }
.hv-block p:last-child { margin-bottom: 0; }
.hv-block .none { color: var(--mute); font-size: 14px; }
.hv-block.warn h2 { color: var(--gold); }

.hv-block ul.plain { margin: 0; padding-left: 18px; }
.hv-block ul.plain li { margin-bottom: 8px; font-size: 14.5px; line-height: 1.7; }
.hv-block ul.plain li:last-child { margin-bottom: 0; }

/* 라벨 + 서술 — 한 줄에 한 가지만 */
.ch-row { display: grid; grid-template-columns: 74px 1fr; gap: 10px; margin-bottom: 7px; }
.ch-row i { font-style: normal; font-size: 11.5px; font-weight: 650; color: var(--mute);
  padding-top: 3px; }
.ch-row span { font-size: 14.5px; line-height: 1.65; }

.changes, .sectors { list-style: none; margin: 0; padding: 0; }
.change, .sector { padding-top: 13px; margin-top: 13px; border-top: 1px solid var(--hair); }
.changes > li:first-child, .sectors > li:first-child { padding-top: 0; margin-top: 0; border-top: 0; }
.ch-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px; margin-bottom: 9px; }
.ch-head em { font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 8px;
  border-radius: 6px; background: var(--chip); color: var(--fg2); }
.ch-head b { font-size: 15px; font-weight: 700; }
.ch-head code, .stock code { font-family: var(--mono); font-size: 11px; color: var(--mute); }
.ch-head .shift { font-size: 12px; font-weight: 650; color: var(--fg2); }

.sector h3, .rotation h3 { margin: 0 0 9px; font-size: 16px; font-weight: 700; }
.stocks { list-style: none; margin: 10px 0 0; padding: 0; display: flex;
  flex-wrap: wrap; gap: 7px; }
.stock { display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 11px;
  border-radius: 9px; background: var(--chip); border: 1px solid var(--hair); }
.stock i { font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--mute); }
.stock b { font-size: 13.5px; font-weight: 650; }
.stock .why, .src .why { font-size: 12px; color: var(--fg2); }

.src { padding: 4px 4px 0; margin-top: 18px; }
.src h3 { margin: 0 0 8px; font-size: 12px; font-weight: 700; color: var(--mute); }
.src ul { list-style: none; margin: 0; padding: 0; }
.src li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px;
  margin-bottom: 6px; font-size: 12.5px; }
.src a { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.src time { font-family: var(--mono); font-size: 11px; color: var(--mute); }

/* 목록 페이지 — 날짜 + 한 줄 요약이면 고르기 충분하다 */
.hv-list { list-style: none; margin: 0; padding: 4px 0; overflow: hidden; }
.hv-row + .hv-row { border-top: 1px solid var(--hair); }
.hv-row a { display: grid; grid-template-columns: auto auto 1fr; align-items: baseline;
  gap: 10px; padding: 14px 20px; color: var(--fg); }
.hv-row .d { font-size: 13px; font-weight: 700; white-space: nowrap; }
.hv-row .tone { font-size: 11px; font-weight: 700; color: var(--mute); }
.hv-row .h { font-size: 13.5px; color: var(--fg2); line-height: 1.5; }

@media (max-width: 560px) {
  .house h1 { font-size: 21px; }
  .house .lede { font-size: 16px; }
  .hv-block { padding: 15px 16px 17px; }
  .ch-row { grid-template-columns: 62px 1fr; gap: 8px; }
  .hv-row a { grid-template-columns: 1fr; gap: 4px; padding: 13px 16px; }
  .hv-row .tone { display: none; }
}

/* 지난 노트 — 하우스뷰는 발행이 드물어 본문 아래에 붙인다 (별도 아카이브 페이지 없음) */
.hv-past { margin-top: 34px; }
.hv-past h2 { margin: 0 0 10px; font-size: 13.5px; font-weight: 700;
  display: flex; align-items: center; gap: 8px; }
