/* Icons are inline SVG sized in em, so every existing `font-size` rule on
   .ph keeps working. The vertical nudge replaces the baseline offset the
   font glyph used to provide. */
svg.ph { display: inline-block; vertical-align: -0.125em; flex: none; }

/* Every visual dependency ships from this origin. The light-only palette is
   intentional: it is the selected Precision Minimal design target. */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f9fc;
  --bg-tint: #f1f5ff;
  --fg: #111827;
  --fg-muted: #667085;
  --fg-subtle: #8791a3;
  --border: #dfe5ef;
  --border-strong: #c9d3e4;
  --accent: #1268ff;
  --accent-hover: #0054e8;
  --accent-soft: #edf4ff;
  --accent-fg: #ffffff;
  --violet: #6f4cff;
  --violet-soft: #f1efff;
  --warn-bg: #fff7e8;
  --warn-fg: #855b08;
  --radius: 8px;
  --radius-lg: 12px;
  --wrap: 1306px;
  --shadow-soft: 0 12px 36px rgba(33, 65, 124, .07);
  --pos: #0c8a53;
  --neg: #c33a45;
  --c0: #1268ff; --c1: #c46516; --c2: #6f4cff;
  --c3: #0f8378; --c4: #a43aa5; --c5: #667085;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 15px/1.58 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
        "PingFang TC", "PingFang SC", "Noto Sans TC", "Noto Sans SC",
        "Microsoft JhengHei", "Microsoft YaHei", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

a { text-underline-offset: 3px; }
.wrap { width: min(calc(100% - 48px), var(--wrap)); margin-inline: auto; }

.skip {
  position: fixed; inset: 10px auto auto -9999px; z-index: 100;
  background: var(--accent); color: var(--accent-fg); padding: 10px 16px;
  border-radius: 7px; text-decoration: none;
}
.skip:focus { left: 10px; }

