/* Fair Rate Index v2 layout. Scoped to .v2 so the rest of the site is untouched.
   Fonts are inherited from the site's own stylesheet. */
.v2 {
  --v2-ink: #1B2430;
  --v2-muted: #4E5866;
  --v2-paper: #F3EFE6;
  --v2-panel: #E9E2D3;
  --v2-rule: rgba(27, 36, 48, .18);
  --v2-sun: #F2B705;
  --v2-m1: #EFE6CF; --v2-m2: #C7D2D8; --v2-m3: #8FA6B6; --v2-m4: #587A92; --v2-m5: #2C4860;
  color: var(--v2-ink);
  display: block;
}
.v2 *, .v2 *::before, .v2 *::after { box-sizing: border-box; }
.v2-skip { position: absolute; left: -999px; top: 0; z-index: 100; background: #1B2430; color: #F3EFE6; padding: .6rem 1rem; }
.v2-skip:focus { left: .5rem; top: .5rem; }

.v2-wrap { max-width: 72rem; margin: 0 auto; padding-left: 1.25rem; padding-right: 1.25rem; }
.v2-sec { padding-top: 4.5rem; padding-bottom: 4.5rem; }
.v2-sec-tight { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.v2-band-ink { background: var(--v2-ink); color: var(--v2-paper); }
.v2-band-panel { background: var(--v2-panel); }

.v2 h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); line-height: 1.04; letter-spacing: -.022em; font-weight: 700; margin: 0 0 1.1rem; max-width: 13ch; }
.v2 h2 { font-size: clamp(1.55rem, 3vw, 2.35rem); line-height: 1.12; letter-spacing: -.012em; font-weight: 700; margin: 0 0 .8rem; max-width: 26ch; }
.v2 p { line-height: 1.55; max-width: 62ch; margin: 0 0 1rem; }
.v2 a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.v2 a:focus-visible, .v2 summary:focus-visible { outline: 3px solid var(--v2-sun); outline-offset: 3px; border-radius: 2px; }

/* hero: words left, the working tool right (the tool is the point) */
.v2-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem; align-items: start; padding-top: 3.5rem; padding-bottom: 4rem; }
.v2-kicker { font-size: .98rem; color: var(--v2-muted); }
.v2-lede { font-size: 1.16rem; }
.v2-aside { font-size: .98rem; color: var(--v2-muted); border-left: 3px solid var(--v2-sun); padding-left: .8rem; }
.v2-tool { min-width: 0; }
.v2-tool > section, .v2-tool > div { margin: 0 !important; max-width: 100% !important; }
.v2-tool-label { margin-bottom: .5rem; }
@media (max-width: 860px) {
  .v2-hero { grid-template-columns: 1fr; gap: 1.25rem; padding-top: 2rem; }
  .v2 h1 { max-width: 16ch; }
}

.v2-split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3rem; align-items: end; padding-top: 3.5rem; padding-bottom: 3.5rem; }
.v2-band .v2-split.v2-sec-tight { padding-top: 3.5rem; padding-bottom: 3.5rem; }
@media (max-width: 860px) { .v2-split { grid-template-columns: 1fr; gap: 1rem; } }
.v2-note { font-size: .98rem; opacity: .85; margin: 0; }

