/* ==========================================================================
   boyerracing.us — shared styles
   Tokens from the Boyer Racing design system (design_handoff_immich_branding)
   ========================================================================== */

@font-face {
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/montserrat-italic-var-latin.woff2') format('woff2');
}

:root {
  --red: #ED2124;
  --red-hover: #d61b1e;
  --navy: #262C6D;
  --navy-lifted: #4A54B0;
  --pit: #101216;
  --paddock: #EEF0F2;
  --card-dark: #1b1e26;
  --hairline-dark: rgba(255, 255, 255, 0.07);
  --ink: #23262e;
  --ink-soft: #4a4f5c;
  --display: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
  --radius-card: 24px;
  --radius-control: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--pit);
}

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

a { color: inherit; }

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

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

/* Display type: Montserrat 900 italic caps, per the brand book */
.display {
  font-family: var(--display);
  font-style: italic;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

/* ==========================================================================
   Nav
   ========================================================================== */

.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 22px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.nav-brand img { width: 34px; height: 34px; }

.nav-brand .display { font-size: 15px; letter-spacing: 0.03em; }

/* Full Boyer Racing logo (swoosh + checkered flag) in the nav */
.nav-logo {
  width: auto !important;
  height: 30px;
  display: block;
}

@media (max-width: 640px) {
  .nav-logo { height: 26px; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
}

.nav-links a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.78);
  padding: 6px 2px;
  transition: color 0.15s ease;
}

.nav-links a:hover { color: #fff; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  background: var(--pit);
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  inset: 0;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 38%;
  animation: hero-settle 1.4s ease-out both;
}

/* Text protection: solid pit on the left, thinning over the car */
.hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16, 18, 22, 0.55) 0%, rgba(16, 18, 22, 0) 30%),
    linear-gradient(90deg, var(--pit) 8%, rgba(16, 18, 22, 0.82) 38%, rgba(16, 18, 22, 0.28) 72%, rgba(16, 18, 22, 0.45) 100%),
    linear-gradient(0deg, var(--pit) 2%, rgba(16, 18, 22, 0) 32%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-top: clamp(140px, 22vh, 220px);
  padding-bottom: clamp(72px, 12vh, 140px);
  max-width: 640px;
}

.hero-copy .eyebrow {
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 20px;
}

.hero-title {
  color: #fff;
  font-size: clamp(52px, 9vw, 104px);
  line-height: 0.92;
  margin-left: -0.04em; /* optical alignment for the italic */
  margin-bottom: 24px;
}

.hero-sub {
  color: rgba(255, 255, 255, 0.75);
  font-size: 17px;
  max-width: 44ch;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 26px;
  border-radius: var(--radius-control);
  font-family: var(--body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-red {
  background: var(--red);
  color: #fff;
}

.btn-red:hover { background: var(--red-hover); }

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.85);
}

.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.5); color: #fff; }

/* Load-in sequence */
.hero-copy > * {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.6s ease-out forwards;
}

.hero-copy > *:nth-child(1) { animation-delay: 0.08s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.18s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.30s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.42s; }

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-settle {
  from { transform: scale(1.035); }
  to { transform: scale(1); }
}

/* ==========================================================================
   Record: stat wall + winner-at, on pit black with one cropped swoosh
   ========================================================================== */

.record {
  position: relative;
  background: var(--pit);
  color: #fff;
  overflow: hidden;
}

.record-swoosh {
  position: absolute;
  width: 130%;
  max-width: none;
  left: -18%;
  bottom: -12%;
  opacity: 0.06;
  pointer-events: none;
}

.record-inner {
  position: relative;
  z-index: 1;
  padding-top: clamp(40px, 7vw, 72px);
  padding-bottom: clamp(56px, 8vw, 88px);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hairline-dark);
  border-bottom: 1px solid var(--hairline-dark);
}

.stat {
  padding: 28px 24px 24px;
  border-left: 1px solid var(--hairline-dark);
}

.stat:first-child { border-left: none; }

.stat-num {
  font-size: clamp(40px, 5.5vw, 64px);
  line-height: 1;
  color: #fff;
}

.stat-label {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.5);
}

