/* ============================================================
   UK DEER MANAGEMENT — DESIGN CONCEPT V1
   This file is applied on top of each page's existing inline
   styles. It does not replace them — it refines and elevates.
   ============================================================ */

/* ── GLOBAL ──────────────────────────────────────────────── */

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.005em;
}

/* Subtle body grain / texture overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.022;
}

/* ── NAV REFINEMENTS ─────────────────────────────────────── */

nav {
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Cleaner active indicator underline */
.nav-links a.active {
  color: var(--mist);
  position: relative;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--sage);
  opacity: 0.65;
}

/* Nav logo mark — slightly warmer ring */
.nav-logo-mark {
  border-color: rgba(200,217,192,0.55);
  background: rgba(200,217,192,0.04);
  transition: border-color 0.2s, background 0.2s;
}

.nav-logo:hover .nav-logo-mark {
  border-color: rgba(200,217,192,0.85);
  background: rgba(200,217,192,0.08);
}

/* ── HERO IMPROVEMENTS ───────────────────────────────────── */

/* Richer overlay — directional vignette */
.hero-overlay {
  background: linear-gradient(
    165deg,
    rgba(28,43,30,0.1)  0%,
    rgba(28,43,30,0.5) 45%,
    rgba(28,43,30,0.82) 100%
  ) !important;
}

/* Photo slightly brighter and a touch warmer */
.hero-bg {
  opacity: 0.44 !important;
  filter: brightness(0.88) saturate(0.85);
}

/* Stronger hero title */
.hero-title {
  text-shadow: 0 2px 20px rgba(28,43,30,0.6);
  letter-spacing: -0.01em;
}

/* Hero CTA: primary button — richer fill */
.btn-primary {
  background: var(--moss) !important;
  box-shadow: 0 2px 12px rgba(74,107,69,0.25);
  letter-spacing: 2.2px;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s !important;
}

.btn-primary:hover {
  background: var(--canopy) !important;
  box-shadow: 0 4px 20px rgba(74,107,69,0.35);
}

.btn-green {
  box-shadow: 0 2px 10px rgba(74,107,69,0.2);
}

/* ── PAGE HEADERS ────────────────────────────────────────── */

/* Richer hero bg for page headers */
.page-header::after {
  opacity: 0.18 !important;
  filter: saturate(0.75) brightness(0.7);
}

/* Bottom edge vignette on page headers */
.page-header::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 6rem;
  background: linear-gradient(to bottom, transparent, rgba(28,43,30,0.18));
  pointer-events: none;
  z-index: 1;
}

/* ── SECTION RHYTHM ──────────────────────────────────────── */

/* Subtle horizontal rule between major sections */
.content-section + .content-section {
  border-top: 1px solid var(--rule);
}

/* Section labels — fractionally more weight */
.section-label {
  font-weight: 400;
  color: var(--moss);
  letter-spacing: 3.5px;
}

/* ── SERVICE CARDS (HOMEPAGE) ────────────────────────────── */

.cards-grid {
  background: transparent !important;
  border: none !important;
  gap: 1.25rem !important;
  border-radius: 0 !important;
}

.service-card {
  border: 1px solid rgba(74,107,69,0.15) !important;
  border-radius: 5px !important;
  box-shadow: 0 1px 4px rgba(28,43,30,0.05), 0 2px 12px rgba(28,43,30,0.04) !important;
  transition: background 0.22s, box-shadow 0.22s, transform 0.18s !important;
  position: relative;
  overflow: hidden;
}

/* Left accent bar */
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: linear-gradient(to bottom, var(--sage), var(--moss));
  opacity: 0;
  transition: opacity 0.22s;
  border-radius: 5px 0 0 5px;
}

.service-card:hover {
  background: var(--dawn) !important;
  box-shadow: 0 4px 24px rgba(28,43,30,0.09), 0 1px 4px rgba(28,43,30,0.06) !important;
  transform: translateY(-2px) !important;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 3px;
}

/* ── PROCESS TIMELINE ────────────────────────────────────── */

.timeline-card {
  box-shadow: 0 1px 6px rgba(28,43,30,0.05) !important;
}

