/* ==========================================================================
   report.css — company report page (/company/{slug})
   --------------------------------------------------------------------------
   Loaded AFTER landing.css, via the 'styles' slot in layouts/landing.php, and
   ONLY on this page. The report page is still wrapped in .landing, so every
   token in landing.css (colours, type scale, spacing unit, --lp-nav-h) plus the
   whole header / CTA / footer stylesheet already apply here — this file only
   adds the report-specific `rp-` layer on top.

   Conventions carried over from landing.css, deliberately:
     - prefix by page: lp- shared/landing, cp- companies listing, rp- report
     - spacing as calc(var(--spacing-padding-inline) * N), where N * 4 = px
     - NEVER redeclare a token that already exists in landing.css
   ========================================================================== */

/* --- report-scoped tokens ---
   Values the shared scale has no entry for, stepped over the same breakpoint
   ladder landing.css uses for its type and padding tokens so the report scales
   with the rest of the site rather than against it.

   --rp-hero-pad-top / -bottom come straight from the reference (120 / 160 at
   1920). They are the hero's padding ON TOP OF the header's height — see the
   .rp-hero rule below for why that addition is needed.

   --rp-font-lead is 32px in the reference. --alpha-body-large is 30px and
   nothing else is close, so it gets its own ladder. Two things are this size by
   design and share the token: the hero dek and the Insights card title.

   --rp-toc-w / --rp-chapter-gap are the reference's 323px + 129px, which with the
   888px content column sum to exactly the 1340px wrap. Because the sum is fixed,
   the content column is NOT given a width — it takes the remainder, so these two
   tokens are the only ones that need stepping. */
.landing {
  --rp-hero-pad-top: 120px;
  --rp-hero-pad-bottom: 160px;
  --rp-font-lead: 32px;
  --rp-toc-w: 323px;
  --rp-chapter-gap: 129px;
  --rp-chapter-space: 160px;
  --rp-chart-h: 366px;
  /* Taller canvas for charts that need to stay roughly square (the radar) —
     the reference's card is 745px tall against ~466-541px for the line/bar
     cards, and a hexagon squeezed into --rp-chart-h would read as flattened.
     Trimmed from 620 to 520: at 620 the radar's own legend-to-polygon gap
     (fixed by the legend sitting at top:0, the polygon's radius scaling off
     this height) read as too much empty space above the chart; 520 is still
     tall enough to keep the hexagon from flattening. */
  --rp-chart-h-square: 520px;

  /* Two greys the shared palette has no entry for. landing.css has --lp-border
     (#E0E0E0) and --lp-muted (#888) either side of both, but the reference is
     specific: "Neutrals/200" for an idle TOC label, "Neutrals/150" for the rule
     under an insight heading. */
  --rp-toc-idle: #C2C2C2;
  --rp-rule: #D1D1D1;

   /* Nature-of-evidence key for the Verify chapter's table — how a claim was
     established, which is a THIRD axis alongside the claim and its verification
     status, so it is carried by dot colour rather than by a column of its own.
     Three categories, so the lime/orange pair the rest of this file uses for
     two-way legends no longer covers it. Deliberately outside the brand palette:
     these read as a data key, not as page furniture, and orange is already the
     page's accent (a brand-orange dot would look like emphasis rather than a
     category). Used by BOTH .rp-verify-dot--* and the matching
     .rp-chart-legend-dot--* modifiers, so the key and the rows cannot drift. */
  --rp-evidence-self: #F97316;
  --rp-evidence-measured: #3B82F6;
  --rp-evidence-third: #22C55E;

  /* Table body/header type. The reference sets both report tables at 12.5-13.5px
     — denser than anything on the shared scale (--alpha-body-xs bottoms out at
     16px), because these tables carry 11 rows of three-to-four columns and only
     fit on one line each at that size. Rounded to 14px rather than copied at
     12.5px: the reference's value is uncomfortably small on a modern display,
     and 14px still keeps every row single-line at the reference's column
     proportions. */
  --rp-font-table: 14px;

  /* Timeline row spacing and date column. --rp-tl-gap is the reference's 96px
     marker pitch minus the 26px row content height; --rp-tl-date-w places the
     event text at 168px from the list's left edge against the reference's
     169px. */
  --rp-tl-gap: 70px;
  --rp-tl-date-w: 100px;

  /* Gap either side of each meta-row dot separator (list gap before the item,
     item gap after the dot) — shrinks with the rest of the hero type so the
     three items don't read as far-flung once the dots themselves are small. */
  --rp-meta-gap: 24px;

  /* Gap between top-level report sections (hero excluded — its own
     --rp-hero-pad-* tokens already carry a deliberately different value).
     NOT --section-pad-block: that shared token is tuned for the marketing
     page's rhythm and only reaches 200px above 1800px, dropping to 160/100/60
     in between — measured on this page, that put the chapters→references gap
     at 160px on a 1440px laptop and 60px around 1366-1280px, well under the
     reference's flat 200px. This is its own token instead, on report.css's own
     breakpoint ladder, so every width gets the same 200px the reference
     specifies rather than whatever the landing page's ladder happens to give. */
  --rp-section-gap: 200px;
}
/* The hero padding is unchanged in this band (the reference's 120/160 holds from
   1400px up), so only the type steps here. */
@media (max-width: 1799px) {
  .landing { --rp-font-lead: 30px; --rp-font-table: 13.5px; --rp-tl-gap: 64px; --rp-tl-date-w: 96px; --rp-section-gap: 180px; --rp-meta-gap: 22px; }
}
@media (max-width: 1399px) {
  .landing {
    --rp-hero-pad-top: 80px;
    --rp-hero-pad-bottom: 120px;
    --rp-font-lead: 26px; --rp-font-table: 13px; --rp-tl-gap: 56px; --rp-tl-date-w: 92px;
    --rp-meta-gap: 18px;
    --rp-toc-w: 260px;
    --rp-chapter-gap: 72px;
    --rp-chapter-space: 128px;
    --rp-chart-h: 320px;
    --rp-chart-h-square: 460px;
    --rp-section-gap: 140px;
  }
}
@media (max-width: 1024px) {
  .landing {
    --rp-hero-pad-top: 64px;
    --rp-hero-pad-bottom: 96px;
    --rp-font-lead: 24px; --rp-font-table: 13px; --rp-tl-gap: 48px; --rp-tl-date-w: 88px;
    --rp-meta-gap: 16px;
    --rp-chapter-space: 104px;
    --rp-chart-h: 280px;
    --rp-chart-h-square: 380px;
    --rp-section-gap: 110px;
  }
}
@media (max-width: 767px) {
  .landing {
    --rp-hero-pad-top: 48px;
    --rp-hero-pad-bottom: 72px;
    --rp-font-lead: 20px; --rp-font-table: 12px; --rp-tl-gap: 36px; --rp-tl-date-w: 88px;
    --rp-meta-gap: 12px;
    --rp-chapter-space: 80px;
    --rp-chart-h: 240px;
    --rp-chart-h-square: 280px;
    --rp-section-gap: 90px;
  }
}
@media (max-width: 479px) {
  .landing {
    --rp-hero-pad-top: 40px;
    --rp-hero-pad-bottom: 56px;
    --rp-font-lead: 18px; --rp-font-table: 12px; --rp-tl-gap: 28px; --rp-tl-date-w: 88px;
    --rp-meta-gap: 10px;
    --rp-chapter-space: 64px;
    --rp-chart-h: 210px;
    --rp-chart-h-square: 240px;
    --rp-section-gap: 64px;
  }
}

/* Visually hidden but reachable by a screen reader. */
.rp-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --- hero ---
   The dark band the report opens on. Two things about the padding:

   1. The extra --lp-nav-h on top is not optional. The header is position:fixed
      and transparent here, so it floats OVER this section instead of taking
      space above it; without it the breadcrumb sits under the logo. --lp-nav-h
      is the RESTING header height, which is the correct one — the header is
      only un-scrolled while the top of the hero is in view. Same reasoning as
      .lp-hero and .cp-section in landing.css.

   2. The side padding lives on the SECTION and .lp-wrap's own 24px is zeroed
      below. This is the pattern #company-profile / #stories / #cta already use:
      leaving both in place stacks the gutters (80 + 24 = 104px). It also lands
      the reference geometry for free — at >=1800px --section-pad-inline is
      120px, which is more than the 290px the centred 1340px wrap needs at
      1920px wide, so the column is exactly 1340px with exactly 290px gutters. */
.rp-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* Vertically centers the .lp-wrap flex item within the 100vh box — same
     approach .lp-hero uses. The padding above still does its job: it's what
     keeps the content optically centered in the visible area rather than the
     full 100vh, since the fixed transparent header covers --lp-nav-h of the
     top. */
  justify-content: center;
  background: var(--lp-black);
  color: #fff;
  padding: calc(var(--lp-nav-h) + var(--rp-hero-pad-top))
           var(--section-pad-inline)
           var(--rp-hero-pad-bottom);
}
.rp-hero > .lp-wrap { padding-inline: 0; }

/* Children keep the default align-items:stretch so the headline, dek and meta row
   are exactly as wide as the column and wrap against it. Only the breadcrumb pill
   needs to hug its own text, so it opts out individually below — doing it on the
   CONTAINER instead (align-items:flex-start) would switch every child to
   fit-content sizing, which is a reliable source of narrow-viewport overflow. */
.rp-hero .lp-wrap {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-padding-inline) * 10);
}

/* --- breadcrumb ---
   A dark-glass pill. Reuses the two nav-pill tokens rather than repeating their
   rgba values, so a change to the glass treatment moves both together. Note
   this is the DARK counterpart of .cp-breadcrumb (which sits on a light page
   and uses --lp-tag-bg); the two are intentionally separate rules. */
.rp-breadcrumb {
  display: inline-flex;
  align-self: flex-start; /* hug the crumbs instead of stretching to the column */
  align-items: center;
  gap: calc(var(--spacing-padding-inline) * 2);
  padding: calc(var(--spacing-padding-inline) * 2) calc(var(--spacing-padding-inline) * 6);
  background: var(--lp-nav-pill-bg);
  border: 1px solid var(--lp-nav-pill-border);
  border-radius: 100px;
  font-size: var(--alpha-body-xs);
  line-height: 1.3;
  color: #fff;
}
/* Needs the element prefix to out-specify `.landing a { color: inherit }`. The
   reference keeps all three crumbs white — the current page is NOT muted. */
.rp-breadcrumb a { color: #fff; }
.rp-breadcrumb a:hover,
.rp-breadcrumb a:focus-visible { text-decoration: underline; }
.rp-caret { flex: none; width: 16px; height: 16px; }

/* --- headline ---
   max-width is the reference's 1239px measure: it forces the same two-line
   break as the design without a hardcoded <br>, so a longer or shorter
   headline still wraps sensibly. */
.rp-hero h1 {
  max-width: 1000px;
  margin: 0;
  font-size: var(--alpha-heading-h0);
  font-weight: var(--font-weight-medium);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
@media (max-width: 1399px) {
  .rp-hero h1 { max-width: 900px; }
}
@media (max-width: 1230px) {
  .rp-hero h1 { max-width: 800px; }
}
@media (max-width: 1024px) {
  .rp-hero h1 { max-width: 700px; }
}
@media (max-width: 767px) {
  .rp-hero h1 { max-width: 600px; }
}
/* .accent is scoped to .lp-hero h1 in landing.css, so it has to be restated
   here rather than inherited. */
.rp-hero h1 .accent { color: var(--lp-orange); }

/* --- dek --- */
.rp-dek {
  max-width: 1210px;
  margin: 0;
  font-size: var(--rp-font-lead);
  font-weight: var(--font-weight-regular);
  line-height: 1.3;
  color: #fff;
}

/* --- meta row ---
   The 5px dots are pseudo-elements on every item but the first, and the gap is
   declared on BOTH the list and the items via --rp-meta-gap (24px at base,
   stepping down with the rest of the hero type). That puts an equal gap on
   each side of every dot (list gap before the item, item gap after the dot)
   matching the reference, while keeping the markup three real list items for
   assistive tech instead of interleaved separator spans. */
.rp-meta {
  display: flex;
  align-items: center;
  gap: var(--rp-meta-gap);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--alpha-body-small);
  line-height: 1.3;
  color: var(--lp-bg-light);
}
.rp-meta li {
  display: flex;
  align-items: center;
  gap: var(--rp-meta-gap);
}
.rp-meta li + li::before {
  content: '';
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lp-bg-light);
}
.rp-meta-lead { font-weight: var(--font-weight-medium); }

/* Not in the reference (which is desktop-only): let the three items reflow
   rather than overflow once the column gets narrow. */
   @media (width: 768px) {
         .rp-meta { flex-wrap: wrap;}
   }
@media (max-width: 767px) {
  .rp-meta {
    flex-wrap: wrap;
    row-gap: calc(var(--spacing-padding-inline) * 2);
  }
}

/* --- floating chatbot link ---
   Moved to assets/css/report-chat.css: the companies list ("Reports") and stories list
   ("Insights") pages now use this same .rp-chatbot-fab image button (see report-chat.css
   for the rule and app/views/companies.php / stories/index.php for the markup), and those
   pages don't load this file. report.js's `.is-hidden` scroll toggle (hero/CTA boundary)
   still only runs on this page — see report-chat.css for the class it toggles. */

/* --- nav anchor targets ---
   The header nav links to these four sections by id. The header is fixed
   (landing.css .lp-nav), so without an offset the jump lands with the section's
   top tucked underneath it. landing.css does the same for its own sections on
   line 5; these are the report's, which that selector never covered. Same
   formula as .rp-chapter below, so a section jump and a TOC chapter jump clear
   the nav by the same amount. --lp-nav-h-scrolled is stepped per breakpoint in
   landing.css, so this follows the header down as it shrinks. */
.rp-overview, .rp-stats, .rp-chapters, .rp-refs {
  scroll-margin-top: calc(var(--lp-nav-h-scrolled) + calc(var(--spacing-padding-inline) * 8));
}

/* --- overview (company card) ---
   Reference vertical padding is 200/200 at 1920 — --rp-section-gap, the
   report's own inter-section token (see the definition up top for why this
   isn't --section-pad-block). Side padding uses the same zero-the-wrap
   technique as .rp-hero. */
.rp-overview { padding: var(--rp-section-gap) var(--section-pad-inline); }
.rp-overview > .lp-wrap {
  padding-inline: 0;
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-padding-inline) * 6);
}

