/* ═══════════════════════════════════════════════════════════
   NeoSolution — Global Stylesheet
   "데이터로 읽는 소비 트렌드"
   ═══════════════════════════════════════════════════════════ */

/* ── Design Tokens ──────────────────────────────────────── */
:root {
  --primary:       #0f2b46;
  --primary-light: #1a3a5c;
  --primary-dark:  #0a1f33;
  --accent:        #2563eb;
  --accent-hover:  #1d4ed8;
  --accent-light:  #dbeafe;
  --secondary:     #059669;
  --secondary-light:#d1fae5;

  --up:            #16a34a;
  --down:          #dc2626;
  --neutral:       #6b7280;
  --gold:          #f59e0b;
  --warning:       #f97316;

  --bg:            #f8fafc;
  --bg-card:       #ffffff;
  --bg-subtle:     #f1f5f9;
  --bg-dark:       #0f172a;
  --text:          #1e293b;
  --text-muted:    #64748b;
  --text-light:    #94a3b8;
  --border:        #e2e8f0;
  --border-strong: #cbd5e1;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:  0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg:  0 10px 30px rgba(0,0,0,.10), 0 4px 8px rgba(0,0,0,.04);
  --shadow-xl:  0 20px 40px rgba(0,0,0,.12);

  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  14px;
  --radius-xl:  20px;
  --radius-full: 9999px;

  --font-sans:  'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Noto Serif KR', Georgia, serif;
  --font-mono:  'SF Mono', 'Fira Code', Consolas, monospace;

  --transition: 0.2s ease;
  --max-width:  1200px;
  --content-width: 820px;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }

/* ── Header & Nav ───────────────────────────────────────── */
header {
  position: relative;
  z-index: 100;
  background: var(--primary);
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
}

header nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  flex-wrap: wrap;
}

.site-title {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.site-logo {
  height: 32px;
  width: auto;
}

.site-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
}

.site-name span { color: var(--accent); }

.site-tagline {
  font-size: 0.7rem;
  color: rgba(255,255,255,.45);
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  gap: 0.15rem;
  margin-left: 1.5rem;
}

.nav-links a {
  color: rgba(255,255,255,.7);
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--transition), background var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(255,255,255,.1);
}

.nav-cta {
  margin-left: auto;
}

.nav-cta a {
  background: var(--accent);
  color: #fff !important;
  padding: 0.45rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  transition: background var(--transition);
}

.nav-cta a:hover {
  background: var(--accent-hover);
}

/* ── Mobile Menu ────────────────────────────────────────── */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

@media (max-width: 768px) {
  .menu-toggle { display: block; margin-left: auto; }
  .nav-links { display: none; width: 100%; margin-left: 0; flex-direction: column; gap: 0; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.6rem 0.8rem; width: 100%; }
  .nav-cta { display: none; }
  .nav-cta.open { display: block; width: 100%; margin-left: 0; margin-top: 0.5rem; }
  .nav-cta a { display: block; text-align: center; }
}

/* ── Main Layout ────────────────────────────────────────── */
main {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

main.wide {
  max-width: var(--max-width);
}

/* ── Homepage Hero ──────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 4rem 2rem 3rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  margin: -2rem -1.5rem 3rem;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(4px);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero h1 span { color: var(--gold); }

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,.75);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.8rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover { background: var(--accent-hover); color: #fff; }

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.35);
}

.btn-outline:hover { border-color: #fff; color: #fff; }

/* ── Section Headers ────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.card-sm {
  padding: 1.25rem;
  border-radius: var(--radius-md);
}

/* ── Insight Cards ──────────────────────────────────────── */
.insight-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.insight-card .card-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.insight-card .card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}

.insight-card .card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.insight-card .card-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  color: var(--text-muted);
}

.tag-accent {
  background: var(--accent-light);
  color: var(--accent);
}

/* ── NCI Gauge ──────────────────────────────────────────── */
.nci-section {
  margin: 2rem 0;
}

