/* The site uses the library's own colors (Neutral), as an app would; only the brand's Ember for
   pictograms is its own. */
:root.site {
  --site-ember-soft: light-dark(#fdebdf, rgb(242 106 27 / 0.18));
  --site-ember-text: light-dark(#b8440a, #ff8f4d);
}

/* Docs pages always show the page's scrollbar, so moving between a short page and a long one
   doesn't change the width and shift the centered columns. In the library's base layer, so its
   page locks (an open dialog, components layer) still hide it; the scrollbar's width then pads
   the page as usual (scrollbar.ts). */
@layer izzy.base {
  :root:has(.site-shell-docs) { overflow-y: scroll; }
}

/* The home page's band ("Why SSR first"): gray in light mode; in dark mode a shade above the hero's
   Ink, with a hairline, so the two read as separate bands. */
:root.site .site-band {
  background: light-dark(var(--ib-color-fill-subtle), #191b20);
  border-block-start: 1px solid light-dark(transparent, var(--ib-color-border));
}
/* A card on a band is lighter than the band: white on the gray in light mode, a shade above it in dark,
   where the library's surface is nearly the band's own color. */
:root.site .site-band :is(.site-proof, .site-free-card, .site-show, .site-bridge) {
  background: light-dark(var(--ib-color-surface), #202228);
}

/*
 * The docs site's own styles: page layout, the example viewer and API reference blocks. Everything
 * else is IzzyBlazor's. Unlayered, so these win over the library's layers where they meet.
 */

/* Brand: the wordmark's ink and gray follow the color scheme. */
.site-logo { display: block; width: auto; height: 22px; }
/* The header (HF): 64px high from 768px (the shell's 56px below), and its wordmark 20px high while the
   areas are in the menu. */
@media (width >= 768px) { :is(.site-shell, .site-shell-home) { --ib-shell-header-h: 4rem; } }
@media (width < 1024px) { .ib-shell-brand .site-logo { height: 20px; } }
.site-logo-ink { fill: light-dark(#14161a, #f5f4f1); }
.site-logo-soft { fill: light-dark(#5a6069, #a9aeb6); }

/* The home page's hero (L1), on the page's own colors: Bricolage Grotesque for the headline, Ember text
   for its second line, and under it the app in a desktop window and a phone. The brand's knob glows behind
   the headline, cut off by the hero's top. It ends on a border, which cuts the pictures off. */
.site-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-block-end: 1px solid var(--ib-color-border);
  padding-block: 2.5rem 0;
}
@media (min-width: 64rem) { .site-hero { padding-block-start: 5.5rem; } }
/* The caption 36px under the buttons (56px on wide screens). */
.site-hero-grid {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.25rem;
}
/* The headline, the sentence and the buttons, 20px apart (24px on wide screens). */
.site-hero-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
  text-align: center;
}
/* 72px on wide screens, 34px on phones (each line fits at 375px): the library's largest heading
   size is 60px. */
.site-hero-title.site-hero-title {
  font-family: "Bricolage Grotesque", var(--ib-font-heading);
  font-size: clamp(2.125rem, 9.6vw - 0.1rem, 4.5rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.site-hero-title span { color: var(--site-ember-text); }
/* Balanced, so its lines are about one length and narrower than the 36em they may take. */
.site-hero-sub.site-hero-sub { max-width: 36em; font-size: 1.0625rem; line-height: 1.6; text-wrap: balance; }
.site-hero-actions { display: flex; gap: var(--ib-space-3); }
/* Standalone links (an action, not a link in a sentence): Medium, an arrow, no underline until
   hover. In the accent (Ember text) on their own. */
.site-action { display: inline-flex; align-items: center; gap: var(--ib-space-1); font-weight: 500; }
.site-action .ib-icon { width: 0.875rem; height: 0.875rem; }
.site-action-accent { color: var(--site-ember-text); }
@media (max-width: 63.98rem) {
  /* Phones and tablets: the buttons full width, the main button first. */
  .site-hero-actions { flex-direction: column; align-self: stretch; }
}
@media (prefers-reduced-motion: no-preference) {
  .site-shell-home .site-logo-knob { transform-box: fill-box; transform-origin: center; animation: site-ember-knob 1.1s cubic-bezier(.2, .7, .2, 1) both; }
}
@keyframes site-ember-knob { 0% { opacity: 0; transform: scale(.4); } 60% { opacity: 1; transform: scale(1.15); } 100% { transform: scale(1); } }

/* The demo under the text: its caption, then the frames 14px under it. */
.site-hero-demo { display: flex; flex-direction: column; align-items: center; gap: 0.875rem; width: 100%; }
/* The caption: a pill on the picture's top, with the link that opens the app. */
.site-hero-caption {
  position: relative;
  z-index: 2;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  margin: 0;
  padding: 0.375rem 0.375rem 0.375rem 0.875rem;
  border: 1px solid var(--ib-color-border);
  border-radius: 9999px;
  background: var(--ib-color-surface);
  box-shadow: var(--ib-shadow-xs);
  font-size: var(--ib-text-sm);
  color: var(--ib-color-muted);
}
.site-hero-caption-wide { display: none; }
.site-hero-caption > a {
  display: inline-flex;
  align-items: center;
  gap: var(--ib-space-1);
  height: 1.75rem;
  padding-inline: 0.625rem;
  border-radius: 9999px;
  background: var(--ib-color-fill-subtle);
  font-weight: 500;
  color: var(--ib-color-on-surface);
  text-decoration: none;
}
.site-hero-caption > a:hover { background: var(--ib-color-fill); text-decoration: underline; }
.site-hero-caption .ib-icon { width: 0.875rem; height: 0.875rem; }

/* The app as pictures (HomePosterTests takes them from frame/home-store, light and dark). Below 1024px the
   phone stands alone, 220px wide, on a stage 420px high that cuts it off. */
.site-hero-stage { position: relative; display: flex; justify-content: center; width: 100%; height: 26.25rem; }
/* No display here: Image hides the picture of the other scheme with it. */
.site-hero-stage img.ib-image { width: 100%; height: auto; vertical-align: top; }
/* The knob behind the headline: 300px wide and 110px above the hero's top (520px and 212px on wide
   screens), faint and blurred, so it reads as a glow under the header. */
.site-hero-knob {
  position: absolute;
  z-index: 0;
  top: -6.875rem;
  left: 50%;
  width: 18.75rem;
  height: auto;
  translate: -50% 0;
  opacity: 0.28;
  filter: blur(16px);
  pointer-events: none;
}
/* Stronger in the dark scheme: the root's explicit choice, else the system's. */
:root[data-ib-color-scheme="dark"] .site-hero-knob { opacity: 0.4; }
@media (prefers-color-scheme: dark) {
  :root:not([data-ib-color-scheme="light"]) .site-hero-knob { opacity: 0.4; }
}
.site-hero-window { display: none; }
.site-hero-phone {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  width: 13.75rem;
  overflow: hidden;
  border: 6px solid var(--ib-color-fill);
  border-radius: 1.75rem;
  background: var(--ib-color-surface);
  box-shadow: 0 1.5rem 3.75rem rgb(0 0 0 / 0.22);
}
/* The bar: the three dots. */
.site-hero-window-bar {
  display: flex;
  flex: none;
  align-items: center;
  height: 1.75rem;
  padding-inline: var(--ib-space-3);
  border-bottom: 1px solid var(--ib-color-border);
  background: var(--ib-color-fill-subtle);
}
.site-hero-window-dots { display: flex; gap: 0.375rem; }
.site-hero-window-dots i { width: 0.5625rem; height: 0.5625rem; border-radius: 50%; background: var(--ib-color-fill-strong); }
@media (min-width: 64rem) {
  /* As the sheet draws it: a stage 1120 by 600 that cuts the window off, so the stats and the chart are in
     the first view; the phone, 230px wide, 28px outside the window's start edge and 240px down, cut off with
     it; the knob, 520px wide, 34px above the window's top edge. Narrower than 1120px, the frames keep those
     proportions. */
  .site-hero-grid { gap: 3.5rem; }
  .site-hero-intro { gap: 1.5rem; }
  .site-hero-sub.site-hero-sub { font-size: 1.25rem; }
  .site-hero-caption-wide { display: inline; }
  .site-hero-caption-narrow { display: none; }
  .site-hero-stage { display: block; height: auto; max-width: 70rem; aspect-ratio: 1120 / 600; }
  .site-hero-knob { top: -13.25rem; width: 32.5rem; filter: blur(28px); }
  .site-hero-window {
    display: block;
    /* Out of the flow, so the stage's shape decides its height, not the picture's. */
    position: absolute;
    inset: 0;
    overflow: hidden;
    border: 1px solid var(--ib-color-border);
    border-block-end: 0;
    border-radius: 0.75rem 0.75rem 0 0;
    background: var(--ib-color-surface);
    box-shadow: 0 1.5rem 4rem rgb(0 0 0 / 0.18);
  }
  .site-hero-phone {
    position: absolute;
    /* 28px outside the window; less where the screen's edge is closer than that. */
    left: calc(-1 * min(1.75rem, (100vw - 100%) / 2 - 0.5rem));
    top: 40%;
    bottom: 0;
    /* Stretched between them again: flex-start would size an out-of-flow box to its picture. */
    align-self: auto;
    width: 20.54%;
    border-block-end: 0;
    border-radius: 1.8125rem 1.8125rem 0 0;
  }
}

.site-install { background: #1b1d22; border-color: #2c2f36; }
.site-install {
  width: fit-content;
  padding: var(--ib-space-1) var(--ib-space-1) var(--ib-space-1) var(--ib-space-3);
  border: 1px solid var(--ib-color-border);
  border-radius: var(--ib-radius-md);
  background: var(--ib-color-surface);
}
.site-install code { background: none; padding: 0; white-space: nowrap; }
.site-install { max-width: 100%; overflow-x: auto; }
.site-muted-list { color: var(--ib-color-muted); }
.site-key-groups { display: flex; flex-direction: column; gap: var(--ib-space-6); }
.site-key-group { display: flex; flex-direction: column; gap: var(--ib-space-3); }
.site-key-or { margin-inline: var(--ib-space-2); color: var(--ib-color-muted); font-size: var(--ib-text-sm); }

/*
 * Docs: the sidebar, content and outline centered as one group (as on Chakra's docs),
 * once the sidebar is a column (768px, AppSidebar's Md breakpoint). Widths match SiteWidths.cs.
 */
@media (min-width: 48rem) {
  .ib-shell.site-shell {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 72rem) auto minmax(0, 1fr);
    grid-template-areas:
      "banner banner banner banner banner"
      "header header header header header"
      ". sidebar main aside ."
      "footer footer footer footer footer";
  }
  /* The empty side columns read as the same surface as the columns between them. */
  /* The gutters beside the centered shell: the shell's own tone (the surface in light mode, the page in dark). */
  .ib-shell.site-shell { background: light-dark(var(--ib-color-surface), var(--ib-color-background)); }
  .site-shell .site-article { padding-inline: var(--ib-space-8); }
  /* The header's and footer's content line up with the sidebar's text, 1.5rem in from the columns'
     edges (SiteWidths.TextInset), also where the columns fill the window. */
  .site-shell-home > .ib-shell-main { --ib-bleed-gutter: var(--ib-space-6); }
  :is(.site-shell, .site-shell-home) > :is(.ib-shell-header, .ib-shell-footer) {
    padding-inline: max(var(--ib-space-6), round(down, var(--ib-shell-measure-pad), 1px));
  }
  /* Home on wide screens: 32px at the sides, as the design's column has (D3, D4). The header keeps
     the docs' inset, so it doesn't move between pages. */
  @media (min-width: 64rem) {
    .site-shell-home > .ib-shell-main { --ib-bleed-gutter: var(--ib-space-8); }
    .site-shell-home > .ib-shell-footer {
      padding-inline: max(var(--ib-space-8), round(down, var(--ib-shell-measure-pad), 1px));
    }
  }
  /* The outline column comes last in the HTML, after the content; the browser paints before it
     arrives, so an auto track would start empty and the whole group would slide over when it
     came. Docs pages always have it from 1536px (AppAside's Xxl breakpoint): keep its 15rem
     (SiteWidths.Aside) from the start. */
  @media (min-width: 96rem) {
    .ib-shell.site-shell-docs { grid-template-columns: minmax(0, 1fr) auto minmax(0, 72rem) 15rem minmax(0, 1fr); }
  }
}

/* Pages: headings break the flow into sections. */
.site-article {
  display: flex;
  flex-direction: column;
  gap: var(--ib-space-4);
  width: 100%;
  margin-inline: auto;
  padding-block: var(--ib-space-8) var(--ib-space-16);
}
/* Phones: the docs content keeps the page gutter (wider screens set it below). */
:where(.site-shell) .site-article { padding-inline: var(--ib-space-4); }
.site-article > h2 { margin-block-start: var(--ib-space-6); }
.site-article > .ib-prevnext, .site-article > nav:last-child { margin-block-start: var(--ib-space-8); }
.site-pagehead { margin-block-end: var(--ib-space-2); }

/* The footer (design board, HF): on the subtle fill, 56px above and 40px below its content (40 and 32 on
   phones). The about column (up to 420px) and three 140px link columns sit at the two ends; on phones they
   stack, with the link columns three across. */
:is(.site-shell, .site-shell-home) { --ib-shell-footer-bg: var(--ib-color-fill-subtle); }
/* AppFooter pads 16px above and below already. */
.site-footer { width: 100%; padding-block: var(--ib-space-6) var(--ib-space-4); }
.site-footer-top { display: flex; flex-direction: column; gap: var(--ib-space-8); }
.site-footer-about { display: flex; flex-direction: column; gap: var(--ib-space-8); min-width: 0; }
.site-footer-title.site-footer-title { font-size: 0.8125rem; font-weight: 600; }
.site-footer-brand { display: flex; flex-direction: column; gap: var(--ib-space-3); }
.site-footer-brand > .site-logo { align-self: flex-start; }
.site-footer-brand > p { max-width: 26em; line-height: 1.6; }
.site-footer-news { display: flex; flex-direction: column; gap: var(--ib-space-2); }
.site-footer-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ib-space-4); }
.site-footer-links > nav { display: flex; flex-direction: column; gap: 0.625rem; min-width: 0; }
.site-footer-links ul { display: flex; flex-direction: column; gap: 0.625rem; margin: 0; padding: 0; list-style: none; }
.site-footer-links a { font-size: var(--ib-text-sm); color: var(--ib-color-muted); }
.site-footer-links a:hover { color: var(--ib-color-on-surface); }
.site-footer-end {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--ib-space-3);
  margin-block-start: var(--ib-space-10);
  padding-block-start: var(--ib-space-6);
  border-block-start: 1px solid var(--ib-color-border);
  font-size: 0.8125rem;
  color: var(--ib-color-muted);
}
@media (width >= 1024px) {
  .site-footer { padding-block: var(--ib-space-10) var(--ib-space-6); }
  .site-footer-about { gap: var(--ib-space-7); }
  .site-footer-top { flex-direction: row; justify-content: space-between; gap: var(--ib-space-12); }
  .site-footer-about { max-width: 26.25rem; }
  .site-footer-links { grid-template-columns: repeat(3, 8.75rem); gap: var(--ib-space-6); }
}

/* The landing page's section headings from L4 on: 40px (28 on phones). */
.site-h2.site-h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.5rem); line-height: 1.2; letter-spacing: -0.02em; }

/* L4, free with an account: the intro, three picture cards (one column on phones), the actions and the quiet
   line, 32px apart. A card: a 16:10 picture from its top left over a hairline, then the count beside its name,
   a muted line and a link at the card's foot. */
.site-free.site-free { padding-block: 3.5rem; }
@media (width >= 1024px) { .site-free.site-free { padding-block: 6rem; } }
/* 24px between the parts on phones, 32px on wide screens; the sentence 16px, then 18px. */
.site-free-col { display: flex; flex-direction: column; gap: var(--ib-space-6); }
.site-free-intro { display: flex; flex-direction: column; gap: var(--ib-space-3); }
.site-free-intro > p { max-width: 40em; font-size: var(--ib-text-md); }
@media (width >= 1024px) { .site-free-col { gap: var(--ib-space-8); } .site-free-intro > p { font-size: var(--ib-text-lg); } }
.site-free-cards { display: grid; gap: var(--ib-space-4); }
@media (width >= 1024px) { .site-free-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.site-free-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--ib-color-border); border-radius: 0.875rem; background: var(--ib-color-surface); }
.site-free-picture { border-block-end: 1px solid var(--ib-color-border); border-radius: 0; background: var(--ib-color-fill); object-position: top left; }
.site-free-body { display: flex; flex: 1; flex-direction: column; gap: var(--ib-space-2); padding: 1.125rem 1.25rem 1.25rem; }
.site-free-body > p { flex: 1; margin: 0; font-size: var(--ib-text-sm); line-height: 1.6; color: var(--ib-color-muted); }
.site-free-body > .site-action { align-self: flex-start; font-size: var(--ib-text-sm); color: var(--ib-color-on-surface); }
.site-free-name.site-free-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--ib-space-2); font-size: var(--ib-text-md); font-weight: 600; }
.site-free-name > span { font-size: 1.875rem; line-height: 1; letter-spacing: -0.02em; }
.site-free-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ib-space-5); }
.site-free-actions > .site-action { color: var(--ib-color-on-surface); }
.site-free-note { display: flex; align-items: flex-start; gap: var(--ib-space-2); margin: 0; font-size: var(--ib-text-sm); color: var(--ib-color-muted); }
.site-free-note .ib-icon { flex: none; width: 1rem; height: 1rem; margin-block-start: 0.125rem; }
@media (width < 640px) {
  .site-free-actions { flex-direction: column; align-items: stretch; }
  .site-free-actions > .site-action { align-self: flex-start; }
}

