/* ==========================================================================
   The Peptide Progress — science-editorial design system
   Independent educational resource. No frameworks, no runtime CSS.
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin subset, variable) ---------- */
@font-face {
  font-family: 'Newsreader';
  src: url('/assets/fonts/newsreader.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plex Sans';
  src: url('/assets/fonts/plex-sans.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plex Mono';
  src: url('/assets/fonts/plex-mono.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --navy-950: #05121a;
  --navy-900: #081c27;
  --navy-800: #0d2a38;
  --navy-700: #163a4c;
  --navy-600: #21506a;

  --teal-700: #1d5f5c;
  --teal-600: #266f6b;
  --teal-500: #3a8b85;
  --teal-300: #7ebcb6;
  --teal-200: #aed6d2;

  --blue-600: #1a53d8;
  --blue-500: #2e66ee;
  --blue-300: #8ea9f7;

  --paper: #fbfaf7;
  --paper-2: #f4f2ec;
  --paper-3: #eae7de;
  --rule: #dcd8cd;
  --rule-soft: #e7e4db;

  --text: #10222c;
  --text-2: #3d5560;
  --text-3: #566871;
  --on-dark: #eef4f4;
  --on-dark-2: #a9c2c6;

  --sans: 'Plex Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --serif: 'Newsreader', ui-serif, Georgia, 'Times New Roman', serif;
  --mono: 'Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --wrap: 74rem;
  --measure: 40rem;
  --radius: 4px;
  --radius-lg: 8px;

  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1: clamp(1.125rem, 1.08rem + 0.22vw, 1.25rem);
  --step-2: clamp(1.35rem, 1.26rem + 0.42vw, 1.6rem);
  --step-3: clamp(1.6rem, 1.44rem + 0.75vw, 2.1rem);
  --step-4: clamp(1.95rem, 1.66rem + 1.35vw, 2.9rem);
  --step-5: clamp(2.3rem, 1.8rem + 2.3vw, 3.9rem);

  --shadow-1: 0 1px 2px rgba(8, 28, 39, 0.05), 0 8px 24px -16px rgba(8, 28, 39, 0.18);
  --shadow-2: 0 2px 4px rgba(8, 28, 39, 0.06), 0 22px 44px -28px rgba(8, 28, 39, 0.3);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.65;
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img,
svg,
picture {
  max-width: 100%;
  display: block;
  height: auto;
}
h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.014em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 {
  font-size: var(--step-5);
}
h2 {
  font-size: var(--step-4);
}
h3 {
  font-size: var(--step-2);
}
h4 {
  font-size: var(--step-1);
}
p,
ul,
ol,
dl,
table,
figure,
blockquote {
  margin: 0 0 1.15em;
}
a {
  color: var(--blue-600);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}
a:hover {
  color: var(--teal-700);
}
strong {
  font-weight: 600;
}
code,
kbd,
samp {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--paper-2);
  border: 1px solid var(--rule-soft);
  border-radius: 3px;
  padding: 0.1em 0.35em;
}
hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2.5rem 0;
}
:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---------- Layout primitives ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 48rem) {
  .wrap {
    padding-inline: 2rem;
  }
}
.section {
  padding-block: clamp(2.75rem, 6vw, 5.5rem);
}
.section--tight {
  padding-block: clamp(2rem, 4vw, 3.25rem);
}
.section--paper2 {
  background: var(--paper-2);
  border-block: 1px solid var(--rule-soft);
}
.stack > * + * {
  margin-top: 1rem;
}
.lede {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--text-2);
  max-width: 44rem;
}
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--navy-900);
  color: #fff;
  padding: 0.75rem 1.15rem;
  border-radius: 0 0 var(--radius) 0;
}
.skip:focus {
  left: 0;
}

/* ---------- Eyebrow / meta type ---------- */
.eyebrow {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-700);
  margin: 0 0 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: '';
  width: 1.6rem;
  height: 1px;
  background: var(--teal-500);
  flex: none;
}
.eyebrow--dark {
  color: var(--teal-300);
}
.eyebrow--dark::before {
  background: var(--teal-300);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--text);
  flex: none;
}
.brand svg {
  flex: none;
}
.brand-name {
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.05;
}
.brand-name--footer {
  color: #fff;
}
.brand-sub {
  display: block;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 0.2rem;
  font-weight: 500;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font: inherit;
  font-size: 0.85rem;
  font-family: var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 0.55rem 0.8rem;
  cursor: pointer;
}
.nav-toggle:hover {
  border-color: var(--teal-500);
}
.nav-toggle-bars {
  display: grid;
  gap: 3px;
  width: 15px;
}
.nav-toggle-bars span {
  height: 1.5px;
  background: currentColor;
  display: block;
}
.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-nav a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.94rem;
}
.primary-nav a:hover {
  color: var(--teal-700);
}
.primary-nav a[aria-current='page'] {
  color: var(--text);
  font-weight: 600;
}

