/* A House Divided: 2027 overview. Builds on /assets/site.css tokens.
   Dense, data first: rules and type carry hierarchy, plates carry charts.
   Motion only on state changes, and none under prefers-reduced-motion. */

.x2027 {
  --pl: #F2842F;
  --cr: #45c4a4;
  --bg-t: #7F96C8;
  --qc: #F2842F;
  --x-gap: 96px;
  --tab: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  background:
    linear-gradient(180deg, rgba(10, 16, 32, 0.0) 0, rgba(10, 16, 32, 0.35) 900px, rgba(10, 16, 32, 0) 1600px);
}
.x2027 .x-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.x2027 a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; }
.x2027 a:hover { text-decoration-color: var(--brass); }
.x2027 a.btn { text-decoration: none; }
.x2027 .x-muted { color: var(--text-3); }
.x2027 .x-small { font-size: 0.84rem; }
.x2027 .sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: var(--sw); margin-right: 7px; vertical-align: -1px; }
.x2027 .sw-m { background: #2c3e66; }
.x2027 .sw-u { background: transparent; border: 1px solid var(--line-2); }
.x2027 :focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

/* ── Hero ─────────────────────────────────────────────────────────── */
.x-hero { padding: 34px 0 40px; position: relative; }
.x-crumbs { font-size: 0.8rem; color: var(--text-3); margin-bottom: 22px; }
.x-crumbs a { color: var(--text-2); text-decoration: none !important; }
.x-hero-top { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: end; }
.x-eyebrow { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass-soft); font-weight: 600; margin-bottom: 10px; }
.x-hero h1 { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin: 0 0 16px; line-height: 0.9; }
.x-h1-year { font-size: clamp(4.4rem, 11vw, 8.6rem); font-weight: 800; letter-spacing: -0.055em; color: var(--text);
  background: linear-gradient(180deg, #fff 0%, #ffd9b8 62%, var(--brass) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.x-h1-sub { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 700; letter-spacing: -0.02em; color: var(--text-2); }
.x-dek { color: var(--text-2); font-size: 1.08rem; line-height: 1.55; max-width: 62ch; margin-bottom: 24px; }
.x-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.x-actions .btn.primary { background: var(--brass); border-color: var(--brass); color: #1a1208; }

.x-dates { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.x-dates li { background: var(--ground-2); padding: 12px 16px; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "d t" "l l"; gap: 2px 12px; }
.x-date-d { grid-area: d; font-weight: 700; font-size: 1rem; }
.x-date-t { grid-area: t; color: var(--brass-soft); font-size: 0.86rem; font-weight: 600; align-self: center; }
.x-date-l { grid-area: l; color: var(--text-3); font-size: 0.82rem; }
.x-date-play { grid-template-areas: "l d" !important; align-items: center; }
.x-date-play .x-date-d { display: flex; gap: 6px; justify-content: flex-end; }
.x-flagchip { font-size: 0.8rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: rgba(242, 132, 47, 0.16); color: #ffc79b; border: 1px solid rgba(242, 132, 47, 0.45); }

.x-hero-fig { margin: 34px 0 0; padding: 16px 16px 12px; background: linear-gradient(180deg, var(--ground-2), #121c35); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.x-hero-key { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 0.86rem; color: var(--text-2); margin-bottom: 12px; align-items: center; }
.x-hero-key b { color: var(--text); margin-left: 4px; }
.x-hero-total { margin-left: auto; color: var(--text-3); }
.x-hero-fig figcaption { font-size: 0.8rem; color: var(--text-3); margin-top: 10px; }
.x-treemap { display: block; width: 100%; height: auto; }
.x-treemap.tm-tall { display: none; }
.tm-sheen { pointer-events: none; }
.tm-tile rect { stroke: rgba(10, 16, 32, 0.55); stroke-width: 1; transition: filter 0.2s; }
.tm-tile[data-tier="background"] rect { fill-opacity: 0.55; }
.tm-tile[data-tier="computer"] rect { fill-opacity: 0.78; }
.tm-tile:hover rect { filter: brightness(1.12); }
.tm-name { font-size: 13px; font-weight: 700; fill: #0c1426; }
.tm-big { font-size: 22px; letter-spacing: -0.01em; }
.tm-val { font-size: 12px; font-weight: 600; fill: rgba(12, 20, 38, 0.82); }
.tm-bigval { font-size: 26px; font-weight: 800; fill: #0c1426; }
.tm-sub { font-size: 12px; fill: rgba(12, 20, 38, 0.75); font-weight: 500; }
.tm-id { font-size: 10px; font-weight: 700; fill: rgba(12, 20, 38, 0.8); }
.tm-tile[data-tier="background"] .tm-name, .tm-tile[data-tier="background"] .tm-bigval { fill: #0e1830; }

.x-hero-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 22px 0 0; border-top: 1px solid var(--line); }
.x-hero-stats div { padding: 14px 16px 0 0; display: flex; flex-direction: column-reverse; gap: 2px; }
.x-hero-stats dd { margin: 0; font-size: 1.9rem; font-weight: 800; letter-spacing: -0.03em; }
.x-hero-stats dt { color: var(--text-3); font-size: 0.82rem; }
.x-tentative { font-size: 0.8rem; color: var(--text-3); margin-top: 18px; max-width: 90ch; }

/* ── In-page contents ─────────────────────────────────────────────── */
.x-toc { position: sticky; top: var(--header-h, 68px); z-index: 20; display: flex; gap: 4px 24px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 0.88rem; overflow-x: auto; scrollbar-width: none; background: rgba(20, 31, 58, 0.94); backdrop-filter: blur(6px); }
.x-toc a { color: var(--text-2); text-decoration: none !important; white-space: nowrap; }
.x-toc a:hover { color: var(--text); }

/* ── Sections ─────────────────────────────────────────────────────── */
.x-section { padding-top: var(--x-gap); scroll-margin-top: 120px; }
.x-section > h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; margin-bottom: 12px; }
.x-section > .x-lede { color: var(--text-2); font-size: 1.02rem; max-width: 72ch; margin-bottom: 30px; line-height: 1.55; }
.x-kicker { font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass-soft); font-weight: 600; margin-bottom: 8px; }
.x-h3 { font-size: 1.08rem; font-weight: 700; margin: 0 0 10px; }
.x-h3-gap { margin-top: 44px; }
.x-h4 { font-size: 0.92rem; font-weight: 700; margin: 18px 0 8px; color: var(--text-2); }
.x-note { color: var(--text-3); font-size: 0.86rem; margin: 14px 0 0; max-width: 80ch; }
.x-fig { margin: 0; padding: 18px; background: var(--ground-2); border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.x-fig figcaption { display: flex; flex-direction: column; gap: 3px; margin-bottom: 12px; font-size: 0.86rem; color: var(--text-3); }
.x-fig figcaption b { color: var(--text); font-size: 0.98rem; }
.x-chart { display: block; width: 100%; height: auto; overflow: visible; }
.x-chart .ax { stroke: var(--line); stroke-width: 1; }
.x-chart .axl, .x-timeline .axl { font-size: 10.5px; fill: var(--text-3); }
.x-chart .axl-dim { fill: var(--text-3); opacity: 0.7; }
.yc-line, .lc-line { fill: none; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.lc-dash { stroke-dasharray: 5 4; }
.yc-lab { font-size: 11px; font-weight: 700; }
.yc-long { fill: rgba(127, 150, 200, 0.07); stroke: var(--line); stroke-dasharray: 3 3; }

/* ── Explorer ─────────────────────────────────────────────────────── */
.x-metric-bar { display: flex; flex-wrap: wrap; gap: 14px 22px; margin-bottom: 14px; }
.x-mgroup { display: flex; flex-direction: column; gap: 6px; }
.x-mgroup-l { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); font-weight: 600; }
.x-seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.x-seg button { font: inherit; font-size: 0.84rem; padding: 7px 12px; background: transparent; color: var(--text-2); border: 0; border-right: 1px solid var(--line); cursor: pointer; }
.x-seg button:last-child { border-right: 0; }
.x-seg button:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.x-seg button[aria-pressed="true"] { background: var(--brass); color: #1a1208; font-weight: 600; }

.x-explorer-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 20px; align-items: start; }
.x-map-frame { position: relative; background: radial-gradient(ellipse at 50% 40%, #1b2a50 0%, #121b33 70%); border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.x-worldmap { display: block; width: 100%; height: auto; }
.x-worldmap .wm-grat line { stroke: rgba(170, 190, 225, 0.05); }
.x-worldmap path { stroke: #0f1830; stroke-width: 0.5; stroke-linejoin: round; }
.x-worldmap .wm-m { fill: #26375f; }
.x-worldmap .wm-u { fill: #1a2646; }
.x-worldmap .wm-c { cursor: pointer; transition: fill 0.35s ease, opacity 0.2s; }
.x-worldmap .wm-c:hover, .x-worldmap .wm-c.is-hover { stroke: #fff; stroke-width: 1; }
.x-worldmap .wm-c.is-sel { stroke: #fff; stroke-width: 1.6; }
.x-worldmap .wm-inset-bg { fill: #121b33; }
.x-worldmap .wm-inset-frame { fill: none; stroke: var(--line-2); }
.x-worldmap .wm-inset-l { font-size: 11px; font-weight: 700; fill: var(--text-2); letter-spacing: 0.08em; text-transform: uppercase; }
.x-worldmap .wm-zoom path { stroke-width: 0.35; }
.x-worldmap .wm-zoom .wm-c.is-sel { stroke-width: 0.9; }
.x-worldmap .wm-c.is-na { fill: #33456f !important; }
.x-tip { position: absolute; pointer-events: none; z-index: 5; background: #0d1530; border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 10px; font-size: 0.82rem; box-shadow: var(--shadow-sm); min-width: 150px; }
.x-tip b { display: block; font-size: 0.9rem; }
.x-tip span { color: var(--text-2); }
.x-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.8rem; color: var(--text-2); margin-top: 10px; align-items: center; }
.x-ramp { display: flex; align-items: center; gap: 8px; }
.x-ramp-bins { display: flex; }
.x-ramp-bins span { display: flex; flex-direction: column; font-size: 0.72rem; color: var(--text-3); width: 74px; }
.x-ramp-bins span::before { content: ""; height: 10px; background: var(--sw); margin-bottom: 4px; }
.x-ramp-bins span:first-child::before { border-radius: 3px 0 0 3px; }
.x-ramp-bins span:last-child::before { border-radius: 0 3px 3px 0; }
.x-clist-wrap { margin-top: 16px; }
.x-clist { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.x-clist-h { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); font-weight: 600; margin: 0 2px 0 10px; display: flex; align-items: center; }
.x-clist-h::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--sw); margin-right: 6px; }
.x-clist-h:first-child { margin-left: 0; }
.x-clist button { font: inherit; font-size: 0.8rem; padding: 4px 9px; border-radius: 6px; border: 1px solid var(--line); background: var(--ground-2); color: var(--text-2); cursor: pointer; }
.x-clist button:hover { color: var(--text); border-color: var(--line-3); }
.x-clist button[aria-pressed="true"] { border-color: var(--brass); color: var(--text); background: rgba(242, 132, 47, 0.14); }
.x-rank { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.x-rank h3 { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-3); font-weight: 600; margin: 0 0 8px; }
.x-rank ol { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 22px; }
.x-rank li { break-inside: avoid; }
.x-rank button { width: 100%; display: grid; grid-template-columns: 22px minmax(0, 118px) minmax(0, 1fr) 84px; gap: 8px; align-items: center; font: inherit; font-size: 0.8rem; color: var(--text-2); background: none; border: 0; padding: 3px 4px; border-radius: 4px; cursor: pointer; text-align: left; }
.x-rank button:hover, .x-rank button.is-sel { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.x-rank .rk-i { color: var(--text-3); font-size: 0.72rem; text-align: right; }
.x-rank .rk-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x-rank .rk-b { height: 8px; border-radius: 2px; background: rgba(255, 255, 255, 0.04); overflow: hidden; }
.x-rank .rk-b span { display: block; height: 100%; width: var(--w); background: var(--sw); border-radius: 2px; transition: width 0.4s ease; }
.x-rank .rk-v { text-align: right; font-weight: 600; color: var(--text); white-space: nowrap; }
.x-nojs { display: block; }
.x-js .x-nojs { display: none; }

.x-panel { background: linear-gradient(180deg, var(--plate), var(--ground-2) 240px); border: 1px solid var(--line-2); border-radius: 14px; padding: 20px; min-height: 420px; position: sticky; top: 64px; max-height: calc(100vh - 84px); overflow-y: auto; scrollbar-width: thin; }
.x-panel:empty { display: none; }
.x-panel:focus { outline: none; }
.xp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 4px; }
.xp-head h3 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
.xp-tier { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 4px 8px; border-radius: 6px; color: #0c1426; background: var(--sw); white-space: nowrap; }
.xp-sub { color: var(--text-3); font-size: 0.84rem; margin-bottom: 14px; }
.xp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 16px; }
.xp-grid div { background: #172446; padding: 9px 10px; }
.xp-grid dt { font-size: 0.7rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; }
.xp-grid dd { margin: 2px 0 0; font-size: 1.02rem; font-weight: 700; }
.xp-grid dd small { font-size: 0.72rem; color: var(--text-3); font-weight: 500; margin-left: 3px; }
.xp-sec { margin-top: 16px; }
.xp-sec h4 { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-3); margin: 0 0 8px; font-weight: 600; }
.xp-ch { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 0.86rem; }
.xp-ch span:nth-child(even) { font-weight: 700; text-align: right; }
.xp-bonds { display: flex; gap: 6px; }
.xp-bonds div { flex: 1; background: #172446; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; font-size: 0.78rem; color: var(--text-3); }
.xp-bonds b { display: block; color: var(--text); font-size: 1rem; }
.xp-maps { display: block; width: 100%; height: auto; margin-top: 4px; }
.xp-maps path { stroke: #0f1830; stroke-width: 0.6; }
.xp-regions { width: 100%; font-size: 0.8rem; border-collapse: collapse; margin-top: 8px; }
.xp-regions th, .xp-regions td { padding: 4px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.xp-regions td { text-align: right; color: var(--text-2); padding-left: 12px; }
.xp-regions thead th:not(:first-child) { padding-left: 12px; }
.xp-regions thead th { color: var(--text-3); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; }
.xp-regions thead th:not(:first-child) { text-align: right; }
.xp-pyr { display: block; width: 100%; max-width: 320px; height: auto; }
.xp-note { font-size: 0.78rem; color: var(--text-3); margin-top: 6px; }

.x-pyramid .py-m { fill: #5bb9c9; }
.x-pyramid .py-f { fill: #e8607a; }
.x-pyramid .py-age { font-size: 9px; fill: var(--text-3); }
.x-pyramid .axl { font-size: 10px; fill: var(--text-3); }

/* ── Tiers ────────────────────────────────────────────────────────── */
.x-stacks { display: grid; gap: 8px; margin-bottom: 26px; }
.x-stack-row { display: grid; grid-template-columns: 70px minmax(0, 1fr) 96px; gap: 12px; align-items: center; font-size: 0.86rem; }
.x-stack-l { color: var(--text-2); }
.x-stack-t { color: var(--text-3); text-align: right; padding-right: 4px; }
.x-stack { display: flex; height: 26px; border-radius: 6px; overflow: hidden; background: var(--ground-2); }
.x-stack-seg { width: var(--w); background: var(--sw); display: flex; align-items: center; padding-left: 8px; font-size: 0.78rem; font-weight: 700; color: #0c1426; }
.x-stack-seg:nth-child(2) { opacity: 0.85; }
.x-stack-seg:nth-child(3) { opacity: 0.65; }
.x-tiers { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "p b" "c b"; grid-template-rows: auto 1fr; gap: 16px; align-items: start; }
.x-tier[data-tier="playable"] { grid-area: p; }
.x-tier[data-tier="computer"] { grid-area: c; }
.x-tier[data-tier="background"] { grid-area: b; }
.x-tier { border-top: 3px solid var(--tc); background: var(--ground-2); border-radius: 0 0 12px 12px; padding: 18px; }
.x-tier-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.x-tier-count { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.04em; color: var(--tc); line-height: 1; }
.x-tier h3 { font-size: 1.12rem; font-weight: 700; margin: 0; }
.x-tier > p { color: var(--text-2); font-size: 0.88rem; line-height: 1.5; margin-bottom: 14px; }
.x-tier-share { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 14px; }
.x-tier-share div { border-left: 2px solid var(--line-2); padding-left: 10px; }
.x-tier-share dt { font-size: 0.74rem; color: var(--text-3); }
.x-tier-share dd { margin: 0; font-size: 1.2rem; font-weight: 800; }
.x-tier-list { list-style: none; padding: 0; margin: 0; }
.x-tier-legend, .x-tier-row { display: grid; grid-template-columns: minmax(0, 1fr) 60px minmax(40px, 0.9fr) 46px; gap: 8px; align-items: center; }
.x-tier-legend { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); padding: 0 6px 4px; }
.x-tier-legend span:nth-child(2) { order: 3; text-align: right; }
.x-tier-legend span:nth-child(3) { order: 2; }
.x-tier-legend span:nth-child(4) { order: 4; text-align: right; }
.x-tier-row { width: 100%; font: inherit; font-size: 0.84rem; text-align: left; padding: 5px 6px; background: none; border: 0; border-top: 1px solid var(--line); color: var(--text); cursor: pointer; border-radius: 0; }
.x-tier-row:hover { background: rgba(255, 255, 255, 0.04); }
.x-tier-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x-tier-bar { order: 2; height: 6px; background: rgba(255, 255, 255, 0.04); border-radius: 3px; overflow: hidden; }
.x-tier-bar span { display: block; height: 100%; width: var(--w); background: var(--sw); border-radius: 3px; }
.x-tier-v { order: 3; text-align: right; font-weight: 600; }
.x-tier-p { order: 4; text-align: right; color: var(--text-3); font-size: 0.78rem; }

/* ── Deep dives ───────────────────────────────────────────────────── */
.x-chambers { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.x-chamber { background: var(--ground-2); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.x-chamber-n { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; color: var(--text); }
.x-chamber:first-child .x-chamber-n { color: var(--brass); }
.x-chamber-l { font-weight: 600; font-size: 0.9rem; }
.x-chamber-s { color: var(--text-3); font-size: 0.78rem; }
.x-dive-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; align-items: start; }
.x-hemi { display: block; width: 100%; height: auto; }
.x-hemi circle { transition: opacity 0.2s; }
.hemi-n { font-size: 34px; font-weight: 800; fill: var(--text); text-anchor: middle; letter-spacing: -0.03em; }
.hemi-l { font-size: 12px; fill: var(--text-3); text-anchor: middle; }
.x-fig:hover .x-hemi.has-focus circle { opacity: 0.25; }
.x-fig .x-hemi.has-focus circle.is-on { opacity: 1; }
.x-key { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 0.82rem; color: var(--text-2); }
.x-key li { cursor: default; }
.x-key b { color: var(--text); margin-left: 3px; }
.x-regionmap { display: block; width: 100%; height: auto; }
.x-regionmap path { stroke: #0f1830; stroke-width: 0.7; stroke-linejoin: round; opacity: 0.9; }
.x-regionmap path:hover { opacity: 1; stroke: #fff; }
.x-regionmap .rm-hl { stroke: #fff; stroke-width: 1.4; opacity: 1; }
.x-regionmap .rm-t { font-size: 11px; font-weight: 700; fill: #0c1426; text-anchor: middle; pointer-events: none; }
.x-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.x-table th, .x-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.x-table thead th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-3); font-weight: 600; white-space: nowrap; }
.x-table .num { text-align: right; white-space: nowrap; }
.x-table tbody th { font-weight: 600; }
.x-compact th, .x-compact td { padding: 6px 8px; }
.x-facts { display: grid; grid-template-columns: minmax(120px, 160px) minmax(0, 1fr); margin: 0; border-top: 1px solid var(--line); }
.x-facts dt, .x-facts dd { padding: 7px 0; border-bottom: 1px solid var(--line); margin: 0; font-size: 0.86rem; }
.x2027 .x-facts dt { color: var(--text-3); padding-right: 12px; font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-size: 0.84rem; }
.x-fig .x-h3 + .x-muted { margin-bottom: 10px; }
.x-fig .x-table + .x-h3 { margin-top: 22px; }
.x-pbars { list-style: none; padding: 0; margin: 0; display: grid; gap: 5px; }
.x-pbars li { display: grid; grid-template-columns: 150px minmax(0, 1fr) 32px; gap: 10px; align-items: center; font-size: 0.82rem; }
.pb-name { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-bar { height: 10px; background: rgba(255, 255, 255, 0.04); border-radius: 3px; overflow: hidden; }
.pb-bar span { display: block; height: 100%; width: var(--w); background: var(--sw); border-radius: 3px; }
.pb-n { text-align: right; font-weight: 700; }

.x-quebec { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; padding: 24px; border-radius: 14px; border: 1px solid rgba(242, 132, 47, 0.35);
  background: linear-gradient(120deg, rgba(242, 132, 47, 0.10), rgba(242, 132, 47, 0.02) 55%), var(--ground-2); }
.x-quebec h3 { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 10px; }
.x-quebec-head p { color: var(--text-2); font-size: 0.92rem; line-height: 1.55; margin: 0 0 10px; }
.x-gauge-track { position: relative; height: 18px; background: rgba(255, 255, 255, 0.06); border-radius: 9px; margin: 38px 0 10px; }
.x-gauge-fill { position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 9px; background: linear-gradient(90deg, rgba(242, 132, 47, 0.35), var(--brass)); }
.x-gauge-thr { position: absolute; left: var(--x); top: -30px; bottom: -6px; border-left: 2px dashed #fff; }
.x-gauge-thr span { position: absolute; right: 8px; top: -2px; font-size: 0.78rem; white-space: nowrap; color: var(--text); font-weight: 600; }
.x-gauge-read { font-size: 0.88rem; color: var(--text-2); }
.x-gauge-read b { font-size: 1.8rem; font-weight: 800; color: var(--brass); margin-right: 6px; }
.x-qstats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0 0; }
.x-qstats div { border-left: 2px solid rgba(242, 132, 47, 0.5); padding-left: 12px; }
.x-qstats dt { font-size: 0.76rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; }
.x-qstats dd { margin: 0; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; }
.x-qstats dd span { display: block; font-size: 0.8rem; color: var(--text-2); font-weight: 400; letter-spacing: 0; }

/* ── Road to 2050 ─────────────────────────────────────────────────── */
.x-timeline-wrap { background: linear-gradient(180deg, var(--ground-2), #111a32); border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 10px; }
.x-scroll-x { overflow-x: auto; }
.x-swipe { display: none; font-size: 0.78rem; color: var(--text-3); margin: 0 0 8px; }
.x-timeline { display: block; width: 100%; min-width: 900px; height: auto; }
.tl-grid { stroke: rgba(170, 190, 225, 0.07); }
.tl-grid-10 { stroke: rgba(170, 190, 225, 0.16); }
.tl-year { font-size: 12px; fill: var(--text-3); font-weight: 600; }
.tl-now { fill: var(--brass); }
.tl-now-line { stroke: var(--brass); stroke-width: 1.5; }
.tl-after { fill: rgba(255, 255, 255, 0.02); }
.tl-after-l { font-size: 10px; fill: var(--text-3); letter-spacing: 0.1em; text-transform: uppercase; }
.tl-lane { stroke: var(--line); }
.tl-lane-l { font-size: 12px; font-weight: 700; fill: var(--text-2); }
.tl-law { fill: rgba(242, 132, 47, 0.85); stroke: #ffbd8a; stroke-width: 1; }
.tl-dot-n { font-size: 11px; font-weight: 800; fill: #1a1208; }
.tl-band { stroke: none; }
.tl-res { fill: rgba(69, 196, 164, 0.32); stroke: #45c4a4; stroke-width: 1; }
.tl-ev { fill: rgba(127, 150, 200, 0.22); stroke: rgba(169, 186, 223, 0.6); stroke-width: 1; }
.tl-demo { fill: rgba(232, 96, 122, 0.25); stroke: #e8607a; stroke-width: 1; }
.tl-demo2 { fill: rgba(157, 143, 214, 0.22); stroke: #9d8fd6; stroke-width: 1; }
.tl-band-l { font-size: 11.5px; font-weight: 600; fill: var(--text); }
.tl-band-s { font-size: 10.5px; fill: var(--text-2); }
.tl-bc { fill: #e8b04a; }
.tl-tick { stroke: rgba(232, 176, 74, 0.6); }
.tl-small { font-size: 10.5px; fill: var(--text-2); }
.tl-bond { stroke: #A9BADF; stroke-width: 4; stroke-linecap: round; }
.tl-bond-long { stroke-dasharray: 2 5; stroke-width: 3; stroke: #7F96C8; }
.x-charts3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.x-road-lists { margin-top: 18px; display: grid; gap: 10px; }
.x-road-lists details, .x-regions details { border: 1px solid var(--line); border-radius: 10px; background: var(--ground-2); padding: 0 16px; }
.x-road-lists summary, .x-regions summary { cursor: pointer; padding: 13px 0; font-size: 0.92rem; list-style-position: outside; }
.x-road-lists summary .x-muted, .x-regions summary .x-muted { font-size: 0.84rem; margin-left: 6px; }
.x-road-lists details[open], .x-regions details[open] { padding-bottom: 16px; }
.x-list-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px; }
.x-list-col h4 { font-size: 1.1rem; font-weight: 800; margin: 4px 0 6px; }
.x-list-col h4 span { font-size: 0.78rem; color: var(--text-3); font-weight: 500; margin-left: 4px; }
.x-list-col ul { list-style: none; padding: 0; margin: 0; }
.x-list-col li { font-size: 0.84rem; padding: 5px 0; border-top: 1px solid var(--line); color: var(--text-2); }
.x-list-col li .x-muted { display: block; font-size: 0.74rem; }
.x-inline-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.x-inline-list li { font-size: 0.82rem; padding: 5px 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--text-2); }
.x-inline-list b { color: var(--text); font-weight: 600; }

/* ── 1991 comparison ──────────────────────────────────────────────── */
.x-vs-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.x-vs td { font-size: 0.88rem; }
.x-vs .x-old { color: var(--text-3); }
.x-vs .x-new { color: var(--text); font-weight: 600; }
.x-vs thead th:last-child { color: var(--brass-soft); }
.x-slope { display: block; width: 100%; height: auto; }
.x-slope .ax { stroke: var(--line); stroke-dasharray: 2 4; }
.x-slope .axl { font-size: 10px; fill: var(--text-3); }
.sl-h { font-size: 13px; font-weight: 800; fill: var(--text); }
.sl-line { stroke-width: 1.4; opacity: 0.55; }
.sl-hl { stroke-width: 2.4; opacity: 1; }
.sl-l { font-size: 10.5px; fill: var(--text-2); }
.x-new-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.x-new-list li { background: var(--ground-2); padding: 16px 18px; }
.x-new-i { display: block; font-family: var(--tab); font-size: 0.78rem; color: var(--brass); margin-bottom: 6px; }
.x-new-list b { font-size: 0.98rem; }
.x-new-list p { font-size: 0.84rem; color: var(--text-2); margin: 6px 0 0; line-height: 1.5; }

/* ── Metrics table ────────────────────────────────────────────────── */
.x-controls { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-bottom: 12px; }
.x-search input { font: inherit; font-size: 0.86rem; padding: 7px 12px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--ground-2); color: var(--text); min-width: 200px; }
.x-search input::placeholder { color: var(--text-3); }
.x-count { color: var(--text-3); font-size: 0.82rem; }
.x-table-scroll { overflow-x: auto; }
.x-table-sticky { border: 1px solid var(--line); border-radius: 12px; background: var(--ground-2); }
.x-sortable th, .x-sortable td { padding: 8px 7px; }
.x-sortable thead th { position: sticky; top: 0; background: #17243f; }
.x-sortable thead th button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-transform: inherit; letter-spacing: inherit; }
.x-sortable thead th[aria-sort] button { color: var(--text); }
.x-sortable thead th[aria-sort="descending"] button::after { content: " ▾"; }
.x-sortable thead th[aria-sort="ascending"] button::after { content: " ▴"; }
.x-sortable tbody th { position: sticky; left: 0; background: var(--ground-2); white-space: nowrap; z-index: 1; }
.x-sortable tbody tr:hover th, .x-sortable tbody tr:hover td { background: #1c2b52; }
.x-tierdot { display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--sw); margin-right: 8px; }
.x-sub { display: block; font-size: 0.72rem; color: var(--text-3); font-weight: 400; margin-left: 16px; }
.x-hasbar { position: relative; }
.x-hasbar .x-bar { position: absolute; right: 0; bottom: 3px; height: 3px; width: var(--w); background: rgba(242, 132, 47, 0.55); border-radius: 2px; }
.x-hasbar span:last-child { position: relative; }
.x-na { color: var(--text-3); }
.x-notes { margin-top: 14px; display: grid; gap: 6px; max-width: 90ch; }
.x-notes p { font-size: 0.82rem; color: var(--text-3); margin: 0; }
.x-regions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

/* ── Next ─────────────────────────────────────────────────────────── */
.x-next { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 12px; }
.x-next-card { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--ground-2); text-decoration: none !important; transition: border-color 0.2s, transform 0.2s; }
.x-next-card:hover { border-color: var(--brass); transform: translateY(-2px); }
.x-next-card b { font-size: 1.05rem; }
.x-next-card span:last-child { color: var(--text-3); font-size: 0.84rem; }
.x-next-k { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--brass-soft); font-weight: 600; }
.x-next-primary { background: linear-gradient(135deg, rgba(242, 132, 47, 0.22), rgba(242, 132, 47, 0.04)); border-color: rgba(242, 132, 47, 0.6); }
.x-next-primary b { font-size: 1.3rem; }
.x-source { margin: 64px 0 56px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.x-source p { font-size: 0.78rem; color: var(--text-3); margin: 0; max-width: 100ch; }

/* ── Reveal on scroll (JS adds .x-reveal; reduced motion skips it) ─── */
.x-reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.x-reveal.is-in { opacity: 1; transform: none; }

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .x-explorer-grid { grid-template-columns: 1fr; }
  .x-panel { position: static; max-height: none; }
  .x-charts3 { grid-template-columns: 1fr 1fr; }
  .x-new-list { grid-template-columns: 1fr 1fr; }
  .x-next { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .x2027 { --x-gap: 68px; }
  .x-hero-top { grid-template-columns: 1fr; gap: 26px; }
  .x-hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .x-hero-stats div:nth-child(n + 4) { border-top: 1px solid var(--line); }
  .x-dive-grid, .x-vs-grid, .x-quebec { grid-template-columns: 1fr; }
  .x-chambers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .x-regions { grid-template-columns: 1fr; }
  .x-hero-total { margin-left: 0; width: 100%; }
}
@media (max-width: 860px) {
  .x-hero { display: flex; flex-direction: column; }
  .x-hero-top { display: contents; }
  .x-crumbs { order: 0; }
  .x-hero-title { order: 1; }
  .x-hero-fig { order: 2; }
  .x-dates { order: 3; margin-top: 22px; }
  .x-hero-stats { order: 4; }
  .x-tentative { order: 5; }
  .x-tiers { grid-template-columns: 1fr; grid-template-areas: "p" "c" "b"; }
  .x-rank ol { columns: 1; }
}
@media (max-width: 600px) {
  .x-hero { padding-top: 22px; }
  .x-treemap.tm-wide { display: none; }
  .x-treemap.tm-tall { display: block; }
  .x-hero-key { font-size: 0.8rem; gap: 4px 14px; }
  .x-actions .btn { padding: 10px 14px; font-size: 0.88rem; }
  .x-h1-year { font-size: 5rem; }
  .x-hero-fig { padding: 10px; margin-top: 26px; }
  .x-hero-stats { grid-template-columns: 1fr 1fr; }
  .x-hero-stats dd { font-size: 1.5rem; }
  .x-charts3, .x-new-list, .x-next { grid-template-columns: 1fr; }
  .x-chambers { grid-template-columns: 1fr 1fr; }
  .x-chamber:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .x-swipe { display: block; }
  .x-chamber-n { font-size: 1.6rem; }
  .x-qstats dd { font-size: 1.3rem; }
  .x-pbars li { grid-template-columns: 112px minmax(0, 1fr) 30px; }
  .xp-grid { grid-template-columns: 1fr 1fr; }
  .x-ramp-bins span { width: 58px; }
  .x-fig { padding: 14px; }
  .x-quebec { padding: 18px; }
  .x-metric-bar .x-seg button { padding: 6px 9px; font-size: 0.8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .x2027 *, .x2027 *::before, .x2027 *::after { transition: none !important; animation: none !important; }
  .x-reveal { opacity: 1; transform: none; }
}
