/* ============================================================
   The Market Terminal — shared chrome (topbar, mega menu, footer)

   Loaded by every page (legacy HTML and the v3 dashboard alike).
   Tokens come from src/shared/tokens.css; this file only defines
   layout + component rules that consume those tokens.
   ============================================================ */

/* ============ TOPBAR — two tier ============ */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: oklch(from var(--paper) l c h / 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}
.topbar .row1 {
  display: flex; align-items: center; gap: 20px;
  height: 56px;
  max-width: 1560px; margin: 0 auto;
  padding: 0 24px;
}
.topbar .row2 {
  display: flex; align-items: center; gap: 12px;
  height: 44px;
  max-width: 1560px; margin: 0 auto;
  padding: 0 24px;
  border-top: 1px solid var(--rule-soft);
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark.tmt-mountain {
  width: 34px; height: 26px;
  color: var(--warm);
  display: block;
  flex-shrink: 0;
}
.brand-word {
  font-family: var(--serif);
  color: var(--ink);
  font-size: 17px; font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1;
  white-space: nowrap;
}
.brand-word em {
  font-style: italic;
  color: var(--warm);
  font-weight: 500;
}
.brand-tag {
  font-family: var(--sans);
  font-size: 9px; color: var(--ink-3);
  letter-spacing: 0.16em; text-transform: uppercase;
  margin-left: 4px;
  padding: 2px 6px; border: 1px solid var(--rule); border-radius: 3px;
  align-self: center;
}

.nav-main { display: flex; gap: 2px; margin-left: 4px; flex: 0 1 auto; flex-wrap: nowrap; overflow: hidden; min-width: 0; }
.nav-main a, .nav-main button {
  padding: 8px 10px; border-radius: 4px;
  color: var(--ink-1); font-size: 13px; font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.005em;
  display: inline-flex; align-items: center; gap: 4px;
  background: transparent; border: 0; cursor: pointer; font-family: inherit;
}
.nav-main a:hover, .nav-main button:hover { color: var(--ink); background: var(--paper-2); }
.nav-main a.active, .nav-main button.active {
  color: var(--ink); font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--warm);
  border-radius: 0;
}
.nav-main button .chev {
  font-size: 10px; color: var(--ink-3);
  transition: transform 140ms;
}
.nav-main button[aria-expanded="true"] .chev { transform: rotate(180deg); }

.tb-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.tb-btn {
  height: 34px; padding: 0 12px;
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--rule); border-radius: 6px;
  color: var(--ink-1); font-size: 12.5px; background: var(--card);
  transition: border-color 140ms, background 140ms;
  white-space: nowrap;
  font-family: inherit;
  position: relative;
}
.tb-btn:hover { border-color: var(--rule-strong); background: var(--card-2); }
.tb-btn.primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tb-btn.primary:hover { background: oklch(from var(--ink) calc(l + 0.05) c h); }
.tb-btn.icon { width: 34px; padding: 0; justify-content: center; }
.tb-btn.icon .dot {
  position: absolute; top: 7px; right: 7px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--down);
}

.tb-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--cool-bg); color: var(--cool);
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; font-size: 14px;
  letter-spacing: -0.02em;
  border: 1px solid var(--rule);
  text-decoration: none;
}

/* Row 2: search + session */
.search-v3 {
  flex: 1 1 300px; max-width: 560px; min-width: 240px;
  display: flex; align-items: center; gap: 10px;
  height: 32px; padding: 0 12px;
  border: 1px solid var(--rule); border-radius: 6px;
  color: var(--ink-2);
  background: var(--card);
  transition: border-color 140ms;
  font-size: 12.5px;
  font-family: inherit;
}
.search-v3:hover { border-color: var(--rule-strong); color: var(--ink); }
.search-v3 .g { color: var(--ink-3); font-size: 13px; }
.search-v3 .p { color: var(--ink-3); flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-v3 .kbd {
  padding: 1px 5px; border: 1px solid var(--rule); border-radius: 3px;
  font-size: 10px; color: var(--ink-2); background: var(--paper-1);
  font-family: var(--mono);
  flex-shrink: 0;
}

.session-v3 {
  display: inline-flex; align-items: center; gap: 10px;
  height: 32px; padding: 0 12px;
  font-size: 12px; color: var(--ink-1);
  font-family: var(--mono);
  flex-shrink: 0;
  white-space: nowrap;
  margin-left: auto;
}
.session-v3 .sep { color: var(--ink-4); }
.session-v3 .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--up);
  box-shadow: 0 0 0 3px var(--up-soft);
  animation: pulse 1.8s ease-in-out infinite;
}
.session-v3 .pulse.off {
  background: var(--ink-4);
  box-shadow: none;
  animation: none;
}
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.55; transform: scale(0.82); } }

