/* ============================================================
   US Pizza Index — Redesign v2 (Magazine + Live)
   ============================================================ */
:root {
  --brand: #1e40af;
  --brand-dark: #1e3a8a;
  --brand-light: #3b82f6;
  --accent: #dc2626;
  --accent-light: #ef4444;
  --amber: #f59e0b;
  --green: #16a34a;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-softer: #f1f5f9;
  --bg-dark: #0f172a;
  --bg-card: #ffffff;
  --text: #1e293b;
  --text-sub: #475569;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow: 0 4px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,.12);
  --radius: 12px;
  --radius-sm: 8px;
  --wrap: 1100px;
  --font: 'Pretendard Variable', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
section { padding: 48px 0; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg-dark);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header .wrap {
  display: flex; align-items: center; height: 56px; gap: 16px;
}
.logo {
  display: flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 17px; color: #fff;
  text-decoration: none; white-space: nowrap;
}
.logo .mark { font-size: 22px; }
.logo:hover { text-decoration: none; }
.nav {
  display: flex; gap: 4px; margin-left: auto; flex-wrap: nowrap; overflow-x: auto;
}
.nav a {
  color: #cbd5e1; font-size: 13.5px; font-weight: 600;
  padding: 6px 10px; border-radius: var(--radius-sm);
  white-space: nowrap; transition: .15s;
}
.nav a:hover, .nav a.active { color: #fff; background: rgba(255,255,255,.1); text-decoration: none; }
.nav-toggle {
  display: none; background: none; border: none; color: #fff;
  font-size: 22px; cursor: pointer; padding: 4px;
}

/* ---- Top Bar (DOUGHCON + Market Ticker) ---- */
.top-bar {
  background: #1e293b;
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 0;
  overflow: hidden;
}
.top-bar .wrap {
  display: flex; align-items: center; height: 40px; gap: 0;
}
.doughcon-badge {
  display: flex; align-items: center; gap: 8px;
  padding: 0 16px 0 0;
  border-right: 1px solid rgba(255,255,255,.1);
  margin-right: 16px;
  flex-shrink: 0;
}
.doughcon-badge .level {
  font-size: 18px; font-weight: 900; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.doughcon-badge .label {
  font-size: 11px; font-weight: 700; color: #94a3b8;
  letter-spacing: .5px;
}
.doughcon-badge .label strong {
  color: #e2e8f0; font-weight: 800;
}
.dc-5 { color: var(--green); }
.dc-4 { color: #22c55e; }
.dc-3 { color: var(--amber); }
.dc-2 { color: #f97316; }
.dc-1 { color: var(--accent); }

.ticker-scroll {
  flex: 1;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}
.ticker-track {
  display: flex; gap: 24px; white-space: nowrap;
  animation: ticker 30s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: #94a3b8;
  flex-shrink: 0;
}
.ticker-item .name { font-weight: 600; color: #cbd5e1; }
.ticker-item .price { font-weight: 700; color: #e2e8f0; font-variant-numeric: tabular-nums; }
.ticker-item .chg { font-weight: 600; font-size: 11px; }
.chg.up { color: #ef4444; }
.chg.down { color: #22c55e; }
.chg.flat { color: #94a3b8; }

/* ---- Main Layout ---- */
.main-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
}

/* ---- Featured Briefing ---- */
.featured-briefing {
  display: block; text-decoration: none; color: var(--text);
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: .2s;
  position: relative;
  overflow: hidden;
}
.featured-briefing::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px; background: var(--accent);
}
.featured-briefing:hover {
  border-color: var(--brand-light);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  text-decoration: none;
}
.featured-briefing .tag-row {
  display: flex; gap: 8px; align-items: center; margin-bottom: 10px;
}
.featured-briefing .hot-tag {
  display: inline-flex; align-items: center; gap: 4px;
  background: #fef2f2; color: #dc2626;
  padding: 3px 10px; border-radius: 4px;
  font-size: 11px; font-weight: 700;
  animation: pulse-hot 2s ease-in-out infinite;
}
@keyframes pulse-hot {
  0%, 100% { opacity: 1; }
  50% { opacity: .7; }
}
.featured-briefing .cat-tag {
  display: inline-block;
  background: #eff6ff; color: var(--brand);
  padding: 3px 10px; border-radius: 4px;
  font-size: 11px; font-weight: 700;
}
.featured-briefing h2 {
  font-size: 22px; font-weight: 800; letter-spacing: -.5px;
  line-height: 1.4; margin-bottom: 10px;
}
.featured-briefing .excerpt {
  font-size: 14px; color: var(--text-sub); line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}
.featured-briefing .foot {
  margin-top: 14px; font-size: 12px; color: var(--text-muted);
  display: flex; gap: 16px; align-items: center;
}

/* ---- Section Head ---- */
.section-head { margin-bottom: 20px; }
.section-head h2 {
  font-size: clamp(20px, 4vw, 26px); font-weight: 900;
  letter-spacing: -.6px; margin-bottom: 4px;
}
.section-head p { color: var(--text-sub); font-size: 14px; }
.eyebrow {
  display: inline-block; font-size: 11px; font-weight: 800;
  color: var(--brand); letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 4px;
}
.flex-between { display: flex; justify-content: space-between; align-items: center; }

/* ---- Briefing Card ---- */
.briefing-card {
  display: block; text-decoration: none; color: var(--text);
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: .15s;
}
.briefing-card:hover {
  border-color: var(--brand-light); box-shadow: var(--shadow);
  transform: translateY(-2px); text-decoration: none;
}
.briefing-card .meta {
  font-size: 12px; color: var(--text-muted); font-weight: 600;
  margin-bottom: 6px; display: flex; gap: 10px; align-items: center;
}
.briefing-card .meta .cat {
  background: var(--brand); color: #fff;
  padding: 2px 8px; border-radius: 4px; font-size: 11px;
}
.briefing-card h3 {
  font-size: 16px; font-weight: 800; letter-spacing: -.3px;
  margin-bottom: 6px; line-height: 1.4;
}
.briefing-card .excerpt {
  font-size: 13px; color: var(--text-sub); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.briefing-card .foot {
  margin-top: 10px; font-size: 12px; color: var(--text-muted);
  display: flex; gap: 14px;
}
.briefing-list {
  display: flex; flex-direction: column; gap: 12px;
}

/* ---- Sidebar ---- */
.sidebar { display: flex; flex-direction: column; gap: 16px; }

/* ---- Live Panel ---- */
.live-panel {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.live-panel .panel-head {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 16px;
  background: #fef2f2;
  border-bottom: 1px solid #fecaca;
  font-size: 14px; font-weight: 800; color: #dc2626;
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #dc2626;
  animation: live-blink 1.5s ease-in-out infinite;
}
@keyframes live-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}
.live-panel .panel-body {
  padding: 0;
  max-height: 360px;
  overflow-y: auto;
}
.live-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
  transition: background .15s;
}
.live-item:last-child { border-bottom: none; }
.live-item:hover { background: var(--bg-soft); }
.live-item a {
  font-weight: 600; color: var(--text); line-height: 1.5;
  display: block;
}
.live-item a:hover { color: var(--brand); text-decoration: none; }
.live-item .time {
  font-size: 11px; color: var(--text-muted); margin-top: 3px;
}

/* ---- Market Widget ---- */
.market-panel {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.market-panel .panel-head {
  padding: 12px 16px;
  background: var(--bg-softer);
  border-bottom: 1px solid var(--border);
  font-size: 13px; font-weight: 800; color: var(--text);
  display: flex; align-items: center; gap: 6px;
}
.market-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
}
.market-row:last-child { border-bottom: none; }
.market-row .name { font-weight: 600; color: var(--text-sub); }
.market-row .val { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 13px; }
.market-row .chg { font-size: 11px; font-weight: 600; margin-left: 4px; }

/* ---- DOUGHCON Info ---- */
.doughcon-info {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.doughcon-info .dc-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 12px;
}
.doughcon-info .dc-num {
  font-size: 36px; font-weight: 900; line-height: 1;
}
.doughcon-info .dc-meta .dc-name {
  font-size: 15px; font-weight: 800;
}
.doughcon-info .dc-meta .dc-desc {
  font-size: 12px; color: var(--text-muted);
}
.doughcon-info .dc-comment {
  font-size: 13px; color: var(--text-sub); line-height: 1.6;
  padding: 12px;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
}
.doughcon-info .dc-time {
  font-size: 11px; color: var(--text-muted); margin-top: 10px;
}

/* ---- Quick Links ---- */
.quick-links {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.quick-link {
  display: flex; flex-direction: column; align-items: center;
  text-decoration: none; color: var(--text);
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 12px;
  transition: .15s;
  text-align: center;
}
.quick-link:hover {
  border-color: var(--brand-light);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  text-decoration: none;
}
.quick-link .icon { font-size: 24px; margin-bottom: 8px; }
.quick-link .ql-title { font-size: 14px; font-weight: 800; margin-bottom: 2px; }
.quick-link .ql-desc { font-size: 12px; color: var(--text-muted); }

/* ---- DOUGHCON Level Guide ---- */
.dc-levels {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px;
}
.dc-level-card {
  text-align: center;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 8px;
}
.dc-level-card .num { font-size: 28px; font-weight: 900; line-height: 1; }
.dc-level-card .lname { font-size: 11px; font-weight: 800; margin-top: 4px; }
.dc-level-card .ldesc { font-size: 11px; color: var(--text-muted); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 22px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 700; border: none; cursor: pointer;
  text-decoration: none; transition: .15s; gap: 6px;
}
.btn.primary { background: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-dark); text-decoration: none; }
.btn.ghost { background: transparent; border: 1.5px solid var(--border); color: var(--text); }
.btn.ghost:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.btn.danger { background: var(--accent); color: #fff; }
.btn.sm { height: 36px; padding: 0 14px; font-size: 13px; }

/* ---- Panel ---- */
.panel {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

/* ---- Category Tags ---- */
.tag {
  display: inline-block; padding: 4px 10px;
  border-radius: 6px; font-size: 12px; font-weight: 700;
  cursor: pointer; transition: .15s; border: 1.5px solid var(--border);
  background: var(--bg); color: var(--text-sub);
}
.tag.active, .tag:hover {
  background: var(--brand); color: #fff; border-color: var(--brand);
}
.tag-group { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }

/* ---- Grid ---- */
.grid { display: grid; gap: 16px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ---- Prose ---- */
.prose { max-width: 760px; }
.prose h2 { font-size: 22px; font-weight: 800; margin: 32px 0 12px; letter-spacing: -.4px; }
.prose h3 { font-size: 18px; font-weight: 700; margin: 24px 0 8px; }
.prose p { margin-bottom: 16px; }
.prose ul, .prose ol { margin: 0 0 16px 20px; }
.prose li { margin-bottom: 6px; }
.prose blockquote {
  border-left: 4px solid var(--brand);
  padding: 12px 16px; margin: 16px 0;
  background: var(--bg-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-sub); font-size: 14px;
}

/* ---- Article Detail ---- */
.article-header {
  padding: 32px 0 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.article-header .cat-badge {
  display: inline-block; background: var(--brand); color: #fff;
  padding: 4px 12px; border-radius: 6px;
  font-size: 12px; font-weight: 700; margin-bottom: 12px;
}
.article-header h1 {
  font-size: clamp(24px, 5vw, 36px); font-weight: 900;
  letter-spacing: -1px; line-height: 1.3; margin-bottom: 12px;
}
.article-header .info {
  font-size: 13px; color: var(--text-muted);
  display: flex; gap: 16px; flex-wrap: wrap;
}

/* ---- Comments ---- */
.comments-section { margin-top: 48px; padding-top: 32px; border-top: 2px solid var(--border); }
.comments-section h2 { font-size: 20px; font-weight: 800; margin-bottom: 24px; }
.comment-form {
  background: var(--bg-soft); border-radius: var(--radius);
  padding: 20px; margin-bottom: 24px;
}
.comment-form .row { display: flex; gap: 12px; margin-bottom: 12px; }
.comment-form input, .comment-form textarea {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 14px; background: #fff;
}
.comment-form textarea { min-height: 80px; resize: vertical; }
.comment-form input:focus, .comment-form textarea:focus {
  outline: none; border-color: var(--brand-light);
}
.comment {
  padding: 16px 0; border-bottom: 1px solid var(--border-light);
}
.comment:last-child { border-bottom: none; }
.comment .comment-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.comment .author { font-weight: 700; font-size: 14px; }
.comment .date { font-size: 12px; color: var(--text-muted); }
.comment .body { font-size: 14px; line-height: 1.7; color: var(--text-sub); }
.comment .actions { margin-top: 8px; }
.comment .actions button {
  background: none; border: none; font-size: 12px;
  color: var(--text-muted); cursor: pointer; padding: 2px 4px;
}
.comment .actions button:hover { color: var(--accent); }

/* ---- News List ---- */
.news-item {
  padding: 14px 0; border-bottom: 1px solid var(--border-light);
}
.news-item:last-child { border-bottom: none; }
.news-item a {
  font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.5;
}
.news-item a:hover { color: var(--brand); }
.news-item .news-meta {
  font-size: 12px; color: var(--text-muted); margin-top: 4px;
}

/* ---- Data Widgets ---- */
.widget {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.widget h3 {
  font-size: 14px; font-weight: 800; margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.widget .val {
  font-size: 28px; font-weight: 900; letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}
.widget .change { font-size: 13px; font-weight: 700; }
.change.up { color: var(--accent); }
.change.down { color: var(--green); }

/* ---- Footer ---- */
.site-footer {
  background: var(--bg-dark); color: #94a3b8; padding: 40px 0 24px;
  font-size: 13px; margin-top: 48px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px; margin-bottom: 24px;
}
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p { font-size: 13px; line-height: 1.6; color: #64748b; }
.footer-col h4 { color: #e2e8f0; font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.footer-col a { display: block; color: #94a3b8; padding: 3px 0; font-size: 13px; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 16px; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 8px; font-size: 12px; color: #64748b;
}

/* ---- Tabbar (Mobile) ---- */
.tabbar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  background: #fff; border-top: 1px solid var(--border);
  z-index: 200; padding: 6px 0 env(safe-area-inset-bottom, 0);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center;
  flex: 1; font-size: 10px; font-weight: 600; color: var(--text-muted);
  text-decoration: none; padding: 4px 0;
}
.tabbar a.active { color: var(--brand); }
.tabbar .ic { font-size: 20px; line-height: 1.2; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .main-grid { grid-template-columns: 1fr; }
  .quick-links { grid-template-columns: repeat(2, 1fr); }
  .dc-levels { grid-template-columns: repeat(3, 1fr); }
  .cols-4, .cols-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .top-bar .wrap { gap: 0; }
  .doughcon-badge { padding-right: 10px; margin-right: 10px; }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; position: absolute;
    top: 56px; left: 0; right: 0; background: var(--bg-dark);
    padding: 8px 16px 16px; gap: 2px; z-index: 99;
  }
  .nav-toggle { display: block; margin-left: auto; }
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .quick-links { grid-template-columns: repeat(2, 1fr); }
  .dc-levels { grid-template-columns: repeat(5, 1fr); }
  .dc-level-card { padding: 10px 4px; }
  .dc-level-card .num { font-size: 20px; }
  .dc-level-card .lname { font-size: 9px; }
  .dc-level-card .ldesc { font-size: 9px; }
  .tabbar { display: flex; }
  .site-footer { padding-bottom: 80px; }
  section { padding: 32px 0; }
  .featured-briefing { padding: 20px; }
  .featured-briefing h2 { font-size: 18px; }
  .comment-form .row { flex-direction: column; gap: 8px; }
  .top-bar .doughcon-badge .label { display: none; }
}

/* ---- Utility ---- */
.mt-s { margin-top: 8px; }
.mt-m { margin-top: 16px; }
.mt-l { margin-top: 32px; }
.hidden { display: none !important; }
.note { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.text-center { text-align: center; }

/* ============================================================
   브리핑 콘텐츠 — Lovable 마이그레이션 스타일 (종합)
   ============================================================ */
.article-wrapper { max-width: 800px; margin: 0 auto; }
.article-card, .prose .card { background: var(--bg-card); border-radius: var(--radius); }
.copy-btn-wrap { text-align: right; margin-bottom: 12px; }
.copy-btn { background: var(--bg-softer); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px 14px; font-size: 13px; cursor: pointer; }
.copy-btn:hover { background: var(--border); }

/* ---- 날짜 헤더 (.dh / .date-header) ---- */
.dh, .date-header { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 20px; }
.dh .badge, .date-badge { display: inline-block; background: var(--brand); color: #fff; padding: 4px 12px; border-radius: 4px; font-size: 12px; font-weight: 800; letter-spacing: .5px; flex-shrink: 0; }
.date-line { font-size: 14px; color: var(--text-sub); font-weight: 600; }
.dh .dl { display: block; width: 100%; font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* ---- 리드 요약 (.lead / .lead-summary) ---- */
.lead, .lead-summary { font-size: 15px; line-height: 1.9; color: var(--text); background: var(--bg-soft); border-left: 4px solid var(--brand); padding: 20px 24px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin-bottom: 28px; }
.lead strong { color: var(--brand-dark); }

/* ---- 메타 바 (.meta-bar / .meta) in content ---- */
.prose .meta, .article-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; padding: 12px 16px; background: var(--bg-softer); border-radius: var(--radius-sm); border: 1px solid var(--border-light); line-height: 1.7; }
.prose .meta div + div { margin-top: 4px; }
.meta-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; margin-bottom: 16px; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text-muted); background: var(--bg-softer); border-radius: var(--radius-sm); }
.meta-bar .site-brand { font-weight: 800; color: var(--text); font-size: 14px; }
.meta-right { display: flex; gap: 12px; }

.category-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.category-row .tag { display: inline-block; padding: 3px 10px; border-radius: 4px; font-size: 11px; font-weight: 700; background: var(--bg-softer); color: var(--text-sub); border: none; }
.category-row .tag.primary { background: var(--brand); color: #fff; }

/* ---- 섹션 래퍼 (.sec-wrap / .sec-title) ---- */
.sec-wrap { margin-bottom: 32px; }
.sec-title { font-size: 17px; font-weight: 800; margin-bottom: 14px; padding: 10px 16px; border-radius: var(--radius-sm); display: flex; align-items: center; gap: 8px; }
.sec-title.blue { background: #eff6ff; color: var(--brand); }
.sec-title.red { background: #fef2f2; color: var(--accent); }
.sec-title.amber { background: #fffbeb; color: #b45309; }
.sec-title.green { background: #f0fdf4; color: var(--green); }

/* ---- KPI/Market 카드 그리드 ---- */
.kpi-grid, .market-grid, .key-metrics { display: grid; gap: 10px; margin-bottom: 24px; }
.kpi-grid.col2 { grid-template-columns: repeat(2, 1fr); }
.kpi-grid.col3 { grid-template-columns: repeat(3, 1fr); }
.kpi-grid.col4 { grid-template-columns: repeat(4, 1fr); }
.kpi-grid:not(.col2):not(.col3):not(.col4),
.market-grid, .key-metrics { grid-template-columns: repeat(3, 1fr); }

.market-card, .kpi-card { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; text-align: center; transition: .15s; }
.market-card:hover, .kpi-card:hover { box-shadow: var(--shadow-sm); }
.market-card.red, .kpi-card.hl-red { border-left: 3px solid var(--accent); }
.market-card.green, .kpi-card.hl-green { border-left: 3px solid var(--green); }
.market-card.blue, .kpi-card.hl-blue { border-left: 3px solid var(--brand); }
.market-card.warn, .kpi-card.hl-amber { border-left: 3px solid var(--amber); }
.mc-label, .kc-label, .metric-label { font-size: 11px; font-weight: 700; color: var(--text-muted); margin-bottom: 4px; }
.mc-value, .kc-val, .metric-value { font-size: 20px; font-weight: 800; color: var(--text); }
.mc-change, .kc-chg, .metric-change { font-size: 12px; font-weight: 600; margin-top: 2px; }
.mc-change.up, .kc-chg.up, .metric-change.up { color: var(--green); }
.mc-change.down, .kc-chg.dn, .metric-change.down { color: var(--accent); }
.mc-change.neutral { color: var(--text-muted); }

/* KPI 카드 내 인라인 태그 */
.tag-hot { display: inline-block; background: #fef2f2; color: var(--accent); padding: 1px 6px; border-radius: 3px; font-size: 10px; font-weight: 700; margin-left: 4px; }
.tag-up { display: inline-block; background: #f0fdf4; color: var(--green); padding: 1px 6px; border-radius: 3px; font-size: 10px; font-weight: 700; margin-left: 4px; }
.tag-dn { display: inline-block; background: #fef2f2; color: var(--accent); padding: 1px 6px; border-radius: 3px; font-size: 10px; font-weight: 700; margin-left: 4px; }
.tag-warn { display: inline-block; background: #fffbeb; color: #b45309; padding: 1px 6px; border-radius: 3px; font-size: 10px; font-weight: 700; margin-left: 4px; }

/* ---- 약어 클래스 (초기 Lovable 브리핑) ---- */
.mc2-item { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; text-align: center; }
.section-divider { display: flex; align-items: center; gap: 12px; margin: 32px 0 16px; font-size: 18px; font-weight: 800; }
.section-num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; background: var(--brand); color: #fff; border-radius: 50%; font-size: 13px; font-weight: 800; }
.story-body, .article-body { font-size: 15px; line-height: 1.8; }
.story-body h2, .article-body h2 { font-size: 20px; font-weight: 800; margin: 28px 0 12px; }
.story-body h3, .article-body h3 { font-size: 17px; font-weight: 700; margin: 20px 0 8px; }
.story-body p, .article-body p { margin-bottom: 14px; }
.story-body ul, .article-body ul { margin: 0 0 14px 20px; }
.story-body li, .article-body li { margin-bottom: 6px; }
.story-body blockquote, .article-body blockquote { border-left: 4px solid var(--brand); padding: 12px 16px; margin: 16px 0; background: var(--bg-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 14px; color: var(--text-sub); }

/* ---- 포커스/박스/인용 섹션 ---- */
.focus2 { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 24px; }
.f2-title { font-size: 16px; font-weight: 800; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.box { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; margin-bottom: 16px; }
.quote-box { background: #fefce8; border: 1px solid #fde68a; border-left: 4px solid var(--amber); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 14px 18px; margin: 16px 0; font-size: 14px; font-style: italic; color: var(--text-sub); }

/* ---- 가격 흐름 (.price-flow) ---- */
.price-flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-bottom: 20px; }
.price-flow .pf-step { text-align: center; padding: 10px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.pf-label { font-size: 11px; font-weight: 700; color: var(--text-muted); }
.pf-val { font-size: 16px; font-weight: 800; }
.pf-sub { font-size: 11px; color: var(--text-muted); }

/* ---- 요약 바 (.sum-bar) ---- */
.sum-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.sum-bar > * { flex: 1; min-width: 120px; }

/* 약어 태그 */
.tg { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; }
.tg.b, .tg.blue { background: #eff6ff; color: var(--brand); }
.tg.r, .tg.red { background: #fef2f2; color: var(--accent); }
.tg.g, .tg.green { background: #f0fdf4; color: var(--green); }

/* 약어 상태 카드 */
.c { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; text-align: center; margin-bottom: 8px; }
.c.up { border-left: 3px solid var(--green); }
.c.dn { border-left: 3px solid var(--accent); }
.l { font-size: 11px; font-weight: 700; color: var(--text-muted); }
.v { font-size: 18px; font-weight: 800; }
.v.up, .v.g { color: var(--green); }
.v.dn, .v.r { color: var(--accent); }
.f { font-size: 12px; font-weight: 600; }
.f.up { color: var(--green); }
.f.dn { color: var(--accent); }
.b { font-weight: 700; }
.r { color: var(--accent); }
.n { font-size: 13px; color: var(--text-muted); }
.p { margin-bottom: 14px; }
.t { font-size: 18px; font-weight: 800; margin: 24px 0 10px; }
.an { font-size: 14px; line-height: 1.7; color: var(--text-sub); }
.bk { display: block; background: var(--bg-soft); border-left: 3px solid var(--brand); padding: 8px 14px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 6px 0; font-size: 13px; line-height: 1.6; }
.bk.r { border-left-color: var(--accent); color: var(--text); }
.bk.g { border-left-color: var(--green); color: var(--text); }
.sn { display: flex; align-items: center; gap: 10px; margin: 28px 0 12px; }
.sn.b { color: var(--brand); }
.cb { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; background: var(--brand); color: #fff; }
.prose .dl { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 14px; }
.it { font-style: italic; font-size: 13px; color: var(--text-muted); }

/* 약어 그리드 */
.mc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 20px; }
.mc.r .c { border-left-color: var(--accent); }
.mc.g .c { border-left-color: var(--green); }

/* 편집/요약/기타 */
.sd, .sb { margin-bottom: 20px; }
.tt { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.ti { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.tx { font-size: 14px; line-height: 1.7; }
.cg { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.tr { margin-bottom: 12px; }
.lb { font-size: 12px; font-weight: 700; color: var(--text-muted); }
.br { margin-bottom: 8px; }
.ed { font-size: 13px; color: var(--text-muted); font-style: italic; margin-top: 16px; }
.ft { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-muted); }
.sc { margin-bottom: 16px; }
.tl { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.ch { font-size: 12px; font-weight: 600; }
.ch.up { color: var(--green); }
.ch.dn { color: var(--accent); }
.pt { padding-top: 12px; }
.mt { margin-top: 12px; }
.gn, .gc { color: var(--green); }
.hot { color: var(--accent); font-weight: 700; }
.metal { margin-bottom: 24px; }

/* 브리핑 내 이미지 */
.prose img, .story-body img, .article-body img, .article-wrapper img { max-width: 100%; height: auto; border-radius: var(--radius-sm); margin: 16px 0; }
.cover-image { width: 100%; height: auto; object-fit: contain; border-radius: var(--radius); margin-bottom: 24px; }

/* ---- 브리핑 카드 썸네일 ---- */
.briefing-card.has-thumb { display: flex; gap: 16px; align-items: flex-start; }
.briefing-card .card-thumb { flex: 0 0 120px; width: 120px; height: 120px; overflow: hidden; border-radius: var(--radius-sm); background: var(--card-bg, #1e293b); }
.briefing-card .card-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.briefing-card .card-thumb .thumb-default { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 36px; color: #fff; }
.briefing-card .card-thumb .thumb-default.cat-oil { background: linear-gradient(135deg, #1e3a5f, #2d5a87); }
.briefing-card .card-thumb .thumb-default.cat-gold { background: linear-gradient(135deg, #92700c, #c9a227); }
.briefing-card .card-thumb .thumb-default.cat-war { background: linear-gradient(135deg, #7f1d1d, #b91c1c); }
.briefing-card .card-thumb .thumb-default.cat-politics { background: linear-gradient(135deg, #1e3a5f, #1e40af); }
.briefing-card .card-thumb .thumb-default.cat-general { background: linear-gradient(135deg, #1e3a5f, #334155); }
.briefing-card .card-body { flex: 1; min-width: 0; }
@media (max-width: 480px) {
  .briefing-card .card-thumb { flex: 0 0 90px; width: 90px; height: 90px; }
  .briefing-card .card-thumb .thumb-default { font-size: 28px; }
}

/* ---- 최신 브리핑 하이라이트 (목록 페이지) ---- */
.briefing-card.latest {
  border-color: var(--brand-light);
  background: linear-gradient(135deg, #eff6ff 0%, #fff 60%);
  box-shadow: 0 2px 8px rgba(30,64,175,.08);
}
.briefing-card.latest .meta .cat {
  background: var(--accent); animation: pulse-hot 2s ease-in-out infinite;
}

/* ---- 귀금속 시세 페이지 컴팩트 위젯 ---- */
.widget-compact h3 { font-size: 13px; margin-bottom: 8px; }
.widget-compact .val { font-size: 22px; }
.widget-compact .change { font-size: 12px; }
.widget-compact { padding: 14px; }
.market-box { transition: border-color .2s, box-shadow .2s; }
.market-box:hover { border-color: var(--brand-light); box-shadow: 0 2px 8px rgba(30,64,175,.1); }
.market-box.active { border-color: var(--brand); box-shadow: 0 2px 12px rgba(30,64,175,.15); background: linear-gradient(135deg, #eff6ff 0%, #fff 100%); }

@media (max-width: 900px) {
  .kpi-grid.col4 { grid-template-columns: repeat(3, 1fr); }
  .kpi-grid:not(.col2):not(.col3):not(.col4),
  .market-grid, .key-metrics { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .kpi-grid.col3 { grid-template-columns: repeat(2, 1fr); }
  .kpi-grid.col4 { grid-template-columns: repeat(2, 1fr); }
  .kpi-grid:not(.col2):not(.col3):not(.col4),
  .market-grid, .key-metrics { grid-template-columns: repeat(2, 1fr); }
  .mc { grid-template-columns: repeat(2, 1fr); }
  .price-flow { grid-template-columns: repeat(2, 1fr); }
  .sec-title { font-size: 15px; padding: 8px 12px; }
  .lead, .lead-summary { padding: 14px 16px; font-size: 14px; }
  .dh { gap: 6px; }
  .dh .bk { font-size: 12px; padding: 6px 10px; }
}
