/*
  Orbit app styles

  Character (keep this when changing things):
  - Large, readable type that grows with the viewport (16px → 19px → 23px).
  - Golden-ratio spacing steps (0.21, 0.38, 0.62, 1, 1.62, 2.89, 4.86) in em,
    so spacing grows with the type.
  - Soft off-white paper (a dark set and Orbit Settings can change it), deep violet-black ink, one vivid blue for primary
    actions, a light grey surface for everything secondary.
  - Two radii: small corners on controls, softer corners on frames, cards
    and dialogs. The phone preview frame keeps its own.
  - Bold buttons with playful emoji icons; "..." means the button opens a
    dialog and never acts on a single click. Two button sizes, by role.
  - Two text modes: app pages read a little denser (1.35, 72ch); the home
    page reads like prose (1.5, 64ch).
  - Containers have one job each: a bordered card is something you act on,
    a grey box is guidance or a note, a plain section is for reading.

  Token groups: --rs-text-*, --rs-space-*, --rs-radius-*, --rs-color-*,
  --rs-focus-*, --rs-dialog-*, --rs-preview-*, --rs-editor-*.
*/
:root {
  /* Text */
  --rs-text-heading-1: 1.62em;
  --rs-text-heading-2: 1.44em;
  --rs-text-heading-3: 1.1em;
  --rs-text-small: 0.82em;
  --rs-text-fine: 0.62em;
  --rs-text-weight-medium: 500;
  --rs-text-weight-bold: 700;
  --rs-text-line-tight: 1.2;
  --rs-text-line-body: 1.5;
  /* The text's font; Orbit Settings can choose another on this device. */
  --rs-text-font: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --rs-text-measure: 64ch;
  /* Code stays at a fixed size so long lines fit; it does not grow with the body text. */
  --rs-text-code: 0.94rem;
  --rs-text-mono:
    "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo,
    monospace;

  /* Space (golden-ratio steps, in em so they grow with the type) */
  --rs-space-3xs: 0.21em;
  --rs-space-2xs: 0.38em;
  --rs-space-xs: 0.62em;
  --rs-space-sm: 0.79em;
  --rs-space-md: 1em;
  --rs-space-lg: 1.62em;
  --rs-space-xl: 2.89em;
  --rs-space-2xl: 4.86em;
  --rs-space-box-sm: 0.21em 0.38em;
  --rs-space-box-md: 0.62em 1em;

  /*
    Layout: two left edges.
    - Chrome edge (nav, footer): the content wrap's gutter, --rs-space-md.
    - Content edge (page heading, sections): the chrome edge plus this inset.
  */
  --rs-layout-content-inset: var(--rs-space-md);

  /* Radius */
  --rs-radius-sm: 0.21em; /* controls: buttons, fields */
  --rs-radius-lg: 0.79em; /* frames: cards, grey boxes, dialogs, editor panes */
  /* A card's border: plans, callouts, the comparison, form cards (owner,
     2026-11-15: thicker than a hairline). */
  --rs-card-border: 0.1875rem;
  --rs-radius-pill: 999px; /* status badges */

  /* Color */
  --rs-color-ink: rgb(23, 16, 38);
  --rs-color-ink-muted: rgb(88, 82, 102);
  /* Paper is a little off white: pure white glares for many readers
     (owner, 2026-11-11). Orbit Settings can change it per device. */
  --rs-color-paper: rgb(250, 249, 246);
  --rs-color-surface: #f2f4f7;
  --rs-color-surface-hover: #e4e7ed;
  --rs-color-border: #d8d9dd;
  --rs-color-primary: rgb(50, 91, 255);
  --rs-color-primary-hover: rgb(35, 70, 224);
  --rs-color-primary-ink: white;
  --rs-color-primary-soft: rgba(50, 91, 255, 0.18);
  --rs-color-link: rgb(35, 70, 224);
  --rs-color-danger: #f4e6e6;
  --rs-color-danger-hover: #ebd5d5;
  --rs-color-danger-ink: #7f1d1d;
  --rs-color-danger-border: #e2c4c4;
  --rs-color-success: #dcfce7;
  --rs-color-success-ink: #166534;
  --rs-color-success-border: #b7e8c7;
  --rs-color-pending: #fdf3dc;
  --rs-color-pending-ink: #7a4b00;
  --rs-color-pending-border: #f0dcae;
  --rs-color-highlight: yellow;
  --rs-color-highlight-ink: #111827;
  /* The ink band (the homepage hero, the public pages' band, captions on
     pictures) stays dark in both colour themes. */
  --rs-color-band: rgb(23, 16, 38);
  --rs-color-on-band: rgb(250, 249, 246);

  /* Focus */
  --rs-focus-ring: 2px solid var(--rs-color-primary);
  --rs-focus-offset: 2px;

  /* Dialog */
  --rs-dialog-bg: var(--rs-color-paper);
  --rs-dialog-text: inherit;
  --rs-dialog-border: var(--rs-color-border);
  --rs-dialog-radius: var(--rs-radius-lg);
  /* 1em on a phone, 2em once there is room: a phone's dialog keeps about
     four more characters a line. */
  --rs-dialog-padding: clamp(1em, 4vw, 2em);
  --rs-dialog-width: 50ch;
  --rs-dialog-width-wide: 89ch;
  --rs-dialog-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --rs-dialog-backdrop: rgba(17, 24, 39, 0.62);

  /* Published preview frames */
  --rs-preview-frame: var(--rs-color-ink);
  --rs-preview-radius: 20px;
  --rs-preview-mobile-frame-border: 12px;
  --rs-preview-mobile-scale: 0.5;
  --rs-preview-mobile-src-width: 390px;
  --rs-preview-mobile-src-height: 844px;
  --rs-preview-mobile-content-width: calc(
    var(--rs-preview-mobile-src-width) * var(--rs-preview-mobile-scale)
  );
  --rs-preview-mobile-content-height: calc(
    var(--rs-preview-mobile-src-height) * var(--rs-preview-mobile-scale)
  );
  --rs-preview-mobile-wrap-width: calc(
    var(--rs-preview-mobile-content-width) +
      (2 * var(--rs-preview-mobile-frame-border))
  );
  --rs-preview-mobile-wrap-height: calc(
    var(--rs-preview-mobile-content-height) +
      (2 * var(--rs-preview-mobile-frame-border))
  );
  --rs-preview-desktop-scale: 0.44;
  /* Home card's desktop picture frame: the phone frame's border, even on
     every side. */
  --rs-preview-desktop-frame-border: 0.75rem;
  /* The phone and desktop frames side by side, with the gap between them. */
  --rs-preview-pair-width: calc(
    var(--rs-preview-mobile-wrap-width) + var(--rs-space-lg) +
      (1440px * var(--rs-preview-desktop-scale)) +
      (2 * var(--rs-preview-mobile-frame-border))
  );

  /* Code editor (matches CodeMirror's ayu-dark theme, so the plain textarea
     and the enhanced editor look alike) */
  --rs-editor-code-bg: #0a0e14;
  --rs-editor-code-ink: #b3b1ad;
  --rs-editor-code-caret: #e6b450;
  /* Line numbers and comments: the theme's own are below 4.5:1 */
  --rs-editor-code-muted: #7b838c;
  /* Collapsed data chips and shown data in the code editor */
  --rs-editor-chip-bg: rgba(230, 180, 80, 0.14);
  --rs-editor-chip-bg-hover: rgba(230, 180, 80, 0.28);
  --rs-editor-chip-border: rgba(230, 180, 80, 0.45);
  --rs-editor-shown-bg: rgba(230, 180, 80, 0.08);
  /* Source matched from a preview selection: a faint wash. The editor's own
     selection is solid with dark ink, so the caret and the text being
     edited stand out inside a match. */
  --rs-editor-match-bg: rgba(255, 221, 0, 0.17);
  --rs-editor-selection-bg: #ffd84d;
  --rs-editor-overlay-shadow: 0 0.3em 1em rgba(0, 0, 0, 0.35);
  --rs-home-carousel-scrollbar-width: 0px;
}

/* Orbit Settings (docs/backlog/epic-accessibility-settings.md).

   A few choices each person makes for Orbit's own pages, kept on their
   device. The early script in the page head reads them and sets data-orbit-*
   on <html>; these rules turn each one into --rs-* values. They never reach
   anyone's site: a site and the Editor's view of it have their own CSS.

   The plain version is the base; every extra is opt in. The light colours
   are the base, and the dark set applies only when the device asks for it
   (and the person hasn't chosen Light) or the person chooses Dark.
   Every text colour stays at 4.5:1 or more on every background. */
:root {
  color-scheme: light;
}
/* Warm and Cool tint the panels, hover, borders and the ink bands too,
   not only the page, so nothing standard shows on a tinted page (owner,
   2026-11-15): Warm's band is a dark brown, Cool's a navy, in both colour
   sets. Text on each: ink 13.9:1 or more, muted ink 5.6:1, links 5.2:1;
   on the bands, 16:1 and the bands' muted text 9.7:1 or more. */
:root[data-orbit-paper="cream"] {
  --rs-color-paper: rgb(250, 244, 228);
  --rs-color-surface: rgb(243, 235, 214);
  --rs-color-surface-hover: rgb(233, 223, 198);
  --rs-color-border: rgb(219, 206, 178);
  --rs-color-band: rgb(38, 27, 18);
}
:root[data-orbit-paper="blue"] {
  --rs-color-paper: rgb(236, 243, 250);
  --rs-color-surface: rgb(226, 236, 247);
  --rs-color-surface-hover: rgb(212, 225, 241);
  --rs-color-border: rgb(190, 206, 226);
  --rs-color-band: rgb(13, 24, 46);
}
:root[data-orbit-font="dyslexia"] {
  --rs-text-font: "OpenDyslexic", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}
/* Roomy: more space between lines and words, on every page. */
:root[data-orbit-spacing="roomy"] body.rs-orbit-app,
:root[data-orbit-spacing="roomy"] body.rs-orbit-app main,
:root[data-orbit-spacing="roomy"] body.rs-orbit-app main :is(.rs-c-home-hero, .rs-scope-home-wrap, .rs-scope-make, .rs-scope-teach) {
  --rs-text-line-body: 1.8;
  line-height: 1.8;
  word-spacing: 0.08em;
}
:root[data-orbit-spacing="roomy"] body.rs-orbit-app main p + p {
  margin-top: 1em;
}
/* Dark: the device asks for it, or the person chose it. Each background
   choice has a dark version too (below). */
@media (prefers-color-scheme: dark) {
  :root:not([data-orbit-theme="light"]) {
    color-scheme: dark;
    --rs-color-ink: rgb(236, 233, 242);
    --rs-color-ink-muted: rgb(176, 170, 190);
    --rs-color-paper: rgb(26, 24, 32);
    --rs-color-surface: rgb(40, 37, 48);
    --rs-color-surface-hover: rgb(54, 50, 64);
    --rs-color-border: rgb(72, 68, 84);
    --rs-color-primary-hover: rgb(78, 112, 255);
    --rs-color-primary-soft: rgba(110, 140, 255, 0.28);
    --rs-color-link: rgb(150, 172, 255);
    --rs-color-danger: rgb(72, 30, 36);
    --rs-color-danger-hover: rgb(92, 38, 46);
    --rs-color-danger-ink: rgb(255, 196, 196);
    --rs-color-danger-border: rgb(120, 56, 62);
    --rs-color-success: rgb(22, 60, 40);
    --rs-color-success-ink: rgb(160, 232, 182);
    --rs-color-success-border: rgb(40, 100, 66);
    --rs-color-pending: rgb(72, 54, 18);
    --rs-color-pending-ink: rgb(255, 216, 150);
    --rs-color-pending-border: rgb(112, 86, 32);
    --rs-color-band: rgb(12, 9, 20);
    --rs-dialog-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    --rs-dialog-backdrop: rgba(0, 0, 0, 0.7);
    --rs-preview-frame: rgb(8, 6, 12);
  }
}
:root[data-orbit-theme="dark"] {
  color-scheme: dark;
  --rs-color-ink: rgb(236, 233, 242);
  --rs-color-ink-muted: rgb(176, 170, 190);
  --rs-color-paper: rgb(26, 24, 32);
  --rs-color-surface: rgb(40, 37, 48);
  --rs-color-surface-hover: rgb(54, 50, 64);
  --rs-color-border: rgb(72, 68, 84);
  --rs-color-primary-hover: rgb(78, 112, 255);
  --rs-color-primary-soft: rgba(110, 140, 255, 0.28);
  --rs-color-link: rgb(150, 172, 255);
  --rs-color-danger: rgb(72, 30, 36);
  --rs-color-danger-hover: rgb(92, 38, 46);
  --rs-color-danger-ink: rgb(255, 196, 196);
  --rs-color-danger-border: rgb(120, 56, 62);
  --rs-color-success: rgb(22, 60, 40);
  --rs-color-success-ink: rgb(160, 232, 182);
  --rs-color-success-border: rgb(40, 100, 66);
  --rs-color-pending: rgb(72, 54, 18);
  --rs-color-pending-ink: rgb(255, 216, 150);
  --rs-color-pending-border: rgb(112, 86, 32);
  --rs-color-band: rgb(12, 9, 20);
  --rs-dialog-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  --rs-dialog-backdrop: rgba(0, 0, 0, 0.7);
  --rs-preview-frame: rgb(8, 6, 12);
}
/* A background choice in dark colours: Warm is a dark brown, Cool a navy,
   each about as dark as the standard dark set. Panels,
   hover and borders take the same tint, so nothing shows as grey on a
   coloured page. Every text colour stays at 4.5:1 or more on each: ink
   14.3:1, muted ink 5.3:1 on the hover colour, links 5.4:1. */
@media (prefers-color-scheme: dark) {
  :root[data-orbit-paper="cream"]:not([data-orbit-theme="light"]) {
    --rs-color-paper: rgb(32, 26, 20);
    --rs-color-surface: rgb(47, 40, 32);
    --rs-color-surface-hover: rgb(62, 53, 43);
    --rs-color-border: rgb(84, 72, 60);
    --rs-color-band: rgb(22, 15, 9);
  }
  :root[data-orbit-paper="blue"]:not([data-orbit-theme="light"]) {
    --rs-color-paper: rgb(18, 25, 40);
    --rs-color-surface: rgb(30, 39, 58);
    --rs-color-surface-hover: rgb(42, 53, 77);
    --rs-color-border: rgb(64, 76, 104);
    --rs-color-band: rgb(7, 13, 27);
  }
}
:root[data-orbit-theme="dark"][data-orbit-paper="cream"] {
  --rs-color-paper: rgb(32, 26, 20);
  --rs-color-surface: rgb(47, 40, 32);
  --rs-color-surface-hover: rgb(62, 53, 43);
  --rs-color-border: rgb(84, 72, 60);
  --rs-color-band: rgb(22, 15, 9);
}
:root[data-orbit-theme="dark"][data-orbit-paper="blue"] {
  --rs-color-paper: rgb(18, 25, 40);
  --rs-color-surface: rgb(30, 39, 58);
  --rs-color-surface-hover: rgb(42, 53, 77);
  --rs-color-border: rgb(64, 76, 104);
  --rs-color-band: rgb(7, 13, 27);
}

/* The font for Orbit Settings, self-hosted (static/vendor/*/SOURCE.md). A
   browser downloads it only when a page uses it. */
@font-face {
  font-family: "OpenDyslexic";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../vendor/opendyslexic-5.3.0/opendyslexic-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "OpenDyslexic";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../vendor/opendyslexic-5.3.0/opendyslexic-latin-700-normal.woff2") format("woff2");
}

/* App */

body.rs-orbit-app {
  background-color: var(--rs-color-paper);
  color: var(--rs-color-ink);
  font-family: var(--rs-text-font);
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

@media only screen and (min-width: 40rem) {
  body.rs-orbit-app {
    font-size: 1.2rem;
  }
}
@media only screen and (min-width: 64rem) {
  body.rs-orbit-app {
    font-size: 1.44rem;
  }
}

.rs-orbit-app :focus-visible {
  outline: var(--rs-focus-ring);
  outline-offset: var(--rs-focus-offset);
}

.rs-orbit-app a:not(.rs-c-btn) {
  color: var(--rs-color-link);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  overflow-wrap: anywhere;
}
.rs-orbit-app a:not(.rs-c-btn):hover {
  text-decoration-thickness: 2px;
}

.rs-orbit-app code {
  font-family: var(--rs-text-mono);
  font-size: 0.88em;
}

.rs-orbit-app [data-form-test-code] {
  overflow-wrap: anywhere;
}

.rs-orbit-app .rs-l-content-wrap {
  --rs-content-wrap-max-width: 100%;
  margin: 0 auto;
  width: var(--rs-content-wrap-max-width);
}

/* The wider gutter starts at tablet width, before the type grows at 64rem
   (owner, 2026-11-14). */
@media only screen and (min-width: 48rem) {
  .rs-orbit-app .rs-l-content-wrap {
    --rs-content-wrap-max-width: 92%;
  }
  :root {
    --rs-layout-content-inset: calc(var(--rs-space-xl) + var(--rs-space-md));
  }
}

body.rs-orbit-app header {
  nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding-top: var(--rs-space-2xs);
    padding-bottom: var(--rs-space-2xs);
  }
  /* The links stay one row: beside the wordmark while they fit, and on a
     narrow phone the whole row moves under it, rather than one link
     wrapping on its own (owner, 2026-11-14). They wrap only if even that
     line is too short, as with a wide font. With JavaScript and popover,
     Menu (below) takes their place instead; this stays the fallback. */
  nav > div {
    flex: 0 0 auto;
    max-width: 100%;
  }
  nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: var(--rs-space-2xs) var(--rs-space-md);
  }
  /*
    Plain links, muted until hovered. A short bar under the current section
    marks it. The bar sits in padding every link reserves, and hover and the
    current section change only colour, so no state moves the text or
    changes the nav's height.
  */
  .rs-c-nav-home,
  .rs-c-nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
  }
  /* The wordmark never shrinks or breaks; the links beside it wrap instead. */
  .rs-c-nav-home {
    flex-shrink: 0;
    white-space: nowrap;
    color: var(--rs-color-ink);
    font-weight: var(--rs-text-weight-bold);
  }
  .rs-c-nav-link {
    position: relative;
    gap: var(--rs-space-2xs);
    padding-block: var(--rs-space-2xs);
    color: var(--rs-color-ink-muted);
    font-weight: var(--rs-text-weight-medium);
  }
  .rs-c-nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: var(--rs-space-lg);
    height: 0.12em;
    border-radius: var(--rs-radius-pill);
    background-color: transparent;
    transform: translateX(-50%);
  }
  .rs-c-nav-link:hover,
  .rs-c-nav-link[aria-current="page"] {
    color: var(--rs-color-ink);
  }
  .rs-c-nav-link[aria-current="page"]::after {
    background-color: currentColor;
  }
  /* The signed-in cue: the account email's first letter, beside "Account". */
  .rs-c-nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.62em;
    height: 1.62em;
    border: 1px solid var(--rs-color-border);
    border-radius: var(--rs-radius-pill);
    background-color: var(--rs-color-surface);
    color: var(--rs-color-ink);
    font-size: var(--rs-text-small);
    font-weight: var(--rs-text-weight-bold);
    line-height: 1;
  }
  nav ul li {
    display: flex;
    align-items: center;
  }
  /* Menu (owner, 2026-11-14): where the links don't fit on one line beside
     the wordmark, app.js (initNavMenus) moves them into this popover and
     shows the button; wherever they fit they stay plain links. Without
     JavaScript or popover the links wrap under the wordmark, as above.
     data-nav-measure lays the nav out on one line for the script to
     measure, with a little more room between than a fit needs. */
  nav[data-nav-measure] {
    flex-wrap: nowrap;
    column-gap: var(--rs-space-lg);

    > div {
      max-width: none;
    }
    ul {
      flex-wrap: nowrap;
    }
  }
  .rs-c-nav-menu {
    gap: var(--rs-space-2xs);
  }
  .rs-c-nav-menu[hidden] {
    display: none;
  }
  /* The links stack in Menu, each a comfortable tap, below the button at
     the nav's end (the script places it); the current page keeps its bar,
     at the start of its link. */
  .rs-c-nav-more:popover-open {
    position: absolute;
    inset: auto;
    display: block;
    width: max-content;
    min-width: 12em;
    max-width: calc(100vw - 2 * var(--rs-space-xs));
    max-height: 80dvh;
    overflow-y: auto;
    margin: var(--rs-space-3xs) 0 0;
    padding: var(--rs-space-2xs) var(--rs-space-md);
    border: 1px solid var(--rs-color-border);
    border-radius: var(--rs-radius-lg);
    background-color: var(--rs-color-paper);
    color: var(--rs-color-ink);
    box-shadow: var(--rs-dialog-shadow);
  }
  .rs-c-nav-more ul {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
  }
  .rs-c-nav-more .rs-c-nav-link {
    flex: 1 1 auto;
    min-height: 2.75rem;
  }
  .rs-c-nav-more .rs-c-nav-link::after {
    left: 0;
    transform: none;
  }
}
body.rs-orbit-app main {
  h1 {
    font-size: var(--rs-text-heading-1);
    font-weight: var(--rs-text-weight-medium);
    line-height: var(--rs-text-line-tight);
    text-wrap: balance;
  }
}
body.rs-orbit-app.rs-is-editor-fullscreen {
  overflow: hidden;
}
body.rs-orbit-app.rs-is-editor-fullscreen main {
  overflow: hidden;
}
body.rs-orbit-app footer {
  margin-top: auto;
  padding-top: var(--rs-space-xl);

  /* The copyright is the only fine print; the links read at the small size. */
  small {
    font-size: max(var(--rs-text-fine), 0.75rem);
  }
  .rs-c-footer__links {
    font-size: var(--rs-text-small);
  }
  /* Muted, like the nav links: underline on hover and keyboard focus. */
  .rs-c-footer__links a {
    display: inline-flex;
    align-items: center;
    color: var(--rs-color-ink-muted);
    text-decoration: none;
  }
  .rs-c-footer__links a:hover,
  .rs-c-footer__links a:focus-visible {
    color: var(--rs-color-ink);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.15em;
  }
}
/*
  The footer sits on the page content's left edge: the wrap's gutter plus
  the content indent (the footer's inner div is .rs-u-content-indent). Orbit's
  pages, then the legal links, then the last line: the copyright, and
  Appearance at the far end, apart from the links to pages.
*/
.rs-c-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--rs-space-2xs) var(--rs-space-lg);
  padding-bottom: var(--rs-space-md);
}
.rs-c-footer__base {
  display: flex;
  flex-basis: 100%;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--rs-space-2xs) var(--rs-space-lg);
}
.rs-c-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--rs-space-2xs) var(--rs-space-md);

  a {
    padding-block: var(--rs-space-3xs);
  }
}
.rs-c-footer__settings {
  margin: 0;
}

/* Layout */

.rs-u-content-indent {
  padding-inline: var(--rs-layout-content-inset);
}

/*
  Page rhythm: the space between blocks lives on the sections, not on their
  headings, so every page spaces the same way whatever a section starts with.
  - The first block (page heading or section) starts --rs-space-md below the nav.
  - Every later section starts --rs-space-xl below the block before it.
*/
main > .rs-l-page-heading {
  padding-top: var(--rs-space-md);
}
/* The page title, with an optional page-level action at the far end. */
.rs-c-page-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--rs-space-xs) var(--rs-space-md);
}
:is(main, .rs-scope-home-wrap) > .rs-l-content-section {
  margin-top: var(--rs-space-xl);
}
main > .rs-l-content-section:first-child {
  margin-top: var(--rs-space-md);
}
article.rs-c-detail-surface > :first-child {
  margin-top: 0;
}
/* Section stack (owner, 2026-11-13: space below "You joined …" on Home).
   Inside a page section, a block with no top margin of its own (a
   wrapper, form, notice or card) starts --rs-space-md below the block
   before it. :where() makes this the weakest rule: every component's own
   margin wins, and so does the reset, so text keeps its tight spacing. */
:where(.rs-l-content-wrap > article.rs-c-detail-surface > * + *) {
  margin-top: var(--rs-space-md);
}
/* A flash or note keeps the same space below it, so the text after it
   never touches it. Margins collapse with the next block's own, so a
   later heading keeps its larger space. */
:is(.rs-l-content-wrap > article.rs-c-detail-surface, .rs-c-form-card) > :is(.rs-c-flash, .rs-c-empty-note):not(:last-child) {
  margin-bottom: var(--rs-space-md);
}

/* Components */

/* Section surface: one h2 per section, h3 for sub-sections. */
article.rs-c-detail-surface {
  background-color: var(--rs-color-paper);
}

/* Text modes: app pages read a little denser; the home page reads like prose. */
body.rs-orbit-app main {
  --rs-text-line-body: 1.35;
  --rs-text-measure: 72ch;
}
body.rs-orbit-app main :is(.rs-c-home-hero, .rs-scope-home-wrap, .rs-scope-make, .rs-scope-teach) {
  --rs-text-line-body: 1.5;
  --rs-text-measure: 64ch;
}
body.rs-orbit-app main p:not(.rs-c-flash, .rs-c-empty-note) {
  line-height: var(--rs-text-line-body);
  max-width: var(--rs-text-measure);
}

article.rs-c-detail-surface .rs-c-detail-surface__heading {
  font-size: var(--rs-text-heading-2);
  font-weight: var(--rs-text-weight-bold);
  text-wrap: balance;
  line-height: var(--rs-text-line-tight);
  margin-bottom: 0.15em;
}

:where(article.rs-c-detail-surface, dialog.rs-c-dialog) h3 {
  font-size: var(--rs-text-heading-3);
  font-weight: var(--rs-text-weight-bold);
  line-height: var(--rs-text-line-tight);
  text-wrap: balance;
  margin-top: var(--rs-space-lg);
  margin-bottom: var(--rs-space-2xs);
}

header.rs-c-orbit-website-overview {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: var(--rs-space-md);
  margin-bottom: var(--rs-space-md);

  img {
    width: 10em;
    height: 6.25em;
    border-radius: var(--rs-radius-lg);
    object-fit: cover;
  }

  > div {
    display: flex;
    flex-direction: column;
  }

  > div .rs-c-detail-surface__heading {
    margin-top: 0;
    margin-bottom: 0;
  }
}