/* Hamburger button — only visible on mobile (<820px) where .nav-main hides.
   Without it, phone users have no way to navigate. */
.tb-burger {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border: 1px solid var(--rule); border-radius: 6px;
  background: var(--card); color: var(--ink-1);
  cursor: pointer;
  font-family: inherit;
  flex-shrink: 0;
}
.tb-burger:hover { border-color: var(--rule-strong); background: var(--card-2); }
.tb-burger svg { width: 18px; height: 18px; display: block; }

/* Mobile nav drawer — slides from the left; backdrop dismisses. */
.mobile-nav-backdrop {
  position: fixed; inset: 0;
  background: oklch(0 0 0 / 0.42);
  backdrop-filter: blur(2px);
  z-index: 70;
  opacity: 0; visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
}
.mobile-nav-backdrop.open { opacity: 1; visibility: visible; }

.mobile-nav {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: min(320px, 86vw); z-index: 71;
  background: var(--paper);
  border-right: 1px solid var(--rule);
  box-shadow: 6px 0 24px oklch(0 0 0 / 0.18);
  display: flex; flex-direction: column;
  transform: translateX(-100%);
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
  padding-top: env(safe-area-inset-top, 0);
  padding-bottom: env(safe-area-inset-bottom, 0);
  overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); }

.mobile-nav-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--rule);
  flex-shrink: 0;
}
.mobile-nav-hd .brand-word { font-size: 16px; }
.mobile-nav-hd .x {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 6px;
  background: transparent; border: 0; color: var(--ink-2);
  font-size: 18px; cursor: pointer;
}
.mobile-nav-hd .x:hover { background: var(--paper-2); color: var(--ink); }

.mobile-nav-section {
  padding: 14px 12px 6px;
  font-family: var(--sans);
  font-size: 10.5px; font-weight: 700;
  color: var(--ink-3);
  letter-spacing: 0.14em; text-transform: uppercase;
}

.mobile-nav-list { display: flex; flex-direction: column; gap: 2px; padding: 2px 8px 8px; }
.mobile-nav-list a {
  display: flex; align-items: center;
  padding: 12px 14px;
  border-radius: 6px;
  color: var(--ink-1); text-decoration: none;
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  letter-spacing: -0.005em;
  min-height: 44px;
}
.mobile-nav-list a:hover { background: var(--paper-2); color: var(--ink); }
.mobile-nav-list a.active {
  color: var(--ink); font-weight: 600;
  box-shadow: inset 2px 0 0 var(--warm);
  background: var(--paper-1);
}
.mobile-nav-list a .desc {
  margin-left: auto;
  font-family: var(--sans);
  font-size: 11px; font-weight: 400;
  color: var(--ink-3);
}

/* Scroll-safe responsive topbar — progressive collapse */
@media (max-width: 1280px) {
  .nav-main a, .nav-main button { padding: 8px 10px; font-size: 12.5px; }
  .nav-main a[data-opt="2"], .nav-main button[data-opt="2"] { display: none; }
  .nav-main a[data-opt="1"], .nav-main button[data-opt="1"] { display: none; }
}
@media (max-width: 1120px) {
  .nav-main a, .nav-main button { padding: 7px 8px; font-size: 12px; }
  .nav-main a[data-opt="3"], .nav-main button[data-opt="3"] { display: none; }
  .brand-tag { display: none; }
  .session-xtra { display: none; }
}
@media (max-width: 980px) {
  .nav-main a[data-opt="4"], .nav-main button[data-opt="4"] { display: none; }
  .nav-main a[data-opt="5"], .nav-main button[data-opt="5"] { display: none; }
}
@media (max-width: 820px) {
  .topbar .row1 { gap: 10px; padding: 0 12px; }
  .topbar .row2 { padding: 0 12px; gap: 8px; }
  .nav-main { display: none; }
  .brand-tag { display: none; }
  .brand-word em { display: none; }
  /* Reveal the hamburger so users can reach the nav */
  .tb-burger { display: inline-flex; }
  /* Search bar tightens up on mobile so the topbar fits 360px screens */
  .search-v3 { min-width: 0; flex: 1 1 auto; }
  .search-v3 .p { font-size: 12px; }
  .search-v3 .kbd { display: none; }
  /* Topbar respects iOS notch */
  .topbar { padding-top: env(safe-area-inset-top, 0); }
}

