/* ────────────────────────────────────────────────────────────────────────
   THE RECORD'S CHROME: its tokens, its buttons and its header, for every
   page on convexityos.com (2026-10-23).

   The header was the homepage's alone when the record took it (2026-10-18),
   so every page still on BaseLayout wore the site's older nav and a visitor
   crossing from / to /pricing changed headers. Both layouts now render the
   one header, src/components/record/RecordHeader.astro, which imports this
   file, so the tokens and buttons it is drawn with arrive wherever it does.
   Moved here unchanged from record.css, which keeps the rest of the record.

   The tokens are declared on .dl-hd as well as on .dl: a BaseLayout page has
   no .dl ground, so the header carries its own. The phone block below sets
   both too, since a token set on the header itself would otherwise shadow
   the phone values it inherits from .dl on the record's pages.
   ──────────────────────────────────────────────────────────────────────── */

.dl,
.dl-hd {
  /* night, the default ground */
  --dl-bg: #0b0b0c;
  --dl-ink: #f3f2ee;
  --dl-ink-2: #b9b7b0;
  --dl-ink-3: #8f8d87;
  --dl-join: #77756f;
  --dl-faint: #807e79;
  --dl-line: rgba(243, 242, 238, 0.11);
  --dl-line-2: rgba(243, 242, 238, 0.2);
  --dl-rule: rgba(243, 242, 238, 0.46);
  --dl-pale: rgba(243, 242, 238, 0.05);
  --dl-pale-2: rgba(243, 242, 238, 0.09);
  /* a header link under a pointer, or the page it answers to */
  --dl-hover: rgba(243, 242, 238, 0.12);
  --dl-mark: #e8a33d;
  --dl-on-ink: #0b0b0c;
  --dl-btn-hover: #ffffff;
  --dl-tint: rgba(243, 242, 238, 0.07);
  --dl-frame: rgba(243, 242, 238, 0.12);
  --dl-select: rgba(232, 163, 61, 0.3);
  --dl-down: #f87171;
  --dl-sans: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --dl-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --dl-w: min(calc(100% - 96px), 1280px);
  --dl-gap: 24px;
  --dl-r: 4px;
  /* anything you press has round ends; anything that holds information
     keeps --dl-r's 4px corner (owner, 2026-10-21) */
  --dl-pill: 999px;
  /* the header's row: 52px since 2026-10-23 (owner, shown 48, 52 and 56
     rendered side by side: "go with B"), 56px before the slim, then 48px
     for the few hours the slim was live, which read small at rest */
  --dl-hd-h: 52px;
  --dl-sec-y: clamp(96px, 10vw, 144px);
  --dl-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* The header's own type and ink, which on the record's pages it inherits
   from .dl's body and on BaseLayout's would take from tokens.css. The focus
   ring is the record's ink, stated on the controls so it out-ranks
   tokens.css's amber ring (one class) and still yields to the Optera
   switcher's own (two). */
.dl-hd {
  color: var(--dl-ink);
  font-family: var(--dl-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
:where(.dl-hd) :is(a, button):focus-visible {
  outline: 2px solid var(--dl-ink);
  outline-offset: 3px;
}

/* ── buttons and links ─────────────────────────────────────────────────── */

.dl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--dl-pill);
  font-family: var(--dl-sans);
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease;
}
.dl-btn--ink {
  background: var(--dl-ink);
  color: var(--dl-on-ink);
}
.dl-btn--ink:hover {
  background: var(--dl-btn-hover);
}
.dl-btn--line {
  border-color: var(--dl-ink);
  background: transparent;
  color: var(--dl-ink);
}
.dl-btn--line:hover {
  background: var(--dl-tint);
}
/* the recommended plan's button: the amber, once per plan row */
.dl-btn--amber {
  background: var(--dl-mark);
  color: #0b0b0c;
}
.dl-btn--amber:hover {
  background: #f0b456;
}
.dl-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* while the record loads: three grey lines where the sentence will stand */
.dl-skel {
  display: grid;
  gap: 0.34em;
  padding-top: 0.12em;
}
.dl-skel i {
  display: block;
  height: 0.62em;
  border-radius: 3px;
  background: var(--dl-pale-2);
}
.dl-skel i:nth-child(1) {
  width: 92%;
}
.dl-skel i:nth-child(2) {
  width: 84%;
}
.dl-skel i:nth-child(3) {
  width: 58%;
}

/* ── the header (owner, 2026-10-21: "the thinness, the centered text, the
   rounded edges"). At the top of the page it has no plate: the Optera
   switcher and the wordmark on the column's left edge, the five links
   centered on the page, Sign in and Start free on its right edge, each a
   pill at regular weight. Once the page moves under it (is-stuck, from
   RecordHeader's script) the row becomes a capsule 8px from the top: the
   ground a step up from the page's (no glass), a hairline, a soft shadow,
   and Start free fills white.

   The ground switches with no transition, on purpose. A transition started
   on a document whose timeline has stalled (a reload or a return part-way
   down a page) freezes at its start value, which here would be a
   transparent bar over the page; so only the hairline and the shadow fade,
   and a stall costs those alone. It never clips its overflow, because the
   Optera switcher's menu opens out of it; with the phone menu open
   (is-open) it takes the ground and trades its round ends for a 22px plate
   the drawer hangs from. ───────────────────────────────────────────────── */

.dl-hd {
  --dl-hd-pad: 9px;
  --dl-hd-r: var(--dl-pill);
  --dl-hd-top: 8px;
  position: sticky;
  top: var(--dl-hd-top);
  z-index: 100;
  width: calc(var(--dl-w) + 2 * var(--dl-hd-pad));
  margin: var(--dl-hd-top) auto 0;
  border: 1px solid transparent;
  border-radius: var(--dl-hd-r);
  transition: border-color 300ms ease-out, box-shadow 300ms ease-out;
}
.dl-hd.is-stuck,
.dl-hd.is-open {
  background: color-mix(in srgb, var(--dl-ink) 4%, var(--dl-bg));
  border-color: var(--dl-line-2);
}
.dl-hd.is-stuck {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 28px -8px rgba(0, 0, 0, 0.7);
}
.dl-hd.is-open {
  --dl-hd-r: 22px;
}
/* three columns, so the links sit on the page's center line whatever the
   two sides weigh (below 920px, with no links in the row, it is a flex row
   again). The bar is wider than the column by its padding and border,
   so its contents sit on the column's edges; the switcher steps in 4px
   more, clear of the capsule's round end. */
.dl-hd-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  height: var(--dl-hd-h);
  padding-inline: var(--dl-hd-pad);
}
.dl-hd-l {
  display: flex;
  grid-column: 1;
  justify-self: start;
  align-items: center;
  gap: 14px;
  padding-left: 4px;
  --optera-ink: var(--dl-ink);
  --optera-gap: 16px;
}
.dl-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--dl-ink);
  text-decoration: none;
}
.dl-brand img {
  display: block;
  width: auto;
  height: 22px;
}
.dl-brand span {
  font-family: 'Space Grotesk', var(--dl-sans);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
}
.dl-hd-nav {
  display: flex;
  grid-column: 2;
  gap: 4px;
  align-items: center;
}
/* the page a link answers to wears the same soft pill a pointer gives it,
   and so does Product while its menu is open. The links stand 4px apart,
   so the page's pill and a pointer's on its neighbor never touch (flush
   until 2026-11-01, when "AI" and a hovered "Platform" read as one shape).
   The pill comes and goes with no transition: a transition on a stalled
   timeline freezes at its start, and the start here is no pill at all. */
