/* ==========================================================================
   Utah Outdoors Base Styles
   ========================================================================== */

:root {
  --color-forest: #2f5d50;
  --color-forest-dark: #1e3e35;
  --color-sage: #e7eee8;
  --color-sand: #f5efe4;
  --color-clay: #b86f47;
  --color-ink: #18211f;
  --color-muted: #5d6864;
  --color-card: #ffffff;
  --color-border: rgba(24, 33, 31, 0.12);

  --shadow-soft: 0 18px 45px rgba(24, 33, 31, 0.12);
  --shadow-small: 0 10px 24px rgba(24, 33, 31, 0.10);

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --container: 1180px;
  --header-height: 78px;
  --cta-footer-buffer: clamp(56px, 7vw, 88px);
}

/* ==========================================================================
   Statewide plant family rebuild
   ========================================================================== */

.family-mark-panel {
  position: relative;
  display: grid;
  min-height: 22rem;
  margin: 0;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 24% 20%, rgba(255, 255, 255, .82), transparent 30%),
    linear-gradient(145deg, #eef3e7, #f7efe3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.family-mark-panel img,
.hero__media .family-mark-panel img {
  width: min(58%, 18rem);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
}

.family-mark-panel figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 1rem 1.2rem;
  color: var(--color-forest-dark);
  background: rgba(255, 255, 255, .88);
  text-align: center;
}

.uo-discovery-card--text .uo-discovery-card__body {
  display: flex;
  min-height: 10rem;
  flex-direction: column;
  justify-content: center;
}

.uo-discovery-card--text .species-card__status {
  margin-top: .7rem;
  color: var(--color-muted);
  font-size: .92rem;
}

.placeholder-notice {
  max-width: 52rem;
  padding: 1.35rem 1.5rem;
  background: #fff;
  border: 1px solid rgba(47, 93, 80, .18);
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(22, 48, 40, .07);
}

.placeholder-notice > :last-child {
  margin-bottom: 0;
}

@media (max-width: 620px) {
  .family-mark-panel {
    min-height: 17rem;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-ink);
  background: #fffaf2;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

img,
svg {
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(184, 111, 71, 0.55);
  outline-offset: 3px;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}


/* ==========================================================================
   Accessibility
   ========================================================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  white-space: nowrap;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 1000;
  padding: 10px 14px;
  color: #fff;
  background: var(--color-forest-dark);
  border-radius: 999px;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}


/* ==========================================================================
   Header and Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 250, 242, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.top-strip {
  color: #fff;
  background: var(--color-forest-dark);
  font-size: 0.92rem;
}

.top-strip__inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.top-strip p {
  margin: 0;
}

.top-strip__link {
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.top-strip__link:hover,
.top-strip__link:focus {
  text-decoration: underline;
}

.main-nav__inner {
  position: relative;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  min-width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--color-forest-dark);
  text-decoration: none;
}

.brand__mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--color-forest), var(--color-clay));
  border-radius: 16px;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.brand__text {
  display: grid;
  line-height: 1.1;
}

.brand__text strong {
  font-size: 1.15rem;
}

.brand__text span {
  color: var(--color-muted);
  font-size: 0.82rem;
}

.menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu__item > a,
.menu__button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: var(--color-ink);
  background: transparent;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.menu__item > a:hover,
.menu__item > a:focus,
.menu__button:hover,
.menu__button:focus {
  background: var(--color-sage);
  outline: none;
}

.menu__button::after {
  content: "";
  width: 0.45em;
  height: 0.45em;
  margin-left: 0.45em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 10px;
  background: var(--color-sage);
  border: 0;
  border-radius: 14px;
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--color-forest-dark);
  border-radius: 999px;
}


/* Mega Menu
   ========================================================================== */

.mega-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% - 4px);
  display: none;
  padding-top: 12px;
}

.menu__item--has-panel:hover .mega-panel,
.menu__item--has-panel:focus-within .mega-panel,
.menu__item--open .mega-panel {
  display: block;
}

.mega-panel__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.mega-panel section {
  display: grid;
  gap: 6px;
}

.mega-panel h2 {
  margin: 0 0 6px;
  color: var(--color-forest-dark);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mega-panel a {
  padding: 9px 10px;
  color: var(--color-muted);
  border-radius: 10px;
  text-decoration: none;
}

.mega-panel a:hover,
.mega-panel a:focus {
  color: var(--color-forest-dark);
  background: var(--color-sage);
  outline: none;
}


/* ==========================================================================
   Typography
   ========================================================================== */

.eyebrow {
  margin: 0 0 10px;
  color: var(--color-clay);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--color-forest-dark);
  line-height: 1.08;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(2.5rem, 7vw, 5.55rem);
  letter-spacing: -0.065em;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: -0.045em;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
  letter-spacing: -0.025em;
}

.text-link {
  color: var(--color-forest-dark);
  font-weight: 900;
  text-decoration-color: rgba(184, 111, 71, 0.5);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}


/* ==========================================================================
   Buttons
   ========================================================================== */

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 850;
  text-decoration: none;
}

.button--primary {
  color: #fff;
  background: var(--color-forest);
  box-shadow: var(--shadow-small);
}

.button--primary:hover,
.button--primary:focus {
  background: var(--color-forest-dark);
}

.button--secondary {
  color: var(--color-forest-dark);
  background: #fff;
  border: 1px solid var(--color-border);
}

.button--secondary:hover,
.button--secondary:focus {
  background: var(--color-sage);
}


/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding: 76px 0 42px;
  background:
    radial-gradient(circle at 10% 20%, rgba(184, 111, 71, 0.18), transparent 28%),
    radial-gradient(circle at 80% 0%, rgba(47, 93, 80, 0.16), transparent 34%),
    linear-gradient(180deg, #fffaf2 0%, #f7f1e7 100%);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  gap: 46px;
  align-items: center;
}

