/* Newt DB documentation skin.
   Palette and type are inherited from the original site: paper white,
   charcoal rail, newt green and gold, Lato body with Roboto Slab headings. */

:root {
  --amph-ink: #14201a;
  --amph-ink-soft: #1d2c24;
  --amph-ink-line: #31453a;
  --amph-paper: #faf9f3;
  --amph-paper-raised: #ffffff;
  --amph-tint: #f0f3e8;
  --amph-tint-deep: #e6ecda;
  --amph-line: #d9e0cf;
  --amph-line-strong: #b9c6a8;
  --amph-text: #2b352e;
  --amph-muted: #5c675e;
  --amph-green: #8ac744;
  --amph-green-deep: #2e6b2f;
  --amph-green-darkest: #1f4a25;
  --amph-gold: #ffe667;
  --amph-gold-deep: #a97c12;
  --amph-teal: #1f6e6a;
  --amph-code: #101b15;
  --amph-code-line: #24352b;
  --amph-code-text: #d7e6cb;
  --amph-radius: 8px;
  --amph-radius-sm: 6px;
  --amph-shadow: 0 1px 2px rgba(20, 32, 26, 0.07);
  --amph-shadow-lift: 0 10px 24px -14px rgba(20, 32, 26, 0.45);
  --amph-top: 64px;
  --amph-rail: 286px;
  --amph-body: "Lato", "Helvetica Neue", Arial, sans-serif;
  --amph-head: "Roboto Slab", Georgia, serif;
  --amph-mono: Consolas, "Andale Mono WT", "Lucida Console", Monaco, monospace;
  --amph-ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

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

html {
  background: var(--amph-paper);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--amph-top) + 24px);
  -webkit-text-size-adjust: 100%;
}

body.amph-body {
  margin: 0;
  background: var(--amph-paper);
  color: var(--amph-text);
  font-family: var(--amph-body);
  font-size: 17px;
  line-height: 1.72;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.amph-body.amph-locked {
  overflow: hidden;
}

img,
svg {
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--amph-head);
  color: var(--amph-ink);
  line-height: 1.22;
  font-weight: 700;
  margin: 0 0 0.6em;
  letter-spacing: -0.012em;
}

h1 {
  font-size: clamp(2rem, 3.4vw, 2.85rem);
}

h2 {
  font-size: clamp(1.5rem, 2.2vw, 1.85rem);
  margin-top: 2.4em;
  padding-top: 0.1em;
  scroll-margin-top: calc(var(--amph-top) + 20px);
}

h3 {
  font-size: 1.28rem;
  margin-top: 1.9em;
  scroll-margin-top: calc(var(--amph-top) + 20px);
}

h4 {
  font-size: 1.06rem;
  margin-top: 1.6em;
}

p {
  margin: 0 0 1.15em;
}

ul,
ol {
  margin: 0 0 1.25em;
  padding-left: 1.35em;
}

li {
  margin: 0.3em 0;
}

li > ul,
li > ol {
  margin: 0.4em 0 0.5em;
}

strong {
  color: var(--amph-ink);
  font-weight: 700;
}

small {
  font-size: 0.84rem;
}

hr {
  border: 0;
  border-top: 1px solid var(--amph-line);
  margin: 2.2em 0;
}

a {
  color: var(--amph-green-deep);
  text-decoration: none;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1.5px;
  transition: color 160ms var(--amph-ease);
}

a:hover {
  color: var(--amph-green-darkest);
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px double var(--amph-green-deep);
  outline-offset: 3px;
  border-radius: 3px;
}

.amph-ink a:focus-visible,
.amph-hero a:focus-visible,
.amph-foot a:focus-visible {
  outline-color: var(--amph-gold);
}

::selection {
  background: var(--amph-gold);
  color: var(--amph-ink);
}

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

.amph-skip {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 0.65rem 1rem;
  background: var(--amph-gold);
  color: var(--amph-ink);
  font-weight: 700;
  border-radius: var(--amph-radius-sm);
  transform: translateY(-160%);
  transition: transform 160ms var(--amph-ease);
}

.amph-skip:focus {
  transform: translateY(0);
}

/* ---------- top bar ---------- */

.amph-top {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--amph-top);
  background: var(--amph-ink);
  color: #eef4e7;
  border-bottom: 1px solid rgba(255, 230, 103, 0.18);
}

.amph-top__inner {
  height: 100%;
  max-width: none;
  margin: 0;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.amph-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #f5f9ee;
  flex: 0 0 auto;
}

.amph-brand:hover {
  color: #ffffff;
  text-decoration: none;
}

.amph-brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 230, 103, 0.55);
  background: var(--amph-ink-soft);
}

.amph-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.06;
}

.amph-brand__text strong {
  font-family: var(--amph-head);
  font-size: 1.06rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.01em;
}

.amph-brand__text span {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a8c19a;
  margin-top: 3px;
}

.amph-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 320px;
  max-width: 420px;
  margin-left: 8px;
}

.amph-search svg {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: #8fa58a;
  pointer-events: none;
}

.amph-search input {
  width: 100%;
  height: 38px;
  padding: 0 42px 0 36px;
  border-radius: 50px;
  border: 1px solid #3a5244;
  background: #1d2c24;
  color: #eef4e7;
  font-family: var(--amph-body);
  font-size: 0.88rem;
  transition: border-color 160ms var(--amph-ease), background 160ms var(--amph-ease);
}

