/* The Honey Bee Society — static site stylesheet
   Semantic brand tokens define the palette below.
   Fonts: Roboto (body), Archivo (headings) — both Google Fonts, free/open license */

:root {
  --accent: #b9382c;
  --accent-hover: #8f291f;
  --secondary: #006f9f;
  --secondary-hover: #00577d;
  --honey: #e8a315;
  --pollen: #ffd34e;
  --leaf: #347a52;
  --sky: #dff3fb;
  --petal: #fff1b8;
  --dark: #272727;
  --darker: #0e0e0e;
  --gray-light: #f6f6f6;
  --gray-mid: #e7e7e7;
  --text-muted: #46505f;
  --max-width: 1240px;
  --prose-width: 70ch;
  --gutter: clamp(1rem, 4vw, 3rem);
  --section-space: clamp(3.5rem, 8vw, 7rem);
  --radius: 12px;
  --radius-large: 28px;
  --shadow-card: 0 14px 38px rgba(14, 14, 14, 0.09);
  --font-body: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-head: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --surface-canvas: #fff;
  --surface-subtle: var(--gray-light);
  --surface-inverse: var(--darker);
  --surface-elevated: #fff;
  --text-primary: var(--dark);
  --text-secondary: var(--text-muted);
  --text-inverse: #fff;
  --border-subtle: var(--gray-mid);
  --border-inverse: #333;
  --overlay-backdrop: rgba(14, 14, 14, 0.58);
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --text-small: 0.875rem;
  --text-lead: clamp(1.05rem, 1.6vw, 1.22rem);
  --weight-medium: 500;
  --weight-bold: 700;
  --weight-heavy: 800;
  --tracking-eyebrow: 0.13em;
  --control-min-size: 44px;
  --radius-pill: 999px;
  --focus-width: 3px;
  --focus-offset: 3px;
  --shadow-sm: 0 4px 16px rgba(14, 14, 14, 0.06);
  --shadow-md: var(--shadow-card);
  --duration-fast: 150ms;
  --duration-standard: 250ms;
  --duration-slow: 450ms;
  --ease-standard: ease;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(5rem + env(safe-area-inset-top));
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--dark);
  line-height: 1.65;
  background: #fff;
}

img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  margin: 1.4em 0 0.5em;
  color: var(--darker);
}
h1 { font-size: clamp(2rem, 4vw, 3rem); margin-top: 0; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }
h5, h6 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.04em; }

p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 3px;
}
ul, ol { padding-left: 1.4em; }
blockquote {
  border-left: 4px solid var(--secondary);
  margin: 1.5em 0;
  padding: 0.2em 1.2em;
  color: var(--text-muted);
  font-style: italic;
}
hr { border: none; border-top: 1px solid var(--gray-mid); margin: 2.5em 0; }

