/* ===================================================================
   dératisation.fr — Editorial stylesheet (rewritten April 2026)
   =================================================================== */

:root {
  --paper: #f4efe6;
  --paper-strong: #fbf8f2;
  --paper-soft: #ece4d8;
  --ink: #14252b;
  --ink-soft: #42545a;
  --accent: #b05a3d;
  --accent-deep: #8a4328;
  --accent-soft: rgba(176, 90, 61, 0.12);
  --forest: #2f564a;
  --gold: #b68c58;
  --line: rgba(20, 37, 43, 0.14);
  --line-strong: rgba(20, 37, 43, 0.26);
  --shadow: 0 20px 50px rgba(20, 37, 43, 0.10);
  --shadow-sm: 0 4px 16px rgba(20, 37, 43, 0.08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --content-width: min(1200px, calc(100vw - 3rem));
  --measure: 100%;
  --section-gap: 3.5rem;
  --block-gap: 2.5rem;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(182, 140, 88, 0.10), transparent 40%),
    radial-gradient(circle at top right, rgba(47, 86, 74, 0.08), transparent 40%),
    linear-gradient(180deg, #f8f4ed 0%, #f2ebdf 48%, #f7f4ee 100%);
  line-height: 1.7;
  min-width: 320px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 600px;
  background-image:
    linear-gradient(rgba(20, 37, 43, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 37, 43, 0.018) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.25), transparent);
  z-index: -1;
}

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

a {
  color: inherit;
  text-decoration-color: rgba(176, 90, 61, 0.40);
  text-underline-offset: 0.2em;
  transition: text-decoration-color 200ms ease;
}

a:hover {
  text-decoration-color: rgba(176, 90, 61, 0.9);
}

p,
li {
  font-size: 1.05rem;
}

h1,
h2,
h3,
.display {
  font-family: "Iowan Old Style", "Palatino Linotype", "URW Palladio L", Georgia, serif;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 0.6em;
  overflow-wrap: anywhere;
}

h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.08;
}

h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

/* ---- Kicker / Eyebrow ---- */

.eyebrow,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 0.6rem;
}

.eyebrow::before,
.kicker::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: currentColor;
}

/* ---- Shell ---- */

.site-shell {
  width: var(--content-width);
  margin: 0 auto;
  min-width: 0;
}

.site-shell > * + * {
  margin-top: var(--block-gap);
}

/* ===================================================================
   HEADER
   =================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(248, 244, 237, 0.85);
  border-bottom: 1px solid rgba(20, 37, 43, 0.07);
}

.site-header__bar {
  width: var(--content-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand__mark {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--ink), var(--forest));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.brand__mark::before,
.brand__mark::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.brand__mark::before {
  width: 1rem;
  height: 1rem;
  left: 0.6rem;
  top: 0.7rem;
  border: 2px solid #f9f4ed;
}

.brand__mark::after {
  width: 0.8rem;
  height: 0.16rem;
  background: #f9f4ed;
  right: 0.45rem;
  bottom: 0.6rem;
  transform: rotate(-32deg);
  transform-origin: right center;
}

.brand__copy {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand__title {
  font-family: "Iowan Old Style", "Palatino Linotype", "URW Palladio L", Georgia, serif;
  font-weight: 700;
  font-size: 1.2rem;
}

.brand__subtitle {
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper-strong);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.2rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.site-nav a,
.site-nav button {
  border: 0;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 150ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(20, 37, 43, 0.06);
}

.site-nav .sale-link {
  color: var(--paper-strong);
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
}

.site-nav .sale-link:hover {
  background: linear-gradient(135deg, #bf6647, #8a4328);
}

/* ===================================================================
   HERO
   =================================================================== */

.hero {
  padding: 4rem 0 3rem;
}

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

.hero__content,
.hero__visual {
  position: relative;
}

.hero__content {
  padding: 1rem 0;
}

.hero__lede {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 36rem;
  line-height: 1.7;
}

.hero__actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* ---- Buttons ---- */

.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  cursor: pointer;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: linear-gradient(135deg, var(--ink), var(--forest));
  color: var(--paper-strong);
  box-shadow: 0 12px 24px rgba(20, 37, 43, 0.18);
}

