/* Weekly Finance & News Briefings — dark dashboard theme.
   Palette matches mikesailab.com: bg #060606, borders #27272a,
   text #f4f4f5, accent #38bdf8 (sky-400). */

:root {
  --bg: #060606;
  --panel: rgba(24, 24, 27, 0.4);      /* zinc-900/40 */
  --panel-hover: rgba(24, 24, 27, 0.7);
  --border: rgba(39, 39, 42, 0.6);     /* zinc-800/60 */
  --border-hover: #52525b;             /* zinc-600 */
  --fg: #f4f4f5;                       /* zinc-100 */
  --fg-2: #d4d4d8;                     /* zinc-300 */
  --fg-3: #a1a1aa;                     /* zinc-400 */
  --fg-4: #71717a;                     /* zinc-500 */
  --accent: #38bdf8;                   /* sky-400 */
  --up: #34d399;                       /* emerald-400 */
  --down: #fb7185;                     /* rose-400 */
  --sidebar-w: 300px;
  --radius: 12px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

::selection { background: rgba(56, 189, 248, 0.3); }

/* ---------- Sidebar ---------- */

#sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  background: rgba(9, 9, 11, 0.92);
  backdrop-filter: blur(8px);
  z-index: 30;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 18px 14px;
  color: var(--fg);
  border-bottom: 1px solid var(--border);
}
.brand:hover { text-decoration: none; }
.brand svg { width: 38px; height: 38px; flex: 0 0 auto; border: 1px solid var(--border); border-radius: 10px; }
.brand strong { display: block; font-size: 15px; font-weight: 700; letter-spacing: 0.01em; }
.brand small { display: block; color: var(--fg-4); font-size: 11.5px; }

.search-wrap { padding: 12px 14px 6px; }
#search {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(24, 24, 27, 0.55);
  color: var(--fg);
  font: inherit;
  font-size: 13px;
  outline: none;
}
#search:focus { border-color: var(--accent); }
#search::placeholder { color: var(--fg-4); }

#series-nav {
  flex: 1;
  overflow-y: auto;
  padding: 6px 10px 16px;
  scrollbar-width: thin;
  scrollbar-color: #3f3f46 transparent;
}

/* Tree: Category ▸ Group ▸ Series */
.nav-cat-wrap { margin: 12px 0 2px; }
.nav-cat-head,
.nav-group-head {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.nav-cat-head {
  padding: 5px 8px;
  margin-bottom: 3px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--fg-4);
}
.nav-cat-head:hover { color: var(--fg-2); }
.nav-cat-name { flex: 1; }
.nav-cat-count { font-size: 10.5px; font-family: var(--mono); color: var(--fg-4); }

.nav-group-wrap { margin: 1px 0; }
.nav-group-head {
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fg-2);
}
.nav-group-head:hover { background: var(--panel); }
.nav-group-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-chevron {
  flex: 0 0 auto;
  width: 11px;
  font-size: 10px;
  line-height: 1;
  color: var(--fg-4);
  transform: rotate(90deg);      /* expanded → points down */
  transition: transform 0.15s ease;
}
.nav-cat-wrap.collapsed > .nav-cat-head .nav-chevron,
.nav-group-wrap.collapsed > .nav-group-head .nav-chevron { transform: rotate(0deg); }
.nav-cat-wrap.collapsed > .nav-cat-body,
.nav-group-wrap.collapsed > .nav-group-body { display: none; }

.nav-group-body {
  margin: 0 0 5px 13px;
  padding-left: 9px;
  border-left: 1px solid var(--border);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 6px 9px;
  margin: 2px 0;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--fg-2);
  font-size: 13px;
}
.nav-item:hover { background: var(--panel); border-color: var(--border); text-decoration: none; }
.nav-item.active { background: var(--panel-hover); border-color: var(--border-hover); color: var(--fg); }
.nav-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.nav-item .nav-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-count {
  font-size: 11px;
  font-family: var(--mono);
  color: var(--fg-4);
  background: rgba(39, 39, 42, 0.5);
  border-radius: 999px;
  padding: 1px 7px;
}
.nav-empty { margin: 14px 10px; color: var(--fg-4); font-size: 13px; }