.nci-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.nci-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nci-hint {
  font-size: 0.72rem;
  color: var(--text-light);
}

.nci-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.nci-gauges {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.nci-gauge-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nci-gauge-label {
  width: 120px;
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  text-align: right;
}

.nci-gauge-track {
  flex: 1;
  height: 24px;
  background: var(--bg-subtle);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.nci-gauge-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}

.nci-gauge-val {
  width: 45px;
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: right;
}

/* ── ISI Bars ───────────────────────────────────────────── */
.isi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.isi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  text-align: center;
}

.isi-sector {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.isi-value {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.2;
}

.isi-change {
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 0.25rem;
}

.isi-change.up { color: var(--up); }
.isi-change.down { color: var(--down); }
.isi-change.flat { color: var(--neutral); }

/* ── Prediction Cards ───────────────────────────────────── */
.prediction-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.prediction-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.prediction-direction {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 900;
  flex-shrink: 0;
}

.prediction-direction.up { background: #dcfce7; color: var(--up); }
.prediction-direction.down { background: #fee2e2; color: var(--down); }
.prediction-direction.neutral { background: var(--bg-subtle); color: var(--neutral); }

.prediction-info { flex: 1; }
.prediction-asset { font-weight: 700; font-size: 0.9rem; }
.prediction-label { font-size: 0.78rem; color: var(--text-muted); }
.prediction-confidence { font-size: 0.75rem; font-weight: 600; color: var(--accent); }

/* ── Key Numbers ────────────────────────────────────────── */
.key-numbers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.key-number {
  text-align: center;
  padding: 1rem;
}

.key-number-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.key-number-value {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1.2;
}

.key-number-change {
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 0.2rem;
}

/* ── Service Cards ──────────────────────────────────────── */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: all var(--transition);
}

.service-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.service-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.service-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* ── CTA Banner ─────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  text-align: center;
  margin: 3rem 0;
}

.cta-banner h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.cta-banner p {
  color: rgba(255,255,255,.75);
  margin-bottom: 1.5rem;
}

.cta-banner .btn-primary {
  background: var(--gold);
  color: var(--primary);
}

.cta-banner .btn-primary:hover {
  background: #eab308;
}

/* ── Newsletter Signup ──────────────────────────────────── */
.newsletter-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  margin: 2rem 0;
}

.newsletter-box h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.newsletter-box p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  max-width: 420px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 0.6rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: var(--font-sans);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}

.newsletter-form button {
  padding: 0.6rem 1.5rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}

.newsletter-form button:hover {
  background: var(--accent-hover);
}

/* ── Editorial Content ──────────────────────────────────── */
.editorial-content {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text);
}

.editorial-content h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
  color: var(--primary);
}

.editorial-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  color: var(--text);
}

.editorial-content p { margin-bottom: 1.25rem; }

.editorial-content ul, .editorial-content ol {
  margin: 1rem 0 1.25rem 1.5rem;
}

.editorial-content li { margin-bottom: 0.4rem; }

.editorial-content blockquote {
  border-left: 4px solid var(--accent);
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  background: var(--bg-subtle);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-muted);
  font-style: italic;
}

.editorial-content strong { color: var(--primary); }