.stat-note {
  margin-top: 6px;
  font-size: 13px;
  color: var(--navy-lifted);
  font-weight: 600;
}

.winner-at {
  margin-top: clamp(40px, 6vw, 64px);
}

.winner-at .eyebrow {
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 18px;
}

.track-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  column-gap: 14px;
  row-gap: 10px;
  align-items: baseline;
}

.track-list li {
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(15px, 1.8vw, 19px);
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
}

.track-list li sup {
  font-family: var(--mono);
  font-style: normal;
  font-weight: 500;
  font-size: 0.55em;
  color: var(--navy-lifted);
  margin-left: 3px;
}

.track-list li:not(:last-child)::after {
  content: '·';
  color: rgba(255, 255, 255, 0.25);
  margin-left: 14px;
  font-family: var(--body);
  font-style: normal;
}

.record-fineprint {
  margin-top: 28px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
  max-width: 62ch;
}

.team-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: clamp(40px, 6vw, 64px);
  padding: clamp(28px, 4vw, 40px);
  background: var(--card-dark);
  border: 1px solid var(--hairline-dark);
  border-radius: var(--radius-card);
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.team-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.team-copy .eyebrow {
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 12px;
}

.team-title {
  color: #fff;
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1;
  margin-left: -0.03em;
  margin-bottom: 12px;
}

.team-desc {
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
  max-width: 52ch;
}

.team-link {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
  transition: color 0.15s ease;
}

.team-card:hover .team-link { color: var(--red); }

/* ==========================================================================
   The finish line: 8px checkered strip (max allowed by the brand rules)
   ========================================================================== */

.finish-line {
  height: 8px;
  background: conic-gradient(var(--navy) 90deg, #fff 90deg 180deg, var(--navy) 180deg 270deg, #fff 270deg);
  background-size: 8px 8px;
}

/* ==========================================================================
   Off the track
   ========================================================================== */

.offtrack {
  background: var(--paddock);
  padding-top: clamp(64px, 10vw, 104px);
  padding-bottom: clamp(72px, 11vw, 112px);
}

.offtrack .eyebrow {
  color: var(--navy-lifted);
  margin-bottom: 14px;
}

.offtrack-title {
  color: var(--navy);
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1;
  margin-left: -0.03em;
  margin-bottom: 18px;
}

.offtrack-intro {
  color: var(--ink-soft);
  font-size: 17px;
  max-width: 58ch;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #fff;
  border: 1px solid rgba(38, 44, 109, 0.08);
  border-radius: var(--radius-card);
  padding: 32px;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(16, 18, 22, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(16, 18, 22, 0.1);
}

.card img { width: 56px; height: 56px; }

.card h3 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 19px;
  color: var(--navy);
}

.card p {
  color: var(--ink-soft);
  font-size: 15px;
  flex-grow: 1;
}

.card-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  transition: color 0.15s ease;
}

.card:hover .card-link { color: var(--red); }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--navy);
  color: #fff;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 36px;
  padding-bottom: 36px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.footer-brand img { width: 28px; height: 28px; }

.footer-brand .display { font-size: 13px; }

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.75);
}

.footer-links a:hover { color: #fff; }

.footer-meta {
  width: 100%;
  padding-bottom: 28px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.45);
}

/* ==========================================================================
   Interior pages (racing resume)
   ========================================================================== */

