/* ONCHAIN·RWA - black & white minimalism */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --fg: #000000;
  --muted: #666666;
  --faint: #999999;
  --line: #e5e5e5;
  --line-strong: #000000;
  --hover: #f5f5f5;
  --expanded: #fafafa;
  --mono: "SF Mono", "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --sans: -apple-system, "Helvetica Neue", "Inter", Arial, sans-serif;
}

/* dark palette: auto when the OS prefers dark AND the user hasn't picked a theme… */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #0a0a0a;
    --fg: #f2f2f2;
    --muted: #9a9a9a;
    --faint: #6f6f6f;
    --line: #262626;
    --line-strong: #f2f2f2;
    --hover: #161616;
    --expanded: #111111;
  }
}
/* …or whenever the user explicitly toggles to dark (overrides the OS preference either way) */
:root[data-theme="dark"] {
  --bg: #0a0a0a;
  --fg: #f2f2f2;
  --muted: #9a9a9a;
  --faint: #6f6f6f;
  --line: #262626;
  --line-strong: #f2f2f2;
  --hover: #161616;
  --expanded: #111111;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--fg);
  font-size: 14px;
  line-height: 1.5;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}

button, .chip, .trade-link, .asset-row, input {
  touch-action: manipulation;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- top bar ---------- */

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 32px;
  border-bottom: 1px solid var(--line-strong);
}

.brand { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; text-decoration: none; color: inherit; }
a.brand:hover .brand-mark { text-decoration: underline; text-underline-offset: 3px; }

.brand-foot {
  display: inline-block; margin-bottom: 18px;
  font-family: var(--mono); font-size: 13px; color: var(--muted); text-decoration: none;
}
.brand-foot .brand-mark { font-size: 15px; color: var(--fg); }
.brand-foot:hover { color: var(--fg); }
.brand-foot:hover .brand-mark { text-decoration: underline; text-underline-offset: 3px; }

.footer-bottom { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.health-link {
  display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 13px;
  color: var(--fg); text-decoration: none; padding: 7px 12px; border: 1px solid var(--line); border-radius: 6px;
}
.health-link:hover { border-color: var(--fg); }
.health-dot { color: #16a34a; font-size: 10px; }
@media (prefers-color-scheme: dark) { .health-dot { color: #4ade80; } }
.copyright { margin-top: 12px; font-size: 11.5px; color: var(--faint); }

.brand-mark {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.04em;
}

.brand-sub {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stats-line {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.topbar-meta { display: flex; align-items: center; gap: 14px; }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--fg);
  border-radius: 8px;
  cursor: pointer;
  flex: 0 0 auto;
  transition: background 0.12s, color 0.12s;
}
.theme-toggle:hover { background: var(--fg); color: var(--bg); }

/* ---------- controls ---------- */

main { padding: 0 32px 48px; max-width: 1280px; margin: 0 auto; }

.controls { padding: 24px 0 16px; }

.search-wrap { margin-bottom: 16px; }

#search {
  width: 100%;
  max-width: 520px;
  padding: 10px 14px;
  font: inherit;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 0;
}

#search::placeholder { color: var(--faint); }

.filter-rows { display: flex; flex-direction: column; gap: 8px; }

.filter-group { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.filter-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  min-width: 84px;
}

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

.chip {
  font: inherit;
  font-size: 12px;
  font-family: var(--mono);
  padding: 4px 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg);
  cursor: pointer;
  border-radius: 999px;
  transition: border-color 0.1s;
}

.chip:hover { border-color: var(--fg); }

.chip[aria-pressed="true"] {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

/* ---------- table ---------- */

.table-scroll { overflow-x: auto; }

.asset-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

.asset-table th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--muted);
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}

.th-num, .td-num { text-align: right; }

.sort-btn {
  font: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.sort-btn:hover { color: var(--fg); }

.asset-row td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.asset-row { cursor: pointer; }
.asset-row:hover { background: var(--hover); }
.asset-row[aria-expanded="true"] { background: var(--expanded); }
.asset-row[aria-expanded="true"] td { border-bottom-style: dashed; }

.col-expand { width: 36px; }

.expand-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
  line-height: 1;
}

.expand-icon {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  transition: transform 0.15s;
}

.asset-row[aria-expanded="true"] .expand-icon { transform: rotate(90deg); color: var(--fg); }

.asset-name { font-weight: 600; }

.asset-ticker {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  margin-left: 8px;
}

.class-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}

.chain-tags { display: flex; gap: 4px; flex-wrap: wrap; }

.chain-tag {
  font-family: var(--mono);
  font-size: 11px;
  padding: 1px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  white-space: nowrap;
}

/* rights badges */

.badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border: 1px solid var(--fg);
  white-space: nowrap;
}

.badge-own { background: var(--fg); color: var(--bg); }
.badge-exp { background: var(--bg); color: var(--fg); }
.badge-mixed { background: var(--bg); color: var(--muted); border: 1px dashed var(--muted); }

/* ---------- expanded listings ---------- */

.listings-row > td {
  padding: 8px 12px 20px 48px;
  border-bottom: 1px solid var(--line);
  background: var(--expanded);
}

/* redeem chip + tooltip */

.redeem-chip {
  position: relative;
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  cursor: help;
  white-space: nowrap;
}

.redeem-yes { border: 1px solid var(--fg); color: var(--fg); }
.redeem-no { border: 1px dashed var(--muted); color: var(--muted); }

.has-tip { cursor: help; }

/* floating layer: tooltips + funding pop-up (positioned by app.js on <body>, never clipped) */
.floatpop {
  position: fixed;
  z-index: 1000;
  pointer-events: auto;                 /* stays open & selectable so the text can be copied/translated */
  user-select: text;
  -webkit-user-select: text;
  background: var(--fg);
  color: var(--bg);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28);
}
.floatpop[hidden] { display: none; }
.floatpop-tip {
  max-width: min(300px, calc(100vw - 16px));
  padding: 10px 12px;
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.45;
  white-space: normal;
}
.floatpop-fund {
  width: 232px;
  max-width: calc(100vw - 16px);
  padding: 12px 14px;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--line-strong);
}

.issuer-name {
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
  text-decoration-color: var(--faint);
}

/* trust score bar */

.trust-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust-bar {
  width: 46px;
  height: 9px;
  border: 1px solid var(--line);
  background: var(--bg);
  overflow: hidden;
  flex-shrink: 0;
}

.trust-fill { display: block; height: 100%; }

.trust-num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  min-width: 24px;
}

.listings-table {
  width: 100%;
  border-collapse: collapse;
}

.listings-table th {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 600;
  color: var(--faint);
  text-align: left;
  padding: 6px 5px 6px 0;
  border-bottom: 1px solid var(--line);
}

.listings-table td {
  padding: 9px 5px 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  vertical-align: middle;
}

.listings-table tr:last-child td { border-bottom: none; }

/* sortable listing headers */
.listings-table th.lsort { cursor: pointer; user-select: none; white-space: nowrap; }
.listings-table th.lsort:hover { color: var(--fg); }
.listings-table th.lsort:focus-visible { outline: 1px solid var(--fg); outline-offset: 1px; }
.listings-table th.lsort-active { color: var(--fg); }
.lsort-arrow { display: inline-block; width: 0.8em; margin-left: 2px; font-weight: 700; }
.th-num .lsort-arrow { margin-left: 4px; }

/* Expanded listings sit in their own horizontal-scroll container: on a wide screen the table
   fills the width; on a narrow one ONLY this panel scrolls, so the main table/page stay rigid. */
.listings-scroll { overflow-x: auto; }
.listings-table { min-width: 900px; }
.listings-table .token-sym { font-family: var(--mono); font-weight: 600; }
.cell-dash { display: block; text-align: center; color: var(--faint); }

/* On phones the 13-column listings table can't stay legible in one row -
   render each listing as a stacked "label: value" card. No horizontal scroll, no overlap. */
@media (max-width: 760px) {
  .listings-scroll { overflow-x: visible; }
  .listings-row > td { padding: 8px 14px 18px; }
  .listings-table { table-layout: auto; min-width: 0; }
  .listings-table thead { display: none; }
  .listings-table,
  .listings-table tbody { display: block; }
  .listings-table tr {
    display: block;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 6px 14px;
    margin-bottom: 10px;
    background: var(--bg);
  }
  .listings-table td {
    display: block;
    position: relative;
    border: none;
    padding: 7px 0 7px 40%;
    text-align: right;
    min-height: 1.5em;
  }
  .listings-table td + td { border-top: 1px solid var(--line); }
  .listings-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    top: 7px;
    width: 38%;
    text-align: left;
    color: var(--faint);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.5;
  }
  .listings-table .liq-basis,
  .listings-table .venue-type { display: block; }
  .listings-table .trust-wrap { justify-content: flex-end; }
}

/* Phone: stack the main asset table into vertical cards too, so the whole page fits the
   screen width instead of scrolling sideways. Expand button pinned top-right of each card. */