.button--secondary {
  background: rgba(255, 255, 255, 0.65);
  border-color: var(--line);
  color: var(--ink);
}

.button--ghost {
  background: rgba(176, 90, 61, 0.1);
  color: var(--accent-deep);
  border-color: rgba(176, 90, 61, 0.22);
}

/* ---- Hero panel (photo mosaic card) ---- */

.hero-panel,
.panel,
.pillars,
.article-hero,
.content-card,
.stat-block,
.source-card,
.footer-card,
.mini-card {
  background: rgba(251, 248, 242, 0.88);
  border: 1px solid rgba(20, 37, 43, 0.07);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 0.75rem;
}

.hero-panel__frame {
  border-radius: calc(var(--radius-xl) - 6px);
  padding: 1rem;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.80), rgba(240, 233, 222, 0.92)),
    linear-gradient(135deg, rgba(176, 90, 61, 0.06), rgba(47, 86, 74, 0.06));
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero-panel__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ---- Chips / Tags / Pills ---- */

.chip-row,
.meta-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip,
.tag,
.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.chip {
  background: rgba(20, 37, 43, 0.07);
  color: var(--ink);
}

.chip--sale {
  background: rgba(176, 90, 61, 0.12);
  color: var(--accent-deep);
}

.meta-pill {
  background: rgba(47, 86, 74, 0.10);
  color: var(--forest);
}

/* ---- Hero stats ---- */

.hero-stats,
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-stat,
.stat-block {
  padding: 1rem;
}

.hero-stat strong,
.stat-block strong {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
  font-family: "Iowan Old Style", "Palatino Linotype", "URW Palladio L", Georgia, serif;
}

.hero-stat span,
.stat-block span {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* ---- Photo mosaic (hero) ---- */

.hero-figure,
.page-figure {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(20, 37, 43, 0.07);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.60), rgba(240, 233, 222, 0.90));
  display: grid;
  gap: 0;
  align-content: start;
}

.hero-figure img,
.page-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-figure figcaption,
.page-figure figcaption {
  padding: 0.5rem 0.75rem;
  color: var(--ink-soft);
  font-size: 0.85rem;
  line-height: 1.4;
}

.hero-figure--photo,
.page-figure--photo,
.hero-figure--mosaic,
.page-figure--mosaic {
  background: rgba(255, 255, 255, 0.90);
}

.hero-figure--photo img,
.page-figure--photo img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: rgba(231, 222, 205, 0.9);
}

.hero-figure--mosaic,
.page-figure--mosaic {
  padding: 0.6rem;
}

.page-figure--photo {
  padding: 0.6rem;
  gap: 0.6rem;
}

.photo-mosaic {
  display: grid;
  gap: 0.6rem;
  align-items: stretch;
}

.photo-mosaic--hero {
  grid-template-columns: 1.2fr 1fr;
}

.photo-mosaic--species {
  grid-template-columns: repeat(3, 1fr);
}

.photo-mosaic__stack {
  display: grid;
  gap: 0.6rem;
}

.photo-shot {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid rgba(20, 37, 43, 0.06);
  background: rgba(247, 241, 233, 0.9);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.photo-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-shot--large {
  aspect-ratio: 3 / 4;
}

.photo-shot--wide {
  aspect-ratio: 16 / 10;
}

.photo-shot--square {
  aspect-ratio: 1 / 1;
}

.photo-shot--tall {
  aspect-ratio: 3 / 4;
}

.photo-shot figcaption {
  position: absolute;
  inset: auto 0 0 0;
  margin: 0;
  padding: 2.5rem 0.75rem 0.75rem;
  color: var(--paper-strong);
  font-size: 0.85rem;
  line-height: 1.4;
  background: linear-gradient(180deg, rgba(20, 37, 43, 0), rgba(20, 37, 43, 0.82));
}

.photo-shot__badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(251, 248, 242, 0.94);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(20, 37, 43, 0.12);
}