/* Hover affordances are noisy on touch — fade them on hover-incapable
   devices so we don't leave "stuck-hovered" residue after taps. */
@media (hover: none) {
  .nav-main a:hover, .nav-main button:hover { background: transparent; }
  .tb-btn:hover { background: var(--card); border-color: var(--rule); }
  .rb-item:hover { background: transparent; }
}

/* ============ MEGA MENU (editorial port of legacy mega menu) ============ */
.mega-backdrop {
  position: fixed; inset: 0;
  background: oklch(0 0 0 / 0.35);
  z-index: 60;
  opacity: 0; visibility: hidden;
  transition: opacity 160ms ease;
}
.mega-backdrop.open { opacity: 1; visibility: visible; }

.mega {
  position: fixed; left: 0; right: 0; top: 56px;
  z-index: 61;
  background: var(--paper-1);
  border-bottom: 1px solid var(--rule);
  box-shadow: var(--shadow-lift);
  padding: 22px 24px 18px;
  max-height: 70vh; overflow-y: auto;
  opacity: 0; visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms;
}
.mega.open { opacity: 1; visibility: visible; transform: translateY(0); }

.mega-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  max-width: 1280px; margin: 0 auto;
}
@media (max-width: 1100px) { .mega-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .mega-grid { grid-template-columns: 1fr; } }

.mega-col-h {
  font-family: var(--sans);
  font-size: 10.5px; font-weight: 700;
  color: var(--ink-3);
  letter-spacing: 0.14em; text-transform: uppercase;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule-soft);
  margin: 0 0 10px;
}

.mega-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 8px; row-gap: 2px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
  transition: background 140ms, border-color 140ms;
  position: relative;
}
.mega-item:hover { background: var(--paper-2); border-color: var(--rule-soft); }
.mega-item.active { background: var(--warm-bg); border-color: var(--warm-soft); }
.mega-item-name {
  font-family: var(--serif);
  font-size: 14px; font-weight: 500;
  color: var(--ink); letter-spacing: -0.005em;
  line-height: 1.2;
  min-width: 0;
}
.mega-item.active .mega-item-name { color: var(--warm); font-weight: 600; }
.mega-item-desc {
  grid-column: 1 / -1;
  font-family: var(--sans);
  font-size: 11.5px; color: var(--ink-3);
  line-height: 1.35;
  text-wrap: pretty;
}
.mega-star {
  background: none; border: 0;
  color: var(--ink-4); font-size: 14px;
  padding: 2px 4px; border-radius: 3px;
  opacity: 0; transition: opacity 140ms, color 140ms, background 140ms;
  cursor: pointer; line-height: 1;
  align-self: start;
}
.mega-item:hover .mega-star { opacity: 1; }
.mega-star.starred { color: var(--warm); opacity: 1; }
.mega-star:hover { color: var(--warm); background: var(--paper-3); }

.mega-favs {
  max-width: 1280px; margin: 14px auto 0;
  padding-top: 12px;
  border-top: 1px solid var(--rule-soft);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.mega-favs-hint {
  font-family: var(--sans); font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}
.mega-fav-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--card);
  font-family: var(--sans); font-size: 11.5px;
  color: var(--ink-1);
  text-decoration: none;
  transition: border-color 140ms, color 140ms;
}
.mega-fav-chip:hover { border-color: var(--warm); color: var(--warm); }

/* ============ NAV "MORE ▾" DROPDOWN ============
   Small anchored panel for orphan tools (Commodities, Data Centers, Utilities,
   Relative Strength, News feed). Mounted at body level and
   positioned in JS so it escapes .nav-main's overflow:hidden clip. */
.more-backdrop {
  position: fixed; inset: 0;
  z-index: 60;
  background: transparent;
  display: none;
}
.more-backdrop.open { display: block; }

