/* ============================================================
   Omega Gradient Compute — marketplace + console
   Gold/blueprint design system (matches index.html tokens)
   ============================================================ */
:root {
  --bg: #000;
  --panel: #0b0a08;
  --panel-2: #100e0a;
  --line: rgba(199, 192, 153, 0.16);
  --line-strong: rgba(199, 192, 153, 0.35);
  --tick: rgba(199, 192, 153, 0.35);
  --gold: #c7c099;
  --gold-bright: #e8dfb8;
  --green: #93ffba;
  --teal: #55f0d5;
  --amber: #ffc857;
  --red: #d09f9f;
  --text: #f5f4f0;
  --muted: #8a8779;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --display: "Space Grotesk", sans-serif;
  --body: "Inter", sans-serif;
  --grad: linear-gradient(90deg, var(--green), var(--teal), var(--amber));
}
* { margin: 0; padding: 0; box-sizing: border-box; }
/* [hidden] must beat our own display:flex/grid utilities below. */
[hidden] { display: none !important; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  background-image:
    linear-gradient(to right, rgba(199, 192, 153, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(199, 192, 153, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  background-attachment: fixed;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }
.mono { font-family: var(--mono); }
.wrap { max-width: 1360px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 768px) { .wrap { padding: 0 20px; } }

/* panels with corner registration ticks */
.panel { position: relative; background: var(--panel); border: 1px solid var(--line); }
.panel::before, .panel::after {
  content: ""; position: absolute; width: 8px; height: 8px; border: 1px solid var(--tick); pointer-events: none;
}
.panel::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.panel::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--muted);
}

/* ---------- top bar ---------- */
.topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 60;
}
.topbar-inner { display: flex; align-items: center; gap: 28px; height: 62px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 30px; height: 30px; }
.brand-name { font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: 0.01em; }
.brand-sub {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.28em; color: var(--gold);
  text-transform: uppercase; border: 1px solid var(--line-strong); padding: 3px 8px;
}
.topnav { display: flex; gap: 4px; margin-left: 12px; }
.topnav a {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); padding: 8px 14px; border: 1px solid transparent;
}
.topnav a:hover { color: var(--text); }
.topnav a.active { color: var(--gold-bright); border-color: var(--line); background: var(--panel); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.acct-chip {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  border: 1px solid var(--line); padding: 7px 12px; background: var(--panel);
  max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Topbar on phones: brand + account on row 1, nav wraps to a full-width row 2. */
@media (max-width: 768px) {
  .topbar-inner { flex-wrap: wrap; height: auto; padding: 10px 0; gap: 10px 12px; }
  .brand-sub { display: none; }
  .acct-chip { display: none; }
  .topbar-right { margin-left: auto; order: 2; }
  .topnav { order: 3; width: 100%; margin: 0; gap: 2px; justify-content: space-between; }
  .topnav a { padding: 8px 10px; font-size: 10px; letter-spacing: 0.1em; }
}

/* ---------- buttons ---------- */
.btn {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 10px 18px; border: 1px solid var(--line-strong); background: transparent; color: var(--gold-bright);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { background: rgba(199, 192, 153, 0.1); }
.btn.primary { background: var(--gold); color: #14120c; border-color: var(--gold); font-weight: 500; }
.btn.primary:hover { background: var(--gold-bright); border-color: var(--gold-bright); }
.btn.danger { color: var(--red); border-color: rgba(208, 159, 159, 0.4); }
.btn.danger:hover { background: rgba(208, 159, 159, 0.1); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.sm { padding: 6px 12px; font-size: 10px; }

/* ---------- page layout ---------- */
.page-head { padding: 34px 0 22px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.page-head h1 { font-family: var(--display); font-size: 30px; font-weight: 600; letter-spacing: -0.01em; }
.page-head h1 .grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-head .sub { color: var(--muted); font-size: 14px; margin-top: 6px; max-width: 640px; line-height: 1.6; }
.refresh-note { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase; }
.refresh-note .dot { color: var(--green); }

.market-grid { display: grid; grid-template-columns: 244px 1fr; gap: 22px; padding-bottom: 80px; align-items: start; }
@media (max-width: 1080px) { .market-grid { grid-template-columns: 1fr; } .filters { position: static; } }

/* ---------- filter rail ---------- */
.filters { padding: 20px; position: sticky; top: 84px; display: flex; flex-direction: column; gap: 22px; }
.filter-group { display: flex; flex-direction: column; gap: 10px; }
.filter-group .label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold);
}
.check-row { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text); cursor: pointer; user-select: none; }
.check-row input { accent-color: #c7c099; width: 14px; height: 14px; }
.check-row .count { margin-left: auto; font-family: var(--mono); font-size: 10px; color: var(--muted); }
.filters select, .filters input[type="text"] {
  background: var(--bg); border: 1px solid var(--line); color: var(--text); padding: 9px 10px; font-size: 13px; width: 100%;
}
.filters select:focus, .filters input:focus { outline: none; border-color: var(--line-strong); }
.gpu-count-row { display: flex; gap: 6px; flex-wrap: wrap; }
.gpu-count-row button {
  font-family: var(--mono); font-size: 11px; padding: 6px 0; flex: 1 0 28%;
  background: var(--bg); border: 1px solid var(--line); color: var(--muted);
}
.gpu-count-row button.on { border-color: var(--gold); color: var(--gold-bright); background: rgba(199, 192, 153, 0.08); }
.filters .reset { font-size: 11px; color: var(--muted); background: none; border: none; text-align: left; text-decoration: underline; }

/* ---------- listings table ---------- */
/* Horizontal scroll below the min table width so columns never clip past the panel. */
.listings { overflow-x: auto; }
.listings-head, #listing-rows { min-width: 900px; }
.listings-head, .listing-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.5fr) minmax(150px, 1.15fr) 84px 104px minmax(104px, 0.95fr) 92px 104px;
  gap: 16px; align-items: center; padding: 14px 22px;
}
.listings-head {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--line); background: var(--panel-2);
}
.listings-head .col-price, .listings-head .col-action { text-align: right; }
.listing-row, .listing-row * { scroll-margin-top: 140px; }
.listing-row { border-bottom: 1px solid rgba(199, 192, 153, 0.08); transition: background 0.12s; }
.listing-row:hover { background: rgba(199, 192, 153, 0.045); }
.listing-row:last-child { border-bottom: none; }
.price-cell { text-align: right; }
.action-cell { display: flex; justify-content: flex-end; }
.action-cell .btn { white-space: nowrap; }
.gpu-cell { display: flex; align-items: center; gap: 12px; }
.gpu-badge {
  font-family: var(--mono); font-size: 11px; font-weight: 500; color: #14120c; background: var(--gold);
  padding: 4px 8px; min-width: 34px; text-align: center;
}
.gpu-name { font-family: var(--display); font-weight: 600; font-size: 15px; }
.gpu-vram { font-family: var(--mono); font-size: 10px; color: var(--muted); letter-spacing: 0.08em; }
.spec-cell { font-family: var(--mono); font-size: 11px; color: var(--muted); line-height: 1.7; }
.spec-cell b { color: var(--text); font-weight: 500; }
.chip {
  display: inline-block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid var(--line); color: var(--muted); padding: 3px 8px;
}
.chip.teal { color: var(--teal); border-color: rgba(85, 240, 213, 0.3); }
.chip.green { color: var(--green); border-color: rgba(147, 255, 186, 0.3); }
.region-cell { font-size: 13px; color: var(--text); }
.price-cell { font-family: var(--mono); font-size: 15px; color: var(--gold-bright); font-variant-numeric: tabular-nums; }
.price-cell .per { font-size: 10px; color: var(--muted); }
.empty-state { padding: 60px 20px; text-align: center; color: var(--muted); font-size: 14px; }

/* ---------- modal / drawer ---------- */
.overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(3px);
  z-index: 100; display: none; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 7vh 16px 40px;
}
.overlay.open { display: flex; }
.modal { width: 100%; max-width: 520px; padding: 28px; }
.modal h2 { font-family: var(--display); font-size: 20px; font-weight: 600; margin-bottom: 4px; }
.modal .modal-sub { color: var(--muted); font-size: 13px; margin-bottom: 20px; line-height: 1.6; }
.modal .field { margin-bottom: 16px; }
.modal label {
  display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 7px;
}
.modal input[type="text"], .modal input[type="email"], .modal select, .modal textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line); color: var(--text); padding: 11px 12px; font-size: 14px;
}
.modal textarea { font-family: var(--mono); font-size: 11px; min-height: 88px; resize: vertical; }
.modal input:focus, .modal select:focus, .modal textarea:focus { outline: none; border-color: var(--line-strong); }
.modal .row { display: flex; gap: 12px; }
.modal .row > * { flex: 1; }
.modal .actions { display: flex; gap: 12px; margin-top: 22px; justify-content: flex-end; }
.modal .form-error { color: var(--red); font-size: 13px; margin-top: 12px; min-height: 18px; }
.summary-box { border: 1px solid var(--line); background: var(--panel-2); padding: 14px 16px; margin-bottom: 20px; }
.summary-box .srow { display: flex; justify-content: space-between; font-size: 13px; padding: 3px 0; }
.summary-box .srow .k { color: var(--muted); }
.summary-box .srow .v { font-family: var(--mono); font-size: 12px; }
.summary-box .srow.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px; }
.summary-box .srow.total .v { color: var(--gold-bright); font-size: 15px; }
.modal .gpu-count-row button { flex: 1 0 20%; }
.code-inputs input {
  font-family: var(--mono); font-size: 22px; letter-spacing: 0.5em; text-align: center; width: 100%;
  background: var(--bg); border: 1px solid var(--line); color: var(--text); padding: 12px;
}

