/* =========================================================
   Reviews Semaglutide — Denim & Industrial Craft Aesthetic
   Archivo Narrow + Asap + Spline Sans Mono
   Dark-mode only: navy/indigo ground, brass/copper hardware
   ========================================================= */

/* ---- Custom Properties ---- */
:root {
  --primary:          #223C63;
  --primary-50:       #E7ECF3;
  --primary-900:      #101D33;
  --secondary:        #1A2B45;
  --accent:           #DCB35C;
  --accent-copper:    #B87333;
  --accent-saddle:    #8B4513;
  --neutral-50:       #E8E3D6;
  --neutral-200:      #34466A;
  --neutral-500:      #9FB0CC;
  --neutral-900:      #0C1626;
  --bg:               #1A2B45;
  --surface:          #223C63;
  --surface-elevated: #284873;
  --surface-canvas:   #E8E3D6;
  --text:             #F4F1E8;
  --text-on-canvas:   #1B2233;
  --text-muted:       #9FB0CC;
  --rule:             #34466A;
  --rule-brass:       #DCB35C;
  --rule-copper:      #B87333;
  --stitch:           #DCB35C;
  --success:          #6FA98A;
  --warning:          #DCB35C;
  --danger:           #C8624E;

  --max-width:        70rem;
  --container-px:     clamp(1.25rem, 4vw, 2.5rem);
  --font-heading:     'Archivo Narrow', 'Arial Narrow', 'Helvetica Neue Condensed', system-ui, sans-serif;
  --font-body:        'Asap', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:        'Spline Sans Mono', 'IBM Plex Mono', 'Courier New', monospace;
  --radius-button:    0.25rem;
  --radius-card:      0.25rem;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  min-height: 100vh;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--text); }
ul, ol { padding-left: 0; list-style: none; }

/* ---- Container ---- */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

/* ---- Denim Texture (masthead/footer only) ---- */
.denim-texture {
  background-color: var(--secondary);
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255,255,255,0.012) 2px,
      rgba(255,255,255,0.012) 4px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 3px,
      rgba(255,255,255,0.008) 3px,
      rgba(255,255,255,0.008) 6px
    );
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.25rem, 4.75vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.625rem, 3vw, 2.25rem); font-weight: 600; }
h3 { font-size: 1.375rem; font-weight: 600; }
h4 { font-size: 1.0625rem; font-weight: 600; }

p { margin-bottom: 1.25rem; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; }
em { font-style: italic; }

code, .mono {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--neutral-200);
  border-radius: 0.125rem;
  padding: 0.0625rem 0.25rem;
}

.lede {
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: block;
}

.eyebrow-rule {
  display: block;
  width: 3rem;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--rule-brass) 0 4px,
    transparent 4px 7px
  );
  margin-bottom: 1.25rem;
}

/* Section marker above H2 */
.section-marker {
  display: block;
  width: 3rem;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--rule-brass) 0 4px,
    transparent 4px 7px
  );
  margin-bottom: 0.5rem;
}

/* ---- Header / Masthead ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px dashed var(--rule-brass);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.125rem;
  gap: 1.5rem;
  position: relative;
}

/* Corner rivets on header bottom */
.site-header::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: var(--container-px);
  width: 6px;
  height: 6px;
  background: var(--accent-copper);
  border-radius: 50%;
  z-index: 1;
}

.site-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--neutral-50);
  letter-spacing: -0.01em;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.site-brand:hover { color: var(--accent); }
.site-brand .brand-sub {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.site-nav ul {
  display: none;
  gap: 1.75rem;
}
.site-nav a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--neutral-50);
  padding-bottom: 2px;
  position: relative;
  transition: color 180ms ease-out;
}
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--rule-brass) 0 4px,
    transparent 4px 7px
  );
  opacity: 0;
  transition: opacity 180ms ease-out;
}
.site-nav a:hover { color: var(--accent); }
.site-nav a:hover::after { opacity: 1; }
.site-nav a[aria-current="page"] {
  color: var(--accent);
}
.site-nav a[aria-current="page"]::after { opacity: 1; }

/* Mobile nav toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--neutral-50);
  transition: transform 180ms ease-out, opacity 180ms ease-out;
}

/* Mobile nav open state */
.mobile-nav-open .site-nav ul {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  background: var(--surface);
  border-bottom: 2px dashed var(--rule-brass);
  padding: 1.25rem var(--container-px);
  gap: 1rem;
  z-index: 99;
}

@media (min-width: 768px) {
  .site-nav ul { display: flex !important; flex-direction: row; position: static; background: none; border: none; padding: 0; }
  .nav-toggle { display: none; }
}

