/* signrs public site. Hand-written; no framework, no web font, no third party.
   Visual direction: spec/08 §5.4. Light paper, ink, and one accent, a
   "verified" green, used only where something has been verified (D-11). */

:root {
  --brand: #1b2a4a;
  --brand-dark: #0f1a31;
  --brand-tint: #e9ecf2;
  --verified: #1d7348;
  --verified-tint: #e5f2ea;
  --verified-on-ink: #5fd39a;
  --ink: #17191e;
  --ink-2: #3c414d;
  --muted: #5a5f6b;
  --line: #e3e1d9;
  --paper: #fafaf7;
  --paper-2: #f2f1ec;
  --card: #ffffff;
  --code-bg: #0f1a31;
  --on-ink: #f3f4f7;
  --on-ink-muted: #c3c9d6;
  --radius: 10px;
  --shadow: 0 1px 2px rgb(23 25 30 / 6%), 0 6px 20px rgb(23 25 30 / 6%);
  --shadow-lg: 0 2px 4px rgb(23 25 30 / 6%), 0 18px 40px rgb(23 25 30 / 12%);
  --mono: ui-monospace, 'SF Mono', 'Cascadia Code', Menlo, Consolas, monospace;
  /* Until D-10 picks a typeface: a system serif for headings, so the pages
     read as documents rather than as a dashboard. */
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, ui-serif, serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  color-scheme: light;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--brand);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--brand-dark);
}

a:focus-visible,
.button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--verified);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(2.2rem, 3.4vw + 1rem, 3.4rem);
}