.timeline-item:hover .timeline-card {
  box-shadow: 0 4px 16px rgba(28,43,30,0.1) !important;
}

.timeline-dot {
  box-shadow: 0 0 0 4px rgba(46,74,49,0.15);
}

/* ── TRUST POINTS ────────────────────────────────────────── */

/* Slightly elevated trust point rows with icon-space left inset */
.trust-point {
  padding: 1.5rem 0 1.5rem 1rem !important;
  transition: background 0.18s;
  margin: 0 -1rem;
  padding-right: 1rem;
  border-radius: 3px;
}

.trust-point:hover {
  background: rgba(74,107,69,0.04);
}

.trust-point-label {
  letter-spacing: 0.01em;
}

/* ── KNOWLEDGE CENTRE CARDS ──────────────────────────────── */

/* Standard topic cards */
.topics-grid {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  gap: 1.25rem !important;
}

.topic-card {
  border: 1px solid rgba(74,107,69,0.14) !important;
  border-radius: 5px !important;
  box-shadow: 0 1px 5px rgba(28,43,30,0.04) !important;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s !important;
  position: relative;
}

.topic-card:hover {
  background: var(--dawn) !important;
  box-shadow: 0 4px 18px rgba(28,43,30,0.09) !important;
  transform: translateY(-2px) !important;
}

.topic-card:focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 3px;
}

/* Featured/guides grid */
.guides-grid {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  gap: 1.25rem !important;
}

/* First guide card — featured treatment */
.guides-grid .topic-card:first-child {
  border-color: rgba(74,107,69,0.28) !important;
  border-left: 3px solid var(--moss) !important;
  background: rgba(74,107,69,0.04) !important;
}

.guides-grid .topic-card:first-child h3 {
  color: var(--canopy);
}

/* Reading pathway blocks — elevated */
.pathway-block {
  border: 1px solid rgba(74,107,69,0.12);
  border-left: 3px solid var(--moss) !important;
  border-radius: 0 5px 5px 0;
  box-shadow: 0 1px 5px rgba(28,43,30,0.04);
  transition: box-shadow 0.2s;
}

.pathway-block:hover {
  box-shadow: 0 3px 14px rgba(28,43,30,0.08);
}

/* ── SPECIES PAGE — 2-COLUMN IMAGE+TEXT LAYOUT ───────────── */

/* Rework species blocks into side-by-side layout on desktop */
.species-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 3.5rem;
  align-items: start;
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--rule);
}

.species-block:last-child {
  border-bottom: none;
}

/* Species image — full width inside its column */
.species-img-wrap {
  max-width: none !important;
  margin: 0 !important;
  border-radius: 6px !important;
  overflow: hidden;
  box-shadow: 0 3px 16px rgba(28,43,30,0.14);
  aspect-ratio: 16/10;
}

.species-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.species-img-wrap:hover img {
  transform: scale(1.02);
}

/* Species heading sits above the text column */
.species-heading {
  font-size: clamp(24px, 3vw, 34px) !important;
  margin-bottom: 1rem !important;
  color: var(--forest);
}

/* Alternate image left/right on even/odd */
.species-block:nth-child(even) .species-img-wrap {
  order: 2;
}

.species-block:nth-child(even) .species-text-col {
  order: 1;
}

/* Group heading + text into text column */
.species-text-col {
  display: flex;
  flex-direction: column;
}

/* On mobile, stack */
@media (max-width: 800px) {
  .species-block {
    grid-template-columns: 1fr;
  }

  .species-block:nth-child(even) .species-img-wrap {
    order: 0;
  }

  .species-block:nth-child(even) .species-text-col {
    order: 0;
  }

  .species-img-wrap {
    aspect-ratio: 16/9;
    margin-bottom: 0.5rem !important;
  }
}

/* ── SERVICES PAGE — SERVICE ENTRIES ─────────────────────── */

.service-entry {
  border: none !important;
  background: var(--parchment);
  border-radius: 6px;
  padding: 2.25rem 2rem !important;
  margin-bottom: 1.25rem;
  box-shadow: 0 1px 6px rgba(28,43,30,0.05);
  border: 1px solid rgba(74,107,69,0.1) !important;
  border-left: 3px solid var(--sage) !important;
  transition: box-shadow 0.2s, border-left-color 0.2s;
}

