/* ===================================================================
   BioNivesh — design tokens
   =================================================================== */
:root {
  --paper: #F2F4F0;
  --paper-raised: #FBFCFA;
  --ink: #16231F;
  --forest: #1F5D50;
  --forest-dark: #163F37;
  --slate: #4A5A5C;
  --ochre: #C1791E;
  --border: #DBDFD8;

  --font-display: 'Lora', Georgia, 'Times New Roman', serif;
  --font-body: 'Public Sans', -apple-system, 'Segoe UI', Roboto, sans-serif;

  --radius: 6px;
  --max-width: 1120px;
}

/* ===================================================================
   Reset & base
   =================================================================== */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--ochre);
  outline-offset: 2px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; max-width: 68ch; }
.prose p, .prose li { max-width: 72ch; }
.prose h2 { margin-top: 1.6em; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--forest); color: #fff;
  padding: 0.75em 1em; z-index: 100;
}
.skip-link:focus { left: 1em; top: 1em; }

/* ===================================================================
   Layout utilities
   =================================================================== */
.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 720px; }
.section { padding: 56px 0; }
.section--muted { background: #EAEDE7; }
.section--split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.eyebrow-plain { color: var(--slate); font-size: 0.95rem; margin-bottom: 0.5em; }

/* ===================================================================
   Header / nav
   =================================================================== */
.site-header { background: var(--paper-raised); border-bottom: 1px solid var(--border); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; flex-wrap: wrap; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand__mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; background: var(--forest); color: #fff;
  font-family: var(--font-display); font-weight: 600;
}
.brand__name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; }
.site-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: 0.95rem; }
.site-nav a:hover { color: var(--forest); }