.dl-hd-nav > a,
.dl-pm > a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: var(--dl-pill);
  color: var(--dl-ink);
  font-size: 14.5px;
  font-weight: 400;
  text-decoration: none;
}
.dl-hd-nav > a:hover,
.dl-hd-nav > a[aria-current='page'],
.dl-pm > a:hover,
.dl-pm > a[aria-current='page'],
.dl-pm.is-open > a {
  background: var(--dl-hover);
}

/* ── the Product menu: three of the product's surfaces, each a small
   drawing cropped by its tile, beside one card that carries a real filing,
   the newest open-market buy from the feed the homepage's first sentence
   reads. Only Product has one; the other links stay links. The panel hangs
   8px under the header's foot, and the 18px above it is part of the menu,
   so a mouse crossing from Product to the panel never leaves it. The
   panel is chrome and rounds like the capsule; the card's well holds a
   filing, so it keeps the 4px corner. A keyboard opens it by reaching
   Product (RecordHeader's script). ──────────────────────────────────── */

.dl-pm {
  position: relative;
  display: flex;
  align-items: center;
}
.dl-pm-panel {
  position: absolute;
  top: 100%;
  left: -18px;
  z-index: 1;
  padding-top: 18px;
}
.dl-pm-panel[hidden] {
  display: none;
}
.dl-pm-in {
  display: grid;
  grid-template-columns: 300px 268px;
  gap: 26px;
  padding: 16px 20px 18px 14px;
  border: 1px solid var(--dl-line-2);
  border-radius: 14px;
  background: color-mix(in srgb, var(--dl-ink) 4%, var(--dl-bg));
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.9);
}
.dl-pm-rows {
  display: grid;
  align-content: start;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* a row's mark is an amber rule at its left, under the pointer or focus */
.dl-pm-row {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  padding: 8px 8px 8px 14px;
  color: inherit;
  text-decoration: none;
}
.dl-pm-row::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 0;
  width: 3px;
  height: 28px;
  border-radius: 2px;
}
.dl-pm-row:hover::before,
.dl-pm-row:focus-visible::before {
  background: var(--dl-mark);
}
.dl-pm-tile {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 10px;
  background: color-mix(in srgb, var(--dl-ink) 6%, var(--dl-bg));
  box-shadow: inset 0 0 0 1px var(--dl-line);
  color: var(--dl-ink-2);
}
.dl-pm-tile svg {
  width: 44px;
  height: 44px;
}
.dl-pm-tile .dl-pm-mark {
  width: 19px;
  height: 24px;
  color: var(--dl-mark);
}
.dl-pm-txt b {
  display: block;
  padding-top: 1px;
  color: var(--dl-ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
}
.dl-pm-txt span {
  display: block;
  margin-top: 3px;
  color: var(--dl-ink-3);
  font-size: 13.5px;
  line-height: 1.4;
}
.dl-pm-row:hover .dl-pm-txt span {
  color: var(--dl-ink-2);
}
.dl-pm-card {
  display: grid;
  align-content: start;
  color: inherit;
  text-decoration: none;
}
.dl-pm-rec {
  display: grid;
  align-content: space-between;
  height: 160px;
  margin-top: 6px;
  padding: 16px 18px 14px;
  border-radius: var(--dl-r);
  background: var(--dl-bg);
  box-shadow: inset 0 0 0 1px var(--dl-line);
}
/* the record's grammar at a size where its dimmed words need ink-3 */
.dl-pm-say {
  color: var(--dl-ink-3);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.012em;
}
.dl-pm-say b {
  color: var(--dl-ink);
  font-weight: 500;
}
.dl-pm-say sup {
  margin-left: 1px;
  color: var(--dl-mark);
  font-size: 11px;
}
.dl-pm-src {
  color: var(--dl-faint);
  font-family: var(--dl-mono);
  font-size: 11px;
  white-space: pre;
}
.dl-pm-card > b {
  margin-top: 14px;
  color: var(--dl-ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
}
.dl-pm-card > span:last-child {
  margin-top: 3px;
  color: var(--dl-ink-3);
  font-size: 13.5px;
}
.dl-pm-card i {
  font-style: normal;
}
.dl-pm-card:hover > span:last-child {
  color: var(--dl-ink-2);
}
.dl-pm-foot {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  padding: 12px 6px 2px 14px;
  border-top: 1px solid var(--dl-line);
}
.dl-pm-foot-h {
  color: var(--dl-faint);
  font-family: var(--dl-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.dl-pm-foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}
.dl-pm-foot-links a {
  color: var(--dl-ink-2);
  font-size: 13.5px;
  text-decoration: none;
}
.dl-pm-foot-links a:hover,
.dl-pm-foot-links a:focus-visible {
  color: var(--dl-ink);
}
.dl-hd-r {
  display: flex;
  grid-column: 3;
  justify-self: end;
  align-items: center;
  gap: 6px;
}
.dl-hd-signin {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--dl-line-2);
  border-radius: var(--dl-pill);
  color: var(--dl-ink);
  font-size: 14.5px;
  font-weight: 400;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.dl-hd-signin:hover {
  border-color: var(--dl-rule);
  background: var(--dl-pale);
}
/* Start free: a soft pill while the page rests under the hero's own Start
   free, white once the page moves */
.dl-hd-cta {
  min-height: 34px;
  padding: 0 15px;
  background: var(--dl-pale-2);
  color: var(--dl-ink);
  font-size: 14.5px;
  font-weight: 400;
  transition: background-color 300ms ease-out, color 300ms ease-out;
}
.dl-hd-cta:hover {
  background: rgba(243, 242, 238, 0.15);
}
.dl-hd.is-stuck .dl-hd-cta {
  background: var(--dl-ink);
  color: var(--dl-on-ink);
}
.dl-hd.is-stuck .dl-hd-cta:hover {
  background: var(--dl-btn-hover);
}
/* the menu button's pull-in is the bar's padding, so its hit area ends at
   the border and its glyph sits on the round end's center on a phone */
.dl-hd-menu {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: calc(0px - var(--dl-hd-pad));
  border: 0;
  background: none;
  color: var(--dl-ink);
  cursor: pointer;
}
.dl-hd-menu svg {
  width: 22px;
  height: 22px;
}
.dl-hd-menu .x,
.dl-hd-menu[aria-expanded='true'] .bars {
  display: none;
}
.dl-hd-menu[aria-expanded='true'] .x {
  display: block;
}
.dl-drawer {
  border-top: 1px solid var(--dl-line);
  border-radius: 0 0 calc(var(--dl-hd-r) - 1px) calc(var(--dl-hd-r) - 1px);
  max-height: calc(100dvh - 72px);
  overflow-y: auto;
}
.dl-drawer[hidden] {
  display: none;
}
.dl-drawer-in {
  display: grid;
  padding: 12px 16px 24px;
}
.dl-drawer-in > a {
  display: flex;
  align-items: center;
  min-height: 48px;
  border-bottom: 1px solid var(--dl-line);
  color: var(--dl-ink);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.015em;
  text-decoration: none;
}
.dl-drawer-acts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}
.dl-drawer-acts .dl-btn {
  width: 100%;
}

/* Over an amber fold (navTone="amber" on BaseLayout: /ai, /platform,
   /pricing and /home-classic, whose first screen is the amber field). At
   rest the header has no plate, so the night's ink would put a white
   wordmark and white links on amber; the bar's own row takes the closing
   band's ink instead, and the mark goes to ink by brightness(0). Only the
   row: the Product menu and the drawer keep the night they are drawn on.
   Once the page moves (is-stuck) or the phone menu opens (is-open) the
   capsule is night again and none of this applies. Start free changes its
   fill there with no transition, because a transition frozen at its start
   on a restored page would leave its ink label on the night capsule. */
.dl-hd[data-tone='amber']:not(.is-stuck):not(.is-open) :is(.dl-hd-l, .dl-hd-nav > a, .dl-pm > a, .dl-hd-r) {
  --dl-ink: #150e06;
  --dl-line-2: rgba(21, 14, 6, 0.36);
  --dl-rule: #150e06;
  --dl-pale: rgba(21, 14, 6, 0.06);
  --dl-pale-2: rgba(21, 14, 6, 0.11);
  --dl-hover: rgba(21, 14, 6, 0.1);
}
.dl-hd[data-tone='amber']:not(.is-stuck):not(.is-open) .dl-brand img {
  filter: brightness(0);
}
.dl-hd[data-tone='amber']:not(.is-stuck):not(.is-open) .dl-hd-cta:hover {
  background: rgba(21, 14, 6, 0.17);
}
.dl-hd[data-tone='amber'] .dl-hd-cta {
  transition: none;
}

/* The header keeps its links down to 980px (7 centered links plus both sides).
   Below it the links move to the drawer and the row is a flex row again. */
@media (max-width: 980px) {
  .dl-hd-in {
    display: flex;
    gap: 12px;
  }
  .dl-hd-nav {
    display: none;
  }
  .dl-hd-r {
    margin-left: auto;
  }
  .dl-hd-menu {
    display: grid;
  }
}

@media (max-width: 720px) {
  .dl,
  .dl-hd {
    --dl-w: calc(100% - 32px);
    --dl-gap: 16px;
    --dl-hd-h: 44px;
    --dl-sec-y: 72px;
  }
  /* a phone has 16px of gutter: the capsule keeps 8px of it and its
     padding the other 8px, so its contents still sit on the column's edges
     and the switcher steps in 2px more, 11px clear of the round end */
  .dl-hd {
    --dl-hd-pad: 8px;
  }
  /* The phone row never shrinks (every item is nowrap), so it has to fit
     the capsule's content box, which is the viewport less 34px (8px of
     gutter, 1px of border and 8px of padding a side), plus the 8px the menu
     button pulls into the padding. At 8px between the groups, 6px after
     the switcher and 4px before the menu, the switcher's 2px step and 11px
     inside Start free, the row leaves 6px spare at 360px, measured; the
     block under 360px below takes it the rest of the way. The switcher's
     rule sits 16px from the brand's mark, nearer the 12px on its other
     side. */
  .dl-hd-in {
    gap: 8px;
  }
  .dl-hd-l {
    gap: 6px;
    padding-left: 2px;
  }
  .dl-hd-signin {
    display: none;
  }
  /* inside the 44px phone row Start free stays a 32px pill at 14px (the
     wider bar went to 34px at 14.5px), which leaves it 6px of air above
     and below and keeps the row inside a 360px screen, and tightens its
     padding */
  .dl-hd-cta {
    min-height: 32px;
    padding: 0 11px;
    font-size: 14px;
  }
  /* the menu button's 44px hit area already holds 11px of air either side
     of its 22px glyph, so 4px of gap still reads as space */
  .dl-hd-r {
    gap: 4px;
  }
  .dl-brand span {
    font-size: 19px;
  }
}

/* Under 360px the phone row (it needs a 354px screen) overruns the capsule,
   so it gives up 37px more: the switcher's caret goes and its rule
   tightens, as the site's other phone bars do under 360 (the circle is
   still the control, one tap opens the same menu), and the wordmark and
   Start free each step down a size. That fits from 317px, measured. */
@media (max-width: 359px) {
  .dl-hd .optera-caret {
    display: none;
  }
  .dl-hd .optera-sep {
    margin: 0 8px 0 6px;
  }
  .dl-hd-l {
    gap: 4px;
  }
  .dl-brand {
    gap: 8px;
  }
  .dl-brand span {
    font-size: 17px;
  }
  .dl-hd-cta {
    font-size: 13px;
  }
}

/* The Optera switcher's one stylesheet. Byte-identical in every product site
   that carries the switcher (tests/test_optera_switcher.py holds the copies
   to marketing-astro's), so nothing here may name a host site's tokens.

   The trigger is the O alone, the Optera wordmark's own, at every width on
   every site (owner, 2026-10-13: "just do the O on all"). The full
   wordmark cost a bar 100px it rarely had, and each site had grown its own
   breakpoint for swapping it out.

   Three things come from the host and nothing else does:
   * the trigger's ink, from --optera-ink (default: the color it inherits),
     which is why the O is a mask rather than an image;
   * the panel's distance below the trigger, from --optera-gap (default 12px);
   * the face of the panel's small text, inherited. The product names are
     their own wordmarks, so no product's identity rides on it.
   A host whose smallest bar has no room for the caret hides .optera-caret
   in its own stylesheet.

   The panel wears Optera's material, never the host's: black ground, Optera's
   ink (optera-id/src/styles.css), cobalt for the current product, a hairline,
   4px corners, no shadow.

   A row takes its own product's color while it is hovered or focused (owner,
   2026-10-13, the Sweep): a 9% tint holds, one band of the color crosses the
   row once, and the mark wears the color. Nothing loops, and reduced motion
   keeps the tint and the mark without the band. These are the products' own
   colors, never a host's signal, so Convexity's row turns amber even where
   the host keeps amber for signals. Each color and each mark file is keyed at
   the foot of this sheet by the row's data-product, never inlined, because
   optera.one's CSP refuses style attributes. The colors are held to the
   identity registry (backend/app/services/identity/products.py) and the mark
   files to the product list by tests/test_optera_switcher.py. */

.optera {
  --o-ground: #000;
  --o-ink-2: rgba(236, 241, 252, 0.66);
  --o-ink-3: rgba(236, 241, 252, 0.5);
  --o-rule: rgba(236, 241, 255, 0.14);
  --o-rule-2: rgba(236, 241, 255, 0.08);
  --o-cobalt: #2f5ad6;
  --o-accent: #8aa6f0;
  position: relative;
  display: flex;
  align-items: center;
  flex: none;
  color: var(--optera-ink, currentColor);
}

.optera-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  margin: 0;
  padding: 0 4px 0 0;
  background: none;
  border: 0;
  border-radius: 4px;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.optera-trigger:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.optera-o {
  display: block;
  flex: none;
  width: 20px;
  height: 15px;
  background-color: currentColor;
  -webkit-mask: url('/optera-o.svg') left center / contain no-repeat;
  mask: url('/optera-o.svg') left center / contain no-repeat;
}
.optera-caret { flex: none; opacity: 0.7; transition: transform 120ms ease-out; }
.optera-trigger:hover .optera-caret,
.optera-trigger[aria-expanded="true"] .optera-caret { opacity: 1; }
.optera-trigger[aria-expanded="true"] .optera-caret { transform: rotate(180deg); }

.optera-sep {
  flex: none;
  width: 1px;
  height: 18px;
  margin: 0 10px 0 8px;
  background: currentColor;
  opacity: 0.28;
}

.optera-menu {
  position: absolute;
  top: calc(100% + var(--optera-gap, 12px));
  left: -18px;
  width: 560px;
  z-index: 1000;
  container-type: inline-size;
  background: var(--o-ground);
  color: var(--o-ink-2);
  border: 1px solid var(--o-rule);
  border-radius: 4px;
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  line-height: 1.3;
  text-align: left;
}
.optera-menu[hidden] { display: none; }

.optera-list { list-style: none; margin: 0; padding: 0; }
.optera-list li { margin: 0; padding: 0; }
.optera-row {
  /* The product's color as r, g, b (keyed below); cobalt for a row with none. */
  --o-rgb: 47, 90, 214;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 20px 84px minmax(0, 1fr) auto;
  column-gap: 14px;
  align-items: center;
  height: 46px;
  padding: 0 18px;
  border-bottom: 1px solid var(--o-rule-2);
  color: inherit;
  text-decoration: none;
}
.optera-row:hover,
.optera-row:focus-visible { background: rgba(var(--o-rgb), 0.09); }
.optera-row:focus-visible { outline: 1px solid var(--o-accent); outline-offset: -1px; }
/* The band: laid behind the row's content and crossing it once on arrival.
   It rests just outside the row's left edge and ends just past its right,
   rather than resting at opacity 0, so a timeline that stalls on its first
   frame leaves nothing half-drawn (vitna.ai's design tests refuse a rule
   that rests clear waiting for an animation). */
.optera-row::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(var(--o-rgb), 0.3) 50%, transparent) -100% 0 / 45% 100% no-repeat;
}
.optera-row:hover::after,
.optera-row:focus-visible::after { animation: optera-sweep 900ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes optera-sweep {
  from { background-position: -100% 0; }
  to { background-position: 200% 0; }
}
/* The current product: a cobalt rule and its own words, never a dot. */
.optera-row[aria-current]::before {
  content: '';
  position: absolute;
  left: -1px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--o-cobalt);
}
/* The mark is a mask over its own fill, as the O is, so the row can color it. */
.optera-mark {
  display: block;
  width: 20px;
  height: 18px;
  background-color: #fff;
  opacity: 0.86;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  transition: background-color 160ms ease-out, opacity 160ms ease-out;
}
.optera-row:hover .optera-mark,
.optera-row:focus-visible .optera-mark { background-color: rgb(var(--o-rgb)); opacity: 1; }
.optera-name { display: block; width: auto; height: 22px; }
.optera-kind { color: var(--o-ink-2); }
.optera-where { font-size: 12.5px; color: var(--o-ink-3); text-align: right; }
.optera-row[aria-current] .optera-where { color: var(--o-accent); }
.optera-row:hover .optera-where { color: var(--o-ink-2); }