/*
  Buttons: two sizes, by role.
  - Standard (default): every group of actions, such as toolbars, card
    actions, dialog footers and page actions.
  - Inline (--inline): only inside a row, a table cell or a sentence.
  Color marks emphasis, never size: grey by default, blue (--primary) for the
  one main action in a group, light red-grey (--danger) for destructive ones.
*/
button.rs-c-btn,
a.rs-c-btn,
label.rs-c-btn {
  display: flex;
  align-items: center;
  gap: var(--rs-space-2xs);
  background-color: var(--rs-color-surface);
  color: var(--rs-color-ink);
  border-radius: var(--rs-radius-sm);
  width: max-content;
  max-width: 100%;
  height: max-content;
  font-weight: var(--rs-text-weight-bold);
  padding: var(--rs-space-box-sm);
  cursor: pointer;
}
/* Motion is opt in: only for people whose device doesn't ask for less. */
@media (prefers-reduced-motion: no-preference) {
  .rs-orbit-app .rs-c-btn {
    transition: background-color 100ms ease;
  }
}
button.rs-c-btn:hover,
a.rs-c-btn:hover,
label.rs-c-btn:hover {
  transition: none;
  background-color: var(--rs-color-surface-hover);
}
button.rs-c-btn.rs-c-btn--primary,
a.rs-c-btn.rs-c-btn--primary {
  background-color: var(--rs-color-primary);
  color: var(--rs-color-primary-ink);
}
button.rs-c-btn.rs-c-btn--primary:hover,
a.rs-c-btn.rs-c-btn--primary:hover {
  background-color: var(--rs-color-primary-hover);
}
button.rs-c-btn.rs-c-btn--danger,
a.rs-c-btn.rs-c-btn--danger {
  background-color: var(--rs-color-danger);
  color: var(--rs-color-danger-ink);
}
button.rs-c-btn.rs-c-btn--danger:hover,
a.rs-c-btn.rs-c-btn--danger:hover {
  background-color: var(--rs-color-danger-hover);
}
button.rs-c-btn.rs-c-btn--inline,
a.rs-c-btn.rs-c-btn--inline,
label.rs-c-btn.rs-c-btn--inline {
  padding: 0 var(--rs-space-2xs);
}
/* A copy button's result ("Copied") sits beside it, as a status line
   (app.js, showCopyStatus); the button keeps its name. */
.rs-c-copy-status {
  margin-inline-start: var(--rs-space-2xs);
  color: var(--rs-color-ink-muted);
  font-size: var(--rs-text-small);
}
.rs-c-copy-status:empty {
  display: none;
}
/* Touch screens: inline buttons and nav links get a comfortable tap height.
   Every other button, such as a dialog's Cancel and Send, is as chunky as
   a choice beside it (.rs-c-edit-ask__level): as tall, with as much room
   at its sides (owner, 2026-11-09, on a tablet). */
@media (pointer: coarse) {
  .rs-c-btn.rs-c-btn--inline,
  body.rs-orbit-app header .rs-c-nav-link,
  .rs-c-footer__links a {
    min-height: 2.75rem;
  }
  button.rs-c-btn:not(.rs-c-btn--inline),
  a.rs-c-btn:not(.rs-c-btn--inline),
  label.rs-c-btn:not(.rs-c-btn--inline) {
    min-height: 2.75rem;
    justify-content: center;
    padding-inline: var(--rs-space-sm);
  }
}
button.rs-c-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* A button's icon shows before its words, always (owner, 2026-11-08):
   🚀 Publish, ✅ Done, ✏️ Edit, ⚙️ Options... A leading icon is easier
   to scan and reads as an interface; a trailing one reads as a chat
   message. The words stay first in the markup, and screen readers skip
   the icon (aria-hidden). Directional arrows are words, not icons, so
   they stay after: Continue →. */
.rs-c-btn > .rs-c-icon {
  order: -1;
}
.rs-c-icon {
  font-style: normal;
  font-weight: normal;
}

/* A row of buttons, e.g. a dialog footer: secondary first, primary last. */
.rs-c-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--rs-space-xs);
  margin-top: var(--rs-space-md);
}

/* A danger button that opens a confirmation ("...") stays last in a row of
   actions but stands apart from them, so a slip from its neighbour does not
   land on it. Confirmation footers (Cancel, then the destructive action)
   keep the normal gap. Narrow rows wrap instead. */
@media (min-width: 40rem) {
  .rs-c-actions > .rs-c-btn--danger[aria-haspopup="dialog"]:not(:first-child) {
    margin-inline-start: var(--rs-space-md);
  }
}

/* Forms: a label above each field. */
form.rs-c-form {
  input:not([type="checkbox"], [type="radio"], [type="hidden"]),
  select {
    padding: var(--rs-space-box-sm);
    border-radius: var(--rs-radius-sm);
    border: 1px solid var(--rs-color-border);
    background-color: var(--rs-color-paper);
  }
  textarea {
    width: 100%;
    padding: var(--rs-space-box-sm);
    border-radius: var(--rs-radius-sm);
    min-height: 16rem;
  }
  label {
    font-weight: var(--rs-text-weight-medium);
  }
}
form.rs-c-form .rs-c-form__controls {
  display: flex;
  gap: var(--rs-space-xs);
  margin-top: var(--rs-space-md);
}
form.rs-c-form.rs-c-form--grid {
  display: grid;
  grid-template-rows: auto;
  grid-template-columns: 1fr 1fr;
  gap: var(--rs-space-2xs) 0;
}
form.rs-c-form.rs-c-form--grid .rs-c-form__controls {
  grid-column: 1 / -1;
  grid-row: auto;
}
form.rs-c-form.rs-c-form--stacked {
  display: flex;
  flex-direction: column;
  gap: var(--rs-space-2xs);
}
form.rs-c-form.rs-c-form--stacked .rs-c-actions {
  margin-top: var(--rs-space-xs);
}
/* A filter bar: the search box and filter menus in one row, each label
   above its field, wrapping only when the screen is narrow (the User
   directory). The search box takes the room left over. */
form.rs-c-form.rs-c-form--filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: var(--rs-space-xs) var(--rs-space-sm);
}
form.rs-c-form.rs-c-form--filters .rs-c-form__field {
  display: flex;
  flex-direction: column;
  gap: var(--rs-space-3xs);
}
form.rs-c-form.rs-c-form--filters .rs-c-form__field--grow {
  flex: 1 1 14ch;
}
/* Each menu is as wide as its choice, "All" mostly, where the browser
   can; elsewhere as wide as its longest choice. */
form.rs-c-form.rs-c-form--filters select {
  field-sizing: content;
}
form.rs-c-form.rs-c-form--filters .rs-c-check,
form.rs-c-form.rs-c-form--filters .rs-c-actions {
  margin-top: 0;
  align-self: end;
  padding-block-end: var(--rs-space-3xs);
}

form.rs-c-form .rs-c-form__help,
.rs-c-help {
  font-size: var(--rs-text-small);
  line-height: var(--rs-text-line-body);
  color: var(--rs-color-ink-muted);
}

/* A checkbox before its label, e.g. the age and terms box. The box is
   1.5rem (24px) so it meets the 24px target size on its own. */
.rs-c-check {
  display: flex;
  align-items: flex-start;
  gap: var(--rs-space-xs);
  margin-top: var(--rs-space-2xs);

  input[type="checkbox"] {
    flex: none;
    width: 1.5rem;
    height: 1.5rem;
    margin: 0;
    accent-color: var(--rs-color-primary);
  }
  label {
    line-height: var(--rs-text-line-body);
  }
  .rs-c-help {
    margin-top: var(--rs-space-3xs);
  }
}

/* Account's checkout: Orbit Basic yearly or monthly, each radio 1.5rem
   like .rs-c-check's box, before the checkout button. */
fieldset.rs-c-checkout-period {
  margin-top: var(--rs-space-md);
  border: 0;
}
fieldset.rs-c-checkout-period > legend {
  font-weight: var(--rs-text-weight-bold);
}
fieldset.rs-c-checkout-period input[type="radio"] {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  margin: 0;
  accent-color: var(--rs-color-primary);
}

/* Data list: label / value rows. Values may end with an action button. */
dl.rs-c-data-list {
  margin-top: var(--rs-space-md);
  display: grid;
  grid-template-columns: minmax(max-content, 30%) 1fr;
  grid-template-rows: auto;

  > div {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: subgrid;
    column-gap: var(--rs-space-md);
    padding: var(--rs-space-xs) 0;
    border-top: 1px solid var(--rs-color-border);
  }
  > div dt {
    grid-column: 1;
  }
  > div dd {
    grid-column: 2;
    min-width: 0;
  }
}

ul.rs-c-card-list {
  display: grid;
  gap: var(--rs-space-md);
  margin-top: var(--rs-space-md);

  > li {
    padding: 0 var(--rs-space-md);
    border: 1px solid var(--rs-color-border);
    border-radius: var(--rs-radius-lg);
  }
  > li > dl.rs-c-data-list {
    margin-top: 0;
  }
  > li > dl.rs-c-data-list > div:first-child {
    border-top: 0;
  }
  /* A card of plain words (the Sites page's Given list) keeps the same
     space above and below them that a data list's rows have. */
  > li > p {
    margin-block: var(--rs-space-sm);
  }
}

/* Flash messages: role="status" for success, role="alert" for errors. A
   flash spans its content column, even in a column that centres its items,
   so its edges line up with the content around it. */
.rs-c-flash {
  align-self: stretch;
  width: 100%;
  margin-top: var(--rs-space-md);
  padding: var(--rs-space-box-md);
  border-radius: var(--rs-radius-lg);
  border: 1px solid var(--rs-color-border);
  border-left-width: var(--rs-space-3xs);
  background-color: var(--rs-color-surface);
  line-height: var(--rs-text-line-body);
}
.rs-c-flash:empty {
  display: none;
}
.rs-c-flash + :is(.rs-c-builder-site-card, .rs-c-site-picker, .rs-c-form-card, form) {
  margin-top: var(--rs-space-md);
}
.rs-c-flash.rs-c-flash--success {
  background-color: var(--rs-color-success);
  border-color: var(--rs-color-success-border);
  color: var(--rs-color-success-ink);
}
.rs-c-flash.rs-c-flash--error {
  background-color: var(--rs-color-danger);
  border-color: var(--rs-color-danger-border);
  color: var(--rs-color-danger-ink);
}

/* Status badge: data-tone is neutral, success, pending or danger. */
.rs-c-status {
  display: inline-flex;
  align-items: center;
  gap: var(--rs-space-2xs);
  padding: 0 var(--rs-space-xs);
  border-radius: var(--rs-radius-pill);
  background-color: var(--rs-color-surface);
  font-weight: var(--rs-text-weight-bold);
  white-space: nowrap;
}
.rs-c-status[data-tone="success"] {
  background-color: var(--rs-color-success);
  color: var(--rs-color-success-ink);
}
.rs-c-status[data-tone="pending"] {
  background-color: var(--rs-color-pending);
  color: var(--rs-color-pending-ink);
}
.rs-c-status[data-tone="danger"] {
  background-color: var(--rs-color-danger);
  color: var(--rs-color-danger-ink);
}

.rs-c-inbox-read-indicator {
  display: inline-flex;
  align-items: center;
  margin-left: var(--rs-space-2xs);
}

.rs-c-inbox-unread-dot {
  width: var(--rs-space-xs);
  height: var(--rs-space-xs);
  display: inline-block;
  border-radius: var(--rs-radius-pill);
  background-color: var(--rs-color-primary);
  box-shadow: 0 0 0 2px var(--rs-color-primary-soft);
}

/* Empty states: a large one for "nothing here yet" pages, a note for lists. */
div.rs-c-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--rs-space-xs);
  padding: var(--rs-space-xl) var(--rs-space-lg);
  border: 1px solid var(--rs-color-border);
  border-radius: var(--rs-radius-lg);
  text-align: center;

  svg {
    height: var(--rs-space-xl);
    width: var(--rs-space-xl);
    color: var(--rs-color-ink-muted);
  }
}
article.rs-c-detail-surface .rs-c-empty-state__title {
  font-size: var(--rs-text-heading-2);
  font-weight: var(--rs-text-weight-bold);
  line-height: var(--rs-text-line-tight);
}
.rs-c-empty-state__text {
  max-width: var(--rs-text-measure);
  color: var(--rs-color-ink-muted);
}
.rs-c-empty-state form {
  margin-top: var(--rs-space-md);
}
p.rs-c-empty-note {
  margin-top: var(--rs-space-md);
  padding: var(--rs-space-box-md);
  border-radius: var(--rs-radius-lg);
  background-color: var(--rs-color-surface);
  color: var(--rs-color-ink-muted);
}

dialog.rs-c-dialog {
  --rs-dialog-max-height: 85vh;
  position: fixed;
  /* Sit a little above centre, but never so high that a dialog at its
     tallest loses its top edge: the centre stays at least half the maximum
     height plus a gap below the viewport top. */
  top: max(calc(50% - 4.86rem), calc(var(--rs-dialog-max-height) / 2 + var(--rs-space-md)));
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90vw;
  max-width: var(--rs-dialog-width);
  max-height: var(--rs-dialog-max-height);
  overflow: auto;
  /* Scrolling to the end of a long dialog doesn't move the page behind. */
  overscroll-behavior: contain;
  margin: 0;

  padding: var(--rs-dialog-padding);
  border-radius: var(--rs-dialog-radius);
  background-color: var(--rs-dialog-bg);
  color: var(--rs-dialog-text);
  box-shadow: var(--rs-dialog-shadow);

  &::backdrop {
    background-color: var(--rs-dialog-backdrop);
    backdrop-filter: blur(4px);
    overflow: hidden;
    overscroll-behavior: contain;
  }

  > h2 {
    font-size: var(--rs-text-heading-2);
    font-weight: var(--rs-text-weight-bold);
    line-height: var(--rs-text-line-tight);
    margin-bottom: var(--rs-space-md);
    text-wrap: balance;
  }

  p + p {
    margin-top: var(--rs-space-2xs);
  }

  hr {
    margin: var(--rs-space-md) 0;
    border-color: var(--rs-dialog-border);
  }
}

/* No one-word last lines in a dialog's sentences. Older browsers wrap as
   usual. */
@supports (text-wrap: pretty) {
  dialog.rs-c-dialog p {
    text-wrap: pretty;
  }
}

dialog.rs-c-dialog.rs-c-dialog--wide {
  --rs-dialog-max-height: 89vh;
  max-width: var(--rs-dialog-width-wide);
}

details > summary {
  cursor: pointer;
  font-weight: var(--rs-text-weight-bold);
}

/* Editor */

form.rs-c-editor-layout {
  --rs-editor-pane-height: clamp(640px, 70vh, 52rem);
  --rs-editor-preview-basis: 50%;
  display: grid;
  grid-template-rows: auto var(--rs-editor-pane-height);
  grid-template-columns: minmax(0, 1fr) minmax(320px, var(--rs-editor-preview-basis));
}
form.rs-c-editor-layout .rs-c-editor-controls {
  grid-column: 1 / -1;
  grid-row: 1;
  margin-bottom: var(--rs-space-md);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--rs-space-xs) var(--rs-space-md);
}
.rs-c-editor-tabs {
  display: none;
}

form.rs-c-editor-layout:has(#preview-size-sm:checked) {
  --rs-editor-preview-basis: 10%;
}
form.rs-c-editor-layout:has(#preview-size-md:checked) {
  --rs-editor-preview-basis: 50%;
}
form.rs-c-editor-layout:has(#preview-size-lg:checked) {
  --rs-editor-preview-basis: 88%;
}
form.rs-c-editor-layout .rs-c-editor-preview-code {
  grid-column: 1;
  grid-row: 2;
  position: relative;

  .CodeMirror {
    border-top-left-radius: var(--rs-radius-lg);
    border-bottom-left-radius: var(--rs-radius-lg);
    font-family: var(--rs-text-mono);
    font-size: var(--rs-text-code);
    line-height: 1.44;
    min-height: 28rem;
  }

  /* The editor before (or without) its CodeMirror enhancement. */
  .rs-c-builder-code-area {
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    min-height: 28rem;
    margin: 0;
    padding: var(--rs-space-3xs) var(--rs-space-xs);
    border: 0;
    border-top-left-radius: var(--rs-radius-lg);
    border-bottom-left-radius: var(--rs-radius-lg);
    background-color: var(--rs-editor-code-bg);
    color: var(--rs-editor-code-ink);
    caret-color: var(--rs-editor-code-caret);
    font-family: var(--rs-text-mono);
    font-size: var(--rs-text-code);
    line-height: 1.44;
    white-space: pre;
    overflow: auto;
    resize: none;
  }

  .rs-c-builder-code-area::placeholder {
    color: var(--rs-editor-code-ink);
    opacity: 0.62;
  }

  /* A large page's textarea waits, hidden, for the code editor. */
  .rs-c-builder-code-area[hidden] {
    display: none;
  }

  .rs-c-code-pending {
    box-sizing: border-box;
    height: 100%;
    min-height: 28rem;
    margin: 0;
    padding: var(--rs-space-sm) var(--rs-space-md);
    border-top-left-radius: var(--rs-radius-lg);
    border-bottom-left-radius: var(--rs-radius-lg);
    background-color: var(--rs-editor-code-bg);
    color: var(--rs-editor-code-ink);
    font-size: var(--rs-text-small);
  }

  /* Long data: URIs show as a chip; the text stays in the document. */
  .CodeMirror .rs-c-code-data {
    display: inline;
    margin: 0 0.15em;
    padding: 0 var(--rs-space-2xs);
    border: 1px solid var(--rs-editor-chip-border);
    border-radius: var(--rs-radius-sm);
    background-color: var(--rs-editor-chip-bg);
    color: var(--rs-editor-code-caret);
    font: inherit;
    white-space: nowrap;
    cursor: pointer;
  }

  .CodeMirror .rs-c-code-data:hover {
    background-color: var(--rs-editor-chip-bg-hover);
  }

  .CodeMirror .rs-c-code-data-shown {
    background-color: var(--rs-editor-shown-bg);
  }

  .CodeMirror .rs-c-code-data.rs-is-code-find-current {
    outline: 2px solid var(--rs-color-highlight);
    outline-offset: 1px;
  }

  .CodeMirror .rs-is-code-find-current:not(.rs-c-code-data) {
    background-color: var(--rs-color-highlight);
    color: var(--rs-color-highlight-ink) !important;
  }

  .CodeMirror .rs-is-code-find-current:not(.rs-c-code-data) * {
    color: var(--rs-color-highlight-ink) !important;
  }

  /* Find in code and the status line float over the code pane. */
  .rs-c-code-find,
  .rs-c-code-status[data-shown="true"] {
    position: absolute;
    z-index: 10;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--rs-space-2xs) var(--rs-space-xs);
    box-sizing: border-box;
    max-width: calc(100% - 2 * var(--rs-space-sm));
    padding: var(--rs-space-2xs) var(--rs-space-xs);
    border: 1px solid var(--rs-color-border);
    border-radius: var(--rs-radius-lg);
    background-color: var(--rs-color-paper);
    color: var(--rs-color-ink);
    font-size: var(--rs-text-small);
    box-shadow: var(--rs-editor-overlay-shadow);
  }

  .rs-c-code-find {
    top: var(--rs-space-xs);
    right: var(--rs-space-sm);
  }

  /* While Find is open the code starts below it (height set by app.js). */
  .CodeMirror.rs-is-code-finding {
    box-sizing: border-box;
    padding-top: calc(var(--rs-code-find-height, 2.75rem) + 2 * var(--rs-space-xs));
  }

  .rs-c-code-find[hidden] {
    display: none;
  }

  .rs-c-code-find input {
    flex: 1 1 12ch;
    width: 16ch;
    min-width: 12ch;
    padding: var(--rs-space-box-sm);
    border: 1px solid var(--rs-color-border);
    border-radius: var(--rs-radius-sm);
    font: inherit;
  }

  .rs-c-code-find__count {
    min-width: 6ch;
    color: var(--rs-color-ink-muted);
    white-space: nowrap;
  }

  .rs-c-code-status {
    position: absolute;
    left: var(--rs-space-sm);
    bottom: var(--rs-space-xs);
  }

  .rs-c-code-status[data-shown="false"] {
    overflow: hidden;
    width: 1px;
    height: 1px;
    clip-path: inset(50%);
  }

  .rs-c-code-status button[hidden] {
    display: none;
  }

  .rs-c-code-keys {
    position: absolute;
    z-index: 10;
    right: var(--rs-space-sm);
    bottom: var(--rs-space-xs);
    max-width: calc(100% - 2 * var(--rs-space-sm));
    margin: 0;
    padding: var(--rs-space-2xs) var(--rs-space-xs);
    border: 1px solid var(--rs-color-border);
    border-radius: var(--rs-radius-lg);
    background-color: var(--rs-color-paper);
    color: var(--rs-color-ink);
    font-size: var(--rs-text-small);
    box-shadow: var(--rs-editor-overlay-shadow);
  }

  .CodeMirror.rs-is-focus-visible {
    outline: var(--rs-focus-ring);
    outline-offset: calc(-1 * var(--rs-focus-offset));
  }

  .CodeMirror.cm-s-ayu-dark .CodeMirror-linenumber,
  .CodeMirror.cm-s-ayu-dark span.cm-comment:not(.cm-attribute, .cm-def, .cm-tag, .cm-type) {
    color: var(--rs-editor-code-muted);
  }

  .CodeMirror .rs-is-editor-scroll-highlight {
    background-color: var(--rs-editor-match-bg);
  }

  /* The wash layers over the chip's own background. */
  .CodeMirror .rs-c-code-data.rs-is-code-data-highlighted {
    background-image: linear-gradient(var(--rs-editor-match-bg), var(--rs-editor-match-bg));
  }

  .CodeMirror.cm-s-ayu-dark div.CodeMirror-selected {
    background: var(--rs-editor-selection-bg);
  }

  .CodeMirror.cm-s-ayu-dark .CodeMirror-line::selection,
  .CodeMirror.cm-s-ayu-dark .CodeMirror-line > span::selection,
  .CodeMirror.cm-s-ayu-dark .CodeMirror-line > span > span::selection,
  .rs-c-builder-code-area::selection {
    background: var(--rs-editor-selection-bg);
    color: var(--rs-color-highlight-ink);
  }

  /* Selected text (app.js marks it); after the match rule so it wins. */
  .CodeMirror .rs-is-code-selected {
    background-color: var(--rs-editor-selection-bg);
    color: var(--rs-color-highlight-ink) !important;
  }

  .CodeMirror .rs-is-code-selected * {
    color: var(--rs-color-highlight-ink) !important;
  }
}
form.rs-c-editor-layout #editor-find-button[hidden] {
  display: none;
}
form.rs-c-editor-layout .rs-c-editor-preview-render {
  grid-column: 2;
  grid-row: 2;

  iframe {
    border-top-right-radius: var(--rs-radius-lg);
    border-bottom-right-radius: var(--rs-radius-lg);
    width: 100%;
    height: 100%;
  }

  /* Keys go to the owner's page while it has focus (app.js marks it). */
  iframe.rs-is-frame-focused {
    outline: var(--rs-focus-ring);
    outline-offset: calc(-1 * var(--rs-focus-offset));
  }
}
/*
  Each preview refresh loads in a new frame that waits, transparent and
  inert, under the shown one until it is ready (app.js,
  createPreviewRefresh). Only the shown frame is #live-preview.
*/
.rs-c-editor-preview-stage {
  position: relative;
  height: 100%;
  min-height: 0;
}
.rs-c-editor-preview-stage > iframe {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.rs-c-editor-preview-stage > iframe.rs-is-preview-pending {
  z-index: 0;
  opacity: 0;
  pointer-events: none;
}
.rs-c-editor-preview-render[data-preview-stale="true"] #live-preview {
  opacity: 0.6;
}
.rs-c-editor-preview-status {
  position: absolute;
  z-index: 2;
  left: var(--rs-space-xs);
  bottom: var(--rs-space-xs);
  max-width: calc(100% - 2 * var(--rs-space-xs));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--rs-space-2xs) var(--rs-space-xs);
  margin: 0;
  padding: var(--rs-space-2xs) var(--rs-space-xs);
  border: 1px solid var(--rs-color-border);
  border-radius: var(--rs-radius-lg);
  background-color: var(--rs-color-paper);
  color: var(--rs-color-ink-muted);
  font-size: var(--rs-text-small);
}
.rs-c-editor-preview-status[hidden] {
  display: none;
}
form.rs-c-editor-layout[data-editor-fullscreen="true"] {
  position: fixed;
  inset: 0;
  z-index: 1100;
  margin: 0;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  box-sizing: border-box;
  padding: var(--rs-space-2xs);
  background-color: var(--rs-color-paper);
  grid-template-rows: auto minmax(0, 1fr);
  align-content: stretch;
}
form.rs-c-editor-layout[data-editor-fullscreen="true"] .rs-c-editor-controls {
  margin-bottom: var(--rs-space-2xs);
  position: sticky;
  top: 0;
  z-index: 1;
  padding-bottom: var(--rs-space-2xs);
  background-color: var(--rs-color-paper);
}
form.rs-c-editor-layout[data-editor-fullscreen="true"] .rs-c-editor-preview-code,
form.rs-c-editor-layout[data-editor-fullscreen="true"] .rs-c-editor-preview-render {
  min-height: 0;
  overflow: hidden;
}
form.rs-c-editor-layout[data-editor-fullscreen="true"] .rs-c-editor-preview-code .CodeMirror,
form.rs-c-editor-layout[data-editor-fullscreen="true"] .rs-c-editor-preview-code .rs-c-builder-code-area {
  min-height: 0;
  height: 100% !important;
}
form.rs-c-editor-layout[data-editor-fullscreen="true"] .rs-c-editor-preview-code .CodeMirror-scroll {
  height: 100%;
}

