/* ==========================================================================
   Peptides for Puppies (peptidesforpuppies.com)
   Design System Stylesheet — Sunny First-Appointment Picture Story
   ========================================================================== */

:root {
  /* Palette — DIRECTION.md */
  --bg-ground: #FFF7D5;         /* Butter daylight */
  --bg-surface: #FFFEF7;        /* Cotton white */
  --bg-tint: #FBF0BE;           /* Sunlit cream */
  --ink: #30230B;               /* Toasted ink */
  --ink-muted: #5A4520;         /* Roasted sepia (8.4:1 on cotton white) */
  --accent-ochre: #745000;      /* Dark ochre (7.1:1 on cotton white) */
  --accent-ochre-hover: #563B00;/* Deep ochre (10.2:1) */
  --accent-marigold: #FFD457;   /* Marigold accent band & chapter tabs */
  --border-soft: #DEC98A;       /* Warm straw rule */
  --border-strong: #30230B;     /* Clipboard ink */

  /* Typography */
  --font-display: 'Grandstander', 'Trebuchet MS', system-ui, -apple-system, sans-serif;
  --font-body: 'Nunito', 'Avenir Next', 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* Spacing & Layout */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --radius: 6px;
  --container-max: 80rem;
  --prose-max: 40rem;
  --shadow-card: 0 4px 18px rgba(48, 35, 11, 0.06);
  --shadow-photo: 0 12px 28px rgba(48, 35, 11, 0.13);
  --shadow-inset: 0 10px 22px rgba(48, 35, 11, 0.17);
}

/* Base Reset
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-ground);
  color: var(--ink);
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg-ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.0625rem; /* 17px */
  line-height: 1.57;
  overflow-x: clip;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4 {
  margin-top: 0;
  color: var(--ink);
  text-transform: none;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.015em;
}

h3,
h4 {
  font-family: var(--font-body);
  font-weight: 800;
}

p,
ul,
ol,
dl,
blockquote {
  margin-top: 0;
}

p:last-child,
ul:last-child,
ol:last-child {
  margin-bottom: 0;
}

a {
  color: var(--accent-ochre);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
  transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease;
}

a:hover {
  color: var(--accent-ochre-hover);
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--border-strong);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* Skip Link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: 0.75rem 1.15rem;
  background-color: var(--ink);
  color: var(--bg-surface);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 0.75rem;
  color: var(--bg-surface);
}

/* Measure & Containers
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 768px) {
  .container {
    padding-inline: 1.5rem;
  }
}

.prose > p,
.prose > ul,
.prose > ol,
.prose > blockquote,
.prose-limit {
  max-width: var(--prose-max);
}

/* Shared Header & Navigation
   ========================================================================== */
.site-header {
  background-color: var(--bg-surface);
  border-bottom: 1.5px solid var(--border-soft);
  position: relative;
  z-index: 40;
}

@media (min-width: 1024px) {
  .site-header {
    position: sticky;
    top: 0;
  }
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  min-height: 3.85rem;
  padding-block: 0.5rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  text-decoration: none;
  min-height: 44px;
  flex-shrink: 1;
  min-width: 0;
}

.brand-link:hover {
  color: var(--accent-ochre);
}

.brand-link__mark {
  width: 44px;
  height: 30px;
  flex-shrink: 0;
}

.brand-link__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

