/* =========================================================
   Trader Headline — Design Tokens
   Palette: Ink navy + paper + amber signal + bull/bear functional colors
   Type: Big Shoulders Display (headline) / IBM Plex Sans (body) / IBM Plex Mono (data)
   Signature element: live-scrolling ticker tape under the masthead
   ========================================================= */

:root {
  --ink: #0B1220;
  --ink-soft: #16202F;
  --paper: #F1F2ED;
  --surface: #FFFFFF;
  --amber: #E8A33D;
  --amber-deep: #C7841F;
  --bull: #157A4D;
  --bull-bg: #E7F3EC;
  --bear: #B23A2E;
  --bear-bg: #FBEAE7;
  --neutral: #5B6472;
  --neutral-bg: #ECEDE7;
  --line: #DBDDD4;
  --line-dark: #2A3648;
  --text: #101826;
  --text-muted: #5B6472;

  --font-display: system-ui, -apple-system, "Helvetica Neue", Arial, Helvetica, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, Consolas, Menlo, "Liberation Mono", monospace;

  --radius: 6px;
  --container: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

.wrap { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Masthead ---------- */
.site-header { background: var(--ink); color: var(--paper); }
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px 10px;
  max-width: var(--container);
  margin: 0 auto;
  gap: 16px;
  flex-wrap: wrap;
}
.wordmark {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  letter-spacing: 0.5px;
  line-height: 1;
}
.wordmark .w-trader { color: var(--paper); font-weight: 500; }
.wordmark .w-headline { color: var(--amber); text-transform: uppercase; font-weight: 800; }
.tagline {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #A9B4C4;
  margin-top: 3px;
}
.masthead-brand { display: flex; flex-direction: column; }

.site-search {
  flex: 1 1 320px;
  max-width: 460px;
  display: flex;
  align-items: center;
  background: var(--ink-soft);
  border: 1px solid #33415A;
  border-radius: var(--radius);
  padding: 9px 12px;
  gap: 8px;
}
.site-search input {
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 14px;
  width: 100%;
}
.site-search input::placeholder { color: #7C8AA0; }
.site-search svg { flex: none; opacity: 0.75; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid #33415A;
  color: var(--paper);
  border-radius: var(--radius);
  padding: 8px 10px;
}

.dev-user-badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: var(--amber);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}

.site-nav {
  border-top: 1px solid #212D3F;
}
.site-nav ul {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  list-style: none;
  display: flex;
  gap: 4px;
  overflow-x: auto;
}
.site-nav a {
  display: block;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #C7CFDB;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--paper); }
.site-nav a[aria-current="page"] {
  color: var(--paper);
  border-bottom-color: var(--amber);
}

/* ---------- Ticker tape (signature element) ---------- */
.ticker-tape {
  background: var(--ink-soft);
  border-top: 1px solid #212D3F;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}
.ticker-tape::before, .ticker-tape::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 40px;
  z-index: 2;
  pointer-events: none;
}
.ticker-tape::before { left: 0; background: linear-gradient(90deg, var(--ink-soft), transparent); }
.ticker-tape::after { right: 0; background: linear-gradient(270deg, var(--ink-soft), transparent); }
.ticker-tape-track {
  display: inline-flex;
  gap: 28px;
  padding: 9px 0;
  animation: scroll-tape 32s linear infinite;
  font-family: var(--font-mono);
  font-size: 13.5px;
}
.ticker-tape:hover .ticker-tape-track { animation-play-state: paused; }
.tape-item { display: inline-flex; gap: 6px; align-items: center; padding: 0 4px; }
.tape-sym { color: var(--paper); font-weight: 600; }
.tape-up { color: #6FCF9B; }
.tape-down { color: #E8897F; }
@keyframes scroll-tape {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-tape-track { animation: none; }
}

/* ---------- Sections / eyebrows ---------- */
.section { padding: 28px 0; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 23px;
  letter-spacing: 0.2px;
  margin: 3px 0 0;
}
.section-link { font-size: 14px; font-weight: 600; color: var(--amber-deep); }

/* ---------- Market status strip ---------- */
.status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--bull-bg);
  color: var(--bull);
}
.status-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--bull); }
.status-pill.closed { background: var(--bear-bg); color: var(--bear); }
.status-pill.closed .dot { background: var(--bear); }
.index-list { display: flex; gap: 20px; flex-wrap: wrap; }
.index-item { font-family: var(--font-mono); font-size: 13px; display: flex; gap: 6px; }
.index-item .idx-name { color: var(--text-muted); }
.index-item.up .idx-chg { color: var(--bull); }
.index-item.down .idx-chg { color: var(--bear); }