/*
  Phones: one pane at a time (Preview / Code tabs). The pane has a fixed
  height instead of filling the screen, so a short page doesn't leave a
  screen of blank white, and its frame shows where the preview ends.
*/
@media only screen and (max-width: 48rem) {
  form.rs-c-editor-layout {
    --rs-editor-pane-height: min(70dvh, 30em);
    display: flex;
    flex-direction: column;
  }

  form.rs-c-editor-layout .rs-c-editor-controls {
    margin-bottom: var(--rs-space-sm);
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  form.rs-c-editor-layout .rs-c-editor-controls [role="group"] {
    display: none;
  }

  form.rs-c-editor-layout .rs-c-editor-tabs {
    display: flex;
    flex: 0 0 auto;
    border-bottom: 1px solid var(--rs-color-border);
  }

  form.rs-c-editor-layout .rs-c-editor-tabs button {
    flex: 1;
    padding: var(--rs-space-xs) 0;
    border: 0;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    background: none;
    color: inherit;
    font-size: var(--rs-text-small);
    font-weight: var(--rs-text-weight-bold);
    cursor: pointer;
  }

  form.rs-c-editor-layout .rs-c-editor-tabs button[aria-selected="true"] {
    border-bottom-color: var(--rs-color-primary);
  }

  form.rs-c-editor-layout .rs-c-editor-preview-code,
  form.rs-c-editor-layout .rs-c-editor-preview-render {
    flex: 0 0 var(--rs-editor-pane-height);
    min-height: 0;
    overflow: hidden;
    padding-top: var(--rs-space-sm);
  }

  form.rs-c-editor-layout .rs-c-editor-preview-code {
    display: none;
  }

  form.rs-c-editor-layout .rs-c-editor-preview-render {
    display: flex;
    flex-direction: column;
  }

  form.rs-c-editor-layout .rs-c-editor-preview-stage {
    flex: 1 1 auto;
    height: auto;
  }

  form.rs-c-editor-layout .rs-c-editor-preview-render iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 1px solid var(--rs-color-border);
    border-radius: var(--rs-radius-lg);
  }

  form.rs-c-editor-layout[data-mobile-tab="code"] .rs-c-editor-preview-render {
    display: none;
  }

  form.rs-c-editor-layout[data-mobile-tab="code"] .rs-c-editor-preview-code {
    display: flex;
    flex-direction: column;
  }

  form.rs-c-editor-layout[data-mobile-tab="code"]
    .rs-c-editor-preview-code
    .CodeMirror,
  form.rs-c-editor-layout[data-mobile-tab="code"]
    .rs-c-editor-preview-code
    .rs-c-builder-code-area {
    flex: 1;
    height: 100% !important;
    min-height: 0;
    border-radius: var(--rs-radius-lg);
  }

  form.rs-c-editor-layout[data-mobile-tab="code"]
    .rs-c-editor-preview-code
    .CodeMirror-scroll {
    height: 100%;
  }

  form.rs-c-editor-layout .rs-c-editor-preview-code .rs-c-code-find {
    left: var(--rs-space-xs);
    right: var(--rs-space-xs);
    max-width: none;
  }

  form.rs-c-editor-layout[data-editor-fullscreen="true"] {
    padding: var(--rs-space-2xs);
  }

  form.rs-c-editor-layout[data-editor-fullscreen="true"] .rs-c-editor-controls {
    margin-bottom: var(--rs-space-2xs);
  }

  /* Fullscreen fills the screen, so the open pane takes the remaining height. */
  form.rs-c-editor-layout[data-editor-fullscreen="true"] .rs-c-editor-preview-code,
  form.rs-c-editor-layout[data-editor-fullscreen="true"] .rs-c-editor-preview-render {
    flex: 1 1 0;
  }
}

/*
  Compact layout: the same editor in the homepage's try-it dialog. One
  column at every width, in reading order: the preview, a paste box a few
  lines tall, then the actions. Both panes always show, so the phone tab
  rules above never hide one.
*/
form.rs-c-editor-layout[data-editor-layout="compact"] {
  /* Short enough that the paste box and Publish and visit share the first
     screen with the preview, on a phone too. */
  --rs-editor-pane-height: min(28dvh, 14em);
  --rs-editor-paste-height: calc(5lh + 2 * var(--rs-space-3xs));
  display: flex;
  flex-direction: column;
  gap: var(--rs-space-xs);
}
form.rs-c-editor-layout[data-editor-layout="compact"] .rs-c-editor-preview-render {
  display: block;
  flex: 0 0 var(--rs-editor-pane-height);
  padding-top: 0;

  .rs-c-editor-preview-stage {
    height: 100%;
  }
  iframe {
    border: 1px solid var(--rs-color-border);
    border-radius: var(--rs-radius-lg);
  }
}
form.rs-c-editor-layout[data-editor-layout="compact"] .rs-c-editor-paste-label {
  margin-top: var(--rs-space-xs);
  font-weight: var(--rs-text-weight-bold);
}
form.rs-c-editor-layout[data-editor-layout="compact"] .rs-c-editor-preview-code {
  display: block;
  flex: 0 0 auto;
  overflow: visible;
  padding-top: 0;
  line-height: 1.44;

  .CodeMirror,
  .rs-c-builder-code-area,
  .rs-c-code-pending {
    height: var(--rs-editor-paste-height) !important;
    min-height: 0;
    border-radius: var(--rs-radius-lg);
  }
}
form.rs-c-editor-layout[data-editor-layout="compact"] .rs-c-editor-controls {
  margin: 0;
}
.rs-c-editor-more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--rs-space-2xs) var(--rs-space-xs);
  margin-top: var(--rs-space-2xs);
  color: var(--rs-color-ink-muted);
  font-size: var(--rs-text-small);
}
/* Its button is small text with no padding above or below, so it keeps
   WCAG's minimum tap height, 1.5rem, however small the text gets (the
   public pages' phone text is 0.94em). */
.rs-c-editor-more .rs-c-btn--inline {
  min-height: 1.5rem;
}

/* The homepage's try-it dialog: a small dialog (the full editor is /try),
   and the examples as a short row of buttons that load on demand. */
dialog.rs-c-dialog.rs-c-try-dialog {
  max-width: 64ch;

  > h2:focus {
    outline: none;
  }
  > h2:focus-visible {
    outline: var(--rs-focus-ring);
  }
  > form,
  > .rs-c-help,
  > [data-testid="visitor-publish-legal"] {
    margin-top: var(--rs-space-sm);
  }
}
.rs-c-try-examples {
  margin-top: var(--rs-space-md);

  ul {
    display: flex;
    flex-wrap: wrap;
    gap: var(--rs-space-2xs) var(--rs-space-xs);
    margin-top: var(--rs-space-2xs);
    padding-left: 0;
    list-style: none;
  }
}

/* Published preview frames */

/* The frames stand on one line, bottom-aligned, and stack when they don't fit. */
.rs-c-published-preview-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: var(--rs-space-lg);
  width: 100%;
  max-width: 1200px;
  margin: var(--rs-space-lg) auto;
}
.rs-c-published-preview {
  box-sizing: content-box;
  border: var(--rs-preview-mobile-frame-border) solid var(--rs-preview-frame);
  border-radius: var(--rs-preview-radius);
  overflow: hidden;
  background-color: var(--rs-color-paper);
  position: relative;
}
.rs-c-published-preview iframe {
  border: none;
  transform-origin: top left;
}
div.rs-c-published-preview.rs-c-published-preview--mobile {
  width: var(--rs-preview-mobile-content-width);
  height: var(--rs-preview-mobile-content-height);
  flex-shrink: 0;
}
div.rs-c-published-preview.rs-c-published-preview--mobile iframe {
  width: var(--rs-preview-mobile-src-width);
  height: var(--rs-preview-mobile-src-height);
  transform: scale(var(--rs-preview-mobile-scale));
}
/* A sample's phone frame shows its screenshot (or, without one, its name)
   until the live preview has loaded underneath it (app.js). */
.rs-orbit-app a.rs-c-sample-poster {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--rs-space-xs);
  padding: var(--rs-space-md);
  background-color: var(--rs-color-surface);
  color: var(--rs-color-ink);
  font-size: 1rem;
  line-height: var(--rs-text-line-tight);
  text-align: center;
  text-decoration: none;
}
.rs-orbit-app a.rs-c-sample-poster:focus-visible {
  outline-offset: calc(-1 * var(--rs-space-2xs));
}
.rs-orbit-app a.rs-c-sample-poster[hidden] {
  display: none;
}
.rs-orbit-app a.rs-c-sample-poster strong {
  font-size: var(--rs-text-heading-3);
}
/* The note changes from "loads on demand" to "loading" in a fixed box, so nothing moves. */
.rs-orbit-app a.rs-c-sample-poster small {
  align-self: stretch;
  height: calc(2em * var(--rs-text-line-tight));
  color: var(--rs-color-ink-muted);
  font-size: var(--rs-text-small);
}
/* The screenshot fills the frame; the poster box is fixed, so nothing moves. */
.rs-orbit-app a.rs-c-sample-poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  background-color: var(--rs-color-surface);
}
/* Over a screenshot, the status shows only while loading or after a failure. */
.rs-orbit-app a.rs-c-sample-poster img + small {
  position: absolute;
  right: var(--rs-space-xs);
  bottom: var(--rs-space-xs);
  left: var(--rs-space-xs);
  height: auto;
  padding: var(--rs-space-2xs) var(--rs-space-xs);
  border-radius: var(--rs-radius-pill);
  background-color: var(--rs-color-band);
  color: var(--rs-color-on-band);
  opacity: 0;
}
.rs-orbit-app article[data-sample-state="loading"] a.rs-c-sample-poster img + small,
.rs-orbit-app article[data-sample-state="failed"] a.rs-c-sample-poster img + small {
  opacity: 1;
}
/* Once the live page has loaded, the poster gives way: a short crossfade, or
   at once when the visitor prefers reduced motion. */
.rs-orbit-app article[data-sample-state="loaded"] a.rs-c-sample-poster {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .rs-orbit-app article[data-sample-state="loaded"] a.rs-c-sample-poster {
    transition:
      opacity 180ms ease,
      visibility 0s linear 180ms;
  }
}
div.rs-c-published-preview.rs-c-published-preview--desktop {
  width: calc(1440px * var(--rs-preview-desktop-scale));
  height: calc(900px * var(--rs-preview-desktop-scale));
  flex-shrink: 0;
}
div.rs-c-published-preview.rs-c-published-preview--desktop iframe {
  width: 1440px;
  height: 900px;
  transform: scale(var(--rs-preview-desktop-scale));
}

/* Utilities */

.rs-u-m0-auto {
  margin: 0 auto;
}
.rs-u-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
.rs-u-inline-flex-els {
  display: inline-flex;
  gap: var(--rs-space-xs);
  align-items: center;
  flex-wrap: wrap;
}

.rs-u-flex-justify-center {
  justify-content: center;
}

.rs-u-mt-base {
  margin-top: var(--rs-space-md);
}

.rs-u-mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.rs-u-px-base {
  padding-left: var(--rs-space-md);
  padding-right: var(--rs-space-md);
}

.rs-u-font-bold {
  font-weight: var(--rs-text-weight-bold);
}

/* Home */

section.rs-c-home-hero {
  background-color: var(--rs-color-band);
  background-image:
    linear-gradient(
      rgba(2, 3, 5, 0.62),
      rgba(2, 3, 5, 0.88),
      rgba(2, 3, 5, 0.92)
    ),
    url("/static/images/orbit-v1-static-mobile-prime--utility-demo-rotate--crop-780.jpg");
  background-image:
    linear-gradient(
      rgba(2, 3, 5, 0.62),
      rgba(2, 3, 5, 0.88),
      rgba(2, 3, 5, 0.92)
    ),
    -webkit-image-set(
        url("/static/images/orbit-v1-static-mobile-prime--utility-demo-rotate--crop-780.webp")
          type("image/webp") 1x,
        url("/static/images/orbit-v1-static-mobile-prime--utility-demo-rotate--crop-780.jpg")
          type("image/jpeg") 1x
      );
  background-image:
    linear-gradient(
      rgba(2, 3, 5, 0.62),
      rgba(2, 3, 5, 0.88),
      rgba(2, 3, 5, 0.92)
    ),
    image-set(
      url("/static/images/orbit-v1-static-mobile-prime--utility-demo-rotate--crop-780.webp")
        type("image/webp") 1x,
      url("/static/images/orbit-v1-static-mobile-prime--utility-demo-rotate--crop-780.jpg")
        type("image/jpeg") 1x
    );
  background-size: 78em;
  color: var(--rs-color-on-band);
  padding-top: 7em;
  padding-bottom: 4em;
  text-align: center;

  h1 {
    font-size: var(--rs-text-heading-1);
    font-weight: var(--rs-text-weight-bold);
    text-wrap: balance;
  }
}

@media only screen and (min-width: 40rem) {
  section.rs-c-home-hero {
    background-image:
      linear-gradient(
        rgba(2, 3, 5, 0.62),
        rgba(2, 3, 5, 0.88),
        rgba(2, 3, 5, 0.92)
      ),
      url("/static/images/orbit-v1-static-mobile-prime--utility-demo-rotate--crop-2560.jpg");
    background-image:
      linear-gradient(
        rgba(2, 3, 5, 0.62),
        rgba(2, 3, 5, 0.88),
        rgba(2, 3, 5, 0.92)
      ),
      -webkit-image-set(
          url("/static/images/orbit-v1-static-mobile-prime--utility-demo-rotate--crop-2560.webp")
            type("image/webp") 1x,
          url("/static/images/orbit-v1-static-mobile-prime--utility-demo-rotate--crop-2560.jpg")
            type("image/jpeg") 1x
        );
    background-image:
      linear-gradient(
        rgba(2, 3, 5, 0.62),
        rgba(2, 3, 5, 0.88),
        rgba(2, 3, 5, 0.92)
      ),
      image-set(
        url("/static/images/orbit-v1-static-mobile-prime--utility-demo-rotate--crop-2560.webp")
          type("image/webp") 1x,
        url("/static/images/orbit-v1-static-mobile-prime--utility-demo-rotate--crop-2560.jpg")
          type("image/jpeg") 1x
      );
  }
}

section.rs-c-home-hero p {
  margin-inline: auto;
}
ul.rs-c-home-points,
ol.rs-c-home-steps {
  display: grid;
  gap: var(--rs-space-sm);
  margin-top: var(--rs-space-md);
}
ul.rs-c-home-points {
  list-style: none;
  padding-left: 0;
}
div.rs-c-home-role-grid {
  display: grid;
  gap: var(--rs-space-md);
  margin-top: var(--rs-space-md);
}
article.rs-c-home-role-card {
  padding: var(--rs-space-md);
  border-radius: var(--rs-radius-lg);
  background-color: var(--rs-color-surface);
}

div.rs-c-home-mobile-carousel {
  max-width: 100%;
  margin-top: var(--rs-space-lg);
  overflow-x: hidden;
  position: relative;
  min-height: calc(
    var(--rs-preview-mobile-wrap-height) + var(--rs-space-xl) +
      var(--rs-home-carousel-scrollbar-width) + 1px
  ); /* Absolute rail: reserve frame height plus controls, scrollbar, and a 1px guard. */
}

div.rs-c-home-mobile-carousel > ul {
  display: flex;
  padding-bottom: var(--rs-space-2xs);
  gap: var(--rs-space-xl);
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  position: absolute;
  inset: 0;
  height: 100%;
}
div.rs-c-home-mobile-carousel > ul > li {
  flex: 0 0 auto;
}

div.rs-c-home-evolution-wrap {
  overflow-x: auto;
}

/*
  Marketing pages: "/" (make, .rs-scope-make) and "/educators" (teach,
  .rs-scope-teach); docs/brand/homepages.md. Low fidelity: content and
  layout, phone first. The shared blocks (page_component_marketing.templ)
  are styled here; each page's style layer is its own region below and only
  adjusts the --rs-marketing-* tokens and its own page's blocks. The phone
  layout is the layout: wider screens get the same single column, with the
  text kept to its measure.
*/
:is(.rs-scope-make, .rs-scope-teach) {
  --rs-marketing-section-gap: var(--rs-space-xl);
  --rs-marketing-point-gap: var(--rs-space-sm);
}
:is(.rs-scope-make, .rs-scope-teach) > .rs-l-content-section {
  margin-top: var(--rs-marketing-section-gap);
}
:is(.rs-scope-make, .rs-scope-teach) > .rs-l-content-section:first-child {
  margin-top: var(--rs-space-md);
}
.rs-c-marketing-section h2 {
  font-size: var(--rs-text-heading-2);
  font-weight: var(--rs-text-weight-bold);
  line-height: var(--rs-text-line-tight);
  text-wrap: balance;
  max-width: var(--rs-text-measure);
}
/* A page whose first section is its title, such as /try. */
.rs-c-marketing-section h1 {
  font-size: var(--rs-text-heading-1);
  font-weight: var(--rs-text-weight-bold);
  line-height: var(--rs-text-line-tight);
  text-wrap: balance;
  max-width: var(--rs-text-measure);
}
.rs-c-marketing-section__line {
  margin-top: var(--rs-space-2xs);
}
ul.rs-c-marketing-points {
  display: grid;
  gap: var(--rs-marketing-point-gap);
  margin-top: var(--rs-space-md);
  padding-left: 0;
  list-style: none;
  max-width: var(--rs-text-measure);

  > li {
    display: flex;
    align-items: baseline;
    gap: var(--rs-space-xs);
  }
}
.rs-c-marketing-points__icon {
  flex: none;
}
/* ==== Region: make ("/" and "/try"). The site-owner style layer. ==== */
.rs-scope-make {
  /* Today's home text mode and spacing: the shared defaults above. */
  --rs-marketing-section-gap: var(--rs-space-xl);
}
/* Hand-built points carry no emoji. */
.rs-scope-make ul.rs-c-marketing-points > li > p {
  margin: 0;
}
/* The try-it editor in one bordered card, at full content width (/try). */
.rs-c-make-card {
  margin-top: var(--rs-space-md);
  padding: var(--rs-space-md);
  border: 1px solid var(--rs-color-border);
  border-radius: var(--rs-radius-lg);

  > [data-testid="visitor-publish-legal"] {
    margin-top: var(--rs-space-sm);
  }
}
.rs-c-make-note {
  margin-top: var(--rs-space-md);
}
/* /try's sample sites: a small "Example" label above each phone frame. The
   carousel reserves the label's line on top of its usual height. The
   homepage's examples need no label: the section says they're made up. */
.rs-scope-make:not(.rs-c-make-home) #examples div.rs-c-home-mobile-carousel {
  min-height: calc(
    var(--rs-preview-mobile-wrap-height) + var(--rs-space-xl) +
      var(--rs-home-carousel-scrollbar-width) + 1px + 2em
  );
}
.rs-scope-make:not(.rs-c-make-home) #examples article[data-sample]::before {
  content: "Example";
  display: block;
  height: 2em;
  line-height: 2em;
  color: var(--rs-color-ink-muted);
  font-size: var(--rs-text-small);
  font-weight: var(--rs-text-weight-bold);
}
/*
  The homepage, "/" (.rs-c-make-home; docs/brand/public-page-design.md):
  the shared public layer (Region: public), plus two touches of its own:
  - the page is centred.
*/

/* The homepage is centred (owner, 2026-11-13): the promise, each section's
   heading and line, and the actions that follow them. Text inside cards
   and lists stays left-aligned, where it reads best. */
.rs-c-make-home .rs-c-public-hero__grid {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  text-align: center;
}
.rs-c-make-home > .rs-c-public-hero .rs-c-public-hero__text > :is(h1, p) {
  margin-inline: auto;
}
.rs-c-make-home .rs-c-marketing-section :is(h2, .rs-c-marketing-section__line, .rs-c-public-kicker),
.rs-c-make-home .rs-c-make-note {
  margin-inline: auto;
  text-align: center;
}
.rs-c-make-home :is(.rs-c-public-hero__text, .rs-u-content-indent) > .rs-c-public-actions {
  justify-content: center;
}
.rs-c-make-home :is(.rs-c-make-course-note, article.rs-c-make-course-card, p.rs-c-make-course-notice) {
  margin-inline: auto;
}
.rs-c-make-home .rs-c-public-band__inner {
  flex-direction: column;
  align-items: center;
  text-align: center;
}
/* The sections stand well apart, so a phone reader sees where one ends
   (owner, 2026-11-16: "more breathing room"; it was 0.8 of the xl space). */
.rs-c-make-home.rs-c-public {
  --rs-marketing-section-gap: calc(var(--rs-space-xl) * 1.3);
}
@media only screen and (min-width: 64rem) {
  .rs-c-make-home.rs-c-public {
    --rs-marketing-section-gap: calc(var(--rs-space-2xl) * 0.75);
  }
}

/* Two ways to change a site, on the homepage: only the essence of each
   (owner, 2026-11-15). Two cards, the same height, side by side when wide:
   a heading and one line, left-aligned, over one scene. Edit by chat's
   scene is a short exchange in the chat; Edit by hand's is a real sample
   site's poster with its photo picked and the photo menu open. */
div.rs-c-make-ways {
  display: grid;
  gap: var(--rs-space-lg);
  margin-top: var(--rs-space-lg);
}
@media only screen and (min-width: 48rem) {
  div.rs-c-make-ways {
    grid-template-columns: 1fr 1fr;
  }
}
figure.rs-c-make-way {
  display: flex;
  flex-direction: column;
  gap: var(--rs-space-md);
  min-width: 0;
  margin: 0;
  padding: var(--rs-space-md);
  border-radius: var(--rs-radius-lg);
  background-color: var(--rs-color-surface);
  text-align: start;

  > figcaption h3 {
    margin: 0;
  }
  > figcaption p {
    margin: var(--rs-space-2xs) 0 0;
    color: var(--rs-color-ink-muted);
  }
}
/* Both scenes are as tall as each other: the site fills its card's width,
   and the chat stretches to the same height, its messages above and the
   box to type in at the bottom, in smaller type. */
.rs-c-make-way__scene {
  display: flex;
  flex: 1;
  align-items: stretch;
  justify-content: center;
}
.rs-c-make-way__chat {
  display: flex;
  flex-direction: column;
  gap: var(--rs-space-sm);
  width: 100%;
  padding: var(--rs-space-sm);
  /* No outline: the card around it is box enough (owner, 2026-11-16). */
  border: 1px solid transparent;
  border-radius: var(--rs-radius-lg);
  background-color: var(--rs-color-paper);
  font-size: var(--rs-text-small);
}
.rs-c-make-way__messages {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--rs-space-xs);
}
.rs-c-make-way__composer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--rs-space-xs);
  margin: 0;
  padding: var(--rs-space-2xs) var(--rs-space-2xs) var(--rs-space-2xs) var(--rs-space-sm);
  border: 1px solid var(--rs-color-border);
  border-radius: var(--rs-radius-sm);
  color: var(--rs-color-ink-muted);
}
.rs-c-make-way__send {
  padding: 0.4em var(--rs-space-sm);
  border-radius: var(--rs-radius-sm);
  background-color: var(--rs-color-primary);
  color: var(--rs-color-primary-ink);
  font-weight: var(--rs-text-weight-bold);
}
.rs-c-make-way__msg {
  max-width: 85%;
  margin: 0;
  padding: var(--rs-space-xs) var(--rs-space-sm);
  border-radius: var(--rs-radius-lg);
  background-color: var(--rs-color-surface);
  color: var(--rs-color-ink);
  line-height: var(--rs-text-line-tight);
}
/* The owner's words are green, so they don't compete with the primary
   blue of the Send button and the page's buttons (owner, 2026-11-15). */
/* The owner's messages take the photo menu's highlight (owner,
   2026-11-15), so both scenes share one accent. */
.rs-c-make-way__msg--owner {
  align-self: flex-end;
  background-color: var(--rs-color-primary-soft);
  color: var(--rs-color-ink);
}
/* The sample site: the top of its poster, framed like a phone's screen.
   The photo runs from 14% to 56% of the frame (the poster's 65 to 258 px
   of the 460 shown); the pick, the pointer and the menu sit on it. */
.rs-c-make-way__site {
  position: relative;
  align-self: flex-start;
  width: 100%;
  aspect-ratio: 390 / 460;
  overflow: hidden;
  border: 0.35em solid var(--rs-color-band);
  border-radius: var(--rs-radius-lg);
  background-color: var(--rs-color-band);

  > img {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
  }
}
.rs-c-make-way__picked {
  position: absolute;
  inset: 14% 0.25em auto;
  height: 42%;
  border-radius: 0.2em;
  outline: 0.2em solid var(--rs-color-primary);
  outline-offset: -0.2em;
  background-color: var(--rs-color-primary-soft);
}
.rs-c-make-way__pointer {
  position: absolute;
  top: 30%;
  left: 52%;
  width: 1.5em;
  max-width: none;
  height: auto;
  filter: drop-shadow(0 0.15em 0.25em rgb(0 0 0 / 0.4));
}
/* Edit by chat's pointer rests on the box to type in. */
.rs-c-make-way__pointer--chat {
  top: 35%;
  left: 62%;
}
.rs-c-make-way__menu {
  position: absolute;
  top: 42%;
  left: 12%;
  display: flex;
  flex-direction: column;
  gap: 0.15em;
  padding: 0.3em;
  border-radius: var(--rs-radius-sm);
  background-color: var(--rs-color-paper);
  color: var(--rs-color-ink);
  box-shadow: 0 0.4em 1.2em rgb(0 0 0 / 0.35);
  font-size: var(--rs-text-small);
  font-weight: var(--rs-text-weight-bold);
  white-space: nowrap;
}
.rs-c-make-way__menu-item {
  padding: 0.35em 0.6em;
  border-radius: var(--rs-radius-sm);
}
.rs-c-make-way__menu-item--on {
  background-color: var(--rs-color-primary-soft);
}

/* Edit by chat and Edit by hand in three steps each
   (page_component_edit_steps.templ): each step a scene of the Editor taken
   apart, drawn with the --rs-* tokens, over its numbered caption; three
   across when wide. Kept for a docs page; the homepage shows the essence
   above. */
