/* Adanos 2026 redesign: the rules of type:product only. Its pages link site-2026.css first, then this sheet. Filed by scripts/kit/split.py. */
/* ---------- Product pages (one API per source) ----------
   Hero as on the homepage with a live trending board in place of the machine, then why, how (dark), endpoints with a
   real response for each, pricing and questions. */
/* endpoint reference: base facts in a row, the explorer without source tabs, parameters and fields below */
/* the base facts in the playground's left column: the base URL above the endpoints, the other facts under them */
/* the base URL as a read-only field (the field look of the header search) with its copy button inside */
/* a label over one line of code with its copy button: the base URL in the playground, the SDK installs under it */
.code-field { display: grid; gap: var(--space-1-5); font-size: var(--text-xs); }
.code-field-l { color: var(--muted); }
.code-field-f { display: flex; align-items: center; gap: var(--space-2); min-width: 0; height: var(--h-control); padding: 0 var(--space-1) 0 var(--space-3); border: var(--border); border-radius: var(--r-field); background: var(--field); }
.code-field code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); color: var(--ink); }
.ep-base { padding: var(--space-4) var(--pad); border-bottom: var(--divider); }
/* the facts of the API in a band at the foot of the side column */
.ep-facts { padding: var(--space-4) var(--pad); border-top: var(--divider); background: var(--bg); }
.ep-facts code { font-family: var(--mono); color: var(--ink); }
/* the playground: pick an endpoint, set its parameters, send; the JSON folds and explains its fields on hover */
/* side by side, as in API docs: the left column explains the call (base URL, endpoints in two columns, the facts, the
   reference), the request and its answer fill the right */
@media (min-width: 1025px) {
    .explorer--play { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-rows: auto auto; grid-template-areas: "side out" "ref out"; }
    .explorer--play .ep-side { grid-area: side; }
    .explorer--play .ep-out { grid-area: out; }
    .explorer--play .ep-ref { grid-area: ref; border-right: var(--divider); }
    .explorer--play .ref-list--cols { grid-template-columns: minmax(0, 1fr); }
    .explorer--play .ref-list--cols > div:nth-child(2) { border-top: var(--divider); }
}
/* from the full container width the endpoints fit two columns: the left one as wide as its longest entry (the PRO
   call with its badge), a hairline before the right one and no rule under the last row. The CLI's command groups
   (explorer--cli) stay one column, each under its name. 1200px is no kit step: from 1025px two columns would cut the
   longest entries (kit explorer.md) */
@media (min-width: 1200px) {
    .explorer--play:not(.explorer--cli) .ep-list { display: grid; grid-template-columns: max-content minmax(0, 1fr); }
    .explorer--play:not(.explorer--cli) .ep-list li:nth-child(odd) { padding-right: var(--space-4); }
    .explorer--play:not(.explorer--cli) .ep-list li:nth-child(even) { padding-left: var(--space-4); border-left: var(--divider); }
    .explorer--play:not(.explorer--cli) .ep-list li:nth-last-child(2):nth-child(odd) .ep { border-bottom: 0; }
}
/* the CLI's command groups read as names, in the sans of the text */
.explorer--cli .ep .p { font-family: var(--sans); }
/* the head over them in the body ink, as the dark panel's head beside it reads in its body ink */
.explorer--cli .ep-side > .box-head .type-meta { color: var(--ink-2); }
/* the CLI's reference sits in its dark panel beside the examples, as a tab of their bar, and scrolls inside it */
.explorer--cli .ep-ref-panel { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: var(--space-2) var(--pad) var(--space-3); }
/* the request: method and URL, Send on the right */
.explorer--play .ep-req { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--space-1-5) var(--space-3); }
/* the parameters stay on one line: each label sits above its control; where the panel is narrower (phones) the row scrolls sideways */
.ep-ctrl { display: flex; align-items: flex-end; gap: var(--space-5); padding: var(--space-3) var(--pad); border-bottom: 1px solid var(--dark-line); overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.ep-ctrl:empty { display: none; }
.ctl { flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-1-5); }
.ctl-l { font-size: var(--text-xs); color: var(--muted); }
/* the same height as a segmented control beside it: the control height plus its 3px inset */
.stepper { display: inline-flex; align-items: center; padding-block: 3px; border: var(--border); border-radius: var(--r); background: var(--bg); }
.stepper button { display: grid; place-items: center; width: var(--h-control-sm); height: var(--h-control-sm); font-size: var(--text-md); color: var(--ink-2); transition: color var(--dur-fast) ease-out; }
.stepper button:disabled { opacity: 0.4; cursor: default; }
@media (hover: hover) { .stepper button:not(:disabled):hover { color: var(--ink); } }
.stepper output { min-width: 3ch; text-align: center; font-size: var(--text-sm); color: var(--ink); font-variant-numeric: tabular-nums; }
/* JSON tree: objects and arrays fold; a folded one shows its size or its first field */
.jl { padding-left: calc(var(--i, 0) * 2ch); white-space: pre-wrap; overflow-wrap: anywhere; }
.jc > summary { position: relative; list-style: none; cursor: pointer; border-radius: var(--r-xs); }
.jc > summary::-webkit-details-marker { display: none; }
.jc > summary::before { content: "\25B8"; content: "\25B8" / ""; position: absolute; left: calc(var(--i, 0) * 2ch - 1.75ch); color: var(--muted); transition: rotate var(--dur-fast) ease-out; }
.jc[open] > summary::before { rotate: 90deg; }
.jc[open] > summary .jp { display: none; }
.jp { color: var(--muted); }
/* the endpoint's sentences over its response, as comment lines; a long one wraps under its text, not under the slashes */
.jn { margin-bottom: 1lh; color: var(--code-comment); }
.jn > div { padding-left: 3ch; text-indent: -3ch; }
@media (hover: hover) { .jc > summary:hover { background: var(--dark-fill-soft); } .jc > summary:hover::before { color: var(--paper); } }
/* the reference of the chosen call, the bottom part of the playground box: parameters, response fields and errors as tabs */
.ep-ref { grid-column: 1 / -1; border-top: var(--divider); }
.ep-ref-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 var(--space-4); padding: 0 var(--pad) 0 calc(var(--pad) - var(--tab-x)); border-bottom: var(--divider); }
.ep-ref-panel { padding: var(--space-1) var(--pad) var(--space-2); }
/* response fields in two columns; the first row of each column has no rule */
.ref-list--cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-10); }
.ref-list--cols > div:nth-child(2) { border-top: 0; }
.ref-list dt code { padding: var(--space-0-5) var(--space-1-5); border-radius: var(--r-xs); background: var(--bg); font-family: var(--mono); font-size: var(--text-xs); color: var(--ink); overflow-wrap: anywhere; transition: color var(--dur-fast) ease-out; }
/* the CLI's reference: its commands outgrow the term column, so each text sits under its command */
.ref-list--stack dd { margin-top: var(--space-1); }
.ref-list dt .ref-err { background: var(--tint-bear); color: var(--bear-ink); }
.ref-list dd { text-wrap: pretty; }
.ref-badge { display: inline-block; margin-left: var(--space-2); padding: 0 var(--space-1-5); border: var(--border); border-radius: var(--r-xs); white-space: nowrap; }
.ref-none { padding-block: var(--space-3); font-size: var(--text-sm); color: var(--muted); }
/* a terminal on its own (the live calls under "How it works" and the sessions of the CLI page): the code panel takes the
   box radius, as the code panel's file allows a page class. It keeps the block head's space to what follows. */