/* ---------- console ---------- */
.console-grid { display: grid; grid-template-columns: 1fr 300px; gap: 22px; padding-bottom: 80px; align-items: start; }
@media (max-width: 960px) { .console-grid { grid-template-columns: 1fr; } }
.inst-list { display: flex; flex-direction: column; gap: 14px; }
.inst-card { padding: 18px 20px; display: grid; grid-template-columns: 1fr auto; gap: 14px; }
.inst-main { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.inst-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.inst-name { font-family: var(--display); font-weight: 600; font-size: 16px; }
.status-pill {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; padding: 3px 9px; border: 1px solid;
}
/* Filled tint + leading dot so status reads at a glance, not just by text hue. */
.status-pill::before { content: "●"; font-size: 8px; margin-right: 6px; vertical-align: middle; }
.status-pill.running { color: var(--green); border-color: rgba(147, 255, 186, 0.4); background: rgba(147, 255, 186, 0.08); }
.status-pill.provisioning { color: var(--amber); border-color: rgba(255, 200, 87, 0.4); background: rgba(255, 200, 87, 0.08); }
.status-pill.stopped, .status-pill.terminated { color: var(--muted); border-color: var(--line); }
.status-pill.error { color: var(--red); border-color: rgba(208, 159, 159, 0.4); background: rgba(208, 159, 159, 0.08); }
.inst-price.muted { color: var(--muted); }
.inst-meta { font-family: var(--mono); font-size: 11px; color: var(--muted); display: flex; gap: 18px; flex-wrap: wrap; }
.inst-meta b { color: var(--text); font-weight: 500; }
.ssh-line {
  display: flex; align-items: center; gap: 10px; background: var(--bg); border: 1px solid var(--line);
  padding: 8px 12px; font-family: var(--mono); font-size: 11px; color: var(--teal); overflow-x: auto; white-space: nowrap;
}
.ssh-line button { background: rgba(199, 192, 153, 0.08); border: 1px solid var(--line); color: var(--gold); font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; flex-shrink: 0; padding: 4px 9px; }
.ssh-line button:hover { color: var(--text); background: rgba(199, 192, 153, 0.16); border-color: var(--line-strong); }
.inst-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 10px; }
.inst-price { font-family: var(--mono); font-size: 14px; color: var(--gold-bright); }
.inst-accrued { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.side-panel { padding: 20px; position: sticky; top: 84px; display: flex; flex-direction: column; gap: 16px; }
.side-panel h3 { font-family: var(--display); font-size: 15px; font-weight: 600; }
.side-row { display: flex; justify-content: space-between; font-size: 13px; }
.side-row .k { color: var(--muted); }
.side-row .v { font-family: var(--mono); font-size: 12px; }
.side-row .v.ok { color: var(--green); }
.side-row .v.warn { color: var(--amber); }

/* ---------- toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--panel); border: 1px solid var(--line-strong); color: var(--text);
  padding: 12px 20px; font-size: 13px; z-index: 200; opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s;
  max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { border-color: rgba(208, 159, 159, 0.5); color: var(--red); }

.skeleton { padding: 40px 20px; text-align: center; color: var(--muted); font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }

/* ---------- listings toolbar (search results count + sort) ---------- */
.listings-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 22px; border-bottom: 1px solid var(--line); background: var(--panel-2); min-width: 900px;
}
.result-count { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.sort-label {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.sort-label select { background: var(--bg); border: 1px solid var(--line); color: var(--text); padding: 6px 8px; font-size: 12px; }
.sort-label select:focus { outline: none; border-color: var(--line-strong); }

/* per-GPU price under the node price on multi-GPU rows */
.price-cell .per-gpu { font-size: 10px; color: var(--muted); margin-top: 2px; }

/* ---------- loading shimmer ---------- */
.sk-row {
  display: flex; align-items: center; gap: 18px; padding: 18px 22px;
  border-bottom: 1px solid rgba(199, 192, 153, 0.08); min-width: 900px;
}
.sk { display: inline-block; height: 14px; background: rgba(199, 192, 153, 0.08); position: relative; overflow: hidden; }
.sk::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(199, 192, 153, 0.12), transparent);
  animation: sk-sweep 1.4s infinite;
}
@keyframes sk-sweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.sk-badge { width: 34px; height: 22px; }
.sk-w40 { width: 40%; } .sk-w25 { width: 25%; } .sk-w15 { width: 15%; }