.editorial-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Insight Box ────────────────────────────────────────── */
.insight-box {
  background: linear-gradient(135deg, var(--accent-light) 0%, #eff6ff 100%);
  border: 1px solid rgba(37,99,235,.15);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
}

.insight-box-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.insight-box-body {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
}

/* ── Tomorrow Signals ───────────────────────────────────── */
.tomorrow-signals {
  margin: 2rem 0;
}

.tomorrow-signals h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.signal-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.signal-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.signal-icon {
  width: 28px;
  height: 28px;
  background: var(--gold);
  color: #fff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 900;
  flex-shrink: 0;
}

.signal-title { font-weight: 700; font-size: 0.9rem; }
.signal-body { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.2rem; }

/* ── Footer ─────────────────────────────────────────────── */
footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,.6);
  padding: 3rem 2rem 2rem;
  margin-top: 4rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.footer-desc {
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.footer-contact {
  font-size: 0.8rem;
  line-height: 1.8;
}

.footer-section h4 {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.footer-section a {
  display: block;
  font-size: 0.82rem;
  padding: 0.2rem 0;
  color: rgba(255,255,255,.55);
  transition: color var(--transition);
}

.footer-section a:hover { color: #fff; }

.footer-bottom {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
  text-align: center;
  font-size: 0.75rem;
}

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ── Share Buttons ──────────────────────────────────────── */
.share-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  transition: opacity var(--transition);
}

.share-btn:hover { opacity: 0.85; color: #fff; }
.share-btn-kakao { background: #fee500; color: #3c1e1e !important; }
.share-btn-naver { background: #03c75a; }
.share-btn-telegram { background: #0088cc; }
.share-btn-link { background: var(--text-muted); }

/* ── Disclaimer ─────────────────────────────────────────── */
.disclaimer {
  font-size: 0.75rem;
  color: var(--text-light);
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding-top: 1.5rem;
  line-height: 1.7;
}

/* ── Utility ────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ═══════════════════════════════════════════════════════════
   유통정보 (Distribution) — 가격 데이터 전용 컴포넌트
   ═══════════════════════════════════════════════════════════ */

/* ── 가격 변동 색상 (인사이트와 반대: 상승=부담=빨강) ─── */
.price-change-up   { color: var(--down);    font-weight: 700; }
.price-change-down { color: var(--up);      font-weight: 700; }
.price-change-neutral { color: var(--neutral); }

/* ── 유통정보 히어로 ──────────────────────────────────── */
.distribution-hero {
  text-align: center;
  padding: 3rem 1.5rem 2rem;
  background: linear-gradient(135deg, var(--primary) 0%, #1a4a6e 100%);
  border-radius: var(--radius-xl);
  color: #fff;
  margin-bottom: 2rem;
}
.distribution-hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-full);
  padding: 0.3rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.distribution-hero h1 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 900;
  margin-bottom: 0.75rem;
}
.distribution-hero p {
  font-size: 1rem;
  opacity: 0.85;
  max-width: 520px;
  margin: 0 auto;
}

/* ── 최신 가격 카드 ──────────────────────────────────── */
.distribution-latest-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
}
.distribution-latest-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.distribution-latest-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}
.distribution-latest-header h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0;
}
.distribution-movers {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}
.movers-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}
.mover-tag {
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
}

/* ── 식자재가격압력지수 게이지 ────────────────────────── */
.pressure-gauge-section {
  margin: 2rem 0;
}
.pressure-gauge-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0.75rem 0 0.35rem;
  flex-wrap: wrap;
}
.pressure-gauge-track {
  flex: 1;
  min-width: 180px;
  height: 20px;
  background: var(--bg-subtle);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.pressure-gauge-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}