.term { border-radius: var(--r-box); overflow: hidden; margin-bottom: var(--space-12); }
@media (max-width: 768px) { .term { margin-bottom: var(--space-8); } }
/* a terminal's session, one block per line (Terminal.astro), in the lines of the home page's CLI card (home-2026.css,
   cli-out): the prompt of a command in muted ink before the command in the code body, output in the reading ink of
   dark, a JSON answer in code gold, comments muted. In a panel of its own (term-card) the terminal fills the rest of
   it. */
.term-lines { white-space: pre-wrap; overflow-wrap: anywhere; }
.tl { display: block; }
.tl-comment { color: var(--code-comment); }
.tl-ps { color: var(--muted); }
.tl-response { color: var(--ink-2); }
.tl-json { color: var(--code-gold); }
.tl-in { display: inline-block; vertical-align: top; }
.term-card { position: relative; flex: 1; margin-top: 0; }
/* it plays once a terminal on its own is in view (in) and in a case panel each time its panel is chosen (is-active,
   under the case tabs' in) */
@media (prefers-reduced-motion: no-preference) {
    :is(.term.in, .in .is-active > .term-card) .tl { animation: tl-show 1ms var(--t) both; }
    :is(.term.in, .in .is-active > .term-card) .tl-in { animation: tl-type calc(var(--n) * 22ms) steps(var(--n)) var(--t) both; }
}
@keyframes tl-show { from { opacity: 0; } }
@keyframes tl-type { from { clip-path: inset(0 100% 0 0); } }
/* a terminal's link sits at the end of its window bar */
.term .box-head--chrome .textlink { margin-left: auto; font-size: var(--text-sm); }
/* its prompt to copy is prose: tabular digits would space out the hyphen of adanos-cli */
.term-prompt > p { font-variant-numeric: normal; }
/* ---------- CLI page: its hero, install, shell, examples and agents ---------- */
/* the CLI hero: its agent session sits under the actions as the board does under a product hero; the h1's first line
   stays one line from 1025px */
.cli-session { margin-top: var(--space-14); }
@media (min-width: 1025px) { .cli-line { white-space: nowrap; } }
/* install: its points as why cards, each picture drawn by the page: the three ways to install as chips, the config
   folder with its two files and the wizard's three steps, which check off in turn on a line that runs through them */
.cli-art { display: grid; gap: var(--space-3); padding: 0 var(--space-6); font-size: var(--text-xs); }
.cli-ways { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); }
.cli-files ul { border: var(--border); border-radius: var(--r); background: var(--paper); }
.cli-files li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-1-5) var(--space-3); padding: var(--space-2) var(--space-3); }
.cli-files li + li { border-top: var(--divider); }
.cli-files code { font-family: var(--mono); }
.cli-files li code { color: var(--ink); }
.cli-steps ol { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cli-steps ol::before, .cli-steps ol::after { content: ""; position: absolute; top: 13px; left: calc(100% / 6); right: calc(100% / 6); height: 2px; background: var(--line-2); }
.cli-steps ol::after { background: var(--ink); }
.cli-steps li { position: relative; z-index: 1; display: grid; justify-items: center; gap: var(--space-2); color: var(--ink-2); }
.cli-steps i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: var(--r-round); background: var(--ink); color: var(--paper); }
@media (prefers-reduced-motion: no-preference) {
    .in .cli-files li { animation: tl-show 1ms calc(0.5s + var(--i) * 350ms) both; }
    .in .cli-steps ol::after { transform-origin: 0 50%; animation: cli-run 1.4s linear 0.6s both; }
    .in .cli-steps i { animation: cli-step var(--dur) ease-out calc(0.6s + var(--i) * 700ms) both; }
}
@keyframes cli-run { from { scale: 0 1; } }
@keyframes cli-step { from { background: var(--paper); color: transparent; box-shadow: inset 0 0 0 2px var(--line-2); } }
/* fullscreen mode: once the command has typed, the shell's start screen opens over the whole window: the name on top,
   the Adanos mark settling into its stack over the help line, the input at the foot */