h2 {
  font-size: clamp(1.55rem, 1.3vw + 1rem, 2.1rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1em;
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  background: var(--card);
  padding: 0.5rem 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.container {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container.narrow {
  max-width: 46rem;
}

/* Brand */

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.logo-word {
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.icon {
  flex: none;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgb(250 250 247 / 94%);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 4rem;
}

.home-link {
  text-decoration: none;
}

.main-nav ul,
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav ul {
  display: flex;
  gap: 1.75rem;
}

.main-nav a,
.nav-signin {
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 550;
  font-size: 0.95rem;
}

.main-nav a:hover,
.nav-signin:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* Resources menu: a <details> disclosure, so it needs no script (spec/08 §4.1). */

.nav-menu {
  position: relative;
}

.nav-menu summary {
  cursor: pointer;
  list-style: none;
  color: var(--ink-2);
  font-weight: 550;
  font-size: 0.95rem;
}

.nav-menu summary::-webkit-details-marker {
  display: none;
}

.nav-menu summary::after {
  content: '';
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  margin-left: 0.4rem;
  border-right: 2px solid currentcolor;
  border-bottom: 2px solid currentcolor;
  transform: translateY(-0.2rem) rotate(45deg);
}

.nav-menu[open] summary::after {
  transform: translateY(0.05rem) rotate(-135deg);
}

.nav-menu summary:hover {
  color: var(--ink);
}

.main-nav .nav-menu ul {
  display: block;
  position: absolute;
  top: calc(100% + 0.75rem);
  left: -0.75rem;
  z-index: 6;
  min-width: 13rem;
  padding: 0.4rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.main-nav .nav-menu a {
  display: block;
  padding: 0.45rem 0.75rem;
  border-radius: 6px;
}

.main-nav .nav-menu a:hover {
  background: var(--paper-2);
  text-decoration: none;
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-signer {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.nav-signer:hover {
  color: var(--ink);
  text-decoration: underline;
}

.phone-menu {
  display: none;
  position: relative;
}

.phone-menu summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border: 1px solid #c9c6bb;
  border-radius: 8px;
}

.phone-menu summary::-webkit-details-marker {
  display: none;
}

.phone-menu nav {
  position: absolute;
  right: 0;
  top: calc(100% + 0.6rem);
  z-index: 6;
  width: min(16rem, calc(100vw - 2.5rem));
  padding: 0.4rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.phone-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.phone-menu a {
  display: block;
  padding: 0.6rem 0.75rem;
  border-radius: 6px;
  color: var(--ink);
  text-decoration: none;
}

.phone-menu a:hover {
  background: var(--paper-2);
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid var(--brand);
  transition: background 0.15s ease;
}

.button:hover {
  background: var(--brand-dark);
  color: #fff;
}

.button .icon {
  width: 18px;
  height: 18px;
}

.button-small {
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
}

.button-quiet {
  background: transparent;
  color: var(--ink);
  border-color: #c9c6bb;
}

.button-quiet:hover {
  background: var(--card);
  color: var(--ink);
}

.button-on-dark {
  background: #fff;
  color: var(--brand);
  border-color: #fff;
}

.button-on-dark:hover {
  background: var(--brand-tint);
  color: var(--brand);
}

/* The one label a page may have (§5.4), in the hero, in sentence case. */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 1.1rem;
}

.eyebrow::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--verified);
}

.section {
  padding: 5.5rem 0;
}

.section-alt {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-title {
  max-width: 36rem;
  margin-bottom: 2rem;
}

/* Hero */

.hero {
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 3.5rem;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.hero-lead {
  font-size: 1.2rem;
  color: var(--ink-2);
  max-width: 32rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Pictures of the product (§5.4): real captures, framed, never redrawn. */

.shot {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-lg);
}

.phone {
  width: min(17rem, 100%);
  margin: 0 auto;
  padding: 0.6rem;
  border-radius: 2.6rem;
  background: var(--ink);
  box-shadow: var(--shadow-lg);
}

.phone-screen {
  width: 100%;
  border-radius: 2rem;
}

/* Cards */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}

.card p:last-child {
  margin-top: auto;
  margin-bottom: 0;
}

.more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  text-decoration: none;
}

.more:hover {
  text-decoration: underline;
}

.more .icon {
  width: 18px;
  height: 18px;
}

/* How every signature is recorded */

.evidence-lead {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  color: var(--ink-2);
  margin-bottom: 2.5rem;
}

.evidence-lead p {
  margin: 0;
}

.evidence-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

.evidence-more {
  margin: 2.5rem 0 0;
  color: var(--ink-2);
}

.records {
  display: grid;
  gap: 1rem;
}

.record {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
}

.record figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding-bottom: 0.6rem;
  margin-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}

.record figcaption span {
  color: var(--muted);
  font-weight: 500;
}

.record dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.3rem 1rem;
  margin: 0;
}

.record dt {
  font-family: var(--mono);
  color: var(--muted);
}

.record dd {
  margin: 0;
}

.record dd code {
  font-size: 1em;
}

/* The three marked fields: a bar on the left, matched in the key. */

.record dt.mark-seen,
.record dt.mark-prev,
.record dt.mark-own {
  padding-left: 0.5rem;
  border-left-width: 3px;
  border-left-style: solid;
}

.mark-seen {
  border-color: var(--verified);
}

.record dd.mark-seen code {
  color: var(--verified);
  font-weight: 600;
}

.mark-prev {
  border-color: var(--brand);
}

.mark-own {
  border-color: #a7a497;
}

.records-key {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: var(--ink-2);
}

.records-key li {
  padding-left: 0.75rem;
  border-left-width: 3px;
  border-left-style: solid;
}

/* Split sections */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4rem;
  align-items: center;
}

.checklist {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.checklist li {
  position: relative;
  padding-left: 2rem;
}

.checklist li::before {
  content: '';
  position: absolute;
  left: 0.3rem;
  top: 0.3rem;
  width: 0.45rem;
  height: 0.85rem;
  border-right: 2.5px solid var(--verified);
  border-bottom: 2.5px solid var(--verified);
  transform: rotate(45deg);
}

/* The developer band: the one dark section (§5.4), because code reads best there. */

.section-dark {
  background: var(--brand);
  color: var(--on-ink);
}

.section-dark h2 {
  color: #fff;
}

.section-dark p {
  color: var(--on-ink-muted);
}

.section-dark .button {
  margin-top: 0.5rem;
}

.code-sample {
  margin: 0;
  background: var(--code-bg);
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: var(--radius);
  padding: 1.5rem;
  overflow-x: auto;
  color: #e3e8f2;
  font-size: 0.88rem;
  line-height: 1.7;
}

.code-sample code {
  overflow-wrap: normal;
  white-space: pre;
}

/* Callout */

.callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 2.5rem;
}

.callout > div:first-child {
  max-width: 38rem;
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Closing call to action */

.cta-band {
  padding: 4.5rem 0;
  border-top: 1px solid var(--line);
  text-align: center;
}

.cta-band-inner {
  max-width: 40rem;
}

.cta-band p {
  color: var(--ink-2);
  margin-bottom: 1.5rem;
}

/* Inner pages */

.page-hero {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  padding: 4rem 0 3rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 2.4vw + 1rem, 2.8rem);
}

.lead {
  font-size: 1.2rem;
  color: var(--muted);
  margin-bottom: 0;
}

.prose {
  padding-top: 3rem;
  padding-bottom: 5rem;
}

.prose h2 {
  margin-top: 2.6rem;
  font-size: 1.5rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose [data-claim] {
  color: var(--ink);
}

/* At most one claim per page is set apart as a guarantee (§5.4). */

.guarantee {
  border-left: 3px solid var(--verified);
  padding: 0.2rem 0 0.2rem 1rem;
  font-weight: 550;
}

.page-visual {
  padding: 2.5rem 0 0;
}

.page-visual .shot-wide {
  max-width: 58rem;
  margin: 0 auto;
}

.page-visual .shot-panel {
  max-width: 46rem;
  margin: 0 auto;
}

.page-visual .records {
  max-width: 46rem;
  margin: 0 auto;
}

.visual-figure {
  margin: 0;
}

.visual-figure figcaption {
  max-width: 46rem;
  margin: 0.9rem auto 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.link-cards {
  list-style: none;
  padding: 0 !important;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 0.9rem;
}

.link-cards a {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  height: 100%;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  text-decoration: none;
  color: var(--ink-2);
}

.link-cards a:hover {
  border-color: var(--brand);
}

.link-cards strong {
  color: var(--ink);
}

.link-cards span {
  font-size: 0.92rem;
}

.next-band {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3.5rem;
}

.next-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.prose ul,
.prose ol {
  padding-left: 1.3rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

/* A real sequence, numbered because order is the content. */

.steps {
  list-style: none;
  padding-left: 0;
  counter-reset: step;
}

.steps > li {
  position: relative;
  counter-increment: step;
  padding-left: 3.25rem;
  margin-bottom: 2rem;
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--brand);
  color: var(--brand);
  font-weight: 700;
  font-size: 0.95rem;
}

.steps h2 {
  font-size: 1.2rem;
  margin-top: 0.3rem;
}

.operations {
  padding-left: 1.25rem;
}

.summary {
  font-weight: 600;
}

.table-scroll {
  overflow-x: auto;
}

.nowrap {
  white-space: nowrap;
  overflow-wrap: normal;
}

.error-table td:first-child {
  width: 1%;
  white-space: nowrap;
}

.returned-by {
  list-style: none;
  padding-left: 0 !important;
}

.returned-by a {
  text-decoration: none;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.93rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.75rem 0.6rem 0;
  border-bottom: 1px solid var(--line);
}

pre {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  overflow-x: auto;
  font-size: 0.88rem;
}

.status {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.75rem 1.5rem;
  font-size: 1.1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.status dt {
  font-weight: 700;
}

.status dd {
  margin: 0;
}

.indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.indicator::before {
  content: '';
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: #b9b6aa;
}

.indicator-ok::before {
  background: var(--verified);
}

.indicator-off::before {
  background: transparent;
  border: 2px solid #8a877c;
}

.indicator-down::before {
  background: #b23a2b;
}

.muted {
  color: var(--muted);
}

/* The quickstart on /developers: each step beside its request. */

.quickstart {
  margin-bottom: 3rem;
}

.qs-steps {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0 !important;
}

.qs-step {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 2rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
  margin-bottom: 0 !important;
}

.qs-step h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.qs-number {
  display: inline-grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  flex: none;
  border-radius: 50%;
  border: 1.5px solid var(--brand);
  color: var(--brand);
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 700;
}

.qs-text p {
  color: var(--ink-2);
}

.qs-text .code-block {
  margin: 0.75rem 0;
}

.qs-ref a {
  text-decoration: none;
  font-size: 0.9rem;
}

.qs-code {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  min-width: 0;
}

.qs-response summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--brand);
  font-size: 0.92rem;
  margin-bottom: 0.5rem;
}

@media (max-width: 960px) {
  .qs-step {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }
}

/* API reference (spec/08 §4.2) */

.ref-band {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}

.ref-band-inner,
.ref-layout {
  max-width: 90rem;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.ref-band-inner {
  padding-top: 3rem;
  padding-bottom: 2.25rem;
}

.ref-band h1 {
  font-size: clamp(2rem, 2.4vw + 1rem, 2.8rem);
}

.ref-band .lead {
  max-width: 46rem;
}

.ref-layout {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: 3rem;
  padding-top: 2.5rem;
  padding-bottom: 5rem;
}

.ref-nav {
  position: sticky;
  top: 5rem;
  align-self: start;
  max-height: calc(100vh - 6rem);
  overflow-y: auto;
  font-size: 0.92rem;
  padding-right: 0.5rem;
}

.ref-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ref-nav a {
  display: block;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  color: var(--ink-2);
  text-decoration: none;
}

.ref-nav a:hover {
  background: var(--paper-2);
  color: var(--ink);
}

.ref-nav a.current {
  background: var(--brand-tint);
  color: var(--brand);
  font-weight: 650;
}

.ref-nav ul ul {
  margin: 0.25rem 0 0.5rem 0.6rem;
  padding-left: 0.6rem;
  border-left: 1px solid var(--line);
}

.ref-nav ul ul a {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  font-size: 0.85rem;
  padding: 0.3rem 0.4rem;
}

.ref-nav-overview {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.ref-nav-download {
  margin-top: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 0.75rem !important;
  font-weight: 600;
}

.method {
  flex: none;
  display: inline-block;
  min-width: 3.4rem;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  background: var(--brand-tint);
  color: var(--brand);
}

.method-get {
  background: var(--verified-tint);
  color: var(--verified);
}

.method-delete {
  background: #f8e9e7;
  color: #8f2a1c;
}

.op {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 2.5rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 5rem;
}

.op:first-child {
  border-top: 0;
  padding-top: 0;
}

.op-path {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}

.op-path code {
  font-size: 0.95rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.op h2 {
  font-size: 1.5rem;
}

.op h3 {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0;
  margin: 1.75rem 0 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
}

.op-description {
  color: var(--ink-2);
}

.op-auth {
  font-size: 0.92rem;
  color: var(--ink-2);
}

.op-code {
  position: sticky;
  top: 5rem;
  align-self: start;
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.op-code-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.code-block {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  background: var(--code-bg);
  overflow: hidden;
}

.code-block figcaption {
  padding: 0.55rem 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--on-ink-muted);
  border-bottom: 1px solid rgb(255 255 255 / 10%);
}

.code-block pre {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #e3e8f2;
  padding: 1rem;
  max-height: 28rem;
  overflow: auto;
  font-size: 0.82rem;
  line-height: 1.6;
}

.code-block pre code {
  overflow-wrap: normal;
  white-space: pre;
}

.ref-fact .code-block pre {
  max-height: none;
}

.copy-button {
  position: absolute;
  top: 0.35rem;
  right: 0.5rem;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  border: 1px solid rgb(255 255 255 / 25%);
  background: transparent;
  color: var(--on-ink);
  font: inherit;
  font-size: 0.75rem;
  cursor: pointer;
}

.copy-button:hover {
  background: rgb(255 255 255 / 10%);
}

.fields {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fields > li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
}

.fields > li:last-child {
  border-bottom: 0;
}

.fields-nested {
  margin: 0.5rem 0 0 0.25rem;
  padding-left: 0.9rem;
  border-left: 2px solid var(--line);
}

.field-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
  align-items: baseline;
}

.field-name {
  font-weight: 700;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.field-type {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
}

.field-required {
  font-size: 0.72rem;
  font-weight: 700;
  color: #8f2a1c;
  text-transform: lowercase;
}

.field-constraint {
  font-size: 0.78rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 0 0.5rem;
}

.field-description,
.field-enum {
  margin: 0.3rem 0 0;
  font-size: 0.92rem;
  color: var(--ink-2);
}

.response-fields summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 0.4rem;
}

.status-code {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}

.errors {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.errors a {
  display: inline-flex;
  gap: 0.4rem;
  align-items: baseline;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--card);
  text-decoration: none;
  font-size: 0.85rem;
}

.errors a:hover {
  border-color: var(--brand);
}

.ref-facts {
  display: grid;
  align-items: start;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.ref-fact {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  min-width: 0;
}

.ref-fact h2 {
  font-size: 1.25rem;
}

.ref-fact p:last-child {
  margin-bottom: 0;
}

.auth-list {
  margin: 0;
  display: grid;
  gap: 0.75rem;
  font-size: 0.92rem;
}

.auth-list dt {
  font-weight: 700;
}

.auth-list dd {
  margin: 0;
  color: var(--ink-2);
}

.ref-areas-title {
  font-size: 1.6rem;
}

.ref-areas {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1rem;
}

.ref-areas a {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  height: 100%;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  text-decoration: none;
  color: var(--ink-2);
}

.ref-areas a:hover {
  border-color: var(--brand);
}

.ref-area-title {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
}

.ref-area-summary {
  font-size: 0.92rem;
}

.ref-area-count {
  margin-top: auto;
  font-size: 0.8rem;
  color: var(--muted);
}

@media (max-width: 1180px) {
  .op {
    grid-template-columns: minmax(0, 1fr);
  }

  .op-code {
    position: static;
  }
}

@media (max-width: 860px) {
  .ref-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  .ref-nav {
    position: static;
    max-height: none;
  }

  .ref-nav > ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .ref-nav > ul > li > a {
    border: 1px solid var(--line);
    background: var(--card);
  }

  .ref-nav ul ul {
    display: none;
  }

  .ref-facts {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Footer */

.site-footer {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  padding: 4rem 0 2.5rem;
  font-size: 0.93rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr));
  gap: 2rem;
}

.footer-brand p {
  margin-top: 1rem;
  max-width: 16rem;
}

.site-footer h2 {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: 0;
  margin-bottom: 0.9rem;
}

.site-footer li {
  margin-bottom: 0.25rem;
}

.site-footer li a {
  display: inline-block;
  min-height: 24px;
  padding: 0.15rem 0;
}

.site-footer a {
  color: var(--ink-2);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.footer-legal {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-legal p {
  margin: 0;
}

/* Responsive */

@media (max-width: 960px) {
  .hero-grid,
  .split,
  .evidence-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cards,
  .evidence-lead {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  :root {
    font-size: 16px;
  }

  .header-inner {
    gap: 1rem;
  }

  .main-nav,
  .nav-signer,
  .header-actions .button {
    display: none;
  }

  .phone-menu {
    display: block;
  }

  .hero-grid {
    padding-top: 3rem;
    padding-bottom: 3.5rem;
  }

  .section {
    padding: 4rem 0;
  }

  .callout {
    padding: 1.75rem;
  }

  .record dl {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