/* header */
.site-header {
  position: relative; z-index: 20;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.96);
}
.header-inner {
  min-height: 64px; display: flex; align-items: center; gap: 42px;
}
.brand {
  display: flex; flex-direction: row; align-items: center; gap: 9px; flex: 0 0 auto;
  color: inherit; text-decoration: none; line-height: 1.15;
}
.brand-symbol { display: block; width: 27px; height: 29px; object-fit: contain; flex: none; }
.brand-copy { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.brand-wordmark { display: block; width: 56px; height: auto; }
.brand-tag {
  margin-top: 3px; font-size: .54rem; line-height: 1.12; font-weight: 550;
  letter-spacing: .035em; color: #2f3744; white-space: nowrap;
}
.nav { display: flex; align-items: center; gap: 36px; margin-inline-start: auto; }
.nav a {
  position: relative; padding: 20px 0 17px; color: #202735;
  text-decoration: none; font-size: .95rem; font-weight: 650;
}
.nav a::after {
  content: ""; position: absolute; inset: auto 0 12px;
  height: 2px; background: var(--accent); transform: scaleX(0);
  transition: transform .18s ease;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

.lang-menu { position: relative; flex: 0 0 auto; }
.lang-menu summary {
  list-style: none; display: flex; align-items: center; gap: 8px;
  padding: 8px 9px; border-radius: 7px; cursor: pointer;
  color: #2a3240; font-size: .78rem; font-weight: 600;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { background: var(--bg-soft); color: var(--accent); }
.lang-menu summary .ph-globe { display: inline-block; font-size: .92rem; }
.lang-caret { font-size: .75rem; transition: transform .18s ease; }
.lang-menu[open] .lang-caret { transform: rotate(180deg); }
.langs {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 144px;
  display: grid; padding: 7px; background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; box-shadow: var(--shadow-soft);
}
.langs a {
  padding: 8px 10px; border-radius: 6px; color: var(--fg-muted);
  text-decoration: none; font-size: .78rem; white-space: nowrap;
}
.langs a:hover { background: var(--bg-soft); color: var(--fg); }
.langs a[aria-current="true"] { background: var(--accent-soft); color: var(--accent); font-weight: 700; }

/* home hero */
.home-hero {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
  align-items: center; gap: 34px; padding-top: 52px; padding-bottom: 28px;
}
.hero-copy { position: relative; z-index: 1; min-width: 0; }
.hero h1 {
  max-width: 760px; margin: 0 0 18px;
  font-size: clamp(2.3rem, 4vw, 3rem); line-height: 1.12;
  letter-spacing: -.045em; font-weight: 780;
}
.tldr {
  max-width: 67ch; margin: 0; padding-inline-start: 15px;
  border-inline-start: 4px solid var(--accent);
  color: var(--fg-muted); font-size: .96rem; line-height: 1.65;
}
.chooser-label { margin: 28px 0 9px; font-weight: 720; color: #273143; }
.tool-chooser {
  max-width: 650px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--border-strong); border-radius: 8px; overflow: hidden;
  background: var(--bg);
}
.tool-chooser a {
  min-width: 0; min-height: 82px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px; padding: 10px 6px;
  border-inline-end: 1px solid var(--border); color: var(--fg-muted);
  text-decoration: none; font-size: .77rem; font-weight: 620; text-align: center;
  transition: color .16s ease, background .16s ease;
}
.tool-chooser a:last-child { border-inline-end: 0; }
.tool-chooser a .ph { font-size: 1.6rem; }
.tool-chooser a:hover { color: var(--accent); background: var(--bg-soft); }
.tool-chooser a[aria-current="true"] {
  color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 -2px var(--accent);
}
.hero-cta {
  width: fit-content; min-width: 212px; margin-top: 16px; display: inline-flex;
  align-items: center; justify-content: space-between; gap: 20px; padding: 12px 17px;
  border-radius: 7px; background: var(--accent); color: white; text-decoration: none;
  font-size: .88rem; font-weight: 720; box-shadow: 0 8px 22px rgba(18,104,255,.2);
  transition: background .16s ease, transform .16s ease;
}
.hero-cta:hover { background: var(--accent-hover); transform: translateY(-1px); }
.hero-hint { margin: 6px 0 0; color: var(--fg-subtle); font-size: .74rem; }
.hero-visual { min-width: 0; display: flex; justify-content: flex-end; pointer-events: none; }
.hero-visual img { width: min(100%, 520px); height: auto; display: block; }

/* tools */
.tools-section { padding-bottom: 33px; }
.section-heading { margin-bottom: 5px; }
.section-title {
  width: fit-content; margin: 0 0 5px; padding-bottom: 6px;
  border-bottom: 3px solid var(--accent); font-size: 1.08rem; line-height: 1.2;
}
.section-heading p { margin: 0; color: var(--fg-muted); font-size: .82rem; }
.tool-grid {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 12px;
  grid-template-columns: 1.22fr 1fr 1fr; grid-template-rows: repeat(2, minmax(102px, auto));
}
.tool-card {
  min-width: 0; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg); transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.tool-card:hover { border-color: #b8c7e2; box-shadow: var(--shadow-soft); transform: translateY(-1px); }
.tool-card--featured { grid-row: 1 / span 2; border-color: var(--accent); background: #fbfdff; }
.tool-card a {
  height: 100%; min-width: 0; display: flex; align-items: center; gap: 18px;
  padding: 17px 20px; color: inherit; text-decoration: none;
}
.tool-card > div { padding: 20px; }
.tool-card--featured a { padding: 24px; align-items: flex-start; }
.tool-icon {
  width: 54px; height: 54px; flex: 0 0 54px; display: grid; place-items: center;
  border-radius: 12px; background: var(--accent-soft); color: var(--accent);
}
.tool-icon .ph { font-size: 1.8rem; }
.tool-card:nth-child(3) .tool-icon, .tool-card:nth-child(4) .tool-icon {
  background: var(--violet-soft); color: var(--violet);
}
.tool-card--featured .tool-icon { width: 82px; height: 82px; flex-basis: 82px; border: 1px solid #d7e4ff; }
.tool-card--featured .tool-icon .ph { font-size: 2.55rem; }
.tool-copy { min-width: 0; display: block; }
.tool-card h3 { margin: 0 0 5px; font-size: .98rem; line-height: 1.3; }
.tool-card p { margin: 0; color: var(--fg-muted); font-size: .79rem; line-height: 1.5; }
.tool-card--featured h3 { margin-top: 7px; font-size: 1.25rem; }
.tool-card--featured p { max-width: 30ch; font-size: .86rem; }
.tool-note {
  display: inline-block; margin-top: 28px; padding: 4px 8px;
  border-radius: 5px; background: var(--accent-soft); color: #56709b;
  font-size: .67rem; font-weight: 650;
}
.tool-arrow { margin-inline-start: auto; flex: 0 0 auto; color: var(--fg-muted); font-size: 1.2rem; }
.tool-card:hover .tool-arrow { color: var(--accent); }
.tool-card--soon { opacity: .62; }
.badge {
  padding: 2px 7px; margin-inline-start: 5px; border-radius: 999px;
  background: var(--warn-bg); color: var(--warn-fg); font-size: .66rem; font-weight: 650;
}

.trust-rail {
  display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 44px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-soft);
}
.trust-rail > div { display: flex; align-items: flex-start; gap: 14px; padding: 25px 24px; }
.trust-rail > div + div { border-inline-start: 1px solid var(--border); }
.trust-rail .ph { margin-top: 2px; color: #526176; font-size: 1.55rem; }
.trust-rail p { margin: 0; }
.trust-rail strong, .trust-rail span { display: block; }
.trust-rail strong { margin-bottom: 2px; font-size: .84rem; }
.trust-rail span { color: var(--fg-muted); font-size: .73rem; line-height: 1.42; }

.exchange-guide { margin-bottom: 56px; }
.exchange-guide-heading {
  display: flex; justify-content: space-between; gap: 28px; align-items: end;
  margin-bottom: 14px;
}
.exchange-guide-heading .section-title { margin-bottom: 8px; }
.exchange-guide-heading p { margin: 0; color: var(--fg-muted); font-size: .82rem; line-height: 1.55; }
.exchange-review-link {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px;
  color: var(--accent); font-size: .8rem; font-weight: 680; text-decoration: none;
}
.exchange-review-link:hover { text-decoration: underline; }
.exchange-guide-panel {
  overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--bg);
}
.exchange-guide-list { list-style: none; margin: 0; padding: 0; }
.exchange-guide-list li {
  min-height: 76px; display: grid;
  grid-template-columns: minmax(170px, .65fr) minmax(260px, 1.35fr) max-content;
  gap: 24px; align-items: center; padding: 16px 20px;
}
.exchange-guide-list li + li { border-top: 1px solid var(--border); }
.exchange-venue { display: flex; align-items: center; gap: 11px; min-width: 0; }
.exchange-venue .ph {
  width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 34px;
  border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-size: 1.05rem;
}
.exchange-venue strong { overflow: hidden; font-size: .94rem; text-overflow: ellipsis; white-space: nowrap; }
.exchange-focus { min-width: 0; margin: 0; }
.exchange-focus span, .exchange-focus strong { display: block; }
.exchange-focus span { margin-bottom: 2px; color: var(--fg-subtle); font-size: .68rem; font-weight: 640; }
.exchange-focus strong { color: #3b4658; font-size: .78rem; font-weight: 590; line-height: 1.45; }
.exchange-signup {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 2px;
  color: var(--fg-muted); font-size: .76rem; font-weight: 660; text-decoration: none;
}
.exchange-signup .ph { color: var(--accent); font-size: .92rem; }
.exchange-signup:hover { color: var(--accent); text-decoration: underline; }
.exchange-signup:focus-visible, .exchange-review-link:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 3px;
}
.exchange-disclosure {
  margin: 0; display: flex; gap: 9px; align-items: flex-start; padding: 12px 20px;
  border-top: 1px solid var(--border); background: var(--bg-soft);
  color: var(--fg-muted); font-size: .69rem; line-height: 1.5;
}
.exchange-disclosure .ph { margin-top: 2px; flex: 0 0 auto; color: #526176; font-size: .9rem; }

/* footer */
.site-footer { border-top: 1px solid var(--border); padding: 23px 0 17px; color: var(--fg-muted); }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 36px; align-items: start; }
.site-footer p { margin: 0 0 5px; font-size: .72rem; }
.footer-copy { max-width: 780px; }
.disclosure { display: flex; gap: 10px; color: #475467; }
.disclosure .ph { margin-top: 2px; flex: 0 0 auto; font-size: 1.15rem; }
.risk { padding-inline-start: 27px; }
.footer-meta { text-align: right; white-space: nowrap; }

.error { padding: 88px 24px; }
.error h1 { margin: 0 0 12px; font-size: 1.8rem; }
.cta { color: var(--accent); }

@media (max-width: 980px) {
  .header-inner { gap: 24px; }
  .nav { gap: 24px; }
  .home-hero { grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); }
  .hero h1 { font-size: clamp(2.1rem, 5vw, 3rem); }
  .tool-grid { grid-template-columns: 1fr 1fr; }
  .tool-card--featured { grid-column: 1 / -1; grid-row: auto; }
  .tool-card--featured a { align-items: center; }
  .tool-note { margin-top: 12px; }
}

@media (max-width: 720px) {
  .header-inner { min-height: 62px; flex-wrap: wrap; gap: 18px; padding-block: 8px; }
  .brand { margin-inline-end: auto; gap: 8px; }
  .brand-symbol { width: 26px; height: 28px; }
  .brand-wordmark { width: 54px; }
  .brand-tag { margin-top: 3px; font-size: .51rem; letter-spacing: .02em; }
  .lang-menu summary span { display: none; }
  .nav { order: 3; width: 100%; justify-content: space-between; gap: 18px; }
  .nav a { padding: 7px 0 4px; font-size: .82rem; }
  .nav a::after { bottom: -4px; }
  .home-hero { display: block; padding-top: 36px; padding-bottom: 34px; }
  .hero h1 { font-size: clamp(2rem, 10vw, 2.65rem); }
  .hero-visual { display: none; }
  .tool-chooser { overflow-x: auto; grid-template-columns: repeat(5, minmax(106px, 1fr)); }
  .tool-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .tool-card--featured { grid-column: auto; }
  .tool-card--featured a { padding: 22px 18px; }
  .tool-card--featured .tool-icon { width: 58px; height: 58px; flex-basis: 58px; }
  .tool-card--featured .tool-icon .ph { font-size: 2rem; }
  .tool-card--featured h3 { margin-top: 0; font-size: 1.05rem; }
  .trust-rail { grid-template-columns: 1fr; }
  .trust-rail > div + div { border-inline-start: 0; border-top: 1px solid var(--border); }
  .exchange-guide { margin-bottom: 42px; }
  .exchange-guide-heading { display: block; }
  .exchange-review-link { margin-top: 10px; }
  .exchange-guide-list li {
    grid-template-columns: 1fr max-content; gap: 10px 16px; padding: 16px;
  }
  .exchange-focus { grid-column: 1 / -1; grid-row: 2; padding-inline-start: 45px; }
  .exchange-signup { grid-column: 2; grid-row: 1; }
  .exchange-disclosure { padding: 12px 16px; }
  .footer-inner { grid-template-columns: 1fr; gap: 14px; }
  .footer-meta { text-align: left; padding-inline-start: 27px; }
}

/* ---------- calculator ---------- */

.tool-head { padding-top: 48px; padding-bottom: 8px; }
.crumbs { font-size: .76rem; color: var(--fg-muted); margin-bottom: 14px; }
.crumbs a { color: var(--fg-muted); }
.crumbs span { margin: 0 4px; }
.tool-head h1 {
  max-width: 26ch; margin: 0 0 15px; font-size: clamp(1.8rem, 3.4vw, 2.55rem);
  line-height: 1.18; letter-spacing: -.035em;
}
.calculator-head { padding-top: 34px; padding-bottom: 4px; }
.calculator-head .crumbs { margin-bottom: 11px; }
.calculator-head h1 {
  max-width: 30ch; margin-bottom: 12px; font-size: clamp(1.65rem, 2.6vw, 2.05rem);
  line-height: 1.16;
}
.calculator-head .tldr { max-width: 72ch; font-size: .86rem; line-height: 1.62; }

.calc-form { margin: 30px 0 24px; }
.calc-form fieldset {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--bg); padding: 22px 24px 24px; margin: 0;
  box-shadow: 0 10px 32px rgba(33,65,124,.045);
}
.calc-form legend { padding: 0 8px; font-size: .78rem; font-weight: 650; color: #475467; }
.fields {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font-size: .77rem; font-weight: 600; color: #596579; }
.field input[type="number"] {
  width: 100%; min-height: 44px; padding: 10px 12px; font-size: .96rem;
  font-variant-numeric: tabular-nums;
  color: var(--fg); background: var(--bg);
  border: 1px solid var(--border-strong); border-radius: 7px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input[type="number"]:focus-visible {
  outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(18,104,255,.12);
}
.field input[type="range"] { width: 100%; accent-color: var(--accent); margin-top: 2px; }

.side-toggle { display: flex; gap: 8px; }
.side-toggle label { flex: 1; }
/* Visually hidden, but still focusable and still in the accessibility tree.
   Zero-sizing the input (or opacity:0) drops it out of that tree, which makes
   the control unreachable by keyboard and invisible to screen readers. */
.side-toggle input {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; border: 0;
  overflow: hidden; white-space: nowrap;
  clip: rect(0 0 0 0); clip-path: inset(50%);
}
.side-toggle span {
  display: block; min-height: 44px; text-align: center; padding: 10px 8px; font-size: .88rem;
  border: 1px solid var(--border-strong); border-radius: 7px;
  background: var(--bg); cursor: pointer;
}
.side-toggle input:checked + span {
  background: var(--accent); color: var(--accent-fg); border-color: var(--accent);
}
.side-toggle input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.btn {
  min-height: 42px; margin-top: 18px; padding: 10px 20px; font-size: .86rem;
  font-weight: 700; cursor: pointer;
  background: var(--accent); color: var(--accent-fg);
  border: 1px solid var(--accent); border-radius: 7px;
  box-shadow: 0 7px 18px rgba(18,104,255,.16);
}
.btn:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--fg-muted); border-color: var(--border); box-shadow: none; }
.btn-ghost:hover { background: transparent; color: var(--fg); border-color: var(--accent); }
.has-error .btn { border-color: #c0392b; }

.summary {
  display: flex; flex-wrap: wrap; gap: 10px 34px; margin: 0 0 16px;
  padding: 14px 18px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-soft); font-size: .84rem;
}
.summary div { display: flex; gap: 8px; align-items: baseline; }
.summary dt { color: var(--fg-muted); margin: 0; }
.summary dd { margin: 0; font-variant-numeric: tabular-nums; }

/* Wide tables scroll inside their own box; the page body never does. */
.table-scroll {
  overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg);
  -webkit-overflow-scrolling: touch;
}
table.results { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.results th, table.results td {
  padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
table.results thead th {
  font-size: .73rem; font-weight: 700; letter-spacing: .035em;
  color: var(--fg-muted); background: var(--bg-soft);
  position: sticky; top: 0;
}
table.results tbody tr:last-child td, table.results tbody tr:last-child th { border-bottom: 0; }
table.results .num { text-align: right; font-variant-numeric: tabular-nums; }
table.results .strong { font-weight: 650; font-size: 1rem; }
table.results tr.best { background: color-mix(in srgb, var(--accent) 8%, transparent); }
table.results .model { white-space: normal; font-size: .82rem; color: var(--fg-muted); }
table.results .err { color: var(--fg-muted); text-align: left; font-style: italic; }
.warn-row td {
  background: var(--warn-bg); color: var(--warn-fg);
  font-size: .82rem; white-space: normal;
}
.muted { color: var(--fg-muted); }
.pill {
  font-size: .66rem; font-weight: 500; vertical-align: middle;
  background: var(--accent); color: var(--accent-fg);
  border-radius: 999px; padding: 2px 8px;
}

.actions { margin: 16px 0 0; }
.note { font-size: .8rem; color: var(--fg-muted); max-width: 78ch; margin: 14px 0 0; }
.note-warn { color: var(--warn-fg); }

/* Calculator workspaces share the same visual language, while each page
   keeps a layout that mirrors the decision it helps the reader make. */
.calculator-page { padding-top: 22px; padding-bottom: 24px; }
.calculator-shell {
  display: grid; grid-template-columns: minmax(280px, .72fr) minmax(0, 1.55fr);
  gap: 42px; align-items: start;
}
.calculator-input {
  min-width: 0; padding-inline-end: 38px; border-inline-end: 1px solid var(--border);
}
.calculator-output { min-width: 0; }
.calc-form-split { margin: 0; }
.calc-form-split fieldset {
  padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent;
}
.calc-form-split legend {
  display: block; width: 100%; padding: 0 0 18px; color: var(--fg);
  font-size: .92rem; font-weight: 760;
}
.calc-form-split .fields { grid-template-columns: 1fr; gap: 15px; }
.calc-form-split .btn { width: 100%; margin-top: 22px; }
.calc-input-note { margin-top: 20px; line-height: 1.62; }
.calc-share-row { margin-top: 14px; }
.calc-share-action {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 0;
  color: var(--fg-muted); background: transparent; border: 0; cursor: pointer;
  font: inherit; font-size: .78rem; font-weight: 650;
}
.calc-share-action:hover { color: var(--accent); }
.calc-share-action .ph { font-size: 1rem; }
.calc-result-hero {
  padding: 26px 28px 24px; border: 1px solid #cad9f3; border-radius: var(--radius-lg);
  background: var(--bg-tint);
}
.calc-result-kicker {
  margin: 0 0 7px; color: var(--accent); font-size: .72rem; font-weight: 760;
  letter-spacing: .055em; text-transform: uppercase;
}
.calc-result-main { display: flex; align-items: baseline; gap: 9px; min-width: 0; }
.calc-result-main strong {
  color: var(--fg); font-size: clamp(2.2rem, 4vw, 3.6rem); line-height: 1;
  letter-spacing: -.045em; font-variant-numeric: tabular-nums;
}
.calc-result-main span { color: var(--fg-muted); font-size: .78rem; font-weight: 650; }
.calc-result-meta {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px; margin-top: 23px; padding-top: 18px; border-top: 1px solid var(--border);
}
.calc-result-meta div { min-width: 0; }
.calc-result-meta span, .risk-metric-grid dt, .dca-metric-grid dt {
  display: block; margin-bottom: 5px; color: var(--fg-muted); font-size: .72rem; font-weight: 650;
}
.calc-result-meta strong { font-size: 1rem; font-variant-numeric: tabular-nums; }
.calc-result-caption { margin: 10px 0 0; color: var(--fg-muted); font-size: .78rem; }
.calc-supporting-metrics { margin: 16px 0 28px; background: transparent; }
.calc-detail-title { margin: 0 0 12px; font-size: .92rem; }
.calc-section-heading { margin: 36px 0 12px; }
.calc-section-heading h2 { margin: 2px 0 0; font-size: 1rem; }
.calc-eyebrow { color: var(--fg-muted); font-size: .7rem; font-weight: 700; }

/* Fee comparison: one compact scenario bar, followed by a full-width answer. */
.calc-form-inline { margin: 0 0 18px; }
.calc-form-inline fieldset { padding: 18px 20px 20px; box-shadow: none; background: var(--bg-soft); }
.calc-form-inline .fields { grid-template-columns: 1.2fr repeat(3, minmax(150px, 1fr)); gap: 14px; }
.calc-form-inline .btn { margin-top: 16px; }
.fee-result-strip {
  display: grid; grid-template-columns: 1.3fr repeat(3, minmax(130px, .7fr));
  align-items: stretch; border: 1px solid #cad9f3; border-radius: var(--radius-lg);
  background: var(--bg); overflow: hidden;
}
.fee-result-strip > div { padding: 20px 22px; }
.fee-result-strip > div + div { border-inline-start: 1px solid var(--border); }
.fee-result-intro { background: var(--bg-tint); }
.fee-result-intro span, .fee-result-metric span {
  display: block; margin-bottom: 7px; color: var(--fg-muted); font-size: .72rem; font-weight: 650;
}
.fee-result-intro strong { font-size: 1.2rem; }
.fee-result-metric strong { font-size: 1.28rem; font-variant-numeric: tabular-nums; }
.fee-result-metric small { margin-inline-start: 4px; color: var(--fg-subtle); font-size: .68rem; }

/* Funding arbitrage: two legs and cost controls face the net outcome. */
.calculator-shell--funding { grid-template-columns: minmax(330px, .8fr) minmax(0, 1.45fr); }
.calc-field-group + .calc-field-group { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); }
.calc-field-group-title {
  display: flex; align-items: center; gap: 8px; margin: 0 0 12px;
  color: var(--fg); font-size: .77rem; font-weight: 750;
}
.calc-field-group-title > span {
  display: inline-grid; width: 22px; height: 22px; place-items: center;
  border-radius: 6px; color: var(--accent); background: var(--bg-tint); font-size: .68rem;
}
.calc-field-group-title .ph { color: var(--accent); font-size: 1rem; }
.fields-compact { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }
.funding-hero { margin-bottom: 16px; }
.funding-output .summary { margin-bottom: 24px; }
.funding-output .table-scroll + .note { margin-bottom: 24px; }

/* Position sizing: the maximum quantity is the answer, not one table cell. */
.calculator-shell--risk { grid-template-columns: minmax(300px, .82fr) minmax(0, 1.35fr); }
.risk-result-hero { margin-bottom: 16px; }
.risk-metric-grid, .dca-metric-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
}
.risk-metric-grid > div, .dca-metric-grid > div { padding: 17px 20px; min-width: 0; }
.risk-metric-grid > div:nth-child(even), .dca-metric-grid > div:nth-child(even) { border-inline-start: 1px solid var(--border); }
.risk-metric-grid > div:nth-child(n+3), .dca-metric-grid > div:nth-child(n+3) { border-top: 1px solid var(--border); }
.risk-metric-grid dd, .dca-metric-grid dd {
  margin: 0; color: var(--fg); font-size: 1rem; font-weight: 680;
  font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}

/* DCA: show the transformation from contributed capital to ending value. */
.dca-story {
  display: grid; grid-template-columns: minmax(300px, .72fr) minmax(0, 1.5fr);
  gap: 42px; align-items: start;
}
.dca-output { padding-top: 1px; }
.dca-journey {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.2fr);
  gap: 18px; align-items: center; padding: 26px;
  border: 1px solid #cad9f3; border-radius: var(--radius-lg); background: var(--bg-soft);
}
.dca-journey > .ph { color: var(--fg-subtle); font-size: 1.25rem; }
.dca-journey-step span { display: block; color: var(--fg-muted); font-size: .73rem; font-weight: 650; }
.dca-journey-step strong {
  display: inline-block; margin-top: 7px; color: var(--fg); font-size: 1.55rem;
  letter-spacing: -.025em; font-variant-numeric: tabular-nums;
}
.dca-journey-step small { margin-inline-start: 5px; color: var(--fg-subtle); font-size: .68rem; }
.dca-journey-step--primary strong { color: var(--accent); font-size: 2.15rem; }
.dca-metric-grid { margin-top: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dca-metric-grid > div:nth-child(even) { border-inline-start: 0; }
.dca-metric-grid > div + div { border-inline-start: 1px solid var(--border); }
.dca-metric-grid > div:nth-child(n+3) { border-top: 0; }

@media (max-width: 900px) {
  .calculator-shell, .calculator-shell--funding, .calculator-shell--risk, .dca-story {
    grid-template-columns: minmax(0, 1fr); gap: 28px;
  }
  .calculator-input { padding-inline-end: 0; padding-bottom: 28px; border-inline-end: 0; border-bottom: 1px solid var(--border); }
  .calc-form-inline .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fee-result-strip { grid-template-columns: repeat(3, 1fr); }
  .fee-result-intro { grid-column: 1 / -1; }
  .fee-result-strip > .fee-result-intro + div { border-inline-start: 0; }
}

@media (max-width: 640px) {
  .tool-head { padding-top: 32px; }
  .tool-head h1 { font-size: 1.75rem; }
  .calculator-page { padding-top: 14px; }
  .calc-form-inline .fields, .fields-compact { grid-template-columns: 1fr !important; }
  .fee-result-strip { grid-template-columns: 1fr 1fr; }
  .fee-result-intro { grid-column: 1 / -1; }
  .fee-result-metric:last-child { grid-column: 1 / -1; border-top: 1px solid var(--border); border-inline-start: 0; }
  .calc-result-hero { padding: 22px 20px; }
  .calc-result-main strong { font-size: 2.15rem; }
  .risk-metric-grid, .dca-metric-grid { grid-template-columns: 1fr; }
  .risk-metric-grid > div:nth-child(even), .dca-metric-grid > div + div { border-inline-start: 0; }
  .risk-metric-grid > div + div, .dca-metric-grid > div + div { border-top: 1px solid var(--border); }
  .dca-journey { grid-template-columns: 1fr; gap: 13px; }
  .dca-journey > .ph { transform: rotate(90deg); }
}

.faq { padding-bottom: 64px; }
.faq h2 { font-size: 1.08rem; margin: 46px 0 13px; }
.faq-intro {
  max-width: 76ch; margin: -2px 0 16px; color: var(--fg-muted);
  font-size: .82rem; line-height: 1.65;
}
.faq details {
  border: 0; border-bottom: 1px solid var(--border); border-radius: 0;
  background: var(--bg); padding: 14px 2px; margin: 0;
}
.faq summary { cursor: pointer; font-size: .9rem; font-weight: 650; }
.faq-question { display: flex; align-items: center; gap: 10px; list-style: none; }
.faq-question::-webkit-details-marker { display: none; }
.faq-chevron { flex: 0 0 auto; transition: transform .2s ease; }
.faq details[open] .faq-chevron { transform: rotate(90deg); }
.faq details p { margin: 10px 0 2px; font-size: .88rem; color: var(--fg-muted); max-width: 74ch; }

@media (prefers-reduced-motion: reduce) {
  .faq-chevron { transition: none; }
}

@media (max-width: 640px) {
  table.results th, table.results td { padding: 9px 10px; }
}

table.results tr.dim th, table.results tr.dim td { opacity: .5; }
table.results thead .muted { display: block; font-weight: 400; text-transform: none; }
.actions .btn { display: inline-block; text-decoration: none; }

.related-pages {
  margin-top: 48px; padding-top: 38px; padding-bottom: 18px;
  border-top: 1px solid var(--border);
}
.related-pages .section-title { margin-bottom: 18px; }
.link-list {
  list-style: none; padding: 0; margin: 0 0 44px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px;
}
.link-list li { min-width: 0; }
.link-list a {
  min-height: 76px; display: flex; align-items: center; padding: 16px 18px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg); color: var(--fg); font-size: .86rem; font-weight: 620;
  line-height: 1.45; text-decoration: none;
  transition: border-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.link-list a:hover {
  border-color: #b8c7e2; color: var(--accent); box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}
.article-layout {
  display: grid; grid-template-columns: minmax(0, 82ch) minmax(210px, 250px);
  gap: 64px; align-items: start; justify-content: space-between;
}
.article-body { min-width: 0; }
.article-body > section { max-width: 82ch; margin-bottom: 38px; scroll-margin-top: 94px; }
.article-body > section:last-child { margin-bottom: 0; }
.article-body h2 { margin: 0 0 14px; font-size: 1.18rem; line-height: 1.35; }
.article-body p { margin: 0 0 14px; color: var(--fg-muted); font-size: .92rem; line-height: 1.72; }
.article-body ul { margin: 8px 0 0; padding-inline-start: 20px; color: var(--fg-muted); }
.article-body li { margin: 8px 0; padding-inline-start: 4px; font-size: .9rem; line-height: 1.62; }
.article-body li a { color: var(--accent); text-underline-offset: 3px; }
.article-body li a:hover { text-decoration-thickness: 2px; }
.article-toc { min-width: 0; align-self: stretch; }
.article-toc-inner {
  position: sticky; top: 92px; padding-inline-start: 20px;
  border-inline-start: 1px solid var(--border);
}
.article-toc-title {
  margin: 0 0 13px; color: var(--fg); font-size: .76rem; font-weight: 750;
  letter-spacing: .04em;
}
.article-toc ol { list-style: none; margin: 0; padding: 0; }
.article-toc li + li { margin-top: 3px; }
.article-toc a {
  display: block; padding: 7px 0 7px 12px; border-inline-start: 2px solid transparent;
  color: var(--fg-muted); font-size: .77rem; line-height: 1.42; text-decoration: none;
  transition: color .15s ease, border-color .15s ease;
}
.article-toc a:hover,
.article-toc a[aria-current="true"] { color: var(--accent); border-inline-start-color: var(--accent); }
.article-toc a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.article-toc-mobile { display: none; }

@media (max-width: 1020px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .article-toc { display: none; }
  .article-toc-mobile {
    display: block; margin: 0 0 34px; padding: 0 14px;
    border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-soft);
  }
  .article-toc-mobile summary {
    min-height: 48px; display: flex; align-items: center; gap: 9px;
    color: var(--fg); font-size: .84rem; font-weight: 700; cursor: pointer;
  }
  .article-toc-mobile summary::marker { color: var(--fg-muted); }
  .article-toc-mobile .ph { color: var(--accent); font-size: 1rem; }
  .article-toc-mobile nav { padding: 0 0 13px; }
  .article-toc-mobile ol { margin: 0; padding: 0 0 0 25px; color: var(--fg-subtle); }
  .article-toc-mobile li { padding: 4px 0 4px 3px; }
  .article-toc-mobile a { color: var(--fg-muted); font-size: .8rem; line-height: 1.45; text-decoration: none; }
  .article-toc-mobile a:hover { color: var(--accent); }
}

@media (max-width: 760px) {
  .related-pages { margin-top: 34px; padding-top: 28px; }
  .link-list { grid-template-columns: 1fr; }
}

/* ---------- funding board ---------- */

.funding-board-head { padding-bottom: 34px; }

.empty-state {
  border: 1px dashed var(--border); border-radius: var(--radius);
  background: var(--bg-soft); padding: 32px 24px; margin: 24px 0 40px;
}
.empty-state h2 { margin: 0 0 10px; font-size: 1.05rem; }
.empty-state p { margin: 0 0 8px; color: var(--fg-muted); font-size: .9rem; max-width: 70ch; }
.empty-state code {
  background: var(--bg); border: 1px solid var(--border); border-radius: 5px;
  padding: 1px 6px; font-size: .85em;
}

.banner {
  border-radius: var(--radius); padding: 12px 16px; margin: 0 0 24px;
  font-size: .86rem; display: flex; gap: 10px; flex-wrap: wrap;
}
.banner-warn { background: var(--warn-bg); color: var(--warn-fg); }

.symbol-block {
  margin: 0 0 28px; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--bg); box-shadow: 0 12px 34px rgba(33,65,124,.045);
}
.symbol-head {
  display: grid; grid-template-columns: minmax(165px, .48fr) minmax(0, 1.52fr);
  align-items: stretch; gap: 0; margin: 0; padding: 20px 22px;
  border-bottom: 1px solid var(--border); background: var(--bg-soft);
}
.symbol-identity { display: flex; align-items: center; padding-inline-end: 22px; }
.symbol-head h2 { margin: 0; font-size: 1.3rem; letter-spacing: -.025em; }
.spread {
  min-width: 0; margin: 0; padding-inline-start: 22px;
  border-inline-start: 1px solid var(--border);
  display: grid; grid-template-columns: max-content minmax(0, 1fr);
  gap: 5px 24px; align-items: center;
}
.spread-metric { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.spread-label { color: var(--fg-muted); font-size: .76rem; font-weight: 650; }
.spread-value { font-size: 1.32rem; line-height: 1.12; font-weight: 750; font-variant-numeric: tabular-nums; }
.spread-route {
  width: min(100%, 460px); min-width: 0; min-height: 48px;
  display: grid; grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr);
  gap: 18px; align-items: center; color: var(--fg-muted); line-height: 1.35;
}
.spread-leg {
  min-width: 0; display: flex; flex-direction: column; gap: 3px;
}
.spread-leg strong {
  overflow: hidden; color: var(--fg); font-size: .96rem; font-weight: 730;
  letter-spacing: -.01em; text-overflow: ellipsis; white-space: nowrap;
}
.spread-leg small {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--fg-muted); font-size: .7rem; font-weight: 620; white-space: nowrap;
}
.spread-leg small .ph { font-size: .82rem; }
.spread-leg-receive small .ph { color: var(--pos); }
.spread-leg-pay small .ph { color: var(--warn-fg); }
.spread-divider {
  width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 50%; background: color-mix(in srgb, var(--accent) 8%, var(--bg));
  color: var(--accent); font-size: .95rem;
}
.symbol-block > .table-scroll {
  border: 0; border-radius: 0;
}
.symbol-actions {
  min-height: 66px; margin: 0; padding: 11px 22px;
  display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center;
  border-top: 1px solid var(--border); background: var(--bg-soft);
}
.symbol-actions .btn { margin: 0; background: var(--bg); }
.symbol-actions .muted { margin-inline-start: 0; }
.history-link {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--fg-muted); font-size: .82rem; font-weight: 680;
  text-decoration: none; transition: color .15s ease;
}
.history-link .ph { color: var(--accent); font-size: 1.05rem; }
.history-link:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.history-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 3px; }
.funding-notes {
  margin: 34px 0 0; padding: 18px 20px;
  border-inline-start: 3px solid color-mix(in srgb, var(--warn-fg) 62%, var(--border));
  border-radius: 0 var(--radius) var(--radius) 0; background: var(--warn-bg);
}
.funding-notes .note { max-width: 92ch; margin: 0; line-height: 1.65; }
.funding-notes .note + .note { margin-top: 7px; }