.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 {
  position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff;
  padding: 0.6em 1em; z-index: 999;
}
.skip-link:focus {
  left: max(0.5rem, env(safe-area-inset-left));
  top: max(0.5rem, env(safe-area-inset-top));
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--control-min-size);
  font-family: var(--font-head);
  font-weight: 600;
  padding: 0.75em 1.6em;
  border-radius: var(--radius-pill);
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform var(--duration-fast) var(--ease-standard), background var(--duration-fast) var(--ease-standard);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[aria-disabled="true"],
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-secondary { background: var(--secondary); color: #fff; border: none; }
.btn-secondary:hover { background: var(--secondary-hover); color: #fff; }
.btn-outline { background: transparent; border-color: currentColor; color: var(--dark); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--gray-mid);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(0.7em + env(safe-area-inset-top)) max(1.2em, env(safe-area-inset-right)) 0.7em max(1.2em, env(safe-area-inset-left));
  gap: 1em;
}
.site-logo img { height: 48px; width: auto; border-radius: 0; }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:not(.sr-only):nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:not(.sr-only):nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:not(.sr-only):nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.site-nav { display: flex; align-items: center; gap: 1.5em; }
.site-nav > ul { list-style: none; display: flex; gap: 1.3em; margin: 0; padding: 0; align-items: center; }
.site-nav a { color: var(--dark); font-weight: 500; font-family: var(--font-head); font-size: 0.95rem; }
.site-nav a:hover { color: var(--accent); text-decoration: none; }
.site-nav a[aria-current="page"]:not(.btn) {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 0.35em;
}
.nav-donate { white-space: nowrap; }
/* .site-nav a above overrides .btn-primary's white text via higher
   specificity; restore it so the Donate button keeps AA-compliant
   contrast (dark-on-red was ~2.6:1, well under the required 4.5:1). */
.site-nav a.btn-primary,
.site-nav a.btn-primary:hover { color: #fff; }

.has-dropdown { position: relative; }
.nav-folder-btn {
  background: none; border: none; font: inherit; font-family: var(--font-head);
  min-height: 44px;
  font-size: 0.95rem; font-weight: 500; color: var(--dark); cursor: pointer; padding: 0.4em 0;
}
.dropdown {
  list-style: none; margin: 0; padding: 0.5em 0;
  position: absolute; top: 100%; left: 0;
  background: #fff; border: 1px solid var(--gray-mid); border-radius: var(--radius);
  min-width: 230px; box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  display: none;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { display: block; }
.dropdown li a { display: block; padding: 0.5em 1em; white-space: nowrap; }

/* Full-width page shell with explicit wide and prose measures */
main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 clamp(3rem, 6vw, 5rem);
}
main [id] { scroll-margin-top: calc(5rem + env(safe-area-inset-top)); }
.section-inner,
.content-wide {
  width: min(calc(100% - (2 * var(--gutter))), var(--max-width));
  margin-inline: auto;
}
.content-prose {
  width: min(calc(100% - (2 * var(--gutter))), var(--prose-width));
  margin-inline: auto;
}
main > :first-child:not(img, .home-hero, .home-section, .action-hub, .pollinator-mosaic, .support-banner, .page-hero, .collection-hero, .article-shell, .document-header, .utility-panel) {
  padding-top: clamp(1.75rem, 4vw, 3rem);
}
main > img:first-child {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  margin-bottom: 1.5em;
  border-radius: 0;
}
main > img:not(:first-child) {
  max-width: min(calc(100% - (2 * var(--gutter))), var(--max-width));
  margin-inline: auto;
}
main > a {
  display: block;
  width: min(calc(100% - (2 * var(--gutter))), var(--prose-width));
  margin-left: max(var(--gutter), calc((100% - var(--max-width)) / 2));
  margin-right: auto;
}
main > h1,
main > h2,
main > h3,
main > h4,
main > h5,
main > h6,
main > hr,
main > .card-grid,
main > .program-grid,
main > .contact-grid,
main > .embed-wrap,
main > .newsletter-block,
main > .donate-cta,
main > .speaker-prevnext,
main > .faq-list {
  width: min(calc(100% - (2 * var(--gutter))), var(--max-width));
  margin-inline: auto;
}
main > h1,
main > h2,
main > h3,
main > h4,
main > h5,
main > h6,
.card,
.program-card,
.contact-card,
.footer-col {
  min-width: 0;
  overflow-wrap: anywhere;
}
main > p,
main > ul,
main > ol,
main > blockquote,
main > dl,
main > table {
  width: min(calc(100% - (2 * var(--gutter))), var(--prose-width));
  margin-left: max(var(--gutter), calc((100% - var(--max-width)) / 2));
  margin-right: auto;
  max-width: var(--prose-width);
  overflow-wrap: anywhere;
}
main > p a:not(.btn),
main > ul a:not(.btn),
main > ol a:not(.btn),
main > blockquote a:not(.btn) {
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.donate-cta { margin: 2em 0; }
.donate-cta-centered { text-align: center; padding: 1rem 0; }
.newsletter-block {
  background: var(--gray-light); border-radius: var(--radius);
  padding: 1.5em; margin: 2em 0;
}
.newsletter-block h2,
.newsletter-block h3 { margin-top: 0; }
.newsletter-block form,
.newsletter-block-form,
.footer-newsletter-form { display: flex; gap: 0.6em; flex-wrap: wrap; }
.newsletter-block input,
.newsletter-block-form input,
.footer-newsletter-form input {
  flex: 1 1 220px; padding: 0.7em 1em; border: 1px solid var(--gray-mid); border-radius: 999px;
  font-family: var(--font-body); font-size: 1rem;
}
.newsletter-note { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.6em; }
.newsletter-status { margin-top: 0.6em; font-weight: 500; color: var(--accent); }
/* The note and status are flex children of the form, so they need a full-width
   basis or they try to sit on the same row as the button. */
.newsletter-note,
.newsletter-status { flex: 1 0 100%; }
/* Honeypot: off-screen rather than display:none, which some bots detect.
   A class, not style="" -- the CSP grants no 'unsafe-inline' for styles. */
.newsletter-hp { position: absolute; left: -9999px; width: 1px; height: 1px; }

/* Shared public-page system */
.page-shell {
  width: 100%;
  max-width: none;
}
.page-shell--landing,
.page-shell--collection,
.page-shell--article,
.page-shell--document,
.page-shell--utility { padding-bottom: 0; }

/* Breadcrumbs — mirrors the BreadcrumbList JSON-LD on every non-home page. */
.breadcrumbs {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-3) var(--gutter) 0;
  font-size: var(--text-small);
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.breadcrumbs li { display: flex; align-items: center; gap: var(--space-2); }
.breadcrumbs li + li::before {
  content: "/";
  color: var(--text-muted);
  opacity: 0.6;
}
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover,
.breadcrumbs a:focus-visible { color: var(--accent); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--text-primary); font-weight: 500; }

.eyebrow {
  margin: 0 0 var(--space-4);
  color: var(--secondary);
  font-family: var(--font-head);
  font-size: var(--text-small);
  font-weight: var(--weight-heavy);
  letter-spacing: var(--tracking-eyebrow);
  line-height: 1.3;
  text-transform: uppercase;
}
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--petal);
}
.page-hero--petal { background: var(--petal); }
.page-hero--sky { background: var(--sky); }
.page-hero--canvas { background: var(--surface-canvas); }
.page-hero--inverse {
  color: var(--text-inverse);
  background: var(--surface-inverse);
}
.page-hero--inverse h1,
.page-hero--inverse h2,
.page-hero--inverse .eyebrow { color: var(--text-inverse); }
.page-hero__inner {
  width: min(calc(100% - (2 * var(--gutter))), var(--max-width));
  min-height: clamp(470px, 58vw, 680px);
  margin-inline: auto;
  padding-block: clamp(3.5rem, 8vw, 7rem);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.8fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 6rem);
}
.page-hero__copy { min-width: 0; max-width: 690px; }
.page-hero__copy h1 {
  max-width: 15ch;
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  letter-spacing: -0.055em;
  line-height: 0.98;
}
.page-hero__copy .lead,
.page-hero__copy > p:not(.eyebrow) {
  max-width: 58ch;
  margin-top: var(--space-6);
  font-size: var(--text-lead);
}
.page-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-8);
}
.page-hero__media,
.page-hero__card {
  min-width: 0;
  border-radius: var(--radius-large);
}
.page-hero__media {
  overflow: hidden;
  background: var(--surface-inverse);
  box-shadow: 14px 16px 0 var(--honey);
  transform: rotate(1.2deg);
}
.page-hero__media { margin: 0; }
.page-hero__media img {
  width: 100%;
  height: clamp(330px, 44vw, 560px);
  object-fit: cover;
  border-radius: 0;
}
.page-hero__media figcaption {
  padding: var(--space-5) clamp(1.25rem, 3vw, 1.75rem);
  color: #e9e9e9;
  font-size: var(--text-small);
  line-height: 1.55;
}
.page-hero__card {
  padding: clamp(1.8rem, 4vw, 3rem);
  color: var(--text-inverse);
  background: var(--surface-inverse);
  box-shadow: 14px 16px 0 var(--honey);
}
.page-hero__card h2,
.page-hero__card h3 { color: var(--text-inverse); margin-top: 0; }
.page-hero__card .eyebrow { color: var(--pollen); }
.page-hero__card a:not(.btn) { color: var(--pollen); }