.service-entry:hover {
  box-shadow: 0 4px 18px rgba(28,43,30,0.1);
  border-left-color: var(--moss) !important;
}

.service-entry:first-child {
  border-top: 1px solid rgba(74,107,69,0.1) !important;
}

/* Override the list separator style */
.services-list-section .service-entry + .service-entry {
  margin-top: 0;
}

/* ── PROFESSIONAL STANDARDS — TRUST DASHBOARD ────────────── */

/* Inline trust dashboard at top of page, below page header */
.trust-dashboard {
  background: var(--forest);
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(200,217,192,0.06);
}

.trust-dashboard-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.trust-dash-card {
  background: rgba(200,217,192,0.05);
  border: 1px solid rgba(200,217,192,0.1);
  border-radius: 5px;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.trust-dash-label {
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 400;
}

.trust-dash-value {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  color: var(--dawn);
  font-weight: 400;
  line-height: 1.3;
}

.trust-dash-note {
  font-size: 12.5px;
  color: rgba(200,217,192,0.45);
  font-weight: 300;
}

@media (max-width: 900px) {
  .trust-dashboard-inner { grid-template-columns: 1fr 1fr; padding: 0 1.5rem; }
}

@media (max-width: 600px) {
  .trust-dashboard-inner { grid-template-columns: 1fr; padding: 0 1.25rem; }
}

/* Credential cards — slightly more visual */
.credential-mark {
  box-shadow: 0 1px 6px rgba(28,43,30,0.06) !important;
  transition: box-shadow 0.2s, border-left-color 0.2s;
}

.credential-mark:hover {
  box-shadow: 0 3px 14px rgba(28,43,30,0.1) !important;
  border-left-color: var(--moss) !important;
}

/* Standards items — hover state */
.standards-item {
  transition: padding-left 0.2s;
  border-radius: 3px;
  padding-left: 0;
}

.standards-item:hover {
  padding-left: 0.5rem;
}

/* Info callout — richer left accent */
.info-callout {
  border-left: 3px solid var(--moss) !important;
  box-shadow: 0 1px 8px rgba(74,107,69,0.07);
}

/* ── CONTACT PAGE ────────────────────────────────────────── */

/* Stronger form card */
.contact-form-card {
  background: rgba(28,43,30,0.7) !important;
  border: 1px solid rgba(200,217,192,0.12) !important;
  border-radius: 6px !important;
  box-shadow: 0 8px 32px rgba(28,43,30,0.35);
}

/* Better focus states on form inputs */
.form-input:focus {
  border-color: rgba(200,217,192,0.5) !important;
  box-shadow: 0 0 0 3px rgba(122,158,114,0.1);
}

/* Input hover */
.form-input:hover {
  border-color: rgba(200,217,192,0.28);
}

/* Submit button */
.form-submit {
  letter-spacing: 2.5px !important;
  transition: background 0.2s, box-shadow 0.2s !important;
  box-shadow: 0 2px 12px rgba(74,107,69,0.2);
}

.form-submit:hover {
  box-shadow: 0 4px 20px rgba(74,107,69,0.3) !important;
}

/* Contact detail icons — warmer */
.contact-detail-icon {
  background: rgba(200,217,192,0.06);
  transition: background 0.2s, border-color 0.2s;
}

.contact-detail:hover .contact-detail-icon {
  background: rgba(200,217,192,0.1);
  border-color: rgba(200,217,192,0.32);
}

/* Info blocks on contact page */
.info-block h3 {
  position: relative;
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}

.info-block h3::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 2.5rem; height: 2px;
  background: var(--moss);
  border-radius: 2px;
}

/* ── FOOTER IMPROVEMENTS ─────────────────────────────────── */

footer {
  padding: 3.5rem 3rem !important;
}

.footer-links a {
  transition: color 0.2s, transform 0.15s;
}

.footer-links a:hover {
  transform: translateX(2px);
}

/* ── CTA BANNER ──────────────────────────────────────────── */

.cta-banner {
  position: relative;
  overflow: hidden;
}