.rs-c-edit-steps {
  text-align: start;

  > h3 {
    margin: 0 0 var(--rs-space-sm);
  }
  > ol {
    display: grid;
    gap: var(--rs-space-md);
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: rs-edit-step;
  }
}
@media only screen and (min-width: 48rem) {
  .rs-c-edit-steps > ol {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  /* Side by side, every scene is as tall as the tallest, so the captions
     start on one line: the steps share the list's rows. A browser without
     subgrid gets scenes tall enough for any of them. */
  .rs-c-edit-step__scene {
    min-height: 19em;
  }
  @supports (grid-template-rows: subgrid) {
    .rs-c-edit-steps > ol {
      grid-template-rows: auto auto;
    }
    .rs-c-edit-steps > ol > .rs-c-edit-step {
      display: grid;
      grid-row: span 2;
      grid-template-rows: subgrid;
      gap: var(--rs-space-sm);
    }
    .rs-c-edit-steps .rs-c-edit-step__scene {
      min-height: 0;
    }
  }
}
.rs-c-edit-step {
  display: flex;
  flex-direction: column;
  gap: var(--rs-space-sm);
  counter-increment: rs-edit-step;

  > p {
    margin: 0;
    text-wrap: pretty;
  }
  > p::before {
    content: counter(rs-edit-step);
    display: inline-grid;
    place-items: center;
    width: 1.6em;
    height: 1.6em;
    margin-inline-end: 0.45em;
    border-radius: 50%;
    background-color: var(--rs-color-primary);
    color: var(--rs-color-primary-ink);
    font-weight: var(--rs-text-weight-bold);
    line-height: 1;
  }
}
/* The scene: the Editor's pieces on a tinted panel, all the same height. */
.rs-c-edit-step__scene {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--rs-space-sm);
  min-height: 13em;
  padding: var(--rs-space-md);
  border-radius: var(--rs-radius-lg);
  background-color: var(--rs-color-surface);
  font-size: var(--rs-text-small);
  line-height: var(--rs-text-line-tight);
}
/* The page being changed, and the Editor's chat and dialog: paper panels. */
:is(.rs-c-edit-step__page, .rs-c-edit-step__chat, .rs-c-edit-step__dialog) {
  display: flex;
  flex-direction: column;
  gap: var(--rs-space-xs);
  padding: var(--rs-space-sm) var(--rs-space-md);
  border: 1px solid var(--rs-color-border);
  border-radius: var(--rs-radius-lg);
  background-color: var(--rs-color-paper);
  color: var(--rs-color-ink);

  > p {
    margin: 0;
  }
}
:is(.rs-c-edit-step__page-title, .rs-c-edit-step__chat-title, .rs-c-edit-step__dialog-title) {
  font-weight: var(--rs-text-weight-bold);
}
dl.rs-c-edit-step__hours {
  display: grid;
  grid-template-columns: auto auto;
  gap: 0.35em 1em;
  margin: 0;

  dt {
    font-weight: var(--rs-text-weight-bold);
  }
  dd {
    margin: 0;
  }
}
/* The Editor's mark on what Orbit changed. */
.rs-c-edit-step__changed {
  justify-self: start;
  border-radius: 0.2em;
  outline: 0.15em solid var(--rs-color-ink);
  outline-offset: 0.2em;
}
.rs-c-edit-step__page-heading {
  font-size: 1.3em;
  font-weight: var(--rs-text-weight-bold);
}
.rs-c-edit-step__page-text {
  color: var(--rs-color-ink-muted);
}
/* What the owner tapped, outlined as Edit outlines it. */
.rs-c-edit-step__tapped {
  border-radius: 0.15em;
  outline: 0.15em solid var(--rs-color-primary);
  outline-offset: 0.15em;
  background-color: var(--rs-color-primary-soft);
}
.rs-c-edit-step__composer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--rs-space-xs);
  padding: var(--rs-space-2xs) var(--rs-space-2xs) var(--rs-space-2xs) var(--rs-space-sm);
  border: 0.15em solid var(--rs-color-primary);
  border-radius: var(--rs-radius-sm);
}
.rs-c-edit-step__reply {
  align-self: flex-start;
  margin: 0;
  padding: var(--rs-space-xs) var(--rs-space-sm);
  border-radius: var(--rs-radius-lg);
  background-color: var(--rs-color-paper);
  color: var(--rs-color-ink);
}
.rs-c-edit-step__field {
  padding: var(--rs-space-xs) var(--rs-space-sm);
  border: 0.15em solid var(--rs-color-primary);
  border-radius: var(--rs-radius-sm);

  mark {
    border-radius: 0.15em;
    background-color: var(--rs-color-primary-soft);
    color: inherit;
  }
}
.rs-c-edit-step__bar {
  display: flex;
  justify-content: flex-end;
  gap: var(--rs-space-xs);
}
.rs-c-edit-step__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  min-height: 2.2em;
  padding: 0 var(--rs-space-sm);
  border-radius: var(--rs-radius-sm);
  background-color: var(--rs-color-paper);
  color: var(--rs-color-ink);
  font-weight: var(--rs-text-weight-bold);
  white-space: nowrap;
}
.rs-c-edit-step__btn--primary {
  background-color: var(--rs-color-primary);
  color: var(--rs-color-primary-ink);
}
.rs-c-edit-step__dialog > .rs-c-edit-step__btn {
  align-self: flex-end;
}
/* Edit's menu, dark, just above what the owner tapped. */
.rs-c-edit-step__menu {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  margin: 0 0 -1.1em var(--rs-space-sm);
  padding: 0.45em var(--rs-space-sm);
  border-radius: var(--rs-radius-sm);
  background-color: var(--rs-color-ink);
  color: var(--rs-color-paper);
  font-weight: var(--rs-text-weight-bold);
  white-space: nowrap;
}
/* The pointer where the owner taps: on Publish, or on the heading. */
.rs-c-edit-step__pointer {
  position: absolute;
  right: -0.4em;
  bottom: -1.1em;
  width: 1.3em;
  max-width: none;
  height: auto;
  filter: drop-shadow(0 0.05em 0.1em rgb(0 0 0 / 0.35));
  pointer-events: none;
}
.rs-c-edit-step__tapped {
  position: relative;
}
.rs-c-edit-step__tapped > .rs-c-edit-step__pointer {
  right: 0.6em;
  bottom: -0.3em;
}
/* What Orbit looks after: two across when wide. */
ul.rs-c-make-facts {
  display: grid;
  gap: var(--rs-space-md) var(--rs-space-xl);
  margin-top: var(--rs-space-lg);
  padding-left: 0;
  list-style: none;

  > li {
    display: flex;
    align-items: center;
    gap: var(--rs-space-sm);
  }
  p {
    margin: 0;
  }
}
/* Each fact's emoji stands in a round chip, so the text after it aligns. */
.rs-c-make-facts__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.4em;
  height: 2.4em;
  border-radius: 50%;
  background-color: var(--rs-color-paper);
}
/* Wide, the grid runs past the page's text column, centred, so each item
   keeps to two lines (owner, 2026-11-15). */
@media only screen and (min-width: 64rem) {
  ul.rs-c-make-facts {
    grid-template-columns: 1fr 1fr;
    width: min(54em, 100vw - 4rem);
    margin-inline: calc((100% - min(54em, 100vw - 4rem)) / 2);
  }
}
/* The four benefits: Looked after's grid, larger. Each benefit is its own
   heading, left-aligned beside its emoji in a round chip; two across when
   wide, as wide as Looked after's grid, so the two line up. */
:is(ul, ol).rs-c-make-benefits {
  display: grid;
  gap: var(--rs-space-lg) var(--rs-space-xl);
  margin: 0;
  padding-left: 0;
  list-style: none;

  > li {
    display: flex;
    align-items: flex-start;
    gap: var(--rs-space-md);
  }
  p {
    margin: var(--rs-space-2xs) 0 0;
  }
}
/* Each item's heading: an h2 when the section has no heading of its own
   (the homepage), an h3 under one (/educators, /pricing). */
.rs-c-make-home .rs-c-marketing-section :is(ul, ol).rs-c-make-benefits :is(h2, h3) {
  margin: 0;
  font-size: var(--rs-text-heading-3);
  text-align: start;
}
.rs-c-make-benefits__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 1.9em;
  height: 1.9em;
  border-radius: 50%;
  background-color: var(--rs-color-surface);
  font-size: 2em;
  line-height: 1;
}
/* On a grey band the chip takes the page's colour, so it still shows. */
.rs-c-public-grey .rs-c-make-benefits__icon {
  background-color: var(--rs-color-paper);
}
/* Under a section heading, the grid starts a little below it. */
.rs-c-marketing-section__line + :is(ul, ol).rs-c-make-benefits,
h2:not(.rs-u-sr-only) + :is(ul, ol).rs-c-make-benefits {
  margin-top: var(--rs-space-lg);
}
@media only screen and (min-width: 64rem) {
  :is(ul, ol).rs-c-make-benefits {
    grid-template-columns: 1fr 1fr;
    width: min(54em, 100vw - 4rem);
    margin-inline: calc((100% - min(54em, 100vw - 4rem)) / 2);
  }
  /* Three steps stand three across: the pricing page's trial. */
  :is(ul, ol).rs-c-make-benefits--three {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Plans: two cards, each opening with its job and ending in its own action.
   Stacked until the screen is wide enough for both to hold their lists on
   one line each. The course note follows in a grey box. */
div.rs-c-make-plans {
  display: grid;
  gap: var(--rs-space-md) var(--rs-space-xl);
  margin-top: var(--rs-space-lg);
}
@media only screen and (min-width: 64rem) {
  div.rs-c-make-plans {
    grid-template-columns: 1fr 1fr;
  }
}
article.rs-c-make-plan {
  display: flex;
  flex-direction: column;
  padding: var(--rs-space-md) var(--rs-space-md) var(--rs-space-lg);
  /* A quiet tint, no outline: only the plan on offer is outlined (owner,
     2026-11-16: fewer borders). */
  border: var(--rs-card-border) solid transparent;
  border-radius: var(--rs-radius-lg);
  background-color: var(--rs-color-surface);

  h3 {
    font-size: var(--rs-text-heading-2);
    font-weight: var(--rs-text-weight-bold);
    line-height: var(--rs-text-line-tight);
  }
  > .rs-c-public-actions {
    margin-top: auto;
    padding-top: var(--rs-space-md);
  }
}
.rs-c-make-plan__job {
  margin-top: var(--rs-space-2xs);

  color: var(--rs-color-ink-muted);
}
ul.rs-c-make-checks {
  display: grid;
  gap: var(--rs-space-2xs);
  margin-top: var(--rs-space-sm);
  padding-left: 0;
  list-style: none;

  > li {
    position: relative;
    padding-left: 1.38em;
  }
  > li::before {
    content: "✓" / "";
    position: absolute;
    left: 0;
    color: var(--rs-color-primary);
    font-weight: var(--rs-text-weight-bold);
  }
}
/* The plan the page leads with stands out by its ink border. */
article.rs-c-make-plan--lead {
  border-color: var(--rs-color-ink);
  background-color: transparent;
}
/* A plan's price opens its card, under its name: the amount large, the
   taxes beside it in small print, then a muted line (the pricing page). */
.rs-c-make-plan__price {
  margin-top: var(--rs-space-2xs);
}
.rs-c-make-plan__amount {
  font-size: var(--rs-text-heading-2);
  font-weight: var(--rs-text-weight-bold);
  line-height: var(--rs-text-line-tight);
}
/* A plan's price as one sentence, in the words the terms quote. */
.rs-c-make-plan__price-line {
  font-size: var(--rs-public-subhead);
  font-weight: var(--rs-text-weight-bold);
  line-height: var(--rs-text-line-tight);
}
.rs-c-make-plan__tax,
.rs-c-make-plan__or {
  color: var(--rs-color-ink-muted);
}
.rs-c-make-plan__tax {
  font-size: var(--rs-text-small);
}
.rs-c-make-plan__or {
  margin-top: var(--rs-space-3xs);
}
.rs-c-make-plan__price + .rs-c-make-plan__job {
  margin-top: var(--rs-space-sm);
}
.rs-c-make-plan__limit {
  margin-top: var(--rs-space-sm);
  color: var(--rs-color-ink-muted);
  font-size: var(--rs-text-small);
}
.rs-c-make-course-note {
  max-width: var(--rs-text-measure);
  margin-top: var(--rs-space-md);
  padding: var(--rs-space-md);
  border-radius: var(--rs-radius-lg);
  background-color: var(--rs-color-surface);
  font-size: var(--rs-text-small);
}

/* The example sites, under their section's line. */
.rs-c-make-examples {
  margin-top: var(--rs-space-lg);
}

/* The course card, for a course's link (/?course=…): below the promise,
   so the page's headings run in order (owner, 2026-11-12). The course's
   name, until when joining is open, and Join course; or one plain notice
   in its place for a link that can't be used. */
.rs-c-make-home > .rs-c-make-course {
  margin-bottom: var(--rs-space-lg);
}
article.rs-c-make-course-card {
  max-width: var(--rs-text-measure);
  padding: var(--rs-space-md) var(--rs-space-md) var(--rs-space-lg);
  border: 1px solid var(--rs-color-border);
  border-radius: var(--rs-radius-lg);

  h2 {
    margin-top: var(--rs-space-2xs);
    font-size: var(--rs-text-heading-1);
    font-weight: var(--rs-text-weight-bold);
    line-height: var(--rs-text-line-tight);
    text-wrap: balance;
  }
  h2 + p {
    margin-top: var(--rs-space-xs);
  }
}
.rs-c-make-course-card__kicker {
  color: var(--rs-color-ink-muted);
  font-weight: var(--rs-text-weight-medium);
}
.rs-c-make-course-card__need {
  margin-top: var(--rs-space-2xs);
  color: var(--rs-color-ink-muted);
  font-size: var(--rs-text-small);
}
p.rs-c-make-course-notice {
  max-width: var(--rs-text-measure);
  padding: var(--rs-space-md);
  border-radius: var(--rs-radius-lg);
  background-color: var(--rs-color-surface);
}
/* The Join course dialog's way in for someone with an account. */
.rs-c-make-join-course__sign-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--rs-space-2xs) var(--rs-space-xs);
  margin-top: var(--rs-space-md);
  padding-top: var(--rs-space-sm);
  border-top: 1px solid var(--rs-color-border);
}
/* ==== End region: make ==== */

/* ==== Region: teach ("/educators"). The educator page's touches on the
   shared public layer (Region: public; docs/brand/public-page-design.md):
   centred like the homepage since 2026-11-15, its benefits in the
   homepage's emoji grid and the highlighter on the promise only. Its
   answers read like a reference table. ==== */

.rs-c-teach-note {
  margin-top: var(--rs-space-md);
  color: var(--rs-color-ink-muted);
  font-size: var(--rs-text-small);
}
.rs-c-make-home .rs-c-teach-note {
  text-align: center;
}

/* How a course runs: one stage under the other at every width, on a line.
   When it happens stands beside the stage when wide, above it on a phone. */
ol.rs-c-teach-timeline {
  margin-top: var(--rs-space-lg);
  padding-left: 0;
  list-style: none;

  > li {
    position: relative;
    padding: 0 0 var(--rs-space-lg) var(--rs-space-lg);
    border-left: var(--rs-public-rule);
  }
  > li:last-child {
    padding-bottom: 0;
    border-left-color: transparent;
  }
  > li::before {
    content: "";
    position: absolute;
    top: 0.3em;
    left: calc(-0.38em - 1px);
    width: 0.76em;
    height: 0.76em;
    border-radius: 50%;
    background-color: var(--rs-color-primary);
  }
  h3 + p {
    margin-top: var(--rs-space-3xs);
    max-width: var(--rs-text-measure);
  }
}
.rs-c-teach-timeline__when {
  color: var(--rs-color-link);
  font-size: var(--rs-text-small);
  font-weight: var(--rs-text-weight-bold);
}
/* The screenshot of a course view, under the stage it shows. */
img.rs-c-teach-timeline__picture {
  display: block;
  width: 100%;
  height: auto;
  margin-top: var(--rs-space-sm);
  border: 1px solid var(--rs-color-border);
  border-radius: var(--rs-radius-lg);
}
@media only screen and (min-width: 64rem) {
  ol.rs-c-teach-timeline > li {
    display: grid;
    grid-template-columns: 9em minmax(0, 1fr);
    column-gap: var(--rs-space-lg);
    align-items: baseline;
  }
}

/* Who does what: the teacher's part and Orbit's, side by side when wide,
   then the other courses Orbit fits. */
.rs-c-teach-roles {
  display: grid;
  gap: var(--rs-space-lg) var(--rs-space-xl);
  margin-top: var(--rs-space-lg);

  > div {
    padding-top: var(--rs-space-sm);
    border-top: var(--rs-public-rule);
  }
  ul {
    margin-top: var(--rs-space-2xs);
    padding-left: 0;
    list-style: none;
  }
  li {
    padding-block: var(--rs-space-2xs);
    border-bottom: 1px solid var(--rs-color-border);
  }
}
@media only screen and (min-width: 64rem) {
  .rs-c-teach-roles {
    grid-template-columns: 1fr 1fr;
  }
}
/* What institutions ask: question and answer in rows under a hairline,
   side by side when wide, like the goal rows. */
dl:is(.rs-c-teach-answers, .rs-c-teach-rows) {
  margin-top: var(--rs-space-lg);

  > div {
    padding-block: var(--rs-space-sm);
    border-top: 1px solid var(--rs-color-border);
  }
  > div:first-child {
    border-top: var(--rs-public-rule);
  }
  dt {
    font-weight: var(--rs-text-weight-bold);
  }
  dd {
    margin: var(--rs-space-3xs) 0 0;
    max-width: var(--rs-text-measure);
  }
}
@media only screen and (min-width: 64rem) {
  dl:is(.rs-c-teach-answers, .rs-c-teach-rows) > div {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    column-gap: var(--rs-space-xl);
    align-items: baseline;
  }
  dl:is(.rs-c-teach-answers, .rs-c-teach-rows) dd {
    margin-top: 0;
  }
}

/* Example sites: a row of phone screenshots with a short caption each. A
   gallery, not text columns: the row scrolls sideways when it doesn't fit.
   Each card holds its own positioned parts, such as a link's hidden words
   (.rs-u-sr-only): placed against the page instead, they stood outside the
   row's scroll and widened a 20em screen to 23em. */
ul.rs-c-teach-examples {
  display: flex;
  gap: var(--rs-space-lg);
  margin-top: var(--rs-space-lg);
  padding: 0 0 var(--rs-space-2xs);
  overflow-x: auto;
  list-style: none;

  > li {
    position: relative;
    flex: 0 0 11em;
    font-size: var(--rs-text-small);
  }
  img {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: var(--rs-space-xs);
    border: 1px solid var(--rs-color-border);
    border-radius: var(--rs-radius-lg);
  }
  p + p {
    margin-top: var(--rs-space-3xs);
  }
  a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
  }
}

/* Getting started: the one thing to act on. What schools pay, then the
   button to the course form. */
.rs-c-teach-start {
  margin-top: var(--rs-space-md);
  text-align: center;

  .rs-c-public-actions {
    justify-content: center;
    margin-top: var(--rs-space-md);
  }
}
.rs-c-teach-start__price {
  max-width: var(--rs-text-measure);
  margin-inline: auto;
}
/* ==== End region: teach ==== */

/* ==== Region: public ("/" and "/educators"). The public page design's
   shared layer (docs/brand/public-page-design.md). ==== */
/*
  Utilitarian: system type, black on white, rules instead of boxes, one
  column on a phone. Orbit's text is large, so a wide screen gets two
  columns at most, and only where each holds whole sentences. The ink band
  holds each page's promise and closes it. The bands carry one pattern,
  Orbit's collage of sites under a veil of ink; nothing else is decorated.
  It comes after the make and teach regions, so its tokens win over their scopes'.
*/
.rs-c-public {
  --rs-public-ink: var(--rs-color-band);
  --rs-public-on-ink: var(--rs-color-on-band);
  --rs-public-on-ink-muted: rgb(200, 194, 216); /* 10.7:1 on the ink */
  --rs-public-marker: var(--rs-editor-selection-bg);
  --rs-public-display: 2.2em;
  --rs-public-rule: 2px solid var(--rs-color-ink);
  --rs-marketing-section-gap: var(--rs-space-xl);
  /* A sub-heading inside a section, between the section's and the text. */
  --rs-public-subhead: 1.27em;
  /* The widest the content runs. Wide screens get side margins instead of
     longer lines (owner, 2026-11-13). */
  --rs-public-width: 44em;
}
/* On a phone the public pages' type is one step smaller (owner,
   2026-11-16). Every size on these pages is in em, so the headings, the
   text and the spaces scale together; tap targets keep their rem sizes. */
@media only screen and (max-width: 39.99rem) {
  .rs-c-public {
    font-size: 0.94em;
  }
}
.rs-c-public .rs-u-content-indent {
  max-width: calc(var(--rs-public-width) + 2 * var(--rs-layout-content-inset));
  margin-inline: auto;
}
/* A paragraph's measure on the public pages, in em: 64ch held up to 96
   characters a line, because ch is the width of a zero. 30em holds about
   65. Set on the sections, so it reaches every paragraph through the app's
   own measure rule. */
.rs-c-public > :is(.rs-l-content-section, .rs-c-public-band) {
  --rs-text-measure: 30em;
}
/* The highlighter, in the editor's own selection yellow: on a few words of
   each page's promise, and once more on a heading half way down. */
.rs-c-public-mark {
  padding-inline: 0.06em;
  border-radius: var(--rs-radius-sm);
  background-color: var(--rs-public-marker);
  color: var(--rs-color-highlight-ink);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
/* The pricing page's comparison (owner, 2026-11-15): a card, ticks and
   dashes for yes and no, no notes under it, and no tinted column (it
   didn't work). Three columns of short cells, which fit a phone without scrolling
   sideways. */
table.rs-c-public-compare {
  width: 100%;
  margin-top: var(--rs-space-lg);
  /* Rows under hairlines, with no box around them. */
  border-radius: var(--rs-radius-lg);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  table-layout: fixed;
  text-align: left;

  :is(th, td) {
    padding: var(--rs-space-sm);
    border-bottom: 1px solid var(--rs-color-border);
    vertical-align: middle;
    overflow-wrap: anywhere;
  }
  tbody tr:last-child :is(th, td) {
    border-bottom: 0;
  }
  thead :is(th, td) {
    background-color: var(--rs-color-surface);
  }
  th {
    font-weight: var(--rs-text-weight-bold);
  }
}
.rs-c-public-compare__mark {
  color: var(--rs-color-primary);
  font-weight: var(--rs-text-weight-bold);
}
.rs-c-public-compare__none {
  color: var(--rs-color-ink-muted);
}
/* A plan's price under its name, in the comparison's heading. */
.rs-c-public-compare__price {
  display: block;
  font-size: var(--rs-text-small);
  font-weight: 400;
  color: var(--rs-color-ink-muted);
}
/* The help articles a section's detail lives in: a short list of links
   under it, with no bullets. */
ul.rs-c-make-more {
  display: grid;
  gap: var(--rs-space-2xs);
  margin-top: var(--rs-space-lg);
  padding-left: 0;
  list-style: none;
}
/* Students' price, under the plans: a callout with its emoji chip. */
.rs-c-make-student {
  display: flex;
  align-items: flex-start;
  gap: var(--rs-space-md);
  max-width: 40em;
  margin: var(--rs-space-lg) auto 0;
  padding: var(--rs-space-md);
  border-radius: var(--rs-radius-lg);
  background-color: var(--rs-color-surface);
  text-align: start;

  h3 {
    margin: 0;
  }
  p {
    margin: var(--rs-space-2xs) 0 0;
    color: var(--rs-color-ink-muted);
  }
}
/* A short label above a heading: who a page or a section is for. */
.rs-c-public-kicker {
  margin-bottom: var(--rs-space-2xs);
  color: var(--rs-color-link);
  font-size: var(--rs-text-small);
  font-weight: var(--rs-text-weight-bold);
}
.rs-c-public-hero .rs-c-public-kicker {
  color: var(--rs-public-on-ink-muted);
}
.rs-c-public .rs-c-marketing-section h3 {
  font-size: var(--rs-public-subhead);
  font-weight: var(--rs-text-weight-bold);
  line-height: var(--rs-text-line-tight);
}
@media only screen and (min-width: 64rem) {
  .rs-c-public {
    --rs-public-display: 2.62em;
    --rs-marketing-section-gap: var(--rs-space-2xl);
  }
}
/* Section headings one step up from the app's, so the page reads in three
   sizes: the promise, a section, a detail. */
.rs-c-public .rs-c-marketing-section h2,
.rs-c-public-row h2 {
  font-size: var(--rs-text-heading-1);
  font-weight: var(--rs-text-weight-bold);
  line-height: var(--rs-text-line-tight);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
/* Actions in a row; plain links beside a button stand at least 44px. */
.rs-c-public-actions > a {
  min-height: 2.75rem;
}
div.rs-c-public-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--rs-space-sm) var(--rs-space-md);
  margin-top: var(--rs-space-md);

  > a:not(.rs-c-btn) {
    display: inline-flex;
    align-items: center;
  }
}

/* The pattern behind an ink band: Orbit's collage of sites, tilted, under
   a veil of the band's own ink so the words stay easy to read. Those sites
   were made to sit together; the sample sites were not, and a wall of them
   looked like a jumble (owner, 2026-11-13). The veil is lighter at the top
   and deepest at the bottom. A phone gets the small picture. */
/* The band's muted text takes the band's tint: 9.7:1 or more on it. */
:root[data-orbit-paper="cream"] .rs-c-public {
  --rs-public-on-ink-muted: rgb(214, 203, 186);
}
:root[data-orbit-paper="blue"] .rs-c-public {
  --rs-public-on-ink-muted: rgb(190, 204, 226);
}
.rs-c-public {
  --rs-public-veil: linear-gradient(
    color-mix(in srgb, var(--rs-public-ink) 80%, transparent),
    color-mix(in srgb, var(--rs-public-ink) 90%, transparent) 45%,
    color-mix(in srgb, var(--rs-public-ink) 94%, transparent)
  );
}
/* The educator page is calmer: its pattern sits further back. */
.rs-scope-teach.rs-c-public {
  --rs-public-veil: linear-gradient(
    color-mix(in srgb, var(--rs-public-ink) 88%, transparent),
    color-mix(in srgb, var(--rs-public-ink) 95%, transparent)
  );
}
.rs-c-public > :is(.rs-c-public-hero, .rs-c-public-band) {
  background-image: var(--rs-public-veil), url("/static/images/orbit-v1-static-mobile-prime--utility-demo-rotate--crop-780.jpg");
  background-image:
    var(--rs-public-veil),
    image-set(
      url("/static/images/orbit-v1-static-mobile-prime--utility-demo-rotate--crop-780.webp") type("image/webp"),
      url("/static/images/orbit-v1-static-mobile-prime--utility-demo-rotate--crop-780.jpg") type("image/jpeg")
    );
  background-position: center;
  /* As small as the picture goes while it still fills the band, so it
     never repeats and shows no seams (owner, 2026-11-15: it was too
     large). Smaller still needs a collage with more rows. */
  background-size: cover;
}
@media only screen and (min-width: 40rem) {
  .rs-c-public > :is(.rs-c-public-hero, .rs-c-public-band) {
    background-image: var(--rs-public-veil), url("/static/images/orbit-v1-static-mobile-prime--utility-demo-rotate--crop-2560.jpg");
    background-image:
      var(--rs-public-veil),
      image-set(
        url("/static/images/orbit-v1-static-mobile-prime--utility-demo-rotate--crop-2560.webp") type("image/webp"),
        url("/static/images/orbit-v1-static-mobile-prime--utility-demo-rotate--crop-2560.jpg") type("image/jpeg")
      );
  }
}

/* Hero: the promise on the ink band, with nothing beside or below it. */
.rs-c-public > .rs-c-public-hero {
  margin-top: 0;
  padding-block: var(--rs-space-xl);
  background-color: var(--rs-public-ink);
  color: var(--rs-public-on-ink);

  h1 {
    max-width: 13em;
    font-size: var(--rs-public-display);
    font-weight: var(--rs-text-weight-bold);
    /* Looser than a display heading's usual: on a phone its three lines
       crowded the highlighter (owner, 2026-11-16). */
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-wrap: balance;
  }
  h1 + p {
    margin-top: var(--rs-space-md);
    color: var(--rs-public-on-ink-muted);
    text-wrap: pretty;
  }
  .rs-c-public-actions {
    margin-top: var(--rs-space-lg);
  }
  .rs-c-btn {
    min-height: 2.75rem;
  }
  .rs-c-public-actions > a:not(.rs-c-btn) {
    color: var(--rs-public-on-ink);
  }
}
.rs-c-public-hero__grid {
  display: grid;
  gap: var(--rs-space-xl);
}
.rs-c-public-hero__small {
  margin-top: var(--rs-space-sm);
  color: var(--rs-public-on-ink-muted);
  font-size: var(--rs-text-small);
}
/* Nothing hangs below a band, so the next block follows at the usual gap. */
.rs-c-public > .rs-c-public-hero + * {
  margin-top: var(--rs-marketing-section-gap);
}

