/* Flow: a night globe for reach. Always dark, because the light has to glow. Type follows the Atlas. */
:root {
  --bg: #050607;
  --ink: #F2F4F6;
  --muted: #8E949C;
  --rule: #1E2126;
  --wash: #101216;
  --tag-bg: #F2F4F6;
  --tag-fg: #050607;
  --focus: #6A9BFF;
  --stage: #040506;
  --serif: 'Newsreader', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --sans: 'Hanken Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --topbar-height: 52px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body.fl { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.5 var(--sans); -webkit-text-size-adjust: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.noscript { padding: 24px; font-family: var(--mono); }

/* Top bar */
.fl-top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; height: var(--topbar-height);
  padding: 0 max(20px, env(safe-area-inset-right, 0px)) 0 max(20px, env(safe-area-inset-left, 0px));
  background: var(--bg); border-bottom: 1px solid var(--rule);
}
.wordmark { font: 300 24px/1 var(--serif); font-variation-settings: 'opsz' 40; letter-spacing: -.012em; text-decoration: none; white-space: nowrap; }
.wordmark em { font-style: italic; }
.fl-sub { margin: 0; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Frame */
.fl-main { display: flex; flex-direction: column; }
.fl-intro { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 28px; padding: 16px 20px 14px; }
.fl-copy { min-width: 0; flex: 1 1 460px; }
.fl-eyebrow { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 8px; font: 400 11.5px/1.2 var(--mono); color: var(--muted); }
.fl-eyebrow span { color: var(--muted); }
.fl-headline { margin: 0; font: 200 31px/1.1 var(--serif); font-variation-settings: 'opsz' 48; letter-spacing: -.012em; text-wrap: balance; max-width: 40ch; }
.fl-headline em { font-style: italic; }
.fl-lede { margin: 6px 0 0; max-width: 72ch; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.fl-pickers { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }

.fl-seg { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.fl-btn {
  display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 5px 10px;
  font: 400 12px/1.2 var(--mono); color: var(--ink); background: none; border: 1px solid var(--rule); cursor: pointer;
  text-decoration: none; white-space: nowrap;
}
.fl-btn:hover { border-color: var(--ink); }
.fl-btn[aria-pressed="true"] { background: var(--tag-bg); color: var(--tag-fg); border-color: var(--tag-bg); }
.pip { display: inline-block; flex: none; width: 9px; height: 9px; background: linear-gradient(135deg, var(--c0), var(--c1)); box-shadow: 0 0 0 1px rgba(0, 0, 0, .55); }

/* Stage */
.fl-body { position: relative; display: flex; flex: 1; min-height: 420px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.fl-stage { position: relative; flex: 1; min-width: 0; overflow: hidden; background: var(--stage); }
#flow { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
#flow.dragging { cursor: grabbing; }
#flow.pointing { cursor: pointer; }
#flow:focus-visible { outline-offset: -3px; }
.fl-panes { position: absolute; inset: 0; pointer-events: none; }
.fl-pane { position: absolute; color: #F2F4F6; }
.fl-pane-head { position: absolute; top: 12px; left: 16px; right: 16px; display: flex; align-items: center; gap: 8px; font: 500 14.5px/1.2 var(--sans); }
.fl-pane-head .kind { font: 400 11px var(--mono); color: #8E949C; }
.fl-pane-head .status { margin-left: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; font: 400 11px var(--mono); color: #C4CBD3; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fl-pane-metrics { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px 16px; margin: 0; padding: 8px 16px 12px; }
.fl-pane-metrics > div { min-width: 0; }
.fl-pane-metrics dt { font: 400 10.5px/1.3 var(--mono); color: #8E949C; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-pane-metrics dd { margin: 1px 0 0; font: 300 24px/1.1 var(--serif); font-variation-settings: 'opsz' 30; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.fl-pane-metrics dd small { margin-left: 5px; font: 400 10.5px var(--mono); color: #8E949C; }
.fl-pane-metrics > div[title] { pointer-events: auto; cursor: help; }

.fl-tip {
  position: absolute; z-index: 5; max-width: 300px; padding: 8px 10px; pointer-events: none;
  font: 400 11.5px/1.5 var(--mono); color: #F2F4F6; background: rgba(10, 12, 15, .94); border: 1px solid #2A2E35;
}
.fl-tip b { font: 500 13px var(--sans); }
.fl-tip .k { display: inline-block; width: 30px; color: #F2F4F6; }
.fl-tip .d { color: #9BA2AB; }

/* Dock */
.fl-dock { display: grid; grid-template-columns: minmax(0, 1fr) fit-content(58%); align-items: center; gap: 8px 20px; padding: 10px 20px 12px; }
.fl-note { grid-column: 1; margin: 0; font-size: 12.5px; line-height: 1.4; color: var(--muted); max-width: 90ch; min-height: 2.8em; }
.fl-legend { grid-column: 2; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 16px; margin: 0; padding: 0; list-style: none; font: 400 11px var(--mono); color: var(--muted);
  /* Solana defaults; flow.js overwrites these with the selected family's colors. */
  --lg-in-light: #C698FF; --lg-in: #9945FF; --lg-ring: #66F5BA; --lg-line-0: #9945FF; --lg-line-1: #14F195; }
.fl-legend li { display: inline-flex; align-items: center; gap: 6px; }
.fl-legend b { font-weight: 500; color: var(--ink); }

/* Metros panel: closed by default, opened from the tab on the stage's right edge. It pushes the globe aside on a
   wide screen and slides over it on a narrow one. */
.fl-panel-tab {
  position: absolute; z-index: 4; top: 50%; right: 0; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px; width: 28px; padding: 12px 0;
  font: 400 11px var(--mono); letter-spacing: .08em; color: var(--ink); background: rgba(10, 12, 15, .92);
  border: 1px solid var(--rule); border-right: 0; cursor: pointer;
}
.fl-panel-tab span { writing-mode: vertical-rl; transform: rotate(180deg); }
.fl-panel-tab::before { content: ''; width: 6px; height: 6px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateX(1px) rotate(45deg); }
.fl-panel-tab[aria-expanded="true"]::before { transform: translateX(-1px) rotate(-135deg); }
.fl-panel-tab:hover, .fl-panel-tab[aria-expanded="true"] { background: var(--tag-bg); color: var(--tag-fg); border-color: var(--tag-bg); }
.fl-panel { position: relative; z-index: 5; display: flex; flex-direction: column; flex: none; width: 344px; min-height: 0; background: var(--bg); border-left: 1px solid var(--rule); }
.fl-panel[hidden] { display: none; }
.fl-panel-head { display: flex; align-items: center; gap: 8px; min-height: 50px; padding: 8px 10px 8px 16px; border-bottom: 1px solid var(--rule); }
.fl-panel-tabs { flex: 1; min-width: 0; }
.fl-panel-close { display: grid; place-items: center; flex: none; width: 30px; height: 30px; padding: 0; background: none; border: 1px solid var(--rule); cursor: pointer; }
.fl-panel-close:hover { border-color: var(--ink); }
.fl-panel-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.pn-title { display: flex; align-items: center; gap: 8px; margin: 0; font: 500 14.5px var(--sans); }
.pn-title span { font: 400 11px var(--mono); color: var(--muted); }
.pn-finding { margin: 0; padding: 14px 16px 16px; font: 200 23px/1.15 var(--serif); font-variation-settings: 'opsz' 40; letter-spacing: -.01em; text-wrap: balance; border-bottom: 1px solid var(--rule); }
.pn-finding em { font-style: italic; }
.pn-card { padding: 12px 16px 14px; font-size: 12.5px; line-height: 1.45; background: var(--wash); border-bottom: 1px solid var(--rule); }
.pn-card-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.pn-card-head b { font: 500 16px var(--sans); }
.pn-card-head code, .pn-coords { font: 400 11px var(--mono); color: var(--muted); }
.pn-clear { margin-left: auto; padding: 2px 8px; font: 400 11px var(--mono); color: var(--muted); background: none; border: 1px solid var(--rule); cursor: pointer; }
.pn-clear:hover { color: var(--ink); border-color: var(--ink); }
.pn-role { margin: 8px 0 0; }
.pn-role span { display: block; }
.pn-role b { margin-right: 4px; font: 500 10px var(--mono); letter-spacing: .05em; }
.pn-reach { margin: 6px 0 0; color: #C4CBD3; }
.pn-sites { margin: 7px 0 0; color: var(--muted); overflow-wrap: anywhere; }
.pn-sites span { display: block; font: 400 10.5px var(--mono); }
.pn-sites code { font: 400 11px var(--mono); color: var(--ink); }
.pn-metrics { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border-bottom: 1px solid var(--rule); }
.pn-metrics > div { padding: 9px 16px 10px; }
.pn-metrics > div:nth-child(odd) { border-right: 1px solid var(--rule); }
.pn-metrics > div:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
.pn-metrics dt, .pn-facts dt { font: 400 11px var(--mono); color: var(--muted); }
.pn-metrics dd { margin: 2px 0 0; font: 300 23px/1.1 var(--serif); font-variation-settings: 'opsz' 30; font-variant-numeric: tabular-nums lining-nums; }
.pn-metrics dd small { margin-left: 4px; font: 400 11px var(--mono); color: var(--muted); }
.pn-facts { display: grid; gap: 6px; margin: 0; padding: 10px 16px; border-bottom: 1px solid var(--rule); }
.pn-facts > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; }
.pn-facts dd { margin: 0; font-size: 12.5px; line-height: 1.35; overflow-wrap: anywhere; }
.pn-facts code { font: 400 11.5px var(--mono); }
.pn-table { width: 100%; border-collapse: collapse; font: 400 12px var(--mono); font-variant-numeric: tabular-nums; }
.pn-table caption { padding: 10px 16px 6px; text-align: left; font: 400 12px/1.4 var(--sans); color: var(--muted); }
.pn-table th { position: sticky; top: 0; z-index: 1; padding: 6px 8px; text-align: right; font-weight: 400; font-size: 11px; color: var(--muted); background: var(--bg); border-bottom: 1px solid var(--rule); }
.pn-table th:first-child, .pn-table td:first-child { padding-left: 16px; text-align: left; }
.pn-table th:last-child, .pn-table td:last-child { padding-right: 16px; }
.pn-table td { height: 28px; padding: 0 8px; text-align: right; border-bottom: 1px solid var(--rule); }
.pn-table tr[data-metro] { cursor: pointer; }
.pn-table tr[data-metro]:hover, .pn-table tr.active { background: var(--wash); }
.pn-table tr.active td:first-child { box-shadow: inset 2px 0 0 var(--ink); }
.pn-table td.zero { color: var(--muted); }
.pn-table button { padding: 0; font: inherit; color: inherit; text-align: left; background: none; border: 0; cursor: pointer; }

/* Race against a competitor: the panel section with DoubleZero's scoreboard for one rival, the picker above the globe,
   and the legend item. The rival is a neutral silver everywhere, so it never reads as a feed color. */
.pn-race { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.pn-race-head { padding: 0 16px; }
.pn-race-title { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 7px; margin: 0; font: 500 14.5px/1.3 var(--sans); }
.pn-race-title span { font: 400 11px var(--mono); color: var(--muted); }
.pn-race-window { margin: 2px 0 0; font: 400 11px var(--mono); color: var(--muted); }
.pn-race-sum { margin: 8px 0 0; padding: 0 16px; font-size: 12.5px; line-height: 1.45; color: #C4CBD3; font-variant-numeric: tabular-nums; }
.pn-race-sum b { font-weight: 500; color: var(--ink); }
.pn-race-table { margin-top: 8px; font-size: 11.5px; }
.pn-race-table th, .pn-race-table td { padding-left: 5px; padding-right: 5px; white-space: nowrap; }
.pn-race-table td:first-child { white-space: normal; }
.pn-race-table th { position: static; }
.pn-race-note { margin: 8px 0 0; padding: 0 16px; font-size: 11.5px; line-height: 1.45; color: var(--muted); }
.pn-race-note a { text-underline-offset: 2px; }
.fl-race {
  position: absolute; z-index: 4; display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 4px 6px 4px 10px; pointer-events: auto; white-space: nowrap;
  background: rgba(9, 11, 14, .96); border: 1px solid var(--rule);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
}
.fl-race[hidden] { display: none; }
.fl-race .fl-btn { font-size: 11px; min-height: 26px; padding: 3px 8px; }
.fl-race-label { font: 400 11.5px var(--mono); color: var(--muted); }
.fl-rival-dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #AEB6C2; box-shadow: 0 0 0 1px rgba(0, 0, 0, .55); }
.fl-btn[aria-pressed="true"] .fl-rival-dot { background: #6B7380; }
.fl-legend li[hidden] { display: none; }

/* About the data: collapsed sections under the globe, opened on request. */
.fl-more { padding: 6px 20px 56px; border-top: 1px solid var(--rule); }
.fl-fold { border-bottom: 1px solid var(--rule); }
.fl-fold > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; padding: 16px 0; list-style: none; cursor: pointer; }
.fl-fold > summary::-webkit-details-marker { display: none; }
.fl-fold > summary::before { content: ''; align-self: center; width: 7px; height: 7px; margin-right: 2px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(-45deg); transition: transform .15s; }
.fl-fold[open] > summary::before { transform: rotate(45deg); }
.fl-fold-title { font: 300 21px/1.2 var(--serif); font-variation-settings: 'opsz' 30; }
.fl-fold-hint { font: 400 11.5px var(--mono); color: var(--muted); }
.fl-fold > summary:hover .fl-fold-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.fl-fold-body { max-width: 1240px; padding: 2px 0 30px 21px; }
.fl-cols { columns: 2 340px; column-gap: 32px; }
.fl-cols p { margin: 0 0 12px; break-inside: avoid; font-size: 13.5px; line-height: 1.55; color: #C4CBD3; }
.fl-cols strong, .fl-cols b { font-weight: 600; color: var(--ink); }
.method-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px 24px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.method-steps li { font-size: 13.5px; line-height: 1.5; color: #C4CBD3; }
.method-steps span { display: block; margin-bottom: 5px; font: 400 12px var(--mono); color: var(--ink); }
.method-steps span::before { counter-increment: step; content: counter(step); display: inline-block; margin-right: 8px; padding: 1px 6px; background: var(--tag-bg); color: var(--tag-fg); }
.method-steps code { font: 400 12px var(--mono); }
.method-note { margin: 22px 0 0; max-width: 72ch; font-size: 13px; color: var(--muted); }
.table-note { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; min-width: 860px; border-collapse: collapse; font: 400 12px var(--mono); font-variant-numeric: tabular-nums; }
.data-table th { padding: 7px 10px; text-align: left; font-weight: 400; font-size: 11px; color: var(--muted); border-bottom: 1px solid var(--ink); }
.data-table td { padding: 7px 10px; vertical-align: top; color: #C4CBD3; border-bottom: 1px solid var(--rule); }
.data-table td.num, .data-table th.num { text-align: right; white-space: nowrap; }
.data-table code { white-space: nowrap; }
.data-table tr.family-row td { padding-top: 16px; font: 500 13.5px var(--sans); color: var(--ink); border-bottom-color: #3A3F46; }
.data-table tr.family-row td.num { font: 400 12px var(--mono); }
.data-table .pip { margin-right: 8px; }
.data-table tr[data-select] { cursor: pointer; }
.data-table tr[data-select]:hover { background: var(--wash); }
.sources { display: grid; gap: 7px; max-width: 90ch; margin: 0; padding: 0 0 0 18px; font-size: 13px; line-height: 1.5; color: #C4CBD3; }
.sources code { font: 400 11.5px var(--mono); overflow-wrap: anywhere; }
.sources a { text-underline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 980px) {
  .fl-pickers { align-items: flex-start; }
  .fl-dock { grid-template-columns: 1fr; }
  .fl-note, .fl-legend { grid-column: 1; justify-content: flex-start; }
  .fl-sub { display: none; }
}
/* Phones: the page scrolls, and two globes stack in a taller stage. */
@media (max-width: 699px) {
  .fl-body { flex: none; height: 520px; }
  .fl-body[data-panes="2"] { height: 880px; }
}
/* Below 1000px the panel slides over the globe instead of pushing it. */
@media (max-width: 999px) {
  .fl-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(360px, 100%); box-shadow: -14px 0 36px rgba(0, 0, 0, .55); }
}
@media (max-width: 640px) {
  .fl-intro { padding: 12px 16px; }
  .fl-headline { font-size: 25px; }
  .fl-dock { padding: 10px 16px 12px; }
  .fl-pane-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 6px 12px 10px; }
  .fl-pane-metrics dd { font-size: 20px; }
  .fl-pane-head { left: 12px; right: 12px; }
  .fl-more { padding: 4px 16px 48px; }
  .fl-fold-body { padding-left: 0; }
}
.fl-panes[data-layout="h"] .fl-pane-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* One globe on a wide stage: the metrics stack at the lower left, so the globe can use the full height. */
@media (min-width: 900px) {
  .fl-panes[data-layout="single"] .fl-pane-metrics { right: auto; width: 230px; grid-template-columns: 1fr; gap: 10px; padding: 0 16px 16px; }
  .fl-panes[data-layout="single"] .fl-pane-metrics dd { font-size: 28px; }
}
@media (min-width: 1280px) { .fl-panes[data-layout="h"] .fl-pane-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Embedded (single-file preview): no page chrome, text follows the host theme, the stage is a rounded box. */
html.embed body.fl { background: transparent; color: var(--foreground, #F2F4F6); font-family: var(--font-sans, var(--sans)); }
html.embed { --sans: var(--font-sans, 'Helvetica Neue', Helvetica, Arial, sans-serif); --mono: var(--font-mono, ui-monospace, Menlo, monospace); --ink: var(--foreground, #F2F4F6); --muted: var(--muted-foreground, #8E949C); --rule: var(--border, #1E2126); --tag-bg: var(--foreground, #F2F4F6); --tag-fg: var(--background, #050607); }
html.embed .fl-intro { padding: 4px 0 12px; }
html.embed .fl-headline { font-size: 26px; }
html.embed .fl-body { flex: none; height: 500px; border: 0; }
html.embed .fl-stage { border-radius: var(--radius, 10px); }
@media (max-width: 699px) { html.embed .fl-body[data-panes="2"] { height: 820px; } }
html.embed .fl-dock { padding: 10px 0 2px; grid-template-columns: 1fr; }
html.embed .fl-note, html.embed .fl-legend { grid-column: 1; justify-content: flex-start; }
html.embed .fl-pickers { align-items: flex-start; }
html.embed [data-page-only] { display: none !important; }