.rp-overview-head {
  display: flex;
  align-items: center;
  gap: calc(var(--spacing-padding-inline) * 8);
}
.rp-overview-head h2 {
  margin: 0;
  font-size: var(--alpha-heading-h1);
  font-weight: var(--font-weight-medium);
  line-height: 1.3;
  color: var(--lp-black);
}
/* Not in the reference (static there): a hover nudge so the link affords being
   clickable, consistent with the lift/fill treatment other buttons on the site
   use on hover. */
/* Same size ladder as .rp-chatbot-fab (64 -> 56 -> 48 -> 44), via its own token
   rather than sharing --fab-size — the two are unrelated elements that merely
   happen to agree on size at every breakpoint today. */
.rp-external-link {
  --link-size: 64px;
  flex: none;
  width: var(--link-size);
  height: var(--link-size);
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  transition: transform 0.2s ease;
}
@media (max-width: 1024px) { .rp-external-link { --link-size: 48px; } .rp-overview-head{gap: calc(var(--spacing-padding-inline) * 4);} }
@media (max-width: 767px)  { .rp-external-link { --link-size: 48px; } }
@media (max-width: 479px)  { .rp-external-link { --link-size: 38px; } }
.rp-external-link:hover, .rp-external-link:focus-visible { transform: scale(1.06); }
.rp-external-link img { width: 100%; height: 100%; object-fit: cover; display: block; }

.rp-overview-body {
  display: flex;
  align-items: center;
  gap: calc(var(--spacing-padding-inline) * 20);
}
.rp-overview-text {
  flex: 1 1 0%;
  min-width: 0;
  margin: 0;
  font-size: var(--alpha-body-medium);
  font-weight: var(--font-weight-regular);
  line-height: 1.3;
  color: var(--lp-black);
}
/* Fixed brand colour (InstaAgent's own magenta), not a site token — this square
   is per-company art, not shared chrome. Sized with clamp rather than the
   breakpoint ladder so it scales continuously instead of jumping; the two
   images inside are positioned by percentage of THIS box so they stay in
   proportion at every size instead of needing their own breakpoints. */
.rp-overview-mark {
  flex: none;
  position: relative;
  width: clamp(180px, 22vw, 323px);
  aspect-ratio: 1;
  border-radius: 40px;
  background: #B83587;
  overflow: hidden;
}
.rp-overview-mark img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.rp-overview-mark-glow { width: 60.3%; height: 58.1%; }
.rp-overview-mark-logo { width: 40.3%; height: 38.7%; }

@media (max-width: 1024px) {
  .rp-overview-mark{width: 100%; border-radius: 0px;}
  .rp-overview-body{gap: calc(var(--spacing-padding-inline) * 14); flex-direction: column;}
}

@media (max-width: 767px) {
  /* Centred, not full-bleed — stretching to 100% distorted the mark since its
     two SVGs are sized by percentage of a square box; keep the original clamp
     dimensions and just centre the stack. */
  .rp-overview-body { flex-direction: column; align-items: center; gap: calc(var(--spacing-padding-inline) * 12); }
}

/* --- stats ("Five numbers behind the pitch") ---
   No top padding: the reference relies on .rp-overview's own bottom padding
   for the gap above this heading, so the two sections together read as one
   200px gap rather than 400px. */
.rp-stats { padding: 0 var(--section-pad-inline) var(--rp-section-gap); }
.rp-stats > .lp-wrap {
  padding-inline: 0;
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-padding-inline) * 20);
}
.rp-stats-heading {
  margin: 0;
  text-align: center;
  font-size: var(--alpha-heading-h1);
  font-weight: var(--font-weight-medium);
  line-height: 1.3;
  color: var(--lp-black);
}
.rp-stats-heading .accent { color: var(--lp-orange); }

/* 6 columns reproduces the reference's 3-then-2 layout: cards 1-3 span 2 of 6
   (three across), cards 4-5 span 3 of 6 (two across). align-items:stretch keeps
   every card in a row sharing that row's tallest height, same as the flex rows
   this replaced. */
.rp-stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: calc(var(--spacing-padding-inline) * 4);
  align-items: stretch;
}
.rp-stat-card:nth-child(-n+3) { grid-column: span 2; }
.rp-stat-card:nth-child(n+4)  { grid-column: span 3; }
.rp-stat-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 40px;
  padding: calc(var(--spacing-padding-inline) * 10);
}
.rp-stat-index {
  margin: 0 0 calc(var(--spacing-padding-inline) * 10);
  font-size: var(--alpha-body-medium);
  line-height: 1.35;
  color: var(--lp-muted);
}
.rp-stat-value {
  margin: 0 0 calc(var(--spacing-padding-inline) * 6);
  font-size: var(--alpha-heading-h0);
  font-weight: var(--font-weight-medium);
  line-height: 1.1;
  color: var(--lp-black);
}
.rp-stat-caption {
  margin: 0;
  font-size: var(--alpha-body-medium);
  line-height: 1.35;
  color: var(--lp-black);
}

/* Reference is a fixed 3-then-2 grid on a 1920 canvas; not viable once cards
   get narrower than their content. The nth-child spans above must be reset to
   `auto` at each step below or they keep fighting the new column count. */
@media (max-width: 1024px) {
  .rp-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .rp-stat-card:nth-child(-n+3), .rp-stat-card:nth-child(n+4) { grid-column: auto; }
  /* An odd card count leaves the last card alone in its 2-col row — stretch it
     across both columns. nth-child(odd) keeps even counts as a clean 2-up. */
  .rp-stat-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .rp-stat-card { padding: 32px; border-radius: 20px; }
}
@media (max-width: 767px) {
  .rp-stat-card { padding: 28px; }
}
@media (max-width: 600px) {
  .rp-stats-grid { grid-template-columns: 1fr; gap: 16px; }
  .rp-stats > .lp-wrap{ gap: calc(var(--spacing-padding-inline) * 10);}
}
@media (max-width: 479px) {
  .rp-stats-grid { gap: 10px; }
  .rp-stat-card  { padding: 24px; }
}

/* ==========================================================================
   CHAPTERS
   Two columns: a sticky TOC and the chapter body. The reference's 323 + 129 + 888
   sums to exactly the 1340px wrap, so the body column is given no width at all —
   it takes whatever the TOC and gap leave, which keeps the three numbers in sync
   automatically when the two tokens step down.
   ========================================================================== */
.rp-chapters { padding: 0 var(--section-pad-inline) var(--rp-section-gap); }
.rp-chapters > .lp-wrap { padding-inline: 0; }

.rp-chapters-layout {
  display: flex;
  align-items: flex-start; /* required: a stretched TOC cannot be sticky */
  gap: var(--rp-chapter-gap);
}

/* --- sticky TOC --- */
/* The reference row is: 3px track | 24px gap | 256px labels | 40px right padding.
   Sticky offset is the scrolled header height plus a breathing gap, so the list
   never tucks under the fixed nav. */
.rp-toc {
  position: sticky;
  top: calc(var(--lp-nav-h-scrolled) + calc(var(--spacing-padding-inline) * 8));
  flex: none;
  width: var(--rp-toc-w);
  padding-right: calc(var(--spacing-padding-inline) * 10);
  display: flex;
  align-items: stretch;
  gap: calc(var(--spacing-padding-inline) * 6);
}
/* The track is a plain vertical bar. The reference draws it as a 528x3 rect with
   rotate(90deg), which is just how Figma expresses a vertical bar — rotating here
   would take it out of flow for no reason, so it is simply 3px wide instead. Its
   height comes from align-items:stretch on the row, which ties it to the label
   list's height exactly as the reference's matching 528px values do. */
.rp-toc-track {
  flex: none;
  width: 3px;
  border-radius: 2px;
  background: var(--lp-border);
  overflow: hidden;
}
.rp-toc-fill {
  width: 100%;
  height: 0;
  border-radius: 2px;
  background: var(--lp-orange);
  transition: height 0.18s linear; /* smooths rAF-quantised jumps while scrolling */
}
.rp-toc-list {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-padding-inline) * 10);
  /* When the chapter list is taller than the sticky pane's viewport slot, scroll
     it in place rather than letting it run off-screen. The cap mirrors the sticky
     top offset (.rp-toc) plus a matching bottom gap. */
  max-height: calc(100vh - var(--lp-nav-h-scrolled) - calc(var(--spacing-padding-inline) * 16));
  overflow-y: auto;
  padding-right: calc(var(--spacing-padding-inline) * 2);
}
.rp-toc-item {
  font-size: var(--alpha-body-medium);
  font-weight: var(--font-weight-medium);
  line-height: 1.3;
  color: var(--rp-toc-idle);
  transition: color 0.2s ease;
}
.rp-toc-item.is-active { color: var(--lp-black); }
/* Element-prefixed to out-specify `.landing a { color: inherit }` — the anchor
   must take the item's state colour, not its own. */
.rp-toc-item a { color: inherit; display: block; }
.rp-toc-item:not(.is-active) a:hover { color: var(--lp-muted); }
/* Chapters that do not exist yet: visible so the track's fill percentage reads
   correctly against all 8, but clearly not yet reachable. */
.rp-toc-item--pending { opacity: 0.45; cursor: default; }

/* --- chapter body --- */
.rp-chapters-body {
  /* No width: takes the remainder of the wrap. min-width:0 stops a wide child
     (a chart, a long unbroken string) from pushing the column past its share. */
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--rp-chapter-space);
}
.rp-chapter {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-padding-inline) * 16);
  /* Offsets the fixed header when a TOC link jumps here, so the chapter numeral
     is not hidden behind the nav on arrival. */
  scroll-margin-top: calc(var(--lp-nav-h-scrolled) + calc(var(--spacing-padding-inline) * 8));
}

.rp-chapter-head {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-padding-inline) * 4);
}
.rp-chapter-numeral {
  margin: 0;
  font-size: var(--alpha-body-medium);
  font-weight: var(--font-weight-medium);
  line-height: 1;
  color: var(--lp-orange);
}
.rp-chapter-head h2 {
  margin: 0;
  /* Narrower than the 888px column on purpose: at the full column width these
     headings wrap to lines with very uneven measure, and several leave a
     single short word orphaned on its own last line. A flat 640px (rather
     than a stepped token) is deliberate — it's already narrower than every
     breakpoint's column, INCLUDING the ~928px the column widens to once the
     TOC drops out at 1024px, so it keeps doing the same job there; and below
     767px the column itself falls under 640px, so this stops constraining
     anything and the heading just fills its container as before. */
  max-width: 800px;
  font-size: var(--alpha-heading-h2);
  font-weight: var(--font-weight-medium);
  line-height: 1.3;
  color: var(--lp-black);
}

/* The reference sets prose to #000 while everything around it is #0A0A0A. Using
   the token instead — the 5/255 difference is invisible and not worth a
   one-off literal. */
.rp-prose {
  margin: 0;
  font-size: var(--alpha-body-medium);
  font-weight: var(--font-weight-regular);
  line-height: 1.3;
  color: var(--lp-black);
}
/* Back-to-back paragraphs (chapters 4, 5, 6 and 7 each run two or three in a
   row) sit closer together than everything else in the chapter: 24px instead
   of .rp-chapter's normal 64px gap. A single flex `gap` can't carry two
   magnitudes, so a run of consecutive paragraphs is wrapped in one
   .rp-prose-group. That group is a SINGLE child of .rp-chapter, so it keeps
   the chapter's normal 64px gap to the heading/charts on either side, while
   the tighter 24px paragraph rhythm lives inside it as an ordinary positive
   gap — no negative margins. The 24px is the constant --spacing-padding-inline
   (never stepped), so it holds at every breakpoint without its own ladder. */
.rp-prose-group {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-padding-inline) * 6);
}

/* --- pull quote ---
   The reference's "Pull Quote 01" component: no side rule, just a 1px top divider
   (the same "Neutrals/150" as the insight headings, hence --rp-rule again) with
   40px above and below it before the text. */
.rp-pullquote {
  margin: 0;
  padding-top: calc(var(--spacing-padding-inline) * 10);
  border-top: 1px solid var(--rp-rule);
}
.rp-pullquote p {
  margin: 0;
  font-size: var(--rp-font-lead);
  font-weight: var(--font-weight-medium);
  line-height: 1.3;
  color: var(--lp-black);
}
/* .accent is scoped per-section throughout this file (see .rp-hero h1 .accent,
   .rp-stats-heading .accent) rather than declared once globally — restated here
   for the same reason. */
.rp-pullquote .accent { color: var(--lp-orange); }

/* --- charts ---
   White card holding a title, the echarts canvas, and a caption. The reference
   absolutely positions all three inside a fixed-height card; in flow they stack,
   which lets a longer title or a two-line caption grow the card instead of
   colliding. --rp-chart-h is the canvas only, so the card height follows. */
.rp-chart {
  margin: 0;
  background: var(--lp-panel);
  border-radius: 24px;
  padding: 40px;
}
@media (max-width: 1024px) { .rp-chapter{gap: calc(var(--spacing-padding-inline) * 10);}}
@media (max-width: 768px) { .rp-chart { padding: 24px; } }
.rp-chart-title {
  margin: 0 0 28px;
  font-size: var(--alpha-body-medium);
  font-weight: var(--font-weight-medium);
  line-height: 1.35;
  color: var(--lp-black);
}
/* The reference gives this exact chart's title a muted grey (#525252) instead of
   the near-black every other chart title uses — a deliberate one-off in the
   source, not a token, so it gets its own modifier rather than changing the
   shared rule above. */
.rp-chart-title--muted { color: #525252; }
/* Chapter 8's summary table titles itself in orange rather than the near-black
   every other card uses — the report's concluding exhibit, called out as such
   in the reference. */
.rp-chart-title--accent { color: var(--lp-orange); }
/* echarts measures its container on init, so this needs a resolved height before
   JS runs — hence a token height rather than an aspect-ratio or intrinsic sizing. */
.rp-chart-canvas { width: 100%; height: var(--rp-chart-h); }
.rp-chart-canvas--square { height: var(--rp-chart-h-square); }
/* Held slightly narrower than the card so the note reads as a caption under the
   chart rather than as a full-width paragraph. A percentage rather than a ch
   measure because it should track the card's width at every breakpoint, and the
   card is already the thing setting the measure here. */
.rp-chart-note {
  margin: 32px 0 0;
  max-width: 90%;
  font-size: var(--alpha-body-small);
  font-weight: var(--font-weight-regular);
  line-height: 1.3;
  color: var(--lp-black);
}

/* --- chart legend (static) ---
   The scatter chart's reference legend is 10 names for what is, colour-wise,
   only 2 categories — every point but InstaAgent's shares one orange, so the
   legend can't be used to pick out any ONE competitor's dot by colour, only to
   confirm the two-category read (InstaAgent vs the field). Given that, this is
   plain markup rather than an interactive echarts legend: there is nothing
   real for a click-to-toggle affordance to do here, since 9 of the 10 entries
   are visually identical anyway. Hover-for-name still works via the chart's
   own tooltip. */
.rp-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--spacing-padding-inline) * 2) calc(var(--spacing-padding-inline) * 5);
  margin: 0 0 calc(var(--spacing-padding-inline) * 6);
  padding: 0;
  list-style: none;
  max-width: 90%;
}
/* --alpha-body-xs is the report's chart-key size, shared with the echarts-drawn
   legends in report.js (legend().textStyle reads the same token via
   chartKeyFont()) so a hand-written key and a generated one are the same size
   at every breakpoint. The 12px dot matches those legends' itemWidth/itemHeight
   for the same reason. */