.hero__lead {
  max-width: 660px;
  margin: 0;
  color: var(--color-muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.hero__actions,
.cta-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero__media {
  position: relative;
}

.hero__media img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.hero__badge {
  position: absolute;
  right: -6px;
  bottom: 26px;
  width: min(250px, 72%);
  padding: 18px;
  color: var(--color-forest-dark);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.hero__badge strong,
.hero__badge span {
  display: block;
}

.hero__badge span {
  margin-top: 4px;
  color: var(--color-muted);
  font-size: 0.92rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--color-muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.breadcrumb a {
  color: var(--color-forest-dark);
  text-decoration: none;
}

.breadcrumb a:hover,
.breadcrumb a:focus {
  text-decoration: underline;
}


/* ==========================================================================
   Quick Links
   ========================================================================== */

.quick-links {
  padding: 18px 0;
  background: var(--color-forest-dark);
}

.quick-links__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.quick-links a {
  min-height: 48px;
  display: grid;
  place-items: center;
  padding: 8px 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.quick-links a:hover,
.quick-links a:focus {
  background: rgba(255, 255, 255, 0.20);
}


/* ==========================================================================
   Sections
   ========================================================================== */

.section {
  padding: 76px 0;
  background: #fffaf2;
}

.section--warm {
  background: var(--color-sand);
}

.section--green {
  color: #fff;
  background: var(--color-forest-dark);
}

.section--green h2,
.section--green h3,
.section--green .eyebrow {
  color: #fff;
}

.section--green p {
  color: rgba(255, 255, 255, 0.78);
}

.section--cta {
  padding-top: 20px;
  padding-bottom: var(--cta-footer-buffer);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

.section-heading p:last-child {
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: 1.08rem;
}

.section-heading--light p:last-child {
  color: rgba(255, 255, 255, 0.78);
}


/* ==========================================================================
   Cards and Images
   ========================================================================== */

.card-grid {
  display: grid;
  gap: 20px;
}

.card-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.mini-card {
  overflow: hidden;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-small);
}

.feature-card > img,
.feature-card .photo-placeholder,
.mini-card .photo-placeholder {
  min-height: 220px;
  border: 0;
  border-radius: 0;
}

.feature-card > img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.feature-card__body,
.mini-card {
  padding: 22px;
}

.feature-card h3 a,
.mini-card h3 a {
  text-decoration: none;
}

.feature-card h3 a:hover,
.feature-card h3 a:focus,
.mini-card h3 a:hover,
.mini-card h3 a:focus {
  color: var(--color-clay);
}

.feature-card p,
.mini-card p {
  margin-bottom: 0;
  color: var(--color-muted);
}

.mini-card-title {
  margin-top: 16px;
}

.mini-card-photo {
  width: 100%;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: #eef3f5;
  border-radius: 12px;
}

.mini-card-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-card--text {
  padding: 24px;
}

.image-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.image-card img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.photo-placeholder {
  min-height: 190px;
  display: grid;
  place-items: center;
  padding: 18px;
  color: rgba(30, 62, 53, 0.78);
  background:
    linear-gradient(135deg, rgba(47, 93, 80, 0.15), rgba(184, 111, 71, 0.18)),
    repeating-linear-gradient(45deg, rgba(47, 93, 80, 0.09) 0 10px, rgba(255, 255, 255, 0.24) 10px 20px);
  border: 2px dashed rgba(30, 62, 53, 0.26);
  border-radius: var(--radius-lg);
  text-align: center;
  font-weight: 850;
}

.photo-placeholder--large {
  min-height: 560px;
}

.photo-placeholder--wide {
  min-height: 320px;
}

.photo-placeholder--event {
  min-height: 380px;
}

.photo-stack {
  display: grid;
  gap: 16px;
}

.photo-stack__small {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}


/* ==========================================================================
   Split Layouts and Lists
   ========================================================================== */

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1fr);
  gap: 42px;
  align-items: center;
}

.split-layout--reverse {
  grid-template-columns: minmax(360px, 1fr) minmax(0, 0.82fr);
}

.split-layout--top {
  align-items: start;
}

.split-layout p {
  color: var(--color-muted);
  font-size: 1.08rem;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 26px 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--color-muted);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--color-forest);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 900;
}


/* ==========================================================================
   Event Panels
   ========================================================================== */

.event-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 0.72fr);
  gap: 24px;
  align-items: stretch;
  padding: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
}

.event-panel__content {
  padding: 14px;
}

.event-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.event-list a {
  display: grid;
  gap: 4px;
  padding: 18px;
  color: #fff;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-md);
  text-decoration: none;
}

.event-list a:hover,
.event-list a:focus {
  background: rgba(255, 255, 255, 0.16);
}

.event-list span {
  color: rgba(255, 255, 255, 0.75);
}


/* ==========================================================================
   Directory Grids
   ========================================================================== */

.directory-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.directory-grid a {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  color: var(--color-forest-dark);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-weight: 850;
  text-align: center;
  text-decoration: none;
}

.directory-grid a:hover,
.directory-grid a:focus {
  border-color: rgba(184, 111, 71, 0.45);
  box-shadow: var(--shadow-small);
  transform: translateY(-1px);
}

.directory-grid--cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.directory-grid--cards a {
  min-height: auto;
  display: grid;
  place-items: initial;
  justify-content: initial;
  gap: 6px;
  padding: 20px;
  text-align: left;
}

.directory-grid--cards strong {
  color: var(--color-forest-dark);
  font-size: 1.05rem;
}

.directory-grid--cards span {
  color: var(--color-muted);
  font-weight: 500;
  line-height: 1.45;
}


/* ==========================================================================
   Canyon Feature Section
   ========================================================================== */

.canyon-feature__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 2rem;
  align-items: stretch;
}

.canyon-feature__main {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
}

.canyon-feature__main img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.canyon-feature__main-body {
  padding: 1.5rem;
}

.canyon-feature__main-body h3 {
  margin-top: 0.25rem;
}