/* mobile: panel */
@media (max-width: 63.999rem) {
  /* No JavaScript: the menu stays open as a plain stacked list and the toggle
     button, which would do nothing, is hidden. */
  .primary-nav {
    display: block;
    border-top: 1px solid var(--rule);
    padding-block: 0.5rem 1.25rem;
  }
  .nav-toggle {
    display: none;
  }
  .js .nav-toggle {
    display: inline-flex;
  }
  .js .primary-nav {
    display: none;
  }
  .js .primary-nav.is-open {
    display: block;
  }
  .primary-nav ul {
    display: grid;
  }
  .primary-nav li + li {
    border-top: 1px solid var(--rule-soft);
  }
  .primary-nav a {
    display: block;
    padding: 0.8rem 0.15rem;
    font-size: 1.02rem;
  }
}
/* desktop: inline row */
@media (min-width: 64rem) {
  .nav-toggle {
    display: none;
  }
  .primary-nav ul {
    display: flex;
    align-items: center;
    gap: clamp(0.9rem, 1.5vw, 1.6rem);
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--navy-900);
  color: var(--on-dark);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1100px 420px at 78% -12%, rgba(46, 102, 238, 0.26), transparent 62%),
    radial-gradient(760px 420px at 6% 108%, rgba(58, 139, 133, 0.28), transparent 66%);
  z-index: -2;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(174, 214, 210, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(174, 214, 210, 0.07) 1px, transparent 1px);
  background-size: 3.5rem 3.5rem;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 78%);
  z-index: -1;
}
.hero h1,
.hero h2 {
  color: #fff;
}
.hero p {
  color: var(--on-dark-2);
}
.hero-inner {
  padding-block: clamp(3rem, 8vw, 6.5rem);
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
}
@media (min-width: 62rem) {
  .hero-inner--split {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.85fr);
    align-items: center;
  }
}
.hero .lede {
  color: var(--on-dark-2);
  max-width: 34rem;
}
.hero-figure {
  border: 1px solid rgba(174, 214, 210, 0.22);
  border-radius: var(--radius-lg);
  background: rgba(5, 18, 26, 0.45);
  padding: 1.1rem 1.15rem 0.9rem;
}
.hero-figure figcaption {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark-2);
  margin-top: 0.8rem;
}
.page-head {
  padding-block: clamp(2.25rem, 5vw, 4rem);
}
.page-head .lede {
  color: var(--on-dark-2);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.97rem;
  text-decoration: none;
  padding: 0.72rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn--primary {
  background: var(--blue-600);
  color: #fff;
}
.btn--primary:hover {
  background: #1443b8;
  color: #fff;
}
.btn--ghost {
  border-color: rgba(174, 214, 210, 0.35);
  color: var(--on-dark);
}
.btn--ghost:hover {
  border-color: var(--teal-300);
  color: #fff;
  background: rgba(58, 139, 133, 0.14);
}
.btn--quiet {
  border-color: var(--rule);
  color: var(--text);
  background: #fff;
}
.btn--quiet:hover {
  border-color: var(--teal-500);
  color: var(--teal-700);
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

/* ---------- Cards & grids ---------- */
.grid {
  display: grid;
  gap: 1.15rem;
}
@media (min-width: 40rem) {
  .grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 58rem) {
  .grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 40rem) and (max-width: 57.999rem) {
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-1);
}
.card h3 {
  font-size: var(--step-1);
  margin-bottom: 0.45rem;
}
.card p {
  color: var(--text-2);
  font-size: 0.97rem;
  margin-bottom: 0.9rem;
}
.card > :last-child {
  margin-bottom: 0;
}
.card-link {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--blue-600);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.card--link:hover {
  border-color: var(--teal-300);
  box-shadow: var(--shadow-2);
}
.card--link:has(a:focus-visible) {
  outline: 3px solid var(--blue-500);
  outline-offset: 2px;
}
.card-stretch::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.card-num {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--teal-700);
  margin-bottom: 0.8rem;
  display: block;
}
.card--dark {
  background: var(--navy-800);
  border-color: rgba(174, 214, 210, 0.18);
  color: var(--on-dark);
}
.card--dark h3 {
  color: #fff;
}
.card--dark p {
  color: var(--on-dark-2);
}