.more-menu {
  position: fixed;
  z-index: 61;
  min-width: 240px; max-width: 320px;
  background: var(--paper-1);
  border: 1px solid var(--rule);
  border-radius: 8px;
  box-shadow: var(--shadow-lift);
  padding: 6px;
  display: none;
}
.more-menu.open { display: block; }
/* Used briefly during open() to measure rendered width before final placement */
.more-menu.measure { display: block; visibility: hidden; }

.more-item {
  display: block;
  padding: 8px 10px;
  border-radius: 4px;
  text-decoration: none;
  color: var(--ink-1);
}
.more-item:hover { background: var(--paper-2); color: var(--ink); }
.more-item.active { background: var(--warm-bg); }
.more-item-name {
  display: block;
  font-family: var(--serif);
  font-size: 13.5px; font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.2;
  color: var(--ink);
}
.more-item.active .more-item-name { color: var(--warm); font-weight: 600; }
.more-item-desc {
  display: block;
  font-family: var(--sans);
  font-size: 11px; color: var(--ink-3);
  line-height: 1.3;
  margin-top: 2px;
}

/* Hide the "More" trigger when the hamburger takes over (<820px) — the same
   tools live in the mobile drawer's TOOL_REGISTRY sections. */
@media (max-width: 820px) {
  .nav-main button[data-more-toggle] { display: none; }
}

/* ============ INDICES RIBBON ============ */
.ribbon {
  position: sticky; top: 100px; z-index: 50;
  background: var(--card);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}