/* ---- Hero ---- */
.hero {
  padding-block: 4rem 3rem;
  position: relative;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.hero-content { max-width: 52ch; }
.hero h1 {
  font-size: clamp(2.25rem, 4.75vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.12;
  color: var(--neutral-50);
  margin-bottom: 1.25rem;
}
.hero .lede { margin-bottom: 1.75rem; }
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-top: 1.75rem;
}

/* Hero figure — riveted enamel patch */
.hero-figure {
  position: relative;
  align-self: center;
}
.hero-figure img {
  border: 1px solid var(--rule-brass);
  width: 100%;
  height: auto;
}
.hero-figure::before,
.hero-figure::after,
.hero-figure .rivet-bl,
.hero-figure .rivet-br {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--accent-copper);
  border-radius: 50%;
  z-index: 2;
}
.hero-figure::before { top: -3px; left: -3px; }
.hero-figure::after  { top: -3px; right: -3px; }
.hero-figure .rivet-bl { bottom: -3px; left: -3px; }
.hero-figure .rivet-br { bottom: -3px; right: -3px; }

@media (min-width: 900px) {
  .hero .container {
    grid-template-columns: 52ch 1fr;
    align-items: center;
  }
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-button);
  cursor: pointer;
  transition: background 180ms ease-out, border-color 180ms ease-out, box-shadow 180ms ease-out;
  text-align: center;
}
.btn:focus-visible {
  outline: 2px solid var(--accent-copper);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border: 1px solid var(--accent-copper);
}
.btn-primary:hover {
  background: #C89E47;
  color: var(--bg);
  box-shadow: inset 0 0 0 2px var(--bg);
}

.btn-secondary {
  background: transparent;
  color: var(--neutral-50);
  border: 1.5px solid var(--neutral-50);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---- Main content area ---- */
main { padding-bottom: 4rem; }

/* ---- Content sections ---- */
.content-section {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-top: 2px dashed var(--rule-brass);
  border-radius: var(--radius-card);
  padding: 2rem;
  margin-bottom: 2.5rem;
}
.content-section h2 {
  margin-bottom: 1.25rem;
}
.content-section h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.875rem;
}
.content-section p + h3 { margin-top: 2rem; }

/* Section separator */
.section-sep {
  border: none;
  border-top: 1px solid var(--rule);
  margin-block: 2.5rem;
}

/* Prose container */
.prose {
  max-width: 62ch;
}

/* ---- Article layout ---- */
.article-body {
  padding-block: 2.5rem;
}
.article-body .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 1024px) {
  .article-body .container {
    grid-template-columns: 1fr 16rem;
    gap: 3rem;
    align-items: start;
  }
}

/* Sidebar (hardware rail) */
.hardware-rail {
  display: none;
}
@media (min-width: 1024px) {
  .hardware-rail {
    display: block;
    position: sticky;
    top: 5rem;
    border-left: 1px solid var(--rule);
    padding-left: 1.5rem;
  }
  .hardware-rail h4 {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1rem;
  }
  .hardware-rail ul { display: flex; flex-direction: column; gap: 0.5rem; }
  .hardware-rail a {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: color 180ms ease-out;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  .hardware-rail a::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--accent-copper);
    border-radius: 50%;
    flex-shrink: 0;
  }
  .hardware-rail a:hover { color: var(--accent); }
}

/* ---- Patch Card (trial finding) ---- */
.card-patch {
  background: var(--surface-elevated);
  border: 1px solid var(--rule);
  border-top: 2px dashed var(--rule-brass);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  position: relative;
}
.card-patch::before,
.card-patch::after,
.card-patch .rivet-bl,
.card-patch .rivet-br {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--accent-copper);
  border-radius: 50%;
}
.card-patch::before { top: -3px; left: -3px; }
.card-patch::after  { top: -3px; right: -3px; }
.card-patch .rivet-bl { bottom: -3px; left: -3px; }
.card-patch .rivet-br { bottom: -3px; right: -3px; }

.card-lot {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.25rem;
}
.card-lot-rule {
  display: block;
  width: 2rem;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--rule-brass) 0 3px,
    transparent 3px 6px
  );
  margin-bottom: 0.875rem;
}

/* ---- Spec card ---- */
.card-spec {
  background: var(--surface-elevated);
  border-top: 2px solid var(--accent);
  border-bottom: 1px solid var(--accent-copper);
  border-left: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 1.25rem;
}
.spec-item {}
.spec-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.25rem;
}
.spec-value {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
}