/* Subtle texture behind CTA */
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../hero.webp') center/cover no-repeat;
  opacity: 0.06;
  pointer-events: none;
  filter: grayscale(0.4);
}

.cta-banner .section-inner {
  position: relative;
  z-index: 1;
}

/* ── ACCORDION — FAQ ─────────────────────────────────────── */

/* The original .faq-a is removed from the DOM by accordions.js before
   .accordion-ready is added, so no CSS rule is needed to hide it.
   The cloned .faq-a inside .faq-panel must NOT be hidden — do not add
   a display:none rule targeting .faq-item.accordion-ready .faq-a here. */

/* Button wrapping the question */
.faq-trigger {
  all: unset;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  cursor: pointer;
  gap: 1rem;
  padding: 1.75rem 0;
  text-align: left;
  transition: color 0.2s;
}

.faq-trigger .faq-q {
  margin-bottom: 0;
  transition: color 0.2s;
  pointer-events: none;
}

.faq-trigger:hover .faq-q {
  color: var(--moss);
}

.faq-trigger:focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Chevron icon */
.faq-chevron {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(74,107,69,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage);
  transition: transform 0.3s ease, background 0.2s, border-color 0.2s;
  pointer-events: none;
}

.faq-chevron svg {
  width: 10px; height: 10px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.2s;
}

.faq-trigger:hover .faq-chevron {
  border-color: rgba(74,107,69,0.45);
  background: rgba(74,107,69,0.05);
}

/* Expanded state */
.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
  background: var(--moss);
  border-color: var(--moss);
  color: var(--dawn);
}

/* Answer panel */
.faq-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* max-height on open panels is set dynamically by accordions.js (panel.scrollHeight)
   so long answers cannot be clipped regardless of content length */
.faq-item.is-open .faq-panel {
  max-height: none;
}

.faq-panel-body {
  padding-bottom: 1.5rem;
}

/* Borders on accordion */
.faq-item {
  border-bottom: 1px solid var(--rule);
}

.faq-item:first-child {
  border-top: 1px solid var(--rule);
}

/* Remove the old static borders that were on faq-item */
.faq-item.accordion-ready {
  border-bottom: 1px solid var(--rule);
  padding: 0;
}

.faq-item.accordion-ready:first-child {
  border-top: 1px solid var(--rule);
}

/* ── BULLET LIST REFINEMENTS ─────────────────────────────── */

.bullet-list li::before {
  content: '›';
  color: var(--moss);
  font-size: 16px;
  line-height: 1.4;
}

/* ── SCROLLBAR (where supported) ─────────────────────────── */

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--parchment); }
::-webkit-scrollbar-thumb { background: rgba(74,107,69,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(74,107,69,0.5); }

/* ── SECTION TITLE DECORATIVE RULE ──────────────────────────── */

.content-section .section-title,
.services-list-section .section-title,
.article-section .section-title {
  position: relative;
  padding-bottom: 1.1rem;
}

.content-section .section-title::after,
.services-list-section .section-title::after,
.article-section .section-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 2rem; height: 2px;
  background: var(--moss);
  border-radius: 2px;
  opacity: 0.7;
}

/* ── TIMELINE REFINEMENTS ────────────────────────────────────── */

/* Stronger, fading connector line */
.timeline::before {
  opacity: 0.55 !important;
  background: linear-gradient(
    to right,
    transparent 0%,
    var(--sage) 10%,
    var(--sage) 90%,
    transparent 100%
  ) !important;
}

/* Double-ring glow on timeline dots */
.timeline-dot {
  box-shadow:
    0 0 0 5px rgba(46,74,49,0.18),
    0 0 0 10px rgba(46,74,49,0.06) !important;
}

.timeline-item:hover .timeline-dot {
  box-shadow:
    0 0 0 5px rgba(74,107,69,0.28),
    0 0 0 10px rgba(74,107,69,0.1) !important;
}

/* ── SERVICES PAGE — 2-COLUMN ENTRY GRID ────────────────────── */

.services-list-section .section-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 2.5rem;
}

.services-list-section .section-label,
.services-list-section .section-title {
  grid-column: 1 / -1;
}