@media (prefers-reduced-motion: reduce) {
  .optera-row:hover::after,
  .optera-row:focus-visible::after { animation: none; }
  .optera-mark { transition: none; }
}

.optera-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  padding: 13px 18px;
  font-size: 13px;
  color: var(--o-ink-2);
}
.optera-foot a { color: var(--o-accent); text-decoration: none; }
.optera-foot a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* A panel narrower than the four columns (a phone, where the script spans it
   across the viewport): the host column goes, and the current row says so in
   the kind column instead. */
@container (max-width: 480px) {
  .optera-row { grid-template-columns: 20px minmax(0, 1fr) auto; height: 50px; padding: 0 16px; }
  .optera-row:not([aria-current]) .optera-where,
  .optera-row[aria-current] .optera-kind { display: none; }
  .optera-kind { text-align: right; }
  .optera-foot { padding: 13px 16px; }
}

/* Each product's color (r, g, b) and mark file. Vexa wears Convexity's amber
   on purpose (owner, 2026-10-13). */
.optera-row[data-product="convexity"] { --o-rgb: 232, 163, 61; }
.optera-row[data-product="convexity"] .optera-mark { -webkit-mask-image: url('/optera-mark-convexity.svg'); mask-image: url('/optera-mark-convexity.svg'); }
.optera-row[data-product="vexa"] { --o-rgb: 232, 163, 61; }
.optera-row[data-product="vexa"] .optera-mark { -webkit-mask-image: url('/optera-mark-vexa.png'); mask-image: url('/optera-mark-vexa.png'); }
.optera-row[data-product="callsider"] { --o-rgb: 240, 120, 16; }
.optera-row[data-product="callsider"] .optera-mark { -webkit-mask-image: url('/optera-mark-callsider.png'); mask-image: url('/optera-mark-callsider.png'); }
.optera-row[data-product="vitna"] { --o-rgb: 113, 136, 255; }
.optera-row[data-product="vitna"] .optera-mark { -webkit-mask-image: url('/optera-mark-vitna.svg'); mask-image: url('/optera-mark-vitna.svg'); }