.fill-warning  { background: linear-gradient(90deg, #f97316, #dc2626); }
.fill-caution  { background: linear-gradient(90deg, #f59e0b, #f97316); }
.fill-normal   { background: linear-gradient(90deg, #3b82f6, #2563eb); }
.fill-good     { background: linear-gradient(90deg, #10b981, #059669); }

.pressure-gauge-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 130px;
}
.pressure-score {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}
.pressure-score small { font-size: 0.9rem; color: var(--text-muted); }
.pressure-label-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}
.pressure-scale-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

/* 압력 배지 (카드/리스트용 소형) */
.pressure-meter {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  min-width: 90px;
}
.pressure-warning { background: #fef2f2; border: 1px solid #fecaca; }
.pressure-caution { background: #fffbeb; border: 1px solid #fde68a; }
.pressure-normal  { background: var(--accent-light); border: 1px solid #bfdbfe; }
.pressure-good    { background: var(--secondary-light); border: 1px solid #a7f3d0; }
.pressure-meter .pressure-value {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--primary);
}
.pressure-meter .pressure-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 600;
  text-align: center;
  margin-top: 0.15rem;
}

/* ── 가격 경보 배너 ──────────────────────────────────── */
.price-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin: 1rem 0;
  border-left-width: 4px;
  border-left-style: solid;
}
.price-alert-warning  { background: #fef2f2; border-color: #dc2626; }
.price-alert-caution  { background: #fffbeb; border-color: #f59e0b; }
.price-alert-normal   { background: var(--bg-subtle); border-color: var(--accent); }
.price-alert-favorable{ background: var(--secondary-light); border-color: var(--secondary); }

.price-alert-icon { font-size: 1.25rem; flex-shrink: 0; margin-top: 0.1rem; }
.price-alert-content { flex: 1; }
.price-alert-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.price-alert-message {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  line-height: 1.5;
}

/* ── 요약 통계 행 ────────────────────────────────────── */
.market-stats-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}
.market-stat {
  flex: 1;
  min-width: 100px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-align: center;
}
.market-stat-value {
  font-size: 1.4rem;
  font-weight: 900;
}
.market-stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ── AI 코멘트 박스 ──────────────────────────────────── */
.ai-comment-box {
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.ai-comment-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.ai-comment-box p {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.7;
  margin: 0;
}

/* ── 가격 테이블 ─────────────────────────────────────── */
.price-tables-section { margin: 2rem 0; }
.section-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
}
.price-category-block { margin-bottom: 2rem; }
.price-category-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.price-category-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1em;
  background: var(--accent);
  border-radius: 2px;
}
.price-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.price-table thead tr {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
}
.price-table th {
  padding: 0.65rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.price-table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.price-table tbody tr:last-child td { border-bottom: none; }
.price-table tbody tr:hover { background: var(--bg-subtle); }
.price-item-name { font-weight: 700; color: var(--primary); }
.price-unit { color: var(--text-muted); font-size: 0.82rem; }
.price-value { font-weight: 700; font-variant-numeric: tabular-nums; }
.price-change { font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-market { font-size: 0.78rem; color: var(--text-light); }

/* ── 시장 허브 카드 그리드 ───────────────────────────── */
.market-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.market-category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text);
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.market-category-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--accent);
}
.market-cat-icon { font-size: 2rem; }
.market-category-card h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0;
}
.market-category-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
}

/* ── 가격 이력 리스트 ────────────────────────────────── */
.market-history-list { display: flex; flex-direction: column; gap: 0.5rem; }
.market-history-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text);
  transition: var(--transition);
  flex-wrap: wrap;
}
.market-history-item:hover {
  border-color: var(--accent);
  background: var(--accent-light);
}
.market-history-date {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  min-width: 70px;
  flex-shrink: 0;
}
.market-history-title {
  flex: 1;
  font-size: 0.88rem;
  color: var(--text);
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.market-history-meta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-shrink: 0;
}
.pressure-chip {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
}
.chip-warning { background: #fef2f2; color: #dc2626; }
.chip-good    { background: var(--secondary-light); color: var(--secondary); }
.chip-normal  { background: var(--accent-light); color: var(--accent); }

/* ── 유통정보 안내 박스 ──────────────────────────────── */
.distribution-info-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-top: 2rem;
}
.distribution-info-box h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--primary);
}
.distribution-info-box ul {
  padding-left: 1.25rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.distribution-info-box li {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.5;
}

/* ── 인사이트 내 식자재 가격 스냅샷 ─────────────────── */
.food-price-snapshot {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}
.food-price-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.65rem;
}
.food-price-mini-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.food-price-name  { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; }
.food-price-val   { font-size: 1rem; font-weight: 800; color: var(--primary); }
.food-price-change{ font-size: 0.78rem; font-weight: 700; }

