/* The landing's own styles, on top of Kurth Labs Design's static.css (skin inscribed, accent lapis). Colours, type sizes and focus
   come from Kurth Labs Design's tokens; this file is layout and the few shapes that are the landing's alone. It sits outside
   every cascade layer, so it wins over static.css without specificity tricks. */

html {
  scroll-padding-top: 4.5rem;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  background: var(--m-bg);
  color: var(--m-text);
  font-family: var(--m-font-sans);
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

.wrap {
  width: 100%;
  max-width: 84rem;
  margin-inline: auto;
  padding-inline: max(1rem, env(safe-area-inset-left));
  box-sizing: border-box;
}
@media (min-width: 720px) {
  .wrap {
    padding-inline: 2rem;
  }
}

.skip {
  position: absolute;
  left: 0.5rem;
  top: -4rem;
  z-index: 20;
  padding: 0.5rem 0.75rem;
  background: var(--m-bg-elevated);
  color: var(--m-text);
  border: 1px solid var(--m-border-strong);
  border-radius: var(--m-radius-md);
}
.skip:focus {
  top: 0.5rem;
}
a:focus-visible,
button:focus-visible {
  outline: var(--m-focus-width, 2px) solid var(--m-focus);
  outline-offset: 2px;
}

/* ─── Header ─────────────────────────────────────────────── */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--m-bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--m-border);
}
.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.5rem;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  color: var(--m-text);
  text-decoration: none;
  border-radius: var(--m-radius-sm);
}
.wordmark {
  font-family: var(--m-font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
}
.top-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.top-link {
  /* A 44 px target (#556): the row is tall enough, the link fills it. */
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--m-text-muted);
  text-decoration: none;
  white-space: nowrap;
}
.top-link:hover {
  color: var(--m-text);
}
@media (max-width: 720px) {
  .top-link {
    display: none;
  }
  .top-link.top-link-keep {
    display: inline-flex;
  }
  .top-nav {
    gap: 0.875rem;
  }
}
.top-link[aria-current="page"] {
  color: var(--m-text);
}

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(2rem, 5vw, 4rem);
  border-bottom: 1px solid var(--m-border);
}
.hero-copy,
.hero-map {
  position: relative;
}
.hero-copy {
  max-width: 84rem;
}
.hero-title {
  margin: 0.75rem 0 0;
  max-width: 14ch;
  font-family: var(--m-font-display);
  font-size: clamp(2.5rem, 7.2vw, 5rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.lede {
  max-width: 40rem;
  margin: 1.25rem 0 0;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--m-text-muted);
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-map {
  margin-top: clamp(2rem, 5vw, 3.5rem);
}
.map-frame {
  border: 1px solid var(--m-border-strong);
  border-radius: var(--m-radius-lg);
  background: var(--m-bg-elevated);
  box-shadow: var(--m-shadow-raised);
  overflow: hidden;
}
.map-frame figure {
  margin: 0;
}
/* Three layouts of one map, each fitted at build time: wide (roomy cards) from 1280px, compact (the narrowest left-to-right
   layout, 954px) from 1024px, vertical below that. Only one is displayed, so assistive technology reads one map. */
.map-compact,
.map-vertical {
  display: none;
}
@media (max-width: 1279px) {
  .map-wide {
    display: none;
  }
  .map-compact {
    display: block;
  }
}
@media (max-width: 1023px) {
  .map-compact {
    display: none;
  }
  .map-vertical {
    display: block;
  }
}
/* The vertical map is at least 396px wide however narrow it is asked to be; a phone's column is narrower, so it is scaled. */
@media (max-width: 400px) {
  .map-vertical figure {
    zoom: 0.8;
  }
}
@media (min-width: 401px) and (max-width: 440px) {
  .map-vertical figure {
    zoom: 0.88;
  }
}
.map-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.map-controls[hidden] {
  display: none;
}
.map-caption {
  max-width: 46rem;
  margin: 0.75rem 0 0;
}

/* ─── Sections ───────────────────────────────────────────── */
.section {
  padding-block: clamp(3rem, 7vw, 5.5rem);
  border-bottom: 1px solid var(--m-border);
}
.section-title {
  margin: 0.5rem 0 0;
  max-width: 24ch;
  font-family: var(--m-font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.cells {
  margin-top: 2.5rem;
}
.cell-title {
  margin: 0 0 0.5rem;
  font-family: var(--m-font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.cells .m-text {
  margin: 0;
}
/* Six cells fill two rows of three; a phone gets one column from Kurth Labs Design's own container query. */
.cells .m-design-cells {
  --m-design-cols: 3;
}

.steps {
  display: grid;
  gap: 2rem 1.5rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1040px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}
.step {
  display: flex;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--m-border-strong);
}
.step-n {
  flex: none;
  font-family: var(--m-font-display);
  font-size: 2rem;
  line-height: 1;
  color: var(--m-signal-text);
}
.step-title {
  margin: 0 0 0.25rem;
  font-family: var(--m-font-display);
  font-size: 1.25rem;
  font-weight: 600;
}
.step .m-text {
  margin: 0;
}

.tessera {
  display: grid;
  gap: 2rem 4rem;
}
@media (min-width: 900px) {
  .tessera {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .tessera > p {
    grid-column: 2;
  }
}
.tessera .m-facts {
  margin: 0;
}

/* ─── What's new, terms ──────────────────────────────────── */
.whatsnew {
  padding-block: 1.25rem;
  border-block: 1px solid var(--m-border);
  background: var(--m-bg-subtle);
}
.whatsnew-line {
  margin: 0;
  max-width: 60rem;
  font-size: 1.0625rem;
  line-height: 1.5;
}
.terms-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.6rem;
}

/* ─── Eval-gated labels demo ─────────────────────────────── */
.labels {
  margin-top: 2rem;
  max-width: 52rem;
}
.lbl-visual {
  padding: 1.25rem;
  border: 1px solid var(--m-border-strong);
  border-radius: var(--m-radius-lg);
  background: var(--m-bg-elevated);
}
.lbl-rail,
.lbl-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.lbl-rail {
  margin-bottom: 0.75rem;
}
.lbl-track {
  display: block;
  grid-column: 1;
  --lbl-pos: 2;
  transform: translateX(calc(var(--lbl-pos) * (100% + 0.75rem)));
}
@media (prefers-reduced-motion: no-preference) {
  .lbl-track {
    transition: transform 150ms ease;
  }
}
.labels[data-step="0"] .lbl-track,
.labels[data-step="1"] .lbl-track {
  --lbl-pos: 0;
}
.lbl-chip {
  background: var(--m-accent);
  color: var(--m-accent-contrast);
  font-family: var(--m-font-mono);
}
.lbl-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  padding: 0.75rem;
  border: 1px solid var(--m-border);
  border-radius: var(--m-radius-md);
  background: var(--m-bg);
  min-height: 6.5rem;
}
.lbl-version {
  font-family: var(--m-font-mono);
  font-weight: 600;
}
.lbl-held,
.lbl-refused {
  display: none;
}
.labels[data-step="0"] .lbl-held[data-held="0 1"],
.labels[data-step="1"] .lbl-held[data-held="0 1"],
.labels[data-step="2"] .lbl-held[data-held="2"] {
  display: inline;
  color: var(--m-text-muted);
}
.labels[data-step="1"] .lbl-v8 {
  border-color: var(--m-danger);
  border-width: 2px;
}
.labels[data-step="1"] .lbl-v8 .lbl-refused {
  display: inline;
  color: var(--m-text);
  font-weight: 600;
}
.labels[data-step="2"] .lbl-v9 {
  border-color: var(--m-success);
  border-width: 2px;
}
.labels-steps {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.4rem;
  color: var(--m-text-muted);
}
.labels-steps [aria-current="step"] {
  color: var(--m-text);
  font-weight: 600;
}
@media (max-width: 480px) {
  .lbl-visual {
    padding: 0.75rem;
  }
  .lbl-rail,
  .lbl-cards {
    gap: 0.4rem;
  }
  .lbl-track {
    transform: translateX(calc(var(--lbl-pos) * (100% + 0.4rem)));
  }
  .lbl-card {
    padding: 0.5rem;
    min-width: 0;
  }
  .lbl-card .m-pill {
    max-width: 100%;
    letter-spacing: 0;
    padding-inline: 0.4rem;
  }
  .lbl-eval {
    display: none;
  }
}

/* ─── Invite ─────────────────────────────────────────────── */
.invite-wrap {
  display: grid;
  gap: 2rem 4rem;
}
/* The note about Tessera sits a normal paragraph gap under the heading or the lede. */
.invite-wrap .m-text {
  margin: 1.25rem 0 0;
}
@media (min-width: 900px) {
  .invite-wrap {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}
.invite {
  max-width: 30rem;
  width: 100%;
  display: grid;
}
.invite-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  grid-area: 1 / 1;
}
.invite-cta-slot {
  display: inline-grid;
  max-inline-size: 100%;
  vertical-align: middle;
}
/* The slot is as big as what it shows: the link at its natural size when open
   (exactly as before the switch), the note when closed. Closed is known at first
   paint, so only a rare run-time flip shifts the layout slightly. */
.invite-cta-slot > * { grid-area: 1 / 1; align-self: center; justify-self: start; }
.invite-cta-slot [data-invite-cta] { max-inline-size: 100%; }
.invite-closed-note {
  color: var(--m-text-muted);
  max-width: 28ch;
  line-height: 1.4;
  font-size: 0.875rem;
}

.invite-result[hidden] {
  display: none;
}
/* The hidden one of link and note takes no space (the slot sizes to what shows). The form keeps its box. */
[data-invite-cta][hidden], [data-invite-closed][hidden] { display: none !important; }
.invite-form[hidden] { display: flex !important; visibility: hidden; opacity: 0; pointer-events: none; }
/* A server-known closed page starts compact; retain that footprint until it
   actually opens. Later live close updates keep the expanded reserved box. */
.invite[data-compact-closed="true"] .invite-form[hidden] { display: none !important; }
/* Short visual header copy at every width; its full DOM text remains readable.
   Empty generated-content alternative prevents a second spoken short label. */
.top-nav [data-invite-closed] { font-size: 0; max-width: none; }
/* Plain label first for engines without alternative text in content (they drop the second line). */
.top-nav [data-invite-closed]::after { font-size: 0.875rem; white-space: nowrap; content: "Private beta"; content: "Private beta" / ""; }
.invite-note-input {
  min-height: 6.5rem;
  resize: vertical;
}
.turnstile-slot {
  min-height: 65px;
}
.invite-submit {
  align-self: flex-start;
}
.invite .m-hint[hidden],
.invite .m-field-error[hidden] {
  display: none;
}
.invite-result {
  display: block;
  grid-area: 1 / 1;
  align-self: start;
  padding: 1rem 1.25rem;
  border: 1px solid var(--m-border-strong);
  border-left: 3px solid var(--m-signal);
  border-radius: var(--m-radius-md);
  background: var(--m-bg-elevated);
  font-size: 1rem;
}

/* Phones: "Also from Kurth Labs" goes on its own line, so the separator would be left dangling. */
@media (max-width: 640px) {
  .foot-dot {
    display: none;
  }
  .foot-also {
    display: block;
  }
}

/* ─── Contact ────────────────────────────────────────────── */
.contact {
  max-width: 34rem;
  width: 100%;
  margin-top: 2rem;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-form[hidden],
.contact-box[hidden],
.contact .m-hint[hidden],
.contact .m-field-error[hidden] {
  display: none;
}
.contact-message-input {
  min-height: 9rem;
  resize: vertical;
}
.contact-select {
  max-width: 100%;
}
.contact-submit {
  align-self: flex-start;
}
/* The honeypot: out of sight and out of the tab order, but present for a bot that fills every field. */
.contact-trap {
  position: absolute;
  inset-inline-start: -10000px;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
}
.contact-box {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--m-border-strong);
  border-left: 3px solid var(--m-signal);
  border-radius: var(--m-radius-md);
  background: var(--m-bg-elevated);
  font-size: 1rem;
}
.contact-box p {
  margin: 0;
}
.contact-box-title {
  font-weight: 600;
}
.contact-page [hidden],
.contact-note[hidden] {
  display: none;
}
.contact-note {
  max-width: 34rem;
  margin-top: 2rem;
}

/* ─── Prose pages ────────────────────────────────────────── */
.prose-page {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
.prose-page .m-prose {
  max-width: 46rem;
  margin-top: 1.5rem;
}
.page-title {
  margin: 0.5rem 0 0;
  max-width: 22ch;
  font-family: var(--m-font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* ─── Footer ─────────────────────────────────────────────── */
.foot {
  padding-block: 2.5rem;
}
.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}
.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
}
.foot-nav a {
  /* A 44 px target (#556); the row gap is in the target. */
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}
.foot-note {
  margin: 0;
  flex-basis: 100%;
}
.foot-made {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.6rem;
}
/* Kurth Labs Design's MadeBy markup uses Tailwind utilities the landing does not compile; its three shapes are here. */
.m-made-by {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  color: var(--m-text-muted);
}
.m-made-by-mark {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
}

/* ─── Docs ───────────────────────────────────────────────── */
.docs-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  padding-block: 1.5rem 3rem;
}
.docs-side,
.docs-toc {
  display: none;
}
.docs-menu {
  border: 1px solid var(--m-border);
  border-radius: var(--m-radius-md);
  background: var(--m-bg-elevated);
}
/* The phone menu is a native popover (#612): Escape, a tap outside or following a link closes it, with no script (docs
   pages ship none). Where popovers are not supported the list shows inline under the button instead. */
.docs-menu-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  border: 0;
  border-radius: inherit;
  background: none;
  color: inherit;
  font: inherit;
  text-align: start;
  cursor: pointer;
}
.docs-menu-panel {
  position: fixed;
  inset: 4.5rem 1rem auto;
  width: auto;
  max-height: calc(100dvh - 6rem);
  margin: 0;
  overflow-y: auto;
  border: 1px solid var(--m-border);
  border-radius: var(--m-radius-md);
  background: var(--m-bg-elevated);
  color: var(--m-text);
  box-shadow: var(--m-shadow-raised);
}
@supports not selector(:popover-open) {
  .docs-menu-panel {
    display: block;
    position: static;
    max-height: none;
    border: 0;
    box-shadow: none;
  }
}
.docs-menu-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.docs-menu-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--m-text-subtle);
}
.docs-menu-title {
  font-weight: 600;
}
.docs-chevron {
  flex: none;
  transition: transform 120ms ease;
}
.docs-menu:has(.docs-menu-panel:popover-open) .docs-chevron {
  transform: rotate(180deg);
}
@media (prefers-reduced-motion: reduce) {
  .docs-chevron {
    transition: none;
  }
}
.docs-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.docs-menu .docs-link {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
}
.docs-prose code,
.docs-op code,
.docs-lede {
  overflow-wrap: anywhere;
}
.docs-anchor {
  margin-left: 0.4em;
  color: var(--m-text-subtle);
  text-decoration: none;
  opacity: 0;
}
.docs-prose :is(h2, h3):hover .docs-anchor,
.docs-op h3:hover .docs-anchor,
.docs-anchor:focus-visible {
  opacity: 1;
}
@media (hover: none) {
  .docs-anchor {
    opacity: 0.6;
  }
}
.docs-copy {
  display: block;
  margin: -0.5rem 0 1rem auto;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--m-border-strong);
  border-radius: var(--m-radius-sm);
  background: var(--m-bg-elevated);
  color: var(--m-text);
  font: inherit;
  font-size: 0.8125rem;
  cursor: pointer;
}
.docs-responses summary {
  cursor: pointer;
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
}
.docs-reference-index .docs-link,
.docs-reference-index summary {
  min-height: 44px;
  box-sizing: border-box;
  padding-block: 0.65rem;
  overflow-wrap: anywhere;
}
.docs-reference-index summary {
  margin-top: 0;
}
.docs-reference-index .docs-link {
  display: block;
}
.docs-reference-index .docs-link,
.docs-reference-back .docs-link {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.docs-reference-index code {
  word-break: normal;
  overflow-wrap: normal;
  /* Explicit wbr nodes still wrap; implicit breaks within path segments do not. */
  white-space: nowrap;
}

.docs-menu nav {
  padding: 1rem;
}
.docs-group + .docs-group {
  margin-top: 1.25rem;
}
.docs-group-title {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--m-text-subtle);
}
.docs-links {
  margin: 0;
  padding: 0;
  list-style: none;
}
.docs-link {
  display: block;
  padding: 0.3rem 0.6rem;
  border-left: 2px solid transparent;
  color: var(--m-text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
}
.docs-link:hover {
  color: var(--m-text);
}
.docs-link[aria-current="page"] {
  border-left-color: var(--m-signal);
  color: var(--m-text);
  font-weight: 600;
}
.docs-article {
  min-width: 0;
  max-width: 48rem;
}
.docs-title {
  max-width: none;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}
.docs-lede {
  margin-top: 0.75rem;
}
.docs-prose {
  margin-top: 1.75rem;
}
.docs-prose h2,
.docs-prose h3 {
  scroll-margin-top: 5rem;
}
.docs-prose pre {
  overflow-x: auto;
  padding: 0.9rem 1rem;
  border: 1px solid var(--m-border);
  border-radius: var(--m-radius-md);
  background: var(--m-bg-elevated);
  font-size: 0.875rem;
  line-height: 1.5;
}
.docs-prose pre code {
  padding: 0;
  background: none;
  border: 0;
}
.docs-table {
  overflow-x: auto;
  margin-block: 1rem;
}
.docs-table table {
  display: table;
  overflow: visible;
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.docs-table th,
.docs-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--m-border);
  text-align: left;
  vertical-align: top;
}
.docs-table th {
  font-weight: 600;
  color: var(--m-text-muted);
}
/* Commands may wrap at spaces, never in the middle of an identifier. */
.docs-table td:first-child > code {
  overflow-wrap: normal;
  word-break: normal;
}
/* API names are indivisible; the named, focusable wrapper owns any overflow. */
.docs-op .docs-table td:first-child > code {
  white-space: nowrap;
}
/* The docs column is narrow on phones and beside the tablet navigation.
   Explicit roles in the generator retain table/row/header/cell semantics. */