/* Public SEC Fundamentals pages (/fundamentals and /fundamentals/<SYMBOL>)
   in the record's material: night ground (#0b0b0c), Schibsted Grotesk over
   JetBrains Mono figures, ruled rows, 4px corners, no frosted glass, no glow.
   Amber (--dl-mark) is budgeted to at most one element per view: the thin
   newest-year bar cap on a company's annual revenue chart. */

html { background: #0b0b0c; }
body {
  margin: 0;
  background: #0b0b0c;
  color: #f3f2ee;
  font-family: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
a { color: inherit; }

.fd-main {
  --fd-surface: #121214;
  --fd-up: #4ade80;
  --fd-down: #f87171;
  background: var(--dl-bg);
  color: var(--dl-ink);
  padding-bottom: 72px;
}
.fd-wrap { width: var(--dl-w); margin: 0 auto; }

/* Masthead */
.fd-mast {
  display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap;
  margin-top: 28px; padding-bottom: 18px; border-bottom: 1px solid var(--dl-rule);
}
.fd-mast h1 {
  margin: 0; font-size: 28px; line-height: 1.2; font-weight: 500; letter-spacing: -0.01em;
}
.fd-mast h1 span { font-weight: 400; color: var(--dl-ink-2); }
.fd-crumb {
  margin-left: auto; font: 500 12px/1.4 var(--dl-mono); color: var(--dl-ink-3);
  letter-spacing: 0.04em; text-transform: uppercase;
}
.fd-crumb a { text-decoration: none; }
.fd-crumb a:hover { color: var(--dl-ink); }

.fd-siblings {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 12px; font: 400 12px/1.4 var(--dl-mono); color: var(--dl-ink-3);
}
.fd-siblings a {
  padding: 3px 9px; border: 1px solid var(--dl-line-2); border-radius: var(--dl-pill);
  text-decoration: none; color: var(--dl-ink-2);
}
.fd-siblings a:hover { color: var(--dl-ink); border-color: var(--dl-rule); }

/* Hero / Lead */
.fd-hero {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px; margin-top: 40px; align-items: end;
}
.fd-say {
  margin: 0; font-size: clamp(24px, 2.5vw, 34px); line-height: 1.2;
  font-weight: 400; letter-spacing: -0.015em; color: var(--dl-ink-2); text-wrap: pretty;
}
.fd-say b { color: var(--dl-ink); font-weight: 500; }
.fd-hero--index .fd-say { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.14; }
.fd-hero-r p {
  margin: 0 0 18px; font-size: 15px; line-height: 1.6; color: var(--dl-ink-2);
}
.fd-acts { display: flex; gap: 10px; flex-wrap: wrap; }

/* Hub ticker lookup form (zero JS required) */
.fd-search {
  display: flex; gap: 10px; margin-top: 28px; max-width: 540px;
}
.fd-search input[type="search"] {
  flex: 1 1 auto; min-width: 0; height: 46px; padding: 0 14px;
  background: var(--fd-surface); color: var(--dl-ink);
  border: 1px solid var(--dl-line-2); border-radius: var(--dl-r);
  font: 400 15px/1 var(--dl-sans);
}
.fd-search input[type="search"]::placeholder { color: var(--dl-ink-3); }
.fd-search input[type="search"]:focus {
  outline: 2px solid var(--dl-ink); outline-offset: 2px; border-color: var(--dl-ink);
}
.fd-search button {
  min-height: 46px; padding: 0 20px; border: 1px solid var(--dl-ink);
  border-radius: var(--dl-pill); background: var(--dl-ink); color: var(--dl-on-ink);
  font: 600 14px/1 var(--dl-sans); cursor: pointer;
}
.fd-search button:hover { background: var(--dl-btn-hover); }
.fd-search-clear {
  display: inline-flex; align-items: center; padding: 0 12px;
  font: 500 12px/1 var(--dl-mono); color: var(--dl-ink-3); text-decoration: none;
}
.fd-search-clear:hover { color: var(--dl-ink); }

/* KPI strip on company page */
.fd-kpis {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 40px 0 0; padding: 0; list-style: none;
  border-top: 1px solid var(--dl-line-2); border-bottom: 1px solid var(--dl-line-2);
}
.fd-kpis li {
  min-width: 0; padding: 18px 16px 20px; display: flex; flex-direction: column; gap: 6px;
}
.fd-kpis li + li { border-left: 1px solid var(--dl-line); }
.fd-kpis li:first-child { padding-left: 0; }
.fd-kpis li:last-child { padding-right: 0; }
.fd-kpi-top {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
}
.fd-kpi-l {
  font: 500 11px/1.3 var(--dl-mono); color: var(--dl-ink-3);
  letter-spacing: 0.04em; text-transform: uppercase;
}
.fd-kpi-tag {
  font: 400 11px/1.2 var(--dl-mono); color: var(--dl-ink-3); white-space: nowrap;
}
.fd-kpi-v {
  font: 500 clamp(22px, 2.2vw, 28px)/1.1 var(--dl-mono); color: var(--dl-ink);
  font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
}
.fd-kpi-sub {
  font: 400 12px/1.3 var(--dl-mono); color: var(--dl-ink-2);
  font-variant-numeric: tabular-nums;
}

.fd-pos { color: var(--fd-up) !important; }
.fd-neg { color: var(--fd-down) !important; }
.fd-nil { color: var(--dl-ink-3) !important; }

/* Sections */
.fd-sec { margin-top: 56px; }
.fd-sec-hd {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 18px;
  margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--dl-rule);
}
.fd-sec-hd h2 { margin: 0; font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.fd-sec-hd p {
  margin: 0; flex: 1 1 360px; font-size: 14px; line-height: 1.5; color: var(--dl-ink-3);
}
.fd-legend {
  display: flex; align-items: center; gap: 16px; margin-left: auto;
  font: 400 12px/1 var(--dl-mono); color: var(--dl-ink-3);
}
.fd-legend span { display: inline-flex; align-items: center; gap: 6px; }
.fd-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.fd-legend .sw-rev { background: rgba(243, 242, 238, 0.45); }
.fd-legend .sw-ni { background: var(--fd-up); }
.fd-legend .sw-debt { background: var(--fd-down); }

.fd-charts-2, .fd-seg-grid, .fd-profile-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px; margin-top: 16px;
}
.fd-subchart-hd {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 8px; margin-bottom: 10px;
}
.fd-subchart-hd h3 {
  margin: 0; font-size: 14px; font-weight: 500; color: var(--dl-ink);
}
.fd-tbl--compact { min-width: 0; }
.fd-seg-bar {
  margin-top: 5px; height: 4px; width: 100%; background: var(--dl-line);
  border-radius: 2px; overflow: hidden;
}
.fd-seg-bar span {
  display: block; height: 100%; background: rgba(243, 242, 238, 0.48);
}
.fd-facts {
  margin: 0; padding: 14px 16px; background: var(--fd-surface);
  border: 1px solid var(--dl-line); border-radius: var(--dl-r);
  display: flex; flex-direction: column; gap: 10px;
}
.fd-facts > div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding-bottom: 8px; border-bottom: 1px solid var(--dl-line);
}
.fd-facts > div:last-child { padding-bottom: 0; border-bottom: 0; }
.fd-facts dt {
  font: 500 11px/1.3 var(--dl-mono); color: var(--dl-ink-3);
  letter-spacing: 0.04em; text-transform: uppercase;
}
.fd-facts dd {
  margin: 0; font: 400 13px/1.35 var(--dl-mono); color: var(--dl-ink);
  text-align: right; font-variant-numeric: tabular-nums;
}
.fd-filings {
  margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column;
}
.fd-filings li + li { border-top: 1px solid var(--dl-line); }
.fd-filings a {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 8px 0; text-decoration: none; font: 400 13px/1.3 var(--dl-mono);
  color: var(--dl-ink-2);
}
.fd-filings a:hover { color: var(--dl-ink); }
.fd-filings a b { color: var(--dl-ink); font-weight: 600; }

