/* assets/brief.css: one stylesheet for every Morning Brief, Week Ahead and Week in Review page.
   Built from the Oct 28, 2026 brief design plus recurring components of older briefs.
   Rare one-off components keep a small <style data-brief-legacy> block on their own page. */
:root { --navy: #0b1f3a; --navy-mid: #122847; --blue: #1460aa; --accent: #2b8cff; --gold: #f5a623; --green: #12b76a; --red: #f04438; --gray: #6b7280; --light: #f5f7fa; --border: #e5e9f0; --card-shadow: 0 2px 12px rgba(11,31,58,0.08); }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; background: var(--light); color: #1a2332; line-height: 1.65; }
a { text-decoration: none; color: inherit; }
.tool-icon { width: 26px; height: 26px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }
.tool-icon.blue { background: rgba(43,140,255,0.15); }
.tool-icon.gold { background: rgba(245,166,35,0.15); }
.tool-icon.green { background: rgba(18,183,106,0.15); }
.hero { background: linear-gradient(145deg, #051120 0%, #0b1f3a 45%, #0f2d54 100%); padding: 48px 24px 40px; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 60% 0%, rgba(43,140,255,0.12) 0%, transparent 65%); pointer-events: none; }
.hero-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.hero-title { font-family: 'Playfair Display', serif; font-size: clamp(34px, 6vw, 52px); font-weight: 800; color: #fff; letter-spacing: -0.5px; line-height: 1.1; margin-bottom: 12px; }
.hero-sub { font-size: 14px; color: rgba(255,255,255,0.62); font-weight: 500; letter-spacing: 0.04em; }
.hero-divider { display: inline-block; width: 40px; height: 3px; background: var(--gold); border-radius: 2px; margin: 18px auto 0; }
.rate-ribbon { background: #071628; border-top: 2px solid var(--gold); padding: 14px 24px; display: flex; justify-content: center; gap: 0; flex-wrap: wrap; }
.rate-item { display: flex; flex-direction: column; align-items: center; padding: 6px 28px; border-right: 1px solid rgba(255,255,255,0.08); }
.rate-item:last-child { border-right: none; }
.rate-label { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.45); margin-bottom: 4px; }
.rate-value { font-size: 22px; font-weight: 700; color: #fff; letter-spacing: -0.5px; }
.rate-badge { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 20px; margin-top: 4px; }
.badge-up { background: rgba(240,68,56,0.18); color: #f87171; }
.badge-down { background: rgba(18,183,106,0.18); color: #34d399; }
.badge-neutral { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.5); }
.container { max-width: 860px; margin: 0 auto; padding: 28px 16px 48px; }
.card { background: #fff; border-radius: 14px; border: 1px solid var(--border); box-shadow: var(--card-shadow); padding: 28px 32px; margin-bottom: 20px; }
.card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.card-icon { font-size: 20px; }
.card-title { font-size: 17px; font-weight: 700; color: var(--navy); font-family: 'Playfair Display', serif; }
.snapshot-body p { color: #374151; margin-bottom: 14px; font-size: 15px; }
.snapshot-body p:last-child { margin-bottom: 0; }
.callout-box { background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); border-left: 4px solid var(--accent); border-radius: 8px; padding: 14px 18px; margin-top: 18px; }
.callout-label { font-size: 10px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }
.callout-body { font-size: 14px; color: #1e40af; font-weight: 500; }
.headline-item { border-radius: 10px; padding: 18px 18px 18px 22px; margin-bottom: 14px; border: 1px solid var(--border); position: relative; overflow: hidden; }
.headline-item::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; border-radius: 4px 0 0 4px; }
.hl-blue::before { background: var(--blue); }
.hl-green::before { background: var(--green); }
.hl-gold::before { background: var(--gold); }
.hl-red::before { background: var(--red); }
.hl-purple::before { background: #7c3aed; }
.headline-tag { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 2px 8px; border-radius: 12px; margin-bottom: 7px; }
.tag-blue { background: #dbeafe; color: var(--blue); }
.tag-green { background: #d1fae5; color: #065f46; }
.tag-gold { background: #fef3c7; color: #92400e; }
.tag-red { background: #fee2e2; color: #991b1b; }
.tag-purple { background: #ede9fe; color: #5b21b6; }
.headline-title { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 7px; line-height: 1.35; }
.headline-body { font-size: 14px; color: #4b5563; line-height: 1.6; margin-bottom: 8px; }
.headline-source { font-size: 11px; color: #9ca3af; font-weight: 500; }
.tp-card { background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%); border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px 22px; margin-bottom: 14px; }
.tp-quote { font-size: 15px; font-style: italic; color: var(--navy); font-weight: 600; margin-bottom: 12px; line-height: 1.4; }
.tp-label { display: inline-block; font-size: 9px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; background: var(--navy); color: var(--gold); padding: 2px 8px; border-radius: 4px; margin-bottom: 8px; }
.tp-body { font-size: 14px; color: #374151; line-height: 1.6; }
.eco-item { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.eco-item:last-child { border-bottom: none; }
.eco-pip { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; margin-top: 4px; }
.pip-red { background: var(--red); box-shadow: 0 0 0 3px rgba(240,68,56,0.15); }
.pip-blue { background: var(--accent); box-shadow: 0 0 0 3px rgba(43,140,255,0.15); }
.pip-gray { background: #9ca3af; }
.eco-label { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray); margin-bottom: 3px; }
.eco-title { font-size: 15px; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.eco-body { font-size: 13px; color: #6b7280; line-height: 1.55; }
.qh-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 14px; color: #374151; line-height: 1.55; }
.qh-item:last-child { border-bottom: none; }
.qh-icon { font-size: 18px; flex-shrink: 0; }
@media (max-width: 768px) {
  .rate-item { padding: 6px 14px; }
  .rate-value { font-size: 18px; }
  .card { padding: 20px 18px; }
  .hero { padding: 36px 16px 32px; }
}
h1.hero-title, h2.card-title, h3.headline-title { margin: 0; }
h3.headline-title { margin-bottom: 7px; }
.headline-source a, .snapshot-body a, .eco-body a { color: var(--blue); text-decoration: underline; }
.correction-box { background: #fff7ed; border: 1px solid #fdba74; border-left: 4px solid #f97316; border-radius: 10px; padding: 14px 18px; margin-bottom: 20px; font-size: 14px; color: #7c2d12; line-height: 1.6; }

/* ---- Recurring components from older briefs ---- */
/* .catalyst-body */
.catalyst-body { font-size:13px;color:#4b5563;line-height:1.65 }
/* .catalyst-card */
.catalyst-card { background:white;border:1px solid var(--border);border-left:3px solid var(--gold);border-radius:0 12px 12px 0;box-shadow:var(--card-shadow);padding:18px 20px }
/* .catalyst-date */
.catalyst-date { font-size:10px;font-weight:700;letter-spacing:0.1em;text-transform:uppercase;color:var(--gold);margin-bottom:8px }
/* .catalyst-headline */
.catalyst-headline { font-size:15px;font-weight:600;color:var(--navy);line-height:1.4;margin-bottom:8px }
/* .catalyst-list */
.catalyst-list { display:grid;gap:14px }
/* .eco-content */
.eco-content {  }
/* .hero-subtitle */
.hero-subtitle { font-size:14px;color:rgba(255,255,255,0.55);letter-spacing:0.03em;margin-bottom:20px }
/* .insight-box */
.insight-box { background:rgba(11,31,58,0.04);border:1px solid rgba(11,31,58,0.1);border-left:3px solid var(--gold);border-radius:0 12px 12px 0;padding:24px 28px }
.insight-box p { font-size:14px;line-height:1.7;color:#374151;margin-bottom:12px }
.insight-box p:last-child { margin-bottom:0 }
.insight-box strong { color:var(--navy) }
/* .news-body */
.news-body { font-size:13px;color:#4b5563;line-height:1.65 }
/* .news-card */
.news-card { background:white;border:1px solid var(--border);border-left:3px solid var(--gold);border-radius:0 12px 12px 0;box-shadow:var(--card-shadow);padding:18px 20px }
/* .news-grid */
.news-grid { display:grid;gap:14px }
/* .news-headline */
.news-headline { font-size:15px;font-weight:600;color:var(--navy);line-height:1.4;margin-bottom:8px }
/* .news-tag */
.news-tag { font-size:10px;font-weight:700;letter-spacing:0.1em;text-transform:uppercase;color:var(--gold);margin-bottom:8px }
/* .nonqm-body */
.nonqm-body { font-size:13px;color:#4b5563;line-height:1.65 }
/* .nonqm-card */
.nonqm-card { background:white;border:1px solid var(--border);border-radius:12px;box-shadow:var(--card-shadow);padding:22px }
/* .nonqm-cta */
.nonqm-cta { display:inline-block;margin-top:12px;font-size:12px;font-weight:600;color:var(--blue);text-decoration:none }
/* .nonqm-grid */
.nonqm-grid { display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px }
@media(max-width:600px) {
  .nonqm-grid { grid-template-columns:1fr }
}
/* .nonqm-icon */
.nonqm-icon { font-size:22px;margin-bottom:12px }
/* .nonqm-title */
.nonqm-title { font-size:14px;font-weight:700;color:var(--navy);margin-bottom:8px }
/* .section-label */
.section-label { font-size:10px;font-weight:700;letter-spacing:0.15em;text-transform:uppercase;color:var(--gold);margin-bottom:20px;padding-bottom:10px;border-bottom:2px solid rgba(245,166,35,0.35) }

/* ---- Phase 4 additions ---- */
.hero h1.hero-title, .card h2.card-title { margin: 0; }
.scorecard-grid, .week-grid, .calendar-grid, .week-stat-grid { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)) !important; }
.day-cell, .week-day, .cal-card { min-width: 0; }
.brief-nav { max-width: 860px; margin: 8px auto 48px; padding: 0 20px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: stretch; font-family: 'Inter', sans-serif; }
.brief-nav a { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-height: 64px; padding: 12px 16px; border: 1.5px solid #e5e9f0; border-radius: 12px; background: #fff; color: #0b1f3a; text-decoration: none; transition: border-color 0.2s; }
.brief-nav a:hover { border-color: #c9d4e2; }
.brief-nav small { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #5b6b7c; }
.brief-nav span { font-size: 14px; font-weight: 600; }
.brief-nav .bn-next { text-align: right; }
.brief-nav .bn-all { justify-content: center; text-align: center; background: #0b1f3a; border-color: #0b1f3a; color: #fff; }
.brief-nav .bn-all small { color: #f5a623; }
.brief-nav .bn-empty { visibility: hidden; }
@media (max-width: 640px) {
  .brief-nav { grid-template-columns: 1fr 1fr; }
  .brief-nav .bn-all { grid-column: 1 / -1; order: -1; }
}