@media (min-width: 768px) {
  .site-header__inner {
    min-height: 4.25rem;
    padding-block: 0.6rem;
    gap: 0.75rem 1.25rem;
  }

  .brand-link {
    gap: 0.65rem;
    flex-shrink: 0;
  }

  .brand-link__mark {
    width: 56px;
    height: 38px;
  }

  .brand-link__name {
    font-size: 1.35rem;
  }
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.4rem 0.75rem;
  background-color: var(--bg-ground);
  color: var(--ink);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.96875rem;
  font-weight: 800;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle:hover {
  background-color: var(--accent-marigold);
}

.nav-toggle__icon {
  width: 18px;
  height: 14px;
  flex-shrink: 0;
}

.site-nav {
  width: 100%;
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 0.96875rem; /* 15.5px */
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav__link:hover {
  background-color: var(--bg-ground);
  color: var(--accent-ochre);
  text-decoration: underline;
}

.site-nav__link[aria-current="page"] {
  background-color: var(--accent-marigold);
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--border-strong);
}

/* Mobile collapsible nav when JS is active */
@media (max-width: 1119px) {
  html.js .nav-toggle {
    display: inline-flex;
  }

  html.js .site-nav {
    display: none;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    border-top: 1px solid var(--border-soft);
  }

  html.js .site-nav.is-open {
    display: block;
  }

  html.js .site-nav__list {
    flex-direction: column;
    gap: 0.25rem;
  }

  html.js .site-nav__link {
    width: 100%;
    min-height: 46px;
    padding: 0.6rem 0.85rem;
    font-size: 1.0625rem;
  }
}

@media (min-width: 1120px) {
  .site-header__inner {
    flex-wrap: nowrap;
  }

  .site-nav {
    width: auto;
  }

  .site-nav__list {
    flex-wrap: nowrap;
    gap: 0.2rem;
  }
}

/* Signature Square-Handle Motif
   ========================================================================== */
.handle-mark {
  width: 26px;
  height: 22px;
  flex-shrink: 0;
}

.handle-mark--sm {
  width: 22px;
  height: 18px;
}

/* Buttons & Controls
   ========================================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.5rem 0.85rem;
  background-color: var(--accent-ochre);
  color: var(--bg-surface);
  border: 2px solid var(--accent-ochre);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.96875rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

@media (min-width: 768px) {
  .btn-primary {
    min-height: 48px;
    padding: 0.7rem 1.35rem;
    font-size: 1.0625rem;
  }
}

.btn-primary:hover {
  background-color: var(--accent-ochre-hover);
  border-color: var(--accent-ochre-hover);
  color: var(--bg-surface);
  text-decoration: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 46px;
  padding: 0.6rem 1.15rem;
  background-color: var(--bg-surface);
  color: var(--ink);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.96875rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.btn-secondary:hover {
  background-color: var(--accent-marigold);
  color: var(--ink);
  text-decoration: none;
}

/* ==========================================================================
   HOME PAGE — Layered Collage Hero & 12-Column Appointment Story
   ========================================================================== */
.home-grid {
  display: flex;
  flex-direction: column;
}

/* Hero Copy Block (Butter Daylight Open Space) */
.hero-copy {
  padding: 0.85rem 1rem 0.75rem;
}

.hero-scope {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.5rem;
  padding: 0.25rem 0.75rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  color: var(--ink-muted);
  font-size: 0.9375rem; /* 15px floor */
  font-weight: 700;
  line-height: 1.25;
}

.hero-title {
  margin-bottom: 0.35rem;
  font-size: clamp(2.125rem, 3.1vw + 0.65rem, 3.5rem); /* 34px phone -> 56px desktop */
  line-height: 1.01;
  color: var(--ink);
  text-wrap: balance;
}

.hero-punch {
  margin-bottom: 0.45rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3125rem, 1.3vw + 0.82rem, 1.75rem);
  line-height: 1.1;
  color: var(--accent-ochre);
}

.hero-lead {
  margin-bottom: 0.8rem;
  max-width: var(--prose-max);
  font-size: 1.03125rem;
  line-height: 1.48;
  color: var(--ink);
}

@media (min-width: 768px) {
  .hero-lead {
    font-size: 1.0625rem;
    line-height: 1.55;
    margin-bottom: 1.05rem;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.65rem;
}

.hero-secondary-link {
  font-weight: 800;
  font-size: 0.9375rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* Main Hero Photograph */
.hero-main-photo {
  margin: 0;
  padding: 0 1rem 0.65rem;
}

.hero-main-photo__frame {
  border-radius: var(--radius);
  border: 4px solid var(--bg-surface);
  box-shadow: var(--shadow-photo);
  overflow: hidden;
  background-color: var(--bg-surface);
}

.hero-main-photo__img {
  width: 100%;
  aspect-ratio: 16 / 9.4;
  object-fit: cover;
  object-position: center 30%;
}

/* Bold Marigold Accent Band at the Fold */
.fold-band {
  background-color: var(--accent-marigold);
  border-top: 2px solid var(--border-strong);
  border-bottom: 2px solid var(--border-strong);
}

.fold-band__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 0.7rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.fold-band__prompt-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.fold-band__eyebrow {
  margin-bottom: 0.15rem;
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.25;
}

.fold-band__question {
  margin: 0;
  max-width: 44rem;
  font-size: clamp(1.0625rem, 0.7vw + 0.9rem, 1.3125rem);
  font-weight: 750;
  line-height: 1.3;
  color: var(--ink);
}

.fold-band__stops {
  display: none;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.fold-stop-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.45rem 0.95rem;
  background-color: var(--bg-surface);
  color: var(--ink);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius);
  font-size: 0.96875rem;
  font-weight: 800;
  text-decoration: none;
}

.fold-stop-link:hover {
  background-color: var(--ink);
  color: var(--bg-surface);
  text-decoration: none;
}

/* Chapter Ladder (Sticky Horizontal Strip on Mobile/Tablet, Left Ladder on Desktop) */
.chapter-ladder {
  position: sticky;
  top: 0;
  z-index: 30;
  background-color: var(--bg-surface);
  border-bottom: 1.5px solid var(--border-soft);
  padding: 0.6rem 1rem;
}

.chapter-ladder__heading {
  display: none;
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--ink-muted);
}

.chapter-ladder__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: thin;
}

.chapter-ladder__item {
  flex: 1 0 auto;
}

.chapter-ladder__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius);
  border: 1.5px solid var(--border-soft);
  background-color: var(--bg-ground);
  color: var(--ink);
  font-size: 0.96875rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.chapter-ladder__link:hover {
  border-color: var(--border-strong);
  color: var(--accent-ochre);
}

