/* ══════════════════════════════════════════════════════════════════
   /vital-pulse/* — Vital Pulse Index page styles
   ──────────────────────────────────────────────────────────────────
   Page-specific styles. Reads brand tokens from styles.css; only adds
   the gauge component + layout pieces unique to this surface.

   Brand discipline (CLAUDE.md "Brand assets"):
     • Editorial palette (cream-paper, forest-ink, ochre) for chrome
     • Traffic-light tokens for status colours only
     • No Pulse heart watermark (only inside /pulse/* and /pulse-brain/)
     • No data-pulse-theme attribute on body — VP is its own surface
   ══════════════════════════════════════════════════════════════════ */

:root {
  --vp-tl-green:  #4F9C5C;
  --vp-tl-amber:  #D9931E;
  --vp-tl-red:    #B23A3A;
  --vp-rule:      #e6dccc;
}

/* ── Page chrome ─────────────────────────────────────────────────── */
body.vp-body {
  background: var(--cream-paper, #F6F2E9);
  color: var(--charcoal, #2A3020);
  font-family: 'Lato', Arial, sans-serif;
  line-height: 1.55;
  margin: 0;
}

.vp-page { max-width: 1180px; margin: 0 auto; padding: 0 28px 80px; }

.vp-banner-phase0 {
  background: rgba(184,118,42,0.12);
  border-bottom: 1px solid rgba(184,118,42,0.25);
  color: #6f4516;
  padding: 10px 28px;
  font-size: 0.88rem;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.vp-banner-phase0 strong { color: #5a3712; }

/* ── Header (sub-nav for /vital-pulse/*) ─────────────────────────── */
.vp-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  padding: 16px 0 6px;
  margin: 0 0 18px;
  border-bottom: 1px solid var(--vp-rule);
  font-size: 0.92rem;
  font-weight: 700;
}
.vp-subnav a {
  color: var(--muted-ink, #7A8A70);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.vp-subnav a:hover { color: var(--forest-ink, #1F3A2B); }
.vp-subnav a.is-active {
  color: var(--forest-ink, #1F3A2B);
  border-bottom-color: var(--ochre, #B8762A);
}

/* ── Headline region ─────────────────────────────────────────────── */
.vp-headline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 28px 0 18px;
  padding: 0;
  text-align: center;
}
.vp-headline__eyebrow {
  font-family: 'JetBrains Mono', Menlo, monospace;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  color: var(--ochre, #B8762A);
  margin: 0 0 4px;
}
.vp-headline__title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  color: var(--forest-ink, #1F3A2B);
  font-size: clamp(1.9rem, 3.5vw, 2.4rem);
  margin: 0 0 4px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.vp-headline__subtitle {
  font-size: 1rem;
  color: var(--muted-ink, #7A8A70);
  margin: 0 0 12px;
  font-weight: 400;
}
.vp-published {
  font-family: 'JetBrains Mono', Menlo, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-ink, #7A8A70);
  margin: 8px 0 0;
}
.vp-published a { color: var(--teal-ink, #1A7F6F); text-decoration: none; border-bottom: 1px solid currentColor; }
.vp-published a:hover { color: var(--ochre, #B8762A); }

/* ── Composite tile (hero gauge) ─────────────────────────────────── */
.vp-hero-tile {
  background: #fff;
  border: 1px solid var(--vp-rule);
  border-radius: 12px;
  padding: 20px 22px 22px;
  margin: 0 0 28px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(31,58,43,0.04);
}

/* ── Pillar grid ─────────────────────────────────────────────────── */
.vp-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0 0 32px;
}
@media (max-width: 880px) { .vp-pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .vp-pillars { grid-template-columns: 1fr; } }

/* v2.0 Vital Signs — five tiles in a row at full width, wrapping
   responsively. Tighter padding inside each tile so five fit cleanly. */
.vp-pillars--five { grid-template-columns: repeat(5, 1fr); gap: 10px; }
.vp-pillars--five .vp-tile { padding: 12px 10px 14px; }
.vp-pillars--five .vp-tile__label { font-size: 0.95rem; }
.vp-pillars--five .vp-tile__score { font-size: 2rem; }
@media (max-width: 1080px) { .vp-pillars--five { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .vp-pillars--five { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .vp-pillars--five { grid-template-columns: 1fr; } }

.vp-tile {
  background: #fff;
  border: 1px solid var(--vp-rule);
  border-radius: 10px;
  padding: 14px 14px 16px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.vp-tile:hover {
  border-color: var(--ochre, #B8762A);
  box-shadow: 0 4px 12px rgba(31,58,43,0.06);
  transform: translateY(-1px);
}
.vp-tile__label {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  color: var(--forest-ink, #1F3A2B);
  font-size: 1.05rem;
  margin: 0 0 6px;
}
.vp-tile__gauge {
  margin: 6px auto 6px;
  max-width: 200px;
}
.vp-tile__score {
  font-family: 'Lato', Arial, sans-serif;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 4px 0 4px;
  font-size: 2.4rem;
}
.vp-tile__status {
  font-family: 'JetBrains Mono', Menlo, monospace;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.66rem;
  font-weight: 700;
  margin: 0 0 6px;
}
.vp-tile__velocity {
  font-size: 0.86rem;
  color: var(--muted-ink, #7A8A70);
  margin: 0 0 6px;
  min-height: 1.2em;
}
.vp-tile__narrative {
  font-size: 0.84rem;
  color: var(--charcoal, #2A3020);
  line-height: 1.4;
  margin: 6px 0 8px;
  text-align: left;
}
.vp-tile__attr {
  font-size: 0.74rem;
  color: var(--purple, #6B2D8B);
  font-weight: 700;
  margin-top: auto;
}
.vp-tile__retro {
  display: inline-block;
  font-family: 'JetBrains Mono', Menlo, monospace;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--ochre, #B8762A);
  background: rgba(184,118,42,0.10);
  padding: 2px 7px;
  border-radius: 2px;
  margin: 0 auto 4px;
}
.vp-tile--composite { padding: 22px 24px 26px; }
.vp-tile--composite .vp-tile__gauge { max-width: 360px; }
.vp-tile--composite .vp-tile__score { font-size: 4.6rem; line-height: 1; }
.vp-tile--composite .vp-tile__status { font-size: 0.8rem; }
.vp-tile--composite .vp-tile__velocity { font-size: 1rem; margin: 6px 0 10px; }
.vp-tile--composite .vp-tile__headline {
  font-size: 1.06rem;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  color: var(--forest-ink, #1F3A2B);
  line-height: 1.45;
  max-width: 700px;
  margin: 6px auto 0;
}

/* ── Status colour modifiers ─────────────────────────────────────── */
.vp-tile--green .vp-tile__score, .vp-tile--green .vp-tile__status { color: var(--vp-tl-green); }
.vp-tile--amber .vp-tile__score, .vp-tile--amber .vp-tile__status { color: var(--vp-tl-amber); }
.vp-tile--red   .vp-tile__score, .vp-tile--red   .vp-tile__status { color: var(--vp-tl-red); }

/* ── Velocity badge variants ─────────────────────────────────────── */
.vp-vel--improving     { color: var(--vp-tl-green); font-weight: 700; }
.vp-vel--deteriorating { color: var(--vp-tl-red);   font-weight: 700; }
.vp-vel--stable        { color: var(--muted-ink);    font-weight: 500; }
.vp-vel--none          { color: var(--muted-ink);    font-style: italic; }

/* ── Gauge SVG component ─────────────────────────────────────────── */
.vp-gauge { display: block; width: 100%; height: auto; }
.vp-gauge .vp-gauge__needle {
  transform-origin: 50% 65%;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}

/* ── Sidebar ─────────────────────────────────────────────────────── */
.vp-sidebar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 0 0 32px;
}
@media (min-width: 960px) {
  .vp-page--landing .vp-main-grid {
    display: grid;
    grid-template-columns: minmax(0,1fr) 320px;
    gap: 24px;
    align-items: start;
  }
}
.vp-card {
  background: #fff;
  border: 1px solid var(--vp-rule);
  border-radius: 10px;
  padding: 16px 18px;
}
.vp-card h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  color: var(--forest-ink, #1F3A2B);
  font-size: 1.05rem;
  margin: 0 0 10px;
}
.vp-card p { margin: 0 0 10px; font-size: 0.92rem; }
.vp-card ul { padding-left: 18px; margin: 0; }
.vp-card li { font-size: 0.88rem; margin: 0 0 6px; }
.vp-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
/* Brand Pack §7: 2px sharp radius, sentence-case, verb-led, ochre primary
   for editorial CTAs. Mirrors styles.css .btn dimensions but lighter. */
.vp-cta {
  display: inline-block;
  padding: 10px 18px;
  background: var(--ochre, #B8762A);
  color: #fff;
  text-decoration: none;
  border-radius: 2px;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  border: 1px solid var(--ochre, #B8762A);
  transition: background .15s, border-color .15s, color .15s;
}
.vp-cta:hover { background: var(--ochre-light, #D08C3A); border-color: var(--ochre-light, #D08C3A); }
.vp-cta--ghost {
  background: transparent;
  color: var(--forest-ink, #1F3A2B);
  border-color: var(--forest-ink, #1F3A2B);
}
.vp-cta--ghost:hover { background: var(--forest-ink, #1F3A2B); color: #fff; }

/* ── Vitagri brand bar (top of every VP page) ────────────────────
   Mirrors the site-wide site-nav__brand pattern but compact. The
   tagline lockup is the right register for first-touch surfaces;
   /vital-pulse/* is part of the family of public infrastructure. */
.vp-brandbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 0 8px;
  border-bottom: 1px solid var(--vp-rule);
}
.vp-brandbar__brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.vp-brandbar__logo {
  height: 56px;
  width: auto;
  display: block;
}
@media (max-width: 540px) { .vp-brandbar__logo { height: 44px; } }
.vp-brandbar__product {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  color: var(--forest-ink, #1F3A2B);
  font-size: 1.05rem;
  border-left: 1px solid var(--vp-rule);
  padding-left: 12px;
}
.vp-brandbar__product em {
  color: var(--ochre, #B8762A);
  font-style: italic;
  font-weight: 500;
}
.vp-brandbar__home {
  font-family: 'JetBrains Mono', Menlo, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-ink, #7A8A70);
  text-decoration: none;
}
.vp-brandbar__home:hover { color: var(--ochre, #B8762A); }

/* ── Ticker ──────────────────────────────────────────────────────── */
.vp-ticker__item {
  border-bottom: 1px dashed var(--vp-rule);
  padding: 8px 0;
  font-size: 0.86rem;
  color: var(--charcoal);
}
.vp-ticker__item:last-child { border-bottom: 0; }
.vp-ticker__ts { font-family: 'JetBrains Mono', Menlo, monospace; font-size: 0.7rem; color: var(--muted-ink); display: block; }
.vp-ticker__empty { font-size: 0.86rem; color: var(--muted-ink); font-style: italic; }

/* ── Per-pillar drill-down + content pages ──────────────────────── */
.vp-prose { max-width: 760px; }
.vp-prose h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  color: var(--forest-ink);
  font-size: clamp(1.8rem, 3.4vw, 2.3rem);
  margin: 12px 0 6px;
  line-height: 1.15;
}
.vp-prose h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  color: var(--forest-ink);
  font-size: 1.25rem;
  margin: 28px 0 10px;
}
.vp-prose h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  color: var(--forest-ink);
  font-size: 1.05rem;
  margin: 20px 0 6px;
}
.vp-prose p, .vp-prose li { font-size: 0.96rem; line-height: 1.65; }
.vp-prose a { color: var(--teal-ink, #1A7F6F); text-decoration: none; border-bottom: 1px solid currentColor; }
.vp-prose a:hover { color: var(--ochre, #B8762A); }
.vp-prose table { border-collapse: collapse; width: 100%; margin: 14px 0; font-size: 0.9rem; }
.vp-prose th, .vp-prose td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--vp-rule); }
.vp-prose th { font-family: 'JetBrains Mono', Menlo, monospace; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.74rem; color: var(--muted-ink); font-weight: 700; }
.vp-prose code { font-family: Consolas, 'JetBrains Mono', monospace; background: var(--cream-2, #EDE8DC); padding: 1px 6px; border-radius: 3px; font-size: 0.86em; }
.vp-prose pre { background: var(--cream-2, #EDE8DC); padding: 12px 14px; border-radius: 6px; overflow-x: auto; font-size: 0.84rem; }

.vp-pillar-hero {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 28px;
  align-items: center;
  margin: 16px 0 28px;
}
@media (max-width: 720px) { .vp-pillar-hero { grid-template-columns: 1fr; } }
.vp-pillar-hero__gauge { max-width: 280px; margin: 0 auto; }

/* ── Footer ──────────────────────────────────────────────────────── */
.vp-footer {
  margin: 60px 0 0;
  padding: 24px 0;
  border-top: 1px solid var(--vp-rule);
  font-size: 0.82rem;
  color: var(--muted-ink);
  text-align: center;
  line-height: 1.6;
}
.vp-footer a { color: var(--teal-ink); text-decoration: none; border-bottom: 1px solid currentColor; }
.vp-footer a:hover { color: var(--ochre, #B8762A); }