.amph-search input::placeholder {
  color: #93a68d;
}

.amph-search input:focus {
  border-color: var(--amph-green);
  background: #22342a;
}

.amph-search kbd {
  position: absolute;
  right: 10px;
  font-family: var(--amph-mono);
  font-size: 0.68rem;
  color: #a8c19a;
  border: 1px solid #3a5244;
  border-radius: 4px;
  padding: 1px 6px;
  background: #16241c;
  pointer-events: none;
}

.amph-topnav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.amph-topnav a {
  color: #d6e3cd;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: var(--amph-radius-sm);
}

.amph-topnav a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
  text-decoration: none;
}

.amph-ver {
  margin-left: 8px;
  font-family: var(--amph-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amph-ink);
  background: var(--amph-gold);
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 700;
}

.amph-burger {
  display: none;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #3a5244;
  border-radius: var(--amph-radius-sm);
  background: transparent;
  color: #eef4e7;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.amph-burger svg {
  width: 20px;
  height: 20px;
}

.amph-searchlink {
  display: none;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid #3a5244;
  border-radius: var(--amph-radius-sm);
  color: #eef4e7;
  background: transparent;
}

.amph-searchlink svg {
  width: 18px;
  height: 18px;
}

/* ---------- frame and rail ---------- */

.amph-frame {
  display: grid;
  grid-template-columns: var(--amph-rail) minmax(0, 1fr);
  align-items: start;
}

.amph-rail {
  position: sticky;
  top: var(--amph-top);
  height: calc(100vh - var(--amph-top));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #f5f4ec;
  border-right: 1px solid var(--amph-line);
  padding: 20px 14px 30px;
  scrollbar-width: thin;
  scrollbar-color: #c3cdb4 transparent;
}

.amph-rail__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 10px 16px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--amph-line);
}

.amph-rail__brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--amph-line-strong);
}

.amph-rail__brand strong {
  display: block;
  font-family: var(--amph-head);
  font-size: 0.98rem;
  line-height: 1.2;
}

.amph-rail__brand span {
  display: block;
  font-size: 0.7rem;
  color: var(--amph-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}

.amph-nav__caption {
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amph-muted);
  margin: 20px 10px 7px;
}

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

.amph-nav li {
  margin: 1px 0;
}

.amph-nav a {
  display: block;
  padding: 8px 10px 8px 13px;
  border-left: 3px solid transparent;
  border-radius: 0 var(--amph-radius-sm) var(--amph-radius-sm) 0;
  color: #3f4b43;
  font-size: 0.88rem;
  line-height: 1.34;
  transition: background 140ms var(--amph-ease), color 140ms var(--amph-ease), border-color 140ms var(--amph-ease);
}

.amph-nav a:hover {
  background: #e9eddf;
  color: var(--amph-ink);
  text-decoration: none;
}

.amph-nav a.is-active {
  background: #e4ead6;
  border-left-color: var(--amph-green-deep);
  color: var(--amph-ink);
  font-weight: 700;
}

.amph-nav a.is-active::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 7px;
  border-radius: 50%;
  background: var(--amph-green);
  vertical-align: middle;
}

.amph-nav--top a {
  font-size: 0.92rem;
}

.amph-rail__meta {
  margin: 22px 10px 0;
  padding-top: 16px;
  border-top: 1px solid var(--amph-line);
  font-size: 0.74rem;
  color: var(--amph-muted);
  line-height: 1.55;
}

.amph-rail__meta strong {
  color: var(--amph-ink);
}

.amph-scrim {
  display: none;
}

/* ---------- main column ---------- */

.amph-main {
  min-width: 0;
  padding: 22px clamp(18px, 3.6vw, 54px) 0;
}

.amph-crumbs {
  max-width: 1180px;
  margin: 0 auto 18px;
  font-size: 0.78rem;
  color: var(--amph-muted);
}

.amph-crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.amph-crumbs li {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.amph-crumbs li + li::before {
  content: "/";
  color: #a7b39b;
}

.amph-crumbs a {
  color: var(--amph-muted);
}

.amph-crumbs a:hover {
  color: var(--amph-green-deep);
}

.amph-crumbs [aria-current="page"] {
  color: var(--amph-ink);
  font-weight: 700;
}

.amph-doc {
  max-width: 900px;
  margin: 0 auto;
}

.amph-doc.has-rail {
  max-width: 1130px;
  display: grid;
  grid-template-columns: minmax(0, 840px) 230px;
  gap: 46px;
  align-items: start;
}

.amph-main[data-layout="home"] .amph-doc {
  max-width: 1120px;
}

.amph-article {
  min-width: 0;
}

.amph-article__head {
  margin-bottom: 26px;
}

.amph-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amph-green-deep);
  margin: 0 0 10px;
}

.amph-eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--amph-gold);
}

.amph-lead {
  font-size: 1.12rem;
  line-height: 1.65;
  color: #414d45;
  margin-bottom: 1.4em;
}

/* ---------- on page contents ---------- */

.amph-toc {
  position: sticky;
  top: calc(var(--amph-top) + 24px);
  font-size: 0.82rem;
  border-left: 1px solid var(--amph-line);
  padding-left: 18px;
}