.canyon-feature__main-body p:last-child {
  margin-bottom: 0;
  color: var(--color-muted);
}

.canyon-list {
  display: grid;
  gap: 0.85rem;
}

.canyon-list__item {
  display: block;
  padding: 1.1rem 1.2rem;
  color: inherit;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(47, 93, 80, 0.14);
  border-radius: 18px;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.canyon-list__item:hover,
.canyon-list__item:focus {
  background: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.canyon-list__label {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--color-forest);
  font-weight: 800;
}

.canyon-list__text {
  display: block;
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}


/* ==========================================================================
   Utah Plant Habitat Overview
   ========================================================================== */

.section-heading--wide {
  max-width: 920px;
}

.habitat-overview__figure {
  margin: 0 0 clamp(34px, 5vw, 58px);
}

.habitat-overview__figure a {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.habitat-overview__figure img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 240ms ease;
}

.habitat-overview__figure a:hover img,
.habitat-overview__figure a:focus-visible img {
  transform: scale(1.012);
}

.habitat-overview__figure figcaption {
  max-width: 900px;
  margin: 14px auto 0;
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  text-align: center;
}

.habitat-overview {
  max-width: 1040px;
  margin: 0 auto;
}

.habitat-overview__copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(34px, 5vw, 64px);
}

.habitat-overview__topic {
  padding: 24px 0 26px;
  border-top: 1px solid rgba(47, 93, 80, 0.19);
}

.habitat-overview__topic h3 {
  margin-bottom: 10px;
  color: var(--color-forest-dark);
  font-size: clamp(1.22rem, 2vw, 1.48rem);
}

.habitat-overview__topic p {
  margin: 0;
  color: var(--color-muted);
  font-size: 1.03rem;
  line-height: 1.72;
}

.habitat-overview__action {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}


/* ==========================================================================
   CTA
   ========================================================================== */

.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(28px, 5vw, 56px);
  background: linear-gradient(135deg, rgba(47, 93, 80, 0.15), rgba(184, 111, 71, 0.18));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.cta-card h2,
.cta-card p {
  margin-bottom: 0;
}

.cta-card p:last-child {
  color: var(--color-muted);
}

/* Keeps CTA buttons visually separated from the footer color transition.
   Supports the CTA band used on newer Utah Outdoors pages. */
.cta-band {
  padding-top: clamp(48px, 6vw, 76px);
  padding-bottom: var(--cta-footer-buffer);
}

/* Major directory subgroups retain full section rhythm and alternate tones. */
.guide-group {
  padding: clamp(48px, 6vw, 76px) 0;
}

.guide-group--alternate {
  background: var(--color-sand);
}

.section--warm > .guide-group--alternate {
  background: #fffaf2;
}


/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  padding: 54px 0 24px;
  color: rgba(255, 255, 255, 0.80);
  background: #152b25;
}

.footer-grid,
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) repeat(3, minmax(0, 0.7fr));
  gap: 28px;
  align-items: start;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.brand--footer {
  color: #fff;
}

.brand--footer .brand__text span {
  color: rgba(255, 255, 255, 0.68);
}

.footer-note {
  max-width: 430px;
  margin-top: 18px;
}

.site-footer h2 {
  margin-bottom: 12px;
  color: #fff;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer a:not(.brand) {
  display: block;
  margin: 8px 0;
  color: rgba(255, 255, 255, 0.76);
  text-decoration: none;
}

.site-footer a:not(.brand):hover,
.site-footer a:not(.brand):focus {
  color: #fff;
  text-decoration: underline;
}

.site-footer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
  margin-bottom: 0;
}

.site-footer .site-footer__actions .button--secondary {
  display: inline-flex;
  margin: 0;
  color: var(--color-forest-dark);
}

.site-footer .site-footer__actions .button--secondary:hover,
.site-footer .site-footer__actions .button--secondary:focus {
  color: var(--color-forest-dark);
  text-decoration: none;
}

.footer-bottom,
.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
}

.footer-bottom p,
.site-footer__bottom p {
  margin: 0;
}


/* ==========================================================================
   Responsive Styles
   ========================================================================== */

@media (max-width: 1100px) {
  .brand__text span {
    display: none;
  }

  .menu__item > a,
  .menu__button {
    padding-inline: 9px;
    font-size: 0.93rem;
  }

  .card-grid--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-links__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .directory-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .directory-grid--cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 70px;
  }

  .top-strip__inner {
    justify-content: center;
    text-align: center;
  }

  .top-strip__link {
    display: none;
  }

  .nav-toggle {
    display: inline-block;
  }

  .menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    max-height: calc(100vh - var(--header-height) - 38px);
    overflow: auto;
    padding: 10px;
    background: rgba(255, 250, 242, 0.98);
    border: 1px solid var(--color-border);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow-soft);
  }

  body.nav-open .menu {
    display: block;
  }

  .menu__item {
    border-bottom: 1px solid var(--color-border);
  }

  .menu__item:last-child {
    border-bottom: 0;
  }

  .menu__item > a,
  .menu__button {
    width: 100%;
    justify-content: space-between;
    min-height: 50px;
    padding: 0 12px;
    border-radius: 12px;
    font-size: 1rem;
  }

  .mega-panel,
  .menu__item--has-panel:hover .mega-panel,
  .menu__item--has-panel:focus-within .mega-panel {
    position: static;
    display: none;
    padding: 0 0 12px;
  }

  .menu__item--open .mega-panel {
    display: block;
  }

  .mega-panel__grid {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px;
    border-radius: var(--radius-md);
    box-shadow: none;
  }

  .hero {
    padding: 48px 0 34px;
  }

  .hero__grid,
  .split-layout,
  .split-layout--reverse,
  .event-panel,
  .canyon-feature__grid,
  .habitat-overview__copy {
    grid-template-columns: 1fr;
  }

  .photo-placeholder--large {
    min-height: 360px;
  }

  .card-grid--three {
    grid-template-columns: 1fr;
  }

  .directory-grid,
  .directory-grid--cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-card,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-grid,
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .container {
    width: min(var(--container), calc(100% - 22px));
  }

  .brand__mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .brand__text strong {
    font-size: 1.03rem;
  }

  .hero__actions,
  .cta-card__actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero__badge {
    position: static;
    width: auto;
    margin-top: 14px;
  }

  .quick-links__grid,
  .card-grid--four,
  .photo-stack__small,
  .directory-grid,
  .directory-grid--cards,
    .footer-grid,
    .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 54px 0;
  }

  .event-panel {
    padding: 18px;
  }

  .canyon-feature__main-body,
  .feature-card__body,
  .mini-card {
    padding: 18px;
  }
}