/* The audience's goals: one row each under an ink rule, the heading on the
   left and its sentences on the right when wide. */
.rs-c-public-row {
  padding-top: var(--rs-space-md);
  border-top: var(--rs-public-rule);

  > div > p {
    margin-top: var(--rs-space-2xs);
  }
}
.rs-c-public-row + .rs-c-public-row {
  margin-top: var(--rs-space-xl);
}
.rs-c-public-row__note {
  color: var(--rs-color-ink-muted);
  font-size: var(--rs-text-small);
}
@media only screen and (min-width: 64rem) {
  .rs-c-public-row {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    column-gap: var(--rs-space-xl);
    align-items: baseline;

    > div > p:first-child {
      margin-top: 0;
    }
  }
}

/* A section on a grey band, once a page: it breaks the rhythm. */
.rs-c-public > .rs-c-public-grey {
  padding-block: var(--rs-space-xl);
  background-color: var(--rs-color-surface);
}

/* The ink band that closes the page, to the other audience's page. */
.rs-c-public > .rs-c-public-band {
  margin-top: var(--rs-marketing-section-gap);
  padding-block: var(--rs-space-xl);
  background-color: var(--rs-public-ink);
  color: var(--rs-public-on-ink);

  h2 {
    font-size: var(--rs-text-heading-2);
    font-weight: var(--rs-text-weight-bold);
    line-height: var(--rs-text-line-tight);
  }
  h2 + p {
    margin-top: var(--rs-space-2xs);
    color: var(--rs-public-on-ink-muted);
  }
  a:not(.rs-c-btn) {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    color: var(--rs-public-on-ink);
    font-weight: var(--rs-text-weight-bold);
  }
}
.rs-c-public-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--rs-space-sm) var(--rs-space-xl);
}
/* ==== End region: public ==== */

/* ==== Region: content (/help and /blog). Orbit's own articles, from
   internal/content's Markdown (docs/backlog/product-content-layouts.md;
   the owner chose the layouts on 2026-11-17). Help takes layout B, cards
   and a back bar: a grey back bar under the nav, the short answer in a
   grey box, Orbit's screen on a grey panel, and next steps as bordered
   cards on a grey band. The blog takes layout C, ink band and contents:
   its lists open on the public hero band, a post on a plain ink band with
   its byline, the post lists its sections ("On this page") beside the
   text when wide, and every page closes on the public band. Both roots
   also carry rs-c-public. No nesting, so it runs on Safari 15.4. ==== */
.rs-c-help-page,
.rs-c-blog-page {
  --rs-text-line-body: 1.5;
  --rs-text-measure: 30em;
  --rs-content-hairline: 0.0625rem solid var(--rs-color-border);
  /* The blog's contents column, and its lists' date column. */
  --rs-content-side-width: 10em;
}

/* An article's body, from its Markdown: the same type and lists in help
   and the blog. */
.rs-c-content-body > * + * {
  margin-top: var(--rs-space-sm);
}
:is(.rs-c-help-page, .rs-c-blog-page) .rs-c-content-body :is(h2, h3) {
  position: relative;
  font-weight: var(--rs-text-weight-bold);
  line-height: var(--rs-text-line-tight);
  scroll-margin-top: var(--rs-space-md);
}
:is(.rs-c-help-page, .rs-c-blog-page) .rs-c-content-body h2 {
  margin-top: var(--rs-space-lg);
  font-size: var(--rs-text-heading-2);
}
:is(.rs-c-help-page, .rs-c-blog-page) .rs-c-content-body h3 {
  margin-top: var(--rs-space-md);
  font-size: var(--rs-text-heading-3);
}
.rs-c-content-body > :is(h2, h3):first-child {
  margin-top: 0;
}
.rs-c-content-body :is(h2, h3) + * {
  margin-top: var(--rs-space-xs);
}
.rs-c-content-body ul,
.rs-c-content-body ol {
  max-width: var(--rs-text-measure);
  padding-inline-start: var(--rs-space-lg);
}
.rs-c-content-body ul {
  list-style: disc;
}
.rs-c-content-body ol {
  list-style: decimal;
}
.rs-c-content-body li {
  padding-inline-start: var(--rs-space-3xs);
  line-height: var(--rs-text-line-body);
}
.rs-c-content-body li + li {
  margin-top: var(--rs-space-2xs);
}
.rs-c-content-body li::marker {
  font-weight: var(--rs-text-weight-bold);
}
.rs-c-content-body table {
  display: block;
  max-width: var(--rs-text-measure);
  overflow-x: auto;
  border-collapse: collapse;
  text-align: left;
}
.rs-c-content-body th,
.rs-c-content-body td {
  padding: var(--rs-space-xs) var(--rs-space-sm) var(--rs-space-xs) 0;
  border-bottom: var(--rs-content-hairline);
}
.rs-c-content-body thead th {
  border-bottom: var(--rs-public-rule);
  font-weight: var(--rs-text-weight-bold);
}
.rs-c-content-body .rs-c-help-end {
  margin-top: var(--rs-space-lg);
}

/* Help, layout B. */
.rs-c-help-page > .rs-l-content-section {
  margin-top: var(--rs-space-lg);
}
.rs-c-help-page > .rs-c-help-bar + .rs-l-content-section {
  margin-top: var(--rs-space-md);
}
/* The back bar: a grey strip under the nav, the way back and where you are. */
.rs-c-help-bar {
  background-color: var(--rs-color-surface);
}
/* On the links, not the bar: the indent's width is in em. */
.rs-c-help-bar__back,
.rs-c-help-bar__here {
  font-size: var(--rs-text-small);
}
.rs-c-help-bar .rs-u-content-indent {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 var(--rs-space-xs);
}
.rs-c-help-page a.rs-c-help-bar__back {
  display: inline-flex;
  align-items: center;
  gap: var(--rs-space-3xs);
  min-height: 2.75rem;
  color: var(--rs-color-ink);
  font-weight: var(--rs-text-weight-bold);
  text-decoration: none;
}
.rs-c-help-page a.rs-c-help-bar__back:hover {
  text-decoration: underline;
}
.rs-c-help-bar__here {
  color: var(--rs-color-ink-muted);
}
.rs-c-help-bar__here::before {
  content: "/";
  margin-inline-end: var(--rs-space-xs);
  color: var(--rs-color-border);
}
.rs-c-help-page h1.rs-c-help-title {
  font-size: var(--rs-public-display);
  font-weight: var(--rs-text-weight-bold);
  line-height: var(--rs-text-line-tight);
  letter-spacing: -0.02em;
}
.rs-c-help-page p.rs-c-help-lead {
  margin-top: var(--rs-space-sm);
  font-size: var(--rs-text-heading-3);
  line-height: 1.45;
}
/* The short answer: guidance, so a grey box, before the detail. */
.rs-c-help-answer {
  max-width: calc(var(--rs-text-measure) + 2 * var(--rs-space-md));
  margin-top: var(--rs-space-md);
  padding: var(--rs-space-md);
  border-radius: var(--rs-radius-lg);
  background-color: var(--rs-color-surface);
}
.rs-c-help-page p.rs-c-help-answer__label {
  color: var(--rs-color-ink-muted);
  font-size: var(--rs-text-small);
  font-weight: var(--rs-text-weight-bold);
}
.rs-c-help-page .rs-c-help-answer p + p {
  margin-top: var(--rs-space-2xs);
  font-size: var(--rs-text-heading-3);
  line-height: 1.45;
}
.rs-c-help-answer + .rs-c-content-body {
  margin-top: var(--rs-space-lg);
}
/* A section link shows on hover and keyboard focus only. */
.rs-c-help-page a.rs-c-content-anchor {
  margin-inline-start: var(--rs-space-2xs);
  color: var(--rs-color-link);
  text-decoration: none;
  opacity: 0;
}
.rs-c-help-page .rs-c-content-body :is(h2, h3):hover a.rs-c-content-anchor,
.rs-c-help-page a.rs-c-content-anchor:focus-visible {
  opacity: 1;
}
.rs-c-help-page .rs-c-content-body li::marker {
  color: var(--rs-color-primary);
}
.rs-c-help-page .rs-c-content-body blockquote {
  max-width: calc(var(--rs-text-measure) + 2 * var(--rs-space-md));
  padding: var(--rs-space-box-md);
  border-radius: var(--rs-radius-lg);
  background-color: var(--rs-color-surface);
}
/* Orbit's own screen on a grey panel, as the public pages show it. */
.rs-c-help-page .rs-c-content-body figure {
  max-width: calc(var(--rs-text-measure) + 2 * var(--rs-space-md));
  margin-top: var(--rs-space-lg);
  padding: var(--rs-space-md);
  border-radius: var(--rs-radius-lg);
  background-color: var(--rs-color-surface);
}
.rs-c-help-page .rs-c-content-body figure img {
  display: block;
  width: 100%;
  max-width: 24em;
  height: auto;
  margin-inline: auto;
  border-radius: var(--rs-radius-sm);
}
.rs-c-help-page .rs-c-content-body figcaption {
  margin-top: var(--rs-space-xs);
  color: var(--rs-color-ink-muted);
  font-size: var(--rs-text-small);
  text-align: center;
}
/* The grey band at the end: next steps as cards, or a question. */
.rs-c-help-page > .rs-c-help-band {
  margin-top: var(--rs-space-xl);
  padding-block: var(--rs-space-xl);
  background-color: var(--rs-color-surface);
}
.rs-c-help-page .rs-c-help-band h2 {
  font-size: var(--rs-text-heading-2);
  font-weight: var(--rs-text-weight-bold);
  line-height: var(--rs-text-line-tight);
}
.rs-c-help-band h2 + p {
  margin-top: var(--rs-space-2xs);
}
.rs-c-help-cards {
  display: grid;
  gap: var(--rs-space-sm);
  margin-top: var(--rs-space-md);
}
.rs-c-help-page a.rs-c-help-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  column-gap: var(--rs-space-sm);
  height: 100%;
  padding: var(--rs-space-md);
  border: var(--rs-card-border) solid var(--rs-color-border);
  border-radius: var(--rs-radius-lg);
  background-color: var(--rs-color-paper);
  color: var(--rs-color-ink);
  text-decoration: none;
}
.rs-c-help-page a.rs-c-help-card:hover {
  border-color: var(--rs-color-primary);
}
.rs-c-help-card__icon {
  grid-row: span 2;
  font-size: var(--rs-text-heading-2);
  line-height: 1;
}
.rs-c-help-card__title {
  color: var(--rs-color-link);
  font-weight: var(--rs-text-weight-bold);
}
.rs-c-help-card__line {
  margin-top: var(--rs-space-3xs);
  color: var(--rs-color-ink-muted);
  line-height: var(--rs-text-line-body);
}
.rs-c-help-cards + .rs-c-help-ask {
  margin-top: var(--rs-space-lg);
}
/* The index: each topic a card of its articles, two across when wide. */
.rs-c-help-topics {
  display: grid;
  align-items: start;
  gap: var(--rs-space-md);
  margin-top: var(--rs-space-lg);
}
.rs-c-help-topic {
  padding: var(--rs-space-md) var(--rs-space-md) var(--rs-space-2xs);
  border: var(--rs-card-border) solid var(--rs-color-border);
  border-radius: var(--rs-radius-lg);
}
.rs-c-help-page .rs-c-help-topic h2 {
  font-size: var(--rs-text-heading-2);
  font-weight: var(--rs-text-weight-bold);
  line-height: var(--rs-text-line-tight);
}
.rs-c-help-topic ul {
  margin-top: var(--rs-space-xs);
}
.rs-c-help-topic li {
  border-top: var(--rs-content-hairline);
}
.rs-c-help-page .rs-c-help-topic a {
  display: flex;
  flex-direction: column;
  padding-block: var(--rs-space-sm);
  color: var(--rs-color-ink);
  text-decoration: none;
}
.rs-c-help-topic__title {
  color: var(--rs-color-link);
  font-weight: var(--rs-text-weight-bold);
}
.rs-c-help-topic a:hover .rs-c-help-topic__title {
  text-decoration: underline;
}
.rs-c-help-topic__line {
  margin-top: var(--rs-space-3xs);
  color: var(--rs-color-ink-muted);
  line-height: var(--rs-text-line-body);
}
@media only screen and (min-width: 64rem) {
  .rs-c-help-cards,
  .rs-c-help-topics {
    grid-template-columns: 1fr 1fr;
  }
}

/* The blog, layout C. Its lists open on the public hero band, which holds
   the categories. */
.rs-c-blog-page > .rs-c-public-hero + *,
.rs-c-blog-page > .rs-c-blog-band + * {
  margin-top: var(--rs-space-lg);
}
.rs-c-blog-cats ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--rs-space-md);
  margin-top: var(--rs-space-md);
}
.rs-c-blog-page .rs-c-blog-cats a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--rs-public-on-ink-muted);
  font-weight: var(--rs-text-weight-medium);
  text-decoration: none;
}
.rs-c-blog-page .rs-c-blog-cats a:hover,
.rs-c-blog-page .rs-c-blog-cats a[aria-current="page"] {
  color: var(--rs-public-on-ink);
}
.rs-c-blog-cats a[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: var(--rs-space-3xs);
  left: 0;
  width: 100%;
  height: 0.12em;
  border-radius: var(--rs-radius-sm);
  background-color: currentColor;
}
/* Each post a row under an ink rule: the whole row is its link, with an
   arrow at its end; the date and category beside the title when wide. */
.rs-c-blog-rows {
  border-top: var(--rs-public-rule);
}
.rs-c-blog-rows > li {
  border-bottom: var(--rs-content-hairline);
}
.rs-c-blog-rows > li:last-child {
  border-bottom: 0;
}
.rs-c-blog-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: var(--rs-space-md);
  padding-block: var(--rs-space-md);
}
.rs-c-blog-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--rs-space-3xs) var(--rs-space-md);
  color: var(--rs-color-ink-muted);
  font-size: var(--rs-text-small);
}
.rs-c-blog-page a.rs-c-blog-row__cat {
  position: relative;
  z-index: 1;
  color: var(--rs-color-link);
  font-weight: var(--rs-text-weight-bold);
  text-decoration: none;
}
.rs-c-blog-page a.rs-c-blog-row__cat:hover {
  text-decoration: underline;
}
.rs-c-blog-row__text {
  grid-column: 1;
}
.rs-c-blog-page .rs-c-blog-row h2 {
  margin-top: var(--rs-space-3xs);
  font-size: var(--rs-text-heading-2);
  font-weight: var(--rs-text-weight-bold);
  line-height: var(--rs-text-line-tight);
}
.rs-c-blog-page .rs-c-blog-row h2 a {
  color: var(--rs-color-ink);
  text-decoration: none;
}
.rs-c-blog-row h2 a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.rs-c-blog-page .rs-c-blog-row:hover h2 a {
  text-decoration: underline;
}
.rs-c-blog-page .rs-c-blog-row h2 + p {
  margin-top: var(--rs-space-2xs);
  color: var(--rs-color-ink-muted);
}
.rs-c-blog-row__go {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: var(--rs-color-link);
  font-size: var(--rs-text-heading-3);
  font-weight: var(--rs-text-weight-bold);
}
@media only screen and (min-width: 64rem) {
  .rs-c-blog-row {
    grid-template-columns: var(--rs-content-side-width) minmax(0, 1fr) auto;
    align-items: baseline;
    column-gap: var(--rs-space-xl);
  }
  .rs-c-blog-row__meta {
    flex-direction: column;
  }
  .rs-c-blog-row__text {
    grid-column: 2;
  }
  .rs-c-blog-row__go {
    grid-column: 3;
    grid-row: 1;
    align-self: center;
  }
  .rs-c-blog-page .rs-c-blog-row h2 {
    margin-top: 0;
  }
}
/* A post's band: plain ink, shorter than a list's, with the way back, the
   category, the title and the byline. */
.rs-c-blog-page > .rs-c-blog-band {
  padding-block: var(--rs-space-md) var(--rs-space-lg);
  background-color: var(--rs-public-ink);
  color: var(--rs-public-on-ink);
}
.rs-c-blog-page a.rs-c-blog-band__back {
  display: inline-flex;
  align-items: center;
  gap: var(--rs-space-3xs);
  min-height: 2.75rem;
  color: var(--rs-public-on-ink);
  font-size: var(--rs-text-small);
  font-weight: var(--rs-text-weight-bold);
  text-decoration: none;
}
.rs-c-blog-page a.rs-c-blog-band__back:hover,
.rs-c-blog-page .rs-c-blog-band__kicker a:hover {
  text-decoration: underline;
}
.rs-c-blog-page p.rs-c-blog-band__kicker {
  margin-top: var(--rs-space-xs);
  color: var(--rs-public-on-ink-muted);
  font-size: var(--rs-text-small);
  font-weight: var(--rs-text-weight-bold);
}
.rs-c-blog-page .rs-c-blog-band__kicker a {
  color: inherit;
  text-decoration: none;
}
.rs-c-blog-page .rs-c-blog-band h1 {
  max-width: 15em;
  margin-top: var(--rs-space-3xs);
  font-size: var(--rs-public-display);
  font-weight: var(--rs-text-weight-bold);
  line-height: var(--rs-text-line-tight);
  letter-spacing: -0.02em;
}
.rs-c-blog-page p.rs-c-blog-band__meta {
  margin-top: var(--rs-space-sm);
  color: var(--rs-public-on-ink-muted);
  font-size: var(--rs-text-small);
}
/* "On this page", then the post: a grey box on a phone; when wide, a side
   column that stays in view. */
.rs-c-blog-layout {
  display: grid;
  gap: var(--rs-space-lg) var(--rs-space-xl);
}
.rs-c-blog-toc {
  padding: var(--rs-space-sm) var(--rs-space-md);
  border-radius: var(--rs-radius-lg);
  background-color: var(--rs-color-surface);
  font-size: var(--rs-text-small);
}
.rs-c-blog-page p.rs-c-blog-toc__heading {
  color: var(--rs-color-ink-muted);
  font-weight: var(--rs-text-weight-bold);
}
.rs-c-blog-toc ol {
  margin-top: var(--rs-space-3xs);
}
.rs-c-blog-page .rs-c-blog-toc a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: var(--rs-text-weight-medium);
  text-decoration: none;
}
.rs-c-blog-page .rs-c-blog-toc a:hover {
  text-decoration: underline;
}
.rs-c-blog-toc li + li {
  border-top: var(--rs-content-hairline);
}
/* The post's first paragraph is its lead. */
.rs-c-blog-page .rs-c-content-body > p:first-child {
  font-size: var(--rs-text-heading-3);
  line-height: 1.45;
}
.rs-c-blog-page .rs-c-content-body li::marker {
  color: var(--rs-color-ink-muted);
}
.rs-c-blog-page .rs-c-content-body blockquote {
  max-width: var(--rs-text-measure);
  padding: var(--rs-space-box-md);
  border-left: var(--rs-card-border) solid var(--rs-color-primary);
  border-radius: var(--rs-radius-sm);
  background-color: var(--rs-color-surface);
}
.rs-c-blog-page .rs-c-content-body figure {
  max-width: min(100%, 24em);
  margin-top: var(--rs-space-lg);
  margin-bottom: var(--rs-space-md);
}
.rs-c-blog-page .rs-c-content-body figure img {
  display: block;
  width: 100%;
  height: auto;
  border: var(--rs-content-hairline);
  border-radius: var(--rs-radius-lg);
}
.rs-c-blog-page .rs-c-content-body figcaption {
  margin-top: var(--rs-space-2xs);
  color: var(--rs-color-ink-muted);
  font-size: var(--rs-text-small);
}
/* A section link: hidden on a phone, where the contents do its job; in the
   margin when wide. */
.rs-c-blog-page a.rs-c-content-anchor {
  display: none;
}
/* Read next, under an ink rule: rows of links with an arrow. */
.rs-c-blog-related {
  margin-top: var(--rs-space-xl);
  padding-top: var(--rs-space-md);
  border-top: var(--rs-public-rule);
}
.rs-c-blog-page .rs-c-blog-related h2 {
  font-size: var(--rs-public-subhead);
  font-weight: var(--rs-text-weight-bold);
  line-height: var(--rs-text-line-tight);
}
.rs-c-blog-links {
  margin-top: var(--rs-space-2xs);
}
.rs-c-blog-links > li + li {
  border-top: var(--rs-content-hairline);
}
.rs-c-blog-page .rs-c-blog-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--rs-space-md);
  padding-block: var(--rs-space-sm);
  color: var(--rs-color-ink);
  text-decoration: none;
}
.rs-c-blog-links__text {
  display: flex;
  flex-direction: column;
}
.rs-c-blog-links__title {
  color: var(--rs-color-link);
  font-weight: var(--rs-text-weight-bold);
}
.rs-c-blog-links a:hover .rs-c-blog-links__title {
  text-decoration: underline;
}
.rs-c-blog-links__line {
  margin-top: var(--rs-space-3xs);
  color: var(--rs-color-ink-muted);
  line-height: var(--rs-text-line-body);
}
.rs-c-blog-links__go {
  flex-shrink: 0;
  color: var(--rs-color-link);
  font-size: var(--rs-text-heading-3);
  font-weight: var(--rs-text-weight-bold);
}
@media only screen and (min-width: 64rem) {
  .rs-c-blog-layout--contents {
    grid-template-columns: var(--rs-content-side-width) minmax(0, 1fr);
    align-items: start;
  }
  .rs-c-blog-toc {
    position: sticky;
    top: var(--rs-space-md);
    padding: 0;
    border-top: var(--rs-public-rule);
    border-radius: 0;
    background-color: transparent;
  }
  .rs-c-blog-page p.rs-c-blog-toc__heading {
    padding-top: var(--rs-space-xs);
  }
  .rs-c-blog-toc li + li {
    border-top: 0;
  }
  .rs-c-blog-page .rs-c-blog-toc a {
    min-height: 0;
    padding-block: var(--rs-space-3xs);
  }
  .rs-c-blog-page a.rs-c-content-anchor {
    position: absolute;
    top: 0;
    right: 100%;
    display: block;
    padding-inline-end: var(--rs-space-2xs);
    color: var(--rs-color-border);
    text-decoration: none;
  }
  .rs-c-blog-page a.rs-c-content-anchor:hover,
  .rs-c-blog-page a.rs-c-content-anchor:focus-visible {
    color: var(--rs-color-link);
  }
}
/* ==== End region: content ==== */

/* The contact page's form: each field as wide as the card, and a message
   box a few lines tall. The course topic's own fields start a little apart
   from the topic, under their help. */
form.rs-c-contact-form {
  :is(input, select, textarea) {
    width: 100%;
  }
  .rs-c-contact-form__course-help {
    margin-top: var(--rs-space-xs);
  }
  textarea {
    min-height: 9em;
    border: 1px solid var(--rs-color-border);
    background-color: var(--rs-color-paper);
    font: inherit;
  }
}

/* The testimonial page's name and box (docs/backlog/product-testimonials.md):
   as wide as the card, framed like the contact page's fields. The box
   grows with what is typed, up to most of the screen, where the browser
   can (field-sizing); elsewhere it stays 12 lines tall and scrolls. Plain
   selectors, not nested ones: Chrome before 120 and Safari before 17.2
   skip a nested rule that starts with an element name. */
.rs-c-form-card.rs-c-testimonial {
  width: min(100%, 44rem);
}
form.rs-c-testimonial-form input,
form.rs-c-testimonial-form textarea {
  width: 100%;
  border: 1px solid var(--rs-color-border);
  background-color: var(--rs-color-paper);
  font: inherit;
}
form.rs-c-testimonial-form textarea {
  min-height: 12lh;
  max-height: 70vh;
}
@supports (field-sizing: content) {
  form.rs-c-testimonial-form textarea {
    field-sizing: content;
  }
}
/* The inbox on Tools: a long name, address or account ID wraps within
   its card rather than widening the page. */
.rs-c-testimonial-inbox > li {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Tables */

table.rs-c-table {
  width: 100%;
  min-width: 44rem;
  border-collapse: collapse;
  background-color: var(--rs-color-paper);
}
@media only screen and (max-width: 48rem) {
  table.rs-c-table {
    min-width: 34rem;
  }
}

table.rs-c-table th.rs-u-mobile-remove,
table.rs-c-table td.rs-u-mobile-remove {
  display: none;
}
@media only screen and (min-width: 40rem) {
  table.rs-c-table th.rs-u-mobile-remove,
  table.rs-c-table td.rs-u-mobile-remove {
    display: table-cell;
  }
}

table.rs-c-table th,
table.rs-c-table td {
  border: 1px solid var(--rs-color-border);
  padding: var(--rs-space-xs);
  text-align: left;
  vertical-align: top;
}
/* A list table whose rows stay one line each: no cell wraps, and the
   table scrolls sideways in its wrapper instead (the User directory, All
   courses). */
table.rs-c-table.rs-c-table--one-line th,
table.rs-c-table.rs-c-table--one-line td {
  white-space: nowrap;
  vertical-align: middle;
  padding-inline: var(--rs-space-2xs);
}
table.rs-c-table thead th {
  background-color: var(--rs-color-surface);
  font-weight: var(--rs-text-weight-bold);
}
table.rs-c-table tbody th {
  font-weight: var(--rs-text-weight-bold);
}

/* Custom domains */

.rs-c-domain-status {
  display: inline-flex;
  align-items: center;
  gap: var(--rs-space-2xs);
  font-weight: var(--rs-text-weight-bold);
}
.rs-c-domain-status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4em;
  height: 1.4em;
  border-radius: 50%;
  background: var(--rs-color-pending);
  color: var(--rs-color-pending-ink);
}
.rs-c-domain-status[data-domain-status="active"] .rs-c-domain-status-icon,
.rs-c-domain-status[data-domain-https-state="healthy"] .rs-c-domain-status-icon {
  background: var(--rs-color-success);
  color: var(--rs-color-success-ink);
}
.rs-c-domain-status[data-domain-status="failed"] .rs-c-domain-status-icon,
.rs-c-domain-status[data-domain-https-state="failed"] .rs-c-domain-status-icon {
  background: var(--rs-color-danger);
  color: var(--rs-color-danger-ink);
}
.rs-c-domain-help {
  font-size: var(--rs-text-small);
  line-height: var(--rs-text-line-body);
  margin-top: var(--rs-space-xs);
}
.rs-c-table-scroll {
  overflow-x: auto;
  margin-block: 1em;
}
.rs-c-domain-dns-table code {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.rs-c-domain-dns-table .rs-c-btn {
  display: block;
  margin-top: var(--rs-space-2xs);
}
.rs-c-domain-pair {
  display: flex;
  align-items: baseline;
  gap: var(--rs-space-xs);
}
.rs-c-domain-pair input[type="checkbox"] {
  width: auto;
  flex: none;
}
.rs-js-domain-check button {
  display: inline-flex;
  align-items: center;
  gap: var(--rs-space-2xs);
}
.rs-js-domain-check[aria-busy="true"] button:disabled {
  cursor: wait;
}
dialog.rs-c-dialog:has(.rs-c-table-scroll),
dialog.rs-c-dialog:has(.rs-js-domain-check) {
  top: 50%;
  padding: clamp(1rem, 3vw, 2em);
}
[data-domain-visit][hidden] {
  display: none !important;
}
@media (max-width: 40rem) {
  .rs-c-domain-dns-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .rs-c-domain-dns-table,
  .rs-c-domain-dns-table tbody,
  .rs-c-domain-dns-table tr {
    display: block;
    width: 100%;
  }
  .rs-c-domain-dns-table tr {
    border: 1px solid var(--rs-dialog-border);
    border-radius: var(--rs-radius-lg);
  }
  .rs-c-domain-dns-table th,
  .rs-c-domain-dns-table td {
    display: block;
    width: auto;
    white-space: normal;
    border: 0;
    padding: var(--rs-space-xs) var(--rs-space-sm);
  }
  .rs-c-domain-dns-table [data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: var(--rs-text-small);
    font-weight: var(--rs-text-weight-bold);
    margin-bottom: var(--rs-space-3xs);
  }
}

/* Builder loop: editor */

.rs-c-builder-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--rs-space-md);
  margin-block: var(--rs-space-md);
  padding: 0;
  list-style: none;
}
/* A progress strip, not tabs: a rule above each step, blue for the current one. */
.rs-c-builder-steps li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--rs-space-2xs);
  padding-top: var(--rs-space-xs);
  border-top: 3px solid var(--rs-color-border);
}
.rs-c-builder-steps li[aria-current="step"] {
  border-top-color: var(--rs-color-primary);
}
.rs-c-builder-steps__title {
  font-weight: var(--rs-text-weight-bold);
}
.rs-c-builder-steps small {
  font-size: var(--rs-text-small);
  color: var(--rs-color-ink-muted);
}
.rs-c-starter-prompt {
  white-space: pre-wrap;
  font: inherit;
  margin-block: var(--rs-space-md);
  padding: var(--rs-space-box-md);
  background-color: var(--rs-color-surface);
  border-radius: var(--rs-radius-lg);
}
/* An owner's words and Orbit's reply on the platform owner's chat session
   page: their own line breaks kept, and a long word or link wraps on a
   phone rather than widening the page. */