.amph-toc__caption {
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amph-muted);
  margin: 0 0 10px;
}

.amph-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.amph-toc li {
  margin: 0;
}

.amph-toc a {
  display: block;
  padding: 5px 0;
  color: var(--amph-muted);
  line-height: 1.4;
  border-left: 2px solid transparent;
  margin-left: -20px;
  padding-left: 18px;
}

.amph-toc a:hover {
  color: var(--amph-green-deep);
  text-decoration: none;
}

.amph-toc a.is-active {
  color: var(--amph-ink);
  border-left-color: var(--amph-green);
  font-weight: 700;
}

.amph-toc .amph-toc__sub a {
  padding-left: 30px;
  font-size: 0.78rem;
}

.amph-toc details {
  border-top: 1px solid var(--amph-line);
  padding-top: 10px;
  margin-top: 10px;
}

.amph-toc summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--amph-ink);
}

/* ---------- article typography ---------- */

.amph-article h2 {
  border-top: 1px solid var(--amph-line);
  padding-top: 1.15em;
}

.amph-article h2:first-of-type {
  border-top: 0;
  padding-top: 0;
  margin-top: 1.9em;
}

.amph-article h2 .amph-hash,
.amph-article h3 .amph-hash {
  opacity: 0;
  margin-left: 0.4em;
  font-family: var(--amph-mono);
  font-size: 0.7em;
  color: var(--amph-green-deep);
  transition: opacity 140ms var(--amph-ease);
}

.amph-article h2:hover .amph-hash,
.amph-article h3:hover .amph-hash,
.amph-article h2 .amph-hash:focus,
.amph-article h3 .amph-hash:focus {
  opacity: 1;
}

.amph-article > p:first-of-type {
  font-size: 1.06rem;
}

.amph-article code {
  font-family: var(--amph-mono);
  font-size: 0.84em;
  background: #eef1e6;
  border: 1px solid #dee4d3;
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--amph-green-darkest);
  word-break: break-word;
}

.amph-article a code {
  color: var(--amph-green-deep);
}

.amph-article blockquote {
  margin: 1.6em 0;
  padding: 14px 20px;
  border-left: 3px solid var(--amph-gold);
  background: #fbf7e2;
  color: #4a4a3b;
}

.amph-article blockquote p:last-child {
  margin-bottom: 0;
}

.amph-note {
  border: 1px solid #d8e4c5;
  border-left: 3px solid var(--amph-green-deep);
  background: #f2f7e9;
  border-radius: 0 var(--amph-radius) var(--amph-radius) 0;
  padding: 14px 18px;
  margin: 1.6em 0;
  font-size: 0.95rem;
}

.amph-note strong {
  color: var(--amph-green-darkest);
}

.amph-note--warn {
  border-color: #eedca6;
  border-left-color: var(--amph-gold-deep);
  background: #fdf6df;
}

.amph-note p:last-child,
.amph-note ul:last-child {
  margin-bottom: 0;
}

.amph-figure {
  margin: 1.8em 0;
  padding: 18px;
  border: 1px solid var(--amph-line);
  border-radius: var(--amph-radius);
  background: var(--amph-paper-raised);
  box-shadow: var(--amph-shadow);
}

.amph-figure figcaption {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--amph-muted);
  text-align: center;
}

/* ---------- code ---------- */

.amph-code {
  margin: 1.5em 0;
  border: 1px solid #223a2c;
  border-radius: var(--amph-radius);
  background: var(--amph-code);
  box-shadow: var(--amph-shadow);
  overflow: hidden;
}

.amph-code__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.035);
  border-bottom: 1px solid var(--amph-code-line);
}

.amph-code__lang {
  font-family: var(--amph-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #93ad86;
}

.amph-code__copy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--amph-body);
  font-size: 0.72rem;
  font-weight: 700;
  color: #b9cfae;
  background: transparent;
  border: 1px solid #33493b;
  border-radius: 4px;
  padding: 3px 8px;
  cursor: pointer;
  transition: background 140ms var(--amph-ease), color 140ms var(--amph-ease);
}

.amph-code__copy:hover {
  background: #1d3327;
  color: #ffffff;
}

.amph-code__copy svg {
  width: 13px;
  height: 13px;
}

.amph-code pre {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
  font-family: var(--amph-mono);
  font-size: 0.83rem;
  line-height: 1.66;
  color: var(--amph-code-text);
  tab-size: 4;
}

.amph-code code {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  white-space: pre;
}

.tok-kw {
  color: #9fdb63;
}

.tok-str {
  color: #ffe667;
}

.tok-num {
  color: #f0ab6b;
}

.tok-com {
  color: #7f9781;
  font-style: italic;
}

.tok-fn {
  color: #8fd4c8;
}

/* terminal strip */

.amph-cmd {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 1.4em 0;
  padding: 12px 14px;
  border-radius: var(--amph-radius);
  background: var(--amph-code);
  border: 1px solid #223a2c;
  color: var(--amph-code-text);
  font-family: var(--amph-mono);
  font-size: 0.86rem;
  overflow-x: auto;
}

.amph-cmd::before {
  content: "$";
  color: var(--amph-green);
  font-weight: 700;
}

.amph-cmd code {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font-size: inherit;
  white-space: nowrap;
}