/* ---------- Chips (trending) ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.chip.topic { background: var(--neutral-bg); color: var(--text); font-weight: 500; }
.chip .up { color: var(--bull); }
.chip .down { color: var(--bear); }

/* ---------- Cards (Trending / index cards, kept for other pages) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.badge {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 4px;
  background: var(--neutral-bg);
  color: var(--text-muted);
}
.badge.secondary {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text-muted);
  font-weight: 500;
}
.badge.secondary.dark { border-color: #3A4760; color: #B9C2D0; }
.ticker-tag {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  background: #E8EAE1;
  padding: 3px 8px;
  border-radius: 4px;
}

/* ---------- Headline row (core scanning unit) ----------
   One headline per row, dense but readable. Priority items (used only for
   the Breaking strip) get a thin amber left edge as a quiet secondary cue
   when they also show up in the regular feed. No summary, no sentiment. */
.news-list { display: flex; flex-direction: column; gap: 2px; }

.headline-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid transparent;
  border-radius: 4px;
  padding: 12px 14px;
}
.headline-row + .headline-row { margin-top: 6px; }
.headline-row.priority-high { border-left-color: var(--amber); }

.hr-tickers { display: flex; gap: 6px; flex-wrap: wrap; }

.hr-headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
  color: var(--text);
}
.hr-headline:hover { color: var(--amber-deep); text-decoration: underline; }

.hr-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-muted);
  justify-self: end;
}
.hr-meta.dark { color: #90A0B6; }
.hr-dot { opacity: 0.6; }

@media (max-width: 720px) {
  .headline-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "tickers save"
      "headline headline"
      "meta meta";
    row-gap: 8px;
  }
  .hr-tickers { grid-area: tickers; }
  .hr-headline { grid-area: headline; }
  .hr-meta { grid-area: meta; justify-self: start; }
  .headline-row .save-btn { grid-area: save; }
}