.ribbon-rail {
  display: flex; align-items: stretch;
  max-width: 1560px; margin: 0 auto;
  padding: 0 24px;
  overflow-x: auto;
  scrollbar-width: none;
}
.ribbon-rail::-webkit-scrollbar { display: none; }
.rb-item {
  flex: 1 0 auto; min-width: 130px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-right: 1px solid var(--rule-soft);
  cursor: pointer;
}
.rb-item:hover { background: var(--paper-1); }
.rb-item:last-child { border-right: 0; }
.rb-lhs { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rb-label {
  font-family: var(--sans); font-size: 9.5px; font-weight: 700;
  color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.12em;
  white-space: nowrap;
}
.rb-px {
  font-family: var(--mono); font-size: 13px; font-weight: 600;
  color: var(--ink); font-variant-numeric: tabular-nums;
}
.rb-pct {
  font-family: var(--mono); font-size: 11.5px; font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 2px 7px; border-radius: 4px;
  white-space: nowrap;
}
.rb-pct.up   { color: var(--up);   background: var(--up-bg); }
.rb-pct.down { color: var(--down); background: var(--down-bg); }
@media (max-width: 820px) {
  .ribbon { top: 56px; }
  /* Soft edge-fade so users see the ribbon scrolls horizontally on mobile.
     Scrollbar is already hidden; this is the only affordance otherwise. */
  .ribbon-rail {
    mask-image: linear-gradient(to right, transparent 0, black 14px, black calc(100% - 24px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, black 14px, black calc(100% - 24px), transparent 100%);
    -webkit-overflow-scrolling: touch;
    padding: 0 14px;
  }
  .rb-item { min-width: 110px; padding: 8px 12px; }
}

/* ============ HERO — base layout ============
   Mirrors .topbar/.ribbon-rail/.dash centering so the hero strip lines up with
   the rest of the dashboard chrome. Loaded as a real stylesheet (rather than
   only via the babel-injected CSS_V3) so it is reliably applied even before
   the JSX styles finish parsing. Visual rules (typography, pills, regimes,
   catalysts) still live in src/v3/styles.jsx. */
.hero {
  max-width: 1560px; margin: 0 auto;
  padding: 14px 24px 14px;
  border-bottom: 1px solid var(--rule-soft);
  display: flex; flex-direction: column; gap: 14px;
}
@media (max-width: 820px) {
  .hero { padding: 10px 14px; gap: 10px; }
}
/* Phones (≤ 430px): catalyst pills tend to overflow even with flex-wrap once
   you add the "This week" label + 4 earnings entries. Make the row scroll
   horizontally so each pill stays visually intact. */
@media (max-width: 430px) {
  .hero-catalysts {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Soft right-edge fade hints there's more to scroll */
    mask-image: linear-gradient(to right, black 0, black calc(100% - 18px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 0, black calc(100% - 18px), transparent 100%);
  }
  .hero-catalysts::-webkit-scrollbar { display: none; }
  .hero-catalysts .hca-item { flex-shrink: 0; }
  .hero-catalysts .hca-label { position: sticky; left: 0; background: var(--paper); }
}

/* ============ TWEAKS PANEL (floating, bottom-right; matches dashboard) ============ */
/* Both legacy chrome and the dashboard's React TweaksPanel mount this element
   only when the panel is open, so the default is display: flex. */
.tweaks {
  position: fixed; right: 20px; bottom: 20px; z-index: 110;
  width: 340px; max-height: calc(100vh - 40px);
  display: flex; flex-direction: column;
  background: var(--card);
  border: 1px solid var(--rule-strong);
  border-radius: 10px;
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  animation: slideUp 220ms ease;
}
.tweaks .tweaks-bd { overflow-y: auto; flex: 1; }
@keyframes slideUp { from { transform: translateY(8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.tweaks-hd {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  background: var(--paper-1);
  border-bottom: 1px solid var(--rule);
}
.tweaks-hd .t {
  font-family: var(--serif); font-weight: 600; flex: 1;
  font-size: 15px; color: var(--ink); letter-spacing: -0.01em;
}
.tweaks-hd .x {
  color: var(--ink-3);
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 4px;
  background: transparent; border: 0; cursor: pointer;
}
.tweaks-hd .x:hover { background: var(--paper-2); color: var(--ink); }
.tweaks-bd { padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.tweak-group .lbl {
  font-family: var(--sans); font-size: 10px;
  color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.14em;
  margin-bottom: 8px; font-weight: 700;
}
.tw-pick { display: flex; gap: 5px; flex-wrap: wrap; }
.tw-pick button {
  padding: 6px 11px;
  border: 1px solid var(--rule); border-radius: 20px;
  color: var(--ink-2); font-size: 11.5px;
  background: var(--card);
  font-family: var(--sans); font-weight: 500;
  cursor: pointer;
}
.tw-pick button.on {
  color: var(--paper); border-color: var(--ink); background: var(--ink); font-weight: 600;
}
.tw-pick button:hover { color: var(--ink); }
.reorder { display: flex; flex-direction: column; gap: 5px; }
.reorder-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px;
  border: 1px solid var(--rule); border-radius: 6px;
  background: var(--card);
  cursor: grab; user-select: none;
  font-family: var(--sans); font-size: 12px;
}
.reorder-item:hover { border-color: var(--rule-strong); }
.reorder-item.dragging { opacity: 0.4; }
.reorder-item.drag-over { border-color: var(--warm); background: var(--warm-bg); }
.reorder-item .gh { color: var(--ink-4); font-size: 13px; letter-spacing: -1px; }
.reorder-item .nm { flex: 1; color: var(--ink); }
.reorder-item .nm .e { color: var(--ink-3); font-size: 10px; display: block; }
.reorder-item .idx {
  font-family: var(--mono); color: var(--ink-4);
  font-size: 10.5px; font-variant-numeric: tabular-nums;
}

/* ============ FOOTER (editorial port) ============ */
.site-footer-v3 {
  margin-top: 48px;
  background: var(--paper-1);
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  color: var(--ink-2);
}
.footer-content {
  max-width: 1560px; margin: 0 auto;
  padding: 32px 24px 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 28px;
}
@media (max-width: 1100px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
@media (max-width: 640px)  { .footer-grid { grid-template-columns: 1fr; gap: 20px; } }

.footer-brand .footer-logo {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
  margin-bottom: 8px;
}
.footer-brand .footer-logo .brand-word { font-size: 16px; }
.footer-tagline {
  font-family: var(--serif);
  font-size: 13.5px; font-style: italic;
  color: var(--ink-2);
  line-height: 1.5;
  margin: 6px 0 0;
  max-width: 320px;
  text-wrap: pretty;
}

.footer-section-title {
  font-family: var(--sans);
  font-size: 10.5px; font-weight: 700;
  color: var(--ink-3);
  letter-spacing: 0.14em; text-transform: uppercase;
  margin: 0 0 10px;
}
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.footer-links a {
  font-family: var(--sans);
  font-size: 12.5px; color: var(--ink-1);
  text-decoration: none;
  transition: color 140ms;
}
.footer-links a:hover { color: var(--warm); }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--rule-soft);
  font-size: 11.5px; color: var(--ink-3);
}
.footer-bottom .legal a {
  color: var(--ink-2); text-decoration: none; margin-left: 14px;
}
.footer-bottom .legal a:hover { color: var(--ink); }