.rp-chart-legend li {
  display: flex;
  align-items: center;
  gap: calc(var(--spacing-padding-inline) * 1.5);
  font-size: var(--alpha-body-xs);
  color: var(--lp-black);
}
.rp-chart-legend-dot {
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--lp-orange);
}
.rp-chart-legend-dot--lead { background: #B8FD15; }
/* The Verify chapter's key is three-way, not the lime/orange pair above — same
   tokens the table's own dots take, so the key always matches the rows. */
.rp-chart-legend-dot--self     { background: var(--rp-evidence-self); }
.rp-chart-legend-dot--measured { background: var(--rp-evidence-measured); }
.rp-chart-legend-dot--third    { background: var(--rp-evidence-third); }


/* --- chart quadrant captions ---
   The four corner labels ("Category Leaders" etc.) sit in the chart's own
   margin, not tied to a specific data coordinate — they're chrome around the
   plot, not an annotation ON it. Plain absolutely-positioned text over the
   canvas is simpler and more robust than asking echarts' graphic layer to
   convert a data point to pixels for a label that isn't really data-anchored. */
.rp-chart-quadrant-wrap { position: relative; }
.rp-chart-quadrant {
  position: absolute;
  font-size: 12px;
  line-height: 1.3;
  color: var(--lp-black);
  pointer-events: none;
}
.rp-chart-quadrant--tl { top: 0; left: 8px; }
.rp-chart-quadrant--tr { top: 0; right: 8px; text-align: right; font-weight: var(--font-weight-medium); }
.rp-chart-quadrant--bl { bottom: 0; left: 8px; letter-spacing: 0.02em; }
.rp-chart-quadrant--br { bottom: 0; right: 8px; text-align: right; letter-spacing: 0.02em; }

/* --- callout (single always-visible highlight, no toggle) ---
   Replicates .table-verdict ("What we'd do:") from
   immigration.alphaventure.com/best-immigration-case-management-software:
   a rounded 8px orange bar down the left edge, orange H4 title, dark body.
   Sizes ride the same --alpha-* tokens as the reference, so the responsive
   ladder matches without media queries here. */
.rp-callout {
  position: relative;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rp-callout::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  background: var(--lp-orange); /* #F06731, same hex the reference hardcodes */
  border-radius: 999px;
}
.rp-callout-head {
  margin: 0;
  font-size: var(--alpha-heading-h4);
  font-weight: var(--font-weight-medium);
  line-height: 130%;
  color: var(--lp-orange);
}
.rp-callout-text {
  margin: 0;
  font-size: var(--alpha-body-medium);
  font-weight: var(--font-weight-regular);
  line-height: 130%;
  color: #141414; /* reference hardcodes this, not our --lp-black (#0A0A0A) */
}

/* --- timeline ---
   The reference's "Domain timeline vs Stated founding" chart isn't a numeric
   chart at all — every value in it is a literal date/label/source, not a
   pixel-derived quantity — so it's plain HTML/CSS rather than an echarts
   instance. It sits inside the ordinary .rp-chart card (white, radius 24, with
   a .rp-chart-title) like every other exhibit, so this block styles ONLY the
   list: a dot-and-halo marker per row, a date, the event text, and a coloured
   source pill, with a spine connecting the markers.

   Row geometry comes from the reference's 96px marker pitch: the row content is
   26px tall (the pill, the tallest child) and --rp-tl-gap supplies the other
   70px. That is what makes the card as airy as the reference rather than the
   tight stack a padding-per-row approach produced.

   The spine is drawn per-row (::after on every row but the last) rather than as
   one bar on the list. Two reasons: it is anchored to the SAME origin as the
   marker it must line up with — the row's left edge — so the two cannot drift
   apart, which is exactly the bug a list-level bar had; and its length follows
   --rp-tl-gap automatically instead of needing hand-computed end insets. */
.rp-timeline {
  margin: 0;
  /* Indents the markers past the card title, as the reference does (title at
     the card's padding edge, markers 26px inside it). */
  padding: 0 0 0 calc(var(--spacing-padding-inline) * 8);
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--rp-tl-gap);
}
.rp-timeline-row {
  position: relative;
  display: flex;
  /* Centred, so the 20px halo, the 21px text line and the 26px pill share a
     midline — matching the reference, where all three centre within ~2px of
     each other. Row height therefore equals its tallest child (26px), which is
     what makes `top: 50%` below land exactly on the marker's centre. */
  align-items: center;
  gap: calc(var(--spacing-padding-inline) * 6);
  opacity: 1;
  transition: opacity 0.4s ease;
}
/* From this row's marker centre to the next row's marker centre: 50% of this
   row + the gap + 50% of the next = calc(100% + gap), since every row is the
   same height. */
.rp-timeline-row:not(:last-child)::after {
  content: '';
  position: absolute;
  /* Half the halo (10px) minus half the spine (1.5px) — this is the centring
     the old list-level rule got wrong by 3.5px. */
  left: 8.5px;
  top: 50%;
  width: 3px;
  height: calc(100% + var(--rp-tl-gap));
  border-radius: 2px;
  background: #FCE1D6;
  /* Growing down from the marker, not up: this segment connects THIS row's dot
     to the NEXT one, so it should draw from this row's own centre downward. */
  transform-origin: top;
  transform: scaleY(1);
  transition: transform 0.4s ease;
}
/* Rows render fully visible by default — required so a JS-off visit still
   shows the whole timeline, same reasoning as .rp-insights-toggle staying
   hidden until report.js confirms it can act. report.js opts a timeline INTO
   the hidden starting state only once it has an IntersectionObserver wired up
   to bring rows back one at a time; see report.js's timeline reveal. */
.rp-timeline--interactive .rp-timeline-row { opacity: 0; }
.rp-timeline--interactive .rp-timeline-row.is-shown { opacity: 1; }
.rp-timeline--interactive .rp-timeline-row:not(:last-child)::after { transform: scaleY(0); }
.rp-timeline--interactive .rp-timeline-row.is-shown:not(:last-child)::after { transform: scaleY(1); }
@media (prefers-reduced-motion: reduce) {
  .rp-timeline--interactive .rp-timeline-row,
  .rp-timeline--interactive .rp-timeline-row:not(:last-child)::after {
    opacity: 1; transform: none; transition: none;
  }
}
.rp-timeline-marker {
  position: relative;
  z-index: 1; /* over the spine, so the pale bar doesn't cross the dot */
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Halo colour follows the dot: orange for every source but the one Wayback
     Machine row, which is lime — see .rp-timeline-marker--alt. The CMS preview
     injects --rp-tl-halo / --rp-tl-dot inline for arbitrary colours; the live
     page sets neither, so these fall back to the reference orange unchanged. */
  background: var(--rp-tl-halo, rgba(240, 103, 49, 0.18));
}
.rp-timeline-marker::before {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--rp-tl-dot, var(--lp-orange));
}
.rp-timeline-marker--alt { background: rgba(184, 253, 21, 0.18); }
.rp-timeline-marker--alt::before { background: #B8FD15; }

/* 16px in the reference, not the 20px --alpha-body-small this used to take —
   --alpha-body-xs is the 16px step. The fixed date column is what lines the
   event text up into a column across all five rows. */
.rp-timeline-date {
  flex: none;
  width: var(--rp-tl-date-w);
  font-size: var(--alpha-body-xs);
  line-height: 1.3;
  color: var(--lp-black);
}
.rp-timeline-event {
  flex: 1 1 auto; /* the grow is also what pushes the pill to the right edge */
  min-width: 0;
  font-size: var(--alpha-body-xs);
  line-height: 1.3;
  color: var(--lp-black);
}
.rp-timeline-source {
  flex: none;
  padding: calc(var(--spacing-padding-inline) * 1.25) calc(var(--spacing-padding-inline) * 3);
  border-radius: 100px;
  /* Inherits --rp-tl-dot from the row so the pill matches the marker dot's
     per-item colour; falls back to orange when the item has no colour. */
  background: var(--rp-tl-dot, var(--lp-orange));
  color: #fff;
  font-size: 12px;
  font-weight: var(--font-weight-regular);
  line-height: 1.3;
  white-space: nowrap;
}
/* The one lime source pill needs black rather than white text to stay
   readable against the lighter fill — same reasoning as the timeline marker. */
.rp-timeline-source--alt { background: #B8FD15; color: var(--lp-black); }

/* Narrow: the four columns stop fitting, so the pill drops to its own line.
   Once rows wrap they are no longer all one height, which breaks `top: 50%` —
   so the row switches to top alignment and the spine is anchored at the
   marker's centre (10px) instead. calc(100% + gap) still spans centre to
   centre, because that offset is now identical on both rows. */
@media (max-width: 767px) {
  .rp-timeline { padding-left: 0; }
  .rp-timeline-row {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: calc(var(--spacing-padding-inline) * 3);
  }
  .rp-timeline-row:not(:last-child)::after { top: 10px; }
  .rp-timeline-date { width: auto; }
  /* Zero flex-basis: without this the event's hypothetical size is its own
     max-content width, so the ROW breaks before the event ever gets a chance
     to shrink — pushing .rp-timeline-source (flex:none, nowrap) onto its own
     line instead. A zero basis keeps the row on one flex line and makes the
     event's own text wrap to a second line in its place, leaving the source
     pill on line 1 where it belongs. */
  .rp-timeline-event { flex: 1 1 0%; }
  .rp-timeline-source {
    margin-left: calc(20px + var(--spacing-padding-inline) * 3);
  }
}

/* 600px and below: the row becomes a stack — date beside the marker, then the
   event on its own line, then the source pill on a third, both indented to sit
   under the date. At this width the one-line arrangement above has the event
   squeezed to a couple of words per line while the pill still holds its full
   nowrap width, so giving each part its own line reads better than compressing
   all three.

   One declaration does it, because the 767px block above already supplies
   everything else this tier needs: the row is top-aligned, the spine is anchored
   at the marker's centre, the date's fixed width is released, and the pill
   carries the 32px indent. Forcing the event to a full-width line pushes the
   pill onto a third line, where that existing margin lines it up for free.

   flex-basis 100% plus padding-left is safe here: `* { box-sizing: border-box }`
   in site.css keeps the indent inside the 100% instead of overflowing it. The
   32px matches the pill's own indent — marker (20px) + the row gap (12px) — so
   the event, the pill and the date above them share one left edge. */
@media (max-width: 600px) {
  .rp-timeline-event {
    flex: 0 0 100%;
    padding-left: calc(20px + var(--spacing-padding-inline) * 3);
  }
}

/* --- insights (collapsible) --- */
.rp-insights {
  background: var(--lp-panel);
  border-radius: 24px;
  padding: 40px 50px 50px 40px;
}
/* The reference absolutely positions the toggle over the title and vertically
   centres it by eye. A flex row gets the same result without the two having to
   agree on a magic offset, and the toggle stays centred if the title wraps.
   min-height is the reference's 85px title box — generous on purpose, and
   consistent across all five text nodes in this card. */
.rp-insights-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(var(--spacing-padding-inline) * 6);
  min-height: 55px;
  /* Title-to-first-divider spacing, explicitly requested at 32px. */
  margin-bottom: 32px;
}
@media (max-width: 767px) {
  .rp-insights-header { margin-bottom: 28px; }
}
.rp-insights-title {
  margin: 0;
  font-size: var(--rp-font-lead);
  font-weight: var(--font-weight-medium);
  line-height: 1.3;
  color: var(--lp-black);
}

.rp-insights-toggle {
  flex: none;
  width: 33px;
  height: 33px;
  padding: 0;
  border: 0;
  border-radius: 100px;
  background: var(--lp-black);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.18s ease;
}
.rp-insights-toggle:hover { box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.12); }
/* Only shown once report.js has taken over — a button that cannot do anything is
   worse than no button. */
.rp-insights:not(.rp-insights--interactive) .rp-insights-toggle { display: none; }
/* The glyph is drawn from the state rather than swapped in JS, so markup and
   appearance cannot drift apart: minus when open, plus when closed. */
.rp-insights-glyph::before {
  content: '+';
  font-size: 20px;
  font-weight: var(--font-weight-bold);
  line-height: 1;
}
.rp-insights.is-open .rp-insights-glyph::before { content: '\2212'; }

/* Gap between one insight's text and the NEXT insight's divider — explicitly
   requested at 40px. */