/* ── 반응형 ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .distribution-latest-header { flex-direction: column; }
  .pressure-gauge-container { flex-direction: column; align-items: stretch; }
  .pressure-gauge-info { align-items: flex-start; flex-direction: row; gap: 1rem; }
  .market-stats-row { gap: 0.5rem; }
  .market-stat { min-width: 80px; padding: 0.65rem 0.75rem; }
  .market-hub-grid { grid-template-columns: repeat(2, 1fr); }
  .price-table th, .price-table td { padding: 0.5rem 0.65rem; }
  .market-history-title { white-space: normal; }
}

/* ── 날씨 배지 ───────────────────────────────────────── */
.weather-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.4rem 1rem;
  font-size: 0.82rem;
  color: var(--text);
  margin-top: 0.5rem;
}
.weather-icon { font-size: 1.1rem; }
.weather-condition { font-weight: 600; color: var(--primary); }
.weather-temp { color: var(--text-muted); }
.weather-temp-min { color: #3b82f6; }
.weather-precip { color: #2563eb; font-weight: 600; }
.weather-label { font-size: 0.72rem; color: var(--text-light); border-left: 1px solid var(--border); padding-left: 0.5rem; }

/* ── 가격 테이블 클릭 행 ─────────────────────────────── */
.price-row-clickable { cursor: pointer; transition: background 0.15s; }
.price-row-clickable:hover { background: var(--accent-light); }
.price-item-link { font-weight: 600; }
.price-chart-hint {
  font-size: 0.75rem;
  opacity: 0;
  margin-left: 0.3rem;
  transition: opacity 0.15s;
}
.price-row-clickable:hover .price-chart-hint { opacity: 1; }

/* ── 차트 모달 ───────────────────────────────────────── */
.chart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.chart-overlay.open { display: flex; }

.chart-modal {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chart-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.chart-item-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
}
.chart-item-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.chart-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-md);
  transition: background 0.15s;
}
.chart-close-btn:hover { background: var(--bg-subtle); color: var(--primary); }

/* 탭 */
.chart-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
}
.chart-tab {
  background: none;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
}
.chart-tab:hover { color: var(--accent); }
.chart-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

/* 캔버스 */
.chart-canvas-wrap {
  position: relative;
  width: 100%;
  height: 240px;
}
.chart-canvas-wrap canvas { width: 100% !important; height: 100% !important; }

/* 통계 요약 */
.chart-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}
.chart-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.65rem 0.5rem;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  text-align: center;
}
.chart-stat-label { font-size: 0.72rem; color: var(--text-muted); }
.chart-stat-val { font-size: 0.92rem; font-weight: 700; color: var(--primary); }

.chart-source-note {
  font-size: 0.72rem;
  color: var(--text-light);
  text-align: right;
}

@media (max-width: 480px) {
  .chart-modal { padding: 1rem; }
  .chart-stats { grid-template-columns: repeat(2, 1fr); }
  .chart-tab { padding: 0.4rem 0.65rem; font-size: 0.78rem; }
  .chart-canvas-wrap { height: 180px; }
}

/* ── 차트 범례 (도매가 / 산지가) ─────────────────────────── */
.chart-legend {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 0.3rem 0.5rem 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.chart-legend-item { display: flex; align-items: center; gap: 0.35rem; }
.chart-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* 산지가 컬럼 */
.price-origin { color: #16a34a; font-weight: 600; }

/* 통계 요약 5개일 때 */
.chart-stats:has(.chart-stat-item:nth-child(5)) {
  grid-template-columns: repeat(5, 1fr);
}
@media (max-width: 480px) {
  .chart-stats:has(.chart-stat-item:nth-child(5)) {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── 인사이트 목록 ──────────────────────────────────────── */
.insight-hero-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, border-left-color 0.2s;
  margin-bottom: 2rem;
}
.insight-hero-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.filter-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.filter-btn:hover {
  background: var(--border);
  color: var(--primary);
}
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