.section-field {
  padding-block: var(--section-space);
  background: var(--surface-canvas);
}
.section-field--canvas { background: var(--surface-canvas); }
.section-field--sky { background: var(--sky); }
.section-field--petal { background: var(--petal); }
.section-field--subtle { background: var(--surface-subtle); }
.section-field--inverse {
  color: #eee;
  background: var(--surface-inverse);
}
.section-field--inverse h2,
.section-field--inverse h3,
.section-field--inverse .eyebrow { color: var(--text-inverse); }
/* .btn-outline hardcodes a dark text colour and takes its border from
   currentColor, which lands at roughly 1.2:1 on the inverse surface -- the
   button is effectively invisible. Inherit the inverse text colour instead. */
.section-field--inverse .btn-outline { color: var(--text-inverse); }
.section-field__inner {
  width: min(calc(100% - (2 * var(--gutter))), var(--max-width));
  margin-inline: auto;
}
.section-field__inner--prose { max-width: var(--prose-width); }
.section-intro { max-width: 65ch; font-size: var(--text-lead); }

.feature-grid,
.steps-grid,
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: var(--space-6);
  margin-top: var(--space-8);
}
.feature-card,
.step-card,
.resource-card {
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background: var(--surface-elevated);
  box-shadow: var(--shadow-sm);
  overflow-wrap: anywhere;
}
.feature-card { border-top: 5px solid var(--secondary); }
.feature-card h2,
.feature-card h3,
.step-card h2,
.step-card h3,
.resource-card h2,
.resource-card h3 { margin-top: 0; }
.feature-card > :last-child,
.step-card > :last-child,
.resource-card > :last-child { margin-bottom: 0; }
.resource-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: var(--space-5);
  object-fit: cover;
  border-radius: calc(var(--radius) * 0.65);
}
.step-card {
  position: relative;
  padding-top: 4.5rem;
  counter-increment: field-step;
}
.steps-grid { counter-reset: field-step; }
.step-card::before {
  content: counter(field-step, decimal-leading-zero);
  position: absolute;
  top: var(--space-6);
  left: clamp(1.25rem, 3vw, 2rem);
  color: var(--accent);
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: var(--weight-heavy);
  letter-spacing: 0.08em;
}
.step-card__icon {
  width: auto;
  height: clamp(72px, 9vw, 96px);
  margin-bottom: var(--space-5);
  border-radius: 0;
  object-fit: contain;
  object-position: left center;
}

/* Photo-led identification comparison (is it a swarm, or is it not?) */
.id-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: var(--space-6);
  margin-top: var(--space-8);
}
.id-card {
  min-width: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background: var(--surface-elevated);
  box-shadow: var(--shadow-sm);
}
.id-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0;
}
.id-card figcaption {
  flex: 1;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-top: 5px solid var(--border-subtle);
}
.id-card--yes figcaption { border-top-color: var(--leaf); }
.id-card--no figcaption { border-top-color: var(--accent); }
.id-card figcaption h3 { margin-top: var(--space-2); }
.id-card figcaption > :last-child { margin-bottom: 0; }
.id-card__tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
  padding: 0.35em 0.85em;
  border-radius: var(--radius-pill);
  color: var(--text-inverse);
  background: var(--leaf);
  font-family: var(--font-head);
  font-size: var(--text-small);
  font-weight: var(--weight-heavy);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
}
.id-card--no .id-card__tag { background: var(--accent); }
.id-card__tag::before {
  content: "\2713";
  font-size: 1em;
}
.id-card--no .id-card__tag::before { content: "\00d7"; }