/* Inline SVG annual bar chart */
.fd-chart-box {
  background: var(--fd-surface); border: 1px solid var(--dl-line);
  border-radius: var(--dl-r); padding: 16px 16px 12px;
}
.fd-svg { display: block; width: 100%; height: auto; }
.fd-svg .fd-gl { stroke: var(--dl-line); stroke-dasharray: 2 4; stroke-width: 1; }
.fd-svg .fd-g0 { stroke: rgba(243, 242, 238, 0.34); stroke-width: 1; }
.fd-svg .fd-yt, .fd-svg .fd-xt {
  fill: var(--dl-ink-3); font: 400 11px/1 var(--dl-mono); font-variant-numeric: tabular-nums;
}
.fd-svg .fd-xt-latest { fill: var(--dl-ink); font-weight: 500; }
.fd-svg .fd-bar-rev { fill: rgba(243, 242, 238, 0.28); }
.fd-svg .fd-bar-latest { fill: rgba(243, 242, 238, 0.58); }
.fd-svg .fd-bar-cap { fill: var(--dl-mark); }
.fd-svg .fd-bar-ni-pos { fill: rgba(74, 222, 128, 0.72); }
.fd-svg .fd-bar-ni-neg { fill: rgba(248, 113, 113, 0.78); }

/* Zero-JS CSS radio workbench */
.fd-wb { position: relative; }
.fd-sr {
  position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; margin: 0;
}
.fd-ctl {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 14px 20px; margin-bottom: 18px;
}
.fd-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.fd-pills label {
  font: 500 12px/1 var(--dl-mono); padding: 9px 14px; border-radius: var(--dl-pill);
  border: 1px solid var(--dl-line-2); color: var(--dl-ink-2); cursor: pointer; user-select: none;
}
.fd-pills label:hover { color: var(--dl-ink); border-color: var(--dl-rule); }
.fd-panel { display: none; }
.fd-unit-note {
  margin: 0 0 12px; font: 400 12px/1.5 var(--dl-mono); color: var(--dl-ink-3);
}