.rs-c-chat-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
/* The platform owner's chat sessions pages: section headings that read as
   headings, steps as cards (ul.rs-c-card-list's look, on an ordered list),
   and short cells (a week, a time, an email, a cost) kept on one line. */
.rs-orbit-app .rs-c-chat-audit {
  h2 {
    font-size: var(--rs-text-heading-2);
    font-weight: var(--rs-text-weight-bold);
    line-height: var(--rs-text-line-tight);
    margin-block: var(--rs-space-lg) var(--rs-space-sm);
  }
  h3 {
    font-size: var(--rs-text-heading-3);
    font-weight: var(--rs-text-weight-bold);
    margin-block: var(--rs-space-md) 0;
  }
  ol.rs-c-card-list {
    display: grid;
    gap: var(--rs-space-md);
    margin-top: var(--rs-space-md);
    padding: 0;
    list-style: none;
  }
  ol.rs-c-card-list > li {
    padding: 0 var(--rs-space-md) var(--rs-space-sm);
    border: 1px solid var(--rs-color-border);
    border-radius: var(--rs-radius-lg);
  }
  ol.rs-c-card-list > li > dl.rs-c-data-list {
    margin-top: var(--rs-space-sm);
  }
  .rs-c-chat-audit__nowrap,
  .rs-c-chat-audit__nowrap a {
    white-space: nowrap;
    overflow-wrap: normal;
  }
}
.rs-c-editor-status {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--rs-space-xs);
  min-width: 0;
}
.rs-c-status[hidden] {
  display: none;
}
.rs-c-editor-feedback {
  font-size: var(--rs-text-small);
  color: var(--rs-color-ink-muted);
}
.rs-c-editor-feedback:empty {
  display: none;
}
.rs-c-editor-feedback[role="alert"] {
  color: var(--rs-color-danger-ink);
}
.rs-c-editor-preview-size {
  flex-wrap: nowrap;
  margin-left: auto;
}

/* Builder loop: My site */

.rs-c-site-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--rs-space-xs);
  margin-bottom: var(--rs-space-md);
}
.rs-c-builder-site-card {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  align-items: center;
  gap: var(--rs-space-lg);
  padding: var(--rs-space-lg);
  border: 1px solid var(--rs-color-border);
  border-radius: var(--rs-radius-lg);
}
.rs-c-builder-site-preview {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--rs-space-2xs);
}
.rs-c-builder-site-preview iframe,
.rs-c-safe-previews iframe {
  pointer-events: none;
}
.rs-c-builder-site-preview__caption {
  font-size: var(--rs-text-small);
  color: var(--rs-color-ink-muted);
}
/* The site's stored 16:9 desktop picture, in a device frame as wide as
   its column: the phone frame's border and corners, even on every side
   (owner, 2026-11-10). The picture area itself stays 16:9 (content-box). */
.rs-c-builder-site-picture,
.rs-c-preview-placeholder {
  box-sizing: content-box;
  width: calc(100% - (2 * var(--rs-preview-desktop-frame-border)));
  height: auto;
  aspect-ratio: 16 / 9;
  border: var(--rs-preview-desktop-frame-border) solid var(--rs-preview-frame);
  border-radius: var(--rs-preview-radius);
}
.rs-c-builder-site-picture {
  display: block;
  background-color: var(--rs-color-paper);
  object-fit: cover;
  object-position: top;
}
/* Before the first publish: the same frame, with a note inside. */
.rs-c-preview-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--rs-space-xs);
  padding: 0;
  background-color: var(--rs-color-surface);
  color: var(--rs-color-ink-muted);
  text-align: center;

  svg {
    width: var(--rs-space-xl);
    height: var(--rs-space-xl);
  }
  small {
    padding-inline: var(--rs-space-sm);
    font-size: var(--rs-text-small);
    line-height: var(--rs-text-line-tight);
  }
}
.rs-c-builder-site-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--rs-space-xs);
}
/* Sites (the platform owner's My sites): one Home-style card per site,
   stacked. */
.rs-c-platform-sites {
  display: grid;
  gap: var(--rs-space-md);
  margin: var(--rs-space-md) 0 0;
  padding: 0;
  list-style: none;
}
/* A draft has no picture yet, so its frame stays small: a narrow column
   beside the words, not Home's three fifths (owner, 2026-11-10). */
.rs-c-platform-sites .rs-c-builder-site-card {
  grid-template-columns: minmax(0, 16rem) minmax(0, 1fr);
}
@media (max-width: 60rem) {
  .rs-c-platform-sites .rs-c-builder-site-card {
    grid-template-columns: minmax(0, 1fr);
  }
  .rs-c-platform-sites .rs-c-builder-site-preview {
    max-inline-size: 16rem;
  }
}
/* The Edit page's summary: its lines and Open editor, in one column.
   It shows no picture of the site; Home's card has one. */
.rs-c-edit-overview {
  grid-template-columns: minmax(0, 1fr);
}

/* The Edit page's Pages (docs/backlog/site-edit-overview-pages.md): one
   row per page, its name and address, then Edit this page; the button
   goes under the name when the row is narrow. */
.rs-c-edit-overview-pages {
  margin-block-start: var(--rs-space-lg);
}
.rs-c-edit-overview-pages__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.rs-c-edit-overview-pages__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--rs-space-2xs) var(--rs-space-sm);
  padding-block: var(--rs-space-xs);
  border-block-end: 1px solid var(--rs-color-border);
}
.rs-c-edit-overview-pages__name {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.rs-c-edit-overview-pages__path {
  color: var(--rs-color-ink-muted);
  font-size: var(--rs-text-small);
  overflow-wrap: anywhere;
}
/* Status lines under the site's address: one plain sentence each, with a
   ✅ when done or a link to the next step. */
.rs-c-site-checks {
  display: flex;
  flex-direction: column;
  gap: var(--rs-space-2xs);
  overflow-wrap: anywhere;
}
article.rs-c-detail-surface .rs-c-builder-site-content .rs-c-detail-surface__heading {
  margin: 0;
}
.rs-c-builder-site-content > .rs-c-actions {
  margin-top: var(--rs-space-xs);
}
.rs-c-builder-site-url {
  margin: 0;
  overflow-wrap: anywhere;
}
/* An icon alone in a button, such as Copy beside Home's address: as tall
   as the line, its sides as wide as its top. It stays in the line, one
   space after the text, as an emoji does in a button (owner, 2026-11-15). */
button.rs-c-btn.rs-c-btn--icon {
  display: inline-flex;
  padding-inline: var(--rs-space-2xs);
  vertical-align: baseline;
}

/* Course link: a read-only field (selectable when the clipboard refuses) and
   its copy button, then whether the link works now. */
.rs-c-course-link {
  display: grid;
  gap: var(--rs-space-xs);
}
.rs-c-course-link__share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--rs-space-xs);
}
.rs-c-course-link__field {
  flex: 1 1 20ch;
  min-width: 0;
  padding: var(--rs-space-box-sm);
  border: 1px solid var(--rs-color-border);
  border-radius: var(--rs-radius-sm);
  background-color: var(--rs-color-paper);
  font-family: var(--rs-text-mono);
  font-size: var(--rs-text-code);
}
.rs-c-course-link .rs-c-help {
  margin: 0;
}

.rs-c-next-step {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--rs-space-xs) var(--rs-space-md);
  margin-top: var(--rs-space-md);
  padding: var(--rs-space-md) var(--rs-space-lg);
  background-color: var(--rs-color-surface);
  border-left: var(--rs-space-3xs) solid var(--rs-color-primary);
  border-radius: var(--rs-radius-lg);
}
.rs-c-next-step__title {
  font-size: var(--rs-text-small);
  font-weight: var(--rs-text-weight-bold);
  color: var(--rs-color-link);
}
/* The text takes the room beside the action, which wraps below only when
   the text would get narrower than 16em. */
.rs-c-next-step__body {
  flex: 1 1 16em;
}
.rs-c-next-step__body p {
  font-weight: var(--rs-text-weight-medium);
}

/* The nav's blue dot before Home while Home has a notice to act on, and
   Home's sections, each an anchor: #preview, #notifications, #visitors,
   #inbox, #site-settings (owner, 2026-11-13). The dot's link is larger
   than the dot, so it's easy to tap. */
.rs-c-nav-home-item {
  display: flex;
  align-items: center;
}
.rs-c-nav-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  min-height: 1.5rem;
}
.rs-c-nav-dot::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: var(--rs-color-primary);
}
@media (forced-colors: active) {
  .rs-c-nav-dot::before {
    background-color: LinkText;
  }
}
.rs-c-home-section {
  scroll-margin-top: var(--rs-space-lg);
}

/* Home's notices (owner, 2026-11-13): the first in full, the rest folded
   under "Show N more", whose words become "Show fewer" while it's open. */
.rs-c-home-notices__more {
  margin-top: var(--rs-space-xs);
}
/* Each folded notice keeps the notices' gap, the one-line ones too. */
.rs-c-home-notices__more > * + * {
  margin-top: var(--rs-space-md);
}
.rs-c-home-notices__more > summary {
  width: fit-content;
  cursor: pointer;
  font-weight: var(--rs-text-weight-medium);
  color: var(--rs-color-link);
}
.rs-c-home-notices__more[open] .rs-c-home-notices__show,
.rs-c-home-notices__more:not([open]) .rs-c-home-notices__hide {
  display: none;
}

.rs-c-dashboard-columns {
  margin-top: var(--rs-space-md);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--rs-space-md);
}
.rs-c-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--rs-space-xs);
  padding: var(--rs-space-md) var(--rs-space-lg);
  border: 1px solid var(--rs-color-border);
  border-radius: var(--rs-radius-lg);

  > .rs-c-actions {
    margin-top: 0;
  }
  dl.rs-c-data-list {
    width: 100%;
    margin-top: 0;
  }
}
.rs-c-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--rs-space-xs);
  width: 100%;
}
.rs-c-panel__title {
  font-size: var(--rs-text-heading-3);
  font-weight: var(--rs-text-weight-bold);
  line-height: var(--rs-text-line-tight);
}
.rs-c-panel__footer {
  width: 100%;
  padding-top: var(--rs-space-xs);
  border-top: 1px solid var(--rs-color-border);

  h3 {
    margin-top: 0;
  }
}
.rs-c-stat {
  display: flex;
  align-items: baseline;
  gap: var(--rs-space-2xs);
}
.rs-c-stat__value {
  font-size: var(--rs-text-heading-1);
  font-weight: var(--rs-text-weight-bold);
  line-height: 1;
}
.rs-c-stat__label {
  color: var(--rs-color-ink-muted);
}

/* A row of headline numbers: label above, number below. */
dl.rs-c-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(6em, 1fr));
  gap: var(--rs-space-md);
  margin-top: var(--rs-space-md);

  dt {
    color: var(--rs-color-ink-muted);
  }
  dd {
    font-size: var(--rs-text-heading-1);
    font-weight: var(--rs-text-weight-bold);
    line-height: 1;
  }
}

.rs-c-create-site {
  width: min(100%, 24rem);
  text-align: left;

  .rs-c-actions {
    margin-top: var(--rs-space-xs);
  }
  .rs-c-actions .rs-c-btn {
    width: 100%;
    justify-content: center;
  }
  > .rs-c-flash {
    margin: 0 0 var(--rs-space-xs);
  }
}
.rs-c-create-site [data-site-link-preview] {
  overflow-wrap: anywhere;
  font-size: var(--rs-text-small);
  color: var(--rs-color-ink-muted);
}

/* Builder loop: publish result */

/* A centred column as wide as the phone and desktop previews side by side,
   or the whole content width when they don't fit. The flash and the next
   step span it, so their edges line up with the previews. */
.rs-c-publish-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--rs-space-xs);
  width: min(100%, var(--rs-preview-pair-width));
  margin-inline: auto;
  text-align: center;

  > p {
    max-width: var(--rs-text-measure);
    line-height: var(--rs-text-line-body);
  }
  .rs-c-actions {
    justify-content: center;
  }
  > .rs-c-next-step {
    align-self: stretch;
    text-align: start;
  }
}
body.rs-orbit-app main .rs-c-publish-result h1 {
  font-size: 2.89em;
  font-weight: var(--rs-text-weight-bold);
  overflow-wrap: anywhere;
}
body.rs-orbit-app main .rs-c-publish-result__address {
  font-size: var(--rs-text-heading-3);
  font-weight: var(--rs-text-weight-medium);
  overflow-wrap: anywhere;
}
.rs-c-safe-previews {
  max-width: 100%;
  overflow: hidden;
}

/* Legal pages (/terms, /privacy): plain reading sections rendered from
   docs/legal/v1. Lists keep their bullets, which preflight removes. */
.rs-c-legal {
  h2 {
    font-size: var(--rs-text-heading-2);
    font-weight: var(--rs-text-weight-bold);
    line-height: var(--rs-text-line-tight);
    text-wrap: balance;
    margin-top: var(--rs-space-xl);
    margin-bottom: var(--rs-space-2xs);
  }
  > :first-child {
    margin-top: var(--rs-space-md);
  }
  p,
  ul,
  blockquote {
    margin-top: var(--rs-space-xs);
  }
  blockquote {
    padding: var(--rs-space-box-md);
    border-radius: var(--rs-radius-lg);
    background-color: var(--rs-color-surface);
  }
}
:is(.rs-c-legal, .rs-c-legal-draft) ul {
  list-style: disc;
  padding-inline-start: var(--rs-space-lg);

  li {
    line-height: var(--rs-text-line-body);
    max-width: var(--rs-text-measure);
  }
  li + li {
    margin-top: var(--rs-space-3xs);
  }
}
.rs-c-legal-draft ul {
  margin-top: var(--rs-space-2xs);
}

/* Contained form, e.g. Create account */

.rs-c-form-card {
  width: min(100%, 32rem);
  padding: var(--rs-space-lg);
  border: var(--rs-card-border) solid var(--rs-color-border);
  border-radius: var(--rs-radius-lg);
}
.rs-c-form-card--centered {
  margin: var(--rs-space-lg) auto 0;
}

/* The public pages' form layout (owner, 2026-11-15): a short
   introduction beside a form card, one under the other on a phone. The
   contact page and the sign-up page use it. */
.rs-c-public-split {
  display: grid;
  gap: var(--rs-space-xl);
  align-items: start;
  margin-block: var(--rs-space-lg);

  > .rs-c-form-card {
    width: 100%;
  }
}
@media only screen and (min-width: 56rem) {
  .rs-c-public-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  }
}
body.rs-orbit-app main .rs-c-public-split__intro h1 {
  margin: 0 0 var(--rs-space-xs);
  font-size: var(--rs-public-display, var(--rs-text-heading-1));
  line-height: var(--rs-text-line-tight);
}
.rs-c-public-split__intro > p {
  max-width: 30em;
  margin: 0;
  color: var(--rs-color-ink-muted);
}
ul.rs-c-contact__topics {
  display: grid;
  gap: var(--rs-space-sm);
  margin: var(--rs-space-lg) 0 0;
  padding: 0;
  list-style: none;
}
body.rs-orbit-app main ul.rs-c-contact__topics {
  a {
    display: flex;
    align-items: center;
    gap: var(--rs-space-sm);
    color: var(--rs-color-ink);
    font-weight: var(--rs-text-weight-bold);
    text-decoration: none;
  }
  a:hover > span:last-child,
  a[aria-current="true"] > span:last-child {
    text-decoration: underline;
  }
}
/* The sign-up page's list of what the trial gives: shown beside the form
   when wide, left off on a phone so the form comes first. */
ul.rs-c-public-split__points {
  display: none;
  gap: var(--rs-space-sm);
  margin: var(--rs-space-lg) 0 0;
  padding: 0;
  list-style: none;

  > li {
    display: flex;
    align-items: center;
    gap: var(--rs-space-sm);
    font-weight: var(--rs-text-weight-bold);
  }
}
@media only screen and (min-width: 56rem) {
  ul.rs-c-public-split__points {
    display: grid;
  }
}
:is(.rs-c-public-split__icon, .rs-c-contact__topic-icon) {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.4em;
  height: 2.4em;
  border-radius: 50%;
  background-color: var(--rs-color-surface);
}
body.rs-orbit-app main .rs-c-form-card__title {
  font-size: var(--rs-text-heading-2);
  font-weight: var(--rs-text-weight-bold);
  margin-bottom: var(--rs-space-2xs);
}
.rs-c-form-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--rs-space-xs);
  margin-top: var(--rs-space-md);
  padding-top: var(--rs-space-md);
  border-top: 1px solid var(--rs-color-border);
}

/* Home keeps one column (the picture, then the site's lines; Visitors,
   then Inbox) until the screen is wide enough for two at the large type
   (owner, 2026-11-14). */
@media (max-width: 80rem) {
  .rs-c-builder-site-card,
  .rs-c-dashboard-columns {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* On a phone, the card's buttons each take the full width. */
@media (max-width: 40rem) {
  .rs-c-builder-site-content > .rs-c-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .rs-c-builder-site-content > .rs-c-actions > form,
  .rs-c-builder-site-content > .rs-c-actions .rs-c-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 60rem) {
  .rs-c-builder-steps {
    grid-template-columns: minmax(0, 1fr);
  }
  .rs-c-builder-site-card,
  .rs-c-next-step,
  .rs-c-panel,
  .rs-c-form-card {
    padding: var(--rs-space-md);
  }
  .rs-c-builder-steps {
    gap: var(--rs-space-xs);
  }
  .rs-c-builder-steps li {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--rs-space-2xs);
  }
  .rs-c-safe-previews .rs-c-published-preview--desktop {
    display: none;
  }
}

/* Dev tray: local development only (`make dev`; see ComponentDevTray). A
   round button in the bottom-left corner opens the pages the site never
   links to. Ink on paper inverted, so it never reads as part of the product.
   The edge is in rem because it is anchored to the viewport. */
.rs-c-dev-tray {
  --rs-dev-tray-bg: var(--rs-color-ink);
  --rs-dev-tray-ink: var(--rs-color-paper);
  --rs-dev-tray-ink-muted: color-mix(in srgb, var(--rs-color-paper) 70%, var(--rs-color-ink));
  --rs-dev-tray-hover: color-mix(in srgb, var(--rs-color-paper) 14%, var(--rs-color-ink));
  --rs-dev-tray-edge: 1rem;
  --rs-dev-tray-toggle-size: 2.75rem;
  font-size: var(--rs-text-small);
}
.rs-c-dev-tray__toggle {
  position: fixed;
  bottom: var(--rs-dev-tray-edge);
  left: var(--rs-dev-tray-edge);
  z-index: 1200; /* above the full-screen editor */
  display: grid;
  place-items: center;
  width: var(--rs-dev-tray-toggle-size);
  height: var(--rs-dev-tray-toggle-size);
  border-radius: var(--rs-radius-pill);
  background-color: var(--rs-dev-tray-bg);
  color: var(--rs-dev-tray-ink);
  box-shadow: var(--rs-dialog-shadow);
  font-size: 1.38em;
  cursor: pointer;
}
@media (prefers-reduced-motion: no-preference) {
  .rs-c-dev-tray__toggle {
    transition: transform 100ms ease;
  }
  .rs-c-dev-tray__toggle:hover {
    transform: scale(1.08);
  }
}
.rs-c-dev-tray__panel {
  inset: auto auto calc(var(--rs-dev-tray-edge) + var(--rs-dev-tray-toggle-size) + var(--rs-space-xs)) var(--rs-dev-tray-edge);
  margin: 0;
  width: min(22em, 100vw - 2 * var(--rs-dev-tray-edge));
  max-height: calc(100dvh - 2 * var(--rs-dev-tray-edge) - var(--rs-dev-tray-toggle-size) - var(--rs-space-xs));
  padding: var(--rs-space-md);
  border-radius: var(--rs-radius-lg);
  background-color: var(--rs-dev-tray-bg);
  color: var(--rs-dev-tray-ink);
  box-shadow: var(--rs-dialog-shadow);
}
.rs-c-dev-tray__panel:popover-open {
  display: flex;
  flex-direction: column;
}
.rs-c-dev-tray__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--rs-space-sm);
  padding-bottom: var(--rs-space-sm);
  border-bottom: 1px solid var(--rs-dev-tray-hover);
}
.rs-c-dev-tray__title {
  font-weight: var(--rs-text-weight-bold);
}
.rs-c-dev-tray__muted {
  display: block;
  font-size: var(--rs-text-small);
  color: var(--rs-dev-tray-ink-muted);
}
.rs-c-dev-tray__close {
  padding: var(--rs-space-box-sm);
  border-radius: var(--rs-radius-sm);
  font-weight: var(--rs-text-weight-bold);
  cursor: pointer;
}
.rs-c-dev-tray__nav {
  min-height: 0;
  max-height: 70vh;
  overflow-y: auto;
}
.rs-c-dev-tray__group {
  margin-top: var(--rs-space-sm);
}
.rs-c-dev-tray__label {
  margin-bottom: var(--rs-space-3xs);
  font-size: var(--rs-text-small);
  font-weight: var(--rs-text-weight-bold);
  color: var(--rs-dev-tray-ink-muted);
}
/* The hover box reaches into the panel padding so names line up with labels. */
.rs-c-dev-tray a.rs-c-dev-tray__link {
  display: block;
  margin-inline: calc(-1 * var(--rs-space-xs));
  padding: var(--rs-space-2xs) var(--rs-space-xs);
  border-radius: var(--rs-radius-sm);
  color: var(--rs-dev-tray-ink);
  text-decoration: none;
}
.rs-c-dev-tray__close:hover,
.rs-c-dev-tray a.rs-c-dev-tray__link:hover {
  background-color: var(--rs-dev-tray-hover);
}

/*
  Media library: the Library page (Media). Files are bordered cards
  (something you act on); notices are grey boxes. The page shows and hides
  its controls with the hidden attribute, which the component display rules
  above would otherwise override.
*/
.rs-scope-media [hidden],
#media-asset-dialog [hidden],
#media-delete-file-dialog [hidden],
#media-stop-serving-dialog [hidden] {
  display: none;
}

.rs-c-media-meter {
  display: grid;
  gap: var(--rs-space-2xs);
  max-width: var(--rs-text-measure);
}
.rs-c-media-meter__label {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--rs-space-xs);
}
/* Bars: the storage meter and each upload's progress. */
meter.rs-c-media-meter__bar,
progress.rs-c-media-progress {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: var(--rs-space-xs);
  border: 0;
  border-radius: var(--rs-radius-pill);
  background: var(--rs-color-surface);
  overflow: hidden;
}
meter.rs-c-media-meter__bar::-webkit-meter-bar {
  height: var(--rs-space-xs);
  border: 0;
  border-radius: var(--rs-radius-pill);
  background: var(--rs-color-surface);
}
meter.rs-c-media-meter__bar::-webkit-meter-optimum-value,
meter.rs-c-media-meter__bar::-webkit-meter-suboptimum-value,
meter.rs-c-media-meter__bar::-webkit-meter-even-less-good-value {
  border-radius: var(--rs-radius-pill);
  background: var(--rs-color-primary);
}
meter.rs-c-media-meter__bar::-moz-meter-bar {
  border-radius: var(--rs-radius-pill);
  background: var(--rs-color-primary);
}
.rs-c-media-meter[data-full] meter.rs-c-media-meter__bar::-webkit-meter-optimum-value {
  background: var(--rs-color-danger-ink);
}
.rs-c-media-meter[data-full] meter.rs-c-media-meter__bar::-moz-meter-bar {
  background: var(--rs-color-danger-ink);
}
.rs-c-media-meter[data-full] [data-media-full-note] {
  color: var(--rs-color-danger-ink);
}
progress.rs-c-media-progress::-webkit-progress-bar {
  border-radius: var(--rs-radius-pill);
  background: var(--rs-color-surface);
}
progress.rs-c-media-progress::-webkit-progress-value {
  border-radius: var(--rs-radius-pill);
  background: var(--rs-color-primary);
}
@media (prefers-reduced-motion: no-preference) {
  progress.rs-c-media-progress::-webkit-progress-value {
    transition: width 120ms linear;
  }
}
progress.rs-c-media-progress::-moz-progress-bar {
  border-radius: var(--rs-radius-pill);
  background: var(--rs-color-primary);
}

.rs-c-media-note {
  margin-top: var(--rs-space-md);
  padding: var(--rs-space-box-md);
  border-radius: var(--rs-radius-lg);
  background-color: var(--rs-color-surface);
}
.rs-c-media-note.rs-c-media-note--warning {
  background-color: var(--rs-color-pending);
  color: var(--rs-color-pending-ink);
}