.nav-links a[aria-current='page'] { color: #fff; }

.page-hero {
  background: var(--pit);
  padding-top: clamp(120px, 18vh, 170px);
}

.page-hero .eyebrow {
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
}

.page-title {
  color: #fff;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 0.94;
  margin-left: -0.04em;
  margin-bottom: 20px;
}

.page-sub {
  color: rgba(255, 255, 255, 0.7);
  font-size: 17px;
  max-width: 56ch;
}

.sect {
  background: var(--pit);
  color: #fff;
  padding-top: clamp(56px, 8vw, 88px);
}

.sect:last-of-type { padding-bottom: clamp(64px, 9vw, 96px); }

.sect-head { margin-bottom: clamp(28px, 4vw, 44px); }

.sect-head .eyebrow {
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 12px;
}

.sect-title {
  color: #fff;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
  margin-left: -0.03em;
}

.sect-note {
  margin-top: 14px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
  max-width: 62ch;
}

/* Dense results grid: 4 across, 2 rows */
.stat-grid--dense { grid-template-columns: repeat(4, 1fr); }

.stat-grid--dense .stat { border-left: 1px solid var(--hairline-dark); }

.stat-grid--dense .stat:nth-child(4n + 1) { border-left: none; }

.stat-grid--dense .stat:nth-child(n + 5) { border-top: 1px solid var(--hairline-dark); }

/* Circuit tiles */
.circuit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.ctile {
  background: var(--card-dark);
  border: 1px solid var(--hairline-dark);
  border-radius: 16px;
  padding: 18px 18px 16px;
}

.ctile-map {
  position: relative;
  aspect-ratio: 4 / 3;
  margin-bottom: 14px;
}

.ctile-map img {
  position: absolute;
  inset: 8px;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  object-fit: contain;
}

.ctile-map--pending {
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 10px;
}

.ctile-map--pending::before {
  content: 'MAP TO COME';
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.25);
}

.ctile-name {
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.15;
}

.ctile-meta {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.win-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  margin-right: 6px;
  vertical-align: 1px;
}

.map-credits {
  margin-top: 24px;
}

.map-credits summary {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
}

.map-credits p {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.4);
  max-width: 90ch;
}

.map-credits a { color: rgba(255, 255, 255, 0.55); }

/* Cars */
.car-feature {
  margin: 0 0 20px;
}

.car-feature img {
  width: 100%;
  border-radius: 16px;
}

.car-feature figcaption {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.car-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.car-grid figure { margin: 0; }

.car-grid img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 16px;
}

.car-grid figcaption {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--hairline-dark);
  border-radius: 999px;
  padding: 8px 16px;
  white-space: nowrap;
}

/* Honors + instructor columns */
.honors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(32px, 5vw, 64px);
}

.honor-list {
  list-style: none;
}

.honor-list li {
  padding: 13px 0;
  border-top: 1px solid var(--hairline-dark);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
}

.honor-list li span {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 3px;
}

/* ==========================================================================
   Field guides (light register)
   ========================================================================== */

body.light { background: var(--paddock); }

.nav--light .nav-brand { color: var(--navy); }
.nav--light .nav-links a { color: rgba(38, 44, 109, 0.7); }
.nav--light .nav-links a:hover,
.nav--light .nav-links a[aria-current='page'] { color: var(--navy); }

.lib-hero {
  padding-top: clamp(120px, 18vh, 170px);
  padding-bottom: clamp(20px, 4vw, 40px);
}

.lib-hero .eyebrow { color: var(--navy-lifted); margin-bottom: 16px; }

.lib-title {
  color: var(--navy);
  font-size: clamp(40px, 6.5vw, 76px);
  line-height: 0.96;
  margin-left: -0.04em;
  margin-bottom: 20px;
}

.lib-sub {
  color: var(--ink-soft);
  font-size: 18px;
  max-width: 56ch;
}

.lib-list-sect {
  padding-top: clamp(28px, 5vw, 48px);
  padding-bottom: clamp(72px, 11vw, 120px);
}

.lib-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.lib-item {
  display: flex;
  gap: clamp(20px, 4vw, 40px);
  background: #fff;
  border: 1px solid rgba(38, 44, 109, 0.1);
  border-radius: var(--radius-card);
  padding: clamp(24px, 4vw, 40px);
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(16, 18, 22, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.lib-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(16, 18, 22, 0.1);
}

.lib-item-badge {
  flex-shrink: 0;
  font-family: var(--display);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(28px, 4vw, 40px);
  color: var(--red);
  line-height: 1;
}

.lib-item-title {
  color: var(--navy);
  font-size: clamp(22px, 3vw, 30px);
  margin-bottom: 12px;
}

.lib-item-desc {
  color: var(--ink-soft);
  font-size: 16px;
  margin-bottom: 16px;
  max-width: 62ch;
}

.lib-item-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}

.lib-item:hover .lib-item-link { color: var(--red); }

.lib-more {
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(38, 44, 109, 0.4);
}

/* ==========================================================================
   Invasive plant guide
   ========================================================================== */

.guide-wrap { max-width: 940px; }