.chapter-ladder__link.is-active,
.chapter-ladder__link[aria-current="location"] {
  background-color: var(--accent-marigold);
  border-color: var(--border-strong);
  color: var(--ink);
}

.chapter-ladder__top {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.chapter-ladder__sub {
  display: none;
}

.chapter-ladder__note {
  display: none;
}

/* Distributed Collage Insets (Ordered Story Cards on Phone, Overlapping Hero Insets on Tablet/Desktop) */
.story-inset {
  margin: 1.25rem 1rem 0;
  border-radius: var(--radius);
  border: 4px solid var(--bg-surface);
  box-shadow: var(--shadow-card);
  background-color: var(--bg-surface);
  overflow: hidden;
}

.story-inset__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.story-inset__caption {
  padding: 0.7rem 0.95rem;
  background-color: var(--bg-surface);
  color: var(--ink-muted);
  font-size: 0.9375rem;
  line-height: 1.45;
  border-top: 1px solid var(--border-soft);
}

/* Main Reading Sections (Crisp Cotton-White Panels Over Butter Daylight) */
.story-section {
  margin: 1.25rem 1rem 0;
  padding: 1.35rem 1.1rem;
  background-color: var(--bg-surface);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  scroll-margin-top: 5.5rem;
}

.story-section--last {
  margin-bottom: 2.5rem;
}

.chapter-header {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 2px solid var(--bg-tint);
}

.chapter-header__handle {
  margin-top: 0.2rem;
}

.chapter-header__kicker {
  margin-bottom: 0.2rem;
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--accent-ochre);
  line-height: 1.3;
}

.chapter-header__title {
  margin: 0;
  font-size: clamp(1.625rem, 1.9vw + 1rem, 2.25rem); /* 26px phone -> 36px desktop */
  line-height: 1.08;
}

/* Tablet Layout (768px to 1023px) — Crisp Layered Collage + Single Centered Story Column */
@media (min-width: 768px) and (max-width: 1023px) {
  .home-grid {
    display: grid;
    grid-template-columns: minmax(1.5rem, 1fr) minmax(0, 45rem) minmax(1.5rem, 1fr);
  }

  .hero-copy {
    grid-column: 2;
    grid-row: 1;
    padding: 1.35rem 0 0.85rem;
  }

  .hero-main-photo {
    grid-column: 2;
    grid-row: 2;
    padding: 1.15rem 3.5rem 1.5rem 3.5rem;
    z-index: 1;
  }

  .hero-main-photo__frame {
    border-width: 5px;
  }

  .hero-main-photo__img {
    aspect-ratio: 16 / 10;
    object-position: center 36%;
  }

  .story-inset--leash {
    grid-column: 2;
    grid-row: 2;
    align-self: end;
    justify-self: start;
    width: 12.25rem;
    margin: 0 0 0.65rem 0;
    z-index: 3;
    border: 5px solid var(--bg-surface);
    box-shadow: var(--shadow-inset);
  }

  .story-inset--ears {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    justify-self: end;
    width: 11.75rem;
    margin: 0.2rem 0 0 0;
    z-index: 3;
    border: 5px solid var(--bg-surface);
    box-shadow: var(--shadow-inset);
  }

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

  .fold-band {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .fold-band__inner {
    padding: 1rem 1.5rem;
  }

  .chapter-ladder {
    grid-column: 1 / -1;
    grid-row: 4;
    padding: 0.6rem 1.5rem;
  }

  .chapter-ladder__list {
    max-width: 45rem;
    margin-inline: auto;
  }

  .story-section {
    grid-column: 2;
    margin: 1.5rem 0 0;
    padding: 1.65rem 1.85rem;
  }

  .story-section--last {
    margin-bottom: 3rem;
  }
}

/* Desktop Layout (1024px+, verified at 1440x900) — 12-Column Layered Collage & Sticky Left Ladder */
@media (min-width: 1024px) {
  .home-grid {
    display: grid;
    grid-template-columns:
      minmax(1.25rem, 1fr)
      repeat(12, minmax(0, 5.5rem))
      minmax(1.25rem, 1fr);
    column-gap: 1.25rem;
  }

  .hero-copy {
    grid-column: 2 / 7;
    grid-row: 1;
    align-self: center;
    padding: 2.25rem 0.5rem 2.25rem 0;
    z-index: 4;
  }

  .hero-main-photo {
    grid-column: 7 / 14;
    grid-row: 1;
    align-self: center;
    padding: 2.5rem 2.5rem 2.75rem 3.5rem;
    z-index: 1;
  }

  .hero-main-photo__frame {
    border-width: 5px;
  }

  .hero-main-photo__img {
    aspect-ratio: 4 / 3;
    object-position: center 40%;
  }

  .story-inset--leash {
    grid-column: 7 / 10;
    grid-row: 1;
    align-self: end;
    justify-self: start;
    width: 100%;
    max-width: 15.25rem;
    margin: 0 0 1.45rem 0;
    z-index: 3;
    border: 5px solid var(--bg-surface);
    box-shadow: var(--shadow-inset);
  }

  .story-inset--ears {
    grid-column: 11 / 14;
    grid-row: 1;
    align-self: start;
    justify-self: end;
    width: 100%;
    max-width: 14.25rem;
    margin: 1.35rem 0 0 0;
    z-index: 3;
    border: 5px solid var(--bg-surface);
    box-shadow: var(--shadow-inset);
  }

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

  .fold-band {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .fold-band__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1.05rem 1.5rem;
  }

  .fold-band__stops {
    display: flex;
    flex-shrink: 0;
  }

  /* Left-Hand Chapter Ladder */
  .chapter-ladder {
    grid-column: 2 / 5;
    grid-row: 3 / 7;
    align-self: start;
    position: sticky;
    top: 5.5rem;
    margin-top: 2.25rem;
    padding: 1.25rem;
    background-color: var(--bg-surface);
    border: 1.5px solid var(--border-soft);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
  }

  .chapter-ladder__heading {
    display: block;
  }

  .chapter-ladder__list {
    flex-direction: column;
    overflow-x: visible;
    gap: 0.6rem;
  }

  .chapter-ladder__link {
    justify-content: flex-start;
    padding: 0.7rem 0.85rem;
    text-align: left;
    white-space: normal;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .chapter-ladder__top {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
  }

  .chapter-ladder__sub {
    display: block;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--ink-muted);
    line-height: 1.35;
    padding-left: 1.85rem;
  }

  .chapter-ladder__link.is-active .chapter-ladder__sub,
  .chapter-ladder__link[aria-current="location"] .chapter-ladder__sub {
    color: var(--ink);
  }

  .chapter-ladder__note {
    display: block;
    margin-top: 1rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--border-soft);
    font-size: 0.9375rem;
    line-height: 1.45;
    color: var(--ink-muted);
  }

  /* Story Sections in Cols 5–13 */
  #before {
    grid-column: 5 / 14;
    grid-row: 3;
    margin: 2.25rem 0 0;
  }

  #in-the-room {
    grid-column: 5 / 14;
    grid-row: 4;
    margin: 2rem 0 0;
  }

  #after {
    grid-column: 5 / 14;
    grid-row: 5;
    margin: 2rem 0 0;
  }

  #checklist {
    grid-column: 5 / 14;
    grid-row: 6;
    margin: 2rem 0 3.5rem;
  }

  .story-section {
    padding: 2rem 2.25rem;
  }
}

