/* ==========================================================================
   Stock Insight — 디자인 토큰 · 기본 요소 · 공용 컴포넌트
   --------------------------------------------------------------------------
   개편 브리프(2026-08-29)의 셸 아이덴티티를 전역 시스템으로 채택.
   - 색: 거의 무채색인 남색 그라운드 + **보라** 액센트.
         상승/하락은 국내 관행대로 빨강/파랑이며, 액센트와 분리된 시맨틱 컬러다.
   - 타입: IBM Plex Sans KR(본문·제목) + IBM Plex Mono(수치·라벨) 2계열.
           Nanum Myeongjo는 에디토리얼 서피스 전용 → surfaces.css 에서만 사용.
   - 테마: **다크가 기본.** 시스템 라이트(prefers-color-scheme)와 명시 선택
           (html[data-theme])을 모두 지원한다. 색은 반드시 토큰으로만 참조할 것.

   2026-09-18 개편 — 바꾼 이유 두 가지:
     ① 옛 액센트 #2B4CE0 이 하락색 #1B5FD0 과 사실상 같은 파랑이었다. 링크·버튼과
        하락 숫자가 서로를 죽여 시장색이 눈에 띄지 않았다. 액센트를 보라로 옮겨
        **보라 = UI, 빨강·파랑 = 시장 데이터**로 뜻을 하나씩 고정한다.
     ② 다크를 bare :root 에 둔다. 라이트를 기본에 두면 시스템이 "밝게"인 사람에게
        라이트가 뜬다 — 다크 우선 디자인은 이 순서를 뒤집어야 성립한다.
     배경은 남색이되 **거의 무채색**이다. 배경이 파랗면 하락 파랑이 묻힌다.
   ========================================================================== */

/* ── 1. 토큰 ─────────────────────────────────────────────────────────────── */

:root {
  color-scheme: dark;

  --ground:      #0B111A;
  --surface:     #121923;
  --surface-2:   #19222E;
  --surface-3:   #212C3A;
  --ink:         #E9EDF3;
  --ink-2:       #BAC3D0;
  --ink-mute:    #8B95A5;
  --line:        #293443;
  --line-soft:   #1E2836;

  --accent:      #8B72FF;
  --accent-soft: #1F1B3A;
  --accent-ink:  #AE9BFF;
  --on-accent:   #0B111A;

  --up:          #F05A50;
  --up-soft:     #2A1614;
  --down:        #6EA0E8;
  --down-soft:   #111F33;
  --warn:        #E0A34A;
  --warn-soft:   #2A2115;

  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-2: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 28px -14px rgba(0, 0, 0, .7);

  --font-sans:  "IBM Plex Sans KR", Pretendard, "Malgun Gothic", system-ui, -apple-system, sans-serif;
  --font-mono:  "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, "Courier New", monospace;
  --font-serif: "Nanum Myeongjo", Batang, Georgia, serif;

  --fs-xs:   12px;
  --fs-sm:   13.5px;
  --fs-base: 15.5px;
  --fs-md:   17px;
  --fs-lg:   20px;
  --fs-xl:   25px;
  --fs-2xl:  32px;
  --fs-3xl:  42px;

  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px;

  --r-sm: 6px; --r: 10px; --r-lg: 16px; --r-pill: 999px;

  --wrap:        1180px;
  --wrap-narrow: 760px;

  /* famousbros 공용 부품(fb.css, G:\workspace\DESIGN.md) 값 — 기존 토큰을 가리키므로 아래 라이트 블록 둘이
     기존 토큰을 바꾸면 같이 바뀐다. 강조는 보라 하나(빨강·파랑은 시장 데이터 전용 — 위 머리말 ①).
     실측(2026-10-16, WCAG):
       다크   --ink/--surface 15.03 · --ink-mute/--surface 5.84 · --ink-mute/--ground 6.26 · --on-accent/--accent 5.36
       라이트 --ink/--surface 17.43 · --ink-mute/--surface 4.91 · --on-accent/--accent 5.15
              (--ink-mute/--ground 은 4.46 이지만 fb 부품의 보조 글자는 전부 surface 섞인 면(유리 70%·푸터 60%) 위다) */
  --fb-bg: var(--ground);
  --fb-surface: var(--surface);
  --fb-ink: var(--ink);
  --fb-muted: var(--ink-mute);
  --fb-line: var(--line);
  --fb-accent: var(--accent);
  --fb-on-accent: var(--on-accent);
  --fb-display: var(--font-sans);
  --fb-max: calc(var(--wrap) - 2 * var(--s5));   /* 본문 .wrap 의 안쪽 폭과 같게 */
  /* 다크가 기본이라 fb.css 의 "OS 가 다크일 때" 유리·그림자 값을 bare :root 에 다시 둔다 —
     OS 는 밝은데 토글로 다크를 고른 사람에게도 다크 유리가 나와야 한다. 라이트 값은 아래 두 라이트 블록. */
  --fb-shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .35);
  --fb-glass: color-mix(in srgb, var(--fb-surface) 62%, transparent);
  --fb-glass-line: color-mix(in srgb, #fff 14%, transparent);
}

/* 시스템이 "밝게"일 때만 라이트로 덮는다. `:not([data-theme="dark"])` 가 있어야
   수동으로 다크를 고른 사람이 밝은 OS 에서도 다크를 유지한다. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;

    --ground:      #F3F4F6;
    --surface:     #FFFFFF;
    --surface-2:   #E9ECF1;
    --surface-3:   #DFE3EA;
    --ink:         #171A20;
    --ink-2:       #3A4150;
    --ink-mute:    #697180;
    --line:        #D5D9E1;
    --line-soft:   #E4E7ED;

    --accent:      #6D4AFF;
    --accent-soft: #EFEBFF;
    --accent-ink:  #4A2FCC;
    --on-accent:   #FFFFFF;

    --up:          #D63B32;
    --up-soft:     #FCE8E6;
    --down:        #2D6CCF;
    --down-soft:   #E8F0FC;
    --warn:        #9D5D00;
    --warn-soft:   #FAF0DE;

    --shadow-1: 0 1px 2px rgba(15, 20, 30, .06);
    --shadow-2: 0 1px 2px rgba(15, 20, 30, .06), 0 10px 28px -14px rgba(15, 20, 30, .22);

    --fb-shadow: 0 1px 2px rgb(0 0 0 / .04), 0 8px 24px rgb(0 0 0 / .06);
    --fb-glass: color-mix(in srgb, var(--fb-surface) 70%, transparent);
    --fb-glass-line: color-mix(in srgb, var(--fb-ink) 10%, transparent);
  }
}

:root[data-theme="light"] {
  color-scheme: light;

  --ground:      #F3F4F6;
  --surface:     #FFFFFF;
  --surface-2:   #E9ECF1;
  --surface-3:   #DFE3EA;
  --ink:         #171A20;
  --ink-2:       #3A4150;
  --ink-mute:    #697180;
  --line:        #D5D9E1;
  --line-soft:   #E4E7ED;

  --accent:      #6D4AFF;
  --accent-soft: #EFEBFF;
  --accent-ink:  #4A2FCC;
  --on-accent:   #FFFFFF;

  --up:          #D63B32;
  --up-soft:     #FCE8E6;
  --down:        #2D6CCF;
  --down-soft:   #E8F0FC;
  --warn:        #9D5D00;
  --warn-soft:   #FAF0DE;

  --shadow-1: 0 1px 2px rgba(15, 20, 30, .06);
  --shadow-2: 0 1px 2px rgba(15, 20, 30, .06), 0 10px 28px -14px rgba(15, 20, 30, .22);

  --fb-shadow: 0 1px 2px rgb(0 0 0 / .04), 0 8px 24px rgb(0 0 0 / .06);
  --fb-glass: color-mix(in srgb, var(--fb-surface) 70%, transparent);
  --fb-glass-line: color-mix(in srgb, var(--fb-ink) 10%, transparent);
}

/* ── 2. 리셋 · 기본 요소 ─────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  margin: 0;
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: -.028em;
  text-wrap: balance;
}

p { margin: 0; }

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
a:hover { color: var(--accent-ink); }

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

img, svg { max-width: 100%; }

hr {
  border: 0;
  border-top: 1px solid var(--line-soft);
  margin: var(--s5) 0;
}

/* ── 3. 레이아웃 ─────────────────────────────────────────────────────────── */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: var(--s5);
}
@media (max-width: 640px) { .wrap { padding-inline: var(--s4); } }