.rs-c-media-upload {
  display: grid;
  gap: var(--rs-space-md);
  margin-top: var(--rs-space-lg);
}
.rs-c-media-upload__control {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--rs-space-xs) var(--rs-space-md);
}
/* The file input stays focusable; its label is the visible button. */
.rs-c-media-upload__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  clip-path: inset(50%);
}
.rs-c-media-upload__input:focus-visible + label {
  outline: var(--rs-focus-ring);
  outline-offset: var(--rs-focus-offset);
}
label.rs-c-btn.rs-c-btn--primary {
  background-color: var(--rs-color-primary);
  color: var(--rs-color-primary-ink);
}
label.rs-c-btn.rs-c-btn--primary:hover {
  background-color: var(--rs-color-primary-hover);
}
.rs-c-media-compress label {
  display: inline-flex;
  align-items: center;
  gap: var(--rs-space-2xs);
  font-weight: var(--rs-text-weight-medium);
}
.rs-c-media-compress input:disabled {
  cursor: not-allowed;
}

.rs-c-media-uploads {
  display: grid;
}
.rs-c-media-upload-item {
  display: grid;
  gap: var(--rs-space-2xs);
  padding: var(--rs-space-xs) 0;
  border-top: 1px solid var(--rs-color-border);
}
.rs-c-media-upload-item .rs-u-inline-flex-els {
  margin-top: 0;
}
.rs-c-media-upload-item__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--rs-space-3xs) var(--rs-space-md);
}
.rs-c-media-upload-item__name {
  min-width: 0;
  font-weight: var(--rs-text-weight-medium);
  overflow-wrap: anywhere;
}
.rs-c-media-upload-item__status {
  color: var(--rs-color-ink-muted);
}
.rs-c-media-upload-item[data-state="done"] .rs-c-media-upload-item__status {
  color: var(--rs-color-success-ink);
}
.rs-c-media-upload-item[data-state="failed"] .rs-c-media-upload-item__status {
  color: var(--rs-color-danger-ink);
}

.rs-c-media-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: var(--rs-space-sm) var(--rs-space-lg);
  margin-top: var(--rs-space-md);

  label,
  legend,
  .rs-c-media-filters__label {
    font-weight: var(--rs-text-weight-medium);
  }
  input[type="search"] {
    width: 100%;
    padding: var(--rs-space-box-sm);
    border: 1px solid var(--rs-color-border);
    border-radius: var(--rs-radius-sm);
    background-color: var(--rs-color-paper);
  }
}
.rs-c-media-filters__search {
  display: grid;
  gap: var(--rs-space-3xs);
  flex: 1 1 16ch;
  max-width: 36ch;
}
.rs-c-media-filters__kind {
  margin: 0;
  padding: 0;
  border: 0;

  legend {
    padding: 0;
    margin-bottom: var(--rs-space-3xs);
  }
  label {
    display: inline-flex;
    align-items: center;
    gap: var(--rs-space-3xs);
    margin-right: var(--rs-space-md);
    font-weight: normal;
  }
}

/* Cards or List (docs/backlog/media-library-list-view.md): the View switch
   sits with the search and the filter; one view shows at a time. */
.rs-c-media-filters__view {
  display: grid;
  justify-items: start;
  gap: var(--rs-space-3xs);
}
.rs-c-media-grid[hidden],
.rs-c-media-table[hidden] {
  display: none;
}

.rs-c-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 9em), 1fr));
  gap: var(--rs-space-md);
  margin-top: var(--rs-space-md);
}
.rs-c-media-tile {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--rs-color-border);
  border-radius: var(--rs-radius-lg);
  overflow: hidden;
}
.rs-c-media-tile__preview,
.rs-c-media-detail__preview {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  background-color: var(--rs-color-surface);

  img:not([hidden]) {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}
/* A long press on a tile's thumbnail offers no "Copy image address": that
   address is a preview, never a link for pages
   (docs/backlog/media-library-dialog.md). */
.rs-c-media-tile__preview img {
  -webkit-touch-callout: none;
}
.rs-c-media-tile__file {
  font-size: 2.89em; /* the --rs-space-xl step */
  line-height: 1;
}
.rs-c-media-tile__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--rs-space-3xs);
  padding: var(--rs-space-xs);

  .rs-c-btn {
    margin-top: auto;
  }
  .rs-c-status {
    font-size: var(--rs-text-small);
  }
}
body.rs-orbit-app main p.rs-c-media-tile__name {
  max-width: 100%;
  overflow: hidden;
  font-weight: var(--rs-text-weight-bold);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.rs-c-media-tile__meta {
  font-size: var(--rs-text-small);
  color: var(--rs-color-ink-muted);
}
.rs-c-media-tile__body .rs-c-media-tile__meta:last-of-type {
  margin-bottom: var(--rs-space-2xs);
}

/* The List view: one row per file, with a small preview beside its name. */
.rs-c-media-table {
  width: 100%;
  margin-top: var(--rs-space-md);
  border-collapse: collapse;

  th,
  td {
    padding: var(--rs-space-2xs) var(--rs-space-xs);
    border-bottom: 1px solid var(--rs-color-border);
    text-align: start;
    vertical-align: middle;
  }
  thead th {
    font-size: var(--rs-text-small);
    font-weight: var(--rs-text-weight-medium);
    color: var(--rs-color-ink-muted);
  }
  /* The facts and Options take only their own width; the name the rest. */
  td {
    width: 1%;
    white-space: nowrap;
  }
  .rs-c-status {
    font-size: var(--rs-text-small);
  }
}
.rs-c-media-row__name {
  font-weight: var(--rs-text-weight-bold);
  overflow-wrap: anywhere;
}
.rs-c-media-row__file {
  display: flex;
  align-items: center;
  gap: var(--rs-space-xs);
}
.rs-c-media-row__thumb {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: var(--rs-space-xl);
  height: var(--rs-space-xl);
  border-radius: var(--rs-radius-sm);
  background-color: var(--rs-color-surface);
  overflow: hidden;

  /* As on a card: the preview is never a link for pages. */
  img:not([hidden]) {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    -webkit-touch-callout: none;
  }
}
.rs-c-media-row__icon {
  font-size: 1.62em; /* the --rs-space-lg step */
  line-height: 1;
}
.rs-c-media-row__label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--rs-space-3xs) var(--rs-space-xs);
  min-width: 0;
}
.rs-c-media-row__options {
  text-align: end;
}
/* Phones: each row keeps its preview, name and Options on top, and the
   kind, size and date wrap under the name. The headings are still read. */
@media (max-width: 40rem) {
  .rs-c-media-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .rs-c-media-table:not([hidden]),
  .rs-c-media-table tbody {
    display: block;
  }
  .rs-c-media-row {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: var(--rs-space-xs);
    min-height: calc(var(--rs-space-xl) + 2 * var(--rs-space-xs));
    padding-block: var(--rs-space-xs);
    padding-inline-start: calc(var(--rs-space-xl) + var(--rs-space-xs));
    border-bottom: 1px solid var(--rs-color-border);

    /* Ends the first line, so the facts start under the name. */
    &::before {
      content: "";
      flex-basis: 100%;
      order: 1;
    }
    > th,
    > td {
      width: auto;
      padding: 0;
      border: 0;
    }
    > td[data-media-fact] {
      order: 2;
      font-size: var(--rs-text-small);
      color: var(--rs-color-ink-muted);
    }
    > td[data-media-fact] + td[data-media-fact]::before {
      content: "·";
      content: "·" / "";
      margin-inline-end: var(--rs-space-xs);
    }
  }
  .rs-c-media-row__name {
    flex: 1 1 0;
    min-width: 0;
  }
  .rs-c-media-row__thumb {
    position: absolute;
    inset-block-start: var(--rs-space-xs);
    inset-inline-start: 0;
  }
}

.rs-c-media-detail {
  display: grid;
  grid-template-columns: minmax(0, 12em) minmax(0, 1fr);
  align-items: start;
  gap: var(--rs-space-md);
}
.rs-c-media-detail__preview {
  border-radius: var(--rs-radius-lg);
  overflow: hidden;
}
dl.rs-c-data-list.rs-c-media-detail__facts {
  margin-top: 0;
  overflow-wrap: anywhere;
}
.rs-c-media-detail__main > .rs-c-media-link:first-child {
  margin-top: 0;
}
/* The file dialog's More: everything but the link for pages
   (docs/backlog/media-library-dialog.md). */
.rs-c-media-more {
  margin-top: var(--rs-space-md);
  border-top: 1px solid var(--rs-color-border);

  > summary {
    padding-block: var(--rs-space-xs);
  }
  &[open] > summary {
    margin-bottom: var(--rs-space-2xs);
  }
  > dl.rs-c-data-list.rs-c-media-detail__facts {
    margin-top: 0;
  }
  > .rs-c-actions + p {
    margin-top: var(--rs-space-md);
  }
  /* Delete file, last and set apart. */
  > .rs-c-actions:last-child {
    margin-top: var(--rs-space-lg);
  }
}
.rs-c-media-link {
  display: grid;
  gap: var(--rs-space-3xs);
  margin-top: var(--rs-space-md);

  label {
    font-weight: var(--rs-text-weight-medium);
  }
  input {
    width: 100%;
    padding: var(--rs-space-box-sm);
    border: 1px solid var(--rs-color-border);
    border-radius: var(--rs-radius-sm);
    background-color: var(--rs-color-surface);
    font-family: var(--rs-text-mono);
    font-size: var(--rs-text-small);
  }
}
.rs-c-media-versions {
  display: grid;
  margin-top: var(--rs-space-xs);
}
.rs-c-media-version {
  display: grid;
  gap: var(--rs-space-3xs);
  padding: var(--rs-space-xs) 0;
  border-top: 1px solid var(--rs-color-border);
}
.rs-c-media-version__info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--rs-space-3xs) var(--rs-space-xs);
}
.rs-c-media-version .rs-c-media-version__actions {
  margin-top: 0;
}
/* The used-on list (docs/backlog/media-reference-retention.md): each of the
   owner's sites with its Live, Draft and Older version marks. */
.rs-c-media-uses {
  margin-top: var(--rs-space-md);
}
.rs-c-media-uses__list {
  display: grid;
  gap: var(--rs-space-3xs);
  margin: var(--rs-space-xs) 0 0;
  padding: 0;
  list-style: none;
}
/* Paragraphs after a used-on list, or after one of the Stop serving
   dialog's two groups, keep the dialog's paragraph spacing. */
.rs-c-media-uses__list + p,
.rs-c-media-stop__group + p {
  margin-top: var(--rs-space-2xs);
}
.rs-c-media-uses + p {
  margin-top: var(--rs-space-sm);
}
.rs-c-media-use {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--rs-space-3xs) var(--rs-space-xs);

  .rs-c-status {
    font-size: var(--rs-text-small);
  }
}

@media (max-width: 40rem) {
  .rs-c-media-detail {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Orbit chat: the conversation and its message box, shared by the chat
   window over My site, the full chat and the Editor's edit sessions. Every
   control is at least 2.75rem tall, or in the Editor its text size's
   --rs-edit-tap. */
.orbit-chat-log {
  display: flex;
  flex-direction: column;
  gap: var(--rs-space-sm);
}
.orbit-chat-log .chat-turn {
  display: flex;
  flex-direction: column;
  gap: var(--rs-space-xs);
}
/* A real chat, like a phone's messages (owner, 2026-11-08): the owner's
   words on the right in Orbit's blue, Orbit's on the left in grey. Each
   bubble is at most 80% of the log, so a short one leaves room on the
   other side and the back and forth shows even in a narrow panel; a long
   one still leaves a gap. The tighter corner points at the speaker. The
   app's rule for every paragraph on a page (its measure) is more
   specific than a plain class, so these name the app too. */
body.rs-orbit-app .orbit-chat-log .chat-bubble {
  margin: 0;
  max-width: min(30em, 80%);
  padding: var(--rs-space-xs) var(--rs-space-sm);
  border-radius: var(--rs-radius-lg);
  line-height: 1.4;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
/* "You: " and "Orbit: ", which screen readers hear before each bubble,
   don't come along when the owner copies a message to send it again
   (owner, 2026-11-08: "You: …" landed in the box). */
.orbit-chat-log .chat-bubble .rs-u-sr-only {
  user-select: none;
}
body.rs-orbit-app .orbit-chat-log .chat-you {
  align-self: flex-end;
  border-end-end-radius: var(--rs-radius-sm);
  background: var(--rs-color-primary);
  color: var(--rs-color-primary-ink);
}
body.rs-orbit-app .orbit-chat-log .chat-orbit {
  align-self: flex-start;
  border-end-start-radius: var(--rs-radius-sm);
  background: var(--rs-color-surface);
  color: var(--rs-color-ink);
}
/* A hand edit's line in the Editor's chat, such as "Manual edit: the phone
   number": quiet, centred, neither the owner's words nor Orbit's. */
body.rs-orbit-app main .orbit-chat-log p.chat-hand-edit {
  align-self: center;
  max-width: 34em;
  margin: 0;
  color: var(--rs-color-ink-muted);
  font-size: var(--rs-text-small);
  text-align: center;
  overflow-wrap: anywhere;
}
/* A scoped message's tag, above the owner's words: the part of the site
   they asked about, such as "💬 Section: Our plants"
   (docs/backlog/epic-scoped-chat.md). */
body.rs-orbit-app main .orbit-chat-log p.chat-scope {
  align-self: flex-end;
  max-width: 34em;
  margin: 0 0 calc(-1 * var(--rs-space-2xs));
  color: var(--rs-color-ink-muted);
  font-size: var(--rs-text-small);
  overflow-wrap: anywhere;
}
/* A scoped message's offer, under Orbit's reply: the button that asks
   about the part the request is really about, and Cancel (phase 4). */
.orbit-chat-log .chat-suggest {
  display: flex;
  flex-wrap: wrap;
  align-self: flex-start;
  gap: var(--rs-space-xs);
  max-width: 34em;
}
.chat-bubble .rs-c-spinner {
  margin-inline-end: var(--rs-space-2xs);
}
/* Editor settings: the owner turned the chat's spinner off. */
.rs-c-edit-session[data-spinner-off] .chat-bubble .rs-c-spinner {
  display: none;
}
.chat-alert {
  margin: 0;
  color: var(--rs-color-danger-ink);
  background: var(--rs-color-danger);
  padding: var(--rs-space-box-sm);
  border-radius: var(--rs-radius-sm);
}
.chat-box {
  display: flex;
  flex-wrap: wrap;
  gap: var(--rs-space-xs);
  align-items: flex-end;
}
/* The page the chat talks to, on a line of its own above the box
   (docs/backlog/site-editor-request-a-change.md). */
.chat-box .rs-c-edit-chat__page {
  flex: 0 0 100%;
  margin: 0;
  color: var(--rs-color-ink-muted);
  font-size: var(--rs-text-small);
}
.chat-box textarea {
  flex: 1;
  min-width: 0;
  min-height: var(--rs-edit-tap, 2.75rem);
  max-height: 10em;
  padding: var(--rs-space-box-sm);
  border: 1px solid var(--rs-color-border);
  border-radius: var(--rs-radius-sm);
  font: inherit;
  color: inherit;
  resize: vertical;
}
/* The session meter (docs/backlog/site-editor-session-meter.md): a ring
   beside the message box that drains as the chat session is used, its
   words above it on hover, tap or focus. Editor settings set the Editor's
   data-meter: always (the default, also with no script) or never. */
.rs-c-session-meter {
  position: relative;
  display: inline-flex;
  align-self: center;
}
.rs-c-edit-session[data-meter="never"] .rs-c-session-meter {
  display: none;
}
.chat-box .rs-c-session-meter__ring {
  display: inline-grid;
  place-items: center;
  min-width: var(--rs-edit-tap, 2.75rem);
  min-height: var(--rs-edit-tap, 2.75rem);
  padding: 0;
  border: 0;
  border-radius: var(--rs-radius-pill);
  background: transparent;
  color: var(--rs-color-primary);
  cursor: help;
}
.rs-c-session-meter__ring svg {
  width: 1.5em;
  height: 1.5em;
}
.rs-c-session-meter__track,
.rs-c-session-meter__fill {
  fill: none;
  stroke-width: 4;
}
.rs-c-session-meter__track {
  stroke: var(--rs-color-border);
}
.rs-c-session-meter__fill {
  stroke: currentColor;
}
.rs-c-session-meter[data-low] .rs-c-session-meter__ring {
  color: var(--rs-color-pending-ink);
}
.rs-c-session-meter__words {
  position: absolute;
  inset-block-end: calc(100% + var(--rs-space-2xs));
  inset-inline-end: 0;
  z-index: 1;
  padding: var(--rs-space-2xs) var(--rs-space-xs);
  border: 1px solid var(--rs-color-border);
  border-radius: var(--rs-radius-sm);
  background: var(--rs-color-surface);
  color: var(--rs-color-ink);
  font-size: var(--rs-text-small);
  white-space: nowrap;
  visibility: hidden;
}
.rs-c-session-meter:hover .rs-c-session-meter__words,
.rs-c-session-meter:focus-within .rs-c-session-meter__words {
  visibility: visible;
}
.rs-c-session-meter[data-words-hidden] .rs-c-session-meter__words {
  visibility: hidden;
}
.chat-box button.rs-c-btn {
  min-height: var(--rs-edit-tap, 2.75rem);
  border: 0;
  font: inherit;
  font-weight: var(--rs-text-weight-bold);
  padding: 0 var(--rs-space-md);
}

/* The spinner (ComponentSpinner): a ring, 1em across, in the text's
   colour, beside words that say what is happening. Still when the owner
   asks for reduced motion. The domain check and the Editor's chat use it. */
.rs-c-spinner {
  display: inline-block;
  flex: none;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  border: 0.125em solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
}
/* The spinner turns only for people whose device doesn't ask for less
   motion; for them it is a still, open ring. */
@media (prefers-reduced-motion: no-preference) {
  .rs-c-spinner {
    animation: orbit-spin 0.8s linear infinite;
  }
}
.rs-c-spinner[hidden] {
  display: none;
}
/* Load a folder's waiting line (the Sites page): the spinner, then what
   is happening. */
.rs-c-folder-load-status {
  display: flex;
  align-items: center;
  gap: var(--rs-space-2xs);
}
@keyframes orbit-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Editor: edit sessions (handlers/page_def_builder_edit_session.templ).
   The Editor's bar runs across the top under the nav, the draft fills the
   rest of the screen, and the chat sits on top: a panel over the site on a
   desktop, a sheet from the bottom on a phone. */
/* The Editor's bar is its only bar: once the page's script shows it, the
   app menu goes, and the bar's Orbit wordmark leads Home
   (docs/backlog/site-editor-one-bar.md). Without script the app menu
   stays. */
body.rs-orbit-app--full:has(#edit-bar:not([hidden])) > header {
  display: none;
}
body.rs-orbit-app.rs-orbit-app--full {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;

  main {
    flex: 1;
    min-height: 0;
    display: flex;
  }
}
.rs-c-edit-session {
  position: relative;
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.rs-c-edit-session__site {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  background-color: var(--rs-color-surface);
  border-top: 1px solid var(--rs-color-border);

  iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background-color: var(--rs-color-paper);
  }
}
/* A preview size other than Full (docs/backlog/site-editor-preview-sizes.md):
   the page's script gives the frame its width and, in a narrower window,
   scales it down from its top left corner and centres it. */
.rs-c-edit-session__site[data-sized] iframe {
  transform-origin: 0 0;
  box-shadow: 0 0 0 1px var(--rs-color-border);
}
/* The launch page (docs/backlog/epic-course-onboarding.md, items 2-3):
   Orbit's bar, the Editor's bar component at the app menu's height, over
   the visitor's just-published page, which fills the rest of the screen.
   The bar covers none of the page. On a phone a long course name wraps
   the button onto its own row. */
.rs-c-launch {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.rs-c-launch .rs-c-launch__bar {
  flex-wrap: wrap;
  padding-block: var(--rs-space-3xs);

  .rs-c-btn {
    white-space: normal;
  }
}
.rs-c-launch__name {
  display: inline-flex;
  align-items: center;
  min-height: var(--rs-edit-tap, 2.75rem);
  margin-inline-end: auto;
  color: var(--rs-color-ink);
  font-weight: var(--rs-text-weight-bold);
  white-space: nowrap;
}
.rs-c-launch__site {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  background-color: var(--rs-color-surface);
  border-top: 0.0625rem solid var(--rs-color-border);

  iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background-color: var(--rs-color-paper);
  }
}
/* The Editor's status (docs/backlog/site-editor-note-destinations.md):
   one quiet line across the top of the draft, joined to the bar, for what
   the owner needs to know: a failure, signing in again, a rebuild, a
   result while the chat is hidden. Not a pop-up over the site. */
body.rs-orbit-app main p.rs-c-edit-status {
  position: absolute;
  inset: 0 0 auto;
  z-index: 30;
  max-width: none;
  margin: 0;
  padding: var(--rs-space-2xs) var(--rs-space-md);
  border-bottom: 1px solid var(--rs-color-border);
  background-color: var(--rs-color-paper);
  color: var(--rs-color-ink);
  font-size: var(--rs-text-small);
}
.rs-c-edit-status[hidden] {
  display: none;
}
/* On a desktop the chat is a panel at the site's lower right, at most half
   the screen tall; its log scrolls. */
.rs-c-edit-chat {
  position: absolute;
  right: var(--rs-space-md);
  bottom: var(--rs-space-md);
  z-index: 40;
  width: min(26em, calc(100% - 2rem));
  max-height: 50svh;
  display: flex;
  flex-direction: column;
  background-color: var(--rs-color-paper);
  border: 1px solid var(--rs-color-border);
  border-radius: var(--rs-radius-lg);
  box-shadow: var(--rs-dialog-shadow);
  font-size: max(0.75rem, calc(var(--rs-edit-text, 1) * 0.85em));
  overflow: hidden;
}
.rs-c-edit-chat__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--rs-space-2xs);
  padding: var(--rs-space-2xs) var(--rs-space-sm);

  .rs-c-btn {
    min-height: var(--rs-edit-tap, 2.75rem);
  }
  /* Without the page's script, its controls stay hidden. */
  [hidden] {
    display: none;
  }
}
.rs-c-edit-chat__body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rs-color-border);
}
.rs-c-edit-chat #edit-log {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: var(--rs-space-xs) var(--rs-space-md);
}
.rs-c-edit-chat #edit-log:empty {
  display: none;
}
.rs-c-edit-chat__panel {
  display: flex;
  flex-direction: column;
  gap: var(--rs-space-xs);
  padding: var(--rs-space-xs) var(--rs-space-md) var(--rs-space-sm);
  padding-bottom: max(var(--rs-space-sm), env(safe-area-inset-bottom));

  form {
    margin: 0;
  }
  .rs-c-edit-chat__start {
    width: 100%;
    justify-content: center;
    min-height: var(--rs-edit-tap, 2.75rem);
  }
}
body.rs-orbit-app main p.rs-c-edit-chat__line {
  margin: 0;
  font-weight: var(--rs-text-weight-medium);
}
.rs-c-edit-chat__body > .rs-c-edit-chat__line {
  padding: var(--rs-space-md);
}
.rs-c-edit-chat__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--rs-space-2xs);

  .rs-c-btn {
    min-height: var(--rs-edit-tap, 2.75rem);
  }
}
.rs-c-edit-session[data-busy] .rs-c-edit-chat__panel {
  opacity: 0.7;
}
.rs-c-edit-chat .rs-c-waiting-changes {
  margin-top: 0;
  padding: var(--rs-space-sm) var(--rs-space-md);
}
.rs-c-edit-chat__panel:not(:first-child) {
  border-top: 1px solid var(--rs-color-border);
}
/* Move left puts the desktop panel at the lower left. The chat is the
   design constraint: the dev tray never moves or resizes it. */
@media (width > 40rem) {
  .rs-c-edit-chat[data-side-left] {
    right: auto;
    left: var(--rs-space-md);
  }
}
.rs-c-waiting-changes [hidden] {
  display: none;
}
/* Hide chat, and the bar's Chat button, hide the whole panel, so the
   whole site shows (js/edit-session.js). */
.rs-c-edit-chat[hidden] {
  display: none;
}
/* The Editor's bar (docs/backlog/site-editor-view-edit-bar.md): View and
   Edit, the draft's status with Undo and Publish, and Chat, on one line
   at every width. On a phone the actions keep only their icons, and the
   status gives way to Publish. The page's script shows it. */
.rs-c-edit-bar {
  flex: none;
  display: flex;
  align-items: center;
  /* A row that wraps keeps the group on the right. */
  justify-content: flex-end;
  gap: var(--rs-space-xs);
  /* The app menu's sizing: its side padding, its type size, and its
     height (the nav's and its links' padding around one line). */
  min-height: calc(4 * var(--rs-space-2xs) + 1.5em);
  padding: 0 var(--rs-space-md);
  background-color: var(--rs-color-paper);

  /* The app menu's side margins too: its content wrap is 92% wide on a
     desktop, centred, inside the same padding (.rs-l-content-wrap,
     .rs-u-px-base). */
  @media only screen and (min-width: 64rem) {
    padding-inline: calc(4% + var(--rs-space-md));
  }

  .rs-c-btn {
    min-height: var(--rs-edit-tap, 2.75rem);
    min-width: var(--rs-edit-tap, 2.75rem);
    justify-content: center;
    white-space: nowrap;
  }
  form {
    margin: 0;
  }
}
.rs-c-edit-bar[hidden] {
  display: none;
}
/* Nothing in the bar shrinks, Publish (or Published) in the draft's
   wrappers included, so a bar that doesn't fit overflows and Menu takes
   more (js/edit-session.js) rather than words spilling over the next
   control (owner, 2026-11-13). */
.rs-c-edit-bar > *,
.rs-c-edit-bar .rs-c-btn {
  flex: none;
}
/* The wordmark, as in the app menu. */
/* Beats the app's link colour (.rs-orbit-app a:not(.rs-c-btn)). */
.rs-orbit-app .rs-c-edit-bar a.rs-c-edit-bar__home {
  display: inline-flex;
  align-items: center;
  min-height: var(--rs-edit-tap, 2.75rem);
  /* Orbit Editor on the left, the controls as one group on the right
     (owner, 2026-11-09). */
  margin-inline-end: auto;
  color: var(--rs-color-ink);
  font-weight: var(--rs-text-weight-bold);
  text-decoration: none;
  white-space: nowrap;
}
/* Back to Edit keeps its words on every screen
   (docs/backlog/site-edit-overview-return.md). */
.rs-orbit-app .rs-c-edit-bar a.rs-c-edit-bar__back {
  display: inline-flex;
  align-items: center;
  min-height: var(--rs-edit-tap, 2.75rem);
  color: var(--rs-color-ink);
  white-space: nowrap;
}
/* A control with its word before it: Mode, Preview. */
.rs-c-edit-bar__field {
  display: flex;
  align-items: center;
  gap: var(--rs-space-2xs);
}
.rs-c-edit-bar__label {
  color: var(--rs-color-ink-muted);
  font-size: var(--rs-text-small);
}
/* View and Edit say what they are; the group keeps its name, Mode, for
   screen readers only (owner, 2026-11-09). */