.amph-cmd .amph-copy-mini {
  margin-left: auto;
  flex: 0 0 auto;
  background: transparent;
  border: 1px solid #33493b;
  color: #b9cfae;
  border-radius: 4px;
  padding: 3px 8px;
  font-family: var(--amph-body);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

/* ---------- tables ---------- */

.amph-table-wrap {
  margin: 1.6em 0;
  overflow-x: auto;
  border: 1px solid var(--amph-line);
  border-radius: var(--amph-radius);
  background: var(--amph-paper-raised);
}

.amph-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 520px;
}

.amph-table caption {
  text-align: left;
  padding: 12px 16px;
  font-size: 0.8rem;
  color: var(--amph-muted);
  border-bottom: 1px solid var(--amph-line);
}

.amph-table th {
  text-align: left;
  font-family: var(--amph-head);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--amph-ink);
  background: var(--amph-tint);
  padding: 11px 16px;
  border-bottom: 1px solid var(--amph-line);
  white-space: nowrap;
}

.amph-table td {
  padding: 11px 16px;
  border-bottom: 1px solid #e7ecdd;
  vertical-align: top;
}

.amph-table tbody tr:last-child td {
  border-bottom: 0;
}

.amph-table tbody tr:nth-child(even) {
  background: #fbfcf7;
}

.amph-table code {
  white-space: nowrap;
}

/* ---------- buttons ---------- */

.amph-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0.66rem 1.05rem;
  border-radius: var(--amph-radius);
  border: 1px solid transparent;
  font-family: var(--amph-body);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms var(--amph-ease), color 160ms var(--amph-ease),
    border-color 160ms var(--amph-ease), transform 160ms var(--amph-ease),
    box-shadow 160ms var(--amph-ease);
}

.amph-btn svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.amph-btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.amph-btn--primary {
  background: var(--amph-green-deep);
  color: #ffffff;
  box-shadow: var(--amph-shadow);
}

.amph-btn--primary:hover {
  background: var(--amph-green-darkest);
  color: #ffffff;
  box-shadow: var(--amph-shadow-lift);
}

.amph-btn--gold {
  background: var(--amph-gold);
  color: #1b2a1f;
}

.amph-btn--gold:hover {
  background: #ffef9c;
  color: #14201a;
}

.amph-btn--line {
  background: var(--amph-paper-raised);
  border-color: var(--amph-line-strong);
  color: var(--amph-ink);
}

.amph-btn--line:hover {
  border-color: var(--amph-green-deep);
  color: var(--amph-green-darkest);
}

.amph-btn--ghost {
  border-color: rgba(255, 255, 255, 0.32);
  color: #f1f6ea;
  background: rgba(255, 255, 255, 0.03);
}

.amph-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.55);
}

.amph-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 1.5em 0;
}

/* ---------- hero ---------- */

.amph-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--amph-radius);
  background:
    radial-gradient(circle at 82% 16%, rgba(138, 199, 68, 0.28), transparent 43%),
    radial-gradient(circle at 8% 92%, rgba(255, 230, 103, 0.12), transparent 36%),
    linear-gradient(135deg, #14201a 0%, #1b2b22 52%, #24402a 100%);
  color: #eef4e7;
  padding: clamp(28px, 4.6vw, 54px);
  margin: 0 0 34px;
  box-shadow: var(--amph-shadow-lift);
}

.amph-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.28;
  pointer-events: none;
}

.amph-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.amph-hero h1 {
  color: #ffffff;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  margin-bottom: 0.35em;
}

.amph-hero .amph-eyebrow {
  color: var(--amph-gold);
}

.amph-hero .amph-eyebrow::before {
  background: var(--amph-green);
}

.amph-hero__lede {
  color: #c9d9c1;
  font-size: clamp(1rem, 1.4vw, 1.14rem);
  line-height: 1.66;
  max-width: 46ch;
  margin-bottom: 1.5em;
}

.amph-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 1.4em;
}

.amph-hero__install {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 230, 103, 0.35);
  border-radius: var(--amph-radius-sm);
  background: rgba(0, 0, 0, 0.26);
  padding: 8px 12px;
  font-family: var(--amph-mono);
  font-size: 0.84rem;
  color: #e9f1e0;
  max-width: 100%;
}

.amph-hero__install span {
  color: var(--amph-green);
}

.amph-hero__install code {
  background: none;
  border: 0;
  color: inherit;
  font-family: inherit;
  padding: 0;
  white-space: nowrap;
  overflow-x: auto;
}

.amph-hero__install button {
  background: transparent;
  border: 1px solid #3c5a43;
  color: #c9d9c1;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  cursor: pointer;
}

.amph-orb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

.amph-orb__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 230, 103, 0.3);
}

.amph-orb__ring--one {
  width: 258px;
  height: 258px;
}

.amph-orb__ring--two {
  width: 330px;
  height: 330px;
  border-style: dashed;
  border-color: rgba(138, 199, 68, 0.35);
}

.amph-orb__mark {
  position: relative;
  width: 188px;
  height: 188px;
  border-radius: 50%;
  border: 2px solid rgba(255, 230, 103, 0.5);
  background: #1a2a20;
  box-shadow: 0 0 0 10px rgba(138, 199, 68, 0.08), 0 24px 50px -20px rgba(0, 0, 0, 0.65);
}