.rp-insights-body {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
/* Gap between the insight-head and its own text — explicitly requested at 8px. */
.rp-insight {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
/* padding-top (not centred min-height any more): the divider-to-heading gap is
   now an explicit, requested 8px rather than derived from box centring. */
.rp-insight-head {
  margin: 0;
  padding-top: 8px;
  border-top: 1px solid var(--rp-rule);
  font-size: var(--alpha-body-medium);
  font-weight: var(--font-weight-medium);
  line-height: 1.3;
  color: var(--lp-black);
}
.rp-insight-text {
  margin: 0;
  font-size: var(--alpha-body-small);
  font-weight: var(--font-weight-regular);
  line-height: 1.3;
  color: var(--lp-black);
}
.rp-insight-text + .rp-insight-text { margin-top: 15px; }

/* Collapsed: the bodies go, the headings and rules stay — which is what makes the
   collapsed card read as a summary. Only the paragraphs are hidden, so .rp-insight
   keeps its own gap collapsed to nothing via :empty-like behaviour below.
   Scoped away from --accordion (the per-item shape below), where the card has no
   .is-open of its own and this would hide every body permanently. This pair still
   serves company/show.php's original hardcoded card. */
.rp-insights--interactive:not(.rp-insights--accordion):not(.is-open) .rp-insight-text { display: none; }
.rp-insights--interactive:not(.rp-insights--accordion):not(.is-open) .rp-insight { gap: 0; }

/* --- per-item accordion (.rp-insights--accordion, from report.php) -----------------
   One toggle per insight, one open at a time. The heading row IS the button: full width,
   no chrome of its own, inheriting the h4's type so it reads as a heading rather than a
   control. outline:none per the brand rules — the glyph and the open body are the state. */
.rp-insight-toggle {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  outline: none;
}
/* The open row's title goes orange, matching the glyph, so which insight is open stays
   legible from the headings alone once the body scrolls past. Faded over the same 0.28s as
   the panel so colour and opening move together rather than the title snapping ahead.
   Deliberately NOT in the reduced-motion block below - a colour fade carries no motion.
   Scoped to --accordion so show.php's card-level version is untouched. */
.rp-insight-head-text { flex: 1; min-width: 0; transition: color 0.28s ease; }
.rp-insights--accordion .rp-insight.is-open .rp-insight-head-text { color: var(--lp-orange); }
/* Same +/− drawn-from-state convention as .rp-insights-glyph, so markup and appearance
   cannot drift: minus when this insight is open, plus when it is closed. */
.rp-insight-glyph { flex: none; }
.rp-insight-glyph::before {
  content: '+';
  font-size: 22px;
  color: var(--lp-orange);
  font-weight: var(--font-weight-medium);
  line-height: 1;
}
.rp-insight.is-open .rp-insight-glyph::before { content: '\2212'; }
/* Only a control once report-cms.js has taken over — before that every panel is open, so
   a +/− would advertise a state change that cannot happen. */
.rp-insights--accordion:not(.rp-insights--interactive) .rp-insight-toggle { cursor: default; }
.rp-insights--accordion:not(.rp-insights--interactive) .rp-insight-glyph { display: none; }

/* Smooth open/close. grid-template-rows 0fr -> 1fr is the trick that makes this animate to
   the content's OWN height with no measured pixel value and no JS: 1fr resolves to exactly
   what the inner box needs. `display: none` — the obvious way to collapse — is not
   animatable, which is why the panel is a grid rather than simply hidden.

   The inner box carries overflow:hidden (so the text is clipped while the row shrinks) and
   visibility, which is the accessibility half: a panel left at zero height with visible
   content is still in the accessibility tree and its links are still tabbable, so a screen
   reader would read a section the eye cannot see. visibility:hidden removes it from both,
   and its transition is delayed by the full duration so it only disappears once the row has
   finished closing — and returns instantly on the way open. */
.rp-insights--accordion.rp-insights--interactive .rp-insight-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
}
.rp-insights--accordion.rp-insights--interactive .rp-insight.is-open .rp-insight-panel {
  grid-template-rows: 1fr;
}
.rp-insights--accordion.rp-insights--interactive .rp-insight-panel-inner {
  overflow: hidden;
  min-height: 0; /* without this a grid item refuses to shrink below its content */
  visibility: hidden;
  transition: visibility 0s linear 0.28s;
}
.rp-insights--accordion.rp-insights--interactive .rp-insight.is-open .rp-insight-panel-inner {
  visibility: visible;
  transition-delay: 0s;
}
/* gap is animatable, so the 8px heading-to-body space closes with the row instead of
   snapping shut a beat early. */
.rp-insights--accordion.rp-insights--interactive .rp-insight { transition: gap 0.28s ease; }
.rp-insights--accordion.rp-insights--interactive .rp-insight:not(.is-open) { gap: 0; }

@media (prefers-reduced-motion: reduce) {
  .rp-insights--accordion.rp-insights--interactive .rp-insight-panel,
  .rp-insights--accordion.rp-insights--interactive .rp-insight-panel-inner,
  .rp-insights--accordion.rp-insights--interactive .rp-insight { transition: none; }
}

/* --- verification table ---
   The reference's "Trust, but verify" data is literal source-attribution, not
   a chart — same reasoning as .rp-timeline. Reuses .rp-chart's card shell,
   .rp-chart-title, and .rp-chart-legend (the identical lime/orange dot
   convention already used for the chapter 5 scatter and chapter 6 survival
   chart) rather than duplicating them; only the table markup itself is new.
   A real <table> rather than a flex-row rebuild of the reference's layout,
   since this data genuinely has rows and columns — a screen reader gets
   header associations for free that a div grid would have to fake. */
/* Scrollbar geometry stays reserved at all times (5px, not none) — only its
   colour animates on interaction. Toggling display/width instead would reflow
   the table on every hover on platforms with classic space-taking scrollbars.
   Deliberately NOT setting scrollbar-width/scrollbar-color here: Chromium gives
   those standard properties precedence over ::-webkit-scrollbar-* on the same
   element, which silently disabled the thumb-colour rules below at every
   state, hover included — the earlier attempt at this looked like the
   scrollbar had been removed entirely. */
.rp-verify-scroll { overflow-x: auto; }
.rp-verify-scroll::-webkit-scrollbar { height: 5px; }
.rp-verify-scroll::-webkit-scrollbar-track { background: transparent; }
.rp-verify-scroll::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 100px;
  transition: background-color 0.2s ease;
}
/* :focus-within covers keyboard scrolling (Tab into the table, arrow keys);
   :active covers a drag that leaves the box before release. #BFBFBF matches
   the table's own row-border colour below rather than introducing a new one. */