.page {
  flex: 1;
  padding-block: var(--s6) var(--s8);
}

.page-narrow { max-width: var(--wrap-narrow); }

.stack       { display: flex; flex-direction: column; gap: var(--s4); }
.stack-tight { display: flex; flex-direction: column; gap: var(--s2); }
.stack-loose { display: flex; flex-direction: column; gap: var(--s6); }

.row {
  display: flex;
  align-items: center;
  gap: var(--s3);
  flex-wrap: wrap;
}

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--s4); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s4); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: var(--on-accent);
  padding: var(--s2) var(--s4);
  border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; color: var(--on-accent); }

/* ── 4. 사이트 헤더 · 푸터 ───────────────────────────────────────────────── */

/* 2026-10-16 famousbros 디자인 시스템 v2 — 머리말 틀은 fb.css 의 .fb-nav(떠 있는 유리 막대, 폰에서는 링크가
   아래 탭바), 꼬리는 .fb-foot 이다. 옛 .masthead·.mainnav·.sitefoot 규칙은 지웠다. 여기에는 이 사이트의
   로고(.brand)·검색 칸·계정 칸만 남는다. 막대는 폭이 --fb-max 라 데스크톱에서 다섯 칸 + 검색 + 계정이 한 줄이다. */
.fb-nav .fb-nav__bar { gap: var(--s3); }
.fb-nav__links { flex: none; }
.fb-nav__logo.brand { align-items: center; }   /* .brand 의 baseline 정렬은 막대 안에서 글자가 위로 뜬다 */
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: var(--s2);
  font-size: var(--fs-md);
  font-weight: 700;
  letter-spacing: -.035em;
  color: var(--ink);
  text-decoration: none;
  flex: none;
}
.brand:hover { color: var(--ink); }
.brand .brand-mark {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--r-sm);
  padding: 1px 5px;
}


/* ── 2차 띠 (2026-09-30) ────────────────────────────────────────────────────
   상단 내비를 5칸으로 줄이면서 시장 화면 여섯 개를 `/market/flow/` 허브 한 칸으로
   묶었다(UIUX.md Hick). 묶인 화면끼리 오가는 길이 이 띠이고, 그 일곱 화면에만
   나온다 — `templates/market/_subnav.html`.

   `.s-board .board-tab`(화면 안 탭)과 모양이 같은데 클래스를 따로 두는 이유는
   서피스다: 여섯 중 다섯이 `s-editorial` 이라 `.s-board` 아래 규칙이 닿지 않는다.
   지금 위치를 강조색이 아니라 반전으로 표시하는 이유는 강조색이 화면당 한 번이고
   (UIUX.md Von Restorff) 이 여섯 화면은 그 한 번을 본문 그림에 이미 쓴다.        */
.subnav { display: flex; flex-wrap: wrap; gap: var(--s1); }
.subnav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;   /* 탭 대상 — 계산 높이가 33px 이었다(board-tab 과 같은 값) */
  font-size: var(--fs-sm);
  font-weight: 500;
  padding: 5px var(--s3);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  color: var(--ink-mute);
  text-decoration: none;
}
.subnav a:hover { color: var(--ink); }
.subnav a[aria-current="page"] { background: var(--ink); color: var(--ground); }

/* 허브(`market/flow.html`) 카드의 제목 링크 — 탭 대상 44px.
   카드 전체를 앵커로 덮지 않는다: 카드에 한 줄 설명(본문 문장)이 있고, 덮으면
   그 문장을 끌어 선택할 수 없다(`.link-list` 주석과 같은 판단). */
.flow-link { display: inline-flex; align-items: center; min-height: 44px; }
/* 허브는 여섯 칸을 나란히 놓고 하나 고르게 하는 화면이라 어느 하나를 강조할 자리가
   없다 — `.story-steps .step-mark` 의 강조색을 여기서만 중립으로 되돌린다.
   여섯 개를 같은 강조색으로 칠하면 0개를 칠한 것과 같다(UIUX.md Von Restorff). */
.flow-cards .step-mark { color: var(--ink-mute); }

.masthead-search {
  flex: 1 1 160px;
  min-width: 0;
  max-width: 300px;
}
.masthead-search input {
  width: 100%;
  font: inherit;
  font-size: var(--fs-sm);
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-pill);
  padding: 7px var(--s4);
  min-height: 44px;
}
.masthead-search input::placeholder { color: var(--ink-mute); }
.masthead-search input:focus {
  background: var(--surface);
  border-color: var(--accent);
}

.masthead-account {
  display: flex;
  align-items: center;
  gap: var(--s3);
  font-size: var(--fs-sm);
  color: var(--ink-mute);
  flex: none;
}
.masthead-account form { display: inline; }
/* 로그인 이메일이 길면 막대를 밀어낸다 — 말줄임(전체 주소는 title 이 아니라 계정 화면에서 본다) */
.masthead-account .small { max-width: 16ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1100px) { .masthead-account .small { display: none; } }
/* 폰: 링크는 아래 탭바로 내려가고(fb.css) 막대는 두 줄 — 1행 로고·테마·계정, 2행 검색 칸 전폭.
   알약(999px)이 두 줄이 되면 양끝이 뭉개져 둥글기를 --fb-r-l 로 낮춘다. */
@media (max-width: 719px) {
  .fb-nav .fb-nav__bar { flex-wrap: wrap; border-radius: var(--fb-r-l); padding: var(--s2) var(--s3); row-gap: var(--s2); }
  .fb-nav .fb-nav__bar::before { border-radius: var(--fb-r-l); }
  .masthead-account { margin-left: auto; }
  .masthead-search { order: 3; flex-basis: 100%; max-width: none; }
}

.theme-toggle {
  font: inherit;
  font-size: var(--fs-sm);
  line-height: 1;
  color: var(--ink-2);
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-pill);
  /* 30x30 이었다 — 탭 대상은 44x44 다(min-* 가 width/height 를 이긴다). */
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: none;
}
.theme-toggle:hover { background: var(--surface-3); color: var(--ink); }

.fb-foot .brand { color: var(--ink); }
/* 홈 히어로(.fb-hero) 안의 빠른 길 알약 — 주 버튼 아래 한 줄 띄운다 */
.hero-pills { margin-top: var(--s4); }
.fb-foot .disclaimer { max-width: 68ch; }

/* ── 5. 타이포 유틸 ──────────────────────────────────────────────────────── */

/* eyebrow 는 라틴 문자 전용이다. 한글에 넓은 자간을 주면 어절이 흩어져 보인다. */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}

/* 한글이 들어가는 소형 라벨. 모노는 한글 글리프가 없어 폴백되므로 산세리프로 쓴다. */
.label {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--ink-mute);
}

.page-title { font-size: var(--fs-2xl); font-weight: 700; letter-spacing: -.035em; }
.section-title { font-size: var(--fs-lg); }

.lede {
  font-size: var(--fs-md);
  font-weight: 300;
  color: var(--ink-2);
  max-width: 66ch;
}

.muted { color: var(--ink-mute); }
.small { font-size: var(--fs-sm); }
.num   { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.up   { color: var(--up); }
.down { color: var(--down); }

.crumb {
  font-size: var(--fs-xs);
  color: var(--ink-mute);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}
.crumb a { color: var(--ink-mute); text-decoration: none; }
.crumb a:hover { color: var(--accent); }

/* ── 6. 컴포넌트 ─────────────────────────────────────────────────────────── */

.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  padding: var(--s5);
}
.card-title {
  font-size: var(--fs-base);
  font-weight: 600;
  margin-bottom: var(--s3);
}