.sidebar-foot {
  padding: 10px 18px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  color: var(--fg-4);
}
.sidebar-foot a { color: var(--fg-4); }
.sidebar-foot a:hover { color: var(--accent); }

/* Mobile menu button */
#menu-toggle {
  display: none;
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 40;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(9, 9, 11, 0.9);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
#menu-toggle span { display: block; width: 18px; height: 2px; background: var(--fg-2); border-radius: 2px; }

/* ---------- Main ---------- */

#main {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  padding: 30px clamp(18px, 4vw, 56px) 80px;
  outline: none;
}

.view { max-width: 1240px; margin: 0 auto; animation: rise 0.35s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin: 0 0 6px;
}
.view-title { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 4px; }
.view-sub { color: var(--fg-3); margin: 0 0 26px; max-width: 70ch; }

/* Stats strip */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 0 0 30px;
}
.stat {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 14px 16px;
}
.stat b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.stat span { font-size: 12px; color: var(--fg-4); text-transform: uppercase; letter-spacing: 0.1em; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 34px 0 14px;
}
.section-head h2 { font-size: 18px; font-weight: 700; margin: 0; }
.section-head small { color: var(--fg-4); }

/* ---------- Home article feed ---------- */

.feed-filters { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 20px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  color: var(--fg-3);
  padding: 5px 13px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.chip:hover { border-color: var(--border-hover); color: var(--fg-2); }
.chip.active { background: var(--fg); color: #0a0a0a; border-color: var(--fg); font-weight: 600; }
.chip-row[data-level="group"] .chip { font-size: 12px; }
.chip .chip-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.chip.active .chip-dot { box-shadow: 0 0 0 1.5px rgba(0, 0, 0, 0.28); }

.feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 12px;
}
.feed-head h2 { font-size: 18px; font-weight: 700; margin: 0; }
.feed-head small { color: var(--fg-4); font-family: var(--mono); }
.feed-tools { display: flex; align-items: center; gap: 14px; }

.view-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
}
.view-toggle button {
  border: none;
  background: none;
  color: var(--fg-4);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 12px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.view-toggle button + button { border-left: 1px solid var(--border); }
.view-toggle button:hover { color: var(--fg-2); }
.view-toggle button.active { background: var(--panel-hover); color: var(--fg); }

.feed-month {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-4);
  margin: 22px 0 8px;
}
.feed-month:first-child { margin-top: 0; }

.article-feed { display: flex; flex-direction: column; gap: 8px; }
.feed-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 4px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
  padding: 11px 16px;
  color: var(--fg-2);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.feed-row:hover { border-color: var(--border-hover); background: var(--panel-hover); text-decoration: none; color: var(--fg); }
.feed-row > time { font-family: var(--mono); font-size: 12.5px; color: var(--fg-4); }
.feed-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.feed-title { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-src {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--fg-3);
  font-family: var(--mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.feed-src i { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; }
.feed-crumb { color: var(--fg-4); }
.feed-arrow { color: var(--fg-4); font-family: var(--mono); text-align: right; }
.feed-row:hover .feed-arrow { color: var(--accent); }
.feed-empty { color: var(--fg-4); padding: 24px 0; }

@media (max-width: 620px) {
  .feed-row { grid-template-columns: minmax(0, 1fr) 18px; }
  .feed-row > time { grid-column: 1 / -1; }
}

/* Latest briefings rail */
.latest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}
.latest-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 14px 16px;
  color: var(--fg);
  overflow: hidden;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.latest-card:hover { border-color: var(--border-hover); background: var(--panel-hover); text-decoration: none; transform: translateY(-2px); }
.latest-card .series-tag { display: flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.latest-card .series-tag i { width: 7px; height: 7px; border-radius: 50%; }
.latest-card h3 { margin: 2px 0 0; font-size: 14.5px; font-weight: 600; line-height: 1.4; color: var(--fg-2); }
.latest-card time { font-size: 12px; color: var(--fg-4); font-family: var(--mono); }

/* Group heading within a category section */
.group-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 24px 0 12px;
}
.group-head h3 { font-size: 15px; font-weight: 700; margin: 0; letter-spacing: -0.01em; }
.group-head small { color: var(--fg-4); font-size: 12px; font-family: var(--mono); }
.group-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }

/* Series cards */
.series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.series-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
  color: var(--fg);
  display: flex;
  flex-direction: column;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.series-card:hover { border-color: var(--border-hover); background: var(--panel-hover); text-decoration: none; transform: translateY(-2px); }
.series-card .cover {
  aspect-ratio: 16 / 7;
  background: #0c0c0e center / cover no-repeat;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.series-card .cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,6,6,0) 40%, rgba(6,6,6,0.82) 100%);
}
.series-card .body { padding: 13px 16px 15px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.series-card h3 { margin: 0; font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.series-card h3 i { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.series-card p { margin: 0; font-size: 13px; color: var(--fg-3); flex: 1; }
.series-card .meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--fg-4); font-family: var(--mono); margin-top: 6px; }

/* Article cards (default home feed — every issue, date-sorted, as a card) */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 8px;
}
.article-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
  color: var(--fg);
  display: flex;
  flex-direction: column;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.article-card:hover { border-color: var(--border-hover); background: var(--panel-hover); text-decoration: none; transform: translateY(-2px); }
.article-card .cover {
  aspect-ratio: 16 / 7;
  background: #0c0c0e center / cover no-repeat;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.article-card .cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,6,6,0) 40%, rgba(6,6,6,0.82) 100%);
}
.article-card .body { padding: 13px 16px 15px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.article-card .a-src {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--fg-3);
  font-family: var(--mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.article-card .a-src i { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; }
.article-card h3 { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.35; flex: 1; }
.article-card .meta { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--fg-4); font-family: var(--mono); margin-top: 4px; }
.article-card .meta time { flex: 0 0 auto; }
.article-card .a-crumb { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }

/* ---------- Series view ---------- */

.series-hero {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 28px;
  position: relative;
  background: #0c0c0e center / cover no-repeat;
}
.series-hero .scrim {
  background: linear-gradient(90deg, rgba(6,6,6,0.94) 0%, rgba(6,6,6,0.72) 55%, rgba(6,6,6,0.38) 100%);
  padding: clamp(22px, 4vw, 40px);
}
.series-hero h1 { font-size: clamp(24px, 3.6vw, 36px); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 6px; }
.series-hero p { margin: 0; color: var(--fg-2); max-width: 62ch; }
.series-hero .crumbs { margin-bottom: 10px; }

.crumbs { font-size: 12.5px; color: var(--fg-4); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.crumbs a { color: var(--fg-3); }
.crumbs .sep { color: var(--fg-4); }

.month-block { margin-bottom: 26px; }
.month-block h2 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-4);
  margin: 0 0 10px;
}
.issue-list { display: flex; flex-direction: column; gap: 8px; }
.issue-row {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
  padding: 11px 16px;
  color: var(--fg-2);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.issue-row:hover { border-color: var(--border-hover); background: var(--panel-hover); text-decoration: none; color: var(--fg); }
.issue-row time { font-family: var(--mono); font-size: 12.5px; color: var(--fg-4); flex: 0 0 92px; }
.issue-row .t { flex: 1; font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.issue-row .arrow { color: var(--fg-4); font-family: var(--mono); }
.issue-row:hover .arrow { color: var(--accent); }

/* Share bars (positioning only — the bar styles itself via tool-share.js) */
.tool-share { margin: 4px 0 22px; }
.reader-share { display: flex; justify-content: flex-end; margin-bottom: 16px; }

/* ---------- Reader ---------- */

.reader-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.pager { display: flex; gap: 8px; }
.pager a, .pager span {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  color: var(--fg-2);
  padding: 6px 13px;
  font-size: 13px;
}
.pager a:hover { border-color: var(--border-hover); background: var(--panel-hover); text-decoration: none; color: var(--fg); }
.pager span { opacity: 0.35; }

.article {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(12, 12, 14, 0.6);
  padding: clamp(22px, 4vw, 46px);
  max-width: 900px;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  padding-bottom: 16px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--fg-4);
  font-family: var(--mono);
}
.article-meta .pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 11px;
  font-family: var(--font);
  font-weight: 600;
  color: var(--fg-2);
}
.article-meta .pill i { width: 7px; height: 7px; border-radius: 50%; }