/* ---------- deploy modal extras ---------- */
.inline-link {
  background: none; border: none; color: var(--teal); font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.1em; text-transform: lowercase; text-decoration: underline; padding: 0; margin-left: 8px;
}
.inline-link:hover { color: var(--text); }
.field-hint { font-size: 11px; color: var(--muted); margin-top: 6px; line-height: 1.6; min-height: 0; }
.alt-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.alt-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--text); padding: 10px 12px; font-size: 13px; text-align: left;
}
.alt-row:hover { border-color: var(--gold); }
.alt-row .alt-price { font-family: var(--mono); font-size: 12px; color: var(--gold-bright); white-space: nowrap; }

/* ---------- console extras ---------- */
.side-col { display: flex; flex-direction: column; gap: 22px; position: sticky; top: 84px; }
.side-col .side-panel { position: static; }
@media (max-width: 960px) { .side-col { position: static; } }
.balance-banner {
  border: 1px solid rgba(255, 200, 87, 0.4); background: rgba(255, 200, 87, 0.06); color: var(--text);
  padding: 12px 16px; margin-bottom: 18px; font-size: 13px; line-height: 1.6;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.balance-banner b { color: var(--amber); }
.inst-actions { display: flex; gap: 8px; }
.mini-copy {
  background: none; border: none; color: var(--muted); font-family: var(--mono); font-size: 9px;
  text-transform: uppercase; letter-spacing: 0.1em; text-decoration: underline; padding: 0;
}
.mini-copy:hover { color: var(--text); }
.ssh-line.jupyter { color: var(--green); }
.jupyter-link { color: var(--green); font-family: var(--mono); font-size: 11px; text-decoration: underline; flex-shrink: 0; }
.jupyter-link:hover { color: var(--text); }
.side-settings { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.threshold-row { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); }
.threshold-input { display: flex; align-items: center; gap: 6px; font-family: var(--mono); color: var(--text); }
.threshold-input input {
  width: 90px; background: var(--bg); border: 1px solid var(--line); color: var(--text); padding: 6px 8px; font-size: 13px;
}
.threshold-input input:focus { outline: none; border-color: var(--line-strong); }
.history-list { display: flex; flex-direction: column; gap: 7px; }
.history-row { display: flex; justify-content: space-between; font-size: 12px; }
.history-row .k { color: var(--muted); }
.history-row .v { font-family: var(--mono); }
.history-empty { font-size: 12px; color: var(--muted); }
.warn-text { color: var(--red); font-size: 10px; }

/* thin, on-brand scrollbars (the default cream bar was louder than the content) */
.listings, .ssh-line { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.listings::-webkit-scrollbar, .ssh-line::-webkit-scrollbar { height: 6px; width: 6px; }
.listings::-webkit-scrollbar-thumb, .ssh-line::-webkit-scrollbar-thumb { background: var(--line-strong); }
.listings::-webkit-scrollbar-track, .ssh-line::-webkit-scrollbar-track { background: transparent; }

/* ---------- mobile: listing table → stacked cards ---------- */
/* Below 720px the 7-col grid would push price + Deploy off-screen behind a
   horizontal scroll, so each listing becomes a self-contained card with the
   price and a full-width Deploy button always visible. */
@media (max-width: 720px) {
  /* Product first, filters collapse below it. */
  .market-grid { display: flex; flex-direction: column; }
  .filters { order: 2; }
  .listings { order: 1; overflow-x: visible; }
  .listings-toolbar { min-width: 0; }
  .listings-head { display: none; }
  #listing-rows { min-width: 0; }

  .listing-row {
    display: grid;
    grid-template-columns: auto auto 1fr;
    grid-template-areas:
      "gpu    gpu    price"
      "specs  specs  specs"
      "fabric type   region"
      "action action action";
    gap: 10px 12px;
    padding: 18px 16px;
  }
  .listing-row .gpu-cell { grid-area: gpu; }
  .listing-row .price-cell { grid-area: price; text-align: right; align-self: start; }
  .listing-row .spec-cell { grid-area: specs; }
  .listing-row .fabric-cell { grid-area: fabric; }
  .listing-row .type-cell { grid-area: type; }
  .listing-row .region-cell { grid-area: region; justify-self: end; align-self: center; }
  .listing-row .action-cell { grid-area: action; }
  .listing-row .action-cell .btn { width: 100%; padding: 12px; }

  /* Filter rail becomes a tap-to-open disclosure so it isn't a wall of checkboxes. */
  .filters.collapsed .filter-group,
  .filters.collapsed .reset { display: none; }
  .filter-toggle {
    display: flex; align-items: center; justify-content: space-between; width: 100%;
    font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--gold); background: none; border: none; padding: 0;
  }
  .filter-toggle::after { content: "+"; font-size: 16px; }
  .filters:not(.collapsed) .filter-toggle::after { content: "−"; }
}
@media (min-width: 721px) {
  .filter-toggle { display: none; }
}

/* ---------- FAQ blocks (compute / supply) ---------- */
.faq-section { padding: 56px 0 72px; border-top: 1px solid var(--line); margin-top: 48px; }
.faq-section h2 { font-family: var(--display); font-size: 24px; letter-spacing: -0.02em; margin: 6px 0 22px; }
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; align-items: start; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }
.faq-item { padding: 0; }
.faq-item summary { display: block; list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; top: 18px; right: 22px;
  font-family: var(--mono); font-size: 16px; line-height: 1; color: var(--gold);
  transition: color 0.15s ease;
}
.faq-item[open] summary::after { content: "–"; color: var(--gold-bright); }
.faq-item summary:hover::after, .faq-item summary:hover h3 { color: var(--gold-bright); }
.faq-item h3 { font-family: var(--display); font-size: 16px; letter-spacing: -0.01em; margin: 0; transition: color 0.15s ease; }
.faq-answer { margin: 0 24px; padding: 14px 0 22px; border-top: 1px solid var(--line); }
.faq-item p { color: var(--muted); font-size: 13.5px; line-height: 1.7; margin: 0; }
.faq-item p b { color: var(--gold); font-weight: 500; }
.faq-item a { color: var(--gold); }
.faq-item a:hover { color: var(--gold-bright); }