/* ==========================================================================
   SHARED COMPONENTS (Used Across Home & All Inner Pages)
   ========================================================================== */

/* Conversation Prompt Card — Two-Column Print Editorial Q&A on Desktop */
.prompt-card {
  margin-block: 1.15rem;
  padding: 1.1rem 1.2rem;
  background-color: var(--bg-ground);
  border: 1px solid var(--border-soft);
  border-left: 6px solid var(--accent-marigold);
  border-radius: var(--radius);
}

.prompt-card__lead {
  margin-bottom: 0.65rem;
}

.prompt-card__label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--ink-muted);
}

.prompt-card__question {
  margin-bottom: 0;
  max-width: var(--prose-max);
  font-size: clamp(1.15rem, 0.45vw + 1rem, 1.25rem); /* 18.5–20px */
  font-weight: 750;
  line-height: 1.32;
  color: var(--ink);
}

.prompt-card__body {
  max-width: 36rem;
  font-size: 1.03125rem;
  line-height: 1.55;
  color: var(--ink);
}

@media (min-width: 1024px) {
  .prompt-card {
    display: grid;
    grid-template-columns: minmax(0, 17.5rem) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
    padding: 1.25rem 1.4rem;
  }

  .prompt-card__lead {
    margin-bottom: 0;
    padding-right: 1rem;
    border-right: 1.5px solid var(--border-soft);
  }
}

/* Sub-section Heading & Spacing inside Panels */
.panel-subheading {
  margin-top: 1.65rem;
  margin-bottom: 0.55rem;
  font-size: clamp(1.25rem, 0.7vw + 1.05rem, 1.4375rem);
  line-height: 1.25;
}

.section-intro {
  margin-bottom: 1.05rem;
  max-width: var(--prose-max);
}

/* Inline Vet-First Disclaimer Box */
.vet-disclaimer {
  margin-block: 1.25rem 0;
  padding: 1rem 1.15rem;
  background-color: var(--bg-surface);
  border: 2px solid var(--accent-ochre);
  border-radius: var(--radius);
  font-size: 0.96875rem;
  line-height: 1.5;
  color: var(--ink);
}

.vet-disclaimer strong {
  color: var(--accent-ochre);
  font-weight: 800;
}