.rp-verify-scroll:hover::-webkit-scrollbar-thumb,
.rp-verify-scroll:focus-within::-webkit-scrollbar-thumb,
.rp-verify-scroll:active::-webkit-scrollbar-thumb { background: #BFBFBF; }
/* Touch scrolling never fires :hover or :active, so a finger-drag on mobile
   would otherwise never reveal the thumb at all — report.js toggles this
   class for the duration of an actual scroll. */
.rp-verify-scroll.is-scrolling::-webkit-scrollbar-thumb { background: #BFBFBF; }
.rp-verify-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  /* Fixed layout: without it, the browser sizes columns by content and the
     long, barely-breakable "Not independently confirmed" verification text
     squeezes Nature enough to wrap "Self-reported" — the nth-child widths
     below only take effect once column sizing stops following content. */
  table-layout: fixed;
}
.rp-verify-table th {
  text-align: left;
  padding: 0 calc(var(--spacing-padding-inline) * 4) calc(var(--spacing-padding-inline) * 3);
  font-size: var(--rp-font-table);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.06em;
  color: var(--lp-black);
  white-space: nowrap;
}
.rp-verify-table thead tr th{
   text-transform: uppercase;
}

.rp-verify-table td {
  padding: calc(var(--spacing-padding-inline) * 3) calc(var(--spacing-padding-inline) * 4);
  border-top: 1px solid #BFBFBF;
  font-size: var(--rp-font-table);
  line-height: 1.35;
  color: var(--lp-black);
  vertical-align: middle;
}
/* The th cells carry no border, so the line under the header IS the first data
   row's border-top — drawn orange to separate the header from the body. */
.rp-verify-table tbody tr:first-child td { border-top-color: var(--lp-orange); }
/* Column proportions from the reference's 260/170/138/190 split (claim's 260
   folds in the 28px dot column the reference draws separately — here the dot
   sits inside the claim cell instead, so the two are combined). */
.rp-verify-table th:nth-child(1), .rp-verify-table td:nth-child(1) { width: 34%; }
.rp-verify-table th:nth-child(2), .rp-verify-table td:nth-child(2) { width: 20%; }
.rp-verify-table th:nth-child(3), .rp-verify-table td:nth-child(3) { width: 20%; }
.rp-verify-table th:nth-child(4), .rp-verify-table td:nth-child(4) { width: 26%; }
.rp-verify-claim {
  display: flex;
  align-items: center;
  gap: calc(var(--spacing-padding-inline) * 3);
}
.rp-verify-dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lp-orange);
}
.rp-verify-dot--verified { background: #B8FD15; }
/* How the claim was established. Replaces the old verified/not-verified pair on
   this table: that axis now lives entirely in the Verification column's badge,
   leaving the dot free to carry nature instead. */
.rp-verify-dot--self     { background: var(--rp-evidence-self); }
.rp-verify-dot--measured { background: var(--rp-evidence-measured); }
.rp-verify-dot--third    { background: var(--rp-evidence-third); }
.rp-verify-badge { font-size: 12px; }
.rp-verify-badge--high { color: var(--lp-orange); }

/* Verification outcome, as a traffic light: stands / partial / does not stand.
   Darker than the dot key's mid-tones on purpose — these are 12px TEXT on white,
   where #22C55E lands around 2:1 contrast, while the dots are shapes and carry no
   reading burden. The hues still read green / amber / red against each other. */
.rp-verify-badge--stands  { color: #15803D; }
.rp-verify-badge--partial { color: #B45309; }
.rp-verify-badge--fails   { color: #B91C1C; }

/* Chapter 7's summary table: same shell, 3 columns instead of 4 and no dot
   column, so the widths are restated rather than inherited.
   The split is lopsided because the columns are: a short label, a single figure,
   and the comparison behind it. That last one carries whole clauses ("Marketing
   tag, 2006–21 (n=109): 32% acquired / 25% inactive / 43% active") while the
   middle one never exceeds "9 staff, 92 visits" — an even split would wrap the
   third column to three lines while the second sat half empty. */
.rp-verify-table--summary th:nth-child(1),
.rp-verify-table--summary td:nth-child(1) { width: 20%; }
.rp-verify-table--summary th:nth-child(2),
.rp-verify-table--summary td:nth-child(2) { width: 17%; }
.rp-verify-table--summary th:nth-child(3),
.rp-verify-table--summary td:nth-child(3) { width: 63%; }

/* A dark orange, distinct from --lp-orange: the reference uses #C05227 for this
   column specifically (against the card title's brighter #F06731), so it is a
   one-off literal rather than a token. NOT struck through — confirmed against
   the CSS export, which carries no text-decoration here.
   Needs the `td` prefix: `.rp-verify-table td` above sets colour and, being
   class-plus-element, out-specifies a bare `.rp-verify-stronger` class. */
.rp-verify-table td.rp-verify-stronger { color: var(--lp-black); }


/* Chapter 8's evidence table: two columns, because Nature is now the dot's
   COLOUR rather than a column of text (see .rp-verify-dot--* above), and Source
   is folded into the claim text itself.
   Its claim cells run to several lines each, unlike the one-line rows the base
   table's `vertical-align: middle` and 12px block padding were written for — so
   this variant top-aligns both the cell and the dot, and opens the rows up. A
   badge centred against a five-line claim reads as attaching to the middle of
   it rather than to the row. */
.rp-verify-table--evidence th:nth-child(1),
.rp-verify-table--evidence td:nth-child(1) { width: 70%; }
.rp-verify-table--evidence th:nth-child(2),
.rp-verify-table--evidence td:nth-child(2) { width: 30%; }
.rp-verify-table--evidence td {
  vertical-align: top;
  padding-block: calc(var(--spacing-padding-inline) * 4);
}
.rp-verify-table--evidence .rp-verify-claim { align-items: flex-start; }
/* Centres the dot on the first LINE rather than on the cell: half the difference
   between that line's box (--rp-font-table x the 1.35 line-height set on td) and
   the dot's own 9px. */
.rp-verify-table--evidence .rp-verify-dot {
  margin-top: calc((var(--rp-font-table) * 1.35 - 9px) / 2);
}

/* Even split, for a two-column --evidence table whose SECOND column is prose too.
   --evidence's own 70/30 above assumes a claim beside a short badge; the
   limitations table has a sentence on both sides, so neither earns the extra
   room. Rides alongside --evidence rather than replacing it, since everything
   else that variant does (top-aligned cells, opened-up rows) still applies.
   Must stay AFTER the 70/30 rules: same specificity, so source order is what
   makes this win. */
.rp-verify-table--evidence-2 th:nth-child(1),
.rp-verify-table--evidence-2 td:nth-child(1),
.rp-verify-table--evidence-2 th:nth-child(2),
.rp-verify-table--evidence-2 td:nth-child(2) { width: 50%; }

/* --- reveal-on-scroll text ---
   Chapter 8's closing statement starts grey and turns black word by word as the
   reader scrolls through it. report.js splits the paragraph into one span per
   word and adds .is-lit to each as the reading line passes it; the transition
   is what keeps that from looking like a hard flicker.

   The grey is --rp-toc-idle, the token already used for unreached TOC labels —
   the same "not there yet" state, so it reads consistently. */
.rp-reveal-word {
  color: var(--rp-toc-idle);
  transition: color 0.25s ease;
}
.rp-reveal-word.is-lit { color: var(--lp-black); }
/* Reduced-motion: the colour change IS the content cue here, so it is kept —
   only the easing is dropped, so words switch instantly instead of fading. */
@media (prefers-reduced-motion: reduce) {
  .rp-reveal-word { transition: none; }
}
@media (prefers-reduced-motion: reduce) {
  .rp-progress-fill { transition: none; }
  .rp-progress { transition: none; }
}

/* The report's final paragraph: the reference gives it the same 40px of air
   above as the closing statement, but no top rule. */
.rp-closing { padding-top: 0px; }

/* ==========================================================================
   REFERENCES
   An appendix to the whole report, spanning the full wrap rather than the
   chapter column. Every size here maps onto an existing token (24/20/16px are
   --alpha-body-medium / -small / -xs), so this block declares none of its own.
   ========================================================================== */
/* No top padding: .rp-chapters' own 200px bottom padding is the gap above this
   section, exactly as .rp-stats leans on .rp-overview's. Keeping the
   reference's 200px top here as well would stack the two into 400px. */
.rp-refs { padding: 0 var(--section-pad-inline) var(--rp-section-gap); }
.rp-refs > .lp-wrap {
  padding-inline: 0;
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-padding-inline) * 10);
}

/* Black hairline above the heading; the note at the bottom gets a lighter one
   (--lp-border) — the reference deliberately weights the two differently, so
   the appendix opens on a firm rule and closes on a soft one. */
.rp-refs-head {
  border-top: 1px solid var(--lp-black);
  padding-top: calc(var(--spacing-padding-inline) * 5);
}
.rp-refs-head h2 {
  margin: 0;
  font-size: var(--alpha-body-medium);
  font-weight: var(--font-weight-medium);
  line-height: 1.45;
  color: var(--lp-black);
}

/* Two independent columns, each an <ol> that stacks its own entries and grows
   as tall as it needs — no fixed row cap. The second column is optional; when
   absent, .rp-refs-cols--single collapses to one column. Numbering is applied
   server-side (column 2 continues from column 1), so each list just stacks. */
.rp-refs-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: calc(var(--spacing-padding-inline) * 10);
  align-items: start;
}
.rp-refs-cols--single {
  grid-template-columns: minmax(0, 1fr);
}
.rp-refs-list {
  margin: 0;
  padding: 0;
  list-style: none; /* the bracketed orange marker is drawn as a span instead */
  display: flex;
  flex-direction: column;
  row-gap: calc(var(--spacing-padding-inline) * 8);
}
.rp-ref {
  display: flex;
  align-items: flex-start;
  gap: calc(var(--spacing-padding-inline) * 3);
}
.rp-ref-marker {
  flex: none;
  font-size: var(--alpha-body-small);
  font-weight: var(--font-weight-medium);
  /* 1.5 against the text's 1.3, per the reference — the marker sits in a
     slightly taller line box than the first line of its entry. */
  line-height: 1.5;
  color: var(--lp-orange);
}
.rp-ref-text {
  margin: 0;
  font-size: var(--alpha-body-small);
  font-weight: var(--font-weight-regular);
  line-height: 1.3;
  color: var(--lp-black);
}
/* Links inside a reference (linkable_text in app/helpers.php): orange, no underline.
   The colour alone marks them, matching the bracketed [n] marker's accent. */
.rp-ref-text a,
.rp-refs-note a {
  color: var(--lp-orange);
  text-decoration: none;
}

.rp-refs-note {
  border-top: 1px solid var(--lp-border);
  padding-top: calc(var(--spacing-padding-inline) * 6);
}
.rp-refs-note p {
  margin: 0;
  font-size: var(--alpha-body-xs);
  font-weight: var(--font-weight-regular);
  line-height: 1.55;
  color: var(--lp-black);
}

/* One column below 767px: two columns of ~330px is too narrow for 20px text to
   set well, and the row pairing that justifies the grid stops helping once each
   entry is only a few words wide. */
@media (max-width: 767px) {
  .rp-refs-cols {
    grid-template-columns: 1fr;
    row-gap: calc(var(--spacing-padding-inline) * 8);
  }
}

/* --- author box (section 9) ---
   Design carried from av_codebase post.php's .av-single-author-box: a white
   40px-radius card on the page's grey ground, 64px round avatar, orange
   designation line, black pill button that hovers orange, stacking to a column
   under 768px. Values that were hardcoded there (#fff card, #F06831 accents,
   the 24/16/20px type steps) map onto this file's tokens — --lp-panel,
   --lp-orange, and the --alpha-body-* ladder, which already steps those same
   sizes down per breakpoint, so no extra responsive rules are needed for type. */
.rp-author-section { padding: 0 var(--section-pad-inline) var(--rp-section-gap); }
.rp-author-section > .lp-wrap { padding-inline: 0; }
.rp-author {
  background: var(--lp-panel);
  border-radius: 40px;
  padding: 32px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.rp-author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
/* No avatar URL: the author's initial in a 10%-orange disc (the reference's
   rgba(240,104,49,.1) treatment, on our own orange). */
.rp-author-initial {
  background: rgba(240, 103, 49, 0.1);
  color: var(--lp-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: var(--font-weight-bold);
}
.rp-author-body { min-width: 0; }
.rp-author-name {
  font-size: var(--alpha-body-medium);
  font-weight: var(--font-weight-bold);
  line-height: 1.3;
  color: var(--lp-black);
}
.rp-author-role {
  font-size: var(--alpha-body-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--lp-orange);
}
.rp-author-bio {
  margin: 14px 0 0;
  font-size: var(--alpha-body-small);
  line-height: 1.5;
  color: var(--lp-black);
  max-width: 850px;
}
/* Two class levels on purpose — `.landing a { color: inherit }` (one class plus an
   element) would otherwise out-specify a lone .rp-author-btn and force the label
   back to black-on-black. Same trap .cp-filter-header documents in landing.css. */
.rp-author .rp-author-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 14px 28px;
  background: var(--lp-black);
  color: #fff;
  font-size: 16px;
  line-height: 150%;
  border-radius: 100px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}
.rp-author .rp-author-btn:hover { background: var(--lp-orange); }
/* The reference stacks the card at its phone breakpoint (767px), same one the
   refs columns collapse at above. */
@media (max-width: 767px) {
  .rp-author { flex-direction: column; }
}

/* --- chapters: narrow layouts --- */
/* Below 1024 the TOC is dropped rather than restyled. At 260px it is already a
   third of the usable width, and its whole purpose — a progress rail read
   alongside the prose — stops working once it has to sit above the content. The
   chapter headings carry the structure instead. */
.rp-mtoc, .rp-progress { display: none; }

@media (max-width: 1024px) {
  .rp-toc { display: none; }
  .rp-chapters-layout { gap: 0; }

  /* Whole-page progress. Lives INSIDE .rp-mtoc (last child), pinned to the
     box's bottom edge, so it rides along with the sticky bar instead of
     floating at the top of the header. Hidden by default: report.js only adds
     .is-visible for the range .rp-mtoc is actually stuck to the top for (see
     the "Sticky chapter TOC" IIFE). opacity+visibility, not display, so the
     transition can animate and .rp-progress-fill's own width isn't reset by
     display:none while hidden. z-index 1 keeps the line painted over the
     opened panel's top seam (both are positioned children of .rp-mtoc). */
  .rp-progress {
    display: block;
    position: absolute; left: 0; right: 0; bottom: 0;
    height: 3px; z-index: 1;
    background: var(--lp-border);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }
  .rp-progress.is-visible {
    opacity: 1;
    visibility: visible;
  }
  .rp-progress-fill {
    width: 0; height: 100%;
    background: var(--lp-orange);
    transition: width 0.18s linear; /* same easing as .rp-toc-fill */
  }

  /* Collapsible chapter bar, replacing the sidebar exactly where it hides.
     z-index 70: above the FAB (60), below the nav's mobile overlay (90). */
  .rp-mtoc {
    display: block;
    position: sticky;
    top: var(--lp-nav-h-scrolled);
    z-index: 70;
    /* Full-bleed: cancels .rp-chapters' own --section-pad-inline gutter,
       since .rp-chapters > .lp-wrap has already zeroed its own padding. */
    margin-inline: calc(var(--section-pad-inline) * -1);
    margin-bottom: calc(var(--spacing-padding-inline) * 8);
    background: var(--lp-panel);
    border-bottom: 1px solid var(--rp-rule);
  }
  .rp-mtoc-bar {
    width: 100%; border: 0; background: none; cursor: pointer;
    display: flex; align-items: center;
    gap: calc(var(--spacing-padding-inline) * 3);
    padding: calc(var(--spacing-padding-inline) * 4) var(--section-pad-inline);
    font-size: var(--alpha-body-medium);
    font-weight: var(--font-weight-medium);
    color: var(--lp-black);
  }
  /* Plain 3-bar hamburger — no dots, unlike a bulleted-list glyph. */
  .rp-mtoc-icon {
    flex: none; width: 20px; height: 20px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Crect x='32' y='56' width='192' height='16' rx='8'/%3E%3Crect x='32' y='120' width='192' height='16' rx='8'/%3E%3Crect x='32' y='184' width='192' height='16' rx='8'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Crect x='32' y='56' width='192' height='16' rx='8'/%3E%3Crect x='32' y='120' width='192' height='16' rx='8'/%3E%3Crect x='32' y='184' width='192' height='16' rx='8'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  .rp-mtoc-label {
    flex: 1 1 auto; text-align: left;
    /* Explicit: the bar is a <button>, and buttons don't inherit the page font. */
    font-family: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  }
  /* +/x drawn from state, same convention as .rp-insights-glyph above.
     display:none for now (was flex) — the sizing/centering rules are kept so
     restoring it is a one-word change. */
  .rp-mtoc-glyph {
    flex: none; width: 34px; height: 34px; border-radius: 50%;
    border: 1px solid var(--rp-rule);
    display: none; align-items: center; justify-content: center;
  }
  .rp-mtoc-glyph::before { content: '+'; font-size: 20px; line-height: 1; }
  .rp-mtoc-bar[aria-expanded="true"] .rp-mtoc-glyph::before { content: '\00D7'; }

  /* Absolute, not in flow — the panel overlays the chapters instead of
     shoving them down as it opens. */
  .rp-mtoc-panel {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    max-height: calc(100vh - var(--lp-nav-h-scrolled) - 60px);
    overflow-y: auto;
    background: var(--lp-panel);
    border-bottom: 1px solid var(--rp-rule);
    padding: 0 var(--section-pad-inline) calc(var(--spacing-padding-inline) * 5);
  }
  .rp-mtoc-panel.is-open { display: block; }
  .rp-mtoc-list { margin: 0; padding: 0; list-style: none; }
  .rp-mtoc-item {
    font-size: var(--alpha-body-small);
    color: var(--rp-toc-idle);
    transition: color 0.2s ease;
  }
  .rp-mtoc-item.is-active { color: var(--lp-orange); }
  .rp-mtoc-item a {
    color: inherit; display: flex;
    gap: calc(var(--spacing-padding-inline) * 4);
    padding: calc(var(--spacing-padding-inline) * 3) 0;
  }
  .rp-mtoc-num { flex: none; color: var(--lp-muted); }
  .rp-mtoc-item.is-active .rp-mtoc-num { color: var(--lp-orange); }

  /* The bar now covers part of the anchor target too, so a chapter jump must
     clear both the header and the bar, or the heading lands underneath it. */
  .rp-chapter { scroll-margin-top: calc(var(--lp-nav-h-scrolled) + 56px + calc(var(--spacing-padding-inline) * 8)); }
}
@media (max-width: 767px) {
  .rp-chapter { gap: calc(var(--spacing-padding-inline) * 10); }
  .rp-insights {
    border-radius: 28px;
    padding: calc(var(--spacing-padding-inline) * 6);
  }
  .rp-chart { border-radius: 20px; }
}

/* ==========================================================================
   Components added for the Squid report (app/views/company/squid.php)
   --------------------------------------------------------------------------
   New selectors ONLY — nothing above is edited, so InstaAgent renders exactly
   as before. Per the report design guidelines: type sizes come from the
   existing --alpha-* / --rp-* ladder (no new styles), no box-shadow anywhere,
   no strokes around cards, and black is never a key colour in a visual.
   ========================================================================== */

/* --- qualitative cards (.rp-stats--text) ---
   The stats grid with words instead of numbers: a small lead line where the
   big centred heading would be, and a title in place of the h0 value. */
.rp-stats-lead {
  margin: 0;
  font-size: var(--alpha-body-small);
  font-weight: var(--font-weight-regular);
  line-height: 1.3;
  color: var(--lp-black);
}
.rp-stats--text > .lp-wrap { gap: calc(var(--spacing-padding-inline) * 8); }
.rp-stat-title {
  margin: 0 0 calc(var(--spacing-padding-inline) * 4);
  font-size: var(--alpha-heading-h4);
  font-weight: var(--font-weight-medium);
  line-height: 1.3;
  color: var(--lp-black);
}

/* Squid's mark is a raster crop, not InstaAgent's stretch-to-fit SVG, so it keeps
   its own aspect ratio inside the same 40% slot. */
.rp-overview-mark-logo--raster { object-fit: contain; }

/* --- prose additions --- */
.rp-prose-sub {
  margin: calc(var(--spacing-padding-inline) * 4) 0 0;
  font-size: var(--alpha-heading-h4);
  font-weight: var(--font-weight-medium);
  line-height: 1.3;
  color: var(--lp-black);
}
.rp-prose-group > .rp-prose-sub:first-child { margin-top: 0; }

/* Numbered list in prose type; the numbers take the accent like the ref markers. */
.rp-steps {
  margin: 0;
  padding-left: 1.4em;
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-padding-inline) * 3);
  font-size: var(--alpha-body-medium);
  font-weight: var(--font-weight-regular);
  line-height: 1.3;
  color: var(--lp-black);
}
.rp-steps li { padding-left: 4px; }
.rp-steps li::marker { color: var(--lp-orange); font-weight: var(--font-weight-medium); }

/* [N] citation: small superscript link into #ref-N. Muted until hovered, so a
   dense run of sources doesn't read as emphasis. */
.rp-cite {
  margin-left: 1px;
  font-size: 0.7em;
  line-height: 0;
  vertical-align: super;
  color: var(--lp-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.rp-cite:hover, .rp-cite:focus-visible { color: var(--lp-orange); }
.rp-ref { scroll-margin-top: calc(var(--lp-nav-h-scrolled) + calc(var(--spacing-padding-inline) * 8)); }
.rp-ref:target .rp-ref-marker,
.rp-ref:target .rp-ref-text { color: var(--lp-orange); }

/* Small uppercase label above an insight's text ("Most likely"). Muted grey, as in
   the design: it classifies the path, it isn't emphasis. */
.rp-insight-tag {
  margin: 0 0 calc(var(--spacing-padding-inline) * 2);
  font-size: var(--alpha-body-xs);
  font-weight: var(--font-weight-medium);
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lp-muted);
}
/* Source note that follows an insights card directly. */
.rp-insights-note { margin-top: 0; }

/* Second line under a verification badge ("Would settle it: ..."). */
.rp-verify-settle {
  display: block;
  margin-top: 4px;
  color: var(--lp-muted);
}
.rp-verify-table--evidence .rp-verify-badge { display: block; }

/* --- layer stack (.rp-layers) ---
   Five horizontal bands, a flow arrow on the left, "who is there" on the right.
   Bands are told apart by FILL only — no borders or dashed outlines — and the
   letter discs use the report's orange tints, never black. Hover dims the other
   rows; nothing moves and nothing casts a shadow. */
.rp-layers-stack {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  column-gap: 16px;
  row-gap: 10px;
}
.rp-layers-stack > li { grid-column: 2; }
.rp-layers-stack > .rp-layers-flow { grid-column: 1; grid-row: 2 / span 3; }
.rp-layers-head,
.rp-layers-row {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}
.rp-layers-head,
.rp-layers-divider,
.rp-layers-flow-top,
.rp-layers-flow-bottom {
  font-size: var(--alpha-body-xxs);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lp-muted);
}
.rp-layers-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 6px;
}
.rp-layers-flow-top,
.rp-layers-flow-bottom {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
}
.rp-layers-flow-line {
  position: relative;
  flex: 1;
  width: 2px;
  margin: 10px 0;
  background: var(--lp-border);
}
.rp-layers-flow-line::after {
  content: "";
  position: absolute;
  left: -5px;
  bottom: -2px;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 9px solid var(--lp-border);
}
.rp-layers-row { outline: none; transition: opacity 0.2s ease; }
.rp-layers-band {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 92px;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--lp-bg-light);
}
.rp-layers-letter {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--lp-orange);
  color: #fff;
  font-size: var(--alpha-body-xs);
  font-weight: var(--font-weight-medium);
}
.rp-layers-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rp-layers-name {
  font-size: var(--alpha-body-small);
  font-weight: var(--font-weight-medium);
  line-height: 1.3;
  color: var(--lp-black);
}
.rp-layers-desc,
.rp-layers-who {
  font-size: var(--alpha-body-xs);
  line-height: 1.4;
  color: var(--lp-black);
}
.rp-layers-who b { font-weight: var(--font-weight-medium); color: var(--lp-orange); }
.rp-layers-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #fff;
  color: var(--lp-orange);
  font-size: var(--alpha-body-xxs);
  font-weight: var(--font-weight-medium);
  vertical-align: 2px;
}
/* B, the layer Squid pitches in: solid accent band. */
.rp-layers-row--lead .rp-layers-band { background: var(--lp-orange); }
.rp-layers-row--lead .rp-layers-letter { background: #fff; color: var(--lp-orange); }
.rp-layers-row--lead .rp-layers-name,
.rp-layers-row--lead .rp-layers-desc { color: #fff; }
/* Supporting layers step down in tint instead of switching to outlines. */
.rp-layers-row--support .rp-layers-letter { background: #F6A483; }
.rp-layers-row--base .rp-layers-letter { background: #F9C2AD; color: var(--lp-orange-deep); }
.rp-layers-row--support .rp-layers-band { background: #F7F7F7; }
.rp-layers-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 2px;
}
.rp-layers-divider::after { content: ""; flex: 1; height: 1px; background: var(--lp-border); }
.rp-layers-stack:hover .rp-layers-row,
.rp-layers-stack:focus-within .rp-layers-row { opacity: 0.55; }
.rp-layers-stack .rp-layers-row:hover,
.rp-layers-stack .rp-layers-row:focus { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .rp-layers-row { transition: none; } }
@media (max-width: 767px) {
  .rp-layers-stack { grid-template-columns: minmax(0, 1fr); }
  .rp-layers-stack > li { grid-column: 1; }
  .rp-layers-stack > .rp-layers-flow,
  .rp-layers-head { display: none; }
  .rp-layers-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .rp-layers-band { min-height: 0; padding: 16px; }
  .rp-layers-who { padding: 0 6px 8px; }
  .rp-layers-who::before { content: "Who is there: "; font-weight: var(--font-weight-medium); }
}

/* --- GB distribution map (.rp-map) ---
   Native replacement for the designer's iframe: Satoshi from the page, the report
   palette, sits in the standard white chart card (no extra border or dot grid).
   The SVG paths, owner rows and inspector text come from report-map-gb.js. */
.rp-map-sub {
  margin: -16px 0 24px;
  max-width: 90%;
  font-size: var(--alpha-body-xs);
  line-height: 1.4;
  color: var(--lp-muted);
}
.rp-map-console {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin: 0 0 20px;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--lp-bg-light);
}
.rp-map-read {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--alpha-body-xs);
  font-variant-numeric: tabular-nums;
  color: var(--lp-black);
}
.rp-map-read b { font-weight: var(--font-weight-medium); }
.rp-map-seg {
  margin-left: auto;
  display: flex;
  padding: 4px;
  gap: 4px;
  border-radius: 999px;
  background: #fff;
}
.rp-map-seg button {
  padding: 6px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--lp-black);
  font: inherit;
  font-size: var(--alpha-body-xs);
  cursor: pointer;
}
.rp-map-seg button[aria-pressed="true"] { background: var(--lp-orange); color: #fff; }
.rp-map-seg button:focus-visible { outline: 2px solid var(--lp-orange); outline-offset: 2px; }

/* Status lamps: lit (documented), blinking (named, unconfirmed), dark (none). */
.rp-map-lamp {
  flex: none;
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--rp-toc-idle);
}
.rp-map-lamp.is-live,
.rp-map-lamp.is-blink { background: var(--c); border-color: var(--c); }
.rp-map-lamp.is-dark { background: var(--lp-gauge-bg); }

.rp-map-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.rp-map-svg { display: block; width: 100%; height: auto; max-height: 78vh; }
.rp-map-area {
  stroke: #fff;
  stroke-width: 1.1;
  cursor: pointer;
  outline: none;
  transition: fill 0.45s, opacity 0.3s, stroke 0.2s, stroke-width 0.2s;
}
.rp-map-svg.is-focus .rp-map-area:not(.is-hot) { opacity: 0.5; }
.rp-map-area.is-hot,
.rp-map-area:focus-visible { stroke: var(--lp-black); stroke-width: 1.8; }
.rp-map-glow { fill: none; stroke-width: 5; opacity: 0; pointer-events: none; }
.rp-map-marker { pointer-events: none; }
.rp-map-marker .rp-map-ring { fill: none; stroke-width: 1.5; opacity: 0; }
.rp-map-marker .rp-map-dot { stroke: #fff; stroke-width: 1.5; }

.rp-map-side { display: flex; flex-direction: column; gap: 14px; }
.rp-map-panel {
  padding: 16px;
  border-radius: 16px;
  background: var(--lp-bg-light);
}
.rp-map-panel-title {
  margin: 0 0 10px;
  font-size: var(--alpha-body-xs);
  font-weight: var(--font-weight-medium);
  color: var(--lp-muted);
}
.rp-map-empty {
  margin: 0;
  font-size: var(--alpha-body-xs);
  line-height: 1.4;
  color: var(--lp-muted);
}
.rp-map-insp-area {
  margin: 0 0 4px;
  font-size: var(--alpha-body-small);
  font-weight: var(--font-weight-medium);
  line-height: 1.3;
  color: var(--lp-black);
}
.rp-map-insp-owner {
  margin: 0 0 12px;
  font-size: var(--alpha-body-xs);
  line-height: 1.4;
  color: var(--lp-black);
}
.rp-map-status {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  font-size: var(--alpha-body-xs);
  line-height: 1.4;
  color: var(--lp-black);
}
.rp-map-status .rp-map-lamp { margin-top: 5px; }
.rp-map-status b { display: block; font-weight: var(--font-weight-medium); }
.rp-map-own {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px 6px;
  border-top: 1px solid var(--lp-border);
  border-radius: 8px;
  cursor: pointer;
  outline: none;
}
.rp-map-own:hover,
.rp-map-own.is-hot,
.rp-map-own:focus-visible { background: #fff; }
.rp-map-sw { width: 12px; height: 12px; border-radius: 3px; background: var(--c); }
.rp-map-own-name { font-size: var(--alpha-body-xs); color: var(--lp-black); }
.rp-map-own-name small { margin-left: 4px; font-size: var(--alpha-body-xxs); color: var(--lp-muted); }
.rp-map-own-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--alpha-body-xxs);
  color: var(--lp-black);
}
@media (prefers-reduced-motion: no-preference) {
  .rp-map-svg.is-boot .rp-map-area { animation: rp-map-boot 520ms cubic-bezier(.2, .8, .2, 1) both; }
  .rp-map-glow.is-on { animation: rp-map-pulse 2.6s ease-in-out infinite; }
  .rp-map-lamp.is-blink,
  .rp-map-marker.is-on .rp-map-dot { animation: rp-map-blink 1.4s steps(1, end) infinite; }
  .rp-map-marker.is-on .rp-map-ring { animation: rp-map-ring 1.8s ease-out infinite; }
}
@keyframes rp-map-boot { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes rp-map-pulse { 0%, 100% { opacity: 0; } 50% { opacity: 0.55; } }
@keyframes rp-map-blink { 0% { opacity: 1; } 50% { opacity: 0.25; } }
@keyframes rp-map-ring { 0% { opacity: 0.9; r: 4; } 100% { opacity: 0; r: 14; } }
@media (prefers-reduced-motion: reduce) { .rp-map-area { transition: none; } }
@media (max-width: 1024px) {
  .rp-map-wrap { grid-template-columns: minmax(0, 1fr); }
  .rp-map-svg { max-height: none; max-width: 520px; margin: 0 auto; }
}
@media (max-width: 767px) {
  .rp-map-seg { margin-left: 0; }
  .rp-map-sub { margin-top: -12px; }
}

/* --- At a glance (#glance) ---
   Its own section between the overview and the cards, not a chapter. Same
   zero-the-wrap side padding and bottom gap as .rp-stats, which follows it; the
   overview's bottom padding supplies the gap above. Children stack at the
   chapter rhythm. */
.rp-glance { padding: 0 var(--section-pad-inline) var(--rp-section-gap); scroll-margin-top: calc(var(--lp-nav-h-scrolled) + calc(var(--spacing-padding-inline) * 8)); }
.rp-glance > .lp-wrap {
  padding-inline: 0;
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-padding-inline) * 16);
}
@media (max-width: 767px) {
  .rp-glance > .lp-wrap { gap: calc(var(--spacing-padding-inline) * 10); }
}