/* ---------- Prose (article body) ---------- */
.layout-article {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}
@media (min-width: 64rem) {
  .layout-article {
    grid-template-columns: minmax(0, 1fr) 15.5rem;
  }
}
@media (max-width: 63.999rem) {
  /* Sidebar contents list reads better above the article, and stickiness
     would fight the sticky header on a short viewport. */
  .layout-article > .toc {
    order: -1;
    position: static;
  }
}
.prose {
  max-width: 42rem;
}
.prose > h2 {
  font-size: var(--step-3);
  margin-top: 2.6rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
.prose > h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.prose > h3 {
  margin-top: 2rem;
}
.prose p,
.prose li {
  color: var(--text);
}
.prose ul,
.prose ol {
  padding-left: 1.25rem;
}
.prose li + li {
  margin-top: 0.5rem;
}
.prose li::marker {
  color: var(--teal-600);
}
.prose figure {
  margin: 2rem 0;
}
.prose figcaption {
  font-size: 0.85rem;
  color: var(--text-3);
  margin-top: 0.6rem;
  font-family: var(--mono);
  letter-spacing: 0.02em;
}
.prose dt {
  font-weight: 600;
}
.prose dd {
  margin: 0.25rem 0 1rem;
  color: var(--text-2);
}

/* ---------- Callouts ---------- */
.note {
  border: 1px solid var(--rule);
  border-left: 3px solid var(--teal-500);
  background: var(--paper-2);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.1rem 1.2rem;
  margin: 1.8rem 0;
}
.note > :last-child {
  margin-bottom: 0;
}
.note-title {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-700);
  margin: 0 0 0.5rem;
  font-weight: 500;
}
.note--flag {
  border-left-color: #b4551f;
}
.note--flag .note-title {
  color: #96471a;
}

/* ---------- Tables ---------- */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  margin: 1.8rem 0;
  background: #fff;
}
table {
  border-collapse: collapse;
  width: 100%;
  margin: 0;
  font-size: 0.94rem;
}
/* Narrow screens scroll the table sideways rather than crushing columns. */
.table-scroll table {
  min-width: 32rem;
}
th,
td {
  text-align: left;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: top;
}
thead th {
  background: var(--paper-2);
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
}
tbody tr:last-child td {
  border-bottom: 0;
}

/* ---------- Article meta / references ---------- */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark-2);
  margin-top: 1.5rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(174, 214, 210, 0.22);
}
.article-meta span {
  display: inline-flex;
  gap: 0.4rem;
}
.article-meta b {
  color: var(--teal-300);
  font-weight: 500;
}
.refs {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
.refs h2 {
  font-size: var(--step-2);
}
.refs ol {
  font-size: 0.92rem;
  color: var(--text-2);
  padding-left: 1.3rem;
}
.refs li {
  margin-bottom: 0.7rem;
}
.refs a {
  word-break: break-word;
}

/* ---------- Table of contents (sidebar) ---------- */
.toc {
  position: sticky;
  top: 5.75rem;
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 1.15rem 1.2rem;
  font-size: 0.92rem;
}
.toc h2 {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 0.75rem;
  font-weight: 500;
}
.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc;
}
.toc li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
  counter-increment: toc;
}
.toc li::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 0;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--teal-500);
  top: 0.25em;
}
.toc a {
  text-decoration: none;
  color: var(--text-2);
}
.toc a:hover {
  color: var(--teal-700);
  text-decoration: underline;
}

/* ---------- Breadcrumbs ---------- */
.crumbs {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-top: 1.5rem;
}
.crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
}
.crumbs a {
  color: var(--on-dark-2);
  text-decoration: none;
}
.crumbs a:hover {
  color: #fff;
  text-decoration: underline;
}
.crumbs li[aria-current] {
  color: var(--teal-300);
}
.crumbs li + li::before {
  content: '/';
  margin-right: 0.4rem;
  color: rgba(174, 214, 210, 0.45);
}

/* ---------- Glossary ---------- */
.az-index {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
}
.az-index a,
.az-index span {
  display: grid;
  place-items: center;
  min-width: 2.2rem;
  height: 2.2rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 0.8rem;
  text-decoration: none;
  color: var(--text);
  background: #fff;
}
.az-index a:hover {
  border-color: var(--teal-500);
  color: var(--teal-700);
}
.az-index span {
  color: var(--rule);
  background: transparent;
}
.gloss-group {
  margin-bottom: 2.75rem;
}
.gloss-letter {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  color: var(--teal-700);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
  font-weight: 500;
}
.gloss-list {
  margin: 0;
}
.gloss-list dt {
  font-family: var(--serif);
  font-size: var(--step-1);
  font-weight: 600;
  margin-bottom: 0.15rem;
}
.gloss-list dd {
  margin: 0 0 1.5rem;
  color: var(--text-2);
  max-width: 44rem;
}
.gloss-list dd:last-child {
  margin-bottom: 0;
}