table.results .pos { color: var(--pos); }
table.results .neg { color: var(--neg); }
.small { font-size: .78rem; }
.actions .muted { margin-inline-start: 12px; }

/* chart */
.funding-detail-head {
  padding-top: 72px; padding-bottom: 26px;
}
.funding-detail-head .crumbs { margin-bottom: 18px; }
.funding-detail-head h1 { margin-bottom: 20px; }
.funding-chart-title { margin-top: 34px; margin-bottom: 14px; }
.chart { margin: 0 0 38px; }
.chart-viewport {
  overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-soft); scrollbar-color: var(--border-strong) transparent;
}
.chart svg {
  display: block; width: 100%; height: auto; overflow: visible; padding: 8px;
}
.axis-zero { stroke: var(--border); stroke-width: 1; stroke-dasharray: 3 3; }
.axis-label { fill: var(--fg-muted); font-size: 10px; }
.axis-label-x { font-size: 8.25px; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.chart .series {
  fill: none; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.chart .dot {
  fill: var(--bg-soft); stroke: currentColor; stroke-width: 1.6;
  opacity: 0; vector-effect: non-scaling-stroke;
  transition: opacity .14s ease;
}
.chart .dot:hover, .chart .dot:focus { opacity: 1; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 13px 0 0; font-size: .8rem; }
.legend-item { display: flex; gap: 6px; align-items: center; color: var(--fg-muted); }
.legend-item b { color: var(--fg); font-variant-numeric: tabular-nums; }
.legend-item::before {
  content: ""; width: 12px; height: 3px; border-radius: 2px; background: currentColor;
}
.s0 { stroke: var(--c0); color: var(--c0); fill: var(--c0); }
.s1 { stroke: var(--c1); color: var(--c1); fill: var(--c1); }
.s2 { stroke: var(--c2); color: var(--c2); fill: var(--c2); }
.s3 { stroke: var(--c3); color: var(--c3); fill: var(--c3); }
.s4 { stroke: var(--c4); color: var(--c4); fill: var(--c4); }
.s5 { stroke: var(--c5); color: var(--c5); fill: var(--c5); }
.funding-days-title { margin: 0 0 14px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%);
}

/* ---------- listing comparison ---------- */

.listings-head { padding-bottom: 28px; }
.listings-head h1 { max-width: 30ch; font-size: clamp(1.9rem, 3vw, 2.4rem); }
.listings-board { padding-bottom: 8px; }
.listing-demo-note {
  display: flex; align-items: flex-start; gap: 12px; margin: 0 0 16px; padding: 13px 16px;
  border-inline-start: 3px solid color-mix(in srgb, var(--warn-fg) 62%, var(--border));
  border-radius: 0 var(--radius) var(--radius) 0; background: var(--warn-bg); color: var(--warn-fg);
}
.listing-demo-note > .ph { margin-top: 2px; font-size: 1.1rem; }
.listing-demo-note p { margin: 0; }
.listing-demo-note strong, .listing-demo-note span { display: block; }
.listing-demo-note strong { margin-bottom: 2px; font-size: .78rem; }
.listing-demo-note span { font-size: .72rem; line-height: 1.5; }
.listing-summary {
  display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 34px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-soft);
}
.listing-summary div { padding: 14px 18px; }
.listing-summary div + div { border-inline-start: 1px solid var(--border); }
.listing-summary dt { margin: 0 0 2px; color: var(--fg-muted); font-size: .68rem; font-weight: 650; }
.listing-summary dd { margin: 0; color: var(--fg); font-size: 1rem; font-weight: 730; font-variant-numeric: tabular-nums; }
.listing-section-heading { margin-bottom: 13px; }
.listing-section-heading h2 { margin: 0 0 4px; font-size: 1.08rem; letter-spacing: -.015em; }
.listing-section-heading p { margin: 0; color: var(--fg-muted); font-size: .78rem; }
.listing-compare-table { font-size: .82rem; }
.listing-compare-table th, .listing-compare-table td { padding-block: 14px; }
.listing-compare-table thead th { white-space: nowrap; }
.listing-asset a { color: var(--fg); font-size: .92rem; font-weight: 750; text-decoration: none; }
.listing-asset a:hover { color: var(--accent); text-decoration: underline; }
.listing-asset small, .listing-first-venue time { display: block; margin-top: 2px; color: var(--fg-subtle); font-size: .66rem; font-weight: 520; }
.listing-first-venue strong { display: block; color: var(--fg); font-size: .8rem; }
.listing-date-cell { display: block; min-width: 82px; }
.listing-date-cell time { display: block; color: #344054; font-size: .76rem; font-variant-numeric: tabular-nums; }
.listing-date-cell small { display: block; margin-top: 2px; color: var(--fg-subtle); font-size: .65rem; }
.listing-date-cell small.is-first { color: var(--accent); font-weight: 700; }
.listing-missing { color: var(--fg-subtle); font-size: .72rem; }
.listing-gap { color: var(--fg); font-size: .78rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.listing-detail-link {
  display: inline-flex; align-items: center; gap: 6px; color: var(--accent);
  font-size: .73rem; font-weight: 660; text-decoration: none; white-space: nowrap;
}
.listing-detail-link:hover { text-decoration: underline; }
.listing-card-list { display: none; }
.listing-events {
  margin-top: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg);
}
.listing-events > summary {
  min-height: 62px; list-style: none; display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 12px 16px; cursor: pointer;
}
.listing-events > summary::-webkit-details-marker { display: none; }
.listing-events > summary span { min-width: 0; }
.listing-events > summary strong, .listing-events > summary small { display: block; }
.listing-events > summary strong { margin-bottom: 2px; font-size: .86rem; }
.listing-events > summary small { color: var(--fg-muted); font-size: .7rem; font-weight: 500; }
.listing-events > summary > .ph { color: var(--fg-muted); transition: transform .18s ease; }
.listing-events[open] > summary > .ph { transform: rotate(180deg); }
.listing-events > .table-scroll { border: 0; border-top: 1px solid var(--border); border-radius: 0; }
.listing-events .ext { display: inline-flex; align-items: center; gap: 5px; }
.listings-data-note { margin-top: 15px; }

@media (max-width: 720px) {
  .listings-head { padding-bottom: 24px; }
  .listings-head h1 { font-size: clamp(1.75rem, 8.5vw, 2.15rem); }
  .listing-demo-note { padding: 12px 13px; }
  .listing-summary { grid-template-columns: repeat(2, 1fr); margin-bottom: 28px; }
  .listing-summary div:nth-child(3) { border-inline-start: 0; border-top: 1px solid var(--border); }
  .listing-summary div:nth-child(4) { border-top: 1px solid var(--border); }
  .listing-summary div { padding: 12px 14px; }
  .listing-compare-desktop { display: none; }
  .listing-card-list { list-style: none; display: grid; gap: 12px; margin: 0; padding: 0; }
  .listing-card { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); }
  .listing-card > header {
    display: flex; justify-content: space-between; gap: 14px; align-items: baseline;
    padding: 13px 14px; border-bottom: 1px solid var(--border); background: var(--bg-soft);
  }
  .listing-card > header a { color: var(--fg); font-size: .96rem; font-weight: 750; text-decoration: none; }
  .listing-card > header span { color: var(--fg-muted); font-size: .68rem; }
  .listing-card ol { list-style-position: inside; margin: 0; padding: 4px 14px; }
  .listing-card ol li {
    display: grid; grid-template-columns: minmax(0, 1fr) max-content; gap: 1px 12px;
    padding: 10px 0; color: var(--fg-subtle); font-size: .72rem;
  }
  .listing-card ol li + li { border-top: 1px solid var(--border); }
  .listing-card ol strong { color: var(--fg); font-size: .78rem; }
  .listing-card ol time { color: #344054; font-size: .74rem; font-variant-numeric: tabular-nums; }
  .listing-card ol small { grid-column: 1 / -1; padding-inline-start: 17px; color: var(--fg-muted); font-size: .66rem; }
  .listing-card-action {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 11px 14px; border-top: 1px solid var(--border); color: var(--accent);
    font-size: .74rem; font-weight: 680; text-decoration: none;
  }
  .listing-events { margin-top: 22px; }
}

.ext { font-size: .82rem; white-space: nowrap; color: var(--accent); }
table.results td a { color: var(--accent); }

.check { display: flex; gap: 8px; align-items: center; font-size: .85rem; margin-bottom: 6px; }
.check input { accent-color: var(--accent); width: 15px; height: 15px; }
.headline {
  margin: 20px 0 14px; padding: 12px 16px; font-size: .95rem;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border-inline-start: 3px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0;
}
table.results th br + .small { font-weight: 400; }

@media (max-width: 720px) {
  .symbol-head { grid-template-columns: 1fr; padding: 17px 16px; }
  .symbol-identity { padding: 0 0 13px; }
  .spread {
    grid-template-columns: 1fr; gap: 7px; padding: 13px 0 0;
    border-inline-start: 0; border-top: 1px solid var(--border);
  }
  .spread-route { margin-top: 2px; }
  .spread-route { width: 100%; grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr); gap: 10px; }
  .spread-divider { width: 30px; height: 30px; }
  .funding-board-head { padding-bottom: 26px; }
  .symbol-actions { padding: 12px 16px; align-items: flex-start; flex-direction: column; }
  .funding-notes { margin-top: 28px; padding: 16px; }
  .funding-detail-head { padding-top: 44px; padding-bottom: 22px; }
  .funding-detail-head .crumbs { margin-bottom: 15px; }
  .funding-detail-head h1 { margin-bottom: 17px; }
  .funding-chart-title { margin-top: 30px; }
  .chart { margin-bottom: 32px; }
  .chart svg { width: 680px; max-width: none; }
}