.cli-full { position: absolute; inset: 0; display: grid; grid-template-rows: auto 1fr auto; background: var(--dark); font-family: var(--mono); font-size: var(--text-xs); line-height: var(--lh-code); color: var(--code-body); }
.cli-full-bar, .cli-full-in { padding: var(--space-3) var(--pad); color: var(--ink); }
.cli-full-bar { display: flex; flex-wrap: wrap; justify-content: space-between; column-gap: var(--space-6); border-bottom: var(--border); }
.cli-full-bar b { color: var(--code-gold); font-weight: 600; }
.cli-full-bar span + span { color: var(--muted); }
.cli-full-mid { --i: 1; display: grid; place-items: center; align-content: center; gap: var(--space-5); padding: var(--space-6) var(--pad); text-align: center; color: var(--muted); }
.cli-full-mark { width: 72px; overflow: visible; }
.cli-full-in { --i: 2; border-top: var(--border); }
@media (prefers-reduced-motion: no-preference) {
    .in .is-active > .term-card .cli-full { animation: cli-full var(--dur-slow) var(--ease-out-expo) 1s both; }
    .in .is-active > .term-card .cli-full > * { animation: tl-show 1ms calc(1s + var(--dur-slow) + var(--i, 0) * 90ms) both; }
    .in .is-active > .term-card .cli-full-mark use { animation: cli-plate var(--dur-slow) var(--ease-out-expo) calc(1.7s + var(--i) * 130ms) both; }
}
/* hidden until the command has typed, then it opens from the command's line to the whole window; inset to inset, so
   the opening runs smooth */
@keyframes cli-full {
    0% { opacity: 0; clip-path: inset(var(--space-12) 60% calc(100% - var(--space-16)) var(--pad) round var(--r)); }
    1% { opacity: 1; }
    100% { clip-path: inset(0 0 0 0 round 0); }
}
@keyframes cli-plate { from { opacity: 0; translate: 0 -96px; } }
/* examples: one after another as on the live page, each its title and text beside its terminal, the sides taking
   turns */
.cli-ex { display: grid; gap: var(--space-16); }
.cli-ex-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--space-10); align-items: start; }
.cli-ex-row:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.cli-ex-row:nth-child(even) .cli-ex-copy { order: 2; }
.cli-ex-copy { display: grid; gap: var(--space-2-5); }
.cli-ex-copy p { font-size: var(--text-md); color: var(--ink-2); text-wrap: pretty; }
.cli-ex-row .term { margin-bottom: 0; }
/* under each example's text, what its session finds (CliResult.astro): on the page without a box, built once in
   view */