/* Financial statement & hub directory tables */
.fd-tbl-wrap {
  overflow-x: auto; border-top: 1px solid var(--dl-line-2); border-bottom: 1px solid var(--dl-line-2);
}
.fd-tbl {
  width: 100%; border-collapse: collapse; min-width: 640px;
}
.fd-tbl thead th {
  padding: 12px 12px; text-align: right; vertical-align: bottom; white-space: nowrap;
  border-bottom: 1px solid var(--dl-rule);
  font: 500 12px/1.3 var(--dl-mono); color: var(--dl-ink-2);
  font-variant-numeric: tabular-nums;
}
.fd-tbl thead th small {
  display: block; margin-top: 2px; font-weight: 400; font-size: 10px; color: var(--dl-ink-3);
}
.fd-tbl thead th:first-child,
.fd-tbl tbody th {
  position: sticky; left: 0; z-index: 1; text-align: left;
  background: var(--dl-bg); padding-left: 4px; padding-right: 18px;
  min-width: 210px; max-width: 290px;
}
.fd-tbl tbody tr { border-bottom: 1px solid var(--dl-line); }
.fd-tbl tbody tr:last-child { border-bottom: 0; }
.fd-tbl tbody tr:hover th,
.fd-tbl tbody tr:hover td { background: var(--fd-surface); }
.fd-tbl tbody th {
  padding-top: 10px; padding-bottom: 10px;
  font: 400 14px/1.35 var(--dl-sans); color: var(--dl-ink-2);
}
.fd-tbl tbody td {
  padding: 10px 12px; text-align: right; white-space: nowrap;
  font: 400 13px/1.35 var(--dl-mono); color: var(--dl-ink);
  font-variant-numeric: tabular-nums;
}
.fd-tbl tbody tr.is-total th {
  color: var(--dl-ink); font-weight: 600;
}
.fd-tbl tbody tr.is-total td {
  font-weight: 500;
}
.fd-tbl tbody tr.is-total {
  border-top: 1px solid var(--dl-line-2);
}

/* Hub spotlight cards (matches Spectra .mv) */
.fd-spots {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0; padding: 0; list-style: none;
}
.fd-spots li { min-width: 0; }
.fd-spots li + li { border-left: 1px solid var(--dl-line); }
.fd-spots a {
  display: flex; flex-direction: column; gap: 6px; height: 100%;
  padding: 20px 20px 22px; text-decoration: none; color: inherit;
}
.fd-spots li:first-child a { padding-left: 0; }
.fd-spots a:hover .fd-spot-name { text-decoration: underline; text-underline-offset: 3px; }
.fd-spot-sym {
  font: 500 12px/1 var(--dl-mono); color: var(--dl-ink-3); letter-spacing: 0.05em;
}
.fd-spot-rev {
  margin-top: 4px; font: 500 clamp(30px, 3vw, 40px)/1 var(--dl-mono);
  letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--dl-ink);
}
.fd-spot-name { font-size: 16px; line-height: 1.3; color: var(--dl-ink); }
.fd-spot-meta {
  margin-top: auto; padding-top: 8px;
  font: 400 12px/1.4 var(--dl-mono); color: var(--dl-ink-3);
}

/* Hub directory table adjustments */
.fd-dir thead th:first-child,
.fd-dir tbody th { min-width: 240px; max-width: 360px; }
.fd-dir-link {
  display: flex; align-items: baseline; gap: 10px; text-decoration: none;
}
.fd-dir-link:hover .fd-dir-nm { color: var(--dl-ink); text-decoration: underline; text-underline-offset: 3px; }
.fd-dir-tkr {
  font: 600 13px/1 var(--dl-mono); color: var(--dl-ink); min-width: 54px;
}
.fd-dir-nm {
  color: var(--dl-ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.fd-empty {
  margin: 28px 0; padding: 28px 24px; border: 1px solid var(--dl-line-2);
  border-radius: var(--dl-r); background: var(--fd-surface);
  font-size: 15px; line-height: 1.6; color: var(--dl-ink-2);
}

/* Provenance & freshness footer */
.fd-foot {
  display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap;
  margin-top: 48px; padding-top: 14px; border-top: 1px solid var(--dl-line);
  font: 400 12px/1.5 var(--dl-mono); color: var(--dl-ink-3);
}
.fd-foot a { color: var(--dl-ink-2); }
.fd-foot a:hover { color: var(--dl-ink); }
.fd-warn { color: var(--dl-ink-2); }

/* Related companies strip */
.fd-more { margin-top: 48px; }
.fd-more h2 {
  margin: 0 0 12px; font: 500 12px/1.4 var(--dl-mono); color: var(--dl-ink-3);
  letter-spacing: 0.04em; text-transform: uppercase;
}
.fd-more ul {
  margin: 0; padding: 0; list-style: none; display: grid; column-gap: 32px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  border-top: 1px solid var(--dl-line-2);
}
.fd-more li a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 12px 8px 12px 0; border-bottom: 1px solid var(--dl-line);
  text-decoration: none; color: var(--dl-ink-2); font-size: 14px;
}
.fd-more li a:hover { color: var(--dl-ink); }
.fd-more li a b { font: 500 13px/1 var(--dl-mono); color: var(--dl-ink); margin-right: 8px; }
.fd-more li a::after { content: '\2192'; color: var(--dl-ink-3); font-family: var(--dl-mono); }

.fd-site-foot {
  border-top: 1px solid var(--dl-line); padding: 24px 0 36px; background: var(--dl-bg);
  font: 400 12px/1.5 var(--dl-mono); color: var(--dl-ink-3);
}
.fd-site-foot .fd-wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.fd-site-foot nav { display: flex; gap: 16px; flex-wrap: wrap; }
.fd-site-foot a { text-decoration: none; }
.fd-site-foot a:hover { color: var(--dl-ink); }

/* Valuation multiples, classic models, and As-Reported XBRL tags */
.fd-val-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px; margin: 0; padding: 0; list-style: none;
}
.fd-val-grid li, .fd-classic-grid li {
  display: flex; flex-direction: column; gap: 6px; padding: 14px 16px;
  background: var(--fd-surface); border: 1px solid var(--dl-line); border-radius: var(--dl-r);
}
.fd-val-v {
  font: 500 22px/1.15 var(--dl-mono); color: var(--dl-ink);
  font-variant-numeric: tabular-nums;
}
.fd-classic-wrap { margin-top: 20px; }
.fd-sub-hd {
  margin: 0 0 12px; font: 500 13px/1.3 var(--dl-mono); color: var(--dl-ink-2);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.fd-classic-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px; margin: 0; padding: 0; list-style: none;
}
.fd-ar-block + .fd-ar-block { margin-top: 28px; }
.fd-xbrl-tag {
  display: block; margin-top: 2px; font: 400 11px/1.3 var(--dl-mono);
  color: var(--dl-ink-3); word-break: break-all;
}