/* ---------- snapshot section (build-time pre-rendered catalog) ---------- */
.snapshot-section { border-top: 1px solid var(--line); margin-top: 48px; padding: 56px 0 24px; }
.snapshot-section h2 { font-family: var(--display); font-size: 24px; letter-spacing: -0.02em; margin: 6px 0 18px; }
.aeo-snapshot .snapshot-meta { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green); margin: 0 0 10px; }
.aeo-snapshot > p { color: var(--muted); font-size: 13.5px; line-height: 1.7; max-width: 78ch; margin: 0 0 6px; }
.aeo-snapshot a { color: var(--gold); }
.aeo-snapshot a:hover { color: var(--gold-bright); }
/* The injected table scrolls inside its own container so it can never force
   body-level horizontal scroll on narrow viewports. */
.snapshot-table-scroll { overflow-x: auto; margin: 16px 0 8px; }
.aeo-snapshot table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 13px; }
.aeo-snapshot th {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line-strong);
}
.aeo-snapshot td { padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--text); white-space: nowrap; }
.aeo-snapshot tbody tr:hover td { background: var(--panel-2); }

/* ---------- site footer (shared) ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 64px; }
.site-footer .foot-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; padding: 48px 0 40px; }
@media (max-width: 768px) { .site-footer .foot-inner { grid-template-columns: 1fr; gap: 28px; } }
.site-footer h4 { font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin: 0 0 16px; }
.site-footer a { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 10px; text-decoration: none; transition: color .2s ease; }
.site-footer a:hover { color: var(--gold-bright); }
.site-footer .foot-legal { border-top: 1px solid var(--line); padding: 14px 0; text-align: center; font-family: var(--mono); font-size: 9px; letter-spacing: 0.2em; color: var(--muted); text-transform: uppercase; }