@media (max-width: 899px) {
  .docs-op .docs-table table,
  .docs-op .docs-table tbody {
    display: block;
    width: 100%;
  }
  .docs-op .docs-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .docs-op .docs-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    margin-bottom: 1rem;
    border: 1px solid var(--m-border);
  }
  .docs-op .docs-table td {
    display: block;
    min-width: 0;
  }
  .docs-op .docs-table td:first-child,
  .docs-op .docs-table td:last-child {
    grid-column: 1 / -1;
  }
  .docs-op .docs-table td:not(:first-child)::before {
    content: attr(data-label) ": ";
    font-weight: 600;
  }
  /* A field with no description renders an empty cell: no bare "Description:" label for it (#784). */
  .docs-op .docs-table td[data-label="Description"]:empty::before {
    content: none;
  }
}
/* Architecture diagrams: inline SVG drawn with the Kurth Labs Design tokens, so they follow the light and dark themes. The
   figure breaks out a little into the gap beside the column; under 700px the SVG keeps its natural size and the
   region scrolls sideways, with edge fades (CSS only) and a hint. */
.diagram {
  margin: 1.5rem 0;
  border: 1px solid var(--m-border);
  border-radius: var(--m-radius-md);
  background: var(--m-bg-elevated);
}
@media (min-width: 768px) {
  .diagram {
    margin-right: -1.5rem;
  }
}
.diagram-scroll {
  overflow-x: auto;
  padding: 0.5rem;
  background:
    linear-gradient(to right, var(--m-bg-elevated) 30%, transparent) left center / 2rem 100% no-repeat local,
    linear-gradient(to left, var(--m-bg-elevated) 30%, transparent) right center / 2rem 100% no-repeat local,
    linear-gradient(to right, color-mix(in srgb, var(--m-text) 22%, transparent), transparent) left center / 0.9rem 100% no-repeat scroll,
    linear-gradient(to left, color-mix(in srgb, var(--m-text) 22%, transparent), transparent) right center / 0.9rem 100% no-repeat scroll;
}
.diagram svg {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 700px) {
  .diagram .d-w780 {
    min-width: 780px;
  }
  .diagram .d-w800 {
    min-width: 800px;
  }
  .diagram figcaption::before {
    content: "Scroll sideways to see the whole diagram" / "";
    display: block;
    margin-bottom: 0.35rem;
    font-style: italic;
    color: var(--m-text-subtle);
  }
}
.diagram figcaption {
  padding: 0.5rem 0.75rem 0.75rem;
  border-top: 1px solid var(--m-border);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--m-text-muted);
}
.diagram svg text {
  font-family: var(--m-font-sans);
}
.d-box {
  fill: var(--m-bg);
  stroke: var(--m-border-strong);
  stroke-width: 1;
}
.d-argus {
  fill: var(--m-accent-soft);
  stroke: var(--m-accent);
}
.d-inner {
  fill: var(--m-bg-elevated);
  stroke: var(--m-accent);
}
.d-plat {
  fill: var(--m-bg-subtle);
}
.d-client {
  fill: var(--m-bg);
  stroke-dasharray: 4 3;
}
.d-store {
  fill: var(--m-bg-inset);
}
.d-t {
  fill: var(--m-text);
  font-size: 14px;
  font-weight: 600;
}
.d-s {
  fill: var(--m-text-muted);
  font-size: 12.5px;
}
.d-m {
  fill: var(--m-text);
  font-size: 13px;
}
.d-line {
  fill: none;
  stroke: var(--m-text-muted);
  stroke-width: 1.4;
}
.d-dash {
  stroke-dasharray: 5 4;
}
.d-life {
  stroke: var(--m-border-strong);
  stroke-width: 1;
  stroke-dasharray: 3 4;
}
.d-headfill {
  fill: var(--m-text-muted);
}
.d-frame {
  fill: none;
  stroke: var(--m-border-strong);
  stroke-dasharray: 6 4;
}
.d-note {
  fill: var(--m-bg);
  stroke: var(--m-accent);
}
.d-dot {
  fill: var(--m-accent);
}
.d-dotn {
  fill: var(--m-accent-contrast);
  font-size: 11px;
  font-weight: 700;
}
.docs-steps {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--m-border);
}
.docs-step {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  max-width: 48%;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--m-border);
  border-radius: var(--m-radius-md);
  color: var(--m-text);
  text-decoration: none;
}
.docs-step:hover {
  border-color: var(--m-border-strong);
}
.docs-step-next {
  margin-left: auto;
  text-align: right;
}
.docs-op {
  margin-block: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--m-border);
}
.docs-op h3 {
  margin-top: 0;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
}
.docs-route {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem;
  margin: 0.25rem 0 0.75rem;
}
.docs-method {
  padding: 0.1rem 0.5rem;
  border: 1px solid var(--m-border-strong);
  border-radius: var(--m-radius-sm);
  font-family: var(--m-font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.docs-method-post,
.docs-method-put,
.docs-method-patch,
.docs-method-delete {
  color: var(--m-signal-text);
}
.docs-meta {
  margin: 0.25rem 0;
  font-size: 0.875rem;
  color: var(--m-text-muted);
}
.docs-label {
  margin: 1rem 0 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
}
.docs-list {
  margin: 0.25rem 0;
  padding-left: 1.25rem;
  font-size: 0.9375rem;
}
.docs-step {
  min-height: 2.75rem;
}
@media (min-width: 768px) {
  .docs-shell {
    grid-template-columns: 13.75rem minmax(0, 1fr);
    gap: 2.5rem;
  }
  .docs-menu {
    display: none;
  }
  .docs-side {
    display: block;
    position: sticky;
    top: 4.5rem;
    align-self: start;
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
  }
}
@media (min-width: 1200px) {
  .docs-shell {
    grid-template-columns: 13.75rem minmax(0, 1fr) 12rem;
    gap: 3rem;
  }
  .docs-toc {
    display: block;
    position: sticky;
    top: 4.5rem;
    align-self: start;
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
  }
}
@media (pointer: coarse) {
  .docs-link {
    display: flex;
    align-items: center;
    min-height: 2.75rem;
  }
}

/* The hero kicker is a link to the invite form (Kurth Labs Design review on #423): one action at the top, a 44px target. */
.hero-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
}
.hero-kicker:hover,
.hero-kicker:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* #invite is the section's heading, so a jump there moves focus to it (keyboard and screen readers land on the form's
   heading, not only scroll). Kurth Labs Design decides how a focused heading looks. */