/* Paired photograph and copy inside a section field */
.media-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  margin-top: var(--space-8);
}
.media-band--flip .media-band__media { order: 2; }
.media-band__media {
  min-width: 0;
  margin: 0;
}
.media-band__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-large);
}
.media-band__media figcaption {
  margin-top: var(--space-3);
  color: var(--text-secondary);
  font-size: var(--text-small);
}
.section-field--inverse .media-band__media figcaption { color: #d6d6d6; }
.media-band__copy { min-width: 0; }
.media-band__copy > :first-child { margin-top: 0; }
.media-band__copy > :last-child { margin-bottom: 0; }
.media-band__copy .page-actions { margin-top: var(--space-6); }

.status-notice {
  max-width: 72ch;
  padding: var(--space-6);
  border-left: 5px solid var(--secondary);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--sky);
}
.status-notice > :last-child { margin-bottom: 0; }
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}
.store-badges a { display: inline-flex; min-height: var(--control-min-size); }
.store-badges img { width: auto; height: 56px; border-radius: 8px; }

/* Editorial collection and field-guide articles */
.collection-hero {
  padding-block: var(--section-space);
  color: #eee;
  background: var(--surface-inverse);
}
.collection-hero__inner {
  width: min(calc(100% - (2 * var(--gutter))), var(--max-width));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
  align-items: end;
  gap: clamp(2rem, 7vw, 6rem);
}
.collection-hero h1 { color: var(--text-inverse); max-width: 12ch; }
.collection-hero p { max-width: 58ch; }
.collection-hero .eyebrow { color: var(--pollen); }
.collection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-8);
}
.collection-card {
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius-large);
  background: var(--surface-elevated);
  box-shadow: var(--shadow-sm);
}
.collection-grid .collection-card--featured { grid-column: 1 / -1; }
.collection-card--featured > a,
.collection-card--featured {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
}
.collection-hero .collection-card--featured { display: block; }
.collection-hero .collection-card { color: var(--text-primary); }
.collection-card__media { display: block; overflow: hidden; }
.collection-card__media img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  border-radius: 0;
  transition: transform var(--duration-slow) var(--ease-standard);
}
.collection-card__body { padding: clamp(1.4rem, 4vw, 2.5rem); }
.collection-card__body h2,
.collection-card__body h3 { margin-top: 0; }
.collection-card:hover .collection-card__media img { transform: scale(1.025); }

.article-shell { background: var(--surface-canvas); }
.article-header {
  padding-block: clamp(3.5rem, 8vw, 7rem);
  background: linear-gradient(135deg, var(--petal), var(--sky));
}
.article-header__inner,
.article-prose,
.article-nav {
  width: min(calc(100% - (2 * var(--gutter))), 820px);
  margin-inline: auto;
}
.article-header h1 {
  max-width: 18ch;
  margin-bottom: var(--space-6);
  font-size: clamp(2.7rem, 7vw, 5.4rem);
  letter-spacing: -0.05em;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  color: var(--text-secondary);
  font-family: var(--font-head);
  font-size: var(--text-small);
  font-weight: var(--weight-bold);
}
.article-dek { max-width: 62ch; font-size: var(--text-lead); }
.article-hero {
  width: min(calc(100% - (2 * var(--gutter))), 1040px);
  margin: calc(-1 * clamp(1rem, 3vw, 2rem)) auto 0;
}
.article-hero img {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
  border-radius: var(--radius-large);
  box-shadow: 12px 14px 0 var(--honey);
}
.article-hero figcaption {
  margin-top: var(--space-4);
  color: var(--text-secondary);
  font-size: var(--text-small);
}
.article-prose {
  padding-block: var(--section-space);
  font-size: 1.05rem;
}
.article-prose h2 { margin-top: 2.5em; }
.article-prose h3 { margin-top: 2em; }
.article-prose img {
  width: min(100%, 820px);
  margin: var(--space-8) auto var(--space-4);
}
.article-prose blockquote { font-size: var(--text-lead); }
.article-nav {
  padding-bottom: var(--section-space);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: var(--space-4);
}
.article-nav__item {
  min-height: 88px;
  padding: var(--space-4) var(--space-6);
  display: flex;
  align-items: center;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background: var(--surface-subtle);
  font-family: var(--font-head);
  font-weight: var(--weight-bold);
}

