/* Reference page layout. Shared branding and navigation live in site-shell.css. */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; letter-spacing: -.02em; }
h2 { font-size: 32px; }
h3 { font-size: 25px; }
em { font-style: normal; color: var(--ink); }
.section-label { font: 11px/1.6 var(--sans); letter-spacing: .08em; color: var(--label); }
.doc-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 36px;
  margin: 0 0 48px;
}
.doc-layout aside nav {
  position: sticky;
  top: var(--head-space);
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 11px;
  color: var(--action);
}
.prose {
  max-width: 76ch;
  min-width: 0;
}
/* The header's line already opens the page; the first section adds none. */
.prose > section:first-of-type { border-top: 0; padding-top: 4px; }
.prose section {
  border-top: 1px solid var(--line);
  padding: 32px 0;
}
.prose .section-label {
  font-size: 9px;
  margin-bottom: 18px;
}
.prose h2 {
  font-size: 32px;
  letter-spacing: -1px;
}
.prose p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.85;
}
.prose li {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 6px;
}
.prose h3 {
  color: var(--ink);
  font-size: 25px;
}
code {
  font-family: var(--mono);
  font-size: 0.95em;
  color: var(--action);
}
pre {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 20px;
  overflow: auto;
  font-size: 12px;
}
table {
  border-collapse: collapse;
  width: 100%;
  margin: 24px 0;
  font-size: 11px;
}
th,
td {
  text-align: left;
  padding: 12px 9px;
  border: 1px solid var(--line);
  vertical-align: top;
}
th {
  color: var(--action);
  font-weight: normal;
  background: var(--chrome);
}
td {
  color: var(--muted);
}
.doc-layout aside nav a {
  padding: 8px 10px;
  border-left: 2px solid transparent;
  line-height: 1.6;
}
.doc-layout aside nav a:hover,
.doc-layout aside nav a[aria-current="location"] {
  background: var(--selected);
  border-left-color: var(--focus);
  color: var(--ink);
}
.doc-layout aside nav {
  max-height: calc(100vh - 50px);
  overflow-y: auto;
}
.page-toc {
  display: none;
}
.rail-compact {
  display: none;
}
@media (max-width: 900px) {
  html {
    scroll-padding-top: calc(var(--head-space) + 50px);
  }
  .doc-layout {
    display: block;
  }
  .doc-layout > aside {
    display: none;
  }
  .rail-compact {
    display: block;
    position: sticky;
    top: var(--head-space);
    z-index: 4;
    margin-bottom: 8px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  /* Stuck under the header, it covers what would scroll between them. */
  .rail-compact.is-stuck {
    box-shadow: 0 0 0 100vmax var(--bg);
    clip-path: inset(calc(-1 * var(--head-space)) -100vmax 0 -100vmax);
  }
  .rail-compact summary {
    padding: 12px 0;
    color: var(--ink);
    font-size: 12px;
    cursor: pointer;
    list-style: none;
  }
  .rail-compact summary::-webkit-details-marker {
    display: none;
  }
  .rail-compact summary::after {
    content: " ▾";
    color: var(--action);
  }
  .rail-compact[open] summary::after {
    content: " ▴";
  }
  .rail-compact nav {
    display: flex;
    flex-direction: column;
    max-height: 70vh;
    overflow-y: auto;
    padding-bottom: 10px;
    font-size: 12px;
  }
  .rail-compact nav a {
    padding: 8px 10px;
    border-left: 2px solid transparent;
    color: var(--action);
  }
  .rail-compact nav a[aria-current="location"] {
    background: var(--selected);
    border-left-color: var(--focus);
    color: var(--ink);
  }
}
@media (min-width: 1360px) {
  .doc-layout {
    grid-template-columns: 210px minmax(0, 1fr) 200px;
  }
  .page-toc {
    display: flex;
    flex-direction: column;
    align-self: start;
    position: sticky;
    top: var(--head-space);
    max-height: calc(100vh - var(--head-space) - 55px);
    overflow-y: auto;
    border-left: 1px solid var(--line);
    font-size: 11px;
  }
}
.page-toc-title {
  padding: 0 0 8px 12px;
  color: var(--metadata);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.page-toc a {
  padding: 4px 12px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  color: var(--muted);
  line-height: 1.5;
}
.page-toc a:hover,
.page-toc a[aria-current="location"] {
  border-left-color: var(--focus);
  color: var(--ink);
}
.prose .anchor {
  margin-left: 0.4em;
  color: var(--muted);
  text-decoration: none;
  opacity: 0;
}
.prose .anchor::before {
  content: "§";
}
.prose h2:hover .anchor,
.prose h3:hover .anchor,
.prose .anchor:focus-visible {
  opacity: 1;
}
@media (hover: none) {
  .prose .anchor {
    opacity: 0.5;
  }
}
.code-block {
  position: relative;
}
.code-block .copy {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  background: var(--chrome);
  color: var(--action);
  font: inherit;
  font-size: 10px;
  cursor: pointer;
  opacity: 0;
}
.code-block:hover .copy,
.code-block .copy:focus-visible {
  opacity: 1;
}
@media (hover: none) {
  .code-block .copy {
    opacity: 1;
  }
  .code-block pre {
    padding-top: 40px;
  }
}
@media (max-width: 750px) {
  .doc-layout aside nav {
    max-height: none;
  }
}
.table-scroll {
  overflow-x: auto;
  max-width: 100%;
  margin: 24px 0;
}
.table-scroll table {
  margin: 0;
}
.table-scroll td:first-child code {
  white-space: nowrap;
}
.refusals td:first-child code {
  white-space: normal;
}
.refusals code.nowrap {
  white-space: nowrap;
}
.refusals td:first-child {
  width: 28%;
}
.table-scroll:focus-visible {
  outline: 2px solid var(--active);
  outline-offset: 3px;
}
@media print {
  :root,
  :root[data-theme] {
    --bg: #fff;
    --panel: #f5f5f5;
    --inset: #fff;
    --overlay: #eee;
    --chrome: #eee;
    --menu: #eee;
    --ink: #000;
    --muted: #222;
    --metadata: #444;
    --focus: #000;
    --action: #003f42;
    --selected: #ddd;
    --active: #5c4a00;
    --success: #1d6e46;
    --warning: #5c4a00;
    --danger: #a01e23;
    --quiet: #ccc;
    --line: #888;
    --edge-focus: #000;
    --frame-edge: #888;
    --rail-width: 0px;
    color-scheme: light;
  }
  body {
    padding: 0;
    background: #fff;
    color: #000;
  }
  .skip,
  .site-rail,
  .site-head,
  footer,
  .site-status,
  .doc-layout aside,
  .page-toc,
  .rail-compact,
  .doc-meta,
  .anchor,
  .copy,
  .dg-pause,
  .dg-expand {
    display: none !important;
  }
  main,
  .doc-layout,
  .manual-hero {
    display: block;
    margin: 0;
    padding: 0;
  }
  .prose {
    max-width: none;
  }
  .prose section {
    break-before: page;
    border-top: 0;
  }
  .prose section:first-child {
    break-before: auto;
  }
  h2,
  h3 {
    break-after: avoid;
  }
  pre {
    white-space: pre-wrap;
    overflow: visible;
  }
  .table-scroll,
  .dg-fig {
    overflow: visible;
  }
  figure,
  pre,
  tr {
    break-inside: avoid;
  }
  .prose a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
  }
}

.doc-search {
  position: relative;
  margin-bottom: 10px;
}
.doc-layout > aside .doc-search {
  position: sticky;
  top: var(--head-space);
  z-index: 6;
}
.doc-layout > aside .doc-search + nav {
  top: calc(var(--head-space) + 47px);
  max-height: calc(100vh - var(--head-space) - 75px);
}
.doc-search input {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-family: var(--sans);
  font-size: 12px;
}
.doc-search input::placeholder {
  color: var(--metadata);
}
.doc-search input:focus {
  outline: none;
  border-color: var(--focus);
}
.search-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: min(520px, 80vw);
  max-height: 65vh;
  overflow-y: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.35);
  z-index: 20;
}
.rail-compact .search-results {
  position: static;
  width: auto;
  max-height: 50vh;
  box-shadow: none;
}
.search-results a {
  display: block;
  padding: 10px 12px;
  border-left: 2px solid transparent;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  text-decoration: none;
}
.search-results a:hover,
.search-results a[aria-selected="true"] {
  background: var(--selected);
  border-left-color: var(--focus);
}
.search-title {
  display: block;
  color: var(--ink);
  font-size: 13px;
}
.search-where {
  display: block;
  margin-top: 2px;
  color: var(--metadata);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.search-snippet {
  display: block;
  margin-top: 5px;
  font-size: 11.5px;
  line-height: 1.6;
}
.search-none {
  padding: 12px;
  color: var(--metadata);
  font-size: 12px;
}
.search-results mark,
mark.search-hit {
  background: color-mix(in srgb, var(--focus) 35%, transparent);
  color: var(--ink);
}
@media print {
  .doc-search {
    display: none;
  }
}

.prose { max-width: 76ch; overflow-wrap: anywhere; }
.prose p, .prose li { color: var(--prose); }
.prose h2, .prose h3 { margin: 0 0 20px; }
.prose h3 { margin-top: 28px; }
.prose a:not(.anchor) { text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--focus); }
pre, code { font-family: var(--mono); }
pre { overflow-wrap: normal; }
table { font-size: 12px; }
.table-scroll table { min-width: 520px; }
.doc-layout > aside { min-width: 0; }
.doc-layout > aside nav { font-size: 12px; }
.doc-search input:focus-visible { outline: 2px solid white; outline-offset: 3px; }
.privacy-page .prose { font-size: 16px; }
.privacy-page .prose p { line-height: 1.8; }
.privacy-page .prose h2 { margin: 32px 0 14px; }
.button { display: inline-block; padding: 10px 16px; border: 1px solid #b6425a; border-radius: 5px; background: #6d1529; color: #fff; }
@media (max-width: 1150px) { .doc-layout { grid-template-columns: 180px minmax(0, 1fr); gap: 28px; } }
@media (max-width: 900px) { .doc-layout { display: block; } .prose { max-width: none; } }
@media print { .prose p, .prose li { color: #222; } }

/* A chosen theme (theme.js) derives these; see site-shell.css. */
:root[data-theme] .button { border-color: var(--edge-focus); background: var(--selected); color: var(--ink); }

/* The brand kit (kit.html): each file on the field it is drawn for. */
.kit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; margin: 20px 0 28px; }
.kit-tile { margin: 0; border: 1px solid var(--line); min-width: 0; }
.kit-art { display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 24px; background: #050506; }
.kit-art-light { background: #f7f4f5; }
.kit-art img { width: 100%; height: 100%; object-fit: contain; }
.kit-tile figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 10px 12px; font: 13px/1.5 var(--sans); color: var(--ink); }
.kit-tile figcaption span { display: flex; gap: 10px; color: var(--muted); }
.kit-swatch { height: 96px; }
.kit-red { background: #e42d4f; }
.kit-black { background: #050506; }
.kit-white { background: #f7f4f5; }
.prose .kit-specimen { margin: 16px 0 20px; font: 400 clamp(26px, 3.4vw, 40px)/1.15 var(--serif); color: var(--ink); letter-spacing: -.015em; }

/* The download page (download.html). */
.dl-release-head { color: var(--ink); }
.dl-earlier-head { margin-top: 20px; color: var(--ink); }
.prose .dl-earlier { margin-top: 4px; }
.dl-artifacts { display: grid; gap: 12px; margin: 16px 0; }
.dl-artifact { border: 1px solid var(--line); padding: 14px 16px; min-width: 0; }
.dl-mine { border-color: var(--red); }
.dl-artifact-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.dl-artifact-name { font: 400 22px/1.2 var(--serif); color: var(--ink); }
.dl-badge { font: 11px/1.6 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.prose .dl-artifact p { margin: 8px 0 0; }
.dl-artifact-meta { color: var(--muted); font-size: 14px; }
.dl-hash { display: flex; gap: 10px; align-items: center; }
.dl-hash code { overflow-wrap: anywhere; font-size: 12px; min-width: 0; }
.dl-copy, .dl-choose { flex: none; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font: 12px/1.6 var(--sans); padding: 3px 10px; cursor: pointer; }
.dl-copy:hover, .dl-choose:hover { border-color: var(--action); }
.dl-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.dl-get { color: var(--red); font-weight: 600; }
.dl-drop { margin: 20px 0 12px; padding: 28px 20px; border: 1px dashed var(--muted); text-align: center; }
.dl-drop[data-over] { border-color: var(--red); background: var(--panel); }
.prose .dl-drop p { margin: 0 0 12px; }
.dl-choose { display: inline-block; }
.dl-choose input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dl-choose:focus-within { outline: 2px solid var(--edge-focus); outline-offset: 2px; }
.prose .dl-file { margin: 12px 0 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.dl-steps { list-style: none; padding: 0; margin: 12px 0; }
.dl-step { display: flex; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.dl-mark { flex: none; width: 1.2em; text-align: center; color: var(--muted); }
.dl-step[data-state="ok"] .dl-mark { color: var(--green); }
.dl-step[data-state="bad"] .dl-mark { color: var(--red); }
.dl-step-body { display: flex; flex-direction: column; min-width: 0; }
.dl-step-title { color: var(--ink); }
.dl-step-note { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.dl-verdict { padding: 12px 14px; border-left: 3px solid var(--green); background: var(--panel); color: var(--ink); }
.dl-verdict[data-state="bad"] { border-left-color: var(--red); }


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