.figure-note {
  padding: 0.75rem 0.85rem;
  border-top: 1px solid rgba(20, 37, 43, 0.07);
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.note-strip {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(47, 86, 74, 0.07);
  border: 1px solid rgba(47, 86, 74, 0.12);
  color: var(--forest);
  font-weight: 600;
  font-size: 0.92rem;
}

/* ===================================================================
   SECTIONS
   =================================================================== */

.section {
  padding: var(--section-gap) 0;
}

.section--tight {
  padding-top: 2rem;
}

.section-heading {
  max-width: 100%;
  margin-bottom: 2.5rem;
}

.section-heading p {
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: 52rem;
}

/* ===================================================================
   GRIDS
   =================================================================== */

.grid-3,
.grid-2,
.grid-4,
.link-grid,
.pillars,
.figure-grid,
.species-links-grid,
.compare-grid {
  display: grid;
  gap: var(--block-gap);
  align-items: start;
}

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

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

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

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

.figure-grid .content-figure {
  max-width: 100%;
}

.figure-grid .content-figure img {
  max-height: 240px;
}

.species-links-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 2rem;
}

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

/* ===================================================================
   CARDS
   =================================================================== */

.card,
.mini-card,
.content-card,
.source-card {
  padding: 1.5rem;
}

.card,
.mini-card,
.source-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(20, 37, 43, 0.07);
  background: rgba(251, 248, 242, 0.75);
  transition: box-shadow 200ms ease, transform 200ms ease;
}

.card:hover,
.source-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.card h3,
.mini-card h3,
.content-card h3,
.source-card h3 {
  margin-bottom: 0.5rem;
}

.card p,
.mini-card p,
.content-card p,
.source-card p {
  color: var(--ink-soft);
  line-height: 1.65;
}

.card a,
.link-list a,
.source-card a {
  font-weight: 700;
}

/* ---- Lists ---- */

.check-list,
.number-list,
.link-list,
.bullet-list {
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.check-list li,
.number-list li,
.link-list li,
.bullet-list li {
  position: relative;
  padding-left: 1.75rem;
}

.check-list li::before,
.bullet-list li::before,
.link-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
}

.check-list li::before {
  background: linear-gradient(135deg, var(--forest), var(--gold));
}

.bullet-list li::before,
.link-list li::before {
  background: linear-gradient(135deg, var(--accent), var(--gold));
}

.number-list {
  counter-reset: step;
}

.number-list li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.12rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: rgba(176, 90, 61, 0.12);
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* ---- Spotlight ---- */

.spotlight {
  padding: 2rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(20, 37, 43, 0.07);
  background:
    linear-gradient(150deg, rgba(176, 90, 61, 0.08), rgba(182, 140, 88, 0.06)),
    rgba(251, 248, 242, 0.88);
  box-shadow: var(--shadow);
}

.spotlight--dark {
  background:
    radial-gradient(circle at top left, rgba(182, 140, 88, 0.18), transparent 40%),
    linear-gradient(135deg, var(--ink), #1d383e);
  color: var(--paper-strong);
}

.spotlight--dark p,
.spotlight--dark li,
.spotlight--dark .eyebrow,
.spotlight--dark a {
  color: var(--paper-strong);
}

/* ---- Story band (stacked layout for readability) ---- */

.story-band {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

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

.article-hero {
  padding: 1.25rem;
}

.article-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.article-hero__grid > * {
  min-width: 0;
}

/* ---- Page shell / grids ---- */

.page-shell,
.contact-grid,
.source-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

.page-aside {
  position: static;
  align-self: start;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.contact-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

.contact-pair > * + * {
  margin-top: 0;
}

@media (max-width: 768px) {
  .contact-pair {
    grid-template-columns: 1fr;
  }
}

.toc,
.fact-box,
.contact-box {
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  background: rgba(251, 248, 242, 0.78);
  border: 1px solid rgba(20, 37, 43, 0.07);
}

.toc ul {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: grid;
  gap: 0.5rem;
}

.toc a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
}

.toc a:hover {
  color: var(--accent-deep);
}

.page-content {
  display: grid;
  gap: var(--block-gap);
  min-width: 0;
}

.content-card {
  padding: 2rem;
}

.content-card--media {
  overflow: hidden;
}

.content-card > * + * {
  margin-top: 1rem;
}

.content-card > :last-child {
  margin-bottom: 0;
}

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

.content-card p,
.content-card li {
  max-width: 100%;
}

.content-card table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.content-card th,
.content-card td {
  text-align: left;
  padding: 0.85rem;
  border-bottom: 1px solid rgba(20, 37, 43, 0.07);
  vertical-align: top;
}

.content-card th {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--forest);
}

.content-card blockquote {
  margin: 1.25rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--gold);
  background: rgba(182, 140, 88, 0.10);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* ===================================================================
   CONTENT FIGURES (inside articles)
   =================================================================== */

.content-figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(20, 37, 43, 0.07);
  background: rgba(255, 255, 255, 0.75);
  padding: 0.6rem;
  display: grid;
  gap: 0.5rem;
  max-width: 600px;
}