/* ---- Callout ---- */
.callout {
  background: var(--surface-elevated);
  border-left: 3px solid var(--accent-copper);
  border-top: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  border-radius: var(--radius-card);
  padding: 1.25rem 1.5rem;
  margin-block: 1.75rem;
}
.callout-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.625rem;
}
.callout-danger {
  border-left-color: var(--danger);
}
.callout-danger .callout-eyebrow { color: var(--danger); }

/* ---- Status chips ---- */
.chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.625rem;
  border-radius: 0.25rem;
  line-height: 1.4;
}
.chip-brass   { background: var(--accent); color: var(--bg); }
.chip-canvas  { background: transparent; border: 1px solid var(--neutral-50); color: var(--neutral-50); }
.chip-danger  { background: var(--danger); color: var(--text); }
.chip-success { background: var(--success); color: var(--bg); }

/* ---- Figure (riveted patch frame) ---- */
figure.riveted {
  margin-block: 2rem;
  position: relative;
  display: inline-block;
  width: 100%;
}
figure.riveted img {
  border: 1px solid var(--rule-brass);
  width: 100%;
}
figure.riveted::before,
figure.riveted::after,
figure.riveted .rivet-bl,
figure.riveted .rivet-br {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--accent-copper);
  border-radius: 50%;
  z-index: 2;
}
figure.riveted::before { top: -3px; left: -3px; }
figure.riveted::after  { top: -3px; right: -3px; }
figure.riveted .rivet-bl { bottom: calc(1.5rem + 3px); left: -3px; }
figure.riveted .rivet-br { bottom: calc(1.5rem + 3px); right: -3px; }
figcaption {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  padding-top: 0.5rem;
  border-top: 1px solid var(--rule);
  margin-top: 0.25rem;
}
figcaption strong {
  color: var(--accent);
  letter-spacing: 0.06em;
}

/* ---- Tables ---- */
.table-wrap { overflow-x: auto; margin-block: 1.75rem; }
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface-elevated);
  font-size: 0.9375rem;
}
thead tr {
  border-top: 2px solid var(--accent);
  border-bottom: 1px solid var(--accent-copper);
}
thead th {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  padding: 0.875rem 1rem;
  text-align: left;
  font-variant-numeric: tabular-nums;
}
tbody tr { border-bottom: 1px solid var(--rule); }
tbody td {
  padding: 0.875rem 1rem;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
tbody tr:last-child { border-bottom: none; }

/* DataTables overrides */
.dataTables_wrapper {
  background: var(--surface-elevated);
  padding: 1.25rem;
  border-radius: var(--radius-card);
  border: 1px solid var(--rule);
}
.dataTables_filter label,
.dataTables_length label {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-family: var(--font-mono);
}
.dataTables_filter input,
.dataTables_length select {
  background: var(--surface);
  border: 1px solid var(--rule);
  color: var(--text);
  padding: 0.25rem 0.5rem;
  border-radius: 0.125rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}
.dataTables_info {
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-family: var(--font-mono);
}
.dataTables_paginate .paginate_button {
  background: var(--surface) !important;
  color: var(--text-muted) !important;
  border: 1px solid var(--rule) !important;
  border-radius: 0.125rem !important;
  padding: 0.25rem 0.625rem !important;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}
.dataTables_paginate .paginate_button.current,
.dataTables_paginate .paginate_button:hover {
  background: var(--accent) !important;
  color: var(--bg) !important;
  border-color: var(--accent) !important;
}

/* ---- Citation chips ---- */
sup a[data-citation] {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dashed var(--rule-brass);
  transition: color 180ms ease-out;
  padding-bottom: 1px;
}
sup a[data-citation]:hover { color: var(--text); }

/* ---- FAQ accordion ---- */
.faq-list { margin-top: 1.5rem; }
.faq-item {
  background: var(--surface-elevated);
  border: 1px solid var(--rule);
  border-top: 2px dashed var(--rule-brass);
  border-radius: var(--radius-card);
  margin-bottom: 1rem;
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color 180ms ease-out;
}
.faq-question:hover { color: var(--accent); }
.faq-question:focus-visible {
  outline: 2px solid var(--accent-copper);
  outline-offset: 2px;
}
.faq-icon {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 180ms ease-out;
  line-height: 1;
  margin-top: 0.1rem;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  display: none;
  padding: 0 1.5rem 1.25rem;
  color: var(--text);
  border-top: 1px solid var(--rule);
}
.faq-item.open .faq-answer { display: block; padding-top: 1.25rem; }

/* ---- References list ---- */
.references-list {
  list-style: none;
  counter-reset: ref-counter;
  margin-top: 1.5rem;
}
.references-list li {
  counter-increment: ref-counter;
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.9375rem;
}
.references-list li:last-child { border-bottom: none; }
.ref-num {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--accent);
  flex-shrink: 0;
  min-width: 2.5rem;
}
.ref-body {}
.ref-doi {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
  margin-top: 0.25rem;
}
.ref-link {
  color: var(--accent-copper);
  border-bottom: 1px solid var(--rule-copper);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  transition: color 180ms ease-out;
}
.ref-link:hover { color: var(--accent); }

