/* report.css */
/* 주간 시세 리포트(2026-11-16). docs.css 위에 얹고, 색은 tokens.css 변수만(밝게·어둡게).
   같은 날 사용자 "글이 너무 많아서 보기 힘들다" → 숫자 카드·한 줄 행·접기. 접은 내용도 HTML에 남아 검색에 잡힌다. */
.up{color:var(--up)}
.down{color:var(--down)}
.report-empty{color:var(--muted)}
.doc-article h2[id]{scroll-margin-top:16px}

/* 맨 위 요약: 숫자 카드 + 한 줄 */
.report-summary{margin:0 0 8px;padding:14px;border-radius:16px;background:var(--accent-soft)}
.report-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0}
.report-stat{display:grid;align-content:start;gap:2px;min-width:0;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.report-stat dt{font-size:12px;font-weight:700;color:var(--muted)}
.report-stat dd{margin:0}
.report-stat-value{font-size:22px;font-weight:800;line-height:1.3;letter-spacing:-.02em}
.report-stat-sub{font-size:13px;line-height:1.45;color:var(--text);overflow-wrap:anywhere}
.doc-article .report-headline{margin:12px 4px 0;font-size:15px;font-weight:700}
.report-more{margin:4px 4px 0}
.report-more p{margin:6px 0;font-size:14px}

/* 접기 공통(누르는 곳 44px 이상) */
.report-fold>summary,.report-groups summary,.report-method>summary{cursor:pointer;list-style:none}
.report-fold>summary::-webkit-details-marker,.report-groups summary::-webkit-details-marker,.report-method>summary::-webkit-details-marker{display:none}
.report-fold>summary{display:inline-flex;align-items:center;gap:6px;min-height:44px;font-size:14px;font-weight:700;color:var(--accent)}
.report-fold>summary::after,.report-groups summary::after,.report-method>summary::after{content:'';width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translateY(-2px);transition:transform .15s}
.report-fold[open]>summary::after,.report-groups details[open] summary::after,.report-method[open]>summary::after{transform:rotate(-135deg) translateY(-2px)}
.report-fold[open]>summary{font-size:0;gap:0}
.report-fold[open]>summary::before{content:'접기';font-size:14px;margin-right:6px}

/* 섹션 바로가기 */
.report-jump{display:flex;flex-wrap:wrap;gap:6px;margin:18px 0 0}
.report-jump a{display:inline-flex;align-items:center;min-height:40px;padding:0 12px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--text);font-size:14px;font-weight:700;text-decoration:none}
.report-jump a:hover{border-color:var(--accent);color:var(--accent)}

/* 가격대 표 */
.report-bands td,.report-bands th[scope=row]{white-space:nowrap}
.report-bar{display:inline-block;width:120px;height:10px;margin-right:10px;border-radius:5px;background:var(--elevated);vertical-align:middle;overflow:hidden}
.report-bar i{display:block;height:100%;border-radius:5px;background:currentColor}

