:root {
  --bg: #07090c;
  --bg-elev: #0e1218;
  --card: #141a22;
  --card-2: #1a222d;
  --line: #2a3340;
  --line-soft: #222a35;
  --gold: #d4b15a;
  --gold-2: #f0d48a;
  --gold-dim: #8a7030;
  --text: #ece8e0;
  --muted: #9aa3ad;
  --faint: #6d7682;
  --up: #3dbe8c;
  --down: #e25c5c;
  --warn: #e0a84a;
  --info: #6ea8d8;
  --shadow: 0 10px 40px rgba(0,0,0,.35);
  --radius: 14px;
  --font: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", "SF Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: var(--font); }
body { min-height: 100vh; line-height: 1.45; }
a { color: var(--gold-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 20px 20px 64px; }
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 0 18px; border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand img.logo { height: 42px; width: auto; }
.brand-text { min-width: 0; }
.brand-text h1 {
  font-size: clamp(1.05rem, 2.4vw, 1.55rem);
  letter-spacing: .08em; font-weight: 650; margin: 0;
  color: var(--gold-2); text-transform: uppercase; line-height: 1.15;
}
.updated { color: var(--muted); font-size: .86rem; margin-top: 3px; }
.header-meta { text-align: right; color: var(--muted); font-size: .82rem; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .75rem; letter-spacing: .06em; text-transform: uppercase;
  font-weight: 600; padding: 4px 9px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted);
}
.badge.on { color: var(--up); border-color: rgba(61,190,140,.4); background: rgba(61,190,140,.08); }
.badge.off { color: var(--down); border-color: rgba(226,92,92,.4); background: rgba(226,92,92,.08); }
.badge.warn { color: var(--warn); border-color: rgba(224,168,74,.4); background: rgba(224,168,74,.08); }
.badge.gen { color: var(--gold-2); border-color: rgba(212,177,90,.45); background: rgba(212,177,90,.1); }