/* Legal references and utility states */
.document-header {
  padding-block: clamp(3rem, 6vw, 5rem);
  background: var(--sky);
}
.document-header__inner,
.document-layout {
  width: min(calc(100% - (2 * var(--gutter))), var(--max-width));
  margin-inline: auto;
}
.document-header h1 { max-width: 22ch; }
.document-layout {
  padding-block: var(--section-space);
  display: grid;
  grid-template-columns: minmax(220px, 0.32fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 5rem);
}
.document-toc {
  position: sticky;
  top: calc(6rem + env(safe-area-inset-top));
  max-height: calc(100dvh - 8rem);
  overflow-y: auto;
  padding: var(--space-6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background: var(--surface-subtle);
}
.document-toc h2 { margin-top: 0; font-size: 1rem; }
.document-toc ol { margin: 0; padding-left: 1.25rem; }
.document-toc a {
  display: inline-flex;
  align-items: center;
  min-height: var(--control-min-size);
}
.document-body {
  min-width: 0;
  max-width: var(--prose-width);
  overflow-wrap: anywhere;
}
.document-body > :first-child { margin-top: 0; }
.document-body h2 {
  padding-top: var(--space-4);
  margin-top: var(--space-12);
  border-top: 1px solid var(--border-subtle);
}
.document-body a { text-decoration: underline; text-underline-offset: 0.16em; }
.utility-panel {
  width: min(calc(100% - (2 * var(--gutter))), 860px);
  min-height: min(680px, calc(100dvh - 6rem));
  margin-inline: auto;
  padding-block: var(--section-space);
  display: grid;
  align-content: center;
  text-align: center;
}
.utility-panel h1 { font-size: clamp(3rem, 10vw, 7rem); }
.utility-panel .page-actions { justify-content: center; }

/* Homepage: bold field-guide composition */
.home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 18%, rgba(255, 211, 78, 0.72) 0 7%, transparent 7.2%),
    linear-gradient(120deg, var(--petal) 0 54%, var(--sky) 54% 100%);
}
.home-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: clamp(-4rem, -3vw, -1rem);
  bottom: clamp(-5rem, -7vw, -2rem);
  width: clamp(11rem, 25vw, 23rem);
  aspect-ratio: 1;
  border: clamp(1.5rem, 4vw, 3.5rem) solid rgba(52, 122, 82, 0.12);
  border-radius: 50%;
}
.hero-inner {
  width: min(calc(100% - (2 * var(--gutter))), var(--max-width));
  min-height: min(720px, calc(100vh - 74px));
  margin-inline: auto;
  padding-block: clamp(3.5rem, 8vw, 7.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 7rem);
}
.hero-copy { max-width: 650px; }
.hero-copy > :first-child {
  margin-top: 0;
}
.eyebrow {
  margin-bottom: 0.8rem;
  color: var(--secondary);
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.35;
  text-transform: uppercase;
}
.hero-copy h1 {
  max-width: 12ch;
  margin: 0 0 0.45em;
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  line-height: 0.94;
  letter-spacing: -0.055em;
}
.hero-copy p {
  max-width: 56ch;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
}
.hero-copy .hero-note {
  padding-left: 1rem;
  border-left: 4px solid var(--leaf);
  color: var(--text-muted);
  font-size: 0.98rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.hero-copy .btn { margin: 0; }
.hero-media {
  position: relative;
  align-self: stretch;
  min-height: 420px;
  padding: clamp(1.5rem, 4vw, 3rem);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--darker);
  border-radius: clamp(1.25rem, 3vw, var(--radius-large));
  box-shadow: 18px 20px 0 var(--honey);
}
.hero-media > a {
  display: block;
  width: min(100%, 520px);
}
.hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 22%;
}
.hero-report-card {
  place-items: stretch;
  color: #fff;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 211, 78, 0.22) 0 12%, transparent 12.5%),
    linear-gradient(145deg, #0e0e0e, #26392d);
}
.report-card-content {
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.report-card-label {
  margin: 0 0 0.75rem;
  color: var(--pollen);
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.hero-report-card h2 {
  max-width: 12ch;
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1;
  letter-spacing: -0.04em;
}
.report-steps {
  margin: clamp(1.75rem, 4vw, 3rem) 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  list-style: none;
  counter-reset: report-step;
}
.report-steps li {
  counter-increment: report-step;
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  align-items: center;
  gap: 0.85rem;
  font-size: clamp(1rem, 1.5vw, 1.16rem);
}
.report-steps li::before {
  content: counter(report-step);
  width: 2.25rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: var(--darker);
  background: var(--pollen);
  border-radius: 50%;
  font-family: var(--font-head);
  font-weight: 800;
}
.report-card-link {
  align-self: flex-start;
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--pollen);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.28em;
}
.report-card-link:hover { color: var(--pollen); }

.beekeeper-path { background: #fff; }
.beekeeper-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr);
  align-items: center;
  gap: clamp(2.5rem, 8vw, 7rem);
}
.beekeeper-copy h2 {
  max-width: 16ch;
  margin: 0 0 0.55em;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
}
.beekeeper-copy > p:not(.eyebrow, .beekeeper-note) {
  max-width: 58ch;
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
}
.beekeeper-copy .btn { margin: 0.5rem 0 0; }
.beekeeper-note {
  margin-top: 0.9rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.beekeeper-media {
  position: relative;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  background: var(--sky);
  border-radius: var(--radius-large);
  box-shadow: 14px 16px 0 var(--secondary);
}
.beekeeper-media img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 22%;
}

.home-section,
.action-hub,
.pollinator-mosaic,
.support-banner {
  width: 100%;
  padding-block: var(--section-space);
}
.home-section > .section-inner > :first-child,
.action-hub > .section-inner > :first-child,
.pollinator-mosaic > .section-inner > :first-child,
.support-banner > .section-inner > :first-child {
  margin-top: 0;
}
.home-section .section-inner > p,
.action-hub .section-inner > p,
.pollinator-mosaic .section-inner > p {
  max-width: var(--prose-width);
}

.action-hub {
  background: var(--sky);
}

/* Nationwide coverage statement, between the report hero and the beekeeper
   path. Sits on sky so it does not run together with the white section below. */
.coverage-band {
  background: var(--sky);
}

/* Swarm data page: build-time SVG charts, each paired with a real table.
   The chart is aria-hidden decoration; the table carries the numbers. */
.chart-figure {
  margin: clamp(1.75rem, 4vw, 2.5rem) 0 0;
}
.chart-figure figcaption {
  margin-top: 0.75rem;
  font-size: var(--text-small);
  color: var(--text-secondary);
}
.bar-chart {
  width: 100%;
  height: auto;
  overflow: visible;
}
.bar-chart__fill { fill: var(--accent); }
.bar-chart__label,
.bar-chart__value {
  font-family: var(--font-body);
  font-size: 14px;
  fill: var(--text-primary);
}
.bar-chart__value { font-weight: 700; }

/* Wide content must scroll inside its own box, never the page body. */
.table-scroll {
  overflow-x: auto;
  margin-top: clamp(1.5rem, 3vw, 2rem);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.data-table caption {
  text-align: left;
  padding-bottom: 0.6rem;
  font-size: var(--text-small);
  color: var(--text-secondary);
}
.data-table th,
.data-table td {
  padding: 0.55rem 0.9rem 0.55rem 0;
  border-bottom: 1px solid var(--gray-mid);
  text-align: left;
}
.data-table thead th {
  font-family: var(--font-head);
  border-bottom-width: 2px;
}
.data-table td { text-align: right; }

/* Feature comparison. Wider than the data tables and text-heavy, so it keeps
   its own min-width and scrolls inside .table-scroll on narrow screens. */
.comparison-table {
  min-width: 46rem;
  width: 100%;
  border-collapse: collapse;
}
.comparison-table caption {
  text-align: left;
  padding-bottom: 0.6rem;
  font-size: var(--text-small);
  color: var(--text-secondary);
}
.comparison-table th,
.comparison-table td {
  padding: 0.7rem 0.9rem 0.7rem 0;
  border-bottom: 1px solid var(--gray-mid);
  text-align: left;
  vertical-align: top;
  font-size: var(--text-small);
}
.comparison-table thead th {
  font-family: var(--font-head);
  border-bottom-width: 2px;
}
.comparison-table tbody th {
  font-family: var(--font-head);
  width: 11rem;
}
.comparison-table tbody tr:last-child th,
.comparison-table tbody tr:last-child td { border-bottom: none; }
.data-total {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
}
.citation {
  padding: 0.9rem 1.1rem;
  border-left: 3px solid var(--accent);
  background: var(--gray-light);
  font-size: var(--text-small);
  overflow-wrap: anywhere;
}

/* Swarmkeeper scale figures. Renders only when content/swarm_stats.json has
   entries, so this whole block is dormant until real numbers are published. */
.stats-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.stat-value {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1;
  letter-spacing: -0.03em;
  /* Brand accent, not --honey: honey manages only 1.9:1 on --sky, which fails
     even the 3:1 large-text floor. --accent clears AA on both the sky band and
     the white canvas this renders against. */
  color: var(--accent);
}
.stat-label {
  font-size: var(--text-small);
  line-height: 1.4;
}
.stats-note {
  margin-top: 1.25rem;
  font-size: var(--text-small);
  opacity: 0.75;
}
.action-grid,
.mosaic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}
.action-card {
  position: relative;
  min-height: 220px;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  color: var(--dark);
  background: #fff;
  border: 1px solid rgba(0, 111, 159, 0.18);
  border-radius: var(--radius-large);
  box-shadow: 0 8px 0 rgba(0, 111, 159, 0.12);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.action-card:nth-child(2) { border-top: 7px solid var(--honey); }
.action-card:nth-child(3) { border-top: 7px solid var(--leaf); }
.action-card:nth-child(4) { border-top: 7px solid var(--accent); }
.action-card:first-child { border-top: 7px solid var(--secondary); }
.action-card:hover {
  color: var(--dark);
  text-decoration: none;
  transform: translateY(-5px);
  box-shadow: 0 13px 0 rgba(0, 111, 159, 0.14);
}
.action-card h2,
.action-card h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}
.action-card p:last-child { margin-bottom: 0; }
.action-card > a {
  align-self: flex-start;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
}
.action-card > a::after { content: " \2192"; }

.pollinator-mosaic {
  color: #fff;
  background: var(--darker);
}
.pollinator-mosaic h2,
.pollinator-mosaic h3 { color: #fff; }
.pollinator-mosaic a { color: var(--pollen); }
.pollinator-mosaic .eyebrow { color: var(--pollen); }
.mosaic-grid { align-items: start; }
.mosaic-card {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  color: #fff;
  background: #1d1d1d;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-card);
}
.mosaic-card:nth-child(even) { margin-top: clamp(1.5rem, 4vw, 3.5rem); }
.mosaic-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.45s ease;
}
.mosaic-card:hover img { transform: scale(1.035); }
.mosaic-card h3,
.mosaic-card p {
  margin-inline: 1.25rem;
}
.mosaic-card h3 { margin-top: 1.15rem; }
.mosaic-card p:last-child { margin-bottom: 1.35rem; }
.mosaic-card a {
  display: block;
  color: inherit;
  text-decoration-color: var(--pollen);
  text-underline-offset: 0.16em;
}
.mosaic-card a:hover { text-decoration: none; }

.support-banner {
  color: var(--darker);
  background:
    linear-gradient(105deg, rgba(255,255,255,0.28), transparent 48%),
    var(--pollen);
}
.support-banner .section-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 5vw, 5rem);
}
.support-banner h2 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.035em;
}
.support-banner p { max-width: 48ch; }
.support-banner-copy { flex: 1 1 62%; }
.support-banner .btn {
  flex: 0 0 auto;
  background: var(--darker);
  color: #fff;
}
.support-banner .btn:hover { background: var(--leaf); }
.support-banner .newsletter-block {
  flex: 1 1 320px;
  max-width: 430px;
  margin: 0;
  border: 0;
  border-radius: var(--radius-large);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-card);
}
.support-banner .newsletter-block h3 { color: var(--darker); }