.flash-banner { background: var(--ochre); color: #fff; }
.flash-banner .wrap { padding: 10px 24px; font-size: 0.95rem; }
.flash-banner a { color: #fff; text-decoration: underline; margin-left: 8px; }

/* ===================================================================
   Buttons
   =================================================================== */
.btn {
  display: inline-block; padding: 0.75em 1.5em; border-radius: var(--radius);
  font-weight: 600; text-decoration: none; border: 2px solid transparent; cursor: pointer;
  font-family: var(--font-body); font-size: 1rem;
}
.btn--primary { background: var(--forest); color: #fff; }
.btn--primary:hover { background: var(--forest-dark); }
.btn--ghost { background: transparent; border-color: var(--forest); color: var(--forest-dark); }
.btn--ghost:hover { background: var(--forest); color: #fff; }

/* ===================================================================
   Hero
   =================================================================== */
.hero { padding: 64px 0 56px; }
.hero__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.hero__lede { color: var(--slate); font-size: 1.1rem; max-width: 56ch; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.5em; }
.hero__figures {
  background: var(--paper-raised); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px;
}
.hero__figures-title { font-weight: 600; margin-bottom: 1em; }
.hero__figures dl { margin: 0; }
.figure-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.figure-row:last-child { border-bottom: none; }
.figure-row dt { color: var(--slate); }
.figure-row dd { margin: 0; font-weight: 600; font-family: var(--font-display); }
.hero__figures-note { font-size: 0.82rem; color: var(--slate); margin: 1em 0 0; max-width: none; }

/* ===================================================================
   Pathways
   =================================================================== */
.pathways { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 24px; margin-top: 28px; }
.pathway {
  background: var(--paper-raised); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px;
}
.pathway--primary { background: var(--forest); color: #fff; border-color: var(--forest); }
.pathway--primary h3, .pathway--primary a { color: #fff; }
.pathway--primary p { color: #E4EEE9; }
.pathway__step { font-family: var(--font-display); font-size: 0.9rem; opacity: 0.7; }
.pathway a { font-weight: 600; text-decoration: none; }

/* ===================================================================
   Scheme list / Diary cards
   =================================================================== */
.scheme-list { list-style: none; margin: 0; padding: 0; }
.scheme-list__item { border-bottom: 1px solid var(--border); }
.scheme-list__item a { display: block; padding: 16px 4px; text-decoration: none; color: var(--ink); }
.scheme-list__item a:hover { color: var(--forest-dark); }
.scheme-list__name { display: block; font-weight: 600; font-family: var(--font-display); }
.scheme-list__meta { display: block; font-size: 0.88rem; color: var(--slate); margin-top: 2px; }
.scheme-list__summary { display: block; margin-top: 6px; color: var(--slate); }

.diary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 8px; }
.diary-grid--full { grid-template-columns: repeat(3, 1fr); }
.diary-card { background: var(--paper-raised); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; padding: 0 0 20px; }
.diary-card__image { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.diary-card h2, .diary-card h3 { padding: 0 20px; margin-top: 18px; font-size: 1.1rem; }
.diary-card p, .diary-card time { padding: 0 20px; }
.diary-card a { text-decoration: none; color: var(--ink); }
.diary-card time { color: var(--slate); font-size: 0.85rem; }

/* ===================================================================
   Filter bar
   =================================================================== */
.filter-bar { display: flex; gap: 16px; flex-wrap: wrap; align-items: end; margin-bottom: 32px; padding: 20px; background: var(--paper-raised); border: 1px solid var(--border); border-radius: var(--radius); }
.filter-bar__field { display: flex; flex-direction: column; gap: 6px; }
.filter-bar__field label { font-size: 0.85rem; color: var(--slate); }

/* ===================================================================
   Forms
   =================================================================== */
.stacked-form { display: flex; flex-direction: column; gap: 18px; max-width: 560px; }
.stacked-form--compact { max-width: none; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-weight: 600; font-size: 0.92rem; }
.req { color: var(--ochre); }
input, select, textarea {
  font-family: var(--font-body); font-size: 1rem; padding: 0.7em 0.9em;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--paper-raised); color: var(--ink);
}
textarea { resize: vertical; }
.hp-field { position: absolute; left: -9999px; }
.steps-list, .plain-list { padding-left: 1.2em; color: var(--slate); }
.steps-list li, .plain-list li { margin-bottom: 0.7em; }
.steps-list strong { color: var(--ink); }

.notice { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; }
.notice--success { background: #E1F0E9; color: var(--forest-dark); border: 1px solid #BEDDCC; }
.notice--error { background: #FBEAEA; color: #7A2A2A; border: 1px solid #F1C7C7; }

/* ===================================================================
   Single entry / status pills / comments
   =================================================================== */
.single-entry__meta { color: var(--slate); }
.single-entry__cover { border-radius: var(--radius); margin: 1.2em 0; }
.status-pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; }
.status-pill--open { background: #E1F0E9; color: var(--forest-dark); }
.status-pill--rolling { background: #FDF1E1; color: #8A5A18; }
.status-pill--closed { background: #EDEDED; color: var(--slate); }
.source-note { background: var(--paper-raised); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; margin: 1.5em 0; }
.source-note__checked { font-size: 0.88rem; color: var(--slate); margin: 0.4em 0 0; }

.comment-list { list-style: none; padding: 0; margin: 0 0 28px; }
.comment-list__item { border-bottom: 1px solid var(--border); padding: 14px 0; }
.comment-list__meta { font-size: 0.85rem; color: var(--slate); margin-bottom: 4px; }

.empty-state { color: var(--slate); padding: 24px; background: var(--paper-raised); border: 1px dashed var(--border); border-radius: var(--radius); }

.pagination { display: flex; gap: 8px; margin-top: 32px; }
.pagination a { padding: 6px 12px; border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.pagination a.is-current { background: var(--forest); color: #fff; border-color: var(--forest); }

/* ===================================================================
   Footer
   =================================================================== */
.site-footer { background: var(--ink); color: #D8E0DA; margin-top: 64px; }
.footer__top { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 40px 24px; border-bottom: 1px solid #2A3833; flex-wrap: wrap; }
.footer__cta-label { margin: 0 0 12px; font-family: var(--font-display); font-size: 1.15rem; color: #fff; }
.footer__disclaimer { max-width: 420px; font-size: 0.85rem; color: #A9B7B0; }
.footer__disclaimer a { color: #C9D8CF; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px; flex-wrap: wrap; }
.footer__links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer__links a { color: #D8E0DA; text-decoration: none; font-size: 0.9rem; }
.footer__links a:hover { color: #fff; }
.footer__socials { display: flex; gap: 10px; }
.social-icon {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid #445048;
  display: flex; align-items: center; justify-content: center; color: #D8E0DA; text-decoration: none; font-size: 0.85rem;
}
.social-icon--placeholder { opacity: 0.45; }
.footer__copyright { font-size: 0.82rem; color: #8FA097; margin: 0; }

/* ===================================================================
   Responsive
   =================================================================== */
@media (max-width: 860px) {
  .hero__grid, .section--split { grid-template-columns: 1fr; }
  .pathways { grid-template-columns: 1fr; }
  .diary-grid, .diary-grid--full { grid-template-columns: 1fr; }
  .site-nav { gap: 14px; }
  .footer__top, .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ===================================================================
   Added after audit — classes used in templates that had no styles
   =================================================================== */
.page-hero { padding: 56px 0 32px; }
.page-hero h1 { max-width: 22ch; }
.page-hero__lede { color: var(--slate); font-size: 1.1rem; max-width: 62ch; }
.section--pathways { padding-top: 24px; }
.single-entry { padding-top: 40px; }
.error-page { padding: 96px 0; text-align: center; }
.error-page .wrap { margin: 0 auto; }
.error-page p { margin-left: auto; margin-right: auto; }
.scheme-list--full .scheme-list__item a { padding: 20px 4px; }
.footer__cta { max-width: 420px; }
.brand__logo { height: 36px; width: auto; }
.wrap.section--split { align-items: start; }
.section--split h2 { margin-top: 0; }
.notice { max-width: 560px; }