/* Remove margin-bottom from entries — grid gap handles spacing */
.services-list-section .service-entry {
  margin-bottom: 0 !important;
  border-top: none !important;
  border-bottom: none !important;
}

@media (max-width: 900px) {
  .services-list-section .section-inner {
    grid-template-columns: 1fr;
  }
  .services-list-section .section-label,
  .services-list-section .section-title {
    grid-column: auto;
  }
}

/* ── KNOWLEDGE CENTRE — FEATURED FIRST ARTICLE ───────────────── */

.guides-grid .topic-card:first-child {
  grid-column: span 2 !important;
  background: var(--forest) !important;
  border: 1px solid rgba(200,217,192,0.1) !important;
  border-left: 4px solid var(--moss) !important;
  padding: 2.75rem 3rem !important;
  box-shadow: 0 4px 24px rgba(28,43,30,0.22) !important;
}

.guides-grid .topic-card:first-child h3 {
  color: var(--dawn) !important;
  font-size: 22px !important;
  margin-bottom: 0.5rem;
}

.guides-grid .topic-card:first-child p {
  color: rgba(200,217,192,0.72) !important;
  font-size: 15px !important;
  font-weight: 300;
}

.guides-grid .topic-card:first-child:hover {
  background: rgba(28,43,30,0.9) !important;
}

@media (max-width: 600px) {
  .guides-grid .topic-card:first-child {
    grid-column: span 1 !important;
    padding: 1.75rem !important;
  }
}

/* ── PROFESSIONAL STANDARDS — IN-PAGE QUICK NAV ─────────────── */

.standards-quick-nav {
  background: var(--parchment);
  border-top: 2px solid var(--moss);
  border-bottom: 1px solid var(--rule);
  padding: 1.1rem 0;
}

.standards-quick-nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 2rem;
}

.standards-quick-nav-label {
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--moss);
  font-weight: 400;
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: 0.5rem;
}

.standards-quick-nav-inner a {
  font-size: 13px;
  color: var(--text-mid);
  text-decoration: none;
  font-weight: 300;
  transition: color 0.2s;
  white-space: nowrap;
}

.standards-quick-nav-inner a:hover {
  color: var(--moss);
}

.standards-quick-nav-inner a:focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 2px;
  border-radius: 2px;
}

@media (max-width: 700px) {
  .standards-quick-nav-inner {
    padding: 0 1.25rem;
    gap: 0.5rem 1.25rem;
  }
}

/* ── CONTACT — INFO BLOCK VISUAL LIFT ───────────────────────── */

.info-section .info-block {
  border-top: 2px solid var(--moss);
  padding-top: 1.5rem;
}

/* ── REDUCED MOTION ──────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .faq-panel {
    transition: none !important;
  }

  .species-img-wrap img {
    transition: none !important;
  }
}

/* ============================================================
   KNOWLEDGE CENTRE — ARTICLE PAGES
   ============================================================ */

/* ── ARTICLE BODY READABILITY ────────────────────────────────── */

/* Slightly more breathing room on article sections */
.article-section {
  padding: 6rem 0;
}

/* Section body text in articles — slightly warmer and more readable */
.article-section .section-body {
  font-size: 16.5px;
  line-height: 1.9;
  color: var(--text-mid);
  margin-bottom: 1.4rem;
}

/* Tighten h3 spacing within articles */
.article-section h3 {
  margin-top: 2.25rem;
  margin-bottom: 0.65rem;
}

/* Inline links in article body — consistent colour */
.article-section a {
  color: var(--moss);
  text-decoration: none;
  border-bottom: 1px solid rgba(74,107,69,0.25);
  transition: border-color 0.2s, color 0.2s;
}

.article-section a:hover {
  color: var(--canopy);
  border-bottom-color: rgba(46,74,49,0.55);
}

/* Exempt nav, buttons, breadcrumb links from underline treatment */
.article-section nav a,
.article-section .btn-primary,
.article-section .breadcrumb a,
.article-section .footer-links a {
  border-bottom: none;
}

/* ── ARTICLE LIST REFINEMENT ─────────────────────────────────── */