.guide-hero {
  padding-top: clamp(116px, 16vh, 160px);
  padding-bottom: clamp(24px, 4vw, 40px);
}

.guide-hero .eyebrow { color: var(--navy-lifted); margin-bottom: 14px; }

.guide-crumb {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 22px;
}

.guide-crumb a { color: var(--navy); text-decoration: none; font-weight: 600; }
.guide-crumb a:hover { text-decoration: underline; }

.guide-title {
  color: var(--navy);
  font-size: clamp(34px, 5.5vw, 60px);
  line-height: 0.98;
  margin-left: -0.03em;
  margin-bottom: 20px;
}

.guide-lede {
  color: var(--ink);
  font-size: 19px;
  line-height: 1.6;
  max-width: 60ch;
}

.guide-meta {
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

/* Legal callout — legitimate use of racing red */
.legal-callout {
  margin: clamp(28px, 5vw, 44px) 0;
  background: #fff;
  border: 1px solid rgba(237, 33, 36, 0.25);
  border-left: 5px solid var(--red);
  border-radius: 14px;
  padding: clamp(20px, 3vw, 28px);
}

.legal-callout h2 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 16px;
  color: var(--red);
  margin-bottom: 12px;
}

.legal-callout p { color: var(--ink); font-size: 15px; margin-bottom: 10px; }
.legal-callout p:last-child { margin-bottom: 0; }
.legal-callout a { color: var(--navy); }

/* Sticky species jump nav */
.species-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(238, 240, 242, 0.9);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(38, 44, 109, 0.1);
}

.species-nav-inner {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0;
  scrollbar-width: none;
}

.species-nav-inner::-webkit-scrollbar { display: none; }

.species-nav a {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  padding: 8px 14px;
  border: 1px solid rgba(38, 44, 109, 0.16);
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.species-nav a:hover { background: var(--navy); color: #fff; }

/* Species block */
.species {
  padding-top: clamp(48px, 7vw, 80px);
  scroll-margin-top: 64px;
}

.species-head { margin-bottom: 28px; }

.species-num {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--red);
  font-weight: 500;
}

.species-name {
  color: var(--navy);
  font-size: clamp(28px, 4.5vw, 46px);
  line-height: 1;
  margin: 8px 0 6px;
  margin-left: -0.03em;
}

.species-latin {
  font-style: italic;
  font-size: 17px;
  color: var(--ink-soft);
}

.badge-prohibited {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--red);
  padding: 5px 12px;
  border-radius: 999px;
}

/* Photo strip */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}

.photo {
  margin: 0;
  background: #fff;
  border: 1px solid rgba(38, 44, 109, 0.1);
  border-radius: 14px;
  overflow: hidden;
}

.photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #dde0e4;
}

.photo figcaption {
  padding: 10px 12px 12px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-soft);
}

.photo figcaption b { color: var(--ink); font-weight: 600; }

.photo-credit {
  display: block;
  margin-top: 4px;
  font-size: 10.5px;
  color: rgba(74, 79, 92, 0.65);
}

.photo-credit a { color: inherit; }

/* Native lookalike: a single contained photo beside its comparison table */
.photo.lookalike {
  max-width: 320px;
  margin: 0 0 18px;
}

@media (min-width: 720px) {
  .photo.lookalike {
    float: right;
    width: 320px;
    margin: 4px 0 16px 24px;
  }
}

.photo-ph {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  background: repeating-linear-gradient(45deg, #e3e6ea, #e3e6ea 10px, #dde0e4 10px, #dde0e4 20px);
  border-bottom: 1px solid rgba(38, 44, 109, 0.1);
  color: rgba(38, 44, 109, 0.4);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 12px;
}

/* Prose + tables */
.prose { color: var(--ink); font-size: 16px; line-height: 1.65; }

.prose h3 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 16px;
  color: var(--navy);
  letter-spacing: 0.02em;
  margin: 28px 0 12px;
}

.prose h4 {
  font-size: 12px;
  font-family: var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy-lifted);
  margin: 20px 0 8px;
}

.prose p { margin-bottom: 14px; max-width: 68ch; }
.prose ul { margin: 0 0 16px 0; padding-left: 20px; max-width: 68ch; }
.prose li { margin-bottom: 7px; }
.prose strong { color: var(--ink); }
.prose a { color: var(--navy); }