/* --- references in one balanced list ---
   A single <ol> flowed into two CSS columns, so the browser evens out the column
   heights however long each entry is. Multi-column needs a block container, so
   the list's flex stacking is swapped for per-item bottom margins. */
.rp-refs-list--balanced {
  display: block;
  columns: 2;
  column-gap: calc(var(--spacing-padding-inline) * 10);
}
.rp-refs-list--balanced > .rp-ref {
  break-inside: avoid;
  margin-bottom: calc(var(--spacing-padding-inline) * 8);
}
@media (max-width: 767px) {
  .rp-refs-list--balanced { columns: 1; }
}

/* ==========================================================================
   Components added for the Harbor report (app/views/company/harbor.php)
   --------------------------------------------------------------------------
   New selectors and opt-in modifiers ONLY — nothing above is edited, so
   InstaAgent and Squid render exactly as before. Same rules as the Squid
   block: type from the existing --alpha-* / --rp-* ladder, no box-shadow, no
   strokes around cards, black never a key colour in a visual. Harbor reuses
   Squid's .rp-cite, .rp-prose-sub, .rp-steps and .rp-overview-mark-logo--raster.
   ========================================================================== */

/* Fine print inside figures (tree notes, flow chip). --alpha-body-xxs is the axis
   size and drops to 7px on phones, too small for prose, so this one has a floor.
   The tree's column widths live here too; both are new names, so .landing gains
   them without anything else on the page changing. */
.landing {
  --rp-fig-fine: 12px;
  --rp-tree-root-w: 124px;
  --rp-tree-job-w: 190px;
  --rp-tree-fork-w: 40px;
  --rp-tree-rival-w: 326px;
  --rp-tree-pad: 30px;
  --rp-tree-r: 14px;
  --rp-tree-line: 1.5px;
  --rp-tree-ink: var(--rp-rule);
  --rp-refs-peek: 560px;
}
@media (max-width: 1024px) { .landing { --rp-fig-fine: 11.5px; } }
@media (max-width: 767px)  { .landing { --rp-refs-peek: 440px; } }
@media (max-width: 479px)  { .landing { --rp-fig-fine: 11px; } }

/* --- opt-in table modifiers ---
   --wrap-head: report.css sets every column head nowrap, which InstaAgent's one-
   and two-word heads never test; several of Harbor's heads are short sentences.
   --cols: the table's <colgroup> sets the split, so the per-column widths the
   shared variants give td/th are released (one class more specific than them,
   rather than !important). */
.rp-verify-table--wrap-head th { white-space: normal; }
.rp-verify-table.rp-verify-table--cols th:nth-child(n),
.rp-verify-table.rp-verify-table--cols td:nth-child(n) { width: auto; }
.rp-verify-table--stmt th:nth-child(2) { text-align: right; }

/* Second line, row label, right-aligned figure and small label inside a cell or box. */
.rp-cell-sub { display: block; margin-top: 4px; color: #525252; }
.rp-cell-label { color: #525252; }
.rp-num { display: block; text-align: right; font-variant-numeric: tabular-nums; }
.rp-tag {
  display: block;
  margin-bottom: 6px;
  color: var(--lp-orange);
  font-size: 12px;
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Two tables side by side in one card; stacked on narrow screens. */
.rp-split { display: grid; grid-template-columns: 1fr 1fr; gap: calc(var(--spacing-padding-inline) * 8); }
.rp-split .rp-verify-table { min-width: 0; }
@media (max-width: 768px) { .rp-split { grid-template-columns: 1fr; } }

/* A three-row horizontal bar chart needs less height than the shared canvas. */
.rp-chart-canvas--short { height: calc(var(--rp-chart-h) * 0.72); }

/* --- prose additions --- */
/* The At-a-glance bullet list: prose size, orange markers. */
.rp-tldr {
  margin: 0;
  padding-left: 1.2em;
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-padding-inline) * 3);
  font-size: var(--alpha-body-medium);
  line-height: 1.3;
  color: var(--lp-black);
}
.rp-tldr li::marker { color: var(--lp-orange); }
/* A one-line pointer above a chapter ("New to how clinical trials run?"). Comes after
   .rp-prose in the file, so it wins on the shared element. */
.rp-aside { font-size: var(--alpha-body-small); color: #525252; }
.rp-aside a { color: var(--lp-orange); }

/* Footnote under the stat cards. The negative margin takes back half of the
   section's flex gap (80px, then 40px at 600px and below), so the line reads as a
   note on all three cards rather than a fourth line of the last one. */
.rp-stats-note {
  margin: calc(var(--spacing-padding-inline) * -10) 0 0;
  text-align: center;
  font-size: var(--alpha-body-xs);
  line-height: 1.45;
  color: #525252;
}
@media (max-width: 600px) { .rp-stats-note { margin-top: calc(var(--spacing-padding-inline) * -5); } }

/* --- references with full URLs as link text: let them wrap --- */
.rp-refs--urls .rp-refs-list,
.rp-refs--urls .rp-ref,
.rp-refs--urls .rp-ref-text { min-width: 0; }
.rp-refs--urls .rp-ref-text { overflow-wrap: anywhere; }

/* --- reference fold (behaviour: assets/js/report-harbor-refs.js) ---
   The list ships expanded with the button `hidden`; the script clamps it and shows
   the button, so with JS off every reference is on the page. The fade runs to the
   page ground, since .rp-refs has no background of its own. */
.rp-refs-more { position: relative; }
.rp-refs-more.is-clamped { max-height: var(--rp-refs-peek); overflow: hidden; }
.rp-refs-more.is-clamped::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 180px;
  background: linear-gradient(to bottom, rgba(242, 242, 242, 0), var(--lp-bg-light));
  pointer-events: none;
}
/* The site's pill button (a.lp-pill-btn) rebuilt on a <button>, since every
   lp-pill-btn rule is scoped to `a.`: white pill, bold label, an orange disc that
   grows from the +/− glyph on hover. */
.rp-refs-toggle {
  --refs-pad-inline: calc(var(--spacing-padding-inline) * 7);
  --refs-glyph-w: 14px;
  position: relative;
  overflow: hidden;
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: calc(var(--spacing-padding-inline) * 5) var(--refs-pad-inline);
  border: 0;
  border-radius: 100px;
  background: var(--lp-panel);
  color: var(--lp-black);
  font-family: inherit;
  font-size: var(--alpha-button-small);
  font-weight: var(--font-weight-bold);
  line-height: 1.3;
  cursor: pointer;
}
.rp-refs-toggle[hidden] { display: none; }
.rp-refs-toggle .lp-pill-fill {
  position: absolute;
  left: calc(var(--refs-pad-inline) + var(--refs-glyph-w) / 2);
  top: 50%;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--lp-orange);
  transform: translate(-50%, -50%) scale(0);
  transform-origin: center;
  transition: transform 0.6s ease-in-out;
  z-index: 1;
}
.rp-refs-toggle .rp-insight-glyph,
.rp-refs-toggle .rp-refs-toggle-label { position: relative; z-index: 2; }
.rp-refs-toggle .rp-insight-glyph {
  width: var(--refs-glyph-w);
  margin-right: calc(var(--spacing-padding-inline) * 3);
  overflow: hidden;
  text-align: center;
  transition: width 0.3s ease, margin-right 0.3s ease, opacity 0.3s ease;
}
.rp-refs-toggle .rp-refs-toggle-label { transition: color 0.5s ease; }
.rp-refs-toggle:hover .lp-pill-fill,
.rp-refs-toggle:focus-visible .lp-pill-fill { transform: translate(-50%, -50%) scale(30); }
/* Same as the hero/CTA "Talk to Hackerman" pill: the glyph's box collapses to
   nothing, so the pill itself shortens and the label stays centred in it. */