/* EOD price display & 1Y visual chart (Tiingo Use.PUBLIC HTML-only) */
.fd-price-band {
  margin-top: 28px; padding: 18px 20px 16px;
  background: var(--fd-surface); border: 1px solid var(--dl-line);
  border-radius: var(--dl-r);
}
.fd-price-top {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 14px 24px; margin-bottom: 14px;
}
.fd-price-main { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px 14px; }
.fd-price-val {
  font: 500 clamp(28px, 3vw, 36px)/1 var(--dl-mono); color: var(--dl-ink);
  letter-spacing: -0.025em; font-variant-numeric: tabular-nums;
}
.fd-price-chg {
  font: 500 14px/1 var(--dl-mono); font-variant-numeric: tabular-nums;
}
.fd-price-asof {
  font: 400 12px/1 var(--dl-mono); color: var(--dl-ink-3);
}
.fd-price-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px;
  font: 400 12px/1.3 var(--dl-mono); color: var(--dl-ink-2);
  font-variant-numeric: tabular-nums;
}
.fd-range-wrap { display: inline-flex; align-items: center; gap: 8px; }
.fd-range-track {
  position: relative; display: inline-block; width: 92px; height: 4px;
  background: var(--dl-line-2); border-radius: 2px;
}
.fd-range-dot {
  position: absolute; top: 50%; width: 8px; height: 8px;
  transform: translate(-50%, -50%); border-radius: 50%; background: var(--dl-ink);
}
.fd-svg .fd-px-line { stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.fd-svg .fd-px-line--up { stroke: var(--fd-up); }
.fd-svg .fd-px-line--down { stroke: var(--fd-down); }
.fd-svg .fd-px-area--up { fill: rgba(74, 222, 128, 0.08); }
.fd-svg .fd-px-area--down { fill: rgba(248, 113, 113, 0.08); }
.fd-svg .fd-px-dot--up { fill: var(--fd-up); }
.fd-svg .fd-px-dot--down { fill: var(--fd-down); }

/* Company overview, workforce & news */
.fd-about {
  margin: 0 0 16px; padding: 16px 18px;
  background: var(--fd-surface); border: 1px solid var(--dl-line);
  border-radius: var(--dl-r); font-size: 14.5px; line-height: 1.62; color: var(--dl-ink-2);
}
.fd-sector-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px;
  border: 1px solid var(--dl-line-2); border-radius: var(--dl-pill);
  font: 500 11px/1.2 var(--dl-mono); color: var(--dl-ink-2); text-decoration: none;
}
.fd-sector-pill:hover { color: var(--dl-ink); border-color: var(--dl-rule); }
.fd-news-list { margin: 0; padding: 0; list-style: none; }
.fd-news-list li + li { border-top: 1px solid var(--dl-line); }
.fd-news-list a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 10px 0; text-decoration: none; color: var(--dl-ink-2);
}
.fd-news-list a:hover .fd-news-t { color: var(--dl-ink); text-decoration: underline; text-underline-offset: 3px; }
.fd-news-t { font-size: 14px; line-height: 1.45; color: var(--dl-ink); }
.fd-news-m {
  flex: 0 0 auto; font: 400 11.5px/1.3 var(--dl-mono); color: var(--dl-ink-3);
  white-space: nowrap;
}
.fd-summary-bar {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px; margin-bottom: 16px; padding: 0; list-style: none;
}
.fd-summary-bar li {
  padding: 12px 14px; background: var(--fd-surface);
  border: 1px solid var(--dl-line); border-radius: var(--dl-r);
  display: flex; flex-direction: column; gap: 4px;
}
.fd-summary-bar b {
  font: 500 20px/1.15 var(--dl-mono); color: var(--dl-ink);
  font-variant-numeric: tabular-nums;
}

/* Hub tools strip, sort pills, sector directory, screener & ticker compare */
.fd-tools-strip {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px;
}
.fd-tool-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; border: 1px solid var(--dl-line-2); border-radius: var(--dl-pill);
  font: 500 12px/1 var(--dl-mono); color: var(--dl-ink-2); text-decoration: none;
}
.fd-tool-chip:hover { color: var(--dl-ink); border-color: var(--dl-rule); }
.fd-tool-chip.is-on {
  background: var(--dl-ink); color: var(--dl-on-ink); border-color: var(--dl-ink);
}
.fd-sector-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px; margin: 0; padding: 0; list-style: none;
}
.fd-sector-card {
  display: flex; flex-direction: column; gap: 6px; padding: 14px 16px;
  background: var(--fd-surface); border: 1px solid var(--dl-line);
  border-radius: var(--dl-r); text-decoration: none;
}
.fd-sector-card:hover { border-color: var(--dl-rule); }
.fd-sector-card-top {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
}
.fd-sector-card b { font-size: 15px; font-weight: 500; color: var(--dl-ink); }
.fd-sector-card span { font: 400 12px/1.35 var(--dl-mono); color: var(--dl-ink-3); }

/* Screener filter form */
.fd-filter-form {
  padding: 18px 20px; background: var(--fd-surface);
  border: 1px solid var(--dl-line); border-radius: var(--dl-r);
  margin-top: 28px;
}
.fd-filter-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 14px;
}
.fd-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.fd-field label {
  font: 500 11px/1.2 var(--dl-mono); color: var(--dl-ink-3);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.fd-field input[type="search"],
.fd-field input[type="text"],
.fd-field select {
  height: 40px; padding: 0 11px; width: 100%; min-width: 0;
  background: var(--dl-bg); color: var(--dl-ink);
  border: 1px solid var(--dl-line-2); border-radius: var(--dl-r);
  font: 400 13.5px/1 var(--dl-sans);
}
.fd-field input:focus, .fd-field select:focus {
  outline: 2px solid var(--dl-ink); outline-offset: 1px; border-color: var(--dl-ink);
}
.fd-filter-row2 {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px 20px; margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--dl-line);
}
.fd-checks { display: flex; flex-wrap: wrap; gap: 12px 18px; }
.fd-check {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  font: 400 13px/1.3 var(--dl-sans); color: var(--dl-ink-2);
}
.fd-check input { accent-color: var(--dl-ink); width: 15px; height: 15px; }
.fd-badge {
  display: inline-block; padding: 2px 6px; border-radius: 3px;
  border: 1px solid var(--dl-line-2); font: 500 10.5px/1.2 var(--dl-mono);
  color: var(--dl-ink-2); white-space: nowrap;
}
.fd-badge--buy { border-color: rgba(74, 222, 128, 0.5); color: var(--fd-up); }