/* Embeds */
.embed-wrap { position: relative; width: 100%; margin: 1.5em 0; }
.embed-wrap iframe { width: 100%; height: 100%; border: none; border-radius: var(--radius); }
.embed-16x9 { aspect-ratio: 16 / 9; }
.embed-slides { aspect-ratio: 16 / 9.2; }
.embed-tall { min-height: 700px; }
.report-embed {
  height: min(800px, calc(100dvh - 6rem));
  min-height: 600px;
}

/* Cards / grids (blog indexes, downloads) */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.6em; margin: 2em 0;
}
.card {
  border: 1px solid var(--gray-mid); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; background: #fff;
  box-shadow: 0 4px 16px rgba(14,14,14,0.06);
}
.card > a:first-child { display: block; }
.card img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0;
}
.card .card-body { padding: 1em 1.2em; flex: 1; display: flex; flex-direction: column; }
.card .card-meta { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 0.3em; }
.card h3 { margin-top: 0; font-size: 1.15rem; }
.card .card-excerpt { flex: 1; }
.card .card-body > :last-child { margin-bottom: 0; }

.program-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 2.5rem;
}
.program-card,
.contact-card {
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius);
  padding: 1.35rem;
  background: #fff;
  box-shadow: 0 4px 16px rgba(14,14,14,0.06);
}
.program-card h3,
.contact-card h2,
.contact-card h3 { margin-top: 0; }
.program-card p:last-child,
.contact-card p:last-child { margin-bottom: 0; }

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1.25rem;
  margin-block: 2rem;
}
.download-item { text-align: center; }
.download-item img { margin: 0 auto 0.6em; }