.cli-res { display: grid; gap: var(--space-3); margin-top: var(--space-4); }
.cli-res-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-2) var(--space-3); }
.cli-res-chips { display: flex; flex-wrap: wrap; gap: var(--space-1-5); }
.cli-res-presets .chip:not(:first-child) { color: var(--muted); }
.cli-res-group { display: grid; gap: var(--space-1-5); }
.cli-res-row { display: grid; grid-template-columns: var(--logo-sm) 44px minmax(0, 1fr) 40px auto; align-items: center; gap: var(--space-3); font-size: var(--text-sm); --s: var(--logo-sm); }
.cli-res-row--src { grid-template-columns: var(--logo-sm) 84px minmax(0, 1fr) 56px; }
.cli-res-row > b { font-weight: var(--fw-medium); color: var(--ink); }
.cli-res-row > em { font-style: normal; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }
.cli-res-row > em span { margin-left: var(--space-1); }
.cli-res-leads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
.cli-res-lead { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-2-5); border: 1px solid var(--gold); border-radius: var(--r); background: color-mix(in srgb, var(--gold) 12%, var(--paper)); font-size: var(--text-sm); }
.cli-res-lead b { font-weight: var(--fw-medium); color: var(--ink); }
.cli-res-lead em { margin-left: auto; font-style: normal; font-variant-numeric: tabular-nums; color: var(--ink-2); }
@media (prefers-reduced-motion: no-preference) {
    .cli-res.in :is(.chip, .tag, .cli-res-row, .cli-res-lead) { animation: cli-res-in var(--dur-slow) var(--ease-out-expo) calc(0.6s + var(--i, 0) * 120ms) both; }
    .cli-res.in .meter i { animation: cli-res-grow 900ms var(--ease-out-expo) calc(0.8s + var(--i, 0) * 120ms) both; }
}
@keyframes cli-res-in { from { opacity: 0; translate: 0 12px; filter: blur(4px); } }
@keyframes cli-res-grow { from { scale: 0 1; } }
@media (max-width: 1024px) {
    .cli-ex { gap: var(--space-12); }
    .cli-ex-row, .cli-ex-row:nth-child(even) { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
    .cli-ex-row:nth-child(even) .cli-ex-copy { order: 0; }
}
/* agents: the agent chips over the agent session, their wires running into its window bar */
/* points under a terminal, as the agents' three, stand free: no rule over them */
.term ~ .points { border-top: 0; }
.cli-agents--band { margin: 0 auto; max-width: 720px; padding-bottom: var(--space-12); }

/* pricing: three plans in boxes, the recommended one with an ink edge, each headed by an icon for its audience;
   the prices roll between monthly and yearly billing */
.plans-bar { display: flex; margin-bottom: var(--space-4); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
/* each plan is a subgrid over the section's --rows, so the heads, the lists and the buttons of all three start level */
.plan { position: relative; display: grid; grid-row: span var(--rows); grid-template-rows: subgrid; row-gap: var(--space-4); padding: var(--pad-lg); }
.plan.is-rec { border-color: var(--ink); }
.plan h3 { display: flex; align-items: center; gap: var(--space-3); }
/* plan icons: the Adanos mark with one plate per tier (pricing_part.py), built like the one in the closing band */
.plan ul { display: grid; border-top: var(--divider); }
.plan-cta { display: grid; align-self: end; }
.plan .btn { justify-content: center; }
.plans-note { margin-top: var(--space-6); font-size: var(--text-md); color: var(--ink-2); }
.plans-note .textlink { color: var(--ink); }
/* --compare: the full comparison under the pricing page's hero, as the live page: the button also under the line for
   whom, each group head a filled bar with its rows close under it, Yes and No with a mark, the five APIs as a tree
   under "All 5". The rows carry the spacing as margins, the same in every plan, so the subgrid keeps them level. The
   groups after the first are a fold of the kit: the bar is its summary */
.plans--compare { margin-block: var(--space-12); }
.plans--compare .plan { row-gap: 0; }
.plans--compare .plan > * + :not(.tag--edge) { margin-top: var(--space-4); } /* the edge tag sits out of the flow on the card's edge */
.plans--compare .plan > .plan-group { margin-top: var(--space-6); }
.plan-group > :is(h4, summary) { padding: var(--space-1-5) var(--space-3); border-radius: var(--r); background: var(--bg); }
.plan-group h4 { color: var(--ink-2); } /* the head darker than a label's muted grey */
.plan-group > ul { margin-top: var(--space-1); border-top: 0; }
.plans--compare .plan > .plan-cta:last-child { margin-top: var(--space-6); }
/* the footnote star of a price stands up at the figure's top like a superscript, large enough to tap. Its tip opens
   under the price from the price's start, so it stays inside the card on every width */
.plan :is(.plan-price, .plan-bill) { position: relative; }
.plan :is(.plan-price, .plan-bill) .has-tip { position: static; }
.plan :is(.plan-price, .plan-bill) .tip { left: 0; translate: none; max-width: 100%; }
/* a row label's tip in the comparison opens from the row's start the same way */
.plan .kv li { position: relative; }
.plan .kv .has-tip { position: static; }
.plan .kv .tip { left: 0; translate: none; max-width: 100%; }
/* the notes under the comparison stand free, without the points' rule on top, the space under it and the divider
   between them: their text starts space-12 under the plans, as the plans under the billing switch */
.plans--compare ~ .points, .plans--compare ~ .points > li + li { border: 0; }
@media (min-width: 769px) { .plans--compare ~ .points > li { padding-top: 0; } }
@media (max-width: 768px) { .plans--compare ~ .points > li:first-child { padding-top: 0; } }
.plan li:has(.plan-apis) { flex-wrap: wrap; }
/* the tree as the live page draws it: each API carries its piece of the trunk, the last one only down to its branch,
   which turns into it with a rounded corner; a branch runs from the trunk to the name, the names flush right. YouTube's
   tag stands before its name, so the names keep one edge */
.plan-apis { flex-basis: 100%; display: grid; margin-left: var(--space-1); font-size: var(--text-xs); }
.plan-apis > span { position: relative; display: flex; align-items: center; gap: var(--space-2); padding-block: var(--space-0-5); }
.plan-apis > span::before { content: ""; flex: 1; height: 1px; background: var(--line); }
.plan-apis > span::after { content: ""; position: absolute; inset: 0 auto 0 0; border-left: var(--divider); }
.plan-apis > span:last-child::before { margin-left: var(--r); }
.plan-apis > span:last-child::after { bottom: calc(50% - 0.5px); width: var(--r); border-bottom: var(--divider); border-bottom-left-radius: var(--r); }
.plan-apis .tag { margin-block: calc(-1 * var(--space-0-5)); } /* reaches into its row's padding: every row as high */
.plan-cost { display: grid; gap: var(--space-1); }
.plan-bill { display: flex; align-items: center; gap: var(--space-2); min-height: var(--h-control-sm); font-size: var(--text-sm); color: var(--ink); }
.plan-bill .bill-m { color: var(--bull-ink); }
.plan-bill .bill-m.textlink { padding-bottom: 2px; border-bottom: 0; background: var(--dots); } /* the switch to yearly billing explains a saving, so it takes the dots */
/* the figures: real text over HTML shapes */
.fg { --fg-bar: var(--code-gold); --fg-bar-2: var(--silver); --fg-ink: var(--paper); --fg-muted: var(--muted); width: 100%; max-width: 540px; }
.fg-cap { margin-top: var(--space-5); font-size: var(--text-xs); color: var(--muted); text-align: center; }
.fg-cap b { font-weight: var(--fw-medium); color: var(--paper); }
.fg-dim { color: var(--muted); }

/* what: Reddit, the API and the JSON, joined by wires with requests running along them */
.fg-what { display: flex; align-items: flex-start; justify-content: center; }
.fg-node { flex: none; display: grid; justify-items: center; gap: var(--space-2); font-size: var(--text-xs); color: var(--ink-2); }
.fg-mark { width: var(--logo-xl); height: var(--logo-xl); overflow: visible; }
.fg-json code { display: grid; place-items: center; height: var(--logo-xl); padding: 0 var(--space-3); border: var(--border); border-radius: var(--r); background: var(--bg); font-family: var(--mono); font-size: var(--text-xs); color: var(--code-gold); white-space: nowrap; }
.fg-wire { position: relative; flex: 1 1 var(--space-16); min-width: var(--space-6); max-width: 112px; height: 1px; margin: calc(var(--logo-xl) / 2) var(--space-3) 0; background: var(--dark-line-2); }
/* one request per wire: a gold streak with a fading tail, Reddit to the API first, then the API to the JSON; the node it
   reaches lights up. The key band's requests run the same 2.8s cycle */
.fg-what { --run: 2.8s; }
.fg-wire i { position: absolute; top: 50%; left: 0; width: var(--space-6); height: 2px; translate: 0 -50%; border-radius: var(--r-pill); background: linear-gradient(90deg, transparent, var(--code-gold)); opacity: 0; }

/* subs: the top subreddits of TSLA, tinted by their share */
.fg-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2-5); }
/* the fill of a subreddit's chip shows its share */
.fg-pill { background: color-mix(in srgb, var(--code-gold) calc(var(--w) * 30%), var(--chip-bg)); }
.fg-pill b { color: var(--code-gold); font-variant-numeric: tabular-nums; }