@media (max-width: 760px) {
  .table-scroll { overflow-x: visible; }
  .asset-table { min-width: 0; }
  .asset-table thead { display: none; }
  .asset-table,
  .asset-table > tbody { display: block; }
  .asset-row { display: block; position: relative; padding: 12px 40px 14px 4px; border-bottom: 1px solid var(--line-strong); }
  .asset-row > td { display: block; border: none; padding: 3px 0; text-align: left; }
  .asset-row[aria-expanded="true"] td { border-bottom-style: none; }
  .asset-row > td:first-child { position: absolute; top: 10px; right: 2px; width: auto; padding: 0; }
  .asset-row > td.td-num { text-align: left; }
  .asset-row .liq-stack { align-items: flex-start; }   /* mobile cards read left-aligned */
  .asset-row > td[data-label]::before {
    content: attr(data-label) ": ";
    color: var(--faint); font-size: 10px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.05em;
  }
  .asset-row .chain-tags { display: inline-flex; flex-wrap: wrap; gap: 4px; }
  .listings-row > td { padding-left: 6px; padding-right: 6px; }
}

/* asset logo + monogram */
.asset-cell { display: inline-flex; align-items: center; gap: 10px; }
.asset-id { display: inline-flex; flex-direction: column; }
.asset-logo { position: relative; flex: 0 0 auto; width: 26px; height: 26px; border-radius: 5px; overflow: hidden; background: var(--bg); border: 1px solid var(--line); }
.asset-logo img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.asset-mono { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: -0.02em; color: var(--muted); }

