:root {
  --bg: #091018;
  --bg-elevated: #101923;
  --surface: rgba(10, 17, 24, 0.94);
  --surface-strong: #16212c;
  --surface-soft: rgba(14, 22, 30, 0.82);
  --ink: #edf5fb;
  --muted: #94a9b8;
  --line: rgba(169, 205, 224, 0.18);
  --line-strong: rgba(216, 236, 247, 0.34);
  --accent: #7deaf4;
  --accent-deep: #57abc5;
  --accent-ice: #f4fbff;
  --accent-silver: #dbe6ef;
  --ink-soft: #cfdde8; /* memo prose — one step softer than --ink, same blue hue */
  --amber: #f5c77f;
  --danger: #ff8b8b;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.46);
  --radius: 20px;
}

* {
  box-sizing: border-box;
  /* M-08 (2026-09-21): kill the platform tap flash (grey box on Android
     Chrome, blue wash on iOS Safari) that paints over the whole tapped
     element. Every interactive control in this sheet already carries an
     explicit :hover / :active / :focus-visible treatment, so the UA
     highlight only muddies them — and it fires on non-interactive text
     too, which reads as a broken button. Keyboard focus rings are
     unaffected: :focus-visible outlines are separate properties. */
  -webkit-tap-highlight-color: transparent;
}

html {
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  background:
    radial-gradient(circle at 50% 8%, rgba(125, 234, 244, 0.13), transparent 22%),
    radial-gradient(circle at 22% 18%, rgba(85, 131, 163, 0.18), transparent 26%),
    radial-gradient(circle at 80% 78%, rgba(95, 191, 214, 0.08), transparent 24%),
    linear-gradient(rgba(124, 170, 201, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 170, 201, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, #11171d 0%, #070b10 100%);
  background-size: auto, auto, auto, 32px 32px, 32px 32px, auto;
  color: var(--ink);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-mono), monospace;
  color: var(--ink);
  /* Defense-in-depth against horizontal overflow on narrow viewports.
     Long unbreakable strings (URLs, user-id UUIDs, ticker hashes,
     ANSI-style command previews) used to push the viewport wider than
     the screen, especially inside settings rows and pill captions.
     overflow-wrap: anywhere lets the browser break inside a token only
     when wrapping fails the line — natural words still wrap on spaces. */
  overflow-wrap: anywhere;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  color: var(--muted);
  line-height: 1.72;
}

code {
  padding: 0.15rem 0.32rem;
  border-radius: 6px;
  background: rgba(125, 234, 244, 0.08);
  color: var(--accent);
}

.site-shell {
  position: relative;
  min-height: 100vh;
  max-width: 1380px;
  margin: 0 auto;
  padding: 24px;
}

.site-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 12%, rgba(125, 234, 244, 0.08), transparent 24%),
    radial-gradient(circle at 78% 16%, rgba(219, 230, 239, 0.06), transparent 18%),
    radial-gradient(circle at 62% 74%, rgba(92, 168, 201, 0.07), transparent 26%);
  z-index: -1;
}

@keyframes aurora-drift {
  0% {
    background:
      radial-gradient(circle at 18% 12%, rgba(125, 234, 244, 0.08), transparent 24%),
      radial-gradient(circle at 78% 16%, rgba(219, 230, 239, 0.06), transparent 18%),
      radial-gradient(circle at 62% 74%, rgba(92, 168, 201, 0.07), transparent 26%);
  }
  100% {
    background:
      radial-gradient(circle at 28% 18%, rgba(125, 234, 244, 0.1), transparent 28%),
      radial-gradient(circle at 68% 22%, rgba(219, 230, 239, 0.07), transparent 22%),
      radial-gradient(circle at 52% 68%, rgba(92, 168, 201, 0.09), transparent 30%);
  }
}

.site-shell::after {
  content: "";
  position: fixed;
  inset: auto 0 0;
  height: 34vh;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 110%, rgba(125, 234, 244, 0.1), transparent 38%),
    linear-gradient(180deg, transparent 0%, rgba(15, 24, 33, 0.62) 100%);
  z-index: -1;
}

/* Header keeps its original horizontal layout — brand on the left,
   nav cluster on the right, vertically centered. The footer has its
   own rule below (vertical: top row + foundation strip) since the
   two now diverge in structure. */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  /* Thinner header (2026-08-18): vertical padding 18px → 10px pairs with
     the smaller 56px medallion below so the bar reads as chrome, not a
     banner. */
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(19, 28, 38, 0.92), rgba(8, 13, 19, 0.92)),
    rgba(8, 13, 19, 0.84);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.site-footer {
  display: flex;
  flex-direction: column;
  /* C5 (2026-10-04): tightened — column gap 16px → 12px, outer padding
     18px/22px → 14px/20px. The footer was taller than its content needed;
     legal links are untouched (still all present below). */
  /* 2026-10-07: 12px/14px → 8px/10px vertical — footer read tall. */
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(19, 28, 38, 0.92), rgba(8, 13, 19, 0.92)),
    rgba(8, 13, 19, 0.84);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

/* Top row of the footer — the brand block and the link cluster form
   ONE bounded unit: both columns size to their content (brand capped
   at 460px) and the unit is centered in the card. No 1fr stretching
   and no space-between edge-spread — the old right-half 1fr zone
   centered the cluster inside a huge leftover area, which read as
   dead gaps around the columns (Garrett's C5 review, 2026-10-04,
   Fable 5.1). */
.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
  /* 2026-10-07: brand stays inline with the disclaimer (left); the
     links track now fills the remaining width so the cluster can
     center in the right half of the footer. */
  justify-content: start;
  align-items: flex-start;
  /* C5.1.1 (2026-10-04): 44px → 30px — brand→links gap moderated back
     into the 28–32px band. 2026-10-07: 30px → 24px with the footer
     tightening. */
  gap: 24px;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  /* The grid column on .site-footer__top sizes this; max-width just
     caps it on wide viewports. */
  max-width: 460px;
}

.site-footer__brand-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-footer__brand p {
  margin: 0;
  line-height: 1.35;
}

.site-footer__top > .footer-links {
  /* 2026-10-07: the track is 1fr now — the links row becomes a
     1fr-auto-1fr grid so RESOURCES (the auto middle track) sits exactly
     on the middle of the footer's right half, with Product and Legal
     flanking it at even 32px gaps (Garrett's 3/4-line spec). */
  min-width: 0;
  width: 100%;
}

@media (min-width: 641px) {
  .site-footer__top > .footer-links {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    column-gap: 32px;
    align-items: start;
  }

  .site-footer__top > .footer-links > .footer-col:first-child {
    justify-self: end;
  }

  .site-footer__top > .footer-links > .footer-col--legal {
    justify-self: start;
  }
}

/* Full-width foundation strip — copyright, trademark, and U.S.
   equities scope note. Separated from the top row by a thin border so
   the legal/scope statements read as a distinct "site-wide" block,
   not as a continuation of the brand column above. */
.site-footer__bottom {
  border-top: 1px solid var(--line);
  /* C5 (2026-10-04): 14px → 10px; 2026-10-07: 10px → 8px. */
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.site-footer__bottom .terminal-note {
  font-size: 0.82rem;
  margin: 0;
}

/* X (Twitter) and StockTwits links in the footer brand row — both sit inline
   right after the "HoundCreek Research" strong at the top-left of the footer
   (6px gap via .site-footer__brand-row) and share this class. Both are
   monochrome brand marks, so each glyph is pinned to X-brand white (#e7e9ea)
   regardless of the amber brand strong beside them, and shifts to accent-ice
   on hover. */
.footer-x-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: #e7e9ea;
  padding: 0 6px;
  border-radius: 6px;
  transition: color 160ms ease, background 160ms ease;
}

.footer-x-link:hover {
  color: var(--accent-ice);
  background: rgba(125, 234, 244, 0.06);
}

/* Disclosure statement between the link columns and the foundation
   strip. C5 review (2026-10-04): the "Scope & disclosure" label and its
   bordered tile are gone — the statement alone reads fine as plain text. */
.site-footer__disclosure {
  display: flex;
  align-items: baseline;
}

.site-footer__disclosure p {
  flex: 1 1 auto;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

/* Scope foundation line in the footer — applies the cyan→amber
   gradient sweep used by terminal-caption pills, but on plain text
   without the pill border/background. Keeps the scope statement
   visually distinct from the standard-weight copyright line above.
   width: fit-content prevents the gradient span from stretching
   across the full footer width (which would put empty gradient
   territory after the text). */
.site-footer__scope {
  background-image: linear-gradient(
    135deg,
    var(--accent) 0%,
    var(--accent) 25%,
    var(--amber) 50%,
    var(--accent) 75%,
    var(--accent) 100%
  );
  background-size: 350% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
  letter-spacing: 0.02em;
  width: fit-content;
}

/* Text-only sweep — animates background-position alone so the cyan
   amber gradient walks across the text without the box-shadow/border
   halo that caption-sweep-glow adds (those would render as an
   unwanted glow around the text box, since this is a plain <p>
   without a pill border). */
@keyframes scope-text-sweep {
  0%, 100% {
    background-position: 100% 50%;
  }
  50% {
    background-position: 0% 50%;
  }
}

/* Site-wide disclosure band — sits above the sticky header.
   Compliance + scope framing visible on every page (homepage, sample
   memos arriving from email, methodology, legal, terminal). Muted
   styling so it reads as informational, not promotional. */
.disclosure-bar {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 9px 18px;
  margin-bottom: 14px;
  background: rgba(11, 18, 25, 0.7);
  font-family: var(--font-mono), monospace;
  font-size: 0.72rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.disclosure-bar p {
  margin: 0;
  text-align: center;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.disclosure-bar__prompt {
  color: var(--accent);
  margin-right: 8px;
  font-weight: 700;
}

.disclosure-bar__condensed {
  display: none; /* mobile-only phrasing; the <=640px block swaps it in */
}

.site-header {
  position: sticky;
  top: 18px;
  z-index: 10;
  /* Tightened from 28px to 12px (v0.11.x) so the gap between the
     header and the first content section aligns with one cell of
     the 32px background grid. The H1's natural line-box overhang
     above the visible glyphs (~20px) supplies the rest. */
  margin-bottom: 12px;
  overflow: hidden;
}

.site-header::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(125, 234, 244, 0.06) 15%,
    rgba(125, 234, 244, 0.5) 50%,
    rgba(125, 234, 244, 0.06) 85%,
    transparent 100%
  );
  background-size: 200% 100%;
}

.site-footer {
  margin-top: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  /* No rounded-square chrome — the medallion floats on the page itself.
     The container exists only as a sizing wrapper + animation host; the
     brand-breathe animation produces a soft cyan drop-shadow halo that
     follows the medallion's circular silhouette. */
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand-mark-svg,
.brand-mark-image {
  width: 56px;
  height: 56px;
  display: block;
}

.brand-mark-image {
  border-radius: 999px;
  object-fit: cover;
  object-position: center;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.8rem;
}


.nav,
.footer-links,
.hero-actions,
.auth-cluster,
.status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* Hero CTAs that sit under the right-column terminal card. Each button
   stretches to fill the column width so the two CTAs read as a clean
   pair beneath the demo, rather than wrapping awkwardly at narrow
   breakpoints or floating left-aligned in a wide cell. */
.hero-actions--stacked {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin-top: 14px;
}
.hero-actions--stacked .button {
  width: 100%;
  justify-content: center;
}

/* The trial terms beside the buttons (2026-11-28, logged-out audit). */
.hero-actions__terms {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

/* Quiet tertiary link in an action row (e.g. the methodology footer's
   "Review Disclosures"): smaller, muted, vertically centered — a footnote,
   not a third button, so the primary + secondary actions carry the row. */
.hero-actions__quiet-link {
  font-size: 0.82rem;
  color: var(--text-dim, #8a949e);
  text-decoration: none;
  padding: 0 2px;
}
.hero-actions__quiet-link:hover {
  color: #7deaf4;
  text-decoration: underline;
}

.nav {
  justify-content: flex-end;
  gap: 6px;
}

/* Mobile nav toggle — hidden at desktop widths; the 640px block below
   swaps it in and collapses the link cluster behind it. */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(216, 236, 247, 0.22);
  border-radius: 12px;
  background: rgba(125, 234, 244, 0.05);
  color: var(--accent);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.nav a:not(.button) {
  color: var(--muted);
  font-size: 0.88rem;
  padding: 6px 10px;
  border-radius: 8px;
  transition: color 160ms ease, background 160ms ease;
}

.nav a:not(.button):hover,
.footer-links a:hover {
  color: var(--accent-ice);
  background: rgba(125, 234, 244, 0.06);
}

/* Two deliberate rows — site pages on top, legal-page links below
   (2026-07-17). Column direction overrides the shared flex-row rule
   above; each row wraps independently, right-aligned to match the
   footer's desktop alignment. */
.footer-links {
  flex-direction: column;
  align-items: flex-end;
  /* 2026-10-07: 4px → 2px with the footer tightening. */
  gap: 2px;
}

.footer-links__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.84rem;
  /* 2026-10-07: vertical padding dropped (1px → 0) + line-height pinned
     at 1.25 — the links between rows were 20px tall; ~17px keeps the
     columns dense without crowding (Garrett).
     2026-10-26: vertical padding back up to 4px — the ~17px links failed
     the WCAG 2.5.8 target-size audit (≥24px); 4px each side lands ~25px
     targets with zero horizontal shift, and the columns stay dense
     because the stacked links already carry row margins. */
  padding: 4px 6px;
  line-height: 1.25;
  border-radius: 6px;
  transition: color 160ms ease;
}

/* Grouped footer columns (Product / Resources / Legal) — overrides the
   old two-row column rule above for the new column layout. Gap
   tightened 24px → 10px (dense institutional, 2026-08-18). */
.footer-links {
  flex-direction: row;
  align-items: flex-start;
  /* C5.1.1 (2026-10-04): 44px → 28px. 2026-10-07: 28px → 32px — enough
     spacing between the three columns per Garrett. */
  gap: 32px;
  /* Keep the cluster on a single line so the max-content column in
     .site-footer__top sizes to the full row, not one column. */
  flex-wrap: nowrap;
}

.footer-col {
  display: flex;
  flex-direction: column;
  /* C5 review (2026-10-04): links center under their column title
     (no longer left-anchored off it). */
  align-items: center;
  /* 2026-10-07: 2px → 1px — links under the titles read tall. */
  gap: 1px;
}

.footer-col__label {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-col a {
  color: var(--ink);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--accent-ice);
}

.footer-col__grid {
  display: grid;
  grid-template-columns: repeat(2, auto);
  /* C5 (2026-10-04): column gap 15px → 12px (tightened with the footer). */
  column-gap: 12px;
  row-gap: 2px;
  align-items: start;
}

.footer-col__sub {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* 2026-10-07: 2px → 1px with the footer tightening. */
  gap: 1px;
}

/* Center the label over the full 2-col link grid (Legal only) —
   structural class, not :has() (2026-10-07), so the centering cannot
   drop in any browser/cache variant. The sub-columns are content-balanced
   in markup (Cookie preferences moved to the left column 2026-10-07), so
   the centered label reads over BOTH columns instead of drifting toward
   the wider one. */
.footer-col--legal .footer-col__label {
  width: 100%;
  text-align: center;
}

.page {
  display: grid;
  gap: 40px;
}

.hero,
.section,
.single-column,
.stack,
.faq-stack,
.note-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}

/* Top-level page sections want a slightly more generous gap between
   their heading block and the content grid below — at H2 sizes of
   ~51px, 22px reads visually tight against the eyebrow + body weight.
   Stacked cards (.stack) and FAQ stacks keep the tighter 22px since
   they're internal lists, not section breaks. */
.section {
  gap: 28px;
}

/* Compact terminal-shell cards (the "What you get" trio) tighten the
   internal stack from 22px to 16px. Each card is just caption pill +
   short H3 + ~5-line paragraph; at 22px the gaps read as wasteful
   negative space rather than visual hierarchy. 16px keeps caption
   and title visibly separate from each other and from the body
   while letting the card feel composed. Other compact cards
   (pricing, workflow steps, FAQ) don't use .stack — they have their
   own card-type layout classes — so this only touches the three
   "What you get" tiles. Full .terminal-shell cards (without
   --compact) keep 22px since they have more substantive content. */
.stack.terminal-shell--compact {
  gap: 16px;
}

/* Landing-page card-grid tiles (Stance + What you get) — apply the
   same internal tightening pattern as methodology panel-grid tiles
   (Dislocations, Valuation, AI Role panel, Quality): 10px gap with
   h3/p block margins zeroed, plus align-content: start so the
   shorter cards stop ballooning their rows to match the taller
   sibling's height. Scoped via `.card-grid >` so only direct children
   of a card-grid get this treatment — the JobStatusClient.js status
   cards (which use the same .card.stack.terminal-shell--compact
   combo but aren't inside a card-grid) keep the airier 16px rhythm. */
.card-grid > .card.stack.terminal-shell--compact {
  gap: 10px;
  align-content: start;
}
.card-grid > .card.stack.terminal-shell--compact h3,
.card-grid > .card.stack.terminal-shell--compact p {
  margin: 0;
}

/* Methodology page hero — Layout A (side-by-side).
   Text (eyebrow + H1 + intro) on the left, branded illustration on
   the right. Reads as "here's the thesis, here's the picture of it"
   and lets the visitor take both in at one fold. Below 900px the grid
   collapses to a single column and the image stacks under the text. */
.methodology-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 36px;
  align-items: center;
}

@media (max-width: 899px) {
  .methodology-hero {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.methodology-hero__copy {
  display: grid;
  gap: 12px;
}

.methodology-hero__copy .page-intro {
  margin-top: 4px;
}

.methodology-hero__figure {
  position: relative;
  margin: 0;
  /* Landing-style blend (mirrors .hero-art, 2026-10-01): the art's dark
     ground melts into the #091018 page — no border, no radius, no shadow,
     no overflow clip. Two intersected gradient masks feather the right and
     bottom edges (same recipe as the landing wolf hero); the scrim sits in
     a ::after overlay so it reads above the <img> (see next rule). The mask
     applies to the whole figure (img + halos + scrim). */
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 6%, #000 84%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 8%, #000 95%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0, #000 6%, #000 84%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 8%, #000 95%, transparent 100%);
  mask-composite: intersect;
}

.methodology-hero__figure::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(9, 16, 24, 0.5) 0%, rgba(9, 16, 24, 0.22) 30%, rgba(9, 16, 24, 0.05) 55%, rgba(9, 16, 24, 0) 70%),
    linear-gradient(180deg, rgba(9, 16, 24, 0.28) 0%, rgba(9, 16, 24, 0.06) 20%, rgba(9, 16, 24, 0) 36%);
}

.methodology-hero__figure img {
  display: block;
  width: 100%;
  height: auto;
}

/* Diamond halo overlays — small invisible elements positioned over the
   two diamond markers in the hero image. Each has a colored box-shadow
   that pulses with the same wave timing as its matching tagline. The
   diamonds in the PNG already glow on their own; these halos amplify
   the glow at peak rather than introducing a competing light source —
   alpha values are intentionally lower than the tagline shadows. */
.methodology-hero__diamond-halo {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
  pointer-events: none;
  z-index: 2;
  transform: translate(-50%, -50%);
}

.methodology-hero__diamond-halo--amber {
  top: 69.5%;
  left: 31.4%;
  animation: diamond-glow-amber 4.5s ease-in-out infinite;
}

.methodology-hero__diamond-halo--cyan {
  top: 69.6%;
  left: 49.3%;
  animation: diamond-glow-cyan 4.5s ease-in-out infinite 1.5s;
}

@media (prefers-reduced-motion: reduce) {
  .methodology-hero__diamond-halo {
    animation: none;
  }
}

@keyframes diamond-glow-amber {
  0%, 80%, 100% {
    box-shadow: 0 0 8px 2px rgba(245, 199, 127, 0.30);
  }
  30%, 55% {
    box-shadow:
      0 0 10px 3px rgba(255, 220, 160, 0.70),
      0 0 26px 8px rgba(245, 199, 127, 0.55),
      0 0 50px 14px rgba(245, 199, 127, 0.25);
  }
}

@keyframes diamond-glow-cyan {
  0%, 80%, 100% {
    box-shadow: 0 0 8px 2px rgba(125, 234, 244, 0.30);
  }
  30%, 55% {
    box-shadow:
      0 0 10px 3px rgba(190, 245, 252, 0.70),
      0 0 26px 8px rgba(125, 234, 244, 0.55),
      0 0 50px 14px rgba(125, 234, 244, 0.25);
  }
}

/* Methodology page — horizontal pipeline diagram showing the four
   engines (data ingestion -> valuation -> reasoning -> memo). Reads
   as a visual architectural overview rather than another set of cards.
   The cards are stepping stones; a faint cyan line runs in the gaps
   between them and a brighter pulse flows left-to-right along it, so
   the section feels like a creek with the four engines as stones in
   the current. Each card briefly highlights as the pulse arrives. */
.pipeline-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
  position: relative;
}

/* Electric-current SVG running through the gaps between cards. Three
   parallel wavy filaments (cyan, slightly offset and out-of-phase) plus
   a bright white-hot pulse that travels along the center filament's
   curve. The whole SVG sits behind the opaque cards (z-index 0) so the
   current is only visible in the gaps — same "stepping stones over a
   creek" logic, now with the creek rendered as electric current to
   match the medallion logo's flowing-stream aesthetic. */
.pipeline-flow__current {
  /* Confined to the card row — the current lives BEHIND the four engine
     cards and is only visible in the gaps between them (the cards read
     as stones in a creek; the current flows between). No page-side
     overhang: the SVG spans exactly the row width so nothing spills into
     the background or the section-rail column, and the page never gains
     a horizontal scrollbar. Height 160px gives the 7-strand bundle room
     to spread vertically — reads as a thick electrical cable. */
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  /* Dissolve the current under the first/last card instead of clipping
     at a hard edge — masked to transparent within ~8% of each end so it
     reads as light fading into the cards, not a cut wire (2026-07-17). */
  -webkit-mask-image: linear-gradient(
    to right, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(
    to right, transparent 0, #000 8%, #000 92%, transparent 100%);
  height: 160px;
  transform: translateY(-50%);
  z-index: 0;
  pointer-events: none;
  /* Cyan glow halo around the strokes — adds the "electric" feel that
     a flat stroke wouldn't have. Two drop-shadow filters stacked for a
     soft inner glow + wider outer halo. */
  filter:
    drop-shadow(0 0 4px rgba(125, 234, 244, 0.45))
    drop-shadow(0 0 12px rgba(125, 234, 244, 0.18));
  /* Allow strokes to render outside the SVG's natural box (some
     browsers clip filter output to the element's bounding rect). */
  overflow: visible;
}

/* Pulse animations — three pulses, three different cycle lengths
   (8s / 5.7s / 4.3s). Because none of those numbers share a common
   period within a useful viewing window, the relative phases of the
   three pulses continuously drift through every configuration. The
   bundle never resyncs to a recognizable "the pattern just repeated"
   moment — the eye reads it as ongoing electrical flow. */
.pipeline-flow__current-pulse--main {
  animation: pipeline-current-flow 8s linear infinite;
}

.pipeline-flow__current-pulse--secondary {
  animation: pipeline-current-flow 5.7s linear infinite;
}

.pipeline-flow__current-pulse--tertiary {
  animation: pipeline-current-flow 4.3s linear infinite;
}

.pipeline-flow__current-pulse--quaternary {
  /* 4th pulse — 6.9s cycle */
  animation: pipeline-current-flow 6.9s linear infinite;
}

.pipeline-flow__current-pulse--quinary {
  /* 5th pulse — 3.5s cycle. With 8s / 5.7s / 4.3s / 6.9s / 3.5s,
     none of the five pulse cycles align on a useful period. */
  animation: pipeline-current-flow 3.5s linear infinite;
}

@keyframes pipeline-current-flow {
  0% {
    stroke-dashoffset: 100;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

/* Filament flicker — aggressive opacity dips simulating unstable
   electrical current. Two filaments flicker (upper + lower) on
   different cycles, so the bundle never goes fully steady. Min
   opacity values are deliberately low (down to 0.15) so the dips
   read as real interruptions, not soft pulses. */
.pipeline-flow__current-flicker {
  animation: pipeline-current-flicker 3.1s ease-in-out infinite;
}

.pipeline-flow__current-flicker--lower {
  animation: pipeline-current-flicker-alt 2.6s ease-in-out infinite;
}

/* Upper filament flicker — five dip events at irregular points in
   the cycle, with one near-blackout at 84% (down to 0.15) for an
   "almost cut out" moment. */
@keyframes pipeline-current-flicker {
  0%, 100% { opacity: 1; }
  6%       { opacity: 0.25; }
  9%       { opacity: 1; }
  17%      { opacity: 0.55; }
  19%      { opacity: 1; }
  41%      { opacity: 0.35; }
  43%      { opacity: 1; }
  63%      { opacity: 0.7; }
  65%      { opacity: 1; }
  83%      { opacity: 0.15; }
  86%      { opacity: 1; }
}

/* Lower filament flicker — different pattern, different timings.
   Includes one fast-fast double-blink at 50-54% (the eye reads this
   as a quick arc/spark rather than a smooth dim). */
@keyframes pipeline-current-flicker-alt {
  0%, 100% { opacity: 1; }
  12%      { opacity: 0.40; }
  14%      { opacity: 1; }
  29%      { opacity: 0.20; }
  31%      { opacity: 1; }
  50%      { opacity: 0.30; }
  52%      { opacity: 0.85; }
  54%      { opacity: 0.30; }
  56%      { opacity: 1; }
  73%      { opacity: 0.55; }
  75%      { opacity: 1; }
  91%      { opacity: 0.40; }
  93%      { opacity: 1; }
}

.pipeline-step {
  position: relative;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 0%, rgba(125, 234, 244, 0.08), transparent 38%),
    linear-gradient(180deg, rgba(19, 28, 38, 0.7), rgba(8, 13, 19, 0.7));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  z-index: 1;
  /* Cards stay static — the "current" lives in the gaps between them
     (the filaments + pulses below). The cards read as stones; we don't
     want them to glow too. */
}

/* Spark bursts — brief perpendicular flashes simulating electrical
   arcing from the filament bundle. Three sparks with different cycle
   lengths and different trigger points in their cycles. Each spark
   stays at opacity 0 for ~99% of its cycle, then pops to full
   opacity for a single keyframe (~10-20ms apparent) before snapping
   back to 0. With non-aligned cycles (5.3s / 7.1s / 6.5s), sparks
   visually appear at unpredictable moments. */
.pipeline-flow__spark {
  opacity: 0;
  /* Soft cyan halo around the spark line so each flash reads as
     "electrical discharge" rather than "thin line briefly visible". */
  filter: drop-shadow(0 0 3px rgba(220, 250, 255, 0.95))
          drop-shadow(0 0 8px rgba(125, 234, 244, 0.6));
}

/* Faster cycles + more pops per cycle = noticeably sparkier flow.
   Three different cycle lengths (3.7s / 4.3s / 4.9s) keep the sparks
   from ever resyncing. Each spark now fires 3-4 times per cycle, with
   some double-flickers ("almost-grounded arc") and triple-flickers
   ("stuttering discharge") mixed in for that unstable-electrical
   character. Overall spark rate goes from ~1/second to ~2-3/second. */
.pipeline-flow__spark--a {
  animation: pipeline-spark-burst-a 3.7s linear infinite;
}

.pipeline-flow__spark--b {
  animation: pipeline-spark-burst-b 4.3s linear infinite;
}

.pipeline-flow__spark--c {
  animation: pipeline-spark-burst-c 4.9s linear infinite;
}

.pipeline-flow__spark--d {
  animation: pipeline-spark-burst-d 5.6s linear infinite;
}

/* Spark A — 3 pops + one double-flicker. Irregular spacing. */
@keyframes pipeline-spark-burst-a {
  0%, 12%, 15%, 16.5%, 38%, 40%, 71%, 73%, 100% { opacity: 0; }
  13%   { opacity: 0.95; }
  15.8% { opacity: 0.70; }  /* tail of double-flicker */
  39%   { opacity: 1; }
  72%   { opacity: 0.85; }
}

/* Spark B — 4 pops, evenly-ish distributed. Includes a triple-flicker
   at 56-58% that reads as a stuttering arc. */
@keyframes pipeline-spark-burst-b {
  0%, 17%, 19%, 41%, 43%, 56%, 58.5%, 60.5%, 82%, 84%, 100% { opacity: 0; }
  18%   { opacity: 1; }
  42%   { opacity: 0.9; }
  57%   { opacity: 0.95; }
  59.5% { opacity: 0.6; }   /* mid of triple-flicker */
  83%   { opacity: 0.85; }
}

/* Spark C — 3 pops + one double-flicker. Different positions in cycle
   than the others so the bundle never reaches a quiet moment. */
@keyframes pipeline-spark-burst-c {
  0%, 8%, 10%, 32%, 34%, 35.5%, 65%, 67%, 100% { opacity: 0; }
  9%    { opacity: 0.95; }
  33%   { opacity: 1; }
  34.8% { opacity: 0.65; }  /* tail of double-flicker */
  66%   { opacity: 0.85; }
}

/* Spark D — 4th spark, fires at different cycle positions than the
   others. 3 pops, one of them a delayed double-flash. */
@keyframes pipeline-spark-burst-d {
  0%, 24%, 26%, 51%, 53%, 71%, 73.5%, 74.5%, 100% { opacity: 0; }
  25%   { opacity: 0.9; }
  52%   { opacity: 1; }
  72%   { opacity: 0.95; }
  74%   { opacity: 0.6; }  /* tail of double-flicker */
}

/* Reduced-motion users see a static pipeline. The traveling pulses,
   flicker, and spark bursts are all purely decorative; the static
   filaments keep the cards visually linked even with motion disabled. */
@media (prefers-reduced-motion: reduce) {
  .pipeline-flow__current-pulse,
  .pipeline-flow__current-flicker,
  .pipeline-flow__spark {
    animation: none;
    opacity: 0;
  }
}

/* Pipeline step header — uses .terminal-caption pill styling but
   bumps font/spacing down because the combined "01 + title" text is
   longer than most other terminal-captions (up to "02 VALUATION
   MODELING" / "03 REASONING INFERENCE" at 21-22 chars). Tighter font
   + spacing keeps text on one line at the universal 168px width with
   visible breathing room from the pill borders. */
.pipeline-step__header {
  margin: 0;
  font-family: var(--font-mono), monospace;
  line-height: 1;
  font-weight: 600;
}

/* Compound selector (.pipeline-step__header.terminal-caption) bumps
   specificity above the base .terminal-caption rule (0.72rem, 0 10px)
   so font-size and padding both win the cascade. Tighter font + wider
   padding keep longer titles like "03 REASONING INFERENCE" (22 chars)
   on one line at the universal 168px pill width with visible breathing
   room from the borders. margin-bottom lives here (not on the plain
   .pipeline-step__header rule) because h3.terminal-caption { margin: 0 }
   at specificity 0-1-1 out-specifies that 0-1-0 rule, so the title-to-body
   gap would otherwise render as 0px (title-to-body gap 0px -> 24px,
   2026-10-04 C5 review). */
.pipeline-step__header.terminal-caption {
  /* 0.56rem rendered ~9px — smaller than the card body it titles. Legible
     size + auto width (uniform 168px minimum, growing for the two long
     slugs "02 Valuation Modeling"/"03 Reasoning Inference" that overflowed
     the fixed capsule). 2026-07-13 design review. */
  font-size: 0.68rem;
  width: auto;
  min-width: 10.5rem;
  white-space: nowrap;
  padding: 0 14px;
  margin-bottom: 24px;
}

/* Long-slug modifier — drop font + tighten letter-spacing so longer
   pill slugs (currently "temporary-vs-structural" at 23 chars) fit
   the universal 168px pill width without overflowing. Same treatment
   pattern as the pipeline-step header pills. Compound selector bumps
   specificity above the base .terminal-caption rule. */
.terminal-caption.terminal-caption--long {
  font-size: 0.62rem;
  letter-spacing: 0.04em;
}

/* Title-pill modifier — used on the legal page where each section's
   H2 lives inside the glowing pill itself (no separate H2 below).
   Auto-width overrides the universal 168px so the pill grows to fit
   the section title naturally, with a taller box and larger font for
   readable section-header weight. The cyan/amber sweep and glow from
   the base .terminal-caption rule still apply. */
.terminal-caption.terminal-caption--title {
  width: auto;
  max-width: 100%;
  height: 2.25rem;
  padding: 0 18px;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  margin: 0;
}

.pipeline-step__index {
  /* Color ignored at runtime — terminal-caption uses
     background-clip:text so the whole pill text gets the cyan→amber
     sweep gradient regardless of per-span color values. */
  font-weight: 500;
  letter-spacing: 0.08em;
}

.pipeline-step__title {
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Staggered animation-delays — the four pills sweep on the same
   14s cycle but offset by 3.5s each, so a quarter of the cycle
   separates each pill. The amber peak walks across the four
   headers left-to-right like a slow tide, matching the flow
   direction of the electric current below. */
.pipeline-flow > .pipeline-step:nth-child(1) .pipeline-step__header { animation-delay: 0s; }
.pipeline-flow > .pipeline-step:nth-child(2) .pipeline-step__header { animation-delay: 3.5s; }
.pipeline-flow > .pipeline-step:nth-child(3) .pipeline-step__header { animation-delay: 7s; }
.pipeline-flow > .pipeline-step:nth-child(4) .pipeline-step__header { animation-delay: 10.5s; }

.pipeline-step p {
  font-size: 0.86rem;
  line-height: 1.55;
  margin: 0;
  color: rgba(219, 230, 239, 0.78);
}

/* Methodology panel cards (dislocations + valuation) — tighten the
   stack's default 22px grid gap and zero the h3/p block margins so
   pill → heading → body → list reads as one tight block instead of
   four loosely-spaced elements. align-content:start prevents grid
   from stretching the rows to fill the card when its sibling card
   is taller — without this the shorter card's pill/h3 rows balloon
   to absorb the extra height, creating phantom gaps. With start,
   any spare height lands at the card bottom. Scoped to specific
   methodology section IDs so other .card.stack.terminal-shell cards
   site-wide keep their normal airy rhythm. The AI Fair-Value section's
   lone evidence-gated card was missing from both lists and so fell back
   to the generic .stack rhythm — 22px/14px gap with un-zeroed h3/p
   margins, i.e. child gaps of 32/46/38px against every sibling card's
   10/10/10px — so it is added here alongside the other full-width lone
   card (#ai > .card.stack). */
#dislocations .panel-grid > .card.stack,
#valuation .panel-grid > .card.stack,
#ai > .card.stack,
#ai .panel-grid > .card.stack,
#ai-fair-value > .card.stack,
#quality .panel-grid > .card.stack {
  gap: 10px;
  align-content: start;
}
#dislocations .panel-grid > .card.stack h3,
#dislocations .panel-grid > .card.stack p,
#valuation .panel-grid > .card.stack h3,
#valuation .panel-grid > .card.stack p,
#ai > .card.stack h3,
#ai > .card.stack p,
#ai .panel-grid > .card.stack h3,
#ai .panel-grid > .card.stack p,
#ai-fair-value > .card.stack h3,
#ai-fair-value > .card.stack p,
#quality .panel-grid > .card.stack h3,
#quality .panel-grid > .card.stack p {
  margin: 0;
}

/* Garrett C5 methodology review 2026-10-04: the valuation panel-grid's two
   cards are badly uneven — the fair-value-distribution card carries an extra
   .terminal-note paragraph and runs ~2x the height of the reverse-dcf card,
   so side-by-side leaves a dead whitespace block under the shorter one, and
   trimming the copy would cost real content. Stack them instead: one full-
   width column at every width. Scoped to #valuation on purpose — the
   dislocations panel-grid is near-balanced (617px vs 595px natural) and keeps
   its two-up desktop layout, so the shared .panel-grid rule stays untouched.
   The ID selector (1,1,0) outranks the max-width:920px `.panel-grid` (0,1,0)
   override, so the single column holds on mobile too. Row gap 28px is applied
   above 920px only — there valuation is the lone stacked panel-grid and needs
   the extra vertical separation, while below 920px every panel-grid stacks and
   valuation inherits the shared 24px/16px rhythm so it matches dislocations. */
#valuation .panel-grid {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 921px) {
  #valuation .panel-grid {
    gap: 28px;
  }
}

@media (max-width: 899px) {
  .pipeline-flow {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  /* On narrow viewports the row collapses to a column; the horizontal
     filaments + pulse don't apply. Hide the SVG so it doesn't render
     as a stray horizontal stripe across the column stack. */
  .pipeline-flow__current {
    display: none;
  }
}

/* Showcase cards (the lone .stack card inside .section-showcase)
   tighten their internal stack from 22px to 16px — same logic as
   the .stack.terminal-shell--compact rule above. The showcase card
   has more substantive content than the "What you get" tiles
   (status row + title + summary + price grid + CTA), but at 22px
   the gaps feel airy enough that the card reads as a stack of
   loose elements rather than one composed unit. 16px keeps the
   internal hierarchy clear while giving the card visual cohesion.
   Scoped via parent selector so other .stack.terminal-shell cards
   site-wide (about panel, sample memo sidebar, etc.) keep 22px. */
.section-showcase > .card.stack {
  gap: 16px;
}

.hero {
  position: relative;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.95fr);
  align-items: start;
  padding: 24px 0 8px;
}

.hero--wide {
  grid-template-columns: minmax(0, 1.15fr) minmax(380px, 0.95fr);
}

/* ── Landing hero: wolf concept-art backdrop ─────────────────────── */
/* Wolf art FITS Garrett's red-square zone: an aspect-locked 16:9 box in the
   lower-left of the hero, BELOW the headline + body copy (top 41%) and LEFT
   of the sample card (52% wide, right edge ~55%), contained in the left
   half's lower 2/3. The full image is visible (box matches the 16:9 art, so
   cover crops nothing) and the story survives the blend: a soft cyan glow
   floor lifts the bell-curve arch in the sky, a small amber glow seats the
   creek diamond (at ~76.4% / 43.5%), and the right-edge feather (mask
   88→100%) still cleans the card zone. The wider/taller box makes the art's
   footprint even with the sample card's CTA row: the wolf's lower edge now
   lands beside the "Read a Sample Memo" button. The light left-weighted
   scrim keeps the composition seated without eating the curve's luminance. */
.hero > *:not(.hero-art) { position: relative; z-index: 1; }
.hero-art {
  position: absolute;
  /* 2026-11-25: +40px so the art starts below the (longer) hero body copy. */
  top: calc(41% + 40px);
  left: 20px;
  width: 52%;
  height: auto;
  aspect-ratio: 16 / 9;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(9, 16, 24, 0.5) 0%, rgba(9, 16, 24, 0.22) 30%, rgba(9, 16, 24, 0.05) 55%, rgba(9, 16, 24, 0) 70%),
    linear-gradient(180deg, rgba(9, 16, 24, 0.28) 0%, rgba(9, 16, 24, 0.06) 20%, rgba(9, 16, 24, 0) 36%),
    radial-gradient(circle 190px at 33% 40%, rgba(168, 222, 255, 0.2) 0%, rgba(168, 222, 255, 0.07) 55%, rgba(168, 222, 255, 0) 100%),
    radial-gradient(circle 58px at 76.4% 43.5%, rgba(255, 176, 72, 0.3) 0%, rgba(255, 176, 72, 0.1) 55%, rgba(255, 176, 72, 0) 100%),
    url(/landing-hero-wolf.webp) center / cover no-repeat;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 6%, #000 88%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 8%, #000 95%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0, #000 6%, #000 88%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 8%, #000 95%, transparent 100%);
  mask-composite: intersect;
}

.hero-copy h1,
.section-heading h2,
.page-title,
.card h2,
.card h3,
.markdown h1,
.markdown h2,
.markdown h3 {
  font-family: var(--font-serif), serif;
  line-height: 1.03;
  letter-spacing: -0.03em;
}

/* Hound silhouette watermark — viewport-fixed brand mark sitting
   behind all content. Uses the same emblem PNG as the header
   BrandMark (transparent-background variant of the medallion, so
   the corners don't render as a dark square against the page).
   position: fixed locks it to the viewport center so it reads as
   a watermark rather than scrolling with the hero. Sized in vmin
   so it scales naturally with the smaller viewport dimension.
   z-index: -1 keeps it above the html gradient but below every card's
   opaque background — so the watermark only shows through negative
   space. Pointer-events disabled so it never interferes with text
   selection or links. */
body::before {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  width: clamp(420px, 55vmin, 720px);
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  background-image: url("/houndcreek-emblem-360.webp");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.09;
  filter: blur(1.5px) grayscale(0.6);
  z-index: -1;
  pointer-events: none;
}

.hero-copy h1 {
  margin: 0;
  /* line-height of 1.03 (inherited above) is tight for design impact, but
     serif descenders on `p` / `y` / `g` extend ~18px below baseline and
     bump into the body copy below. Adding 0.15em padding-bottom gives
     last-line descenders breathing room without touching the shared
     line-height rule (which other headings depend on). */
  padding-bottom: 0.15em;
  font-size: clamp(3rem, 7vw, 5.9rem);
  max-width: 17ch;
  background: linear-gradient(
    135deg,
    var(--ink) 0%,
    var(--ink) 40%,
    var(--accent) 50%,
    var(--ink) 60%,
    var(--ink) 100%
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: heading-shimmer 8s ease-in-out infinite;
}

.section-heading h2,
.page-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

/* Heading + X link on one row (Company Feed). The glyph inherits the
   row's text color via currentColor; hover shifts to accent-ice to
   match the site's muted-accent link treatment. */
.page-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-title-x-link {
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  padding: 2px;
  transition: color 160ms ease, opacity 160ms ease, background 160ms ease;
}

.page-title-x-link:hover {
  color: var(--accent-ice);
}

/* In-terminal Company Feed heading + X and StockTwits links — same treatment
   as the public /articles page-title row, with a tighter gap for the smaller
   board-title. */
.board-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.board-title-x-link {
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  padding: 2px;
  transition: color 160ms ease, opacity 160ms ease, background 160ms ease;
}

.board-title-x-link:hover {
  color: var(--accent-ice);
}

/* Explicit panel-title scale.
   Without these rules, .card h2 / .card h3 fell through to the
   browser's user-agent stylesheet (h2 ≈ 1.5em, h3 ≈ 1.17em on a
   16px monospace base). That happened to look approximately right
   on desktop but locked us out of the design system: any base
   font-size shift would silently re-rank the hierarchy. The fixed
   sizes here match what was already rendering visually so this is
   a no-op on screen, but the typography ladder is now explicit and
   tunable. AccountSettings still inline-overrides to a tighter
   1.05rem when it wants a sub-panel-title — those overrides keep
   working because they cascade later. */
.card h2 {
  font-size: 1.5rem;
}

.card h3 {
  font-size: 1.15rem;
}

/* Memo viewer + sample renderer use react-markdown which emits real
   h1 nodes. The existing rules covered h2/h3 size but left h1
   browser-default (≈ 2em / 32px), which in serif looked nearly
   identical to a card h2 — flat hierarchy. Bump h1 above h2 so the
   memo cover heading reads as the dominant title. */
.markdown h1 {
  font-size: clamp(1.85rem, 2.4vw, 2.5rem);
}

.section-heading {
  /* position:relative anchors the absolutely-positioned ::before
     accent line above the eyebrow. display:grid + gap gives the
     eyebrow breathing room from the H2 below — without the gap,
     the new amber-pulse halo on the eyebrow bumps against the H2
     ascenders. 12px is enough to separate them while staying
     visually tight as a grouped header. */
  position: relative;
  display: grid;
  gap: 12px;
}

/* API Keys hero art — mirrors the LANDING page's .hero-art treatment
   exactly (2026-10, Garrett: "fade the image edges like the landing page
   has on its top image"): an absolutely-positioned art element sized to
   the right space (no layout impact — the words never move), with the
   same two-axis feathered mask + page-color scrim overlays so the edges
   dissolve into the background. */
.api-keys-hero {
  /* keeps the art behind the content */
  isolation: isolate;
}
.api-keys-hero > *:not(.api-keys-hero__art) {
  position: relative;
  z-index: 1;
}
.api-keys-hero__art {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 48%;
  aspect-ratio: 16 / 9;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(9, 16, 24, 0.5) 0%, rgba(9, 16, 24, 0.22) 30%, rgba(9, 16, 24, 0.05) 55%, rgba(9, 16, 24, 0) 70%),
    linear-gradient(180deg, rgba(9, 16, 24, 0.28) 0%, rgba(9, 16, 24, 0.06) 20%, rgba(9, 16, 24, 0) 36%),
    url(/api-keys-hound.webp) center / cover no-repeat;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 6%, #000 88%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 8%, #000 95%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0, #000 6%, #000 88%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 8%, #000 95%, transparent 100%);
  mask-composite: intersect;
}

/* Previously rendered a small cyan accent bar 17px above every
   section-heading. On most pages it sat hidden behind the eyebrow
   pill, but on top-of-page headings (legal page) it floated alone
   and read as a stray artifact. Removed site-wide — the eyebrow
   pills, gradient H1s, and terminal-shell cards already carry the
   cyan accent language. */

/* Tight section variant: used when a section is just a single horizontal
   strip (no heading, no eyebrow) and shouldn't carry the standard
   between-section vertical gap. The hero-followup signal strip uses
   this so it sits visually adjacent to the hero rather than reading
   as its own narrative section. */
.section.section--tight {
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 8px;
}

.hero-body,
.page-intro {
  max-width: 66ch;
  font-size: 1.05rem;
}

/* Garrett C5 methodology review: the Quality section intro's two body
   paragraphs ("Four disciplines gate every memo..." / "What the gate does
   not promise...") read as one wall of text. Their separation was purely
   incidental — the UA default 1em block margins (16.8px each) plus the
   .section-heading grid gap (12px) = 45.6px, with nothing in this file
   setting it. 1.75rem takes the pair to 56.8px, ~4x the 13-16px leading
   inside a paragraph, so the two land as two blocks. 1.75rem = 28px, the
   page's existing section-rhythm unit (.section / .anchor-section gap).
   Exactly two blocks site-wide match this selector — the #inputs and
   #quality section intros on /methodology — and both get it on purpose,
   since the point of the change is that the two stay consistent. */
.section-heading .page-intro + .page-intro {
  margin-top: 1.75rem;
}

.eyebrow,
.pill,
.terminal-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  /* Universal pill — every .terminal-caption renders at exactly
     168px (10.5rem) wide, single line. Font / letter-spacing /
     padding tuned so the longest pill text on the site
     ("RESEARCH REASONING" at 18 chars) fits comfortably without
     wrapping. The Terminal nav button uses .button--accent
     (different class), so this rule doesn't affect it. */
  width: 10.5rem;
  height: 1.75rem;
  padding: 0 10px;
  box-sizing: border-box;
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid rgba(169, 205, 224, 0.18);
  background: rgba(125, 234, 244, 0.07);
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Long-eyebrow overflow fix — C5.1 methodology review, 2026-10-05.
   The shared pill rule above pins every .eyebrow to a fixed 168px capsule with
   white-space:nowrap, so the section eyebrow "AI Fair-Value Adjustments" (190.1px
   of text against 148px of inner space) spilled 42.1px past its own bubble at both
   1440px and 375px. Shrink-to-fit the bubble to its caption instead of pinning it,
   and hold the old 168px as a MINIMUM so every short caption ("FAQ", "Pipeline",
   "Dislocations" — all <= 91.3px of text) still renders at exactly the same 168x28
   capsule it did before. Only captions that genuinely do not fit grow their bubble.

   width:fit-content, NOT width:auto: .eyebrow is display:flex and sits as a grid
   item in .section-heading, so auto would stretch the pill across the full section
   column instead of shrink-wrapping the caption.

   The height/white-space relaxation is a safety net for narrower containers and
   future longer captions: min-height keeps the 28px capsule, and no caption on the
   site wraps at 1440px or 375px today — "AI Fair-Value Adjustments" lands on one
   line in a 218px bubble. */
.eyebrow {
  width: fit-content;
  min-width: 10.5rem;
  max-width: 100%;
  height: auto;
  min-height: 1.75rem;
  padding: 4px 14px;
  white-space: normal;
  line-height: 1.25;
}

/* P3 FE-55: the caption pill is also used as a real heading in places (the
   /support contact channels, the terminal header). The UA's h1-h6 margin and
   bold weight would break the 168px capsule, so pin them here rather than
   re-inlining `style={{ margin: 0, fontWeight: 500 }}` at every call site. */
h1.terminal-caption,
h2.terminal-caption,
h3.terminal-caption,
h4.terminal-caption {
  margin: 0;
  font-weight: 500;
}

/* Caption pills get a hybrid "warm pulse" treatment: an amber band
   sweeps through the cyan text via background-clip: text while the
   border and box-shadow simultaneously warm to amber and back over
   a 14s cycle. Two layered backgrounds (the text-clipped amber sweep
   and the padding-box-clipped cyan pill) coexist via background-clip
   list. The same keyframes drive .button--accent below, so primary
   CTAs share the same rhythm with the captions — a unified "take
   action" visual language. The 14s cycle is intentionally slower
   than the H1's 8s shimmer so the page has multiple breathing rates
   instead of one synchronized pulse. */
.terminal-caption {
  background-color: transparent;
  background-image:
    linear-gradient(
      135deg,
      var(--accent) 0%,
      var(--accent) 25%,
      var(--amber) 50%,
      var(--accent) 75%,
      var(--accent) 100%
    ),
    linear-gradient(180deg, rgba(125, 234, 244, 0.18), rgba(87, 171, 197, 0.14));
  background-clip: text, padding-box;
  -webkit-background-clip: text, padding-box;
  background-size: 350% 100%, 100% 100%;
  -webkit-text-fill-color: transparent;
  border-color: rgba(125, 234, 244, 0.45);
  font-weight: 600;
  box-shadow: 0 0 16px rgba(125, 234, 244, 0.10), 0 0 4px rgba(125, 234, 244, 0.06);
}

/* Amber view pill — the terminal-caption pill family in solid brand
   amber, used for the sample-card investment view. Overrides the cyan
   sweep (background-image/text-fill) with a flat amber fill + border +
   glow, the same tone language as status-badge[data-tone="running"].
   width: auto keeps the pill compact beside the company name (view
   words vary in length, unlike the fixed 168px ticker pills) so it
   stays on one row with the title at 375px. */
.terminal-caption.terminal-caption--amber {
  background-image: none;
  background-color: rgba(245, 199, 127, 0.08);
  -webkit-text-fill-color: currentColor;
  color: var(--amber);
  border-color: rgba(245, 199, 127, 0.45);
  box-shadow: 0 0 12px rgba(245, 199, 127, 0.14);
  width: auto;
  min-width: 0;
  padding: 0 12px;
}

/* Sample-card hero ticker pill — auto-width so the ticker bubble + the
   delivered badge sit SIDE BY SIDE on the status row. The base
   .terminal-caption pill is a fixed 168px (10.5rem); a 3-char ticker at
   168px plus the ~203px delivered badge totaled ~383px, which overflowed
   the card's 293-351px content row and let .status-row flex-wrap push the
   badge onto its own line (stacked). Content-sized pill (same technique
   as the --amber view pill) keeps both bubbles adjacent at every
   viewport; order stays TICKER first, delivered second (C5.1 flip). */
.terminal-caption.terminal-caption--ticker {
  width: auto;
  min-width: 0;
  padding: 0 12px;
}

/* Samples-grid delivered badge — compact (0.84rem/8px-12px -> 0.78rem/7px-10px)
   so the ticker pill + delivered badge stay side by side even in the
   3-column band (cards ~231-316px wide, content rows ~181-268px). Scoped to
   the samples grid only; the shared .status-badge used by the dashboard
   (JobStatusClient) keeps its original size. white-space: nowrap keeps the
   "delivered · date" text on one line inside the pill. */
.card-grid--samples .status-badge {
  font-size: 0.78rem;
  padding: 7px 10px;
  white-space: nowrap;
}

/* Sample-card title row — company name left, amber view pill right,
   below the status row (ticker pill). flex-wrap lets the pill move to
   its own line at the tightest widths instead of colliding. */
.sample-card__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.card,
.terminal-shell {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 0%, rgba(125, 234, 244, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(18, 28, 39, 0.96), rgba(7, 11, 17, 0.98)),
    var(--surface);
  box-shadow: var(--shadow);
  transition: border-color 300ms ease, box-shadow 300ms ease, transform 300ms ease;
}

.card-grid .card:hover,
.panel-grid .card:hover,
.faq-stack .card:hover {
  border-color: rgba(125, 234, 244, 0.28);
  box-shadow:
    0 0 24px rgba(125, 234, 244, 0.06),
    0 30px 90px rgba(0, 0, 0, 0.46);
  transform: translateY(-2px);
}

/* Stance cards are statements, not clickable affordances — suppress the
   shared card-grid hover lift and keep a flat contained surface. */
.card-grid > .stance-card {
  align-items: stretch;
}

.card-grid .stance-card:hover {
  transform: none;
  border-color: var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

/* Stance pillar grid (identity cards) — enforce equal card heights at
   every viewport width: align-items: stretch makes the 3-across row
   share the tallest card's height (explicit where the grid default is
   relied on), and grid-auto-rows: 1fr extends the same guarantee to
   wrapped/mobile layouts (2+1 wrap band and the <=640px single-column
   stack) so every card matches the tallest sibling. Card content stays
   top-aligned via the compact-tile align-content rule above. */
.card-grid--stance {
  align-items: stretch;
  grid-auto-rows: 1fr;
}

a.card:focus-visible,
.card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.terminal-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(125, 234, 244, 0.015) 2px,
      rgba(125, 234, 244, 0.015) 4px
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.025) 0%,
      rgba(255, 255, 255, 0) 18%,
      rgba(93, 168, 201, 0.05) 100%
    );
}

.terminal-shell--compact {
  padding-top: 20px;
}

.hero-card {
  /* `position: sticky` removed in v0.11.16. With the CTAs now stacked
     directly under the card in the right column, sticky behavior caused
     the buttons to scroll up behind the card on scroll. The 2-column
     hero is now roughly height-balanced (left = H1+body, right = card+
     CTAs) so sticky behavior also provided less value than before. */
  background:
    radial-gradient(circle at 50% 0%, rgba(125, 234, 244, 0.14), transparent 32%),
    linear-gradient(180deg, rgba(16, 26, 36, 0.98), rgba(7, 11, 17, 0.98)),
    var(--surface);
}

/* The hero card is not a .stack (grid gap), so the summary note needs its
   own separation from the stat grid — matches the showcase card's rhythm. */
.hero-card .terminal-note {
  margin-top: 14px;
}

@media (min-width: 921px) {
  /* landing hero + ACN sample card tightening (Garrett desktop review 2026-10-01) */
  .hero { padding: 18px 0 8px; }
  .hero-stack { gap: 14px; }
  .hero-copy h1 {
    font-size: clamp(2.6rem, 4.4vw, 4rem);
    max-width: 24ch;
    padding-bottom: 0.1em;
  }
  .hero-copy .hero-body { margin: 6px 0 0; }
  .hero-title__rest { display: inline-block; }
  .hero-card { padding: 20px; }
  .hero-card .terminal-lines { gap: 6px; margin: 6px 0 4px; }
  .hero-card .terminal-grid { gap: 10px; max-width: 320px; margin-inline: auto; }
  .hero-card .terminal-note { margin-top: 10px; }
  .hero-stack .hero-actions--stacked { margin-top: 12px; }
}

.hero-stack {
  display: grid;
  gap: 18px;
}

.terminal-lines,
.metric-grid,
.card-grid,
.terminal-grid {
  display: grid;
  gap: 14px;
}

.terminal-lines {
  margin: 8px 0 4px;
}

.terminal-line {
  display: flex;
  gap: 12px;
  color: var(--ink);
  align-items: flex-start;
  line-height: 1.55;
  /* Command previews like "auth.login --email very.long.address@example.com"
     are intentionally long and unbroken. Allow them to wrap inside the
     terminal pane on narrow viewports rather than overflow the card. */
  flex-wrap: wrap;
  word-break: break-word;
}

.terminal-line--muted {
  color: var(--muted);
}

/* Landing hero terminal status line (Garrett mobile review 2026-10-01):
   the stage chain must read as one continuous line — never wraps. The
   text span ellipsizes when it outgrows the card; the cursor sits
   outside the clipping span so it stays visible at the end of the
   line. */
.terminal-line--status {
  white-space: nowrap;
  flex-wrap: nowrap;
  min-width: 0;
}
.terminal-line--status .terminal-prompt,
.terminal-line--status .terminal-cursor {
  flex: none;
}
.terminal-line--status-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.terminal-prompt {
  min-width: 14px;
  color: var(--accent);
  text-shadow: 0 0 8px rgba(125, 234, 244, 0.4);
}

/* Amber-colored inline terminal text. Echoes the AUTH SETUP PENDING
   pill color (--amber) so demo terminal lines that represent a user-
   action slot ($ /username, etc.) visually rhyme with the unauth nav
   badge — a quiet hint that "this is where you'll log in" without
   adding extra copy. */
.terminal-text--amber {
  color: var(--amber);
}

.terminal-grid,
.metric-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric-grid span,
.metric-table span,
.terminal-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.metric-grid strong,
.metric-table strong,
.terminal-grid strong {
  font-size: 1.08rem;
  color: var(--ink);
}

.terminal-note {
  margin: 0;
  color: var(--muted);
}

.pill {
  color: var(--amber);
  background: rgba(255, 204, 122, 0.08);
  border-color: rgba(255, 204, 122, 0.22);
}

.terminal-mini {
  color: var(--muted);
  font-size: 0.88rem;
}

.terminal-mini--strong {
  color: var(--ink);
}

.card-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.pricing-card h3,
.step-card h3,
.faq-card h3,
.card h2,
.card h3 {
  margin: 10px 0 8px;
}

/* FAQ answers fill the card width (2026-10-04 C5 FAQ review — the previous
   66ch cap left answers left-shifted with a large empty band on the right). */
.faq-card p {
  max-width: none;
}

/* FAQ accordion — <details>/<summary> with the question as the always-
   visible summary row and a +/− indicator standing in for the UA marker. */
.faq-card summary {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}

.faq-card summary::-webkit-details-marker {
  display: none;
}

.faq-card summary h3 {
  margin: 0;
}

.faq-card[open] summary h3 {
  color: var(--accent-ice);
}

.faq-card summary::after {
  content: "+";
  margin-left: auto;
  color: var(--accent);
  font-family: var(--font-mono), monospace;
  font-weight: 600;
}

.faq-card[open] summary::after {
  content: "−";
}

.bullet-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid rgba(216, 236, 247, 0.22);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(244, 251, 255, 0.14), rgba(125, 234, 244, 0.12)),
    rgba(11, 18, 25, 0.96);
  color: var(--accent-ice);
  /* <button> doesn't inherit font-family (UA forces a default = Arial); button-
     styled <a> links do. Inherit so real <button>s match the brand mono too. */
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background:
    linear-gradient(180deg, rgba(244, 251, 255, 0.18), rgba(125, 234, 244, 0.16)),
    rgba(12, 20, 28, 0.98);
}

.button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.button:active {
  transform: translateY(1px);
  filter: brightness(0.92);
}

/* Primary CTAs share the same warm-pulse cycle as caption pills.
   The amber sweep through the text + border/halo warming creates a
   shared "take action" rhythm across header Terminal button, hero
   Open Terminal CTA, sample-card Open Sample Memo, and the pricing
   "Get 3 credits" recommended button. On hover, animation: none
   removes the keyframe override so the static hover styles below
   apply cleanly (brighter cyan glow). The animation restarts from
   0% when the cursor moves away — acceptable since the user already
   broke the rhythm by hovering. */
.button--accent {
  background-color: transparent;
  background-image:
    linear-gradient(
      135deg,
      var(--accent) 0%,
      var(--accent) 25%,
      var(--amber) 50%,
      var(--accent) 75%,
      var(--accent) 100%
    ),
    linear-gradient(180deg, rgba(125, 234, 244, 0.22), rgba(87, 171, 197, 0.18));
  background-clip: text, padding-box;
  -webkit-background-clip: text, padding-box;
  background-size: 350% 100%, 100% 100%;
  -webkit-text-fill-color: transparent;
  border-color: rgba(125, 234, 244, 0.5);
  color: var(--accent-ice);
  font-weight: 700;
  box-shadow: 0 0 16px rgba(125, 234, 244, 0.12), 0 0 4px rgba(125, 234, 244, 0.08);
  animation: caption-sweep-glow 14s ease-in-out infinite;
}
.button--accent:hover {
  /* Disable the warm-pulse animation on hover so the keyframe values
     (which animate border-color and box-shadow) don't fight with the
     hover styles below. The hover state restores a solid cyan-ice
     text fill and a brighter cyan glow. */
  animation: none;
  background-image: linear-gradient(180deg, rgba(125, 234, 244, 0.30), rgba(87, 171, 197, 0.24));
  background-size: 100% 100%;
  background-clip: padding-box;
  -webkit-background-clip: padding-box;
  -webkit-text-fill-color: var(--accent-ice);
  border-color: rgba(125, 234, 244, 0.7);
  box-shadow: 0 0 28px rgba(125, 234, 244, 0.2), 0 0 6px rgba(125, 234, 244, 0.14);
}

.button--ghost {
  background: rgba(125, 234, 244, 0.03);
  color: var(--ink);
}

.button--small {
  min-height: 40px;
  padding: 10px 14px;
}

/* Inline text-button used inside notice strips (Retry, Dismiss). Keeps the
   button ergonomics -- focus ring, hover color, disabled state -- without
   the 46px-tall pill background that looks oversized next to a single line
   of notice copy. Replaces the inline style={{ display: "inline", padding:
   "2px 10px", fontSize: "0.85em" }} overrides that used to live on those
   ResearchConsole callsites. */
.button--link {
  min-height: 0;
  padding: 2px 6px;
  margin: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85em;
  text-decoration: underline;
  text-underline-offset: 3px;
  box-shadow: none;
}
/* Two of these in a row (StatusBoard's "Open Memo →" / "Dismiss", the
   account page's confirm/cancel pair) put their 24px SC 2.5.8 target circles
   inside one another. Separate adjacent pairs so neither undersized target
   overlaps its neighbour; single inline links in running prose are exempt and
   are unaffected by this rule. */
.button--link + .button--link {
  margin-left: 14px;
}

.button--link:hover {
  transform: none;
  background: transparent;
  color: var(--accent-ice);
}
.button--link:active {
  transform: none;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.signal-strip--dense {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.signal-card {
  padding: 16px;
  padding-left: 20px;
  border: 1px solid var(--line);
  border-left: 3px solid rgba(125, 234, 244, 0.4);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(20, 31, 42, 0.94), rgba(8, 13, 19, 0.92)),
    rgba(8, 13, 19, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: border-left-color 300ms ease, box-shadow 300ms ease;
}

.signal-card:hover {
  border-left-color: var(--accent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    -4px 0 16px rgba(125, 234, 244, 0.06);
}

.signal-card span,
.workspace-summary-card span,
.workspace-command-card span,
.telemetry-card span,
.archive-card-stat span,
.policy-meta-item span,
.memo-band-item span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.signal-card strong,
.workspace-summary-card strong,
.workspace-command-card strong,
.telemetry-card strong,
.archive-card-stat strong,
.policy-meta-item strong,
.memo-band-item strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
}

.signal-card p,
.workspace-summary-card p,
.workspace-command-card p,
.telemetry-card p {
  margin: 8px 0 0;
  font-size: 0.92rem;
}

.auth-email {
  max-width: min(34ch, 100%);
  overflow: hidden;
  text-overflow: ellipsis;
  /* Pill ellipsis only fires when the contents stay on a single line.
     Without nowrap, long emails wrap and the pill grows tall instead
     of clipping with the "..." we promised. */
  white-space: nowrap;
}

.pricing-card--recommended {
  border-color: rgba(125, 234, 244, 0.32);
  background:
    radial-gradient(circle at 50% 0%, rgba(125, 234, 244, 0.14), transparent 38%),
    linear-gradient(180deg, rgba(18, 28, 39, 0.96), rgba(7, 11, 17, 0.98)),
    var(--surface);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.46),
    0 0 32px rgba(125, 234, 244, 0.06);
}

/* Pricing cards use a flex column with explicit gap so each element
   has predictable spacing regardless of sibling margins. The previous
   block-flow + margin-based stacking caused the description (p,
   margin: 16px 0) and usage line (.terminal-mini, no margin) to sit
   too close together because of margin-collapse mechanics — flagged
   in audit as "a little tight." Switching to flex with `gap: 14px`
   gives uniform rhythm, then the `.terminal-mini` margin-top adds an
   extra 6px of breathing room specifically between description and
   usage. h3 + p margins are reset since the flex gap now drives the
   layout. */
.pricing-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pricing-card h3,
.pricing-card p {
  margin: 0;
}

.pricing-card .terminal-mini {
  margin-top: 6px;
}

/* Pricing grid — equal card heights + CTA row pinned to the card bottom.
   Same technique as the stance pillars: align-items: stretch makes the
   same-row cards share the tallest card's height and grid-auto-rows: 1fr
   extends that to wrapped and single-column (mobile) layouts; margin-top:
   auto on the CTA pushes it to the bottom edge of each card so all four
   CTAs sit on the same horizontal line regardless of content length. */
.card-grid--pricing {
  align-items: stretch;
  grid-auto-rows: 1fr;
}

.pricing-card .button {
  margin-top: auto;
}

/* See-output sample cards — equal card heights + Open Sample Memo button
   pinned to the card bottom with a consistent width. Same technique as the
   pricing grid fix: align-items: stretch + grid-auto-rows: 1fr make the
   three bundled sample cards share the tallest card's height at every
   viewport (also on wrapped/single-column layouts); the card becomes a
   flex column (like .pricing-card) so margin-top: auto on the actions row
   pins each button to the card bottom; a fixed button width keeps the
   three buttons visually identical despite differing card content. At the
   <=640px breakpoint the shared .hero-actions rule stretches the buttons
   to full card width instead (see the mobile override below), so the
   buttons stay uniform there too. */
.card-grid--samples {
  align-items: stretch;
  grid-auto-rows: 1fr;
}
.card-grid--samples > .card.stack {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.card-grid--samples .sample-card__stats {
  /* C5 (2026-10-04): one bottom-pinned unit holding the qualifier note +
     terminal grid. Pinning the UNIT (not the grid alone) keeps the
     price/fair-value rows at the same y across all three cards whether or
     not a card carries a qualifier note. */
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: auto;
}
.card-grid--samples .terminal-grid > div {
  /* Center the Price at Memo / Fair Value cells (labels + values). */
  text-align: center;
}
.card-grid--samples .terminal-grid strong {
  /* C5 (2026-10-04): reserve the qualifier line so every card's grid cells
     are the same height. A card whose Fair Value carries an engine qualifier
     ("envelope caveat") wraps its value to a second line; without this the
     unqualified cards' cells are shorter and the label/value rows drift off
     the shared horizontal plane. display: block is required for min-height
     to apply (the strong defaults to inline). */
  display: block;
  min-height: 2.5em; /* value line + qualifier line */
}
.card-grid--samples .hero-actions {
  justify-content: center;
}
.card-grid--samples .hero-actions .button {
  width: 220px;
  justify-content: center;
}

/* "Best value" callout on the recommended pricing card. Originally
   a cyan pill that visually competed with the credit-count caption
   pill above it; now an un-bubbled amber label that sits below the
   credit pill as a quick "this is the recommended tier" flag. The
   amber color rhymes with the AUTH SETUP PENDING badge in the nav
   and the /username terminal text in the hero — design system
   coherence, with amber consistently signaling "pay attention to
   this." Pure text, no pill, so it doesn't compete with the credit
   pill's warm-pulse animation right above it. */
/* Pricing card top row — keeps the tag pill ("1 CREDIT" / "3 CREDITS")
   and the recommended-tier "Best value" badge on the same line. Previously
   the badge sat below the tag pill, pushing the recommended card's content
   down by one line and misaligning the "Get N credits" CTAs across the
   two-card grid. The 1-credit card has only the tag pill in this row; the
   3-credit card has tag + badge, sitting side-by-side. */
.pricing-card__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  /* Pin the header baseline so price/CTA rows align whether or not the
     badge wraps. */
  min-height: 28px;
}

/* Price line — plan name owns the <h3>; the dollar figure renders as a
   styled stat, not a heading. */
.pricing-card__stat {
  font-family: var(--font-serif), serif;
  font-size: 2.1rem;
  line-height: 1.15;
  font-weight: 600;
  color: var(--ink);
}

.pricing-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--amber);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  gap: 24px;
}

.panel-grid--workspace {
  align-items: start;
}

.workspace-shell-head,
.policy-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Legal page sections — scroll-margin lives with the shared rail
   rules (.rail-layout .legal-section, tied to --chrome-bottom) so
   anchor jumps land the section's title pill in clean view below
   the live-measured sticky header. */

/* Tighter internal rhythm inside each legal card. The .stack grid
   default is 22px between children; here we drop to 14px so the
   title-pill + Updated-badge head sits closer to the body content. */
.legal-section.stack {
  gap: 14px;
}

/* Legal markdown body — tightened, uniformed typography across all
   five documents (disclosures, terms, privacy, refund, AUP). Single-
   sided paragraph margins (only bottom) prevent the doubled-margin
   problem that produced 32px gaps between paragraphs at the default
   16px/16px. H3 gets a real font-size bump so subsection headings
   don't render as bold body text. Top-level H2s get meaningful
   margin-top to separate doc sections, but the first H2 in the card
   pins to zero so it sits flush under the title pill. Compound
   selector (.markdown.policy-markdown) bumps specificity above the
   base .markdown h2/h3 rules that appear later in the file. Scoped
   so other markdown surfaces (methodology, memos) keep their
   existing rhythm. */
.markdown.policy-markdown p,
.markdown.policy-markdown ul,
.markdown.policy-markdown ol {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.markdown.policy-markdown h2 {
  margin-top: 1.75rem;
  margin-bottom: 0.4rem;
}
.markdown.policy-markdown > h2:first-child {
  margin-top: 0;
}

/* P2 FE-21: the legal Markdown's headings are demoted one level at render
   (h2 -> h3, h3 -> h4, ...) so each document's internal sections nest under
   its title instead of sitting as h2 siblings of it. These rules keep the
   demoted levels looking exactly as they did before, so the change is purely
   structural — h3 inherits the old h2 rhythm, h4 the old h3, and h5/h6
   continue the taper. */
.markdown.policy-markdown h3 {
  font-size: clamp(1.15rem, 1.4vw, 1.35rem);
  line-height: 1.3;
  margin-top: 1.75rem;
  margin-bottom: 0.4rem;
}
.markdown.policy-markdown > h3:first-child {
  margin-top: 0;
}

.markdown.policy-markdown h4 {
  font-size: 1.05rem;
  line-height: 1.3;
  margin-top: 1rem;
  margin-bottom: 0.3rem;
  color: var(--ink);
}

.markdown.policy-markdown h5,
.markdown.policy-markdown h6 {
  font-size: 0.95rem;
  line-height: 1.35;
  margin-top: 0.9rem;
  margin-bottom: 0.25rem;
  color: var(--ink);
}

.markdown.policy-markdown ul,
.markdown.policy-markdown ol {
  gap: 6px;
}

.markdown.policy-markdown > *:last-child {
  margin-bottom: 0;
}

.policy-badge {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(216, 236, 247, 0.2);
  background: rgba(125, 234, 244, 0.07);
  color: var(--accent-ice);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
}

.input,
.select,
.textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  background: rgba(8, 13, 19, 0.94);
  color: var(--ink);
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.input::placeholder,
.textarea::placeholder {
  color: rgba(148, 169, 184, 0.8);
}

.notice {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 139, 139, 0.26);
  background: rgba(255, 139, 139, 0.08);
  color: #ffd4d4;
}

/* Sign-out failure text beside the marketing-header Sign Out button (FE-24). */
.auth-signout__error {
  font-size: 12px;
  line-height: 1.3;
  color: #ffd4d4;
  max-width: 18ch;
}

/* Sign-out failure banner under the terminal topbar (FE-24). */
.dash__signout-error {
  margin: 12px 24px 0;
}

.notice--subtle {
  border-color: var(--line);
  background: rgba(125, 234, 244, 0.05);
  color: var(--muted);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(125, 234, 244, 0.06);
  color: var(--muted);
  font-size: 0.84rem;
  text-transform: capitalize;
}

/* Running — amber, matching the pipeline's "active" amber cue. */
.status-badge[data-tone="running"] {
  color: var(--amber);
  border-color: rgba(245, 199, 127, 0.45);
  background: rgba(245, 199, 127, 0.08);
  font-weight: 600;
  box-shadow: 0 0 12px rgba(245, 199, 127, 0.14);
  animation: pulse-dot 1.6s ease-in-out infinite;
}

.status-badge[data-tone="succeeded"] {
  color: var(--accent);
  border-color: rgba(125, 234, 244, 0.24);
  box-shadow: 0 0 10px rgba(125, 234, 244, 0.1);
}

.status-badge[data-tone="failed"],
.status-badge[data-tone="insufficient_quality"] {
  color: var(--danger);
  border-color: rgba(255, 139, 139, 0.24);
  box-shadow: 0 0 10px rgba(255, 139, 139, 0.1);
}

/* Idling — nothing running (standby). Muted, quiet. */
.status-badge[data-tone="idle"] {
  color: var(--muted);
  border-color: var(--line);
  background: rgba(148, 169, 184, 0.06);
}
/* Queued / priming — submitted, waiting for a worker to accept the run.
   Muted gray-blue chip, distinct from the running amber. */
.status-badge[data-tone="queued"] {
  color: var(--muted);
  border-color: rgba(148, 169, 184, 0.35);
  background: rgba(148, 169, 184, 0.07);
  font-weight: 500;
}

.metric-table {
  display: grid;
  gap: 12px;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

/* Action variant — vertically centers the button cell against the
   label/value stack on the right (Run ID). */
.metric-row--actions {
  align-items: center;
}

.metric-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.mono {
  font-family: var(--font-mono), monospace;
  word-break: break-all;
}

.anchor-section {
  scroll-margin-top: 124px;
  /* Explicit grid layout + gap so direct children (section-heading,
     full-width cards, panel-grids, etc.) stack with consistent rhythm.
     Previously the page relied on default paragraph margins for spacing,
     which broke as soon as a section had a non-paragraph direct child
     (e.g. a full-width <article> inserted between heading and grid). */
  display: grid;
  gap: 28px;
}

.settings-list {
  display: grid;
  gap: 10px;
}

/* Two-card row for the account page top: PROFILE on the left, WALLET
   on the right. Collapses to a single column under ~760px so the
   cards aren't crammed on tablets/phones. Default align-items
   (stretch) so both cards share the row's tallest height — keeps
   the row visually symmetrical. */
.account-row-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
  gap: 18px;
  /* Top-align the columns (supersedes the stretch note above): each card keeps
     its natural height, so the Run-a-memo card no longer stretches and balloons
     its input when the wallet column grows taller (e.g. subscription added). */
  align-items: start;
}

/* ==================== ACCOUNT HERO (tabbed) ========================
   Account redesign A2 (2026-08-13): the page's ~9 stacked cards
   collapsed into ONE fixed-screen hero card, now TWO columns — the
   client-side tabs (Profile / Preferences / Security / Billing)
   on the left, the WalletPanel rail on the right, side by side.
   Fit-to-frame philosophy borrowed from the dashboard/archive: the
   hero clamps to the viewport minus the terminal chrome (topbar ~61px
   + content padding 28px*2 + section heading ~50px + footer gap
   ≈ 240px) so it never forces whole-page scroll at desktop sizes;
   each PANE — and the wallet column — scrolls internally only when
   its content overflows. Active-tab styling keys off aria-selected
   so the visual state can never drift from the a11y state. Under
   900px the columns stack (tabs on top, wallet below at natural
   height) so narrow screens aren't crushed.
   =================================================================== */
.account-hero {
  display: flex;
  min-height: 0;
  height: clamp(440px, calc(100dvh - 260px), 720px);
}

/* Left column: the tabbed panes. min-width 0 so long pane content
   (UUIDs, email buttons) shrinks instead of pushing the wallet out.
   position:relative anchors the ::before watermark below. */
.account-hero__left {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding-right: 28px;
}

/* Hero-local hound watermark, left column only (not behind the wallet).
   Same treatment as the landing body::before emblem; the terminal-shell's
   overflow:hidden keeps it confined to the hero card. */
.account-hero__left::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/houndcreek-emblem-360.webp");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.07;
  filter: blur(1.5px) grayscale(0.6);
  pointer-events: none;
  z-index: 0;
}

/* Tabs + panes sit above the watermark. */
.account-hero__left > * {
  position: relative;
  z-index: 1;
}

/* Right column: the WalletPanel rail. Fixed track so the wallet card
   reads at its dashboard width; scrolls internally (same accent
   scrollbar as the panes) rather than growing the hero. */
.account-hero__wallet {
  flex: 0 0 370px;
  min-width: 0;
  min-height: 0;
  display: grid;
  gap: 12px;
  align-content: start;
  overflow-y: auto;
  border-left: 1px solid var(--line);
  padding-left: 28px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-deep) transparent;
}

.account-hero__wallet::-webkit-scrollbar { width: 8px; }
.account-hero__wallet::-webkit-scrollbar-track { background: transparent; }
.account-hero__wallet::-webkit-scrollbar-thumb {
  background: var(--accent-deep);
  border-radius: 999px;
}

/* Account-hero wallet head (2026-08-14): the plan pill moved into the
   balance top row, so the header holds only the WALLET caption, which
   renders at the universal .terminal-caption size — the same pill as the
   "lifetime" block below — keeping all same-style caption pills consistent. */
.account-hero__wallet .wallet-rail__head {
  justify-content: flex-start;
}

/* Narrow screens: stack to one column — tabs+panes on top, wallet
   below at natural height — and drop the fixed-screen clamp so
   nothing is crushed; the page scrolls instead.

   P2 FE-19 (2026-09-21): this breakpoint was 900px, which was measured
   against the VIEWPORT while the hero lives inside the terminal shell. At
   901px the shell has already taken 271px (215px sidebar + 2x28px content
   padding), so the two-column rule engaged with ~630px of content to split —
   the wallet's fixed 370px and the 28px gutter left the tabbed panes about
   230px wide, narrower than the settings rows, the UUID line and the email
   field they contain. One pixel earlier the same panes had the full ~599px
   stacked width. Two columns need 380px (panes) + 28px (gutter) + 370px
   (wallet) = 778px of CONTENT, i.e. 1049px of viewport once the shell is
   paid for; 1060px is that with a little slack. Below it the stacked layout
   — which is never crushed — simply continues. */
@media (max-width: 1060px) {
  .account-hero {
    flex-direction: column;
    height: auto;
  }

  .account-hero__left {
    flex: 0 0 auto;
    padding-right: 0;
  }

  .account-hero__wallet {
    flex: 0 0 auto;
    overflow-y: visible;
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 16px;
    margin-top: 16px;
  }
}

.account-hero__tabs {
  flex: 0 0 auto;
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.account-hero__tab {
  appearance: none;
  flex: 0 0 auto;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: none;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.account-hero__tab:hover {
  color: var(--ink);
  background: rgba(125, 234, 244, 0.05);
}

/* Same cyan glow treatment as .dash__nav-item.is-active, so the hero
   tabs read as siblings of the sidebar nav. */
.account-hero__tab[aria-selected="true"] {
  color: var(--accent-ice);
  background: linear-gradient(180deg, rgba(125, 234, 244, 0.16), rgba(125, 234, 244, 0.06));
  border-color: rgba(125, 234, 244, 0.32);
  box-shadow: inset 0 0 0 1px rgba(125, 234, 244, 0.08), 0 8px 24px rgba(0, 0, 0, 0.3);
}

.account-hero__tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Panes fill the hero and scroll internally; the hero's height never
   grows with content. */
.account-hero__pane {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-deep) transparent;
}

/* Author display:flex above beats the UA's [hidden]{display:none}, so
   hidden panes must be re-hidden explicitly. */
.account-hero__pane[hidden] {
  display: none;
}

/* Safari fallback — it ignores the standard scrollbar-* props (see the
   .dash scrollbar note further down). */
.account-hero__pane::-webkit-scrollbar { width: 8px; }
.account-hero__pane::-webkit-scrollbar-track { background: transparent; }
.account-hero__pane::-webkit-scrollbar-thumb {
  background: var(--accent-deep);
  border-radius: 999px;
}

/* The Security pane stacks three former cards (change email / magic
   link / sessions); a hairline between them keeps the old card
   boundaries legible inside the single pane. */
.account-hero__section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.account-hero__section + .account-hero__section {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

@media (max-width: 760px) {
  /* Sidebar collapses here. A2 (2026-08-13): the hero is already stacked
     to one column by the 1060px rule above (was 900px — see FE-19), so a
     fixed height would clip the wallet below the panes (the card clips via
     overflow:hidden). Natural height + page scroll is the correct phone
     behavior. */
  .account-hero {
    height: auto;
  }
}
/* ================== end ACCOUNT HERO (tabbed) ====================== */

/* Card head row — pill on the left, secondary metadata (e.g. the
   PROFILE card's User ID) on the right. align-items: center keeps
   the pill's vertical center aligned with the small mono UUID. */
.settings-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Plain uppercase white label — used inside form fields where a
   pill (.terminal-caption) would be too loud. Matches the
   .settings-row span typography but slightly heavier weight so it
   reads as a form label rather than a static field marker. */
.field-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Button variant — the amber "wave" glow (box-shadow pulsing on a 5s
   ease), originally shared with the retired .tab-link in-page nav
   pills. Use on submit CTAs where the brighter .button--accent
   gradient sweep would be too loud (e.g. inside dense form cards). */
.button--tab-glow {
  border-color: var(--line);
  background: rgba(125, 234, 244, 0.04);
  color: var(--muted);
  box-shadow: 0 0 14px rgba(245, 199, 127, 0.14);
  animation: tab-glow-wave 5s ease-in-out infinite;
}

@keyframes tab-glow-wave {
  0%, 70%, 100% {
    box-shadow: 0 0 14px rgba(245, 199, 127, 0.14);
  }
  35% {
    box-shadow: 0 0 24px rgba(245, 199, 127, 0.34);
  }
}
.button--tab-glow:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}
@media (prefers-reduced-motion: reduce) {
  .button--tab-glow {
    animation: none;
  }
}

/* Animated cyan -> amber -> cyan gradient text. Same sweep treatment
   as terminal-caption pills, but text-only — no border, no background,
   no box-shadow. Apply to values you want to call attention to (e.g.
   the username on the profile card). */
.text-sweep-glow {
  background-color: transparent;
  background-image: linear-gradient(
    135deg,
    var(--accent) 0%,
    var(--accent) 25%,
    var(--amber) 50%,
    var(--accent) 75%,
    var(--accent) 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  background-size: 350% 100%;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: text-sweep-glow 14s ease-in-out infinite;
}

@keyframes text-sweep-glow {
  0%, 100% { background-position: 100% 50%; }
  50% { background-position: 0% 50%; }
}

/* Secondary metadata line — used inline beside the PROFILE pill
   (User ID). Smaller font, dimmed, mono so it reads as support-only
   reference rather than a primary field. */
.settings-footer {
  display: block;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-family: var(--font-mono), monospace;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
  text-align: right;
}

.settings-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(8, 13, 19, 0.86);
}

.settings-row span {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  /* Label must never wrap mid-word ("Compan/y") or compress to one
     letter when a long value squeezes the row — it keeps its intrinsic
     width and the value folds (overflow-wrap below). 2026-10-27 (Garrett,
     ANT memo): a label WIDER than the rail itself ("HoundCreek Total
     Score", "Market-Method Range (non-engine, documented comps)") used to
     push the whole row past the pill's edge. The label now shrinks and
     wraps by WORDS (never mid-word) when the row overflows; short labels
     are untouched. */
  flex: 0 1 40%;
  min-width: 0;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
}

.settings-row strong {
  flex: 1 1 auto;
  max-width: none;
  text-align: right;
  color: var(--ink);
  /* User-ID UUIDs and other long monospace tokens land here. Without
     min-width: 0 the flex child refuses to shrink past its content's
     intrinsic width and pushes the row wider than the card; without
     overflow-wrap the unbreakable token blows out the viewport on
     mobile. Both together let the value fold cleanly within 52%. */
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Compact prose-fact row (Fable 5.1 desktop polish, 2026-09-17): sidebar
   real estate is for scannable KPIs. Prose cover facts ("n/m -- model
   envelope does not bracket...") keep a single tight line here — label,
   optional headline token, and a "details →" anchor into the main body's
   collapsible Methodology & Rating Basis module. The label ellipsizes
   rather than wrapping so the row genuinely stays one line. */
.settings-row--prose {
  align-items: baseline;
  padding: 10px 16px;
}
/* The label is never clipped or folded (2026-10-08, Garrett): it sizes to
   its own short text ("HC FAIR VALUE") and the value takes the rest of
   the row from the base .settings-row strong rule. The old
   overflow/ellipsis pair is what rendered "TO HO..." in the rail. */
.settings-row--prose > span {
  /* 2026-10-08 (Garrett, final): the label caps at 60% of the row and may
     wrap by WORDS only ("Current" / "Percentile", "Price Cross-Source" /
     "Spot-Check") — the previous flex:0 0 auto label took the whole rail
     and crushed the value to ~46px (or 0px, hiding the Spot-Check value);
     the inherited overflow-wrap:anywhere then broke labels one character
     per line. The value always keeps its share. */
  flex: 0 1 60%;
  min-width: 0;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
}
/* 2026-10-08 (Garrett, final): prose values wrap by WORDS inside the cell —
   the base rule's overflow-wrap:anywhere was breaking long values one
   character per line (Spot-Check rendered as vertical text). Figure +
   amber caveat stack right-aligned; unbreakable tokens still fold via
   min-width. */
.settings-row--prose strong {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
  display: block;
  text-align: right;
}
.settings-row--prose .settings-row__headline {
  color: var(--ink);
  font-size: 0.82rem;
  text-transform: none;
  letter-spacing: normal;
  /* 2026-10-27 (Garrett, KO memo screenshot): the base `.settings-row span`
     rule sets white-space: nowrap, and this headline span matches it -- so
     prose headline values ("above modeled P90") refused to wrap and spilled
     past the pill's rounded right edge (no clip, no wrap, no ellipsis). The
     label column already carries its own white-space: normal; the value cell
     gets the same word-wrap here. Nothing else changes.
     2026-10-27 (Garrett, ANT memo): unbreakable headline tokens
     ("~$68.5-$843.4/share" on the Market-Method row) still spilled past the
     pill — white-space alone cannot split a token with no spaces. Fold any
     token that cannot fit inside the cell (values stay inside their pills,
     no horizontal spill). */
  white-space: normal;
  overflow-wrap: anywhere;
}
.settings-row--prose .settings-row__details-link {
  color: var(--accent);
  font-family: var(--font-mono), monospace;
  font-size: 0.72rem;
  text-decoration: underline;
}

/* Main-body home for the relocated prose facts: a collapsible
   <details id="methodology-rating-basis"> placed after §5. Closed by
   default — the sidebar's "details →" anchors land on it; the full
   verbatim methodology text lives inside. */
.memo-methodology-details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(8, 13, 19, 0.86);
  padding: 14px 18px;
}
.memo-methodology-details summary {
  cursor: pointer;
  color: var(--accent);
  font-family: var(--font-mono), monospace;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.memo-methodology-details[open] summary {
  margin-bottom: 12px;
}
.memo-methodology-details h4 {
  margin: 12px 0 4px;
  color: var(--ink);
  font-size: 0.9rem;
}
.memo-methodology-details p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.markdown {
  display: grid;
  gap: 18px;
  line-height: 1.72;
}

.memo-surface {
  background:
    linear-gradient(180deg, rgba(15, 24, 32, 0.96), rgba(8, 12, 18, 0.98)),
    var(--surface);
  border-color: rgba(169, 205, 224, 0.16);
}

.memo-render-flow,
.memo-section-block,
.memo-module,
/* §8.3 Extraction Metadata module — replaces the default flat
   Metric/Value table render with a structured panel: headline metric
   pills on top, then a labeled "Sourced from" filings list, then a
   "Signals by category" chip row with name + count. Schema Version
   is intentionally dropped at the JS layer (pipeline metadata, not
   useful to readers). */
.memo-module--extraction-metadata {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Phone-width clipping fix (2026-07-13 design review): flex/grid items
   default to min-width:auto, so long prose lines and wide tables forced
   the memo column wider than the card and were CLIPPED (not scrollable)
   at <=640px. Allow the flow containers to shrink, and make the table
   shells the horizontal scroll containers they were designed to be. */
.memo-render-flow,
.memo-section-block,
.memo-module {
  min-width: 0;
}

.table-shell,
.forecast-table-shell {
  max-width: 100%;
  min-width: 0;
}

.extraction-metadata-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.extraction-metadata-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.extraction-metadata-filings {
  display: flex;
  flex-direction: column;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.extraction-metadata-filings li {
  font-family: var(--font-mono), monospace;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.extraction-metadata-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Category chip: a pill with a small uppercase label and a mono
   numeric count. Same visual family as the other memo-body chips
   (memo-chip, terminal-caption) so it doesn't feel grafted on. */
.memo-category-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(169, 205, 224, 0.18);
  background: rgba(125, 234, 244, 0.05);
}

.memo-category-chip__label {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.memo-category-chip__count {
  font-family: var(--font-mono), monospace;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-ice);
}

/* Catalyst grid — flex-wrap so a partial last row stretches its cards
   to fill the row width. Matches the rhythm we set across the other
   memo-body grids (memo-data-board, memo-narrative-grid,
   memo-risk-grid). Five catalysts in §7.2 render as 3 + 2-stretched
   with this layout. */
.memo-catalyst-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.memo-catalyst-grid > .memo-catalyst-card {
  flex: 1 1 260px;
  min-width: 0;
}

/* Risk register grid — flex-wrap so a partial last row stretches its
   cards to fill the row width. Same treatment as memo-data-board and
   memo-narrative-grid. */
.memo-risk-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.memo-risk-grid > .memo-risk-card {
  flex: 1 1 280px;
  min-width: 0;
}

/* Risk-card internal vertical rhythm — chips → title → severity rail
   → evidence prose. Without an explicit flex column + gap each child
   had no breathing room between it and the next (every child has
   margin: 0 from the rules below), so the title sat flush against
   the severity rail and the chips sat flush against the title. */
.memo-risk-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Small extra breath between the risk title and what follows so the
   eye can pause between "what is this risk" and "why we believe it".
   Applied as margin-top on the severity-rail (the element directly
   below the H4) instead of padding the H4 itself, so the gap doesn't
   compound with the parent flex-column gap. */
.memo-risk-card .severity-rail {
  margin-top: 2px;
}

/* Narrative grid (Reverse DCF readthrough, etc.) — flex-wrap so a
   trailing partial row stretches to fill instead of leaving empty
   slots. Five items in §5.2 Reverse DCF renders as 3 + 2-stretched
   on wide viewports, with the bottom two cards each taking ~50%. */
.memo-narrative-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.memo-narrative-grid > .memo-narrative-card {
  flex: 1 1 240px;
  min-width: 0;
}

/* Foundation metric board (Company Snapshot, etc.) — flex-wrap so the
   last row stretches its items to fill remaining width instead of
   leaving empty trailing slots. With 7 items at ~190px min, the
   typical render is 4 + 3 stretched, no awkward gaps. */
.memo-data-board {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.memo-data-board > .memo-data-card {
  flex: 1 1 190px;
  min-width: 0;
}

.memo-section-block {
  padding-top: 8px;
}

.memo-section-block--forecast {
  gap: 16px;
}

.memo-module {
  padding: 18px 0 0;
}

/* The .memo-data-board base grid-template-columns rule below is left in
   place but no longer applies — .memo-data-board is now a flexbox
   container (see flex-wrap rule above). The --company modifier likewise
   has no effect now that the parent isn't a grid. Removed to keep
   future readers from being misled. */

.memo-lead-grid,
.memo-kpi-grid,
.memo-kpi-ribbon,
.memo-summary-grid,
.memo-signal-row,
.memo-provenance-grid,
.memo-library-grid {
  display: grid;
  gap: 12px;
}

/* Archive density (2026-09-27 formatting review): the browser + body used to
   share the memo CARD-GRID rule above, so they inherited its 12px gap. But
   neither is a card grid — both are banded table chrome:
   .memo-archive-browser stacks a full-bleed search bar (its own background +
   border-bottom) against the table, and .memo-archive-body stacks rows that
   each carry `border-bottom: 1px solid` with :last-child cleared. The 12px
   gutter therefore floated every separator 12px clear of the row it was meant
   to divide, AND cost 12px of height PER ROW inside the height-clamped
   Archive frame — the single biggest reason the full Archive showed only
   ~3 memos before scrolling on a 1366x768 laptop. Flush is what the borders
   were drawn for, and it is already what the <=920px `display: block` band
   renders, so gap:0 also makes every width agree.  */
.memo-archive-browser,
.memo-archive-body {
  display: grid;
  gap: 0;
  /* Definite track: these grids' single auto track otherwise sizes to the
     rows'/table's MAX-CONTENT (Chrome resolves fr tracks under an intrinsic
     constraint to flex-factor x max(flex fraction)), which at 1181-1240px
     exceeded the table's width and pushed the far-right delete column past
     the card edge with no scrollbar to recover it. Pinning the track to the
     container makes the rows stretch to the REAL table width; their own
     declared minimums (842px floor) still fit it at every table-mode
     viewport. */
  grid-template-columns: minmax(0, 1fr);
}

.memo-lead-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.memo-signal-row,
.memo-provenance-grid,
.memo-library-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

/* Market strip (52-week range, 1M/3M/1Y price changes, Volume) —
   same flex-wrap treatment as memo-data-board so the trailing row
   (typically Volume alone) stretches to fill the row instead of
   leaving most of the width empty. */
.memo-market-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.memo-market-strip > .memo-data-card {
  flex: 1 1 190px;
  min-width: 0;
}



/* Financial Snapshot (2026-10-27, Garrett, ANT memo): the section used
   three separate fixed grids (2-col operating, 2-col capital, 3-col margin
   ribbon), so partial groups left an empty cell beside the trailing card —
   "top row 3 + bottom row 4, each fitted width-wise" was broken. ONE
   flex-wrap board renders all visible snapshot items in pipeline order and
   stretches every row to fill: at common widths the 7-item ANT snapshot
   renders 3 + 4 fitted; no empty slots at any width. */
.memo-snapshot-board {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
}

.memo-snapshot-board > .memo-data-card {
  min-width: 0;
}

.memo-snapshot-board > .memo-data-card[data-grid-span="3"] {
  grid-column: span 3;
}

.memo-snapshot-board > .memo-data-card[data-grid-span="4"] {
  grid-column: span 4;
}

.memo-snapshot-board > .memo-data-card[data-grid-span="6"] {
  grid-column: span 6;
}

.memo-snapshot-board > .memo-data-card[data-grid-span="12"] {
  grid-column: span 12;
}


/* Distribution board (2026-10-27, Garrett, ANT memo, §5.1): ONE grid owns
   the summary bubbles, the bell curve, and the five signal bubbles (Base
   Median / Aggressive Median / Dislocation / Richness / Fragility). 60
   equal columns so every breakpoint's spans divide evenly (LCM of 2/3/4/5).
   WIDE (default): summary row 4-across (15 cols each), bell full width,
   signals 5-across (12 cols each) — five on ONE line, not crushed. NARROW
   (<=1180px): the row becomes 7 — Fair Value + Range + the two medians
   ABOVE the bell (4 × 15), the three signal labels BELOW it (3 × 20),
   Current Price + Percentile on their own 2-across row above. MOBILE
   (<=700px): 2-across everywhere, so no label is ever crushed. */
.memo-dist-board {
  display: grid;
  grid-template-columns: repeat(60, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.memo-dist-board > .memo-data-card,
.memo-dist-board > .memo-dist-bell {
  min-width: 0;
}

.memo-dist-board > .memo-dist-bell {
  grid-column: span 60;
}

/* Wide: today's exact arrangement (summary 4-across, signals 5-across). */
.memo-dist-board > [data-dist-role="price"],
.memo-dist-board > [data-dist-role="fv"],
.memo-dist-board > [data-dist-role="fvr"],
.memo-dist-board > [data-dist-role="pct"] {
  grid-column: span 15;
}

/* J-29 item 5: four signal bubbles (the Richness bubble is retired). */
.memo-dist-board > [data-dist-role="base"],
.memo-dist-board > [data-dist-role="agg"],
.memo-dist-board > [data-dist-role="disloc"],
.memo-dist-board > [data-dist-role="frag"] {
  grid-column: span 15;
}

/* Narrow: the 7-two-row fallback around the bell.
   t_c998885d (2026-11-08): the previous block kept the base 60-track
   template and only re-spanned — 59 gaps x 12px = 708px of mandatory
   gutter, so below a ~708px board every track collapsed to 0 and the
   span-60 bell rendered 708px wide, clipping the section at the memo
   card's overflow-x:hidden edge on small viewports (~786px and under).
   A 12-track template (11 gaps = 132px) preserves the exact same row
   proportions (price/pct half-width, fv/fvr/base/agg quarter-width,
   disloc/rich/frag third-width) and fits any board >= ~200px. */
@media (max-width: 1180px) {
  .memo-dist-board {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  .memo-dist-board > [data-dist-role="price"],
  .memo-dist-board > [data-dist-role="pct"] {
    grid-row: 1;
    grid-column: span 6;
  }
  .memo-dist-board > [data-dist-role="fv"],
  .memo-dist-board > [data-dist-role="fvr"],
  .memo-dist-board > [data-dist-role="base"],
  .memo-dist-board > [data-dist-role="agg"] {
    grid-row: 2;
    grid-column: span 3;
  }
  .memo-dist-board > .memo-dist-bell {
    grid-row: 3;
    grid-column: 1 / -1;
  }
  .memo-dist-board > [data-dist-role="disloc"],
  .memo-dist-board > [data-dist-role="frag"] {
    grid-row: 4;
    grid-column: span 6;
  }
}

/* Mobile: 2-across for every bubble; the bell stays full width.
   t_c998885d (2026-11-08): the previous 2-across impl kept the 60-track
   grid and only changed spans — same gap-sum overflow as the narrow
   block (59 gaps x 12px = 708px), so every span-30 bubble rendered
   348px wide and the bell 708px on phones, clipping the whole board.
   A real 2-track template (1 gap = 12px) auto-places bubbles 2-across;
   the bell keeps grid-row 3 (from the narrow block) and spans both
   tracks. */
@media (max-width: 700px) {
  .memo-dist-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .memo-dist-board > [data-dist-role] {
    grid-row: auto;
    grid-column: auto;
  }
  .memo-dist-board > .memo-dist-bell {
    grid-column: 1 / -1;
  }
}

.memo-archive-browser {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(8, 13, 19, 0.78);
  overflow: hidden;
}

/* News board — dashboard summary + /articles feed surface. The card
   container reuses .card.terminal-shell so it visually matches the
   wallet strip + archive on the dashboard. The internal post list is
   the new bit. Each post has a kind chip (update / methodology /
   coverage / maintenance) styled by modifier class so the eye can
   parse what type of news it is at a glance. */
.news-board__empty {
  margin: 0;
  padding: 16px;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}
.news-board__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.news-board__view-all {
  font-size: 0.82rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.news-board__view-all:hover {
  text-decoration: underline;
}

/* Feed list title (class replaces the former inline style) + RSS link
   in the card head (2026-10-07 walk). */
.news-post__title {
  font-size: 1.05rem;
  margin: 0;
}

.news-board__rss {
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.news-board__rss:hover {
  color: var(--accent-ice);
  text-decoration: underline;
}

.news-board__list {
  display: grid;
  gap: 14px;
}

/* Articles page: Newer / Older buttons under the list (2026-11-26). */
.news-board__pager {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding-top: 6px;
}
.news-board__pager > :last-child {
  justify-self: end;
}
.news-board__page {
  font-family: var(--font-mono), monospace;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* Coverage-post compliance disclosure — fills the space to the right of the
   "Run memo" CTA in the actions row (wraps under it on narrow cards). */
.news-post__disclosure {
  flex: 1 1 260px;
  min-width: 0;
  margin: 0 0 0 auto;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--muted);
}
.news-post__disclosure strong {
  color: var(--ink);
  font-weight: 600;
}

.news-post {
  padding: 14px 16px;
  border: 1px solid rgba(125, 234, 244, 0.28);
  border-radius: 12px;
  background: rgba(125, 234, 244, 0.05);
  box-shadow: inset 0 0 0 1px rgba(125, 234, 244, 0.07);
}

.news-post__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.news-post__kind {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(125, 234, 244, 0.25);
  color: var(--accent);
  background: rgba(125, 234, 244, 0.05);
}

/* Per-kind chip tinting. Coverage stays cyan (the base above) — a
   "watching this" research flag. methodology + maintenance are amber
   so they read apart at a skim. update is neutral gray, matching the
   Basic Plan chip in the header, since it's routine product news
   rather than a research signal. */
.news-post__kind--methodology,
.news-post__kind--maintenance {
  color: var(--amber);
  border-color: rgba(245, 199, 127, 0.35);
  background: rgba(245, 199, 127, 0.05);
}

.news-post__kind--update {
  color: var(--muted);
  border-color: rgba(169, 205, 224, 0.2);
  background: rgba(16, 25, 35, 0.6);
}

/* Article types, each its own pill (2026-11-27, owner decision "B";
   2026-11-28: memos are known by their view pill, so the cyan-to-amber
   gradient moved to the Morning Brief, the daily flagship of the wire).
   Earnings Roundup amber outline; Weekly Wrap soft amber; Week Ahead deep
   blue; Morning Brief the gradient; Daily Recap silver; Market-Moving solid
   ice (never an alert red); Company Update gray; a Company Memo's type pill
   (rarely shown) plain cyan. */
.news-post__kind--memo {
  color: var(--accent);
  border-color: rgba(125, 234, 244, 0.45);
  background: rgba(125, 234, 244, 0.06);
}

.news-post__kind--earnings {
  color: var(--amber);
  border-color: rgba(245, 199, 127, 0.5);
  background: rgba(245, 199, 127, 0.07);
}

.news-post__kind--weekly-wrap {
  color: var(--amber);
  border-color: transparent;
  background: rgba(245, 199, 127, 0.18);
}

.news-post__kind--week-ahead {
  color: #7fc3d8;
  border-color: rgba(87, 171, 197, 0.7);
  background: rgba(87, 171, 197, 0.1);
}

.news-post__kind--morning-brief {
  color: #07131a;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--amber));
}

.news-post__kind--daily-recap {
  color: var(--accent-silver);
  border-color: rgba(219, 230, 239, 0.4);
  background: rgba(219, 230, 239, 0.06);
}

.news-post__kind--market-moving {
  color: #0b1a22;
  border-color: var(--accent-ice);
  background: var(--accent-ice);
}

.news-post__date {
  font-size: 0.74rem;
  color: var(--muted);
  font-family: var(--font-mono), monospace;
  letter-spacing: 0.02em;
}

/* Coverage post extras: ticker pill + company under the header, and the
   "Read more" + "Run memo" CTAs share an actions row. */
.news-post__coverage {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.news-post__company {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
}
.news-post__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.news-post__run { flex: 0 0 auto; }

.news-post__title {
  font-size: 1.05rem;
  margin: 0 0 6px;
  font-family: var(--font-serif), serif;
  color: var(--ink);
}

/* P2 FE-54 (2026-09-21): cap the measure on /articles prose.
   The feed's cards stretch to the full .site-shell width (up to 1380px minus
   padding), and the paragraphs inside them stretched with them — ~150
   characters per line at desktop width, roughly double the 45-75ch the eye
   can track without losing its place on the return sweep. The CAP GOES ON
   THE TEXT, not the card: the cards, their header rows, pills and action rows
   keep the full width they were designed for; only the running prose is
   bounded. */
.news-post__body {
  font-size: 0.9rem;
  color: var(--ink);
  margin: 0 0 10px;
  line-height: 1.55;
  max-width: 72ch;
}

.news-post__link {
  display: inline-block;
  font-size: 0.84rem;
  color: var(--accent);
  text-decoration: none;
}

.news-post__link:hover {
  text-decoration: underline;
}

/* Detail page body — paragraphs split on \n\n at render time, each
   gets readable line-height and a small bottom margin so they don't
   run together. No prose-style indentation; this matches the rest
   of the site's flat-paragraph treatment. */
.news-post-detail__body p {
  margin: 0 0 14px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink);
  /* Same measure cap as the feed cards (FE-54). The detail page is pure
     long-form reading, so this is where the unbounded line length hurt
     most. */
  max-width: 72ch;
}
/* The coverage-report fine print (the "Each memo runs…" methodology line +
   the disclaimer) spans the FULL width like the table, stays italic and
   non-bold (Garrett 2026-10-29) — :has() targets exactly the em-only
   paragraphs; every other paragraph keeps the reading measure. */
.news-post-detail__body p:has(em) {
  max-width: none;
}
.news-post-detail__body em {
  font-style: italic;
  font-weight: 400;
}
/* Coverage ticker → View colors (Garrett 2026-10-29; swapped 2026-11-28):
   Underperform = cyan, Neutral = the cyan-to-amber blend, Outperform =
   amber with its glow. Applied by the
   [id]/page.js markdown components to the table's ticker cells and the
   short-reads' ticker headings. */
.news-post-detail__body .ticker-view--underperform {
  color: var(--accent);
}
.news-post-detail__body .ticker-view--neutral {
  background: linear-gradient(90deg, var(--accent), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.news-post-detail__body .ticker-view--outperform {
  color: var(--amber);
  animation: ticker-glow 2.4s ease-in-out infinite;
}
@keyframes ticker-glow {
  0%,
  100% {
    text-shadow: 0 0 4px rgba(245, 199, 127, 0.35);
  }
  50% {
    text-shadow: 0 0 10px rgba(245, 199, 127, 0.65);
  }
}
.news-post-detail__body p:last-child {
  margin-bottom: 0;
}

/* Detail-page body upgrades for markdown-authored posts (2026-10-29): the
   Coverage Report renders sub-labels, bullet lists, inline links, and a
   GFM table inside the same terminal-shell card — same layout, same brand.
   Scoped to the detail body so feed cards and the DB-backed /feed stay
   untouched. */
.news-post-detail__body strong {
  color: var(--ink);
}
.news-post-detail__body ul {
  margin: 0 0 14px;
  padding-left: 1.2rem;
  display: grid;
  gap: 8px;
}
.news-post-detail__body li {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink);
}
.news-post-detail__body a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: rgba(125, 234, 244, 0.55);
}
.news-post-detail__body a:hover,
.news-post-detail__body a:focus-visible {
  color: var(--accent-ice);
  text-decoration-thickness: 2px;
  text-decoration-color: currentColor;
}
.news-post-detail__body .table-shell {
  margin: 0 0 16px;
  max-width: 100%;
}

/* Keep the ticker pill on one line — 4-char tickers (NVDA) were wrapping
   inside the chip in the narrow dashboard column. */
.memo-archive-cell--ticker .memo-chip {
  white-space: nowrap;
}

/* Base action cluster — the dashboard mini-archive and the Status page's
   recent-runs list, which each render a single "Open Memo" / "View Status"
   control per row. The nowrap on the children is the load-bearing part: it
   stops a label breaking mid-word when the column is squeezed. The
   container's own nowrap is safe here (one child) and is overridden per band
   for the full Archive's three-control cluster — see the
   .memo-archive-row--extended blocks above. */
.memo-archive-cell--action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: nowrap;
}
.memo-archive-cell--action > * {
  white-space: nowrap;
}

/* "At Run" column — same mono style as current price; muted when
   priceAtMemo is null (legacy job, sample placeholder, etc.). */
.archive-cell--at-run {
  display: flex;
  align-items: center;
}

/* "% Change" column — green when current > price-at-memo, red when
   current < price-at-memo, muted when one side is missing. The
   tones lean toward the brand palette so the column doesn't read
   as a generic traffic-light gain/loss strip. */
.archive-cell--change,
.archive-cell--to-hc {
  display: flex;
  align-items: center;
}
.archive-change {
  font-family: var(--font-mono), monospace;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.archive-change--up {
  color: #6fdca0;
}
.archive-change--down {
  color: #f08a8a;
}
.archive-change--flat {
  color: var(--muted);
}
.archive-change--muted {
  color: var(--muted);
}

/* Completed date column — neutral mono date string ("May 1, 2026"),
   muted color when missing so the column stays aligned. */
.archive-cell--completed {
  display: flex;
  align-items: center;
}
.archive-completed {
  font-family: var(--font-mono), monospace;
  font-size: 0.82rem;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.archive-completed--muted {
  font-family: var(--font-mono), monospace;
  font-size: 0.82rem;
  color: var(--muted);
}
/* Completed date + run time stacked (date on top, local time beneath) so two
   same-day runs are distinguishable. On desktop the cell label is hidden, so
   the cell shows just the two lines. */
.archive-cell--completed {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.archive-completed__time {
  font-family: var(--font-mono), monospace;
  font-size: 0.7rem;
  color: var(--muted);
  white-space: nowrap;
}

/* Search bar above the archive table. Holds the input and a small
   result-count hint that surfaces only while the query is non-empty
   ("12 results"). Padding matches the rows below so the search input
   visually aligns with the ticker column. Packs from the left so the
   "Prices as of" label stays beside the search group even when a query
   filters the list down and the pagination is not rendered; the
   pagination self-pins to the right edge via margin-left:auto. */
.memo-archive-search {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(125, 234, 244, 0.03);
  flex-wrap: nowrap;
}

/* Left half of the search bar: input + result-count hint. Sized to its
   content (not the whole row) so the "Prices as of" label can sit right
   beside it on the left; the pagination claims the slack on the right. */
.memo-archive-search__group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 1 auto;
  min-width: 0;
}

/* Users search by ticker, not company name, so the field only needs room
   for a symbol — keep it narrow and give the width back to the row. */
.memo-archive-search__input {
  flex: 0 1 auto;
  min-width: 160px;
  max-width: 280px;
  font-size: 0.82rem;
  padding: 6px 12px;
}

.memo-archive-search__hint {
  flex: 0 0 auto;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* "Prices as of" timestamp — small/muted and unobtrusive. Two homes: inline in
   the full Archive's search-bar row (left-aligned, immediately after the search
   input) and in the dashboard mini-archive's panel head. Both keep the archive
   reading data-forward without stealing the title row. */
.archive-asof {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.panel__head .archive-asof {
  margin-left: 0;
  flex: 1 1 auto;
  text-align: left;
}
/* In the search row it must never compress: the label sits immediately after
   the search group on the left and keeps its full width, so the timestamp
   reads as part of the search controls rather than as pagination chrome. */
.memo-archive-search .archive-asof {
  flex: 0 0 auto;
}

/* Pagination — Previous / status / Next. Rides inline at the right edge
   of the search bar, so it carries no band of its own (no border, no
   padding block); the search row supplies the chrome. margin-left:auto
   eats the leftover width so it stays pinned right while the search group
   and "Prices as of" label stay left. */
.memo-archive-pagination {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  margin-left: auto;
  flex-wrap: nowrap;
}

/* Density pass: shrink the Previous/Next controls to match the tighter row. */
.memo-archive-pagination .button--small {
  min-height: 28px;
  padding: 4px 10px;
  font-size: 0.74rem;
}

.memo-archive-pagination__status {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.memo-archive-head {
  background: rgba(125, 234, 244, 0.06);
  border-bottom: 1px solid var(--line);
}

.memo-archive-row {
  display: grid;
  grid-template-columns:
    minmax(150px, 0.26fr)     /* ticker + company (stacked) */
    minmax(72px, 0.09fr)      /* current price */
    minmax(72px, 0.09fr)      /* price at run */
    minmax(68px, 0.08fr)      /* % since run */
    minmax(72px, 0.09fr)      /* Fair Value */
    minmax(68px, 0.08fr)      /* % to Fair Value */
    minmax(96px, 0.11fr)      /* completed date */
    minmax(160px, 0.2fr);     /* action buttons */
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
}

/* The delete cell — far right, single icon, vertically centered. Only the
   FULL archive renders it (shouldShowArchiveDelete gates on !compact +
   accessToken + onDeleted), so only the extended grid reserves a track. */
.memo-archive-cell--delete {
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Desktop-table micro target: matches the extended table's other controls
   (~20px tall). The unscoped .button--small ergonomics (40px min-height) are
   for the card-mode cluster; in the table a 44px-tall trash button alone set
   the row's height floor. */
.memo-archive-row--extended .memo-archive-delete {
  padding: 3px 7px;
  min-height: 0;
  font-size: 0.8rem;
  line-height: 1;
}

/* Extended full-Archive grid: 10 columns — the 9 data columns plus a
   far-right DELETE track. The delete button exists ONLY on the full archive
   (shouldShowArchiveDelete gates on !compact + accessToken + onDeleted), so
   this rule is the only one that reserves its space; the base 9-column grid
   and the compact variant never do.

   ONE-ROW contract (2026-11-13 layout fix). Every cell renders on a single
   horizontal line at every table-mode viewport (>=1181px). The minimums are
   MEASURED from the real DOM (dev-mock archive, Chrome): the three inline
   action buttons need ~250px ("Download PDF" is the widest: 12 mono chars
   at 0.71rem + 6px side padding), money tokens ~67px ("$928.00"), the %
   columns ~41px, the completed date+time stack ~98px. The 10 mins sum to
   742px; with 9 x 9px gaps + 28px padding the row's floor is 851px — under
   the 858px the table gets at the 1181px collapse point, so the grid fits
   ONE ROW everywhere in table mode and grows the action track above it.
   Wider-than-minimum tokens (an 8-char price is 77px in a 58px track) spill
   at most ~9px into the 9px gaps, centered — they never touch a neighbor's
   glyph. Grid tracks cannot wrap a cell to a second line; a width under the
   floor would only ever overflow horizontally into .memo-archive-table's
   existing scroll affordance, which is why the delete column cannot
   disappear.

   The fr factors are written x10 (sum ~9.5, not ~0.95) on purpose: Chrome
   distributes free space to minmax(min, Xfr) tracks only when the flex
   factors sum above 1 — at sum 0.965 (and the previous grid's 0.843) every
   track stayed pinned at its minimum at every laptop width, which is why
   the action column never grew and its three buttons stacked. Keep the sum
   above 1; proportions are unchanged by the scaling. */
.memo-archive-row--extended {
  grid-template-columns:
    minmax(88px, 1.7fr)       /* ticker + company (stacked) */
    minmax(62px, 0.82fr)      /* current price */
    minmax(62px, 0.82fr)      /* price at run */
    minmax(42px, 0.60fr)      /* % since run */
    minmax(62px, 0.82fr)      /* Fair Value */
    minmax(42px, 0.64fr)      /* % upside at run */
    minmax(42px, 0.60fr)      /* % to Fair Value */
    minmax(88px, 0.95fr)      /* completed date */
    minmax(196px, 2.4fr)      /* action buttons — three on ONE line */
    minmax(32px, 0.3fr);      /* delete (trash icon, far right) */
  padding: 10px 14px;
  column-gap: 9px;
}

/* Desktop table only. Everything below 1181px is CARD mode (FE-34), where the
   row is a 2-column grid and the action cluster is a normal-size control group
   in normal flow — it must NOT inherit the 20px-tall micro-buttons this block
   needs for a table row. Before this scoping, the 861-1180px band (iPad
   landscape, small laptops) rendered Open Memo / Download PDF / Run again at
   min-height:0 + 2px padding inside a roomy card: ~20px tall targets that the
   <=860px 44px touch floor never reached. */
@media (min-width: 1181px) {
  /* ONE LINE, ALWAYS (2026-11-13 layout fix): the three controls sit INLINE
     in the action track — flex 0 0 auto in a nowrap row, left-aligned — so
     they read as one button group with the trash button in its own track to
     the far right. Measured cluster floor: 249.6px ("Open Memo" 72.5 +
     "Download PDF" 92.6 + "Run again" 72.5 at 0.71rem/6px side padding, plus
     two 6px gaps) against the 252px minimum track. This replaces the old
     stacked-pair container-query design, which stacked the three controls
     vertically at every laptop width because the track never cleared its
     204px threshold. */
  .memo-archive-row--extended .memo-archive-cell--action {
    container-type: inline-size;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    align-content: center;
    justify-content: center;
    gap: 6px;
  }
  .memo-archive-row--extended .memo-archive-cell--action > a {
    flex: 1 1 100%;
    justify-content: center;
    text-align: center;
    min-height: 0;
    padding: 3px 8px;
    font-size: 0.71rem;
  }
  .memo-archive-row--extended .memo-archive-cell--action > button {
    flex: 1 1 calc(50% - 4px);
    width: auto;
    justify-content: center;
    text-align: center;
    min-height: 0;
    padding: 2px 5px;
    font-size: 0.69rem;
    white-space: nowrap;
  }
  /* The failure message is a sentence, never a button-row peer: it takes the
     leftover track width and wraps internally — the ROW stays one line of
     columns; only this sentence reflows inside its cell. */
  .memo-archive-row--extended .memo-archive-download-error {
    flex: 1 1 auto;
    min-width: 0;
  }
}

/* Card mode (<=1180px): the cluster is three real controls side by side in a
   half-width card track. Let it wrap — at 861px the track is ~275px against
   ~276px of buttons, so nowrap would push "Run again" out of the card. */
@media (max-width: 1180px) {
  .memo-archive-row--extended .memo-archive-cell--action {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}
/* Wider price/% columns: center the values so they spread under their centered
   headers instead of hugging one edge. */
.memo-archive-row--extended .archive-cell--price,
.memo-archive-row--extended .archive-cell--at-run,
.memo-archive-row--extended .archive-cell--change,
.memo-archive-row--extended .archive-cell--p50,
.memo-archive-row--extended .archive-cell--upside,
.memo-archive-row--extended .archive-cell--to-hc {
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Never let prices, %s or the date wrap or spill into the next column — they
   stay on one line; the table scrolls horizontally if the row can't fit. */
.archive-price,
.archive-price--muted,
.archive-change,
.archive-completed,
.archive-completed--muted {
  white-space: nowrap;
}
/* Header labels wrap only at spaces (never mid-word like "CURREN·T"). */
.memo-archive-head span {
  overflow-wrap: normal;
  word-break: keep-all;
}

/* The head + body scroll together horizontally when the row is wider than the
   card (e.g. the 11-column extended grid on a narrow desktop) so the action
   buttons are never clipped. No effect when everything already fits. */
.memo-archive-table {
  overflow-x: auto;
}

/* Ticker pill + company name stacked in one cell (all archive tables): the pill
   sits on top, aligned with the column header; the company name runs as a muted
   sub-line beneath it and wraps rather than being cut off by a narrow column. */
.memo-archive-cell--tickerco {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  min-width: 0;
}
.memo-archive-cell--tickerco .memo-chip {
  white-space: nowrap;
}
.memo-archive-tickerco__name {
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--muted);
  min-width: 0;
  overflow-wrap: break-word;
}
/* Extended rows only: intrinsic-size containment on the ticker cell. The
   company name's FULL text length used to inflate the row's max-content
   sizing pass — .memo-archive-body's auto track then sized the whole ROW to
   that inflated max-content, wider than the table at 1181-1240px, and the
   delete column jutted past the card's right edge with no scrollbar to
   recover it. contain:inline-size zeroes the cell's intrinsic contribution,
   so the row's floor is its declared minimums (842px) and the auto track
   stretches to the real table width; the cell still grows with its track,
   so the name keeps every gained pixel (it ellipsizes against the cell). */
.memo-archive-row--extended .memo-archive-cell--tickerco {
  contain: inline-size;
}
/* In the (slim-row) extended Archive, the Ticker pill + company name form a
   two-line stack centered as a PAIR around the row's centre line (flex column,
   justify-content center), so the pair straddles the shared horizontal axis
   evenly — same treatment as the wrapped action buttons and the Completed
   date+time pair. The company name is ellipsized so a long name never wraps.

   2026-09-27 formatting review — scoped to >=1181px. These are TABLE-column
   rules (centre on the column axis, clip rather than wrap), but they were
   declared unconditionally, so they also applied in the 641-1180px CARD band
   that FE-34 introduced: there the ticker pill and company name sat
   centre-aligned inside an otherwise left-aligned card, and the company name
   was ellipsized against a ~340px half-track that had room to spell it out.
   Below 1181px the base left-aligned, wrapping treatment now applies. */
@media (min-width: 1181px) {
  .memo-archive-row--extended .memo-archive-cell--tickerco {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
  }
  .memo-archive-row--extended .memo-archive-tickerco__name {
    font-size: 0.74rem;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    text-align: center;
  }
  .memo-archive-row--extended .archive-cell--completed {
    justify-content: center;
  }
}

.memo-archive-head span {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.memo-archive-head.memo-archive-row--extended span {
  text-align: center;
}

.memo-archive-body .memo-archive-row {
  border-bottom: 1px solid rgba(169, 205, 224, 0.08);
}

.memo-archive-body .memo-archive-row:last-child {
  border-bottom: 0;
}

.memo-archive-cell {
  min-width: 0;
}




.memo-data-card,
.memo-narrative-card,
.memo-risk-card,
.memo-catalyst-card,
.memo-scenario-band,
.memo-provenance-card {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(8, 13, 19, 0.86);
}

.memo-data-card[data-tone="primary"] {
  border-color: rgba(125, 234, 244, 0.22);
  background:
    linear-gradient(180deg, rgba(219, 230, 239, 0.09), rgba(8, 13, 19, 0.94)),
    rgba(8, 13, 19, 0.9);
}

.memo-data-card[data-tone="accent"],
.memo-narrative-card[data-tone="accent"] {
  border-color: rgba(255, 204, 122, 0.22);
}

.memo-data-card span,
.memo-narrative-card span,
.memo-risk-card span,
.memo-catalyst-card span,
.memo-scenario-band span,
.memo-provenance-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.memo-data-card strong,
.memo-narrative-card strong,
.memo-scenario-band strong,
.memo-provenance-card strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.48;
}

.memo-data-card p,
.memo-provenance-card p {
  margin: 8px 0 0;
  color: var(--accent-silver);
  font-size: 0.86rem;
}

/* memo-narrative-grid grid-template-columns rules removed — the
   container is now a flexbox (see flex-wrap rule above). The
   --reverse modifier is left as a no-op selector since the JSX
   still applies the class; consumers can use it later if a
   variant-specific tweak is needed. */

/* .memo-risk-grid grid-template-columns rule removed — the container
   is now a flexbox (see flex-wrap rule above), so the grid-template
   property had no effect. Cleaned to avoid confusing future readers. */

.memo-risk-card[data-tone="high"] {
  border-color: rgba(255, 139, 139, 0.28);
}

.memo-risk-card[data-tone="medium"] {
  border-color: rgba(255, 204, 122, 0.24);
}

.memo-risk-card[data-tone="low"] {
  border-color: rgba(125, 234, 244, 0.2);
}

.memo-risk-card h4,
.memo-catalyst-card h4 {
  margin: 0;
  font-family: var(--font-serif), serif;
  font-size: 1.08rem;
  line-height: 1.28;
  color: var(--ink);
}

.memo-risk-card p,
.memo-catalyst-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.memo-risk-meta,
.memo-catalyst-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* 2026-10-27 (Garrett, ANT memo, §8.2): the catalyst chips — the horizon
   label ("0-12 months; timing not specified in the payload") and the
   HARD/SOFT badge — must sit on the SAME line. The base .memo-chip rule
   sets flex-shrink:0, so the long horizon chip pushed the badge onto a
   second line (wrapped + offset). Now the row never wraps: the horizon
   chip shrinks and folds its own text inside the pill, the badge never
   shrinks or splits. */
.memo-catalyst-card .memo-catalyst-meta {
  flex-wrap: nowrap;
}
.memo-catalyst-card .memo-catalyst-meta .memo-chip {
  flex-shrink: 1;
  min-width: 0;
}
.memo-catalyst-card .memo-catalyst-meta .memo-chip--accent {
  flex-shrink: 0;
}

.memo-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(125, 234, 244, 0.06);
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  /* C2 2026-08-03: single-word signal labels ("OVERVALUED", "UNDERVALUED")
     were breaking mid-word into "OVERV / ALUED" in the narrow flex column
     beside the section caption. A signal chip is a label, not prose — it
     wraps between words or not at all, and shrinks past its flex basis
     rather than splitting a word.
     2026-10-23 value-agnostic wrap: long multi-word labels wrap to 2 lines
     instead of overflowing; single words still never split mid-word unless
     the column is narrower than the word. */
  white-space: normal;
  overflow-wrap: break-word;
  max-width: 100%;
  flex-shrink: 0;
}

.memo-chip--accent {
  color: var(--amber);
  border-color: rgba(255, 204, 122, 0.22);
  background: rgba(255, 204, 122, 0.08);
}

.severity-rail {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

/* Severity rail fill — color the fill by tone so a glance at the bar
   conveys severity (red for high, amber for medium, cyan for low)
   without reading the chip label. The width itself is set by
   severityRailWidth() in MemoReportBody (high=95%, medium=60%,
   low=30%). Without the data-tone selectors, every severity rendered
   in the same red gradient — which made the bar harder to scan, not
   easier. */
.severity-rail span {
  display: block;
  height: 100%;
  margin: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 204, 122, 0.72), rgba(255, 139, 139, 0.96));
}

.severity-rail[data-tone="medium"] span {
  background: linear-gradient(90deg, rgba(245, 199, 127, 0.7), rgba(255, 204, 122, 0.95));
}

.severity-rail[data-tone="low"] span {
  background: linear-gradient(90deg, rgba(125, 234, 244, 0.55), rgba(125, 234, 244, 0.92));
}

.severity-rail[data-tone="default"] span {
  background: rgba(255, 255, 255, 0.18);
}

/* memo-catalyst-grid grid-template-columns rule removed — the
   container is now a flexbox (see flex-wrap rule above). */

.memo-catalyst-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.memo-catalyst-card[data-tone="high"] {
  border-color: rgba(125, 234, 244, 0.22);
}

.memo-catalyst-card[data-tone="medium"] {
  border-color: rgba(255, 204, 122, 0.24);
}

.memo-catalyst-card[data-tone="low"] {
  border-color: rgba(148, 169, 184, 0.24);
}

.memo-catalyst-confidence {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.memo-catalyst-confidence span {
  margin-bottom: 0;
}

.memo-catalyst-confidence strong {
  color: var(--ink);
}

.confidence-rail {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.confidence-rail span {
  display: block;
  height: 100%;
  margin: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(125, 234, 244, 0.48), rgba(219, 230, 239, 0.96));
}

.memo-scenario-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-color: rgba(255, 204, 122, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 204, 122, 0.08), rgba(8, 13, 19, 0.92)),
    rgba(8, 13, 19, 0.88);
}

.forecast-table-shell {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(4, 8, 13, 0.98);
}

.forecast-table {
  width: 100%;
  border-collapse: collapse;
}

.forecast-table th,
.forecast-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(169, 205, 224, 0.1);
  text-align: right;
}

/* 2026-10-27 (Garrett, ANT memo, §6 scenario table): number cells must fit
   their value on ONE line — Diluted Shares 2,188,041,000 wrapped / clipped
   ("00" fell off the edge) at common widths. Non-label cells never wrap
   mid-number (the shell scrolls instead); long values (stamped data-long
   by ForecastModule) drop to a smaller tabular size so they fit the cell
   rather than spilling. */
.forecast-table td:not(:first-child) {
  white-space: nowrap;
}
.forecast-table td[data-long="1"] {
  font-size: 0.72rem;
  letter-spacing: -0.01em;
}

.forecast-table th:first-child,
.forecast-table td:first-child {
  text-align: left;
}

.forecast-table th {
  color: var(--accent);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.forecast-table td[data-column-tone="label"] {
  color: var(--ink);
  font-weight: 600;
}

.forecast-table td[data-column-tone="base"] {
  color: #fff6dc;
}

.forecast-table td[data-column-tone="bull"] {
  color: var(--accent);
}

.memo-terminal {
  display: grid;
  grid-template-columns: minmax(280px, 0.34fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

/* P2 FE-28 (2026-09-21): the memo body comes FIRST in the DOM. It used to sit
   after the sidebar, with the stacked layout below flipping the two visually
   via `order` — so between 768px and 920px a sighted reader saw memo → rail
   while keyboard focus and screen readers walked rail → memo (WCAG 1.3.2 /
   2.4.3). Grid placement puts the rail back in column 1 for the two-column
   desktop layout, so nothing moves on screen and the stacked band no longer
   needs an order flip at all. */
.memo-terminal > .memo-sidebar {
  grid-column: 1;
  grid-row: 1;
}
.memo-terminal > .memo-main {
  grid-column: 2;
  grid-row: 1;
}

.memo-terminal--sample {
  align-items: start;
}

.memo-sidebar {
  position: sticky;
  top: 118px;
  /* 2026-10-08 (Garrett): the terminal-shell scanline overlay reads as
     hard horizontal color bands on the wide sidebar — remove it here so
     the rail shows the smooth gradient only. */
  /* (scanline removal via .memo-sidebar.terminal-shell::after below) */
  /* Keep all sidebar content reachable when sticky-positioned beside a
     tall memo body — without this cap the bottom of the sidebar (archive
     switcher + action buttons) sits below the viewport with no way to
     scroll to it, since the sidebar itself is the sticky container. */
  max-height: calc(100vh - 138px);
  overflow-y: auto;
  overscroll-behavior: contain;
  /* Auto-hiding thin scrollbar: invisible at rest (keeps the terminal
     feel), a 4px cyan thumb on hover/focus so readers can discover that
     the rail scrolls independently of the memo body. */
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

/* Kill the min-content chain: .stack children default to min-width:auto —
   one unbreakable string anywhere in a child would force every sibling
   wider than the rail's grid track. */
.memo-sidebar > * {
  min-width: 0;
}

/* 2026-10-08 (Garrett): the scanline grid overlay on the sidebar reads as
   hard horizontal color bands; the rail keeps the smooth gradient only. */
.memo-sidebar.terminal-shell::after {
  background: none;
}

/* Same chain one level down: .settings-list is a grid whose auto column
   track sizes to the widest row's min-content (nowrap prose-fact labels),
   re-widening every row from inside. Pin the track to the list's width —
   the prose rows' own min-width:0 + ellipsis then absorb the length. */
.memo-sidebar .settings-list {
  grid-template-columns: minmax(0, 1fr);
}

.memo-sidebar:hover,
.memo-sidebar:focus-within {
  scrollbar-color: rgba(125, 234, 244, 0.35) transparent;
}

.memo-sidebar::-webkit-scrollbar {
  width: 4px;
}

.memo-sidebar::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 999px;
}

.memo-sidebar:hover::-webkit-scrollbar-thumb,
.memo-sidebar:focus-within::-webkit-scrollbar-thumb {
  background: rgba(125, 234, 244, 0.35);
}

.memo-main {
  min-width: 0;
}

/* Unified memo cover — same layout for /sample/[ticker] and
   /terminal/[userId]/memo/[jobId]. Renders five layers: meta row
   (variant pill + UTC timestamp), title block (ticker / company +
   subtitle), summary metrics strip, cyan→amber divider, plus a
   subtle BrandMark watermark behind the title. The cover IS the
   heading — pages that use it no longer carry a page-level eyebrow
   /H1/intro block. */
.memo-cover {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
}

.memo-cover__meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.memo-cover__timestamp {
  font-family: var(--font-mono), monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.memo-cover__title-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.memo-cover__title-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 14px;
}

.memo-cover__title {
  margin: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 14px;
  font-weight: 500;
  line-height: 1.05;
}

.memo-cover__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

/* Share button beside the memo title (share mechanism, 2026-07-20).
   Flows inline immediately after the company name (operator call:
   "right at the end of the company's full name", not pushed to the
   row's far edge); align-self centers it against the tall serif line. */
.memo-cover__share {
  align-self: center;
  margin-left: 6px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 7px;
  padding: 7px 14px;
  border: 1px solid rgba(125, 234, 244, 0.4);
  border-radius: 999px;
  background: transparent;
  color: var(--accent);
  font-family: var(--font-mono), monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.memo-cover__share:hover {
  background: rgba(125, 234, 244, 0.1);
}

.memo-cover__share:disabled {
  opacity: 0.6;
  cursor: default;
}

/* Revoke — the share button's quiet sibling: muted chrome so the kill
   switch is findable without competing with the primary action. */
.memo-cover__share--revoke {
  color: var(--muted);
  border-color: var(--line);
}

.memo-cover__share--revoke:hover {
  background: rgba(148, 169, 184, 0.08);
}

/* Ticker — mono, large, with the cyan→amber gradient sweep used on
   the footer scope line. This is the brand-glow signal for the memo
   identity itself. */
.memo-cover__ticker {
  font-family: var(--font-mono), monospace;
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  background-image: linear-gradient(
    135deg,
    var(--accent) 0%,
    var(--accent) 25%,
    var(--amber) 50%,
    var(--accent) 75%,
    var(--accent) 100%
  );
  background-size: 350% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: scope-text-sweep 14s ease-in-out infinite;
}

.memo-cover__slash {
  font-family: var(--font-mono), monospace;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: rgba(125, 234, 244, 0.45);
  align-self: center;
}

.memo-cover__company {
  font-family: var(--font-serif), serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.memo-cover__subtitle {
  margin: 4px 0 0;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.memo-cover__metrics {
  display: flex;
  flex-wrap: wrap;
  /* 2026-10-29 (Garrett, FTNT card): 8px gap — the qualifier cap above
     shrank the Fair Value pill by ~95px, but FTNT (860px) and DIS (859px)
     still exceeded the 851px strip at 1280 by a few px; 12px gaps cost
     36px total. 8px keeps the headline row (View / Current Price / Fair
     Value / Range) on ONE line at common widths without touching pill
     typography. */
  gap: 8px;
}

.memo-cover__metric {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 152px;
  /* 2026-10-29 (Garrett, FTNT card): 18px -> 16px horizontal padding —
     the last few px that keep the row one line at 1280 for the widest
     payloads (FTNT "Neutral - Fully Valued", DIS "Not Rated /
     Speculative"); imperceptible, scoped to the cover pills. */
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(169, 205, 224, 0.16);
  background: rgba(8, 13, 19, 0.78);
}

.memo-cover__metric span {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.memo-cover__metric strong {
  font-family: var(--font-mono), monospace;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
  /* 2026-10-27 (Garrett, ANT memo): headline values ("$78.70 - $105.40",
     "Not Rated / Speculative") must stay on ONE line — the pill grows to
     its value and the metrics strip wraps whole pills instead of crushing
     a value mid-line. */
  white-space: nowrap;
}

/* Amber-accented metric pill — used for the "Blended Fair Value"
   pill (the analytical answer the memo produces). Visually marks
   which number IS the memo's conclusion versus which numbers are
   context. */
.memo-cover__metric[data-tone="primary"] {
  border-color: rgba(245, 199, 127, 0.32);
  background: linear-gradient(
    180deg,
    rgba(245, 199, 127, 0.10),
    rgba(8, 13, 19, 0.92)
  );
  box-shadow: 0 0 18px rgba(245, 199, 127, 0.08);
}

.memo-cover__metric[data-tone="primary"] strong {
  color: var(--amber);
}

/* Cover divider — cyan→amber→cyan gradient marking the visual
   transition from cover summary to memo body. The gradient is twice
   as wide as the element (background-size: 200%) and slides left-
   right-left over an 8s ease-in-out cycle so the amber peak "pings"
   across the divider — same animation pattern as the site header's
   bottom glow line, just with the cover's cyan/amber palette
   instead of pure cyan. */
.memo-cover__divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--accent) 15%,
    var(--amber) 50%,
    var(--accent) 85%,
    transparent 100%
  );
  background-size: 200% 100%;
  margin-top: 4px;
  opacity: 0.85;
  animation: memo-divider-ping 8s ease-in-out infinite;
}

@keyframes memo-divider-ping {
  0%, 100% { background-position: 200% 0; }
  50% { background-position: -200% 0; }
}

/* Memo sidebar archive switcher — compact stack of recent-memo rows
   used by MemoSidebar. Paid version shows the user's recent delivered
   memos (top 6 via /api/me/jobs) with a "See all" link to the
   dashboard; sample version shows the bundled sampleLibrary with the
   current one highlighted. Each row is a horizontal flex layout with
   the ticker on the left and a short date on the right. */
/* Parent grid that defines the three column widths shared by both
   the header row and every data row below it. Subgrid (see header
   and row rules) pulls these column widths down into each child so
   "FAIR VALUE" header sits directly above the $XXX.XX values and
   "DATE" sits directly above the YYYY-MM-DD values. Without this,
   each row sized its own columns independently and labels drifted
   out of alignment with their data. */
.memo-switch-list {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) minmax(0, auto);
  /* 14px column-gap (was 8px) gives the date column visible breathing
     room from the fair-value column — at 8px the two felt jammed
     together. Subgrid children inherit this gap automatically. */
  gap: 4px 14px;
}

/* Column header for the archive switcher — uses subgrid to inherit
   the parent's three column widths so labels sit above their data
   columns. Visually subdued (smaller font, muted color, thin bottom
   border) so the header reads as scaffolding, not a competing row. */
.memo-switch-header {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  align-items: baseline;
  padding: 0 10px 6px;
  border-bottom: 1px solid rgba(169, 205, 224, 0.12);
  margin-bottom: 2px;
}

.memo-switch-header span {
  font-family: var(--font-mono), monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Match each data column's alignment so labels sit over the correct
   horizontal position: fair value centers within col 2, date
   right-aligns in col 3. */
.memo-switch-header span:nth-child(2) {
  text-align: center;
}

.memo-switch-header span:nth-child(3) {
  text-align: right;
}

/* Three-column archive row — ticker (left, mono accent) · blended
   fair value (middle, mono primary) · date (right, mono muted).
   Subgrid pulls the column widths from .memo-switch-list so header
   and data rows align column-for-column. */
.memo-switch-row {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  align-items: baseline;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  color: var(--ink);
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.memo-switch-row:hover {
  background: rgba(125, 234, 244, 0.06);
  border-color: rgba(125, 234, 244, 0.18);
}

.memo-switch-row__ticker {
  font-family: var(--font-mono), monospace;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent-ice);
}

.memo-switch-row__fair-value {
  font-family: var(--font-mono), monospace;
  font-size: 0.76rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  /* Center-align fair value within col 2 so it sits in the visual
     middle of the row with breathing room on BOTH sides — ticker on
     left, fair value in the middle, date on the right. Previously
     right-aligned, which jammed the value next to the date column
     and left a big empty gap between ticker and fair value. */
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  /* Defense against long catalog strings: without min-width:0 an
     unbreakable value's min-content width propagates up through the
     subgrid column and blows the whole sidebar rail out past its grid
     track (clipping every row under the card's overflow-x:hidden). */
  min-width: 0;
  overflow-wrap: anywhere;
}

.memo-switch-row__date {
  font-family: var(--font-mono), monospace;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
}

/* Highlighted "you are here" row — non-clickable div rather than an
   anchor (see MemoSidebar.ArchiveRow). Carries the amber accent to
   pick out the current memo against the cyan-leaning rest of the
   sidebar palette. */
.memo-switch-row--current {
  background: rgba(245, 199, 127, 0.08);
  border-color: rgba(245, 199, 127, 0.32);
  cursor: default;
}

.memo-switch-row--current .memo-switch-row__ticker {
  color: var(--amber);
}

.memo-switch-link {
  font-family: var(--font-mono), monospace;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-decoration: none;
  padding: 4px 10px;
  align-self: flex-start;
}

.memo-switch-link:hover {
  color: var(--accent-ice);
}

.distribution-card-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 0%, rgba(125, 234, 244, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(15, 24, 33, 0.96), rgba(7, 11, 17, 0.98)),
    rgba(8, 13, 19, 0.9);
}

.distribution-card-head {
  display: flex;
  /* The fixed-width caption pill + rating chip overflow the shell at
     ≤390px — let the chip wrap to a second line instead of spilling. */
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Distribution-card head pill (t_c998885d, 2026-11-08): "FAIR-VALUE-
   DISTRIBUTION" (22 chars) is wider than the 168px capsule's 148px inner
   space, so the label touched the pill's edges (clipped/ellipsized) at
   every breakpoint. Same shrink-to-fit treatment as the C5.1 .eyebrow
   long-caption fix: fit-content width with the 168px capsule as a
   MINIMUM, 14px horizontal padding, and wrap (at the hyphens) only when
   the column is too narrow to hold the label whole. Scoped to the
   distribution head so the site-wide .terminal-caption 168px contract
   stays untouched. */
.distribution-card-head .terminal-caption {
  width: fit-content;
  min-width: 10.5rem;
  max-width: 100%;
  height: auto;
  min-height: 1.75rem;
  padding: 4px 14px;
  white-space: normal;
  line-height: 1.25;
}

.distribution-card-shell h3 {
  margin: 0;
  font-family: var(--font-serif), serif;
  font-size: 1.4rem;
  color: var(--ink);
}

.distribution-card-shell p {
  margin: 0;
}

.distribution-chart-shell {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: radial-gradient(circle at top, rgba(125, 234, 244, 0.09), transparent 34%), rgba(8, 13, 19, 0.92);
}

.distribution-chart {
  width: 100%;
  /* Defensive: the SVG must never exceed its shell wherever no explicit floor
     applies. NOTE this does NOT change the ≤700px phone case — the M27 rule
     further down sets `min-width: 640px` there, and min-width always wins over
     max-width, which is why the chart still renders 640px inside a ~245px
     shell at 375px. Making it fit at that width is a legibility trade-off
     (see the note on the M27 block), not a CSS oversight. */
  max-width: 100%;
  height: auto;
}

.distribution-area {
  fill: rgba(125, 234, 244, 0.14);
}

.distribution-curve {
  fill: none;
  stroke: rgba(125, 234, 244, 0.92);
  stroke-width: 4;
  stroke-linecap: round;
}

.distribution-guide {
  stroke: rgba(169, 205, 224, 0.24);
  stroke-width: 2;
}

.distribution-marker {
  fill: rgba(244, 251, 255, 0.98);
  stroke: rgba(7, 17, 15, 0.96);
  stroke-width: 3;
}

.distribution-label,
.distribution-value,
.distribution-current-text {
  font-family: var(--font-mono), monospace;
  text-anchor: middle;
}

.distribution-label {
  fill: var(--accent);
  font-size: 16px;
  letter-spacing: 0.08em;
}

.distribution-value {
  fill: var(--muted);
  font-size: 14px;
}

.distribution-current-line {
  stroke: rgba(125, 234, 244, 0.92);
  stroke-width: 3;
  stroke-dasharray: 10 8;
}

.distribution-current-pill {
  fill: rgba(125, 234, 244, 0.14);
  stroke: rgba(125, 234, 244, 0.4);
  stroke-width: 2;
}

.distribution-current-text {
  fill: #eff9ff;
  font-size: 15px;
  font-weight: 600;
}

.memo-heading {
  display: grid;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(169, 205, 224, 0.1);
}

.memo-heading:first-child {
  padding-top: 0;
  border-top: 0;
}

.settings-row--compact {
  padding: 12px 14px;
}

.settings-row--compact strong {
  max-width: 58%;
}



.toc-list {
  display: grid;
  gap: 10px;
}

.toc-link {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(8, 13, 19, 0.8);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.toc-link span {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.toc-link strong {
  color: var(--ink);
  font-size: 0.95rem;
}

/* Top-level memo sections (H2s — "3 Variant Perception", "5 Valuation
   and Distribution Math", etc.) get a subtle cyan glow so they pop
   against the H3 subsection entries below them. Bumps the border to a
   cyan tint and adds a small box-shadow halo. Subsections (data-level
   3) keep the muted default state. */
.toc-link[data-level="2"] {
  border-color: rgba(125, 234, 244, 0.32);
  background: linear-gradient(
    180deg,
    rgba(125, 234, 244, 0.08),
    rgba(8, 13, 19, 0.82)
  );
  box-shadow: 0 0 14px rgba(125, 234, 244, 0.08);
}

.toc-link[data-level="2"] strong {
  color: var(--accent-ice);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.toc-link[data-level="2"]:hover,
.toc-link[data-level="2"]:focus-visible {
  border-color: rgba(125, 234, 244, 0.5);
  box-shadow: 0 0 22px rgba(125, 234, 244, 0.14);
}

.toc-link[data-level="3"]:hover,
.toc-link[data-level="3"]:focus-visible {
  border-color: rgba(125, 234, 244, 0.22);
}

.table-shell {
  /* Positioning context for the ≤430px right-edge swipe fade (M-07). */
  position: relative;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(4, 8, 13, 0.98);
}

.table-shell table {
  width: 100%;
  border-collapse: collapse;
}

/* Two-column metric tables (Metric | Value) — the value column must own
   the width. The §7.3 AI Exposure table's long values were crushed by
   auto layout favoring the label column (2026-10-08, Garrett). Fixed
   layout with a 34/66 split, scoped to 2-column tables ONLY (the
   signals, forecast, and risk tables keep their auto layout). */
.table-shell table:has(> thead > tr > th:nth-child(2):last-child) {
  table-layout: fixed;
}

.table-shell table:has(> thead > tr > th:nth-child(2):last-child) th:first-child,
.table-shell table:has(> thead > tr > th:nth-child(2):last-child) td:first-child {
  width: 34%;
}

.table-shell th,
.table-shell td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(169, 205, 224, 0.1);
  text-align: left;
  /* Override the global `overflow-wrap: anywhere` so short categorical
     values ("Ambiguous", "Tailwind", "Headwind", "Ramping",
     "Recurring") don't break mid-letter when the column is narrow —
     `anywhere` collapses a column's min-content width, so auto-layout
     tables could crush those columns. `break-word` keeps min-content
     at full word width (auto layouts are unchanged) but still breaks
     a single long word ("marketing-preference", "Adjustment") that
     overflows its fixed-layout cell instead of letting it poke into
     the neighbor cell. The parent .table-shell has overflow-x: auto
     so horizontal scrolling kicks in if a row genuinely can't fit. */
  overflow-wrap: break-word;
  word-break: normal;
}

/* Memo citation links — `[N]` in prose that point to a specific row
   of the §8.1 Extracted Signals table. Styled subtly so they read as
   tappable references without becoming visually loud against the
   prose. Cyan tint with hover lift; scroll-margin-top on the target
   so the anchored row lands clear of the sticky site header. */
.memo-citation {
  display: inline;
  color: var(--accent);
  font-family: var(--font-mono), monospace;
  font-size: 0.86em;
  text-decoration: none;
  border-bottom: 1px dashed rgba(125, 234, 244, 0.32);
  padding-bottom: 1px;
  transition: color 160ms ease, border-color 160ms ease;
}

.memo-citation:hover,
.memo-citation:focus-visible {
  color: var(--accent-ice);
  border-bottom-color: rgba(125, 234, 244, 0.7);
}

/* Signal-row anchor target — when a citation link jumps to a row of
   the §8.1 table, push the row 140px below the sticky header so it
   lands in clean view, and briefly highlight it so the reader's eye
   catches where they landed. */
tr[id^="signal-"] {
  scroll-margin-top: 140px;
}

tr[id^="signal-"]:target {
  background: rgba(245, 199, 127, 0.08);
  outline: 1px solid rgba(245, 199, 127, 0.28);
  animation: signal-row-flash 1.6s ease-out;
}

@keyframes signal-row-flash {
  0% {
    background: rgba(245, 199, 127, 0.22);
  }
  100% {
    background: rgba(245, 199, 127, 0.08);
  }
}

.table-shell th {
  color: var(--accent);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.memo-section {
  display: grid;
  gap: 8px;
}

.markdown p,
.markdown li {
  color: var(--ink-soft);
}

.markdown ul,
.markdown ol {
  padding-left: 1.2rem;
  display: grid;
  gap: 8px;
}

.markdown h1,
.markdown h2,
.markdown h3 {
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.markdown h2 {
  margin-top: 0;
  font-size: clamp(1.55rem, 2vw, 1.95rem);
}

.markdown h3 {
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.markdown pre,
.markdown code {
  font-family: var(--font-mono), monospace;
}

.markdown a {
  color: var(--accent);
}

.markdown pre {
  padding: 16px;
  overflow-x: auto;
  border-radius: 16px;
  background: rgba(4, 8, 13, 0.96);
  color: #f7f7f7;
  border: 1px solid rgba(169, 205, 224, 0.14);
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 1em;
  background: var(--accent);
  margin-left: 4px;
  vertical-align: middle;
  animation: blink 1.1s step-end infinite;
}

/* Pointer focus only. These rules are (0,2,0) and beat the universal
   focus-visible ring at (0,1,1) regardless of source order, so `outline: none`
   used to win on every text field for keyboard users too — leaving only a
   border/shadow change measuring ~2.25:1 against the unfocused state, under
   the 3:1 WCAG 1.4.11 requires of a state indicator. Scoping to
   :focus:not(:focus-visible) keeps the treatment for mouse users and lets the
   cyan ring through for keyboard focus. */
.input:focus:not(:focus-visible),
.select:focus:not(:focus-visible),
.textarea:focus:not(:focus-visible) {
  outline: none;
  border-color: rgba(125, 234, 244, 0.42);
  box-shadow: 0 0 0 3px rgba(125, 234, 244, 0.08);
}

/* Keyboard focus keeps the same border/glow, plus the universal ring. */
.input:focus-visible,
.select:focus-visible,
.textarea:focus-visible {
  border-color: rgba(125, 234, 244, 0.42);
  box-shadow: 0 0 0 3px rgba(125, 234, 244, 0.08);
}

.ticker-input-wrapper {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
}
.ticker-input-wrapper > input {
  flex: 1 1 180px;
  min-width: 0;
}
.ticker-input-wrapper > button {
  flex: 0 0 auto;
}
.ticker-input {
  font-size: 1.6rem;
  font-weight: 700;
  padding: 16px 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(125, 234, 244, 0.28);
  background: rgba(8, 13, 19, 0.96);
  color: var(--accent-ice);
  border-radius: 14px;
  font-family: var(--font-mono), monospace;
}
.ticker-input:focus:not(:focus-visible) {
  outline: none;
  border-color: rgba(125, 234, 244, 0.54);
  box-shadow: 0 0 0 4px rgba(125, 234, 244, 0.1);
}

.ticker-input:focus-visible {
  border-color: rgba(125, 234, 244, 0.54);
  box-shadow: 0 0 0 4px rgba(125, 234, 244, 0.1);
}
.ticker-input::placeholder {
  color: rgba(125, 234, 244, 0.45);
  font-weight: 400;
}

.engine-timeline {
  display: flex;
  flex-direction: row;
  gap: 18px;
  position: relative;
}
/* Methodology-style multi-strand wire bundle running the full width
   behind the engine tiles. Reuses the .pipeline-flow__current pulse
   and flicker animations so the electrical aesthetic matches the
   methodology page exactly. Tiles sit at z-index 1 above the SVG;
   their translucent backgrounds let the bundle read faintly through
   each card while showing crisply in the gaps — the row reads as
   five charged stages on a live cable. */
.engine-timeline__current {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 92px;
  transform: translateY(-50%);
  z-index: 0;
  pointer-events: none;
  filter:
    drop-shadow(0 0 4px rgba(125, 234, 244, 0.45))
    drop-shadow(0 0 12px rgba(125, 234, 244, 0.18));
  overflow: visible;
}
.engine-timeline-step {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 12px 14px;
  position: relative;
  z-index: 1;
  border-radius: 12px;
  /* Default = pending/downstream. A dark translucent backdrop (set via
     background-COLOR so the state tints below can layer their own
     background-IMAGE on top) dims the wire bundle behind the tile so the
     label + detail text stay readable, while the 18px gaps between tiles show
     the cable crisply. Extra blur softens the strands behind the glass. */
  border: 1px solid rgba(245, 199, 127, 0.20);
  background-color: rgba(8, 15, 21, 0.5);
  background-image: none;
  box-shadow: 0 0 14px rgba(245, 199, 127, 0.06);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: border-color 300ms ease, background-color 300ms ease, box-shadow 300ms ease;
}
.engine-timeline-step[data-state="done"] {
  border-color: rgba(125, 234, 244, 0.35);
  background-image: linear-gradient(rgba(125, 234, 244, 0.07), rgba(125, 234, 244, 0.07));
  box-shadow: 0 0 14px rgba(125, 234, 244, 0.10);
}
.engine-timeline-step[data-state="active"] {
  border-color: rgba(245, 199, 127, 0.55);
  /* Cyan/amber blended tint layered over the dark base (background-image so it
     composes with the base background-color instead of replacing it). */
  background-image:
    linear-gradient(
      135deg,
      rgba(125, 234, 244, 0.06) 0%,
      rgba(245, 199, 127, 0.10) 100%
    );
  /* Outer halo: two pulses per cycle (cyan → amber) with ease-in-out
     ramps so each peak rises and falls instead of snapping. Reads as
     a charged reactor humming, not a strobe. */
  /* lp-tile-breath ("THE CURRENT"): a gentle 0.5% scale breath layered under
     the halo pulse — transform only, no layout thrash. */
  animation: engine-cloud-pulse 2.4s ease-in-out infinite, lp-tile-breath 5s ease-in-out infinite;
  overflow: hidden;
}
/* Electron cloud over the active tile. Two offset radial gradients
   (cyan top-left, amber bottom-right) blurred and rotated together,
   with opacity flickers between keyframes so the orbit "crackles"
   rather than gliding. mix-blend-mode: screen brightens the
   underlying tile fill rather than darkening it. The tile owns
   overflow: hidden above so the orbit clips to the rounded corners
   instead of bleeding into neighbors. */
.engine-timeline-step[data-state="active"]::after {
  content: "";
  position: absolute;
  inset: -10%;
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 55% 75% at 28% 32%,
      rgba(125, 234, 244, 0.44) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse 65% 55% at 72% 70%,
      rgba(245, 199, 127, 0.48) 0%,
      transparent 55%
    );
  filter: blur(12px);
  mix-blend-mode: screen;
  animation: electron-orbit 4.2s ease-in-out infinite;
}

/* Orbital shells: smooth rotation with mild opacity swell. The
   outer halo carries the "electric" energy via box-shadow; this
   layer adds depth and a quiet drift, not flash. */
@keyframes electron-orbit {
  0%   { transform: rotate(0deg)   scale(1.00); opacity: 0.65; }
  25%  { transform: rotate(90deg)  scale(1.04); opacity: 0.88; }
  50%  { transform: rotate(180deg) scale(0.96); opacity: 0.78; }
  75%  { transform: rotate(270deg) scale(1.04); opacity: 0.88; }
  100% { transform: rotate(360deg) scale(1.00); opacity: 0.65; }
}
.engine-timeline-step[data-state="failed"] {
  border-color: rgba(255, 139, 139, 0.4);
  background-image: linear-gradient(rgba(255, 139, 139, 0.09), rgba(255, 139, 139, 0.09));
  box-shadow: 0 0 14px rgba(255, 139, 139, 0.18);
}
.engine-timeline-dot {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: rgba(8, 13, 19, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  flex-shrink: 0;
  z-index: 1;
  position: relative;
  transition: border-color 300ms ease, color 300ms ease, background 300ms ease;
}
.engine-timeline-step[data-state="done"] .engine-timeline-dot {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(125, 234, 244, 0.1);
}
.engine-timeline-step[data-state="active"] .engine-timeline-dot {
  border-color: var(--amber);
  color: var(--amber);
  background: rgba(255, 204, 122, 0.1);
  animation: pulse-dot 1.4s ease-in-out infinite;
}
.engine-timeline-step[data-state="failed"] .engine-timeline-dot {
  border-color: var(--danger);
  color: var(--danger);
  background: rgba(255, 139, 139, 0.1);
}
.engine-timeline-header {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-wrap: nowrap;
}
.engine-timeline-label {
  min-width: 0;
  flex: 1 1 auto;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  /* Wrap to a second line rather than truncating with an ellipsis. On a
     1180–1500px viewport (e.g. a 1920px monitor at 150% OS scaling) the five
     tiles get too narrow for the longest labels ("Valuation Modeling",
     "Reasoning Inference"); wrapping keeps them fully legible instead of
     clipping. At wider widths each label still fits on one line unchanged. */
  white-space: normal;
  overflow-wrap: break-word;
  line-height: 1.2;
}
.engine-timeline-step[data-state="done"] .engine-timeline-label { color: var(--accent); }
.engine-timeline-step[data-state="active"] .engine-timeline-label { color: var(--amber); }
.engine-timeline-step[data-state="failed"] .engine-timeline-label { color: var(--danger); }
.engine-timeline-detail {
  font-size: 0.76rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}

/* Below ~720px viewport the 5-tile row gets too cramped — collapse
   back to a vertical column. The wire bundle SVG is hidden in the
   mobile layout since it's designed for horizontal flow; tiles
   stack with their own state-colored borders carrying the
   progression cue. */
/* Pipeline-provided "muted" pill tone (T' low-confidence values): the
   intended de-emphasis was silently dropped before this variant existed. */
.memo-cover__metric[data-tone="muted"] { opacity: 0.72; }
.memo-cover__metric[data-tone="muted"] strong { color: var(--muted); }

/* ── Memo qualifier sub-lines (2026-07-28 memo-page audit) ──────────────
   T'-generation caveats ("envelope caveat", "low-confidence", "model lean:
   Underperform") render as muted sub-lines under the clean value instead of
   inline parentheticals drowning the cover pills / sidebar rows. */
/* Memo-sidebar fact rows: values here are short numerics ("54.25") or
   space-separated phrases — the account page's break-anywhere guard (for
   unbreakable UUID tokens) makes digits wrap mid-number in the narrow rail.
   Words still wrap at spaces. */
.memo-sidebar .settings-row--compact strong {
  overflow-wrap: normal;
  word-break: keep-all;
}

.memo-cover__qualifiers,
.settings-row__qualifiers {
  display: block;
  font-style: normal;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  line-height: 1.35;
  color: var(--amber);
  opacity: 0.85;
  margin-top: 3px;
  font-weight: 400;
}

/* 2026-10-29 (Garrett, FTNT memo card): the caveat sub-line must wrap by
   words instead of ballooning its pill. The qualifier pair ("envelope
   caveat · low-confidence", ~223px intrinsic) was forcing the Fair Value
   pill to ~261px, which pushed the four headline pills (View / Current
   Price / Fair Value / Range) onto two rows at common widths (952px of
   pill content vs 851px strip at 1280). Capping the sub-line at 12em
   keeps single-caveat labels ("envelope caveat", ~104px) on ONE line
   while the pair wraps cleanly at the "·" into TWO lines — the pill
   shrinks to its value width, and the strip holds the headline row on
   one line, no wrapping, no crushing. Same containment as the share-card
   sub-note (max-width keeps wrapped lines inside the cell) and the
   KO/ANT memo fixes. Cover-only: the sidebar's .settings-row__qualifiers
   keeps its current sizing. */
.memo-cover__qualifiers {
  max-width: 12em;
}

/* ── First-run moment (free-first-memo promo, 2026-07-28) ──────────────
   The first-run note on the Run Terminal panel. (Suggested-ticker chips
   were removed 2026-09-09 — the input + placeholder is the prompt.) */
.run-memo__firstnote { margin: 0; color: var(--muted); font-size: 0.9rem; }
.run-memo__firstnote a { color: var(--accent); }

/* ── 2026-07-28 Run Status redesign ─────────────────────────────────────
   Big header clock (the number customers actually watch) + per-stage
   timers derived from the events stream. */
.live-pipeline__headright { display: flex; align-items: center; gap: 14px; }
.live-pipeline__clock {
  display: flex; flex-direction: column; align-items: flex-end; gap: 1px;
  line-height: 1;
}
.live-pipeline__clock-label {
  font-family: var(--font-mono, monospace);
  font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
.live-pipeline__clock strong {
  font-family: var(--font-mono, monospace);
  font-size: 1.35rem; font-weight: 700; color: var(--amber);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 12px rgba(245, 199, 127, 0.35);
}
.engine-timeline-time {
  margin-left: auto;
  flex: none;
  font-family: var(--font-mono, monospace);
  font-size: 0.7rem; color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.engine-timeline-time[data-live] { color: var(--amber); }
.engine-timeline-step[data-state="done"] .engine-timeline-time { color: var(--accent); }

@media (max-width: 720px) {
  .engine-timeline {
    flex-direction: column;
    gap: 8px;
  }
  /* Compact stage ROWS on phones (2026-07-28 redesign): the old stacked
     cards each burned ~130px of mostly-empty height, pushing the timers and
     the queue off-screen for the whole 4-minute run. A row = dot + label +
     stage timer, ~44px; the five together fit above the fold with the
     queue visible. The per-stage `sub` description is desktop flavor —
     hidden here (the stage names are self-explanatory in sequence). */
  .engine-timeline-step {
    flex: 0 0 auto;
    padding: 9px 12px;
    gap: 0;
    min-width: 0;
    /* The active step's ::after electron cloud (inset: -10%) otherwise
       adds ~33px of horizontal scroll on the compact row layout. */
    overflow: hidden;
  }
  .engine-timeline-step .engine-timeline-detail { display: none; }
  .engine-timeline-header { width: 100%; }
  .engine-timeline__current {
    display: none;
  }
  /* "THE CURRENT": no horizontal connectors in the stacked column layout. */
  .lp-connector-burst { display: none; }
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 204, 122, 0.3); }
  50% { box-shadow: 0 0 0 6px rgba(255, 204, 122, 0); }
}

/* Reactor halo on the active engine step. Two pulses per 2.4s cycle
   — cyan dominant at 30%, amber dominant at 70% — with ease-in-out
   so each peak rises and falls smoothly. Four glow rings (edge +
   near + mid + outer plume) stack to read as a charged field, not
   a single drop-shadow. Lower amplitude than a strobe; the dim
   baseline still carries a faint amber glow so the tile never goes
   "dark" between peaks. */
@keyframes engine-cloud-pulse {
  0% {
    box-shadow:
      0 0 0 1px rgba(245, 199, 127, 0.24),
      0 0 14px rgba(245, 199, 127, 0.22),
      0 0 30px rgba(125, 234, 244, 0.12),
      0 0 50px rgba(245, 199, 127, 0.08);
  }
  30% {
    box-shadow:
      0 0 0 1px rgba(125, 234, 244, 0.52),
      0 0 24px rgba(125, 234, 244, 0.48),
      0 0 46px rgba(245, 199, 127, 0.24),
      0 0 72px rgba(125, 234, 244, 0.14);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(245, 199, 127, 0.30),
      0 0 16px rgba(245, 199, 127, 0.26),
      0 0 32px rgba(125, 234, 244, 0.14),
      0 0 54px rgba(245, 199, 127, 0.08);
  }
  70% {
    box-shadow:
      0 0 0 1px rgba(245, 199, 127, 0.56),
      0 0 28px rgba(245, 199, 127, 0.52),
      0 0 52px rgba(125, 234, 244, 0.22),
      0 0 80px rgba(245, 199, 127, 0.14);
  }
  100% {
    box-shadow:
      0 0 0 1px rgba(245, 199, 127, 0.24),
      0 0 14px rgba(245, 199, 127, 0.22),
      0 0 30px rgba(125, 234, 244, 0.12),
      0 0 50px rgba(245, 199, 127, 0.08);
  }
}

/* ─── Terminal redesign ─── */

.terminal-page-header {
  display: grid;
  /* Three children: brand (auto) + welcome cluster (1fr, centered)
     + actions cluster (auto). The welcome stays visually centered
     between brand and actions; actions hold Account + Sign-out so
     we no longer need the SettingsPanel collapsible below. */
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 0%, rgba(125, 234, 244, 0.1), transparent 40%),
    linear-gradient(180deg, rgba(19, 28, 38, 0.96), rgba(8, 13, 19, 0.96)),
    rgba(8, 13, 19, 0.92);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.terminal-page-header::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(125, 234, 244, 0.012) 2px,
      rgba(125, 234, 244, 0.012) 4px
    );
}

.terminal-page-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(125, 234, 244, 0.4) 50%,
    transparent 100%
  );
}

.terminal-header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.terminal-header-brand .terminal-caption {
  margin: 0;
}

.terminal-header-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.terminal-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.terminal-header-welcome {
  font-family: var(--font-serif), serif;
  font-size: 1rem;
  color: var(--ink);
}

.terminal-session-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.terminal-session-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  /* Cyan at rest, amber at peak. Both the dot fill AND the halo
     ramp together over 3.4s so the bright amber halo visually
     "covers" the cyan dot when it peaks, then the dot fades back
     to cyan as the halo dims. Reads as a calm reactor breath
     rather than a fast warning blink. */
  box-shadow:
    0 0 6px rgba(245, 199, 127, 0.35),
    0 0 12px rgba(245, 199, 127, 0.12);
  animation: session-pulse 3.4s ease-in-out infinite;
}

@keyframes session-pulse {
  0%, 100% {
    background: var(--accent);
    box-shadow:
      0 0 6px rgba(245, 199, 127, 0.35),
      0 0 12px rgba(245, 199, 127, 0.12);
  }
  50% {
    background: var(--amber);
    box-shadow:
      0 0 18px rgba(245, 199, 127, 0.95),
      0 0 32px rgba(245, 199, 127, 0.40);
  }
}

@keyframes wallet-offers-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Run memo panel ─── */

.run-memo-card {
  display: grid;
  gap: 18px;
  position: relative;
}

/* Methodology-hero watermark behind the run-memo card. Reuses the
   same bell-curve + creek + hound illustration that sits at the top
   of /methodology, biased to the right so the hound silhouette is
   the visible anchor. Low opacity (0.10) so it tints the card's
   interior without competing with the title / input / button stack
   above it. The card already has overflow:hidden (from .card) so
   the image crops cleanly at the rounded corners. */
.run-memo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url(/methodology-hero.webp);
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
}

/* Lift every direct child above the watermark layer. The pseudo is
   stripped from the cascade automatically (`> *` only matches real
   children), so it keeps its z-index 0 + position absolute. */
.run-memo-card > * {
  position: relative;
  z-index: 1;
}

@keyframes overlay-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes success-pop {
  0% { opacity: 0; transform: scale(0.96); }
  60% { transform: scale(1.01); }
  100% { opacity: 1; transform: scale(1); }
}

.archive-price {
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.archive-price--muted {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.88rem;
}

/* ─── TOS Agreement Modal ─── */

.tos-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  /* A dialog taller than the viewport (short landscape phones; the
     run-confirm variant, which carries no height cap of its own) used to clip
     against this fixed box with no way to reach the footer — a fixed
     element's overflow never joins the document's scrollable region, so the
     Cancel / Confirm & Run row simply could not be reached. Scroll inside the
     overlay instead. `safe center` keeps the centered look but refuses to
     push the top edge out of reach; browsers without it keep the plain
     `center` declared above. */
  overflow-y: auto;
  overscroll-behavior: contain;
  align-items: safe center;
  background: rgba(4, 8, 14, 0.92);
  backdrop-filter: blur(12px);
  animation: tos-fadein 0.3s ease-out;
}

@keyframes tos-fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}

.tos-modal {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 680px;
  max-height: 88vh;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: var(--bg-elevated);
  box-shadow:
    0 0 60px rgba(125, 234, 244, 0.06),
    0 24px 80px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.tos-modal-header {
  padding: 28px 28px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(125, 234, 244, 0.03);
}

.tos-modal-header h2 {
  margin: 10px 0 8px;
  font-family: var(--font-serif), serif;
  font-size: 1.5rem;
  color: var(--ink);
}

.tos-modal-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.tos-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px;
  scrollbar-width: thin;
  scrollbar-color: rgba(125, 234, 244, 0.2) transparent;
}

.tos-modal-body::-webkit-scrollbar {
  width: 6px;
}

.tos-modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.tos-modal-body::-webkit-scrollbar-thumb {
  background: rgba(125, 234, 244, 0.2);
  border-radius: 3px;
}

.tos-version-badge {
  display: inline-block;
  padding: 4px 12px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.76rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tos-section {
  margin-bottom: 24px;
}

.tos-section h3 {
  margin: 0 0 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.tos-section p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.65;
}

.tos-section--final {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
}

.tos-section--final p {
  color: var(--ink);
  font-weight: 500;
}

.tos-scroll-hint {
  padding: 8px 28px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--accent);
  background: rgba(125, 234, 244, 0.04);
  border-top: 1px solid var(--line);
  animation: tos-hint-pulse 2s ease-in-out infinite;
}

.tos-modal-footer {
  padding: 20px 28px;
  border-top: 1px solid var(--line);
  background: rgba(125, 234, 244, 0.03);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tos-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 0.86rem;
  color: var(--ink);
  line-height: 1.5;
}

.tos-checkbox-label input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border: 2px solid var(--line-strong);
  border-radius: 5px;
  background: var(--bg);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.tos-checkbox-label input[type="checkbox"]:checked {
  border-color: var(--accent);
  background: var(--accent);
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='%23091018' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
  background-size: 14px;
  background-position: center;
  background-repeat: no-repeat;
}

.tos-checkbox-label input[type="checkbox"]:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.tos-modal-footer .button {
  width: 100%;
  text-align: center;
  justify-content: center;
}

/* Footnote under the accept/decline pair on the ToS gate: the gate replaces
   the whole shell, so this is the only place the full policies and the
   consequence of declining can be stated. */
.tos-decline-note {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}

.tos-decline-note a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Run-confirm dialog ─────────────────────────────────────────────
   Reuses the ToS modal shell (.tos-overlay / .tos-modal) for the
   "confirm this run" prompt on the dashboard run terminal. Short
   content, so it's narrower and doesn't force the tall scrolling body. */
.tos-modal--confirm {
  max-width: 460px;
  /* Was `max-height: none`, which let the dialog outgrow a short viewport and
     clip its own footer. Cap it at every width (the ≤760px bottom sheet
     re-states its own cap) and let the body scroll — short content, the
     normal case, is unaffected because the body never reaches the cap. */
  max-height: 92vh;
  max-height: calc(100dvh - 48px);
}

.tos-modal--confirm .tos-modal-body {
  overflow-y: auto;
}

.run-confirm__ticker {
  font-family: var(--font-mono), ui-monospace, monospace;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.run-confirm__body p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.6;
}

.run-confirm__body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.run-confirm__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* These sit side by side — override the footer's full-width button rule. */
.run-confirm__actions .button {
  width: auto;
}

@media (max-width: 640px) {
  .tos-overlay {
    padding: 12px;
  }

  .tos-modal {
    max-height: 94vh;
    border-radius: 14px;
  }

  .tos-modal-header,
  .tos-modal-body,
  .tos-modal-footer {
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* ─── Terminal responsive overrides ─── */

@media (max-width: 920px) {
  .terminal-page-header {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .terminal-header-brand {
    justify-content: center;
  }
  
  
  
  .archive-table-row .archive-cell--price,
  .archive-table-row .archive-cell--p50 {
    display: none;
  }
}

@media (max-width: 640px) {
  .terminal-page-header {
    padding: 16px;
  }
  
}

@keyframes header-glow-slide {
  0%, 100% { background-position: 200% 0; }
  50% { background-position: -200% 0; }
}

@keyframes heading-shimmer {
  0%, 100% { background-position: 100% 50%; }
  50% { background-position: 0% 50%; }
}

/* Caption + primary-CTA warm pulse. Three things animate in sync:
   the amber band sweeping through the text via background-position
   on the first (text-clipped) layer, the border color shifting from
   cyan to amber and back, and the box-shadow glow color/intensity
   rising into amber at the peak. The second background-position is
   pinned to 0% 0% because the cyan pill gradient is fixed-size and
   doesn't need to animate. */
@keyframes caption-sweep-glow {
  0%, 100% {
    background-position: 100% 50%, 0% 0%;
    border-color: rgba(125, 234, 244, 0.45);
    box-shadow:
      0 0 16px rgba(125, 234, 244, 0.10),
      0 0 4px rgba(125, 234, 244, 0.06);
  }
  50% {
    background-position: 0% 50%, 0% 0%;
    border-color: rgba(245, 199, 127, 0.55);
    box-shadow:
      0 0 24px rgba(245, 199, 127, 0.22),
      0 0 6px rgba(245, 199, 127, 0.12);
  }
}

@keyframes hero-card-float {
  0%, 100% {
    box-shadow:
      0 30px 90px rgba(0, 0, 0, 0.46),
      0 0 40px rgba(125, 234, 244, 0.04);
  }
  50% {
    box-shadow:
      0 36px 100px rgba(0, 0, 0, 0.5),
      0 0 60px rgba(125, 234, 244, 0.08);
  }
}

@keyframes brand-breathe {
  /* Cyan halo around the floating medallion. drop-shadow follows the
     image's alpha channel (the circular silhouette + diamond accents)
     rather than the element's rectangular bounds — gives the medallion
     a soft glow that pulses gently every 4 seconds. */
  0%, 100% {
    filter: drop-shadow(0 0 6px rgba(125, 234, 244, 0.20));
  }
  50% {
    filter: drop-shadow(0 0 14px rgba(125, 234, 244, 0.38));
  }
}

@keyframes pulse-sweep {
  from {
    transform: translateX(0%);
    filter: brightness(0.92);
  }

  to {
    transform: translateX(24%);
    filter: brightness(1.16);
  }
}

@media (max-width: 920px) {
  .hero,
  .panel-grid,
  .memo-terminal,
  .policy-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    position: static;
  }

  /* Garrett 2026-10-01: terminal trio a few px tighter on mobile too; the
     stage chain stays one line via .terminal-line--status nowrap + ellipsis. */
  .hero-card .terminal-lines { gap: 9px; margin: 6px 0 4px; }

  .memo-sidebar,
  .policy-sidebar {
    position: static;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Mobile: footer top row stacks — brand goes full width on its own
     line, links fall below as a 2-row grid. The bottom foundation
     strip stays as a separate block below the divider. */
  .site-footer__top {
    grid-template-columns: 1fr;
    align-items: flex-start;
    /* C5.1 (2026-10-04): 10px → 24px — the stacked brand block and the
       link grid below get the same proportional breathing room as the
       wider desktop gap. */
    gap: 24px;
  }
  .site-footer__brand {
    max-width: 100%;
    width: 100%;
    justify-content: flex-start;
  }
  .site-footer__top > .footer-links {
    max-width: 100%;
    width: 100%;
    justify-content: center;
  }
  /* Footer link grid: Product and Resources side by side in row 1,
     Legal spans both columns on its own row below — the pair is centered
     in the card and Legal's internal columns fill the row so its right
     edge aligns with Resources. */
  .site-footer__top > .footer-links {
    align-items: flex-start;
  }
  .footer-links__row {
    justify-content: flex-start;
  }
  .footer-links {
    display: grid;
    grid-template-columns: repeat(2, auto);
    /* C5.1 (2026-10-04): 16px → 24px, scaling with the wider desktop
       column gap so the groups stay distinct on mobile too. */
    column-gap: 24px;
    row-gap: 24px;
    align-items: start;
  }
  .footer-col {
    /* C5 review (2026-10-04): links center under their column title on
       mobile as well. */
    align-items: center;
  }
  .footer-col:last-child {
    grid-column: 1 / -1;
  }
  .footer-col__grid {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  /* Mobile: tighten footer spacing and vertical rhythm — the stacked
     columns and long disclosure text make the footer too tall. */
  .site-footer {
    gap: 8px;
    padding: 12px 14px;
  }
  /* The disclosure has no label anymore (C5 review 2026-10-04) — nothing
     left to re-stack on narrow screens. */
  .site-footer__bottom {
    padding-top: 8px;
  }
  .site-footer__disclosure p {
    line-height: 1.4;
  }
  .site-footer__bottom .terminal-note {
    line-height: 1.4;
  }

  .nav {
    justify-content: flex-start;
    width: 100%;
  }

  

  .memo-stat-grid,
  .memo-kpi-grid,
  .memo-kpi-ribbon,
  .memo-summary-grid,
  .memo-data-board--company {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

/* P2 FE-34 (2026-09-21): the archive table drops to card mode at 1180px, not
   920px.
   The full Archive's extended grid declares nine columns whose MINIMUM widths
   plus gaps and padding total ~900px. Inside the terminal shell the content
   band is the viewport minus 271px (215px sidebar + 2x28px padding) minus the
   card's own padding — about 773px at a 1024px viewport. The table therefore
   overflowed by ~130px into a horizontal scroll whose only cue was a 28px
   edge fade, and the column it pushed off-screen was the LAST one: Open Memo
   and Run again. The row's primary actions were unreachable without
   discovering a scroll nobody signals. 1180px is where the band finally
   clears the grid's minimum (and is already the dashboard's own
   single-column collapse point). Below it the card layout — which puts the
   actions back in normal flow — takes over. */
@media (max-width: 1180px) {
  .memo-archive-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .memo-archive-head {
    display: none;
  }
}

@media (max-width: 640px) {
  .site-shell {
    padding: 16px;
  }

  .metric-grid,
  .memo-stat-grid,
  .signal-strip,
  .workspace-summary-grid,
  .telemetry-grid,
  .archive-card-grid,
  .memo-cover-band,
  .memo-lead-grid,
  .memo-market-strip,
  .memo-kpi-grid,
  .memo-kpi-ribbon,
  .memo-summary-grid,
  .memo-signal-row,
  .memo-provenance-grid,
  .memo-library-grid {
    grid-template-columns: 1fr;
  }

  /* Mobile hero terminal: tighten the status line's mono size so the full
     stage chain fits where it can; the ellipsis clips the rest. */
  .terminal-line--status {
    font-size: 0.8rem;
  }

  .button,
  .button--ghost {
    width: 100%;
  }

  /* Nav buttons should stay inline, not full-width */
  .nav .button,
  .nav .button--ghost {
    width: auto;
  }

  /* Mobile header (C2 audit 2026-07-28): the marketing header is tall on
     phones (brand + wrapped nav + auth cluster ≈ 300px) — sticky, it ate a
     fifth of the viewport on every scroll of a memo read. Let it scroll
     away like normal page chrome; the reading aids (progress bar, section
     jump) own in-page navigation on phones. */
  .site-header {
    position: static;
    padding: 12px 16px;
    gap: 12px;
    margin-bottom: 16px;
    border-radius: 14px;
    flex-wrap: wrap;
  }

  /* Authed header controls (plan pill + Sign Out) overflowed the header's
     right edge at 375px — half-clipped tap targets on every marketing-chrome
     page while signed in. Let the cluster take its own wrapped row and keep
     long usernames/emails from forcing the width. */
  .site-header .nav {
    flex: 1 1 100%;
    min-width: 0;
    justify-content: flex-start;
    /* The compact-header block below sets `.nav { flex-wrap: nowrap }` for the
       signed-OUT row. Signed in, the cluster adds an identity pill + Sign Out
       to the same row: measured 444px of content in a 341px header whose base
       rule is overflow:hidden, so the pill was clipped ~86px past the right
       edge of a 375px viewport (worse in production — real addresses are
       longer than the dev fixture). Wrap to a second line instead of clipping;
       the header is position:static at this width, so the extra row costs
       nothing on scroll. */
    flex-wrap: wrap;
  }
  .site-header .auth-cluster {
    min-width: 0;
    justify-content: flex-start;
  }
  .site-header .auth-email {
    /* 46vw alone let the pill claim ~172px of a 313px row. Cap it in ch as
       well so it cannot dominate the wrapped line at any width in this band. */
    max-width: min(46vw, 18ch);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav {
    flex-wrap: wrap;
    gap: 8px;
  }

  

  .settings-row,
  .metric-row,
  .workspace-shell-head,
  .policy-card-head,
  .memo-archive-row {
    flex-direction: column;
  }

  .settings-row strong {
    max-width: 100%;
    text-align: left;
  }

  /* Stacked direction loses the row-flex shrink that keeps the prose
     label inside the row — cap it so the nowrap label ellipsizes at the
     row edge instead of painting past it ("Implied Return to
     Sector-Anchor Fair Value" is wider than a 375px rail). */
  .settings-row--prose > span {
    max-width: 100%;
  }

  .memo-archive-row {
    display: flex;
    align-items: flex-start;
    padding: 14px 16px;
  }

  .memo-archive-cell--action {
    width: 100%;
    justify-content: stretch;
  }

  .memo-archive-cell--action .button {
    width: 100%;
  }

  /* ─── Mobile: card-grid and pricing ─── */
  .card-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* ─── Mobile: hero gaps and padding ─── */
  .hero {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px 0 8px;
  }
  .hero--wide {
    grid-template-columns: 1fr;
  }
  /* Wolf backdrop on mobile: covers the stacked title/body zone (~300px),
     fading out before the sample card below so the card sits on clean page
     base. The 300px height (vs 365px) widens the effective crop so the
     sky-curve stays in view AND the amber diamond lands at ~90% across,
     inside the right-edge mask — both story elements survive the blend.
     The amber glow is placed at the diamond's rendered position (~90%). */
  .hero-art {
    top: 0;
    left: 0;
    width: 100%;
    height: 300px;
    opacity: 0.55;
    background:
      linear-gradient(90deg, rgba(9, 16, 24, 0.5) 0%, rgba(9, 16, 24, 0.22) 30%, rgba(9, 16, 24, 0.05) 55%, rgba(9, 16, 24, 0) 70%),
      linear-gradient(180deg, rgba(9, 16, 24, 0.28) 0%, rgba(9, 16, 24, 0.06) 20%, rgba(9, 16, 24, 0) 36%),
      radial-gradient(circle 110px at 30% 40%, rgba(168, 222, 255, 0.16) 0%, rgba(168, 222, 255, 0.05) 55%, rgba(168, 222, 255, 0) 100%),
      radial-gradient(circle 30px at 90% 43%, rgba(255, 176, 72, 0.26) 0%, rgba(255, 176, 72, 0.08) 55%, rgba(255, 176, 72, 0) 100%),
      url(/landing-hero-wolf.webp) center / cover no-repeat;
    -webkit-mask-image:
      linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%),
      linear-gradient(to bottom, transparent 0, #000 8%, #000 80%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
      linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%),
      linear-gradient(to bottom, transparent 0, #000 8%, #000 80%, transparent 100%);
    mask-composite: intersect;
  }
  .hero-copy h1 {
    font-size: clamp(2rem, 6vw, 3.2rem);
    max-width: 16ch;
  }

  /* ─── Mobile: panels and memo layout ─── */
  .panel-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .memo-terminal {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .memo-sidebar {
    position: static;
  }

  /* ─── Mobile: tighten gaps globally ─── */
  .page {
    gap: 20px;
  }
  .stack {
    gap: 14px;
  }
  .section {
    gap: 16px;
  }
  .faq-stack {
    gap: 10px;
  }

  /* ─── Mobile: hero actions wrap ─── */
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .button {
    width: 100%;
    justify-content: center;
  }
  .hero-actions .button--link {
    width: auto;
    align-self: flex-start;
  }
  .card-grid--samples .hero-actions .button {
    width: 100%;
  }

  /* ─── Mobile: memo data grids ─── */
  .memo-data-board--company {
    grid-template-columns: 1fr;
  }
}

/* ─── Loading skeletons ─── */
@keyframes skeleton-pulse {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 0.85; }
}

.skeleton-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.skeleton-line,
.skeleton-block,
.skeleton-pill {
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.04) 100%);
  border-radius: 4px;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.skeleton-line {
  height: 0.75rem;
}

.skeleton-line--title {
  height: 1.25rem;
  width: 55%;
}

.skeleton-line--short { width: 40%; }
.skeleton-line--mid   { width: 70%; }
.skeleton-line--long  { width: 90%; }

.skeleton-block {
  height: 3.5rem;
}

.skeleton-pill-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.skeleton-pill {
  height: 1.75rem;
  flex: 1 1 6rem;
  min-width: 5rem;
  border-radius: 999px;
}

.skeleton[aria-busy="true"] {
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .skeleton-line,
  .skeleton-block,
  .skeleton-pill {
    animation: none;
    opacity: 0.7;
  }

  /* Honor the OS-level reduced-motion preference for every infinite
     decorative animation in the design system. Functional micro-
     animations (modal/overlay fade-in, success pulse, wallet offer
     reveal — all short, one-shot transitions) keep playing because
     they help orient the user when state changes; the rules above
     leave those alone. Infinite ambient motion (h1 shimmer, brand
     mark breathe, terminal cursor blink, header glow sweep, aurora
     drift, hero-card float, session/pulse-dot ticks, progress-fill
     pulse-sweep) gets stilled. */
  .terminal-caption,
  .button--accent,
  .hero-copy h1,
  .dash__title,
  .plan-chip__name,
  .brand-mark,
  .site-header::before,
  .site-shell::before,
  .hero-card,
  .terminal-cursor,
  .terminal-session-dot::before,
  .progress-fill[data-state="active"],
  .engine-timeline-step[data-state="active"] .engine-timeline-dot {
    animation: none !important;
  }

  /* P2 FE-37 (2026-09-21): the list above stopped the decorations someone
     thought of at the time, and missed the ones a customer actually sits in
     front of. A run in flight is the longest a reader ever stares at this UI —
     ten to fifteen minutes — and for all of it the active engine tile breathed
     (engine-cloud-pulse) with an electron orbiting it (electron-orbit), the
     queue badges ticked (pulse-dot), the memo cover's ticker swept and its
     divider pinged, and the plan/wallet chrome glowed. Every one of these is
     decoration: none of them carries information the static state doesn't, so
     under prefers-reduced-motion they stop.
     Grouped by the surface they belong to, so the next person adding a
     decoration knows where to register it. */

  /* Pipeline tiles: the active tile's pulse and its orbiting electron. */
  .engine-timeline-step[data-state="active"],
  .engine-timeline-step[data-state="active"]::after,
  /* Run/queue status badges. */
  .status-badge[data-tone="running"],
  .queue-row__status--running,
  /* Memo cover: swept ticker type and the pinging divider rule. */
  .memo-cover__ticker,
  .memo-cover__divider,
  /* Subscription + wallet chrome. */
  .sub-badge,
  .wallet-pack,
  /* Remaining ambient sweeps/pulses shared across surfaces. */
  .button--tab-glow,
  .text-sweep-glow,
  .tos-scroll-hint,
  /* Marketing hero + engine-wire decoration. */
  .methodology-hero__diamond-halo,
  .methodology-hero__diamond-halo--amber,
  .pipeline-flow__current-pulse--main,
  .pipeline-flow__current-pulse,
  .pipeline-flow__current-flicker,
  .pipeline-flow__spark--a,
  .pipeline-flow__spark--b,
  .pipeline-flow__spark--c,
  .pipeline-flow__spark--d {
    animation: none !important;
  }

  /* The engine-wire bundle's flowing currents are dozens of sibling strokes
     animated by index; stop them wholesale rather than naming each one. */
  .engine-wire [class*="pipeline-flow__current"],
  .engine-wire [class*="pipeline-flow__spark"],
  .learn-pulse--p1,
  .learn-pulse--p2,
  .learn-pulse--p3 {
    animation: none !important;
  }

  /* "THE CURRENT" energy-lattice layers (Status hero): a running job renders
     as a still frame — lattice + static current at rest + static focus glow —
     and every particle one-shot (sparks, idle pulses, wake sweep, bloom,
     connector burst) disappears entirely. The closing CTA's decorative star
     layer (.closing-stars / .closing-star) is the landing page's quiet echo
     of the same motif, so it joins the same net — reduced-motion users get
     a clean static band there too. */
  .lp-lattice,
  .lp-current,
  .lp-current-deep,
  .lp-focus,
  .lp-spark,
  .lp-node,
  .lp-idle-pulse,
  .lp-wake,
  .lp-wake-trail,
  .lp-bloom,
  .lp-connector-burst,
  .closing-star,
  .engine-timeline-step[data-state="done"]::before,
  .engine-timeline-step[data-state="active"] {
    animation: none !important;
  }
  .lp-spark,
  .lp-node,
  .lp-idle-pulse,
  .lp-wake,
  .lp-wake-trail,
  .lp-bloom,
  .lp-connector-burst,
  .closing-stars {
    display: none;
  }
  .lp-current,
  .lp-current-deep {
    background-position: 0% 0;
  }

  /* Smooth scroll-to-anchor flips a chunk of viewport in motion.
     Reduced-motion users prefer instant jumps. */
  html {
    scroll-behavior: auto;
  }
}

/* ============================================================
   v0.12 UI/CX pass (2026-06-10) — mobile header, session skeleton,
   focus visibility. Appended as a cascade layer over the base rules
   so the existing desktop design is untouched.
   ============================================================ */

/* --- Compact mobile header -----------------------------------
   At phone widths the header previously stacked brand + wrapping
   nav (with "Sign In" orphaning onto its own row) and consumed
   ~40% of the first viewport. Switch to a two-row column: compact
   brand row (tagline hidden), then a single non-wrapping nav row
   that spreads the four items across the full width. */
@media (max-width: 640px) {
  /* Option A (2026-10-01): ONE inline header row — logo + wordmark +
     hamburger on a single line, toggle to the right of the wordmark,
     equal vertical centering. The Terminal pill folds into the hamburger
     menu (the hero below carries the CTAs at this width). */
  .site-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    top: 8px;
    flex-wrap: wrap;
  }
  .brand {
    gap: 10px;
    min-width: 0;
  }
  .brand-mark {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
  }
  .brand-mark-svg,
  .brand-mark-image {
    width: 34px;
    height: 34px;
  }
  .brand-copy {
    min-width: 0;
  }
  .nav a,
  .nav .button {
    white-space: nowrap;
  }
  .brand-copy span {
    display: none; /* tagline hidden on phones; brand name carries it */
  }
  .brand-copy strong {
    font-size: 0.95rem;
    white-space: nowrap; /* wordmark must stay on one line at 375px */
  }
  /* Closed: the nav is an auto-sized flex item — just the ≡ toggle, in
     line with the brand row (header justify-content: space-between puts
     it at the right edge). Open: it takes the full row and wraps. */
  .site-header .nav:not(.nav--open) {
    flex: 0 0 auto;
    width: auto;
    flex-wrap: nowrap;
  }
  .site-header .nav.nav--open {
    flex: 1 1 100%;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .nav {
    gap: 4px;
  }
  /* Condensed nav: at phone widths only the ≡ toggle shows at rest; the
     Terminal pill plus the link cluster, auth cluster, and status pill
     expand behind it (.nav--open). */
  .nav-toggle {
    display: inline-flex;
  }
  /* The account elements too (2026-11-28): the loading placeholder is a
     span, so it stayed visible, wrapped the header onto a second row and
     shifted the whole page twice on load (mobile CLS ~0.5). */
  .nav:not(.nav--open) > a:not(.button),
  .nav:not(.nav--open) > .button,
  .nav:not(.nav--open) > .auth-cluster,
  .nav:not(.nav--open) > .pill,
  .nav:not(.nav--open) > .account-pill,
  .nav:not(.nav--open) > .account-pill__visitor {
    display: none;
  }
  .nav--open > a:not(.button),
  .nav--open > .button,
  .nav--open > .auth-cluster,
  .nav--open > .pill,
  .nav--open > .account-pill,
  .nav--open > .account-pill__visitor {
    display: inline-flex;
  }
  .nav a:not(.button) {
    font-size: 0.8rem;
    padding: 6px 6px;
  }
  .nav .button {
    font-size: 0.78rem;
    padding: 7px 10px;
  }
  .auth-email {
    max-width: 96px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  /* Condensed disclosure: ~11px mono, max 2 lines, tighter padding.
     Desktop keeps the full text via .disclosure-bar__full. */
  .disclosure-bar {
    font-size: 0.6875rem;
    line-height: 1.45;
    padding: 6px 10px;
    margin-bottom: 10px;
    border-radius: 10px;
  }
  .disclosure-bar__full {
    display: none;
  }
  .disclosure-bar__condensed {
    display: inline;
  }
}

/* --- Session-state skeleton chip ------------------------------
   Replaces the "CHECKING SESSION..." text flash while auth resolves.
   A quiet shimmering pill the width of the eventual control. */
.pill--skeleton {
  display: inline-block;
  width: 84px;
  height: 26px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(125, 234, 244, 0.05) 25%,
    rgba(125, 234, 244, 0.12) 50%,
    rgba(125, 234, 244, 0.05) 75%
  );
  background-size: 200% 100%;
  animation: session-skeleton-sweep 1.4s ease-in-out infinite;
}
@keyframes session-skeleton-sweep {
  0% { background-position: 180% 0; }
  100% { background-position: -20% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .pill--skeleton {
    animation: none;
  }
}

/* --- Keyboard focus visibility --------------------------------
   The theme's dim-on-dark palette made default focus rings nearly
   invisible. Give links/buttons/inputs an unambiguous cyan ring,
   keyboard-only (focus-visible) so mouse users see no change. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid rgba(125, 234, 244, 0.85);
  outline-offset: 2px;
}

/* Skip-to-content bypass block (WCAG 2.4.1), rendered as the first focusable
   element of both shells. Off-screen via transform so it stays in the a11y
   tree and in tab order; no transition, so the reduced-motion net is moot. */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10000;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: #071119;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  transform: translateY(-250%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* --- Subscription pricing card + closing CTA band ------------- */
.pricing-per {
  font-size: 0.55em;
  color: var(--muted);
  font-weight: 500;
  margin-left: 2px;
}
.closing-cta {
  text-align: center;
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 38px 26px;
  /* Centered column (C5 2026-10-04): the band previously stretched
     edge-to-edge; capping it at ~720px keeps the copy + buttons holding
     together as one unit. The .card base already supplies position:
     relative + overflow: hidden, which the star layer and scrim sit
     inside. */
  max-width: 720px;
  margin-inline: auto;
}
.closing-cta h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
}
.closing-cta__sub {
  margin: 0;
  max-width: 520px;
  color: var(--muted);
}
.closing-cta__actions {
  margin-top: 6px;
  justify-content: center;
}
/* Decorative "shooting stars" layer (C5 2026-10-04) — a clearly visible
   callback to "the current" (the Status hero's cyan/amber sparks + wake
   sweeps): dense 3px stars drifting on 3–8s cycles at high opacity, dimmed
   only by the scrim below so the headline + CTAs stay crisp. Purely
   decorative — canvas-free CSS animation, aria-hidden, and prefers-reduced-
   motion users get a clean static band (the net below hides the layer).
   Stacking: stars (z0) < scrim (z1) < content (z2). */
.closing-stars {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: inherit;
}
.closing-star {
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #aef3ff;
  box-shadow: 0 0 7px 2px rgba(125, 234, 244, 0.6);
  opacity: 0;
  animation: closing-star-travel var(--dur, 9s) linear var(--delay, 0s) infinite;
}
/* One amber accent star per three — stronger two-tone glow (2026-10-08,
   Garrett: more amber, more glow, without going overboard). */
.closing-star:nth-child(3n) {
  background: #f5c77f;
  box-shadow: 0 0 9px 3px rgba(245, 199, 127, 0.7);
}
@keyframes closing-star-travel {
  0% { transform: translate(var(--sx), var(--sy)); opacity: 0; }
  12% { opacity: 0.8; }
  85% { opacity: 0.35; }
  100% { transform: translate(var(--tx), var(--ty)); opacity: 0; }
}
/* Scrim over the stars, under the copy — keeps headline + buttons crisp. */
.closing-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background: radial-gradient(
    circle at 50% 30%,
    rgba(7, 11, 17, 0.6) 0%,
    rgba(7, 11, 17, 0.3) 55%,
    rgba(7, 11, 17, 0.55) 100%
  );
  pointer-events: none;
}
.closing-cta > *:not(.closing-stars) {
  position: relative;
  z-index: 2;
}
@media (max-width: 640px) {
  .closing-cta {
    padding: 26px 16px;
  }
  .closing-cta__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .closing-cta__actions .button {
    width: 100%;
    justify-content: center;
  }
}

/* --- Memo reading aids: scrollspy, progress, mobile jump -------- */
.toc-link[data-active="true"] {
  border-color: rgba(125, 234, 244, 0.55);
  box-shadow:
    0 0 0 1px rgba(125, 234, 244, 0.25),
    0 0 18px rgba(125, 234, 244, 0.08);
}
.toc-link[data-active="true"] strong {
  color: var(--accent-ice, #aef3fa);
}

.memo-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 60;
  background: rgba(125, 234, 244, 0.06);
  pointer-events: none;
}
.memo-progress span {
  display: block;
  height: 100%;
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(125, 234, 244, 0.5), rgba(125, 234, 244, 0.95));
  transition: transform 80ms linear;
}

/* Floating section-jump — narrow viewports only; the sidebar/rail TOC
   covers wide viewports. Bottom-centered for thumb reach. All layout
   styling lives at base (harmless while display:none) so the two
   breakpoints below only need to toggle display: memo pages flip it on
   when the memo stacks (920px); rail pages flip it on when the section
   rail retires (1120px, see .rail-layout). */
.memo-jump {
  display: none;
  /* Toggle is first in the DOM (focus order) but renders at the
     bottom, with the section list opening above it. */
  flex-direction: column-reverse;
  align-items: center;
  gap: 8px;
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 14px;
  z-index: 70;
  max-width: min(92vw, 420px);
  width: max-content;
}
.memo-jump__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 92vw;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(125, 234, 244, 0.4);
  background: rgba(8, 14, 19, 0.92);
  color: var(--ink, #e8f3f4);
  font-family: var(--font-mono), monospace;
  font-size: 0.78rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55), 0 0 22px rgba(125, 234, 244, 0.1);
  backdrop-filter: blur(12px);
  cursor: pointer;
}
.memo-jump__icon {
  color: var(--accent, #7deaf4);
  font-size: 1rem;
}
.memo-jump__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 64vw;
}
.memo-jump__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: min(92vw, 420px);
  max-height: 52vh;
  overflow-y: auto;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(8, 14, 19, 0.97);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(14px);
}
.memo-jump__list button {
  text-align: left;
  padding: 9px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink, #e8f3f4);
  font-family: var(--font-mono), monospace;
  font-size: 0.8rem;
  cursor: pointer;
}
.memo-jump__list button[data-level="3"] {
  padding-left: 24px;
  color: var(--muted);
  font-size: 0.75rem;
}
.memo-jump__list button[data-active="true"] {
  background: rgba(125, 234, 244, 0.1);
  color: var(--accent-ice, #aef3fa);
}

/* Memo pages: the jump replaces the sidebar TOC once the memo stacks. */
@media (max-width: 920px) {
  .memo-jump {
    display: flex;
  }
}

/* Rail pages (methodology/learn/legal): the rail retires at 1120px, so
   their jump — mounted inside .section-rail — appears earlier. Memo
   pages are unaffected (their jump mounts inside .memo-sidebar). */
@media (max-width: 1120px) {
  .section-rail .memo-jump {
    display: flex;
  }
}

/* --- Memo layout on narrow viewports ---------------------------
   The sidebar (stats, TOC, archive switcher) previously rendered
   ABOVE the memo on mobile — a 670px wall of label cards before the
   reader ever saw the cover. The cover already carries the headline
   facts, so on phones/tablets the memo body leads and the sidebar
   follows as supplementary material.

   FE-28: that ordering is now the DOM's own — the `order: 1 / order: 2`
   flip that used to produce it here is gone, so visual, focus and reading
   order agree in this band. */
@media (max-width: 920px) {
  .memo-terminal {
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* Leave room above the floating jump pill at the page bottom. */
    padding-bottom: 64px;
  }
  .memo-sidebar {
    position: static;
    max-height: none;
    overflow-y: visible;
  }
}

/* --- Memo cover Data Quality Notice ---------------------------
   Mirrors the .md cover's reconciliation banner (e.g. NVDA's
   low-confidence fair value): amber caution band between the metric
   pills and the divider. Quiet but unmissable. */
.memo-cover__notice {
  margin: 4px 0 0;
  padding: 10px 14px;
  border: 1px solid rgba(245, 199, 127, 0.35);
  border-radius: 14px;
  background: rgba(245, 199, 127, 0.07);
  color: rgba(240, 214, 160, 0.95);
  font-family: var(--font-mono), monospace;
  font-size: 0.78rem;
  line-height: 1.55;
}
.memo-cover__notice span {
  color: var(--amber, #f0c05a);
  margin-right: 6px;
}

/* Share consent note — deliberately small/unobtrusive (Terminal follow-up
   2026-08-13): the longer crawlable-card wording was replaced with Garrett's
   shorter copy; this keeps the note from stealing vertical space.
   Full-width centered banner strip (Fable 5.1 desktop polish, 2026-09-17):
   the old 56ch cap left an empty band to the right of the note. Width is
   100% of the cover's content box with centered text — no fixed widths, so
   the rule holds at every viewport. Framed in the muted amber palette (a
   fainter cousin of .memo-cover__notice) so it reads as a deliberate
   callout, with a one-time-per-account "Got it" dismiss inline with the
   text (acceptance persisted in lib/share-tos.js, t_756eeb0d 2026-10-29). */
.memo-cover__share-note {
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--muted);
  width: 100%;
  text-align: center;
  padding: 10px 14px;
  border: 1px solid rgba(245, 199, 127, 0.22);
  border-radius: 14px;
  background: rgba(245, 199, 127, 0.05);
}
.memo-cover__share-note a {
  color: var(--accent);
  text-decoration: underline;
}
.memo-cover__share-note-dismiss {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 10px;
  border: 1px solid rgba(245, 199, 127, 0.35);
  border-radius: 999px;
  background: transparent;
  color: var(--amber, #f0c05a);
  font-family: var(--font-mono), monospace;
  font-size: 0.7rem;
  line-height: 1.5;
  cursor: pointer;
  vertical-align: baseline;
}
.memo-cover__share-note-dismiss:hover,
.memo-cover__share-note-dismiss:focus-visible {
  background: rgba(245, 199, 127, 0.12);
}

/* Pricing grid: explicit columns so the four cards never strand an
   orphan or leave a grid hole (auto-fit made the band behavior depend
   on viewport math). Desktop: 4-up on one row — cards tightened
   (padding / gap / stat size) so all four fit without overflow.
   Tablet: 2-up (a clean 2×2 with four cards; the odd-last-child span
   rule stays as a safety net if the catalog count changes). Phones:
   single column via the base card-grid collapse.

   P2 FE-46 (2026-09-21): the 4-up threshold was 1024px, measured on the
   VIEWPORT — but the Credit Store renders inside the terminal shell, which
   has already spent 271px (215px sidebar + 2x28px padding) before this grid
   sees a pixel. At a 1024px viewport that leaves ~753px for four columns and
   three 12px gaps: 179px per card, 139px of inner width after the card's own
   16px side padding. The caption pill is a FIXED 168px capsule, so "3-CREDIT
   PACK" was clipped mid-word in every tile. Four columns need
   4 x (168 + 32) + 36 = 836px of content, i.e. ~1140px of viewport once the
   shell is paid for. Below that the band stays 2-up, which is legible at
   every width it covers. The caption is also made fluid just below, so the
   tiles degrade gracefully rather than clipping if the band ever narrows
   again. */
@media (min-width: 1140px) {
  .card-grid--pricing {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
  /* 2026-09-27 formatting review: `repeat(4, 1fr)` is right for the landing
     page, which always renders exactly four tiles — but the Credit Store
     renders a VARIABLE count off the account's plan, and the 641-1139px band's
     `:last-child:nth-child(odd)` safety net has no counterpart up here. Every
     subscriber view is three tiles (two member top-ups + one plan action), so
     a paying member's store had a permanently empty fourth column: three
     narrowed tiles hard against the left and a quarter-row hole on the right
     that reads as a tile that failed to load. Size the track count to the
     tiles that actually exist. */
  .card-grid--pricing:has(> :nth-child(3):last-child) {
    grid-template-columns: repeat(3, 1fr);
  }
  .card-grid--pricing:has(> :nth-child(2):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  /* One tile (e.g. a member with both plan actions unavailable) centres at a
     readable measure rather than stretching a single card across the band. */
  .card-grid--pricing:has(> :first-child:last-child) {
    grid-template-columns: minmax(0, 420px);
    justify-content: center;
  }
  .card-grid--pricing > .pricing-card {
    padding: 20px 16px;
    gap: 12px;
  }
  .card-grid--pricing .pricing-card__stat {
    font-size: 1.85rem;
  }
  .card-grid--pricing > .pricing-card > p {
    font-size: 0.88rem;
  }
}
@media (min-width: 641px) and (max-width: 1139px) {
  .card-grid--pricing {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-grid--pricing > .pricing-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

/* FE-46: pricing tiles size their caption pill to its text instead of the
   universal 168px capsule, so a narrow tile shortens the pill rather than
   clipping the label inside it. Same escape hatch .terminal-caption--title
   uses for long labels. */
.pricing-card .terminal-caption {
  width: auto;
  max-width: 100%;
  min-width: 0;
}

/* ============================================================
   v0.13 review-fleet fixes (2026-06-12)
   ============================================================ */

/* H5: the ToS scroll hint borrowed the header dot's keyframes, which
   animate background to solid cyan/amber — unreadable behind cyan
   text. Opacity-only pulse instead. */
@keyframes tos-hint-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

/* H8: TOC clicks and the mobile jump pill were landing section
   headings underneath the sticky header. scrollIntoView and anchor
   jumps both respect scroll-margin. */
.memo-section,
.memo-heading h2,
.memo-heading h3,
.markdown h2[id],
.markdown h3[id] {
  scroll-margin-top: 150px;
}
@media (max-width: 640px) {
  .memo-section,
  .memo-heading h2,
  .memo-heading h3,
  .markdown h2[id],
  .markdown h3[id] {
    scroll-margin-top: 120px;
  }
}

/* H11: the purchase-intent message is a sentence — the base .pill
   chrome is a fixed 168x28 nowrap chip and the text spilled out both
   sides. */
.pill--intent {
  width: auto;
  max-width: 100%;
  height: auto;
  min-height: 1.75rem;
  padding: 8px 14px;
  white-space: normal;
  line-height: 1.5;
  text-align: center;
}

/* M15: disabled CTAs previously looked and hovered exactly like
   enabled ones. */
.button:disabled,
.button[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  filter: saturate(0.6);
}
.button:disabled:hover {
  background: inherit;
}

/* Low: the memo jump control had cursor:pointer but no hover/active
   feedback. */
@media (max-width: 920px) {
  .memo-jump__toggle:hover,
  .memo-jump__toggle:active {
    border-color: rgba(125, 234, 244, 0.7);
    background: rgba(10, 18, 24, 0.96);
  }
  .memo-jump__list button:hover,
  .memo-jump__list button:active {
    background: rgba(125, 234, 244, 0.07);
  }
}

/* M37: ~360px Androids clipped the right-most nav control. */
@media (max-width: 400px) {
  .nav a:not(.button) {
    font-size: 0.74rem;
    padding: 5px 4px;
  }
  .nav .button {
    font-size: 0.72rem;
    padding: 6px 8px;
  }
}

/* M19/M7: universal reduced-motion safety net. The hand-maintained
   block above stills the showcase animations but had drifted out of
   sync with ~10 infinite loops (caption sweeps, orbit dots, pulses).
   This guarantees coverage for everything, present and future. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  /* The three properties above cannot reach a scroll animation, so every
     in-page anchor jump on the site still animated under the preference. */
  html {
    scroll-behavior: auto !important;
  }
}

/* M9: live credit balance in the terminal header — the user's most
   operationally important number, previously only visible in the
   wallet card below the fold. */
.terminal-header-credits {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border: 1px solid rgba(245, 199, 127, 0.35);
  border-radius: 999px;
  background: rgba(245, 199, 127, 0.08);
  color: var(--amber);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Mobile archive cells: below 920px the column header row is hidden, so
   each numeric cell carries its own micro-label (display:none keeps them
   out of the desktop layout AND the desktop accessibility tree, where the
   columnheaders already do this job). */
.memo-archive-cell__label {
  display: none;
}

/* ── Archive mobile summary (2026-07-28 design pass) ─────────────────────
   Below 920px the table becomes stacked cards; the old rendering was seven
   equal label/value rows per memo with no hierarchy. The summary block
   leads with ONE toned hero number (gap to Fair Value), compresses the price
   journey to a muted line, and demotes the date; the granular numeric
   cells hide on phones (desktop table unchanged — the block itself is
   display:none there). */
.memo-archive-mobilesum { display: none; }

/* Card-mode internals; band raised 920px -> 1180px with the collapse (FE-34). */
@media (max-width: 1180px) {
  .memo-archive-mobilesum {
    display: grid;
    gap: 5px;
    width: 100%;
    padding: 2px 0 4px;
  }
  .memo-archive-mobilesum__hero {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
  }
  .memo-archive-mobilesum__hero span {
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .memo-archive-mobilesum__hero strong {
    font-size: 1.35rem;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
  }
  .memo-archive-mobilesum__journey {
    margin: 0;
    font-family: var(--font-mono, monospace);
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--ink);
    opacity: 0.85;
  }
  .memo-archive-mobilesum__date {
    margin: 0;
    font-size: 0.72rem;
    color: var(--muted);
  }
  /* The summary replaces the granular cells on phones. */
  .memo-archive-row .archive-cell--price,
  .memo-archive-row .archive-cell--at-run,
  .memo-archive-row .archive-cell--change,
  .memo-archive-row .archive-cell--p50,
  .memo-archive-row .archive-cell--upside,
  .memo-archive-row .archive-cell--to-hc,
  .memo-archive-row .archive-cell--completed {
    display: none;
  }
  .memo-archive-row { position: relative; }
  /* Card mode (<=1180px): the delete cell auto-places into the second column
     beside the wrapped action cluster; left as-is it centered a 32px icon in
     a 280px track and read as floating in space. Right-align it so it reads
     as the card's trailing control (2026-11-13 one-row layout fix). */
  .memo-archive-cell--delete {
    justify-content: flex-end;
  }
  /* 2026-09-27 formatting review: the absolutely-positioned status badge these
     rules served (.archive-cell--status) has NO renderer — MemoArchiveBrowser
     builds Ticker / Current / At Run / Since Run / Fair Value / Upside at Run /
     To Fair Value / Completed / actions and never emits a status cell (the run
     state lives on the Status page; see the .memo-archive-row--extended
     comment: "9 columns — Status dropped"). So the 92px of right padding was
     permanently reserved for nothing: on a 375px phone the archive card's
     summary line had ~271px of usable width and 92px of it was held empty,
     which is why "$196.28 at run → $210.00 now (+7.0%)" wrapped to two lines
     that had room to sit on one. The .archive-cell--status positioning + label
     rules went with it. `position: relative` stays — it is harmless and the
     row is the natural containing block if a badge ever returns. */
}
@media (max-width: 1180px) {
  .memo-archive-cell__label {
    display: block;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
  }
}

/* ============================================================
   Dashboard shell (sidebar + topbar app frame) — M1
   Cosmic/mono theme; rendered only on the authed dashboard route
   (SiteChrome suppresses the marketing chrome there).
   ============================================================ */
.dash {
  display: grid;
  grid-template-columns: 215px minmax(0, 1fr);
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 6%, rgba(125, 234, 244, 0.08), transparent 24%),
    linear-gradient(180deg, #0b1219 0%, #070b10 100%);
}
.dash__sidebar {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 20px 16px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(16, 25, 35, 0.92), rgba(7, 11, 16, 0.92));
  overflow: hidden;
}
.dash__brand { display: flex; align-items: center; gap: 12px; padding: 6px 8px; }
.dash__brand-mark { width: 40px; height: 40px; flex: 0 0 auto; display: grid; place-items: center; }
.dash__brand-mark svg { width: 100%; height: 100%; }
.dash__brand-copy { display: flex; flex-direction: column; line-height: 1.1; }
.dash__brand-copy strong { white-space: nowrap; font-size: 0.8rem; letter-spacing: 0.10em; color: var(--ink); }
.dash__brand-copy span { font-size: 0.64rem; letter-spacing: 0.32em; color: var(--muted); }
.dash__nav { display: flex; flex-direction: column; gap: 6px; }
.dash__nav-item {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 9px; border-radius: 10px;
  color: var(--muted); font-size: 0.85rem;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.dash__nav-item:hover { color: var(--ink); background: rgba(125, 234, 244, 0.05); }
.dash__nav-item.is-active {
  color: var(--accent-ice);
  background: linear-gradient(180deg, rgba(125, 234, 244, 0.16), rgba(125, 234, 244, 0.06));
  border-color: rgba(125, 234, 244, 0.32);
  box-shadow: inset 0 0 0 1px rgba(125, 234, 244, 0.08), 0 8px 24px rgba(0, 0, 0, 0.3);
}
.dash__nav-icon { display: grid; place-items: center; color: inherit; }
/* Bottom-pinned Account link (below the decorative stream): a hairline
   separates it from the flexible middle so it reads as the sidebar's
   footer, mirroring the topbar's Sign out. */
.dash__nav--bottom { padding-top: 12px; border-top: 1px solid var(--line); }
.dash__nav--bottom .dash__nav-item { justify-content: flex-start; }

.dash__stream {
  margin-top: auto; flex: 1 1 auto; min-height: 120px;
  background:
    radial-gradient(ellipse 55% 40% at 28% 18%, rgba(125, 234, 244, 0.12), transparent 60%),
    radial-gradient(ellipse 50% 60% at 62% 72%, rgba(92, 168, 201, 0.14), transparent 60%);
  -webkit-mask-image: radial-gradient(circle at 42% 34%, black, transparent 76%);
  mask-image: radial-gradient(circle at 42% 34%, black, transparent 76%);
  opacity: 0.7;
}
.dash__main { display: flex; flex-direction: column; min-width: 0; }
.dash__topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px 28px; border-bottom: 1px solid var(--line);
  background: rgba(9, 14, 20, 0.6); backdrop-filter: blur(8px);
}
.dash__title {
  margin: 0; font-family: var(--font-serif), serif; font-weight: 500;
  font-size: clamp(1.1rem, 1.6vw, 1.5rem); color: var(--ink);
  /* Rolling-blue shimmer — same treatment as the landing-page hero h1
     ("On-demand equity research…"): a cyan band sweeps across the ink text. */
  background: linear-gradient(
    135deg,
    var(--ink) 0%,
    var(--ink) 40%,
    var(--accent) 50%,
    var(--ink) 60%,
    var(--ink) 100%
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: heading-shimmer 8s ease-in-out infinite;
}
/* M-05: the h1 renders the full product name plus a short phone label; only
   one of the two is visible at a time (see the ≤560px block near the end of
   this file). Desktop shows the full name and hides the short one. */
.dash__title-short { display: none; }
.dash__topbar-right { display: flex; align-items: center; gap: 16px; }
.dash__credits {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 7px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(125, 234, 244, 0.05);
  color: var(--muted);
}
.dash__credits strong {
  font-size: 1rem; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums;
}
.dash__credits-label { font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.dash__credits-mark {
  display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  border: 1px solid var(--accent-deep); color: var(--accent); font-size: 0.6rem; font-weight: 700;
  background: rgba(125, 234, 244, 0.08);
}
/* Single-device sign-out — quiet by default, brightens on hover. The nuclear
   "sign out of all devices" still lives in Account Settings. */
.dash__signout {
  appearance: none; cursor: pointer;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: transparent;
  color: var(--muted); font-size: 0.72rem; letter-spacing: 0.04em;
  white-space: nowrap; transition: color 0.15s ease, border-color 0.15s ease;
}
.dash__signout:hover { color: var(--ink); border-color: var(--accent-deep); }
.dash__signout:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Topbar account pill — username + real plan tier. Active members go amber
   (matching the wallet badge); Basic shows a muted dot. Links to /account. */
.plan-chip {
  display: inline-flex; flex-direction: row; align-items: center;
  padding: 7px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(16, 25, 35, 0.6);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.plan-chip:hover { border-color: var(--line-strong); background: rgba(16, 25, 35, 0.9); }
.plan-chip__name {
  font-size: 0.82rem; font-weight: 600;
  white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis;
  /* Cyan→amber rolling glow on the username (text-only sweep — no halo,
     same treatment the site uses for scope-text headings). */
  background: linear-gradient(
    135deg,
    var(--accent) 0%,
    var(--accent) 25%,
    var(--amber) 50%,
    var(--accent) 75%,
    var(--accent) 100%
  );
  background-size: 350% 100%;
  background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  animation: scope-text-sweep 14s ease-in-out infinite;
}
.plan-chip__plan {
  display: inline-flex; align-items: center; gap: 5px; font-size: 0.7rem; color: var(--muted);
  white-space: nowrap;
  margin-left: 11px; padding-left: 11px; border-left: 1px solid var(--line);
}
.plan-chip__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); flex: none; }
/* Plan tiers: Basic = gray (the default above); Researcher = cyan (--member);
   Analyst = amber (.plan-chip--pro). */
.plan-chip--member .plan-chip__plan { color: var(--accent); }
.plan-chip--member .plan-chip__dot { background: var(--accent); box-shadow: 0 0 6px rgba(125, 234, 244, 0.55); }
.plan-chip--pro .plan-chip__plan { color: var(--amber); }
.plan-chip--pro .plan-chip__dot { background: var(--amber); box-shadow: 0 0 6px rgba(245, 199, 127, 0.55); }
/* Institution tier (Fable 5.1): steady cyan+amber dual glow — NOT pulsing
   (institutional reads settled). Text and dot both carry the two-tier gradient;
   the glow is two shadows, one cyan (--accent) and one amber (--amber). */
.plan-chip--institution .plan-chip__plan {
  background: linear-gradient(90deg, var(--accent), var(--amber));
  background-clip: text; -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.plan-chip--institution .plan-chip__dot {
  background: linear-gradient(135deg, var(--accent), var(--amber));
  box-shadow: 0 0 6px rgba(125, 234, 244, 0.6), 0 0 10px rgba(245, 199, 127, 0.5);
}
.dash__content { flex: 1 1 auto; padding: 28px; }
.dash__footer {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.76rem;
}
@media (max-width: 860px) {
  .dash { grid-template-columns: 1fr; }
  .dash__sidebar { flex-direction: row; align-items: center; gap: 16px; overflow-x: auto; }
  .dash__stream { display: none; }
  .dash__nav { flex-direction: row; }
  .dash__brand-copy { display: none; }
}

/* M1 polish: keep topbar pill/chip on one line (override body overflow-wrap),
   and hard-constrain the brand mark so it can't overflow its 40px slot. */
.dash__credits,
.dash__user-copy strong,
.dash__user-copy span { white-space: nowrap; }
.dash__brand-mark svg { max-width: 40px; max-height: 40px; }
.dash__brand-mark { border-radius: 50%; overflow: hidden; }

/* ============================================================
   Status / Archive board pages (inside DashboardShell)
   ============================================================ */
.dash-loading { display: grid; place-items: center; gap: 8px; min-height: 60vh; text-align: center; }
.dash-loading p { margin: 0; color: var(--muted); }

.board-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 4px; }
.board-title {
  margin: 6px 0 4px; font-family: var(--font-serif), serif; font-weight: 500;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem); color: var(--ink);
}
.board-sub { margin: 0; color: var(--muted); max-width: 60ch; }

/* (Removed 2026-07-13 design review: an orphaned .status-grid/.status-card/
   .status-badge/.status-row block lived here with ZERO component users and
   silently clobbered the base .status-row (flex) and .status-badge rules
   used by the landing showcase card, JobStatusClient, and LivePipeline.) */
/* ── Status page: decorative hound-on-cliff art ──────────────────── */
/* Perched top-right, BEHIND all content (z-index 0 vs 1) so the live-pipeline
   hero sits on top of it if it drops that low. A radial mask centred on the
   hound dissolves the rest of the scene into the dark page background. */
.status-board { position: relative; }
.status-board > *:not(.status-art) { position: relative; z-index: 1; }
.status-art {
  /* The WHOLE banner sits in the band above the hero: top starts below the
     header, bottom lands at the hero's top edge. Height = the band (set from JS
     as --art-band-h so it tracks the board-head exactly on any width); width
     follows the native 5:1 aspect. `contain` guarantees nothing is cropped and
     it never extends behind the hero or up into the header. */
  position: absolute; top: var(--art-top, -13px); right: 0;
  height: var(--art-band-h, 140px);
  aspect-ratio: 2804 / 561;
  z-index: 0; pointer-events: none;
  background: url(/hound-cliff2.webp) no-repeat bottom right / contain;
  opacity: 0.95;
  /* Keep the full picture (mountains + cliff + hound) but dissolve the left and
     top edges gradually so the image's dark-blue sky (a touch lighter than the
     page) melts into the background instead of ending on a visible rectangle
     edge. The two gradients are intersected: a wide left fade + slimmer top
     fade (the hound sits on the right, so its edge stays crisp); the bottom
     stays crisp where it meets the hero. */
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 22%, #000 94%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 5%, #000 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0, #000 22%, #000 94%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 5%, #000 100%);
  mask-composite: intersect;
}
@media (max-width: 900px) { .status-art { display: none; } }

/* ── Archive page: decorative digital-creek art ──────────────────── */
/* Mirrors the Status page's hound art: perched top-right in the band above the
   table card, behind all content (z-index 0 vs 1), with its edges dissolved
   into the dark page. --art-band-h / --art-top are measured from JS in
   ArchiveBoard so the bottom lands on the table's top edge on any width. */
.archive-board { position: relative; }
.archive-board > *:not(.archive-art) { position: relative; z-index: 1; }
.archive-art {
  position: absolute; top: var(--art-top, -13px); right: 0;
  height: var(--art-band-h, 120px);
  aspect-ratio: 2804 / 561;
  z-index: 0; pointer-events: none;
  background: url(/creek-archivepage.webp) no-repeat bottom right / contain;
  opacity: 0.9;
  /* Dissolve the left edge (where the creek trails off) and the top sky; the
     waterfall on the right and the stream along the bottom stay crisp. */
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 20%, #000 96%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 8%, #000 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0, #000 20%, #000 96%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 8%, #000 100%);
  mask-composite: intersect;
}
@media (max-width: 900px) { .archive-art { display: none; } }

/* ── Status page: live pipeline hero ─────────────────────────────── */
/* flex:0 0 auto → natural height, never shrink (so the timestamps can't be
   clipped); the queue below takes the remaining band and scrolls internally. */
.live-pipeline { gap: 10px; position: relative; flex: 0 0 auto; padding: 20px 24px; }
.live-pipeline__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
/* Caption pill + the ticker/company sit on ONE row, vertically centered. */
.live-pipeline__headline { display: flex; align-items: center; gap: 14px; min-width: 0; flex-wrap: wrap; }
.live-pipeline__id { display: inline-flex; align-items: baseline; gap: 9px; min-width: 0; }
.live-pipeline__ticker { font-weight: 700; letter-spacing: 0.04em; color: var(--ink); font-size: 1.05rem; }
.live-pipeline__company { font-size: 0.86rem; color: var(--muted); font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-pipeline__idle { font-size: 0.76rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.live-pipeline__lead { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.5; max-width: 70ch; }
.live-pipeline__cta { color: var(--accent); white-space: nowrap; }
.live-pipeline__note { margin: 0; font-size: 0.82rem; color: var(--muted); }

/* Submitted / Started / Elapsed — so the reader can gauge run time + ETA. */
.live-pipeline__meta {
  display: flex; flex-wrap: wrap; gap: 8px 34px;
  margin-top: 10px;
  padding-top: 10px; border-top: 1px solid var(--line);
}
.live-pipeline__metric { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.live-pipeline__metric > span {
  font-size: 0.64rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em;
}
.live-pipeline__metric > strong {
  font-size: 0.84rem; color: var(--ink); font-weight: 600;
  font-family: var(--font-mono), ui-monospace, monospace;
}
.live-pipeline__elapsed { color: var(--accent); }
/* Job ID pushed to the far right of the meta row (margin-left:auto), right-
   aligned so it sits in the trailing space rather than crowding Elapsed. */
.live-pipeline__metric--id { margin-left: auto; align-items: flex-end; text-align: right; min-width: 0; }
.live-pipeline__metric--id > strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
/* Five stage tiles are narrower than four — trim the label type so the full
   engine names fit without ellipsis. */
.live-pipeline .engine-timeline-label { font-size: 0.72rem; letter-spacing: 0.03em; }
.live-pipeline .engine-timeline-dot { width: 32px; height: 32px; }
/* Hero-only compaction (the base step/dot rules serve other surfaces): tiles
   trimmed so ~3 queue rows stay visible below on a laptop. */
.live-pipeline .engine-timeline-step { padding: 10px 14px; }
.live-pipeline .engine-timeline-dot { width: 30px; height: 30px; }

/* Standby: dim the electric grid + render the tiles inert. */
.engine-timeline--standby .engine-timeline__current { opacity: 0.3; filter: none; }
.engine-timeline-step[data-state="standby"] {
  border-color: rgba(148, 169, 184, 0.14);
  background-color: rgba(8, 15, 21, 0.3);
  background-image: none;
  box-shadow: none;
  opacity: 0.6;
}
.engine-timeline-step[data-state="standby"] .engine-timeline-dot {
  border-color: var(--line); color: var(--muted); background: rgba(8, 13, 19, 0.7);
}
.engine-timeline-step[data-state="standby"] .engine-timeline-label { color: var(--muted); }

/* ── "THE CURRENT" — energy-lattice backdrop (2026-10-01) ──────────────────
   The live-pipeline hero's background is a living circuit: a faint lattice
   carries a traveling cyan current whose amber focus converges on the active
   engine tile (LivePipeline measures the tile and publishes --focus-x /
   --focus-y on the section). Transient one-shots — wake sweep, completion
   bloom, connector burst — render only during their moment. Every animation
   here drives transforms/opacity/background-position only. */

/* The hero's content sits above the backdrop. */
.live-pipeline__head,
.live-pipeline__lead,
.live-pipeline__meta,
.live-pipeline__stale,
.live-pipeline__outcome,
.live-pipeline .engine-timeline {
  position: relative;
  z-index: 1;
}

.lp-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
}
/* Layer 1: static faint lattice (~26px cells). */
.lp-lattice {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(125, 234, 244, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(125, 234, 244, 0.05) 1px, transparent 1px);
  background-size: 26px 26px;
}
/* Layer 2: the current — a diagonal highlight sweeping the lattice. Opacity
   tracks run progress (--grid-intense = done stages / all stages, set by
   LivePipeline): the current visibly brightens as engines complete. The
   animation only drives background-position, so the opacity transition is
   free to run alongside it. */
.lp-current {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(115deg, transparent 42%, rgba(125, 234, 244, 0.16) 50%, transparent 58%);
  background-size: 200% 100%;
  animation: lp-current-flow 6s linear infinite;
  opacity: calc(0.55 + var(--grid-intense, 0) * 0.45);
  transition: opacity 1.2s ease;
}
@keyframes lp-current-flow {
  from { background-position: 0% 0; }
  to { background-position: -200% 0; }
}
/* Layer 2b: a deeper, slower drift under the main current — the offset
   cadences read as parallax depth, not a single sheet. */
.lp-current-deep {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(100deg, transparent 40%, rgba(125, 234, 244, 0.08) 50%, transparent 60%);
  background-size: 300% 100%;
  animation: lp-current-flow 15s linear infinite;
  opacity: 0.7;
}
/* Layer 3: amber focus glow centered on the active tile (via --focus-x/y). */
.lp-focus {
  position: absolute;
  left: var(--focus-x, 50%);
  top: var(--focus-y, 40%);
  width: min(42vw, 260px);
  height: min(42vw, 260px);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(245, 199, 127, 0.20) 0%, rgba(245, 199, 127, 0.06) 45%, transparent 70%);
  border-radius: 50%;
  animation: lp-focus-breathe 2.4s ease-in-out infinite;
}
@keyframes lp-focus-breathe {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 0.95; }
}
/* Spark particles: endpoints arrive per-element as --sx/--sy → --tx/--ty. */
.lp-spark {
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #aef3ff;
  box-shadow: 0 0 6px 1px rgba(125, 234, 244, 0.8);
  opacity: 0;
  animation: lp-spark-travel var(--dur, 2.4s) linear var(--delay, 0s) infinite;
}
@keyframes lp-spark-travel {
  0% { transform: translate(var(--sx), var(--sy)); opacity: 0; }
  12% { opacity: 0.85; }
  100% { transform: translate(var(--tx), var(--ty)); opacity: 0; }
}
/* Node blinks: three lattice intersections that briefly brighten on long,
   staggered cycles — the circuit has junctions, not just flow. */
.lp-node {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(125, 234, 244, 0.9);
  box-shadow: 0 0 5px 1px rgba(125, 234, 244, 0.35);
  opacity: 0.05;
  animation: lp-node-blink 5.5s ease-in-out infinite;
}
.lp-node--b { left: 46%; top: 64%; animation-delay: 1.8s; }
.lp-node--c { left: 74%; top: 22%; animation-delay: 3.4s; }
.lp-node--a { left: 16%; top: 30%; }
@keyframes lp-node-blink {
  0%, 86%, 100% { opacity: 0.05; }
  93% { opacity: 0.35; }
}
/* Standby: an occasional single faint pulse traveling one lattice line. The
   two pulses sit on different lines and are phase-offset so they never sync. */
.lp-idle-pulse {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(148, 169, 184, 0.9);
  box-shadow: 0 0 4px 1px rgba(148, 169, 184, 0.4);
  opacity: 0;
  animation: lp-idle-pulse 3.8s ease-in-out infinite;
}
.lp-idle-pulse--a { top: 38%; left: 12%; }
.lp-idle-pulse--b { top: 64%; left: 30%; animation-delay: 1.9s; }
@keyframes lp-idle-pulse {
  0%, 76% { opacity: 0; transform: translateX(0); }
  86% { opacity: 0.35; }
  100% { opacity: 0; transform: translateX(46px); }
}
/* Wake sweep: starts at the hero's top-right corner (under the hound art) and
   travels to the focus point — --wake-dx/--wake-dy is the DELTA from this
   corner, measured by LivePipeline when the sweep fires. */
.lp-wake {
  position: absolute;
  right: 26px;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, rgba(245, 199, 127, 0.9) 40%, transparent 70%);
  box-shadow: 0 0 12px 3px rgba(245, 199, 127, 0.65);
  opacity: 0;
  animation: lp-wake-sweep 0.75s cubic-bezier(0.4, 0.1, 0.3, 1) forwards;
}
@keyframes lp-wake-sweep {
  0% { transform: translate(0, 0) scale(1); opacity: 0; }
  15% { opacity: 0.95; }
  100% { transform: translate(var(--wake-dx, -160px), var(--wake-dy, 40px)) scale(0.35); opacity: 0; }
}
/* Wake trail: a full-width streak growing right→left along the active tile's
   row (--wake-y, measured when the sweep fires) — the pulse leaves a visible
   path across the whole hero. scaleX from the right edge, so no box metric
   ever animates. */
.lp-wake-trail {
  position: absolute;
  left: 26px;
  right: 0;
  top: var(--wake-y, 40px);
  height: 2px;
  background: linear-gradient(90deg, rgba(245, 199, 127, 0), rgba(245, 199, 127, 0.30) 35%, rgba(125, 234, 244, 0.18) 62%, rgba(125, 234, 244, 0));
  transform: scaleX(0);
  transform-origin: right center;
  opacity: 0;
  animation: lp-wake-trail 0.8s cubic-bezier(0.4, 0.1, 0.3, 1) forwards;
}
@keyframes lp-wake-trail {
  0% { transform: scaleX(0); opacity: 0; }
  55% { opacity: 0.55; }
  100% { transform: scaleX(1); opacity: 0; }
}
/* Completion bloom: one soft full-grid wash, opacity keyframes only. */
.lp-bloom {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--focus-x, 50%) var(--focus-y, 40%), rgba(125, 234, 244, 0.30), transparent 65%);
  opacity: 0;
  animation: lp-bloom 1s ease-out forwards;
}
@keyframes lp-bloom {
  0% { opacity: 0; }
  30% { opacity: 1; }
  100% { opacity: 0; }
}
/* Connector burst: an amber streak crossing the gap after a just-completed
   tile (positioned by LivePipeline via inline `left`). */
.lp-connector-burst {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 34px;
  background: linear-gradient(90deg, rgba(245, 199, 127, 0), rgba(245, 199, 127, 0.9), rgba(245, 199, 127, 0));
  opacity: 0;
  animation: lp-burst-travel 0.5s ease-out forwards;
  z-index: 2;
}
@keyframes lp-burst-travel {
  0% { transform: translate(calc(-50% - 12px), -50%); opacity: 0; }
  25% { opacity: 1; }
  100% { transform: translate(calc(-50% + 12px), -50%); opacity: 0; }
}

/* State overrides. Standby = machine asleep: gray lattice with a very slow
   ambient brightness wave, no current, no focus glow. */
.live-pipeline--standby .lp-lattice {
  filter: grayscale(0.9);
  opacity: 0.65;
  animation: lp-standby-hum 11s ease-in-out infinite;
}
@keyframes lp-standby-hum {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 0.65; }
}
.live-pipeline--standby .lp-current { display: none; }
.live-pipeline--standby .lp-current-deep { display: none; }
.live-pipeline--standby .lp-focus { display: none; }
/* Settled (succeeded): the current decays to a static teal rest state. */
.live-pipeline--settled .lp-current { animation: none; opacity: 0.18; }
.live-pipeline--settled .lp-focus { animation: none; opacity: 0.5; }

/* Completed tiles: steady teal "charged" ring with a barely-there breath. The
   ring hugs the tile edge (inset 0), so it never overlaps the label/dot. */
.engine-timeline-step[data-state="done"]::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  border: 1px solid rgba(125, 234, 244, 0.30);
  pointer-events: none;
  z-index: 0;
  animation: lp-charged-breathe 7s ease-in-out infinite;
}
@keyframes lp-charged-breathe {
  0%, 100% { opacity: 0.985; }
  50% { opacity: 1; }
}
/* Active tile's scale breath (composed with engine-cloud-pulse above). */
@keyframes lp-tile-breath {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.005); }
}

/* Copyable Job ID chip under the company name (Status page recent runs). Uses
   the existing archive company cell, so no grid column is added. */
.memo-archive-jobid {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 4px;
  font-size: 0.72rem; color: var(--muted); line-height: 1.3;
  background: transparent; border: 1px solid var(--line); border-radius: 6px;
  padding: 2px 7px; cursor: pointer;
  /* WCAG 2.2 SC 2.5.8: this chip is a standalone block on its own line, so the
     inline-in-a-sentence exception does not cover it. 24px floor without
     changing the type size. */
  min-height: 24px;
  transition: border-color 160ms ease, color 160ms ease;
}
.memo-archive-jobid:hover { border-color: var(--accent-deep); color: var(--accent); }
.memo-archive-jobid .mono { font-family: var(--font-mono), ui-monospace, monospace; letter-spacing: 0.02em; }
.memo-archive-jobid__icon { font-size: 0.78rem; opacity: 0.7; }

/* ── Status page: queue status hero (mockup) ─────────────────────── */
/* Fills the band left below the live pipeline; the head + note stay put and the
   LIST scrolls internally so many concurrent runs never push the hero off-frame. */
.queue-status { gap: 10px; display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; padding: 20px; }
.queue-status__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex: 0 0 auto; }
.queue-status__count { font-size: 0.74rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.queue-status__empty { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.5; max-width: 72ch; }
.queue-status__cta { color: var(--accent); white-space: nowrap; }
.queue-status__note { margin: 0; font-size: 0.72rem; color: var(--muted); flex: 0 0 auto; }
.queue-status__list {
  display: flex; flex-direction: column;
  flex: 1 1 auto; min-height: 0; overflow-y: auto;
  scrollbar-width: thin;
}
.queue-row {
  display: grid;
  grid-template-columns: 64px clamp(140px, 20%, 220px) minmax(0, 1fr) auto;
  align-items: center; gap: 18px;
  padding: 9px 4px; border-bottom: 1px solid rgba(169, 205, 224, 0.08);
}
.queue-row:last-child { border-bottom: none; }
/* Clickable queue rows (focus a run in the live pipeline). Inherit text color
   so the Link doesn't render as a default anchor. */
.queue-row--link { text-decoration: none; color: inherit; cursor: pointer; border-radius: 8px; transition: background 0.15s ease; }
.queue-row--link:hover { background: rgba(125, 234, 244, 0.05); }
.queue-row--link:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
/* Chips are grid items → inline-flex blockifies to flex + stretches to the
   64px column, so center the ticker inside the (uniform-width) pill. */
.queue-row .memo-chip { justify-content: center; }
.queue-row__company {
  color: var(--ink); font-size: 0.88rem; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* Meta trio: SUBMITTED / STARTED / RUN ID — mirrors the live-pipeline hero's
   metric rows (small uppercase muted label above a mono value). */
.queue-row__meta {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; min-width: 0;
}
.queue-row__meta-col { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.queue-row__meta-col > span {
  font-size: 0.64rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em;
  white-space: nowrap;
}
.queue-row__meta-col > strong {
  font-size: 0.74rem; color: var(--ink); font-weight: 600;
  font-family: var(--font-mono), ui-monospace, monospace;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
/* Column-header row above the queue list — same grid template as data rows so
   every small-caps label sits exactly over its column (incl. the mobile
   two-row wrap, which shares the chip/company/pill + meta grid areas). */
.queue-row--head {
  color: var(--muted); font-size: 0.64rem; text-transform: uppercase;
  letter-spacing: 0.1em; white-space: nowrap;
  border-bottom: 1px solid rgba(169, 205, 224, 0.18);
  padding-bottom: 6px;
}
.queue-row--head .queue-row__head-col--status { min-width: 88px; text-align: center; }
.queue-row--head .queue-row__meta > .queue-row__head-col {
  overflow: hidden; text-overflow: ellipsis;
}
/* Run ID (TICKER-8hex) — customer-facing support reference in teal mono. */
.queue-row__meta-col--id > strong { color: var(--accent); }
/* Live status pill: Queued (muted) · Running (amber) · Complete (cyan) ·
   Failed (red) — driven by the real job status. Matches the pipeline
   visualization's tone language (done=cyan, active=amber, failed=red,
   pending=dim). */
.queue-row__status {
  justify-self: end; min-width: 88px; text-align: center;
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em;
  padding: 3px 12px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap;
}
.queue-row__status--queued { color: var(--muted); border-color: rgba(148, 169, 184, 0.32); background: rgba(148, 169, 184, 0.07); }
.queue-row__status--failed { color: var(--danger); border-color: rgba(255, 139, 139, 0.32); background: rgba(255, 139, 139, 0.07); }
.queue-row__status--complete { color: var(--accent); border-color: rgba(125, 234, 244, 0.32); background: rgba(125, 234, 244, 0.07); }
.queue-row__status--running {
  color: var(--amber);
  border-color: rgba(245, 199, 127, 0.45);
  background: rgba(245, 199, 127, 0.08);
  box-shadow: 0 0 12px rgba(245, 199, 127, 0.14);
  animation: pulse-dot 1.6s ease-in-out infinite;
}
@media (max-width: 640px) {
  .queue-row {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "chip company pill"
      "meta meta meta";
    gap: 8px 10px;
    padding: 8px 4px;
  }
  .queue-row .memo-chip { grid-area: chip; }
  .queue-row__company { grid-area: company; }
  .queue-row__meta { grid-area: meta; gap: 16px; }
  .queue-row__status { grid-area: pill; }
  .queue-row__meta-col > strong { font-size: 0.7rem; }
  .queue-row--head .queue-row__head-col--chip { grid-area: chip; }
  .queue-row--head .queue-row__head-col--company { grid-area: company; }
  .queue-row--head .queue-row__head-col--status { grid-area: pill; }
  .queue-row--head .queue-row__meta { gap: 16px; }
}

/* Fix: the brand emblem is an <img> (80px source), not an svg — earlier rules
   clipped it to a 40px circle (showing only a corner). Contain it fully, no crop.
   Also reclaim the left padding the removed topbar avatar left behind. */
.dash__brand-mark { width: 46px; height: 46px; border-radius: 0; overflow: visible; }
.dash__brand-mark img,
.dash__brand-mark .brand-mark-image { width: 100%; height: 100%; object-fit: contain; display: block; }

/* ============================================================
   Dashboard grid (M2) — Run hero + Wallet rail (row 1),
   Memo Archive · Company Feed · Recent Activity (row 2).
   6-col grid: hero spans 4 (~2/3), rail spans 2 (~1/3); the
   lower three each span 2.
   ============================================================ */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}
.dash-grid__hero { grid-column: 1 / 5; min-width: 0; }
.dash-grid__rail { grid-column: 5 / 7; min-width: 0; }
.dash-grid__archive { grid-column: 1 / 5; }
.dash-grid__feed { grid-column: 5 / 7; }
/* existing WalletPanel / RunMemoPanel cards fill their cell height */
.dash-grid__hero > *, .dash-grid__rail > * { height: 100%; margin: 0; }
/* Wallet card: fills its rail cell and scrolls internally on short viewports,
   mirroring the archive/feed internal-scroll treatment. The rail cell itself
   stays overflow:hidden, so without this the wallet silently clipped at
   700-820px viewport heights (P2-2 2026-09-06). On <=1180px the grid collapses
   and height:100% resolves to auto (parent height auto), restoring natural
   flow. */
.dash-grid__rail > .wallet-rail {
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  overscroll-behavior: contain;
}

.panel {
  display: flex; flex-direction: column; gap: 14px; min-width: 0; height: 100%;
  padding: 22px; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(19, 28, 38, 0.7), rgba(8, 13, 19, 0.7));
  box-shadow: var(--shadow);
}
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.panel__link { color: var(--accent); font-size: 0.8rem; white-space: nowrap; }
.panel__link:hover { text-decoration: underline; }

.activity { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.activity__row {
  display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 12px;
  padding: 11px 2px; border-bottom: 1px solid var(--line);
}
.activity__row:last-child { border-bottom: none; }


@media (max-width: 1180px) {
  .dash-grid { grid-template-columns: 1fr; }
  .dash-grid__hero, .dash-grid__rail, .dash-grid__archive, .dash-grid__feed, .dash-grid__activity { grid-column: 1 / -1; }
}

/* ============================================================
   Run-terminal hero — header row + pipeline stepper. The stepper
   (flex:1) absorbs the cell's spare height so the cosmic card no
   longer reads as dead space. .stack is a grid by default, so the
   hero card is re-declared as a flex column here.
   ============================================================ */
.run-memo-card { display: flex; flex-direction: column; height: 100%; }
.run-memo__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
/* Top-right of the hero head: live run status (moved up from the pipeline
   bottom) stacked over the run-time / credit note. */
.run-memo__head-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; min-width: 0; }
.run-memo__head-meta .pipeline__status { font-size: 0.78rem; }
.run-memo__meta {
  font-size: 0.72rem; color: var(--muted); letter-spacing: 0.04em; white-space: nowrap;
}
.run-memo__title { margin: 0; }

.pipeline {
  flex: 1 1 auto;
  display: flex; flex-direction: column; justify-content: center; gap: 16px;
  padding-top: 18px; margin-top: 2px;
  border-top: 1px solid var(--line);
}
.pipeline__heading {
  font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}
.pipeline__stages {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.pipeline__stage { position: relative; display: flex; flex-direction: column; gap: 9px; padding-right: 14px; }
.pipeline__stage:not(:last-child)::after {
  content: ""; position: absolute; top: 18px; left: 40px; right: 4px; height: 1px;
  background: linear-gradient(90deg, var(--accent-deep), rgba(125, 234, 244, 0.08));
}
.pipeline__node {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px;
  border: 1px solid var(--line-strong); color: var(--accent);
  background: rgba(125, 234, 244, 0.07); position: relative; z-index: 1;
}
.pipeline__copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pipeline__copy strong { font-size: 0.88rem; color: var(--ink); line-height: 1.2; }
.pipeline__copy span { font-size: 0.78rem; color: var(--muted); line-height: 1.35; }
@media (max-width: 760px) {
  .pipeline__stages { grid-template-columns: repeat(2, 1fr); gap: 18px 0; }
  .pipeline__stage:nth-child(2)::after { display: none; }
  .run-memo__meta { white-space: normal; text-align: right; }
}

/* ============================================================
   Wallet rail — streamlined: headline balance + breakdown chips,
   then subscribe / top-up offers, then trimmed fine print.
   ============================================================ */
/* Sizes to its content — no internal scroll, so the card can never clip its
   fine print (the rail cell keeps its own grid height). */
.wallet-rail { display: flex; flex-direction: column; gap: 12px; height: auto; min-height: 0; }
.wallet-rail__head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; }
/* Account-hero balance top row: credit figure left, plan pill right.
   align-items:center centers the pill on the big number's vertical center
   (not its baseline); dashboard (no row wrapper) is unaffected. */
.wallet-balance__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  row-gap: 8px;
}
.wallet-balance {
  display: flex; flex-direction: column; gap: 12px;
  padding: 16px; border-radius: 14px; border: 1px solid var(--line);
  background: radial-gradient(130% 150% at 0% 0%, rgba(125, 234, 244, 0.10), rgba(125, 234, 244, 0));
}
.wallet-balance__figure { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.wallet-balance__figure strong {
  font-size: 2.4rem; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums;
}
.wallet-balance__figure span { font-size: 0.82rem; color: var(--muted); white-space: nowrap; }
/* Meter caption + one-time pool line — supporting detail, sized under the
   headline figure so the balance stays the only loud thing in the block. */
.wallet-balance__meta { font-size: 0.68rem; color: var(--muted); line-height: 1.45; }

.wallet-rail__offers { display: flex; flex-direction: column; gap: 10px; }
.wallet-rail__fineprint { margin: 0; font-size: 0.72rem; color: var(--muted); line-height: 1.5; }
.wallet-rail__fineprint a { color: var(--accent); }

/* Subscribe card — the plan, presented the same value-forward way whether
   or not the user is already subscribed (active state keeps selling it). */
.sub-card {
  display: flex; flex-direction: row; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 14px;
  border: 1px solid var(--accent-deep);
  background:
    linear-gradient(180deg, rgba(125, 234, 244, 0.05), rgba(125, 234, 244, 0)),
    radial-gradient(150% 150% at 100% 0%, rgba(125, 234, 244, 0.14), rgba(125, 234, 244, 0));
}
.sub-card__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sub-card__eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
  white-space: nowrap;
}
.sub-card__price { font-size: 0.78rem; color: var(--muted); }
.sub-card__price strong { font-size: 1.25rem; color: var(--ink); }
.sub-card__value { font-size: 0.7rem; color: var(--muted); line-height: 1.3; }
.sub-card__cta { flex: none; }

/* Active subscriber → the card and its badge go amber (membership), to
   visually distinguish a member from the cyan "Subscribe" acquisition card. */
.sub-card--active {
  border-color: var(--amber);
  background:
    linear-gradient(180deg, rgba(245, 199, 127, 0.06), rgba(245, 199, 127, 0)),
    radial-gradient(150% 150% at 100% 0%, rgba(245, 199, 127, 0.12), rgba(245, 199, 127, 0));
}
/* Right-aligned plan cluster under the active card (2026-10-19, Garrett):
   the tier pill + the Cancel/Reactivate + Change plan buttons travel together
   on the card's right (the old actions row sat as a squeezed third flex
   item). Ghost buttons are the visible billing door beside the amber pill. */
.sub-card__actions {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.sub-card__action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.sub-card__actions .button--ghost {
  border-color: rgba(169, 205, 224, 0.28);
  color: var(--muted, #94a9b8);
}
.sub-card__actions .button--ghost:hover {
  border-color: rgba(169, 205, 224, 0.55);
  color: var(--ink);
}
/* The tier pill floats centered over the button pair (2026-10-19, Garrett)
   while the buttons keep their right-aligned placement. */
.sub-card__actions > .sub-badge {
  align-self: center;
}
/* Amber "Terminal Plan" membership badge — replaces the Subscribe button;
   the whole pill is a button that opens the Stripe billing portal. */
.sub-badge {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; border-radius: 999px; cursor: pointer; font: inherit;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; white-space: nowrap;
  border: 1px solid var(--amber); color: var(--amber);
  background: rgba(245, 199, 127, 0.1);
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  /* Amber-only rolling glow (same 14s rhythm as the site, but stays amber
     to preserve the "member" cue rather than cycling through cyan). */
  animation: sub-badge-glow 14s ease-in-out infinite;
}
@keyframes sub-badge-glow {
  0%, 100% {
    border-color: rgba(245, 199, 127, 0.5);
    box-shadow: 0 0 10px rgba(245, 199, 127, 0.1);
  }
  50% {
    border-color: var(--amber);
    box-shadow: 0 0 18px rgba(245, 199, 127, 0.3);
  }
}
.sub-badge:hover:not(:disabled) {
  animation: none;
  background: rgba(245, 199, 127, 0.2);
  box-shadow: 0 0 14px rgba(245, 199, 127, 0.25);
  transform: translateY(-1px);
}
.sub-badge:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.sub-badge:disabled { opacity: 0.6; cursor: default; animation: none; }

/* Tier variants of the pill (wallet header). Analyst keeps the amber base above;
   Researcher goes cyan and Basic goes muted — no glow, so the amber membership
   cue stays exclusive to the top tier. */
.sub-badge--member {
  border-color: var(--accent); color: var(--accent);
  background: rgba(125, 234, 244, 0.1);
  animation: none;
}
.sub-badge--member:hover:not(:disabled) {
  background: rgba(125, 234, 244, 0.2);
  box-shadow: 0 0 14px rgba(125, 234, 244, 0.22);
}
.sub-badge--member:focus-visible { outline-color: var(--accent); }
.sub-badge--basic {
  border-color: var(--line); color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  animation: none; text-decoration: none;
}
.sub-badge--basic:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}
.sub-badge--basic:focus-visible { outline-color: var(--muted); }

/* Institution wallet pill: steady cyan+amber dual glow, non-interactive
   (custom terms — account team manages changes). */
.sub-badge--institution {
  border-color: var(--amber);
  color: var(--amber);
  background: linear-gradient(90deg, rgba(125, 234, 244, 0.14), rgba(245, 199, 127, 0.14));
  animation: none; cursor: default; text-decoration: none;
  box-shadow: 0 0 10px rgba(125, 234, 244, 0.14), 0 0 16px rgba(245, 199, 127, 0.14);
}
.sub-badge--institution:hover:not(:disabled) {
  animation: none;
  background: linear-gradient(90deg, rgba(125, 234, 244, 0.2), rgba(245, 199, 127, 0.2));
  box-shadow: 0 0 12px rgba(125, 234, 244, 0.18), 0 0 18px rgba(245, 199, 127, 0.18);
  transform: none;
}

/* ============================================================
   Compact memo archive (dashboard panel) — drops At Run / Change /
   Completed columns so the action button stops colliding with the
   date. Full table stays on the Archive page.
   ============================================================ */
.memo-archive-row--compact {
  /* Denser rows so the dashboard's 3-row mini archive fits its band without
     the thin scrollbar, even when the credits banner shrinks the panel
     (2026-10-19, Garrett: "the rows should be sized so a scroll is not
     needed"). Base row padding is 16px; compact drops it to 10px. */
  padding: 10px 18px;
  grid-template-columns:
    minmax(130px, 1.85fr)   /* ticker + company (stacked) */
    minmax(60px, 0.78fr)    /* current */
    minmax(60px, 0.78fr)    /* at run */
    minmax(56px, 0.7fr)     /* since run % */
    minmax(62px, 0.78fr)    /* Fair Value */
    minmax(56px, 0.7fr)     /* to Fair Value % */
    minmax(96px, auto);     /* action */
}

/* ============================================================
   SINGLE-FRAME DASHBOARD (wide layout only). The whole terminal —
   sidebar + topbar + all four panels + footer — lives inside one
   100vh frame with no page scroll. Synthesized from a 3-way design
   panel: fixed shell + content caps, hardened with density trims and
   an archive-body safety scroll. All rules are dash-scoped; the
   marketing site is untouched. Below 1180px the grid collapses to a
   single column and normal page scrolling is restored.

   Load-bearing fact: the grid is wrapped in <div class="stack">
   inside .dash__content, so the flex chain is
   .dash__content > .stack > .dash-grid — every link MUST keep
   min-height:0 or the height:100% panels re-inflate the rows and
   overflow returns.
   ============================================================ */
/* --u = a viewport-height "density factor", a LENGTH from 0px (at 680px tall)
   to 1px (at 1040px+). Used as `calc(minTight + rangeNumber * var(--u))` to
   fluidly interpolate paddings/gaps/fonts so the dashboard fits ANY wide
   viewport height without page scroll (replaces the old 880px cutoff). */
.dash {
  --u: clamp(0px, calc((100vh - 680px) / 360), 1px);
  /* --dash-gutter = THE dashboard vertical rhythm: the hero→archive row gap
     AND the archive-row→footer-disclosure gap both use it, so the two gutters
     always read as one value. Fixed (not --u-fluid) on purpose: the grid rows
     are fr units that fill the band, so a constant gutter costs panel height,
     never page height — and the panels scroll internally when squeezed. */
  --dash-gutter: 16px;
  height: 100vh; min-height: 0; overflow: hidden;
  /* Theme every scrollbar inside the terminal. scrollbar-color INHERITS, so
     setting it here cascades to every scroll area (archive body + the routed
     Status/Archive/Account page scroll). scrollbar-width does NOT inherit in
     Chrome, so `thin` is set directly on each scroller (.dash__content,
     .memo-archive-body). NOTE: Chrome 121+ uses the standard scrollbar whenever
     scrollbar-width/color is set and then IGNORES ::-webkit-scrollbar — which is
     exactly why the archive scrollbar rendered OS-gray before (scrollbar-width
     was set, scrollbar-color was not). The ::-webkit rules below are the Safari
     fallback (Safari ignores the standard scrollbar-* props). */
  scrollbar-width: thin;
  scrollbar-color: var(--accent-deep) transparent;
}
/* Safari fallback — it ignores the standard scrollbar-* props and honors only
   these pseudo-elements. Colors match --accent-deep so both engines look the
   same teal. Descendant scope so it applies to any scroll area in the frame. */
.dash ::-webkit-scrollbar { width: 8px; height: 8px; }
.dash ::-webkit-scrollbar-track { background: transparent; }
.dash ::-webkit-scrollbar-thumb {
  background: var(--accent-deep); border-radius: 4px;
  border: 2px solid transparent; background-clip: padding-box;
}
.dash ::-webkit-scrollbar-thumb:hover { background: var(--accent); }
.dash__main { height: 100vh; min-height: 0; }
.dash__topbar { flex: 0 0 auto; }
.dash__footer { flex: 0 0 auto; padding: 12px 18px; }
.dash__content {
  flex: 1 1 auto; min-height: 0; padding: 20px 28px;
  /* Scrollable band, not a hard clip: the dashboard grid fills it
     exactly so it never scrolls, but the OTHER routed pages (Status,
     Archive, full forms) can have tall content — they scroll inside
     the fixed sidebar/topbar/footer frame instead of being clipped. */
  overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column;
  scrollbar-width: thin; /* color inherits from .dash; width must be set here */
}
/* The scaler wraps the page content (children). It's a transparent flex
   passthrough by default; the scale-to-fit safety net (JS) only engages
   .is-scaling on very short screens. */
.dash__content > .dash__scaler {
  flex: 1 1 auto; min-height: 0;
  display: flex; flex-direction: column;
}
.dash__scaler > .stack {
  flex: 1 1 auto; min-height: 0;
  display: flex; flex-direction: column; gap: 14px;
}
/* Archive (no .dash-grid, tall content) flows at natural height and
   scrolls inside .dash__content. The Status page is excluded — it fits one frame
   with its OWN internal scroll (the queue list), handled by the flex rules on
   .live-pipeline / .queue-status below. The Account hero page is also excluded
   (see the :has(.account-hero) fill rules just below). */
.dash__content:not(:has(.dash-grid)):not(:has(.queue-status)):not(:has(.feed-board)):not(:has(.archive-board)):not(:has(.account-hero)) > .dash__scaler { display: block; flex: 0 0 auto; }
.dash__content:not(:has(.dash-grid)):not(:has(.queue-status)):not(:has(.feed-board)):not(:has(.archive-board)):not(:has(.account-hero)) > .dash__scaler > .stack { flex: 0 0 auto; }

/* Account page: the height-clamped hero could leave a dead band of bare shell
   background between itself and .dash__footer on tall viewports. Scoped via
   :has(.account-hero) so Status/Archive/dashboard/landing are untouched — the
   scaler/stack keep their default fill behavior (the exclusion above), and the
   hero stretches over the leftover band (it scrolls internally, so nothing is
   clipped). Desktop-only: under 901px the hero stacks to one column at natural
   height and the page scrolls instead. */
@media (min-width: 901px) {
  .dash__content:has(.account-hero) .single-column {
    display: flex;
    flex-direction: column;
    gap: 22px;
    flex: 1 1 auto;
    min-height: 0;
  }
  .dash__content:has(.account-hero) .account-hero {
    flex: 1 1 auto;
    min-height: 0;
  }
}

/* Company Feed: the post list scrolls INSIDE the card (like the Status queue) so
   the title + footer stay put as posts accumulate. With only a few posts the
   card keeps its natural, tight height (flex 0 1 auto = size to content, but
   shrink to fit the frame when there are many). */
.feed-board { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 14px; }
.feed-board > .board-head { flex: 0 0 auto; }
.feed-board .news-board {
  position: relative;
  flex: 0 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.feed-board .news-board__head { flex: 0 0 auto; }
.feed-board .news-board__list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: auto;               /* prominent in Firefox */
  scrollbar-color: var(--accent-deep) rgba(125, 234, 244, 0.06);  /* visible thumb + track */
  /* Bottom fade signals more content below the fold. */
  -webkit-mask-image: linear-gradient(to bottom, black calc(100% - 22px), transparent 100%);
  mask-image: linear-gradient(to bottom, black calc(100% - 22px), transparent 100%);
  padding-bottom: 6px;
}

/* P3 FE-59 (2026-09-21): the fade above is a PROMISE — "there is more below".
   It was painted unconditionally, so it also sat over a two-post feed that
   fitted entirely on screen, and over the last post once the reader had
   scrolled to the end: both times it dimmed real content while implying
   something further down that did not exist.
   Tie it to scroll position instead. `scroll(self block)` yields an INACTIVE
   timeline when the list has no scrollable overflow, and an inactive timeline
   suppresses the animation entirely — so the non-overflowing case falls back
   to the `--feed-fade: 0px` declared below, i.e. no mask at all. When the list
   does scroll, the fade is full at the top and interpolates to nothing by the
   time the reader reaches the bottom.
   Browsers without scroll-driven animations never enter this block and keep
   the original always-on fade, which is what they render today. */
@property --feed-fade {
  syntax: "<length>";
  inherits: false;
  initial-value: 22px;
}

@keyframes feed-fade-clear {
  from { --feed-fade: 22px; }
  to { --feed-fade: 0px; }
}

@supports (animation-timeline: scroll()) {
  .feed-board .news-board__list {
    --feed-fade: 0px;
    -webkit-mask-image: linear-gradient(to bottom, black calc(100% - var(--feed-fade)), transparent 100%);
    mask-image: linear-gradient(to bottom, black calc(100% - var(--feed-fade)), transparent 100%);
    animation: feed-fade-clear linear both;
    animation-timeline: scroll(self block);
  }
}
/* webkit fallback (Safari) — wider, always-visible thumb */
.feed-board .news-board__list::-webkit-scrollbar { width: 12px; }
.feed-board .news-board__list::-webkit-scrollbar-track { background: rgba(125, 234, 244, 0.05); border-radius: 6px; }
.feed-board .news-board__list::-webkit-scrollbar-thumb { background: var(--accent-deep); border-radius: 6px; border: 2px solid transparent; background-clip: padding-box; }
.feed-board .news-board__list::-webkit-scrollbar-thumb:hover { background: var(--accent); }
/* Safety net: when even the fluid-compressed grid can't fit a very short
   viewport, render the grid at its NATURAL height and uniformly scale the
   whole thing down so the frame always fits (no page scroll on any display).

   Uses `zoom`, NOT `transform: scale`. A transform does not shrink an element's
   LAYOUT box, so the scaled scaler kept its full natural height, overflowed
   .dash__content, and spawned a scrollbar. That scrollbar narrowed the content,
   forced a re-measure, and fed back through the ResizeObserver into a vertical
   "bounce" oscillation (only on windowed short viewports; fullscreen was tall
   enough to never scale). `zoom` shrinks the box in layout too, so it actually
   fits — no scrollbar, no feedback loop — and re-rasterizes crisply rather than
   scaling a blurry layer. Supported in all current browsers. */
@media (min-width: 1181px) {
  /* The dashboard grid fills exactly one frame, so its outer content must never
     scroll (only the archive body scrolls internally). This also removes the
     scrollbar that fed the scale-to-fit loop. Scoped to the dashboard via
     :has(.dash-grid) so Status / Archive / Account still scroll in the frame. */
  .dash__content:has(.dash-grid) { overflow: hidden; }

  /* Text-only enlargement stands the fit-to-band scaler down (see
     useFitToBand in DashboardShell.js) — without this the un-scaled grid
     would be clipped by the rule above with no scrollbar to recover it. */
  .dash__content.is-text-zoom:has(.dash-grid) { overflow-y: auto; }

  .dash__scaler.is-scaling {
    flex: 0 0 auto;
    zoom: var(--fit, 1);
    margin: auto;
  }
  .dash__scaler.is-scaling > .stack { flex: 0 0 auto; }
  .dash__scaler.is-scaling .dash-grid { grid-template-rows: auto auto; height: auto; flex: 0 0 auto; }
  .dash__scaler.is-scaling .dash-grid__hero,
  .dash__scaler.is-scaling .dash-grid__rail,
  .dash__scaler.is-scaling .dash-grid__archive,
  .dash__scaler.is-scaling .dash-grid__feed { overflow: visible; }
}
@media (min-width: 1181px) {
  /* Short-viewport NATURAL-FLOW fallback (useFitToBand stands down when the
     fit-to-band zoom would drop below ~0.85 — the 0.74-zoom cram defect).
     Mirrors the ≤1180px collapse at DESKTOP width: the dashboard releases
     the fixed 100vh frame (height auto, page scrolls), the 2×2 grid keeps
     its columns but rows become auto (panels at natural height — nothing
     cut off or pushed into edges), and every internal scroller returns to
     natural flow. Desktop chrome (sidebar + topbar) stays put; only the
     frame + grid internals relax. The JS measures against the VIEWPORT band
     (not the reflowed content height), so this class toggles deterministically
     with no feedback loop. */
  .dash:has(.dash__scaler.is-natural) { height: auto; min-height: 100vh; overflow: visible; }
  .dash:has(.dash__scaler.is-natural) .dash__main { height: auto; min-height: 100vh; }
  .dash:has(.dash__scaler.is-natural) .dash__content { overflow: visible; display: block; }
  .dash__scaler.is-natural { display: block; zoom: normal; width: auto; margin-left: 0; flex: 0 0 auto; }
  .dash__scaler.is-natural > .stack { display: grid; gap: 22px; flex: 0 0 auto; }
  .dash__scaler.is-natural .dash-grid { display: grid; grid-template-rows: none; }
  .dash__scaler.is-natural .dash-grid__hero,
  .dash__scaler.is-natural .dash-grid__rail,
  .dash__scaler.is-natural .dash-grid__archive,
  .dash__scaler.is-natural .dash-grid__feed { overflow: visible; }
  .dash__scaler.is-natural .dash-grid__archive .memo-archive-browser { display: block; }
  .dash__scaler.is-natural .dash-grid__archive .memo-archive-table { display: block; }
  .dash__scaler.is-natural .dash-grid__archive .memo-archive-body { overflow: visible; }
  .dash__scaler.is-natural .dash-grid__feed .news-board { display: grid; }
  .dash__scaler.is-natural .dash-grid__feed .news-board__list { overflow: visible; }
  .dash__scaler.is-natural .dash-grid__hero .pipeline { overflow: visible; }
}
@media (min-width: 1181px) {
  /* Full Archive board (ArchiveBoard): one frame exactly like the dashboard.
     The board-head title band + the card header (search bar + column heads)
     pin in place; ONLY the memo rows scroll internally; the pagination footer
     stays pinned at the card bottom. The frame-filling base flex rules apply
     because EDIT 1 carves Archive out of the natural-height rules above. */
  .archive-board > .board-head,
  .archive-board > .notice { flex: 0 0 auto; }
  .archive-board > .card {
    flex: 1 1 auto; min-height: 0;
    display: flex; flex-direction: column; gap: 14px;
    /* 2026-09-27 formatting review: the shared .card 24px block padding is
       priced for prose. Here the card's only child is .memo-archive-browser,
       which draws its OWN border + 18px radius and whose first child is a
       full-bleed search band — so the 24px above it read as a dead moat, and
       the 24px below sat under the last row with nothing in it. Every pixel of
       it comes straight out of the rows the reader came for, which are the
       one thing on this page that has to scroll. 16px still separates the two
       card edges clearly; the horizontal 24px is untouched (it aligns the
       browser with the board-head above it). */
    padding-top: 16px;
    padding-bottom: 16px;
  }
  /* The board-head is the page's title band, not a hero: a 1.9rem serif H2 and
     one line of sub-copy. `p { line-height: 1.72 }` (a prose value) plus the
     H2's 6px top margin spent ~16px of the frame on leading alone. */
  .archive-board > .board-head .board-title { margin-top: 0; }
  .archive-board > .board-head .board-sub { line-height: 1.5; }
  .archive-board .memo-archive-browser {
    display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto;
  }
  .archive-board .memo-archive-search,
  .archive-board .memo-archive-pagination { flex: 0 0 auto; }
  .archive-board .memo-archive-table {
    display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto;
  }
  .archive-board .memo-archive-head { flex: 0 0 auto; }
  .archive-board .memo-archive-body {
    flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin;
  }
}

/* Grid fills the leftover band; two fr rows, hero/rail a touch taller.
   Row/column gap = the shared --dash-gutter (see .dash) so the hero→archive
   gap matches the archive→footer gap exactly. */
.dash__content .dash-grid {
  flex: 1 1 auto; min-height: 0;
  grid-template-rows: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: var(--dash-gutter); align-content: stretch;
}
.dash-grid__hero, .dash-grid__rail,
.dash-grid__archive, .dash-grid__feed { min-height: 0; min-width: 0; overflow: hidden; }
.dash-grid .panel { padding: 18px; gap: 12px; }
/* Feed/archive panel heads: the caption pill is a FIXED 10.5rem wide by
   default — in the 1/3-width rail it ate the head and pushed "View All
   Posts →" into the panel edge. Inside the grid the caption sizes to its
   text, so the link + arrow sit inside the panel with clean spacing at
   every width (2026-09-09). */
.dash-grid .panel__head .terminal-caption {
  width: auto; flex: 0 1 auto; min-width: 0; padding: 0 12px;
}

/* Hero — keep the 4-stage stepper, trim the vertical rhythm. */
.dash-grid__hero .run-memo-card { padding: 18px; gap: 9px; }
.dash-grid__hero .ticker-input { font-size: 1.2rem; padding: 11px 16px; }
/* Keep the run-row (and command line) to the left ~62% so the faceted hound
   in the hero art (methodology-hero.webp ::before, right-center) shows. */
.dash-grid__hero .form-grid,
.dash-grid__hero .terminal-lines { max-width: 62%; }
/* The hound sits at 0.22 opacity by default (a faint texture). Now that the
   right side is clear, brighten it so the dog's head actually reads. */
.dash-grid__hero .run-memo-card::before { opacity: 0.42; }
.dash-grid__hero .pipeline { padding-top: 10px; gap: 9px; }
.dash-grid__hero .pipeline__node { width: 32px; height: 32px; }
.dash-grid__hero .pipeline__stage:not(:last-child)::after { top: 16px; }
/* The stepper is the hero's flexible region: it absorbs spare height when the
   band is tall AND gives it back first when the band is short (first-run copy,
   short laptops) — shrinking to an INTERNAL scroll instead of pushing the card
   past its cell. Centering moves from justify-content:center to auto margins
   because a centered flex container clips the TOP of overflowing content with
   no way to scroll to it; auto margins center identically when there's spare
   space and collapse to 0 when there isn't. */
.dash-grid__hero .pipeline {
  justify-content: flex-start; min-height: 0;
  overflow-y: auto; scrollbar-width: thin;
}
.dash-grid__hero .pipeline__heading { margin-top: auto; }
.dash-grid__hero .pipeline__stages { margin-bottom: auto; }

/* Wallet rail — denser balance + offers; everything stays visible. */
.dash-grid__rail .wallet-rail { padding: 18px; gap: 10px; }
.dash-grid__rail .wallet-balance { padding: 12px; gap: 8px; }
/* Balance figure at production's on-screen size — the dashboard rail renders
   the same ~20-22px balance as production at 1440x900 (2rem rendered 32px,
   ~10px over production; 1.3rem = 20.8px at the 16px root, 2026-09-09). */
.dash-grid__rail .wallet-balance__figure strong { font-size: 1.3rem; }
.dash-grid__rail .wallet-rail__offers { gap: 8px; }
.dash-grid__rail .wallet-rail__fineprint { font-size: 0.68rem; line-height: 1.4; }

/* Archive — 3 compact preview rows; the body is the single graceful internal
   scroll for short screens. Every link of the chain
   browser → table → body needs min-height:0 (the table wrapper was missing,
   so the body never actually became height-constrained and the panel clipped
   instead of scrolling — the ArchiveBoard block above already had it). The
   column-head row stays pinned above the scrolling body. */
.dash-grid__archive .memo-archive-browser {
  display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto;
  /* Match .dash-grid__feed .news-board's borderless treatment: the outer
     .panel is the only frame — no card-in-a-card (P2-3 2026-09-06). */
  border: none; border-radius: 0; background: none;
}
.dash-grid__archive .memo-archive-table { display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; }
.dash-grid__archive .memo-archive-head { flex: 0 0 auto; }
/* Scrollbar COLOR inherits from .dash; scrollbar-width does NOT inherit in
   Chrome, so set `thin` directly on the scroller. (::-webkit fallback is the
   .dash rule above, for Safari.) */
.dash-grid__archive .memo-archive-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; }

/* Fresh-account archive (dashboard only — ResearchConsole renders this;
   ArchiveBoard keeps its own .notice empty state). Fills the whole panel body
   between the pinned head and the panel bottom, message centered both ways,
   so a 0-memo archive is a full-size panel instead of a stray note over a
   dead band. ≤1180px the panel is natural height and the padding alone keeps
   the block reading intentional. */
.archive-empty {
  flex: 1 1 auto; min-height: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 26px 18px; text-align: center;
}
.archive-empty__title {
  margin: 0; font-family: var(--font-serif), serif;
  font-size: 1.2rem; color: var(--ink);
}
.archive-empty__sub {
  margin: 0; max-width: 46ch;
  font-size: 0.8rem; line-height: 1.55; color: var(--muted);
}
.dash-grid__archive .memo-archive-row { padding: 10px 14px; }
.dash-grid__archive .memo-archive-cell { font-size: 0.8rem; }

/* Feed — 2 posts, bodies clamped to 2 lines. Neutralize NewsBoard's
   OWN nested card + duplicate header so the outer .panel is the only
   container (NewsBoard renders a full `card terminal-shell` with its
   own .news-board__head — a card-in-a-card that doubled the header). */
.dash-grid__feed .news-board {
  padding: 0; border: none; background: none; box-shadow: none; gap: 10px;
  /* Flex column (overrides .stack's grid) so the post list below can be a
     true min-height:0 internal scroller inside the fixed panel. */
  display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0;
}
.dash-grid__feed .news-board::before,
.dash-grid__feed .news-board::after { display: none; }
.dash-grid__feed .news-board > .news-board__head { display: none; }
/* Posts scroll INSIDE the panel when they exceed its fixed body (the ≤1180px
   block below restores natural flow on mobile). */
.dash-grid__feed .news-board__list {
  gap: 10px; flex: 1 1 auto; min-height: 0;
  overflow-y: auto; scrollbar-width: thin;
}
.dash-grid__feed .news-post { padding: 11px 14px; }
.dash-grid__feed .news-post__body {
  margin: 0 0 6px; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}

/* Restore natural flow + page scroll once the grid collapses to one
   column (≤1180px). Selectors match the higher-specificity rules above. */
@media (max-width: 1180px) {
  .dash { height: auto; min-height: 100vh; overflow: visible; }
  .dash__main { height: auto; min-height: 100vh; }
  .dash__content { overflow: visible; display: block; padding: 18px; }
  .dash__content > .dash__scaler { display: block; zoom: normal; width: auto; margin-left: 0; }
  .dash__scaler > .stack { display: grid; gap: 22px; }
  .dash__content .dash-grid { display: grid; grid-template-rows: none; }
  .dash-grid__hero, .dash-grid__rail,
  .dash-grid__archive, .dash-grid__feed { overflow: visible; }
  .dash-grid__archive .memo-archive-browser { display: block; }
  .dash-grid__archive .memo-archive-table { display: block; }
  .dash-grid__archive .memo-archive-body { overflow: visible; }
  .dash-grid__feed .news-board { display: grid; }
  .dash-grid__feed .news-board__list { overflow: visible; }
  .dash-grid__hero .pipeline { overflow: visible; }
}

/* (The old @media(max-height:879px) scroll fallback was removed — the fluid
   density layer below now shrinks the panels to fit short viewports, so the
   frame stays fixed and never releases to a page scroll.) */

/* ---- Single-frame density refinement (verified against the 900px
   preview): the first pass clipped the wallet's 2nd pack + fineprint
   and the feed's 2nd post, and 40px action buttons made archive rows
   too tall to show 4 without an internal scrollbar. Tighten just
   enough that all four panels fit their cells with nothing clipped. */
@media (min-width: 1181px) {
  /* Archive — 3 preview rows fit cleanly with no internal scrollbar
     (4 forced a scroll at 900px); the rest live behind View All Archive. */
  .dash-grid__archive .memo-archive-row { padding: 9px 14px; }

  /* Wallet — denser balance + offer cards so Subscribe + BOTH packs +
     fineprint all fit the rail without scrolling. */
  .dash-grid__rail .wallet-rail { padding: 16px; gap: 9px; }
  .dash-grid__rail .wallet-balance { padding: 9px 11px; gap: 5px; }
  .dash-grid__rail .wallet-rail__offers { gap: 7px; }
  .dash-grid__rail .sub-card { padding: 10px 12px; gap: 10px; }
  .dash-grid__rail .sub-card__price strong { font-size: 1.15rem; }
  .dash-grid__rail .wallet-pack { padding: 9px 11px; }
  .dash-grid__rail .wallet-pack__price { font-size: 1.05rem; }
  .dash-grid__rail .wallet-pack__cta { margin-top: 4px; }

  /* Feed — clamp title to 1 line + tighten post rhythm so 2 full posts
     (with Read more) fit the panel without the 2nd being cut off. */
  .dash-grid__feed .news-board__list { gap: 8px; }
  .dash-grid__feed .news-post { padding: 9px 12px; }
  .dash-grid__feed .news-post__head { margin-bottom: 3px; }
  .dash-grid__feed .news-post__title {
    margin: 0 0 3px;
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
  }
  .dash-grid__feed .news-post__body { line-height: 1.4; }
}

/* ---- FLUID single-frame (placed last so it overrides the fixed density
   above). Every value interpolates from a tight floor (at 680px tall) up to
   the current value (at 1040px+) via `calc(floor + range * var(--u))`, where
   var(--u) is a 0px→1px length. This lets the dashboard compress smoothly to
   fit short viewports (e.g. 1080p @125% ≈ 754px) with no page scroll, and
   expand to the full design at ~1040px+. Only the panel INTERNALS shrink —
   the fr rows keep filling the frame, so it never clips or leaves a gap. */
@media (min-width: 1181px) {
  /* shell + grid rhythm */
  .dash__content { padding: clamp(9px, calc(9px + 9 * var(--u)), 18px) 28px; }
  .dash__footer { padding: clamp(7px, calc(7px + 5 * var(--u)), 12px) 18px; }
  /* Dashboard band only (:has, like the overflow rule above): the top/bottom
     padding equals --dash-gutter, so topbar→hero, hero→archive (grid gap) and
     archive→footer-disclosure are ONE uniform gutter. Not fluid — the fr rows
     absorb the difference, and panels scroll internally when squeezed. The
     other terminal pages keep the fluid padding above. */
  .dash__content:has(.dash-grid) {
    padding-top: var(--dash-gutter);
    padding-bottom: var(--dash-gutter);
  }
  .dash-grid .panel { padding: clamp(11px, calc(11px + 7 * var(--u)), 18px); gap: clamp(8px, calc(8px + 4 * var(--u)), 12px); }

  /* hero — the tallest panel; compress card + input + stepper */
  .dash-grid__hero .run-memo-card { padding: clamp(10px, calc(10px + 8 * var(--u)), 18px); gap: clamp(5px, calc(5px + 4 * var(--u)), 9px); }
  .dash-grid__hero .ticker-input {
    font-size: clamp(1rem, calc(1rem + 3.2 * var(--u)), 1.2rem);
    padding: clamp(7px, calc(7px + 4 * var(--u)), 11px) 16px;
  }
  .dash-grid__hero .pipeline { padding-top: clamp(6px, calc(6px + 4 * var(--u)), 10px); gap: clamp(6px, calc(6px + 3 * var(--u)), 9px); }
  .dash-grid__hero .pipeline__node { width: clamp(26px, calc(26px + 6 * var(--u)), 32px); height: clamp(26px, calc(26px + 6 * var(--u)), 32px); }
  .dash-grid__hero .pipeline__stage:not(:last-child)::after { top: clamp(13px, calc(13px + 3 * var(--u)), 16px); }

  /* hero, FIRST-RUN variant (0 memos): the intro note + suggested-ticker
     chips add ~80px the fr band doesn't have, which used to force whole-page
     zoom even at 1440×900. Dash-scoped density only — keyed off the firstnote
     with :has (RunMemoPanel has no variant class), so the populated hero and
     the marketing/preview usages keep the roomy rhythm. The stepper's
     min-height:0 + internal scroll (above) is the fallback for whatever a
     very short band still can't absorb. */
  .dash-grid__hero .run-memo-card:has(.run-memo__firstnote) { gap: clamp(3px, calc(3px + 2 * var(--u)), 5px); }
  /* The first-run band must also fit the stepper UNSCROLLED at 1440×900
     (~18px over budget otherwise): the title drops below the .card h2 1.5rem,
     and terminal-lines gives up its base 8px/4px margins — the card gap alone
     spaces it. Populated hero keeps both at full size. */
  .dash-grid__hero .run-memo-card:has(.run-memo__firstnote) .run-memo__title {
    font-size: clamp(1.15rem, calc(1.15rem + 4 * var(--u)), 1.4rem);
  }
  .dash-grid__hero .run-memo-card:has(.run-memo__firstnote) .terminal-lines { margin: 2px 0 0; }
  .dash-grid__hero .run-memo__firstnote { font-size: 0.76rem; line-height: 1.35; }

  /* wallet — compress balance + cards (de-bloated 2026-09-09: the balance
     pills/bubbles + plan pill were oversized at short viewports and added to
     the blown-up feel; floors tightened, tall-window maxima unchanged).
     BALANCE/FINEPRINT TEXT stays at production fixed sizes (2rem / 0.68rem):
     --u compresses LAYOUT (padding/gaps) only, never these fonts (2026-09-09). */
  .dash-grid__rail .wallet-rail { padding: clamp(9px, calc(9px + 6 * var(--u)), 16px); gap: clamp(4px, calc(4px + 5 * var(--u)), 9px); }
  .dash-grid__rail .wallet-balance { padding: clamp(5px, calc(5px + 3 * var(--u)), 9px) 11px; gap: clamp(3px, calc(3px + 2 * var(--u)), 5px); }
  .dash-grid__rail .sub-badge { padding: 5px 10px; font-size: 0.64rem; }
  .dash-grid__rail .sub-badge svg { width: 10px; height: 10px; }
  .dash-grid__rail .wallet-rail__offers { gap: clamp(4px, calc(4px + 3 * var(--u)), 7px); }
  .dash-grid__rail .sub-card { padding: clamp(7px, calc(7px + 3 * var(--u)), 10px) 12px; gap: clamp(7px, calc(7px + 3 * var(--u)), 10px); }
  .dash-grid__rail .wallet-pack { padding: clamp(6px, calc(6px + 3 * var(--u)), 9px) 11px; }

  /* archive + feed rows */
  .dash-grid__archive .memo-archive-row { padding: clamp(6px, calc(6px + 3 * var(--u)), 9px) 14px; }
  /* feed — layout compresses with --u; TEXT stays at the production fixed sizes
     (title 1.05rem, body 0.9rem, link 0.84rem) via the non-fluid rules (2026-09-09) */
  .dash-grid__feed .news-post { padding: clamp(5px, calc(5px + 4 * var(--u)), 9px) 12px; }
  .dash-grid__feed .news-board__list { gap: clamp(5px, calc(5px + 3 * var(--u)), 8px); }
  .dash-grid__feed .news-post__head { margin-bottom: clamp(2px, calc(2px + 1 * var(--u)), 3px); }
  .dash-grid__feed .news-post__title { margin: 0 0 clamp(2px, calc(2px + 1 * var(--u)), 3px); }
  .dash-grid__feed .news-post__body { margin: 0 0 clamp(2px, calc(2px + 4 * var(--u)), 6px); }
}

/* Feed post titles — production-fixed 1.05rem (16.8px at the 16px root) on the
   dashboard. The global .card h3 (1.15rem) out-specifies the base
   .news-post__title, inflating dashboard titles to 18.4px; pin the panel-scoped
   rule (0,2,0 beats .card h3's 0,1,1) so local px == production at every
   viewport (2026-09-09). */
.dash-grid__feed .news-post__title { font-size: 1.05rem; }

/* ============================================================
   MOBILE TERMINAL SHELL (2026-07-03)
   Desktop (≥1181px) is the primary design and is untouched by
   everything below. 761–1180px keeps the existing stacked flow.
   ≤760px gets a real phone shell: sidebar hidden, sticky compact
   topbar, and a fixed bottom tab bar (from TERMINAL_NAV).
   ============================================================ */

/* 761–860px band: the row-sidebar's five labels must never wrap
   letter-by-letter when their flex columns compress. (Harmless on
   desktop — the column sidebar has room for every label.) */
.dash__nav-item { white-space: nowrap; }

/* Bottom tab bar — rendered on every viewport, displayed only ≤760px.
   Auto-flow columns (not a fixed repeat(5)) so a new TERMINAL_NAV entry
   really does appear automatically without wrapping to a second row.
   NOTE: the env(safe-area-inset-*) terms are inert until the app opts into
   viewport-fit=cover (app/layout.js viewport export) — the constant
   fallbacks are correct either way; the env() terms are forward-compat. */
.dash__tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  display: none;
  grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px;
  padding: 6px max(8px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
  border-top: 1px solid var(--line-strong);
  background: rgba(9, 14, 20, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.dash__tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; min-height: 48px; padding: 5px 2px; border-radius: 10px;
  color: var(--muted); font-size: 0.6rem; letter-spacing: 0.05em; text-transform: uppercase;
  transition: color 0.15s ease, background 0.15s ease;
  /* Same guard .dash__nav-item carries: body sets overflow-wrap:anywhere,
     which drops a flex item's min-content width to ONE CHARACTER, so a caption
     wider than its column breaks letter-by-letter into a vertical stack rather
     than overflowing. TERMINAL_NAV is six entries now, not the five the
     column widths were sized for, and "DASHBOARD" no longer fits at 375px. */
  white-space: nowrap;
}
/* Belt for the same problem: if a future caption still overruns its column,
   clip it with an ellipsis instead of letting it bleed into its neighbours. */
.dash__tab span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
/* Six captions across a 360-375px phone: drop the tracking and a hair of type
   size so the longest one fits its column outright. */
@media (max-width: 420px) {
  .dash__tab { font-size: 0.53rem; letter-spacing: 0.02em; }
}
.dash__tab svg { width: 20px; height: 20px; }
.dash__tab.is-active {
  color: var(--accent-ice);
  background: linear-gradient(180deg, rgba(125, 234, 244, 0.14), rgba(125, 234, 244, 0.05));
}
.dash__tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

/* Topbar brand/home link — mobile only (the sidebar owns brand on desktop). */
.dash__topbar-brand { display: none; }

@media (max-width: 760px) {
  .dash__tabbar { display: grid; }
  .dash__sidebar { display: none; }

  /* Compact sticky topbar: title truncates; the shimmer's transparent
     text-fill would render an invisible ellipsis, so fall back to solid
     ink on phones. PlanChip is redundant with the Account tab below. */
  .dash__topbar {
    position: sticky; top: 0; z-index: 50;
    padding: 10px 14px; gap: 10px;
  }
  .dash__topbar-brand {
    display: grid; place-items: center;
    width: 30px; height: 30px; flex: 0 0 auto;
    border-radius: 50%; overflow: hidden;
  }
  .dash__topbar-brand svg, .dash__topbar-brand img { width: 100%; height: 100%; }
  .dash__title {
    background: none; -webkit-background-clip: initial; background-clip: initial;
    -webkit-text-fill-color: currentColor; color: var(--ink); animation: none;
    font-size: 1rem; min-width: 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .dash__topbar-right { gap: 8px; flex: 0 0 auto; }
  .dash__topbar-right .plan-chip { display: none; }
  .dash__credits { padding: 5px 10px 5px 6px; }
  .dash__signout { padding: 10px 12px; }

  /* Clear the fixed tab bar; tighten the frame rhythm. */
  .dash__main { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
  .dash__content { padding: 14px; }
  .dash__footer { font-size: 0.68rem; padding: 10px 14px; text-align: center; }

  /* Dashboard hero: release the desktop 62% cap (kept the hound art clear
     on wide screens; on a phone the input row needs the full card). The
     input rule carries the .dash-grid__hero variant too — the desktop
     density rule (.dash-grid__hero .ticker-input, outside any query) is
     (0,2,0) and would otherwise beat a bare .ticker-input on phones. */
  .dash-grid__hero .form-grid,
  .dash-grid__hero .terminal-lines { max-width: 100%; }
  .dash-grid__hero .ticker-input,
  .ticker-input { font-size: 1.25rem; padding: 12px 16px; }
  .ticker-input-wrapper > button { min-height: 48px; flex: 1 1 auto; }

  /* Status hero: the five engine tiles stack as a vertical checklist —
     the horizontal wire bundle doesn't survive 375px. */
  .engine-timeline { flex-direction: column; gap: 6px; }
  .engine-timeline-step { flex: 0 0 auto; } /* natural height when stacked */
  .engine-timeline__current, .engine-timeline > svg { display: none; }
  .live-pipeline__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
  .live-pipeline__metric--id { grid-column: 1 / -1; }
  /* The base rule ellipsizes the id under white-space: nowrap; on phones the
     full id should wrap instead (users copy it into support requests). */
  .live-pipeline__metric--id strong {
    white-space: normal; text-overflow: clip; overflow-wrap: anywhere;
  }
  /* Phone hero compaction (late in the file so it beats the desktop
     live-pipeline rules above): the hero must share the first viewport
     with the queue. */
  .live-pipeline { padding: 16px; gap: 9px; }
  .live-pipeline__head { gap: 10px; }
  .live-pipeline__headright { gap: 10px; }
  .live-pipeline__clock strong { font-size: 1.15rem; }
  .live-pipeline .engine-timeline-dot { width: 28px; height: 28px; }
  .live-pipeline .engine-timeline-step { padding: 7px 12px; }
  .live-pipeline__meta { margin-top: 6px; padding-top: 8px; }

  /* Boards: slightly tighter heads on phones. */
  .board-title { font-size: 1.15rem; }
  .board-sub { font-size: 0.8rem; }

  /* Queue rows: the fixed 56px ticker column wraps 5-char tickers (GOOGL);
     let the chip size to its content. */
  .queue-row { grid-template-columns: auto 1fr auto; }
  .queue-row .memo-chip { white-space: nowrap; }

  /* Wallet subscribe card: the global ≤640 `.button { width: 100% }` rule
     makes the CTA claim the whole flex row and crushes the text column to
     one character wide (letter-stacking). Stack the card instead: copy on
     top, full-width Subscribe/manage control underneath. */
  .sub-card { flex-direction: column; align-items: stretch; gap: 10px; }
  .sub-card__cta { width: 100%; min-height: 44px; }
  .sub-card .sub-badge { align-self: stretch; justify-content: center; min-height: 44px; }
}

/* Archive column-header hide, cascade-corrected: the ≤920 rule that hides
   .memo-archive-head is overridden at ≤640 by the LATER card-ification rule
   (.memo-archive-row { display: flex }) that the head also matches via its
   shared row class — the headers re-appeared as a stacked column on phones.
   The doubled class wins on specificity; per-cell micro-labels own ≤920. */
@media (max-width: 1180px) {
  .memo-archive-head.memo-archive-row { display: none; }
}

/* Archive memo cards (phone). SUPERSEDED 2026-07-28: the per-metric
   "LABEL value" rows are replaced by the .memo-archive-mobilesum summary
   (hero gap number + price journey + date — see the ≤920px block above);
   the granular cells are display:none on phones. What remains here is the
   card chrome: spacing, the action button, and the ticker/company header
   flowing inline. */
@media (max-width: 640px) {
  .memo-archive-body .memo-archive-row { gap: 7px; padding: 12px 14px; }
  .memo-archive-row .memo-archive-cell--action { margin-top: 4px; }
  /* The extended row absolutely positions the company name below its grid
     slot (a desktop-column trick) — in the stacked card that paints it over
     the summary. Let it flow inline beside the ticker chip. */
  /* padding-right: 92px removed 2026-09-27 — it cleared an absolutely
     positioned status badge (.archive-cell--status) that no component renders,
     so on a 375px phone it held ~1/3 of the ticker row empty and pushed a
     4-5 character company name onto its own line. See the matching note in the
     ≤1180px card-mode block. */
  .memo-archive-row .memo-archive-cell--tickerco {
    display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px;
  }
  .memo-archive-row--extended .memo-archive-tickerco__name,
  .memo-archive-tickerco__name { position: static; }
}

/* Run-confirm dialog presents as a bottom sheet on phones. The consent
   mechanics are IDENTICAL to desktop (scroll, checkbox, explicit
   Confirm & Run) — only the presentation changes. */
@media (max-width: 760px) {
  .tos-overlay:has(.tos-modal--confirm) { align-items: flex-end; padding: 0; }
  .tos-modal--confirm {
    max-width: none; width: 100%;
    max-height: 92vh; max-height: 92dvh;
    border-radius: 20px 20px 0 0;
    border-left: none; border-right: none; border-bottom: none;
    animation: sheet-up 0.24s ease-out;
  }
  .tos-modal--confirm .tos-modal-body { overflow-y: auto; }
  .run-confirm__actions { flex-direction: column-reverse; gap: 8px; }
  .run-confirm__actions .button { width: 100%; min-height: 48px; }
  .tos-modal--confirm .tos-checkbox-label { gap: 12px; }
  .tos-modal--confirm .tos-checkbox-label input { width: 20px; height: 20px; flex: 0 0 auto; }
  /* Inert until viewport-fit=cover (see tabbar note) — but if cover is ever
     enabled, this keeps Confirm & Run out of the iPhone home-indicator zone. */
  .tos-modal--confirm .tos-modal-footer {
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }
}
@keyframes sheet-up {
  from { transform: translateY(28px); opacity: 0.5; }
  to { transform: translateY(0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .tos-modal--confirm { animation: none; }
}

/* ── /learn — education page ─────────────────────────────────────────
   The page reuses the standard marketing primitives (anchor-section,
   section-heading, cards, faq-stack, the shared section rail). These
   rules cover only what those don't: accent-colored inline links inside body copy
   (mirrors .markdown a — the global `a { color: inherit }` would hide
   prose links entirely), and sizing for the three inline SVG figures. */
/* P2 FE-22 (2026-09-21): inline prose links carry a persistent underline, not
   colour alone.
   Colour was the ONLY thing distinguishing these from the surrounding
   sentence — a WCAG 1.4.1 (Use of Colour) failure, and a practical one here:
   the body copy is --muted (#94a9b8) against the cyan accent (#7deaf4), two
   desaturated blues whose difference a red-green or blue-yellow colour-vision
   deficiency largely erases, leaving no cue that the words are clickable. The
   underline is offset and thinned so the terminal typography still reads
   cleanly, and thickens on hover/focus rather than appearing there. Applied to
   /learn, /methodology and rendered Markdown prose — the three surfaces that
   put links inside running text. */
.learn-page p a,
.learn-page li a,
.methodology-page p a,
.methodology-page li a,
.markdown p a,
.markdown li a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: rgba(125, 234, 244, 0.55);
}

.learn-page p a:hover,
.learn-page li a:hover,
.learn-page p a:focus-visible,
.learn-page li a:focus-visible,
.methodology-page p a:hover,
.methodology-page li a:hover,
.methodology-page p a:focus-visible,
.methodology-page li a:focus-visible,
.markdown p a:hover,
.markdown li a:hover,
.markdown p a:focus-visible,
.markdown li a:focus-visible {
  color: var(--accent-ice);
  text-decoration-thickness: 2px;
  text-decoration-color: currentColor;
}

/* The memo citation chips ([1], [2]) are already boxed and coloured, and an
   underline on a bracketed number just reads as noise. */
.markdown p a.memo-citation,
.markdown li a.memo-citation {
  text-decoration: none;
}

/* Learn hero — intro copy beside Figure F1 (mirrors .methodology-hero:
   thesis on the left, its picture on the right). The figure column gets a
   floor so the two-panel SVG's 12px viewBox labels never scale below
   legibility; collapses to one column below 900px like the methodology
   hero. */
.learn-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 36px;
  align-items: center;
}

@media (max-width: 899px) {
  .learn-hero {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.learn-figure {
  margin: 0;
}

.learn-figure svg {
  display: block;
  width: 100%;
  height: auto;
}

.learn-figure figcaption {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Amber current-pulses that travel the Monte Carlo sample paths (SMIL
   animateMotion). Hidden entirely for readers who prefer reduced motion —
   the chart is fully legible static. */
@media (prefers-reduced-motion: reduce) {
  .learn-figure .learn-pulse {
    display: none;
  }
}

/* Mobile figure-scroll affordance: the pan shell opens on the left half of
   each figure with no cue that the payoff continues right (2026-07-13
   design review). Fade the right edge and keep a thin visible scrollbar. */
@media (max-width: 640px) {
  .learn-figure__scroll {
    mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
    scrollbar-width: thin;
  }
}

/* Nine amber F3 pulses — each composes the shared pipeline-current-flow
   travel with the shared pipeline-current-flicker (two animations the
   standalone pulse classes cannot combine, so they are scoped here);
   periods are chosen so travel and flicker never align. */
.learn-pulse--p1 {
  animation: pipeline-current-flow 8.0s linear infinite,
    pipeline-current-flicker 3.1s ease-in-out infinite;
}

.learn-pulse--p2 {
  animation: pipeline-current-flow 6.9s linear infinite,
    pipeline-current-flicker-alt 2.6s ease-in-out infinite;
}

.learn-pulse--p3 {
  animation: pipeline-current-flow 5.7s linear infinite,
    pipeline-current-flicker 2.2s ease-in-out infinite;
}

.learn-pulse--p4 {
  animation: pipeline-current-flow 4.9s linear infinite,
    pipeline-current-flicker-alt 3.7s ease-in-out infinite;
}

.learn-pulse--p5 {
  animation: pipeline-current-flow 4.3s linear infinite,
    pipeline-current-flicker 2.9s ease-in-out infinite;
}

.learn-pulse--p6 {
  animation: pipeline-current-flow 3.9s linear infinite,
    pipeline-current-flicker-alt 2.4s ease-in-out infinite;
}

.learn-pulse--p7 {
  animation: pipeline-current-flow 3.5s linear infinite,
    pipeline-current-flicker 3.3s ease-in-out infinite;
}

.learn-pulse--p8 {
  animation: pipeline-current-flow 6.1s linear infinite,
    pipeline-current-flicker-alt 2.7s ease-in-out infinite;
}

.learn-pulse--p9 {
  animation: pipeline-current-flow 7.4s linear infinite,
    pipeline-current-flicker 3.5s ease-in-out infinite;
}

/* ── Section rail — shared two-column layout ─────────────────────────
   Shared by /learn, /methodology, and /legal. Each page's full-width
   hero sits above; below it the page is a terminal grid — a sticky left
   chapter rail (components/SectionRail.js) beside the content column.
   --chrome-bottom (the site header's viewport bottom edge = sticky top
   offset + rendered height) is measured live by
   components/ChromeOffset.js and published on <html>, since header
   height varies with viewport wrap and auth state. The static :root
   values here are no-JS fallbacks sized to the single-row desktop
   header and the wrapped mobile header, and seed the rail's sticky top
   before the measurement runs. */
:root {
  --chrome-bottom: 136px;
}

/* Two-column grid below the hero: sticky chapter rail | content column.
   Modeled on .memo-terminal. */
.rail-layout {
  display: grid;
  grid-template-columns: minmax(230px, 0.28fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

/* Content column. min-width:0 keeps wide children (figure scroll shells,
   tables) from blowing the grid track past the viewport. The default
   22px rhythm between direct children matches the .single-column grid
   gap the sections sat in before the rail split the page into columns. */
.rail-flow {
  min-width: 0;
}

.rail-flow > * + * {
  /* 34px (was 22px): sections were sitting CLOSER together than their own
     internal 28px card spacing, blurring the section boundaries on
     methodology/legal (2026-07-13 design review). Matches /learn. */
  margin-top: 34px;
}

/* /learn opens the rhythm to 34px — it reproduces the landing page's
   between-section spacing on that long scroll, where 22px separated
   sections *less* than the 28px rhythm inside them, so the repeating
   lead → depth → memo-tie-in → summary pattern ran together. */
.learn-page .rail-flow > * + * {
  margin-top: 34px;
}

/* Left chapter rail — sticky beside the content column. Models
   .memo-sidebar: pins just below the measured header chrome, caps its
   height so the full section list stays reachable when the rail is shorter
   than the body, and hides its scrollbar to keep the terminal frame clean. */
.section-rail {
  position: sticky;
  top: calc(var(--chrome-bottom, 118px) + 12px);
  max-height: calc(100vh - var(--chrome-bottom, 118px) - 28px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.section-rail::-webkit-scrollbar {
  display: none;
}

/* Anchor jumps land headings just clear of the sticky header — no in-page
   bar sits below it any more. Covers both section flavors the rail pages
   use (.anchor-section on /learn + /methodology, .legal-section on /legal)
   and outranks their base scroll-margin rules. */
.rail-layout .anchor-section,
.rail-layout .legal-section {
  scroll-margin-top: calc(var(--chrome-bottom, 118px) + 16px);
}

/* Narrow viewports: collapse to one column and retire the rail. The rail's
   card box is dropped with display:contents rather than removed outright, so
   the MemoTocSpy reading-progress bar and floating section-jump — both
   fixed-position children of the .section-rail aside — keep rendering; only
   the visible rail list is hidden. 1120px (was 920px, the memo's stacking
   breakpoint): with the rail beside it, the methodology pipeline's four
   ~180px header pills overflow their cards below ~1110px — poking into the
   inter-card gaps and, under ~1000px, pushing a horizontal scrollbar onto
   the page. Retiring the rail earlier gives the four-across row + electric
   current the full page width instead of compromising that layout
   (2026-07-17; measured poke to 1105px, scrollbar to 1000px). */
@media (max-width: 1120px) {
  .rail-layout {
    grid-template-columns: 1fr;
  }
  .section-rail {
    display: contents;
  }
  .section-rail > .stack {
    display: none;
  }
}

@media (max-width: 640px) {
  :root {
    /* The header is position:static at this width (it scrolls away — see the
       "Mobile header" block), so nothing sits under an anchored heading and
       the offset is zero. The old 164px was inherited from the sticky
       treatment and pushed every anchor jump ~164px down a 667px viewport.
       NOTE: ChromeOffset.js still overwrites this at runtime with
       stickyTop + header height, which is wrong for a static header — that
       half of the fix lives outside this file (cross-group). */
    --chrome-bottom: 0px;
  }
}

/* The 26-entry numbered references list: two-digit decimal markers need
   more gutter than .bullet-list's 18px (sized for disc bullets). */
.learn-page ol.bullet-list {
  padding-left: 30px;
}

/* Learn section cards — the same tightening the methodology panel cards
   got (see the #dislocations/#valuation/#ai/#quality rule): the grid gap
   owns the spacing and heading/paragraph margins are zeroed. Without
   this the default 16px <p> margins stacked on the 22px stack gap,
   ballooning pill → body → body into 38-54px voids (2026-07-17 operator
   review). Figure cards are excluded so all three figures keep one
   rhythm (F1 lives in the hero, outside this scope). */
.learn-page .rail-flow .card.stack:not(.learn-figure) {
  gap: 10px;
  align-content: start;
}

.learn-page .rail-flow .card.stack:not(.learn-figure) h3,
.learn-page .rail-flow .card.stack:not(.learn-figure) h4,
.learn-page .rail-flow .card.stack:not(.learn-figure) p {
  margin: 0;
}

/* Mid-card subheadings that follow body text get extra air ABOVE
   (18px total vs 10px below) so each subsection reads as a fresh
   start, not a caption clinging to the previous paragraph. */
.learn-page .rail-flow .card.stack:not(.learn-figure) p + h3,
.learn-page .rail-flow .card.stack:not(.learn-figure) p + h4 {
  margin-top: 8px;
}

/* Garrett C5 learn review — section-body line spacing consistency.
   `line-height: 1.72` is set on the bare `p` selector at the top of this
   file, not on html/body, so <li> never inherits it: the two list-bodied
   sections (#how-it-connects, 11 items; #references, 26 citations) render
   their body text at the UA `normal` (~19.2px at 16px) while every prose
   section runs 27.52px. Same class of miss as the methodology card that
   fell out of the tightened-card selector list. Scoped to the learn
   content column so no other page's lists move; the 10px li->li grid gap
   from .bullet-list already matches the prose p->p rhythm, so matching the
   leading is the whole fix. */
.learn-page .rail-flow .bullet-list li {
  line-height: 1.72;
}

@media (max-width: 640px) {
  /* Figure SVGs keep a legible floor width and pan inside the card
     instead of scaling with it — at 375px the full-bleed scale rendered
     the 13px SVG labels at ~5px. */
  .learn-figure__scroll {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(125, 234, 244, 0.22) transparent;
  }
  .learn-figure__scroll svg {
    min-width: 620px;
  }
}

/* ── 2026-07-13 design review: archive grids + print ────────────────── */

/* M33: the --compact variant is declared after the 920px collapse, so its
   7-column grid was crushing into vertical letter stacks at tablet widths.
   Re-assert the collapse for it. */
@media (max-width: 1180px) {
  .memo-archive-row--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.memo-archive-cell__label {
  white-space: nowrap;
}

/* M34: the extended archive grid's minimum column widths can exceed the
   container, clipping the action column with no cue that columns continue.
   Fade the right edge as a scroll affordance (the table shell already scrolls
   horizontally). Column gap 9px: nine gaps at 12px cost 108px of the row's
   851px floor; 9px is part of what lets that floor fit the 858px table at
   the 1181px collapse point (2026-11-13 one-row layout fix). */
.memo-archive-row--extended {
  column-gap: 9px;
}

/* 2026-09-27 formatting review — the fade above was painted UNCONDITIONALLY,
   at every viewport, on every archive surface. But a right-edge fade is a
   PROMISE ("the columns continue this way"), and after FE-34 moved the card
   collapse to 1180px the desktop table normally FITS: the promise was false
   almost everywhere, and the 28px it dimmed to 35% alpha is exactly where the
   last column lives — so "Open Memo" / "Run again" / "Download PDF" were
   permanently washed out on the full Archive, and so was the mini-archive's
   Open Memo on the dashboard. In card mode (<=1180px) there is no horizontal
   scroll at all and it still dimmed the right edge of every card.
   Tie it to scroll position instead, the same way FE-59 fixed the feed's
   bottom fade: `scroll(self inline)` yields an INACTIVE timeline when the
   scroller has no inline overflow, and an inactive timeline suppresses the
   animation — so the (normal) non-overflowing case keeps the `--archive-fade:
   0px` declared below and paints no mask. When the table really does overflow
   — a 1181-1220px viewport, where the 898px grid floor still exceeds the
   band — the fade is full at the left end and gone by the time the reader has
   scrolled the action column into view.
   Browsers without scroll-driven animations get no fade rather than a
   permanent one; the scrollbar (scrollbar-width: thin, themed by .dash) stays
   the affordance there, which is what every other scroller on the page uses. */
.memo-archive-table {
  scrollbar-width: thin;
}

/* initial-value is deliberately 28px, not 0px: the @supports block below sets
   --archive-fade explicitly on the element, so this value is never what paints
   — but the CSS minifier collapses a `0px` initial-value to a unitless `0`,
   and a browser that rejected that would invalidate the whole @property rule,
   leaving --archive-fade unregistered and therefore un-animatable. Keeping a
   unit-bearing value removes that failure mode entirely. */
@property --archive-fade {
  syntax: "<length>";
  inherits: false;
  initial-value: 28px;
}

@keyframes archive-fade-clear {
  from { --archive-fade: 28px; }
  to { --archive-fade: 0px; }
}

@supports (animation-timeline: scroll()) {
  .memo-archive-table {
    --archive-fade: 0px;
    mask-image: linear-gradient(
      to right, #000 calc(100% - var(--archive-fade)), rgba(0, 0, 0, 0.35));
    -webkit-mask-image: linear-gradient(
      to right, #000 calc(100% - var(--archive-fade)), rgba(0, 0, 0, 0.35));
    animation: archive-fade-clear linear both;
    animation-timeline: scroll(self inline);
  }
}

/* M20: print. The dark terminal theme printed as near-white text on white.
   Legibility-first: light tokens, hide chrome/decoration, keep legal +
   memo + learn content readable. */
@media print {
  :root {
    --bg: #ffffff;
    --bg-elevated: #ffffff;
    --ink: #111417;
    --muted: #444b52;
    --line: #c9ced3;
    --line-strong: #9aa1a8;
    --accent: #0b5b70;
    --accent-ice: #0b5b70;
    --amber: #7a5200;
  }
  body {
    background: #fff !important;
    color: #111417 !important;
  }
  body::before,
  .site-shell::before,
  .site-shell::after,
  .site-header,
  .site-footer,
  .disclosure-bar,
  .section-rail,
  .memo-sidebar,
  .memo-progress,
  .memo-jump,
  .learn-pulse,
  .pipeline-flow__current,
  .hero-actions,
  .button {
    display: none !important;
  }
  * {
    animation: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  .card,
  .terminal-shell {
    background: #fff !important;
    border-color: #c9ced3 !important;
  }
  .terminal-caption,
  .hero-copy h1,
  .site-footer__scope,
  .button--accent,
  .queue-row__status--running {
    -webkit-text-fill-color: initial !important;
    background: none !important;
    color: #111417 !important;
  }
  a {
    color: #111417 !important;
    text-decoration: underline;
  }
  .markdown,
  .legal-section,
  .rail-flow {
    color: #111417 !important;
  }
}

/* M27: below ~700px the 980-unit chart shrank until its P10-P90 labels
   rendered ~5-6px. Pan instead of shrink: the shell scrolls horizontally
   with the same right-edge fade cue as the learn figures.
   OPEN (C2 2026-08-03, operator's 375px pass): panning means only P10/P25 are
   visible at rest — P50, the headline fair value, needs a horizontal swipe.
   Both goals cannot be met in CSS alone: the shell's content box is ~217px at
   375px, P50 sits at exactly half the chart's rendered width, so fitting it
   requires a rendered width ≤ ~434px, i.e. a scale ≤0.44, which puts the
   16/14-unit labels back at 6-7px — the state this rule exists to prevent.
   The real fix is a narrow-viewport SVG layout (fewer markers, or stacked
   label/value) in DistributionCard.js. Do not "fix" this by deleting the
   min-width; that only trades a swipe for illegible type. */
@media (max-width: 700px) {
  /* RESOLVED (C2 2026-08-03): the chart now FITS and the numbers move to an
     HTML legend below it. Panning is gone, so the shell no longer scrolls
     and needs no fade cue; the in-SVG marker text is suppressed because at
     this width it would render ~6px. The curve, the markers and the
     current-price line still carry the shape and position — the figures are
     read from .distribution-legend in real type. */
  .distribution-chart-shell .distribution-chart {
    min-width: 0;
  }
  .distribution-chart-shell .distribution-label,
  .distribution-chart-shell .distribution-value,
  .distribution-chart-shell .distribution-current-pill,
  .distribution-chart-shell .distribution-current-text {
    display: none;
  }
}

/* The legend is the narrow-viewport counterpart to the in-SVG labels: one
   home per figure at any width. Written mobile-FIRST (shown by default,
   hidden from 701px up) so the two rules never depend on source order —
   an earlier order-dependent version rendered both the legend and the
   in-SVG labels together on desktop. */
.distribution-legend {
  display: grid;
  /* R5-B1: canonical "FAIR VALUE" legend label needs the wider column;
     "HC 50" fit in 84px. */
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 8px 12px;
  margin: 14px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.distribution-legend li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.distribution-legend span {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.distribution-legend strong {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.distribution-legend__current strong {
  color: var(--accent, #7deaf4);
}

@media (min-width: 701px) {
  /* The chart labels itself at this width, so the legend would duplicate
     every figure. Scoped to the shell (specificity 0,2,0) so it wins
     outright rather than depending on source order against the base rule —
     an order-dependent version rendered both on desktop. */
  .distribution-chart-shell .distribution-legend {
    display: none;
  }
}

/* ── Pre-launch capture form (00024, 2026-08-01) ──────────────────────────
   Lives only on the alpha gate. Uses the terminal's input/button primitives
   so the one interactive element on a closed site still looks like the
   product behind it. */
.prelaunch-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 30rem;
  margin: 0.5rem 0 0;
}
.prelaunch-label {
  font-family: var(--font-mono), monospace;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--accent);
}
.prelaunch-row {
  display: flex;
  gap: 10px;
}
.prelaunch-input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(169, 205, 224, 0.28);
  background: rgba(9, 16, 24, 0.75);
  color: var(--ink);
  font-family: var(--font-mono), monospace;
  font-size: 0.95rem;
}
.prelaunch-input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.prelaunch-note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  max-width: 30rem;
}

/* Honeypot: removed from layout AND from the a11y tree (the wrapper carries
   aria-hidden), so no human — sighted or screen-reader — ever meets it. */
.prelaunch-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
@media (max-width: 480px) {
  .prelaunch-row {
    flex-direction: column;
  }
}

/* ── 2026-08-17 SEO/structure pass: overview cards, summary boxes,
   advanced-topic collapse ─────────────────────────────────────────────
   New patterns for /learn's progressive disclosure and /methodology's
   new inline prose links. Kept to the existing terminal vocabulary:
   --line borders, cyan accents, uppercase micro-labels, the card-grid
   hover lift. */

/* /methodology's inline prose links (learn/sample cross-refs) are styled with
   /learn's in the shared FE-22 rule above — accent colour PLUS a persistent
   underline, since the global `a { color: inherit }` would otherwise hide them
   in body copy and colour alone never distinguished them. */

/* Overview quick-concept grid — one card per /learn concept section. */
.learn-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.concept-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
  transition: border-color 300ms ease, box-shadow 300ms ease, transform 300ms ease;
}

.concept-card:hover {
  border-color: rgba(125, 234, 244, 0.28);
  box-shadow: 0 0 24px rgba(125, 234, 244, 0.06);
  transform: translateY(-2px);
}

.concept-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.concept-card__name {
  color: var(--ink);
  font-size: 0.95rem;
}

/* Blurbs are <span>s (the whole card is one <a>), so they don't inherit
   the accent link color the .learn-page prose rules apply. */
.learn-page .concept-card__blurb,
.concept-card__blurb {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.55;
}

.concept-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.concept-card__more {
  color: var(--accent);
  font-size: 0.8rem;
}

.concept-card:hover .concept-card__more {
  color: var(--accent-ice);
}

/* Reading-time chip — same micro-label voice as .terminal-caption. */
.reading-time {
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Per-section summary box — the skimmable takeaway ("why this matters" +
   "how HoundCreek applies it") closing each /learn concept section. The
   accent left rule marks it as the distilled read of the section above. */
.section-summary-box {
  display: grid;
  gap: 8px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent-deep);
  border-radius: 12px;
  background: rgba(125, 234, 244, 0.04);
}

.section-summary-box p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.section-summary-box strong {
  color: var(--ink);
}

/* Advanced-topic collapse (components/AdvancedCollapse.js). The details
   element ships open — desktop and no-JS readers get the full section —
   and the component closes it on phone-width mounts. The summary reads
   as a terminal toggle line at every width: harmless on desktop,
   essential on mobile. */
.advanced-collapse__summary {
  cursor: pointer;
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  list-style: none;
}

.advanced-collapse__summary::-webkit-details-marker {
  display: none;
}

.advanced-collapse__summary::before {
  content: "▸ ";
  color: var(--accent-deep);
}

.advanced-collapse[open] > .advanced-collapse__summary::before {
  content: "▾ ";
}

.advanced-collapse__summary:hover {
  color: var(--accent-ice);
}

.advanced-collapse__summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* The body wrapper carries the section's 28px stacking rhythm (see
   .anchor-section); it exists because styling <details> itself as a
   grid has patchy open/close behavior in older engines. */
.advanced-collapse__body {
  display: grid;
  gap: 28px;
  margin-top: 28px;
}
/* ============================================================
   Terminal MOBILE deep-review fixes (2026-09-06) — P1-1 / P1-2 /
   P2-1 / P2-2 / P3-1..3 (product-improvements/reviews/
   2026-09-06_TERMINAL_MOBILE_REVIEW.md). CSS/layout only — no data,
   valuation, or API-logic change. Every rule sits inside a mobile/
   ≤breakpoint block so the desktop layout (e6d232d / ca3bd18 /
   dddde90) is untouched at ≥861px.
   ============================================================ */

/* ── P1-2 (≤920): full Archive browser/body sized to the container,
      not to the desktop extended-grid min-content (~673px). Blockify
      the two grid wrappers so card rows, the mobile summary, Open Memo
      and the pagination flow back in-viewport on a phone. ── */
@media (max-width: 920px) {
  .memo-archive-browser,
  .memo-archive-body { display: block; }
  /* Neutralize the desktop 9-column mins in the 2-col table band;
     card mode (≤640) is flex and sizes to the block above. */
  .memo-archive-row--extended { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── P2-2 (≤860): horizontal-sidebar row — Account Settings stays
      in-viewport at 761-860px (iPad portrait). The main nav keeps its
      natural width on line 1 (brand + nav fit there); the bottom-pinned
      pill wraps to its own line and pins right via margin-left:auto
      instead of overflowing off the right edge. ── */
@media (max-width: 860px) {
  .dash__sidebar { flex-wrap: wrap; }
  .dash__nav { flex-wrap: wrap; }
  .dash__nav--bottom { flex: 0 0 auto; margin-left: auto; }
}

/* ── P2-1 touch floors (≤860): the mobile frame (≤760) AND the
      761-860px horizontal-sidebar band (iPad portrait — touch input).
      Desktop (≥861) is untouched. ── */
@media (max-width: 860px) {
  /* Interactive heights ≥44px. */
  .dash__signout { min-height: 44px; }
  .account-hero__tab { min-height: 44px; }
  .memo-cover__share { min-height: 44px; }
  /* M-02: 16px is the iOS Safari threshold — below it, focusing a text
     input auto-zooms the viewport and leaves the page scrolled sideways
     with no way back short of a manual pinch. The archive search was the
     only text input in the mobile frame still under it. */
  .memo-archive-search__input { min-height: 44px; flex: 1 1 auto; max-width: none; font-size: 16px; }
  /* M-04: the "Analyst Terminal" plan switch renders 145x30 in the 761-860px
     horizontal-sidebar band (it is display:none in the ≤760 mobile frame),
     which is a touch band. Pad it to the 44px floor. */
  .plan-chip { min-height: 44px; }
  /* Small-button floor: not-found CTAs (42→44) + full-archive Previous/Next
     + archive-row Open Memo. The pagination + stacked-action overrides beat
     the 28px density pass / min-height:0 from the desktop blocks. */
  .button--small { min-height: 44px; }
  .memo-archive-pagination .button--small { min-height: 44px; }
  .memo-archive-row .memo-archive-cell--action .button { min-height: 44px; }
  .skip-link { min-height: 44px; }

  /* P2-1 / P3-3: text-link tap areas ≥24px — shared floor for panel +
     news links and the wallet fineprint link. */
  .panel__link,
  .news-post__link { display: inline-flex; align-items: center; min-height: 24px; }
  .wallet-rail__fineprint a { display: inline-flex; align-items: center; min-height: 24px; }
}

/* ── Layout-only mobile-frame rules (≤760): P1-1 mini-archive head +
      P1-2 search row (the P2-1 tap floors above already apply through
      860). ── */
@media (max-width: 760px) {
  /* P1-1: drop the as-of out of the mini-archive panel head (its honest
     timestamp lives on the full Archive search row); let the caption/CTA
     wrap; min-width:0 keeps "View Full Archive →" in-viewport at ≤430px.
     Right-pin the CTA when it wraps onto its own line (≤~415px). */
  .panel__head { flex-wrap: wrap; }
  .panel__head > * { min-width: 0; }
  .panel__head .archive-asof { display: none; }
  .panel__head .panel__link { margin-left: auto; }
  /* P2-1: mobile topbar-brand hit area 30→44 (the 30px mark stays 30
     inside the 44px box via padding). */
  .dash__topbar-brand { width: 44px; height: 44px; padding: 7px; }

  /* P1-2 search row: let the full-Archive search/as-of/pagination row
     wrap so Previous/Next land in-viewport at ≤660px. */
  .memo-archive-search { flex-wrap: wrap; row-gap: 8px; }
  .memo-archive-search .archive-asof { white-space: normal; flex: 1 1 auto; min-width: 0; }
}

/* ── Phone (≤640): pagination status drops to its own line so Previous/
      Next never clip inside the overflow-hidden browser on the narrowest
      phones; archive card rows wrap so the mobile summary + Open Memo sit
      in-viewport; account-tab overflow (P3-1). ── */
@media (max-width: 640px) {
  /* The pagination is flex:0 0 auto sized to its single-line max-content
     (~320px), so its internal wrap never engages unless it is constrained
     narrower than that. Give it a full search-row line (flex-basis:100%)
     at phone width: the status then drops to its own line and the
     Previous/Next pair (~160px) fits inside the overflow-hidden browser. */
  .memo-archive-pagination { flex-wrap: wrap; flex: 0 1 100%; row-gap: 6px; }
  .memo-archive-pagination__status { flex: 1 1 100%; }
  .memo-archive-row { flex-wrap: wrap; }
  .memo-archive-row .memo-archive-cell--tickerco,
  .memo-archive-row .memo-archive-mobilesum,
  .memo-archive-row .memo-archive-cell--action { min-width: 0; flex: 1 1 auto; }
  /* P3-1: account tabs — last tab ("Billing") wraps to a second line
     instead of clipping off-screen with no scroll affordance. */
  .account-hero__tabs { flex-wrap: wrap; }
  .account-hero__tab { flex: 1 1 auto; justify-content: center; }
}

/* Share-card metrics grid: deterministic responsive columns — 2 on phones
   (<640px), 4 from 640px up — so a real 375px phone renders a clean 2x4 and
   desktop keeps the even 4x2. A single auto-fit minmax value cannot satisfy
   both: at 375px the card content is ~296px (2 cols need min <= 136px),
   while at the 860px desktop container (~815px content) any min <= 143px
   creates 5 ragged tracks. */
/* P2 FE-53 (2026-09-21): the share card's metric grid goes 4-up at 900px, not
   640px.
   The 640px threshold was set against the viewport without accounting for
   what the row actually has to hold. At a 640px viewport the .site-shell
   takes 48px and the panel's own padding 45px, leaving ~547px; four columns
   and three 24px gaps put each track at ~119px. The values are nowrap +
   ellipsis, so the widest of them — the P10-P90 band, "$402.16 — $664.99" at
   roughly 171px — was silently cut mid-figure across the whole 640-899px
   tablet band. A truncated valuation range is worse than a wrapped one: it
   reads as a complete number that is not the number. Four tracks need ~180px
   each, i.e. ~885px of viewport; below that the 2x2 grid gives every value
   ~261px and nothing is clipped. */
.share-metrics-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 900px) {
  .share-metrics-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Share-card metric values: one ellipsized line at >=640px (the base rule —
   same rendering the inline style produced before), but on phones the 2-col
   ~136px tracks can't hold e.g. "$402.16 — $664.99" (171px) or
   "not meaningful" (141px) at 1.05rem, so mid-word ellipses appeared. Below
   640px, wrap at spaces instead of clipping and drop to 0.92rem monospace
   (~8.8px/char) so single-token values ("$427.91", "2026-08-25",
   "not available") and "not meaningful" (~14ch ≈ 123px) stay on one line
   while the P10–P90 range breaks cleanly at the em-dash. !important is
   required only where the override must beat a JSX inline style.
   max-width is the piece that makes the ellipsis real: the <dd> is
   content-sized, so without a width cap it never overflows itself — an
   extreme band value just ran over the neighboring cells at >=640px. */
.share-metrics-value {
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 639.98px) {
  .share-metrics-value {
    font-size: 0.92rem !important;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
  /* Caveat sub-note ("envelope caveat — …"): give the wrapped lines room to
     breathe against the cell edge; never nowrap, never clipped. */
  .share-metrics-sub {
    line-height: 1.4 !important;
    padding-right: 0.25rem;
    white-space: normal;
    overflow: visible;
  }
}
/* Share-card Rating cell (FE value-agnostic, 2026-10-23; 4+4 balance,
   2026-10-26): the long Not-Rated form ("Not Rated / Speculative (model
   lean: Underperform)") must wrap inside the cell instead of ellipsizing
   mid-label — in the narrower single-track desktop cell that means up to
   ~3 wrapped lines, so the 2-line clamp is GONE (it truncated mid-label at
   185px). The full-row span now applies ONLY below 900px (2-col grid),
   where the rating needs the whole row to wrap tightly; on the 4-col
   desktop grid the rating is a normal single-track cell so both metric
   rows carry exactly four equal cells. !important beats the 1.05rem JSX
   inline style; same 0.92rem the mobile grid already uses. */
@media (max-width: 899.98px) {
  .share-metrics-cell--rating {
    grid-column: span 2;
  }
  .share-metrics-cell--signature {
    grid-column: span 2;
  }
}
.share-metrics-value--rating {
  font-size: 0.92rem !important;
  white-space: normal;
  overflow-wrap: break-word;
  line-height: 1.35;
}
/* Caveat sub-note breathing at ALL widths (was mobile-only): the envelope
   caveat note under Fair value must fit without cramping on desktop too.
   Same content-sized-<dd> trap as .share-metrics-value above: max-width
   keeps the wrapped lines inside the cell instead of the row. */
.share-metrics-sub {
  max-width: 100%;
  line-height: 1.4 !important;
  padding-right: 0.25rem;
  white-space: normal;
  overflow: visible;
}

/* ═══ Stage-3 mobile pass (2026-09-21) — M-01, M-03, M-05, M-06, M-07 ═══
   Appended at the end of the sheet on purpose: several of these rules have
   to beat same-specificity mobile rules declared earlier (the ≤860 24px
   text-link floor, the ≤760 topbar title clamp), and source order is the
   only thing separating them. */

/* ── M-01 (≤760): /sample/[ticker] horizontal page overflow ──────────────
   The memo chain is a stack of grid/flex items — .page > .single-column >
   .memo-terminal > .memo-main > .memo-surface > .memo-render-flow >
   .memo-section-block > .memo-module > .memo-catalyst-grid — and every one
   of them defaults to min-width:auto. That makes each container's minimum
   size its content's min-content width, so the widest unbreakable run in
   the memo body (the catalyst confidence / chip rows, ~486px min-content)
   propagated all the way up and inflated the .single-column track to 405px
   inside a 343px .page. Measured result: documentElement.scrollWidth
   421/422/421 against clientWidth 360/375/390 — the whole page scrolled
   sideways, not just the offending row.

   min-width:0 releases the automatic minimum at every link in the chain so
   the track can shrink to the viewport; max-width:100% keeps any single
   child from re-inflating it; overflow-wrap:anywhere (already the body
   default) lets long unbroken labels break rather than overflow.

   Scoped to ≤760 so the desktop two-column memo and the in-terminal viewer
   — which share .memo-surface / .memo-main / .memo-module and have no
   overflow today — keep their existing intrinsic sizing. The table shells
   (.table-shell / .forecast-table-shell) remain the horizontal-scroll
   containers; their cells keep overflow-wrap:normal from the base rule. */
@media (max-width: 760px) {
  /* M-01: .single-column is the grid item inside .page -- with min-width:auto
     (the default) its minimum size is its content's min-content width, so the
     widest unbreakable run in the memo body inflated the whole page track to
     405px inside a 343px .page (measured scrollWidth 421/422/421 at
     360/375/390). min-width:0 releases that automatic minimum so the track
     shrinks to the viewport; memo-surface below clips its own overflow-x, so
     wider content stops there instead of scrolling the page. Validated live:
     422 -> 375. */
  .single-column,
  .memo-terminal,
  .memo-main,
  .memo-sidebar,
  .memo-surface,
  .memo-render-flow,
  .memo-section-block,
  .memo-module,
  .memo-catalyst-grid,
  .memo-catalyst-card {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  /* Backstop: the sidebar is a flex child at <=920px with min-width:auto,
     so its min-content (the archive switcher row, ~403px) overflowed the
     343px container and inflated the page. min-width:0 above lets it shrink;
     overflow-x:hidden on memo-terminal guarantees no sideways page scroll
     even if a future sidebar child re-inflates. memo-surface already clips
     its own overflow-x, so this never hides memo body content. */
  .memo-terminal { overflow-x: hidden; }

  /* The confidence row is a space-between flex pair ("Confidence" + the
     value). Once the track above it can shrink, this must be allowed to
     wrap rather than hold the row at its single-line max-content. */
  .memo-catalyst-confidence {
    flex-wrap: wrap;
    min-width: 0;
  }
  .memo-catalyst-meta,
  .memo-risk-meta {
    flex-wrap: wrap;
    min-width: 0;
  }
}

/* ── M-03 / M-06 (≤640): phone text-link tap floors + queue wrap ─────────
   Must come after the ≤860 block above, which sets the same text links to
   min-height:24px at equal specificity. */
@media (max-width: 640px) {
  /* M-03: footer column links rendered ~20px tall, panel / news / memo
     "details →" links 15-24px — all under the 44px touch floor, and all
     packed in tight columns where a near-miss hits the neighbour. Only the
     hit box grows; type size, color and hover styles are untouched. */
  .footer-col a,
  .panel__link,
  .news-post__link,
  .settings-row--prose .settings-row__details-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  /* M-06: the status-queue company name ellipsized with no way to reveal
     the rest on touch (no hover, no tap target). Let it wrap to as many
     lines as it needs — the row is grid-aligned on its own column, so a
     second line costs row height and nothing else. The job id beside it
     stays ellipsized: it is an opaque identifier, not information a reader
     completes by reading. */
  .queue-row__company {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
}

/* ── M-05 (≤560): terminal topbar h1 ────────────────────────────────────
   "HoundCreek Research Terminal" was rendering as "HoundCreek Resea…" in a
   77px box. The box is 77px because the topbar's other items are all
   flex:0 0 auto — brand 44px, credits pill ~123px, sign-out ~78px, plus
   28px padding and 20px of gaps — leaving the title whatever remains. A
   max-width clamp cannot widen it, and 28 serif characters need ~190px at
   any legible size, so at phone width the full string genuinely does not
   fit on one line and wrapping it would push the sticky topbar to three
   lines on every scroll.

   So the compact topbar renders a short label and keeps the full product
   name in the DOM, visually hidden — the accessible name of the h1 is
   still "HoundCreek Research Terminal" for screen readers and for the
   document outline. 560px is the crossover: at 561px the title has ~260px
   available against the ~190px it needs, with margin for a wider credit
   count; below that it starts clipping. */
@media (max-width: 560px) {
  .dash__title-full {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    border: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .dash__title-short { display: inline; }
  .dash__title {
    font-size: 0.95rem;
    min-width: 0;
  }
}

/* ── M-07 (≤430): wide-table swipe affordance ───────────────────────────
   .table-shell has overflow-x:auto but nothing on screen says so — the
   scrollbar is auto-hidden on touch, so a clipped forecast table read as a
   truncated table. A fixed right-edge fade over the last 28px reads as
   "there is more this way". pointer-events:none keeps it out of the way of
   the swipe itself, and it sits inside the shell's own rounded border so
   it never covers page chrome. */
@media (max-width: 430px) {
  .table-shell::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 28px;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(4, 8, 13, 0.92));
  }
}

/* ── Account → Security → API keys pane (2026-09-24) ────────────────────
   Key rows reuse the terminal-shell tone; scope badges are the small cyan
   chip the inline <code> treatment already established. The secret reveal
   is the one deliberately loud element — amber border — because it is the
   only moment a full key is ever on screen. */
.api-key-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.api-key-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid rgba(169, 205, 224, 0.14);
  border-radius: 12px;
  background: rgba(4, 8, 13, 0.35);
}

.api-key-row__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 12px;
}

.api-key-row__title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.api-key-row__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.api-key-badge {
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(125, 234, 244, 0.28);
  background: rgba(125, 234, 244, 0.08);
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.api-key-badge--empty {
  border-color: rgba(169, 205, 224, 0.22);
  background: transparent;
  color: var(--muted);
}

.api-key-status {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.api-key-status--suspended {
  color: var(--amber);
}

.api-key-status--expired {
  color: var(--danger);
}

.api-key-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  color: var(--muted);
  font-size: 0.78rem;
}

.api-key-caps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: 10px;
}

/* API-keys pane only (scoped via :has — the pane has no class of its
   own): let field labels wrap. The base .field-label nowrap makes the
   longest label ("Expire key after N days (optional — blank = no
   expiry)", min-content ≈447px) floor the form column and clip the
   card on ≤430px screens. Other .field-label usages keep nowrap. */
.account-hero__section:has(.api-key-caps) .field-label {
  white-space: normal;
  overflow-wrap: break-word;
}

.api-key-secret {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 204, 122, 0.45);
  background: rgba(255, 204, 122, 0.07);
}

.api-key-secret__row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.api-key-secret__code {
  flex: 1 1 240px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 204, 122, 0.3);
  background: rgba(4, 8, 13, 0.92);
  color: var(--ink);
  word-break: break-all;
  user-select: all;
}

/* ── /docs/api — public API reference ───────────────────────────────────
   Code blocks match the .markdown pre treatment (memo bodies) so terminal
   snippets read the same everywhere on the site.

   Section-rhythm tightening 2026-10-07 (Garrett): the docs page read
   airier than the landing — section→content 28px→20px, heading-block
   gaps 12px→10px, and the guardrail/panel card grids 24px→16px so the
   six cards read as one tight unit. Scoped to .api-docs only; every
   other page keeps its rhythm. */
.api-docs .section {
  gap: 20px;
}

.api-docs .section-heading {
  gap: 10px;
}

.api-docs .panel-grid {
  gap: 16px;
}

/* Docs tiles mirror the landing/methodology compact-card rhythm
   (2026-10-07): the same zeroed h3/p margins + 10px stack that
   .card-grid > .terminal-shell--compact applies on other pages, scoped
   here because the docs cards sit in a .panel-grid, not a .card-grid.
   Applied to every docs-page compact card so pill→title→body spacing is
   uniform across the page (was 40-54px, reading airy vs the site). */
.api-docs .card.stack.terminal-shell--compact {
  gap: 10px;
  align-content: start;
}

.api-docs .card.stack.terminal-shell--compact h3,
.api-docs .card.stack.terminal-shell--compact p {
  margin: 0;
}

.api-docs pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid rgba(169, 205, 224, 0.14);
  background: rgba(4, 8, 13, 0.96);
  color: #f7f7f7;
  font-family: var(--font-mono), monospace;
  font-size: 0.82rem;
  line-height: 1.6;
}

.api-docs pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

/* ── /docs/api hero: key-hound art, right column + landing fade ──
   The API Reference hero is a two-column row: copy left, art right
   (~55/45). No align-items, so the art track STRETCHES to the hero's
   full height and reads as a designed column instead of a floating
   16:9 picture with dead space under it (height:100%, min 240px for
   short copy). Measured subject position: the hound spans x 40-74% of
   the 1200x670 artwork (head core 67-74%, brightness COM ~55%). Plain
   cover at desktop widths shows ~97% of the image, so an anchor alone
   barely moves the dog; instead the image is sized `auto 115%` — a
   height-anchored zoom that still fills the column — and anchored at
   90%, which centers the dog's mass in the column while the head
   stays clear of the right fade. The left scrim now ends at 28% (just
   left of the dog's left edge ~32%) so the hound's body no longer
   melts into the copy-zone fade; the left mask fade (0 -> 24%) still
   melts the crop seam into the #091018 page base. The bottom feather
   runs 84%->100% — a ~50px melt on the full-height column — so the
   bright river at the artwork's base dissolves into the page base
   instead of ending in a bright band. */
.api-hero {
  /* Mirrors the methodology hero (2026-10-07): copy left, art right —
     grid 1.05fr / minmax(320px, 0.95fr). Top-aligned: the art starts at
     the eyebrow line ("equal height as the API Reference bubble") and
     extends down into the Authentication section; the negative bottom
     margin pulls the next section up over the art's faded foot so the
     hero reads tight (Garrett 2026-10-07). */
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 36px;
  align-items: start;
  /* Pulls the Authentication section up over the art's faded foot so the
     API KEYS card stays ~2 squares below the art while the auth heading
     sits just under the body copy (Garrett 2026-10-07). */
  margin-bottom: -95px;
}

.api-hero__copy {
  display: grid;
  margin-top: 24px;
}

.api-hero__figure {
  position: relative;
  margin: 24px 0 0;
  /* Shorter than the previous 526px (12-13 grid squares taller than the
     body at ~391px) — art runs from just below the header down toward the
     auth heading, whose section is pulled up by the hero's negative
     margin so the API KEYS card stays tight (Garrett 2026-10-07). */
  aspect-ratio: 1.45;
  /* Landing-style blend (mirrors .methodology-hero__figure): the art's dark
     ground melts into the #091018 page — no border, no radius, no shadow.
     Two intersected gradient masks feather the right and bottom edges. */
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 6%, #000 84%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 8%, #000 95%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0, #000 6%, #000 84%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 8%, #000 95%, transparent 100%);
  mask-composite: intersect;
}

.api-hero__figure::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(9, 16, 24, 0.5) 0%, rgba(9, 16, 24, 0.22) 30%, rgba(9, 16, 24, 0.05) 55%, rgba(9, 16, 24, 0) 70%),
    linear-gradient(180deg, rgba(9, 16, 24, 0.28) 0%, rgba(9, 16, 24, 0.06) 20%, rgba(9, 16, 24, 0) 36%);
}

.api-hero__figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 52%;
}

/* Mobile <=899px (matches .methodology-hero breakpoint): stack the art
   below the copy — reset the desktop offsets (no top margin, no overlap
   pull, slightly lighter presence). */
@media (max-width: 899px) {
  .api-hero {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 0;
  }

  .api-hero__copy {
    margin-top: 0;
  }

  .api-hero__figure {
    margin: 0;
    opacity: 0.85;
  }
}

/* ── Footer top row, 921-999px band (2026-09-27 formatting review) ──────
   .site-footer__top is `minmax(0, 460px) minmax(0, 1fr)`. Both tracks have a
   0px minimum, and grid's maximize-tracks step grows the FIXED-max track
   (the 460px brand column) to its growth limit before the flexible one gets
   anything — so the brand column takes 460px first and the link cluster is
   left with whatever remains. Below ~999px of viewport that remainder drops
   under the ~435px the three link columns need (Product ~90px + Resources
   ~90px + Legal's two sub-columns ~235px + gaps), and because `body` sets
   `overflow-wrap: anywhere` the columns don't overflow — they break mid-word
   ("Methodolog/y", "Accep/table Use"). The <=920px block already stacks this
   row for exactly this reason; the collapse just started one breakpoint too
   late. Desktop (>=1000px, where the two-column row has the width it was
   designed for) is untouched. */
@media (min-width: 921px) and (max-width: 999px) {
  .site-footer__top { grid-template-columns: minmax(0, 1fr); }
  .site-footer__brand { max-width: 100%; width: 100%; }
  .site-footer__top > .footer-links { max-width: 100%; width: 100%; justify-content: center; }
}

/* F5 download-failure regions (MemoViewer + MemoArchiveBrowser).
   Opus review of F5: both call sites shipped `.notice notice--error` plus a
   per-surface class, and NONE of the three existed here — so the status-specific
   copy rendered with the full-width 14px `.notice` padding, inline beside a
   small ghost button and inside an archive row's action cluster. These rules
   size it for that inline context (and are the only definition of
   `.notice--error`, which otherwise inherited plain `.notice`). */
.notice--error {
  border-color: rgba(255, 139, 139, 0.32);
}

.memo-download-error,
.memo-archive-download-error {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 0.76rem;
  line-height: 1.35;
  /* Long copy ("Your session expired — sign in again…") must wrap rather than
     stretch the row it sits in. */
  max-width: 34ch;
}

/* ==================== DISLOCATIONS SECTION (methodology) ============
   C5.1 methodology review (2026-10-04), /methodology #dislocations only.
   Everything here is scoped behind `.dislocations`, so the shared
   `.page-intro` measure (66ch) and the global `body::before` hound
   watermark are both untouched and every other section renders exactly
   as before.

   1. INTRO MEASURE. This section's lead is the page's longest setup
      sentence. At the shared 66ch it wrapped to five short lines inside
      a 1018.8px content column, leaving ~354px of dead space on the
      right. Scoped to ~90ch (906px at the 16.8px monospace body) it
      reads as three-to-four full lines.

   2. THE SEAL. That right-hand dead space was already catching the
      viewport-fixed `body::before` medallion at 0.09 opacity + 1.5px
      blur — an accident of alignment that read as a smudge, not a brand
      mark. This replaces it with a deliberate, section-local seal
      anchored to the column's right edge: no blur, most of the
      grayscale dropped, ~3.5x the watermark's opacity. It is a ::after
      pseudo-element, so it is decorative by construction and never
      enters the accessibility tree (no aria-hidden needed, there is no
      element to put it on); pointer-events are off so it can't take a
      click or a text selection.

      The left edge is mask-faded to transparent because the 90ch
      measure and the seal share ~90px of horizontal overlap in the
      capped column — the fade means the copy never runs over a visible
      part of the mark, while the dense right two-thirds of the seal
      sits in clear space. The heading's real children are lifted to
      z-index 1 so text always composites above it.

   3. NARROW VIEWPORTS. Below ~1380px the content column has not reached
      its 1018.8px cap, so the 90ch measure leaves too little gutter for
      the seal (33.9px at 1280px) and it would sit under the copy rather
      than beside it. It is dropped there instead of degraded. The intro
      itself needs no override at any width: at 343px the 90ch
      max-width is simply never reached.
   =================================================================== */
.dislocations .page-intro {
  max-width: 90ch;
}

.dislocations .section-heading {
  /* One source of truth for the seal's box; .section-heading already
     carries position: relative, which anchors the pseudo-element. */
  --seal-size: clamp(180px, 17vw, 240px);
}

.dislocations .section-heading > * {
  position: relative;
  z-index: 1;
}

/* The seal was removed (2026-11-28, owner): no other section carries one,
   so it read as out of place. */

/* Fable 5.1 — EU consent banner (Privacy Policy § 8.5). On-brand navy
   #070c12 card, cyan/amber terminal accents, in-flow top bar — never
   overlays first-screen content. */
.cookie-banner {
  background: #070c12;
  border-bottom: 1px solid var(--line-strong);
  /* 2026-11-25: slimmed to one row on desktop (text left, buttons right). */
  padding: 8px 20px;
  font-family: var(--font-mono), monospace;
}

.cookie-banner__inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: nowrap;
}

.cookie-banner__copy {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
}

.cookie-banner__prompt {
  color: var(--amber);
  margin-right: 8px;
}

.cookie-banner__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.cookie-banner__accept {
  background: var(--accent);
  color: #07131a;
  border: 1px solid var(--accent);
  padding: 4px 14px;
  /* >= 24px target size (WCAG 2.5.8); 32px keeps the bar slim. */
  min-height: 32px;
  white-space: nowrap;
  font-family: var(--font-mono), monospace;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
}
.cookie-banner__accept:hover {
  background: var(--accent-ice);
}
.cookie-banner__accept:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

.cookie-banner__decline {
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--line-strong);
  padding: 4px 14px;
  min-height: 32px;
  white-space: nowrap;
  font-family: var(--font-mono), monospace;
  font-size: 12px;
  border-radius: 6px;
  cursor: pointer;
}
.cookie-banner__decline:hover {
  color: var(--ink);
  border-color: var(--accent-deep);
}
.cookie-banner__decline:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

.cookie-banner__privacy {
  color: var(--accent);
  font-size: 12px;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-banner__privacy:hover {
  color: var(--amber);
}
.cookie-banner__privacy:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

/* Footer "Cookie preferences" button — styled to match the links it sits
   beside in .footer-col__sub (.footer-col a is --ink, hovering --accent-ice,
   no underline), so the control reads as the sixth legal link. */
.footer-link-button {
  background: none;
  border: none;
  /* 2026-10-26: 4px vertical padding matches .footer-links a's target-size
     fix (WCAG 2.5.8 ≥24px) so the Cookie preferences button is as tappable
     as the links it sits beside. */
  padding: 4px 0;
  margin: 0;
  font: inherit;
  /* 2026-10-07: the inherit chain reaches the root 16px while the links
     are 0.84rem — the cookie button rendered larger than its siblings.
     Pin the same size as .footer-links a. */
  font-size: 0.84rem;
  line-height: normal;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.footer-link-button:hover {
  color: var(--accent-ice);
}
.footer-link-button:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
  border-radius: 3px;
}

@media (max-width: 760px) {
  .cookie-banner__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .cookie-banner__actions {
    flex-wrap: wrap;
  }
}

/* ── Terminal sign-in session console (Cerberus 8ce5159, restored 2026-10-08) ── */

/* The hero band. Keeps the .stack layout it replaced (22px grid gap)
   and adds the two decorative layers below. */
.terminal-gate {
  position: relative;
  display: grid;
  /* 2026-10-08: 22px → 18px — tightened rhythm; the two heroes keep
     their size. */
  gap: 18px;
}

/* 2026-10-08 (Garrett): the shooting-star field drifts over the cards but
   must pass BEHIND the headline copy — the header block sits above the
   star layer (z2) so the title stays crisp. */
.terminal-page-header {
  position: relative;
  z-index: 3;
}

/* 2026-10-08 (Garrett, experiment): the AI-head art as a background in the
   "What waits inside." panel. Direction: the art's bottom-right corner sits
   in the panel's bottom-right corner, expands up-left, and fades away by
   ~3/4 of the way up — the FULL picture visible, anchored by height so
   nothing is cropped. Content sits above (z1). Vox's on-brand art will
   swap into the same slot. */
.gate-status {
  position: relative;
  overflow: hidden;
}

.gate-status::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(9, 16, 24, 0.6) 0%, rgba(9, 16, 24, 0.14) 45%, rgba(9, 16, 24, 0.22) 100%),
    url(/signin-hound-v2.jpg) calc(100% + 64px) bottom / 92% auto no-repeat;
  /* Fade toward the TOP and LEFT — solid at the bottom-right corner,
     dissolved by ~3/4 up and left. */
  -webkit-mask-image:
    linear-gradient(to top, #000 55%, transparent 88%),
    linear-gradient(to right, #000 62%, transparent 88%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to top, #000 55%, transparent 88%),
    linear-gradient(to right, #000 62%, transparent 88%);
  mask-composite: intersect;
}

.gate-status > * {
  position: relative;
  z-index: 1;
}

/* Hound seal, same treatment as the global body::before watermark and
   the account hero's left-column mark: contained, blurred, mostly
   desaturated, ~0.065 opacity. z-index 0 puts it above the page
   gradient but below both cards, which are opaque — so the mark only
   reads through the gap under the header, the gutter between the two
   panels, and the space beside the shorter card. Anchored near the top
   of the band rather than its centre so it tracks the header block
   instead of drifting down a tall form. */
.terminal-gate .panel-grid {
  /* 2026-10-08: 24px → 20px — the pair reads as one console spread. */
  gap: 20px;
}

.terminal-gate::before {
  content: "";
  position: absolute;
  top: 8%;
  left: 50%;
  width: clamp(300px, 40vmin, 560px);
  aspect-ratio: 1 / 1;
  transform: translateX(-50%);
  background-image: url("/houndcreek-emblem-360.webp");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.065;
  filter: blur(1.5px) grayscale(0.6);
  z-index: 0;
  pointer-events: none;
}

/* Local space glow — the landing shell's cyan/amber wash, applied over
   the page's 32px grid so the gate reads as part of the same room
   rather than a bare form. Painted after ::before, so it tints the
   seal too. */
.terminal-gate::after {
  content: "";
  position: absolute;
  inset: -24px -24px 0;
  background:
    radial-gradient(circle at 50% 2%, rgba(125, 234, 244, 0.1), transparent 34%),
    radial-gradient(circle at 82% 62%, rgba(255, 204, 122, 0.045), transparent 30%),
    linear-gradient(180deg, rgba(125, 234, 244, 0.035) 0%, transparent 18%);
  z-index: 0;
  pointer-events: none;
}

/* Header and both panels composite above the seal and the glow. */
.terminal-gate > * {
  position: relative;
  z-index: 1;
}

/* Padlock in the `session · secure` caption. The caption is a flex row
   with a 6px gap, so the glyph needs no margin of its own; flex: none
   keeps it from being squeezed inside the fixed-width pill. Stroke is
   currentColor — the caption's own var(--accent) — and the element is
   aria-hidden, so the caption still reads as plain text. */
.console-lock {
  flex: none;
  overflow: visible;
}

/* Boot reveal. The 240ms stagger between the two lines is produced in
   JS (ConsoleBoot mounts line 2 on a timer), so the animation here is
   only the per-line fade — adding an animation-delay to line 2 as well
   would double the wait. */
.console-boot {
  display: grid;
  gap: 6px;
}

.console-boot__line {
  animation: console-line-in 200ms ease-out both;
}

@keyframes console-line-in {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* The command echo re-mounts on every mode switch (key={authMode}) and
   replays the same fade, which is the whole cue that the console is now
   describing a different operation. */
.console-cmd {
  animation: console-line-in 200ms ease-out both;
}

/* Mode transition for the create-account fields and the footer
   button/hint pair. grid-template-rows 0fr -> 1fr grows and shrinks
   the reserved space smoothly; the inner wrapper carries .form-grid's
   14px gap so the open state is spaced exactly as it was before. The
   fields stay mounted in both modes (so the row has content to animate
   closed), and the closed wrapper is inert: that bars the `required`
   username input from constraint validation and drops the block from
   the tab order and the accessibility tree. */



/* System readout in the right-hand panel. The status phrase and its
   muted fact share one wrapping span, so baseline alignment reads
   better than .terminal-line's default flex-start. */
.console-readout .terminal-line {
  align-items: baseline;
}

/* Explicit statements of the motion preference. The universal net above
   already reduces both of these to 0.001s; these rules say so at the
   point of definition. */
@media (prefers-reduced-motion: reduce) {
  .console-boot__line,
  .console-cmd {
    animation: none;
  }
  }

/* ── Terminal sign-in cockpit deck (Cerberus 0788e76, applied 2026-10-08) ── */

/* ==================== LAUNCH-DECK LAYERS (cockpit pass 2026-10-08) =====
   Shooting-star field, HUD corner brackets, pulsing status lamp,
   password-free-access caption sub-pill, and the systems-check readout
   lamp column. Scoped to the unauthenticated gate (ResearchConsole's
   `if (!user)` branch) — nothing here is reachable from the authed
   console or any other page. The universal reduced-motion net above
   still wins over everything declared here.
   ==================================================================== */

/* Star layer: reused ClosingCTAStars field, dimmed to a light presence.
   z-index 0 puts it above the seal/glow but below the header + panels
   (the generic .terminal-gate > * rule promotes children to z-index 1;
   this higher-specificity selector pins the layer back to 0). */
.terminal-stars {
  position: absolute;
  inset: 0;
  /* 2026-10-08: z-index 0 → 2 — the panels are opaque at z 1, so the
     field only read in the gutters ("stars hidden behind the heroes").
     Above the cards now: thin light streaks drift across the whole
     launch deck, pointer-events none, still below nothing interactive. */
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
  /* 2026-10-08: presence matched to the landing "Run your first memo"
     band — dense high-opacity stars at the default cadence (Garrett).
     The panels' own scrims do the dimming, like the landing's scrim. */
  opacity: 0.85;
}

.terminal-gate > .terminal-stars {
  z-index: 2;
  /* 2026-10-08 (Garrett): fade the field out in the top ~30% — the star
     streaks pass behind the headline but no longer read as crossing it. */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 30%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 30%);
}

/* Caption row: the primary pill (lamp + lock + session · secure) with
   the access-mode sub-pill beside it. */
.terminal-gate .card.stack {
  /* 2026-10-08: 22px → 18px internal rhythm. */
  gap: 18px;
  /* 2026-10-08: the panel-grid stretches both cards to the same height;
     align-content normal (=stretch) then distributed the shorter card's
     extra space INTO its auto rows — inflating the caption + heading rows
     and dropping "What waits inside." ~31px below its left twin. Start
     keeps rows at content height; the leftover space pools at the bottom
     of the shorter card, invisible. */
  align-content: start;
}

.console-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Gate captions stay on ONE row at desktop (2026-10-08): the left card's
   caption (lamp + session·secure + password-free sub-pill) was wrapping to
   two rows, pushing "Sign in with a secure email link." ~14px lower than
   "What waits inside." on the right. Mobile keeps wrap (narrow rails). */
@media (min-width: 641px) {
  .terminal-gate .console-caption {
    flex-wrap: nowrap;
  }
}

.console-caption__sub {
  display: inline-flex;
  align-items: center;
  height: 1.4rem;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(169, 205, 224, 0.14);
  background: rgba(125, 234, 244, 0.04);
  color: rgba(169, 205, 224, 0.62);
  font-size: 0.66rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Pulsing status lamp in the session caption — a decorative dot on the
   accent rhythm. Reduced-motion users get a static lamp (rule below). */
.console-lamp {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px 2px rgba(125, 234, 244, 0.45);
  animation: console-lamp-pulse 2.2s ease-in-out infinite;
}

@keyframes console-lamp-pulse {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

/* The .console-hud wrapper remains (class name used in markup) but the
   corner-bracket layer was REMOVED 2026-10-08: the thin corner segments
   read as random stray lines to Garrett. The cockpit feel rides on the
   stars, the status lamp, and the boot lines instead. */
.console-hud {
  position: relative;
}

/* Systems-check readout: tighter row rhythm than the generic
   .terminal-lines grid, and a fixed-width lamp column per line so the
   ready glyphs align vertically. Ready-green echoes the activity OK tag. */
.console-readout {
  /* 2026-10-08: 8px → 6px row rhythm. */
  gap: 6px;
}

.console-readout__lamp {
  flex: 0 0 18px;
  color: #9be7a8;
  text-shadow: 0 0 8px rgba(155, 231, 168, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .console-lamp {
    animation: none;
  }
}

/* Mobile touch targets — 2026-10-23 full-surface audit (44px-ish hit areas) */
@media (max-width: 640px) {
  .footer-x-link { min-width: 44px; min-height: 44px; justify-content: center; }
  .footer-link-button { min-height: 40px; padding: 10px 0; }
  .sub-badge { min-height: 40px; }
  .memo-switch-row { min-height: 44px; align-items: center; }
  .memo-switch-link { min-height: 44px; padding: 8px 10px; display: inline-flex; align-items: center; }
  .memo-cover__share-note-dismiss { min-height: 40px; padding: 8px 12px; }
  .page-title-x-link, .board-title-x-link { min-width: 44px; min-height: 44px; padding: 10px; justify-content: center; }
}

.article-ad-slot {
  min-height: 90px;
  margin-top: 1.5rem;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.signup-form__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.signup-form input[type="email"] {
  flex: 1 1 16rem;
  min-height: 44px;
  padding: 0.55rem 0.75rem;
  background: transparent;
  color: var(--ink, #edf5fb);
  border: 1px solid var(--line, #24404d);
}

.signup-prompt {
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  padding: 0.85rem 1.25rem;
  background: #0c1620;
  border-top: 1px solid #24404d;
}

/* ── Publication layout pass (2026-11-25) ─────────────────────────────────
   Free-article site: hero coverage table, follow links, signup cards, the
   article share row, partnerships cards, a compact signup prompt, and an
   ad slot that takes no space until an ad can actually load. */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Ad slot: collapsed until consent opens it; labeled once open. */
.article-ad-slot[data-ad-gated="closed"] {
  display: none;
}
.article-ad-slot[data-ad-gated="open"] {
  display: grid;
  gap: 6px;
  min-height: 90px;
  margin-top: 1.5rem;
}
.article-ad-slot__label {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Home hero: latest coverage table inside the terminal card. */
.hero-coverage {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono), monospace;
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
}
.hero-coverage th,
.hero-coverage td {
  padding: 7px 8px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.hero-coverage thead th {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero-coverage tbody th {
  color: var(--accent);
  font-weight: 600;
}
.hero-coverage tbody td {
  color: var(--ink);
}
.hero-coverage tbody td:last-child {
  color: var(--amber);
}
.hero-coverage tbody tr:last-child th,
.hero-coverage tbody tr:last-child td {
  border-bottom: none;
}
.hero-coverage__link {
  justify-self: start;
  color: var(--accent);
  font-size: 0.88rem;
  text-decoration: none;
}
.hero-coverage__link:hover {
  color: var(--accent-ice);
  text-decoration: underline;
}

/* Follow links: X, StockTwits, RSS. */
.follow-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.follow-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(125, 234, 244, 0.03);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease;
}
.follow-link:hover {
  border-color: var(--line-strong);
  background: rgba(125, 234, 244, 0.08);
}
.follow-link__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  color: #e7e9ea;
}
.follow-link__rss {
  color: var(--amber);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.follow-link__text {
  display: grid;
  line-height: 1.2;
  text-align: left;
}
.follow-link__text strong {
  font-size: 0.86rem;
}
.follow-link__text span {
  color: var(--muted);
  font-size: 0.74rem;
}

/* Home closing band: signup + follow. */
.closing-cta__signup {
  width: 100%;
  max-width: 520px;
}
.closing-cta__signup .signup-form {
  margin-top: 4px;
  text-align: left;
}
.closing-cta__follow {
  justify-content: center;
}

/* Signup card (article footer, article index). */
.signup-card {
  gap: 10px;
}
.signup-card__title {
  margin: 0;
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
}
.signup-card .terminal-note {
  margin: 0;
}
.signup-card .signup-form {
  margin-top: 4px;
}
.signup-card .follow-links {
  margin-top: 6px;
}
.signup-form__label {
  color: var(--muted);
  font-size: 0.8rem;
}
.signup-form input[type="email"] {
  border-radius: 10px;
}
.signup-form input[type="email"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.signup-form__status {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

/* Article share row. */
.article-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.article-share__label {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-right: 4px;
}
.article-share__button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  font-family: inherit;
  font-size: 0.84rem;
}

/* Partnerships. */
.card-grid--partners {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.partner-card__title {
  margin: 0;
  font-size: 1.2rem;
}
.partner-rules {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 6px;
  color: var(--ink-soft);
}

/* Signup prompt (second pageview): a compact floating card, not a
   full-width bar — it used to cover ~40% of a phone screen. */
.signup-prompt {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: auto;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  align-items: start;
  width: min(420px, calc(100vw - 32px));
  padding: 14px 16px;
  background: #0c1620;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.signup-prompt > p {
  grid-column: 1;
  margin: 0;
  font-weight: 600;
}
.signup-prompt > .footer-link-button {
  grid-column: 2;
  grid-row: 1;
  padding: 0 2px;
  color: var(--muted);
}
.signup-prompt .signup-form,
.signup-prompt .signup-form__status {
  grid-column: 1 / -1;
  margin-top: 4px;
}
.signup-prompt .signup-form__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.signup-prompt .signup-form__row {
  flex-wrap: nowrap;
  gap: 8px;
}
.signup-prompt .signup-form input[type="email"] {
  flex: 1 1 auto;
  min-width: 0;
}

.signup-prompt .signup-form__row .button {
  flex: 0 0 auto;
  width: auto;
}

@media (max-width: 640px) {
  .signup-prompt {
    right: 10px;
    left: 10px;
    bottom: 10px;
    width: auto;
    padding: 12px;
  }
  .signup-prompt .signup-form__row .button {
    padding-inline: 14px;
    white-space: nowrap;
  }
  .hero-coverage {
    font-size: 0.8rem;
  }
  .hero-coverage th,
  .hero-coverage td {
    padding: 6px 5px;
  }
  .closing-cta__follow {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
}

/* Pages with the floating mobile section jump (methodology, learn, legal):
   lift the prompt above it so the two never overlap. The jump shows at
   <=1120px (see .memo-jump), pinned 14px from the bottom. */
@media (max-width: 1120px) {
  body:has(.memo-jump) .signup-prompt {
    bottom: 72px;
  }
}

/* ── Reader subscription (2026-11-25) ────────────────────────────────────
   Header account pill, subscriber bar, article hero image + teaser, paywall,
   subscribe flow, and account settings. */

.account-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 96px;
  max-width: 200px;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.82rem;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease;
}
.account-pill:hover {
  border-color: var(--line-strong);
  background: rgba(125, 234, 244, 0.06);
}
.account-pill--pending {
  border-color: transparent;
}
.account-pill--signin {
  justify-content: center;
  color: var(--accent);
}
.account-pill__dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(125, 234, 244, 0.6);
}
.account-pill__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.subscriber-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(125, 234, 244, 0.03);
}
.subscriber-bar--pending {
  min-height: 58px;
  border-color: transparent;
  background: none;
}
.subscriber-bar--member {
  padding: 8px 12px;
}
.subscriber-bar__terms {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}
.subscriber-bar__actions {
  display: flex;
  gap: 8px;
}
.subscriber-bar__status {
  color: var(--accent);
  font-size: 0.82rem;
}
.subscriber-bar__manage {
  color: var(--muted);
  font-size: 0.82rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.news-post__free {
  color: var(--amber);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.news-post__thumb {
  display: block;
  margin-bottom: 10px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--line);
  aspect-ratio: 1200 / 630;
}
.news-post__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The article image is as wide as the reading column (.reading-frame, 2026-11-27). */
.article-hero {
  margin: 0;
  width: 100%;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
  aspect-ratio: 1200 / 630;
}
.article-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* A memo's Key Risks, Near-Term Catalysts and filing Signals as items
   (2026-11-28, owner: the 8.1 table was "terrible to read"): one item per
   row, the short columns as tags, the prose below. Class names stay clear of
   the home page's words ("card"…) so none of this is inlined. */
.memo-items {
  display: grid;
  gap: 10px;
  margin: 14px 0 24px;
}

.memo-items .memo-items__summary {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono), monospace;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.memo-items__count--danger {
  color: var(--danger);
}

.memo-items__count--amber {
  color: var(--amber);
}

.memo-items__list {
  display: grid;
  gap: 10px;
}

.memo-item {
  display: grid;
  gap: 8px;
  padding: 14px 16px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(4, 8, 13, 0.35);
}

.memo-item--danger {
  box-shadow: inset 3px 0 0 rgba(255, 139, 139, 0.7);
}

.memo-item--amber {
  box-shadow: inset 3px 0 0 rgba(245, 199, 127, 0.6);
}

.memo-item--muted {
  box-shadow: inset 3px 0 0 var(--line-strong);
}

.memo-item__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.memo-item__tag {
  padding: 2px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-soft);
  font-family: var(--font-mono), monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.memo-item__tag--danger {
  border-color: rgba(255, 139, 139, 0.55);
  background: rgba(255, 139, 139, 0.08);
  color: var(--danger);
}

.memo-item__tag--amber {
  border-color: rgba(245, 199, 127, 0.55);
  background: rgba(245, 199, 127, 0.08);
  color: var(--amber);
}

.memo-item__tag--positive {
  border-color: rgba(125, 234, 244, 0.5);
  background: rgba(125, 234, 244, 0.08);
  color: var(--accent);
}

.memo-item__tag--muted {
  color: var(--muted);
}

.memo-items .memo-item__lead {
  max-width: none;
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
}

.memo-items .memo-item__text {
  max-width: none;
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.65;
}

.memo-items .memo-item__detail {
  max-width: none;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.65;
}

.memo-item__label {
  margin-right: 6px;
  color: var(--muted);
  font-family: var(--font-mono), monospace;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Images inside an article body (uploaded with ?name=, 2026-11-26). */
.news-post-detail__body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 16px 0;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.article-teaser {
  margin: 0;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Paywall: decoy text (never the article) fades and blurs under the box. */
.paywall {
  position: relative;
  display: grid;
}
.paywall--checking {
  min-height: 120px;
  align-content: center;
}
.paywall__decoy {
  grid-area: 1 / 1;
  max-height: 220px;
  overflow: hidden;
  filter: blur(5px);
  opacity: 0.55;
  user-select: none;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
}
.paywall__decoy p {
  margin: 0 0 6px;
  color: var(--ink-soft);
}
.paywall__box {
  grid-area: 1 / 1;
  align-self: end;
  justify-self: center;
  display: grid;
  gap: 10px;
  width: min(560px, 100%);
  margin-top: 90px;
  padding: 20px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(19, 28, 38, 0.97), rgba(8, 13, 19, 0.98));
  box-shadow: var(--shadow);
  text-align: center;
  justify-items: center;
}
.paywall__title {
  margin: 0;
  font-size: clamp(1.2rem, 2.6vw, 1.5rem);
}
.paywall__terms {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.55;
}
.paywall__terms a {
  color: var(--accent);
  text-decoration: underline;
}
.paywall__actions {
  justify-content: center;
}
.paywall__note {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

/* Subscribe flow. */
.subscribe-card {
  gap: 12px;
}
.subscribe-card__title,
.account-section__title {
  margin: 0;
  font-size: clamp(1.2rem, 2.6vw, 1.5rem);
}
.subscribe-form {
  display: grid;
  gap: 10px;
}
.subscribe-form input[type="email"],
.api-key-form input[type="text"] {
  min-height: 44px;
  padding: 0.55rem 0.75rem;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
}
.api-key-form input[type="text"] {
  flex: 1 1 14rem;
}
.subscribe-form input[type="email"]:focus-visible,
.api-key-form input[type="text"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
/* "Finish your account" (AccountSetupGate, 2026-11-27): a one-time step
   over the page for an account with no username or without the current
   Terms accepted. Centered card over a dimmed page; scrolls on small
   screens. */
.setup-gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px 16px;
  overflow-y: auto;
  background: rgba(4, 8, 13, 0.78);
  backdrop-filter: blur(4px);
}
.setup-gate__card {
  width: 100%;
  max-width: 460px;
  display: grid;
  gap: 14px;
  padding: 26px 24px 22px;
  border-color: rgba(125, 234, 244, 0.3);
}
.setup-gate__form {
  display: grid;
  gap: 14px;
}
.setup-gate__title {
  margin: 0;
  font-family: var(--font-serif), Georgia, serif;
  font-size: 1.4rem;
  line-height: 1.25;
}
.setup-gate__lead {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}
.setup-gate__field {
  display: grid;
  gap: 6px;
}
.setup-gate__label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.setup-gate__field input {
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(8, 13, 19, 0.85);
  color: var(--ink);
  font: inherit;
}
.setup-gate__field input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.setup-gate__status {
  min-height: 1.2em;
  font-size: 0.8rem;
  color: var(--muted);
}
.setup-gate__status.is-ok {
  color: var(--accent);
}
.setup-gate__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.setup-gate__signout {
  justify-self: center;
  padding: 4px 8px;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  text-decoration: underline;
  cursor: pointer;
}
.setup-gate__signout:hover,
.setup-gate__signout:focus-visible {
  color: var(--ink);
}
/* Checkout's line when the Terms are already accepted. */
.subscribe-terms-accepted {
  margin: 0;
  font-size: 0.86rem;
  color: var(--ink-soft);
}
.subscribe-terms-accepted a {
  color: var(--accent);
}

.subscribe-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.5;
  cursor: pointer;
}
.subscribe-check input {
  margin-top: 4px;
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}
.subscribe-check a {
  color: var(--accent);
  text-decoration: underline;
}
.subscribe-terms {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}
.subscribe-terms--strong {
  color: var(--ink);
  font-size: 0.95rem;
}
.subscribe-terms-box {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(245, 199, 127, 0.04);
}
.subscribe-card__status {
  margin: 0;
  color: var(--accent);
}
.subscribe-card__error {
  margin: 0;
  color: var(--danger);
}
.subscribe-includes {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 1.2rem;
  color: var(--ink-soft);
}

/* Account settings. */
.account-settings {
  gap: 16px;
}
.account-section {
  gap: 10px;
}
.account-section__body {
  gap: 10px;
}
.account-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 0;
}
.account-facts dt {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.account-facts dd {
  margin: 2px 0 0;
  color: var(--ink);
}
.api-key-created {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--amber);
  border-radius: 12px;
  background: rgba(245, 199, 127, 0.06);
}
.api-key-created p {
  margin: 0;
  color: var(--ink);
}
.api-key-created__secret {
  display: block;
  overflow-wrap: anywhere;
  font-size: 0.86rem;
}
.api-key-created .button {
  justify-self: start;
}
.api-key-form {
  display: grid;
  gap: 6px;
}
.api-key-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.api-key-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.api-key-row > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.api-key-row__meta {
  color: var(--muted);
  font-size: 0.78rem;
}
.api-key-docs summary {
  cursor: pointer;
  color: var(--accent);
  font-size: 0.88rem;
}
.api-key-docs pre {
  overflow-x: auto;
  margin: 6px 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  font-size: 0.8rem;
}
.closing-cta__sub--small {
  font-size: 0.86rem;
}

@media (max-width: 640px) {
  .account-pill {
    max-width: none;
    width: 100%;
    justify-content: center;
  }
  .subscriber-bar__actions {
    width: 100%;
  }
  .subscriber-bar__actions .button {
    flex: 1 1 auto;
    justify-content: center;
  }
  .paywall__box {
    padding: 16px;
  }
}

/* Article list: on wider screens the image sits in the card's otherwise
   empty RIGHT column (2026-11-26, article templates images-spec §2), sized
   to the text block (about 340x179 at 1,440 px), so the title and teaser
   start at the left edge and cards stay scannable. Phones stack the image
   full width above the text. */
@media (min-width: 760px) {
  .news-post--image {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(220px, 30%, 340px);
    column-gap: 24px;
    align-items: start;
  }
  .news-post--image > .news-post__thumb {
    grid-column: 2;
    grid-row: 1 / span 6;
    margin-bottom: 0;
  }
  .news-post--image > :not(.news-post__thumb) {
    grid-column: 1;
  }
}

/* ── Home hero: featured free sample memo (2026-11-25) ───────────────────
   Replaces the "houndcreek: terminal" demo with a research-note cover:
   ticker + company + view badge, three figures, a to-scale range bar, the
   summary, and tabs across the bundled samples. */

.featured-memo {
  display: grid;
  gap: 16px;
}
.featured-memo__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.featured-memo__tabs {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.featured-memo__tab {
  min-height: 30px;
  padding: 4px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
}
.featured-memo__tab:hover {
  color: var(--ink);
}
.featured-memo__tab--active {
  background: rgba(125, 234, 244, 0.14);
  color: var(--accent);
}
.featured-memo__tab:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}
.featured-memo__body {
  display: grid;
  gap: 16px;
}
.featured-memo__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
}
.featured-memo__title {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.featured-memo__ticker {
  color: var(--ink);
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.1;
}
.featured-memo__company {
  color: var(--muted);
  font-size: 0.86rem;
}
.featured-memo__view {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.featured-memo__view--underperform {
  color: var(--accent);
  background: rgba(125, 234, 244, 0.08);
}
.featured-memo__view--neutral {
  color: var(--ink);
  border-color: transparent;
  background: linear-gradient(rgba(9, 16, 24, 0.94), rgba(9, 16, 24, 0.94)) padding-box, linear-gradient(135deg, var(--accent), var(--amber)) border-box;
}
.featured-memo__view--outperform {
  color: #07131a;
  border-color: transparent;
  background: var(--amber);
}
.featured-memo__figures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.featured-memo__figures dt {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.featured-memo__figures dd {
  display: grid;
  gap: 2px;
  margin: 4px 0 0;
}
.featured-memo__figures strong {
  color: var(--ink);
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
}
.featured-memo__qualifier {
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
}

.featured-range {
  display: grid;
  gap: 8px;
  margin: 0;
}
.featured-range__track {
  position: relative;
  height: 16px;
  border-radius: 999px;
  background: rgba(169, 205, 224, 0.07);
}
/* One colour per element: range = cyan, fair value = amber, price = white. */
.featured-range__band {
  position: absolute;
  top: 3px;
  bottom: 3px;
  border-radius: 999px;
  background: rgba(125, 234, 244, 0.22);
  box-shadow: inset 0 0 0 1px rgba(125, 234, 244, 0.6);
}
.featured-range__fv {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 3px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--amber);
  box-shadow: 0 0 6px rgba(245, 199, 127, 0.55);
}
.featured-range__price {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--accent-ice);
  box-shadow: 0 0 0 3px #0a1118, 0 0 8px rgba(244, 251, 255, 0.45);
}
.featured-range__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  color: var(--muted);
  font-size: 0.72rem;
}
.featured-range__legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.featured-range__key {
  display: inline-block;
}
.featured-range__key--price {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-ice);
}
.featured-range__key--band {
  width: 16px;
  height: 6px;
  border-radius: 999px;
  background: rgba(125, 234, 244, 0.22);
  box-shadow: inset 0 0 0 1px rgba(125, 234, 244, 0.6);
}
.featured-range__key--fv {
  width: 3px;
  height: 10px;
  border-radius: 2px;
  background: var(--amber);
}

.featured-memo__summary {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
}
.featured-memo__link {
  justify-self: start;
  color: var(--accent);
  font-size: 0.9rem;
  text-decoration: none;
}
.featured-memo__link:hover {
  color: var(--accent-ice);
  text-decoration: underline;
}
.featured-memo__caption {
  margin: 6px 2px 0;
  font-size: 0.78rem;
  opacity: 0.85;
}

@media (max-width: 640px) {
  .featured-memo__figures {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .featured-memo__figures > div:last-child:nth-child(3) {
    grid-column: 1 / -1;
  }
  .featured-memo__ticker {
    font-size: 1.4rem;
  }
}
.featured-memo__figures {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.35fr);
}
.featured-memo__figures strong {
  white-space: nowrap;
}

/* Home "Recently published" (2026-11-25): one compact heading row (title +
   All articles link) straight into the article board — no eyebrow pill,
   intro line, or board caption repeating the same label. */
.section--latest {
  gap: 14px;
}
.section-heading--row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
}
.section--latest .section-heading--row h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}
.section-heading__link {
  color: var(--accent);
  font-size: 0.9rem;
  white-space: nowrap;
  text-decoration: none;
}
.section-heading__link:hover {
  color: var(--accent-ice);
  text-decoration: underline;
}
.section--latest .news-board {
  padding: 16px;
  gap: 12px;
}

/* Route changes (2026-11-25): Next scrolls the new page's first element into
   view, which put the article title under the sticky header (e.g. homepage ->
   article landed 168px down). The margin makes that scroll land at the very
   top of the window instead. */
main.page > * {
  scroll-margin-top: 240px;
}

/* Home is / isn't cards (2026-11-25): two balanced cards, each an "Is" and
   an "Isn't" line plus a link to the full explanation. */
.card-grid--stance-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.stance-card__pairs {
  display: grid;
  gap: 10px;
  margin: 0;
}
.stance-card__pair {
  display: grid;
  grid-template-columns: 3.6em minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
}
.stance-card__pair dt {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.stance-card__pair--is dt {
  color: var(--accent);
}
.stance-card__pair--isnt dt {
  color: var(--amber);
}
.stance-card__pair dd {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
}
.stance-card__pair--isnt dd {
  color: var(--muted);
}
.stance-card__link {
  margin-top: auto;
  justify-self: start;
  color: var(--accent);
  font-size: 0.88rem;
  text-decoration: none;
}
.stance-card__link:hover {
  color: var(--accent-ice);
  text-decoration: underline;
}

@media (max-width: 760px) {
  .card-grid--stance-two {
    grid-template-columns: 1fr;
  }
  .stance-card__pair {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* Home "What goes into every article" cards: link pinned to the card bottom
   so the three links line up across the row. */
.card-grid--build {
  align-items: stretch;
}
.build-card {
  display: flex;
  flex-direction: column;
}
/* Follow link without a label (X): the handle reads as the primary text. */
.follow-link__text .follow-link__handle {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 600;
}
/* Single X follow button: a little larger and wider (2026-11-25). */
.follow-link {
  min-height: 48px;
  padding: 8px 22px 8px 16px;
  gap: 12px;
}
.follow-link__icon {
  width: 22px;
}
.follow-link__icon svg {
  width: 18px;
  height: 18px;
}
.follow-link__text .follow-link__handle {
  font-size: 0.95rem;
}


/* Footer (2026-11-25): with one Publication column, the link block sits at
   the right edge of the footer (label left-aligned over its grid) instead of
   floating in the middle. */
@media (min-width: 641px) {
  .site-footer__top > .footer-links {
    display: flex;
    justify-content: flex-end;
  }
  .site-footer__top > .footer-links > .footer-col {
    align-items: flex-start;
    justify-self: auto;
  }
  .site-footer__top > .footer-links .footer-col__label {
    padding-left: 6px;
  }
}

/* Standard notice at the foot of every article and sample memo (2026-11-25,
   Terms of Service §2.8). */
.article-disclosure {
  margin: 1.5rem 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(169, 205, 224, 0.18);
  border-radius: 10px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
}
.article-disclosure strong {
  color: var(--ink);
  font-weight: 600;
}
.article-disclosure a {
  color: var(--accent, #7deaf4);
}

/* Terms notice next to email sign-up buttons, and the checkout consent list. */
.signup-form__legal,
.subscribe-legal {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
}
.signup-form__legal a,
.subscribe-legal a {
  color: var(--accent, #7deaf4);
  text-decoration: underline;
}
.subscribe-dates {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
}
.subscribe-checks {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.75rem;
}
.terms-update {
  border: 1px solid rgba(245, 199, 127, 0.45);
}

/* ── Long-form reading pages: Methodology and Learn (2026-11-26) ─────────
   Running text (paragraphs and list items in the content column) is set in
   IBM Plex Serif at a comfortable size, leading and measure, so 2,000-9,000
   word pages read like an article. Labels, captions, notes, tables, code,
   numbers and the section rail stay monospace, which keeps the terminal
   look. Opt in with .longform-page on the page wrapper. */
.longform-page .rail-flow :is(p, li):not(.terminal-note):not(.terminal-caption):not(.eyebrow) {
  font-family: var(--font-serif), Georgia, serif;
  font-size: 1.06rem;
  line-height: 1.75;
  color: var(--ink-soft);
}
.longform-page .rail-flow :is(p, .bullet-list, .faq-card p) {
  max-width: 70ch;
}
.longform-page .rail-flow .page-intro:not(.terminal-note) {
  font-size: 1.14rem;
  color: var(--ink);
}
.longform-page .rail-flow :is(p, li) strong {
  color: var(--ink);
  font-weight: 600;
}
.longform-page .rail-flow :is(p, li) code,
.longform-page .rail-flow :is(table, th, td) {
  font-family: var(--font-mono), monospace;
}
.longform-page .rail-flow .bullet-list li + li {
  margin-top: 6px;
}
.longform-page .rail-flow h3 {
  font-family: var(--font-serif), Georgia, serif;
}

/* Key points: the box under a page's hero that states the page in 4-6 lines. */
.key-points {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 16px;
  padding: 18px 22px;
  background: rgba(10, 17, 24, 0.62);
}
.key-points__label,
.key-takeaway__label {
  display: block;
  font-family: var(--font-mono), monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.longform-page .key-points ul {
  margin: 10px 0 0;
  padding-left: 1.15em;
  display: grid;
  gap: 8px;
}

/* Key takeaway: one sentence at the end of a section. */
.key-takeaway {
  margin: 4px 0 0;
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 12px 18px;
  background: rgba(125, 234, 244, 0.05);
  max-width: 74ch;
}
.longform-page .rail-flow .key-takeaway p {
  margin: 4px 0 0;
  color: var(--ink);
}

/* Technical details: an expandable panel that keeps the deep detail on the
   page (and in search) without making every reader wade through it. */
.tech-details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(10, 17, 24, 0.55);
}
.tech-details > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-family: var(--font-mono), monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.tech-details > summary::-webkit-details-marker {
  display: none;
}
.tech-details > summary::before {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(125, 234, 244, 0.4);
  border-radius: 6px;
  font-size: 0.9rem;
  line-height: 1;
}
.tech-details[open] > summary::before {
  content: "\2212";
}
.tech-details > summary:hover,
.tech-details > summary:focus-visible {
  color: var(--accent-ice);
}
.tech-details__body {
  display: grid;
  gap: 12px;
  padding: 2px 18px 16px;
}
.tech-details__body > * {
  margin: 0;
}

/* "What we publish" table on Methodology. */
.publish-table td:first-child {
  white-space: nowrap;
  color: var(--ink);
}

/* Five-step pipeline row (Methodology: the four engines plus review). */
@media (min-width: 1101px) {
  .pipeline-flow--five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* Simple explanatory figures on Learn (the standalone ones, not the older
   figure cards). The SVG is capped so its labels stay near the size of the
   other figures on wide screens and still read at phone width. */
.learn-figure:not(.card) {
  display: grid;
  gap: 8px;
}
.learn-figure:not(.card) svg {
  max-width: 34rem;
}
.learn-figure:not(.card) figcaption {
  font-family: var(--font-mono), monospace;
  font-size: 0.78rem;
}
@media (min-width: 900px) and (max-width: 1100px) {
  .pipeline-flow--five {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .pipeline-flow--five .pipeline-flow__current {
    display: none;
  }
}
.longform-page .rail-flow .pipeline-step p {
  font-size: 0.95rem;
  line-height: 1.6;
}
/* Glossary and FAQ: two columns on wide screens so the short trust page
   stays short; one column below. */
@media (min-width: 1180px) {
  .methodology-page #definitions .faq-stack,
  .methodology-page #faq .faq-stack {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}
.longform-page .rail-flow :is(#definitions, #faq) .faq-card p {
  font-size: 0.98rem;
  line-height: 1.65;
}
/* Side-by-side cards of unequal length: keep the shorter card's content at
   the top instead of spreading it across the stretched height. */
.longform-page .rail-flow .panel-grid > .card {
  align-content: start;
}

/* ── Article pages: reading text and company memos (2026-11-26) ──────────
   Article bodies (the feed's /articles/[id] and the free sample memos, which
   share <ArticleView>) read like Methodology and Learn: paragraphs and list
   items in IBM Plex Serif; tables, labels and numbers stay monospace.
   Headings get link targets (ids) and clear the sticky header. */
.article-teaser {
  font-family: var(--font-serif), Georgia, serif;
}
.news-post-detail__body :is(p, li) {
  font-family: var(--font-serif), Georgia, serif;
  font-size: 1.02rem;
  line-height: 1.72;
  color: var(--ink-soft);
}
.news-post-detail__body :is(p, li) strong {
  color: var(--ink);
  font-weight: 600;
}
.news-post-detail__body :is(table, th, td, code) {
  font-family: var(--font-mono), monospace;
}
.news-post-detail__body h2 {
  font-family: var(--font-serif), Georgia, serif;
  font-size: clamp(1.3rem, 1.05rem + 0.9vw, 1.6rem);
  line-height: 1.25;
  margin: 30px 0 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 110px;
}
.news-post-detail__body h3 {
  font-family: var(--font-serif), Georgia, serif;
  font-size: 1.12rem;
  line-height: 1.35;
  margin: 22px 0 8px;
  color: var(--ink);
  scroll-margin-top: 110px;
}
.news-post-detail__body > h2:first-child,
.news-post-detail__body > .memo-contents + h2,
.news-post-detail__body > .memo-rail + h2 {
  border-top: 0;
  padding-top: 0;
}

/* Article pages as one centered reading column (2026-11-27). The title,
   the article card and the follow strip share an 820px column (about 750px
   of content), and every block inside fills it: the image, teaser,
   paragraphs, lists, tables, the memo strip and "In this memo". Before, the
   tables and lists ran the full page width while paragraphs stopped at 72ch,
   leaving an empty right half beside every paragraph. Reading text is a
   step larger (about 80 characters a line). Phones are unchanged. */
.reading-frame {
  width: 100%;
  max-width: 820px;
  margin-inline: auto;
}
.reading-frame .news-post-detail {
  padding: clamp(18px, 3.2vw, 34px);
}
.reading-frame :is(.article-teaser, .news-post-detail__body p) {
  max-width: none;
}
.reading-frame .article-teaser {
  font-size: 1.14rem;
  line-height: 1.7;
  color: var(--ink);
}
/* Body paragraphs and list items only: the memo strip's kicker and dates
   keep their small mono captions. */
.reading-frame .news-post-detail__body > p,
.reading-frame .news-post-detail__body li {
  font-size: 1.1rem;
  line-height: 1.75;
}
.reading-frame .page-title {
  text-wrap: balance;
}
/* Tables fit the column: slightly tighter cells, so labels like
   "Price (Nov 25, 2026 close)" stay on one line. */
.reading-frame .news-post-detail__body .table-shell :is(th, td) {
  padding: 10px 12px;
  font-size: 0.82rem;
}
.reading-frame .news-post-detail__body .memo-contents ul {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 640px) {
  .reading-frame .news-post-detail__body > p,
  .reading-frame .news-post-detail__body li {
    font-size: 1.02rem;
    line-height: 1.7;
  }
  .reading-frame .article-teaser {
    font-size: 1.05rem;
  }
  .reading-frame .news-post-detail__body .memo-contents ul {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Memo contents rail (2026-11-27). From 1200px a memo's "In this memo" moves
   to a rail down the card's left side and stays in view while the memo
   scrolls; the column widens to make room (about 800px of text beside a
   210px rail). The card clips with overflow: clip, not hidden, because
   hidden makes it a scroll container and the rail would never stick. Below
   1200px the contents stay in the text, as before. The section being read
   is marked (aria-current). */
.news-post-detail__body .memo-contents a[aria-current] {
  color: var(--accent-ice);
  font-weight: 600;
}
@media (min-width: 1200px) {
  .reading-frame:has(.memo-rail) {
    max-width: 1120px;
  }
  .reading-frame:has(.memo-rail) .news-post-detail {
    overflow: clip;
    padding-left: calc(34px + 210px + 36px);
  }
  .reading-frame .memo-rail {
    position: absolute;
    top: 34px;
    bottom: 34px;
    left: 34px;
    width: 210px;
  }
  .reading-frame .memo-rail .memo-contents {
    position: sticky;
    top: 110px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    margin: 0;
    padding: 14px 14px 14px 16px;
  }
  .reading-frame .news-post-detail__body .memo-rail .memo-contents ul {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
  .reading-frame .news-post-detail__body .memo-rail .memo-contents li {
    font-size: 0.78rem;
    line-height: 1.45;
  }
  .reading-frame .news-post-detail__body .memo-rail .memo-contents a {
    display: block;
    padding: 5px 8px;
    margin-left: -8px;
    border-radius: 8px;
    color: var(--muted);
  }
  .reading-frame .news-post-detail__body .memo-rail .memo-contents a:hover,
  .reading-frame .news-post-detail__body .memo-rail .memo-contents a:focus-visible {
    color: var(--ink);
    text-decoration: none;
    background: rgba(125, 234, 244, 0.06);
  }
  .reading-frame .news-post-detail__body .memo-rail .memo-contents a[aria-current] {
    color: var(--accent-ice);
    background: rgba(125, 234, 244, 0.1);
  }
  /* The first section heading no longer follows the contents box. */
  .reading-frame .news-post-detail__body > .memo-rail + h2 {
    margin-top: 6px;
  }
}

/* "Latest articles" rail (2026-11-27): every article gets the wide layout
   on big screens. An article with its own contents (3+ sections) shows
   those; one without shows the latest articles instead. Below 1200px the
   latest list is hidden (the feed and follow strip cover it). */
.memo-rail--latest {
  display: none;
}
@media (min-width: 1200px) {
  .reading-frame .memo-rail--latest {
    display: block;
  }
  .reading-frame .news-post-detail:has(.news-post-detail__body .memo-rail) .memo-rail--latest {
    display: none;
  }
}
.rail-latest ul {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rail-latest a {
  display: grid;
  gap: 3px;
  padding: 7px 8px;
  margin-left: -8px;
  border-radius: 8px;
  text-decoration: none;
}
.rail-latest a:hover,
.rail-latest a:focus-visible {
  background: rgba(125, 234, 244, 0.06);
}
.rail-latest__kind {
  font-family: var(--font-mono), monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
/* Same colors as the type pills (scheme "B"). */
.rail-latest__kind--memo {
  background: linear-gradient(90deg, var(--accent), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  justify-self: start;
}
.rail-latest__kind--earnings,
.rail-latest__kind--weekly-wrap {
  color: var(--amber);
}
.rail-latest__kind--week-ahead {
  color: #7fc3d8;
}
.rail-latest__kind--daily-recap {
  color: var(--accent-silver);
}
.rail-latest__kind--market-moving {
  color: var(--accent-ice);
}
.rail-latest__kind--update {
  color: var(--muted);
}
.rail-latest__title {
  font-family: var(--font-serif), Georgia, serif;
  font-size: 0.86rem;
  line-height: 1.35;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rail-latest a:hover .rail-latest__title,
.rail-latest a:focus-visible .rail-latest__title {
  color: var(--ink);
}

/* The sample memos' "free sample, dated" line under the header. */
.article-notice {
  margin: 0;
  padding: 10px 14px;
  border: 1px solid rgba(245, 199, 127, 0.3);
  border-radius: 12px;
  background: rgba(245, 199, 127, 0.05);
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.article-notice a {
  color: var(--accent);
}

/* Company memo summary strip: kicker, the view badge and the four headline
   figures, then the dates — parsed from the memo's opening lines. */
.memo-lead {
  display: grid;
  gap: 12px;
  margin: 0 0 20px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(10, 17, 24, 0.62);
}
.news-post-detail__body .memo-lead__kicker,
.news-post-detail__body .memo-lead__dates {
  margin: 0;
  max-width: none;
  font-family: var(--font-mono), monospace;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  line-height: 1.5;
  color: var(--muted);
}
.news-post-detail__body .memo-lead__kicker {
  text-transform: uppercase;
  color: var(--accent);
}
.memo-lead__verdict {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
}
.memo-lead__view {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 12px;
  border: 1px solid rgba(125, 234, 244, 0.45);
  background: rgba(125, 234, 244, 0.08);
  color: var(--accent);
  font-family: var(--font-mono), monospace;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}
.memo-lead__view--neutral {
  color: var(--ink);
  border-color: transparent;
  background: linear-gradient(rgba(9, 16, 24, 0.94), rgba(9, 16, 24, 0.94)) padding-box, linear-gradient(135deg, var(--accent), var(--amber)) border-box;
}
.memo-lead__view--outperform {
  color: var(--amber);
  border-color: rgba(245, 199, 127, 0.55);
  background: rgba(245, 199, 127, 0.08);
  box-shadow: 0 0 18px rgba(245, 199, 127, 0.18);
}
.memo-lead__figures {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  flex: 1 1 320px;
}
.memo-lead__figure {
  display: grid;
  gap: 2px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(16, 25, 35, 0.6);
  min-width: 0;
}
.memo-lead__figure dt {
  font-family: var(--font-mono), monospace;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.memo-lead__figure dd {
  margin: 0;
  font-family: var(--font-mono), monospace;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

/* "In this memo": the numbered sections, linked. */
.memo-contents {
  margin: 0 0 8px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 14px;
  background: rgba(10, 17, 24, 0.5);
}
.memo-contents__label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono), monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.news-post-detail__body .memo-contents ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 4px 18px;
}
.news-post-detail__body .memo-contents li {
  font-family: var(--font-mono), monospace;
  font-size: 0.8rem;
  line-height: 1.5;
}
.news-post-detail__body .memo-contents a {
  text-decoration: none;
}
.news-post-detail__body .memo-contents a:hover,
.news-post-detail__body .memo-contents a:focus-visible {
  text-decoration: underline;
}

/* Wide tables in articles (7+ columns, e.g. the Earnings Roundup's "Today's
   reports", 2026-11-27): compact cells so most fit the reading column, and
   where one still scrolls sideways its first column (the ticker) stays put. */
.reading-frame .news-post-detail__body .table-shell:has(th:nth-child(7)) :is(th, td) {
  padding: 8px 9px;
  font-size: 0.76rem;
  line-height: 1.35;
}
/* A soft cyan edge shows there's more to scroll (the classic local/scroll
   background pair: the covers move with the content, the glows stay put). */
.reading-frame .news-post-detail__body .table-shell:has(th:nth-child(7)) {
  background:
    linear-gradient(to right, #05090e 40%, rgba(5, 9, 14, 0)) left / 48px 100% no-repeat local,
    linear-gradient(to left, #05090e 40%, rgba(5, 9, 14, 0)) right / 48px 100% no-repeat local,
    radial-gradient(farthest-side at 100% 50%, rgba(125, 234, 244, 0.22), transparent) right / 18px 100% no-repeat scroll,
    #05090e;
}
.reading-frame .news-post-detail__body .table-shell:has(th:nth-child(7)) :is(th, td):first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #05090e;
  box-shadow: 1px 0 0 var(--line);
}

/* The memo's fair-value distribution as a curve (BandCurve, 2026-11-27):
   the curve in the accent, P10-P90 shaded, P25-P75 darker, the fair value a
   dashed amber line, the price a white marker. A wide drawing and a compact
   one for phones; one shows. */
.band-curve {
  margin: 4px 0 18px;
  padding: 14px 14px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    radial-gradient(ellipse 80% 70% at 50% 100%, rgba(125, 234, 244, 0.06), transparent 70%),
    rgba(4, 8, 13, 0.7);
}
.band-curve__svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.band-curve__svg--narrow {
  display: none;
}
@media (max-width: 560px) {
  .band-curve__svg--wide {
    display: none;
  }
  .band-curve__svg--narrow {
    display: block;
  }
}
.band-curve__stop-top {
  stop-color: var(--accent);
  stop-opacity: 0.16;
}
.band-curve__stop-bottom {
  stop-color: var(--accent);
  stop-opacity: 0.02;
}
.band-curve__band {
  fill: var(--accent);
}
.band-curve__band--80 {
  fill-opacity: 0.12;
}
.band-curve__band--50 {
  fill-opacity: 0.16;
}
.band-curve__curve {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.2;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(125, 234, 244, 0.35));
}
.band-curve__axis {
  stroke: var(--line-strong);
  stroke-width: 1;
}
.band-curve__svg text {
  font-family: var(--font-mono), monospace;
  font-size: 12px;
  letter-spacing: 0.02em;
}
.band-curve__tick text {
  fill: var(--muted);
}
.band-curve__tick .band-curve__tick-value {
  fill: var(--ink-soft);
}
.band-curve__fv-line {
  stroke: var(--amber);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
}
.band-curve__svg .band-curve__fv-text {
  fill: var(--amber);
  font-weight: 600;
}
.band-curve__price-line {
  stroke: var(--accent-ice);
  stroke-width: 1.5;
}
.band-curve__dot {
  fill: var(--accent-ice);
  stroke: #071019;
  stroke-width: 2;
}
.band-curve__svg .band-curve__price-text {
  fill: var(--accent-ice);
  font-weight: 600;
}
.news-post-detail__body .band-curve__caption {
  margin: 8px 2px 0;
  font-family: var(--font-mono), monospace;
  font-size: 0.74rem;
  line-height: 1.5;
  color: var(--muted);
}

/* Code blocks in article bodies (a memo's ASCII band map): same treatment as
   .markdown pre, scrolling sideways on narrow screens instead of wrapping. */
.news-post-detail__body pre {
  margin: 0 0 16px;
  padding: 14px 16px;
  max-width: 100%;
  overflow-x: auto;
  border-radius: 14px;
  background: rgba(4, 8, 13, 0.96);
  border: 1px solid rgba(169, 205, 224, 0.14);
  font-size: 0.82rem;
  line-height: 1.5;
}
.news-post-detail__body pre code {
  padding: 0;
  background: none;
  color: var(--ink-soft);
}
/* Table cells break between words, never inside one ("Narrati-ve" on
   phones); a table too wide for the screen scrolls in its .table-shell. */
.news-post-detail__body :is(th, td) {
  overflow-wrap: break-word;
  word-break: normal;
}
/* Phones: tighter cells, and a long label in the fixed 34% column of a
   two-column Metric | Value table hyphenates instead of splitting bare. */
@media (max-width: 560px) {
  .news-post-detail__body .table-shell :is(th, td) {
    padding: 10px;
    font-size: 0.8rem;
  }
  .news-post-detail__body .table-shell td:first-child {
    hyphens: auto;
  }
}

/* ── Article follow strip (2026-11-26) ───────────────────────────────────
   Replaces the stacked "Follow HoundCreek." card under every article (and
   sample memo): one slim row, the line on the left and the X handle plus
   Subscribe on the right, wrapping to two rows on phones. */
.follow-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(10, 17, 24, 0.72);
}
.follow-strip__text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
}
.follow-strip__text strong {
  font-family: var(--font-serif), Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-right: 4px;
}
.follow-strip__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.follow-links--compact .follow-link {
  min-height: 36px;
  padding: 5px 14px 5px 10px;
  gap: 8px;
  border-radius: 10px;
}
.follow-links--compact .follow-link__icon {
  width: 18px;
}
.follow-links--compact .follow-link__icon svg {
  width: 15px;
  height: 15px;
}
.follow-links--compact .follow-link__text .follow-link__handle {
  font-size: 0.85rem;
}
.follow-strip__subscribe {
  min-height: 36px;
  padding: 6px 16px;
  font-size: 0.85rem;
}
/* Phones: the two buttons sit side by side under the line (the site-wide
   full-width button rule doesn't apply inside the strip). */
.follow-strip__actions .button,
.follow-strip__actions .follow-links {
  width: auto;
  flex: 0 0 auto;
}

/* ── Articles page (/articles), 2026-11-26 ────────────────────────────────
   Header: the title with the X link drawn at the title's own size (the
   row carries the title's font-size so the button is 1em square), a serif
   intro, the subscriber bar. Then the newest article as a featured card and
   the rest in a two-column grid (one column on phones). */
.feed-header {
  display: grid;
  gap: 14px;
}
.feed-title-row {
  display: flex;
  align-items: center;
  gap: 0.3em;
  font-size: clamp(2rem, 4vw, 3.4rem);
}
.feed-title-row .page-title {
  font-size: inherit;
  line-height: 1.05;
}
.feed-title-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 0.92em;
  height: 0.92em;
  border: 1px solid var(--line);
  border-radius: 0.2em;
  background: rgba(125, 234, 244, 0.04);
  color: var(--ink);
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}
.feed-title-x svg {
  width: 0.5em;
  height: 0.5em;
}
.feed-title-x:hover,
.feed-title-x:focus-visible {
  color: var(--accent-ice);
  border-color: var(--line-strong);
  background: rgba(125, 234, 244, 0.1);
}
.feed-header__intro {
  margin: 0;
  max-width: 64ch;
  font-family: var(--font-serif), Georgia, serif;
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--ink-soft);
}
.feed-header__intro a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: rgba(125, 234, 244, 0.55);
}

.article-feed {
  display: grid;
  gap: 26px;
}
.article-feed__more {
  display: grid;
  gap: 14px;
}
.article-feed__heading {
  margin: 0;
  font-family: var(--font-mono), monospace;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.feed-card {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(10, 17, 24, 0.72);
  transition: border-color 160ms ease, background 160ms ease;
}
.feed-card:hover {
  border-color: var(--line-strong);
  background: rgba(14, 22, 30, 0.86);
}
.feed-card__body {
  display: grid;
  gap: 10px;
  align-content: start;
}
.feed-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.feed-card__latest {
  font-family: var(--font-mono), monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
}
.feed-card__title {
  margin: 0;
  font-family: var(--font-serif), Georgia, serif;
  font-size: 1.25rem;
  line-height: 1.3;
}
.feed-card__title a {
  color: var(--ink);
  text-decoration: none;
}
.feed-card__title a:hover,
.feed-card__title a:focus-visible {
  color: var(--accent-ice);
}
.feed-card__excerpt {
  margin: 0;
  max-width: 68ch;
  font-family: var(--font-serif), Georgia, serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feed-card__read {
  justify-self: start;
  font-size: 0.84rem;
  color: var(--accent);
  text-decoration: none;
}
.feed-card__read:hover,
.feed-card__read:focus-visible {
  text-decoration: underline;
}
.feed-card__image {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  aspect-ratio: 1200 / 630;
}
.feed-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The newest article, featured. */
.feed-card--featured {
  padding: 26px 28px;
  border-color: rgba(125, 234, 244, 0.26);
  background:
    radial-gradient(circle at 12% 0%, rgba(125, 234, 244, 0.08), transparent 45%),
    rgba(10, 17, 24, 0.8);
}
.feed-card--featured .feed-card__title {
  font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2.1rem);
  line-height: 1.2;
}
.feed-card--featured .feed-card__excerpt {
  font-size: 1.08rem;
  -webkit-line-clamp: 4;
  line-clamp: 4;
}
@media (min-width: 900px) {
  .feed-card--featured.feed-card--image {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 28px;
  }
  .feed-card--featured .feed-card__image {
    order: 2;
  }
}
.article-feed__pager {
  padding-top: 0;
}
/* Cards in a grid row share one height; the Read link sits at the bottom of
   each so a row's links line up. */
.feed-card {
  display: flex;
  flex-direction: column;
}
.feed-card__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
.feed-card__read {
  margin-top: auto;
  align-self: flex-start;
}
@media (min-width: 900px) {
  .feed-card--featured.feed-card--image {
    display: grid;
  }
}

/* ── Subscribe page (2026-11-26) ─────────────────────────────────────────
   Desktop: the offer on the left (heading, price, what you get, how it
   works), the sign-up card on the right, sticky so it stays in view. Phones:
   heading, then the card, then the details. */
.subscribe-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "head"
    "panel"
    "details"
    "samples";
  gap: 24px;
}
/* The free samples: under the offer details, in the left column on wide
   screens, so the sticky sign-up card never slides over them (2026-11-27). */
.subscribe-layout > .subscribe-samples {
  grid-area: samples;
}
/* Already subscribed (2026-11-28, owner): one column, the subscribed card
   first as a banner, and the sign-up steps hidden; the two-column sign-up
   layout left a tall empty column beside a short card. */
.subscribe-layout:has(.subscribe-done) {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto;
  grid-template-areas:
    "panel"
    "head"
    "details"
    "samples";
}
.subscribe-layout:has(.subscribe-done) .subscribe-panel {
  position: static;
}
.subscribe-layout:has(.subscribe-done) [aria-labelledby="subscribe-steps-title"] {
  display: none;
}
/* Already subscribed, take two (2026-11-28, owner: "this layout does not look
   good"): the page reads as your plan. The banner is one row (text left,
   buttons right); the sales header (headline, pitch, price) is hidden, its
   H1 kept for screen readers; the perks are four compact tiles titled
   "Included in your subscription". */
.subscribe-label--member {
  display: none;
}
.subscribe-layout:has(.subscribe-done) .subscribe-label--sell {
  display: none;
}
.subscribe-layout:has(.subscribe-done) .subscribe-label--member {
  display: inline;
}
.subscribe-layout:has(.subscribe-done) .subscribe-offer__head {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.subscribe-layout:has(.subscribe-done) {
  row-gap: 22px;
}
@media (min-width: 900px) {
  .subscribe-done {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 28px;
    align-items: center;
    padding: 26px 30px;
  }
  .subscribe-done > :not(:last-child) {
    grid-column: 1;
  }
  .subscribe-done > :last-child {
    grid-column: 2;
    grid-row: 1 / span 3;
    margin: 0;
  }
}
@media (min-width: 1100px) {
  .subscribe-layout:has(.subscribe-done) .subscribe-perks {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.subscribe-offer__head {
  grid-area: head;
  display: grid;
  gap: 14px;
  align-content: start;
}
.subscribe-panel {
  grid-area: panel;
  min-width: 0;
}
.subscribe-offer__details {
  grid-area: details;
  display: grid;
  gap: 22px;
  align-content: start;
}
@media (min-width: 980px) {
  .subscribe-layout {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.85fr);
    grid-template-areas:
      "head panel"
      "details panel"
      "samples panel";
    column-gap: 40px;
    row-gap: 26px;
    align-items: start;
  }
  .subscribe-panel {
    position: sticky;
    top: 110px;
  }
}
.subscribe-offer__intro {
  margin: 0;
  max-width: 58ch;
  font-family: var(--font-serif), Georgia, serif;
  font-size: 1.14rem;
  line-height: 1.65;
  color: var(--ink-soft);
}
.subscribe-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: 4px 0 0;
}
.subscribe-price__amount {
  font-family: var(--font-serif), Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
}
.subscribe-price__per {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin-left: -6px;
}
.subscribe-price__trial {
  padding: 4px 12px;
  border: 1px solid rgba(245, 199, 127, 0.4);
  border-radius: 999px;
  background: rgba(245, 199, 127, 0.07);
  color: var(--amber);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}
.subscribe-offer__label {
  margin: 0 0 10px;
  font-family: var(--font-mono), monospace;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.subscribe-offer__note {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--muted);
}
.subscribe-offer__note a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/* The sign-up card: the landing page's shooting stars behind a scrim
   (stars z0 < scrim z1 < content z2), a brighter accent edge, and a roomier
   form. */
.subscribe-card--stars {
  position: relative;
  overflow: hidden;
  border-color: rgba(125, 234, 244, 0.28);
  padding: 26px 24px;
}
.subscribe-card--stars::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background: radial-gradient(
    circle at 50% 40%,
    rgba(7, 11, 17, 0.55) 0%,
    rgba(7, 11, 17, 0.28) 60%,
    rgba(7, 11, 17, 0.5) 100%
  );
  pointer-events: none;
}
.subscribe-card--stars > *:not(.closing-stars) {
  position: relative;
  z-index: 2;
}
.subscribe-card--stars .subscribe-form input[type="email"] {
  min-height: 50px;
  background: rgba(7, 11, 17, 0.7);
  font-size: 1rem;
}
.subscribe-card--stars .subscribe-form .button {
  min-height: 50px;
}
.subscribe-page .signup-form__legal {
  font-size: 0.78rem;
  line-height: 1.55;
}

/* Free sample memos under the sign-up card (2026-11-26). */
.subscribe-panel {
  display: grid;
  gap: 16px;
  align-content: start;
}
.subscribe-samples {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(10, 17, 24, 0.62);
}
.subscribe-samples .subscribe-offer__label {
  margin-bottom: 10px;
}
.subscribe-samples__list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.subscribe-sample {
  display: grid;
  grid-template-columns: 3.6rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(16, 25, 35, 0.6);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease;
}
.subscribe-sample:hover,
.subscribe-sample:focus-visible {
  border-color: var(--line-strong);
  background: rgba(125, 234, 244, 0.06);
}
.subscribe-sample__ticker {
  font-family: var(--font-mono), monospace;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
}
.subscribe-sample__name {
  font-family: var(--font-serif), Georgia, serif;
  font-size: 0.98rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.subscribe-sample__view {
  padding: 2px 10px;
  border: 1px solid rgba(125, 234, 244, 0.35);
  border-radius: 999px;
  font-family: var(--font-mono), monospace;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.subscribe-sample__view--neutral {
  border-color: transparent;
  background: linear-gradient(rgba(9, 16, 24, 0.94), rgba(9, 16, 24, 0.94)) padding-box, linear-gradient(135deg, var(--accent), var(--amber)) border-box;
  color: var(--ink);
}
.subscribe-sample__view--outperform {
  border-color: rgba(245, 199, 127, 0.5);
  color: var(--amber);
}
.subscribe-sample__name {
  display: grid;
  gap: 1px;
}
.subscribe-sample__date {
  font-family: var(--font-mono), monospace;
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  color: var(--muted);
}
.subscribe-samples__note {
  margin: 10px 0 0;
  font-size: 0.76rem;
  line-height: 1.55;
  color: var(--muted);
}

/* Spacing pass (2026-11-26). The sign-up column spans both rows; without
   explicit rows the grid spread its extra height into the FIRST row, leaving
   a gap under the price. The second row now takes it (auto, then 1fr). */
@media (min-width: 980px) {
  .subscribe-layout {
    grid-template-rows: auto 1fr;
    row-gap: 22px;
  }
}
.subscribe-offer__details {
  gap: 18px;
}
/* A tighter sign-up card and samples list. */
.subscribe-card--stars {
  padding: 22px 22px 20px;
  gap: 10px;
}
.subscribe-card--stars .terminal-note {
  font-size: 0.88rem;
  line-height: 1.6;
}
.subscribe-card--stars .subscribe-form {
  gap: 8px;
}
.subscribe-card--stars .subscribe-terms,
.subscribe-page .subscribe-card--stars .signup-form__legal {
  font-size: 0.76rem;
  line-height: 1.5;
}
.subscribe-samples {
  padding: 14px 16px;
}
.subscribe-samples__list {
  gap: 6px;
}
.subscribe-sample {
  padding: 7px 12px;
}
.subscribe-sample__name {
  font-size: 0.94rem;
}
.subscribe-samples__note {
  margin-top: 8px;
  font-size: 0.72rem;
}
/* Samples as three tiles side by side (ticker + rating on top, name and
   date under), stacking back into rows on narrow screens. */
@media (min-width: 520px) {
  .subscribe-samples__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
  .subscribe-sample {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "ticker view"
      "name name";
    gap: 6px 8px;
    padding: 10px 12px;
    align-items: center;
  }
  .subscribe-sample__ticker {
    grid-area: ticker;
  }
  .subscribe-sample__view {
    grid-area: view;
    padding: 1px 7px;
    font-size: 0.6rem;
  }
  .subscribe-sample__name {
    grid-area: name;
    font-size: 0.9rem;
  }
}

/* ── Paywalled article readability (2026-11-26) ──────────────────────────
   The teaser ran the full card width (~230 characters a line); it now
   keeps a reading measure. The paywall box gets the landing page's
   shooting stars under a scrim, the price on its own line, and terms set
   to a short, centered measure. */
.article-teaser {
  max-width: 68ch;
}
.paywall__box {
  position: relative;
  overflow: hidden;
  gap: 12px;
  padding: 26px 26px 22px;
  border-color: rgba(125, 234, 244, 0.3);
}
.paywall__box::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background: radial-gradient(
    circle at 50% 45%,
    rgba(7, 11, 17, 0.55) 0%,
    rgba(7, 11, 17, 0.25) 65%,
    rgba(7, 11, 17, 0.45) 100%
  );
  pointer-events: none;
}
.paywall__box > *:not(.closing-stars) {
  position: relative;
  z-index: 2;
}
.paywall__price {
  margin: 0;
  font-family: var(--font-serif), Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
}
.paywall__terms {
  max-width: 46ch;
  font-size: 0.86rem;
  line-height: 1.65;
}
.paywall__note {
  max-width: 46ch;
  line-height: 1.5;
}

/* ── Landing hero art in the flow (2026-11-26) ───────────────────────────
   The wolf art was absolutely positioned at a percentage of the hero's
   height, but that height comes from the sample card, not the copy, so the
   art ran under the hero body text (and, on phones, sat behind the title and
   body as a faded backdrop). It is now a normal grid item at every width, at
   its own 16:9 size, so it can never sit under text:
   - two columns (>920px): under the copy in the left column; the sample
     card spans both rows on the right;
   - one column (<=920px): between the copy and the sample card.
   The glows are sized in percentages of the box so they stay seated on the
   bell curve and the creek diamond at any width. */
.hero--wide > .hero-art {
  position: relative;
  top: auto;
  left: auto;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  opacity: 1;
  align-self: start;
  background:
    linear-gradient(90deg, rgba(9, 16, 24, 0.5) 0%, rgba(9, 16, 24, 0.22) 30%, rgba(9, 16, 24, 0.05) 55%, rgba(9, 16, 24, 0) 70%),
    linear-gradient(180deg, rgba(9, 16, 24, 0.28) 0%, rgba(9, 16, 24, 0.06) 20%, rgba(9, 16, 24, 0) 36%),
    radial-gradient(ellipse 26% 47% at 33% 40%, rgba(168, 222, 255, 0.2) 0%, rgba(168, 222, 255, 0.07) 55%, rgba(168, 222, 255, 0) 100%),
    radial-gradient(ellipse 8% 14% at 76.4% 43.5%, rgba(255, 176, 72, 0.3) 0%, rgba(255, 176, 72, 0.1) 55%, rgba(255, 176, 72, 0) 100%),
    url(/landing-hero-wolf.webp) center / cover no-repeat;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 6%, #000 88%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 8%, #000 95%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0, #000 6%, #000 88%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 8%, #000 95%, transparent 100%);
  mask-composite: intersect;
}

@media (min-width: 921px) {
  .hero--wide {
    grid-template-rows: auto 1fr;
  }
  .hero--wide > .hero-copy {
    grid-column: 1;
    grid-row: 1;
  }
  .hero--wide > .hero-stack {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
  .hero--wide > .hero-art {
    grid-column: 1;
    grid-row: 2;
    max-width: 760px;
    margin-top: 4px;
  }
}

@media (max-width: 920px) {
  .hero--wide > .hero-copy { grid-row: 1; }
  .hero--wide > .hero-art {
    grid-row: 2;
    max-width: 640px;
  }
  .hero--wide > .hero-stack { grid-row: 3; }
}

/* ── Support page (2026-11-26) ───────────────────────────────────────────
   Help topics on the left (each a card of question rows that open in
   place), the contact cards on the right, sticky on wide screens. On phones
   the contact cards follow the topics; the intro already gives the support
   address at the top. The headings follow the home page FAQ: serif
   question, +/− marker, ice colour when open. */
.support-page {
  gap: 22px;
}
.support-head {
  display: grid;
  gap: 12px;
}
.support-head .page-intro {
  margin: 0;
  max-width: 62ch;
}
.support-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}
.support-main {
  display: grid;
  gap: 16px;
  min-width: 0;
}
.support-aside {
  display: grid;
  gap: 14px;
  align-content: start;
}
@media (min-width: 1024px) {
  .support-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: start;
  }
  .support-aside {
    position: sticky;
    top: 110px;
  }
}
.support-topic {
  display: grid;
  gap: 2px;
  scroll-margin-top: 110px;
}
.support-topic > .support-topic__title {
  margin: 0 0 4px;
  font-size: 1.4rem;
}
.support-faq {
  display: grid;
}
.support-faq__item {
  border-top: 1px solid var(--line);
}
.support-faq__item:first-child {
  border-top: 0;
}
.support-faq__item summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  cursor: pointer;
  list-style: none;
}
.support-faq__item summary::-webkit-details-marker {
  display: none;
}
.support-faq__item summary h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.support-faq__item summary:hover h3,
.support-faq__item[open] summary h3 {
  color: var(--accent-ice);
}
.support-faq__item summary::after {
  content: "+";
  margin-left: auto;
  color: var(--accent);
  font-family: var(--font-mono), monospace;
  font-weight: 600;
}
.support-faq__item[open] summary::after {
  content: "−";
}
.support-faq__item p {
  margin: 0 0 16px;
  max-width: 70ch;
  color: var(--muted);
  line-height: 1.65;
}
.support-research-note {
  margin: 2px 0 0;
  max-width: 70ch;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}
.support-contact {
  display: grid;
  gap: 10px;
}
.support-contact > .support-contact__title {
  margin: 0;
  font-size: 1.4rem;
}
.support-contact__email {
  margin: 0;
  font-family: var(--font-mono), monospace;
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}
.support-contact p {
  margin: 0;
}
.support-contact__tip {
  opacity: 0.8;
}
.support-contact > .support-contact__label {
  margin: 0;
  font-family: var(--font-mono), monospace;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.support-faq__item p a:not(.text-sweep-glow),
.support-research-note a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(125, 234, 244, 0.35);
  text-underline-offset: 3px;
}
.support-faq__item p a:not(.text-sweep-glow):hover,
.support-research-note a:hover {
  color: var(--accent-ice);
  text-decoration-color: currentColor;
}

/* ── Account settings (2026-11-26) ───────────────────────────────────────
   Settings cards: title and a short explanation on the left, controls on
   the right (stacked on phones). Status and key state are small badges in
   the site's tones; the one-time API secret is the one loud amber element.
   The old .account-* / .api-key-* rules stay for the retired dashboard. */
.settings-head {
  display: grid;
  gap: 10px;
}
.settings-head .page-intro {
  margin: 0;
}
.settings {
  display: grid;
  gap: 16px;
}
.settings-section {
  display: grid;
  gap: 16px;
  scroll-margin-top: 110px;
}
@media (min-width: 860px) {
  .settings-section {
    grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
    gap: 36px;
    align-items: start;
  }
}
.settings-section__intro {
  display: grid;
  gap: 6px;
  align-content: start;
}
.settings-section > .settings-section__intro > .settings-section__title,
.settings-signin > .settings-section__title {
  margin: 0;
  font-size: 1.35rem;
}
.settings-section__desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}
.settings-section__body {
  display: grid;
  gap: 14px;
  min-width: 0;
  align-content: start;
}
.settings-muted {
  margin: 0;
  color: var(--muted);
}
.settings-error {
  margin: 0;
  color: var(--danger);
  font-size: 0.9rem;
}
.settings-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.settings-actions .button {
  width: auto;
  flex: 0 0 auto;
}
.settings-link-button {
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.84rem;
  text-decoration: underline;
  text-decoration-color: rgba(169, 205, 224, 0.35);
  text-underline-offset: 3px;
  cursor: pointer;
}
.settings-link-button:hover,
.settings-link-button:focus-visible {
  color: var(--accent-ice);
}

/* Badges */
.settings-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono), monospace;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.settings-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.settings-badge--accent {
  border-color: rgba(125, 234, 244, 0.4);
  background: rgba(125, 234, 244, 0.08);
  color: var(--accent);
}
.settings-badge--ice {
  border-color: rgba(244, 251, 255, 0.35);
  background: rgba(244, 251, 255, 0.06);
  color: var(--accent-ice);
}
.settings-badge--amber {
  border-color: rgba(245, 199, 127, 0.45);
  background: rgba(245, 199, 127, 0.08);
  color: var(--amber);
}
.settings-badge--danger {
  border-color: rgba(255, 139, 139, 0.45);
  background: rgba(255, 139, 139, 0.08);
  color: var(--danger);
}
.settings-badge--muted {
  color: var(--muted);
}

/* Facts (dates, price) */
.settings-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  margin: 0;
}
.settings-facts dt {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.settings-facts dd {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 1rem;
}
.settings-facts--small dd {
  font-size: 0.9rem;
}

/* Terms banner */
.settings-terms {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(245, 199, 127, 0.45);
}
@media (min-width: 860px) {
  .settings-terms {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 28px;
  }
  .settings-terms .settings-error {
    grid-column: 1 / -1;
  }
}
.settings-terms__text {
  display: grid;
  gap: 4px;
}
.settings-terms > .settings-terms__text > .settings-terms__title {
  margin: 0;
  font-size: 1.15rem;
  color: var(--amber);
}
.settings-terms__text p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.6;
}
.settings-terms__text a {
  color: var(--accent);
  text-decoration: underline;
}
.settings-terms__form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}
.settings-terms__form .subscribe-check input {
  margin-top: 2px;
}
.settings-flash {
  margin: 0;
  padding: 10px 14px;
  border: 1px solid rgba(125, 234, 244, 0.35);
  border-radius: 12px;
  color: var(--accent);
}

/* Profile strip */
.settings-profile {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 16px;
}
.settings-profile__avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(125, 234, 244, 0.4);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(125, 234, 244, 0.22), rgba(9, 16, 24, 0.6));
  color: var(--accent-ice);
  font-family: var(--font-serif), Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
}
.settings-profile__who {
  display: grid;
  gap: 1px;
  flex: 1 1 200px;
  min-width: 0;
}
.settings-profile__label {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.settings-profile__name {
  color: var(--ink);
  font-family: var(--font-serif), Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.settings-profile__email {
  color: var(--muted);
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}
.settings-profile .settings-profile__signout {
  width: auto;
  flex: 0 0 auto;
}

/* Subscription */
.settings-plan {
  display: grid;
  gap: 12px;
}
.settings-plan__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.settings-plan__name {
  color: var(--ink);
  font-weight: 600;
}
.settings-plan__summary {
  margin: 0;
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* API key */
.settings-empty {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 14px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
}
.settings-empty p {
  margin: 0;
  color: var(--ink-soft);
}
.settings-empty .button {
  width: auto;
  flex: 0 0 auto;
}
.settings-notice {
  margin: 0;
  padding: 10px 14px;
  border: 1px solid rgba(245, 199, 127, 0.4);
  border-radius: 12px;
  background: rgba(245, 199, 127, 0.05);
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.55;
}
.settings-keys {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.settings-key {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(4, 8, 13, 0.35);
  text-align: left;
}
/* The one key (2026-11-28): a full-width credential field (the start of
   the key, the hidden rest as dots, the status at its end), then the dates
   and the actions on one row. */
.settings-key__field {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
}
.settings-key__prefix {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.settings-key__mask {
  color: var(--muted);
  letter-spacing: 0.08em;
}
.settings-key__field .settings-badge {
  flex: none;
}
.settings-key__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
}
.settings-key__label {
  color: var(--ink-soft);
  font-size: 0.88rem;
}
.settings-key__hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}
.settings-key .settings-danger:not(:disabled):hover,
.settings-key .settings-danger:not(:disabled):focus-visible {
  border-color: rgba(255, 139, 139, 0.6);
  color: var(--danger);
}
.settings-secret {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid rgba(245, 199, 127, 0.55);
  border-radius: 12px;
  background: rgba(245, 199, 127, 0.07);
}
.settings-secret__title {
  margin: 0;
  color: var(--amber);
  font-weight: 600;
}
.settings-secret__warn {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}
.settings-secret__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.settings-secret__code {
  flex: 1 1 260px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(245, 199, 127, 0.3);
  border-radius: 8px;
  background: rgba(4, 8, 13, 0.92);
  color: var(--ink);
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}
.settings-secret__row .button {
  width: auto;
  flex: 0 0 auto;
}
.settings-secret .settings-link-button {
  justify-self: start;
}
.settings-docs summary {
  cursor: pointer;
  color: var(--accent);
  font-size: 0.86rem;
}
.settings-docs p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}
.settings-docs pre {
  overflow-x: auto;
  margin: 6px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  font-size: 0.8rem;
}

/* Email switch */
.settings-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}
.settings-toggle__text {
  display: grid;
  gap: 2px;
}
.settings-toggle__text strong {
  color: var(--ink);
  font-weight: 600;
}
.settings-toggle__text span {
  color: var(--muted);
  font-size: 0.86rem;
}
.settings-switch {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  height: 24px;
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(4, 8, 13, 0.6);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.settings-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform 0.15s ease, background 0.15s ease;
}
.settings-switch:checked {
  border-color: rgba(125, 234, 244, 0.6);
  background: rgba(125, 234, 244, 0.25);
}
.settings-switch:checked::after {
  transform: translateX(20px);
  background: var(--accent);
}
.settings-switch:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.settings-switch:disabled {
  opacity: 0.6;
  cursor: default;
}
@media (prefers-reduced-motion: reduce) {
  .settings-switch,
  .settings-switch::after {
    transition: none;
  }
}
.settings-saved {
  min-height: 1.2em;
  margin: -6px 0 0;
  color: var(--accent);
  font-size: 0.84rem;
}

/* Help links */
.settings-links {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}
.settings-links li {
  display: grid;
  gap: 2px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.settings-links li:first-child {
  border-top: 0;
  padding-top: 0;
}
.settings-links a {
  color: var(--accent);
  text-decoration: none;
}
.settings-links a:hover,
.settings-links a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.settings-links span {
  color: var(--muted);
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}
.settings-signin {
  display: grid;
  gap: 10px;
}
/* <button> and <a> buttons share one size here (a <button> otherwise falls
   back to the browser's 13.3px while a link inherits 16px). */
.settings .button,
.settings-signin .button {
  font-family: inherit;
  font-size: 0.88rem;
  line-height: 1.2;
}

/* ── Methodology page design (2026-11-26) ────────────────────────────────
   A long read, so: numbered chapters with a hairline between them and
   section titles sized for reading rather than for a landing page; a light
   chapter rail (numbers, a track line, the current chapter marked); the
   publications as cards; a roomier five-step pipeline; the definitions as
   one glossary list (term | definition); the FAQ as open/close rows; and a
   closing card. The chapters, rail and FAQ rows also apply to /learn (the
   same long-read layout, 2026-11-26); the rail also applies to /legal. */

/* Chapters */
:is(.methodology-page, .learn-page) .rail-flow {
  counter-reset: chapter;
}
:is(.methodology-page, .learn-page) .rail-flow > .anchor-section {
  counter-increment: chapter;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
:is(.methodology-page, .learn-page) .rail-flow > .anchor-section > .section-heading {
  gap: 12px;
}
:is(.methodology-page, .learn-page) .rail-flow > .anchor-section > .section-heading > .eyebrow::before {
  content: counter(chapter, decimal-leading-zero);
  margin-right: 10px;
  color: var(--accent);
  font-weight: 600;
}
:is(.methodology-page, .learn-page) .rail-flow > .anchor-section > .section-heading > h2 {
  max-width: 30ch;
  font-size: clamp(1.7rem, 2.4vw, 2.3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

/* Chapter rail: a light numbered list instead of a stack of boxes. */
@media (min-width: 1121px) {
  :is(.methodology-page, .learn-page, .legal-page) .rail-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 40px;
  }
}
:is(.methodology-page, .learn-page, .legal-page) .section-rail {
  padding: 18px 14px 18px 16px;
}
:is(.methodology-page, .learn-page, .legal-page) .section-rail .toc-list {
  display: grid;
  gap: 2px;
  counter-reset: toc;
  border-left: 1px solid var(--line);
}
:is(.methodology-page, .learn-page, .legal-page) .section-rail .toc-link {
  counter-increment: toc;
  margin-left: -1px;
  padding: 7px 10px 7px 12px;
  border: 0;
  border-left: 2px solid transparent;
  border-radius: 0 8px 8px 0;
  background: none;
  box-shadow: none;
}
:is(.methodology-page, .learn-page, .legal-page) .section-rail .toc-link strong {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0;
}
:is(.methodology-page, .learn-page, .legal-page) .section-rail .toc-link strong::before {
  content: counter(toc, decimal-leading-zero);
  flex: 0 0 auto;
  color: rgba(125, 234, 244, 0.55);
  font-size: 0.72rem;
}
:is(.methodology-page, .learn-page, .legal-page) .section-rail .toc-link:hover,
:is(.methodology-page, .learn-page, .legal-page) .section-rail .toc-link:focus-visible {
  border-color: rgba(125, 234, 244, 0.35);
  box-shadow: none;
  background: rgba(125, 234, 244, 0.04);
}
:is(.methodology-page, .learn-page, .legal-page) .section-rail .toc-link:hover strong,
:is(.methodology-page, .learn-page, .legal-page) .section-rail .toc-link:focus-visible strong {
  color: var(--ink);
}
:is(.methodology-page, .learn-page, .legal-page) .section-rail .toc-link[data-active="true"] {
  border-color: var(--accent);
  background: rgba(125, 234, 244, 0.08);
  box-shadow: none;
}
:is(.methodology-page, .learn-page, .legal-page) .section-rail .toc-link[data-active="true"] strong {
  color: var(--accent-ice);
  font-weight: 600;
}
:is(.methodology-page, .learn-page, .legal-page) .section-rail .toc-link[data-active="true"] strong::before {
  color: var(--accent);
}

/* What we publish: cards */
.publish-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 700px) {
  .publish-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1180px) {
  .publish-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.publish-card {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(19, 28, 38, 0.62), rgba(8, 13, 19, 0.62));
}
.publish-card--lead {
  grid-column: 1 / -1;
  gap: 8px;
  padding: 20px 22px;
  border-color: rgba(125, 234, 244, 0.32);
  background:
    radial-gradient(circle at 0% 0%, rgba(125, 234, 244, 0.1), transparent 45%),
    linear-gradient(180deg, rgba(19, 28, 38, 0.75), rgba(8, 13, 19, 0.75));
}
.publish-card__tag {
  justify-self: start;
  padding: 2px 10px;
  border: 1px solid rgba(245, 199, 127, 0.45);
  border-radius: 999px;
  background: rgba(245, 199, 127, 0.07);
  color: var(--amber);
  font-family: var(--font-mono), monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
:is(.methodology-page, .learn-page) .rail-flow .publish-card .publish-card__type {
  margin: 0;
  color: var(--ink);
  font-size: 1.12rem;
  line-height: 1.2;
}
:is(.methodology-page, .learn-page) .rail-flow .publish-card--lead .publish-card__type {
  font-size: 1.4rem;
}
:is(.methodology-page, .learn-page) .rail-flow .publish-card .publish-card__when {
  margin: 0;
  color: var(--accent);
  font-family: var(--font-mono), monospace;
  font-size: 0.76rem;
  line-height: 1.45;
}
:is(.methodology-page, .learn-page) .rail-flow .publish-card .publish-card__what {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}
:is(.methodology-page, .learn-page) .rail-flow .publish-card--lead .publish-card__what {
  max-width: 68ch;
  font-size: 1.02rem;
}

/* Pipeline: slimmer card padding and text so five steps fit the row. */
:is(.methodology-page, .learn-page) .pipeline-flow--five .pipeline-step {
  padding: 18px 15px;
}
.longform-page.methodology-page .rail-flow .pipeline-step p {
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Definitions: one glossary list, term on the left, definition on the
   right; a deep-linked term (#definition-…) is highlighted. */
.glossary {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(19, 28, 38, 0.55), rgba(8, 13, 19, 0.55));
  overflow: hidden;
}
.glossary__item {
  display: grid;
  gap: 6px 28px;
  padding: 18px 22px;
  border-top: 1px solid var(--line);
  transition: background 0.2s ease;
}
.glossary__item:first-child {
  border-top: 0;
}
@media (min-width: 900px) {
  .glossary__item {
    grid-template-columns: 210px minmax(0, 1fr);
    align-items: start;
  }
}
:is(.methodology-page, .learn-page) .rail-flow .glossary__item h3 {
  margin: 0;
  color: var(--accent-ice);
  font-size: 1.06rem;
  line-height: 1.3;
  scroll-margin-top: calc(var(--chrome-bottom, 118px) + 16px);
}
:is(.methodology-page, .learn-page) .rail-flow .glossary__item p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.65;
}
.glossary__item:has(h3:target) {
  background: rgba(125, 234, 244, 0.07);
  box-shadow: inset 3px 0 0 var(--accent);
}

/* FAQ: one column of open/close rows (the 2-column rule above is for the
   older static cards). */
:is(.methodology-page, .learn-page) #faq .faq-stack {
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}
:is(.methodology-page, .learn-page) #faq .faq-card h3 {
  font-size: 1.08rem;
  line-height: 1.3;
}
:is(.methodology-page, .learn-page) #faq .faq-card p {
  margin: 12px 0 0;
}

/* Closing card with the site's star layer under a scrim. */
.methodology-cta {
  position: relative;
  display: grid;
  gap: 12px;
  overflow: hidden;
  padding: 28px 26px;
  border-color: rgba(125, 234, 244, 0.28);
}
.methodology-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background: radial-gradient(
    circle at 30% 40%,
    rgba(7, 11, 17, 0.55) 0%,
    rgba(7, 11, 17, 0.3) 60%,
    rgba(7, 11, 17, 0.5) 100%
  );
  pointer-events: none;
}
.methodology-cta > *:not(.closing-stars) {
  position: relative;
  z-index: 2;
}
.methodology-cta > h2 {
  margin: 0;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
}
:is(.methodology-page, .learn-page) .rail-flow .methodology-cta .methodology-cta__text {
  margin: 0;
  max-width: 60ch;
  color: var(--ink-soft);
}
.methodology-cta .hero-actions {
  margin-top: 4px;
}
/* Centred (2026-11-28, owner): the closing box on Methodology. */
.methodology-cta--center {
  justify-items: center;
  text-align: center;
}
.methodology-cta--center > div {
  justify-content: center;
}
.methodology-cta--center > p {
  max-width: 64ch;
}

/* ── Learn page design (2026-11-26) ──────────────────────────────────────
   Shares the methodology chapters, rail and FAQ rows (rules above). Here:
   the overview cards carry their chapter number, and the references read
   as a numbered source list with [n] markers that match the citations. */
.concept-card__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.concept-card__num {
  flex: 0 0 auto;
  color: var(--accent);
  font-family: var(--font-mono), monospace;
  font-size: 0.74rem;
  font-weight: 600;
}
.learn-page #references ol.bullet-list {
  counter-reset: ref;
  display: grid;
  gap: 0;
  padding-left: 0;
  list-style: none;
}
.learn-page #references ol.bullet-list > li {
  counter-increment: ref;
  position: relative;
  padding: 10px 0 10px 52px;
  border-top: 1px solid var(--line);
  line-height: 1.55;
}
.learn-page #references ol.bullet-list > li:first-child {
  border-top: 0;
  padding-top: 2px;
}
.learn-page #references ol.bullet-list > li::before {
  content: "[" counter(ref) "]";
  position: absolute;
  left: 0;
  top: 10px;
  color: var(--accent);
  font-family: var(--font-mono), monospace;
  font-size: 0.8rem;
}
.learn-page #references ol.bullet-list > li:first-child::before {
  top: 4px;
}
.learn-page #references ol.bullet-list > li::marker {
  content: none;
}
@media (max-width: 640px) {
  .learn-page #references ol.bullet-list > li {
    padding-left: 38px;
  }
}

/* ── Account: username (2026-11-26) ──────────────────────────────────────
   The profile card becomes a column: the identity row (avatar, name, email,
   Change username / Sign out), then the username form when it is open. */
.settings-profile {
  display: grid;
  gap: 14px;
}
.settings-profile__main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 16px;
}
.settings-profile__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.settings-profile__actions .button {
  width: auto;
  flex: 0 0 auto;
}
.settings-profile__nudge {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}
.settings-username {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(4, 8, 13, 0.35);
}
.settings-username__label {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 600;
}
.settings-username__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.settings-username__row input {
  flex: 1 1 14rem;
  min-width: 0;
  min-height: 42px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(7, 11, 17, 0.7);
  color: var(--ink);
  font: inherit;
}
.settings-username__row input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.settings-username__row input[aria-invalid="true"] {
  border-color: rgba(255, 139, 139, 0.6);
}
.settings-username__row .button {
  width: auto;
  flex: 0 0 auto;
}
.settings-username__hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}
.settings-username__status {
  min-height: 1.2em;
  margin: 0;
  font-size: 0.84rem;
}
.settings-username__status--ok {
  color: var(--accent);
}
.settings-username__status--error {
  color: var(--danger);
}
.settings-username__status--muted {
  color: var(--muted);
}
.settings-flash--inline {
  justify-self: start;
  padding: 6px 12px;
  font-size: 0.86rem;
}

/* ── Legal page design (2026-11-26) ──────────────────────────────────────
   The documents' text is counsel-signed and unchanged; only presentation
   moves. An index of the five documents under the heading; each document
   opens with its number, a serif title, its summary and a version /
   effective / updated line, then a Contents list linking to its numbered
   sections; the body reads in serif at a comfortable measure. The light
   numbered rail is shared with Methodology and Learn (rules above). */
.legal-head {
  gap: 12px;
}
/* The Legal header's art (2026-11-28, owner): the hound-on-cliff banner
   (/hound-cliff2.webp, 5:1) in the empty space beside the title and intro,
   faded into the page like the landing page's hound and the Articles
   header: screen blending lets the image's near-black sky take the page's
   own colour, and feathered edges dissolve it. Its own grid column on wide
   screens, so it never sits behind text; a short strip under the intro
   below 1200px. */
.legal-head__art {
  width: min(100%, 760px);
  height: 150px;
  justify-self: end;
  pointer-events: none;
  background: url(/hound-cliff2.webp) no-repeat right bottom / auto 100%;
  mix-blend-mode: screen;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 32%, #000 97%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 6%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0, #000 32%, #000 97%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 6%, #000 86%, transparent 100%);
  mask-composite: intersect;
}
@media (max-width: 640px) {
  .legal-head__art {
    width: min(100%, 600px);
    height: 120px;
  }
}
@media (min-width: 1200px) {
  .legal-head {
    grid-template-columns: minmax(0, 46rem) minmax(0, 1fr);
    column-gap: 16px;
  }
  .legal-head > :not(.legal-head__art) {
    grid-column: 1;
  }
  .legal-head__art {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: stretch;
    justify-self: stretch;
    width: auto;
    height: auto;
    min-height: 200px;
  }
}
.legal-docs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.legal-doc-card {
  display: grid;
  align-content: start;
  gap: 6px;
  height: 100%;
  padding: 16px 16px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(19, 28, 38, 0.62), rgba(8, 13, 19, 0.62));
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.legal-doc-card:hover,
.legal-doc-card:focus-visible {
  border-color: rgba(125, 234, 244, 0.35);
  transform: translateY(-2px);
}
@media (prefers-reduced-motion: reduce) {
  .legal-doc-card {
    transition: none;
  }
  .legal-doc-card:hover,
  .legal-doc-card:focus-visible {
    transform: none;
  }
}
.legal-doc-card__num {
  color: var(--accent);
  font-family: var(--font-mono), monospace;
  font-size: 0.74rem;
  font-weight: 600;
}
.legal-doc-card__title {
  color: var(--ink);
  font-family: var(--font-serif), Georgia, serif;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.25;
}
.legal-doc-card__summary {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}
.legal-doc-card__meta {
  margin-top: auto;
  padding-top: 6px;
  color: var(--accent-ice);
  font-family: var(--font-mono), monospace;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

/* Each document */
.legal-page .legal-section.stack {
  gap: 18px;
  padding: 26px 28px;
}
.legal-doc-head {
  display: grid;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.legal-doc-head__num {
  color: var(--accent);
  font-family: var(--font-mono), monospace;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.legal-section > .legal-doc-head > .legal-doc-head__title {
  margin: 0;
  font-family: var(--font-serif), Georgia, serif;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.legal-doc-head__summary {
  margin: 0;
  max-width: 68ch;
  color: var(--ink-soft);
  font-family: var(--font-serif), Georgia, serif;
  font-size: 1.02rem;
  line-height: 1.6;
}
.legal-doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 4px 0 0;
}
.legal-doc-meta dt {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.legal-doc-meta dd {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 0.88rem;
}

/* Contents */
.legal-contents {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(4, 8, 13, 0.35);
}
.legal-contents summary {
  padding: 10px 14px;
  color: var(--accent);
  font-family: var(--font-mono), monospace;
  font-size: 0.82rem;
  cursor: pointer;
}
.legal-contents ol {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 4px 24px;
  margin: 0;
  padding: 4px 16px 14px;
  list-style: none;
}
.legal-contents li a {
  display: block;
  padding: 4px 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.4;
  text-decoration: none;
}
.legal-contents li a:hover,
.legal-contents li a:focus-visible {
  color: var(--accent-ice);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Reading text */
.legal-page .markdown.policy-markdown :is(p, li) {
  max-width: 72ch;
  color: var(--ink-soft);
  font-family: var(--font-serif), Georgia, serif;
  font-size: 1rem;
  line-height: 1.7;
}
.legal-page .markdown.policy-markdown h3 {
  scroll-margin-top: calc(var(--chrome-bottom, 118px) + 16px);
  margin-top: 2.2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-serif), Georgia, serif;
  font-size: clamp(1.2rem, 1.6vw, 1.4rem);
  color: var(--ink);
}
.legal-page .markdown.policy-markdown > h3:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.legal-page .markdown.policy-markdown h4 {
  margin-top: 1.4rem;
  font-family: var(--font-serif), Georgia, serif;
  font-size: 1.06rem;
}
.legal-page .markdown.policy-markdown h3:target {
  color: var(--accent-ice);
}
.legal-page .markdown.policy-markdown :is(td, th) {
  font-size: 0.84rem;
  line-height: 1.5;
}
@media (max-width: 640px) {
  .legal-page .legal-section.stack {
    padding: 20px 16px;
  }
  /* The index stays short on phones; each document repeats its summary. */
  .legal-doc-card__summary {
    display: none;
  }
}
@media print {
  .legal-docs,
  .legal-contents {
    display: none !important;
  }
}

/* ── Support page design (2026-11-26) ────────────────────────────────────
   Search first (it filters the answers in place), then the common tasks as
   shortcuts and the numbered topic cards (2026-11-26: the topic links and
   question counts were removed; the page is short). The contact card gets a reply-time badge and a button. */
.help-search {
  display: grid;
  gap: 8px;
  max-width: 720px;
}
.help-search__label {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 600;
}
.help-search__field {
  position: relative;
  display: flex;
  align-items: center;
}
.help-search__icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--accent);
  pointer-events: none;
}
.help-search__field input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 50px;
  padding: 0.6rem 5rem 0.6rem 2.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(7, 11, 17, 0.7);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}
.help-search__field input::placeholder {
  color: var(--muted);
}
.help-search__field input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.help-search__field input::-webkit-search-cancel-button {
  display: none;
}
.help-search__clear {
  position: absolute;
  right: 10px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(4, 8, 13, 0.6);
  color: var(--muted);
  font: inherit;
  font-size: 0.76rem;
  cursor: pointer;
}
.help-search__clear:hover,
.help-search__clear:focus-visible {
  color: var(--accent-ice);
  border-color: var(--line-strong);
}
.help-search__result {
  min-height: 1.2em;
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}
.help-search__result a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Common tasks */
.support-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 12px;
}
.support-action {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(19, 28, 38, 0.62), rgba(8, 13, 19, 0.62));
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.support-action:hover,
.support-action:focus-visible {
  border-color: rgba(125, 234, 244, 0.38);
  transform: translateY(-2px);
}
@media (prefers-reduced-motion: reduce) {
  .support-action {
    transition: none;
  }
  .support-action:hover,
  .support-action:focus-visible {
    transform: none;
  }
}
.support-action__title {
  color: var(--accent-ice);
  font-family: var(--font-serif), Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
}
.support-action__title span {
  color: var(--accent);
}
.support-action__text {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

/* Topic cards: numbered like the other long pages. */
.support-topic__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin-bottom: 4px;
}
.support-topic__num {
  color: var(--accent);
  font-family: var(--font-mono), monospace;
  font-size: 0.78rem;
  font-weight: 600;
}
.support-topic__head > .support-topic__title {
  margin: 0;
  font-size: 1.4rem;
}

/* Contact card */
.support-contact__badge {
  justify-self: start;
  padding: 3px 10px;
  border: 1px solid rgba(125, 234, 244, 0.4);
  border-radius: 999px;
  background: rgba(125, 234, 244, 0.08);
  color: var(--accent);
  font-family: var(--font-mono), monospace;
  font-size: 0.74rem;
}
.support-contact .support-contact__button {
  justify-self: start;
  width: auto;
  font-size: 0.88rem;
}
.support-contact .support-contact__email {
  font-size: 0.86rem;
}
/* Search hides rows and topics with the hidden attribute; the cards set a
   display value, so restate it. */
.support-topic[hidden],
.support-faq__item[hidden] {
  display: none !important;
}
@media (max-width: 640px) {
  .support-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .support-action {
    padding: 12px;
  }
  .support-action__title {
    font-size: 0.98rem;
  }
}
/* Room for the Clear button only while it shows. */
.help-search__field input {
  padding-right: 1rem;
}
.help-search__field:has(.help-search__clear) input {
  padding-right: 5rem;
}

/* ── Articles header art (2026-11-26) ────────────────────────────────────
   The hound-on-cliff banner (/hound-cliff2.webp, 5:1) in the space to the
   right of the title and intro. It is its own grid cell, so it never sits
   behind text; `cover` anchored bottom-right keeps the hound and cliff in
   view and lets the empty sky on the left crop away. Every edge fades into
   the page (wide on the left, softer top and bottom), like the landing and
   status art. Below 1200px it becomes a short strip under the intro. */
.feed-header {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "copy"
    "art"
    "bar";
}
.feed-header > .feed-header__copy {
  grid-area: copy;
  display: grid;
  gap: 14px;
  align-content: start;
}
.feed-header > .feed-header__art {
  grid-area: art;
}
.feed-header > :not(.feed-header__copy):not(.feed-header__art) {
  grid-area: bar;
}
.feed-header__art {
  /* Strip (below 1200px): the image is fitted to the strip's height and
     anchored right, so the hound is never cropped; the sky on the left
     fades out. */
  height: 170px;
  /* Never wider than the image at this height (5:1), so the fade always
     reaches the image's own left edge instead of showing it. */
  width: min(100%, 850px);
  justify-self: end;
  pointer-events: none;
  background: url(/hound-cliff2.webp) no-repeat right bottom / auto 100%;
  /* Screen blending: the image's near-black sky takes on the page's own
     colour (so there is no darker box), while the glowing hound and cliff
     keep full strength. Gentle fades finish the edges; the top fade stays
     short because the hound's ears reach the top of the image. */
  mix-blend-mode: screen;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 32%, #000 97%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 6%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0, #000 32%, #000 97%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 6%, #000 88%, transparent 100%);
  mask-composite: intersect;
}
@media (max-width: 640px) {
  .feed-header__art {
    height: 140px;
    width: min(100%, 700px);
  }
}
@media (min-width: 1200px) {
  .feed-header {
    grid-template-columns: minmax(0, 46rem) minmax(0, 1fr);
    grid-template-areas:
      "copy art"
      "bar bar";
    column-gap: 16px;
  }
  .feed-header > .feed-header__copy {
    align-self: center;
  }
  .feed-header__art {
    min-height: 220px;
    height: 100%;
    width: auto;
    justify-self: stretch;
    -webkit-mask-image:
      linear-gradient(to right, transparent 0, #000 34%, #000 97%, transparent 100%),
      linear-gradient(to bottom, transparent 0, #000 6%, #000 88%, transparent 100%);
    mask-image:
      linear-gradient(to right, transparent 0, #000 34%, #000 97%, transparent 100%),
      linear-gradient(to bottom, transparent 0, #000 6%, #000 88%, transparent 100%);
  }
}

/* ── Support header art (2026-11-26) ─────────────────────────────────────
   The hound's eye with the candlestick chart (/support-hound-eye.webp) in
   the space to the right of the heading, intro and search (1200px+), as its
   own grid cell so it never sits behind text. Below 1200px it is a short
   strip under the search box. Cropped around the eye; screen blending lets
   the image's dark background take the page's colour, and an oval fade
   around the eye dissolves every edge. */
.support-masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "head"
    "search"
    "art";
  gap: 18px;
}
.support-masthead > .support-head {
  grid-area: head;
}
.support-masthead > .help-search {
  grid-area: search;
}
.support-masthead__art {
  grid-area: art;
  height: 170px;
  width: min(100%, 560px);
  justify-self: center;
  pointer-events: none;
  background: url(/support-hound-eye.webp) no-repeat 54% 50% / cover;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 54% 50%, #000 38%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 54% 50%, #000 38%, transparent 100%);
}
@media (max-width: 640px) {
  .support-masthead__art {
    height: 150px;
  }
}
@media (min-width: 1200px) {
  .support-masthead {
    grid-template-columns: minmax(0, 46rem) minmax(0, 1fr);
    grid-template-areas:
      "head art"
      "search art";
    column-gap: 16px;
  }
  .support-masthead__art {
    height: auto;
    width: auto;
    justify-self: stretch;
    min-height: 280px;
    background-position: 56% 52%;
    -webkit-mask-image: radial-gradient(ellipse 52% 56% at 56% 52%, #000 42%, transparent 100%);
    mask-image: radial-gradient(ellipse 52% 56% at 56% 52%, #000 42%, transparent 100%);
  }
}

/* ── Account page design (2026-11-26) ────────────────────────────────────
   Header art: the hound resting by the creek with its key
   (/api-keys-hound.jpg, already on the site) beside the heading on wide
   screens, as its own grid cell (never behind text), blended with screen
   so its dark sky takes the page's colour and faded at every edge. Beside
   the heading from 900px; hidden below so the settings come first. Section
   titles get a number and a small line icon, like the other pages. */
.account-masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
/* 2026-11-28: the art sits beside the heading from 900px (it used to drop
   under the heading as a small, lonely strip below 1200px) and is hidden
   on narrower screens. The fade is a centred ellipse that reaches
   transparent at every edge; centred at 56% with a 56% radius it stopped
   at about 36% opacity on the bottom edge, which showed as a hard line. */
.account-masthead__art {
  display: none;
  pointer-events: none;
  background: url(/api-keys-hound.webp) no-repeat 50% 58% / cover;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 48%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 48%, transparent 100%);
}
@media (min-width: 900px) {
  .account-masthead {
    grid-template-columns: minmax(0, 46rem) minmax(0, 1fr);
    align-items: center;
    column-gap: 16px;
  }
  .account-masthead__art {
    display: block;
    align-self: center;
    height: clamp(160px, 16vw, 220px);
    margin-top: clamp(8px, 1.5vw, 20px);
  }
}

/* Section label: icon + number above the title. */
.settings-section__label {
  display: flex;
  align-items: center;
  gap: 10px;
}
.settings-section__icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.settings-section__num {
  color: var(--accent);
  font-family: var(--font-mono), monospace;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

/* ── Articles: news-list rows (2026-11-26) ───────────────────────────────
   After the featured story, one row per article: a 16:9 thumbnail on the
   left (the article's image, or a branded placeholder) and the kind, date,
   title and a two-line excerpt on the right. The title's link is stretched
   over the whole row, so the row is one click target and one link for
   screen readers. Phones: a small square thumbnail beside the text. */
.feed-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.feed-row {
  position: relative;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(10, 17, 24, 0.72);
  transition: border-color 160ms ease, background 160ms ease;
}
.feed-row:hover,
.feed-row:focus-within {
  border-color: rgba(125, 234, 244, 0.35);
  background: rgba(14, 22, 30, 0.86);
}
.feed-row__thumb {
  overflow: hidden;
  aspect-ratio: 1200 / 630;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0a1118;
}
.feed-row__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}
.feed-row:hover .feed-row__thumb img {
  transform: scale(1.03);
}
.feed-row__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(rgba(10, 17, 24, 0.28), rgba(10, 17, 24, 0.28)),
    radial-gradient(ellipse 70% 90% at 50% 110%, rgba(125, 234, 244, 0.18), transparent 70%),
    url(/houndcreek-emblem-360.webp) no-repeat 50% 40% / auto 58%,
    #0a1118;
  color: var(--accent);
  font-family: var(--font-mono), monospace;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  align-content: end;
  padding-bottom: 10px;
}
.feed-row__body {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.feed-row__title {
  margin: 0;
  font-family: var(--font-serif), Georgia, serif;
  font-size: 1.24rem;
  line-height: 1.28;
  /* No lone word (a "$161.77") on a title's last line. */
  text-wrap: balance;
}
.feed-row__title a {
  color: var(--ink);
  text-decoration: none;
}
.feed-row__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.feed-row:hover .feed-row__title a,
.feed-row__title a:focus-visible {
  color: var(--accent-ice);
}
.feed-row__title a:focus-visible {
  outline: none;
}
.feed-row:has(.feed-row__title a:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.feed-row__excerpt {
  margin: 0;
  max-width: 72ch;
  color: var(--ink-soft);
  font-family: var(--font-serif), Georgia, serif;
  font-size: 0.98rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (prefers-reduced-motion: reduce) {
  .feed-row__thumb img {
    transition: none;
  }
  .feed-row:hover .feed-row__thumb img {
    transform: none;
  }
}
@media (max-width: 640px) {
  .feed-row {
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: start;
    gap: 14px;
    padding: 12px;
  }
  .feed-row__thumb {
    aspect-ratio: 1 / 1;
  }
  .feed-row__placeholder {
    font-size: 0.6rem;
    padding-bottom: 6px;
  }
  .feed-row__title {
    font-size: 1.04rem;
  }
  .feed-row__excerpt {
    font-size: 0.9rem;
  }
}
/* Rows fill their width (2026-11-26): a larger thumbnail on desktop, the
   excerpt runs across the row (still two lines), and a round arrow on the
   right edge says the row opens; hidden on phones. */
@media (min-width: 641px) {
  .feed-row {
    grid-template-columns: 280px minmax(0, 1fr) auto;
    gap: 26px;
    padding: 16px 22px 16px 16px;
  }
  .feed-row__excerpt {
    max-width: 110ch;
  }
}
.feed-row__go {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--accent);
  font-size: 1.1rem;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}
.feed-row:hover .feed-row__go,
.feed-row:focus-within .feed-row__go {
  border-color: rgba(125, 234, 244, 0.6);
  background: rgba(125, 234, 244, 0.1);
  color: var(--accent-ice);
  transform: translateX(3px);
}
@media (prefers-reduced-motion: reduce) {
  .feed-row__go {
    transition: none;
  }
  .feed-row:hover .feed-row__go,
  .feed-row:focus-within .feed-row__go {
    transform: none;
  }
}
@media (max-width: 640px) {
  .feed-row__go {
    display: none;
  }
}
/* Side-by-side columns (2026-11-27): each column is about half the page, so
   the row is tighter. A 180px thumbnail level with the top of the text, a
   slightly smaller title, and no round arrow (the whole row is the link):
   the title and excerpt get the room. */
@media (min-width: 1000px) {
  .feed-columns .feed-row {
    grid-template-columns: 180px minmax(0, 1fr);
    align-items: start;
    gap: 18px;
    padding: 14px;
  }
  .feed-columns .feed-row__go {
    display: none;
  }
  .feed-columns .feed-row__body {
    gap: 6px;
  }
  .feed-columns .feed-row__title {
    font-size: 1.12rem;
  }
  .feed-columns .feed-row__excerpt {
    font-size: 0.95rem;
    line-height: 1.55;
  }
}

/* ── Subscribe page: perks and steps (2026-11-26) ────────────────────────
   "What you get" as a 2x2 grid of tiles, each with a small line icon, a
   bold title and one line; "How it works" as three steps in a row joined
   by a line (stacked on phones). */
.subscribe-perks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (max-width: 520px) {
  .subscribe-perks {
    grid-template-columns: minmax(0, 1fr);
  }
}
.subscribe-perk {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: 12px;
  row-gap: 4px;
  align-content: start;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(19, 28, 38, 0.6), rgba(8, 13, 19, 0.6));
}
.subscribe-perk__icon {
  grid-row: 1 / span 2;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.subscribe-perk strong {
  color: var(--ink);
  font-family: var(--font-serif), Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}
.subscribe-perk span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.subscribe-path {
  counter-reset: subscribe-path;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.subscribe-path__step {
  counter-increment: subscribe-path;
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  column-gap: 12px;
  row-gap: 2px;
}
.subscribe-path__step::before {
  content: counter(subscribe-path);
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(245, 199, 127, 0.5);
  border-radius: 50%;
  background: rgba(245, 199, 127, 0.08);
  color: var(--amber);
  font-family: var(--font-mono), monospace;
  font-size: 0.8rem;
  font-weight: 600;
}
.subscribe-path__step strong {
  color: var(--ink);
  font-family: var(--font-serif), Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}
.subscribe-path__step span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}
@media (min-width: 700px) {
  .subscribe-path {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
  .subscribe-path__step {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 8px;
  }
  .subscribe-path__step::before {
    grid-row: auto;
  }
  /* The line from each step's number to the next one. */
  .subscribe-path__step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 15px;
    left: 40px;
    right: -6px;
    height: 1px;
    background: linear-gradient(to right, rgba(245, 199, 127, 0.5), rgba(245, 199, 127, 0.08));
  }
}

/* ── Home page below the hero (2026-11-26) ───────────────────────────────
   Section titles sized like the other redesigned pages, and the merged
   "How it works" as four numbered steps in a row joined by a line (a
   numbered list on phones). "Recently published" uses the Articles rows. */
.home-section > .section-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.home-steps {
  counter-reset: home-step;
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.home-steps__step {
  counter-increment: home-step;
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  column-gap: 14px;
  row-gap: 4px;
}
.home-steps__step::before {
  content: counter(home-step, decimal-leading-zero);
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(125, 234, 244, 0.45);
  border-radius: 50%;
  background: rgba(125, 234, 244, 0.08);
  color: var(--accent);
  font-family: var(--font-mono), monospace;
  font-size: 0.74rem;
  font-weight: 600;
}
.home-steps__step strong {
  color: var(--ink);
  font-family: var(--font-serif), Georgia, serif;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.3;
}
.home-steps__step span {
  color: var(--ink-soft);
  font-family: var(--font-serif), Georgia, serif;
  font-size: 0.95rem;
  line-height: 1.6;
}
@media (min-width: 900px) {
  .home-steps {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 22px;
  }
  .home-steps__step {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 10px;
  }
  .home-steps__step::before {
    grid-row: auto;
  }
  .home-steps__step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 16px;
    left: 44px;
    right: -12px;
    height: 1px;
    background: linear-gradient(to right, rgba(125, 234, 244, 0.5), rgba(125, 234, 244, 0.08));
  }
}
/* Steps of different lengths share one row height; keep each step's
   number, title and text at the top instead of spreading them out. */
.home-steps__step,
.subscribe-path__step {
  align-content: start;
}

/* ── Site-wide polish (2026-11-26) ───────────────────────────────────────
   Pills grow to fit their text (168px is now the minimum, not a fixed
   width), so a long label like "step 2 of 2 · checkout" is never cramped;
   short pills look exactly as before. */
.terminal-caption {
  width: fit-content;
  min-width: 10.5rem;
  max-width: 100%;
  white-space: nowrap;
}

/* Visitors (2026-11-28, logged-out audit): "Sign in" beside the "Start free
   trial" button. The loading placeholder matches the pair's width so the
   header doesn't shift when the session resolves. */
.account-pill__visitor {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.account-pill--pending {
  min-width: 20rem;
}

/* A visitor's Desk link (2026-11-28): a plain nav link beside Sign in. */
.account-pill__desk {
  padding: 6px 8px;
  color: inherit;
  text-decoration: none;
}
.account-pill--signin {
  min-width: 0;
}

@media (max-width: 640px) {
  .account-pill__visitor {
    display: flex;
    width: 100%;
  }
  .account-pill__visitor > * {
    flex: 1 1 0;
    justify-content: center;
  }
}

/* Cookie bar on phones: the policy link sits at the end of the sentence and
   the two choices share one row at equal width. */
.cookie-banner__copy .cookie-banner__privacy {
  margin-left: 2px;
}
@media (max-width: 760px) {
  .cookie-banner {
    padding: 8px 14px 10px;
  }
  .cookie-banner__inner {
    gap: 6px;
  }
  .cookie-banner__copy {
    font-size: 12px;
    line-height: 1.45;
  }
  .cookie-banner__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
  }
  .cookie-banner__accept,
  .cookie-banner__decline {
    min-height: 36px;
  }
}

/* Notice pages (unsubscribe, 404, error): a centred card under the faded
   hound-on-cliff banner. */
.notice-page {
  justify-items: center;
  gap: 0;
  padding-top: 8px;
}
.notice-page__art {
  width: min(100%, 760px);
  height: 150px;
  pointer-events: none;
  background: url(/hound-cliff2.webp) no-repeat right bottom / auto 100%;
  mix-blend-mode: screen;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 30%, #000 97%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 8%, #000 80%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0, #000 30%, #000 97%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 8%, #000 80%, transparent 100%);
  mask-composite: intersect;
}
.notice-page__card {
  display: grid;
  gap: 14px;
  width: min(100%, 640px);
  margin-top: -18px;
  padding: 28px 28px 26px;
}
.notice-page__card > .notice-page__title {
  margin: 0;
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  line-height: 1.12;
}
.notice-page__text {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--font-serif), Georgia, serif;
  font-size: 1.02rem;
  line-height: 1.65;
}
.notice-page__text a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.notice-page__form {
  display: grid;
  gap: 14px;
}
.notice-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.notice-page__actions .button {
  width: auto;
  flex: 0 0 auto;
}
.notice-page__ref {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono), monospace;
  font-size: 0.76rem;
}
@media (max-width: 640px) {
  .notice-page__art {
    height: 110px;
  }
  .notice-page__card {
    padding: 22px 18px;
  }
}

/* Subscriber API docs: numbered sections, endpoint cards, error codes. */
.docs-head__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.docs-head__actions .button {
  width: auto;
}
.docs-section {
  display: grid;
  gap: 14px;
}
.docs-section__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.docs-section__num {
  color: var(--accent);
  font-family: var(--font-mono), monospace;
  font-size: 0.78rem;
  font-weight: 600;
}
.docs-section__head > h2 {
  margin: 0;
  font-size: 1.45rem;
}
.docs-section p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.65;
}
.docs-section pre {
  overflow-x: auto;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  font-size: 0.84rem;
  line-height: 1.6;
}
.docs-endpoints {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.docs-endpoint {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(4, 8, 13, 0.35);
}
.docs-endpoint__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.docs-endpoint__method {
  padding: 2px 8px;
  border: 1px solid rgba(125, 234, 244, 0.45);
  border-radius: 6px;
  background: rgba(125, 234, 244, 0.1);
  color: var(--accent);
  font-family: var(--font-mono), monospace;
  font-size: 0.74rem;
  font-weight: 600;
}
.docs-endpoint__path {
  color: var(--ink);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}
.docs-endpoint__auth {
  margin-left: auto;
  padding: 2px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--font-mono), monospace;
  font-size: 0.72rem;
}
.docs-endpoint__auth--key {
  border-color: rgba(245, 199, 127, 0.45);
  background: rgba(245, 199, 127, 0.07);
  color: var(--amber);
}
.docs-endpoint p {
  font-size: 0.92rem;
}
.docs-codes {
  display: grid;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.docs-codes > div {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 14px;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
}
/* The API reference's field list (2026-11-28): field names need more room
   than status codes; on a phone each name sits over its meaning. */
.docs-fields > div {
  grid-template-columns: minmax(170px, 230px) minmax(0, 1fr);
}

@media (max-width: 560px) {
  .docs-fields > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
}

.docs-codes > div:first-child {
  border-top: 0;
}
.docs-codes dt code {
  color: var(--amber);
  font-weight: 600;
}
.docs-codes dd {
  margin: 0;
  color: var(--ink-soft);
}
.docs-rules {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: var(--ink-soft);
  line-height: 1.6;
}
@media (max-width: 640px) {
  .docs-endpoint__auth {
    margin-left: 0;
  }
}

/* Sideways-scrolling tables, figures and code blocks take keyboard focus so
   they can be scrolled with the arrow keys (WCAG 2.1.1, 2026-11-26). */
.table-shell:focus-visible,
.learn-figure__scroll:focus-visible,
pre[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* API docs: "Common requests" (2026-11-26). */
.docs-subhead {
  margin: 18px 0 8px;
  font-size: 1rem;
  color: var(--ink);
}
.docs-examples > div {
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  align-items: baseline;
}
.docs-examples dt {
  color: var(--ink-soft);
}
.docs-examples dd code {
  overflow-wrap: anywhere;
}
@media (max-width: 640px) {
  .docs-examples > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
}

/* Free sample memo tiles (2026-11-27): their own strip above the article
   search, Outperform, Neutral, Underperform. Three across from 720px; phones
   scroll the row sideways (the list scrolls, never the page). The view pill
   reuses .featured-memo__view; the whole tile is the title's link. */
.sample-strip {
  display: grid;
  gap: 12px;
  margin: 0 0 22px;
}
.sample-strip__head {
  display: grid;
  gap: 2px;
}
.sample-strip__title {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.sample-strip__note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.sample-strip__list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 82%);
  gap: 14px;
  margin: 0;
  padding: 0 0 6px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
}
.sample-tile {
  position: relative;
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 12px 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(10, 17, 24, 0.72);
  scroll-snap-align: start;
  transition: border-color 160ms ease, background 160ms ease;
}
.sample-tile:hover,
.sample-tile:focus-within {
  border-color: rgba(125, 234, 244, 0.35);
  background: rgba(14, 22, 30, 0.86);
}
.sample-tile__thumb {
  overflow: hidden;
  aspect-ratio: 2000 / 1050;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0a1118;
}
.sample-tile__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sample-tile__title {
  margin: 0 4px;
  font-family: var(--font-serif), Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.25;
  color: var(--ink);
}
.sample-tile__thesis {
  margin: 0 4px;
  color: var(--ink-soft);
  font-family: var(--font-serif), Georgia, serif;
  font-size: 0.98rem;
  line-height: 1.5;
}
/* The link covers the whole tile. */
.sample-tile__link {
  margin: 0 4px;
  justify-self: start;
  color: var(--accent);
  font-size: 0.88rem;
  text-decoration: none;
}
.sample-tile__link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.sample-tile__link span {
  display: inline-block;
  transition: transform 160ms ease;
}
.sample-tile:hover .sample-tile__link,
.sample-tile__link:focus-visible {
  color: var(--accent-ice);
  outline: none;
}
.sample-tile:hover .sample-tile__link span,
.sample-tile:focus-within .sample-tile__link span {
  transform: translateX(3px);
}
.sample-tile:has(.sample-tile__link:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .sample-tile,
  .sample-tile__link span {
    transition: none;
  }
  .sample-tile:hover .sample-tile__link span,
  .sample-tile:focus-within .sample-tile__link span {
    transform: none;
  }
}
@media (min-width: 720px) {
  .sample-strip__list {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow-x: visible;
    padding-bottom: 0;
  }
}

/* Articles page (2026-11-26): search box, two columns (Free to read |
   Subscribers) in the news-row style, and the subscriber "inside the
   articles" results. Columns sit side by side from 1000px; phones stack them,
   free first. */
.feed-search {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
}
.feed-search__label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.feed-search__field {
  display: flex;
  gap: 10px;
}
.feed-search__field input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(8, 13, 19, 0.85);
  color: var(--ink);
  font: inherit;
}
/* The phone rule makes every .button full width; here it would squeeze the
   input, so the Search button keeps its own width (2026-11-27). */
.feed-search__field .button {
  flex: 0 0 auto;
  width: auto;
}
.feed-search__field input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.feed-search__status {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.feed-search__status a {
  color: var(--accent);
  text-decoration: underline;
}
.feed-columns {
  display: grid;
  gap: 26px;
}
.feed-column {
  display: grid;
  gap: 12px;
  align-content: start;
  min-width: 0;
}
.feed-column__head {
  display: grid;
  gap: 2px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.feed-column__title {
  margin: 0;
  font-size: 1.15rem;
}
.feed-column--free .feed-column__title {
  color: var(--accent);
}
.feed-column--paid .feed-column__title {
  color: var(--amber);
}
.feed-column__note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.feed-column__group {
  display: grid;
  gap: 8px;
}
.feed-column__subhead {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.feed-column__empty {
  margin: 0;
}
@media (min-width: 1000px) {
  .feed-columns {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }
}
.feed-inside {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}
.feed-inside__title {
  margin: 0;
  font-size: 1.1rem;
}
.feed-inside__list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.feed-inside__item {
  display: grid;
  gap: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.feed-inside__link {
  color: var(--ink);
  font-weight: 600;
}
.feed-inside__link:hover,
.feed-inside__link:focus-visible {
  color: var(--accent);
}
.feed-inside__snippet {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Gated article: the public lead-in sits right above the paywall. */
.article-leadin {
  margin-bottom: 2px;
}

/* Cashtags ($NVDA) link to everything on that ticker. */
.cashtag {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
}
.cashtag:hover,
.cashtag:focus-visible {
  border-bottom-style: solid;
}

/* ── My feed (/articles/myfeed), 2026-11-27 ─────────────────────────────────
   The subscriber's Articles page: memos in a wide main column, What's new in
   a narrow side column (stacked on phones), the Coverage table and company
   view. View tones: Outperform reads cyan, Underperform amber (never an
   alert red), anything else silver. */
.myfeed {
  display: grid;
  gap: 20px;
}
.myfeed-toolbar {
  display: grid;
  gap: 14px;
}
.myfeed-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.myfeed-tab {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}
.myfeed-tab:hover,
.myfeed-tab:focus-visible {
  color: var(--ink);
  border-color: var(--line-strong);
}
.myfeed-tab.is-current {
  color: var(--accent);
  border-color: rgba(125, 234, 244, 0.45);
  background: rgba(125, 234, 244, 0.08);
}
.myfeed-grid {
  display: grid;
  gap: 26px;
}
@media (min-width: 980px) {
  .myfeed-grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    align-items: start;
  }
}
.myfeed-main,
.myfeed-side {
  display: grid;
  gap: 12px;
  align-content: start;
  min-width: 0;
}
.myfeed-main > .feed-column__title,
.myfeed-side > .feed-column__title {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.myfeed-main > .feed-column__title {
  color: var(--accent);
}
.myfeed-side {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}
.myfeed-mini {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.myfeed-mini__item {
  display: grid;
  gap: 6px;
}
.myfeed-mini__title {
  color: var(--ink);
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}
.myfeed-mini__title:hover,
.myfeed-mini__title:focus-visible {
  color: var(--accent-ice);
}
.myfeed-more {
  justify-self: start;
}
.news-post__new {
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
/* Above the row's stretched title link, so each chip is its own link. */
.feed-row__tickers {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 0;
}
.feed-row__ticker {
  padding: 1px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--accent);
  font-family: var(--font-mono), monospace;
  font-size: 0.74rem;
  text-decoration: none;
}
.feed-row__ticker:hover,
.feed-row__ticker:focus-visible {
  border-color: rgba(125, 234, 244, 0.45);
}
.myfeed-banner {
  margin: 0;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(245, 199, 127, 0.4);
  background: rgba(245, 199, 127, 0.08);
  color: var(--amber);
}
.myfeed-banner a {
  color: inherit;
}
.myfeed-count {
  margin-left: 8px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 400;
}
.myfeed-sort {
  all: unset;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.myfeed-sort:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.myfeed-num {
  font-family: var(--font-mono), monospace;
  text-align: right;
  white-space: nowrap;
}
.myfeed-company {
  color: var(--ink);
  text-decoration: none;
}
.myfeed-company span {
  margin-left: 6px;
  color: var(--muted);
}
.myfeed-view {
  display: inline-block;
  padding: 1px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--accent-silver);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}
.myfeed-view--positive {
  color: var(--accent);
  border-color: rgba(125, 234, 244, 0.35);
}
.myfeed-view--negative {
  color: var(--amber);
  border-color: rgba(245, 199, 127, 0.35);
}
.myfeed-conviction {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
}
.myfeed-footnote {
  font-size: 0.82rem;
}
.myfeed-back {
  margin: 0;
}
.myfeed-back a {
  color: var(--muted);
  text-decoration: none;
}
.myfeed-back a:hover,
.myfeed-back a:focus-visible {
  color: var(--accent);
}
.myfeed-company-view {
  display: grid;
  gap: 16px;
}
.myfeed-company-head {
  display: grid;
  gap: 12px;
}
.myfeed-company-head__title {
  margin: 0;
  font-size: 1.4rem;
}
.myfeed-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin: 0;
}
.myfeed-facts div {
  display: grid;
  gap: 4px;
}
.myfeed-facts dt {
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.myfeed-facts dd {
  margin: 0;
  font-weight: 600;
}
.myfeed-preview {
  max-width: 720px;
}
.myfeed-preview__title {
  margin: 0;
}
.myfeed-preview__list {
  margin: 0;
  padding-left: 1.2em;
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
}
/* Phones: grid items shrink to the screen; the wide Coverage table scrolls
   inside its own box instead of widening the page. */
.myfeed > *,
.myfeed-toolbar > *,
.myfeed-coverage,
.myfeed-company-view {
  min-width: 0;
}
.myfeed-table {
  max-width: 100%;
  overflow-x: auto;
}

/* Account page: which article types to email (2026-11-27). */
.settings-types {
  display: grid;
  gap: 8px;
  margin: 4px 0 0;
  padding: 0;
  border: 0;
}
.settings-types__legend {
  margin-bottom: 6px;
  padding: 0;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.settings-toggle--compact {
  padding: 8px 14px;
}

/* The Desk's Account page (2026-11-28, owner): the sections in order,
   01 Subscription, 02 API key, 03 Email, 04 Help. Each section stacks its
   heading (icon, number and title on one line) over its content; the email
   toggles and the help links sit in grids. On wide screens Subscription and
   the API key share a row, and Email and Help run across. */
.desk-account .settings {
  gap: 14px;
}

.desk-account .settings-part {
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-content: start;
}

.desk-account .settings-part__head {
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 10px;
  align-items: center;
}

.desk-account .settings-part__desc {
  grid-column: 1 / -1;
  max-width: 62ch;
}

.desk-account .settings-part > .settings-part__head > .settings-part__title {
  font-size: 1.15rem;
}

.desk-account .settings-types {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.desk-account .settings-types__legend {
  margin-bottom: 8px;
}

.desk-account .settings-links {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.desk-account .settings-links li,
.desk-account .settings-links li:first-child {
  align-content: start;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.desk-account .settings-api-locked {
  display: grid;
  gap: 14px;
}

@media (min-width: 1180px) {
  .desk-account .settings {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .desk-account .settings > * {
    grid-column: 1 / -1;
  }

  .desk-account .settings > .settings-part--subscription,
  .desk-account .settings > .settings-part--api-key,
  .desk-account .settings > .settings-api-locked {
    grid-column: auto;
  }
}

/* ── The Desk (subscriber hub, 2026-11-28) ───────────────────────────────
   /desk: a left menu (150px; 48px icons in the reader and below 1200px)
   beside the page. Every class is desk- prefixed so none of it is inlined
   into the critical CSS. */
.desk-shell {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  min-height: 60vh;
}

.desk-shell--collapsed {
  grid-template-columns: 48px minmax(0, 1fr);
}

.desk-shell--loading {
  display: block;
  padding: 40px 0;
}

.desk-menu {
  position: sticky;
  top: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-height: min(640px, calc(100vh - 160px));
  padding: 10px 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-elevated);
}

.desk-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.desk-menu__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.desk-menu__item:hover {
  color: var(--ink);
  background: rgba(125, 234, 244, 0.06);
}

/* The focus ring sits on the item, like the hover and active states. */
.desk-menu__item:focus-visible {
  outline-offset: -2px;
}

.desk-menu__item--active {
  color: var(--accent-ice);
  background: rgba(125, 234, 244, 0.1);
  box-shadow: inset 2px 0 0 var(--accent);
}

.desk-menu__icon {
  width: 18px;
  flex: none;
  text-align: center;
}

.desk-menu__label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.desk-shell--collapsed .desk-menu__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.desk-shell--collapsed .desk-menu__item {
  justify-content: center;
  padding: 8px 0;
}

/* The menu's open / close toggle (2026-11-28), under Account. */
.desk-menu__toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 7px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.desk-menu__toggle:hover {
  color: var(--ink);
  background: rgba(125, 234, 244, 0.06);
}

.desk-menu__toggle:focus-visible {
  outline-offset: -2px;
}

.desk-shell--collapsed .desk-menu__toggle {
  justify-content: center;
  padding: 8px 0;
}

.desk-main {
  min-width: 0;
}

.desk-upsell {
  display: grid;
  gap: 14px;
  max-width: 640px;
  margin: 40px auto;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.desk-upsell__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 1199px) {
  .desk-shell {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  /* Icons only here (no room for labels), so nothing to toggle. */
  .desk-menu__toggle {
    display: none;
  }

  .desk-menu__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .desk-menu__item {
    justify-content: center;
    padding: 8px 0;
  }
}

/* Figure labels shown only when a memo row stacks (phone width). */
.desk-row__tag {
  display: none;
}

/* The phone tab bar shows only below 760px (see "Phones (Desk)"). */
.desk-tabs {
  display: none;
}

/* The Desk home: summary strip, filter bar, memo list, earlier days, and the
   Wrap + wire column. */
.desk-home {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 20px;
  align-items: start;
}

.desk-home__main {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.desk-strip {
  display: grid;
  position: relative;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

/* The methodology page's electric current behind the four tiles
   (2026-11-28, owner): the same bundle and animations (ElectricCurrent,
   .pipeline-flow__current-*), fading out at both ends. The tiles are glass
   over it, so it reads faintly through them and crisply in the gaps. */
.desk-strip__current {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 92px;
  transform: translateY(-50%);
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
  filter:
    drop-shadow(0 0 4px rgba(125, 234, 244, 0.45))
    drop-shadow(0 0 12px rgba(125, 234, 244, 0.18));
  overflow: visible;
}

.desk-strip > .desk-stat {
  position: relative;
  z-index: 1;
  background-color: rgba(8, 15, 21, 0.58);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.desk-stat {
  display: grid;
  gap: 4px;
  align-content: start;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-elevated);
}

.desk-stat__label,
.desk-aside__label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.desk-stat__value {
  color: var(--accent-ice);
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}

.desk-stat__note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.desk-stat__note--amber {
  color: var(--amber);
}

/* The tiles (2026-11-28, owner): Views as one split bar with a button per
   view; View changes and Your companies as buttons. Each button toggles the
   same filter as the filter bar, lit while it is on. */
.desk-stat__bar {
  display: flex;
  gap: 2px;
  height: 8px;
  margin: 2px 0 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.desk-stat__seg {
  min-width: 6px;
}

.desk-stat__seg--outperform {
  background: var(--amber);
}

.desk-stat__seg--neutral {
  background: linear-gradient(90deg, var(--accent), var(--amber));
}

.desk-stat__seg--underperform {
  background: var(--accent);
}

.desk-stat__seg--empty {
  background: var(--line);
}

/* Tiles, take two (2026-11-28, owner). Views: the lean, the bar, and a
   legend under it from Underperform (left) to Outperform (right), each key a
   filter button. */
.desk-stat__value--big {
  font-size: 26px;
  line-height: 1.1;
}

.desk-stat__value small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.desk-stat__value--locked {
  font-size: 18px;
}

.desk-stat__lean {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.3;
}

.desk-stat__lean--outperform {
  color: var(--amber);
}

.desk-stat__lean--neutral {
  background: linear-gradient(90deg, var(--accent), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desk-stat__lean--underperform {
  color: var(--accent);
}

.desk-stat__legend {
  display: flex;
  justify-content: space-between;
  gap: 4px;
}

.desk-stat__key {
  display: grid;
  gap: 1px;
  margin: 0 -4px;
  padding: 2px 4px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: none;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.desk-stat__key--neutral {
  text-align: center;
}

.desk-stat__key--outperform {
  text-align: right;
}

.desk-stat__key:hover {
  border-color: var(--line-strong);
}

.desk-stat__key--on,
.desk-stat__key--on:hover {
  border-color: var(--accent);
  background: rgba(125, 234, 244, 0.08);
}

.desk-stat__count {
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.desk-stat__count i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border-radius: 50%;
  vertical-align: 1px;
}

.desk-stat__key--underperform .desk-stat__count i {
  background: var(--accent);
}

.desk-stat__key--neutral .desk-stat__count i {
  background: linear-gradient(90deg, var(--accent), var(--amber));
}

.desk-stat__key--outperform .desk-stat__count i {
  background: var(--amber);
}

.desk-stat__name {
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.desk-stat__name-short {
  display: none;
}

/* A narrow tile (from 1180px wide windows the four share the row) uses the
   short names, so the legend stays on one line. */
.desk-stat {
  container: desk-stat / inline-size;
}

@container desk-stat (max-width: 230px) {
  .desk-stat__name-full {
    display: none;
  }

  .desk-stat__name-short {
    display: inline;
  }
}

/* S&P 500 coverage while the baseline builds. */
.desk-stat__progress {
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.desk-stat__progress i {
  display: block;
  min-width: 4px;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--amber));
}

/* The median to fair value: a track from the lowest to the highest gap,
   the median marked on it. */
.desk-stat__range {
  display: grid;
  gap: 3px;
}

.desk-stat__track {
  position: relative;
  display: block;
  height: 4px;
  margin: 4px 0 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(125, 234, 244, 0.35), rgba(245, 199, 127, 0.55));
}

.desk-stat__track i {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border: 2px solid var(--bg);
  border-radius: 50%;
  background: var(--accent-ice);
  transform: translate(-50%, -50%);
}

.desk-stat__ends {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.desk-stat__split {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.desk-stat__split--wide {
  gap: 14px;
}

/* Centred tiles (2026-11-28, owner): the day's count fills its tile; the
   median, its range and "N companies / at memo-date prices" sit centred. */
.desk-stat__center {
  justify-self: center;
  text-align: center;
}

.desk-stat__value--big.desk-stat__center {
  align-self: center;
  margin: auto 0;
  font-size: 34px;
}

.desk-stat:has(> .desk-stat__value--big.desk-stat__center) {
  grid-template-rows: auto 1fr;
}

.desk-stat--centered > .desk-stat__value,
.desk-stat--centered > .desk-stat__note {
  justify-self: center;
  text-align: center;
}

.desk-stat__note.desk-stat__center {
  display: grid;
  gap: 1px;
}

.desk-stat__scope {
  color: var(--ink-soft);
}

.desk-view {
  display: inline-block;
  /* One width for every view (fits "Underperform"), so what follows lines up. */
  min-width: 9em;
  padding: 1px 8px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-silver);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

/* View colours (2026-11-28, owner): Outperform amber, Neutral the cyan-to-
   amber blend, Underperform cyan, so the Desk's bear-to-bull bar runs as one
   gradient. */
.desk-view--outperform {
  border-color: transparent;
  background: var(--amber);
  color: #07131a;
}

.desk-view--neutral {
  border-color: transparent;
  background: linear-gradient(rgba(9, 16, 24, 0.94), rgba(9, 16, 24, 0.94)) padding-box, linear-gradient(135deg, var(--accent), var(--amber)) border-box;
  color: var(--ink);
}

.desk-view--underperform {
  border-color: rgba(125, 234, 244, 0.5);
  color: var(--accent);
}

.desk-up--pos {
  color: var(--accent);
}

.desk-up--neg {
  color: var(--amber);
}

.desk-up--none {
  color: var(--muted);
}

/* The filter bar (2026-11-28, redrawn): the search with Sort beside it,
   then the view switch, the two toggles and the sector menu. */
.desk-filter {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-elevated);
}

.desk-filter__top,
.desk-filter__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
}

.desk-filter__field {
  position: relative;
  display: block;
  flex: 1 1 280px;
  min-width: 0;
}

.desk-filter__icon {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 15px;
  height: 15px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.desk-filter__field input {
  width: 100%;
  height: 36px;
  padding: 0 12px 0 36px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.desk-filter__field input::placeholder {
  color: var(--muted);
}

.desk-filter__field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(125, 234, 244, 0.16);
}

.desk-filter__field:focus-within .desk-filter__icon {
  color: var(--accent);
}

/* A row of choices in one pill (the view, the sort). */
.desk-seg {
  display: inline-flex;
  gap: 2px;
  align-items: center;
  max-width: 100%;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  /* On a phone the choices slide sideways inside the pill instead of
     widening the page. */
  overflow-x: auto;
  scrollbar-width: none;
}

.desk-seg::-webkit-scrollbar {
  display: none;
}

.desk-seg__label {
  padding: 0 6px 0 9px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.desk-seg__btn {
  flex: none;
  padding: 4px 11px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.15s, background 0.15s, box-shadow 0.15s;
}

.desk-seg__btn:hover {
  background: rgba(125, 234, 244, 0.05);
  color: var(--ink);
}

.desk-seg__btn--on,
.desk-seg__btn--on:hover {
  background: rgba(125, 234, 244, 0.13);
  box-shadow: inset 0 0 0 1px rgba(125, 234, 244, 0.45);
  color: var(--accent);
}

.desk-seg__btn:focus-visible,
.desk-chip:focus-visible,
.desk-select select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* The sector menu, drawn as a chip with a caret. */
.desk-select {
  position: relative;
  display: inline-flex;
}

.desk-select::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 12px;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  color: var(--muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.desk-select select {
  max-width: 170px;
  padding: 4px 30px 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 12px;
  text-overflow: ellipsis;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.desk-select select:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.desk-select select option {
  background: var(--bg-elevated);
  color: var(--ink);
}

.desk-select--on select,
.desk-select--on select:hover {
  border-color: var(--accent);
  background: rgba(125, 234, 244, 0.08);
  color: var(--accent);
}

.desk-select--on::after {
  color: var(--accent);
}

.desk-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.desk-chip {
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.desk-chip:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.desk-chip--on,
.desk-chip--on:hover {
  border-color: var(--accent);
  background: rgba(125, 234, 244, 0.08);
  color: var(--accent);
}

.desk-chips__sep {
  width: 1px;
  height: 16px;
  margin: 0 2px;
  background: var(--line);
}

.desk-panel,
.desk-earlier__day,
.desk-wire {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
}

.desk-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.desk-panel__title {
  margin: 0;
  color: var(--accent-ice);
  font-size: 15px;
  font-weight: 600;
}

.desk-panel__updated {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.desk-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.desk-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s, opacity 0.2s;
}

.desk-list > .desk-row:last-child {
  border-bottom: 0;
}

.desk-row:hover,
.desk-row--current {
  background: rgba(125, 234, 244, 0.05);
}

.desk-row--current {
  box-shadow: inset 2px 0 0 var(--accent);
}

.desk-row--read {
  opacity: 0.55;
}

.desk-row--head,
.desk-row--head:hover {
  background: var(--bg-elevated);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Memo columns (2026-11-28, owner: "layout improvement with the columns"):
   every column has a bounded width, and spare space is shared evenly
   between them (space-between), instead of the company and range columns
   swallowing it and leaving wide gaps. */
.desk-row__main {
  display: grid;
  grid-template-columns: minmax(140px, 250px) 100px 78px 92px 64px minmax(90px, 190px) 84px 70px;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 9px 12px 9px 0;
  color: var(--ink);
  font-size: 13px;
  text-decoration: none;
}

/* The column titles (2026-11-28): small, muted and on one line. The row's
   own 13px ink used to win here, so the titles wrapped and shouted. */
.desk-row--head .desk-row__main {
  padding-top: 8px;
  padding-bottom: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.07em;
}

/* Range starts a little after Upside, so the two titles don't read as one. */
.desk-col-range {
  padding-left: 12px;
}

.desk-row__star {
  display: flex;
  justify-content: center;
}

.desk-star {
  padding: 6px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s, transform 0.15s;
}

.desk-star:hover,
.desk-star--on {
  color: var(--amber);
}

.desk-star:active {
  transform: scale(0.85);
}

.desk-row__company {
  display: grid;
  gap: 3px;
  justify-items: start;
  min-width: 0;
}

.desk-row__id {
  display: flex;
  gap: 8px;
  align-items: baseline;
  max-width: 100%;
  min-width: 0;
}

.desk-row--head .desk-row__main > span {
  overflow: hidden;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.desk-row__ticker {
  flex: none;
  color: var(--accent-ice);
  font-weight: 600;
}

.desk-row__name {
  min-width: 0;
  overflow: hidden;
  color: var(--ink-soft);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.desk-badge {
  padding: 0 6px;
  border-radius: 6px;
  font-size: 11px;
  white-space: nowrap;
}

.desk-badge--up {
  background: rgba(125, 234, 244, 0.1);
  color: var(--accent);
}

.desk-badge--down {
  background: rgba(245, 199, 127, 0.12);
  color: var(--amber);
}

.desk-badge--new {
  background: rgba(219, 230, 239, 0.08);
  color: var(--accent-silver);
}

.desk-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.desk-row__conviction {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-soft);
}

/* Conviction as a three-bar meter beside the word (2026-11-28). */
.desk-conv {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 11px;
}

.desk-conv i {
  display: block;
  width: 3px;
  border-radius: 1px;
  background: var(--line-strong);
}

.desk-conv i:nth-child(1) {
  height: 5px;
}

.desk-conv i:nth-child(2) {
  height: 8px;
}

.desk-conv i:nth-child(3) {
  height: 11px;
}

.desk-conv--1 i:nth-child(-n + 1),
.desk-conv--2 i:nth-child(-n + 2),
.desk-conv--3 i:nth-child(-n + 3) {
  background: var(--accent);
}

.desk-row__time {
  color: var(--muted);
  white-space: nowrap;
}

.desk-range {
  position: relative;
  display: block;
  height: 14px;
}

.desk-range::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
  background: var(--line);
}

.desk-range--empty::before {
  opacity: 0.5;
}

.desk-range__band {
  position: absolute;
  top: 4px;
  height: 6px;
  border-radius: 3px;
  background: rgba(125, 234, 244, 0.22);
}

.desk-range__fv {
  position: absolute;
  top: 1px;
  width: 2px;
  height: 12px;
  margin-left: -1px;
  border-radius: 1px;
  background: var(--amber);
}

.desk-range__px {
  position: absolute;
  top: 4px;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--accent-ice);
  box-shadow: 0 0 0 2px var(--surface-strong);
}

.desk-empty {
  padding: 14px;
}

.desk-link,
.desk-search__run {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  cursor: pointer;
}

.desk-link {
  text-decoration: underline;
}

.desk-search {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.desk-results {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.desk-results a {
  display: flex;
  gap: 8px;
  align-items: baseline;
  color: var(--ink);
  text-decoration: none;
}

.desk-results a:hover .desk-results__title {
  color: var(--accent-ice);
  text-decoration: underline;
}

.desk-results__snippet {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12.5px;
}

.desk-earlier {
  display: grid;
  gap: 8px;
}

.desk-earlier__toggle {
  width: 100%;
  padding: 10px 14px;
  border: 0;
  background: none;
  color: var(--ink-soft);
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.desk-earlier__toggle:hover {
  background: rgba(125, 234, 244, 0.04);
  color: var(--ink);
}

.desk-earlier__note {
  padding: 0 14px 12px;
}

.desk-earlier__day > .desk-list {
  border-top: 1px solid var(--line);
}

/* Earlier days sit inside the day's box, under its rows (2026-11-28). */
.desk-panel__body > .desk-earlier {
  padding: 12px;
  border-top: 1px solid var(--line);
}

.desk-panel__body .desk-earlier__day {
  border-radius: 10px;
  background: var(--bg-elevated);
}

.desk-aside {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 14px;
}

/* The Wrap tile (2026-11-28, owner): one bordered tile, its "All Wraps"
   inside at the bottom like the wire's; beside the tiles it matches their
   row's height (--desk-strip-h, measured). */
.desk-wrapbox {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
}

.desk-wrapbox__label {
  color: var(--amber);
}

.desk-wrapbox__title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--accent-ice);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* The Wrap tile is one link (2026-11-28): label, title, date. */
.desk-wraptile {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(245, 199, 127, 0.35);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(245, 199, 127, 0.08), transparent 60%), var(--surface);
  transition: border-color 0.15s ease;
}

.desk-wraptile:hover,
.desk-wraptile:focus-within {
  border-color: rgba(245, 199, 127, 0.7);
}

.desk-wraptile > .desk-wrapbox {
  flex: 1 1 auto;
}

@media (min-width: 1101px) {
  .desk-wraptile {
    height: var(--desk-strip-h, auto);
  }
}

a.desk-wrapbox {
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease;
}


a.desk-wrapbox:hover .desk-wrapbox__title {
  text-decoration: underline;
}

.desk-wrapbox__date {
  display: block;
  margin-top: auto;
  color: var(--muted);
  font-size: 12px;
}

.desk-wrapbox__all,
.desk-wire__all {
  justify-self: end;
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
}

.desk-wrapbox__all:hover,
.desk-wire__all:hover {
  color: var(--accent);
}

.desk-wire__all,
.desk-wrapbox__all {
  display: block;
  padding: 8px 14px;
  border-top: 1px solid var(--line);
  text-align: right;
}

.desk-wire {
  padding: 14px;
}

.desk-wire__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.desk-wire__list li {
  display: grid;
  gap: 3px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.desk-wire__list li:last-child {
  border-bottom: 0;
}

.desk-wire__time {
  color: var(--muted);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}

.desk-wire__list a {
  display: grid;
  gap: 3px;
  justify-items: start;
  color: var(--ink-soft);
  text-decoration: none;
}

.desk-wire__list a:hover .desk-wire__title {
  color: var(--accent-ice);
}

.desk-error {
  color: var(--amber);
}

@media (max-width: 1100px) {
  .desk-home {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Two rows of tiles: a horizontal current would cut across them. */
  .desk-strip__current {
    display: none;
  }

  .desk-aside {
    position: static;
  }

  .desk-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Row columns give way to the list's own width (the menu and the right
   column both take space, so viewport widths don't say how much is left):
   Time goes first, then Conviction, Price at memo, the range bar and Fair
   value. */
.desk-panel,
.desk-earlier__day {
  container-type: inline-size;
  container-name: desk-list;
}

@container desk-list (max-width: 840px) {
  .desk-row__main {
    grid-template-columns: minmax(136px, 240px) 100px 78px 92px 64px minmax(80px, 180px) 84px;
  }

  .desk-col-time {
    display: none;
  }
}

@container desk-list (max-width: 790px) {
  .desk-row__main {
    grid-template-columns: minmax(130px, 240px) 100px 78px 92px 64px minmax(80px, 180px);
  }

  .desk-col-conv {
    display: none;
  }
}

@container desk-list (max-width: 690px) {
  .desk-row__main {
    grid-template-columns: minmax(120px, 1fr) 100px 78px 64px minmax(70px, 170px);
  }

  .desk-col-px {
    display: none;
  }
}

@container desk-list (max-width: 560px) {
  .desk-row__main {
    grid-template-columns: minmax(110px, 2fr) 96px 76px 62px;
  }

  .desk-col-range {
    display: none;
  }
}

@container desk-list (max-width: 440px) {
  .desk-row__main {
    grid-template-columns: minmax(100px, 1.6fr) 96px 62px;
  }

  .desk-col-fv {
    display: none;
  }
}

/* The in-hub reader: a top bar (breadcrumb, Prev/Next, Follow, article page
   link), the article, and the list the subscriber came from. */
.desk-reader {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.desk-reader__bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-elevated);
}

.desk-reader__crumb {
  color: var(--muted);
  font-size: 13px;
}

.desk-reader__crumb a {
  color: var(--ink-soft);
  text-decoration: none;
}

.desk-reader__crumb a:hover {
  color: var(--accent-ice);
  text-decoration: underline;
}

.desk-reader__crumb b {
  color: var(--accent-ice);
}

.desk-reader__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.desk-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 12.5px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.desk-btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent-ice);
}

.desk-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.desk-btn--on {
  border-color: rgba(245, 199, 127, 0.6);
  color: var(--amber);
}

/* The article column and its list side by side, centered as a pair
   (2026-11-28): the article used to stop at 820px inside a column that
   stretched to the list, leaving a dead gap between them. */
.desk-reader__body {
  display: grid;
  grid-template-columns: minmax(0, 860px) 280px;
  gap: 18px;
  align-items: start;
  justify-content: center;
}

.desk-reader--single .desk-reader__body {
  grid-template-columns: minmax(0, 860px);
}

.desk-reader__article {
  min-width: 0;
  max-width: none;
  padding: 26px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

/* The article's card image heads the panel edge to edge (2026-11-28), so
   it reads as the article's cover, not a card inside a card. */
/* (Selected as the article's figure: the hero's own class name shares the
   home page's "hero" word and would pull this into the critical CSS.) */
.desk-reader__article > figure {
  width: auto;
  margin: -26px -30px 4px;
  border-width: 0 0 1px;
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
}

.desk-reader__title {
  margin: 10px 0 16px;
  color: var(--accent-ice);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  line-height: 1.2;
}

/* The side column (2026-11-28): the list the reader came from and the
   article's contents, sticky together. */
.desk-reader__side {
  position: sticky;
  top: 64px;
  display: grid;
  gap: 14px;
  max-height: calc(100vh - 90px);
  overflow-y: auto;
  scrollbar-width: thin;
}

.desk-reader__contents {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-elevated);
}

.desk-reader__contents ul {
  display: grid;
  gap: 1px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.desk-reader__contents a {
  display: block;
  padding: 5px 8px;
  border-radius: 6px;
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.35;
  text-decoration: none;
}

.desk-reader__contents a:hover {
  background: rgba(125, 234, 244, 0.05);
  color: var(--ink);
}

.desk-reader__contents a[aria-current] {
  background: rgba(125, 234, 244, 0.08);
  box-shadow: inset 2px 0 0 var(--accent);
  color: var(--accent-ice);
}

/* How far through the article (2026-11-28): a thin line along the bottom
   of the reader's top bar. */
.desk-reader__progress {
  position: absolute;
  right: 14px;
  bottom: -1px;
  left: 14px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
  transform-origin: left;
  pointer-events: none;
  transition: transform 0.12s linear;
}

/* Reading in the Desk (2026-11-28): paragraphs and list items at one
   reading size (list items were 12.8px beside 16.3px paragraphs), a
   comfortable measure, and calmer section headings. */
.desk-reader__article .article-teaser {
  max-width: 66ch;
  font-size: 1.12rem;
  line-height: 1.7;
}

.desk-reader__article .article-prose > p,
.desk-reader__article .article-prose li {
  font-size: 1.0625rem;
  line-height: 1.78;
}

.desk-reader__article .article-prose > :is(p, ul, ol, h2, h3, blockquote) {
  max-width: 68ch;
}

.desk-reader__article .article-prose li + li {
  margin-top: 6px;
}

.desk-reader__article .article-prose h2 {
  margin: 38px 0 12px;
  padding-top: 24px;
  font-size: 1.32rem;
  line-height: 1.3;
}

.desk-reader__article .article-prose h3 {
  margin: 24px 0 8px;
  font-size: 1.08rem;
}

@media (min-width: 1101px) {
  /* With the contents in the side column, the in-text copy steps aside. */
  .desk-reader:has(.desk-reader__contents) .desk-reader__article .memo-rail {
    display: none;
  }
}

.desk-reader__list {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-elevated);
}

.desk-reader__list-head {
  display: flex;
  justify-content: space-between;
}

.desk-reader__list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.desk-reader__item a {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 6px;
  align-items: start;
  padding: 7px 8px;
  border-radius: 6px;
  color: var(--ink-soft);
  font-size: 12.5px;
  text-decoration: none;
}

.desk-reader__item a:hover {
  background: rgba(125, 234, 244, 0.05);
}

.desk-reader__item--current a {
  background: rgba(125, 234, 244, 0.08);
  box-shadow: inset 2px 0 0 var(--accent);
  color: var(--accent-ice);
}

.desk-reader__item--read {
  opacity: 0.5;
}

.desk-reader__item-time {
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.desk-reader__item-main {
  display: flex;
  gap: 6px;
  align-items: center;
  min-width: 0;
}

/* Two lines before the cut (2026-11-28): one line left titles as
   "Test: Earnings Rou…". */
.desk-reader__item-title {
  display: -webkit-box;
  overflow: hidden;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@media (max-width: 1100px) {
  .desk-reader__body {
    grid-template-columns: minmax(0, 1fr);
  }

  .desk-reader__side {
    position: static;
    max-height: none;
  }

  /* The contents stay in the text here (the side column sits below). */
  .desk-reader__contents {
    display: none;
  }
}

@media (max-width: 720px) {
  .desk-reader__article {
    padding: 18px 16px;
  }

  .desk-reader__article > figure {
    margin: -18px -16px 4px;
  }
}

/* Hub list pages (Memos, Following, Wire, Weekly Wrap, Coverage, API key,
   Account): a heading, then the page's panels. */
.desk-flow,
.desk-days {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.desk-head {
  display: grid;
  gap: 4px;
}

.desk-head__title {
  margin: 0;
  color: var(--accent-ice);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
}

.desk-head__intro {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}

/* Page art beside the title (2026-11-28, owner): the hound on the Wire, the
   creek off the cliff on Memos, faded into the page on every side but the
   right. Behind the text; hidden on phones. */
.desk-head--art {
  position: relative;
  min-height: 84px;
  align-content: center;
}

.desk-head--art > :not(.desk-head__art) {
  position: relative;
  z-index: 1;
}

.desk-head__art {
  position: absolute;
  top: -18px;
  right: 0;
  bottom: -14px;
  z-index: 0;
  width: min(62%, 760px);
  pointer-events: none;
  opacity: 0.85;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 35%, #000 58%, transparent 96%),
    linear-gradient(to bottom, transparent 0%, #000 28%, #000 70%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0%, #000 35%, #000 58%, transparent 96%),
    linear-gradient(to bottom, transparent 0%, #000 28%, #000 70%, transparent 100%);
  mask-composite: intersect;
}

.desk-head__art--hound {
  background: url(/support-hound-eye.webp) no-repeat 38% 42% / cover;
}

.desk-head__art--creek {
  background: url(/creek-archivepage.webp) no-repeat right 62% / cover;
}

@media (max-width: 640px) {
  .desk-head__art {
    display: none;
  }

  .desk-head--art {
    min-height: 0;
  }
}

.desk-more {
  justify-self: center;
}

/* The Memos box (2026-11-28): every day in one box, each under its label. */
.desk-days__day + .desk-days__day {
  border-top: 1px solid var(--line);
}

.desk-days__label {
  margin: 0;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--accent-ice);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
}

/* Load more / earlier days at the end of a list box's rows. */
.desk-panel__body > .desk-more {
  display: flex;
  margin: 12px auto;
}

.desk-follows__list {
  display: grid;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.desk-follows__list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.desk-follows__list li:last-child {
  border-bottom: 0;
}

.desk-follows__list b {
  color: var(--accent-ice);
}

/* Article lists (the Wire, the Weekly Wrap). */
.desk-articles {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.desk-article {
  border-bottom: 1px solid var(--line);
}

.desk-list > .desk-article:last-child {
  border-bottom: 0;
}

/* Every type pill in a wire row is the same width (2026-11-28). */
.desk-article__kind {
  box-sizing: border-box;
  width: 100%;
  text-align: center;
}

.desk-article__link {
  display: grid;
  /* A fixed pill column (2026-11-28): titles line up whatever the type. */
  grid-template-columns: 150px 160px minmax(0, 1fr);
  gap: 4px 12px;
  align-items: baseline;
  padding: 10px 14px;
  color: var(--ink);
  font-size: 13.5px;
  text-decoration: none;
}

.desk-article:hover,
.desk-article--current {
  background: rgba(125, 234, 244, 0.05);
}

.desk-article--current {
  box-shadow: inset 2px 0 0 var(--accent);
}

.desk-article__when {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.desk-article__title {
  color: var(--accent-ice);
}

.desk-article__dek {
  grid-column: 3;
  overflow: hidden;
  color: var(--muted);
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.desk-feature {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border: 1px solid rgba(245, 199, 127, 0.35);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(245, 199, 127, 0.08), transparent 60%), var(--surface);
}

.desk-feature__title {
  display: block;
  padding: 0;
  color: var(--accent-ice);
  font-size: 1.35rem;
  line-height: 1.25;
}

.desk-feature__title:hover {
  text-decoration: underline;
}

.desk-feature__dek {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
}

@media (max-width: 760px) {
  .desk-article__link {
    grid-template-columns: minmax(0, 1fr);
  }

  .desk-article__kind {
    justify-self: start;
    width: auto;
  }

  .desk-article__dek {
    grid-column: 1;
  }
}

/* Coverage (moved into the hub from My feed). */
.desk-coverage__scroll {
  overflow-x: auto;
}

.desk-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.desk-table th,
.desk-table td {
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.desk-table th {
  background: var(--bg-elevated);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Figures and their headings right-aligned together (2026-11-28: every
   heading from the third used to be, so View sat away from its pills). */
.desk-table th.desk-num,
.desk-table td.desk-num {
  text-align: right;
}

.desk-table tbody tr:hover,
.desk-table__row--current {
  background: rgba(125, 234, 244, 0.05);
}

.desk-table__row--current {
  box-shadow: inset 2px 0 0 var(--accent);
}

.desk-sort {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}

.desk-coverage__open {
  color: var(--ink-soft);
  text-decoration: none;
}

.desk-coverage__open b {
  color: var(--accent-ice);
}

.desk-coverage__open:hover span {
  color: var(--accent-ice);
  text-decoration: underline;
}

.desk-coverage__conviction {
  color: var(--ink-soft);
  font-size: 13px;
}

.desk-coverage__foot {
  margin: 0;
  padding: 10px 14px;
  font-size: 12px;
}

.desk-howto {
  display: grid;
  gap: 10px;
  justify-items: start;
}

/* The Desk home on one screen (2026-11-28): on wide, tall displays the page
   fits the window, like the old terminal, and only the memo list and the wire
   scroll; the full footer gives way to one line. Narrower or shorter screens
   (and every other page) keep normal page scrolling. */
.desk-footline {
  display: none;
}

@media (min-width: 1180px) and (min-height: 640px) {
  .desk-frame {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
    padding-bottom: 10px;
  }

  /* The page area takes what is left (basis 0) and the bars above and the
     line below never shrink (2026-11-28): with flex-basis auto a long
     article made the page area's natural height huge, and flexbox took the
     overflow out of the disclosure bar and the site header too. */
  .desk-frame > :not(main) {
    flex-shrink: 0;
  }

  .desk-frame > main {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    min-height: 0;
  }

  .desk-frame__full {
    display: none;
  }

  .desk-footline {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 16px;
    padding-top: 10px;
    color: var(--muted);
    font-size: 12px;
  }

  .desk-footline > * {
    color: var(--muted);
    font-size: 12px;
  }

  .desk-footline > span:first-child {
    margin-right: auto;
  }

  .desk-frame .desk-shell {
    flex: 1 1 auto;
    min-height: 0;
    align-items: stretch;
  }

  .desk-frame .desk-menu {
    min-height: 0;
    overflow-y: auto;
  }

  /* Every Desk page (2026-11-28): the menu stays put and this column scrolls;
     the Desk home fills it exactly and scrolls inside its own panels. */
  /* 2026-11-28 (owner: section 10 was cut off): the pane is 100dvh - 212px
     tall and the column sticks 64px down it, so it gets 100dvh - 276px, less
     14px of breathing room. Taller contents scroll inside the column. */
  .desk-frame .desk-reader__side {
    max-height: calc(100dvh - 290px);
  }

  /* Memos, Wire and Coverage (2026-11-28, owner: like the Desk home's memo
     box): the page fills the pane, the list box takes what is left and its
     rows scroll inside it under heads that stay put. */
  .desk-frame .desk-main > .desk-flow--fill {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
  }

  .desk-frame .desk-flow--fill > * {
    flex: 0 0 auto;
  }

  .desk-frame .desk-flow--fill > :is(.desk-days, .desk-articles, .desk-coverage) {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 14px;
    min-height: 240px;
  }

  .desk-frame .desk-flow--fill :is(.desk-days, .desk-articles) > * {
    flex: 0 0 auto;
  }

  .desk-frame .desk-flow--fill .desk-panel--fill {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
  }

  .desk-frame .desk-coverage .desk-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
  }

  .desk-frame .desk-days__label {
    position: sticky;
    top: 0;
    z-index: 1;
  }

  .desk-frame .desk-main {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-deep) transparent;
  }

  .desk-frame .desk-main > * {
    flex: 0 0 auto;
  }

  .desk-frame .desk-main > .desk-home {
    flex: 1 1 auto;
  }

  .desk-frame .desk-home {
    flex: 1 1 auto;
    min-height: 0;
    align-items: stretch;
  }

  .desk-frame .desk-home__main,
  .desk-frame .desk-aside {
    position: static;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 0;
  }

  .desk-frame .desk-home__main > *,
  .desk-frame .desk-aside > * {
    flex: 0 0 auto;
  }

  /* A column of full-height blocks: a grid here would squeeze the panels
     (they clip overflow) instead of scrolling. */
  .desk-frame .desk-home__memos {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 14px;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-deep) transparent;
  }

  .desk-frame .desk-home__memos > * {
    flex: 0 0 auto;
  }

  /* The day's box reaches the bottom of the window (2026-11-28, owner):
     its title and column heads stay put and the rows, the search and
     earlier days scroll inside it. Below 240px of room the column above
     scrolls instead of squeezing the box. */
  .desk-frame .desk-home__memos > .desk-panel--fill {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 240px;
  }

  .desk-frame .desk-panel--fill > * {
    flex: 0 0 auto;
  }

  .desk-frame .desk-panel__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-deep) transparent;
  }

  .desk-frame .desk-panel--fill > .desk-row--head {
    overflow: hidden;
  }

  /* The heads keep the same gutter as a body with a scrollbar, so the
     columns line up. */
  .desk-frame .desk-panel--fill > .desk-row--head,
  .desk-frame .desk-panel__body {
    scrollbar-gutter: stable;
  }

  /* With an ad (non-subscribers, once ads are on) the column keeps the wire
     usable and scrolls as a whole rather than cutting anything off. */
  .desk-frame .desk-aside {
    overflow-y: auto;
    scrollbar-width: thin;
  }

  .desk-frame .desk-aside .article-ad-slot {
    height: 250px;
    max-height: 250px;
    min-height: 0;
    margin-top: 0;
    overflow: hidden;
  }

  .desk-frame .desk-wire {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
  }

  .desk-frame .desk-wire__scroll {
    flex: 1 1 auto;
    min-height: 120px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-deep) transparent;
  }
}

/* Coverage's toolbar (2026-11-28, tightened): the search and the view
   chips on one row, wrapping on narrow screens. */
.desk-coverage__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}

.desk-coverage__search {
  flex: 1 1 260px;
  min-width: 0;
}

.desk-coverage__chips {
  flex: 0 1 auto;
}

.desk-coverage .desk-table th:nth-child(2) {
  width: 30%;
}

.desk-coverage .desk-table th:nth-child(3) {
  width: 28%;
}

.desk-coverage .desk-table th.desk-num {
  width: 14%;
}

.desk-coverage__none {
  padding: 0 14px 10px;
}

.desk-coverage__star {
  width: 34px;
  text-align: center;
}

/* A subscribe lock (2026-11-28, owner, after the logged-out audit): Coverage
   and the company pages are for subscribers. */
.desk-lock {
  display: grid;
  justify-items: center;
  gap: 10px;
  box-sizing: border-box;
  width: 100%;
  max-width: 560px;
  margin: 8px auto;
  padding: 32px 24px;
  text-align: center;
}

.desk-lock__icon {
  font-size: 28px;
  line-height: 1;
}

.desk-lock__title {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
}

.desk-lock__text {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

.desk-lock__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
}

.desk-lock__fine {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

/* A locked memo row (2026-11-28): one cell across the figures, up to the
   time (from 840px down the time is hidden: to the end). */
.desk-row__lock {
  grid-column: 3 / -2;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@container desk-list (max-width: 840px) {
  .desk-row__lock {
    grid-column: 3 / -1;
  }
}

@container desk-list (max-width: 440px) {
  .desk-row__lock-word {
    display: none;
  }
}

/* Company pages (2026-11-28): the latest memo's figures in one wrapping
   line. */
.desk-company__figures {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13.5px;
}

.desk-company__figures b {
  color: var(--ink);
  font-weight: 600;
}

.desk-company__figures .desk-range {
  width: 120px;
}

.desk-company__conv {
  text-transform: capitalize;
}

/* Phones (Desk): below 760px a bottom tab bar replaces the left menu (More
   opens Weekly Wrap, Coverage, API key and Account), memo rows stack on two
   lines, and the reader is full screen with its Prev/Next bar pinned. */
@media (max-width: 760px) {
  .desk-shell,
  .desk-shell--collapsed {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  /* Room for the fixed tab bar below everything, the footer included
     (2026-11-28). */
  body:has(.desk-tabs) {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .desk-menu {
    display: none;
  }

  .desk-tabs {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line-strong);
    background: var(--bg-elevated);
  }

  .desk-tabs__item {
    display: grid;
    justify-items: center;
    gap: 2px;
    padding: 6px 2px;
    color: var(--muted);
    font-size: 11px;
    list-style: none;
    text-decoration: none;
    cursor: pointer;
  }

  .desk-tabs__item::-webkit-details-marker {
    display: none;
  }

  .desk-tabs__item--active {
    color: var(--accent-ice);
  }

  .desk-reader__list {
    display: none;
  }

  .desk-reader__bar {
    border-radius: 0 0 12px 12px;
  }
}

/* Phone-width lists: each memo on two lines — ticker, company and view; then
   fair value, upside and the range bar. */
@container desk-list (max-width: 520px) {
  .desk-row--head {
    display: none;
  }

  .desk-row__tag {
    display: inline;
    color: var(--muted);
    font-size: 11px;
  }

  .desk-row__main {
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas:
      "company company view"
      "fv up range";
    row-gap: 6px;
  }

  .desk-row__main > :nth-child(1) {
    grid-area: company;
  }

  .desk-row__main > :nth-child(2) {
    grid-area: view;
    justify-self: end;
  }

  .desk-row__main > .desk-col-fv {
    display: block;
    grid-area: fv;
    text-align: left;
  }

  .desk-row__main > :nth-child(5) {
    grid-area: up;
  }

  .desk-row__main > .desk-col-range {
    display: block;
    grid-area: range;
    width: 96px;
  }

  .desk-col-px,
  .desk-col-conv,
  .desk-col-time {
    display: none;
  }
}

/* The reader around a server-rendered article (2026-11-28, the open Desk):
   the article column, the lock and the shimmer while the reader is checked. */
.desk-reader__main {
  min-width: 0;
}

.desk-reader__view {
  min-width: 0;
  max-width: none;
}

.desk-locked--checking {
  display: grid;
  gap: 10px;
  padding: 18px 0;
}

.desk-shimmer {
  display: block;
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(169, 205, 224, 0.08), rgba(169, 205, 224, 0.18), rgba(169, 205, 224, 0.08));
  background-size: 200% 100%;
  animation: desk-shimmer 1.4s ease-in-out infinite;
}

.desk-shimmer--short {
  width: 60%;
}

@keyframes desk-shimmer {
  from {
    background-position: 100% 0;
  }

  to {
    background-position: -100% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .desk-shimmer {
    animation: none;
  }
}

/* About and Commercial licensing (2026-11-28, logged-out audit): a short,
   readable column of headed sections. */
.info-doc {
  max-width: 760px;
}

.info-doc__part {
  display: grid;
  gap: 10px;
}

.info-doc__part h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.25rem;
}

.info-doc__part p,
.info-doc__part ul {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.7;
}

.info-doc__part ul {
  padding-left: 1.2rem;
}

/* The Desk's intro for visitors (2026-11-28, logged-out audit): what the
   Desk is, and the trial. One line on wide screens. */
.desk-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin: 0 0 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(125, 234, 244, 0.04);
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
}

.desk-intro > span {
  flex: 1 1 320px;
}

/* The API docs banner (2026-11-28, owner): the hound with its key in the
   empty space right of the heading, faded into the page; text on top. */
.docs-head {
  position: relative;
}

.docs-head > :not(.docs-head__art) {
  position: relative;
  z-index: 1;
}

.docs-head__art {
  position: absolute;
  top: -24px;
  right: 0;
  bottom: -40px;
  z-index: 0;
  width: min(58%, 820px);
  pointer-events: none;
  background: url(/api-docs-hound.webp) no-repeat 60% 45% / cover;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 32%, #000 56%, transparent 96%),
    linear-gradient(to bottom, transparent 0%, #000 18%, #000 72%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0%, #000 32%, #000 56%, transparent 96%),
    linear-gradient(to bottom, transparent 0%, #000 18%, #000 72%, transparent 100%);
  mask-composite: intersect;
}

@media (max-width: 900px) {
  .docs-head__art {
    display: none;
  }
}

/* Footer, slimmer (2026-11-28, owner: "feels fat", "randomly grouped"):
   three labelled groups at the right (Research, Company, Legal), a small
   tagline, and the disclaimer and copyright as two small lines. */
.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: end;
  column-gap: 56px;
  align-items: start;
}
.site-footer__group {
  display: grid;
  gap: 3px;
  align-content: start;
  justify-items: start;
}
.site-footer__label {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.site-footer__group a,
.site-footer__group .footer-link-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.8rem;
  line-height: 1.3;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.site-footer__group a:hover,
.site-footer__group .footer-link-button:hover {
  color: var(--accent);
}
.site-footer .site-footer__brand p {
  color: var(--muted);
  font-size: 0.82rem;
}
.site-footer .site-footer__disclosure p,
.site-footer .site-footer__bottom .terminal-note {
  font-size: 0.72rem;
}
@media (max-width: 640px) {
  .site-footer__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    row-gap: 20px;
  }
}

/* Commercial licensing (2026-11-28, owner: redesigned). */
.lic-head {
  position: relative;
  min-height: 260px;
  align-content: center;
}
.lic-head > :not(.lic-head__art) {
  position: relative;
  z-index: 1;
}
.lic-head > p {
  max-width: 56ch;
}
.lic-head__art {
  position: absolute;
  top: -24px;
  right: 0;
  bottom: -24px;
  z-index: 0;
  width: min(58%, 820px);
  pointer-events: none;
  background: url(/api-hero.webp) no-repeat 30% 50% / cover;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 32%, #000 56%, transparent 96%),
    linear-gradient(to bottom, transparent 0%, #000 18%, #000 75%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0%, #000 32%, #000 56%, transparent 96%),
    linear-gradient(to bottom, transparent 0%, #000 18%, #000 75%, transparent 100%);
  mask-composite: intersect;
}
.lic-head__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.lic-part {
  display: grid;
  gap: 14px;
}
.lic-part__title {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono), monospace;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.lic-grid {
  display: grid;
  gap: 14px;
}
@media (min-width: 900px) {
  .lic-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.lic-tile {
  display: grid;
  gap: 8px;
  align-content: start;
}
.lic-tile h3,
.lic-tile h2 {
  margin: 0;
  font-size: 1.15rem;
}
.lic-tile p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
}
.lic-who {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lic-who li {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(125, 234, 244, 0.04);
  color: var(--ink);
  font-size: 0.86rem;
}
.lic-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}
.lic-steps {
  counter-reset: lic-step;
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 900px) {
  .lic-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.lic-steps li {
  counter-increment: lic-step;
  display: grid;
  gap: 6px;
}
.lic-steps li::before {
  content: counter(lic-step, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(125, 234, 244, 0.45);
  border-radius: 50%;
  color: var(--accent);
  font-family: var(--font-mono), monospace;
  font-size: 0.72rem;
}
.lic-steps strong {
  color: var(--ink);
}
.lic-steps span {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.6;
}
.lic-same {
  border-color: rgba(245, 199, 127, 0.35);
}
@media (max-width: 900px) {
  .lic-head__art {
    display: none;
  }
  .lic-head {
    min-height: 0;
  }
}

/* Subscribe: How it works spans the full width under the offer and the
   checkout card (2026-11-28, owner). */
.subscribe-steps {
  grid-area: steps;
  display: grid;
  gap: 18px;
}
.subscribe-layout {
  grid-template-areas:
    "head"
    "panel"
    "details"
    "steps"
    "samples";
}
@media (min-width: 980px) {
  .subscribe-layout {
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
      "head panel"
      "details panel"
      "steps steps"
      "samples samples";
  }
  /* Not sticky any more: a sticky card slid down over the full-width
     How it works row while scrolling (2026-11-28, owner). */
  .subscribe-panel {
    position: static;
  }
}
.subscribe-layout:has(.subscribe-done) .subscribe-steps {
  display: none;
}

/* Footer: the disclaimer moved into the brand column and sits at its
   bottom, level with the last row of links (2026-11-28, owner). */
.site-footer__top > .site-footer__brand {
  align-self: stretch;
}
.site-footer__brand > .site-footer__disclosure {
  margin-top: auto;
  padding-top: 10px;
}

/* Methodology Quality: the Checks card and the memo-structure list stack
   full width; side by side the short card sat beside a tall list
   (2026-11-28, owner). */
.panel-grid.panel-grid--stack {
  grid-template-columns: minmax(0, 1fr);
}

/* Methodology closing box: the two quiet links on their own centered row
   under the buttons (2026-11-28, owner). */
.methodology-cta__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 22px;
  margin-top: -4px;
}

/* Coverage Range column (2026-11-29, owner): the Desk's range bar, the
   amber tick at the fair value and the dot at the price at memo. */
.desk-coverage__range {
  width: 180px;
  min-width: 160px;
}
.desk-coverage__range .desk-range {
  width: 100%;
}

/* The reader's list pages 4 at a time (2026-11-28, owner): small arrows in
   its head. */
.desk-reader__flip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.desk-reader__arrow {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  line-height: 1;
  cursor: pointer;
}
.desk-reader__arrow:hover:not(:disabled) {
  border-color: var(--accent-deep);
  color: var(--accent-ice);
}
.desk-reader__arrow:disabled {
  opacity: 0.35;
  cursor: default;
}


/* In-article ad bars (2026-11-30, owner): the width of the article text,
   set apart by a hairline above and below, with the height reserved so the
   text doesn't jump when the ad fills. */
.article-prose > .article-ad-slot[data-ad-gated="open"] {
  width: 100%;
  min-height: 120px;
  margin: 1.75rem 0;
  padding: 10px 0 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* An ad bar AdSense couldn't fill on this page view (2026-11-30, owner:
   "make it the best and most professional"): no empty labelled box; the
   article simply reads through. The next page view tries again. */
.article-prose > .article-ad-slot:has(ins[data-ad-status="unfilled"]) {
  display: none;
}