/* 급등·급락: 한 줄 행 */
.doc-article .report-rows{list-style:none;margin:8px 0 0;padding:0;border:1px solid var(--line);border-radius:14px;overflow:hidden}
.doc-article .report-fold .report-rows{margin-top:0}
.doc-article .report-row{display:grid;grid-template-columns:22px 40px minmax(0,1fr) auto;align-items:center;gap:10px;margin:0;padding:8px 12px;border-top:1px solid var(--line);background:var(--surface)}
.report-row:first-child{border-top:0}
.report-rank{font-weight:800;color:var(--muted);text-align:center;font-size:14px}
.report-photo{width:40px;height:40px;object-fit:contain;border-radius:8px;background:var(--elevated)}
.report-name{display:grid;min-width:0;line-height:1.35}
.report-name strong{font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.report-name small,.report-price small{display:flex;align-items:center;gap:4px;font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden}
.report-price{display:grid;justify-items:end;text-align:right;line-height:1.35}
.report-price b{font-size:16px;font-weight:800}

/* 시즌·특성: 한 줄, 누르면 대표 카드 */
.report-split{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.report-split h3{margin-top:8px}
.doc-article .report-groups{list-style:none;margin:0;padding:0;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.doc-article .report-groups li{margin:0;border-top:1px solid var(--line)}
.report-groups li:first-child{border-top:0}
.report-group-head{display:flex;align-items:center;gap:8px;min-height:44px;padding:6px 12px}
.report-group-name{display:flex;align-items:center;gap:6px;flex:1;min-width:0;font-weight:800}
.report-group-name span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.report-group-head small{font-size:12px;color:var(--muted);white-space:nowrap}
.report-group-head strong{min-width:64px;text-align:right;white-space:nowrap}
.report-groups summary::after{flex:none;color:var(--muted)}
.doc-article .report-chips{display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:0 12px 12px}
.report-chips-label{width:100%;font-size:12px;font-weight:700;color:var(--muted)}
.report-chip{display:inline-flex;gap:4px;align-items:baseline;padding:3px 10px;border-radius:999px;background:var(--elevated);font-size:13px}
.doc-article .report-hint{margin:8px 0 0;font-size:13px;color:var(--muted)}

/* 계산 방법(기본 접힘) */
.report-method{margin-top:28px;border-top:1px solid var(--line)}
.report-method>summary{display:flex;align-items:center;justify-content:space-between;min-height:48px;color:var(--text)}
.doc-article .report-method>summary h2{margin:0;font-size:17px}
.report-method ul{margin-top:4px}
.doc-article .report-method li{font-size:14px}

.report-pager{display:flex;justify-content:space-between;gap:12px;margin-top:20px;flex-wrap:wrap}
.report-pager a,.report-cta a{display:inline-flex;align-items:center;min-height:44px;font-weight:700;text-decoration:none}

/* 리포트 목록 */
.doc-article .report-index{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.report-index li{padding:14px 16px;border:1px solid var(--line);border-radius:14px}
.report-index a{display:flex;gap:10px;align-items:baseline;flex-wrap:wrap;min-height:32px;text-decoration:none}
.report-index a span{color:var(--muted);font-size:13px}
.report-index p{margin:4px 0 0;font-size:14px;color:var(--muted)}

@media (max-width:760px){
  .report-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:560px){
  .report-summary{padding:10px}
  .report-stat{padding:10px 12px}
  .report-stat-value{font-size:20px}
  .report-split{grid-template-columns:1fr;gap:4px}
  .doc-article .report-row{grid-template-columns:18px 36px minmax(0,1fr) auto;gap:8px;padding:8px 10px}
  .report-photo{width:36px;height:36px}
  .report-price b{font-size:15px}
  .report-jump a{padding:0 11px}
  .report-bar{width:44px;margin-right:6px}
  .report-bands th,.report-bands td{padding:8px}
}

/* tokens.css */
/* 모든 화면의 색·글자·간격 기준. 선수 카드 원본 이미지의 색은 보존합니다. */
:root {
  --shop-ink: #111111;
  --shop-gold: #92400E;
  --shop-gold-soft: #FFF4DF;
  --shop-gold-line: #E5C79F;
  /* 본문 1200px + 양옆 여백. 2026-11-11 사용자: 애드센스 양옆 날개(160px) 자리를 위해 가로를 줄임 */
  --layout-max: 1248px;
  --layout-gutter: 24px;
  --shop-art-width: 80px;
  --shop-art-height: 108px;
  --shop-name-size: 19px;
  --shop-value-size: 19px;
  --shop-row-height: 136px;
  color-scheme: light;
  --bg: #F6F8F5;
  --surface: #FFFFFF;
  --elevated: #EEF2EE;
  --line: #E3E8E2;
  --input-line: #D5DDD6;
  --text: #14211A;
  --muted: #4A5A50;
  --subtle: #5B6B61;
  --accent: #1E7A46;
  --accent-dark: #145C33;
  --accent-soft: #E6F4EA;
  --on-accent: #FFFFFF;
  --up: #C9302C;
  --up-soft: #FDECEB;
  --down: #1F5FD1;
  --down-soft: #E8EFFC;
  --warning: #8A5A00;
  --warning-soft: #FFF4E0;
  --error: #C9302C;
  --grade: #4A3A8C;
  --grade-soft: #EEEAF8;
  --scrim: #14211A66;
  --shadow-ink: #14211A0F;
  --card-ink: #FFFFFF;
  --card-shade: #14211A;
  --game-edge: #79888a;
  --game-fallback-dark: #09242c;
  --game-fallback-mid: #215b62;
  --game-fallback-light: #538c84;
  --game-fallback-ink-shadow: #06151c;
  --game-fallback-gloss: #ffffff2a;
  --game-fallback-shine: #91c8b926;
  --game-fallback-edge: #aaccc3;
  --game-fallback-shadow: #14211a33;
  --game-light: #eef3f0;
  --game-mid: #dce6e1;
  --game-end: #fafcfb;
  --game-inset: #ffffffa8;
  --game-plate: #ffffffeb;
  --game-silver-edge: #7f8a91;
  --game-silver: #e2e7ed;
  --game-gold-edge: #9e7d34;
  --game-gold: #faf0ce;
  --game-platinum-edge: #5274c0;
  --game-platinum: #dce5f6;
  --game-bronze-ink: #c5c8c9;
  --game-bronze: #51545a;
  --game-silver-ink: #4e545e;
  --game-silver-badge: #d8d9dc;
  --game-gold-ink: #695100;
  --game-gold-badge: #f9dd62;
  --game-platinum-ink: #2d2b43;
  --game-season-26tots: #f8e9b3;
  --game-season-ptg: #fcfcf7;
  --game-season-26up: #372519;
  --game-season-uc: #ffffff;
  --game-season-25ucl: #ffffff;
  --game-season-ws: #fffade;
  --game-season-wg: #ffefb1;
  --game-season-spt: #ffffcc;
  --game-season-fac: #c1ffff;
  --game-season-ch: #ffffff;
  --red: var(--up);
  --yellow: var(--warning);
  --font: 'Noto Sans KR', 'Malgun Gothic', system-ui, sans-serif;
  --type-title: 32px;
  --type-section: 20px;
  --type-body: 16px;
  --type-label: 14px;
  --type-small: 13px;
  --type-number: clamp(28px, 3vw, 42px);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --control-height: 46px;
  --shadow: 0 1px 2px #14211A0F;
  /* 카드 진열 디자인(2026-11-11 적용): 홈 머리 판과 그 위 글자 */
  --hero: #10261D;
  --hero-text: #FFFFFF;
  --hero-muted: #C6D8CE;
  --hero-input: #FFFFFFF5;
  --hero-input-text: #101828;
  --hero-up: #FF8C84;
  --hero-down: #8FB6FF;
  --lift-shadow: #10182829;
  --shine: #FFFFFF61;
  font-family: var(--font);
  font-size: var(--type-body);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg:#0F1216; --surface:#171B21; --elevated:#202630;
  --line:#35404D; --input-line:#566373;
  --text:#E6E8EB; --muted:#BBC4CF; --subtle:#A6B2C1;
  --accent:#80D5A4; --accent-dark:#A4E8BF; --accent-soft:#223C34;
  --on-accent:#102219;
  --up:#FF9290; --up-soft:#402528; --down:#91B8FF; --down-soft:#20324D;
  --warning:#F6CB78; --warning-soft:#3C3020; --error:#FF9290;
  --grade:#C6B8FF; --grade-soft:#302B46;
  --shop-ink:#F4F5F7; --shop-gold:#FFD18B; --shop-gold-soft:#3D2D1C; --shop-gold-line:#8E6533;
  --scrim:#00000099; --shadow-ink:#00000033; --shadow:0 1px 2px var(--shadow-ink);
  --hero:#16301F; --hero-muted:#B9D3C4; --lift-shadow:#00000080;
}
@media (max-width: 760px) {
  :root { --type-body: 15px; --type-section: 19px; --space-7: 32px; }
}

/* brand.css */
.header .brand{display:flex;align-items:center;flex:none;line-height:1}
.shop-live-subtitle{display:block;color:var(--muted);font-size:13px;margin-top:6px}
.pack-roster-note{display:block;color:var(--muted);font-size:13px;line-height:1.5;margin-top:6px;overflow-wrap:anywhere}
.trend-interactive{position:relative;min-width:0}
.trend-interactive .trend-plot{touch-action:pan-y;cursor:crosshair}
.chart-cursor{pointer-events:none}
.chart-cursor line{stroke:var(--muted);stroke-dasharray:4 4}
.chart-cursor circle{fill:var(--accent);stroke:var(--surface);stroke-width:2}
.chart-tooltip{position:absolute;z-index:3;pointer-events:none;display:grid;gap:4px;max-width:100%;padding:9px 12px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface);color:var(--text);font-size:13px;box-shadow:var(--shadow)}
.chart-tooltip strong{font-size:15px}
.skip-link:not(:focus-visible){transform:translateY(-200%);pointer-events:none}
.skip-link:focus-visible{transform:none;top:10px;pointer-events:auto}
.header .brand-logo{display:block;width:133px;height:40px;object-fit:contain}
.brand-logo{stroke:none;stroke-width:0;fill:none}
.brand-wordmark{fill:var(--text)}.brand-wordmark-accent{fill:var(--accent)}
.chart-footer{display:flex;align-items:flex-start;gap:24px;padding-top:28px;padding-bottom:28px}
.chart-footer .footer-notice{display:grid;gap:6px;min-width:0;text-align:left}
.chart-footer .footer-notice p{margin:0;color:var(--muted);font-size:13px;line-height:1.7;word-break:keep-all;overflow-wrap:anywhere}
.chart-footer .footer-notice a{color:inherit;text-decoration:underline}
@media(max-width:760px){.header .brand-logo{width:120px;height:36px}.chart-footer{flex-direction:column;gap:12px}}

/* docs.css */
/* 안내 글 페이지(사이트 소개·개인정보처리방침·이용 안내). 색은 tokens.css 변수만, 밝게·어둡게 모두. */
*{box-sizing:border-box}
body.doc-body{margin:0;background:var(--bg);color:var(--text);font-family:var(--font);line-height:1.75;word-break:keep-all;overflow-wrap:anywhere}
a{color:var(--accent)}
.skip-link{position:fixed;top:10px;left:16px;z-index:10;padding:10px 16px;background:var(--accent);color:var(--on-accent)}
.skip-link:not(:focus){width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.doc-header{border-bottom:1px solid var(--line);background:var(--surface)}
.doc-header-inner{max-width:var(--layout-max);margin:auto;padding:10px var(--layout-gutter);display:flex;align-items:center;gap:28px;flex-wrap:wrap;min-height:68px}
.doc-brand{display:flex;align-items:center;min-height:44px}
.doc-top-nav{display:flex;gap:6px 22px;flex-wrap:wrap}
.doc-top-nav a{display:inline-flex;align-items:center;min-height:44px;color:var(--muted);font-weight:700;text-decoration:none}
.doc-top-nav a:hover{color:var(--accent)}
.doc-layout{max-width:var(--layout-max);margin:auto;padding:28px var(--layout-gutter) 56px;display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:40px;align-items:start}
.doc-main{min-width:0}
.doc-crumb{margin:0 0 12px;font-size:13px;color:var(--muted)}
.doc-crumb a{color:inherit}
.doc-article{max-width:760px;padding:36px 40px;border:1px solid var(--line);border-radius:20px;background:var(--surface)}
.doc-article h1{margin:0 0 10px;font-size:30px;line-height:1.3;letter-spacing:-.03em}
.doc-lead{margin:0 0 24px;color:var(--muted);font-size:16px}
.doc-meta{margin:0 0 16px;font-size:13px;color:var(--muted)}
.doc-article h2{margin:32px 0 10px;font-size:20px;line-height:1.4}
.doc-article h3{margin:20px 0 6px;font-size:16px}
.doc-article p,.doc-article li{font-size:15px}
.doc-article ul,.doc-article ol{padding-left:22px}
.doc-article li{margin:5px 0}
.doc-article code{padding:1px 6px;border-radius:6px;background:var(--elevated);font-size:14px}
.doc-note{margin:18px 0;padding:14px 18px;border-left:4px solid var(--accent);border-radius:10px;background:var(--accent-soft);font-size:14px}
.doc-note strong{display:block;margin-bottom:2px}
.doc-table{width:100%;border-collapse:collapse;margin:12px 0;font-size:14px}
.doc-table th,.doc-table td{padding:10px 12px;border:1px solid var(--line);text-align:left;vertical-align:top}
.doc-table th{background:var(--elevated)}
.board-rules{padding:0}
.board-rules h3{font-size:17px;margin-top:24px}
.doc-side{position:sticky;top:20px;padding:20px;border:1px solid var(--line);border-radius:18px;background:var(--surface)}
.doc-side h2{margin:0 0 8px;font-size:15px}
.doc-side ul{list-style:none;margin:0 0 12px;padding:0}
.doc-side li a{display:flex;align-items:center;min-height:40px;color:var(--text);text-decoration:none;font-size:14px;border-bottom:1px solid var(--line)}
.doc-side li a[aria-current=page]{color:var(--accent);font-weight:800}
.doc-side-cta{display:inline-flex;align-items:center;min-height:44px;font-weight:700;text-decoration:none}
.footer{max-width:var(--layout-max);margin:auto;padding:24px var(--layout-gutter) 40px;border-top:1px solid var(--line);display:grid;gap:10px}
.footer-brand{font-weight:900;color:var(--text);text-decoration:none}
.footer-notice{display:grid;gap:6px}
.footer-notice p{margin:0;color:var(--muted);font-size:13px;line-height:1.7}
.footer-notice a{color:inherit}
.footer-links{display:flex;flex-wrap:wrap;gap:0 16px}
.footer-links a{display:inline-flex;align-items:center;min-height:40px;font-size:13px;color:var(--muted)}
@media (max-width:900px){
  .doc-layout{grid-template-columns:1fr;gap:24px;padding-top:16px}
  .doc-side{position:static}
}
@media (max-width:560px){
  .doc-article{padding:22px 18px;border-radius:16px}
  .doc-article h1{font-size:24px}
  .doc-table{display:block;overflow-x:auto}
  .doc-header-inner{gap:4px 16px;padding-inline:16px}
  .doc-layout{padding-inline:12px}
}