.chip {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 500;
  line-height: 1.6;
  padding: 2px 9px;
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  color: var(--accent-ink);
  white-space: nowrap;
}
.chip-neutral { background: var(--surface-3); color: var(--ink-2); }
.chip-warn    { background: var(--warn-soft); color: var(--warn); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 1.4;
  min-height: 44px;   /* 탭 대상 — 계산 높이가 37px 이었다 */
  padding: 8px var(--s4);
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { background: var(--surface-2); color: var(--ink); }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--on-accent); }

.btn-on  { background: var(--warn-soft); border-color: var(--warn); color: var(--warn); }
.btn-on:hover { background: var(--warn-soft); color: var(--warn); }
.btn-set { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
.btn-set:hover { background: var(--accent-soft); color: var(--accent-ink); }

.linkout {
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: none;
}
.linkout:hover { text-decoration: underline; }

/* 폼 — Django 의 {{ form.as_p }} 출력을 그대로 감싸서 쓴다. */
.form { display: flex; flex-direction: column; gap: var(--s4); max-width: 420px; }
.form p { display: flex; flex-direction: column; gap: var(--s1); margin: 0; }
.form label { font-size: var(--fs-sm); font-weight: 500; color: var(--ink-2); }
.form input[type="text"],
.form input[type="email"],
.form input[type="password"],
.form input[type="number"],
.form input[type="search"],
.form select {
  width: 100%;
  font: inherit;
  font-size: var(--fs-sm);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 8px var(--s3);
}
.form input:focus, .form select:focus { border-color: var(--accent); }
.form .helptext, .form ul.errorlist {
  font-size: var(--fs-xs);
  color: var(--ink-mute);
  margin: 0;
  padding: 0;
  list-style: none;
}
.form ul.errorlist { color: var(--up); }

.field {
  display: flex;
  flex-direction: column;
  gap: var(--s1);
  font-size: var(--fs-sm);
}
.field > span { font-size: var(--fs-xs); font-weight: 500; color: var(--ink-mute); }
.field input[type="number"],
.field input[type="search"],
.field select {
  width: 100%;
  font: inherit;
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 7px var(--s3);
}
.field input:focus, .field select:focus { border-color: var(--accent); }

.check {
  flex-direction: row;
  align-items: center;
  gap: var(--s2);
  font-size: var(--fs-sm);
  color: var(--ink-2);
}
.check input { accent-color: var(--accent); width: 15px; height: 15px; }
.check > span { font-size: var(--fs-sm); font-weight: 400; color: var(--ink-2); }

/* 표 */
.table-scroll {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
.table th {
  text-align: left;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--ink-mute);
  background: var(--surface-2);
  padding: var(--s3) var(--s4);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td {
  padding: var(--s3) var(--s4);
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-2);
  white-space: nowrap;
  /* 아래 `.table td > a::after` 가 기댈 자리. 표 안의 다른 절대배치 요소
     (.pos-marker · .gauge-dot · .guru-change-bar i)는 각자 position:relative 인
     부모를 이미 가지고 있어 이 줄에 영향받지 않는다. */
  position: relative;
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--surface-2); }
.table td:first-child { color: var(--ink); font-weight: 500; }
.table td a { text-decoration: none; }
.table td a:hover { text-decoration: underline; }
/* 종목명 링크를 **칸 전체**로 펼친다 — 글자 폭만 누를 수 있던 것을 패딩까지 넓혀
   탭 대상 44px 에 닿게 한다(UIUX.md Fitts). `<a>` 안에 `<a>` 를 넣지 않으려고
   HTML 구조가 아니라 ::after 로 덮으므로 말줄임·baseline 정렬이 그대로 살아 있다.

   ⚠️ **`tr` 이 아니라 `td` 다.** 줄 전체를 덮으면 같은 줄의 숫자 칸(종가·등락률·
      PER·시가총액)에서 글자를 끌어 선택할 수 없다 — 그 값들은 읽고 골라 복사하는
      데이터이고, 스크리너는 한 줄에 그런 칸이 열 개다. 누르러 온 칸은 종목명 하나다. */
.table td > a::after { content: ""; position: absolute; inset: 0; }
.table .n { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.table th.n { text-align: right; }
/* .table td 의 색 지정이 .up/.down 을 덮으므로 셀 단위로 다시 지정한다. */
.table td.up { color: var(--up); }
.table td.down { color: var(--down); }

/* 라벨–값 */
.kv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  border-top: 1px solid var(--line-soft);
}
.kv {
  display: flex;
  justify-content: space-between;
  gap: var(--s3);
  padding: var(--s3) var(--s4);
  border-bottom: 1px solid var(--line-soft);
  font-size: var(--fs-sm);
}
.kv dt { color: var(--ink-mute); margin: 0; }
.kv dd { margin: 0; font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--ink); }
/* 값이 한글 문장일 때(대표자·본사 주소). 모노에는 한글 글리프가 없어 폴백되면서
   어절이 흩어져 보인다 — CLAUDE.md 디자인 절의 금지 항목이다. */
.kv dd.text { font-family: var(--font-sans); font-variant-numeric: normal; text-align: right; }

/* 빈 상태 */
.empty {
  padding: var(--s6) var(--s5);
  text-align: center;
  color: var(--ink-mute);
  font-size: var(--fs-sm);
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--r);
}

/* 페이지네이션 */
.pager {
  display: flex;
  align-items: center;
  gap: var(--s4);
  font-size: var(--fs-sm);
  color: var(--ink-mute);
  margin-top: var(--s5);
}
/* 페이징 링크도 탭 대상 — 계산 높이가 35px 이었다. */
.pager a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 5px var(--s3);
  color: var(--ink-2);
}
.pager a { gap: var(--s1); }
.pager a:hover { border-color: var(--accent); color: var(--accent); }
.pager .pos { font-family: var(--font-mono); }

/* ── 아이콘(2026-10-14) ──────────────────────────────────────────────────────────
   글꼴·스프라이트·외부 파일 없이 CSS mask 하나로 그린다. 색은 currentColor 라 링크 색·hover·
   다크 테마를 그대로 따른다(새 색 없음). 모양만 data URI 에 있고 그 안의 black 은 가림막의
   불투명도일 뿐 화면 색이 아니다.
   UIUX.md(Jakob): '다음' 링크에 화살표를 붙여도 **글자는 지우지 않는다** — 아이콘은 글자 옆에
   붙이고, 글자를 숨기는 곳(빵부스러기 '홈')은 .sr-only 로 읽을 글자를 남긴다. */