/* The story sections of the landing and pricing pages (design board, page SB · Story drafts). A section is
   56px above and below on phones and 96px from 1024px (48 and 72 for the tight one). */
.site-story.site-story { padding-block: 3.5rem; }
.site-story-tight.site-story-tight { padding-block: 3rem; }
@media (width >= 1024px) { .site-story.site-story { padding-block: 6rem; } .site-story-tight.site-story-tight { padding-block: 4.5rem; } }
/* The components section between them: 48px, then 88px. */
.site-story-show.site-story-show { padding-block: 3rem; }
@media (width >= 1024px) { .site-story-show.site-story-show { padding-block: 5.5rem; } }
/* A section's parts: 28px apart on phones and 40px from 1024px; over a row of steps, 24px and 32px. */
.site-story-col { display: flex; flex-direction: column; gap: 1.75rem; }
.site-story-col-steps { gap: var(--ib-space-6); }
@media (width >= 1024px) { .site-story-col { gap: 2.5rem; } .site-story-col-steps { gap: var(--ib-space-8); } }
.site-story-head { display: flex; flex-direction: column; gap: var(--ib-space-3); }
.site-story-head > p { max-width: 40em; font-size: var(--ib-text-md); line-height: 1.6; }
@media (width >= 1024px) { .site-story-head > p { font-size: var(--ib-text-lg); } }
/* Points: an icon on a 40px gray tile, a 17px title and a 15px line. */
.site-points { display: grid; gap: 1.75rem; }
@media (width >= 1024px) { .site-points { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; } }
.site-point { display: flex; flex-direction: column; gap: 0.625rem; min-width: 0; }
.site-point-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 0.625rem; background: var(--ib-color-fill); }
.site-point-icon .ib-icon { width: 1.25rem; height: 1.25rem; }
.site-point-title.site-point-title { font-size: 1.0625rem; font-weight: 600; line-height: 1.5; }
.site-point > p { margin: 0; font-size: 0.9375rem; line-height: 1.6; color: var(--ib-color-muted); }
/* Steps: a card each, with its number on an ink disc beside the title. */
.site-plan { display: grid; gap: var(--ib-space-4); margin: 0; padding: 0; list-style: none; }
@media (width >= 1024px) { .site-plan { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.site-plan-step { display: flex; flex-direction: column; gap: var(--ib-space-3); min-width: 0; padding: 1.375rem; border: 1px solid var(--ib-color-border); border-radius: 0.75rem; background: var(--ib-color-surface); }
.site-plan-head { display: flex; align-items: center; gap: var(--ib-space-3); }
.site-plan-number { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 9999px; background: var(--ib-color-on-surface); color: var(--ib-color-surface); font-size: 0.9375rem; font-weight: 600; }
.site-plan-step > p { margin: 0; font-size: var(--ib-text-sm); line-height: 1.6; color: var(--ib-color-muted); }
/* The command reads as typed at a prompt; the "$" is drawn, so it isn't copied. */
.site-plan-step .ib-code-pre > code::before { content: "$ "; color: var(--ib-color-muted); }
/* The guide: the maker's note beside four facts (under it below 1024px). The heading is 28px, then 36px. */
.site-guide { display: grid; align-items: center; gap: var(--ib-space-8); }
@media (width >= 1024px) { .site-guide { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 4rem; } }
.site-guide-note { display: flex; flex-direction: column; gap: 1.125rem; }
.site-guide-title.site-guide-title { font-size: 1.75rem; line-height: 1.2; letter-spacing: -0.02em; }
.site-guide-note > p { max-width: 36em; margin: 0; font-size: 1.0625rem; line-height: 1.6; }
@media (width >= 1024px) { .site-guide-title.site-guide-title { font-size: 2.25rem; } .site-guide-note > p { font-size: var(--ib-text-lg); } }
.site-guide-by { display: flex; align-items: center; gap: var(--ib-space-3); }
.site-guide-by > div { display: flex; flex-direction: column; }
.site-guide-by > div > :first-child { font-size: 0.9375rem; font-weight: 600; }
.site-guide-by > div > :last-child { font-size: var(--ib-text-sm); color: var(--ib-color-muted); }
.site-proofs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ib-space-3); }
.site-proof { display: flex; flex-direction: column; gap: var(--ib-space-1); min-width: 0; padding: 1.125rem 1.25rem; border: 1px solid var(--ib-color-border); border-radius: 0.75rem; background: var(--ib-color-surface); color: inherit; text-decoration: none; }
.site-proof:hover { border-color: var(--ib-color-outline); }
.site-proof > :first-child { font-size: 1.625rem; font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
.site-proof > :last-child { font-size: var(--ib-text-sm); color: var(--ib-color-muted); }
/* The bridge to Pro: one card, the words beside the action (over it below 1024px). */
.site-bridge { display: flex; flex-direction: column; gap: var(--ib-space-5); padding: var(--ib-space-6); border: 1px solid var(--ib-color-border); border-radius: 1rem; background: var(--ib-color-surface); }
@media (width >= 1024px) { .site-bridge { flex-direction: row; align-items: center; gap: 4rem; padding: 2.5rem; } }
.site-bridge-text { display: flex; flex: 1; flex-direction: column; gap: var(--ib-space-3); min-width: 0; }
.site-bridge-for { display: flex; flex-wrap: wrap; align-items: center; gap: 0.625rem; font-size: var(--ib-text-sm); color: var(--ib-color-muted); }
.site-bridge-title.site-bridge-title { font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.02em; }
@media (width >= 1024px) { .site-bridge-title.site-bridge-title { font-size: 2rem; } }
.site-bridge-text > p { margin: 0; font-size: var(--ib-text-md); line-height: 1.6; color: var(--ib-color-muted); }
.site-bridge-action { display: flex; flex: none; flex-direction: column; align-items: flex-start; gap: 0.625rem; }
.site-bridge-action > p { margin: 0; font-size: 0.8125rem; line-height: 1.6; color: var(--ib-color-muted); }
@media (width < 640px) { .site-bridge-action { align-items: stretch; } }
/* The close: one centered column on 1120px, the heading at most 18em wide. */
.site-close { display: flex; flex-direction: column; align-items: center; gap: var(--ib-space-4); max-inline-size: 70rem; margin-inline: auto; text-align: center; }
.site-close > .site-h2 { max-width: 18em; }
.site-close > p { font-size: var(--ib-text-md); line-height: 1.6; }
@media (width >= 1024px) { .site-close > p { font-size: var(--ib-text-lg); } }
.site-close-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--ib-space-3); }
/* On phones the close reads from the start, with full-width actions. */
@media (width < 640px) { .site-close { align-items: stretch; text-align: start; } .site-close-actions { flex-direction: column; } }