/* Side-by-side ticker compare form & highlight */
.fd-cmp-inputs {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.fd-cmp-best { font-weight: 600 !important; color: var(--fd-up) !important; }
.fd-cmp-sec-row th, .fd-cmp-sec-row td {
  padding-top: 16px !important; padding-bottom: 8px !important;
  font: 500 11px/1.2 var(--dl-mono) !important; color: var(--dl-ink-3) !important;
  text-transform: uppercase; letter-spacing: 0.05em;
  background: var(--fd-surface) !important;
}

@media (max-width: 1080px) {
  .fd-val-grid, .fd-classic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fd-hero { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .fd-charts-2, .fd-seg-grid, .fd-profile-grid { grid-template-columns: minmax(0, 1fr); }
  .fd-sector-grid, .fd-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fd-cmp-inputs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fd-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fd-kpis li:nth-child(4) { border-left: 0; padding-left: 0; }
  .fd-kpis li:nth-child(n+4) { border-top: 1px solid var(--dl-line); }
  .fd-spots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fd-spots li:nth-child(n+3) { border-top: 1px solid var(--dl-line); }
  .fd-spots li:nth-child(3) { border-left: 0; }
  .fd-spots li:nth-child(3) a { padding-left: 0; }
}
@media (max-width: 720px) {
  .fd-crumb { margin-left: 0; width: 100%; }
  .fd-mast h1 { font-size: 24px; }
  .fd-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fd-kpis li { padding: 14px 12px; }
  .fd-kpis li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .fd-kpis li:nth-child(even) { border-left: 1px solid var(--dl-line); padding-right: 0; }
  .fd-kpis li:nth-child(n+3) { border-top: 1px solid var(--dl-line); }
  .fd-spots, .fd-sector-grid, .fd-filter-grid, .fd-summary-bar { grid-template-columns: minmax(0, 1fr); }
  .fd-cmp-inputs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fd-spots li + li { border-left: 0; border-top: 1px solid var(--dl-line); }
  .fd-spots a { padding-left: 0; padding-right: 0; }
  .fd-news-list a { flex-direction: column; gap: 4px; }
  .fd-tbl thead th:first-child,
  .fd-tbl tbody th { min-width: 150px; max-width: 185px; font-size: 13px; }
  .fd-search { flex-wrap: wrap; }
}

/* "What had it reported the day you bought it?" (_bought.html).
   Shares the Calm Terminal ink hierarchy with _tell_me.html above it:
   night ground (--dl-bg), ruled hairlines, tabular mono figures, round
   interactive controls, zero glass or glow. */

.fd-hero--stack { grid-template-columns: minmax(0, 1fr); gap: 36px; }
.fd-hero--stack .fd-hero-r {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 40px 48px; align-items: center;
  padding-top: 28px; border-top: 1px solid var(--dl-line-2);
}
.fd-hero--stack .fd-hero-r p { margin: 0; }

.fd-bought {
  padding-top: 28px;
  border-top: 1px solid var(--dl-line-2);
  scroll-margin-top: 84px;
}

.fd-bought-top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 14px 28px;
}
.fd-bought h2 {
  margin: 0; font-size: 20px; line-height: 1.35; font-weight: 500;
  letter-spacing: -0.01em; color: var(--dl-ink); text-wrap: balance;
}

.fd-bought-form {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px;
}
.fd-bought-lbl {
  font: 400 13.5px/1.3 var(--dl-sans); color: var(--dl-ink-3);
}
.fd-bought-input {
  height: 44px; padding: 0 16px;
  border: 1px solid var(--dl-line-2); border-radius: var(--dl-pill);
  background: var(--fd-surface); color: var(--dl-ink); color-scheme: dark;
  font: 400 14px/1 var(--dl-mono); font-variant-numeric: tabular-nums;
  transition: border-color 140ms ease;
}
.fd-bought-input:hover { border-color: var(--dl-rule); }
.fd-bought-input:focus-visible {
  outline: 2px solid var(--dl-ink); outline-offset: 2px; border-color: var(--dl-ink);
}
.fd-bought-btn {
  min-height: 44px; padding: 0 20px; font-size: 14.5px;
}
.fd-bought-btn:focus-visible,
.fd-bought a:focus-visible {
  outline: 2px solid var(--dl-ink); outline-offset: 3px;
}

.fd-bought-msg {
  margin: 16px 0 0; font-size: 15px; line-height: 1.55; color: var(--dl-ink-2);
}

.fd-bought-grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 32px 48px; align-items: end;
  margin-top: 24px;
}
.fd-bought-grid.is-single { grid-template-columns: minmax(0, 1fr); }

.fd-bought-say {
  margin: 0; max-width: 58ch; font-size: clamp(20px, 2vw, 25px); line-height: 1.32;
  font-weight: 400; letter-spacing: -0.015em; color: var(--dl-ink); text-wrap: pretty;
}

.fd-bought-pair {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 32px; margin-top: 22px; padding-top: 20px;
  border-top: 1px solid var(--dl-line);
}
.fd-bought-pair.is-single { grid-template-columns: minmax(0, 1fr); max-width: 44ch; }

.fd-bought-col { min-width: 0; }
.fd-bought-when {
  display: block; font: 500 11.5px/1.3 var(--dl-mono); letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--dl-ink-3);
}
.fd-bought-col.is-now .fd-bought-when { color: var(--dl-ink-2); }

.fd-bought-fig {
  display: block; margin-top: 8px;
  font: 400 18px/1.05 var(--dl-sans); letter-spacing: -0.01em; color: var(--dl-ink-3);
}
.fd-bought-fig b {
  font: 500 clamp(34px, 3.6vw, 48px)/1 var(--dl-mono);
  font-variant-numeric: tabular-nums; letter-spacing: -0.03em; color: var(--dl-ink-2);
}
.fd-bought-col.is-now .fd-bought-fig { color: var(--dl-ink-2); }
.fd-bought-col.is-now .fd-bought-fig b { color: var(--dl-ink); }
.fd-bought-pair.is-single .fd-bought-fig b { color: var(--dl-ink); }

.fd-bought-meta {
  margin: 12px 0 0; font-size: 14px; line-height: 1.55; color: var(--dl-ink-2);
  text-wrap: pretty;
}
.fd-bought-src {
  margin: 8px 0 0; font: 400 12.5px/1.4 var(--dl-mono); color: var(--dl-ink-3);
}
.fd-bought-src a,
.fd-bought-note a {
  color: var(--dl-ink); text-decoration: underline;
  text-decoration-color: var(--dl-rule); text-underline-offset: 3px;
}
.fd-bought-src a:hover,
.fd-bought-note a:hover { text-decoration-color: currentColor; }

.fd-bought-note {
  margin: 22px 0 0; padding-top: 14px; border-top: 1px solid var(--dl-line);
  font-size: 13.5px; line-height: 1.55; color: var(--dl-ink-3); text-wrap: pretty;
}

/* Comparison trajectory drawing */
.fd-bought-art { min-width: 0; }
.fd-bought-svg { display: block; width: 100%; height: auto; overflow: visible; }
.fd-bt-axis { stroke: var(--dl-line-2); stroke-width: 1; }
.fd-bt-ref { stroke: var(--dl-line-2); stroke-width: 1; stroke-dasharray: 3 4; }
.fd-bt-drop { stroke: var(--dl-line); stroke-width: 1; }
.fd-bt-line {
  fill: none; stroke: var(--dl-rule); stroke-width: 1.85;
  stroke-linejoin: round; stroke-linecap: round;
}
.fd-bt-mid { fill: var(--dl-join); }
.fd-bt-then { fill: var(--dl-bg); stroke: var(--dl-ink-2); stroke-width: 1.85; }
.fd-bt-now { fill: var(--dl-ink); }
.fd-bt-val {
  fill: var(--dl-ink-2); font: 500 13px/1 var(--dl-mono);
  font-variant-numeric: tabular-nums;
}
.fd-bt-val.is-now { fill: var(--dl-ink); font-weight: 600; }
.fd-bt-date {
  fill: var(--dl-ink-3); font: 400 12px/1 var(--dl-mono);
  font-variant-numeric: tabular-nums;
}
.fd-bt-date.is-now { fill: var(--dl-ink); font-weight: 500; }

.fd-bought-key {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px;
  margin: 8px 0 0; font-size: 12.5px; color: var(--dl-ink-3);
}
.fd-bought-key span { display: inline-flex; align-items: center; gap: 7px; }
.fd-bought-key i { display: inline-block; border-radius: 50%; }
.fd-bought-key i.is-then {
  width: 9px; height: 9px; border: 1.5px solid var(--dl-ink-2); background: var(--dl-bg);
}
.fd-bought-key i.is-now { width: 9px; height: 9px; background: var(--dl-ink); }
.fd-bought-key-src { margin-left: auto; font: 400 11.5px/1.3 var(--dl-mono); }

@media (max-width: 1080px) {
  .fd-hero--stack .fd-hero-r { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .fd-bought-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .fd-bought-art { max-width: 560px; }
}
@media (max-width: 720px) {
  .fd-bought-top { align-items: flex-start; }
  .fd-bought-form { width: 100%; }
  .fd-bought-lbl { flex: 1 0 100%; }
  .fd-bought-input { flex: 1 1 160px; min-width: 0; }
  .fd-bought-pair { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .fd-bought-key-src { margin-left: 0; flex: 1 0 100%; }
}