.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;
}
.ico, .ext::after {
  display: inline-block; flex: none;
  width: 1em; height: 1em; vertical-align: -0.14em;
  background-color: currentColor;
  -webkit-mask: var(--ico) center / contain no-repeat;
  mask: var(--ico) center / contain no-repeat;
}
/* 아이콘은 기본이 글자 앞(오른쪽 틈), .after 는 글자 뒤(왼쪽 틈). flex gap 을 주는 곳(.pager a)은 gap 이 대신한다. */
.ico { margin-right: 0.3em; }
.ico.after { margin: 0 0 0 0.3em; }
.pager .ico, .sr-only + .ico, .ico:only-child { margin: 0; }
/* 바깥 사이트로 나가는 링크 — 글자 뒤에 '새 곳으로' 표시. ↗ 글자를 쓰던 자리(원문·회사 홈페이지)도 이것으로. */
.ext::after { content: ""; width: 0.85em; height: 0.85em; margin-left: 0.25em; --ico: var(--ico-ext); }
/* 고대비 모드에서는 배경색이 지워져 가림막 아이콘이 사라진다 — 글자색으로 되살린다. */
@media (forced-colors: active) {
  .ico, .ext::after { background-color: CanvasText; forced-color-adjust: none; }
  a .ico, a.ext::after { background-color: LinkText; }
}
:root {
  --ico-prev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5M11 18l-6-6 6-6'/%3E%3C/svg%3E");
  --ico-next: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  --ico-home: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-7 9 7'/%3E%3Cpath d='M5 10v10h5v-6h4v6h5V10'/%3E%3C/svg%3E");
  --ico-ext: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6M20 4l-9 9'/%3E%3Cpath d='M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E");
  --ico-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E");
  --ico-list: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M9 6h11M9 12h11M9 18h11M4 6h.01M4 12h.01M4 18h.01'/%3E%3C/svg%3E");
  --ico-news: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h13v14H6a2 2 0 0 1-2-2z'/%3E%3Cpath d='M17 9h3v8a2 2 0 0 1-2 2M8 9h5M8 13h5'/%3E%3C/svg%3E");
  --ico-chart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M3 20h18M6 16v-5M11 16V6M16 16v-8M20 16v-3'/%3E%3C/svg%3E");
}
.ico-prev { --ico: var(--ico-prev); }
.ico-next { --ico: var(--ico-next); }
.ico-home { --ico: var(--ico-home); }
.ico-mail { --ico: var(--ico-mail); }
.ico-list { --ico: var(--ico-list); }
.ico-news { --ico: var(--ico-news); }
.ico-chart { --ico: var(--ico-chart); }

/* 알림 배너 */
.notice {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: var(--r-sm);
  padding: var(--s3) var(--s4);
  font-size: var(--fs-sm);
  color: var(--ink-2);
}
.notice-warn { border-left-color: var(--warn); }

/* 주가 차트 — 캔버스 본체는 lightweight-charts 가 그리고, 여기서는 그 액자만 잡는다.
   차트 색은 CSS 에서 지정할 수 없어(캔버스는 상속하지 않는다) JS 가 토큰을 읽어 넣는다. */
.chart-head {
  display: flex;
  align-items: baseline;
  gap: var(--s3);
  flex-wrap: wrap;
  margin-bottom: var(--s4);
}
.chart-head h2 { font-size: var(--fs-md); }

.chart-ranges { margin-left: auto; display: flex; gap: var(--s1); }
.chart-ranges[hidden] { display: none; }
/* 기간 버튼은 탭이다 — 계산 높이가 31px 이었다. */
.chart-range {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font: inherit;
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--ink-2);
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-pill);
  padding: 4px var(--s3);
  cursor: pointer;
}
.chart-range:hover { background: var(--surface-3); color: var(--ink); }
/* 받아 둔 구간보다 긴 기간 버튼은 JS 가 하나씩 감춘다(눌러도 같은 그림이라서).
   .chart-ranges 가 flex 라 자식의 [hidden] 이 밀리지 않도록 명시해 둔다. */
.chart-range[hidden] { display: none; }
/* 선택 상태는 UI 액센트다 — 등락(--up/--down)과 섞지 않는다. */
.chart-range[aria-pressed="true"] {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-ink);
}

/* 높이는 .is-live 가 준다. JS 가 붙기 전(또는 JS 가 없을 때)에는 높이가 0이라
   빈 상자가 생기지 않는다 — 차트는 어디까지나 덧입히는 계층이다. */
.chart-figure { height: 0; }
.chart-figure.is-live { height: 320px; }
@media (max-width: 640px) { .chart-figure.is-live { height: 240px; } }

.chart-legend {
  display: flex;
  align-items: baseline;
  gap: var(--s2);
  margin-top: var(--s3);
  font-size: var(--fs-sm);
  color: var(--ink);
}
.chart-legend[hidden] { display: none; }
.chart-legend-unit { font-size: var(--fs-xs); color: var(--ink-mute); }

.chart-status {
  margin-top: var(--s3);
  font-size: var(--fs-sm);
  color: var(--ink-mute);
}
/* 오류는 --warn 이다. --up 은 "상승"이라는 뜻을 가진 시맨틱 컬러라 쓸 수 없다. */
.chart-status.is-error { color: var(--warn); }
/* .btn 이 display:inline-flex 를 주므로 [hidden] 을 다시 눌러 줘야 실제로 숨는다. */
.chart-retry { margin-top: var(--s3); }
.chart-retry[hidden] { display: none; }

/* 재무 미니차트(영업이익률·ROE·ROIC). 세 선의 색은 여기 토큰이 원본이고 JS 가
   같은 이름을 읽어 캔버스에 넣는다. --up/--down 은 주가 방향 전용이라 쓰지 않는다. */
.fin-chart { margin-bottom: var(--s4); }
.fin-chart[hidden] { display: none; }
.fin-legend { display: flex; gap: var(--s4); font-size: var(--fs-xs); color: var(--ink-2); margin-bottom: var(--s2); }
.fin-legend i { display: inline-block; width: 10px; height: 3px; margin-right: var(--s1); vertical-align: middle; }
.fin-legend .fin-op { background: var(--accent); }
.fin-legend .fin-roe { background: var(--ink-2); }
.fin-legend .fin-roic { background: var(--warn); }

@media (prefers-reduced-motion: no-preference) {
  .btn, .card, .mainnav a, .theme-toggle { transition: background-color .16s ease, border-color .16s ease, color .16s ease; }
}

/* ── 업종 안에서의 위치 (디자인 방향 E, 판정 없이) ──────────────────────────
   빨강/파랑을 쓰지 않는다. 이 사이트에서 --up/--down 은 **주가 방향**이고
   국내 관행상 빨강은 상승이다. PER 이 업종보다 높다고 빨강을 칠하면 "올랐다"
   또는 "좋다"로 읽힌다 — 여기서 말하려는 것은 방향도 평가도 아니고 위치다.
   그래서 비교 칩은 액센트 계열 중립색을 쓴다.                              */
.pos-card { display: grid; gap: var(--s4); }

.pos-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s3);
}
.pos-head h2 { font-size: var(--fs-md); font-weight: 600; }
.pos-asof { font-size: var(--fs-xs); color: var(--ink-mute); }

.pos-grid { display: grid; gap: var(--s2); margin: 0; }
.pos-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3) 0;
  border-top: 1px solid var(--line-soft);
}
.pos-row:first-child { border-top: 0; }
/* dt 는 PER·PBR·ROE — 라틴 라벨이라 모노가 맞다(한글이었다면 폴백으로 흩어진다). */
.pos-row dt {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--ink-mute);
  margin: 0;
}
.pos-row dd {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s2) var(--s3);
  margin: 0;
}
.pos-value { font-size: var(--fs-md); font-weight: 600; color: var(--ink); }
.pos-median { font-size: var(--fs-sm); color: var(--ink-mute); }
.pos-chip {
  font-size: var(--fs-xs);
  padding: 2px var(--s2);
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent-ink);
  white-space: nowrap;
}

/* 종가 범위 안의 위치. 눈금은 저가·고가 두 개뿐이고 그 사이는 선형이다 —
   범위 밖을 표현할 일이 없다(현재가는 정의상 범위 안에 있다).            */
.pos-range { display: grid; gap: var(--s2); }
.pos-track {
  position: relative;
  height: 6px;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--down-soft), var(--line-soft), var(--up-soft));
}
.pos-marker {
  position: absolute;
  top: 50%;
  width: 3px;
  height: 16px;
  border-radius: 2px;
  background: var(--ink);
  transform: translate(-50%, -50%);
}
.pos-scale {
  display: flex;
  justify-content: space-between;
  gap: var(--s3);
  font-size: var(--fs-xs);
  color: var(--ink-mute);
}
.pos-scale-mid { text-align: center; }

.pos-foot {
  font-size: var(--fs-xs);
  line-height: 1.7;
  color: var(--ink-mute);
  padding-top: var(--s3);
  border-top: 1px solid var(--line-soft);
}