.amph-orb__tag {
  position: absolute;
  font-family: var(--amph-mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  background: rgba(20, 32, 26, 0.88);
  border: 1px solid #3c5a43;
  color: #d9e8cf;
  padding: 5px 9px;
  border-radius: 4px;
  white-space: nowrap;
}

.amph-orb__tag--py {
  top: 10px;
  left: 50%;
  transform: translateX(-120%);
}

.amph-orb__tag--pg {
  bottom: 18px;
  right: 2%;
}

.amph-orb__tag--json {
  bottom: 40px;
  left: 0;
}

.amph-hero__strip {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.8rem;
  color: #a9c0a0;
}

.amph-hero__strip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.amph-hero__strip span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amph-green);
}

/* ---------- sections ---------- */

.amph-section {
  padding: 34px 0;
  border-top: 1px solid var(--amph-line);
}

.amph-section:first-of-type {
  border-top: 0;
}

.amph-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.amph-section__head h2 {
  margin: 0;
  border: 0;
  padding: 0;
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
}

.amph-section__head p {
  margin: 6px 0 0;
  color: var(--amph-muted);
  font-size: 0.94rem;
  max-width: 62ch;
}

.amph-kicker {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--amph-green-deep);
  margin: 0 0 8px;
}

/* ---------- cards ---------- */

.amph-grid {
  display: grid;
  gap: 20px;
}

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

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

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

.amph-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: var(--amph-paper-raised);
  border: 1px solid var(--amph-line);
  border-radius: var(--amph-radius);
  box-shadow: var(--amph-shadow);
  transition: transform 180ms var(--amph-ease), box-shadow 180ms var(--amph-ease),
    border-color 180ms var(--amph-ease);
}

.amph-card:hover {
  transform: translateY(-3px);
  border-color: var(--amph-line-strong);
  box-shadow: var(--amph-shadow-lift);
}

.amph-card h3 {
  margin: 0 0 8px;
  font-size: 1.06rem;
}

.amph-card p {
  margin: 0;
  font-size: 0.9rem;
  color: #4c584f;
  line-height: 1.62;
}

.amph-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: var(--amph-radius-sm);
  background: var(--amph-tint);
  border: 1px solid #dce4ce;
  color: var(--amph-green-deep);
}

.amph-card__icon svg {
  width: 21px;
  height: 21px;
}

.amph-card--link {
  color: inherit;
}

.amph-card--link:hover {
  color: inherit;
  text-decoration: none;
}

.amph-card__more {
  margin-top: 14px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--amph-green-deep);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.amph-card__more svg {
  width: 14px;
  height: 14px;
  transition: transform 160ms var(--amph-ease);
}

.amph-card--link:hover .amph-card__more svg {
  transform: translateX(3px);
}

.amph-card--accent {
  border-top: 3px solid var(--amph-green);
}

.amph-card--gold {
  border-top: 3px solid var(--amph-gold);
}

/* ---------- architecture ---------- */

.amph-arch {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 12px;
  margin: 1.8em 0;
}

.amph-arch__node {
  padding: 18px;
  border: 1px solid var(--amph-line);
  border-radius: var(--amph-radius);
  background: var(--amph-paper-raised);
  text-align: center;
}

.amph-arch__node strong {
  display: block;
  font-family: var(--amph-head);
  font-size: 1rem;
  margin-bottom: 4px;
}

.amph-arch__node span {
  display: block;
  font-size: 0.78rem;
  color: var(--amph-muted);
  line-height: 1.45;
}

.amph-arch__node--green {
  background: #f3f9e9;
  border-color: #cfe2b4;
}

.amph-arch__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amph-green-deep);
}

.amph-arch__arrow svg {
  width: 22px;
  height: 22px;
}

/* ---------- steps ---------- */

.amph-steps {
  list-style: none;
  margin: 1.6em 0;
  padding: 0;
  counter-reset: amphstep;
}

.amph-steps li {
  position: relative;
  margin: 0 0 22px;
  padding-left: 54px;
  counter-increment: amphstep;
}

.amph-steps li::before {
  content: counter(amphstep);
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--amph-ink);
  color: var(--amph-gold);
  font-family: var(--amph-mono);
  font-size: 0.85rem;
  font-weight: 700;
}

.amph-steps li::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 40px;
  bottom: -14px;
  width: 2px;
  background: var(--amph-line);
}

.amph-steps li:last-child::after {
  display: none;
}

.amph-steps h3 {
  margin: 2px 0 6px;
  font-size: 1.05rem;
}

.amph-steps p {
  margin: 0 0 8px;
  font-size: 0.94rem;
}

/* ---------- doc index cards ---------- */

.amph-docs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.amph-doc-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--amph-line);
  border-radius: var(--amph-radius);
  background: var(--amph-paper-raised);
  color: inherit;
  transition: border-color 160ms var(--amph-ease), background 160ms var(--amph-ease);
}

.amph-doc-card:hover {
  border-color: var(--amph-green);
  background: #fbfdf5;
  text-decoration: none;
  color: inherit;
}

.amph-doc-card__num {
  font-family: var(--amph-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--amph-green-deep);
  background: var(--amph-tint);
  border: 1px solid #d7e2c5;
  border-radius: 4px;
  padding: 3px 6px;
  flex: 0 0 auto;
  margin-top: 2px;
}

