:root {
  color-scheme: light;
  --ink: #111111;
  --muted: #6d6d68;
  --paper: #f4f2eb;
  --card: #fffef9;
  --line: #d7d3c8;
  --red: #e7342a;
  --red-dark: #aa201b;
  --blue: #1d56c8;
  --green: #117a55;
  --shadow: 0 24px 70px rgba(32, 28, 18, 0.09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif; }
button, a { font: inherit; }
a { color: inherit; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .75rem 1rem; background: var(--ink); color: white; }
.skip-link:focus { top: 1rem; }

.site-header { height: 52px; max-width: 1680px; margin: auto; padding: 0 2vw; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(17,17,17,.16); }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; letter-spacing: -.035em; font-size: 1.05rem; font-weight: 750; }
.brand b { color: var(--red); }
.brand-mark { width: 31px; height: 31px; display: grid; place-items: center; color: white; background: var(--ink); font-family: Georgia, serif; font-weight: 700; }

main { overflow: hidden; }
.hero { max-width: 1300px; margin: auto; padding: 1rem 2vw .9rem; position: relative; display: grid; grid-template-columns: minmax(420px, 1.15fr) minmax(320px, .85fr); align-items: end; gap: 3rem; }
.hero::before { content: "NOW"; position: absolute; right: 0; top: -1.5rem; color: rgba(255,255,255,.68); font: 900 clamp(7rem, 14vw, 12rem)/1 Arial, sans-serif; letter-spacing: -.09em; z-index: -1; }
.eyebrow { margin: 0 0 .55rem; color: var(--red); font-size: .62rem; font-weight: 850; letter-spacing: .16em; }
.hero h1 { margin: 0; font-size: clamp(2.8rem, 5.3vw, 5.3rem); line-height: .92; letter-spacing: -.075em; font-weight: 850; white-space: nowrap; }
.period { color: var(--red); }
.hero-context { position: relative; z-index: 1; }
.metric-legend { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem 1rem; color: var(--muted); font-size: .66rem; }
.metric-legend span { display: flex; align-items: center; gap: .45rem; }
.legend-line { width: 22px; height: 7px; border-top: 2px solid var(--red); transform: skewY(-14deg); }
.legend-block { width: 19px; height: 7px; background: var(--ink); }
.info-button { padding: .35rem .65rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.55); cursor: pointer; font-size: .72rem; }
.editorial-standard { margin-top: .6rem; padding: .55rem .7rem .6rem; color: white; background: var(--ink); }
.editorial-standard > span { display: block; margin-bottom: .35rem; color: var(--red); font: 850 .46rem/1 Arial, sans-serif; letter-spacing: .12em; }
.criteria-list { display: grid; gap: .24rem; }
.criteria-list > div { display: grid; grid-template-columns: 108px minmax(0, 1fr); align-items: baseline; gap: .5rem; }
.criteria-list strong { font-size: .58rem; font-weight: 760; white-space: nowrap; }
.criteria-list p { margin: 0; color: #c9c7c0; font-size: .53rem; line-height: 1.35; }
.metric-note { position: absolute; right: 0; z-index: 5; width: min(440px, 90vw); margin: .6rem 0 0; padding: .65rem .8rem; border: 1px solid var(--line); border-left: 3px solid var(--red); background: var(--card); color: var(--muted); box-shadow: var(--shadow); font-size: .7rem; line-height: 1.55; }

.page-grid { width: min(1440px, 100%); margin: 0 auto; padding: 0 2vw 1.2rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; align-items: start; }
.ads-enabled .page-grid { width: min(1680px, 100%); padding-left: 1vw; padding-right: 1vw; grid-template-columns: 120px minmax(0, 1fr) 120px; }
.dashboard { min-width: 0; }
.data-banner { margin: 1.2rem 0 0; padding: .75rem 1rem; border: 1px solid #e5c04e; background: #fff7d9; color: #68510a; font-size: .8rem; }
.refresh-strip { min-height: 28px; padding: 0 .15rem; display: flex; align-items: center; gap: .45rem; color: var(--muted); font-size: .56rem; }
.refresh-status { display: inline-flex; align-items: center; gap: .3rem; color: var(--green); font: 850 .55rem/1 Arial, sans-serif; letter-spacing: .04em; }
.refresh-status b { font: inherit; }
.refresh-status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.refresh-status.offline { color: var(--muted); }
.refresh-divider { color: #aaa69d; }
.rank-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.panel-heading { min-height: 56px; padding: .4rem .15rem .55rem; display: flex; align-items: end; justify-content: space-between; gap: .6rem; }
.panel-heading p { margin: 0 0 .25rem; color: var(--muted); font-size: .62rem; }
.section-kicker { margin-right: .35rem; color: var(--red); font: 850 .58rem/1 Arial, sans-serif; letter-spacing: .1em; }
.panel-heading h2 { margin: 0; font-size: clamp(1.25rem, 1.8vw, 1.7rem); letter-spacing: -.05em; }
.panel-heading time { flex: 0 0 auto; color: var(--muted); font-size: .58rem; }
.ranking-list { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); box-shadow: 0 14px 38px rgba(32,28,18,.07); }
.ranking-item { background: var(--card); border-bottom: 1px solid var(--line); }
.ranking-summary { width: 100%; height: 48px; padding: .3rem .55rem; display: grid; grid-template-columns: 27px 32px minmax(0, 1fr) 104px 48px 14px; align-items: center; gap: .38rem; border: 0; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.ranking-summary:hover { background: #faf8f1; }
.ranking-summary:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }
.rank { font: 800 1.05rem/1 Arial, sans-serif; letter-spacing: -.05em; }
.movement { display: inline-flex; width: max-content; align-items: center; gap: .15rem; font: 800 .53rem/1 Arial, sans-serif; text-transform: uppercase; }
.movement.up { color: var(--red); }.movement.down { color: var(--blue); }.movement.same { color: var(--muted); }.movement.new { color: var(--green); }
.headline-wrap { min-width: 0; display: flex; flex-direction: column; gap: .18rem; }
.headline { overflow: hidden; font-size: .78rem; font-weight: 720; letter-spacing: -.025em; line-height: 1.2; white-space: nowrap; text-overflow: ellipsis; }
.meta { overflow: hidden; color: var(--muted); font-size: .5rem; white-space: nowrap; text-overflow: ellipsis; }
.spark-wrap { width: 104px; display: flex; flex-direction: column; align-items: center; }
.spark-wrap.detected { align-items: flex-start; justify-content: center; }
.sparkline { width: 76px; height: 28px; overflow: visible; }
.sparkline[hidden] { display: none; }
.sparkline .area { fill: rgba(231,52,42,.08); }.sparkline .path { fill: none; stroke: var(--red); stroke-width: 2; vector-effect: non-scaling-stroke; }.sparkline .dot { fill: var(--red); }
.sparkline .pending { stroke: #c9c5bb; stroke-width: 1; stroke-dasharray: 3 3; }
.trend-label { color: var(--muted); font-size: .48rem; }
.spark-wrap.detected .trend-label { color: var(--red); font-size: .52rem; font-weight: 750; line-height: 1.25; white-space: nowrap; }
.interest { text-align: right; }.interest b { display: block; font: 800 .86rem/1 Arial, sans-serif; }
.expand-icon { width: 14px; height: 14px; position: relative; }.expand-icon::before, .expand-icon::after { content: ""; position: absolute; top: 6px; left: 2px; width: 10px; height: 1px; background: var(--ink); }.expand-icon::after { transform: rotate(90deg); transition: transform .2s; }.ranking-summary[aria-expanded="true"] .expand-icon::after { transform: rotate(0); }
.ranking-detail { padding: .75rem 1rem 1.2rem; display: grid; grid-template-columns: 1fr; gap: 1rem; }
.ranking-detail[hidden] { display: none; }
.detail-label { display: block; margin-bottom: .75rem; color: var(--red); font-size: .64rem; font-weight: 850; letter-spacing: .08em; }
.summary-lines { margin: 0; padding-left: 1.1rem; }.summary-lines li { margin-bottom: .35rem; font-size: .72rem; line-height: 1.5; }
.method { display: inline-block; margin-top: .7rem; padding: .25rem .45rem; background: #eeece5; color: var(--muted); font-size: .6rem; }
.why { margin: 0; color: #3e3e3a; font-size: .72rem; line-height: 1.55; }
.sources { margin: 0; padding: 0; list-style: none; }.sources li + li { margin-top: .45rem; }.sources a { display: block; color: #31312f; font-size: .7rem; line-height: 1.4; text-underline-offset: 3px; }.sources span { display: block; margin-top: .1rem; color: var(--muted); font-size: .56rem; }
.empty-state { padding: 5rem 2rem; background: var(--card); text-align: center; color: var(--muted); }.empty-state strong { display: block; margin-bottom: .5rem; color: var(--ink); font-size: 1.1rem; }

.ad-slot[hidden] { display: none !important; }
.ad-slot { padding: .5rem; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); }
.ad-label { margin-bottom: .55rem; font: 700 .52rem/1 Arial, sans-serif; letter-spacing: .16em; }
.ad-placeholder { width: 100%; display: grid; place-items: center; border: 1px dashed #cbc7bc; background: rgba(255,255,255,.42); color: #9a978f; font-size: .6rem; }
.ad-slot.is-live .ad-placeholder { display: none; }
.ad-slot .adsbygoogle { width: 100%; min-height: 90px; }
.ad-rail { position: sticky; top: 1rem; min-height: 544px; }
.ad-rail .ad-placeholder { min-height: 514px; }
.ad-slot-bottom { min-height: 68px; margin-top: .8rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ad-slot-bottom .ad-placeholder { width: min(100%, 970px); min-height: 44px; }

footer { max-width: 1680px; margin: auto; padding: 1.1rem 2vw; display: grid; grid-template-columns: 1fr auto; gap: .6rem 1rem; border-top: 1px solid var(--ink); font-size: .62rem; color: var(--muted); }
footer > div { display: flex; gap: 1rem; align-items: center; }.footer-brand { color: var(--ink); font-weight: 850; letter-spacing: -.03em; }footer nav { display: flex; gap: 1.2rem; }footer p { grid-column: 1 / -1; margin: 1rem 0 0; }

@media (max-width: 1280px) {
  .spark-wrap { display: none; }
  .ranking-summary { grid-template-columns: 27px 32px minmax(0, 1fr) 48px 14px; }
  .interest { grid-column: 4; }.expand-icon { grid-column: 5; }
}

@media (max-width: 900px) {
  .page-grid, .ads-enabled .page-grid { grid-template-columns: minmax(0, 1fr); padding-left: 2vw; padding-right: 2vw; }
  .ad-rail { display: none; }
}

@media (max-width: 680px) {
  .site-header { height: 64px; }.brand-word { font-size: .9rem; }
  .hero { padding: 2.2rem 4vw 1.5rem; grid-template-columns: 1fr; gap: 1rem; }.hero h1 { white-space: normal; }
  .rank-grid { grid-template-columns: 1fr; }
  .criteria-list > div { grid-template-columns: 100px minmax(0, 1fr); }
  .panel-heading { align-items: start; flex-direction: column; gap: .6rem; }
  .ad-slot-bottom { margin-top: 1.2rem; }
  .ranking-summary { grid-template-columns: 27px 32px minmax(0, 1fr) 48px 14px; }
  footer { grid-template-columns: 1fr; }footer nav { flex-direction: column; gap: .5rem; }footer p { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