/* ---------- Breaking / High Priority strip ---------- */
.featured-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 26px; }
.breaking-card {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-left: 6px solid var(--amber);
}
.breaking-card .eyebrow { color: var(--amber); }
.breaking-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.25;
  color: var(--paper);
}
.breaking-card .save-btn { align-self: flex-start; }
.breaking-headline:hover { color: var(--amber); text-decoration: underline; }
@media (max-width: 860px) {
  .featured-strip { grid-template-columns: 1fr; }
}
.save-btn {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 14px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  justify-self: end;
}
.save-btn.saved { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.save-btn .save-icon { font-size: 13px; line-height: 1; }
.save-btn.dark { border-color: #3A4760; color: var(--paper); }
.save-btn.dark.saved { background: var(--amber); color: var(--ink); border-color: var(--amber); }
@media (max-width: 480px) {
  .save-btn .save-label { display: none; }
  .save-btn { padding: 8px 10px; }
}

/* ---------- Relevance scope selector (Essential / Relevant / All Signals) ---------- */
.scope-selector { display: inline-flex; gap: 4px; background: var(--neutral-bg); border-radius: 999px; padding: 3px; }
.scope-btn {
  background: transparent;
  border: 0;
  padding: 7px 14px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
}
.scope-btn.active { background: var(--ink); color: var(--paper); }

.badge.rel-industry { border-color: var(--amber-deep); color: var(--amber-deep); }
.badge.rel-macro { border-color: var(--neutral); color: var(--neutral); }
.ticker-tag.muted { background: var(--neutral-bg); color: var(--text-muted); }

/* ---------- My Stocks ---------- */
.my-stocks-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.my-stocks-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.notif-trigger {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 14px;
  min-height: 38px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.stock-chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.stock-chip {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 108px;
}
.stock-chip .sc-sym { font-family: var(--font-mono); font-weight: 700; font-size: 15px; display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.stock-chip .sc-sym .chg.up { color: var(--bull); }
.stock-chip .sc-sym .chg.down { color: var(--bear); }
.stock-chip .sc-count { font-size: 11.5px; color: var(--text-muted); font-family: var(--font-mono); }

/* ---------- Onboarding ---------- */
.onboarding-card {
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}
.onboarding-card h3 { font-family: var(--font-display); font-size: 22px; margin: 8px 0 6px; }
.onboarding-card p { color: var(--text-muted); font-size: 14.5px; margin: 0 0 16px; }
.onboarding-card .chip-row { justify-content: center; margin-bottom: 14px; }
.onboard-add { cursor: pointer; }
.onboard-add:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- Notification settings panel (mock only) ---------- */
.notif-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11,18,32,0.5);
  z-index: 60;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.notif-overlay.open { display: flex; }
.notif-panel {
  background: var(--surface);
  border-radius: 14px;
  padding: 20px;
  max-width: 420px;
  width: 100%;
}
.notif-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.notif-head button { background: transparent; border: 0; font-size: 18px; padding: 4px; }
.notif-note { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; margin: 0 0 16px; }
.notif-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.notif-option {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  row-gap: 2px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  cursor: pointer;
  min-height: 44px;
}
.notif-option:has(input:checked) { border-color: var(--ink); background: var(--paper); }
.notif-option input { margin-top: 3px; }
.notif-option-label { font-weight: 600; font-size: 14px; grid-column: 2; }
.notif-option-hint { font-size: 12px; color: var(--text-muted); grid-column: 2; }


.two-col { display: grid; grid-template-columns: 2fr 1fr; gap: 22px; align-items: start; }
.mini-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.mini-panel h3 { font-family: var(--font-display); font-size: 16px; margin: 0 0 10px; }
.mini-row { display: flex; justify-content: space-between; font-size: 13.5px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-family: var(--font-mono); }
.mini-row:last-child { border-bottom: none; }

/* ---------- Filter sidebar ---------- */
.filter-col { width: 100%; max-width: 250px; min-width: 220px; }
.filter-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.filter-group { margin-bottom: 18px; }
.filter-group h4 { font-family: var(--font-mono); text-transform: uppercase; font-size: 12px; letter-spacing: 0.04em; color: var(--text-muted); margin: 0 0 8px; }
.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  padding: 8px 6px;
  min-height: 36px;
  border-radius: 4px;
  cursor: pointer;
}
.filter-option:hover { background: var(--paper); }
.filter-option input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--ink); flex: none; }

/* Selected filter chips */
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 8px 6px 12px;
  border-radius: 999px;
}
.filter-chip button {
  background: rgba(255,255,255,0.15);
  border: 0;
  color: var(--paper);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 12px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Results toolbar: count + sort */
.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 13.5px;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.results-toolbar select {
  font-family: var(--font-body);
  font-size: 13.5px;
  padding: 8px 10px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  min-height: 38px;
}

/* Mobile filter trigger + drawer */
.mobile-filter-trigger { display: none; }
.filter-drawer-overlay { display: none; }
@media (max-width: 860px) {
  .mobile-filter-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px 16px;
    min-height: 44px;
    font-weight: 600;
    font-size: 14.5px;
    margin-bottom: 14px;
  }
  .filter-col { display: none; }
  .filter-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11,18,32,0.5);
    z-index: 50;
  }
  .filter-drawer-overlay.open { display: block; }
  .filter-drawer {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    max-height: 82vh;
    overflow-y: auto;
    background: var(--surface);
    border-radius: 14px 14px 0 0;
    padding: 18px 18px 26px;
    z-index: 51;
  }
  .filter-drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
  .filter-drawer-head button { background: transparent; border: 0; font-size: 20px; line-height: 1; padding: 6px; }
}