/* Data Tables (Responsive Stacked Cards < 900px, Clean 6-Column Table >= 900px) */
.table-caption-note {
  margin-bottom: 0.75rem;
  max-width: var(--prose-max);
  font-size: 0.96875rem;
  line-height: 1.5;
  color: var(--ink-muted);
}

.table-wrap {
  margin-block: 1rem 1.25rem;
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius);
  background-color: var(--bg-surface);
  overflow: hidden;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem; /* 15px hard floor */
  line-height: 1.46;
  text-align: left;
}

@media (max-width: 899px) {
  .table-wrap {
    border: 0;
    background-color: transparent;
    overflow: visible;
  }

  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table td {
    display: block;
    width: 100%;
  }

  .data-table thead {
    display: none;
  }

  .data-table tbody {
    display: grid;
    gap: 0.85rem;
  }

  .data-table tbody tr {
    background-color: var(--bg-surface);
    border: 1.5px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 0.85rem 0.95rem;
  }

  .data-table tbody td {
    padding: 0.35rem 0;
    border-top: 1px solid var(--bg-tint);
  }

  .data-table tbody td:first-child {
    padding-top: 0;
    border-top: 0;
    padding-bottom: 0.5rem;
  }

  .data-table tbody td[data-label]::before {
    content: attr(data-label) ": ";
    font-weight: 800;
    color: var(--ink-muted);
  }
}

@media (min-width: 900px) {
  .data-table thead th {
    background-color: var(--bg-tint);
    color: var(--ink);
    font-weight: 800;
    padding: 0.75rem 0.8rem;
    border-bottom: 1.5px solid var(--border-soft);
    vertical-align: bottom;
  }

  .data-table tbody td {
    padding: 0.8rem 0.8rem;
    border-top: 1px solid var(--border-soft);
    vertical-align: top;
    color: var(--ink);
  }

  .data-table tbody tr:nth-child(even) td {
    background-color: #FFFDF0;
  }
}

.tag-owner,
.tag-case {
  display: inline-block;
  margin-bottom: 0.35rem;
  padding: 0.18rem 0.55rem;
  border-radius: 4px;
  font-size: 0.9375rem;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
}

.tag-owner {
  background-color: var(--accent-marigold);
  color: var(--ink);
}

.tag-case {
  background-color: var(--bg-ground);
  color: var(--accent-ochre);
  border: 1px solid var(--accent-ochre);
}

.source-meta {
  display: block;
  margin-top: 0.25rem;
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

.unreported {
  font-style: italic;
  color: var(--ink-muted);
}

/* Deep-Dive Directory Links (Exam-Room 2x2 Folder Grid) */
.folder-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

@media (min-width: 720px) {
  .folder-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.folder-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.1rem 1.2rem;
  background-color: var(--bg-ground);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
}

.folder-card:hover {
  border-color: var(--border-strong);
  background-color: var(--bg-tint);
  color: var(--ink);
  text-decoration: none;
}

.folder-card__stage {
  margin-bottom: 0.3rem;
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--accent-ochre);
}

.folder-card__title {
  margin-bottom: 0.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.18;
  color: var(--ink);
}

.folder-card__desc {
  margin-bottom: 0.65rem;
  font-size: 0.96875rem;
  line-height: 1.48;
  color: var(--ink-muted);
}

.folder-card__cta {
  font-size: 0.96875rem;
  font-weight: 800;
  color: var(--accent-ochre);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* Action Link Row */
.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-top: 1.25rem;
}

.link-row a {
  font-weight: 800;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* Editorial Story Figure (Photographs Inside Chapters) */
.chapter-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  align-items: center;
}

@media (min-width: 900px) {
  .chapter-split {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 1.75rem;
  }
}

.story-figure {
  margin: 0;
  border-radius: var(--radius);
  border: 4px solid var(--bg-surface);
  outline: 1.5px solid var(--border-soft);
  box-shadow: var(--shadow-card);
  background-color: var(--bg-surface);
  overflow: hidden;
}

.story-figure__img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.story-figure__caption {
  padding: 0.65rem 0.9rem;
  background-color: var(--bg-surface);
  color: var(--ink-muted);
  font-size: 0.9375rem;
  line-height: 1.45;
  border-top: 1px solid var(--border-soft);
}

/* Emergency & Reporting Grid */
.emergency-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
}

@media (min-width: 720px) {
  .emergency-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.emergency-card {
  padding: 1.15rem 1.2rem;
  background-color: var(--bg-ground);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius);
}

.emergency-card h3 {
  margin-bottom: 0.55rem;
  font-size: 1.125rem;
  line-height: 1.3;
}

.emergency-card ul {
  margin: 0;
  padding-left: 1.2rem;
}

.emergency-card li {
  margin-bottom: 0.55rem;
  font-size: 0.96875rem;
  line-height: 1.5;
}

.emergency-card li:last-child {
  margin-bottom: 0;
}