.invite-section h2[tabindex="-1"] {
  scroll-margin-top: 6rem;
}

/* BEGIN #554: docs code-block overflow cue (independent of API reference/table styles). */
.docs-code {
  min-width: 0;
}
.docs-copy-status,
.docs-copy-help {
  color: var(--m-text-muted);
  font-size: 0.8125rem;
}
.docs-copy-status:empty {
  display: none;
}
.docs-code pre {
  /* Local covers hide the decorative edge shadows when content fits or an edge is reached. */
  background:
    linear-gradient(to right, var(--m-bg-elevated) 1rem, transparent 2rem) left center / 2rem 100% local,
    linear-gradient(to left, var(--m-bg-elevated) 1rem, transparent 2rem) right center / 2rem 100% local,
    radial-gradient(farthest-side at 0 50%, var(--docs-code-shadow, var(--m-border-strong)), transparent) left center / 0.75rem 100% scroll,
    radial-gradient(farthest-side at 100% 50%, var(--docs-code-shadow, var(--m-border-strong)), transparent) right center / 0.75rem 100% scroll;
  background-repeat: no-repeat;
  background-color: var(--m-bg-elevated);
  background-clip: padding-box;
}
/* END #554: docs code-block overflow cue. */

/* ─── Print (#556) ───────────────────────────────────────── */
/* A printed docs page is the article: no header, footer, menus, page links or Copy buttons, code wrapped instead of
   cut off, and a note on each collapsed API response (opening ~130 of them would make the reference very long). */
@media print {
  .top,
  .foot,
  .skip,
  .docs-menu,
  .docs-side,
  .docs-toc,
  .docs-steps,
  .docs-copy,
  .docs-copy-status,
  .docs-reference-back {
    display: none !important;
  }
  .docs-shell {
    display: block;
  }
  .docs-prose pre,
  .docs-prose pre code {
    overflow: visible;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
  .docs-responses:not([open]) > summary::after {
    content: " (open on screen to read)";
    font-weight: 400;
  }
}