/* often: the 60-minute cycle as a clock, the extra reads of busy feeds as beats on the ring */
.fg-often { display: flex; align-items: center; justify-content: center; gap: var(--space-10); }
.fg-clock { position: relative; flex: none; width: 200px; height: 200px; }
.fg-clock svg { width: 100%; height: 100%; overflow: visible; }
.fg-ticks line { stroke: var(--dark-line-2); stroke-width: 1.5; }
.fg-clock .fg-track { fill: none; stroke: var(--dark-line); stroke-width: 6; }
.fg-sweep { fill: none; stroke: var(--code-gold); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 100 100; stroke-dashoffset: 0; transform: rotate(-90deg); transform-origin: 100px 100px; filter: var(--glow-gold); }
.fg-beat { fill: var(--dark); stroke: var(--code-gold); stroke-width: 2.5; }
.fg-clock-n { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font-size: var(--text-xs); color: var(--muted); }
.fg-clock-n b { display: block; }
.fg-legend { display: grid; gap: var(--space-3); max-width: 28ch; font-size: var(--text-sm); color: var(--ink-2); }
.fg-legend li { display: flex; align-items: baseline; gap: var(--space-2-5); }
.fg-legend i { flex: none; width: 10px; height: 10px; border: 1px solid var(--dark-line-2); border-radius: var(--r-round); }
.fg-legend i.is-gold { border-color: transparent; background: var(--code-gold); }
.fg-legend i.is-dot { border: 2.5px solid var(--code-gold); }

/* format: the recorded TSLA answer, line by line */
.fg-format pre { margin: 0; padding: var(--space-4) var(--space-5); border: var(--border); border-radius: var(--r); background: var(--bg); font-family: var(--mono); font-size: var(--text-xs); line-height: var(--lh-code); color: var(--ink-2); overflow-x: auto; }
.fg-ln { display: inline-block; }

/* sentiment: the lexicon examples on stems over the axis from bearish to bullish */
.fg-scale { position: relative; padding-top: calc(5 * var(--space-8) + var(--space-4)); }
.fg-stem { position: absolute; left: var(--x); bottom: calc(var(--space-6) + 3px); width: 1px; height: calc(var(--row) * var(--space-8) + var(--space-4)); background: var(--dark-line-2); transform-origin: bottom; }
.fg-chip { position: absolute; left: var(--x); bottom: calc(var(--space-6) + 3px + var(--row) * var(--space-8) + var(--space-4)); translate: calc(-100% + var(--space-3)) 0; }
.fg-chip.is-bear { translate: calc(-1 * var(--space-3)) 0; }
.fg-chip b { color: var(--code-gold); font-variant-numeric: tabular-nums; }
.fg-chip.is-bear b { color: var(--code-coral); }
.fg-axis { height: 3px; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--code-coral), var(--dark-line-2) 50%, var(--code-gold)); }

/* buzz: the five factors with what each can add, then the TSLA score on a gauge */
.fg-buzz { display: grid; grid-template-columns: minmax(0, 1fr) 200px; align-items: center; gap: var(--space-10); }
.fg-factors { display: grid; gap: var(--space-2-5); }
.fg-factors li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) 5.5rem; align-items: center; gap: var(--space-3); font-size: var(--text-sm); color: var(--ink-2); }
.fg-factors b { font-weight: var(--fw-medium); color: var(--paper); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fg-gauge { display: grid; justify-items: center; }
.fg-gauge svg { width: 100%; overflow: visible; }
.fg-gauge path { fill: none; stroke-width: 12; stroke-linecap: round; }
.fg-gauge .fg-track { stroke: var(--dark-line); }
.fg-gauge .fg-fill { stroke: var(--code-gold); stroke-dasharray: 100 100; stroke-dashoffset: calc(100 - var(--v) * 100); filter: var(--glow-gold); }
.fg-gauge-n { margin-top: calc(-1 * var(--space-12)); text-align: center; font-size: var(--text-xs); color: var(--muted); }
.fg-gauge-n b { display: block; }

/* trend: six days of GME mentions, an example, with the band of ±10% around the first three */
.fg-trend { --bar-h: 150px; --foot: 0px; }
.fg-bars { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-3); height: calc(var(--bar-h) + var(--foot) + 24px); }
.fg-bars::before { content: ""; position: absolute; left: 0; right: 0; bottom: calc(var(--foot) + var(--avg) * 0.9 * var(--bar-h)); height: calc(var(--avg) * 0.2 * var(--bar-h)); border-block: 1px dashed var(--dark-line-2); background: color-mix(in srgb, var(--paper) 6%, transparent); }
.fg-bars li { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: var(--space-1-5); font-size: var(--text-xs); color: var(--muted); }
.fg-bars li i { width: 100%; max-width: 44px; height: calc(var(--h) * var(--bar-h)); border-radius: var(--r-xs) var(--r-xs) 0 0; background: color-mix(in srgb, var(--silver) 40%, transparent); transform-origin: bottom; }
.fg-bars li.is-last i { background: var(--code-gold); }
.fg-bars li b { font-weight: var(--fw-medium); color: var(--paper); font-variant-numeric: tabular-nums; }
.fg-trend .fg-band-key i { border-block: 1px dashed var(--dark-line-2); background: color-mix(in srgb, var(--paper) 6%, transparent); }
.fg-verdict { margin-left: auto; padding: var(--space-1) var(--space-2-5); border-radius: var(--r-pill); background: color-mix(in srgb, var(--code-gold) 18%, transparent); font-weight: var(--fw-medium); color: var(--code-gold); }