/* 요약문 둘째 문단(디자인 방향 C). 첫 문단과 같은 크기면 한 덩어리로 읽혀
   "숫자를 읽어 주는 문장"이라는 성격이 드러나지 않는다.                    */
.s-doc .doc-section .doc-note {
  margin-top: var(--s3);
  font-size: var(--fs-sm);
  line-height: 1.85;
  color: var(--ink-mute);
}

/* ── 카드 줄 · 표 감싸개 ─────────────────────────────────────────────────── */

/* 카드 여러 장을 한 줄에 놓는다. 화면이 좁아지면 접힌다.
   `.grid-2` 와 값이 같지만 이름을 따로 두는 것은 템플릿이 읽히기 위해서다. */
.card-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s4);
}
.card-row .card { display: flex; flex-direction: column; gap: var(--s3); }
.card-row .card h3 { font-size: var(--fs-base); }
.card-row .card ul { margin: 0; padding-left: 1.1em; font-size: var(--fs-sm); color: var(--ink-2); }
.card-row .card-lead { font-size: var(--fs-lg); font-weight: 700; letter-spacing: -.03em; }

/* 표는 좁은 화면에서 가로로만 스크롤시킨다 — 페이지 전체가 밀리면 안 된다. */
.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
}

/* ── 달걀 그림 (코스톨라니 p174) ─────────────────────────────────────────────
   라이브러리 없이 인라인 SVG 다. 색은 토큰으로만 참조하므로 다크 테마에서도
   따로 손댈 것이 없다. 타원 자체는 중립색이고, 지금 위치만 액센트로 띄운다 —
   --up/--down 을 쓰지 않는 것은 이 그림이 여섯 구간을 한꺼번에 보여 주기 때문이다
   (한 점에 오름세와 내림세가 섞여 있으면 빨강/파랑이 뜻을 잃는다).            */
.egg-figure {
  display: block;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  overflow: visible;
}

.egg-ring {
  fill: none;
  stroke: var(--line);
  stroke-width: 1.5;
}

.egg-peak, .egg-side {
  fill: var(--ink-mute);
  font-size: 12px;
  font-family: var(--font-sans);
}

/* 꼭대기·바닥에 적는 "구간이 바뀌는 원인". 위치 표시(--ink-mute)보다 한 단계 옅게
   둬서 무엇이 좌표이고 무엇이 설명인지 구분되게 한다. */
.egg-cause {
  fill: var(--accent);
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-sans);
}

.egg-arrow { fill: var(--ink-mute); }

.egg-dot {
  fill: var(--surface-3);
  stroke: var(--line);
  stroke-width: 1;
}
.egg-dot.is-here {
  fill: var(--accent);
  stroke: var(--surface);
  stroke-width: 2;
}

.egg-label {
  fill: var(--ink-mute);
  font-size: 11.5px;
  font-family: var(--font-sans);
}
.egg-label.is-here { fill: var(--ink); font-weight: 700; }

.egg-markets {
  fill: var(--accent);
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-sans);
}

/* 구간 코드(A1~B3). 그림과 아래 표를 잇는 열쇠라 지금 구간이 아니어도 읽혀야 한다 —
   그래서 흐리게 두지 않고 모노로만 구분한다(라틴 라벨이라 모노가 맞다). */
.egg-code {
  fill: var(--ink-mute);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
}

.egg-code.is-here { fill: var(--accent); }

/* ── 재고 순환 사분면 (반도체) ───────────────────────────────────────────────
   가로축 생산 증감 · 세로축 재고 증감. 달걀 그림과 같은 방식(인라인 SVG, 토큰 색)이다.
   --up/--down 을 쓰지 않는다 — 여기서 말하는 것은 주가 방향이 아니라 산업의 형편이다. */
.cycle-figure {
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  overflow: visible;
}

.cycle-axis { stroke: var(--line); stroke-width: 1.5; }

/* 지금 있는 칸. 점만으로는 "어느 칸인가" 가 읽히지 않아 바탕을 칠한다. */
.cycle-quad-box { fill: none; }
.cycle-quad-box.is-here { fill: var(--accent); opacity: .10; }

.cycle-quad {
  fill: var(--ink-mute);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-sans);
}

.cycle-axis-label {
  fill: var(--ink-mute);
  font-size: 11px;
  font-family: var(--font-sans);
}

.cycle-dot {
  fill: var(--accent);
  stroke: var(--surface);
  stroke-width: 2;
}

/* ── 13F 지도 (미국 큰손) ────────────────────────────────────────────────────
   가로축은 들고 있는 기관 수, 세로축은 늘린 곳 − 줄인 곳. 달걀·사분면과 같은 방식
   (인라인 SVG, 토큰 색)이고 --up/--down 을 쓰지 않는다 — 여기 위아래는 주가 방향이
   아니라 기관의 지분 변화다. 사분면 그림보다 넓은 것은 동그라미마다 종목 이름표가
   붙기 때문이다. */
.guru-map {
  display: block;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  overflow: visible;
}

.guru-axis { stroke: var(--line); stroke-width: 1.5; }

/* 늘린 곳과 줄인 곳이 같은 자리(0). 축이 아니라 기준선이라 점선으로 둔다. */
.guru-zero {
  stroke: var(--line);
  stroke-width: 1;
  stroke-dasharray: 3 3;
}

.guru-bubble {
  fill: var(--accent);
  fill-opacity: .18;
  stroke: var(--accent);
  stroke-width: 1.5;
}

/* 여러 곳이 함께 들고 있는 종목. 이 그림에서 눈이 먼저 가야 하는 자리다. */
.guru-bubble.is-shared { fill-opacity: .38; }

.guru-label {
  fill: var(--ink);
  font-size: 11px;
  font-family: var(--font-sans);
}

.guru-tick, .guru-axis-label {
  fill: var(--ink-mute);
  font-size: 11px;
  font-family: var(--font-sans);
}

/* ── 순위 슬로프 (직전 → 현재) ───────────────────────────────────────────────
   두 점을 잇는 그림이라 선 굵기·색이 곧 정보다. --up/--down 을 쓰지 않는다 —
   여기서 오르내리는 것은 주가가 아니라 **보유 금액 순위**다. */
.guru-slope {
  display: block;
  min-width: 620px;   /* 이보다 좁아지면 라벨이 겹친다. table-wrap 이 가로 스크롤을 준다. */
  width: 100%;
  overflow: visible;
}

.guru-link {
  stroke: var(--line);
  stroke-width: 1.5;
  fill: none;
}
.guru-link.up   { stroke: var(--accent); stroke-width: 2.2; }
.guru-link.down { stroke: var(--ink-mute); stroke-width: 2.2; }

.guru-node {
  fill: var(--surface);
  stroke: var(--line);
  stroke-width: 1.5;
}
.guru-node.up   { stroke: var(--accent); }
.guru-node.down { stroke: var(--ink-mute); }

.guru-rank {
  fill: var(--ink-mute);
  font-family: var(--font-mono);
  font-size: 10.5px;
}

/* ── 증감 막대 (가운데 0) ────────────────────────────────────────────────────
   표가 아니라 목록이다. 좁은 화면에서 칸이 밀리지 않도록 세 줄로 접힌다. */
.guru-changes { list-style: none; margin: 0; padding: 0; }

.guru-changes li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px minmax(0, 1fr);
  align-items: center;
  gap: var(--s3);
  padding: var(--s2) 0;
  border-bottom: 1px solid var(--line-soft);
}
.guru-changes li:last-child { border-bottom: 0; }

.guru-change-name { font-size: var(--fs-sm); text-align: right; overflow-wrap: anywhere; }