/* ==========================================================================
   Shared logo and illustrated directory cards
   ========================================================================== */

.brand--logo {
  display: inline-flex;
  align-items: center;
  max-width: min(290px, 55vw);
}

.brand--logo img {
  display: block;
  width: auto;
  height: auto;
  max-height: 58px;
}

.uo-discovery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.uo-discovery-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(47, 93, 80, 0.17);
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(22, 48, 40, 0.07);
}

.uo-discovery-card > a:first-child {
  display: block;
  overflow: hidden;
}

.uo-discovery-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.uo-discovery-card:hover img,
.uo-discovery-card:focus-within img {
  transform: scale(1.025);
}

.uo-discovery-card__body {
  flex: 1;
  padding: 1rem 1.1rem 1.2rem;
}

.uo-discovery-card__body h3 {
  margin: 0.1rem 0 0.55rem;
}

.uo-discovery-card__body p {
  margin: 0;
}

/* Plant Families directory page */
.plant-families-directory__intro {
  max-width: 920px;
}

.plant-families-directory__intro p:not(.eyebrow) {
  color: var(--color-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.plant-families-directory__intro p:not(.eyebrow) + p {
  margin-top: 0.9rem;
}

.plant-families-directory .uo-family-card .uo-discovery-card__body {
  display: flex;
  min-height: 16.75rem;
  flex-direction: column;
}

.plant-families-directory .uo-family-card > a:first-child {
  background: #061f17;
}

.plant-families-directory .uo-family-card img {
  object-fit: contain;
}

.plant-families-directory .uo-family-card:hover img,
.plant-families-directory .uo-family-card:focus-within img {
  transform: none;
}

.plant-families-directory .uo-family-card h3 {
  min-height: 3.1rem;
}

.plant-families-directory .uo-family-card .species-name {
  min-height: 1.5rem;
}

.plant-families-directory .uo-family-card .uo-family-card__summary {
  margin-top: 0.85rem;
  color: var(--color-muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .uo-discovery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .uo-discovery-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Plants branding and blended image/text features
   ========================================================================== */

.brand--plants,
.brand--hobbies,
.brand--social {
  min-width: max-content;
  gap: 11px;
}

.brand--plants .brand__image,
.brand--hobbies .brand__image,
.brand--social .brand__image {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  object-fit: contain;
}

.site-footer .brand--plants,
.site-footer .brand--hobbies,
.site-footer .brand--social {
  color: #fff;
}

.site-footer .brand--plants .brand__text span,
.site-footer .brand--hobbies .brand__text span,
.site-footer .brand--social .brand__text span {
  color: rgba(255, 255, 255, 0.7);
}

.plants-hero .hero__lead {
  max-width: 42rem;
}

.plants-hero .hero__photo figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.plants-hero .hero__photo img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}

.plants-hero .hero__photo figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  padding: 3.25rem 1.2rem 1.05rem;
  color: #fff;
  background: linear-gradient(
    180deg,
    rgba(18, 38, 31, 0) 0%,
    rgba(18, 38, 31, 0.76) 72%,
    rgba(18, 38, 31, 0.92) 100%
  );
  font-weight: 600;
  line-height: 1.5;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

.wildflower-feature {
  display: grid;
  grid-template-columns: minmax(0, 600px) minmax(320px, 1fr);
  align-items: stretch;
  max-width: 1060px;
  margin: 0 auto clamp(32px, 5vw, 54px);
  overflow: hidden;
  background: var(--color-forest-dark);
  border-radius: var(--radius-lg);
  box-shadow: 0 22px 48px rgba(18, 38, 31, 0.24);
}

.wildflower-feature__media {
  overflow: hidden;
  min-height: 100%;
}

.wildflower-feature__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wildflower-feature__content {
  position: relative;
  z-index: 1;
  margin-left: -68px;
  padding: clamp(28px, 4vw, 46px) clamp(28px, 4vw, 46px) clamp(28px, 4vw, 46px) clamp(56px, 6vw, 78px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(30, 62, 53, 0.97), rgba(47, 93, 80, 0.94)),
    var(--color-forest-dark);
}

.wildflower-feature__content::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -94px;
  width: 96px;
  content: "";
  background: linear-gradient(90deg, rgba(30, 62, 53, 0), rgba(30, 62, 53, 0.97));
  pointer-events: none;
}

.wildflower-feature__content .eyebrow {
  color: #f3d6a5;
}

.wildflower-feature__content h2 {
  margin-bottom: 16px;
  color: #fff;
}

.wildflower-feature__content p {
  color: rgba(255, 255, 255, 0.88);
}

.wildflower-feature__content p:last-child {
  margin-bottom: 0;
}

.wildflower-guide-grid {
  max-width: 1000px;
  margin: 0 auto;
}

.uo-discovery-card__body h3 a {
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

@media (max-width: 900px) {
  .wildflower-feature {
    grid-template-columns: 1fr;
    max-width: 660px;
  }

  .wildflower-feature__content {
    margin: -56px 0 0;
    padding: clamp(52px, 8vw, 72px) clamp(28px, 5vw, 46px) clamp(28px, 5vw, 46px);
  }

  .wildflower-feature__content::before {
    top: -70px;
    right: 0;
    bottom: auto;
    left: 0;
    width: auto;
    height: 96px;
    background: linear-gradient(180deg, rgba(30, 62, 53, 0), rgba(30, 62, 53, 0.97));
  }
}

@media (max-width: 620px) {
  .brand--plants .brand__image,
  .brand--hobbies .brand__image,
  .brand--social .brand__image {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .wildflower-feature__content {
    padding: 52px 20px 26px;
  }
}

/* ========================================================================== 
   Shared balanced directories and blended image captions
   ========================================================================== */

.uo-discovery-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.uo-discovery-grid--one {
  grid-template-columns: minmax(0, 1fr);
}

.uo-discovery-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.uo-discovery-grid + .uo-discovery-grid {
  margin-top: 1rem;
}

.card-grid--two,
.quick-links__grid--four {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quick-links__grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.quick-links__grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.blended-photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.blended-photo img,
.hero__media .blended-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.blended-photo figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  padding: 3.25rem 1.2rem 1.05rem;
  color: #fff;
  background: linear-gradient(
    180deg,
    rgba(18, 38, 31, 0) 0%,
    rgba(18, 38, 31, 0.76) 72%,
    rgba(18, 38, 31, 0.92) 100%
  );
  font-weight: 600;
  line-height: 1.5;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

.source-list {
  margin: 1.25rem 0 0;
  line-height: 1.7;
}

.source-list li + li {
  margin-top: 0.55rem;
}

.arachnid-basics-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.arachnid-basics-intro .section-heading {
  margin-bottom: 0;
}

.arachnid-basics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.arachnid-basics-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--color-card);
  border: 1px solid rgba(47, 93, 80, 0.17);
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(22, 48, 40, 0.07);
}

.arachnid-basics-card > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.arachnid-basics-card__body {
  flex: 1;
  padding: 1rem 1.1rem 1.2rem;
}

.arachnid-basics-card__body h3 {
  margin: 0 0 0.55rem;
}

.arachnid-basics-card__body p {
  margin: 0;
}

.illustrated-continue-card {
  overflow: hidden;
  background: var(--color-card);
  border: 1px solid rgba(47, 93, 80, 0.17);
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(22, 48, 40, 0.07);
}

.illustrated-continue-card > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.illustrated-continue-card__body {
  padding: 1.15rem 1.2rem 1.35rem;
}

.illustrated-continue-card__body h2,
.illustrated-continue-card__body h3 {
  margin-top: 0.15rem;
}

.illustrated-continue-card__body p:last-of-type {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .uo-discovery-grid--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .arachnid-basics-intro {
    grid-template-columns: 1fr;
    max-width: 700px;
    margin-right: auto;
    margin-left: auto;
  }
}

@media (max-width: 620px) {
  .uo-discovery-grid--two,
  .uo-discovery-grid--four,
  .card-grid--two,
  .quick-links__grid--four,
  .quick-links__grid--three,
  .arachnid-basics-grid {
    grid-template-columns: 1fr;
  }
}

/* Arachnid long-form layouts migrated from legacy inline styles. */
.arachnid-longform-page .species-name{color:#315e50;font:italic clamp(1.05rem,2vw,1.28rem) Georgia,serif;margin:.45rem 0 1rem}
.arachnid-longform-page .status-badge{display:inline-flex;align-items:center;background:#e9f2ed;border:1px solid rgba(47,93,80,.2);border-radius:999px;color:#315e50;font-size:.76rem;font-weight:800;letter-spacing:.07em;padding:.38rem .68rem;text-transform:uppercase}
.arachnid-longform-page .status-badge--sparse,.arachnid-longform-page .status-badge--scattered{background:#fff2df;border-color:rgba(145,93,36,.24);color:#7a542b}
.arachnid-longform-page .hero__actions,.arachnid-longform-page .cta-band__actions{display:flex;flex-wrap:wrap;gap:.85rem;margin-top:1.5rem}
.arachnid-longform-page .hero__photo figure,.arachnid-longform-page .feature-figure{margin:0}
.arachnid-longform-page .hero__photo figcaption,.arachnid-longform-page .feature-figure figcaption{background:#fff;color:#42554f;font-size:.92rem;padding:.8rem 1rem}
.arachnid-longform-page .hero__photo img,.arachnid-longform-page .feature-figure img{display:block;height:auto;width:100%}
.arachnid-longform-page .facts{border-block:1px solid rgba(47,93,80,.2);display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:1.75rem 0 0}
.arachnid-longform-page .facts>div{padding:1rem}
.arachnid-longform-page .facts>div+div{border-left:1px solid rgba(47,93,80,.18)}
.arachnid-longform-page .facts dt{color:#765537;font-size:.76rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.arachnid-longform-page .facts dd{color:#173c32;font-weight:700;margin:.35rem 0 0}
.arachnid-longform-page .story-layout,.arachnid-longform-page .habitat-layout{align-items:start;display:grid;gap:clamp(1.5rem,4vw,3rem);grid-template-columns:minmax(0,1.45fr) minmax(280px,.55fr)}
.arachnid-longform-page .story-copy,.arachnid-longform-page .habitat-copy{font-size:1.04rem;line-height:1.78}
.arachnid-longform-page .story-copy h3,.arachnid-longform-page .habitat-copy h3{margin-top:2rem}
.arachnid-longform-page .story-copy h3:first-child,.arachnid-longform-page .habitat-copy h3:first-child{margin-top:0}
.arachnid-longform-page .story-aside{display:grid;gap:1.25rem;position:sticky;top:1rem}
.arachnid-longform-page .feature-figure,.arachnid-longform-page .profile-card,.arachnid-longform-page .species-card,.arachnid-longform-page .directory-group{background:#fff;border:1px solid rgba(47,93,80,.16);border-radius:1rem;box-shadow:0 8px 24px rgba(22,48,40,.08);overflow:hidden}
.arachnid-longform-page .profile-grid,.arachnid-longform-page .species-grid,.arachnid-longform-page .directory-grid,.arachnid-longform-page .habitat-grid{display:grid;gap:1.25rem;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:2rem}
.arachnid-longform-page .profile-card,.arachnid-longform-page .directory-group{padding:1.25rem}
.arachnid-longform-page .profile-card h3,.arachnid-longform-page .directory-group h3{margin-top:0}
.arachnid-longform-page .species-card__image{aspect-ratio:3/2;display:block;overflow:hidden}
.arachnid-longform-page .species-card__image img{display:block;height:100%;object-fit:cover;width:100%}
.arachnid-longform-page .species-card__body{padding:1.15rem}
.arachnid-longform-page .species-card__body h3{margin:.25rem 0 .45rem}
.arachnid-longform-page .scientific{color:#52635e;margin:.15rem 0 .6rem}
.arachnid-longform-page .directory-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.arachnid-longform-page .directory-list{display:grid;gap:.15rem;list-style:none;margin:1rem 0 0;padding:0}
.arachnid-longform-page .directory-list a{align-items:baseline;border-radius:.45rem;color:#244f43;display:flex;gap:.65rem;justify-content:space-between;padding:.55rem .6rem;text-decoration:none}
.arachnid-longform-page .directory-list a:hover,.arachnid-longform-page .directory-list a:focus-visible{background:#edf4f0}
.arachnid-longform-page .directory-list i{color:#64736e;font-family:Georgia,serif;font-size:.9rem;text-align:right}
.arachnid-longform-page .source-list{font-size:.94rem;line-height:1.65}
.arachnid-longform-page .record-note{background:#fff2df;border-left:4px solid #a16e35;border-radius:.5rem;color:#694a28;margin-top:1.5rem;padding:1rem 1.15rem}
.arachnid-longform-page .compact-card{padding:1.15rem}
.arachnid-longform-page .cta-band{margin-top:2rem;padding-bottom:5rem;padding-top:3rem}
.arachnid-longform-page .site-footer .site-footer__grid{display:grid;gap:2rem;grid-template-columns:minmax(260px,2fr) repeat(3,minmax(150px,1fr))}
@media(max-width:980px){.arachnid-longform-page .facts{grid-template-columns:repeat(2,1fr)}
.arachnid-longform-page .profile-grid,.arachnid-longform-page .species-grid,.arachnid-longform-page .habitat-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:820px){.arachnid-longform-page .story-layout,.arachnid-longform-page .habitat-layout,.arachnid-longform-page .directory-grid{grid-template-columns:1fr}
.arachnid-longform-page .story-aside{position:static}
.arachnid-longform-page .site-footer .site-footer__grid{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.arachnid-longform-page .facts,.arachnid-longform-page .profile-grid,.arachnid-longform-page .species-grid,.arachnid-longform-page .habitat-grid,.arachnid-longform-page .site-footer .site-footer__grid{grid-template-columns:1fr}
.arachnid-longform-page .facts>div+div{border-left:0;border-top:1px solid rgba(47,93,80,.18)}
.arachnid-longform-page .hero__actions,.arachnid-longform-page .cta-band__actions{flex-direction:column}
.arachnid-longform-page .directory-list a{align-items:flex-start;flex-direction:column;gap:.2rem}
.arachnid-longform-page .directory-list i{text-align:left}}
.arachnid-longform-page .brand__logo{display:block;height:48px;max-width:min(46vw,360px);object-fit:contain;width:auto}
.arachnid-longform-page .brand--footer .brand__logo{height:56px;max-width:min(74vw,420px)}
.arachnid-longform-page .notice{background:#fff8e8;border:1px solid rgba(145,93,36,.28);border-radius:1rem;color:#563d24;margin:1.5rem 0;padding:1rem 1.15rem}
.arachnid-longform-page .medical-note{background:#fff2df;border-left:5px solid #9a562b;border-radius:.75rem;padding:1rem 1.15rem}
.arachnid-longform-page .profile-grid + .medical-note{margin-top:2rem}
.arachnid-longform-page .field-note{background:#edf5f1;border-left:5px solid #315e50;border-radius:.75rem;padding:1rem 1.15rem}
.arachnid-longform-page .source-list li+li{margin-top:.7rem}
.arachnid-longform-page .brand__logo{display:block;height:48px;max-width:min(46vw,360px);object-fit:contain;width:auto}
.arachnid-longform-page .brand--footer .brand__logo{height:56px;max-width:min(74vw,420px)}
.arachnid-longform-page .notice{background:#fff8e8;border:1px solid rgba(145,93,36,.28);border-radius:1rem;color:#563d24;margin:1.5rem 0;padding:1rem 1.15rem}
.arachnid-longform-page .medical-note{background:#fff2df;border-left:5px solid #9a562b;border-radius:.75rem;padding:1rem 1.15rem}
.arachnid-longform-page .field-note{background:#edf5f1;border-left:5px solid #315e50;border-radius:.75rem;padding:1rem 1.15rem}
.arachnid-longform-page .source-list li+li{margin-top:.7rem}
.arachnid-longform-page .taxonomy-note{background:#edf5f1;border-radius:.75rem;padding:1rem 1.15rem}
.arachnid-longform-page .compare-table{border-collapse:collapse;width:100%}
.arachnid-longform-page .table-scroll{overflow-x:auto}
.arachnid-longform-page .compare-table th,.arachnid-longform-page .compare-table td{border-bottom:1px solid rgba(47,93,80,.18);padding:.85rem;text-align:left;vertical-align:top}
.arachnid-longform-page .compare-table th{color:#315e50;font-size:.78rem;letter-spacing:.06em;text-transform:uppercase}
@media(max-width:680px){.arachnid-longform-page .compare-table,.arachnid-longform-page .compare-table tbody,.arachnid-longform-page .compare-table tr,.arachnid-longform-page .compare-table th,.arachnid-longform-page .compare-table td{display:block}
.arachnid-longform-page .compare-table thead{display:none}
.arachnid-longform-page .compare-table tr{border:1px solid rgba(47,93,80,.18);border-radius:.75rem;margin-bottom:1rem;padding:.4rem}
.arachnid-longform-page .compare-table td{border:0;padding:.5rem}
.arachnid-longform-page .compare-table td::before{color:#315e50;content:attr(data-label);display:block;font-size:.72rem;font-weight:800;letter-spacing:.05em;text-transform:uppercase}}

.arachnid-longform-page figure.blended-photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.arachnid-longform-page figure.blended-photo > figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  padding: 3.25rem 1.2rem 1.05rem;
  color: #fff;
  background: linear-gradient(180deg, rgba(18, 38, 31, 0) 0%, rgba(18, 38, 31, 0.76) 72%, rgba(18, 38, 31, 0.92) 100%);
  font-weight: 600;
  line-height: 1.5;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

.arachnid-longform-page .hero__media,
.arachnid-longform-page .hero__media figure,
.arachnid-longform-page .hero__media img {
  width: 100%;
}


/* Asparagus family pages share the current long-form nature-guide system. */
.plant-family-longform-page .blended-photo:not(.blended-photo--caption-full) > figcaption {
  right: auto;
  width: min(38%, 24rem);
  padding-right: 2rem;
  background: linear-gradient(90deg, rgba(18,38,31,.94) 0%, rgba(18,38,31,.76) 68%, rgba(18,38,31,0) 100%);
}
.plant-family-longform-page .blended-photo--caption-narrow > figcaption { width: min(30%, 19rem); }
.plant-family-longform-page .blended-photo--caption-right > figcaption {
  right: 0;
  left: auto;
  padding-right: 1.2rem;
  padding-left: 2rem;
  text-align: right;
  background: linear-gradient(270deg, rgba(18,38,31,.94) 0%, rgba(18,38,31,.76) 68%, rgba(18,38,31,0) 100%);
}
.plant-family-longform-page .source-panel {
  margin-top: 2.25rem;
  padding: 1.25rem 1.35rem;
  background: #edf5f1;
  border: 1px solid rgba(47,93,80,.16);
  border-radius: 1rem;
}
.plant-family-longform-page .source-panel h3 { margin-top: 0; }
.plant-family-longform-page .cta-band { margin-top: 0; }
.plant-family-longform-page .species-card__body > p:last-child { margin-bottom: 0; }
@media (max-width: 620px) {
  .plant-family-longform-page .blended-photo:not(.blended-photo--caption-full) > figcaption,
  .plant-family-longform-page .blended-photo--caption-right > figcaption {
    right: auto;
    left: 0;
    width: min(56%, 18rem);
    padding: 2.5rem .8rem .75rem;
    text-align: left;
    background: linear-gradient(90deg, rgba(18,38,31,.94) 0%, rgba(18,38,31,.76) 68%, rgba(18,38,31,0) 100%);
  }
  .plant-family-longform-page .blended-photo--caption-right > figcaption { right: 0; left: auto; }
}

/* Asparagus-family checklist: responsive in the field and clean on paper. */
.plant-checklist-page .checklist-print {
  font: inherit;
  cursor: pointer;
}

.plant-checklist-page .checklist-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1.15rem;
  background: #fff;
  border: 1px solid rgba(47, 93, 80, .16);
  border-radius: 1rem;
}

.plant-checklist-page .checklist-meta label {
  display: grid;
  gap: .45rem;
  color: #315e50;
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.plant-checklist-page .checklist-meta input {
  width: 100%;
  min-height: 2.75rem;
  padding: .55rem .7rem;
  color: var(--color-ink);
  background: #fffaf2;
  border: 1px solid rgba(47, 93, 80, .22);
  border-radius: .65rem;
  font: inherit;
  text-transform: none;
}

.plant-checklist-page .checklist-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: start;
}

.plant-checklist-page .checklist-group {
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(47, 93, 80, .16);
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(22, 48, 40, .08);
}

.plant-checklist-page .checklist-group__heading {
  padding: 1.2rem 1.25rem 1rem;
  background: #edf5f1;
  border-bottom: 1px solid rgba(47, 93, 80, .16);
}

.plant-checklist-page .checklist-group__heading h3,
.plant-checklist-page .checklist-group__heading p {
  margin-bottom: 0;
}

.plant-checklist-page .checklist-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.plant-checklist-page .checklist-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: .85rem;
  align-items: start;
  padding: 1rem 1.15rem;
}

.plant-checklist-page .checklist-item + .checklist-item {
  border-top: 1px solid rgba(47, 93, 80, .13);
}

.plant-checklist-page .checklist-item > input[type="checkbox"] {
  width: 1.35rem;
  height: 1.35rem;
  margin: .16rem 0 0;
  accent-color: var(--color-forest);
  cursor: pointer;
}

.plant-checklist-page .checklist-item label {
  display: grid;
  gap: .16rem;
  min-width: 0;
  cursor: pointer;
}

.plant-checklist-page .checklist-item strong {
  color: var(--color-forest-dark);
  line-height: 1.25;
}

.plant-checklist-page .checklist-item i {
  color: #52635e;
  font-family: Georgia, serif;
  font-size: .92rem;
}

.plant-checklist-page .checklist-item label span {
  color: var(--color-muted);
  font-size: .82rem;
}

.plant-checklist-page .checklist-item > a {
  margin-top: .1rem;
  color: #244f43;
  font-size: .82rem;
  font-weight: 850;
  text-underline-offset: .2em;
}

.plant-checklist-page .checklist-notes {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(250px, .65fr);
  gap: 1.25rem;
  margin-top: 1.25rem;
  padding: 1.25rem;
  background: #fff8e8;
  border: 1px solid rgba(145, 93, 36, .22);
  border-radius: 1rem;
}

.plant-checklist-page .checklist-notes h3,
.plant-checklist-page .checklist-notes p:last-child {
  margin-bottom: 0;
}

@media (max-width: 820px) {
  .plant-checklist-page .checklist-groups,
  .plant-checklist-page .checklist-notes {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .plant-checklist-page .checklist-meta {
    grid-template-columns: 1fr;
  }

  .plant-checklist-page .checklist-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .plant-checklist-page .checklist-item > a {
    grid-column: 2;
  }
}

@media print {
  @page {
    margin: .45in;
  }

  .plant-checklist-page {
    color: #111;
    background: #fff;
    font-size: 9.5pt;
  }

  .plant-checklist-page .site-header,
  .plant-checklist-page .quick-links,
  .plant-checklist-page .hero__media,
  .plant-checklist-page .hero__actions,
  .plant-checklist-page .cta-band,
  .plant-checklist-page .site-footer,
  .plant-checklist-page .skip-link {
    display: none !important;
  }

  .plant-checklist-page .container {
    width: 100%;
  }

  .plant-checklist-page .hero,
  .plant-checklist-page .section {
    padding: 0;
    background: #fff;
  }

  .plant-checklist-page .hero__grid {
    display: block;
  }

  .plant-checklist-page .breadcrumb {
    display: none;
  }

  .plant-checklist-page h1 {
    margin-bottom: .1in;
    font-size: 23pt;
    letter-spacing: -.03em;
  }

  .plant-checklist-page .hero__lead {
    max-width: none;
    font-size: 10pt;
  }

  .plant-checklist-page .section-heading {
    margin: .2in 0 .12in;
  }

  .plant-checklist-page .section-heading h2 {
    margin-bottom: .05in;
    font-size: 16pt;
  }

  .plant-checklist-page .checklist-meta {
    margin-bottom: .12in;
    padding: .08in;
    border-color: #777;
    border-radius: 0;
  }

  .plant-checklist-page .checklist-meta input {
    min-height: .28in;
    padding: 0;
    background: #fff;
    border: 0;
    border-bottom: 1px solid #444;
    border-radius: 0;
  }

  .plant-checklist-page .checklist-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .12in;
  }

  .plant-checklist-page .checklist-group {
    border-color: #777;
    border-radius: 0;
    box-shadow: none;
    break-inside: avoid;
  }

  .plant-checklist-page .checklist-group__heading {
    padding: .08in;
    background: #fff;
    border-color: #777;
  }

  .plant-checklist-page .checklist-group__heading h3 {
    font-size: 12pt;
  }

  .plant-checklist-page .checklist-item {
    grid-template-columns: auto minmax(0, 1fr);
    gap: .06in;
    padding: .07in .08in;
    break-inside: avoid;
  }

  .plant-checklist-page .checklist-item > input[type="checkbox"] {
    width: .16in;
    height: .16in;
  }

  .plant-checklist-page .checklist-item label {
    gap: 0;
  }

  .plant-checklist-page .checklist-item label span {
    font-size: 7.5pt;
  }

  .plant-checklist-page .checklist-item > a,
  .plant-checklist-page .checklist-notes {
    display: none;
  }
}

/* Wildlife hub: keep required footer actions readable at narrow widths. */
@media (max-width: 860px) {
  .wildlife-hub-page .site-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .wildlife-hub-page .site-footer__actions {
    width: 100%;
  }
}
.birds-guide-page #bird-guides,
.birds-guide-page #water-birds,
.birds-guide-page #raptors-night-birds,
.birds-guide-page #land-birds,
.birds-guide-page #birding-care,
.birds-guide-page #field-resources {
  scroll-margin-top: 8rem;
}

.birds-guide-page #bird-guides {
  padding-bottom: 0;
}

/* Plant species stories: keep copy left, supporting media right, and captions full-width. */
body.plant-family-longform-page .story-layout {
  display: grid;
  align-items: start;
  gap: clamp(1.75rem, 4vw, 3rem);
}

body.plant-family-longform-page .hero__content {
  min-width: 0;
}

body.plant-family-longform-page .hero__content h1,
body.plant-family-longform-page .hero__content .species-name {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
}

body.plant-family-longform-page .hero__content h1 {
  text-wrap: balance;
}

body.plant-family-longform-page .story-layout > .story-copy,
body.plant-family-longform-page .story-layout > .story-copy .section-heading {
  min-width: 0;
}

body.plant-family-longform-page .story-layout > .story-copy h2,
body.plant-family-longform-page .story-layout > .story-copy h3,
body.plant-family-longform-page .story-layout > .story-copy .eyebrow,
body.plant-family-longform-page .story-layout > .story-copy p {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
}

body.plant-family-longform-page .story-layout > .story-copy h2,
body.plant-family-longform-page .story-layout > .story-copy h3 {
  text-wrap: balance;
}

@media (min-width: 901px) {
  body.plant-family-longform-page .story-layout,
  body.plant-family-longform-page .story-layout.story-layout--media-left {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.86fr);
  }

  body.plant-family-longform-page .story-layout > .story-copy {
    grid-column: 1;
    grid-row: 1;
  }

  body.plant-family-longform-page .story-layout > figure.blended-photo {
    grid-column: 2;
    grid-row: 1;
  }
}

body.plant-family-longform-page .story-layout > figure.blended-photo > figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  padding: 3.25rem 1.2rem 1.05rem;
  text-align: left;
  background: linear-gradient(
    180deg,
    rgba(18, 38, 31, 0) 0%,
    rgba(18, 38, 31, 0.76) 72%,
    rgba(18, 38, 31, 0.92) 100%
  );
}

@media (max-width: 900px) {
  body.plant-family-longform-page .story-layout,
  body.plant-family-longform-page .story-layout.story-layout--media-left {
    grid-template-columns: 1fr;
  }

  body.plant-family-longform-page .story-layout > .story-copy {
    grid-column: auto;
    grid-row: auto;
    order: 1;
  }

  body.plant-family-longform-page .story-layout > figure.blended-photo {
    grid-column: auto;
    grid-row: auto;
    order: 2;
  }
}