/* ai: the mentions fold into the one sentence the endpoint wrote for TSLA */
.fg-ai { display: grid; gap: var(--space-5); }
.fg-mentions { display: grid; gap: var(--space-2); }
.fg-mentions i { display: block; width: var(--w); height: 8px; border-radius: var(--r-pill); background: var(--dark-line-2); transform-origin: left; opacity: 0.35; scale: 0.4 1; }
.fg-sentence { min-height: calc(3 * var(--lh-title) * 1em); font-size: var(--text-lg); line-height: var(--lh-title); color: var(--paper); }
.fg-sentence.is-typing::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -0.12em; background: var(--code-gold); }
.fg-model { justify-self: start; font-family: var(--mono); font-size: var(--text-xs); color: var(--muted); }
.fg-ai .fg-cap { margin-top: 0; text-align: left; }

/* free: the 250 monthly requests of the free tier, one cell each */
.fg-cells { display: grid; grid-template-columns: repeat(25, minmax(0, 1fr)); gap: 3px; max-width: 440px; margin: 0 auto; }
.fg-cells i { aspect-ratio: 1; border-radius: var(--r-2xs); background: var(--code-gold); }

/* rate: the plan limits per minute and per month on a log scale (also in the formula lab, on light) */
.fg-plans { display: grid; gap: var(--space-5); }
.fg-plans li { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: var(--space-1-5) var(--space-3); font-size: var(--text-xs); }
.fg-plans li > span { grid-row: span 2; align-self: center; font-size: var(--text-sm); color: var(--fg-ink); }
.fg-plans div { display: flex; align-items: center; gap: var(--space-2-5); }
.fg-plans i { flex: none; width: calc(var(--w) * 72%); height: 8px; border-radius: var(--r-pill); background: var(--fg-bar); transform-origin: left; }
.fg-plans i.is-min { background: var(--fg-bar-2); }
.fg-plans b { font-weight: var(--fw-medium); color: var(--fg-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fg-rate .fg-cap { text-align: left; }

/* trading: Reddit sentiment among the other signals */
.fg-signals { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2-5); max-width: 460px; margin: 0 auto; }
.fg-signals .is-gold { border-color: transparent; background: var(--code-gold); color: var(--fill-ink); font-weight: var(--fw-medium); filter: var(--glow-gold); }

@media (prefers-reduced-motion: no-preference) {
    .is-on .fg-wire i { animation: fg-run var(--run) var(--ease-in-out) infinite; }
    .is-on .fg-wire + .fg-node + .fg-wire i { animation-delay: calc(var(--run) / 2); }
    .is-on .fg-api .fg-mark { animation: fg-hit var(--run) ease-out calc(var(--run) * 0.42) infinite; }
    .is-on .fg-json code { animation: fg-hit-chip var(--run) ease-out calc(var(--run) * 0.92) infinite; }
    .is-on .fg-pill { animation: fg-pop 500ms var(--ease-out-expo) calc(var(--i) * 70ms) both, fg-float 5s ease-in-out calc(var(--i) * -0.7s) infinite; }
    .is-on .fg-sweep { animation: fg-sweep 6s linear infinite; }
    .is-on .fg-beat { animation: fg-beat 6s linear infinite; animation-delay: calc(var(--at) / 60 * 6s); }
    .is-on .fg-ln { animation: fg-type 380ms steps(18, end) calc(var(--i) * 140ms) both; }
    .is-on .fg-stem { animation: fg-rise 600ms var(--ease-out-expo) calc(var(--i) * 90ms) both; }
    .is-on .fg-chip { animation: fg-drop 500ms var(--ease-out-expo) calc(var(--i) * 90ms + 250ms) both; }
    .is-on .fg-factors i { animation: fg-grow 800ms var(--ease-out-expo) calc(var(--i) * 110ms) both; }
    .is-on .fg-gauge .fg-fill { animation: fg-dash 1400ms var(--ease-out-expo) 300ms both; }
    .is-on .fg-bars li i { animation: fg-rise 700ms var(--ease-out-expo) calc(var(--i) * 90ms) both; }
    .is-on .fg-bars li b { animation: fg-drop 400ms ease-out calc(var(--i) * 90ms + 400ms) both; }
    .is-on .fg-verdict { animation: fg-pop 500ms var(--ease-out-expo) 1100ms both; }
    .is-on .fg-mentions i { animation: fg-mention 1600ms var(--ease-out-expo) calc(var(--i) * 90ms) both; }
    .is-on .fg-cells i { animation: fg-cell 300ms ease-out calc(var(--i) * 6ms) both; }
    .is-on .fg-plans i { animation: fg-grow 900ms var(--ease-out-expo) calc(var(--i) * 140ms) both; }
    .is-on .fg-signals span { animation: fg-pop 500ms var(--ease-out-expo) calc(var(--i) * 90ms) both; }
    .is-on .fg-signals .is-gold { animation: fg-pop 500ms var(--ease-out-expo) calc(var(--i) * 90ms) both, fg-glow 2.4s ease-in-out 1s infinite; }
}
/* the streak crosses its wire in the first 42% of the cycle and waits out the rest, so only one request is in flight */
@keyframes fg-run { 0% { left: 0; opacity: 0; } 8%, 36% { opacity: 1; } 42%, 100% { left: calc(100% - var(--space-6)); opacity: 0; } }
@keyframes fg-run-down { 0% { top: 0; opacity: 0; } 8%, 36% { opacity: 1; } 42%, 100% { top: calc(100% - var(--space-6)); opacity: 0; } }
@keyframes fg-hit { 0% { filter: var(--glow-gold); } 25%, 100% { filter: none; } }
@keyframes fg-hit-chip { 0% { border-color: color-mix(in srgb, var(--code-gold) 60%, transparent); } 25%, 100% { border-color: var(--dark-edge); } }
@keyframes fg-pop { from { opacity: 0; scale: 0.92; filter: blur(4px); } }
@keyframes fg-float { 50% { translate: 0 -4px; } }
@keyframes fg-sweep { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes fg-beat { 0% { fill: var(--code-gold); stroke-width: 6; } 12%, 100% { fill: var(--dark); stroke-width: 2.5; } }
@keyframes fg-type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes fg-rise { from { scale: 1 0; } }
@keyframes fg-grow { from { scale: 0 1; } }
@keyframes fg-drop { from { opacity: 0; translate: var(--tx, 0) -10px; } }
@keyframes fg-dash { from { stroke-dashoffset: 100; } }
@keyframes fg-mention { 0% { opacity: 0; scale: 1 1; translate: -24px 0; } 45% { opacity: 1; scale: 1 1; translate: 0 0; } 100% { opacity: 0.35; scale: 0.4 1; } }
@keyframes fg-cell { from { opacity: 0.12; } }
@keyframes fg-glow { 50% { filter: drop-shadow(0 0 14px color-mix(in srgb, var(--gold) 70%, transparent)); } }
/* a chip keeps its sideways offset while it drops */
.fg-chip { --tx: calc(-100% + var(--space-3)); }
.fg-chip.is-bear { --tx: calc(-1 * var(--space-3)); }

/* ---------- Column guide: each column of a ranking read on the table's own rows, as a view of the case tabs ---------- */
/* a scale as the home spread plot draws it: the tickers on the left, a track each on the column's scale (the spread
   plot's sp-track, its stem from --from of the field: 0 for a score, 50 for a share), its band behind the tracks and the
   scale under them; the plot grows with the stage, so the rows share the free height. The trend view puts a line in
   each row in place of a track */
.cg-plot { flex: 1; min-height: 0; display: grid; grid-template-columns: var(--label-col) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; column-gap: var(--space-4); margin-bottom: var(--space-5); }
.cg-names, .cg-field { display: grid; grid-template-columns: minmax(0, 1fr); grid-auto-rows: minmax(var(--tr-row), 1fr); align-items: center; padding-top: var(--space-5); }
.cg-field { position: relative; align-items: stretch; }
.cg-band { position: absolute; top: 0; bottom: 0; left: calc(var(--lo) * 1%); width: calc((var(--hi) - var(--lo)) * 1%); border-inline: 1px solid color-mix(in srgb, var(--gold) 60%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 20%, transparent), color-mix(in srgb, var(--gold) 5%, transparent)); }
.cg-cut { position: absolute; top: 0; bottom: 0; left: calc(var(--v) * 1%); border-left: var(--dashed); }
.cg-axis { grid-column: 2; }
/* a ticker's lean in its row: the board's split bar over its three shares */
.cg-lean { display: grid; align-content: center; gap: var(--space-1); }
.cg-lean b { color: var(--ink); }
/* the live bands of a column whose view shows no scale of them, as one line of text under the view */
/* a ticker's daily buzz as its sparkline (A26.spark, drawn by src/scripts/rank-guide.ts), filling its row; it draws
   from the left when its view shows (--r, the share drawn) */
.cg-line { margin-block: var(--space-2); border-bottom: var(--divider); clip-path: inset(0 calc(100% - var(--r, 100%)) 0 0); }
/* a group of a column: its band or direction on one line over its tickers */
.cg-groups { display: grid; gap: var(--space-5); }
.cg-groups dt { padding-bottom: var(--space-2); border-bottom: var(--divider); font-size: var(--text-sm); color: var(--ink-2); }
.cg-groups dt b { font-weight: var(--fw-medium); color: var(--ink); font-variant-numeric: tabular-nums; }
/* the reach of mentions: each ticker with a bar of its mentions, the count and its subreddits */
/* the count column fits a count over its spread on one line each, as "16 sources" or "30 traders" */
.cg-groups, .cg-scale { --cg-n: calc(var(--space-16) + var(--space-5)); }
.cg-groups dd.cg-reach { display: grid; grid-template-columns: var(--label-col) minmax(0, 1fr) var(--cg-n); align-items: center; gap: var(--space-4); padding-block: var(--space-2); border-bottom: var(--divider); }
/* the log scale of the bars, under their column */
.cg-scale { margin: var(--space-1) calc(var(--cg-n) + var(--space-4)) var(--space-5) calc(var(--label-col) + var(--space-4)); }
.cg-n { display: grid; text-align: right; white-space: nowrap; font-size: var(--text-sm); color: var(--ink); font-variant-numeric: tabular-nums; }
/* the note under the tabs: one paragraph of body text, its title run in */
.cg-note { margin-top: var(--space-10); color: var(--ink-2); }
.cg-note b { color: var(--ink); }
/* an empty read: the shape of the rows, then the error line at the foot of the view, where the caption sits */
.cg-wait { flex: 1; min-height: 0; display: grid; grid-auto-rows: minmax(var(--tr-row), 1fr); align-items: center; padding-block: var(--space-5); }
.cg-wait > span { display: grid; grid-template-columns: var(--label-col) minmax(0, 1fr); gap: var(--space-4); }
.cg-fail { margin: auto calc(-1 * var(--pad)) calc(-1 * var(--pad)); border-top: var(--divider); }
/* a bar of the mentions and the Bullish % view grows from its start by --g (src/scripts/rank-guide.ts): a meter from
   the left, the bearish half of a lean from the middle to the left and the bullish half from the middle to the right */
:is(.cg-reach .meter, .cg-lean .split) i { scale: var(--g, 1) 1; }
@media (prefers-reduced-motion: no-preference) {
    :is(.cg-reach .meter, .cg-lean .split) i { transition: scale var(--dur-glide) var(--ease-out-expo); }
    .cg-line { transition: clip-path var(--dur-glide) var(--ease-out-expo); }
}

/* ---------- Odds board: the most contested open markets of today's most active Polymarket stocks, a card each ---------- */
.odds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.odds-card { display: flex; flex-direction: column; height: 100%; }
.odds-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--pad) var(--pad) 0; }
/* the ident links the stock page where it has one: its ticker turns orange on hover, as a card title does */
@media (hover: hover) { .odds-head a b { transition: color var(--dur-fast) ease-out; } .odds-head a:hover b { color: var(--signal-ink); } }
/* two markets, each its question, its price on a meter with the figure after it and its trades, end and liquidity */
.odds-markets { flex: 1; display: grid; align-content: start; gap: var(--space-5); padding: var(--space-5) var(--pad) var(--pad); }
.odds-markets > li { display: grid; gap: var(--space-2); }
.odds-q { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: var(--text-md); color: var(--ink); text-wrap: pretty; }
.odds-price { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--space-3); }
.odds-pct { font-size: var(--text-sm); color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.odds-pct b { color: var(--ink); }
.odds-fail { grid-column: 1 / -1; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .odds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    /* the stage takes the height of its tallest view here, so the plot keeps the rows of the board */
    .cg-plot { flex: none; }
    .cg-names, .cg-field, .cg-wait { grid-auto-rows: var(--tr-row); }
    /* a line, or a lean with its shares on two lines, needs more height than a reading on a scale */
    :is(.cg-lines, .cg-leans) :is(.cg-names, .cg-field) { grid-auto-rows: calc(var(--tr-row) * 1.5); }
    .cg-wait { flex: none; }
    .cg-note { margin-top: var(--space-8); }
    .ep-ref { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); }
    /* stacked, the facts of the API follow the request and its answer: the side gives up its box, so its parts and the
       dark panel line up in the explorer's one column, and the facts and the reference go after the panel */
    .explorer--play:not(.explorer--cli) .ep-side { display: contents; }
    .explorer--play:not(.explorer--cli) :is(.ep-facts, .ep-ref) { order: 1; }
    .ep-ctrl { gap: var(--space-4); }
    .plans { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); } /* room for the recommended tag on its top edge */
    /* stacked, the paid plans come first, as on the live page: Hobby, Professional, then Free */
    .plans > .plan:first-child { order: 1; }
    /* stacked, the comparison keeps only the button under the line for whom */
    .plans--compare .plan > .plan-cta:last-child { display: none; }
    /* folded groups close up under each other */
    .plan-group:not([open]) + details.plan-group { margin-top: var(--space-2); }
}
@media (max-width: 768px) {
    /* on a phone the billing switch stays with the plans it switches: 16px, as the plans-bar of the product pages */
    .plans--compare { margin-top: var(--space-4); }
    .odds { grid-template-columns: minmax(0, 1fr); }
    /* inner marks of a scale would overlap on a phone: the band keeps its key under the plot, the log scale its ends */
    .cg-mark { visibility: hidden; }
    .fg-what { flex-direction: column; align-items: center; }
    .fg-wire { flex: none; width: 1px; height: var(--space-8); min-width: 0; margin: var(--space-2) 0; }
    .fg-wire i { top: 0; left: 50%; width: 2px; height: var(--space-6); translate: -50% 0; background: linear-gradient(180deg, transparent, var(--code-gold)); }
    .fg-often { flex-direction: column; gap: var(--space-6); }
    .fg-buzz { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
    .fg-gauge { width: 200px; margin: 0 auto; }
    .fg-bars { gap: var(--space-1-5); }
    .fg-plans li { grid-template-columns: minmax(0, 1fr); }
    .fg-plans li > span { grid-row: auto; }
    @media (prefers-reduced-motion: no-preference) { .is-on .fg-wire i { animation-name: fg-run-down; } }
    .ep-ref .ct { display: none; }
    .ref-list--cols { grid-template-columns: minmax(0, 1fr); }
    .ref-list--cols > div:nth-child(2) { border-top: var(--divider); }
}
