/* * VitePress-style theme (flueframework.com reference). * Design-token overrides per https://useblume.dev/docs/configuration/theming, * plus layout/chrome overrides for the pieces Blume renders internally * (RootLayout grid, PageLayout drawer, search trigger, page-actions menus). * Owned components (components/blume/*) style themselves with utilities. */ :root { /* Palette — light (VitePress values, accent + background live in blume.config.ts `theme`) */ --blume-foreground: #1b1b1f; --blume-muted: #f6f6f7; --blume-muted-foreground: #61636b; --blume-border: #e7e7eb; --blume-code-background: #f6f8fa; /* Prose column: 700px like the reference article */ --blume-content-width: 43.75rem; /* Layout frame shared by the header and the docs grid */ --docs-frame-width: 81.875rem; --docs-header-height: calc(3.5rem + 1px); } :root[data-theme='dark'] { /* Palette — dark (Zed-style; the #0d1016 page background lives in blume.config.ts `theme`). Surfaces sit above the page, code blocks recess below it like Zed's editor pane. */ --blume-foreground: #dce0e5; /* Accent text on the dark-mode brand pink (#ff6ca5), where white fails contrast (2.6:1). Blume already flips it dark; this pins the shade the theme was designed with (7.5:1). */ --blume-accent-foreground: oklch(0.145 0 0); --blume-muted: #1a202a; --blume-muted-foreground: #a9afbc; --blume-border: #2a303c; --blume-code-background: #0a0d12; } /* ---------------------------------------------------------------- */ /* Docs layout frame (RootLayout isn't overridable): sidebar | */ /* content | toc, centered on the frame width. */ /* ---------------------------------------------------------------- */ [data-blume-doc-grid] { width: min(100%, var(--docs-frame-width)); min-height: calc(100vh - var(--docs-header-height)); } /* Below 2xl the frame spans the viewport, so the docs grid pays for its TOC rail out of the gutters the frame would otherwise leave empty rather than out of the prose column. Every layout is drawn against this variable — the header on all of them, the grid on docs and blog posts — so one declaration keeps the landing page, the blog, and the docs on the same container at any given viewport. Under the frame width it is what `min()` already resolved to, so the widths this actually changes run from 81.875rem to 2xl. */ @media (max-width: 95.9375rem) { :root { --docs-frame-width: 100%; } } @media (min-width: 64rem) { /* Scoped to grids that carry Blume's own responsive column classes: "bare" pages (the changelog index) render a single centered column and must keep grid-cols-1. */ [data-blume-doc-grid][class*='lg:grid-cols-'] { grid-template-columns: 14.5rem minmax(0, 1fr); } /* Sidebar rail: sits under the shorter header, gets a right border */ [data-blume-nav-drawer] { top: var(--docs-header-height); height: calc(100dvh - var(--docs-header-height)); border-inline-end: 1px solid var(--blume-border); padding: 1.5rem 1.5rem 2rem 1.25rem; } /* Docs content column only — PageLayout pages (blog, custom landings) manage their own padding. */ [data-blume-doc-grid] > main#blume-content { padding: 3rem 3rem 3.5rem; } } /* TOC rail: like the nav rail it sits under the shorter header, and it opens level with the content column's first line. Both rails carry `sticky`, so these metrics only apply once `hidden xl:block` reveals them — the tier Blume also stops rendering the mobile `
` fallback at. */ [data-blume-toc] { top: var(--docs-header-height); height: calc(100dvh - var(--docs-header-height)); padding-top: 3rem; } /* Three columns from that same tier. The nav rail holds its two-column width so nothing shifts as the TOC appears, and the content column takes whatever the full-width frame has left over. */ @media (min-width: 80rem) { [data-blume-doc-grid][class*='xl:grid-cols-'] { grid-template-columns: 14.5rem minmax(0, 1fr) 16.5rem; } } /* From 2xl the frame stops growing, so the rail can take its wider width and the prose column its designed measure. */ @media (min-width: 96rem) { [data-blume-doc-grid][class*='xl:grid-cols-'] { grid-template-columns: 15.875rem minmax(0, 51.25rem) 16.5rem; } } /* ---------------------------------------------------------------- */ /* Typography — Inter with tight, bold headings */ /* ---------------------------------------------------------------- */ .prose { font-size: 0.9375rem; line-height: 1.65; } .prose :where(h1) { font-weight: 700; letter-spacing: -0.05em; } .prose :where(h2) { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.025em; margin-top: 2.75rem; } .prose :where(h3) { font-weight: 600; letter-spacing: -0.0125em; } /* Filled code blocks like the reference (not Blume's outline style) */ .prose pre, .prose pre.astro-code { background: var(--blume-code-background) !important; } /* Twoslash hover popups are rendered at opacity 0 but still occupy layout, stretching the page sideways and adding thousands of pixels of phantom height below the content on narrow viewports. Keep them out of layout entirely until their trigger is hovered. */ .prose .twoslash-hover:not(:hover):not(.twoslash-open) :is(.twoslash-popup-container, .twoslash-bridge) { display: none; } /* Touch has no hover: twoslash-popups.ts pins .twoslash-open on the tapped token (cleared by tapping elsewhere). Mirror the :hover reveal the shiki stylesheet keys on (opacity 0 / pointer-events none otherwise). */ .prose .twoslash-hover.twoslash-open .twoslash-popup-container { opacity: 1; pointer-events: auto; } /* Touch scrolling dismisses the placed popup (twoslash-popups.ts sets .twoslash-dismissed, the next placement lifts it). display, not opacity: the popup must also disappear in browsers whose sticky tap-:hover would otherwise keep the reveal alive, and the bridge must go with it so the stale fixed strip can't swallow a tap. */ .prose .twoslash-hover.twoslash-dismissed :is(.twoslash-popup-container, .twoslash-bridge) { display: none; } main#blume-content { overflow-x: clip; } /* Blume keeps twoslash blocks `overflow: visible` so absolutely positioned popups can escape them, which leaves long lines nowhere to go: Blume only wraps them below 640px, so on wider screens they run straight past the block. The popups here are fixed instead (below) and escape any scroller, so twoslash code scrolls horizontally like every other block. Scrolling the inner code keeps the header bar and copy button static, matching Blume's own pattern for regular blocks, which also carry the horizontal padding on the code element. */ .prose pre.twoslash { padding-left: 0; padding-right: 0; } .prose pre.twoslash > code { display: block; overflow-x: auto; white-space: pre; overflow-wrap: normal; padding: 0 1.25rem 0.375rem; scrollbar-color: var(--blume-border) transparent; scrollbar-width: thin; } /* Fixed positioning escapes the code scroller above, and sizes the popup readably: anchored to a tiny inline token, an absolute popup squeezes into an unreadable sliver over the code on narrow screens. twoslash-popups.ts anchors it next to the token on reveal (below it, or above when the token sits near the bottom of the screen) and bridges the gap with a real element so the pointer can cross into the popup; the viewport centering here is only the first-frame fallback until the script can measure the popup's width. */ .prose .twoslash-popup-container { position: fixed; inset: auto auto auto 50%; /* Replaces twoslash's transform: translateY(1.1em) — the margin below keeps the fixed math exact — and centers horizontally. Centering must live on transform, not the translate property: the production build lowers translate into transform, which would survive the script's inline override and drag the placed popup half a width off-screen. */ transform: translateX(-50%); z-index: 60; margin: 0.375rem 0 0; /* max-content, not shrink-to-fit: sized against the tiny token span, shrink-to-fit collapses a wrappable popup to its narrowest content. With the cap as max-width, only signatures that genuinely exceed it wrap, at the full cap width. */ width: max-content; max-width: min(100vw - 1.5rem, 34rem); /* Oversized popups scroll internally; the script tightens the cap to the space actually left beside the token. */ max-height: 45dvh; overflow-y: auto; scrollbar-color: var(--blume-border) transparent; scrollbar-width: thin; border-radius: 0.5rem; box-shadow: 0 8px 30px rgb(0 0 0 / 0.25); } /* Wrap popup code: signatures emitted as one long line would otherwise keep pre whitespace and blow the popup past its max-width. */ .prose .twoslash-popup-container :is(pre, code) { white-space: pre-wrap; overflow-wrap: break-word; } /* ---------------------------------------------------------------- */ /* Non-owned chrome */ /* ---------------------------------------------------------------- */ /* The desktop on-this-page aside renders the owned TableOfContents (which carries the coffee card) before Blume's non-overridable PageActions. Flexing the aside lets the card's `order-1` + `mt-auto` pin it to the bottom of the rail without owning RootLayout. The card's sticky wrapper owns the bottom spacing instead of the aside's pb-10, so the card rests at the same offset whether the rail scrolls (stuck at bottom-0) or not (mt-auto). Scoped to xl, the tier Blume reveals the rail at: `aside[data-blume-toc]` outranks the `hidden` utility that hides it below xl, so an unscoped `display` here would leak the rail onto every narrower viewport as an extra grid row under the nav column. */ @media (min-width: 80rem) { aside[data-blume-toc] { display: flex; flex-direction: column; padding-bottom: 0; } aside[data-blume-toc] > * { flex: none; } } /* Blume tints `:::tip` blocks with the accent color, which here is the brand pink — a tip then reads as an alarm, barely distinguishable from the red `:::danger` blocks. Green instead (GitHub's alert convention); the docs use no `success`/`check` callouts for it to collide with. */ aside[data-blume-callout='tip'] { border-color: color-mix(in oklab, var(--color-green-500) 25%, transparent); background-color: color-mix(in oklab, var(--color-green-500) 10%, transparent); } aside[data-blume-callout='tip'] [class~='text-accent'] { color: var(--color-green-600); } :root[data-theme='dark'] aside[data-blume-callout='tip'] [class~='text-accent'] { color: var(--color-green-400); } /* Search trigger: wide, quiet gray box like the reference header. The owned header renders this field and forwards clicks to Blume's own icon trigger, which stays hidden. */ [data-orpc-search-field] { height: 2.375rem; border-color: transparent; border-radius: 0.5rem; background: var(--blume-muted); } [data-orpc-search-field]:hover { border-color: var(--blume-border); } [data-orpc-search] [data-blume-search-open] { display: none; } /* The page-actions popovers (Export, Connect to MCP) are up to 22rem wide but live inside the scrollable TOC rail, which clips anything wider than the rail. Size them to the rail instead. */ [data-blume-toc] [data-blume-menu] { inset-inline-end: 0; width: 100%; min-width: 0; max-width: none; } /* The built-in drawer section lists can't render dropdown-tab items (the "More" menu), so the overrides supply their own: MobileNav inside the docs drawer, and the header's own drawer (data-orpc-drawer) on chrome-only PageLayout pages, whose built-in drawer sits directly under and is hidden wholesale here. */ [data-blume-nav-drawer]:not([data-orpc-drawer]) > nav:not([data-blume-nav-tree]) { display: none; } body > aside[data-blume-nav-drawer]:not([data-orpc-drawer]) { display: none; } /* ---------------------------------------------------------------- */ /* Custom pages (pages/*.astro): landing, experts, sponsors */ /* The landing code panes live outside `.prose`, so the dual-theme */ /* Shiki variables and the pane chrome are re-declared here. */ /* ---------------------------------------------------------------- */ /* Dot field behind the hero and the closing CTA, faded out with a mask so it never meets a section border. Tinted from the foreground so it stays equally faint in both themes. */ .orpc-dots { position: absolute; inset: 0; z-index: -1; background-image: radial-gradient( color-mix(in oklch, var(--blume-foreground) 14%, transparent) 1px, transparent 1px ); background-size: 22px 22px; mask-image: radial-gradient(ellipse 75% 60% at 50% 0%, #000 10%, transparent 70%); pointer-events: none; } .orpc-dots-bottom { mask-image: radial-gradient(ellipse 75% 60% at 50% 100%, #000 10%, transparent 70%); } /* Inner pages (experts, sponsors) keep their text on the left, so the field fades in from the top-right corner instead, anchored there so the dots keep the same inset from a panel's border at every width. */ .orpc-dots-corner { background-position: right top; mask-image: radial-gradient(ellipse 60% 100% at 100% 0%, #000 10%, transparent 70%); } /* Buttons */ .orpc-btn { display: inline-flex; align-items: center; gap: 0.5rem; height: 2.75rem; padding-inline: 1.25rem; border-radius: var(--blume-radius); font-size: 0.9375rem; font-weight: 500; white-space: nowrap; transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease; } .orpc-btn-primary { background: var(--blume-action); color: var(--blume-action-foreground); } .orpc-btn-primary:hover { opacity: 0.85; } .orpc-btn-ghost { border: 1px solid var(--blume-border); } .orpc-btn-ghost:hover { background: var(--blume-muted); } /* Copyable install command */ .orpc-install { display: inline-flex; align-items: center; gap: 0.625rem; max-width: 100%; padding: 0.5rem 0.75rem 0.5rem 0.875rem; border: 1px solid var(--blume-border); border-radius: var(--blume-radius); background: var(--blume-muted); font-family: var(--blume-font-mono); font-size: 0.8125rem; text-align: start; cursor: pointer; } .orpc-install:hover { border-color: color-mix(in oklch, var(--blume-foreground) 25%, transparent); } .orpc-install:active { background: color-mix(in oklch, var(--blume-foreground) 8%, var(--blume-muted)); } /* Wrap at the space between packages rather than scrolling inside the pill: a horizontally scrollable tap target fights the tap-to-copy on touch and hides the copy icon off the right edge. */ .orpc-install code { white-space: pre-wrap; word-break: keep-all; } /* Both icons occupy one grid cell so the swap can't shift the row. */ .orpc-install-icon { display: inline-grid; flex: none; color: var(--blume-muted-foreground); } .orpc-install-icon > * { grid-area: 1 / 1; } .orpc-icon-done, .orpc-install.is-copied .orpc-icon-idle { opacity: 0; } .orpc-install.is-copied .orpc-icon-done { opacity: 1; } /* Showcase: two panes share one frame, stacked below `lg`. */ /* One window: tab bar, caption, and code panes share a single frame, so the tabs read as the window's own chrome instead of buttons floating above it. */ .orpc-showcase { border: 1px solid var(--blume-border); border-radius: calc(var(--blume-radius) + 0.125rem); background: var(--blume-code-background); overflow: hidden; box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 30px 60px -40px rgb(0 0 0 / 0.35); } /* The frame is recessed below the page in dark mode, so a cast shadow reads as grime rather than lift. */ :root[data-theme='dark'] .orpc-showcase { box-shadow: none; } /* The reserved height lands on the pane grid, so the slack reads as editor padding and the divider between the panes still runs the full height. */ .orpc-showcase-body { flex: 1; } .orpc-split-pane + .orpc-split-pane { border-top: 1px solid var(--blume-border); } /* Matches the `xl:grid-cols-2` split in Showcase.astro. */ @media (min-width: 80rem) { .orpc-split-pane + .orpc-split-pane { border-top: 0; border-inline-start: 1px solid var(--blume-border); } } /* Code panes. The custom properties retint Shiki's line-highlight tokens — Blume's defaults are blue and this page is deliberately monochrome — and the column layout lets the
 fill the pane, so its horizontal scrollbar sits
   on the pane's bottom edge instead of floating directly under the last line
   with empty pane below it. The pane's surface and frame belong to the card. */
.orpc-code {
  --blume-code-highlight: color-mix(in oklch, var(--blume-foreground) 8%, transparent);
  --blume-code-highlight-border: color-mix(in oklch, var(--blume-foreground) 45%, transparent);

  display: flex;
  flex-direction: column;
}

.orpc-code > pre.astro-code {
  flex: 1;
}

.orpc-code-file {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-bottom: 1px solid var(--blume-border);
  font-family: var(--blume-font-mono);
  font-size: 0.75rem;
  color: var(--blume-muted-foreground);
}

.orpc-code-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background: color-mix(in oklch, var(--blume-foreground) 28%, transparent);
}

.orpc-code pre.astro-code {
  margin: 0;
  padding: 1.125rem 1.25rem 1.25rem;
  overflow-x: auto;
  background: transparent;
  color: var(--shiki-light, var(--blume-foreground));
  font-family: var(--blume-font-mono);
  font-size: 0.8125rem;
  line-height: 1.7;
  tab-size: 2;
  scrollbar-color: var(--blume-border) transparent;
  scrollbar-width: thin;
}

.orpc-code pre.astro-code span {
  color: var(--shiki-light, inherit);
  font-style: var(--shiki-light-font-style, inherit);
  font-weight: var(--shiki-light-font-weight, inherit);
  text-decoration: var(--shiki-light-text-decoration, inherit);
}

:root[data-theme='dark'] .orpc-code pre.astro-code {
  color: var(--shiki-dark, var(--blume-foreground));
}

:root[data-theme='dark'] .orpc-code pre.astro-code span {
  color: var(--shiki-dark, inherit);
  font-style: var(--shiki-dark-font-style, inherit);
  font-weight: var(--shiki-dark-font-weight, inherit);
  text-decoration: var(--shiki-dark-text-decoration, inherit);
}

/* Showcase tabs: a scrolling pill row on narrow screens, centered and
   wrapping once there is room for it. */

.orpc-tablist {
  display: flex;
  gap: 0.25rem;
  padding-inline: 0.5rem;
  border-bottom: 1px solid var(--blume-border);
  /* Chrome sits on the page surface; the code area keeps the recessed one. */
  background: var(--blume-background);
  overflow-x: auto;
  scrollbar-width: none;
}

/* Fade only the edge that has more tabs behind it, so the hint disappears once
   you reach either end. Showcase.astro sets the attributes on scroll. */
.orpc-tablist[data-overflow-start='true'] {
  mask-image: linear-gradient(to right, transparent, #000 2.5rem);
}

.orpc-tablist[data-overflow-end='true'] {
  mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent);
}

.orpc-tablist[data-overflow-start='true'][data-overflow-end='true'] {
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 2.5rem,
    #000 calc(100% - 2.5rem),
    transparent
  );
}

.orpc-tablist::-webkit-scrollbar {
  display: none;
}

/* Flat, like an editor's tab bar: the chrome around them is the card itself, so
   the tabs carry no border or fill of their own. */
.orpc-tab {
  flex: none;
  padding: 0.875rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--blume-muted-foreground);
  white-space: nowrap;
  cursor: pointer;
  transition:
    box-shadow 0.15s ease,
    color 0.15s ease;
}

.orpc-tab:hover {
  color: var(--blume-foreground);
}

/* Inset rather than a border plus negative margin: the strip is a scroll
   container, which would clip anything bleeding past its edge. */
.orpc-tab[aria-selected='true'] {
  box-shadow: inset 0 -2px 0 var(--blume-accent);
  color: var(--blume-foreground);
}

.orpc-panels > .orpc-panel {
  display: flex;
  flex-direction: column;
}

.orpc-panels > .orpc-panel[data-state='inactive'] {
  display: none;
}

/* Side by side, stack every panel in one grid cell so the card is exactly as
   tall as its tallest tab, computed by the browser at first paint. Reserving
   that height from JS measured it only after layout, which shifted the page
   below on load. Inactive panels stay laid out but hidden — visibility, not
   display, keeps them out of the a11y tree and the tab order while still
   contributing their height. Stacked, this would leave a hole under the short
   tabs, so it is scoped to the two-column layout. */
@media (min-width: 80rem) {
  .orpc-panels {
    display: grid;
  }

  .orpc-panels > .orpc-panel {
    grid-area: 1 / 1;
  }

  .orpc-panels > .orpc-panel[data-state='inactive'] {
    display: flex;
    visibility: hidden;
  }
}

/* Caption bar between the tabs and the code, centered so it reads as the
   window's own subtitle rather than a comment on the left-hand pane. */
.orpc-panel-desc {
  margin: 0;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--blume-border);
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--blume-muted-foreground);
  text-align: center;
  text-wrap: balance;
}

/* Headline numbers. Two columns until `lg`, then one per stat. */

.orpc-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.orpc-stat:nth-child(even) {
  border-inline-start: 1px solid var(--blume-border);
}

.orpc-stat:nth-child(n + 3) {
  border-top: 1px solid var(--blume-border);
}

/* An odd stat count leaves the last one alone on its row; span it so its top
   border runs the full width instead of stopping halfway. Scoped to the
   two-column tier: a `grid-column: auto` reset in the wider tier would lose to
   this selector's higher specificity. */
@media (max-width: 63.9375rem) {
  .orpc-stat:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (min-width: 64rem) {
  .orpc-stats {
    grid-template-columns: repeat(var(--orpc-stat-count, 4), minmax(0, 1fr));
  }

  .orpc-stat:nth-child(n) {
    border-top: 0;
    border-inline-start: 1px solid var(--blume-border);
  }

  .orpc-stat:first-child {
    border-inline-start: 0;
  }

  .orpc-stat > a {
    padding-inline: 1.5rem;
  }

  .orpc-stat:first-child > a {
    padding-inline-start: 0;
  }

  .orpc-stat:last-child > a {
    padding-inline-end: 0;
  }
}

.orpc-stat > a {
  display: block;
  padding: 2rem 1.5rem;
  transition: background-color 0.15s ease;
}

/* Align the first value in each row with the section gutter above it. Scoped to
   the two-column tier: these selectors outrank the wider tier's plain
   `.orpc-stat > a` padding, so unscoped they would strip the inner
   padding off the third and fourth cells there too. */
@media (max-width: 63.9375rem) {
  .orpc-stat:nth-child(odd) > a {
    padding-inline-start: 0;
  }

  .orpc-stat:nth-child(even) > a {
    padding-inline-end: 0;
  }
}

.orpc-stat > a:hover {
  background: color-mix(in oklch, var(--blume-muted) 55%, transparent);
}

.orpc-stat-value {
  display: block;
  font-family: var(--blume-font-display);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.orpc-stat-label {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  color: var(--blume-muted-foreground);
}

/* Horizontal scrollers share the code panes' thin, themed scrollbar; the
   browser default is a chunky arrow-ended bar that reads as a page-level
   overflow rather than a region you can swipe. */
.orpc-scroller {
  /* Also the containing block for anything absolutely positioned inside.
     Overflow never clips an abs-pos descendant whose containing block sits
     outside the scroller, so the comparison table's `.sr-only` cells (Tailwind
     makes them position: absolute) escaped it at the far right of the table and
     stretched the document ~130px past the viewport. Mobile browsers shrink the
     page to fit that width, which zoomed the whole landing page out and left a
     blank band down the right edge. */
  position: relative;
  scrollbar-color: var(--blume-border) transparent;
  scrollbar-width: thin;
}

/* Comparison summary table */

.orpc-compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  text-align: start;
}

.orpc-compare :is(th, td) {
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--blume-border);
  white-space: nowrap;
}

.orpc-compare tbody tr:last-child :is(th, td) {
  border-bottom: 0;
}

.orpc-compare thead th {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--blume-muted-foreground);
  text-align: center;
}

.orpc-compare thead th:first-child,
.orpc-compare tbody th {
  text-align: start;
}

.orpc-compare tbody th {
  font-weight: 500;
}

.orpc-compare tbody th a {
  text-decoration-line: underline;
  text-decoration-color: var(--blume-border);
  text-underline-offset: 0.25rem;
  transition: text-decoration-color 0.15s ease;
}

.orpc-compare tbody th a:hover {
  text-decoration-color: currentcolor;
}

/* The first data column is oRPC; tint it so the eye lands there first. */
.orpc-compare :is(th, td):nth-child(2) {
  background: var(--blume-muted);
}

.orpc-compare thead th:nth-child(2) {
  color: var(--blume-foreground);
}

.orpc-compare td {
  text-align: center;
}

/* Separate, not collapsed: a collapsed border stays behind when the header
   row sticks. */
.orpc-sponsors {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.875rem;
}

.orpc-sponsors :is(th, td) {
  padding: 0.375rem 0.75rem;
  border-bottom: 1px solid var(--blume-border);
  text-align: start;
  vertical-align: middle;
}

.orpc-sponsors th {
  font-weight: 400;
}

.orpc-sponsors thead th {
  padding-block: 0.625rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--blume-muted-foreground);
  white-space: nowrap;
}

.orpc-sponsors .orpc-num {
  text-align: end;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.orpc-sponsors-band :is(th, td) {
  padding-block: 0.5rem;
  background: var(--blume-muted);
  font-family: var(--blume-font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blume-muted-foreground);
}

.orpc-sponsors tbody tr {
  transition: background-color 0.15s ease;
}

.orpc-sponsors tbody tr:is(:hover, :focus-within) {
  background: color-mix(in oklch, var(--blume-muted) 60%, transparent);
}

.orpc-sponsors tfoot :is(th, td) {
  padding-block: 0.875rem;
  border-bottom: 0;
  background: var(--blume-muted);
  font-weight: 600;
}

/* Any overflow hidden/auto ancestor silently disables the sticky header. */
@media (min-width: 48rem) {
  .orpc-sponsors thead th {
    position: sticky;
    top: var(--docs-header-height);
    z-index: 1;
    background: var(--blume-background);
  }

  /* `scroll-padding-top` only clears the site header, not this one. */
  .orpc-sponsors tbody a {
    scroll-margin-top: 2.5rem;
  }
}

@media (min-width: 64rem) {
  .orpc-sponsors :is(th, td) {
    padding-inline: 1.25rem;
  }
}

/* Validated ordinal ramp (monotone lightness, >= 0.06 apart, every step >= 2:1
   on the page and the muted band); re-check before changing a step. Hue 359 is
   the brand accent in blume.config.ts; re-validate if it changes. */
:root {
  --orpc-tier-1: oklch(0.45 0.17 359);
  --orpc-tier-2: oklch(0.53 0.19 359);
  --orpc-tier-3: oklch(0.61 0.17 359);
  --orpc-tier-4: oklch(0.68 0.145 359);
  --orpc-tier-5: oklch(0.75 0.11 359);
}

:root[data-theme='dark'] {
  --orpc-tier-1: oklch(0.82 0.105 359);
  --orpc-tier-2: oklch(0.74 0.16 359);
  --orpc-tier-3: oklch(0.66 0.17 359);
  --orpc-tier-4: oklch(0.58 0.16 359);
  --orpc-tier-5: oklch(0.5 0.14 359);
}

@media (forced-colors: active) {
  .orpc-tier-swatch {
    forced-color-adjust: none;
  }
}

/* Star count riding inside the GitHub CTA, split off by a hairline. */
.orpc-btn-count {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-inline-start: 0.125rem;
  padding-inline-start: 0.625rem;
  border-inline-start: 1px solid var(--blume-border);
  color: var(--blume-muted-foreground);
  font-variant-numeric: tabular-nums;
}

/* Sponsor slots (apps/content/sponsors/). Two rules Tailwind cannot carry:
   the prose link reset, and the per-sponsor brand tint. */

/* `.prose :where(a)` ties with Tailwind's `no-underline` on specificity and
   wins on source order, so the reset is restated here. Qualified with the
   element so it beats that tie outright rather than relying on file order. */
a.slot-card {
  font-weight: inherit;
  text-decoration: none;
}

/* Same tie for the label: prose's paragraph margin beat `mb-2`, opening 16px
   under the label and another 16px above it, which pushed the whole slot away
   from the content it sits between. */
p.slot-label {
  margin-block: 0 0.5rem;
}

/* Tint colours are per-sponsor data, supplied inline as a light/dark pair by
   AdCard.astro. Tailwind's `dark:` variant tracks prefers-color-scheme, but
   the site switches on [data-theme], so the pair is resolved here instead. */
.slot-card {
  background-color: var(--slot-bg, transparent);
}

:root[data-theme='dark'] .slot-card {
  background-color: var(--slot-bg-dark, transparent);
}

/* A wash layered over whatever tint the card carries, so hover reads the same
   on a tinted card and an untinted one. */
.slot-card:hover {
  background-image: linear-gradient(rgb(0 0 0 / 5%), rgb(0 0 0 / 5%));
}

:root[data-theme='dark'] .slot-card:hover {
  background-image: linear-gradient(rgb(255 255 255 / 7%), rgb(255 255 255 / 7%));
}

/* An unsold cell has no tint of its own, so hover and focus give it the muted
   surface. Stated here rather than as a `hover:bg-muted` utility because the
   dark tint rule above outranks a lone hover class, which left dark mode --
   the default theme -- with no fill at all. */
a.slot-card.slot-empty:hover,
a.slot-card.slot-empty:focus-visible {
  background-color: var(--blume-muted);
}