/* podcast */
.podcast {
  background: linear-gradient(180deg, #181108 0%, var(--card) 70%);
  border: 1px solid #3a2e16; border-radius: var(--radius);
  padding: 22px 22px 18px; margin-bottom: 16px; box-shadow: var(--shadow);
}
.podcast h2 { margin: 0 0 6px; font-size: 1.15rem; letter-spacing: .04em; color: var(--gold-2); }
.podcast .kicker { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 0 0 8px; font-weight: 600; }
.podcast p.lead { color: var(--muted); margin: 0 0 14px; max-width: 70ch; }
audio { width: 100%; margin: 8px 0 12px; height: 40px; }
.takeaways { margin: 0; padding: 0 0 0 18px; color: var(--text); }
.takeaways li { margin: 0 0 6px; }
.archive {
  margin: 0 0 28px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-elev); overflow: hidden;
}
.archive > summary {
  cursor: pointer; list-style: none; padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  color: var(--text); font-weight: 600;
}
.archive > summary::-webkit-details-marker { display: none; }
.archive > summary::after { content: "▸"; color: var(--gold); transition: transform .15s; }
.archive[open] > summary::after { transform: rotate(90deg); }
.archive-body { padding: 0 16px 14px; border-top: 1px solid var(--line-soft); }
.ep { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.ep:last-child { border-bottom: 0; }
.ep h3 { margin: 0 0 4px; font-size: .98rem; }
.ep .meta { color: var(--muted); font-size: .82rem; margin-bottom: 8px; }

/* layout */
.section { margin: 28px 0 8px; }
.section h2 {
  font-size: 1.05rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 12px; font-weight: 650;
  display: flex; align-items: center; gap: 8px;
}
.grid { display: grid; gap: 12px; }
.grid-6 { grid-template-columns: repeat(6, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 14px 12px;
}
.card h3 { margin: 0 0 10px; font-size: .92rem; font-weight: 600; color: var(--text); }
.metric-value { font-family: var(--mono); font-size: 1.45rem; font-weight: 550; letter-spacing: -.02em; line-height: 1.1; }
.metric-sub { color: var(--muted); font-size: .8rem; margin-top: 4px; }
.tone-up { color: var(--up); }
.tone-down { color: var(--down); }
.tone-warn { color: var(--warn); }
.tone-gold { color: var(--gold-2); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th, td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; background: #10151c; }
td.num, th.num { text-align: right; font-family: var(--mono); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.score-pill {
  display: inline-block; min-width: 1.8rem; text-align: center;
  padding: 1px 7px; border-radius: 999px; font-family: var(--mono); font-weight: 600;
}
.s-pos { background: rgba(61,190,140,.15); color: var(--up); }
.s-neg { background: rgba(226,92,92,.15); color: var(--down); }
.s-neu { background: rgba(154,163,173,.12); color: var(--muted); }
.s-jon6, .s-jon5 { background: rgba(61,190,140,.18); color: var(--up); }
.s-jon4, .s-jon3 { background: rgba(154,163,173,.14); color: var(--muted); }
.s-jon2, .s-jon1 { background: rgba(226,92,92,.18); color: var(--down); }

/* yield curve bars */
.curve { display: flex; align-items: flex-end; gap: 8px; height: 160px; padding: 8px 4px 0; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.bar .shaft { width: 100%; max-width: 36px; background: linear-gradient(180deg, var(--gold-2), var(--gold-dim)); border-radius: 4px 4px 0 0; }
.bar .lbl { font-size: .68rem; color: var(--muted); margin-top: 6px; font-family: var(--mono); }
.bar .val { font-size: .68rem; color: var(--text); font-family: var(--mono); margin-bottom: 4px; }

/* tooltips */
.with-tip { display: inline-flex; align-items: center; gap: 5px; }
.tip-btn {
  flex: 0 0 auto; width: 16px; height: 16px; padding: 0; line-height: 15px;
  border-radius: 50%; border: 1px solid var(--gold-dim); background: #1b170d;
  color: var(--gold-2); font-size: 11px; font-weight: 700; font-family: var(--font);
  cursor: help; display: inline-flex; align-items: center; justify-content: center;
}
.tip-btn:hover, .tip-btn:focus { background: var(--gold); color: #1a1408; border-color: var(--gold-2); outline: none; }
.tip-box {
  position: fixed; z-index: 10000; max-width: min(360px, calc(100vw - 16px));
  background: #14110b; color: #f3ead2; border: 1px solid var(--gold-dim);
  border-radius: 10px; padding: 10px 12px; font-size: .82rem; line-height: 1.45;
  box-shadow: 0 12px 40px rgba(0,0,0,.55); pointer-events: auto;
}
.tip-box[hidden] { display: none; }

.prose { color: var(--text); }
.prose p { color: var(--muted); margin: 0 0 10px; }
.footer { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--faint); font-size: .8rem; }
.footer p { margin: 0 0 8px; }

@media (max-width: 1100px) {
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 800px) {
  .grid-6, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .site-header { flex-direction: column; align-items: flex-start; }
  .header-meta { text-align: left; }
  .brand img.logo { height: 34px; }
}
@media (max-width: 520px) {
  .grid-6, .grid-4 { grid-template-columns: 1fr 1fr; }
  .wrap { padding: 14px 12px 48px; }
  .metric-value { font-size: 1.25rem; }
}

.podcast-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
a.archive-link, a.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--gold-dim); background: #1b170d;
  color: var(--gold-2); font-size: .86rem; font-weight: 650;
  letter-spacing: .03em; text-decoration: none;
}
a.archive-link:hover, a.back-link:hover {
  background: var(--gold); color: #1a1408; border-color: var(--gold-2);
  text-decoration: none;
}
.archive-page .ep {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 16px 12px; margin: 0 0 12px;
}
.archive-page .ep:last-child { margin-bottom: 0; }
.archive-intro { color: var(--muted); margin: 0 0 18px; max-width: 70ch; }

/* disclaimer banner */
.disclaimer-banner {
  background: rgba(224, 168, 74, 0.06);
  border: 1px solid rgba(224, 168, 74, 0.28);
  border-left: 3px solid var(--warn);
  border-radius: 10px;
  padding: 11px 15px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.48;
}
.disclaimer-banner strong {
  color: var(--gold-2);
  font-weight: 600;
  letter-spacing: .02em;
}
