/* dexgc — a trader's tool.
   Pages lead with an answer and a next action; tables appear where a table is
   genuinely the right form, not as the default one. */

:root {
  --bg: #ffffff;
  --surface: #f6f7f9;
  --surface-2: #eef0f4;
  --border: #e1e5ea;
  --border-strong: #cbd2db;
  --text: #12151a;
  --muted: #5d6672;
  --faint: #8b95a3;
  --accent: #1257c9;
  --accent-soft: #e8f0fd;

  /* Polarity pair for funding rates. Green/red is the finance reflex and wrong
     twice here: colourblind readers cannot separate it (deuteranopia dE 5.5,
     below the usable floor), and a positive rate is not "good" — longs pay
     shorts, so the sign favours whichever side you are on. Blue and orange
     separate under every simulated deficiency (dE 24.7 light, 26.8 dark) and
     carry no verdict. The sign is always printed, so colour is never alone. */
  --pos: #2a78d6;
  --neg: #eb6834;
  --flat: #5d6672;
  --pos-soft: #e9f1fc;
  --neg-soft: #fdefe8;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 1px 3px rgba(16, 24, 40, 0.04);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1015;
    --surface: #151920;
    --surface-2: #1c212a;
    --border: #252b35;
    --border-strong: #39414e;
    --text: #e7eaef;
    --muted: #9aa4b2;
    --faint: #6f7a89;
    --accent: #6aa6ff;
    --accent-soft: #16243a;
    /* The same two hues stepped for the dark surface, not an automatic flip. */
    --pos: #3987e5;
    --neg: #d95926;
    --flat: #9aa4b2;
    --pos-soft: #14243c;
    --neg-soft: #2e1a11;
    --shadow: none;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }

/* ---------- header ---------- */

header.site {
  position: sticky; top: 0; z-index: 30;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
}
header.site .wrap {
  display: flex; align-items: center; gap: 16px;
  padding-block: 11px; flex-wrap: wrap;
}
.brand {
  font-weight: 660; font-size: 17px; letter-spacing: -0.02em;
  text-decoration: none; color: var(--text); flex: none;
}
nav.site { display: flex; gap: 4px; flex-wrap: wrap; }
nav.site a {
  color: var(--muted); text-decoration: none; font-size: 14px;
  padding: 5px 10px; border-radius: var(--radius-sm);
}
nav.site a:hover { color: var(--text); background: var(--surface); }
nav.site a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); font-weight: 550; }
.language-menu { position: relative; flex: none; font-size: 13px; }
.language-menu > summary {
  display: flex; align-items: center; gap: 7px; min-height: 36px;
  padding: 6px 9px; border-radius: var(--radius-sm); cursor: pointer;
  color: var(--muted); list-style: none; user-select: none;
}
.language-menu > summary::-webkit-details-marker { display: none; }
.language-menu > summary:hover,
.language-menu[open] > summary { background: var(--surface); color: var(--text); }
.language-icon { width: 16px; height: 16px; opacity: .76; }
.language-chevron { width: 11px; height: 11px; opacity: .55; transition: transform 140ms ease; }
.language-menu[open] .language-chevron { transform: rotate(180deg); }
.language-options {
  position: absolute; z-index: 60; top: calc(100% + 7px); right: 0;
  width: 132px; padding: 6px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--bg); box-shadow: var(--shadow);
}
.language-options a {
  display: block; padding: 7px 9px; border-radius: var(--radius-sm);
  color: var(--muted); text-decoration: none;
}
.language-options a:hover { background: var(--surface); color: var(--text); }
.language-options a[aria-current="true"] { color: var(--accent); background: var(--accent-soft); font-weight: 600; }

/* ---------- search ---------- */

.search { position: relative; flex: 1 1 200px; min-width: 160px; max-width: 340px; }
.search input {
  width: 100%; padding: 8px 12px 8px 32px;
  border: 1px solid var(--border-strong); border-radius: 999px;
  background: var(--bg); color: var(--text); font: inherit; font-size: 14px;
}
.search input:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
.search::before {
  content: ""; position: absolute; left: 12px; top: 50%; width: 13px; height: 13px;
  margin-top: -7px; pointer-events: none; opacity: 0.55;
  background: var(--muted);
  -webkit-mask: no-repeat center/contain url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M7 1a6 6 0 1 0 3.7 10.7l3.3 3.3 1.4-1.4-3.3-3.3A6 6 0 0 0 7 1zm0 2a4 4 0 1 1 0 8 4 4 0 0 1 0-8z"/></svg>');
  mask: no-repeat center/contain url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M7 1a6 6 0 1 0 3.7 10.7l3.3 3.3 1.4-1.4-3.3-3.3A6 6 0 0 0 7 1zm0 2a4 4 0 1 1 0 8 4 4 0 0 1 0-8z"/></svg>');
}
.results {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(16, 24, 40, 0.14);
  max-height: 320px; overflow-y: auto; padding: 4px;
}
.results a {
  display: flex; justify-content: space-between; gap: 10px; align-items: baseline;
  padding: 8px 10px; border-radius: var(--radius-sm);
  text-decoration: none; color: var(--text); font-size: 14px;
}
.results a:hover, .results a.on { background: var(--accent-soft); color: var(--accent); }
.results .meta { color: var(--faint); font-size: 12px; }
.results .empty { padding: 10px; color: var(--muted); font-size: 13px; }

/* ---------- page furniture ---------- */

main { padding: 30px 0 72px; }
h1 { font-size: 27px; letter-spacing: -0.03em; margin: 0 0 8px; line-height: 1.2; }
h2 { font-size: 18px; letter-spacing: -0.01em; margin: 36px 0 12px; }
h3 { font-size: 15px; margin: 22px 0 8px; }
p.lead { color: var(--muted); margin: 0 0 20px; max-width: 66ch; font-size: 15px; }

/* A verdict states the conclusion in words before any table repeats it in
   numbers, and is written to be quotable as it stands. */
.verdict {
  border: 1px solid var(--border); border-left: 3px solid var(--accent);
  background: var(--surface); border-radius: var(--radius);
  padding: 14px 16px; margin: 0 0 24px; font-size: 15px; line-height: 1.6;
}
.verdict strong { font-weight: 620; }
.stamp { color: var(--faint); font-size: 13px; font-variant-numeric: tabular-nums; }

.card {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg); padding: 16px; box-shadow: var(--shadow);
}
.card + .card { margin-top: 14px; }
.card > h3:first-child { margin-top: 0; }

