/* OpenVibe.Trade — readable tables, theme-token driven (openvibe-shared presets). No JavaScript needed. */
:root { color-scheme: dark; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg-primary, #0a0f1c); color: var(--text-primary, #e6edf7); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent-light, #60a5fa); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--accent, #3b82f6); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--bg-card, #131c2e); padding: 8px 12px; z-index: 10; }
.account-bar { max-width: 1040px; margin: 0 auto; padding: 6px 16px 0; text-align: right; font-size: 14px; color: var(--text-secondary, #96a7c2); }
.disclaimer { max-width: 1040px; margin: 8px auto 0; padding: 8px 16px; border: 1px solid var(--warning, #f59e0b); border-radius: 8px; font-size: .95rem; background: var(--bg-card, #131c2e); }
.disclaimer-foot { margin: 24px auto; }
.page { max-width: 1040px; margin: 0 auto; padding: 16px 16px 48px; min-height: 60vh; }
/* The showcase (openvibe-shared showcase.css) pads its sections 24px each side for full-width pages; inside .page,
   which has its own padding, that put the hero and "How it works" 24px right of everything after them. */
.page > .sc-hero, .page > .sc-sec, .page > .sc-cta { padding-left: 0; padding-right: 0; }
/* The front page's own sections read as the showcase's do: same heading face and size as "What is here". */
.sc-sec ~ h2, .sc-sec ~ section > h2 { font-family: var(--ov-font, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif); font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -.02em; line-height: 1.2; margin-top: 44px; }
h1 { font-size: 1.9rem; line-height: 1.2; margin: 1rem 0 .5rem; }
h1 .name { font-weight: 400; color: var(--text-secondary, #96a7c2); font-size: 1.3rem; }
h2 { font-size: 1.3rem; margin: 1.8rem 0 .5rem; }
.lede { color: var(--text-secondary, #96a7c2); font-size: 1.05rem; }
.meta, .muted, .empty { color: var(--text-muted, #7386a3); font-size: .92rem; }
.badge { display: inline-block; font-size: .75rem; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--border-light, #2c3d5c); color: var(--text-secondary); vertical-align: middle; }
.badge.stale { border-color: var(--warning, #f59e0b); color: var(--warning-text, var(--warning, #f59e0b)); font-weight: 600; }
.badge.fresh { border-color: var(--success, #22c55e); color: var(--success-text, var(--success, #22c55e)); }
table.data { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: .95rem; }
table.data caption { text-align: left; color: var(--text-muted, #7386a3); font-size: .85rem; padding-bottom: 4px; }
table.data th, table.data td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--border, #1f2d47); vertical-align: top; }
table.data td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.is-stale td, tr.is-stale th { background: rgba(245, 158, 11, .07); }
.docs { list-style: none; padding: 0; }
.docs li { padding: 8px 0; border-bottom: 1px solid var(--border, #1f2d47); }
.docs li:target, tr:target { outline: 2px solid var(--accent, #3b82f6); }
.briefs { list-style: none; padding: 0; display: grid; gap: 10px; }
.briefs li { padding: 12px 14px; border: 1px solid var(--border, #1f2d47); border-radius: 12px; background: var(--bg-card, #131c2e); }
.briefs p { margin: 6px 0 4px; }
.ai-brief { border-left: 3px solid var(--accent, #3b82f6); padding: 2px 0 2px 14px; }
.ai-brief .cite { font-size: .8rem; text-decoration: none; }
.context-body { border-left: 3px solid var(--border-light, #2c3d5c); padding-left: 14px; }
.disclosure { border: 1px solid var(--warning, #f59e0b); border-radius: 8px; padding: 6px 12px; }
.notice { border-left: 3px solid var(--info, #38bdf8); padding: 6px 12px; background: var(--bg-card, #131c2e); }
.notice.error { border-color: var(--danger, #ef4444); }
.card { border: 1px solid var(--border, #1f2d47); border-radius: 10px; padding: 12px 16px; margin: 16px 0; background: var(--bg-card, #131c2e); }
.revisions { list-style: none; padding: 0; }
.ov-breadcrumbs ol { list-style: none; padding: 0; margin: 8px 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .9rem; }
.ov-breadcrumbs li + li::before { content: "›"; margin-right: 6px; color: var(--text-muted); }
.ov-pagination { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0; }
label { display: block; margin: 8px 0 4px; font-weight: 600; font-size: .95rem; }
fieldset { border: 1px solid var(--border, #1f2d47); border-radius: 8px; margin: 10px 0; }
fieldset label { font-weight: 400; }
input, textarea, select { font: inherit; color: var(--text-primary); background: var(--bg-input, #0d1424); border: 1px solid var(--border-light, #2c3d5c); border-radius: 6px; padding: 6px 8px; max-width: 100%; }
textarea { width: 100%; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; }
input[type=checkbox], input[type=radio] { width: auto; }
.search input[type=search] { width: min(420px, 100%); }
button { display: inline-block; margin-top: 8px; font: inherit; font-weight: 600; background: var(--accent-strong, var(--accent, #3472d8)); color: var(--on-accent-strong, var(--on-accent, #fff)); border: 0; border-radius: 6px; padding: 7px 14px; cursor: pointer; }
button.danger { background: var(--danger, #ef4444); }
form.inline { display: inline; }
form.inline button { margin: 0; padding: 2px 10px; font-size: .85rem; }
.inline-form { margin: 10px 0; }
.inline-form label { display: inline-block; margin-right: 6px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media (max-width: 700px) {
  h1 { font-size: 1.5rem; }
}
/* A table scrolls sideways on phones and tablets, so each has tabindex="0" (axe scrollable-region-focusable). At 700 px
   and up it overflowed the page at a tablet's 768 px (the home's latest-filings table was 879 px wide). */
@media (max-width: 1024px) {
  table.data { display: block; overflow-x: auto; }
}
/* The front page (server/render/home.js): numbers beside the hero, cards, the rates table, form chips, questions. */
.home .page { max-width: 1080px; }
.tr-hero { padding-top: 28px; }
.tr-search { display: flex; gap: 8px; margin: 20px 0 0; max-width: 560px; }
.tr-search input[type=search] { flex: 1 1 auto; width: auto; min-width: 0; padding: 10px 12px; font-size: 1rem; border-radius: 10px; }
.tr-search button { margin: 0; padding: 10px 18px; border-radius: 10px; }
.tr-stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tr-stats li { min-width: 0; }
.tr-stats a { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--border, #1f2d47); background: var(--bg-secondary, #0f1729); color: inherit; text-decoration: none; transition: border-color .15s; }
.tr-stats a:hover, .tr-stats a:focus-visible { border-color: var(--accent, #3b82f6); }
.tr-stats b { font-size: 1.6rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tr-stats span { font-size: .85rem; line-height: 1.35; color: var(--text-secondary, #96a7c2); }
.tr-sec { margin-top: 44px; }
.tr-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.page .tr-head h2 { margin: 0; font-family: var(--ov-font, 'Inter', system-ui, sans-serif); font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -.02em; }   /* the showcase sections' size (.sc-sec) */
.tr-more { font-weight: 600; font-size: .95rem; text-decoration: none; }
.tr-more:hover { text-decoration: underline; text-underline-offset: 3px; }
.tr-lede { margin: 4px 0 14px; color: var(--text-secondary, #96a7c2); }
.tr-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
.tr-card { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--border, #1f2d47); background: var(--bg-card, #131c2e); overflow-wrap: anywhere; }
.tr-card p { margin: 0; }
.tr-card-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.tr-small { font-size: .82rem; margin-top: auto !important; }
.tr-wrap { overflow-x: auto; }
.tr-rates th[scope=row] { font-weight: 600; white-space: nowrap; }
.tr-up { color: var(--success-text, var(--success, #22c55e)); font-weight: 600; }
.tr-down { color: var(--warning-text, var(--warning, #f59e0b)); font-weight: 600; }
.tr-chips { list-style: none; margin: 8px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tr-chips li { min-width: 0; max-width: 100%; }
.tr-chips a, .tr-chips [aria-current] { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border-light, #2c3d5c); background: var(--bg-secondary, #0f1729); color: var(--text-primary, #e6edf7); text-decoration: none; font-size: .92rem; overflow-wrap: anywhere; }
.tr-chips [aria-current] { border-color: var(--accent, #3b82f6); font-weight: 700; }
.tr-chips a:hover, .tr-chips a:focus-visible { border-color: var(--accent, #3b82f6); }
.tr-n { font-size: .78rem; font-weight: 700; color: var(--text-muted, #7386a3); font-variant-numeric: tabular-nums; }
.tr-faq { display: grid; gap: 8px; }
.tr-faq details { border: 1px solid var(--border, #1f2d47); border-radius: 12px; background: var(--bg-card, #131c2e); padding: 0 16px; }
.tr-faq summary { cursor: pointer; font-weight: 600; padding: 12px 0; }
.tr-faq p { margin: 0 0 14px; color: var(--text-secondary, #96a7c2); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 600px) { .tr-search { flex-wrap: wrap; } .tr-search button { width: 100%; } .tr-stats b { font-size: 1.3rem; } .tr-stats a { padding: 12px; } .tr-cards > li:nth-child(n+5) { display: none; } }
@media (prefers-reduced-motion: reduce) { .tr-stats a { transition: none; } }
.home .disclaimer { max-width: 1048px; }
.tr-more-rates { margin-top: 8px; }
.tr-more-rates summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
.tr-rates { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr)); }
.tr-rate { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border, #1f2d47); background: var(--bg-card, #131c2e); min-width: 0; }
.tr-rate p { margin: 0; overflow-wrap: anywhere; }
.tr-rate-value data { font-size: 1.3rem; font-weight: 700; font-variant-numeric: tabular-nums; }