/* Bring This to Your Vet — Clipboard Checklist */
.vet-checklist {
  border: 2px solid var(--border-strong);
  border-radius: var(--radius);
  background-color: var(--bg-surface);
  overflow: hidden;
}

.vet-checklist__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 1rem 1.25rem;
  background-color: var(--accent-marigold);
  border-bottom: 2px solid var(--border-strong);
}

.vet-checklist__head-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.vet-checklist__head h2 {
  margin: 0;
  font-size: clamp(1.45rem, 1.5vw + 0.95rem, 1.9rem);
  line-height: 1.1;
}

.vet-checklist__body {
  padding: 1.25rem;
}

.vet-checklist__lead {
  margin-bottom: 1rem;
  max-width: var(--prose-max);
  font-size: 1rem;
  color: var(--ink-muted);
}

.checklist-items {
  list-style: none;
  margin: 0 0 1.15rem;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.checklist-item {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background-color: var(--bg-ground);
}

.checklist-item label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-height: 48px;
  padding: 0.75rem 0.9rem;
  cursor: pointer;
}

.checklist-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--accent-ochre);
  cursor: pointer;
}

.checklist-item__text {
  font-size: 1rem;
  line-height: 1.48;
  color: var(--ink);
}

.checklist-item__stage {
  font-weight: 800;
  color: var(--accent-ochre);
}

.checklist-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.copy-status {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--accent-ochre);
}

/* Inner-Page Layouts & Reusable Blocks (Stages 3–4)
   ========================================================================== */
.page-hero {
  padding: 1.35rem 0 1.5rem;
  border-bottom: 2px solid var(--border-soft);
}

.page-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .page-hero {
    padding: 2rem 0 2.15rem;
  }

  .page-hero__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 2rem;
  }

  .page-hero__copy {
    grid-column: 1 / 7;
  }

  .page-hero__media {
    grid-column: 7 / 13;
  }
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.45rem;
  list-style: none;
  margin: 0 0 0.7rem;
  padding: 0;
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.45rem;
  color: var(--ink-muted);
}

.breadcrumb a {
  font-weight: 700;
}

.page-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
  padding: 0.25rem 0.75rem 0.25rem 0.45rem;
  background-color: var(--accent-marigold);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.25;
}

.page-hero__title {
  margin-bottom: 0.7rem;
  max-width: 42rem;
  font-size: clamp(2.125rem, 2.7vw + 0.85rem, 3.125rem);
  line-height: 1.04;
}

.page-hero__deck {
  max-width: var(--prose-max);
  font-size: 1.09375rem;
  line-height: 1.54;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.page-hero__meta {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink-muted);
  font-weight: 700;
}

.article-shell {
  padding-block: 1.5rem 3.25rem;
}

.article-shell__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

/* Inner-Page Appointment Rail (Compact Horizontal Strip Mobile / Sticky Left Ladder Desktop) */
.inner-rail {
  padding: 0.85rem 1rem;
  background-color: var(--bg-surface);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.inner-rail__heading {
  margin-bottom: 0.55rem;
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--ink-muted);
}

.inner-rail__stages {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.inner-rail__stage-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  border: 1.5px solid var(--border-soft);
  background-color: var(--bg-ground);
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 800;
  text-decoration: none;
}

.inner-rail__stage-link:hover {
  border-color: var(--border-strong);
  color: var(--accent-ochre);
}

.inner-rail__stage-link.is-active {
  background-color: var(--accent-marigold);
  border-color: var(--border-strong);
  color: var(--ink);
}

.inner-rail__sublist {
  list-style: none;
  margin: 0.8rem 0 0;
  padding: 0.75rem 0 0;
  border-top: 1px solid var(--border-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
}

.inner-rail__sublist a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 0.9375rem;
  font-weight: 700;
}

.inner-rail__note {
  display: none;
}

@media (min-width: 1024px) {
  .article-shell {
    padding-block: 2rem 3.75rem;
  }

  .article-shell__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 2rem;
    align-items: start;
  }

  .article-shell__rail {
    grid-column: 1 / 4;
    position: sticky;
    top: 5.5rem;
  }

  .article-shell__main {
    grid-column: 4 / 13;
  }

  .inner-rail {
    padding: 1.2rem;
  }

  .inner-rail__stages {
    flex-direction: column;
    gap: 0.5rem;
  }

  .inner-rail__stage-link {
    width: 100%;
    justify-content: flex-start;
  }

  .inner-rail__sublist {
    flex-direction: column;
    gap: 0.25rem;
  }

  .inner-rail__sublist a {
    min-height: 36px;
  }

  .inner-rail__note {
    display: block;
    margin-top: 0.9rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border-soft);
    font-size: 0.9375rem;
    line-height: 1.45;
    color: var(--ink-muted);
  }
}