.grid { display: grid; gap: 14px; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

/* ---------- figures ---------- */

.figure { border: 1px solid var(--border); border-radius: var(--radius); padding: 13px 15px; background: var(--surface); }
.figure .k { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 550; }
.figure .v { font-size: 21px; font-variant-numeric: tabular-nums; margin-top: 5px; letter-spacing: -0.02em; }
.figure .sub { font-size: 12.5px; color: var(--faint); margin-top: 3px; }

.hero {
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  background: var(--surface); padding: 20px 22px;
}
.hero .k { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.hero .v {
  font-size: clamp(32px, 7vw, 46px); font-weight: 640; letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums; margin-top: 4px; line-height: 1.05;
  color: var(--accent);
}
.hero .sub { color: var(--muted); font-size: 14px; margin-top: 8px; }

/* ---------- opportunity cards ---------- */

.opps { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); }
.opp {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg); padding: 15px 16px; box-shadow: var(--shadow);
}
.opp:hover { border-color: var(--border-strong); }
.opp .action { font-size: 16px; font-weight: 620; letter-spacing: -0.015em; }
.opp .action .side { padding: 1px 7px; border-radius: 999px; font-size: 12px; font-weight: 600; vertical-align: 2px; margin-right: 6px; }
.opp .side.short { background: var(--pos-soft); color: var(--pos); }
.opp .side.long { background: var(--neg-soft); color: var(--neg); }
.opp .where { color: var(--muted); font-size: 13px; margin-top: 2px; }
.opp .rate { font-size: 27px; font-weight: 650; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; margin: 10px 0 2px; }
.opp .rate .unit { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 3px; }
.opp .why { font-size: 13px; color: var(--muted); line-height: 1.5; margin-top: 8px; }
.opp .facts { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 12px; color: var(--faint); }
.opp .facts b { color: var(--muted); font-weight: 550; font-variant-numeric: tabular-nums; }
.opp .facts .grow { margin-left: auto; }
.opp a.action, .opp a.action:visited, .opp .action a, .opp .action a:visited {
  color: var(--accent);
  text-decoration: none;
  border-radius: 4px;
}
.opp a.action:hover, .opp .action a:hover {
  color: var(--accent);
  background: var(--accent-soft);
}
.opp a.action:focus-visible, .opp .action a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* ---------- chips ---------- */

.chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 7px 12px; border: 1px solid var(--border-strong); border-radius: 999px;
  background: var(--bg); color: var(--text); font: inherit; font-size: 13.5px;
  cursor: pointer; text-decoration: none;
}
.chip:hover { background: var(--surface); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip[aria-pressed="true"] .chip-meta { color: rgba(255,255,255,0.78); }
.chip:disabled { opacity: 0.42; cursor: not-allowed; }
.chip-meta { color: var(--faint); font-size: 11.5px; font-variant-numeric: tabular-nums; }

/* ---------- forms ---------- */

.fields { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-size: 12.5px; color: var(--muted); font-weight: 550; }
.field input[type="text"], .field input[type="number"], .field select {
  padding: 9px 11px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--text); font: inherit; font-size: 15px;
  font-variant-numeric: tabular-nums; width: 100%;
}
.field input:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
.field .hint { font-size: 11.5px; color: var(--faint); }
.field .hint button {
  background: none; border: 0; padding: 0; font: inherit; font-size: 11.5px;
  color: var(--accent); cursor: pointer; text-decoration: underline;
}

.segmented { display: inline-flex; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); overflow: hidden; }
.segmented button {
  border: 0; background: var(--bg); color: var(--muted);
  padding: 9px 18px; font: inherit; font-size: 14px; cursor: pointer;
}
.segmented button + button { border-left: 1px solid var(--border-strong); }
.segmented button[aria-pressed="true"] { background: var(--accent); color: #fff; font-weight: 550; }

input[type="range"] { width: 100%; accent-color: var(--accent); }
.range-row { display: flex; align-items: center; gap: 12px; }
.range-row output { min-width: 54px; text-align: right; font-variant-numeric: tabular-nums; font-size: 15px; font-weight: 560; }

button.primary {
  padding: 10px 20px; border: 0; border-radius: var(--radius-sm); background: var(--accent);
  color: #fff; font: inherit; font-weight: 570; cursor: pointer;
}
.actions { display: flex; align-items: flex-end; gap: 10px; }

/* ---------- callout ---------- */

.callout {
  border: 1px solid var(--accent); background: var(--accent-soft);
  border-radius: var(--radius); padding: 13px 15px; font-size: 14px; line-height: 1.6;
}
.callout strong { font-weight: 620; }
.callout.warn { border-color: var(--neg); background: var(--neg-soft); }

/* ---------- tables ---------- */

.tablewrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { padding: 9px 12px; text-align: left; white-space: nowrap; }
th {
  background: var(--surface); font-weight: 600; font-size: 11.5px;
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted);
  border-bottom: 1px solid var(--border); position: sticky; top: 0;
}
tbody tr + tr td { border-top: 1px solid var(--border); }
tbody tr:hover td { background: var(--surface); }
tbody tr.applied td { background: var(--accent-soft); font-weight: 560; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td a { color: var(--accent); text-decoration: none; }
td a:hover { text-decoration: underline; }

details.more { margin-top: 18px; }
details.more > summary {
  cursor: pointer; color: var(--accent); font-size: 14px; padding: 8px 0;
  list-style: none;
}
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: "▸ "; }
details.more[open] > summary::before { content: "▾ "; }

.pos { color: var(--pos); }
.neg { color: var(--neg); }
.flat { color: var(--flat); }
.unknown, .nohistory { color: var(--faint); }

.tag {
  display: inline-block; font-size: 11px; padding: 1px 6px; border-radius: 4px;
  border: 1px solid var(--border); color: var(--muted); vertical-align: 1px;
}

/* ---------- breadcrumbs and FAQ ---------- */

.crumbs { font-size: 13px; color: var(--faint); margin-bottom: 10px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs span { margin: 0 6px; opacity: 0.6; }

/* Answers are visible to a crawler whether or not the reader opens them, and
   collapsed so a page of them stays scannable. */
.faq { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faqitem + .faqitem { border-top: 1px solid var(--border); }
.faqitem > summary {
  cursor: pointer; padding: 13px 16px; font-weight: 550; font-size: 15px;
  list-style: none;
}
.faqitem > summary::-webkit-details-marker { display: none; }
.faqitem > summary::after { content: "+"; float: right; color: var(--muted); font-weight: 400; }
.faqitem[open] > summary::after { content: "−"; }
.faqitem > summary:hover { background: var(--surface); }
.faqitem > p { margin: 0; padding: 0 16px 15px; color: var(--muted); line-height: 1.65; max-width: 74ch; }

/* ---------- outbound ---------- */

.cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px; border-radius: var(--radius-sm);
  background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 570; font-size: 15px;
}
.cta:hover { filter: brightness(1.08); }
.cta-sm {
  padding: 4px 10px; font-size: 13px; font-weight: 500;
  background: none; color: var(--accent); border: 1px solid var(--border-strong);
}
.cta-sm:hover { background: var(--accent-soft); filter: none; }

/* The disclosure sits with the links it describes, not only in the footer. */
.ctarow { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 16px; }
.ctarow .disclosure { color: var(--faint); font-size: 12.5px; max-width: 46ch; line-height: 1.5; }

/* ---------- identity marks ---------- */

/* The badge is a tinted field with the hue as its text, which reads at 20px in
   both themes without needing a contrast check per colour. */
.mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 21px; height: 21px; border-radius: 6px;
  font-size: 10.5px; font-weight: 700; letter-spacing: -0.02em;
  vertical-align: -5px; margin-right: 7px; flex: none;
  background: color-mix(in srgb, var(--mark) 15%, transparent);
  color: var(--mark);
}
.mark-lg { width: 30px; height: 30px; border-radius: 8px; font-size: 13px; vertical-align: -8px; }
.mark-icon { background: transparent; color: inherit; overflow: hidden; }
.mark-icon img { display: block; width: 100%; height: 100%; object-fit: contain; }