.guru-change-bar {
  position: relative;
  display: block;
  height: 16px;
  background: var(--surface-2);
  border-radius: 3px;
}
/* 가운데 0 선. 막대가 없는 종목도 기준선은 보여야 한다. */
.guru-change-bar::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -3px;
  bottom: -3px;
  width: 1px;
  background: var(--line);
}
.guru-change-bar i {
  position: absolute;
  top: 0;
  bottom: 0;
  display: block;
  border-radius: 2px;
}
.guru-change-bar i.grew   { left: 50%; background: var(--accent); }
.guru-change-bar i.shrank { right: 50%; background: var(--ink-mute); }

.guru-change-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s2);
  font-size: var(--fs-sm);
}

/* 공통 보유 표에서 기관 이름은 종목 아래 한 줄로 흘린다 — 쉼표로 이어 붙인 칸을
   따로 두면 그 칸 하나 때문에 표 전체가 좁은 화면에서 가로로 밀린다. */
.guru-holders {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--ink-mute);
  font-weight: 400;
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  .guru-changes li { grid-template-columns: 1fr; gap: 4px; }
  .guru-change-name { text-align: left; font-weight: 600; }
}

/* ── 작은 선그래프 ───────────────────────────────────────────────────────────
   `services/chart.py` 가 낸 좌표를 그린다. `preserveAspectRatio="none"` 으로 늘리므로
   선 굵기가 가로로 눌린다 — `vector-effect` 로 굵기를 고정한다. */
.spark {
  display: block;
  width: 100%;
  height: 60px;
  overflow: visible;
}

.spark-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

/* 구간마다 색이 다른 선. `<polyline>` 은 stroke 를 하나만 가지므로 점 사이마다
   `<line>` 을 따로 그린다(좌표는 `services/chart.py` 의 `segments`).
   오른 구간은 빨강, 내린 구간은 파랑 — 국내 관행 그대로다. */
.seg {
  stroke-width: 1.8;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke: var(--ink-mute);
}
.seg.up { stroke: var(--up); }
.seg.down { stroke: var(--down); }

/* 면적은 방향이 없으므로 중립 한 겹으로만 깐다 — 구간마다 칠하면 선이 안 읽힌다. */
.spark-area { stroke: none; fill: var(--ink-mute); opacity: .10; }

/* 값 자체의 방향을 글자색으로 — `.table td` 가 색을 지정하므로 셀 안의 span 에도
   먹도록 유틸로 둔다(`.table td.up` 은 셀 전체를 칠할 때 쓰는 기존 규칙이다). */
.up { color: var(--up); }
.down { color: var(--down); }

/* ── 1년 범위 게이지 (금융환경) ──────────────────────────────────────────────
   "지금 값이 최근 1년 사이 어디쯤인가"만 나타낸다. 가운데가 좋다는 뜻이 아니므로
   구간을 색으로 칠하지 않고 점 하나만 찍는다. */
.gauge {
  position: relative;
  display: block;
  height: 14px;
  min-width: 90px;
}

.gauge-band {
  position: absolute;
  inset-block: 3px auto;
  height: 8px;
  width: 100%;
  background: var(--surface-3);
  border-radius: var(--r-pill);
}

.gauge-dot {
  position: absolute;
  top: 0;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--surface);
}

.gauge-edge {
  display: block;
  margin-top: 2px;
  font-size: var(--fs-xs);
  color: var(--ink-mute);
}

/* 금융환경 표만 열 폭을 고정한다. 전역 `.table` 에 fixed 를 걸면 다른 화면의
   표까지 균등분할로 바뀐다 — 그래프 열이 있는 이 표에만 필요한 규칙이다. */
.cond-table {
  table-layout: fixed;
  min-width: 720px;
}

.cond-table col.c-name  { width: 24%; }
.cond-table col.c-gauge { width: 26%; }
.cond-table col.c-spark { width: 190px; }
.cond-table col.c-val   { width: 16%; }
.cond-table col.c-chg   { width: 16%; }

/* ⚠️ `width:100%` 인 SVG 를 auto 레이아웃 셀에 두면 그 열이 폭을 독점하고 한글 열이
   최소폭까지 눌린다. 폭을 명시해 순환 참조를 끊는다. */
.cond-table td.spark-cell { overflow: visible; }
.cond-table td.spark-cell svg { display: block; width: 174px; height: 34px; }

/* 한글은 어절 단위로만 끊는다 — 글자 하나씩 쌓이는 것을 막는다. */
.table th, .table td { word-break: keep-all; }

/* ── 시장 폭 막대 (달걀 국면) ────────────────────────────────────────────────
   오른 종목과 내린 종목의 비율. 여기서는 주가 방향이므로 --up/--down 을 쓴다. */
.breadth-bar {
  display: flex;
  height: 26px;
  border-radius: var(--r-sm);
  overflow: hidden;
}

.breadth-bar i { display: block; }

.b-up { background: var(--up); }
.b-flat { background: var(--line); }
.b-down { background: var(--down); }

.breadth-key {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s4);
  margin: var(--s2) 0 0;
  font-size: var(--fs-sm);
}

.kw {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 5px;
}

.kw-up { background: var(--up); }
.kw-flat { background: var(--line); }
.kw-down { background: var(--down); }

.spark-dot {
  fill: var(--accent);
  stroke: var(--surface);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

/* 기사 링크 목록 — 번호도 점도 없이 한 줄씩. */
.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li { padding: .45rem 0; border-bottom: 1px solid var(--line); position: relative; }
.link-list li:last-child { border-bottom: 0; }
.link-list a { font-weight: 500; }
/* 줄 전체가 링크다(UIUX.md Fitts). 제목 앵커를 줄에 펼쳐 덮으므로 뒤에 붙는
   언론사·날짜까지 누를 수 있고, `<a>` 안의 `<a>` 도 생기지 않는다.
   이 줄에 있는 것은 기사 제목과 출처·날짜뿐이다 — 요약문이 붙는 목록
   (`.s-editorial .ed-item`)에는 이 방식을 쓰지 않았다. 덮으면 그 문장을 끌어
   선택할 수 없고, 요약문은 누르러 온 것이 아니라 읽으러 온 것이다. */
.link-list li > a::after { content: ""; position: absolute; inset: 0; }

/* ── 여섯 구간 지도 ──────────────────────────────────────────────────────────
   달걀의 원형을 두 줄로 편 것이다. 윗줄이 오름세, 아랫줄이 내림세이고
   왼쪽부터 조용 → 늘어남 → 몰림이다.

   현재 칸에만 --up/--down 을 쓴다. 이 사이트에서 그 둘은 **주가 방향**을 뜻하는
   시맨틱 컬러이고(국내 관행상 빨강이 상승), 여기서 말하려는 것도 값의 방향이라
   뜻이 어긋나지 않는다. 좋고 나쁨의 표시가 아니다.                          */
/* ── /market/today/ — 종합 화면 ─────────────────────────────────────────────
   이 화면만 판정을 한다(apps/core/prose.py 의 VERDICT_EXEMPT_VIEWS). 판정의 세기는
   --warn 한 색의 3단계로만 나타낸다 — 빨강(--up)·파랑(--down)은 이 사이트에서
   주가 방향이라 판정에 쓰면 한 색이 두 뜻을 갖는다. */

.chip-state-flat  { background: var(--surface-3); color: var(--ink-2); }
.chip-state-watch { background: var(--warn-soft); color: var(--warn); }
.chip-state-high  { background: var(--warn); color: var(--ground); }

.today-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s3);
  padding: var(--s4);
  border: 1px solid var(--line);
  border-left: 4px solid var(--ink-mute);
  border-radius: var(--r);
  background: var(--surface);
}
.today-banner.is-watch,
.today-banner.is-high { border-left-color: var(--warn); background: var(--warn-soft); }
.today-verdict { font-size: var(--fs-md); font-weight: 600; color: var(--ink); }
.today-verdict-sub { flex-basis: 100%; font-size: var(--fs-sm); color: var(--ink-2); }