/* Privacy and Terms: one reading column. */
.site-legal { display: flex; flex-direction: column; gap: var(--ib-space-4); max-inline-size: 44rem; margin-inline: auto; padding-block: var(--ib-space-12) var(--ib-space-16); }
.site-legal > h2 { margin-block-start: var(--ib-space-6); }

/* The newsletter's form: the field and Subscribe on one row. */
.site-newsletter-form { display: flex; flex-direction: column; gap: var(--ib-space-2); scroll-margin-block-start: 6rem; }
.site-newsletter-row { display: flex; align-items: flex-start; gap: var(--ib-space-2); }
.site-newsletter-note { margin: 0; font-size: 0.8125rem; color: var(--ib-color-muted); }
.site-newsletter-page { max-inline-size: 36rem; }

/* Pictograms: an icon on a tile tinted with the accent. */
.site-picto {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--ib-radius-md);
  background: var(--site-ember-soft);
  color: var(--site-ember-text);
  font-size: 1.25rem;
}
.site-picto .ib-icon { width: 1em; height: 1em; }
/* On the home page's gray band the tint washes out: a white tile with a hairline in light mode. */
.site-band .site-picto {
  background: light-dark(var(--ib-color-surface), var(--site-ember-soft));
  box-shadow: inset 0 0 0 1px light-dark(var(--ib-color-border), transparent);
}
.site-picto-sm { width: 2rem; height: 2rem; font-size: 1rem; }
.site-picto-lg { width: 3rem; height: 3rem; font-size: 1.5rem; border-radius: var(--ib-radius-lg); }
.site-card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--ib-space-2); }