/* ---------- Tables (calendars) ---------- */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
}
.data-table { width: 100%; min-width: 560px; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.data-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: var(--neutral-bg);
  padding: 10px 12px;
}
.data-table td { padding: 10px 12px; font-size: 13.5px; border-top: 1px solid var(--line); }
.data-table td.mono { font-family: var(--font-mono); }

/* ---------- Tabs ---------- */
.tabbar { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tabbar button {
  background: transparent;
  border: 0;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
}
.tabbar button.active { color: var(--ink); border-bottom-color: var(--amber); }

/* ---------- Detail card (SEC filings / earnings on the ticker timeline —
   these are not "headlines" so they keep a slightly richer card, visually
   distinct from the dense headline-row list). ---------- */
.detail-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--neutral);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dc-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dc-title { font-family: var(--font-display); font-weight: 700; font-size: 17px; line-height: 1.25; }
.dc-body { font-size: 14px; color: var(--text-muted); line-height: 1.5; }
.dc-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-muted);
}
.dc-link { color: var(--amber-deep); font-weight: 600; }

/* ---------- Ticker page header ---------- */
.ticker-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 14px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.ticker-header .sym { font-family: var(--font-display); font-weight: 800; font-size: 40px; }
.ticker-header .company { color: var(--text-muted); font-size: 14px; margin-top: 2px; }
.ticker-price { text-align: right; }
.ticker-price .px { font-family: var(--font-mono); font-size: 26px; font-weight: 700; }
.ticker-price .chg { font-family: var(--font-mono); font-size: 14px; }
.ticker-price .chg.up { color: var(--bull); }
.ticker-price .chg.down { color: var(--bear); }

/* ---------- Watchlist ---------- */
.watchlist-add { display: flex; gap: 8px; margin-bottom: 16px; }
.watchlist-add input {
  flex: 1;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  text-transform: uppercase;
}
.btn {
  background: var(--ink);
  color: var(--paper);
  border: 0;
  padding: 9px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 13px;
}
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.wl-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 8px; gap: 10px; }
.wl-row .sym { font-family: var(--font-mono); font-weight: 700; }
.wl-order-btns { display: flex; gap: 4px; }
.wl-order-btns button {
  background: var(--neutral-bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  width: 28px;
  height: 28px;
  font-size: 13px;
  color: var(--text);
}
.wl-order-btns button:disabled { opacity: 0.35; }
.remove-btn { background: transparent; border: 0; color: var(--bear); font-size: 12px; font-weight: 600; }

.empty-state { padding: 32px 16px; text-align: center; color: var(--text-muted); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty-state b { display: block; color: var(--text); font-family: var(--font-display); font-size: 17px; margin-bottom: 4px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #93A0B4; margin-top: 40px; padding: 30px 0 26px; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer-brand .wordmark { font-size: 20px; }
.footer-domain { font-family: var(--font-mono); font-size: 12.5px; margin-top: 6px; color: #6E7C93; }
.footer-note { font-size: 11.5px; margin-top: 14px; color: #556278; max-width: 520px; line-height: 1.6; }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links h5 { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: #6E7C93; margin: 0 0 8px; }
.footer-links a { display: block; font-size: 13px; padding: 3px 0; color: #B9C2D0; }
.footer-bottom { border-top: 1px solid #212D3F; margin-top: 24px; padding-top: 16px; font-size: 11.5px; color: #556278; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .card-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-flex; }
  .site-nav ul { display: none; flex-direction: column; }
  .site-nav.open ul { display: flex; }
  .site-search { order: 3; max-width: none; flex-basis: 100%; }
}