.today-map {
  display: block;
  width: 100%;
  max-width: 620px;
  height: auto;
  margin: 0 auto;
}
.today-quad { fill: var(--warn-soft); }
.today-axis { stroke: var(--ink-mute); stroke-width: 1.5; }
.today-median { stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 4 4; }
.today-trail {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  opacity: .5;
}
.today-start { fill: var(--ink-mute); }
.today-halo { fill: none; stroke: var(--warn); stroke-width: 1.5; opacity: .5; }
.today-dot { fill: var(--warn); }
.today-tick {
  font-family: var(--font-mono);
  font-size: 11px;
  fill: var(--ink-mute);
}
.today-tick.is-median { fill: var(--warn); font-weight: 600; }
/* 한글 라벨에는 모노를 쓰지 않는다 — IBM Plex Mono 에 한글 글리프가 없다. */
.today-axis-label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  fill: var(--ink-2);
}

.dist {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
}
.dist-axis { stroke: var(--line); stroke-width: 1; }
.dist-zero { stroke: var(--ink-mute); stroke-width: 1; stroke-dasharray: 3 3; }
.dist-whisker { stroke: var(--warn); stroke-width: 1; opacity: .55; }
.dist-box { fill: var(--warn-soft); stroke: var(--warn); stroke-width: 1; opacity: .9; }
.dist-median { stroke: var(--warn); stroke-width: 3; }
.dist-tick { font-family: var(--font-mono); font-size: 10.5px; fill: var(--ink-mute); }
.dist-median-label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  fill: var(--warn);
}

/* ── 추천 문구 (2026-09-28 전 메뉴 개편) ───────────────────────────────────
   이 사이트에는 색이 이미 두 벌 쓰인다. 셋째를 얹으므로 뜻이 겹치지 않아야 한다:
     · --up/--down (빨강/파랑) = **주가 방향**. 국내 관행이고 좋고 나쁨이 아니다.
     · --warn (주황) 3단계     = **경고·과열**. /market/today/ 의 상태 배너가 쓴다.
     · --accent (보라) 3단계   = **추천 강도**. 여기서 새로 쓰는 것.
   빨강을 "매수" 에 쓰면 한 색이 상승과 매수 두 뜻을 갖는다 — 오른 종목과 사라는
   종목이 같은 색이 되어 표를 읽을 수 없다. 그래서 accent 를 쓴다(새 색을 들이지
   않는 이유이기도 하다 — 링크·강조에 이미 쓰는 색이다).
   ⚠️ 하드코딩한 hex 를 넣지 말 것. 전부 토큰 참조다. */

.rec {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.6;
  border: 1px solid transparent;
  white-space: nowrap;
}
.rec-strong { background: var(--accent-ink); color: var(--on-accent); border-color: var(--accent-ink); }
.rec-mild   { background: var(--accent-soft); color: var(--accent-ink); border-color: var(--accent-soft); }
.rec-hold   { background: transparent; color: var(--ink-mute); border-color: var(--line); }

/* 추천 문구 블록 — 판정하는 화면이 머리에 하나씩 놓는다. */
.rec-lead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s3);
  padding: var(--s4);
  border-radius: var(--r);
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-left: 4px solid var(--accent-ink);
}
.rec-lead .say {
  margin: 0;
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.01em;
}
/* 근거는 항상 문구와 함께 나간다 — 문구만 있고 근거가 없으면 화면이 점괘가 된다. */
.rec-lead .why { flex-basis: 100%; margin: 0; font-size: var(--fs-sm); color: var(--ink-2); }

/* 목록에서 종목마다 의견을 다는 자리(스크리너). */
.rec-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s3);
  align-items: center;
  padding-block: var(--s3);
  border-bottom: 1px solid var(--line-soft);
}
.rec-row:last-child { border-bottom: 0; }
.rec-row .name { font-weight: 500; }
.rec-row .why { grid-column: 1 / -1; margin: 0; font-size: var(--fs-xs); color: var(--ink-mute); }

.phase-map { display: grid; gap: var(--s1); }

.phase-map-row {
  display: grid;
  grid-template-columns: 52px repeat(3, 1fr);
  gap: var(--s1);
  align-items: center;
}

.phase-map-label {
  font-size: var(--fs-xs);
  color: var(--ink-mute);
}

.phase-map-cell {
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--ink-mute);
  background: var(--surface-2);
  border-radius: var(--r-sm);
  padding: 5px var(--s1);
}

.phase-map-row:first-child .phase-map-cell.is-current {
  background: var(--up-soft);
  color: var(--up);
  font-weight: 700;
}
.phase-map-row:last-child .phase-map-cell.is-current {
  background: var(--down-soft);
  color: var(--down);
  font-weight: 700;
}

/* ── 용어 매거진(`/market/learn/`) · 눈덩이·눈사태(`/market/snowball/`) ── 2026-10-11 ──
   새 색은 없다 — 전부 기존 토큰이다(대비 실측은 토큰 정의 쪽 주석에 있다).
   강조색은 화면당 한 번(UIUX.md Von Restorff): 매거진은 쓰지 않고, 계산 화면은
   '계산하기' 버튼 하나에만 쓴다. 그래서 그림의 선·막대는 잉크 계열이다. */
.mag-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--s4);
}
.s-story .mag-card { gap: var(--s2); }
.mag-mark { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--ink-mute); }
.mag-article { max-width: 720px; }
.mag-body p { color: var(--ink-2); line-height: 1.75; }
.mag-body p strong { color: var(--ink); font-weight: 600; }
.mag-points { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: var(--s2); color: var(--ink-2); }

.mag-figure {
  margin: 0; padding: var(--s4);
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  display: flex; flex-direction: column; gap: var(--s3);
}
.mag-formula {
  margin: 0; padding: var(--s3) var(--s4); text-align: center;
  background: var(--surface-2); border-radius: var(--r);
  font-size: var(--fs-md); font-weight: 700; color: var(--ink); line-height: 1.5; word-break: keep-all;
}
.mag-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s3); }
.mag-bars li { display: grid; grid-template-columns: minmax(80px, 30%) 1fr auto; gap: var(--s3); align-items: center; font-size: var(--fs-sm); }
.mag-bars-track { height: 12px; background: var(--surface-2); border-radius: var(--r-pill); overflow: hidden; }
.mag-bars-fill { display: block; height: 100%; background: var(--ink-2); border-radius: var(--r-pill); }
/* 마이너스는 무늬로 가른다 — 빨강·파랑은 이 사이트에서 주가 방향이라 쓰지 않는다. */
.mag-bars-fill.neg { background: repeating-linear-gradient(45deg, var(--ink-mute) 0 4px, transparent 4px 8px); }
.mag-line { display: block; width: 100%; height: 140px; overflow: visible; }
.mag-line .spark-line { stroke: var(--ink); stroke-width: 2; }
.mag-line-axis { display: flex; justify-content: space-between; gap: var(--s3); margin: 0; }
/* 지수 사 모으기 표 — 방법 이름이 길어(“다달이 같은 금액(적립식)”) nowrap 이면 360px 에서 넘친다(2026-10-14 실측 396px). */
.plan-table tbody th { white-space: normal; }
/* 캔들만은 빨강·파랑을 쓴다 — 여기서는 실제로 가격 방향(양봉·음봉)이기 때문이다. */
.mag-candle { display: block; width: 100%; height: auto; max-height: 220px; }
.mag-candle .wick { stroke-width: 2; }
.mag-candle .is-up .wick { stroke: var(--up); }
.mag-candle .is-up .body { fill: var(--up); }
.mag-candle .is-down .wick { stroke: var(--down); }
.mag-candle .is-down .body { fill: var(--down); }
.mag-candle text { font-size: 10px; fill: var(--ink-2); }
.mag-chain { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; counter-reset: step; }
.mag-chain li {
  counter-increment: step;
  padding: var(--s2) var(--s3); border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface-2); font-size: var(--fs-sm); color: var(--ink);
}
.mag-chain li::before { content: counter(step) ". "; color: var(--ink-mute); font-family: var(--font-mono); }
.mag-chain li:not(:last-child)::after { content: " →"; color: var(--ink-mute); }
.mag-compare { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.mag-compare > div { padding: var(--s3); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); }
.mag-compare h3 { font-size: var(--fs-md); font-weight: 600; margin-bottom: var(--s2); }
.mag-compare ul { margin: 0; padding-left: 1.1em; display: flex; flex-direction: column; gap: var(--s1); font-size: var(--fs-sm); color: var(--ink-2); }
@media (max-width: 520px) { .mag-compare { grid-template-columns: 1fr; } }
.mag-pager { display: flex; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; }
.mag-pager a { display: inline-flex; align-items: center; min-height: 44px; }