.v2-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.4rem; margin-top: 1.4rem; }
.v2-actions-end { margin-top: 0; }
.v2-btn { display: inline-block; background: var(--v2-ink); color: var(--v2-paper) !important; text-decoration: none !important; font-weight: 600; padding: .78rem 1.25rem; border-radius: 6px; line-height: 1.2; }
.v2-btn:hover { background: #2A3646; }
.v2-btn-sun { background: var(--v2-sun); color: var(--v2-ink) !important; }
.v2-btn-sun:hover { background: #FFC61A; }
.v2-link-light { color: var(--v2-paper) !important; }

.v2-small { font-size: .9rem; color: var(--v2-muted); }

.v2-steps { list-style: none; counter-reset: s; padding: 0; margin: 1.6rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.v2-steps li { counter-increment: s; line-height: 1.5; border-top: 2px solid var(--v2-ink); padding-top: .9rem; }
.v2-steps li::before { content: counter(s); display: block; font-weight: 700; font-size: 1.6rem; line-height: 1; margin-bottom: .55rem; }
.v2-steps strong { display: block; margin-bottom: .25rem; }
@media (max-width: 760px) { .v2-steps { grid-template-columns: 1fr; gap: 1.4rem; } }

.v2-who { list-style: none; padding: 0; margin: 1.5rem 0 1.25rem; border-top: 1px solid var(--v2-rule); }
.v2-who li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--v2-rule); }
.v2-who a { font-weight: 600; font-size: 1.1rem; }
.v2-who span { color: var(--v2-muted); }
@media (max-width: 640px) { .v2-who li { grid-template-columns: 1fr; gap: .2rem; } }

.v2-statelist summary { cursor: pointer; font-weight: 600; padding: .5rem 0; }
.v2-statelist ul { list-style: none; padding: 0; margin: .8rem 0 0; columns: 5 10rem; column-gap: 1.5rem; }
.v2-statelist li { padding: .2rem 0; break-inside: avoid; }

/* Fair Rate Friday tile map: the one loud thing on the page */
.v2-map-wrap { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 2.5rem; align-items: start; margin: 1.8rem 0 2rem; }
@media (max-width: 860px) { .v2-map-wrap { grid-template-columns: 1fr; gap: 1.25rem; } }
.v2-map { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 4px; max-width: 46rem; }
.v2-tile { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; border-radius: 3px; font-size: clamp(.58rem, 1.3vw, .82rem); font-weight: 600; text-decoration: none !important; color: var(--v2-ink); background: var(--v2-m1); transition: transform .12s ease; }
.v2-tile[data-bin="3"], .v2-tile[data-bin="4"] { color: #F3EFE6; }
.v2-tile[data-bin="0"] { background: var(--v2-m1); } .v2-tile[data-bin="1"] { background: var(--v2-m2); }
.v2-tile[data-bin="2"] { background: var(--v2-m3); } .v2-tile[data-bin="3"] { background: var(--v2-m4); }
.v2-tile[data-bin="4"] { background: var(--v2-m5); }
.v2-tile.is-none { background: transparent; outline: 1px dashed var(--v2-rule); color: var(--v2-muted); }
.v2-tile.is-home { box-shadow: 0 0 0 3px var(--v2-sun); }
.v2-tile:hover, .v2-tile:focus-visible, .v2-tile.is-active { transform: scale(1.12); position: relative; z-index: 1; }
.v2-map-readout { font-size: 1.15rem; min-height: 5.2em; margin: 0 0 1rem; }
.v2-map-readout b { display: block; font-size: 1.6rem; letter-spacing: -.01em; }
.v2-legend { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .35rem; }
.v2-legend li { display: flex; align-items: center; gap: .6rem; font-size: .92rem; }
.v2-legend i { width: 1.1rem; height: 1.1rem; border-radius: 3px; display: inline-block; }
@media (prefers-reduced-motion: reduce) { .v2-tile { transition: none; } .v2-tile:hover, .v2-tile.is-active { transform: none; } }
.v2-steps + .v2-actions { margin-top: 2.4rem; }

/* Agentic Trade Hub + system pages */
.v2-hero.v2-hero-solo { grid-template-columns: 1fr; padding-bottom: 2rem; }
.v2-hero-solo h1 { max-width: 20ch; }
.v2-hero-solo .v2-lede { max-width: 64ch; }
.v2-kicker a { color: inherit; }
.v2-fig { margin: 0; }
.v2-fig img { display: block; width: 100%; height: auto; border: 1px solid var(--v2-rule); border-radius: 4px; background: #F3EFE6; }
.v2-fig figcaption { font-size: .92rem; color: var(--v2-muted); margin-top: .7rem; max-width: 70ch; line-height: 1.5; }
.v2-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
@media (max-width: 860px) { .v2-cols { grid-template-columns: 1fr; gap: 2.5rem; } }
.v2-parts { columns: 2 14rem; column-gap: 2rem; padding-left: 1.6rem; margin: 1rem 0 0; }
.v2-parts li { padding: .22rem 0; break-inside: avoid; }
.v2-parts li::marker { font-weight: 700; }
.v2-scroll { overflow-x: auto; margin: 1rem 0; }
.v2-table { border-collapse: collapse; width: 100%; font-size: .98rem; }
.v2-table th, .v2-table td { text-align: left; padding: .6rem .8rem .6rem 0; border-bottom: 1px solid var(--v2-rule); vertical-align: top; }
.v2-table thead th { font-size: .88rem; color: var(--v2-muted); font-weight: 600; border-bottom: 2px solid var(--v2-ink); }
.v2-table tbody th { font-weight: 600; }
.v2-table td:nth-child(2) { font-weight: 700; white-space: nowrap; }
.v2-table-wide { min-width: 44rem; }
.v2-table-wide td:nth-child(3), .v2-table-wide td:nth-child(4) { white-space: nowrap; }
.v2-thumbs { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.v2-thumbs a { display: block; text-decoration: none !important; font-weight: 600; }
.v2-thumbs img { display: block; width: 100%; height: auto; border-radius: 4px; border: 1px solid var(--v2-rule); margin-bottom: .6rem; }
.v2-thumbs a:hover span, .v2-thumbs a:focus-visible span { text-decoration: underline; text-underline-offset: .18em; }
@media (max-width: 760px) { .v2-thumbs { grid-template-columns: 1fr; } }