.article-list {
  gap: 0.65rem !important;
}

.article-list li {
  line-height: 1.75 !important;
  padding: 0.15rem 0;
}

/* Change em-dash bullet to same › marker as bullet-list */
.article-list li::before {
  content: '›' !important;
  color: var(--moss);
  font-size: 17px;
  line-height: 1.5;
  margin-top: 0;
}

/* ── ARTICLE IMAGES (species-img-wrap in article context) ─────── */

/* In articles, images are inline — give them consistent spacing */
.article-section .species-img-wrap {
  margin: 2rem 0 2.25rem !important;
  border-radius: 5px !important;
  box-shadow: 0 3px 18px rgba(28,43,30,0.13) !important;
  overflow: hidden;
  max-width: 100% !important;
}

/* Image caption text if present */
.img-caption {
  font-size: 13px;
  color: var(--text-light);
  font-style: italic;
  margin-top: 0.5rem;
  line-height: 1.5;
}

/* ── KEY TAKEAWAYS BOX ───────────────────────────────────────── */

.key-takeaways {
  background: var(--parchment) !important;
  border: 1px solid rgba(74,107,69,0.15) !important;
  border-left: 3px solid var(--moss) !important;
  border-radius: 0 5px 5px 0 !important;
  padding: 2rem 2.25rem !important;
  box-shadow: 0 2px 10px rgba(28,43,30,0.06) !important;
  margin: 0 0 1.5rem !important;
}

.key-takeaways .section-label {
  color: var(--moss);
  letter-spacing: 3px;
}

/* ── JOURNEY LINE / WHERE THIS FITS ─────────────────────────── */

.journey-line {
  background: var(--parchment) !important;
  border-left: 3px solid var(--moss) !important;
  border-radius: 0 5px 5px 0 !important;
  padding: 1.5rem 1.75rem !important;
  box-shadow: 0 1px 8px rgba(28,43,30,0.06) !important;
  margin: 2rem 0 2.5rem !important;
}

/* Journey step current — stronger */
.journey-step.current {
  color: var(--canopy) !important;
  font-weight: 600 !important;
}

/* ── NEXT STEPS STRIP ────────────────────────────────────────── */

.next-steps-strip {
  background: var(--parchment) !important;
  border-top: 2px solid var(--moss) !important;
  padding: 2.25rem 0 !important;
}

/* Next steps links styled as mini cards */
.next-steps-strip a {
  border-bottom: none !important;
  color: var(--moss) !important;
  font-weight: 400;
  font-size: 14px;
  transition: color 0.2s;
}

.next-steps-strip a:hover {
  color: var(--forest) !important;
}

/* ── ARTICLE FAQ SECTION ─────────────────────────────────────── */

/* alt-background article section (FAQ) — richer */
.article-section.alt {
  background: var(--dawn);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

/* ── ARTICLE CTA BANNER ──────────────────────────────────────── */

/* Article CTA banners use .cta-banner — add richer feel */
.cta-banner {
  position: relative;
  overflow: hidden;
}

.cta-banner .btn-primary {
  margin-top: 0.25rem;
}

/* ── ARTICLE HEADER REFINEMENTS ──────────────────────────────── */

/* Article page header — slightly more dramatic vignette */
.article-section ~ .page-header,
.page-header + .article-section {
  /* Spacing handled below */
}

/* Page intro in article headers — slightly brighter */
.page-header .page-intro {
  color: rgba(200,217,192,0.78);
  font-size: 17.5px;
}

/* ── MOBILE ARTICLE EXPERIENCE ───────────────────────────────── */

@media (max-width: 900px) {
  .article-section {
    padding: 4rem 0;
  }

  .article-section .species-img-wrap {
    margin: 1.5rem 0 1.75rem !important;
  }

  .key-takeaways {
    padding: 1.5rem 1.5rem !important;
  }

  .journey-line {
    padding: 1.25rem 1.25rem !important;
  }
}

@media (max-width: 600px) {
  .article-section .section-body {
    font-size: 16px;
  }

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

  /* Ensure long inline links wrap cleanly */
  .article-section a {
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .article-section .species-img-wrap {
    border-radius: 4px !important;
  }
}