.content-figure img {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
  display: block;
  border-radius: var(--radius-md);
  background: rgba(231, 222, 205, 0.9);
}

.content-figure img[src$=".jpg"],
.content-figure img[src$=".png"],
.content-figure img[src$=".webp"] {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  max-height: 320px;
}

.content-figure--cover {
  max-width: 100%;
}

.content-figure--cover img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  max-height: 360px;
}

.content-figure--banner {
  max-width: 100%;
}

.content-figure--banner img {
  aspect-ratio: 21 / 9;
  object-fit: cover;
  max-height: 260px;
}

.content-figure figcaption {
  padding: 0.25rem 0.5rem;
  color: var(--ink-soft);
  font-size: 0.85rem;
  line-height: 1.4;
}

/* ---- Media band (vignette + text, journal style) ---- */

.media-band {
  display: grid;
  grid-template-columns: 14rem 1fr;
  gap: 1.5rem;
  align-items: start;
}

.media-band > .content-figure {
  max-width: 14rem;
  max-height: none;
}

.media-band > .content-figure img {
  max-height: 200px;
}

.media-copy {
  display: grid;
  gap: 0.75rem;
}

/* ---- Journal block (illustration + text, newspaper layout) ---- */

.journal-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.journal-block > .content-figure {
  max-width: 100%;
}

.journal-block > .content-figure img {
  max-height: none;
  width: 100%;
  height: auto;
}

.journal-block > .journal-copy {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  font-size: 0.97rem;
  line-height: 1.6;
  border-left: 2px solid var(--line);
  padding-left: 1.5rem;
}

.journal-copy > p:first-child::first-letter {
  font-family: Georgia, serif;
  font-size: 2.2em;
  float: left;
  line-height: 1;
  margin-right: 0.12em;
  color: var(--ink);
}

/* ===================================================================
   EDITORIAL CARDS (image + text — stacked vertically)
   =================================================================== */

.visual-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--block-gap);
  align-items: stretch;
}

.editorial-card {
  padding: 0;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(20, 37, 43, 0.07);
  background: rgba(251, 248, 242, 0.82);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 200ms ease, transform 200ms ease;
}

.editorial-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.editorial-card__media {
  margin: 0;
  overflow: hidden;
  background: rgba(231, 222, 205, 0.5);
}

.editorial-card__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 260px;
  object-fit: cover;
  display: block;
}

.editorial-card__body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.editorial-card__body h3 {
  margin: 0;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
}

.editorial-card__body p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ===================================================================
   SPECIES SECTIONS
   =================================================================== */

.species-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--block-gap);
}