/* Rendered markdown */
.md h1 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; margin: 18px 0 10px; }
.md h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 34px 0 12px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.md h2::before {
  content: "";
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 2px;
  background: var(--article-accent, var(--accent));
  margin-right: 10px;
  transform: rotate(45deg) translateY(-1px);
}
.md h3 { font-size: 16.5px; font-weight: 700; margin: 24px 0 8px; color: var(--fg); }
.md h4 { font-size: 14.5px; font-weight: 700; margin: 18px 0 6px; color: var(--fg-2); }
.md p { margin: 10px 0; color: var(--fg-2); }
.md em { color: var(--fg-3); }
.md strong { color: var(--fg); font-weight: 700; }
.md hr { border: none; border-top: 1px solid var(--border); margin: 26px 0; }
.md ul, .md ol { margin: 10px 0; padding-left: 24px; color: var(--fg-2); }
.md li { margin: 5px 0; }
.md li::marker { color: var(--article-accent, var(--accent)); }
.md blockquote {
  margin: 14px 0;
  padding: 10px 18px;
  border-left: 3px solid var(--article-accent, var(--accent));
  background: var(--panel);
  border-radius: 0 10px 10px 0;
  color: var(--fg-3);
}
.md code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: rgba(39, 39, 42, 0.55);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 6px;
}
.md pre {
  background: #0c0c0e;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  overflow-x: auto;
}
.md pre code { background: none; border: none; padding: 0; font-size: 12.5px; }
.md a { word-break: break-word; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 14px 0; border: 1px solid var(--border); border-radius: 10px; }
.md table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
.md th {
  text-align: left;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-4);
  background: rgba(24, 24, 27, 0.6);
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.md td { padding: 8px 14px; border-bottom: 1px solid rgba(39, 39, 42, 0.35); color: var(--fg-2); vertical-align: top; }
.md tr:last-child td { border-bottom: none; }
.md tbody tr:hover td { background: rgba(24, 24, 27, 0.45); }
.md td.num { font-family: var(--mono); font-size: 12.5px; white-space: nowrap; }
.md .delta-up { color: var(--up); }
.md .delta-down { color: var(--down); }
.md .delta-up::before { content: "▲ "; font-size: 0.8em; }
.md .delta-down::before { content: "▼ "; font-size: 0.8em; }

/* Auto charts */
.chart-block {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(12, 12, 14, 0.65);
  padding: 14px 16px 8px;
  margin: 14px 0 4px;
}
.chart-block .chart-title {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-4);
  margin: 0 0 8px;
}
.chart-block canvas { width: 100% !important; }

.not-found { color: var(--fg-3); padding: 60px 0; text-align: center; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  #menu-toggle { display: flex; }
  #sidebar { transform: translateX(-100%); transition: transform 0.25s ease; width: min(320px, 86vw); }
  body.nav-open #sidebar { transform: none; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.55); }
  #main { margin-left: 0; padding-top: 70px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---- Section switcher (Daily Reel | Weekly Briefings) ------------------- */
/* Pinned top-right, always visible — mirrors the Newsroom bar's switcher so
   every surface (this page, the reel page, and the Newsroom shell) shows the
   same top-right switcher. Hidden when embedded (the shell bar covers it). */
.cross-switch {
  position: fixed;
  top: clamp(0.6rem, 1.6vw, 1.1rem);
  right: clamp(0.6rem, 1.6vw, 1.25rem);
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(6, 6, 6, 0.85);
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 20px -8px rgba(0, 0, 0, 0.7);
}
.cross-switch[hidden] { display: none; }
.cross-seg {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--fg-3);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.cross-seg svg { width: 14px; height: 14px; }
.cross-seg:not(.is-active):hover { color: var(--fg); background: rgba(255, 255, 255, 0.06); }
.cross-seg.is-active {
  color: var(--fg);
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent);
  cursor: default;
}
.cross-seg.is-active svg { color: var(--accent); }
@media (max-width: 720px) {
  .cross-seg span { display: none; }        /* icon-only on narrow screens */
  .cross-seg { padding: 0.4rem 0.5rem; }
}