.snow-concept { margin-top: var(--s4); }
.snow-form { display: flex; flex-direction: column; gap: var(--s4); }
.snow-row {
  margin: 0; padding: var(--s3); border: 1px solid var(--line-soft); border-radius: var(--r);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3);
}
.snow-row legend { font-size: var(--fs-sm); font-weight: 600; padding: 0 var(--s1); }
.snow-row input, .snow-budget input { width: 100%; min-height: 44px; }
.snow-budget { max-width: 360px; }
@media (max-width: 640px) {
  .snow-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .snow-submit { width: 100%; }   /* 폰에서 주 버튼은 폭을 채운다(UIUX.md Fitts) */
}
.snow-submit { min-height: 44px; align-self: flex-start; }
.snow-alert {
  margin: 0; padding: var(--s3) var(--s4); border-radius: var(--r);
  background: var(--warn-soft); color: var(--ink); border: 1px solid var(--warn);
}
.snow-alert ul { margin: 0; padding-left: 1.1em; }
.snow-say { font-size: var(--fs-md); color: var(--ink); line-height: 1.7; }
.snow-results { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
@media (max-width: 640px) { .snow-results { grid-template-columns: 1fr; } }
.snow-order { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: var(--s2); }
.snow-order li > span:first-child { margin-right: var(--s2); }
.snow-chart { display: block; width: 100%; height: 160px; overflow: visible; }
.snow-line { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; }
.snow-line.avalanche { stroke: var(--ink); }
.snow-line.snowball { stroke: var(--ink-mute); stroke-dasharray: 5 4; }
/* ── 투자 명언 카드(/market/quotes/, 2026-10-14) ─────────────────────────────────────
   카드 줄은 자바스크립트 없는 가로 스크롤 + scroll-snap 이다(SPA 금지 · 화면 안 탭은 링크).
   줄 자체에 tabindex 를 줘 키보드로 ← → 를 쓸 수 있고, 포커스 링을 따로 단다. */
.quote-people { display: flex; flex-wrap: wrap; gap: var(--s2); }
.quote-person {
  display: inline-flex; align-items: center; gap: var(--s2);
  min-height: 44px; padding: var(--s1) var(--s3) var(--s1) var(--s1);
  border: 1px solid var(--line); border-radius: var(--r-pill);
  background: var(--surface); color: var(--ink-2); text-decoration: none; font-size: var(--fs-sm);
}
.quote-person:hover { border-color: var(--ink-mute); color: var(--ink); }
.quote-person.is-current { border-color: var(--ink); color: var(--ink); font-weight: 600; }
.quote-person .qa { width: 32px; height: 32px; }
.quote-person-all {
  width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center;
  background: var(--surface-2); font-family: var(--font-mono); font-size: var(--fs-xs);
}
.quote-person-head { display: flex; align-items: center; gap: var(--s3); }
.quote-person-head .qa { width: 56px; height: 56px; }

.quote-deck { overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding: var(--s1) 0 var(--s3); }
.quote-deck:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r); }
@media (prefers-reduced-motion: no-preference) { .quote-deck { scroll-behavior: smooth; } }
.quote-track { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--s4); }
.quote-card {
  flex: 0 0 min(88%, 380px); scroll-snap-align: start;
  display: flex; flex-direction: column; gap: var(--s3);
  padding: var(--s5); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1);
}
.quote-who { display: flex; align-items: center; gap: var(--s3); }
.quote-name { display: flex; flex-direction: column; line-height: 1.2; }
.quote-name a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--ink); text-decoration: none; }
.quote-no { margin-left: auto; align-self: flex-start; }
.quote-ko { margin: 0; font-family: var(--font-serif); font-size: var(--fs-lg); line-height: 1.6; color: var(--ink); word-break: keep-all; }
.quote-ko p { margin: 0; }
.quote-en { margin: 0; color: var(--ink-mute); font-size: var(--fs-sm); line-height: 1.55; font-style: italic; }
.quote-src { margin: auto 0 0; }

/* 인물 배지 — 색은 인물마다 hue 하나(--qa-h, services/quotes.py)이고 명도·채도는 여기서 정한다.
   이니셜(배지 위 글자) 대비는 hue 11개 전부 7:1 이상 — 밝은 테마 최저 7.06:1(hue 95),
   어두운 테마 최저 7.54:1(hue 250), WCAG 상대휘도로 2026-10-14 계산. 배지는 aria-label 로 이름을 낸다. */
.qa { width: 48px; height: 48px; flex: none; }
.qa-photo { border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.qa-bg { fill: hsl(var(--qa-h) 45% 88%); }
.qa-fig { fill: hsl(var(--qa-h) 30% 66%); }
.qa-badge { fill: hsl(var(--qa-h) 55% 24%); }
.qa-txt { fill: hsl(var(--qa-h) 60% 96%); font: 700 8.5px/1 var(--font-mono); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .qa-bg { fill: hsl(var(--qa-h) 25% 24%); }
  :root:not([data-theme="light"]) .qa-fig { fill: hsl(var(--qa-h) 20% 42%); }
  :root:not([data-theme="light"]) .qa-badge { fill: hsl(var(--qa-h) 50% 74%); }
  :root:not([data-theme="light"]) .qa-txt { fill: hsl(var(--qa-h) 45% 10%); }
}
:root[data-theme="dark"] .qa-bg { fill: hsl(var(--qa-h) 25% 24%); }
:root[data-theme="dark"] .qa-fig { fill: hsl(var(--qa-h) 20% 42%); }
:root[data-theme="dark"] .qa-badge { fill: hsl(var(--qa-h) 50% 74%); }
:root[data-theme="dark"] .qa-txt { fill: hsl(var(--qa-h) 45% 10%); }

/* 쿠팡 파트너스 칸(coupang.py) — 이 사이트 토큰만 쓴다. */
.cpn { margin: 24px 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.cpn__h { margin: 0; font-size: 16px; font-weight: 700; color: var(--ink); }
.cpn__d { margin: 4px 0 8px; font-size: 12px; color: var(--ink-mute); }
.cpn__l { list-style: none; margin: 0; padding: 0; }
.cpn__l li + li { border-top: 1px solid var(--line); }
.cpn__i { position: relative; display: flex; gap: 12px; align-items: center; min-height: 44px; padding: 12px 0; }
.cpn__img { flex: none; width: 72px; height: 72px; object-fit: contain; border-radius: 8px; background: #fff; }
.cpn__t { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cpn__a { color: var(--ink); font-weight: 700; line-height: 1.4; text-decoration: none; overflow-wrap: anywhere; }
.cpn__a::after { content: ""; position: absolute; inset: 0; }
.cpn__a:focus-visible { outline: none; }
.cpn__a:focus-visible::after { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.cpn__i:hover .cpn__a { text-decoration: underline; }
.cpn__n { margin: 0; color: var(--ink-mute); font-size: 14px; line-height: 1.5; }
.cpn__go { color: var(--accent); font-size: 14px; font-weight: 700; }
.cpn--top { margin: 12px 0 16px; padding: 8px 12px; }
.cpn--top .cpn__h { font-size: 14px; }
.cpn--top .cpn__i { padding: 4px 0; }
.cpn--top .cpn__img { width: 48px; height: 48px; }
.cpn--top .cpn__n { display: none; }