.article-hero .species-board,
.page-figure .species-board {
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.article-hero .species-board__item,
.page-figure .species-board__item {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 0.75rem;
  align-items: center;
}

.article-hero .species-board__item .media-thumb,
.page-figure .species-board__item .media-thumb {
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.article-hero .species-board__item .media-thumb img,
.page-figure .species-board__item .media-thumb img {
  aspect-ratio: 1;
  height: auto;
}

.article-hero .species-board__copy,
.page-figure .species-board__copy {
  padding: 0.25rem 0;
}

.article-hero .species-board__copy h3,
.page-figure .species-board__copy h3 {
  font-size: 0.95rem;
}

.article-hero .species-board__copy p,
.page-figure .species-board__copy p {
  font-size: 0.85rem;
  display: none;
}

.species-board__item {
  padding: 0;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(20, 37, 43, 0.07);
  background: rgba(251, 248, 242, 0.82);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.species-board__item .media-thumb {
  border-radius: 0;
  border: none;
}

.species-board__item .media-thumb img {
  aspect-ratio: 16 / 10;
  height: auto;
}

.species-board__copy {
  padding: 1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.species-board__copy h3 {
  font-size: 1.1rem;
  margin: 0;
}

.species-board__copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* ---- Mini gallery ---- */

.mini-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  align-items: start;
}

.species-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(20, 37, 43, 0.06);
  font-size: 0.82rem;
  font-weight: 700;
  width: fit-content;
}

/* ---- Species panel (horizontal card with thumbnail) ---- */

.species-panel {
  padding: 0;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(20, 37, 43, 0.07);
  background: rgba(251, 248, 242, 0.82);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto auto auto;
}

.species-panel .media-thumb {
  border-radius: 0;
  border: none;
  grid-column: 1;
}

.species-panel .media-thumb img {
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 200px;
  object-fit: cover;
}

.species-panel h3 {
  grid-column: 1;
  margin: 0;
  padding: 1rem 1.25rem 0;
}

.species-panel p {
  grid-column: 1;
  color: var(--ink-soft);
  padding: 0 1.25rem;
  margin: 0.25rem 0 0;
  font-size: 0.92rem;
}

.species-panel .button {
  grid-column: 1;
  justify-self: start;
  width: auto;
  margin: 0.75rem 1.25rem 1.25rem;
}

/* ---- Media thumb ---- */

.media-thumb {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid rgba(20, 37, 43, 0.07);
  background: rgba(231, 222, 205, 0.5);
}

.media-thumb img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.panel-link {
  font-weight: 700;
  text-decoration: none;
  color: var(--accent-deep);
}

.panel-link:hover {
  text-decoration: underline;
  text-decoration-color: var(--accent);
}

/* ===================================================================
   BREADCRUMBS
   =================================================================== */

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.breadcrumbs a {
  text-decoration: none;
}

.breadcrumbs span {
  opacity: 0.5;
}

/* ===================================================================
   STAT / FACT / STEPS / FAQ GRIDS
   =================================================================== */

.stat-banner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.fact-grid,
.steps-grid,
.faq-grid {
  display: grid;
  gap: var(--block-gap);
  align-items: start;
}

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

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

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

.faq-grid--stacked {
  grid-template-columns: 1fr;
  max-width: 52rem;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 0 0 1.5rem;
}

/* Consistent vertical rhythm between sibling blocks */
.faq-grid + .topic-grid,
.faq-grid + .cta-row,
.visual-grid + .faq-grid,
.topic-grid + .faq-grid,
.topic-grid + .visual-grid,
.section-heading + .topic-grid {
  margin-top: var(--block-gap);
}

.topic-card {
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(20, 37, 43, 0.07);
  background: rgba(251, 248, 242, 0.75);
}

.topic-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.topic-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0;
}

/* ---- Details / FAQ accordion ---- */

details {
  border: 1px solid rgba(20, 37, 43, 0.07);
  border-radius: var(--radius-md);
  background: rgba(251, 248, 242, 0.75);
  padding: 1.15rem 1.25rem;
  align-self: start;
  transition: background 200ms ease;
}

details[open] {
  background: rgba(255, 255, 255, 0.85);
}

summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  font-size: 1rem;
  line-height: 1.45;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  float: right;
  color: var(--accent-deep);
  font-size: 1.15rem;
  margin-left: 1rem;
}

details[open] summary::after {
  content: "\2212";
}

/* ===================================================================
   FOOTER CTA / ARTICLE FOOTER
   =================================================================== */

.article-footer,
.footer-cta {
  padding: 2.5rem;
  border-radius: var(--radius-xl);
  background: rgba(20, 37, 43, 0.96);
  color: var(--paper-strong);
}

.article-footer a,
.footer-cta a {
  color: var(--paper-strong);
}