.amph-doc-card strong {
  display: block;
  font-family: var(--amph-head);
  font-size: 0.97rem;
  margin-bottom: 3px;
  color: var(--amph-ink);
}

.amph-doc-card span {
  display: block;
  font-size: 0.84rem;
  color: var(--amph-muted);
  line-height: 1.45;
}

/* ---------- callout band ---------- */

.amph-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 28px;
  border-radius: var(--amph-radius);
  background: linear-gradient(120deg, #1b2b22, #24402a);
  color: #e7f0df;
  border: 1px solid #33503c;
}

.amph-band h2 {
  color: #ffffff;
  margin: 0 0 4px;
  font-size: 1.35rem;
  border: 0;
  padding: 0;
}

.amph-band p {
  margin: 0;
  color: #b7cbb0;
  font-size: 0.92rem;
  max-width: 58ch;
}

/* ---------- topic page bits ---------- */

.amph-topic-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.amph-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #41523d;
  background: var(--amph-tint);
  border: 1px solid #d6e1c3;
  border-radius: 50px;
  padding: 4px 10px;
}

.amph-chip--gold {
  background: #fdf6d8;
  border-color: #eedc9b;
  color: #6d5410;
}

.amph-related {
  margin-top: 2.2em;
  padding-top: 1.4em;
  border-top: 1px solid var(--amph-line);
}

.amph-related h2 {
  border: 0;
  padding: 0;
  margin: 0 0 12px;
  font-size: 1.15rem;
}

.amph-related ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 20px;
}

.amph-related li {
  margin: 0;
  padding-left: 16px;
  position: relative;
  font-size: 0.9rem;
}

.amph-related li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amph-gold);
  border: 1px solid #d8b53a;
}

/* ---------- pager ---------- */

.amph-pager {
  max-width: 1130px;
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.amph-pager a {
  display: block;
  padding: 14px 18px;
  border: 1px solid var(--amph-line);
  border-radius: var(--amph-radius);
  background: var(--amph-paper-raised);
  color: var(--amph-ink);
  box-shadow: var(--amph-shadow);
  transition: border-color 160ms var(--amph-ease), transform 160ms var(--amph-ease);
}

.amph-pager a:hover {
  border-color: var(--amph-green);
  transform: translateY(-2px);
  text-decoration: none;
}

.amph-pager span {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--amph-muted);
  margin-bottom: 3px;
}

.amph-pager strong {
  font-family: var(--amph-head);
  font-size: 0.95rem;
}

.amph-pager__next {
  text-align: right;
}

/* ---------- footer ---------- */

.amph-foot {
  max-width: 1130px;
  margin: 46px auto 0;
  padding: 36px 30px 22px;
  border-radius: var(--amph-radius) var(--amph-radius) 0 0;
  background: var(--amph-ink);
  color: #b9c9b1;
  border: 1px solid #2b4033;
  border-bottom: 0;
}

.amph-foot__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 26px;
  border-bottom: 1px solid #2b4033;
}

.amph-foot__brand {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.amph-foot__brand img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid #3d5947;
}

.amph-foot__brand strong {
  display: block;
  font-family: var(--amph-head);
  font-size: 1.05rem;
  color: #ffffff;
  margin-bottom: 4px;
}

.amph-foot__brand p {
  margin: 0;
  font-size: 0.83rem;
  line-height: 1.6;
  color: #9fb397;
  max-width: 30ch;
}

.amph-foot h2 {
  font-family: var(--amph-body);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amph-gold);
  margin: 0 0 10px;
  border: 0;
  padding: 0;
}

.amph-foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.amph-foot li {
  margin: 0 0 7px;
}

.amph-foot a {
  color: #c5d5bd;
  font-size: 0.86rem;
}

.amph-foot a:hover {
  color: #ffffff;
}

.amph-foot__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 18px;
  font-size: 0.78rem;
  color: #93a88b;
}

.amph-foot__base a {
  color: #b9c9b1;
}

.amph-up {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid #3d5947;
  background: var(--amph-ink);
  color: var(--amph-gold);
  box-shadow: var(--amph-shadow-lift);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 180ms var(--amph-ease), transform 180ms var(--amph-ease), visibility 180ms;
}

.amph-up.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.amph-up svg {
  width: 18px;
  height: 18px;
}

/* ---------- reference blocks ---------- */

.amph-api {
  border: 1px solid var(--amph-line);
  border-radius: var(--amph-radius);
  background: var(--amph-paper-raised);
  margin: 1.2em 0;
  box-shadow: var(--amph-shadow);
  overflow: hidden;
}

.amph-api__sig {
  padding: 12px 16px;
  background: var(--amph-tint);
  border-bottom: 1px solid var(--amph-line);
  font-family: var(--amph-mono);
  font-size: 0.84rem;
  color: var(--amph-ink);
  overflow-x: auto;
  white-space: nowrap;
}

.amph-api__sig strong {
  color: var(--amph-green-darkest);
}

.amph-api__body {
  padding: 14px 16px;
  font-size: 0.94rem;
}

.amph-api__body p:last-child,
.amph-api__body ul:last-child,
.amph-api__body dl:last-child {
  margin-bottom: 0;
}

.amph-api__body dl {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 4px 16px;
  margin: 10px 0 0;
}