/* ---------- Library index ---------- */
.index-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.index-item {
  border-bottom: 1px solid var(--rule);
  padding: 1.6rem 0;
  display: grid;
  gap: 0.35rem;
}
.index-item h3 {
  margin: 0;
  font-size: var(--step-2);
}
.index-item h3 a {
  text-decoration: none;
  color: var(--text);
}
.index-item h3 a:hover {
  color: var(--blue-600);
  text-decoration: underline;
}
.index-item p {
  margin: 0;
  color: var(--text-2);
  max-width: 46rem;
}
.index-meta {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}
.index-meta b {
  color: var(--teal-700);
  font-weight: 500;
}
.cites {
  font-size: 0.85rem;
  color: var(--text-3);
  margin: 0.35rem 0 0;
}
.cites b {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 500;
}

/* ---------- External resource block ---------- */
.ext {
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--paper-2);
  padding: 1.25rem 1.3rem;
  margin: 2rem 0;
}
.ext p {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-2);
}
.ext ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.ext li {
  margin: 0;
}
.ext a {
  font-weight: 500;
}
.ext-tag {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  margin-left: 0.4rem;
  white-space: nowrap;
  background: #fff;
}

/* ---------- Disclosure strip ---------- */
.disclosure {
  background: var(--navy-800);
  color: var(--on-dark-2);
  border-top: 1px solid rgba(174, 214, 210, 0.16);
}
.disclosure .wrap {
  padding-block: 1.5rem;
}
.disclosure p {
  margin: 0;
  font-size: 0.9rem;
  max-width: 62rem;
}
.disclosure a {
  color: var(--teal-200);
}

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  gap: 1.1rem;
  max-width: 34rem;
}
.field {
  display: grid;
  gap: 0.35rem;
}
.field label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
  font-weight: 500;
}
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 0.7rem 0.8rem;
  width: 100%;
}
.field textarea {
  min-height: 9rem;
  resize: vertical;
}
.field-hint {
  font-size: 0.85rem;
  color: var(--text-3);
}
.hp {
  position: absolute;
  left: -9999px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: var(--on-dark-2);
  font-size: 0.94rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  padding-block: clamp(2.5rem, 5vw, 3.5rem) 2rem;
}
@media (min-width: 50rem) {
  .footer-grid {
    grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
  }
}
.site-footer h2 {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-300);
  margin-bottom: 0.9rem;
  font-weight: 500;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.site-footer a {
  color: var(--on-dark);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--teal-200);
  text-decoration: underline;
}
.footer-brand p {
  max-width: 26rem;
  color: var(--on-dark-2);
  font-size: 0.92rem;
}
.footer-disclaimer {
  border-top: 1px solid rgba(174, 214, 210, 0.16);
  padding-block: 1.5rem 2.5rem;
}
.footer-disclaimer p {
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--on-dark-2);
  max-width: 68rem;
}
.footer-disclaimer strong {
  color: var(--on-dark);
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 1.25rem;
}

/* ---------- Utilities ---------- */
.fig-fill {
  width: 100%;
  height: auto;
}
.fig-faint {
  opacity: 0.5;
}
.h-sub {
  font-size: var(--step-3);
}
.measure-wide {
  max-width: 46rem;
}
.list-indent {
  padding-left: 1.15rem;
}
.items-start {
  align-items: start;
}
.flush {
  border: 0;
  padding: 0;
  margin-top: 0;
}
.plain-link {
  color: inherit;
  text-decoration: none;
}
.mt-1 {
  margin-top: 0.9rem;
}
.mt-2 {
  margin-top: 1.25rem;
}
.mt-3 {
  margin-top: 1.5rem;
}
.mt-4 {
  margin-top: 2rem;
}
.mt-5 {
  margin-top: 2.5rem;
}
.mb-1 {
  margin-bottom: 1rem;
}
.center {
  text-align: center;
  margin-inline: auto;
}
.mt-0 {
  margin-top: 0;
}
.mb-0 {
  margin-bottom: 0;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.data-figure {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.2rem 1rem;
}
.data-figure svg {
  width: 100%;
  height: auto;
}