.reading-panel {
  padding: clamp(1.15rem, 2.8vw, 2.25rem);
  background-color: var(--bg-surface);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.reading-panel > .vet-disclaimer:first-child,
.reading-panel > .callout-gap:first-child {
  margin-top: 0;
}

.vet-disclaimer + .article-section,
.callout-gap + .article-section {
  margin-top: 1.45rem;
  padding-top: 1.25rem;
}

.reading-panel + .reading-panel {
  margin-top: 1.5rem;
}

@media (min-width: 1024px) {
  .data-table--reports {
    table-layout: fixed;
  }

  .data-table--reports th:nth-child(1) { width: 17%; }
  .data-table--reports th:nth-child(2) { width: 13%; }
  .data-table--reports th:nth-child(3) { width: 16%; }
  .data-table--reports th:nth-child(4) { width: 15%; }
  .data-table--reports th:nth-child(5) { width: 13%; }
  .data-table--reports th:nth-child(6) { width: 26%; }

  .data-table--reports .tag-case,
  .data-table--reports .tag-owner {
    white-space: normal;
  }

  .data-table--studies {
    table-layout: fixed;
  }

  .data-table--studies th:nth-child(1) { width: 16%; }
  .data-table--studies th:nth-child(2) { width: 19%; }
  .data-table--studies th:nth-child(3) { width: 21%; }
  .data-table--studies th:nth-child(4) { width: 22%; }
  .data-table--studies th:nth-child(5) { width: 22%; }

  .data-table--reg {
    table-layout: fixed;
  }

  .data-table--reg th:nth-child(1) { width: 15%; }
  .data-table--reg th:nth-child(2) { width: 35%; }
  .data-table--reg th:nth-child(3) { width: 25%; }
  .data-table--reg th:nth-child(4) { width: 25%; }

  .data-table--quality {
    table-layout: fixed;
  }

  .data-table--quality th:nth-child(1) { width: 21%; }
  .data-table--quality th:nth-child(2) { width: 27%; }
  .data-table--quality th:nth-child(3) { width: 52%; }
}

.article-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1.5px solid var(--bg-tint);
  scroll-margin-top: 5.5rem;
}

.article-section:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.article-section__head {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.article-section__head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 1.65vw + 0.95rem, 2.05rem);
  line-height: 1.1;
}

.article-section h3 {
  margin-top: 1.35rem;
  margin-bottom: 0.5rem;
  font-size: clamp(1.1875rem, 0.5vw + 1.02rem, 1.35rem);
  line-height: 1.25;
}

.prose p,
.prose ul,
.prose ol {
  max-width: var(--prose-max);
  margin-bottom: 0.95rem;
}

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

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

.prose li:last-child {
  margin-bottom: 0;
}

/* Dated Evidence-Gap & Highlight Callout */
.callout-gap {
  margin-block: 1.15rem 1.35rem;
  padding: 1rem 1.15rem;
  background-color: var(--bg-ground);
  border: 1.5px solid var(--border-strong);
  border-left: 6px solid var(--accent-marigold);
  border-radius: var(--radius);
  max-width: 46rem;
}

.callout-gap__title {
  margin-bottom: 0.4rem;
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
}

.callout-gap p {
  font-size: 0.96875rem;
  line-height: 1.52;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

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

/* Inline Story Photograph inside Inner Content Sections */
.inline-figure {
  margin: 1.35rem 0;
  max-width: 44rem;
}

/* Prev / Next Appointment Pager */
.page-pager {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 2px solid var(--bg-tint);
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 680px) {
  .page-pager {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.page-pager__link {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.95rem 1.1rem;
  background-color: var(--bg-ground);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
}

.page-pager__link:hover {
  background-color: var(--bg-tint);
  border-color: var(--border-strong);
  color: var(--ink);
  text-decoration: none;
}

.page-pager__dir {
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--accent-ochre);
}

.page-pager__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.2;
  color: var(--ink);
}

.reg-triptych {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-block: 1.25rem;
}

@media (min-width: 900px) {
  .reg-triptych {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.reg-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.15rem;
  background-color: var(--bg-ground);
  border: 1.5px solid var(--border-soft);
  border-top: 5px solid var(--accent-ochre);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.reg-card__date {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--accent-ochre);
}

.reg-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.18;
  color: var(--ink);
}

.reg-card blockquote {
  margin: 0;
  padding: 0.65rem 0.8rem;
  background-color: var(--bg-surface);
  border-left: 3px solid var(--accent-marigold);
  border-radius: 4px;
  font-size: 0.9375rem;
  line-height: 1.48;
  color: var(--ink);
}

.reg-card__note {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.48;
  color: var(--ink-muted);
}

.vet-wall-callout {
  margin-block: 1.25rem;
  padding: 1.15rem 1.25rem;
  background-color: var(--accent-marigold);
  border: 2px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--ink);
}

.vet-wall-callout__title {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.15;
  color: var(--ink);
}

.vet-wall-callout p {
  margin: 0 0 0.55rem;
  max-width: 48rem;
  font-size: 1rem;
  line-height: 1.52;
  color: var(--ink);
}

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