.table-scroll {
  overflow-x: auto;
  margin: 16px 0 24px;
  border: 1px solid rgba(38, 44, 109, 0.12);
  border-radius: 12px;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: #fff;
  min-width: 460px;
}

table.data th, table.data td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(38, 44, 109, 0.08);
  vertical-align: top;
}

table.data thead th {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  background: rgba(38, 44, 109, 0.04);
}

table.data tbody tr:last-child td { border-bottom: none; }
table.data td:first-child { font-weight: 600; color: var(--ink); }
table.data .invasive { color: var(--red); }

/* Callout card (seasonal, removal, alternatives) */
.card-block {
  background: #fff;
  border: 1px solid rgba(38, 44, 109, 0.1);
  border-radius: 16px;
  padding: clamp(18px, 3vw, 26px);
  margin: 20px 0 24px;
}

.card-block > h3 { margin-top: 0; }

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

.checklist li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.55;
}

.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border: 2px solid var(--navy-lifted);
  border-radius: 5px;
}

.season-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.season {
  border: 1px solid rgba(38, 44, 109, 0.12);
  border-radius: 10px;
  padding: 14px;
}

.season dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-lifted);
  margin-bottom: 6px;
}

.season dd { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink); }

.alt-lead {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

/* Establishing hero image (used by the mini-excavator guide) */
.guide-photo {
  margin: clamp(24px, 4vw, 40px) 0 8px;
}

.guide-photo img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 18px;
}

.guide-photo figcaption {
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-soft);
}

.guide-photo figcaption a { color: var(--navy); }

/* Smoke-color decoder swatches */
.swatch {
  display: inline-block;
  width: 15px;
  height: 15px;
  border-radius: 3px;
  margin-right: 9px;
  vertical-align: -2px;
  border: 1px solid rgba(38, 44, 109, 0.2);
}

/* Deal-breakers: legitimate use of Racing Red for "walk away" */
.walkaway {
  margin: clamp(28px, 5vw, 44px) 0;
  background: rgba(237, 33, 36, 0.04);
  border: 1px solid rgba(237, 33, 36, 0.28);
  border-left: 5px solid var(--red);
  border-radius: 14px;
  padding: clamp(20px, 3vw, 28px);
}

.walkaway h3 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 18px;
  color: var(--red);
  margin: 0 0 6px;
}

.walkaway p { color: var(--ink); font-size: 14px; margin: 0 0 14px; }

.walkaway ol {
  margin: 0;
  padding-left: 22px;
  color: var(--ink);
  font-size: 15px;
}

.walkaway li { margin-bottom: 9px; }

/* Sources */
.guide-sources {
  padding: clamp(48px, 7vw, 72px) 0 clamp(64px, 9vw, 96px);
}

.guide-sources h2 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 20px;
  color: var(--navy);
  margin-bottom: 16px;
}

.guide-sources p, .guide-sources li {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.guide-sources a { color: var(--navy); }

.disclaimer {
  margin-top: 24px;
  padding: 16px 18px;
  background: rgba(38, 44, 109, 0.05);
  border-radius: 12px;
  font-size: 13px;
  color: var(--ink-soft);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 860px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--hairline-dark); }
  .stat-grid--dense .stat:nth-child(odd) { border-left: none; }
  .stat-grid--dense .stat:nth-child(even) { border-left: 1px solid var(--hairline-dark); }
}

@media (max-width: 640px) {
  .nav-links a:not(.nav-media) { display: none; }
  .hero-photo img { object-position: 66% 38%; }
  .hero-photo::after {
    background:
      linear-gradient(180deg, rgba(16, 18, 22, 0.75) 0%, rgba(16, 18, 22, 0.3) 32%),
      linear-gradient(0deg, var(--pit) 8%, rgba(16, 18, 22, 0.62) 55%, rgba(16, 18, 22, 0.4) 100%);
  }
  .stat { padding: 20px 16px 16px; }
}

/* ==========================================================================
   Motion preferences
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy > *,
  .hero-photo img {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .card, .card:hover { transform: none; }
}