.mark-1 { --mark: #2a78d6; }
.mark-2 { --mark: #eb6834; }
.mark-3 { --mark: #1baf7a; }
.mark-4 { --mark: #b57f00; }
.mark-5 { --mark: #d1547f; }
.mark-6 { --mark: #007a3d; }
.mark-7 { --mark: #4a3aa7; }
.mark-8 { --mark: #0f7f96; }

@media (prefers-color-scheme: dark) {
  .mark-1 { --mark: #6aa6ff; }
  .mark-2 { --mark: #ff9163; }
  .mark-3 { --mark: #3fc79a; }
  .mark-4 { --mark: #e0ab35; }
  .mark-5 { --mark: #f08bb4; }
  .mark-6 { --mark: #35b878; }
  .mark-7 { --mark: #9d90ff; }
  .mark-8 { --mark: #46b8ce; }
}

/* ---------- utilities ---------- */

/* The content policy is script-src/style-src 'self', which blocks style
   attributes as well as inline blocks, so spacing lives in classes. */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 14px; }
.mt-3 { margin-top: 18px; }
.relative { position: relative; }
.field-asset { grid-template-columns: minmax(180px, 260px); }

/* ---------- sparkline ---------- */

.spark { display: block; overflow: visible; }
.spark .zero { stroke: var(--border-strong); stroke-width: 1; }
.spark .fill-pos { fill: var(--pos); opacity: 0.14; }
.spark .fill-neg { fill: var(--neg); opacity: 0.14; }
.spark .line-pos { fill: none; stroke: var(--pos); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.spark .line-neg { fill: none; stroke: var(--neg); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
td.spark-cell { padding: 4px 12px; }

.note { color: var(--muted); font-size: 13px; margin-top: 10px; max-width: 74ch; line-height: 1.6; }
.error { border: 1px solid var(--neg); border-radius: var(--radius); padding: 12px 14px; color: var(--neg); }

footer.site { border-top: 1px solid var(--border); padding: 24px 0 44px; color: var(--faint); font-size: 13px; }
footer.site a { color: var(--muted); }

/* Shown only when scripting is unavailable; the server-rendered form still
   works, so the page degrades rather than breaking. */
.js-only { display: none; }
.scripted .js-only { display: revert; }
.scripted .no-js { display: none; }

@media (max-width: 720px) {
  h1 { font-size: 22px; }
  .wrap { padding: 0 14px; }

  /* The header is not the page. On a phone it collapses to two rows: an
     identity line and a full-width search, with the sections scrolling
     sideways rather than wrapping into a block that pushes content off
     the screen. */
  header.site .wrap { gap: 8px 10px; padding-block: 9px; }
  .brand { order: 0; }
  .language-menu { order: 1; margin-left: auto; }
  .search { order: 2; flex-basis: 100%; max-width: none; }
  nav.site {
    order: 3; flex-basis: 100%; flex-wrap: nowrap;
    overflow-x: auto; scrollbar-width: none; gap: 2px;
    margin: 0 -14px; padding: 0 14px;
  }
  nav.site::-webkit-scrollbar { display: none; }
  nav.site a { white-space: nowrap; padding: 5px 9px; }

  th, td { padding: 8px 10px; }
  main { padding: 20px 0 56px; }
  .opp .rate { font-size: 24px; }
}

/* ---------- 2026 visual system ---------- */

:root {
    --bg: #ffffff;
    --surface: #f7f9fc;
    --surface-2: #eff4fb;
    --border: #e4e9f1;
    --border-strong: #cfd7e4;
    --text: #0d1528;
    --muted: #59657a;
    --faint: #66738a;
    --accent: #1769ff;
    --accent-soft: #edf4ff;
    --pos: #078c74;
    --neg: #ff4d43;
    --flat: #59657a;
    --pos-soft: #e8f7f3;
    --neg-soft: #fff0ef;
    --radius: 8px;
    --radius-sm: 6px;
    --shadow: none;
  color-scheme: light;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.006em;
}

.wrap { width: 100%; min-width: 0; max-width: 1360px; padding-inline: 32px; }
.narrow { max-width: 980px; }

header.site {
  position: sticky;
  top: 0;
  height: 64px;
  background: rgba(255,255,255,.96);
  border-bottom-color: var(--border);
  backdrop-filter: blur(12px);
}

header.site .wrap {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 32px;
  padding-block: 0;
}

.brand {
  align-self: center;
  line-height: 1;
}
.brand-logo { display: block; width: 88px; height: auto; }
header.site > .wrap > .brand { justify-self: start; }

nav.site { justify-self: center; align-items: stretch; gap: 38px; flex-wrap: nowrap; }
nav.site a {
  display: flex;
  align-items: center;
  position: relative;
  padding: 0;
  border-radius: 0;
  color: #273249;
  font-size: 15px;
  white-space: nowrap;
}
nav.site a:hover { color: var(--accent); background: transparent; }
nav.site a[aria-current="page"] { color: var(--accent); background: transparent; font-weight: 600; }
nav.site a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--accent);
}

.search {
  position: relative;
  justify-self: end;
  align-self: center;
  flex: none;
  width: 40px;
  min-width: 40px;
  max-width: none;
  margin-left: 0;
}
.search-toggle {
  display: block;
  position: relative;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.search-toggle:hover,
.search-toggle[aria-expanded="true"] { background: var(--surface); }
.search-toggle::before {
  content: "";
  position: absolute;
  inset: 11px;
  background: var(--text);
  -webkit-mask: no-repeat center/contain url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M10.5 3a7.5 7.5 0 1 0 4.72 13.33L20.9 22 22 20.9l-5.67-5.68A7.5 7.5 0 0 0 10.5 3zm0 1.8a5.7 5.7 0 1 1 0 11.4 5.7 5.7 0 0 1 0-11.4z"/></svg>');
  mask: no-repeat center/contain url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M10.5 3a7.5 7.5 0 1 0 4.72 13.33L20.9 22 22 20.9l-5.67-5.68A7.5 7.5 0 0 0 10.5 3zm0 1.8a5.7 5.7 0 1 1 0 11.4 5.7 5.7 0 0 1 0-11.4z"/></svg>');
}
.search-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.search-panel {
  position: absolute;
  z-index: 50;
  top: -2px;
  right: 0;
  width: min(380px, calc(100vw - 32px));
}
.search-panel input {
  width: 100%;
  height: 44px;
  padding: 9px 44px 9px 16px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  box-shadow: 0 10px 30px rgba(20,50,100,.12);
}
.search-panel input:focus { outline: 3px solid rgba(23,105,255,.14); }
.search::before { display: none; }
.results { top: calc(100% + 8px); border-radius: var(--radius); box-shadow: 0 16px 40px rgba(20,50,100,.14); }
.header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 18px;
  min-width: 0;
}
.language-menu { align-self: center; justify-self: end; margin-left: 0; font-size: 14px; }
.language-menu > summary { color: #273249; }

main { width: 100%; min-width: 0; flex: 1 0 auto; padding: 48px 0 64px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 36px; }
.page-head .stamp { margin: 0 0 3px; white-space: nowrap; }
h1 { font-size: clamp(34px, 4vw, 48px); line-height: 1.16; letter-spacing: -0.055em; margin-bottom: 10px; }
h2 { font-size: 23px; line-height: 1.3; letter-spacing: -0.025em; margin: 42px 0 14px; }
h3 { font-size: 17px; }
p.lead { max-width: 72ch; margin-bottom: 32px; font-size: 17px; color: var(--muted); }
.page-head .lead { margin-bottom: 0; }
.lead-accent { color: var(--accent); }
.stamp { color: var(--faint); font-size: 12px; }

.verdict,
.summary,
.callout {
  border: 1px solid #d9e7ff;
  border-left: 1px solid #d9e7ff;
  border-radius: var(--radius);
  background: #f5f9ff;
  padding: 18px 22px;
  margin: 0 0 30px;
  color: #24405f;
}

.opps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid #e4ebf6;
  border-radius: 10px;
  background: #f7f9fc;
  margin-bottom: 36px;
}
.opp { border: 0; border-radius: 0; padding: 28px 38px 35px; min-width: 0; background: transparent; }
.opp + .opp { border-left: 1px solid #dfe6f0; }
.opp:nth-child(n+4) { display: none; }
.opp-market { display: flex; align-items: center; justify-content: flex-start; gap: 20px; min-width: 0; }
.opp .action { font-size: 18px; }
.opp .where { display: flex; align-items: center; min-width: 0; color: var(--muted); font-size: 13px; white-space: nowrap; }
.opp .where .mark { width: 22px; height: 22px; margin-right: 7px; }
.opp .rate { margin: 28px 0 8px; font-size: clamp(32px, 3.2vw, 44px); font-weight: 650; line-height: 1.05; }
.opp .rate .rate-symbol { font-size: 1em; }
.opp .rate .unit { display: inline-block; max-width: 122px; margin-left: 14px; font-size: 13px; line-height: 1.35; }
.opp .why { font-size: 14px; }

.section-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 6px 0 12px; }
.section-head h2 { margin: 0; }
.section-title { display: flex; align-items: center; gap: 10px; min-height: 42px; }
.section-title .note { margin: 0; }
.section-info { color: var(--faint); font-size: 15px; }
.cta { border-radius: 5px; padding: 10px 18px; background: var(--accent); }
.cta-sm { border: 0; padding: 5px 0; background: transparent; }

.funding-tabs {
  display: flex; align-items: stretch; gap: 38px; overflow-x: auto;
  margin: -4px 0 18px; scrollbar-width: none;
}
.funding-tabs::-webkit-scrollbar { display: none; }
.funding-tabs a {
  position: relative; flex: none; padding: 0 0 12px;
  color: #273249; text-decoration: none; white-space: nowrap;
}
.funding-tabs a:hover { color: var(--accent); }
.funding-tabs a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.funding-tabs a[aria-current="page"]::after {
  content: ""; position: absolute; right: 0; bottom: 0; left: 0;
  height: 2px; border-radius: 2px; background: var(--accent);
}
.funding-note { margin: 14px auto 0; text-align: center; }

.grid { gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.grid .figure { border: 0; border-radius: 0; padding: 24px 28px; background: transparent; text-align: center; }
.grid .figure + .figure { border-left: 1px solid var(--border); }
.figure .k { font-size: 13px; letter-spacing: 0; text-transform: none; }
.figure .v { font-size: 29px; font-weight: 620; margin-top: 8px; }
.figure .sub { font-size: 13px; }

.card { padding: 22px; border-color: var(--border); }
.hero { padding: 30px; border-color: #d8e4f7; background: #f5f9ff; }
.hero .k { font-size: 14px; letter-spacing: 0; text-transform: none; }
.hero .v { font-size: clamp(46px, 6vw, 78px); color: var(--accent); margin-top: 10px; }

.tablewrap { border: 0; border-radius: 0; border-top: 1px solid var(--border); }
table { font-size: 14px; }
th, td { height: 58px; padding: 12px 18px; }
th { height: 52px; background: transparent; color: var(--muted); font-size: 12px; text-transform: none; letter-spacing: 0; }
.tablewrap tbody td { height: 66px; }
.tablewrap .mark { width: 36px; height: 36px; }
tbody tr + tr td { border-top-color: var(--border); }
tbody tr:hover td { background: #fafcff; }
td strong { font-size: 15px; }
.home-spread-table tbody tr:nth-child(n+5) { display: none; }
.detail-head { align-items: center; margin-bottom: 26px; }
.detail-head .lead { margin-bottom: 0; }
.detail-head h1 { display: flex; align-items: center; }
.detail-head h1 .mark { width: 44px; height: 44px; margin-right: 12px; }

.mark { width: 28px; height: 28px; border-radius: 50%; vertical-align: middle; margin-right: 10px; }
.mark-lg { width: 44px; height: 44px; font-size: 15px; vertical-align: middle; }
.identity { display: inline-flex; align-items: center; gap: 10px; line-height: 1.25; }
.identity .mark { margin-right: 0; }
.venue-line { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.venue-line .tag { margin: 0; }

.chips { gap: 10px; }
.chip { border-radius: 5px; padding: 8px 16px; }
.chip[aria-pressed="true"] { background: #fff; color: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.chip[aria-pressed="true"] .chip-meta { color: var(--accent); }

.fields { gap: 18px; }
.field > label { color: #2f3a50; font-size: 13px; }
.field input[type="text"], .field input[type="number"], .field select { height: 42px; border-radius: 5px; }
.segmented { width: 100%; border-radius: 5px; }
.segmented button { flex: 1; }
.segmented button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); }

[data-calc] { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 24px; }
[data-calc] > form.calc-form { grid-column: 1; grid-row: 1; margin: 0; padding: 18px; align-self: stretch; }
[data-calc] > [data-calc-result] {
  grid-column: 2; grid-row: 1; margin: 0; overflow: hidden;
  border: 1px solid #d8e4f7; border-radius: var(--radius); background: #f5f9ff;
}
[data-calc] > [data-calc-result] .hero {
  min-height: 286px; display: flex; flex-direction: column; justify-content: center;
  border: 0; border-radius: 0; background: transparent;
}
[data-calc] > [data-calc-result] .grid {
  margin: 0; border: 0; border-top: 1px solid #d8e4f7; border-radius: 0; background: transparent;
}
[data-calc] > [data-calc-result] .callout {
  margin: 0; border: 0; border-top: 1px solid #d8e4f7; border-radius: 0; background: transparent;
}
[data-calc] > :nth-child(n+3) { grid-column: 1 / -1; }

.calc-form .field-asset { display: block; }
.calc-form > .field-asset > .field { display: flex; }
.calc-form > h3 { margin: 12px 0 8px; }
.calc-form .position-title { display: none; }
.calc-form [data-calc-venues] { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.calc-form [data-calc-venues] .chip { justify-content: center; padding-inline: 6px; }
.calc-form [data-calc-venues] .chip-meta { display: none; }
.calc-form > .fields { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 14px; }
.calc-form > .fields > .field { display: grid; grid-template-columns: 116px minmax(0, 1fr); align-items: center; gap: 5px 14px; }
.calc-form > .fields > .field > label { margin: 0; }
.calc-form > .fields > .field-side { display: block; }
.calc-form .field-side > label { display: block; margin-bottom: 7px; }
.calc-form .field-side .segmented { width: 100%; }
.calc-form .field > .hint { grid-column: 2; }
.input-unit {
  display: flex; align-items: center; height: 42px;
  border: 1px solid var(--border-strong); border-radius: 5px; background: #fff;
}
.input-unit:focus-within { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
.calc-form .input-unit input[type="text"] { height: 40px; min-width: 0; border: 0; background: transparent; outline: 0; }
.input-unit > span { flex: none; padding: 0 12px; color: #273249; font-size: 13px; }
.calc-form .range-row { min-width: 0; }
.calc-form .range-row output {
  order: -1; display: inline-flex; align-items: center; justify-content: center;
  width: 58px; min-width: 58px; height: 42px; border: 1px solid var(--border);
  border-radius: 5px; background: #fff; text-align: center;
}
.calc-result-action { padding: 20px 24px 24px; text-align: center; }
.calc-result-action .cta { min-width: 186px; justify-content: center; }

.faq { border-radius: var(--radius); }
.faqitem > summary { padding: 16px 18px; }
.crumbs { margin-bottom: 22px; }
.note { color: var(--muted); font-size: 13px; max-width: 84ch; }

footer.site {
  flex: none;
  padding: 0;
  background: #f7f9fc;
  color: var(--muted);
}
footer.site .wrap { padding-top: 40px; padding-bottom: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 64px; min-height: 152px; }
.footer-brand .brand { display: inline-block; color: var(--text); }
.brand-logo-footer { width: 88px; }
.footer-brand p { margin: 14px 0 0; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-links strong { color: var(--text); font-size: 13px; margin-bottom: 2px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 13px; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  margin-top: 32px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  font-size: 12px;
  line-height: 1.8;
}
.footer-bottom span:last-child { flex: 1 1 400px; margin-left: auto; text-align: right; }

@media (max-width: 760px) {
  header.site .wrap { gap: 12px; }
  nav.site { gap: 18px; overflow-x: auto; scrollbar-width: none; }
  .language-menu { margin-left: 4px; }
  .opps { grid-template-columns: 1fr; }
  .opp + .opp { border-left: 0; border-top: 1px solid var(--border); }
  .opp-market { align-items: flex-start; flex-direction: column; }
  [data-calc] { grid-template-columns: 1fr; }
  [data-calc] > .card:nth-of-type(1), [data-calc] > form.card, [data-calc] > [data-calc-result], [data-calc] > :nth-child(n+4) { grid-column: 1; grid-row: auto; }
}

@media (min-width: 761px) and (max-width: 1000px) {
  header.site .wrap { gap: 12px; }
  nav.site { gap: 20px; }
  .header-actions { gap: 6px; }
  .opp { padding: 24px 18px; }
  .opp-market { align-items: flex-start; flex-direction: column; }
  .opp .rate { font-size: 34px; }
  .opp .rate .unit { font-size: 11px; max-width: none; white-space: nowrap; }
  .footer-bottom { flex-wrap: wrap; gap: 6px 20px; padding-block: 12px; }
  .footer-bottom span:last-child { width: 100%; margin-left: 0; }
}

@media (max-width: 720px) {
  .wrap { padding-inline: 18px; }
  header.site { height: auto; min-height: 60px; }
  header.site .wrap { display: flex; gap: 8px; padding-block: 8px; }
  header.site .wrap { flex-wrap: wrap; }
  header.site > .wrap > .brand { flex: 1 1 auto; }
  .brand-logo { width: 88px; }
  nav.site { order: 3; flex-basis: 100%; margin: 0 -18px -8px; padding: 0 18px; height: 42px; gap: 20px; }
  nav.site a { font-size: 13px; }
  .header-actions { order: 1; display: flex; gap: 4px; margin-left: auto; }
  .search { order: 1; margin-left: 0; }
  .language-menu { order: 2; margin: 0; }
  .language-menu > summary { padding-inline: 6px; }
  .search-panel { position: fixed; top: 10px; right: 18px; left: 18px; width: auto; }
  main { padding: 32px 0 40px; }
  h1 { font-size: 32px; }
  .page-head { align-items: flex-start; flex-direction: column; margin-bottom: 26px; }
  .opps { display: block; }
  .opp { padding: 22px; }
  .section-head { align-items: flex-start; }
  .section-head .cta { font-size: 13px; padding: 8px 10px; white-space: nowrap; }
  [data-calc] { gap: 14px; }
  [data-calc] > form.calc-form { padding: 18px; overflow: hidden; }
  .calc-form [data-calc-venues] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc-form > .fields > .field { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .calc-form > .fields > .field-side { display: block; }
  .calc-form .field > .hint { grid-column: 1; }
  .calc-form .range-row { width: 100%; }
  [data-calc] > [data-calc-result] .hero { min-height: 230px; padding-inline: 20px; }
  [data-calc] > [data-calc-result] .hero .v { font-size: 45px; }
  .grid.cols-4, .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr 1fr; }
  .grid .figure + .figure { border-left: 0; border-top: 1px solid var(--border); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 5px; padding-top: 14px; }
  .footer-bottom span:last-child { margin-left: 0; }
}

/* Supporting context stays visually attached to its table, clear of the footer. */
.note.table-note {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  max-width: none;
  margin: 20px 0 40px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  text-align: left;
}
.table-note-copy { flex: 1 1 440px; min-width: 0; }
.note-count {
  display: inline-block;
  margin-left: 6px;
  padding: 0 7px;
  border-radius: 4px;
  background: var(--bg);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
a.note-action, a.note-action:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 36px;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
a.note-action:hover { background: var(--accent-soft); border-color: var(--accent); }
a.note-action:focus-visible,
[data-calc-ladder] summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[data-calc-ladder] > details.more {
  margin-top: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
[data-calc-ladder] > details.more > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 14px 20px;
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
}
[data-calc-ladder] > details.more > summary:hover { background: var(--accent-soft); }
[data-calc-ladder] > details.more > summary::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(-45deg);
}
[data-calc-ladder] > details.more[open] > summary::before { transform: rotate(45deg); }
[data-calc-ladder] summary:focus-visible { outline-offset: -4px; }
@media (max-width: 720px) {
  .note.table-note { margin: 16px 0 28px; padding: 14px 16px; gap: 12px; }
  .table-note .note-action { min-height: 40px; }
  [data-calc-ladder] > details.more > summary { padding: 14px 16px; }
}

/* ---------- data-first home landing ---------- */

.home-landing {
  margin-top: -18px;
  padding-bottom: 0;
}

.home-hero {
  min-height: 272px;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(430px, .92fr);
  align-items: center;
  gap: 64px;
}

.home-hero-copy {
  padding: 18px 8px 8px;
}

.home-hero-copy h1 {
  max-width: 640px;
  margin: 0 0 14px;
  color: var(--text);
  font-size: clamp(42px, 4vw, 56px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.055em;
}

.home-hero-copy > p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.home-hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 30px;
}

.home-primary {
  min-width: 196px;
  min-height: 50px;
  justify-content: center;
  padding: 13px 24px;
  border-radius: 6px;
  font-size: 15px;
}

.home-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.home-secondary:hover { color: #0757e8; }

.market-snapshot {
  overflow: hidden;
  border: 1px solid #dbe4f1;
  border-radius: 9px;
  background: #fff;
}

.market-snapshot-head {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--border);
}

.market-snapshot-head strong {
  font-size: 15px;
  font-weight: 650;
}

.market-snapshot-head span {
  color: var(--faint);
  font-size: 11px;
  white-space: nowrap;
}

.snapshot-row {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 20px;
  color: var(--text);
  text-decoration: none;
}

.snapshot-row + .snapshot-row { border-top: 1px solid var(--border); }
.snapshot-row:hover { background: #fafcff; }

.snapshot-identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.snapshot-identity > .mark {
  width: 36px;
  height: 36px;
  margin: 0;
  font-size: 11px;
}

.snapshot-identity > span {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.snapshot-identity strong {
  font-size: 16px;
  line-height: 1.2;
}

.snapshot-identity small {
  min-width: 0;
  display: flex;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
  white-space: nowrap;
}

.snapshot-identity small .mark {
  width: 16px;
  height: 16px;
  margin: 0 5px 0 0;
  font-size: 0;
}

.snapshot-value {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 23px;
  font-weight: 680;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.snapshot-value small {
  margin-top: 4px;
  color: var(--faint);
  font-size: 10px;
  font-weight: 500;
}

[data-count-up] { font-variant-numeric: tabular-nums; }
[data-count-up].is-counting { display: inline-block; position: relative; }
.count-up-static { opacity: 0; }
.count-up-animated { position: absolute; inset: 0; text-align: inherit; pointer-events: none; }

.metric-number {
  display: inline-block;
  min-width: 5.6ch;
  text-align: right;
}

.snapshot-spread { color: var(--text); }

.home-tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 18px 0 34px;
}

.home-tool {
  min-width: 0;
  min-height: 94px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid #dbe4f1;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  transition: border-color 140ms ease, background-color 140ms ease;
}

.home-tool:hover {
  border-color: #a9c5f4;
  background: #fbfdff;
}

.home-tool-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 7px;
  background: #fff;
}

.home-tool-icon img {
  width: 25px;
  height: 25px;
}

.home-tool > span:nth-child(2) {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.home-tool strong {
  color: var(--text);
  font-size: 15px;
  line-height: 1.25;
}

.home-tool small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-tool-arrow {
  color: var(--accent);
  font-size: 20px;
  transition: transform 140ms ease;
}

.home-tool:hover .home-tool-arrow { transform: translateX(3px); }

.home-spreads { scroll-margin-top: 88px; }

.home-section-head {
  align-items: flex-end;
  margin: 0 0 8px;
}

.home-section-head h2 {
  margin: 0 0 4px;
  font-size: 22px;
}

.home-section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.home-section-action {
  display: flex;
  align-items: center;
  gap: 18px;
}

.home-section-action > span {
  color: var(--faint);
  font-size: 11px;
  white-space: nowrap;
}

.home-section-action .cta {
  min-height: 42px;
  padding: 10px 18px;
  font-size: 13px;
}

.home-spread-table {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.home-spread-table table { min-width: 950px; }
.home-spread-table th { height: 40px; }
.home-spread-table th:nth-child(7), .spreads-table th:nth-child(7) {
  width: 146px; max-width: 146px; white-space: normal; line-height: 1.4;
}
.home-spread-table tbody td { height: 44px; padding-block: 8px; }
.home-spread-table .mark { width: 30px; height: 30px; }

.home-table-more {
  position: sticky;
  left: 0;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-top: 1px solid var(--border);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.home-table-more:hover { background: #fafcff; }

.venue-coverage {
  min-height: 60px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.venue-coverage > strong {
  grid-column: 1 / -1;
  font-size: 14px;
  white-space: nowrap;
}

.venue-coverage > a {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  text-decoration: none;
}

.venue-coverage > a:hover { color: var(--accent); }

.venue-coverage .mark {
  width: 32px;
  height: 32px;
  margin: 0;
}

.venue-coverage a > span {
  min-width: 0;
  display: flex;
  flex-direction: column;
  font-size: 12px;
  line-height: 1.3;
  white-space: nowrap;
}

.venue-coverage small {
  overflow: hidden;
  color: var(--faint);
  font-size: 9px;
  text-overflow: ellipsis;
}

body:has(.home-landing) .footer-grid {
  grid-template-columns: 1.55fr repeat(3, 1fr);
}

/* ---------- dedicated funding-spread page ---------- */

.spreads-page { padding-bottom: 0; }

.spreads-head {
  align-items: flex-end;
  min-height: 142px;
  margin-bottom: 36px;
}

.spreads-head h1 {
  margin-bottom: 8px;
  font-size: clamp(42px, 4.2vw, 58px);
}

.spreads-head .lead { margin: 0; }

.spreads-section-head {
  align-items: flex-end;
  margin: 0 0 8px;
}

.spreads-section-head h2 {
  margin: 0 0 4px;
  font-size: 23px;
}

.spreads-section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.spreads-table {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.spreads-table table { min-width: 950px; }

@media (max-width: 900px) {
  .spreads-head {
    align-items: flex-start;
    min-height: 0;
    margin-bottom: 28px;
  }
  .spreads-head h1 { font-size: 44px; }
}

@media (max-width: 560px) {
  .spreads-head h1 { font-size: 36px; }
  .spreads-section-head { align-items: flex-start; }
  .spreads-section-head .cta { padding-inline: 12px; white-space: nowrap; }
}

@media (max-width: 1050px) {
  .home-hero {
    grid-template-columns: minmax(0, 1fr) minmax(390px, .9fr);
    gap: 34px;
  }
  .home-hero-copy h1 { font-size: 43px; }
  .home-tools { gap: 12px; }
  .home-tool { grid-template-columns: 42px minmax(0, 1fr) 16px; gap: 12px; padding-inline: 14px; }
  .home-tool-icon { width: 42px; height: 42px; }
  .venue-coverage { grid-template-columns: repeat(4, minmax(120px, 1fr)); }
  .venue-coverage > strong {
  grid-column: 1 / -1; grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .home-landing { margin-top: -4px; padding-bottom: 0; }
  .home-hero {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .home-hero-copy { padding: 0; }
  .home-hero-copy h1 { font-size: clamp(36px, 8vw, 46px); }
  .market-snapshot { width: 100%; }
  .home-tools { grid-template-columns: 1fr; margin-top: 26px; }
  .home-tool small { white-space: normal; }
  .home-section-head { align-items: flex-start; }
  .home-section-action { align-items: flex-end; flex-direction: column; gap: 8px; }
  .venue-coverage { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .home-hero-copy h1 { font-size: 36px; }
  .home-hero-copy > p { font-size: 15px; }
  .home-hero-actions { align-items: stretch; flex-direction: column; gap: 16px; }
  .home-primary { width: 100%; }
  .home-secondary { justify-content: center; }
  .market-snapshot-head { align-items: flex-start; flex-direction: column; gap: 2px; }
  .snapshot-row { padding-inline: 14px; }
  .snapshot-value { font-size: 19px; }
  .snapshot-identity small { max-width: 135px; overflow: hidden; text-overflow: ellipsis; }
  .home-section-action > span { display: none; }
  .home-section-action .cta { padding-inline: 12px; }
  .venue-coverage { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Venue outbound action and its disclosure form a single, readable row. */
.venue-action-bar {
  gap: 20px 32px;
  margin: 20px 0 32px;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.venue-action-bar .disclosure {
  flex: 1 1 480px;
  min-width: 0;
  max-width: none;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}
.venue-action-bar .cta { flex: 0 0 auto; justify-content: center; white-space: nowrap; }
@media (max-width: 720px) {
  .venue-action-bar { padding: 16px; gap: 16px; margin-bottom: 28px; }
  .venue-action-bar .disclosure { flex-basis: 100%; }
  .venue-action-bar .cta { width: 100%; min-height: 44px; }
}

#funding-results { scroll-margin-top: 80px; }
.funding-pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin: 20px 0; }
.funding-pagination p { margin: 0; color: var(--muted); font-size: 13px; }
.funding-pagination nav { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.funding-pagination nav a, .funding-pagination nav span { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 38px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; text-decoration: none; color: var(--muted); }
.funding-pagination nav a:hover { color: var(--accent); background: var(--accent-soft); }
.funding-pagination nav a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.funding-pagination nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.funding-pagination nav span { border-color: transparent; }
.funding-pagination nav [aria-disabled] { color: var(--faint); background: var(--surface); }
.funding-empty { text-align: center; color: var(--muted); padding: 40px 18px; }
@media (max-width: 720px) {
 .funding-pagination { align-items: flex-start; flex-direction: column; }
 .funding-pagination nav { gap: 4px; }
 .funding-pagination nav a, .funding-pagination nav span { min-width: 32px; min-height: 40px; padding-inline: 8px; }
}

/* Asset detail context and margin ladders. */
.asset-notes {
  margin: 20px 0;
  padding: 4px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.asset-note { padding: 16px 0; }
.asset-note + .asset-note { border-top: 1px solid var(--border); }
.asset-note h3 { margin: 0 0 6px; color: var(--text); font-size: 13px; font-weight: 600; }
.asset-note p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.85; }
details.asset-ladders { margin: 20px 0 40px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
details.asset-ladders > summary {
  display: flex; align-items: center; gap: 12px; min-height: 56px;
  padding: 14px 22px; background: var(--surface); color: var(--text); font-weight: 600;
}
details.asset-ladders > summary:hover { background: var(--accent-soft); }
details.asset-ladders > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
details.asset-ladders > summary::before {
  content: ""; width: 7px; height: 7px; flex: 0 0 7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg);
}
details.asset-ladders[open] > summary::before { content: ""; transform: rotate(45deg); }
details.asset-ladders[open] > summary { border-bottom: 1px solid var(--border); }
.asset-ladders > h3 { margin: 0; padding: 20px 22px 14px; font-size: 14px; }
.asset-ladders > .tablewrap + h3 { border-top: 1px solid var(--border); }
@media (max-width: 720px) {
  .asset-notes { padding-inline: 16px; margin-top: 16px; }
  details.asset-ladders { margin-bottom: 28px; }
  details.asset-ladders > summary, .asset-ladders > h3 { padding-inline: 16px; }
}

/* Responsive and keyboard refinements shared across the existing pages. */
:where(a) { color: var(--accent); text-decoration: none; text-underline-offset: 3px; }
:where(a:hover) { text-decoration: underline; }
/* Keep links discoverable inside prose; navigation and cards have their own cues. */
:where(main p a, main li a) { text-decoration: underline; }
:where(a, button, summary, [tabindex="0"]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.tablewrap:focus-visible { outline-offset: -2px; }
/* Small signed table values need more contrast than the large headline rates. */
td.num.neg { color: #d7352e; }
td.num.pos { color: #087c68; }
.footer-grid > * { min-width: 0; }
.footer-links a { overflow-wrap: anywhere; }
.home-tool small { white-space: normal; overflow: visible; }
.search-panel { top: calc(100% + 8px); }
.results [role="option"]:focus-visible { outline-offset: -2px; }
.skip-link {
  position: fixed; z-index: 100; top: 8px; left: 18px;
  padding: 10px 16px; border-radius: 6px; background: var(--accent); color: #fff;
  text-decoration: none; transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }
.data-freshness-note {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px;
  margin: 0 0 28px; padding: 8px 14px;
  border-left: 2px solid #d9b773;
  color: #786039; font-size: 12px; line-height: 1.8;
}
.data-freshness-note strong { flex: none; font-weight: 600; }
.data-freshness-note span { flex: 1 1 300px; }
.page-head + .data-freshness-note { margin-top: -12px; }
.home-hero-copy .data-freshness-note { margin: 20px 0 0; }
.sources-table table { min-width: 640px; }
.sources-table th:nth-child(3), .sources-table td:nth-child(3) {
  min-width: 280px; white-space: normal; line-height: 1.75;
}
[data-calc-result] { position: relative; }
[data-calc] > * { min-width: 0; max-width: 100%; }
[data-calc-ladder], [data-calc-ladder] > details.more { min-width: 0; max-width: 100%; }
[data-calc-ladder] .tablewrap { max-width: 100%; overflow-x: auto; }
.calc-form [data-calc-venues] [data-more] {
  grid-column: 1 / -1; justify-self: start; min-height: 38px; padding-inline: 14px;
}
.calc-form [data-calc-venues][data-expanded="true"] {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.calc-form [data-calc-venues][data-expanded="true"] .chip {
  flex-direction: column; align-items: center; gap: 4px;
  min-height: 58px; padding: 8px 10px;
}
.calc-form [data-calc-venues][data-expanded="true"] .chip-meta {
  display: block; max-width: 100%; font-size: 11px; line-height: 1.35;
  white-space: normal; overflow-wrap: anywhere;
}
.chip-more-label, .calc-loading { color: var(--muted); font-size: 12px; line-height: 1.5; }
.calc-loading { grid-column: 1 / -1; padding-block: 8px; }
[data-calc-result][aria-busy="true"] > * { opacity: .5; }
[data-calc-result][aria-busy="true"]::after {
  content: "正在计算…"; position: absolute; top: 14px; right: 16px;
  padding: 4px 8px; border-radius: 4px; background: #fff;
  color: var(--muted); font-size: 12px;
}
[data-calc][data-lang="en"] [data-calc-result][aria-busy="true"]::after { content: "Calculating…"; }

@media (max-width: 1100px) {
  .footer-grid { gap: 32px; }
  .footer-bottom span:last-child { flex-basis: 100%; margin-left: 0; text-align: left; }
}

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  flex: none; width: 44px; height: 44px; padding: 0; border: 0;
  border-radius: 7px; background: transparent; color: var(--text); cursor: pointer;
}
.nav-toggle:hover, .nav-toggle[aria-expanded="true"] { background: var(--accent-soft); color: var(--accent); }
.nav-toggle-icon { display: flex; flex-direction: column; gap: 4px; width: 20px; }
.nav-toggle-icon > span {
  display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform 140ms ease, opacity 140ms ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-icon > span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon > span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon > span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* The mobile disclosure is enhanced only after nav.js has attached handlers.
   Without JavaScript all six links stay visible in a wrapping two-column list. */
@media (max-width: 1000px) {
  header.site { height: auto; min-height: 64px; }
  header.site .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-block: 10px; }
  header.site > .wrap > .brand { flex: 1 1 auto; }
  .header-actions { order: 1; margin-left: auto; gap: 4px; }
  .search { width: 44px; min-width: 44px; }
  .search-toggle { width: 44px; height: 44px; }
  .search-toggle::before { inset: 12px; }
  .language-menu { margin: 0; }
  .language-menu > summary { width: 44px; height: 44px; min-height: 44px; justify-content: center; padding: 0; }
  .language-menu > summary > span, .language-menu .language-chevron { display: none; }
  .language-icon { width: 19px; height: 19px; }
  .language-options a { display: flex; align-items: center; min-height: 44px; }
  nav.site {
    order: 3; flex: 0 0 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-self: stretch; width: 100%; min-width: 0; max-width: 100%; height: auto; margin: 0; padding: 8px 0 0; gap: 4px;
    overflow: visible;
  }
  nav.site a {
    flex: none; min-height: 48px; padding: 10px 14px; border-radius: 6px;
    font-size: 14px; line-height: 1.4; white-space: normal;
  }
  nav.site a:first-child, nav.site a:last-child { margin: 0; }
  nav.site a[aria-current="page"] { background: var(--accent-soft); }
  nav.site a[aria-current="page"]::after { display: none; }
  header.site.nav-enhanced { height: 64px; }
  header.site.nav-enhanced .wrap { flex-wrap: nowrap; }
  .nav-enhanced .nav-toggle { display: inline-flex; order: 3; }
  header.site.nav-enhanced nav.site {
    position: absolute; z-index: 45; top: calc(100% + 8px); left: 32px; right: 32px;
    display: flex; flex-direction: column; align-items: stretch;
    width: auto; max-width: none; max-height: calc(100vh - 84px);
    max-height: min(420px, calc(100dvh - 84px));
    padding: 8px; margin: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
    border: 1px solid var(--border); border-radius: 10px; background: #fff;
    box-shadow: 0 12px 32px rgba(20, 50, 100, .12);
  }
  header.site.nav-enhanced nav.site[hidden] { display: none; }
  .search-panel { position: fixed; top: 72px; right: 32px; left: 32px; width: auto; }
  .search .results { max-height: min(320px, calc(100dvh - 132px)); }
  .page-head { align-items: flex-start; flex-direction: column; gap: 14px; }
  .page-head .stamp { white-space: normal; }
  .home-spreads, #funding-results { scroll-margin-top: 80px; }
}

@media (max-width: 720px) {
  header.site.nav-enhanced nav.site, .search-panel { left: 18px; right: 18px; }
  body:has(.home-landing) .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  body:has(.home-landing) .footer-brand { grid-column: 1 / -1; }
  footer.site .wrap { padding-top: 32px; }
  .footer-bottom { margin-top: 28px; padding-block: 24px; gap: 10px; }
  .footer-bottom span:last-child { flex-basis: auto; width: 100%; }
}

@media (max-width: 560px) {
  .home-section-head, .spreads-section-head { flex-wrap: wrap; gap: 14px; }
  .home-section-action { align-items: flex-start; }
  .footer-grid { gap: 28px 18px; }
  .snapshot-row { gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-tool, .home-tool-arrow, .language-chevron, .nav-toggle-icon > span { transition: none; }
  .home-tool:hover .home-tool-arrow { transform: none; }
}

/* The holding-cost form is a single row of inputs with the button on the end;
   it has none of the calculator's two-column contract picker, so it keeps the
   default auto-fitting grid rather than the calculator's single column. */
.cost-form { display: grid; gap: 14px; }
.cost-form .fields { align-items: end; }
.cost-form button.primary { justify-self: start; }
.table-scroll { overflow-x: auto; }
.num.strong { font-weight: 650; }
.unknown { color: var(--faint); font-style: italic; }
ul.plain { list-style: none; padding: 0; margin: 0 0 16px; }
ul.plain li { padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
ul.plain li:last-child { border-bottom: 0; }
.note.small { font-size: 12.5px; color: var(--muted); }
.chip-go { margin-left: 6px; }

/* Grouped primary navigation: native disclosure also works without JavaScript. */
nav.site { overflow: visible; }
.nav-tools { position: relative; display: flex; }
.nav-tools > summary {
  display: flex; align-items: center; gap: 9px; height: 100%; min-height: 48px;
  color: #273249; font-size: 15px; font-weight: 400; cursor: pointer; list-style: none;
}
.nav-tools > summary::-webkit-details-marker { display: none; }
.nav-tools > summary:hover, .nav-tools > summary.is-active { color: var(--accent); }
.nav-tools > summary.is-active { font-weight: 600; }
.nav-tools > summary.is-active::after {
  content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: var(--accent); border-radius: 3px 3px 0 0;
}
.nav-tools-chevron { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin-top: -4px; }
.nav-tools[open] .nav-tools-chevron { transform: rotate(225deg); margin-top: 4px; }
.nav-tools-panel {
  position: absolute; z-index: 50; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; width: 400px; padding: 20px;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(20, 50, 100, .12);
}
.nav-tools:not([open]) > .nav-tools-panel { display: none; }
.nav-tools-heading { display: block; padding: 0 12px 10px; color: var(--muted); font-size: 12px; }
nav.site .nav-tools-panel a { min-height: 44px; padding: 10px 12px; border-radius: 6px; font-size: 14px; }
nav.site .nav-tools-panel a:hover, nav.site .nav-tools-panel a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
nav.site .nav-tools-panel a[aria-current="page"]::after { display: none; }
.nav-tools > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
@media (max-width: 1000px) {
  nav.site { grid-template-columns: 1fr; }
  .nav-tools { display: block; }
  .nav-tools > summary { min-height: 48px; padding: 10px 14px; font-size: 14px; border-radius: 6px; justify-content: space-between; }
  .nav-tools > summary.is-active { background: var(--accent-soft); }
  .nav-tools > summary.is-active::after { display: none; }
  .nav-tools-panel { position: static; transform: none; width: auto; grid-template-columns: 1fr; gap: 16px; padding: 16px 8px 8px 18px; border: 0; box-shadow: none; }
}

/* Decorative navigation icons share the link's hover and current-page color. */
nav.site .nav-tools-panel a { gap: 10px; }
.nav-item-icon { display: inline-block; flex: 0 0 18px; width: 18px; height: 18px; background-color: currentColor; color: #748198; -webkit-mask: var(--nav-icon) center / contain no-repeat; mask: var(--nav-icon) center / contain no-repeat; }
.nav-tools-panel a:hover .nav-item-icon, .nav-tools-panel a[aria-current="page"] .nav-item-icon { color: inherit; }
 .nav-icon-arrows-exchange { --nav-icon: url("/static/icons/ui/arrows-exchange.svg"); }
 .nav-icon-chart-bar { --nav-icon: url("/static/icons/ui/chart-bar.svg"); }
 .nav-icon-percentage { --nav-icon: url("/static/icons/ui/percentage.svg"); }
 .nav-icon-calculator { --nav-icon: url("/static/icons/ui/calculator.svg"); }
 .nav-icon-shield-exclamation { --nav-icon: url("/static/icons/ui/shield-exclamation.svg"); }

/* Venue feature labels stay subordinate to the venue identity. */
.venue-comparison tbody td { padding-top: 22px; padding-bottom: 22px; vertical-align: middle; }
.venue-comparison td:first-child { width: 38%; min-width: 240px; white-space: normal; }
.venue-features { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0 46px; }
.venue-feature { display: inline-block; padding: 4px 8px; border-radius: 5px; background: #f0f4fa; color: #52637a; font-size: 12px; font-weight: 400; line-height: 1.4; }
.model-help { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin-left: 4px; border: 1px solid var(--border); border-radius: 50%; color: var(--muted); font-size: 12px; text-decoration: none; }
.venue-model-note { margin-top: 20px; max-width: 960px; line-height: 1.8; scroll-margin-top: 100px; }
@media (max-width: 640px) {
  .venue-comparison tbody td { padding: 18px 12px; }
  .venue-comparison td:first-child { min-width: 210px; }
  .venue-features { margin-left: 0; max-width: 190px; }
}

/* Asset comparisons group related fields instead of widening the table. */
.asset-comparison table { table-layout: fixed; }
.asset-comparison th, .asset-comparison td { white-space: normal; overflow-wrap: anywhere; padding: 16px 10px; }
.asset-comparison th:first-child { width: 23%; }
.asset-comparison th:nth-child(4) { width: 18%; }
.asset-comparison th:last-child { width: 17%; }
.asset-comparison .venue-line { flex-wrap: wrap; gap: 6px; }
.comparison-sub { display: block; color: var(--muted); font-size: 12px; line-height: 1.5; margin-top: 6px; font-weight: 400; }
.contract-symbol { margin-left: 46px; }
.comparison-trend { margin-top: 8px; color: var(--muted); font-size: 12px; }
.comparison-trend .spark { width: 100%; max-width: 140px; height: 30px; margin-left: auto; }
.comparison-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; font-size: 13px; }
@media (max-width: 800px) {
  .asset-comparison { overflow: visible; border: 0; }
  .asset-comparison table, .asset-comparison tbody { display: block; }
  .asset-comparison thead { display: none; }
  .asset-comparison tbody tr { display: block; border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; }
  .asset-comparison tbody td { display: flex; justify-content: space-between; align-items: center; gap: 16px; height: auto; min-height: 44px; padding: 10px 0; border: 0; text-align: right; }
  .asset-comparison td::before { content: attr(data-label); color: var(--muted); font-size: 12px; flex-shrink: 0; text-align: left; }
  .asset-comparison td:first-child { display: block; text-align: left; border-bottom: 1px solid var(--border); padding-bottom: 16px; }
  .asset-comparison td:first-child::before { display: none; }
  .asset-comparison td:nth-child(2), .asset-comparison td:nth-child(4) { flex-wrap: wrap; }
  .asset-comparison td .comparison-sub, .asset-comparison .comparison-trend { flex-basis: 100%; margin-top: 0; }
  .asset-comparison .comparison-actions { flex-direction: row; flex-wrap: wrap; justify-content: flex-end; }
}