/* Referral call to action. Visually distinct from the data above it so a
   reader can tell at a glance which part is measurement and which part is the
   site's own commercial interest. */
.referral-cta {
  margin: 32px 0 8px; padding: 20px 22px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-soft);
}
.referral-cta-title { margin: 0 0 6px; font-size: 1.05rem; }
.referral-cta-lead { margin: 0 0 16px; font-size: .88rem; color: var(--fg-muted); max-width: 62ch; }
.referral-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.referral-item {
  display: flex; flex-wrap: wrap; gap: 10px 16px;
  align-items: center; justify-content: space-between;
  padding: 12px 14px; border: 1px solid var(--border);
  border-radius: 8px; background: var(--bg);
}
.referral-item--primary { border-color: var(--accent); }
.referral-venue { display: flex; align-items: center; gap: 8px; font-size: .95rem; }

/* The signup link is the conversion action and is used mostly on a phone, so
   it gets a full-size touch target rather than the text-height one it
   inherited (33px measured, below the 44px minimum). */
.referral-item .exchange-signup {
  min-height: 44px; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 8px;
  background: var(--accent); color: var(--accent-fg); text-decoration: none;
}
.referral-item .exchange-signup:hover { filter: brightness(1.08); }
.referral-item:not(.referral-item--primary) .exchange-signup {
  background: transparent; color: var(--accent); border: 1px solid var(--border);
}

/* Evidence screenshots. Intrinsic width/height are required on the img so the
   article does not reflow under the reader when one loads. */
.evidence { margin: 22px 0; }
.evidence img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-soft);
}
.evidence figcaption {
  margin-top: 8px; font-size: .8rem; color: var(--fg-muted);
  line-height: 1.5; max-width: 74ch;
}
