/* ============================================================
   FORTIS ECOLOGY — v2-resources.css
   Page-specific additions for resources.html and resource-*.html.
   Loaded after styles-v2.css. Tokens only; no new colours.
   ============================================================ */

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Resources library ---------- */
.card__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card__readtime { font-size: 13px; color: var(--muted); }
.card--resource h2.card__title { font-size: 20px; letter-spacing: 0; }
.card--resource .photo > img { object-position: center 40%; }

/* Newsletter panel */
.newsletter-panel {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 56px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-panel);
  padding: clamp(28px, 4vw, 48px); box-shadow: var(--e1);
}
.newsletter-panel__copy h2 { margin-bottom: 12px; }
.newsletter-panel__copy p:last-child { margin: 0; }
.newsletter__form { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.newsletter__form .input { flex: 1 1 240px; width: auto; }
.newsletter__form .btn { flex: 0 0 auto; }
.newsletter__note { flex-basis: 100%; font-size: 13px; line-height: 1.6; color: var(--muted); margin: 4px 0 0; }

/* ---------- Article hero ---------- */
.hero--article .hero__content { max-width: 760px; }
.hero--article .hero__lead { margin-bottom: 18px; }
.hero--article .article-meta { margin: 0; }

/* ---------- Article body ---------- */
.article { max-width: 72ch; margin: 0 auto; }
.prose h2:first-child { margin-top: 0; }
.prose .callout p { margin: 0; }
.prose .callout--warn { background: rgba(181,147,90,0.10); border-left-color: var(--gold-cta); }
.prose .callout--warn strong { color: var(--gold-cta-active); }
.prose table thead th { white-space: nowrap; }
@media (max-width: 767px) {
  .prose td, .prose th { min-width: 160px; }
  .prose td:first-child, .prose th:first-child { min-width: 0; }
}

/* Tick-list (was .checklist) */
.prose ul.checklist { list-style: none; padding-left: 0; }
.prose ul.checklist li { position: relative; padding-left: 30px; }
.prose ul.checklist li::before {
  content: "\2713"; position: absolute; left: 0; top: 0;
  color: var(--gold-cta); font-weight: 700;
}

/* Month cards (seasonal guide) */
.prose .season-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 20px 24px; box-shadow: var(--e1);
}
.prose .season-card h3 { margin-top: 0; color: var(--forest); }
.prose .season-card ul { margin: 10px 0 0; }

/* Interactive diagram slot (filled elsewhere) — no space when empty */
#seven-metre-slot:empty { display: none; }

/* "Is it knotweed?" checker callout */
.prose a.checker-callout,
a.checker-callout {
  display: flex; align-items: center; gap: 22px; text-decoration: none; color: inherit;
  padding: 26px 30px; margin: 2em 0;
}
.checker-callout__icon {
  flex-shrink: 0; width: 56px; height: 56px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 26px;
  border: 2px solid var(--gold-cta); color: var(--gold-cta);
}
.path-card--dark .checker-callout__icon { border-color: var(--gold); color: var(--gold-light); }
.checker-callout__text { display: flex; flex-direction: column; gap: 4px; }
.checker-callout .eyebrow { margin: 0; }
.checker-callout__title { font-family: var(--font-head); font-weight: 700; font-size: 20px; line-height: 1.25; color: var(--charcoal); }
.path-card--dark .checker-callout__title { color: var(--off-white); }
.checker-callout__desc { font-size: 15.5px; line-height: 1.55; color: var(--body); margin-bottom: 6px; }
.path-card--dark .checker-callout__desc { color: var(--on-dark-82); }

/* In-article CTA card */
.article-cta-card {
  margin-top: 48px; background: var(--forest); border-radius: var(--r-panel);
  padding: clamp(28px, 4vw, 40px); box-shadow: var(--e2);
}
.article-cta-card h2 { margin-bottom: 12px; font-size: clamp(22px, 2.6vw, 28px); }
.article-cta-card p { margin: 0 0 24px; font-size: 16.5px; line-height: 1.65; }

/* Related guides */
.related__inner { max-width: 72ch; margin: 0 auto; }
.related__title { margin-bottom: 24px; font-size: clamp(22px, 2.6vw, 28px); }
.related__grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card--related .card__body { padding: 20px 22px; gap: 10px; }
.card--related .tag { align-self: flex-start; }
.card--related .card__title { font-size: 17px; margin: 0 0 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
  .newsletter-panel { grid-template-columns: 1fr; }
  .newsletter__form .btn { flex: 1 1 100%; }
  .prose a.checker-callout, a.checker-callout { flex-direction: column; align-items: flex-start; gap: 14px; padding: 22px; }
  .checker-callout__icon { width: 44px; height: 44px; font-size: 20px; }
}