.amph-api__body dt {
  font-family: var(--amph-mono);
  font-size: 0.8rem;
  color: var(--amph-green-darkest);
  font-weight: 700;
}

.amph-api__body dd {
  margin: 0;
  font-size: 0.9rem;
}

.amph-subapi {
  margin: 1em 0 0 1.2em;
  padding-left: 1em;
  border-left: 2px solid var(--amph-line);
}

.amph-subapi h3 {
  margin-top: 1.2em;
  font-size: 1.05rem;
}

/* ---------- index pages ---------- */

.amph-index-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 1.2em 0 1.8em;
}

.amph-index-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  border: 1px solid var(--amph-line);
  border-radius: var(--amph-radius-sm);
  background: var(--amph-paper-raised);
  font-family: var(--amph-mono);
  font-size: 0.78rem;
  color: var(--amph-ink);
}

.amph-index-nav a:hover {
  border-color: var(--amph-green);
  background: var(--amph-tint);
  text-decoration: none;
}

.amph-index-group {
  margin: 0 0 1.6em;
}

.amph-index-group h2 {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amph-green-deep);
  border-top: 1px solid var(--amph-line);
  border-bottom: 0;
  padding-top: 12px;
  margin: 1.4em 0 0.7em;
}

.amph-index-list {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
  column-gap: 34px;
}

.amph-index-list li {
  break-inside: avoid;
  margin: 0 0 8px;
  font-size: 0.9rem;
}

.amph-index-list .amph-index-role {
  display: block;
  font-size: 0.74rem;
  color: var(--amph-muted);
  font-family: var(--amph-mono);
}

/* ---------- search ---------- */

.amph-searchpage {
  max-width: 860px;
}

.amph-searchbox {
  display: flex;
  gap: 10px;
  margin: 1.4em 0 0.8em;
}

.amph-searchbox input {
  flex: 1 1 auto;
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--amph-line-strong);
  border-radius: var(--amph-radius);
  background: var(--amph-paper-raised);
  font-family: var(--amph-body);
  font-size: 1rem;
  color: var(--amph-text);
}

.amph-searchbox input:focus {
  border-color: var(--amph-green-deep);
}

.amph-searchmeta {
  font-size: 0.82rem;
  color: var(--amph-muted);
  margin: 0 0 1.6em;
}

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

.amph-result {
  padding: 18px 0;
  border-top: 1px solid var(--amph-line);
}

.amph-result:first-child {
  border-top: 0;
}

.amph-result h2 {
  margin: 0 0 4px;
  font-size: 1.12rem;
  border: 0;
  padding: 0;
}

.amph-result p {
  margin: 0 0 5px;
  font-size: 0.93rem;
  color: #4c584f;
}

.amph-result .amph-result__path {
  font-family: var(--amph-mono);
  font-size: 0.74rem;
  color: var(--amph-muted);
}

.amph-suggest {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 2em;
}

.amph-suggest a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--amph-line);
  border-radius: 50px;
  background: var(--amph-paper-raised);
  padding: 6px 12px;
  font-size: 0.8rem;
  color: var(--amph-ink);
}

.amph-suggest a:hover {
  border-color: var(--amph-green);
  background: var(--amph-tint);
  text-decoration: none;
}

.amph-empty {
  padding: 26px;
  border: 1px dashed var(--amph-line-strong);
  border-radius: var(--amph-radius);
  background: #fbfcf6;
}

.amph-empty h2 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  border: 0;
  padding: 0;
}

.amph-empty p {
  margin: 0;
  color: var(--amph-muted);
  font-size: 0.92rem;
}

/* ---------- 404 ---------- */

.amph-lost {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--amph-line);
  border-radius: var(--amph-radius);
  background:
    radial-gradient(circle at 70% 20%, rgba(138, 199, 68, 0.18), transparent 40%),
    var(--amph-paper-raised);
  padding: clamp(30px, 5vw, 60px);
  text-align: center;
}

.amph-lost__num {
  font-family: var(--amph-head);
  font-size: clamp(4.5rem, 13vw, 8rem);
  line-height: 0.9;
  color: var(--amph-ink);
  letter-spacing: -0.04em;
  margin: 0;
}

.amph-lost__num span {
  color: var(--amph-green);
}

.amph-lost__mark {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 2px solid var(--amph-gold);
  margin: 0 auto 14px;
  display: block;
  background: #f4f8ec;
}

.amph-lost p {
  max-width: 54ch;
  margin: 0 auto 1.4em;
  color: #4c584f;
}

/* ---------- contents page ---------- */

.amph-toc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 32px;
  margin: 1.4em 0;
}

.amph-toc-block {
  border-top: 1px solid var(--amph-line);
  padding-top: 12px;
}

.amph-toc-block h2 {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amph-green-deep);
  border: 0;
  padding: 0;
  margin: 0 0 8px;
}

.amph-toc-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.amph-toc-block li {
  margin: 0 0 6px;
  font-size: 0.9rem;
}

.amph-toc-block li ul {
  margin: 6px 0 0 14px;
}

.amph-toc-block li li {
  font-size: 0.84rem;
}

/* ---------- reveal animation ---------- */

.amph-reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 200ms var(--amph-ease), transform 200ms var(--amph-ease);
}

.amph-reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */

@media (max-width: 1399px) {
  .amph-doc.has-rail {
    max-width: 900px;
    display: block;
  }

  .amph-toc {
    display: none;
  }
}