/* contract cell: shortened address + open / copy icon buttons */
.th-contract { white-space: nowrap; }
.contract-cell { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.contract-none { color: var(--faint); }
.contract-addr { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.ct-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; padding: 0; border-radius: 5px;
  border: 1px solid var(--line); background: var(--bg); color: var(--muted);
  cursor: pointer; transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.ct-btn:hover { color: var(--fg); border-color: var(--fg); }
.ct-btn:focus-visible { outline: 2px solid var(--fg); outline-offset: 1px; }
.copy-btn.copied { color: #16a34a; border-color: #16a34a; }
@media (prefers-color-scheme: dark) { .copy-btn.copied { color: #4ade80; border-color: #4ade80; } }
.price-flag { color: #b45309; cursor: help; margin-left: 3px; font-size: 11px; }
@media (prefers-color-scheme: dark) { .price-flag { color: #fbbf24; } }

/* pagination */
.pagination {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); flex-wrap: wrap;
}
.pg-left { display: inline-flex; align-items: center; gap: 8px; }
.pg-rows { font-family: var(--mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.pg-select { position: relative; }
.pg-select select {
  appearance: none; -webkit-appearance: none;
  font-family: var(--mono); font-size: 13px; color: var(--fg); background: var(--bg);
  border: 1px solid var(--line); border-radius: 6px; padding: 6px 26px 6px 10px; cursor: pointer;
}
.pg-select::after {
  content: '▾'; position: absolute; right: 9px; top: 50%; transform: translateY(-50%);
  pointer-events: none; color: var(--muted); font-size: 11px;
}
.pg-select select:hover { border-color: var(--fg); }
.pg-select select:focus-visible { outline: 2px solid var(--fg); outline-offset: 1px; }
.pg-right { display: inline-flex; align-items: center; gap: 10px; }
.pg-info { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.pg-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; font-size: 16px; line-height: 1;
  border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--fg); cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.pg-btn:hover:not(:disabled) { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.pg-btn:focus-visible { outline: 2px solid var(--fg); outline-offset: 1px; }
.pg-btn:disabled { opacity: 0.32; cursor: not-allowed; }

/* inner (per-asset) pagination - subtler + more compact than the global bar */
.pagination-inner {
  margin-top: 4px; padding-top: 10px; border-top: 1px dashed var(--line);
  font-size: 0.92em; opacity: 0.9;
}
.pagination-inner .pg-rows, .pagination-inner .pg-info { font-size: 11px; }
.pagination-inner .pg-select select { font-size: 12px; padding: 4px 22px 4px 8px; border-radius: 5px; }
.pagination-inner .pg-btn { width: 26px; height: 26px; font-size: 14px; border-radius: 5px; }
.pagination-inner .pg-info { color: var(--faint); }

.token-sym { font-family: var(--mono); font-weight: 600; }

.venue-type {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  margin-left: 6px;
}

.instrument-tag {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
}

.liq-basis { font-size: 10.5px; color: var(--faint); display: block; }

/* stacked liquidity cell: LP / vol 24h / OI - each figure on its own line with a hoverable tag */
.liq-stack { display: inline-flex; flex-direction: column; gap: 2px; align-items: flex-end; }
.liq-line { display: inline-flex; align-items: baseline; gap: 5px; white-space: nowrap; }
.liq-tag {
  font-family: var(--mono); font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--faint); border-bottom: 1px dotted var(--faint); cursor: help;
}
.liq-tag:hover, .liq-tag:focus-visible { color: var(--fg); border-bottom-color: var(--fg); outline: none; }
/* header cells that carry an explanation pop-up but aren't the sort control */
.asset-table th.has-tip, .th-contract.has-tip { cursor: help; }

.live-dot { color: #16a34a; font-size: 8px; vertical-align: middle; animation: livepulse 2s infinite; }
@keyframes livepulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* funding cell + sparkline pop-up */
.funding-cell { position: relative; cursor: help; white-space: nowrap; font-size: 12px; }
.fund-pos { color: var(--fg); }
.fund-neg { color: #c0392b; }
@media (prefers-color-scheme: dark) { .fund-neg { color: #ff6b5e; } }

/* borrow-fee cell (Avantis): long/short %/h shown where there's no funding */
.fee-cell { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 1px; cursor: help; white-space: nowrap; color: var(--muted); }
.fee-tag { font-family: var(--mono); font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--faint); }
.fee-line { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 11px; }
.fee-side { display: inline-block; min-width: 1.1em; margin-right: 3px; color: var(--faint); font-weight: 600; }

.spark-pop {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  z-index: 20;
  width: 220px;
  padding: 10px 12px;
  background: var(--fg);
  color: var(--bg);
  border-radius: 2px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s;
  pointer-events: none;
  text-align: left;
}
.funding-cell:hover .spark-pop,
.funding-cell:focus-visible .spark-pop { opacity: 1; visibility: visible; }
.spark-head { font-family: var(--sans); line-height: 1.4; margin-bottom: 6px; color: var(--bg); }
.spark-title { font-size: 11px; color: var(--faint); }
.spark-apr-big { font-family: var(--mono); font-size: 20px; font-weight: 600; line-height: 1.15; margin: 2px 0 1px; }
.spark-apr-big span { font-size: 10px; font-weight: 400; color: var(--faint); letter-spacing: 0.06em; }
.spark-apr-big.pos { color: #4ade80; }
.spark-apr-big.neg { color: #ff8a80; }
.spark-sub { font-family: var(--mono); font-size: 11px; color: var(--bg); }
.spark-note { font-family: var(--sans); font-size: 9.5px; color: var(--faint); margin-top: 2px; }
.spark-pop svg { display: block; width: 100%; height: auto; overflow: visible; }
.spark-line { fill: none; stroke-width: 1.5; }
.spark-line.pos { stroke: #4ade80; }
.spark-line.neg { stroke: #ff8a80; }
.spark-zero { stroke: var(--faint); stroke-width: 0.5; stroke-dasharray: 2 2; }
.spark-scale { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 9.5px; color: var(--faint); margin-top: 3px; }
.spark-empty { font-family: var(--mono); font-size: 11px; color: var(--faint); padding: 8px 0; }

/* funding pop-up renders inside .floatpop-fund (page-bg background), not the old dark .spark-pop */
.floatpop-fund .spark-head,
.floatpop-fund .spark-sub { color: var(--fg); }
.floatpop-fund svg { display: block; width: 100%; height: auto; overflow: visible; }
.spark-svg { margin-top: 2px; }
.spark-dot { stroke: var(--bg); stroke-width: 1; }
.spark-dot.pos { fill: #4ade80; }
.spark-dot.neg { fill: #ff8a80; }
.spark-dot.now { fill: var(--fg); }
.spark-legend { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; margin-top: 6px; color: var(--fg); }
.spark-legend .sd { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 4px; vertical-align: middle; }
.sd.pos { background: #4ade80; }
.sd.neg { background: #ff8a80; }
.spark-period { font-family: var(--sans); font-size: 9.5px; color: var(--faint); margin-top: 4px; }
.spark-period .now-inline { color: var(--fg); }

.gp-mark {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  padding: 1px 6px;
  margin-left: 6px;
  background: var(--fg);
  color: var(--bg);
  white-space: nowrap;
  vertical-align: middle;
}

.trade-link {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg);
  text-decoration: none;
  border: 1px solid var(--fg);
  padding: 4px 12px;
  white-space: nowrap;
  display: inline-block;
}

.trade-link:hover { background: var(--fg); color: var(--bg); }

.empty-state {
  padding: 48px 0;
  text-align: center;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
}

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--line-strong);
  padding: 20px 32px 40px;
  max-width: 1280px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ---------- responsive ---------- */

@media (max-width: 720px) {
  .topbar, .footer { padding-left: 16px; padding-right: 16px; }
  main { padding: 0 16px 32px; }
  .filter-label { min-width: 100%; }
}