.speaker-prevnext { display: flex; justify-content: space-between; gap: 1em; margin-top: 2em; flex-wrap: wrap; }

.faq-list dt, .faq-item-q { font-family: var(--font-head); font-weight: 700; margin-top: 1.2em; }

.download-unavailable {
  min-width: 0;
  padding: 1rem;
  text-align: center;
  background: var(--gray-light);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius);
}
.download-unavailable img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  margin-bottom: 0.9rem;
}
.download-unavailable h3 { margin-top: 0; }
.download-unavailable p {
  margin: 0.6rem 0 0;
  color: var(--text-muted);
  font-weight: 600;
}

/* Footer */
.site-footer { background: var(--darker); color: #eee; margin-top: 0; }
.footer-inner {
  max-width: var(--max-width); margin: 0 auto;
  padding: 3em max(1.2em, env(safe-area-inset-right)) calc(2em + env(safe-area-inset-bottom)) max(1.2em, env(safe-area-inset-left));
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2em;
}
.footer-logo { height: 44px; width: auto; margin-bottom: 0.8em; border-radius: 0; }
.site-footer a { color: #fff; }
.site-footer h2 { color: #fff; font-size: 1rem; margin-top: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.4em; }
.site-footer li a,
.speaker-prevnext a,
.card .card-body > a:last-child {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.site-footer a { overflow-wrap: anywhere; }
.footer-bottom {
  text-align: center; padding: 1em; border-top: 1px solid #333; font-size: 0.85rem; color: #999;
}

/* Optional backdrop hook for the mobile navigation controller. */
.nav-backdrop,
[data-nav-backdrop] {
  position: fixed;
  inset: 0;
  z-index: 98;
  background: rgba(14, 14, 14, 0.58);
  border: 0;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.nav-backdrop.open,
[data-nav-backdrop].open,
body.nav-open .nav-backdrop,
body.nav-open [data-nav-backdrop] {
  opacity: 1;
  visibility: visible;
}
main:has(> .support-banner:last-child) { padding-bottom: 0; }

@media (max-width: 1050px) {
  .action-grid,
  .mosaic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  body.nav-open {
    overflow: hidden;
    touch-action: none;
  }
  .nav-toggle { display: flex; position: relative; z-index: 101; }
  .site-nav {
    position: fixed; z-index: 100; top: 0; right: 0;
    height: 100vh; height: 100dvh; width: min(360px, 88vw);
    background: #fff; flex-direction: column; align-items: flex-start;
    padding: calc(5.5em + env(safe-area-inset-top)) max(1.5em, env(safe-area-inset-right)) calc(2em + env(safe-area-inset-bottom)) 1.5em;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.25s ease, visibility 0s linear 0.25s;
    box-shadow: -12px 0 40px rgba(0,0,0,0.2);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .site-nav.open {
    transform: translateX(0);
    visibility: visible;
    transition-delay: 0s;
  }
  .site-nav > ul { flex-direction: column; align-items: flex-start; gap: 0.4em; width: 100%; }
  .site-nav > ul > li,
  .site-nav > ul > li > a,
  .site-nav .nav-folder-btn { width: 100%; }
  .site-nav > ul > li > a,
  .site-nav .nav-folder-btn,
  .dropdown li a {
    display: flex;
    align-items: center;
    min-height: 44px;
  }
  .site-nav .dropdown {
    position: static;
    width: 100%;
    min-width: 0;
    box-shadow: none;
    border: none;
    padding: 0 0 0 1em;
    display: none;
  }
  .site-nav .has-dropdown:not(.open) > .dropdown { display: none; }
  .site-nav .has-dropdown.open > .dropdown { display: block; }
  .nav-donate { width: 100%; margin-top: 1em; }
  main > img:first-child {
    height: clamp(300px, 48vw, 420px);
    max-height: none;
  }

  .hero-inner {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-copy h1 { max-width: 14ch; }
  .hero-media { min-height: min(62vw, 520px); }
  .beekeeper-inner { grid-template-columns: 1fr; }
  .beekeeper-media { width: min(100%, 520px); }
  .mosaic-card:nth-child(even) { margin-top: 1.5rem; }
  .support-banner .section-inner {
    align-items: flex-start;
    flex-direction: column;
  }
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-hero__inner,
  .collection-hero__inner {
    min-height: 0;
    grid-template-columns: 1fr;
  }
  .page-hero__media,
  .page-hero__card {
    width: min(100%, 620px);
  }
  .media-band,
  .media-band--flip {
    grid-template-columns: 1fr;
  }
  .media-band--flip .media-band__media { order: 0; }
  .media-band__media { width: min(100%, 620px); }
  .collection-card--featured,
  .collection-card--featured > a { grid-template-columns: 1fr; }
  .document-layout { grid-template-columns: 1fr; }
  .document-toc {
    position: static;
    max-height: 360px;
  }
}

@media (max-width: 540px) {
  .header-inner {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
  main > img:first-child {
    height: clamp(210px, 58vw, 250px);
    max-height: none;
  }
  .card-grid,
  .program-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 1rem; }
  .speaker-prevnext { flex-direction: column; }
  .home-hero {
    background:
      radial-gradient(circle at 4% 8%, rgba(255, 211, 78, 0.72) 0 6%, transparent 6.3%),
      linear-gradient(155deg, var(--petal), var(--sky));
  }
  .hero-inner { padding-block: 3.5rem 4.5rem; }
  .hero-copy h1 { font-size: clamp(2.65rem, 15vw, 4.25rem); }
  .hero-copy .btn { width: 100%; margin-right: 0; }
  .hero-media {
    min-height: 0;
    box-shadow: 9px 11px 0 var(--honey);
  }
  .hero-report-card { padding: 2rem 1.5rem; }
  .beekeeper-copy .btn { width: 100%; }
  .beekeeper-media { box-shadow: 8px 10px 0 var(--secondary); }
  .action-grid,
  .mosaic-grid { grid-template-columns: 1fr; }
  .action-card { min-height: 0; }
  .mosaic-card:nth-child(even) { margin-top: 0; }
  .support-banner .btn { width: 100%; }
  .newsletter-block .btn,
  .donate-cta .btn { width: 100%; }
  .embed-slides {
    aspect-ratio: auto;
    min-height: 260px;
  }
  .report-embed {
    height: min(760px, calc(100dvh - 5rem));
    min-height: 560px;
  }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom {
    padding-bottom: calc(1em + env(safe-area-inset-bottom));
  }
  .page-hero__inner { padding-block: 3.5rem 4.5rem; gap: 2.5rem; }
  .page-hero__copy h1,
  .article-header h1 {
    font-size: clamp(2.55rem, 14vw, 4rem);
  }
  .page-actions,
  .store-badges { align-items: stretch; flex-direction: column; }
  .page-actions .btn,
  .store-badges a { width: 100%; }
  .store-badges img { width: 100%; height: auto; max-height: 64px; object-fit: contain; }
  .page-hero__media,
  .page-hero__card { box-shadow: 8px 10px 0 var(--honey); }
  .page-hero__media img { height: 280px; }
  .feature-grid,
  .steps-grid,
  .resource-grid,
  .collection-grid,
  .article-nav { grid-template-columns: 1fr; }
  .collection-card--featured { display: block; }
  .article-hero img { box-shadow: 7px 9px 0 var(--honey); }
  .article-nav__item { width: 100%; }
  .document-toc { max-height: 300px; }
}

@media (hover: none) {
  .btn:hover,
  .action-card:hover,
  .mosaic-card:hover img {
    transform: none;
  }
}

@media (forced-colors: active) {
  .btn { border-color: ButtonText; }
  a:focus-visible,
  button:focus-visible,
  input:focus-visible { outline-color: Highlight; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .btn:hover,
  .action-card:hover,
  .mosaic-card:hover img {
    transform: none;
  }
}