.article-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.source-note,
.legal-note {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* ===================================================================
   SITE FOOTER
   =================================================================== */

.site-footer {
  margin-top: 0;
  padding: 2rem 0 3rem;
  border-top: 1px solid rgba(20, 37, 43, 0.07);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

.footer-grid > * + * {
  margin-top: 0;
}

.footer-card {
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
  align-content: start;
}

.footer-card p,
.footer-card li {
  color: var(--ink-soft);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
}

.footer-nav a {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  align-items: center;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.footer-mention {
  color: var(--ink-soft);
  font-size: 0.88rem;
}

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

.contact-list li span {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--forest);
  font-weight: 700;
}

/* ===================================================================
   CONTACT FORM
   =================================================================== */

.contact-form {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: grid;
  gap: 0.35rem;
}

.form-group label {
  font-weight: 700;
  font-size: 0.92rem;
}

.form-opt {
  font-weight: 400;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--paper-strong);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-group textarea {
  resize: vertical;
  min-height: 7rem;
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ===================================================================
   UTILITY
   =================================================================== */

.table-wrap {
  overflow-x: auto;
}

.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;
}

.page-main {
  padding: 2.5rem 0 1.5rem;
}

.not-found {
  min-height: 65vh;
  display: grid;
  place-items: center;
  padding: 3rem 0;
}

.not-found__panel {
  width: min(760px, 100%);
  text-align: center;
  padding: 2.5rem;
}

/* ===================================================================
   RESPONSIVE — TABLET (< 1080px)
   =================================================================== */

@media (min-width: 980px) {
  .contact-grid {
    grid-template-columns: 0.4fr 0.6fr;
  }

  .source-grid {
    grid-template-columns: 0.35fr 0.65fr;
  }

  .contact-grid .page-aside,
  .source-grid .page-aside {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1080px) {
  :root {
    --section-gap: 3rem;
  }

  .hero__grid,
  .footer-grid,
  .article-hero__grid {
    grid-template-columns: 1fr;
  }

  .page-aside {
    grid-template-columns: 1fr;
  }

  .grid-3,
  .link-grid,
  .species-links-grid,
  .fact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .species-board {
    grid-template-columns: repeat(2, 1fr);
  }

  .photo-mosaic--species {
    grid-template-columns: 1fr;
  }

  .visual-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================================================================
   RESPONSIVE — MOBILE (< 768px)
   =================================================================== */

@media (max-width: 768px) {
  :root {
    --content-width: calc(100vw - 1.5rem);
    --section-gap: 2.5rem;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    right: 0.75rem;
    top: calc(100% + 0.5rem);
    width: min(20rem, calc(100vw - 1.5rem));
    padding: 0.75rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: rgba(251, 248, 242, 0.97);
    border: 1px solid rgba(20, 37, 43, 0.07);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    width: 100%;
    text-align: left;
  }

  .grid-3,
  .grid-2,
  .link-grid,
  .fact-grid,
  .faq-grid,
  .topic-grid,
  .article-links,
  .hero-stats,
  .stat-banner,
  .figure-grid,
  .compare-grid,
  .species-links-grid,
  .mini-gallery,
  .species-board,
  .visual-grid {
    grid-template-columns: 1fr;
  }

  .photo-mosaic--hero {
    grid-template-columns: 1fr;
  }

  .editorial-card__media img {
    aspect-ratio: 16 / 9;
  }

  .media-band {
    grid-template-columns: 1fr;
  }

  .media-band > .content-figure {
    max-width: 100%;
  }

  .journal-block {
    grid-template-columns: 1fr;
  }

  .journal-block > .journal-copy {
    border-left: none;
    padding-left: 0;
  }

  .figure-grid {
    grid-template-columns: 1fr;
  }

  .visual-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================================================================
   RESPONSIVE — SMALL MOBILE (< 480px)
   =================================================================== */

@media (max-width: 480px) {
  :root {
    --content-width: calc(100vw - 1rem);
    --section-gap: 2rem;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero__content {
    padding-top: 0;
  }

  .site-header__bar {
    min-height: 4rem;
  }

  .brand__title {
    font-size: 1.05rem;
  }

  .brand__subtitle {
    font-size: 0.78rem;
  }

  h1 {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
  }

  h2 {
    font-size: clamp(1.4rem, 6vw, 1.9rem);
  }

  .hero__lede,
  .lead {
    font-size: 1rem;
  }

  .article-hero,
  .content-card,
  .footer-card,
  .toc,
  .fact-box,
  .contact-box {
    padding: 1.25rem;
  }

  .footer-cta,
  .article-footer {
    padding: 1.5rem;
  }

  .spotlight {
    padding: 1.25rem;
  }

  .grid-4,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .button,
  button.button {
    width: 100%;
  }

  .hero-stats {
    gap: 0.5rem;
  }

  .hero-stat {
    padding: 0.75rem;
  }
}