.rp-refs-toggle:hover .rp-insight-glyph,
.rp-refs-toggle:focus-visible .rp-insight-glyph { width: 0; margin-right: 0; opacity: 0; }
.rp-refs-toggle:hover .rp-refs-toggle-label,
.rp-refs-toggle:focus-visible .rp-refs-toggle-label { color: #FFFFFF; }
.rp-refs-toggle[aria-expanded="true"] .rp-insight-glyph::before { content: '\2212'; }
@media (prefers-reduced-motion: reduce) {
  .rp-refs-toggle .lp-pill-fill,
  .rp-refs-toggle .rp-insight-glyph,
  .rp-refs-toggle .rp-refs-toggle-label { transition: none; }
}

/* --- chart key: a short bar, for a key entry that is a segment, not a point --- */
.rp-chart-legend-bar { flex: none; width: 18px; height: 5px; border-radius: 3px; }

/* --- who else does Harbor's jobs, as a tree ---
   Five grid columns (root, trunk, job, fork, rivals) and one row per rival; the
   branches are display:contents so every part is placed on the one grid. Flat
   fills only, no box strokes; the connectors are the only lines. Harbor's box is
   lime (#B8FD15, report-cms.js's colour for the report's own company), the jobs
   sit on the lightest step of the orange ramp. Collapses to an indented list at
   640px of CARD width (container query), since the TOC changes the card's width
   independently of the viewport. */
.rp-tree-wrap { container-type: inline-size; }
.rp-tree {
  display: grid;
  grid-template-columns:
    var(--rp-tree-root-w) var(--rp-tree-fork-w) var(--rp-tree-job-w)
    var(--rp-tree-fork-w) minmax(0, var(--rp-tree-rival-w));
  grid-template-rows: repeat(var(--leaves), auto);
  align-items: center;
}
.rp-tree-branches { margin: 0; padding: 0; list-style: none; }
.rp-tree-branches, .rp-tree-branch { display: contents; }
.rp-tree > .rp-tree-box--self       { grid-column: 1; }
.rp-tree-branch > .rp-tree-link     { grid-column: 2; }
.rp-tree-branch > .rp-tree-box--job { grid-column: 3; }
.rp-tree-branch > .rp-tree-stub     { grid-column: 4; }
.rp-tree-branch > .rp-tree-leaf     { grid-column: 5; }
/* A branch's first link is the trunk's; any after it belong to the fork. */
.rp-tree-branch > .rp-tree-link:nth-of-type(n + 2) { grid-column: 4; }
.rp-tree > .rp-tree-box--self,
.rp-tree-branch > .rp-tree-link,
.rp-tree-branch > .rp-tree-box--job,
.rp-tree-branch > .rp-tree-stub,
.rp-tree-branch > .rp-tree-leaf { grid-row: var(--r) / span var(--k, 1); }
.rp-tree-branch > .rp-tree-link,
.rp-tree-branch > .rp-tree-stub { align-self: stretch; position: relative; }
.rp-tree-leaf { padding: var(--rp-tree-pad) 0; }

/* One connector component: a vertical from the link's centre to the edge facing
   the parent, plus a horizontal out of the centre. Neighbouring links meet at the
   row boundaries, so the trunk needs no fixed heights. */
.rp-tree-link::before {
  content: '';
  position: absolute;
  left: 50%;
  right: 0;
  border-left: var(--rp-tree-line) solid var(--rp-tree-ink);
}
.rp-tree-link--up::before {
  top: 50%;
  bottom: 0;
  border-top: var(--rp-tree-line) solid var(--rp-tree-ink);
  border-top-left-radius: var(--rp-tree-r);
}
.rp-tree-link--down::before {
  top: 0;
  bottom: 50%;
  border-bottom: var(--rp-tree-line) solid var(--rp-tree-ink);
  border-bottom-left-radius: var(--rp-tree-r);
}
.rp-tree-link--mid::before { top: 0; bottom: 0; }
.rp-tree-link--solo::before {
  left: 0;
  top: 50%;
  bottom: auto;
  border-left: 0;
  border-top: var(--rp-tree-line) solid var(--rp-tree-ink);
}
.rp-tree-link--mid::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: var(--rp-tree-line) solid var(--rp-tree-ink);
}
.rp-tree-stub::before {
  content: '';
  position: absolute;
  left: 0;
  width: 50%;
  top: 50%;
  border-top: var(--rp-tree-line) solid var(--rp-tree-ink);
}