/* Utility Page Hero (No Photograph — /references, /about, /contact) */
.page-hero--utility .page-hero__grid {
  grid-template-columns: 1fr;
}

.page-hero--utility .page-hero__copy {
  grid-column: 1 / -1;
  max-width: 48rem;
}

/* Reference Registry Index (/references) */
.ref-group-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.ref-group-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 0.85rem;
  background-color: var(--bg-ground);
  color: var(--ink);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 800;
  text-decoration: none;
}

.ref-group-nav a:hover {
  background-color: var(--accent-marigold);
  border-color: var(--border-strong);
  color: var(--ink);
  text-decoration: none;
}

.ref-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.ref-item {
  padding: 0.9rem 1rem;
  background-color: var(--bg-ground);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.ref-item__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.65rem;
  margin-bottom: 0.25rem;
}

.ref-item__id {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  background-color: var(--accent-marigold);
  color: var(--ink);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  font-size: 0.9375rem;
  font-weight: 800;
  line-height: 1.2;
}

.ref-item__title {
  font-weight: 800;
  color: var(--ink);
}

.ref-item__meta {
  margin: 0.15rem 0 0.35rem;
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

.ref-item__url {
  display: inline-block;
  font-size: 0.9375rem;
  font-weight: 700;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Plain-Text Contact Notice Box (/contact) */
.contact-notice {
  padding: 1.25rem 1.35rem;
  background-color: var(--bg-ground);
  border: 2px solid var(--border-strong);
  border-left: 6px solid var(--accent-marigold);
  border-radius: var(--radius);
  max-width: var(--prose-max);
  margin-bottom: 1.35rem;
}

.contact-notice h2 {
  margin-bottom: 0.5rem;
  font-size: clamp(1.35rem, 1.3vw + 0.9rem, 1.7rem);
  line-height: 1.15;
}

.contact-notice p {
  margin-bottom: 0.65rem;
  font-size: 1.03125rem;
  line-height: 1.55;
}

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

/* 404 Error Page Panel */
.error-card {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  align-items: flex-start;
  padding: clamp(1.35rem, 3vw, 2.25rem);
  background-color: var(--bg-surface);
  border: 2px solid var(--border-strong);
  border-left: 6px solid var(--accent-marigold);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  max-width: 52rem;
}

.error-card__emblem {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.9rem;
  background-color: var(--bg-ground);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius);
}

.error-card__code {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--accent-ochre);
}

.error-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.diagram-figure {
  margin: 1.35rem -1.15rem;
  padding: 0.125rem 0;
  background-color: var(--bg-surface);
  border-block: 1.5px solid var(--border-soft);
  border-inline: 0;
  border-radius: 0;
}

@media (min-width: 768px) {
  .diagram-figure {
    margin: 1.35rem 0;
    padding: 1rem;
    border: 1.5px solid var(--border-soft);
    border-radius: var(--radius);
  }
}

.diagram-figure img {
  width: 100%;
  max-width: 45rem;
  margin-inline: auto;
}

.diagram-figure figcaption {
  margin-top: 0.75rem;
  padding-inline: 1.15rem;
  font-size: 0.9375rem;
  color: var(--ink-muted);
  line-height: 1.48;
  max-width: 45rem;
}

@media (min-width: 768px) {
  .diagram-figure figcaption {
    padding-inline: 0.25rem;
  }
}

/* Shared Footer
   ========================================================================== */
.site-footer {
  background-color: var(--bg-surface);
  border-top: 3px solid var(--border-strong);
  color: var(--ink);
}

.site-footer__main {
  padding-block: 2.25rem 1.75rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 860px) {
  .site-footer__main {
    grid-template-columns: 1.35fr repeat(3, minmax(0, 1fr));
    gap: 2rem;
  }
}

.site-footer__voice {
  margin-top: 0.75rem;
  max-width: 28rem;
  font-size: 0.96875rem;
  line-height: 1.55;
  color: var(--ink);
}

.site-footer__col-title {
  margin-bottom: 0.65rem;
  font-size: 0.96875rem;
  font-weight: 800;
  color: var(--ink);
}

.site-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.site-footer__list a {
  display: inline-block;
  padding-block: 0.15rem;
  font-size: 0.9375rem;
  font-weight: 700;
}

.site-footer__colophon {
  background-color: var(--bg-tint);
  border-top: 1px solid var(--border-soft);
  padding-block: 0.9rem;
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

.site-footer__colophon-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

/* Reduced Motion
   ========================================================================== */
@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;
  }
}

/* Print Checklist Styling
   ========================================================================== */
@media print {
  body {
    background-color: #FFFFFF;
    color: #000000;
  }

  .site-header,
  .chapter-ladder,
  .fold-band,
  .hero-main-photo,
  .story-inset,
  .story-figure,
  .checklist-actions,
  .site-footer {
    display: none;
  }

  .story-section,
  .vet-checklist {
    border-color: #000000;
    box-shadow: none;
    break-inside: avoid;
  }
}