/* ---- Contact form ---- */
.contact-form { margin-top: 1.75rem; }
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.375rem;
}
.form-control {
  width: 100%;
  background: var(--surface-elevated);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 180ms ease-out;
}
.form-control:focus {
  outline: none;
  border-color: var(--accent);
}
.form-control:focus-visible {
  outline: 2px solid var(--accent-copper);
  outline-offset: 2px;
}
textarea.form-control { min-height: 9rem; resize: vertical; }
.form-hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.375rem;
}

/* ---- Inline list (copper-square bullets) ---- */
.inline-list { list-style: none; padding-left: 0; }
.inline-list li {
  display: flex;
  align-items: baseline;
  gap: 0.625rem;
  margin-bottom: 0.5rem;
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
}
.inline-list li::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--accent-copper);
  flex-shrink: 0;
  margin-top: 0.45em;
}

/* Lot-numeral custom list */
.lot-list { list-style: none; padding-left: 0; counter-reset: lot-counter; }
.lot-list li {
  counter-increment: lot-counter;
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
  line-height: 1.6;
}
.lot-list li::before {
  content: 'LOT. ' counter(lot-counter, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  padding-top: 0.25rem;
}

/* ---- Breadcrumb ---- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  padding-block: 1.25rem;
  padding-top: 1.5rem;
}
.breadcrumb a { color: var(--text-muted); transition: color 180ms ease-out; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { color: var(--rule-brass); }

/* ---- 404 ---- */
.cta-row--center {
  justify-content: center;
  margin-top: 1.5rem;
}

.refs-table { width: 100%; }

.page-404 {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem var(--container-px);
}
.page-404 .lot-code {
  font-family: var(--font-mono);
  font-size: clamp(4rem, 12vw, 8rem);
  color: var(--accent);
  line-height: 1;
  display: block;
  margin-bottom: 1rem;
}

/* ---- Footer ---- */
.site-footer {
  border-top: 2px dashed var(--rule-brass);
  padding-block: 3rem 2rem;
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: -5px;
  left: var(--container-px);
  width: 6px;
  height: 6px;
  background: var(--accent-copper);
  border-radius: 50%;
}
.site-footer::after {
  content: '';
  position: absolute;
  top: -5px;
  right: var(--container-px);
  width: 6px;
  height: 6px;
  background: var(--accent-copper);
  border-radius: 50%;
}

.footer-disclaimer {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 60ch;
}

.footer-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 600px) {
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
}

.footer-col-heading {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--accent);
  letter-spacing: 0.02em;
  display: block;
  margin-bottom: 0.625rem;
  padding-bottom: 0.375rem;
  border-bottom: 2px dashed var(--rule-brass);
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--neutral-50);
  transition: color 180ms ease-out;
}
.footer-col a:hover { color: var(--accent); }

.footer-colophon {
  background: var(--surface-canvas);
  border-left: 3px solid var(--accent-saddle);
  border-radius: 0.125rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  max-width: 50rem;
}
.footer-colophon p {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-on-canvas);
  line-height: 1.6;
  margin-bottom: 0.375rem;
}
.footer-colophon p:last-child { margin-bottom: 0; }

.footer-copyright {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  border-top: 1px solid var(--rule);
  padding-top: 1.25rem;
}

/* ---- Tippy.js theme override ---- */
.tippy-box[data-theme~='denim'] {
  background-color: var(--bg);
  color: var(--text);
  border: 1px solid var(--rule-brass);
  font-family: var(--font-body);
  font-size: 0.875rem;
  max-width: 24rem !important;
}
.tippy-box[data-theme~='denim'] .tippy-arrow { color: var(--rule-brass); }
.tippy-box[data-theme~='denim'] .tippy-content { padding: 0.75rem 1rem; line-height: 1.55; }

/* ---- Utility classes ---- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-copper { color: var(--accent-copper); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 1.25rem; }
.mb-2 { margin-bottom: 1.25rem; }
.section-gap { padding-block: 2.5rem; }