/* Component pictograms (Services/Pictures.cs): ink tiles in either scheme, like the hero. */
.pg {
  /* Paper tiles with ink lines in light, ink tiles with paper lines in dark (as the monogram's i
     switches); the knob and the rings are Ember in both. */
  --pg-bg: light-dark(#f5f4f1, #14161a);
  --pg-line: light-dark(#14161a, #f5f4f1);
  --pg-steel: light-dark(#a9aeb6, #5c616b);
  --pg-faint: light-dark(#dcdcd8, #33373f);
  --pg-raised: light-dark(#ffffff, #1d2026);
  --pg-muted: light-dark(#e7e5e0, #2a2e36);
  --pg-strong: light-dark(#5a6069, #c9ccd1);
  display: block; width: 100%; height: auto; aspect-ratio: 160 / 96; background: var(--pg-bg);
}
.pg :is(rect, circle, path) { fill: none; }
.pg .pg-rings circle { fill: light-dark(rgb(242 106 27 / .5), #f26a1b); }
.pg .s { stroke: var(--pg-line); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pg .d { stroke: var(--pg-steel); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pg .d0 { stroke: var(--pg-faint); stroke-width: 1.5; }
.pg .es { stroke: #f26a1b; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pg .ink-s { stroke: #14161a; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pg .w2 { stroke-width: 2; } .pg .w3 { stroke-width: 3; }
.pg .dash { stroke-dasharray: 4 5; }
.pg .f { fill: var(--pg-raised); } .pg .m { fill: var(--pg-muted); } .pg .bgf { fill: var(--pg-bg); }
.pg .e { fill: #f26a1b; } .pg .a { fill: #ffb020; }
.pg .h { fill: #f26a1b; fill-opacity: .08; } .pg .h2 { fill: #f26a1b; fill-opacity: .22; } .pg .hs { fill: #f26a1b; fill-opacity: .12; }
.pg .t { fill: var(--pg-steel); } .pg .p { fill: var(--pg-strong); } .pg .p0 { fill: var(--pg-line); } .pg .inv { fill: var(--pg-bg); } .pg .ink { fill: #14161a; }
.pg .o55 { opacity: .55; }
.pg .as { stroke: #ffb020; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; } .pg .ah { fill: #ffb020; fill-opacity: .16; }
.pg text.pg-label { stroke: none; font-family: var(--ib-font-mono); font-size: 9px; font-weight: 600; letter-spacing: .04em; }
.pg text.pg-label-lg { font-size: 20px; letter-spacing: 0; } .pg text.pg-ember { fill: #f26a1b; }

/* The quiet pictures (the components page, after Chakra's): flat gray shapes on a plain tile.
   The accents (Ember, amber) become the strongest gray, their tints a faint one. */
.pg-quiet {
  --pg-bg: light-dark(#f4f4f5, #1c1d21);
  --pg-line: light-dark(#a1a1aa, #71717a);
  --pg-steel: light-dark(#c4c4c9, #52525b);
  --pg-faint: light-dark(#e4e4e7, #3f3f46);
  --pg-raised: light-dark(#ffffff, #27272a);
  --pg-muted: light-dark(#e4e4e7, #3f3f46);
  --pg-strong: light-dark(#a1a1aa, #71717a);
  --pg-accent: light-dark(#8b8b93, #8b8b93);
}
.pg-quiet :is(.e, .a) { fill: var(--pg-accent); }
/* Ink on an accent (a button's label, a play mark) turns light, so it shows on the gray. */
.pg-quiet .ink { fill: var(--pg-raised); }
.pg-quiet :is(.es, .as) { stroke: var(--pg-accent); }
.pg-quiet .ink-s { stroke: var(--pg-raised); }
.pg-quiet :is(.h, .h2, .hs, .ah) { fill: var(--pg-line); fill-opacity: .18; }
.pg-quiet text.pg-label { fill: var(--pg-strong); }
/* A label on an accent (the badge's count) turns light like ink, so it shows on the gray. */
.pg-quiet text.pg-label.inv { fill: var(--pg-raised); }
.pg-quiet text.pg-ember { fill: var(--pg-accent); }

/* A card's picture with a tag on its corner (the mode, or the component a demo is about), so the
   card reads picture, title, text. */
/* The components index: a card per group, four in a row from 1024px, each as tall as its row. */
/* A border a third of the way to the outline color, so the cards stand off the page in both schemes. */
.site-show { --site-show-line: color-mix(in oklab, var(--ib-color-border), var(--ib-color-outline) 35%); display: flex; flex-direction: column; border: 1px solid var(--site-show-line); border-radius: var(--ib-radius-xl); overflow: hidden; background: var(--ib-color-surface); box-shadow: var(--ib-shadow-xs); }
.site-show-body { padding: var(--ib-space-5); }
/* Four in a row are too narrow for "Forms and inputs" beside its count: there the count goes under the title, in every card. */
.site-show-head > * { white-space: nowrap; }
@media (width >= 1024px) { .site-show-head.site-show-head { flex-direction: column; align-items: flex-start; gap: 0; } }
.site-show-links { font-size: var(--ib-text-sm); row-gap: var(--ib-space-1); }

/* The hero's frames are live: a label says so. */
/* Above the app: centered over the phone, then at the window's start once the window shows. */


/* Link cards: they take you somewhere, so they read as links rather than content: a small
   pictogram on the left, the title and the description beside it. */
.site-linkcard .ib-card-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: var(--ib-space-3);
  row-gap: var(--ib-space-1);
  align-items: center;
}
.site-linkcard .ib-card-heading > .site-picto { grid-row: 1 / span 2; align-self: start; }
.site-linkcard .ib-card-title { grid-column: 2; }
.site-linkcard .ib-card-description { grid-column: 2; margin: 0; }
.site-linkcard:hover { border-color: var(--ib-color-primary); }
.site-linkcard .ib-card-body:empty { display: none; }

/* Mode chips: "none" is struck through, so the color isn't the only signal. */
.site-modes { display: inline-flex; flex-wrap: wrap; gap: var(--ib-space-1); vertical-align: middle; }
.site-mode-none { text-decoration: line-through; }
/* The mode table's marks: a check, or a dash for partly; no mark is "no". */
.site-mark { display: inline-flex; font-size: 1.125rem; vertical-align: middle; }
.site-mark .ib-icon { stroke-width: 2.5; }
.site-mark-yes { color: var(--ib-color-success-text); }
.site-mark-partly { color: var(--ib-color-warning-text); }

/* API reference */
.site-type, .site-default, .site-signature {
  font-family: var(--ib-font-mono);
  font-size: 0.8125rem;
  color: var(--ib-color-muted);
  background: none;
  padding: 0;
  overflow-wrap: break-word;
}
/* Parameter tables (as MUI's): the description gets most of the row; types and defaults are small
   chips that wrap inside a narrow column. */
.site-params :is(.site-type, .site-default) {
  display: inline-block;
  max-width: 16rem;
  padding: 1px var(--ib-space-1);
  border: 1px solid var(--ib-color-border);
  border-radius: var(--ib-radius-sm);
  background: var(--ib-color-fill-subtle);
  font-size: 0.75rem;
  line-height: 1.5;
  white-space: normal;
}
.site-params .site-default { color: var(--ib-color-on-surface); }
.site-params .site-member-name code { color: var(--ib-color-primary-text); }
/* Prop · Default · Type with the description under it (as Chakra's): the last column takes the rest. */
.site-params td:last-child, .site-params th:last-child { width: 100%; }
/* A two-column table whose first column sets a Width keeps that width, so the tables on one page
   (an article's options and commands) line up. */
.site-params:has(thead th:first-child[style*="width"]):has(thead th:nth-child(2):last-child) :is(td, th):last-child { width: auto; }
.site-params td:not(:last-child) { white-space: nowrap; vertical-align: top; }
.site-params td:last-child { vertical-align: top; }
/* Sentences in both columns (the accessibility pages): let the first wrap too, so a phone fits it. */
.site-params-wrap td:not(:last-child) { white-space: normal; }
/* A third for the first column, so its sentence wraps over a few lines, not a word a line. */
.site-params-wrap :is(td, th):first-child { width: 33%; }
.site-params-wrap :is(td, th):last-child { width: auto; }
/* Three or more columns of sentences (the tools overview, the audit's pages): every column wraps, and a
   column keeps a Width it sets. */
.site-params-prose td:not(:last-child) { white-space: normal; }
.site-params-prose :is(td, th):last-child { width: auto; }
/* A prose table's name column (a tool's name) keeps its name on one line; the prose beside it wraps. */
.site-params-prose td.site-name { white-space: nowrap; }
/* Component status: one table a category, the same four columns in each, so they line up down the page. */
@media (min-width: 40rem) { .site-params-status table { table-layout: fixed; width: 100%; } }
/* On a phone a quarter is too narrow for a component's name: the table keeps its own widths and scrolls. */
@media (max-width: 39.99rem) { .site-params-status :is(td, th) { white-space: nowrap; } }
/* A name and its description (commands, options) on a phone: the name's column, on one line at its set Width,
   left the description a word a line. The two columns are equal halves and both wrap, a long command inside a
   word if it must. (!important: a column's Width is an inline style.) Compact tables keep their own split;
   an API page's type tables (.site-type-block) and a component's keys (.site-keys) are the same two columns. */
@media (width < 40rem) {
  :is(.site-params:not(.site-params-compact), .site-type-block, .site-keys):has(thead th:nth-child(2):last-child) :is(td, th) { width: 50% !important; white-space: normal; }
  :is(.site-params:not(.site-params-compact), .site-type-block, .site-keys):has(thead th:nth-child(2):last-child) td code { overflow-wrap: anywhere; }
  /* A key written as a sentence (RichTextEditor's "[ ] or [x] at the start of a line") wraps too. */
  .site-keys :is(.ib-kbd-combo, .ib-kbd) { flex-wrap: wrap; white-space: normal; }
}
/* Three or more columns on a phone: the table stacks (SmallScreen="Stack", below 40rem here and on the Table), a
   row a card. The first cell is the row's name, with no title; each other cell has its column's title above its
   text, at the start. The header row is kept for screen readers only: its titles are on the cells. */
@container (width < 40rem) {
  .site-params-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .site-params.site-params-stack tbody > tr > td { width: auto !important; text-align: start; white-space: normal; }
  .site-params-stack tbody > tr > td::before { float: none; display: block; margin: 0; font-size: var(--ib-text-xs); font-weight: 600; }
  .site-params-stack tbody > tr > td:first-child { font-weight: 600; }
  .site-params-stack tbody > tr > td:first-child::before { content: none; }
  .site-params-stack td code { overflow-wrap: anywhere; }
  /* A parameter's type and default are a word or two: the title sits beside each. */
  .site-params-compact.site-params-stack tbody > tr > td:first-child { font-weight: inherit; }
  .site-params-compact.site-params-stack tbody > tr > td:not(:first-child)::before { display: inline-block; min-width: 4rem; font-weight: inherit; }
}
/* One thing in two libraries, row by row: equal halves, each wrapping. */
.site-params.site-params-pair :is(td, th) { width: 50%; white-space: normal; }
.site-params-pair code { overflow-wrap: anywhere; }
.site-params .site-param-text { margin-block-start: var(--ib-space-1); }
/* A migration table's note, under the IzzyBlazor name: lighter, so the names scan down the column. */
.site-migrate-note { color: var(--ib-color-muted); }
/* Compact (Overviews): prop and its first sentence in one cell, type and default beside it. */
.site-params-compact td:first-child, .site-params-compact th:first-child { width: 100%; white-space: normal; }
.site-params-compact td:last-child, .site-params-compact th:last-child { width: auto; }
.site-params-compact .site-param-text { display: block; color: var(--ib-color-muted); font-size: var(--ib-text-sm); }
.site-none { color: var(--ib-color-subtle); }
/* "Required" in place of a default: the one thing to notice in that column. */
.site-required { font-size: var(--ib-text-sm); font-weight: 600; color: var(--ib-color-on-surface); }
code .site-required { font-size: inherit; }
.site-default { color: var(--ib-color-on-surface); }
.site-member-name { display: inline-flex; align-items: center; gap: var(--ib-space-2); text-decoration: none; }
.site-member-name code { font-weight: 600; color: var(--ib-color-on-surface); }
a.site-member-name:hover code { color: var(--ib-color-primary-text); }
.site-params .ib-prose p { margin: 0; }
.site-params .site-modes { margin-block-start: var(--ib-space-1); }

/* API members: a list with dividers rather than a box. Each reads as a declaration (name, type,
   default) over its description, at a readable width. */
.site-members { border-block-start: 1px solid var(--ib-color-border); }
.site-member {
  display: flex;
  flex-direction: column;
  gap: var(--ib-space-2);
  padding-block: var(--ib-space-5);
  border-block-end: 1px solid var(--ib-color-border);
  scroll-margin-block-start: calc(var(--ib-control-h-md) + var(--ib-space-10));
}
.site-member:target {
  background: var(--ib-color-primary-soft);
  margin-inline: calc(-1 * var(--ib-space-3));
  padding-inline: var(--ib-space-3);
  border-radius: var(--ib-radius-md);
}
.site-member .ib-prose p { margin: 0; }
.site-member-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--ib-space-1) var(--ib-space-3); }
.site-member-head .site-member-name code { font-size: 1rem; }
.site-member-type { font-size: var(--ib-text-sm); color: var(--ib-color-muted); background: none; padding: 0; min-width: 0; overflow-wrap: anywhere; }
/* A long type name (SchedulerAppointmentContext) wraps on a phone, in a member's type and in a heading. */
.site-article .ib-heading { min-width: 0; overflow-wrap: anywhere; }
.site-member-default { color: var(--ib-color-subtle); }
.site-member-text { max-inline-size: 42rem; color: var(--ib-color-on-surface); }
/* In descriptions, code is a light tint and a member link is underlined mono text, not both. */
.site-member-text code { border: 0; padding: 0.05em 0.3em; font-size: 0.875em; }
.site-member-text a:has(> code) { text-decoration-color: var(--ib-color-outline); text-underline-offset: 0.2em; }
.site-member-text a > code { background: none; padding: 0; }
.site-member-meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ib-space-1) var(--ib-space-3);
  margin-inline-start: auto;
  font-size: var(--ib-text-sm);
  color: var(--ib-color-muted);
}
.site-part, .site-type-block {
  display: flex;
  flex-direction: column;
  gap: var(--ib-space-3);
  padding-block-start: var(--ib-space-4);
  scroll-margin-block-start: calc(var(--ib-control-h-md) + var(--ib-space-10));
}
.site-inherit { font-size: var(--ib-text-sm); }

/*
 * The example viewer: one row (Preview · Code tabs at the left; "Always Interactive" or the mode it
 * runs in, and any width switch, at the right), then a box holding only the preview or the code, then the example's
 * note for its mode. An example with no source has no tabs: the row has its title. The preview
 * renders in the page, in the page's mode (ExampleViewer).
 */
.ex {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: var(--ib-space-4);
  align-items: end;
  /* Under the sticky header when the address names it; where it was on the screen when its own
     link or form loaded the page again (App's script in <head>, site.js). */
  scroll-margin-top: 5rem;
}
.ex:target, [data-site-return]:target {
  scroll-margin-top: var(--site-return-top, 5rem);
}
.ex > .ex-tabs { display: contents; }
.ex > .ex-tabs > .ib-tabs-list { grid-row: 1; grid-column: 1; justify-self: start; }
.ex > .ex-tabs > .ib-tab-panel { grid-row: 2; grid-column: 1 / -1; min-width: 0; padding: var(--ib-space-3) 0 0; }
.ex-title { grid-row: 1; grid-column: 1; font-size: var(--ib-text-sm); font-weight: 600; min-width: 0; padding-block-end: var(--ib-space-1); }
.ex-panels { grid-row: 2; grid-column: 1 / -1; display: flex; flex-direction: column; gap: var(--ib-space-3); min-width: 0; padding-block-start: var(--ib-space-3); }
.ex-tools {
  grid-row: 1;
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: var(--ib-space-3);
  min-width: 0;
  padding-block-end: var(--ib-space-1);
}
.ex-tools:not(:has(> *)) { display: none; }
.ex-box {
  border: 1px solid var(--ib-color-border);
  border-radius: var(--ib-radius-lg);
  overflow: hidden;
  min-width: 0;
}
/* An example sits on the page's own background, marked off by the border: the library's
   background, a different gray, read as a brighter panel in dark mode. */
.ex-stage {
  /* The shell's tone: the surface in light mode, the page in dark, so a table or card in an
     example is a step above it there, as it is on a page. */
  background: light-dark(var(--ib-color-surface), var(--ib-color-background));
  --ib-example-padding: var(--ib-space-6);
}
/* Each top-level part of a sample at most as wide as the box; not over an example's own
   MaxWidth (an unlayered max-width here would beat the library's). */
.ex-stage > .ib-example-preview > :not(.ib-maxw) { max-width: 100%; }
.ex-stage > .ib-example-preview > .ib-maxw { max-width: min(100%, var(--ib-maxw)); }
/* The example's own theme (IzzyTheme) paints its scheme's background on a square box behind the
   rounded one, and on a band of another color (the home hero) its corners showed outside the
   curve: the box paints the background itself. */
.ex-theme { background: none; }
/* The home hero's window: an example, so the library's surface, inside the dark band. */
.ex-fixed-mode, .ex-mode { margin: 0; white-space: nowrap; }
.ex-needs-live { display: flex; align-items: center; justify-content: center; padding: var(--ib-space-6); }
.ex-below { grid-row: 3; grid-column: 1 / -1; padding-block-start: var(--ib-space-2); }
/* The command for the usage example: its line, then the command. */
.ex-below { display: flex; flex-direction: column; gap: var(--ib-space-3); min-width: 0; }
.ex-cli { display: flex; flex-direction: column; gap: var(--ib-space-1); min-width: 0; }
.ex-cli > .ib-text { margin: 0; }
/* The note's lines line up after the mode's name, not under it. */
.ex-note { display: flex; align-items: baseline; gap: var(--ib-space-2); margin: 0; text-wrap: pretty; }
/* The mode's name, a badge as the mode chips are, so the note reads as about it. */
.ex-note-mode { flex: none; }
/* The home page's phone frame scrolls with no scrollbar, as a phone's browser does. */
html:has(.frame-no-scrollbar) { scrollbar-width: none; }
.ex-frame {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color-scheme: normal;
}
/* A phone width: a demo's window narrows, so the page in it lays out as on a phone, and an example's
   box, for one that lays out by its own width. Only where
   that differs from its full width: under 640px (the library's sm) the page lays out as on a phone
   either way, so the switch goes, and a Phone picked in a wider window no longer applies. */
.ex:has(> .ex-tools > .ex-widths) { container: ex / inline-size; }
@container ex (width < 640px) {
  .ex-tools > .ex-widths { display: none; }
}
@container ex (width >= 640px) {
  .ex-phone .ex-stage {
    width: 390px;
    max-width: 100%;
    margin-inline: auto;
  }
}
.ex-source .ib-code-block, .ex-source pre { margin: 0; border: 0; border-radius: 0; }
/* Phones: the note and switches take their own row under the tabs. */
@media (width < 640px) {
  .ex-tools { grid-row: 2; grid-column: 1 / -1; justify-self: start; flex-wrap: wrap; padding-block: var(--ib-space-2) 0; }
  .ex > .ex-tabs > .ib-tab-panel, .ex-panels { grid-row: 3; }
  .ex-below { grid-row: 4; }
}

/* The width switch: links drawn as small buttons. */
.ex-widths a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--ib-space-1);
  height: var(--ib-control-h-sm);
  padding-inline: var(--ib-space-2);
  border-radius: var(--ib-radius-md);
  font-size: var(--ib-text-sm);
  font-weight: 500;
  color: var(--ib-color-muted);
  cursor: pointer;
  user-select: none;
}
.ex-widths a:hover { background: var(--ib-color-fill); color: var(--ib-color-on-surface); }
.ex-widths a[aria-current] {
  background: var(--ib-color-fill-strong);
  color: var(--ib-color-on-surface);
}
.ex-widths a:focus-visible {
  outline: 2px solid var(--ib-color-focus);
  outline-offset: 1px;
}
.ex-widths { display: inline-flex; gap: 2px; margin: 0; padding: 0; border: 0; min-width: 0; }
.ex-widths a { text-decoration: none; }

/*
 * The examples' mode (ModeSwitch): a menu in the docs header from 768px, and a label over a
 * full-width pair of links at the top of the drawer below that.
 */
.site-modeswitch-drawer { display: flex; flex-direction: column; gap: var(--ib-space-2); margin-block-end: var(--ib-space-4); }
.site-modeswitch-label { font-size: 0.8125rem; font-weight: 600; color: var(--ib-color-muted); }
@media (width >= 768px) { .site-modeswitch-drawer { display: none; } }
@media (width < 768px) { .site-modeswitch-header { display: none; } }

/* The docs home: concepts, and the library by category. */
.site-concept-title { margin: 0; }
.site-box-category {
  display: flex;
  flex-direction: column;
  gap: var(--ib-space-1);
  padding: var(--ib-space-3) var(--ib-space-4);
  border: 1px solid var(--ib-color-border);
  border-radius: var(--ib-radius-lg);
  background: var(--ib-color-surface);
}
.site-box-title { margin: 0; }
.site-box-title a { color: var(--ib-color-on-surface); }
.site-box-count { margin-inline-start: var(--ib-space-1); font-weight: 400; color: var(--ib-color-muted); font-size: var(--ib-text-sm); }

/* A demo's frame: a page of its own, scrolling inside its window. */
/* The library's surface behind a demo, as an app would have (the frame has the library's grays). */
html:has(> body > .frame), html:has(> body > .frame) body { background: light-dark(var(--ib-color-surface), var(--ib-color-background)); }
/* No strip kept for a scrollbar: AppShell keeps one on its page so locking it doesn't shift the
   page, but a frame that doesn't scroll would show it as an empty band down the right edge. */
html:has(> body > .frame) { scrollbar-gutter: auto; }
html:has(> body > .frame) body { margin: 0; }
.frame-page { padding: var(--ib-space-4); }
/* A whole app (AppShell) fills its frame: no padding, or its 100dvh would grow the frame with
   every resize. */
.frame-page:has(> .ib-shell) { padding: 0; }

/* Reference tables in articles scroll sideways on phones rather than widening the page. */
/* An article's diagram: a place (browser, server) is a tinted box, and what runs there a plain one. */
.site-diagram { margin: var(--ib-space-5) 0; }
.site-diagram-scroll { overflow-x: auto; }
.site-diagram svg { display: block; width: 100%; min-width: 35rem; max-width: 40rem; height: auto; font-size: 13px; }
.site-diagram text { fill: currentColor; }
.site-diagram .site-diagram-label { fill: var(--ib-color-muted); font-size: 12px; }
.site-diagram-place { fill: var(--ib-color-fill-subtle); stroke: var(--ib-color-border); }
.site-diagram-node { fill: var(--ib-color-surface); stroke: var(--ib-color-border); }
.site-diagram-line { fill: none; stroke: var(--ib-color-muted); stroke-width: 1.5; }
.site-diagram-head { fill: var(--ib-color-muted); }
.site-diagram figcaption { margin-top: var(--ib-space-2); color: var(--ib-color-muted); font-size: var(--ib-text-sm); }
.site-table { overflow-x: auto; }
.site-table table { min-width: 32rem; }
.site-table code { white-space: nowrap; }
/* Two columns fit a phone without scrolling: the table takes the width it has, and a token's name wraps. */
@media (width < 40rem) {
  .site-table:has(thead th:nth-child(2):last-child) table { min-width: 0; }
  .site-table:has(thead th:nth-child(2):last-child) code { white-space: normal; overflow-wrap: anywhere; }
}

/* The components index: a card a component, A to Z (after Chakra's overview), its picture on
   top and its summary held to two lines. */
.site-cards { margin-block-start: var(--ib-space-4); }
.site-cards .ib-card-description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
.site-card-marks { display: flex; flex-wrap: wrap; gap: var(--ib-space-1); }

/* Search (the /search page and the header's dialog): a heading per group, then a list of links,
   each a title with the matched words marked and where it is, and a line about it below. */
.site-search-count { margin: 0; min-height: 1lh; font-size: var(--ib-text-sm); color: var(--ib-color-muted); }
.site-search-group { display: flex; flex-direction: column; gap: var(--ib-space-2); }
.site-search-group + .site-search-group { margin-block-start: var(--ib-space-6); }
.site-search-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.site-search-item {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  padding-block: var(--ib-space-2);
  border-block-end: 1px solid var(--ib-color-border);
}
.site-search-item:last-child { border-block-end: 0; }
.site-search-link {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 var(--ib-space-2);
  width: fit-content;
  color: var(--ib-color-on-surface);
  font-weight: 500;
  text-decoration: none;
}
.site-search-link:is(:hover, :focus-visible) .site-search-title { text-decoration: underline; }
.site-search-context { font-size: var(--ib-text-sm); font-weight: 400; color: var(--ib-color-muted); }
.site-search-summary { margin: 0; font-size: var(--ib-text-sm); color: var(--ib-color-muted); }
.site-search-all { width: fit-content; margin-block-start: var(--ib-space-4); }

/* The header's search button: room for the word and the shortcut, which shows only with script
   (it needs site.js); its box stays without, so the button is one width either way. */
.site-search-button { width: 13.75rem; justify-content: flex-start; color: var(--ib-color-muted); font-weight: 400; }
.site-search-button .ib-btn-label { display: flex; flex: 1 1 auto; align-items: center; justify-content: space-between; gap: var(--ib-space-2); }
@media (scripting: none) {
  .site-search-key { visibility: hidden; }
}

/* The search dialog: one height whatever it shows, so typing never resizes it; the results
   scroll between the field and the key hints. Full screen on phones. */
.site-search-dialog { height: min(36rem, calc(100dvh - 4rem)); }
.site-search-dialog .ib-dialog-body { display: flex; flex-direction: column; overflow: hidden; }
.site-search-head {
  display: flex;
  align-items: center;
  gap: var(--ib-space-2);
  padding: var(--ib-space-4) var(--ib-space-4) var(--ib-space-2);
}
.site-search-form { display: flex; flex: 1 1 auto; align-items: flex-end; gap: var(--ib-space-2); min-width: 0; }
.site-search-dialog-count { padding-inline: var(--ib-space-4); }
.site-search-results {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: var(--ib-space-2) var(--ib-space-4) var(--ib-space-4);
  border-block-start: 1px solid var(--ib-color-border);
}
.site-search-results .site-search-group + .site-search-group { margin-block-start: var(--ib-space-4); }
.site-search-foot {
  display: flex;
  gap: var(--ib-space-4);
  padding: var(--ib-space-2) var(--ib-space-4);
  border-block-start: 1px solid var(--ib-color-border);
  font-size: var(--ib-text-xs);
  color: var(--ib-color-muted);
}
/* Without script there are no results as you type and no keys: a Search button submits. */
@media (scripting: enabled) {
  .site-search-submit { display: none; }
}
@media (scripting: none) {
  .site-search-foot { display: none; }
}
@media (max-width: 639.98px) {
  .site-search-dialog { width: 100%; height: 100dvh; max-height: none; border-radius: 0; }
  .site-search-foot { display: none; }
}

/* The header (HF): the first area's box starts 36px after the wordmark, and 48px from 1280px, so the brand
   reads apart from the links. SiteNav itself has no box (display: contents): the gap goes on its bar, on
   top of the header's own 12px. */
.site-header-nav > .ib-site-nav-bar { margin-inline-start: var(--ib-space-6); }
@media (width >= 1280px) { .site-header-nav > .ib-site-nav-bar { margin-inline-start: var(--ib-space-9); } }
/* The tools at the end: 2px apart, 4px more after search and, while the areas are in the row, 8px more
   before Sign in. */
.site-header-tools { display: flex; align-items: center; gap: 2px; min-width: 0; }
.site-header-tools > [data-site-search-open] { margin-inline-end: var(--ib-space-1); }
@media (width >= 1024px) { .site-header-tools > .site-header-signin { margin-inline-start: var(--ib-space-2); } }
/* GitHub, last in the menu panel, on a row of its own under Sign in. */
.site-header-github { flex-basis: 100%; padding-block-start: var(--ib-space-2); font-size: var(--ib-text-sm); font-weight: 500; color: var(--ib-color-on-surface); }

/* The version, at the top of the docs sidebar: the version and "Latest" at the start of
   the button, the chevron at its end; in the menu, "Latest" muted at the end of its item. */
.site-version-trigger { justify-content: space-between; margin-block-end: var(--ib-space-3); }
.site-version-trigger .ib-btn-label { display: flex; flex: 1 1 auto; align-items: center; gap: var(--ib-space-2); }
.site-version-text { font-weight: 600; }
.site-version-menu .ib-menu-label { display: flex; flex: 1 1 auto; align-items: center; gap: var(--ib-space-2); }
.site-version-note { margin-inline-start: auto; font-size: var(--ib-text-xs); color: var(--ib-color-muted); }

/* A filter row (the Blocks and Components indexes): the filters at the start, the count at the end. */
.site-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--ib-space-2) var(--ib-space-4);
  margin-block-end: var(--ib-space-6);
}
.site-filter-row > .site-search-count { margin-block-end: var(--ib-space-2); }
/* The form takes the row's free width, so its fields sit side by side rather than stacking. */
.site-filter-row > :first-child { flex: 1 1 auto; min-width: 0; }

/* The Blocks and Templates sidebars: a Pro item's label sits at the row's end (the only label: T1). */
.ib-nav-text:has(> .site-nav-pro) { display: flex; flex: 1; align-items: center; gap: var(--ib-space-2); }
.site-nav-pro { flex: none; margin-inline-start: auto; }

/* The Blocks index. */
.site-blocks-how {
  display: flex;
  flex-direction: column;
  gap: var(--ib-space-4);
  margin-block-end: var(--ib-space-8);
  padding: var(--ib-space-5) var(--ib-space-6);
  border-radius: var(--ib-radius-lg);
  background: var(--ib-color-fill-subtle);
}
.site-blocks-point { display: flex; align-items: flex-start; gap: var(--ib-space-3); }
.site-blocks-point > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.site-blocks-point-icon {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--ib-color-border);
  border-radius: var(--ib-radius-md);
  background: var(--ib-color-surface);
}
.site-blocks-group { display: flex; flex-direction: column; gap: var(--ib-space-4); margin-block-end: var(--ib-space-10); }
/* No gap: the heading already leaves room after its text for its # link. */
.site-blocks-group-head { display: flex; align-items: baseline; }
.site-blocks-count { font-size: var(--ib-text-md); color: var(--ib-color-muted); }
.site-block-picture { border-bottom: 1px solid var(--ib-color-border); object-position: top; }
.site-block-cards .ib-card-description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
/* Phones: a row each (Card Orientation Horizontal), a line between the picture and the text. */
@media (width < 768px) {
  .site-block-picture { border-bottom: 0; border-inline-end: 1px solid var(--ib-color-border); }
  .site-block-card > .ib-card-header { flex-wrap: wrap; }
}

/* A block's page. */
/* An item's page, a template's (T2) or a block's (T3): one column. The card that gets it sits under the pictures
   or the preview, at a card's width; the options or settings table after it has the page's width (four columns,
   long defaults). The T2 sheet's side column was drawn without the docs sidebar and left the table too narrow. */
.site-item-get { display: flex; flex-direction: column; gap: var(--ib-space-8); margin-block-start: var(--ib-space-6); }
.site-item-get > .site-getit { max-width: 33rem; }
.site-block-settings { display: flex; flex-direction: column; gap: var(--ib-space-4); min-width: 0; }
/* The card's numbered steps: a 24px number, then the step's name, command and note. */
.site-getit .ib-code-block, .site-getit pre { margin: 0; }
.site-steps { display: flex; flex-direction: column; gap: var(--ib-space-4); margin: 0; padding: 0; list-style: none; }
.site-steps > li { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); align-items: start; gap: var(--ib-space-2) 0.875rem; }
.site-steps > li > span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: var(--ib-color-fill); font-size: var(--ib-text-xs); font-weight: 600;
}
/* The step's parts are the grid's: its name and note beside the number, its command across the card, so a
   long command has the card's whole width. */
.site-steps > li > div { display: contents; }
.site-steps > li > div > * { grid-column: 2; }
.site-steps > li > div > .ib-code-block { grid-column: 1 / -1; }
.site-steps strong { align-self: center; }
.site-steps strong { font-size: var(--ib-text-sm); font-weight: 600; }
.site-steps p { margin: 0; font-size: var(--ib-text-xs); line-height: 1.6; color: var(--ib-color-muted); }
.site-block-switches {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: var(--ib-space-3) var(--ib-space-5);
  margin-block-end: var(--ib-space-3);
}
.site-block-switch { display: flex; flex-direction: column; gap: var(--ib-space-1); }
.site-block-switch-label { font-size: var(--ib-text-xs); font-weight: var(--ib-weight-medium); color: var(--ib-color-muted); }
.site-block-width { margin-inline-start: auto; }
@media (width < 768px) { .site-block-width { display: none; } }
.site-block-stage {
  border: 1px solid var(--ib-color-border);
  border-radius: var(--ib-radius-lg);
  /* The shell's tone, as the docs' example stage: the surface in light mode, the page in dark, so a block
     sits on what a page gives it and a card inside it is a step above. */
  background: light-dark(var(--ib-color-surface), var(--ib-color-background));
  --ib-example-padding: var(--ib-space-8) var(--ib-space-6);
  overflow: hidden;
}
@media (width < 768px) { .site-block-stage { --ib-example-padding: var(--ib-space-4); } }
.site-block-phone {
  display: grid;
  place-items: center;
  padding: var(--ib-space-6) var(--ib-space-4);
  border: 1px solid var(--ib-color-border);
  border-radius: var(--ib-radius-lg);
  background: var(--ib-color-fill-subtle);
}
/* A demo frame keeps color-scheme: normal for its own page, so a light-dark() token used on the
   frame itself would take its light half on a dark site: a white border. These two are registered
   colors, resolved on the root in the site's scheme, and inherited as plain colors. */
@property --site-frame-border { syntax: "<color>"; inherits: true; initial-value: transparent; }
@property --site-frame-surface { syntax: "<color>"; inherits: true; initial-value: transparent; }
:root { --site-frame-border: var(--ib-color-border); --site-frame-surface: var(--ib-color-surface); }
.site-block-frame {
  display: block;
  width: 390px;
  max-width: 100%;
  height: 760px;
  border: 1px solid var(--site-frame-border);
  border-radius: var(--ib-radius-lg);
  background: var(--site-frame-surface);
  color-scheme: normal;
}
.frame-block { padding: var(--ib-space-6) var(--ib-space-4); }
/* The frame's CodeExample only scopes the outline: no border, padding or background of its own. */
.frame-block-example { --ib-example-padding: 0; border: 0; border-radius: 0; background: none; }
/* A block's settings: the choices and a default stay on one line, but for a sentence-long default,
   which wraps at 16rem; the description takes the rest of the width. */
.site-settings :is(.site-choices, .site-default) { white-space: nowrap; }
.site-settings .site-default-long { display: inline-block; width: 16rem; white-space: normal; }
/* Under 1280px the table is narrower than its four columns: a long run of choices (None | Server | WebAssembly |
   Auto) wraps between them at 9rem and a sentence-long default at 12rem; the other columns stay on one line.
   (No percentage in the max-width: a cell sizing its column reads one as none.) Stacked on a phone they wrap too. */
@media (width < 1280px) {
  .site-settings .site-choices { display: inline-block; width: max-content; max-width: 9rem; white-space: normal; }
  .site-settings .site-default-long { width: 12rem; }
}

/* Block pictures follow the site's scheme: the root's explicit choice, else the system's. */
.site-pic-dark { display: none; }
:root[data-ib-color-scheme="dark"] .site-pic-light { display: none; }
:root[data-ib-color-scheme="dark"] .site-pic-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-ib-color-scheme="light"]) .site-pic-light { display: none; }
  :root:not([data-ib-color-scheme="light"]) .site-pic-dark { display: block; }
}
/* The Pages for a Model article's demo (Frame/CrudDemoFramePage.razor): the width switch, then the page in a frame. */
.site-crud-demo { display: grid; gap: var(--ib-space-3); justify-items: start; margin-block: var(--ib-space-4); }
.site-crud-demo > :is(.site-block-phone, .site-crud-frame) { justify-self: stretch; }
.site-crud-frame {
  display: block;
  width: 100%;
  height: 680px;
  border: 1px solid var(--site-frame-border);
  border-radius: var(--ib-radius-lg);
  background: var(--site-frame-surface);
  color-scheme: normal;
}

/* Templates: a kit's screenshots are one carousel, a screen at a time. Each is a link with a
   hairline, so a light shot shows on a light page. The phone screens share the last slide, at the
   height of the others. */
.site-template-screens { margin-block: var(--ib-space-4) var(--ib-space-8); }
.site-template-screen { display: block; border: 1px solid var(--ib-color-border); overflow: hidden; }
.site-template-phones { aspect-ratio: 16 / 10; }
.site-template-phones .site-template-screen { height: 100%; aspect-ratio: 375 / 812; }

/*
 * The pricing page (PR1 on the design board): a 1120px column, its numbers from the sheet. A change of
 * background divides its sections, as on the home page; a hairline only where two plain ones meet.
 */
.site-pricing-col { max-inline-size: 70rem; margin-inline: auto; }
.site-pricing-band { border-block-start: 1px solid var(--ib-color-border); }
.site-pricing-top { display: grid; gap: 1.75rem; padding-block: 2.5rem 3.5rem; }
.site-pricing-intro { display: grid; gap: 1rem; }
/* The hero: the words beside a drawing of the plugin's wizard (over it below 1024px). The heading is 34px,
   then 52px. */
.site-pricing-hero { display: grid; align-items: center; gap: var(--ib-space-8); padding-block: 2.5rem 3.5rem; }
.site-pricing-hero-text { display: flex; flex-direction: column; gap: 1.125rem; min-width: 0; }
.site-pricing-hero-badges { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ib-space-2); }
/* A promise that isn't built yet (Parts/Planned.razor): after its words, on their line. */
.site-planned { margin-inline-start: var(--ib-space-1); vertical-align: 0.0625rem; }
.site-pricing-title { font-size: 2.125rem; line-height: 1.08; font-weight: 600; letter-spacing: -0.03em; }
.site-pricing-hero-lead { max-inline-size: 32em; font-size: 1.0625rem; line-height: 1.6; }
.site-pricing-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ib-space-3); }
@media (width < 640px) { .site-pricing-hero-actions { flex-direction: column; align-items: stretch; } }
@media (width >= 1024px) {
  .site-pricing-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 3.5rem; padding-block: 5rem 5.5rem; }
  .site-pricing-hero-lead { font-size: 1.1875rem; }
}
/* Pricing's story sections: 88px above and below from 1024px. */
@media (width >= 1024px) { .site-story-88.site-story-88 { padding-block: 5.5rem; } }
/* The drawing: a project window (its tree and a model's code) with the wizard over its end. Below 1280px
   only the wizard, 300px wide and centered. */
.site-ide { position: relative; display: flex; flex-direction: column; margin: 0; font-size: 0.75rem; }
.site-ide-bar, .site-ide-back, .site-ide > .site-ide-caption { display: none; }
.site-wizard { align-self: center; width: 18.75rem; max-width: 100%; overflow: hidden; border: 1px solid var(--ib-color-border); border-radius: 0.625rem; background: var(--ib-color-surface); box-shadow: 0 12px 32px rgb(20 20 19 / 0.14); }
.site-wizard-head { display: flex; align-items: center; gap: var(--ib-space-2); padding: 0.75rem 0.875rem; border-block-end: 1px solid var(--ib-color-border); font-size: 0.875rem; font-weight: 600; }
.site-wizard-head .ib-icon { width: 1rem; height: 1rem; }
.site-wizard-head .ib-badge { margin-inline-start: auto; }
.site-wizard-body { display: flex; flex-direction: column; gap: 0.75rem; padding: 0.875rem; }
.site-wizard-body > div { display: flex; flex-direction: column; gap: 0.25rem; }
.site-wizard-label { font-weight: 500; color: var(--ib-color-muted); }
.site-wizard-select { display: flex; align-items: center; justify-content: space-between; height: 2rem; padding-inline: 0.625rem; border: 1px solid var(--ib-color-outline); border-radius: 0.375rem; font-size: 0.8125rem; }
.site-wizard-select .ib-icon { width: 0.875rem; height: 0.875rem; color: var(--ib-color-muted); }
.site-wizard-check { display: flex; align-items: center; gap: var(--ib-space-2); margin-block-start: 0.125rem; font-size: 0.8125rem; }
.site-wizard-check > i { display: inline-flex; align-items: center; justify-content: center; width: 1rem; height: 1rem; border-radius: 0.25rem; background: var(--ib-color-on-surface); color: var(--ib-color-surface); }
.site-wizard-check > i .ib-icon { width: 0.6875rem; height: 0.6875rem; }
.site-wizard-changes { display: flex; flex-direction: column; gap: 0.125rem; margin-block-start: 0.125rem; padding: 0.375rem 0.625rem; border: 1px solid var(--ib-color-border); border-radius: 0.375rem; font-family: var(--ib-font-mono); font-size: 0.71875rem; }
.site-wizard-changes b { font-weight: 400; }
.site-wizard-changes b[data-kind="add"] { color: var(--ib-color-success-text); }
.site-wizard-changes b[data-kind="edit"] { color: var(--ib-color-warning-text); }
.site-wizard-foot { display: flex; justify-content: flex-end; gap: var(--ib-space-2); padding: 0.625rem 0.875rem; border-block-start: 1px solid var(--ib-color-border); }
.site-wizard-foot > span { display: inline-flex; align-items: center; height: 2rem; padding-inline: 0.75rem; border-radius: 0.5rem; font-size: 0.8125rem; font-weight: 500; }
.site-wizard-foot > span[data-primary] { background: var(--ib-color-on-surface); color: var(--ib-color-surface); }
@media (width >= 1280px) {
  .site-ide { min-height: 30rem; overflow: hidden; border: 1px solid var(--ib-color-outline); border-radius: 0.75rem; background: var(--ib-color-fill-subtle); box-shadow: 0 24px 64px rgb(0 0 0 / 0.14); }
  .site-ide-bar { display: flex; align-items: center; gap: 0.375rem; height: 2rem; padding-inline: 0.75rem; border-block-end: 1px solid var(--ib-color-border); background: var(--ib-color-fill); color: var(--ib-color-muted); }
  .site-ide-bar > i { width: 0.625rem; height: 0.625rem; border-radius: 9999px; background: var(--ib-color-fill-strong, var(--ib-color-border)); }
  .site-ide-bar > span { margin-inline-start: 0.625rem; }
  .site-ide > .site-ide-caption { display: block; position: absolute; inset: 0.5rem 0.875rem auto auto; color: var(--ib-color-muted); }
  .site-ide-back { display: flex; position: absolute; inset: 2.0625rem 0 0; font-family: var(--ib-font-mono); }
  .site-ide-tree { display: flex; flex-direction: column; width: 11.25rem; padding-block: 0.5rem; border-inline-end: 1px solid var(--ib-color-border); color: var(--ib-color-muted); }
  .site-ide-tree > span { display: flex; align-items: center; height: 1.625rem; padding-inline-start: 0.5rem; }
  .site-ide-tree > span[data-depth="1"] { padding-inline-start: 1.375rem; }
  .site-ide-tree > span[data-depth="2"] { padding-inline-start: 2.25rem; }
  .site-ide-tree > span[data-current] { background: var(--ib-color-fill); color: var(--ib-color-on-surface); }
  .site-ide-code { flex: 1; margin: 0; padding: 1rem; font: inherit; line-height: 1.8; color: var(--ib-color-muted); }
  .site-wizard { position: relative; align-self: flex-end; width: 23.75rem; margin: 2rem 1.75rem 2rem 0; }
}
.site-pricing-lead { max-inline-size: 40em; font-size: 1rem; line-height: 1.6; }
.site-pricing-preview { display: flex; flex-wrap: wrap; align-items: center; gap: .625rem; }
.site-pricing-note { margin: 0; font-size: .8125rem; line-height: 1.6; color: var(--ib-color-muted); }
.site-pricing-note[data-mono] { font-family: var(--ib-font-mono); }
.site-pricing-h2 { font-size: 1.375rem; line-height: 1.2; font-weight: 600; letter-spacing: -0.015em; }

/* The levels: one column on a phone; from 64rem three cards that share four rows (name, price, action,
   list), so each row starts at the same height in all three. */
.site-pricing-levels { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; align-items: start; }
.site-pricing-level {
  display: flex; flex-direction: column; gap: 1.25rem; min-inline-size: 0; padding: 1.5rem;
  border: 1px solid var(--ib-color-border); border-radius: 1rem; background: var(--ib-color-surface);
}
.site-pricing-level[data-pick] { border: 2px solid var(--ib-color-primary); }
.site-pricing-level p { margin: 0; }
.site-pricing-level-name { display: grid; gap: .375rem; }
.site-pricing-level-name > div { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.site-pricing-level-name > p { font-size: .9375rem; line-height: 1.6; }
.site-pricing-level-price { display: grid; gap: .5rem; align-content: start; }
.site-pricing-level-price > p:first-child { display: flex; align-items: center; gap: .625rem; }
.site-pricing-amount { font-size: 2.5rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.site-pricing-unit { font-size: .875rem; line-height: 1.3; color: var(--ib-color-muted); }
.site-pricing-level-action { display: grid; gap: .625rem; align-content: start; }
.site-pricing-level-list { display: grid; gap: .75rem; align-content: start; padding-block-start: 1.25rem; border-block-start: 1px solid var(--ib-color-border); font-size: .875rem; }
.site-pricing-level-list > p { font-size: .8125rem; font-weight: 600; color: var(--ib-color-muted); }
.site-pricing-level-list .ib-list { gap: .625rem; }
.site-pricing-level-list .ib-icon { inline-size: 1rem; block-size: 1rem; }

/* The founding price: the explanation, with the form under it on a phone and beside it from 64rem. */
.site-pricing-founding { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; align-items: center; padding-block: 2.5rem; }
.site-pricing-founding > div:first-child { display: grid; gap: .625rem; }
.site-pricing-founding-title { font-size: 1.375rem; line-height: 1.2; font-weight: 600; letter-spacing: -0.015em; }
/* A reserved address or a form's answer lands here: below the sticky header, not under it. */
#reserve, #plans { scroll-margin-block-start: 4rem; }

/* What you can make. On a phone a row is the item's name, then the three levels side by side, each
   under its name; from 48rem it's the table as written. */
.site-pricing-make { display: grid; gap: 1.25rem; padding-block: 3rem; }
.site-pricing-table { inline-size: 100%; border-collapse: collapse; font-size: .875rem; text-align: start; }
.site-pricing-table :is(th, td) { text-align: start; vertical-align: middle; }
.site-pricing-table .ib-icon { display: block; inline-size: 1.125rem; block-size: 1.125rem; }
.site-pricing-yes { color: var(--ib-color-success-text); }
.site-pricing-no { color: var(--ib-color-subtle); }
@media (max-width: 47.99rem) {
  .site-pricing-table thead { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); }
  .site-pricing-table tbody { display: block; }
  .site-pricing-table tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .625rem .5rem; padding-block: .875rem; border-block-start: 1px solid var(--ib-color-border); }
  .site-pricing-table tbody th { grid-column: 1 / -1; font-weight: 600; }
  .site-pricing-table td { display: flex; flex-direction: column; gap: .25rem; align-items: flex-start; }
  .site-pricing-table td::before { content: attr(data-level); font-size: .6875rem; font-weight: 600; color: var(--ib-color-muted); }
}
@media (min-width: 48rem) {
  .site-pricing-table thead th { padding: .75rem 1rem; font-weight: 600; inline-size: 22%; }
  .site-pricing-table thead th:first-child { inline-size: auto; padding-inline-start: 0; }
  .site-pricing-table tbody tr { border-block-start: 1px solid var(--ib-color-border); }
  .site-pricing-table tbody th { padding: .875rem 1rem .875rem 0; font-weight: 500; }
  .site-pricing-table td { padding: .875rem 1rem; }
}

.site-pricing-enterprise { padding-block-end: 3rem; }
.site-pricing-enterprise > div {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; padding: 1.5rem;
  border: 1px solid var(--ib-color-border); border-radius: 1rem; background: var(--ib-color-surface);
}
.site-pricing-enterprise > div > div { flex: 1; display: grid; gap: .25rem; }
.site-pricing-enterprise-title { font-size: 1.0625rem; font-weight: 600; }
.site-pricing-enterprise p { margin: 0; font-size: .9375rem; line-height: 1.6; color: var(--ib-color-muted); }

.site-pricing-questions { display: grid; gap: 1.75rem; padding-block: 3rem 3.5rem; }
.site-pricing-questions > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.75rem 4rem; }
.site-pricing-questions > div > div { display: grid; gap: .5rem; align-content: start; }
.site-pricing-questions p { margin: 0; font-size: .9375rem; line-height: 1.6; color: var(--ib-color-muted); }

@media (min-width: 64rem) {
  .site-pricing-top { gap: 2.25rem; padding-block: 4.5rem; }
  .site-pricing-intro { justify-items: center; text-align: center; }
  .site-pricing-preview { justify-content: center; }
  .site-pricing-enterprise > div { flex-direction: row; align-items: center; }
  .site-pricing-title { font-size: 3.25rem; }
  .site-pricing-lead { font-size: 1.125rem; }
  .site-pricing-h2 { font-size: 1.75rem; }
  .site-pricing-levels { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(4, auto); gap: 1.25rem; }
  .site-pricing-level { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 1.25rem; padding: 1.75rem; }
  .site-pricing-founding { grid-template-columns: minmax(0, 1fr) 25rem; gap: 4rem; padding-block: 3.5rem; }
  .site-pricing-founding-title { font-size: 1.5rem; }
  .site-pricing-make { gap: 1.5rem; padding-block: 4.5rem; }
  .site-pricing-enterprise { padding-block-end: 4.5rem; }
  .site-pricing-questions { gap: 2.25rem; padding-block: 4.5rem 5.5rem; }
  .site-pricing-questions > div { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 4rem; }
}