.rs-c-edit-bar #edit-mode-label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.rs-c-edit-bar__size {

  select {
    min-height: var(--rs-edit-tap, 2.75rem);
    padding: var(--rs-space-box-sm);
    border: 1px solid var(--rs-color-border);
    border-radius: var(--rs-radius-sm);
    background-color: var(--rs-color-paper);
    color: inherit;
    font: inherit;
    font-weight: var(--rs-text-weight-bold);
  }
}
/* Editor settings' outlines (docs/backlog/site-editor-look-settings.md):
   each word beside its control, two columns, stacked on a phone. */
.rs-c-edit-look {
  display: grid;
  gap: var(--rs-space-sm);
  margin: var(--rs-space-md) 0 0;
  padding: 0;
  border: 0;

  legend {
    margin-bottom: var(--rs-space-xs);
    font-weight: var(--rs-text-weight-bold);
  }
  input[type="color"] {
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid var(--rs-color-border);
    border-radius: var(--rs-radius-sm);
    background: none;
  }
  select {
    justify-self: start;
    min-height: 2.75rem;
    padding: var(--rs-space-box-sm);
    border: 1px solid var(--rs-color-border);
    border-radius: var(--rs-radius-sm);
    background-color: var(--rs-color-paper);
    color: inherit;
    font: inherit;
  }
  [data-look-reset] {
    justify-self: start;
    margin-block: var(--rs-space-2xs) var(--rs-space-sm);
  }
}
.rs-c-edit-look__reset {
  margin-block: var(--rs-space-sm);
}
/* Orbit Settings' panel: each setting's choices side by side, wrapping
   on a phone, so the panel stays short. */
.rs-c-orbit-settings .rs-c-edit-look {
  gap: var(--rs-space-2xs);
}
.rs-c-orbit-settings .rs-c-edit-look__presets {
  display: flex;
  flex-wrap: wrap;
  gap: var(--rs-space-2xs) var(--rs-space-md);
}
.rs-c-edit-look__presets {
  display: grid;
  gap: var(--rs-space-2xs);

  .rs-c-check {
    margin: 0;
    cursor: pointer;
  }
  input[type="radio"] {
    flex: none;
    width: 1.5rem;
    height: 1.5rem;
    margin: 0;
    accent-color: var(--rs-color-primary);
  }
  .rs-c-help {
    display: block;
    margin: 0;
  }
}
/* Custom's controls: each word beside its control. */
.rs-c-edit-look__custom {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: var(--rs-space-xs) var(--rs-space-md);
}
.rs-c-edit-look__custom[hidden] {
  display: none;
}
.rs-c-edit-look__range {
  display: flex;
  align-items: center;
  gap: var(--rs-space-xs);

  input {
    flex: 1;
    min-width: 0;
  }
  output {
    min-width: 3ch;
  }
}
@media (max-width: 24rem) {
  .rs-c-edit-look__custom {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* The menu on the page, Dark or Light: each choice shows a picture of the
   menu in its colours, as draft-preview-bridge.js draws it. */
.rs-c-edit-look__menus .rs-c-check > span {
  display: grid;
  gap: var(--rs-space-2xs);
  justify-items: start;
}
.rs-c-edit-menu-sample {
  --sample-bg: #111111;
  --sample-text: #ffffff;
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--rs-space-3xs);
  padding: var(--rs-space-3xs);
  border-radius: var(--rs-radius-lg);
  background: var(--sample-bg);
  color: var(--sample-text);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--sample-text) 40%, transparent),
    0 0.25em 1em rgb(0 0 0 / 0.2);
  font-size: var(--rs-text-small);
  font-weight: 500;

  > span {
    padding: var(--rs-space-box-sm);
    border-radius: var(--rs-radius-sm);
    white-space: nowrap;
  }
}
.rs-c-edit-menu-sample[data-menu="light"] {
  --sample-bg: #ffffff;
  --sample-text: #111111;
}
/* Editor settings' text size (owner, 2026-11-08): Standard, Large (1.2
   times) or Small (0.63 times) scales the Editor bar and the chat, never
   the site in the preview, which is its own page, or the dialogs, which
   sit outside both. Spacing is in em, so it scales with the text, and so
   do the controls' heights (--rs-edit-tap). Floors keep Small usable: text
   never under 0.75rem, and a control never under 1.5rem, the smallest tap
   target WCAG allows. */
.rs-c-edit-session {
  --rs-edit-text: 1;
  --rs-edit-tap: max(1.5rem, calc(2.75rem * var(--rs-edit-text)));
}
.rs-c-edit-session[data-text-size="large"] {
  --rs-edit-text: 1.2;
}
.rs-c-edit-session[data-text-size="small"] {
  --rs-edit-text: 0.63;
}
.rs-c-edit-session .rs-c-edit-bar {
  font-size: max(0.75rem, calc(var(--rs-edit-text) * 1em));
}
.rs-c-edit-bar__chat[aria-expanded="true"] {
  background-color: var(--rs-color-primary-soft);
}
/* The draft's wrappers drop out of the layout, so only what shows, such
   as Publish, takes a place in the bar's spacing. */
.rs-c-edit-bar__draft,
.rs-c-edit-bar__draft .rs-c-edit-bar__status,
.rs-c-edit-bar__draft .rs-c-edit-manual__bar,
.rs-c-edit-bar__draft .rs-c-edit-manual__actions {
  display: contents;
}
.rs-c-edit-bar__status {
  min-width: 0;
}
/* What just happened shows in the Editor's status instead (showNote). */
.rs-c-edit-bar .rs-c-edit-manual__said {
  display: none;
}
/* Below a desktop's width the actions keep their icons, and their words
   for screen readers. Settings...'s word is the button's own text, so the
   button's type is 0 and only its trail shows, at the bar's size there
   (the body's 1.2rem; a phone's is below). The fields keep their labels,
   Mode and Preview, at every width (owner, 2026-11-09): Menu takes what
   doesn't fit. Below 24rem the bar may wrap. */
@media (width < 64rem) {
  .rs-c-edit-bar .rs-c-edit-bar__word {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .rs-c-edit-bar [data-edit-settings] {
    font-size: 0;

    .rs-c-icon {
      font-size: 1.2rem;
    }
  }
}
@media (width < 24rem) {
  .rs-c-edit-bar {
    flex-wrap: wrap;
  }
}
/* Once the bar shows the draft's status with Publish, the chat keeps only
   End's question and a failed publish. */
#edit-session:has(#edit-bar:not([hidden]) #edit-manual) .rs-c-edit-chat .rs-c-waiting-changes[data-plain] {
  display: none;
}
/* A two-way switch of pressed buttons: View and Edit in the Editor's bar,
   the media library's Cards and List. */
.rs-c-edit-mode,
.rs-c-switch {
  display: flex;
  border: 1px solid var(--rs-color-border);
  border-radius: var(--rs-radius-sm);
  overflow: hidden;

  .rs-c-btn {
    border-radius: 0;
  }
  .rs-c-btn[aria-pressed="true"] {
    background-color: var(--rs-color-primary-soft);
    color: var(--rs-color-ink);
  }
}
.rs-c-edit-manual__bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--rs-space-xs);
  min-width: 0;
}
body.rs-orbit-app main p.rs-c-edit-manual__status {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rs-c-edit-manual__actions {
  flex: none;
  display: flex;
  gap: var(--rs-space-2xs);
}
.rs-c-edit-chat__panel > .rs-c-edit-chat__start[hidden] {
  display: none;
}
dialog.rs-c-dialog [data-manual-problem][hidden] {
  display: none;
}
/* Replace photo (docs/backlog/site-editor-replace-photo.md): the owner's
   library as a grid of choices, three across on a phone. A choice is its
   photo; the chosen one gets the primary edge. */
.rs-c-manual-photo {
  [hidden] {
    display: none;
  }
}
.rs-c-manual-photo__library {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;

  legend {
    padding: 0;
    font-weight: 600;
  }
}
.rs-c-manual-photo__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 5.5em), 1fr));
  gap: var(--rs-space-xs);
  margin: var(--rs-space-xs) 0 0;
  padding: 0;
  list-style: none;
}
.rs-c-manual-photo__tile {
  position: relative;
  display: block;
  min-width: 0;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--rs-color-border);
  border-radius: var(--rs-radius-sm);
  background-color: var(--rs-color-surface);
  cursor: pointer;

  img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  &:has(:checked) {
    outline: 0.21em solid var(--rs-color-primary);
    outline-offset: -0.21em;
  }
  &:has(:focus-visible) {
    outline: var(--rs-focus-ring);
    outline-offset: var(--rs-focus-offset);
  }
}
/* The choice covers its tile, unseen, so a tap anywhere on the photo
   picks it. */
.rs-c-manual-photo__choice {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
/* "On your page" runs across the foot of its tile, wrapping on a phone. */
.rs-c-manual-photo__now {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  border-radius: 0;
  font-size: 0.79em;
  white-space: normal;
  text-align: center;
  justify-content: center;
}
/* A photo's description is a line or two, not a page. */
form.rs-c-form textarea[data-manual-photo-alt-field] {
  min-height: 4.5em;
  border: 1px solid var(--rs-color-border);
}
.rs-c-manual-photo__upload {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--rs-space-xs);
}
.rs-c-manual-photo__places {
  margin: 0;
  padding: var(--rs-space-box-md);
  border-radius: var(--rs-radius-lg);
  background-color: var(--rs-color-surface);
}
.rs-c-manual-photo__current {
  display: block;
  max-width: 100%;
  max-height: 10em;
  object-fit: contain;
  border-radius: var(--rs-radius-sm);
}
.rs-c-manual-photo__current[hidden] {
  display: none;
}
/* Set focus (docs/backlog/site-editor-set-focus.md): the photo, whole,
   under a 3 by 3 grid of places, each a choice named on a chip. Without
   the photo the grid keeps a frame's shape. */
.rs-c-manual-focus {
  position: relative;
  display: grid;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  margin: var(--rs-space-sm) auto;
  padding: 0;
  border: 0;

  &:has(.rs-c-manual-focus__photo[hidden]) {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--rs-radius-lg);
    background-color: var(--rs-color-surface);
  }
}
.rs-c-manual-focus__photo {
  grid-area: 1 / 1;
  display: block;
  max-width: 100%;
  max-height: 50vh;
  border-radius: var(--rs-radius-sm);
}
.rs-c-manual-focus__photo[hidden] {
  display: none;
}
.rs-c-manual-focus__grid {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(2.75rem, 1fr));
}
.rs-c-manual-focus__place {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0.21em;
  outline: 1px dashed color-mix(in srgb, var(--rs-color-paper) 70%, transparent);
  outline-offset: -1px;
  cursor: pointer;

  input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
  }
  span {
    padding: 0 0.38em;
    border-radius: var(--rs-radius-pill);
    background-color: color-mix(in srgb, var(--rs-color-paper) 88%, transparent);
    font-size: 0.79em;
    font-weight: var(--rs-text-weight-medium);
    text-align: center;
  }
  &:has(:checked) span {
    background-color: var(--rs-color-primary);
    color: var(--rs-color-primary-ink);
  }
  &:has(:focus-visible) span {
    outline: var(--rs-focus-ring);
    outline-offset: var(--rs-focus-offset);
  }
}
/* Request a change (docs/backlog/site-editor-request-a-change.md): Select
   scope, a row of choices that wraps on a phone, each at least 2.75rem
   tall, the chosen one filled; and a request box a few lines tall. */
.rs-c-edit-ask__levels {
  display: flex;
  flex-wrap: wrap;
  gap: var(--rs-space-2xs);
  margin: 0;
  padding: 0;
  border: 0;
}
/* Select scope, the choices' visible name. */
.rs-c-edit-ask__levels legend {
  flex: 0 0 100%;
  margin-block-end: var(--rs-space-3xs);
  padding: 0;
}
.rs-c-edit-ask__level {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 var(--rs-space-sm);
  border: 0.0625rem solid var(--rs-color-border);
  border-radius: var(--rs-radius-sm);
  font-weight: var(--rs-text-weight-medium);
  cursor: pointer;

  input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
  }
  &:has(:checked) {
    border-color: var(--rs-color-primary);
    background-color: var(--rs-color-primary-soft);
  }
  &:has(:focus-visible) {
    outline: var(--rs-focus-ring);
    outline-offset: var(--rs-focus-offset);
  }
}
.rs-c-edit-ask [hidden] {
  display: none;
}
form.rs-c-form.rs-c-edit-ask textarea {
  min-height: 6em;
  border: 0.0625rem solid var(--rs-color-border);
}
/* Business details (docs/backlog/site-editor-business-details.md): a
   fact's dialog, filled for each tap. A field is its label over a
   full-width input, with a money sign inside its start; Edit hours is a
   day a row, its two times side by side on a phone too. */
.rs-c-manual-fact__body {
  display: flex;
  flex-direction: column;
  gap: var(--rs-space-xs);
  min-width: 0;

  [hidden] {
    display: none;
  }
}
.rs-c-manual-fact__name {
  margin: 0;
  font-weight: 600;
}
.rs-c-manual-fact__places {
  margin: 0;
  padding: var(--rs-space-box-md);
  border-radius: var(--rs-radius-lg);
  background-color: var(--rs-color-surface);
}
.rs-c-manual-fact__field {
  display: flex;
  flex-direction: column;
  gap: 0.25em;
  min-width: 0;

  label {
    font-weight: 600;
  }
  label .rs-c-help {
    font-weight: normal;
  }
  .rs-c-help {
    margin: 0;
  }
}
/* Edit menu (docs/backlog/site-editor-edit-menu.md): a link's name in
   the footer sits under its name in the menu, set in from it. */
.rs-c-manual-fact__field--sub {
  margin-block-start: calc(-1 * var(--rs-space-2xs));
  padding-inline-start: var(--rs-space-sm);
  border-inline-start: var(--rs-space-3xs) solid var(--rs-color-border);

  label {
    font-weight: normal;
  }
}
.rs-c-manual-fact__input {
  position: relative;
  display: flex;

  form.rs-c-form & input {
    width: 100%;
    min-height: 2.75rem;
  }
  form.rs-c-form &:has(.rs-c-manual-fact__prefix) input {
    padding-inline-start: 1.75em;
  }
}
.rs-c-manual-fact__prefix {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0.75em;
  display: flex;
  align-items: center;
  color: var(--rs-color-ink-muted);
  pointer-events: none;
}
.rs-c-manual-day {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--rs-space-2xs) var(--rs-space-xs);
  min-width: 0;
  margin: 0;
  padding: 0 0 var(--rs-space-xs);
  border: 0;
  border-block-end: 1px solid var(--rs-color-border);

  legend {
    float: left;
    padding: 0;
    font-weight: 600;
  }
}
.rs-c-manual-day__closed {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.38em;
  min-height: 2.75rem;

  input {
    width: 1.5rem;
    height: 1.5rem;
    margin: 0;
  }
}
.rs-c-manual-day__times {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--rs-space-xs);

  label {
    display: flex;
    flex-direction: column;
    gap: 0.25em;
    font-size: var(--rs-text-small);
  }
  form.rs-c-form & input {
    min-width: 0;
    min-height: 2.75rem;
  }
  .rs-c-manual-day:has([data-manual-day-closed]:checked) & {
    display: none;
  }
}
.rs-c-manual-closures {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;

  legend {
    padding: 0;
    font-weight: 600;
  }
  ul {
    display: flex;
    flex-direction: column;
    gap: var(--rs-space-2xs);
    margin: var(--rs-space-2xs) 0;
    padding: 0;
    list-style: none;
  }
  li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--rs-space-2xs) var(--rs-space-xs);
  }
  li label {
    display: flex;
    align-items: center;
    gap: 0.38em;
    min-height: 2.75rem;
    margin-inline-start: auto;
  }
  li input {
    width: 1.5rem;
    height: 1.5rem;
    margin: 0;
  }
  .rs-c-help {
    margin: 0;
  }
}
/* Edit text (docs/backlog/site-editor-edit-text.md): the words in one box
   the owner types in, as they look. Bold and links show as they do on a
   page; a link goes nowhere here. A fact is a placeholder chip, such as
   [Phone number], that can't be typed in; one with its own control looks
   tappable. The box keeps typed spaces as they are, so a phone's keyboard
   never adds hard spaces. */
.rs-c-manual-words {
  min-height: 2.75rem;
  max-height: 50vh;
  overflow-y: auto;
  padding: var(--rs-space-box-md);
  border: 1px solid var(--rs-color-border);
  border-radius: var(--rs-radius-sm);
  background-color: var(--rs-color-paper);
  line-height: var(--rs-text-line-body);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  cursor: text;

  &:focus-visible {
    outline: var(--rs-focus-ring);
    outline-offset: var(--rs-focus-offset);
  }
}
.rs-c-manual-words__link {
  color: var(--rs-color-link);
  text-decoration: underline;
}
.rs-c-manual-chip {
  display: inline-block;
  margin-inline: 0.1em;
  padding-inline: 0.3em;
  border-radius: var(--rs-radius-sm);
  background-color: var(--rs-color-pending);
  box-shadow: inset 0 0 0 1px var(--rs-color-pending-border);
  color: var(--rs-color-pending-ink);
  white-space: nowrap;
  user-select: all;
  -webkit-user-select: all;

  &[data-manual-fact-op] {
    cursor: pointer;
    text-decoration: underline dotted;
  }
}
.rs-c-manual-chip--code {
  font-family: ui-monospace, monospace;
  font-size: 0.9em;
}
/* A fact with words around its value (docs/backlog/site-editor-price-taps.md),
   such as a card's "From $85 a month": the words in a row as they look, the
   value as its chip, a box for each part the owner can change, and the
   layout's own words, such as "From", fixed and quieter. */
.rs-c-manual-parts {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--rs-space-2xs);
  line-height: var(--rs-text-line-body);
}
.rs-c-manual-words--part {
  display: inline-block;
  flex: 1 1 8ch;
  min-width: 8ch;
  max-height: none;
}
.rs-c-manual-fixed {
  color: var(--rs-color-ink-muted);
  text-decoration: underline dotted;
  text-underline-offset: 0.2em;
}
/* On a phone the chat is a sheet from the bottom. Its log shows about two
   and a half one-line messages (each 1lh and its padding, with the gap
   between), so most of the site stays in view. The draft ends where the
   sheet starts, so every part of a page can be scrolled into view and
   tapped in Edit. */
@media (max-width: 40rem) {
  .rs-c-edit-chat {
    position: relative;
    inset: auto;
    flex: none;
    width: auto;
    max-height: 60svh;
    border-bottom: 0;
    border-radius: var(--rs-radius-lg) var(--rs-radius-lg) 0 0;
  }
  .rs-c-edit-chat__head .rs-c-edit-chat__side {
    display: none;
  }
  /* On a phone the bar is one line (owner, 2026-11-13): "Orbit", then
     View, Edit, Chat and Menu on the right, with Publish (or Published)
     in Menu below a desktop's width (data-edit-fold-phone,
     js/edit-session.js). Below 24rem it may still wrap (above). No
     padding above or below: the bar's min-height is the app menu's, which
     its tallest control fits, so "Orbit" sits where the menu's does. */
  .rs-c-edit-bar {
    gap: var(--rs-space-2xs);
  }
  .rs-c-edit-bar__draft {
    min-width: auto;
  }
  /* A phone is the phone: the draft shows full width. */
  .rs-c-edit-bar__size {
    display: none;
  }
  .rs-c-edit-bar .rs-c-icon {
    font-size: 1.25em;
  }
  /* Settings...'s icon at the bar's size on a phone (1rem). */
  .rs-c-edit-bar [data-edit-settings] .rs-c-icon {
    font-size: 1rem;
  }
  /* Publish says changes are waiting; the status says so to screen
     readers. */
  .rs-c-edit-manual__bar:has([data-manual-action="publish"]) .rs-c-edit-manual__status {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  .rs-c-edit-chat #edit-log {
    flex: 0 1 auto;
    /* A bubble is 1lh with --rs-space-xs above and below; the log adds
       --rs-space-xs between bubbles and at its top. */
    line-height: var(--rs-text-line-body);
    max-height: calc(2.5 * (1lh + 2 * var(--rs-space-xs)) + 3 * var(--rs-space-xs));
  }
}
/* The chat and Manual panels are the design constraint, so in the Editor
   the dev tray's button (local development only) keeps out of their way:
   on a phone it stands above the tallest sheet, 60svh, so it never covers
   Undo when Manual's bar wraps, and its panel opens from the top; on a
   desktop it takes the lower corner the panel doesn't. Production has no
   tray, so nothing here changes its layout. */
@media (max-width: 40rem) {
  body:has(#edit-session) .rs-c-dev-tray__toggle {
    bottom: calc(60svh + var(--rs-dev-tray-edge));
  }
  body:has(#edit-session) .rs-c-dev-tray__panel {
    inset: var(--rs-dev-tray-edge) auto auto var(--rs-dev-tray-edge);
    max-height: calc(100dvh - 2 * var(--rs-dev-tray-edge));
  }
}
@media (width > 40rem) {
  body:has(#edit-session [data-side-left]:not([hidden])) .rs-c-dev-tray__toggle {
    right: var(--rs-dev-tray-edge);
    left: auto;
  }
  body:has(#edit-session [data-side-left]:not([hidden])) .rs-c-dev-tray__panel {
    inset: auto var(--rs-dev-tray-edge) calc(var(--rs-dev-tray-edge) + var(--rs-dev-tray-toggle-size) + var(--rs-space-xs)) auto;
  }
}

/* Paragraphs in a section keep a little space between them (/ and /try). */
.rs-scope-make .rs-c-marketing-section p + p {
  margin-block-start: 0.75rem;
}
/* The Editor bar's Menu (js/edit-session.js): Back to Edit and Undo,
   always, and, when the bar's controls don't fit on one line (a tablet's
   width, large text), the fewest it can of Settings..., Add page and
   Preview after them. It shows below the bar at its end, with every
   control's words. data-measure lays the bar out on one line, the draft's
   status no narrower than its words, for the script to measure. */
.rs-c-edit-bar[data-measure] {
  flex-wrap: nowrap;
  /* Overflow to the right, where scrollWidth counts it. */
  justify-content: flex-start;
  /* Measured with wider gaps than it shows, so the bar that fits keeps
     room to spare: nothing crammed (owner, 2026-11-13). */
  gap: var(--rs-space-lg);

  .rs-c-edit-bar__draft {
    min-width: min-content;
  }
}
.rs-c-edit-bar__menu[hidden] {
  display: none;
}
.rs-c-edit-bar__more:popover-open {
  position: fixed;
  inset: auto var(--rs-space-xs) auto auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--rs-space-2xs);
  width: max-content;
  max-width: calc(100vw - 2 * var(--rs-space-xs));
  max-height: 80dvh;
  overflow-y: auto;
  margin: var(--rs-space-3xs) 0 0;
  padding: var(--rs-space-sm);
  border: 1px solid var(--rs-color-border);
  border-radius: var(--rs-radius-lg);
  background-color: var(--rs-color-paper);
  color: var(--rs-color-ink);
  box-shadow: var(--rs-dialog-shadow);
}
.rs-c-edit-bar .rs-c-edit-bar__more {
  .rs-c-btn {
    justify-content: flex-start;
  }
  .rs-c-edit-bar__word {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
  }
  [data-edit-settings] {
    font-size: inherit;
  }
  .rs-c-icon,
  [data-edit-settings] .rs-c-icon {
    font-size: 1.25em;
  }
}
/* The draft's status in Menu: "Saved", or how many changes aren't live
   yet, above Undo. */
.rs-c-edit-bar__menu-status {
  max-width: 20em;
  color: var(--rs-color-ink-muted);

  p {
    margin: 0;
  }
}
body.rs-orbit-app main .rs-c-edit-bar__menu-status p.rs-c-edit-manual__status {
  overflow: visible;
  white-space: normal;
}
.rs-c-edit-bar__menu-status:empty {
  display: none;
}
/* Published, in Publish's place once nothing is waiting: a state, not an
   action, so it keeps Publish's colour rather than looking faded. */
button.rs-c-btn.rs-c-edit-bar__published:disabled {
  opacity: 1;
  cursor: default;
}

/* Without JavaScript. The shell's early script puts "js" on <html>
   (orbitSettingsEarlyScript), so these apply only when scripts don't run.
   A link that opens a dialog with JavaScript goes to its full page instead,
   so its "..." hides. */
html:not(.js) [data-dialog-trail] {
  display: none;
}
/* A link that may open a dialog (the footer's Try it) shows its "..." only
   where the page holds that dialog: app.js marks it then. */
a[data-opens-dialog]:not([aria-haspopup]) [data-dialog-trail] {
  display: none;
}
/* The editor's tabs switch panes with JavaScript; without it a phone shows
   both panes, code first, so the paste box is always there. */
html:not(.js) form.rs-c-editor-layout .rs-c-editor-tabs {
  display: none !important;
}
html:not(.js) form.rs-c-editor-layout .rs-c-editor-preview-code {
  display: flex !important;
  flex-direction: column;
}
/* A large page's code view waits for JavaScript; without it, show it now. */
html:not(.js) #code-input[data-deferred-view] {
  display: block;
}
html:not(.js) #editor-code-pending {
  display: none;
}

/* Skip to content: hidden until the keyboard reaches it, first on the page. */
.rs-c-skip-link {
  position: absolute;
  inset-block-start: var(--rs-space-xs);
  inset-inline-start: var(--rs-space-xs);
  z-index: 1300; /* above the full-screen editor */
  padding: var(--rs-space-xs) var(--rs-space-sm);
  border-radius: var(--rs-radius-sm);
  background-color: var(--rs-color-paper);
  color: var(--rs-color-link);
}
.rs-c-skip-link:not(:focus) {
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
/* High contrast (forced colours, as on Windows) drops backgrounds and
   paints every border one colour. Buttons get an edge, and a choice shown
   only by a background or a border colour shows in the system's highlight
   colour instead. */
@media (forced-colors: active) {
  .rs-c-btn {
    border: 0.0625rem solid ButtonText;
  }
  .rs-c-nav-link[aria-current="page"]::after {
    forced-color-adjust: none;
    background-color: CanvasText;
  }
  .rs-c-switch .rs-c-btn[aria-pressed="true"],
  form.rs-c-editor-layout .rs-c-editor-tabs button[aria-selected="true"],
  .rs-c-manual-focus__place:has(:checked) span {
    forced-color-adjust: none;
    background-color: Highlight;
    color: HighlightText;
  }
  .rs-c-builder-steps li[aria-current="step"] {
    border-top-color: Highlight;
  }
  .rs-c-manual-photo__tile:has(:checked) {
    outline-color: Highlight;
  }
  .rs-c-edit-ask__level:has(:checked) {
    border-color: Highlight;
    outline: 0.125rem solid Highlight;
  }
}