@media (max-width: 1180px) {
  .amph-topnav a:nth-child(2),
  .amph-topnav a:nth-child(3) {
    display: none;
  }
}

@media (max-width: 1024px) {
  :root {
    --amph-rail: 260px;
  }

  .amph-hero__grid {
    grid-template-columns: 1fr;
  }

  .amph-orb {
    display: none;
  }

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

  .amph-foot__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .amph-foot__grid > div:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 880px) {
  .amph-search {
    display: none;
  }

  .amph-searchlink {
    display: inline-flex;
  }

  .amph-topnav {
    display: none;
  }

  .amph-burger {
    display: inline-flex;
  }

  .amph-frame {
    display: block;
  }

  .amph-rail {
    position: fixed;
    top: var(--amph-top);
    left: 0;
    bottom: 0;
    height: auto;
    width: min(86vw, 330px);
    z-index: 80;
    transform: translateX(-104%);
    transition: transform 220ms var(--amph-ease);
    box-shadow: 24px 0 60px -30px rgba(0, 0, 0, 0.5);
  }

  .amph-rail.is-open {
    transform: translateX(0);
  }

  .amph-scrim {
    display: block;
    position: fixed;
    inset: var(--amph-top) 0 0;
    background: rgba(20, 32, 26, 0.46);
    z-index: 70;
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms var(--amph-ease);
  }

  .amph-scrim.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .amph-main {
    padding-top: 18px;
  }

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

  .amph-arch {
    grid-template-columns: 1fr;
  }

  .amph-arch__arrow {
    transform: rotate(90deg);
    padding: 2px 0;
  }

  .amph-index-list {
    columns: 1;
  }
}

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

  .amph-top__inner {
    padding: 0 14px;
    gap: 12px;
  }

  .amph-brand__text span {
    display: none;
  }

  .amph-main {
    padding: 16px 14px 0;
  }

  .amph-crumbs {
    margin-bottom: 12px;
  }

  .amph-hero {
    padding: 24px 20px;
    margin-bottom: 24px;
  }

  .amph-orb {
    display: none;
  }

  .amph-hero__strip {
    font-size: 0.76rem;
  }

  .amph-grid--2,
  .amph-grid--3,
  .amph-grid--4,
  .amph-docs,
  .amph-related ul,
  .amph-toc-grid {
    grid-template-columns: 1fr;
  }

  .amph-section__head {
    display: block;
  }

  .amph-foot {
    padding: 28px 20px 20px;
    margin-top: 34px;
  }

  .amph-foot__grid {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }

  .amph-foot__grid > div:first-child {
    grid-column: 1 / -1;
  }

  .amph-foot__grid > div:last-child {
    grid-column: 1 / -1;
  }

  .amph-pager {
    grid-template-columns: 1fr;
  }

  .amph-pager__next {
    text-align: left;
  }

  .amph-api__body dl {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .amph-api__body dd {
    margin-bottom: 8px;
  }

  .amph-table {
    min-width: 440px;
  }

  .amph-lost {
    padding: 30px 18px;
  }
}

@media (max-width: 420px) {
  .amph-top__inner {
    gap: 8px;
  }

  .amph-brand__mark {
    width: 30px;
    height: 30px;
  }

  .amph-brand__text strong {
    font-size: 0.98rem;
  }

  .amph-actions .amph-btn,
  .amph-hero__actions .amph-btn {
    width: 100%;
  }

  .amph-hero__install {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .amph-reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .amph-top,
  .amph-rail,
  .amph-toc,
  .amph-pager,
  .amph-foot,
  .amph-up,
  .amph-scrim {
    display: none !important;
  }

  .amph-main {
    padding: 0;
  }

  .amph-doc,
  .amph-doc.has-rail {
    display: block;
    max-width: none;
  }

  body.amph-body {
    font-size: 12pt;
  }
}

.amph-article h3 code.amph-sighead {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font-family: var(--amph-mono);
  font-size: 0.82em;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: normal;
  word-break: break-word;
}

.amph-article h4 code,
.amph-api__body h4 code {
  background: none;
  border: 0;
  padding: 0;
  color: var(--amph-ink);
  font-family: var(--amph-mono);
  font-size: 0.92em;
  font-weight: 700;
}
.amph-pager--single {
  grid-template-columns: 1fr;
}

.amph-pager--single .amph-pager__next {
  text-align: left;
}
.amph-suggest[hidden],
.amph-scrim[hidden] {
  display: none;
}

[inert] {
  pointer-events: none;
}
.amph-sources {
  margin-top: 2.2em;
  padding-top: 1.4em;
  border-top: 1px solid var(--amph-line);
}

.amph-sources h2 {
  border: 0;
  padding: 0;
  margin: 0 0 12px;
  font-size: 1.15rem;
}

.amph-sources ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
}

.amph-sources li {
  margin: 0;
  padding-left: 16px;
  position: relative;
  font-size: 0.9rem;
}

.amph-sources li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amph-green);
  border: 1px solid #b0d27e;
}

.amph-sources a::after {
  content: " \2197";
  font-size: 0.85em;
  color: var(--amph-gold-deep);
}

@media (max-width: 720px) {
  .amph-sources ul {
    grid-template-columns: 1fr;
  }
}