/* ============================================================
   B Corridor — Article (single news post) styles
   Builds on styles.css (variables, header, footer, buttons,
   .cta-section). Only article-specific layout lives here.
   ============================================================ */

.article-page { background: var(--cream); }

/* ───────────── ARTICLE HERO ───────────── */
.article-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 62vh;
  padding: calc(var(--announce-h) + 150px) 0 clamp(120px, 13vw, 180px);
  background:
    linear-gradient(180deg, rgba(13, 38, 24, 0.55) 0%, rgba(13, 38, 24, 0.35) 40%, rgba(13, 38, 24, 0.78) 100%),
    url('assets/plants-meadows.webp') center / cover no-repeat;
  color: var(--white);
  overflow: hidden;
}
.article-hero__inner {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}
.article-hero h1 {
  margin: 14px 0 14px;
  color: var(--white) !important;          /* override global green heading colour */
  font-size: clamp(2.3rem, 5.5vw, 4rem);
  line-height: 0.98;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.4);
}
.article-tag {
  display: inline-block;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.article-meta {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}
.article-meta__dot { margin: 0 4px; }

/* Back link — white over the hero, green in the body */
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: gap .2s ease, opacity .2s ease;
}
.article-back svg { width: 18px; height: 18px; }
.article-back:hover,
.article-back:focus-visible { gap: 11px; opacity: 0.88; }

/* Hero wave — same curve as the rest of the site, fills into the page */
.article-hero .hero-wave {
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  width: 100%;
  height: clamp(90px, 9vw, 150px);
  line-height: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}
.article-hero .hero-wave svg { display: block; width: 100%; height: 100%; }
.article-hero .hero-wave path { fill: var(--cream); }

/* ───────────── ARTICLE BODY ───────────── */
.article-body {
  max-width: 720px;
  margin: clamp(36px, 5vw, 56px) auto clamp(48px, 6vw, 80px);
  padding: 0 24px;
  color: var(--text-muted);
}
.article-body p {
  margin: 0 0 1.3em;
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  line-height: 1.75;
}
.article-lede {
  color: var(--forest);
  font-size: clamp(1.2rem, 1.8vw, 1.4rem) !important;
  line-height: 1.6 !important;
  font-weight: 600;
}
.article-body h2 {
  margin: 1.6em 0 0.5em;
  color: var(--green-dark);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.1;
}
.article-body h3 {
  margin: 1.4em 0 0.4em;
  color: var(--green-dark);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}
.article-body ul,
.article-body ol {
  margin: 0 0 1.3em;
  padding-left: 1.3em;
}
.article-body li {
  margin-bottom: 0.5em;
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  line-height: 1.7;
}
.article-body a:not(.article-back) {
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article-body strong { color: var(--forest); }

/* Inline figure with caption */
.article-figure {
  margin: clamp(24px, 3vw, 36px) 0;
}
.article-figure img {
  width: 100%;
  border-radius: 16px;
  display: block;
  box-shadow: 0 14px 34px rgba(22, 49, 31, 0.14);
}
.article-figure figcaption {
  margin-top: 10px;
  color: var(--text-muted-3);
  font-size: 0.9rem;
  font-style: italic;
  text-align: center;
}

/* Pull quote */
.article-quote {
  margin: clamp(28px, 4vw, 40px) 0;
  padding: clamp(18px, 2.4vw, 26px) clamp(20px, 2.6vw, 30px);
  border-left: 4px solid var(--green);
  border-radius: 0 16px 16px 0;
  background: var(--sage-light);
}
.article-quote p {
  margin: 0 !important;
  color: var(--forest);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.6rem) !important;
  line-height: 1.4 !important;
}

/* Bottom back link sits in the cream body */
.article-back--bottom {
  margin-top: clamp(20px, 3vw, 32px);
  color: var(--green-dark);
}

@media (max-width: 640px) {
  .article-hero { min-height: 54vh; align-items: center; }
}

/* ───────────── CMS-generated body elements ─────────────
   The editor outputs plain <blockquote>, <img>, lists etc. into
   .article-body; style them to match the hand-built article. */
.article-body blockquote {
  margin: clamp(28px, 4vw, 40px) 0;
  padding: clamp(14px, 2vw, 22px) clamp(18px, 2.4vw, 28px);
  border-left: 4px solid var(--green);
  border-radius: 0 16px 16px 0;
  background: var(--sage-light);
  color: var(--forest);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.4;
}
.article-body blockquote p { margin: 0 !important; font-size: inherit !important; line-height: inherit !important; color: inherit; }
.article-body > img,
.article-body figure img {
  width: 100%;
  border-radius: 16px;
  display: block;
  margin: clamp(24px, 3vw, 36px) 0;
  box-shadow: 0 14px 34px rgba(22, 49, 31, 0.14);
}

/* previous / next post nav */
.article-pnav-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: clamp(32px, 4vw, 44px) 0 0;
  padding-top: clamp(20px, 3vw, 28px);
  border-top: 1px solid rgba(70, 133, 92, 0.18);
}
.article-pnav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  color: var(--green-dark);
}
.article-pnav--next { text-align: right; }
.article-pnav span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: inherit;
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted-3);
}
.article-pnav--next span { justify-content: flex-end; }
.article-pnav span svg { width: 14px; height: 14px; }
.article-pnav strong {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.15;
}
.article-pnav:hover strong { color: var(--green); }
@media (max-width: 560px) {
  .article-pnav-row { grid-template-columns: 1fr; }
  .article-pnav--next { text-align: left; }
  .article-pnav--next span { justify-content: flex-start; }
}

/* ───────────── CMS blocks: video embeds & carousels ───────────── */
.article-body .article-embed {
  position: relative;
  margin: clamp(24px, 3vw, 36px) 0;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 14px 34px rgba(22, 49, 31, 0.14);
}
.article-body .article-embed iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0; display: block;
}

.article-body .article-carousel {
  position: relative;
  margin: clamp(24px, 3vw, 36px) 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--sage-light);
  box-shadow: 0 14px 34px rgba(22, 49, 31, 0.14);
}
.article-carousel__track { display: flex; transition: transform .4s cubic-bezier(.22,1,.36,1); }
.article-carousel__slide { flex: 0 0 100%; position: relative; }
.article-carousel__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 18px 30px;
  background: linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,0));
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.4;
}
.article-body .article-carousel img {
  width: 100%; display: block;
  aspect-ratio: 3 / 2; object-fit: cover;
  margin: 0; border-radius: 0; box-shadow: none;
}
.article-carousel__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border: 0; border-radius: 999px;
  background: rgba(255,255,255,.88); color: var(--forest);
  font-size: 22px; line-height: 1; display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.25); transition: background .15s;
}
.article-carousel__nav:hover { background: #fff; }
.article-carousel__nav--prev { left: 12px; }
.article-carousel__nav--next { right: 12px; }
.article-carousel__dots {
  position: absolute; left: 0; right: 0; bottom: 12px;
  display: flex; justify-content: center; gap: 8px;
}
.article-carousel__dot {
  width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px;
  background: rgba(255,255,255,.6); cursor: pointer; transition: background .15s;
}
.article-carousel__dot.is-active { background: #fff; }
/* before JS (or a single image): just stack the photos */
.article-carousel:not(.is-ready) img { width: 100%; display: block; }