.rp-tree-box {
  padding: calc(var(--spacing-padding-inline) * 3) calc(var(--spacing-padding-inline) * 3.5);
  border-radius: 12px;
  background: var(--lp-bg-light);
}
.rp-tree-box--self { background: #B8FD15; }
.rp-tree-box--job { background: #FCE1D6; }
.rp-tree-box .rp-tag { display: inline-block; margin-bottom: calc(var(--spacing-padding-inline) * 1.5); }
.rp-tree-name {
  margin: 0;
  font-size: var(--rp-font-table);
  font-weight: var(--font-weight-medium);
  line-height: 1.3;
  color: var(--lp-black);
}
.rp-tree-meta,
.rp-tree-note {
  margin: calc(var(--spacing-padding-inline) * 1) 0 0;
  font-size: var(--rp-fig-fine);
  line-height: 1.4;
  color: #525252;
}
.rp-tree-name .rp-tree-meta {
  display: inline;
  margin: 0;
  font-weight: var(--font-weight-regular);
  color: var(--lp-muted);
}
.rp-tree-box--self .rp-tree-meta { color: rgba(10, 10, 10, 0.68); }

@container (max-width: 640px) {
  .rp-tree {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
  }
  .rp-tree > .rp-tree-box--self,
  .rp-tree-branch > .rp-tree-link,
  .rp-tree-branch > .rp-tree-box--job,
  .rp-tree-branch > .rp-tree-stub,
  .rp-tree-branch > .rp-tree-leaf { grid-column: 1; grid-row: auto; }
  .rp-tree-branch > .rp-tree-link:nth-of-type(n + 2) { grid-column: 1; }
  .rp-tree-link, .rp-tree-stub { display: none; }
  .rp-tree-box--self { margin-bottom: calc(var(--spacing-padding-inline) * 5); }
  .rp-tree-box--job { margin-top: calc(var(--spacing-padding-inline) * 5); }
  .rp-tree-leaf {
    padding: 0 0 0 calc(var(--spacing-padding-inline) * 4);
    margin: calc(var(--spacing-padding-inline) * 3) 0 0 calc(var(--spacing-padding-inline) * 4);
    border-left: var(--rp-tree-line) solid var(--rp-tree-ink);
  }
}

/* --- which way they moved ---
   Nine companies on a three-stop scale (sells software / both / runs trials), with
   a segment for each that moved. Positions are a reading, not quantities, so it is
   HTML in the chart card like report.css's timeline. Colours follow the guidelines
   rather than the designer file: no near-black keys. Started = #F9C2AD, now =
   --lp-orange, Harbor's move = lime with its end mark in --lp-orange-deep so it is
   found first. Other companies' segments stay the pale rule grey. */
.rp-moves-wrap { container-type: inline-size; }
.rp-moves {
  --rp-moves-name-w: 150px;
  --rp-moves-state-w: 140px;
  --rp-moves-gap: calc(var(--spacing-padding-inline) * 5);
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-padding-inline) * 3);
  padding: 0 7px;
}
.rp-moves-scale {
  position: relative;
  height: 1.6em;
  margin: 0 calc(var(--rp-moves-state-w) + var(--rp-moves-gap)) 0
            calc(var(--rp-moves-name-w) + var(--rp-moves-gap));
}
.rp-moves-stop {
  position: absolute;
  left: var(--x);
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: var(--alpha-body-xs);
  line-height: 1.35;
  color: #525252;
}
.rp-moves-stop:first-child { transform: none; }
.rp-moves-stop:last-child { transform: translateX(-100%); }
.rp-moves-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
}
.rp-moves-row {
  display: grid;
  grid-template-columns: var(--rp-moves-name-w) minmax(0, 1fr) var(--rp-moves-state-w);
  align-items: center;
  column-gap: var(--rp-moves-gap);
  padding: calc(var(--spacing-padding-inline) * 2) 0;
}
.rp-moves-name {
  margin: 0;
  font-size: var(--alpha-body-small);
  font-weight: var(--font-weight-medium);
  line-height: 1.3;
  color: var(--lp-black);
}
.rp-moves-row--self .rp-moves-name { font-weight: var(--font-weight-bold); }
.rp-moves-state {
  margin: 0;
  font-size: var(--rp-fig-fine);
  line-height: 1.35;
  color: #525252;
}
.rp-moves-track { position: relative; height: 15px; }
.rp-moves-track::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  background: var(--lp-bg-light);
}
.rp-moves-seg {
  --seg: var(--rp-rule);
  position: absolute;
  top: 50%;
  left: var(--a);
  width: calc(var(--b) - var(--a));
  height: 5px;
  transform: translateY(-50%);
  border-radius: 3px;
  background: var(--seg);
}
.rp-moves-row--self .rp-moves-seg { --seg: #B8FD15; }
/* Arrowhead at the middle of the segment, in its colour, so the direction of each
   move reads without the key. Curebase moved right to left. */
.rp-moves-seg::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 10px solid var(--seg);
}
.rp-moves-seg--left::after { border-left: 0; border-right: 10px solid var(--seg); }
.rp-moves-mark {
  position: absolute;
  top: 50%;
  left: var(--x);
  transform: translate(-50%, -50%);
  width: 13px;
  height: 13px;
  border-radius: 50%;
}
.rp-moves-mark--from { background: #F9C2AD; }
.rp-moves-mark--now  { background: var(--lp-orange); }
.rp-moves-row--self .rp-moves-mark--now { background: var(--lp-orange-deep); }
@container (max-width: 560px) {
  .rp-moves-scale { margin: 0; }
  .rp-moves-row {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: calc(var(--spacing-padding-inline) * 2);
    padding: calc(var(--spacing-padding-inline) * 3) 0;
  }
  .rp-moves-state { text-align: right; }
  .rp-moves-track { grid-column: 1 / -1; grid-row: 2; }
  .rp-moves-mark { width: 11px; height: 11px; }
}

/* --- appendix: how a patient's number becomes trial evidence ---
   Five hairline-separated rows in the .rp-steps manner; step 3, where Harbor's AI
   works, sits on a band of the lightest ramp orange with its numeral and chip in
   --lp-orange. The other numerals step back to --lp-muted. */
.rp-flow-wrap { container-type: inline-size; }
.rp-flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.rp-flow li {
  display: grid;
  grid-template-columns: 56px auto minmax(0, 1fr);
  align-items: start;
  align-content: center;
  gap: calc(var(--spacing-padding-inline) * 1) calc(var(--spacing-padding-inline) * 4);
  padding: calc(var(--spacing-padding-inline) * 5) 0;
  min-height: calc(var(--spacing-padding-inline) * 30);
  border-top: 1px solid var(--rp-rule);
  font-size: var(--alpha-body-small);
  line-height: 1.35;
  color: #525252;
}
.rp-flow li:last-child { border-bottom: 1px solid var(--rp-rule); }
.rp-flow-num { grid-column: 1; color: var(--lp-muted); font-weight: var(--font-weight-medium); }
.rp-flow-num::before { content: '0'; }
.rp-flow strong { grid-column: 2; grid-row: 1; color: var(--lp-black); font-weight: var(--font-weight-medium); }
.rp-flow li > span:not(.rp-flow-num) { grid-column: 2 / -1; grid-row: 2; }
.rp-flow-tag {
  grid-column: 3;
  grid-row: 1;
  justify-self: start;
  align-self: center;
  padding: 5px 10px;
  border-radius: 100px;
  background: var(--lp-orange);
  font-style: normal;
  font-size: var(--rp-fig-fine);
  font-weight: var(--font-weight-medium);
  line-height: 1.2;
  color: #FFFFFF;
}
.rp-flow li.is-ai {
  margin: 0 calc(var(--spacing-padding-inline) * -4);
  padding-left: calc(var(--spacing-padding-inline) * 4);
  padding-right: calc(var(--spacing-padding-inline) * 4);
  border-radius: 8px;
  border-top-color: transparent;
  background: #FCE1D6;
}
.rp-flow li.is-ai + li { border-top-color: transparent; }
.rp-flow li.is-ai .rp-flow-num { color: var(--lp-orange); font-weight: var(--font-weight-bold); }
@container (max-width: 440px) {
  .rp-flow li { grid-template-columns: 40px minmax(0, 1fr); min-height: 0; }
  .rp-flow-tag { grid-column: 2; grid-row: 3; margin-top: calc(var(--spacing-padding-inline) * 1); }
}

/* --- ruled numbered list (Harbor's "What would change our view") ---
   The designer's version of .rp-steps: the number as an orange 01-05 counter in
   its own column, hairline rules between rows. A modifier, so Squid's plain
   .rp-steps list is unchanged. */
.rp-steps--ruled { list-style: none; padding: 0; counter-reset: rp-step; gap: 0; }
.rp-steps--ruled li {
  counter-increment: rp-step;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: calc(var(--spacing-padding-inline) * 4);
  padding: calc(var(--spacing-padding-inline) * 5) 0;
  border-top: 1px solid var(--rp-rule);
  font-size: var(--alpha-body-small);
  line-height: 1.35;
  color: var(--lp-black);
}
.rp-steps--ruled li:last-child { border-bottom: 1px solid var(--rp-rule); }
.rp-steps--ruled li::before {
  content: counter(rp-step, decimal-leading-zero);
  font-weight: var(--font-weight-medium);
  color: var(--lp-orange);
}
@media (max-width: 479px) {
  .rp-steps--ruled li { grid-template-columns: 40px minmax(0, 1fr); }
}

/* --- citation hover card (Harbor) ---
   .rp-cite--tip: the [N] link in grey. Two classes deep to out-specify
   landing.css's `.landing a { color: inherit }`, which otherwise leaves it black.
   .rp-cite-tip: the card report-harbor-refs.js opens on hover/focus, showing the
   reference text with its link. White ground and #525252 type with #F06731
   marker and link, as in the designer's report; rounded, with an arrow
   toward the citation. position: fixed so chart cards' overflow can't clip it;
   z-index 90 keeps it under the fixed header. Touch screens keep the plain jump. */
.landing .rp-cite--tip { color: #8A8A8A; }
.landing .rp-cite--tip:hover, .landing .rp-cite--tip:focus-visible { color: var(--lp-orange); }

.rp-cite-tip {
  --tip-bg: #FFFFFF;
  position: fixed;
  z-index: 90;
  top: 0;
  left: 0;
  max-width: min(360px, calc(100vw - 32px));
  padding: calc(var(--spacing-padding-inline) * 4) calc(var(--spacing-padding-inline) * 5);
  border-radius: 8px;
  background: var(--tip-bg);
  box-shadow: 0 6px 20px rgba(10, 10, 10, 0.18);
  font-size: var(--alpha-body-xs);
  font-weight: var(--font-weight-regular);
  line-height: 1.45;
  color: #525252;
  opacity: 0;
  visibility: hidden;
  transform: translateY(2px);
  transition: opacity 0.14s ease, transform 0.14s ease, visibility 0s linear 0.14s;
}
.rp-cite-tip.is-shown {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.14s ease, transform 0.14s ease, visibility 0s;
}
/* Arrow: --tip-arrow-x is set by the script so it points at the citation even
   when the card is pushed in from a viewport edge. */
.rp-cite-tip::after {
  content: "";
  position: absolute;
  left: var(--tip-arrow-x, 50%);
  width: 12px;
  height: 12px;
  margin-left: -6px;
  background: var(--tip-bg);
  border-radius: 2px;
  transform: rotate(45deg);
}
.rp-cite-tip[data-side="above"]::after { bottom: -5px; }
.rp-cite-tip[data-side="below"]::after { top: -5px; }
/* Invisible bridge over the 12px gap between the card and its citation, so the
   pointer is never outside both on its way to the card's link. */
.rp-cite-tip::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 14px;
}
.rp-cite-tip[data-side="above"]::before { top: 100%; }
.rp-cite-tip[data-side="below"]::before { bottom: 100%; }
.rp-cite-tip-marker {
  display: block;
  margin-bottom: calc(var(--spacing-padding-inline) * 1.5);
  font-size: var(--rp-fig-fine);
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  color: var(--lp-orange);
}
.rp-cite-tip-text { margin: 0; overflow-wrap: anywhere; }
.landing .rp-cite-tip-text a {
  color: var(--lp-orange);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.landing .rp-cite-tip-text a:hover, .landing .rp-cite-tip-text a:focus-visible { color: var(--lp-black); }
@media (prefers-reduced-motion: reduce) {
  .rp-cite-tip, .rp-cite-tip.is-shown { transition: none; transform: none; }
}
@media (max-width: 1024px), not all and (any-hover: hover) { .rp-cite-tip { display: none; } }

/* --- smooth anchor scrolling (Harbor) ---
   Citations, the nav's section links and the TOC glide to their target instead
   of jumping. Scoped with :has() to the page carrying Harbor's chapters class, since
   <html> is shared by every page on the landing layout. Off for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  html:has(.rp-chapters--toc-fit) { scroll-behavior: smooth; }
}

/* --- link inside a callout (Harbor) ---
   Chapter 1's appendix pointer is set as an InstaAgent .rp-callout. Its link
   stays orange; two classes deep to out-specify `.landing a { color: inherit }`. */
.landing .rp-callout-link { color: var(--lp-orange); transition: color 0.2s ease; }
.landing .rp-callout-link:hover, .landing .rp-callout-link:focus-visible { color: var(--lp-orange-deep); }

/* --- dated calls timeline (Harbor chapter 9) ---
   Chart 3 from the designer: the InstaAgent .rp-timeline with no source pill,
   events that run to two lines, and a line under each saying what the call
   tests. Starts flush with the card title (no indent) and rows sit 32px apart;
   the spine follows --rp-tl-gap, so it still joins dot to dot. Type is the
   other figures': --rp-font-table like the tables and ladder cards, the
   secondary line in --rp-fig-fine #525252 like .ax-card-note / .rp-tree-note.
   Rows align to the top, so the spine is anchored at the marker's centre (10px)
   at every width, as the base rule only does on phones. */
.rp-timeline--calls { --rp-tl-gap: calc(var(--spacing-padding-inline) * 8); padding-left: 0; }
.rp-timeline--calls .rp-timeline-row { align-items: flex-start; }
.rp-timeline--calls .rp-timeline-row:not(:last-child)::after { top: 10px; }
.rp-timeline--calls .rp-timeline-date,
.rp-timeline--calls .rp-timeline-event {
  font-size: var(--rp-font-table);
  line-height: 1.35;
  color: var(--lp-black);
}
.rp-timeline--calls .rp-timeline-date { font-weight: var(--font-weight-medium); padding-top: 1px; }
.rp-timeline--calls .rp-timeline-event { padding-top: 1px; }
.rp-timeline-sub {
  display: block;
  margin-top: calc(var(--spacing-padding-inline) * 1);
  font-size: var(--rp-fig-fine);
  line-height: 1.4;
  color: #525252;
}
@media (min-width: 768px) {
  .rp-timeline--calls .rp-timeline-date { width: 96px; }
}
/* Phones: the event drops under the date, as in chart 3, rather than squeezing
   beside it (the base rule keeps them on one line for the source pill's sake). */
@media (max-width: 640px) {
  .rp-timeline--calls .rp-timeline-event { flex-basis: 100%; }
}

/* --- likelihood ladder (Harbor chapter 5, "How this could end") ---
   Option A from the designer's table-alternatives file, rules copied unchanged:
   three rows, likeliest first, each outcome a card on its row. The ax- names are
   that file's; nothing else on the site uses them. */
.ax-card { padding: 12px 14px; border-radius: 12px; background: var(--lp-bg-light); }
.ax-card-name { margin: 0; font-size: var(--rp-font-table); font-weight: var(--font-weight-medium); line-height: 1.3; color: var(--lp-black); }
.ax-card-meta { margin: 4px 0 0; font-size: var(--rp-fig-fine); line-height: 1.4; color: #8A8A8A; }
.ax-card-note { margin: 4px 0 0; font-size: var(--rp-fig-fine); line-height: 1.4; color: #525252; }
/* Last in its card, after the note; set as an .ax-chip--more pill. */
.ax-card-tag { margin-top: 8px; }

.ax-chip {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 100px;
  font-size: var(--rp-fig-fine);
  font-weight: var(--font-weight-medium);
  line-height: 1.2;
  white-space: nowrap;
}
.ax-chip--more { background: var(--lp-orange); color: #FFFFFF; }
.ax-chip--possible { background: #FCE1D6; color: #C05227; }
.ax-chip--less { background: var(--lp-bg-light); color: #525252; }

.ax-ladder { display: flex; flex-direction: column; }
.ax-rung {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--rp-rule);
}
.ax-rung:last-child { border-bottom: 1px solid var(--rp-rule); }
.ax-rung-label { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.ax-rung-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ax-rung:first-child .ax-card { background: #FCE1D6; }

@media (max-width: 767px) {
  .ax-rung { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ax-rung-label { flex-direction: row; align-items: center; }
  .ax-rung-cards { grid-template-columns: minmax(0, 1fr); }
}

/* --- chapter headings held to two lines (Harbor) ---
   Each heading is "Label:<br>Line." and must not wrap to a third line. First the
   designer's bleed: the heading may run past the 800px cap and the column's right
   edge into the gutter (80px at >=1400, 48px at 1025-1399, none once the TOC
   drops out). Where that still isn't enough, report-harbor-refs.js steps the
   font size down until it fits on two lines (768px and up). */
.landing { --rp-h2-bleed: 80px; }
@media (max-width: 1399px) { .landing { --rp-h2-bleed: 48px; } }
@media (max-width: 1024px) { .landing { --rp-h2-bleed: 0px; } }
.rp-chapters--h2-fit .rp-chapter-head h2 {
  width: max-content;
  max-width: calc(100% + var(--rp-h2-bleed));
}

/* --- aside callout (Harbor chapter 1's appendix pointer) ---
   A quieter .rp-callout for a reader's note rather than a finding: italic,
   --alpha-body-small in the muted grey, with a slimmer bar. The link keeps
   its orange (.rp-callout-link). */
.rp-callout--aside { padding-left: calc(var(--spacing-padding-inline) * 6); }
.rp-callout--aside::before { width: 6px; }
.rp-callout--aside .rp-callout-text {
  font-size: var(--alpha-body-small);
  font-style: italic;
  line-height: 1.4;
  color: var(--lp-muted);
}

/* --- sidebar TOC sized to its labels (Harbor) ---
   Every entry on one line: the TOC takes the width of its longest label
   ("Chapter 4: Business model") instead of the fixed --rp-toc-w, never less than
   that token, and the chapter column takes the remainder as before. */
.rp-chapters--toc-fit .rp-toc { width: max-content; min-width: var(--rp-toc-w); }
.rp-chapters--toc-fit .rp-toc-item { white-space: nowrap; }

/* Harbor: column heads in sentence case (as written in the markup) rather than
   report.css's uppercase. Opt-in modifier, so InstaAgent's tables keep their caps;
   the caps letter-spacing goes with it. */
.rp-verify-table--sentence thead tr th { text-transform: none; letter-spacing: normal; }

/* Harbor: the leftmost column of each table matches the column-heading weight
   (medium, same as .rp-verify-table th), not full bold. Scoped to --sentence (all
   Harbor tables carry it), so InstaAgent's and Squid's tables are untouched.
   Excluded: the "Harbor's claims" and "What public data cannot establish" tables
   (--no-first-bold) -- their first column is a claim sentence, not a label, so
   bolding it would read as emphasis on the wrong thing. */
.rp-verify-table--sentence:not(.rp-verify-table--no-first-bold) tbody td:first-child {
  font-weight: var(--font-weight-medium);
}

/* Harbor: "Harbor's claims, and what can be checked" wants a darker amber than
   the shared --partial badge colour. Scoped to --no-first-bold, which is unique
   to this table (and "What public data cannot establish", which has no badges),
   so the base .rp-verify-badge--partial rule and every other table are untouched. */
.rp-verify-table--no-first-bold .rp-verify-badge--partial { color: #8A6200; }


/* ==========================================================================
   Orphans (16 Nov), every report page: headings, titles, boxes and card
   labels are balanced so a short line never ends on one word; captions use
   "pretty", which fills lines and only rebalances the last two.
   ========================================================================== */
.landing h1, .landing h2, .landing h3, .landing h4,
.rp-chart-title, .rp-prose-sub, .rp-insights-title, .rp-insight-head-text,
.rp-stats-heading, .rp-stat-value, .rp-stat-caption,
.rp-tree-name, .rp-tree-note, .rp-tag,
.rp-flow strong, .rp-flow li > span:not(.rp-flow-num),
.rp-timeline-event, .rp-timeline-sub,
.sq-name, .sq-desc, .sq-chip, .sq-flow-step, .sq-fan-box, .sq-fan-fix,
.sq-ladder-name, .sq-ladder-desc, .sq-count-head, .sq-groups-note,
.cc-tile-v, .cc-tile-c, .cc-front-label, .cc-front-line, .cc-center span, .cc-push,
.ax-card-title, .ax-card-note { text-wrap: balance; }
.rp-chart-note, .rp-map-sub, .rp-fig-note, .sq-fig-note, .cc-tiles-cap,
.landing figcaption { text-wrap: pretty; }

/* --- Flow tags, every report (16 Nov developer changes): white chip with
   deep-orange text, replacing the solid orange chip with white text. Covers
   Harbor's "AI works here", Squid's and CopyCat's tags alike. --- */
.rp-flow-tag {
  padding: 4px 10px;
  border: 1px solid #F6A483;
  border-radius: 100px;
  background: #FFFFFF;
  font-style: normal;
  font-size: var(--rp-fig-fine);
  font-weight: var(--font-weight-medium);
  line-height: 1.2;
  color: var(--lp-orange-deep);
}

/* ==========================================================================
   Chips, every report (16 Nov). One size for all: 12px, medium weight, fully
   rounded, 1px border so solid and light chips are the same height.
   On white: solid orange, white text.
   Inside a peach (#FCE1D6) or grey (#F2F2F2) box: white, peach border,
   deep-orange text.
   ========================================================================== */
.rp-flow-tag, .sq-pl-tag, .ax-card-tag, .cc-tag {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--lp-orange);
  border-radius: 100px;
  background: var(--lp-orange);
  font-style: normal;
  font-size: 12px;
  font-weight: var(--font-weight-medium);
  line-height: 1.2;
  color: #FFFFFF;
  white-space: nowrap;
}
/* in a box: the highlighted flow step (peach), Harbor's outcome cards and
   CopyCat's competition fronts (grey) */
.rp-flow li.is-ai .rp-flow-tag,
.ax-card .ax-card-tag,
.cc-front .cc-tag {
  border-color: #F6A483;
  background: #FFFFFF;
  color: var(--lp-orange-deep);
}
