/* ════════════════════════════════════════════════════════════
   PAGE-SPECIFIC STYLES — canwyf.org
   All page component classes, global shared components,
   and inline-style extractions across all 14 pages.
   ════════════════════════════════════════════════════════════ */

/* ════════════════════════════════════════════════════════════
   GLOBAL SHARED COMPONENTS
   ════════════════════════════════════════════════════════════ */

/* ── Stats Bar (iTONA, donate) ───────────────────────── */
.stats-bar {
  background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.stats-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 0;
}
.sb-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 24px;
  gap: 3px;
  flex: 1 1 auto;
  min-width: 100px;
}
.sb-num {
  font-family: var(--ff-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold-warm) 0%, #f5cc44 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.sb-label {
  font-family: var(--ff-mono);
  font-size: .58rem;
  color: rgba(255,255,255,.45);
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
}
.sb-div {
  width: 1px;
  background: rgba(255,255,255,.08);
  align-self: stretch;
  margin: 10px 0;
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .stats-bar-inner { gap: 0; }
  .sb-item { padding: 14px 12px; min-width: 80px; }
  .sb-div  { display: none; }
}

/* ── Hero stats (cooperative, market) ──────────────────── */
.coop-hero-stats,
.am-hero-stats {
  display: flex;
  gap: 0;
  margin-top: 28px;
  flex-wrap: wrap;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  max-width: 480px;
}
.chs-item,
.am-hs-item {
  flex: 1 1 auto;
  padding: 16px 20px;
  background: rgba(255,255,255,.06);
  text-align: center;
}
.chs-item:not(:last-child),
.am-hs-item:not(:last-child) {
  border-right: 1px solid rgba(255,255,255,.1);
}
.chs-item strong,
.am-hs-item strong {
  display: block;
  font-family: var(--ff-display);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--gold-warm);
  line-height: 1;
  margin-bottom: 3px;
}
.chs-item span,
.am-hs-item span {
  font-family: var(--ff-mono);
  font-size: .58rem;
  color: rgba(255,255,255,.5);
  letter-spacing: .8px;
  text-transform: uppercase;
}
.chs-div, .am-hs-div { display: none; }

/* ── Page hero tagline ──────────────────────────────────── */
.page-hero-tagline {
  font-family: var(--ff-display);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-style: italic;
  color: rgba(255,255,255,.65);
  text-align: center;
  margin: 0 auto 14px;
  max-width: 560px;
}

/* ── News Grid & Cards (shared across pages) ────────────── */
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 600px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }

.news-card {
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--rule);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--t-base);
}
.news-card:hover {
  border-color: var(--green-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.news-img {
  height: 180px;
  background-size: cover;
  background-position: center;
  background-color: var(--green-light);
  flex-shrink: 0;
}
.news-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--green-pale) 0%, var(--green-light) 100%);
}
.news-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}
.news-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.news-category {
  font-family: var(--ff-mono);
  font-size: .6rem;
  color: var(--green);
  letter-spacing: 1px;
  text-transform: uppercase;
  background: var(--green-pale);
  border: 1px solid var(--green-light);
  border-radius: 100px;
  padding: 2px 9px;
}
.news-date {
  font-family: var(--ff-mono);
  font-size: .62rem;
  color: var(--ink-soft);
}
.news-title {
  font-family: var(--ff-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  flex: 1;
}
.news-title a {
  color: inherit;
  text-decoration: none;
  transition: color .2s;
}
.news-title a:hover { color: var(--green); }
.news-excerpt {
  font-size: .82rem;
  color: var(--ink-soft);
  line-height: 1.6;
  font-weight: 300;
}
.news-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--rule);
  font-size: .75rem;
  color: var(--ink-soft);
  margin-top: auto;
}
.news-read {
  color: var(--green);
  font-weight: 600;
  font-size: .78rem;
  text-decoration: none;
  transition: var(--t-fast);
  white-space: nowrap;
}
.news-read:hover { color: var(--green-mid); }

/* ── News / Gallery Filters ─────────────────────────────── */
.news-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.nf-btn {
  font-family: var(--ff-mono);
  font-size: .68rem;
  color: rgba(255,255,255,.6);
  letter-spacing: .5px;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.06);
  text-decoration: none;
  transition: var(--t-base);
  white-space: nowrap;
}
.nf-btn:hover,
.nf-btn.active {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.3);
  color: var(--white);
}
.nf-btn.active {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

/* ── Pagination ─────────────────────────────────────────── */
.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}
.pag-btn, .pg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--rule);
  background: var(--white);
  color: var(--ink-mid);
  font-size: .85rem;
  font-family: var(--ff-body);
  text-decoration: none;
  transition: var(--t-fast);
  cursor: pointer;
}
.pag-btn:hover, .pg-btn:hover {
  border-color: var(--green);
  color: var(--green);
}
.pag-btn.active, .pg-current {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
  font-weight: 600;
}
.pg-gap {
  display: flex;
  align-items: center;
  padding: 0 4px;
  color: var(--ink-soft);
  font-size: .85rem;
}
.pg-info {
  width: 100%;
  font-size: .75rem;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 8px;
  font-family: var(--ff-mono);
  letter-spacing: .3px;
}
@media (max-width: 480px) {
  .impact-filter-bar { gap: 6px; }
  .impact-filter-bar .if-select { font-size: .78rem; padding-right: 26px; }
}

/* ── Empty State ────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: clamp(48px, 8vw, 96px) 20px;
  color: var(--ink-soft);
}
.es-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: .5;
}
.empty-state h3 {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}
.empty-state p {
  font-size: .9rem;
  color: var(--ink-soft);
  max-width: 420px;
  margin: 0 auto;
  line-height: 1.65;
  font-weight: 300;
}

/* ── Gallery full grid ──────────────────────────────────── */
.gallery-full {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (min-width: 900px) { .gallery-full { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 600px) { .gallery-full { grid-template-columns: repeat(2, 1fr); } }

.gm-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, transparent 100%);
  padding: 24px 14px 10px;
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.gm-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
}
.gm-item:hover .gm-caption { opacity: 1; }
.gm-loc {
  font-family: var(--ff-mono);
  font-size: .6rem;
  color: rgba(255,255,255,.75);
  letter-spacing: .5px;
  display: block;
  margin-top: 2px;
}
.gm-caption > span {
  font-size: .8rem;
  color: var(--white);
  font-weight: 400;
  display: block;
}

/* ════════════════════════════════════════════════════════════
   INDEX PAGE
   ════════════════════════════════════════════════════════════ */

/* Final CTA section */
.final-cta-section {
  background: linear-gradient(150deg, #060f0a 0%, #0a2014 25%, #0d3d22 60%, #1A6B3C 100%);
  padding: clamp(64px, 10vw, 112px) clamp(20px, 5vw, 48px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(42,138,80,.14) 0%, transparent 55%);
  pointer-events: none;
}
.final-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}
.fci-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-full);
  padding: 5px 16px;
  margin-bottom: 20px;
  font-family: var(--ff-mono);
  font-size: .6rem;
  color: rgba(255,255,255,.65);
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.fci-title {
  font-family: var(--ff-display);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.08;
  margin-bottom: 16px;
}
.fci-desc {
  font-size: clamp(.9rem, 1.3vw, 1rem);
  color: rgba(255,255,255,.7);
  line-height: 1.78;
  font-weight: 300;
  margin-bottom: 30px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.fci-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
@media (max-width: 500px) {
  .fci-actions { flex-direction: column; align-items: center; }
  .fci-actions > * { width: 100%; max-width: 320px; justify-content: center; }
}

/* Gallery preview / placeholder section */
.gallery-preview-section,
.gallery-placeholder-section {
  padding: clamp(48px, 8vw, 80px) clamp(20px, 5vw, 48px);
}
.gp-inner {
  text-align: center;
  padding: clamp(48px, 8vw, 80px) 20px;
}
.gp-icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
  opacity: .55;
}

/* Intel teaser section (homepage) */
.intel-teaser-section {
  padding: clamp(64px, 9vw, 112px) clamp(20px, 5vw, 48px);
}
.intel-teaser-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.intel-sources {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.is-col { flex: 1 1 160px; }
.is-col-title {
  font-family: var(--ff-mono);
  font-size: .6rem;
  color: var(--ink-soft);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.is-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: var(--ink-mid);
  padding: 6px 0;
  border-bottom: 1px solid var(--rule);
}
.is-item:last-child { border-bottom: none; }
.is-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}
.is-gold .is-dot { background: var(--gold); }
.intel-teaser-right {}

/* Intelligence Preview Card */
.intel-preview-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--t-base);
}
.intel-preview-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.ipc-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--rule);
  background: var(--green-pale);
}
.ipc-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse-ring 2.2s ease-out infinite;
}
.ipc-live {
  font-family: var(--ff-mono);
  font-size: .58rem;
  color: var(--green);
  letter-spacing: 1px;
  text-transform: uppercase;
  flex-shrink: 0;
}
.ipc-title {
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink);
  flex: 1;
  min-width: 0;
}
.ipc-loc {
  font-family: var(--ff-mono);
  font-size: .6rem;
  color: var(--ink-soft);
  white-space: nowrap;
}

/* Weather block */
.ipc-weather {
  padding: 16px 18px;
  border-bottom: 1px solid var(--rule);
}
.ipc-weather-main {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.ipc-temp {
  font-family: var(--ff-display);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--ink);
  line-height: 1;
}
.ipc-weather-desc {
  font-size: .82rem;
  color: var(--ink-soft);
  font-weight: 300;
}
.ipc-rain {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ipc-rain-label {
  font-family: var(--ff-mono);
  font-size: .6rem;
  color: var(--ink-soft);
  letter-spacing: .5px;
  white-space: nowrap;
}
.ipc-rain-bar {
  flex: 1;
  height: 6px;
  background: var(--rule);
  border-radius: 100px;
  overflow: hidden;
  min-width: 60px;
}
.ipc-rain-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue) 0%, #4a8fd0 100%);
  border-radius: 100px;
  transition: width .6s ease;
}
.ipc-rain-val {
  font-family: var(--ff-mono);
  font-size: .68rem;
  color: var(--blue);
  white-space: nowrap;
}

/* Soil block */
.ipc-soil {
  padding: 14px 18px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.ipc-soil-item {
  flex: 1 1 80px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ipc-soil-label {
  font-family: var(--ff-mono);
  font-size: .58rem;
  color: var(--ink-soft);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.ipc-soil-val {
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink);
}
.ipc-soil-green { color: var(--green); }

/* Local indicators */
.ipc-local {
  padding: 14px 18px;
  border-bottom: 1px solid var(--rule);
}
.ipc-local-title {
  font-family: var(--ff-mono);
  font-size: .6rem;
  color: var(--ink-soft);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.ipc-local-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  color: var(--ink-mid);
  padding: 4px 0;
  border-bottom: 1px solid var(--rule);
  font-weight: 300;
}
.ipc-local-item:last-child { border-bottom: none; }

/* CTA inside preview card */
.ipc-cta {
  padding: 14px 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* LSC stat (homepage live stats) */
.lsc-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ════════════════════════════════════════════════════════════
   iTONA PAGE
   ════════════════════════════════════════════════════════════ */

/* Problem grid */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 36px;
}
@media (min-width: 600px) { .problem-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .problem-grid { grid-template-columns: repeat(4, 1fr); } }

.problem-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: clamp(20px, 3vw, 28px);
  transition: var(--t-base);
  border-top: 3px solid var(--green-light);
}
.problem-card:hover {
  border-top-color: var(--green);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.problem-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}
.problem-title {
  font-family: var(--ff-display);
  font-size: .95rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.problem-desc {
  font-size: .82rem;
  color: var(--ink-soft);
  line-height: 1.62;
  font-weight: 300;
}

/* Flow steps */
.flow-steps {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.flow-step {
  flex: 1 1 140px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  transition: var(--t-base);
  min-width: 0;
}
.flow-step:hover {
  border-color: var(--green-light);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.fs-num {
  font-family: var(--ff-mono);
  font-size: .6rem;
  color: var(--green);
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.fs-icon {
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.fs-title {
  font-size: .88rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.fs-desc {
  font-size: .78rem;
  color: var(--ink-soft);
  line-height: 1.6;
  font-weight: 300;
}
.flow-arrow {
  font-size: 1.4rem;
  color: var(--green-light);
  align-self: center;
  flex-shrink: 0;
  padding: 0 4px;
  margin-top: -8px;
}
@media (max-width: 768px) {
  .flow-steps { flex-direction: column; gap: 10px; }
  .flow-arrow { transform: rotate(90deg); align-self: flex-start; margin-left: 24px; }
}

/* Sub-programme grid */
.subprog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 36px;
}
@media (min-width: 600px) { .subprog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .subprog-grid { grid-template-columns: repeat(3, 1fr); } }

/* Sub-programme card colour accents */
.sp-verify  { border-top: 3px solid var(--green); }
.sp-trace   { border-top: 3px solid var(--blue); }
.sp-market  { border-top: 3px solid var(--gold); }
.sp-store   { border-top: 3px solid var(--earth); }
.sp-shield  { border-top: 3px solid #6b4c9a; }

.sp-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}
.sp-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.sp-eyebrow {
  font-family: var(--ff-mono);
  font-size: .58rem;
  color: var(--ink-soft);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.sp-name {
  font-family: var(--ff-display);
  font-size: 1rem;
  font-weight: 900;
  color: var(--ink);
  line-height: 1.2;
}
.sp-desc {
  font-size: .83rem;
  color: var(--ink-soft);
  line-height: 1.65;
  font-weight: 300;
  margin-bottom: 14px;
}
.sp-features {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
}
.sp-features span {
  font-size: .78rem;
  color: var(--ink-mid);
  font-weight: 300;
  line-height: 1.5;
}
.sp-synergy-label {
  font-size: .72rem;
  font-weight: 600;
  color: var(--green);
  margin-top: 10px;
  margin-bottom: 4px;
}
.sp-synergy-text {
  font-size: .75rem;
  color: var(--ink-soft);
  line-height: 1.55;
  font-weight: 300;
}
.sp-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}

/* Grant cards (grid already exists) */
.grant-flag {
  font-size: 1.6rem;
  margin-bottom: 10px;
}
.grant-name {
  font-family: var(--ff-display);
  font-size: .95rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.grant-desc {
  font-size: .8rem;
  color: var(--ink-soft);
  line-height: 1.6;
  font-weight: 300;
}

/* Integrity cards (dark section inline glass cards) */
.integrity-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-md);
  padding: clamp(18px, 3vw, 24px);
  transition: var(--t-base);
}
.integrity-card:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.22);
}
.integrity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 36px;
}

/* ════════════════════════════════════════════════════════════
   ECOVITALIZE PAGE
   ════════════════════════════════════════════════════════════ */

.eco-challenge-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}
.ecc {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--earth-light);
  border: 1px solid rgba(92,58,30,.12);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: .85rem;
  color: var(--earth);
  font-weight: 400;
  transition: var(--t-fast);
}
.ecc:hover {
  border-color: rgba(92,58,30,.25);
  box-shadow: var(--shadow-sm);
}
.ecc-icon { font-size: 1.3rem; flex-shrink: 0; }

/* Eco pillars */
.eco-pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 36px;
}
@media (min-width: 600px) { .eco-pillars { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .eco-pillars { grid-template-columns: repeat(4, 1fr); } }

.eco-pillar {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: clamp(20px, 3vw, 28px);
  border-top: 3px solid var(--earth);
  transition: var(--t-base);
}
.eco-pillar:hover {
  box-shadow: var(--shadow-earth);
  transform: translateY(-4px);
}
.ep-icon { font-size: 1.8rem; margin-bottom: 12px; }
.ep-title {
  font-family: var(--ff-display);
  font-size: .95rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.ep-desc {
  font-size: .82rem;
  color: var(--ink-soft);
  line-height: 1.62;
  font-weight: 300;
  margin-bottom: 12px;
}
.ep-income {
  font-family: var(--ff-mono);
  font-size: .66rem;
  color: var(--earth);
  background: var(--earth-light);
  border: 1px solid rgba(92,58,30,.15);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  display: inline-block;
  letter-spacing: .5px;
}

/* Synergy visual */
.synergy-flows {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sf-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .88rem;
  color: rgba(255,255,255,.75);
  font-weight: 300;
}
.sf-arrow {
  color: var(--gold-warm);
  font-size: 1rem;
  flex-shrink: 0;
}
.synergy-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 200px;
}
.synergy-visual > p {
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  width: 100%;
  margin: 0;
}
.sv-centre {
  width: 80px;
  height: 80px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 0 0 8px rgba(42,138,80,.2), 0 0 0 16px rgba(42,138,80,.08);
  position: relative;
  z-index: 1;
}
.sv-label {
  position: absolute;
  font-family: var(--ff-mono);
  font-size: .6rem;
  color: rgba(255,255,255,.55);
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
}
.sv-1 { top: 10px; left: 50%; transform: translateX(-50%); }
.sv-2 { bottom: 10px; left: 50%; transform: translateX(-50%); }
.sv-3 { left: 10px; top: 50%; transform: translateY(-50%); }
.sv-4 { right: 10px; top: 50%; transform: translateY(-50%); }
.sv-5 { top: 28px; right: 28px; }

@media (max-width: 640px) {
  .synergy-visual {
    height: 260px;
    padding: 20px 22px 44px;
  }
  .synergy-visual > p {
    bottom: 0;
    font-size: .72rem !important;
    padding: 0 12px;
  }
  .sv-label {
    max-width: 96px;
    white-space: normal;
    line-height: 1.35;
    font-size: .52rem;
  }
  .sv-1 { top: 0; left: 50%; transform: translateX(-50%); }
  .sv-2 { bottom: 40px; left: 50%; transform: translateX(-50%); }
  .sv-3 { left: 0; top: 50%; transform: translateY(-50%); text-align: left; }
  .sv-4 { right: 0; top: 50%; transform: translateY(-50%); text-align: right; }
  .sv-5 { top: 18px; right: 8px; }
}

/* Eco phases */
.eco-phases {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 36px;
}
@media (min-width: 640px) { .eco-phases { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .eco-phases { grid-template-columns: repeat(3, 1fr); } }

.eco-phase {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: clamp(18px, 3vw, 26px);
  transition: var(--t-base);
  position: relative;
}
.eco-phase.active {
  border-color: var(--earth);
  box-shadow: 0 0 0 1px var(--earth), var(--shadow-earth);
}
.eco-phase:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.ephase-label {
  font-family: var(--ff-mono);
  font-size: .58rem;
  color: var(--earth);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.ephase-title {
  font-family: var(--ff-display);
  font-size: .95rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}
.ephase-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ephase-items span {
  font-size: .8rem;
  color: var(--ink-soft);
  font-weight: 300;
  line-height: 1.5;
}
.eco-phase.active .ephase-label { color: var(--earth); }

/* ════════════════════════════════════════════════════════════
   COOPERATIVE PAGE
   ════════════════════════════════════════════════════════════ */

/* Model box */
.coop-model-box {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 4vw, 32px);
  box-shadow: var(--shadow-sm);
}
.cmb-tier {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.cmb-tier:last-of-type { border-bottom: none; }
.cmb-tier-icon {
  font-size: 1.4rem;
  width: 42px;
  height: 42px;
  background: var(--green-pale);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cmb-tier-content { flex: 1; min-width: 0; }
.cmb-tier-name {
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}
.cmb-tier-desc {
  font-size: .78rem;
  color: var(--ink-soft);
  font-weight: 300;
  line-height: 1.5;
}
.cmb-arrow {
  color: var(--green-light);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.cmb-tier-chapter {
  border-top: 2px solid var(--green-light);
}
.cmb-tier-chapter .cmb-tier-name {
  font-family: var(--ff-mono);
  font-size: .58rem;
  color: var(--green);
  letter-spacing: .5px;
  margin-top: 3px;
}

/* Coop steps */
.coop-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 36px;
}
@media (min-width: 600px) { .coop-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .coop-steps { grid-template-columns: repeat(4, 1fr); } }

.cstep {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: clamp(20px, 3vw, 26px);
  position: relative;
  transition: var(--t-base);
}
.cstep:hover {
  border-color: var(--green-light);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.cstep-num {
  font-family: var(--ff-mono);
  font-size: .58rem;
  color: var(--green);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.cstep-icon { font-size: 1.5rem; margin-bottom: 10px; }
.cstep-title {
  font-size: .9rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.cstep-desc {
  font-size: .8rem;
  color: var(--ink-soft);
  line-height: 1.6;
  font-weight: 300;
}

/* Member types */
.member-types-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 32px;
}
@media (min-width: 768px) { .member-types-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .member-types-grid { grid-template-columns: repeat(4, 1fr); } }

.mtype {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  transition: var(--t-base);
}
.mtype:hover {
  border-color: var(--green-light);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.mtype-icon { font-size: 1.8rem; margin-bottom: 8px; }
.mtype-name {
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.mtype-desc {
  font-size: .76rem;
  color: var(--ink-soft);
  line-height: 1.55;
  font-weight: 300;
  margin-bottom: 8px;
}
.mtype-count {
  font-family: var(--ff-mono);
  font-size: .62rem;
  color: var(--green);
  background: var(--green-pale);
  border: 1px solid var(--green-light);
  border-radius: 100px;
  padding: 2px 10px;
  display: inline-block;
}

/* Rights grid */
.rights-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 36px;
}
@media (min-width: 600px) { .rights-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .rights-grid { grid-template-columns: repeat(3, 1fr); } }

.right-item {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  transition: var(--t-base);
}
.right-item:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.18);
}
.ri-icon { font-size: 1.5rem; margin-bottom: 10px; }
.ri-title {
  font-size: .9rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
}
.ri-desc {
  font-size: .8rem;
  color: rgba(255,255,255,.6);
  line-height: 1.6;
  font-weight: 300;
}

/* Chapters grid */
.chapters-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 32px;
}
@media (min-width: 600px) { .chapters-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .chapters-grid { grid-template-columns: repeat(3, 1fr); } }

.chapter-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: clamp(18px, 3vw, 24px);
  transition: var(--t-base);
}
.chapter-card:hover {
  border-color: var(--green-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.cc-code {
  font-family: var(--ff-mono);
  font-size: .6rem;
  color: var(--green);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.cc-name {
  font-family: var(--ff-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.cc-location {
  font-size: .8rem;
  color: var(--ink-soft);
  margin-bottom: 12px;
  font-weight: 300;
}
.cc-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
}
.ccs-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ccs-item strong {
  font-size: .9rem;
  font-weight: 700;
  color: var(--ink);
}
.ccs-item span {
  font-family: var(--ff-mono);
  font-size: .58rem;
  color: var(--ink-soft);
  letter-spacing: .5px;
  text-transform: uppercase;
}
.cc-status {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: .6rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  margin-top: 10px;
  background: var(--earth-light);
  color: var(--earth);
  border: 1px solid rgba(92,58,30,.18);
}
.cc-status-active {
  background: var(--green-pale);
  color: var(--green);
  border-color: var(--green-light);
}
.chapter-card-next {
  background: var(--green-pale);
  border: 1.5px dashed var(--green-light);
  text-align: center;
  justify-content: center;
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 140px;
}
.cc-next-desc {
  font-size: .82rem;
  color: var(--green);
  font-weight: 300;
}

/* Breakdown row */
.coop-breakdown-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 32px;
}
@media (min-width: 600px) { .coop-breakdown-row { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .coop-breakdown-row { grid-template-columns: repeat(3, 1fr); } }

.cbr-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: clamp(18px, 3vw, 24px);
}
.cbr-title {
  font-family: var(--ff-mono);
  font-size: .6rem;
  color: var(--ink-soft);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.cbr-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cbr-bar {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cbr-bar-label {
  font-size: .78rem;
  color: var(--ink-mid);
  font-weight: 500;
  line-height: 1.3;
}
.cbr-bar-bg {
  height: 8px;
  background: var(--rule);
  border-radius: 100px;
  overflow: hidden;
}
.cbr-fill {
  height: 8px;
  border-radius: 100px;
  transition: width .8s ease;
}
.cbr-women  .cbr-fill { background: linear-gradient(90deg, #e8529a 0%, #f07bc0 100%); }
.cbr-youth  .cbr-fill { background: linear-gradient(90deg, var(--blue) 0%, #4a8fd0 100%); }
.cbr-sealed .cbr-fill { background: linear-gradient(90deg, var(--green) 0%, var(--green-mid) 100%); }
.cbr-type-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.cbr-type-row span {
  font-size: .72rem;
  color: var(--ink-soft);
  background: var(--green-pale);
  border: 1px solid var(--green-light);
  border-radius: 100px;
  padding: 2px 10px;
}

/* ════════════════════════════════════════════════════════════
   INTELLIGENCE PAGE
   ════════════════════════════════════════════════════════════ */

.intel-location-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  margin-top: 20px;
  max-width: 100%;             /* don't exceed hero width on mobile */
  width: fit-content;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
  flex-wrap: wrap;
}
.ilb-dot {
  width: 7px;
  height: 7px;
  background: var(--gold-warm);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse-ring 2s ease-out infinite;
}
.ilb-btn {
  font-family: var(--ff-mono);
  font-size: .65rem;
  color: rgba(255,255,255,.7);
  letter-spacing: .5px;
  flex: 1;
}
.ilb-btn:hover { color: var(--white); }

/* Location prompt */
.location-prompt-wrap {
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.location-prompt {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 5vw, 48px);
  text-align: center;
  max-width: 460px;
  width: 100%;
  box-shadow: var(--shadow-sm);
}
.lp-icon { font-size: 2.5rem; margin-bottom: 14px; }
.lp-title {
  font-family: var(--ff-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.lp-sub {
  font-size: .85rem;
  color: var(--ink-soft);
  font-weight: 300;
  margin-bottom: 20px;
  line-height: 1.6;
}
.lp-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 16px;
}
.lp-or {
  font-family: var(--ff-mono);
  font-size: .62rem;
  color: var(--ink-soft);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.lp-search-row {
  display: flex;
  gap: 8px;
}
.lp-search-input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid var(--rule);
  border-radius: var(--radius-sm);
  font-family: var(--ff-body);
  font-size: .88rem;
  transition: var(--t-base);
}
.lp-search-input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(26,107,60,.1);
  outline: none;
}
.lp-results {
  text-align: left;
  margin-top: 8px;
}

/* Intel portal */
.intel-portal-section {
  padding: clamp(40px, 6vw, 64px) clamp(20px, 5vw, 48px);
  background: var(--cream);
}
.intel-location-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.ils-change {
  font-size: .8rem;
  color: var(--green);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}
.ils-change:hover { text-decoration: underline; }
.intel-col { display: flex; flex-direction: column; gap: 16px; }
.intel-weather-col {}
.intel-guidance-col {}

/* Dark variant cards — override site.css intel-card:hover green flash */
.intel-card-dark,
.intel-card-eco {
  border-radius: var(--radius-md);
  padding: clamp(16px, 3vw, 24px);
  color: var(--white);
  /* override site.css .intel-card base bg/border */
  background: linear-gradient(135deg, #06080f 0%, #0d1a2e 100%);
  border: 1px solid rgba(255,255,255,.08);
  /* override .intel-card:hover transform — handled below */
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.intel-card-eco {
  background: linear-gradient(135deg, #0a1a0e 0%, #0d3d22 100%);
  border-color: rgba(255,255,255,.07);
}
/* Suppress site.css green hover for dark cards */
.intel-card-dark:hover,
.intel-card-eco:hover {
  border-color: rgba(255,255,255,.18) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,.45) !important;
  transform: translateY(-2px);
}

.ic-title {
  font-family: var(--ff-mono);
  font-size: .6rem;
  color: var(--ink-soft);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}
.intel-card-dark .ic-title,
.intel-card-eco .ic-title {
  color: rgba(255,255,255,.4);
  border-bottom-color: rgba(255,255,255,.08);
}

/* Loading spinners — default (white card context) */
.wc-loading, .sg-loading, .pc-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .85rem;
  color: var(--ink-soft);
  padding: 16px 0;
}
.wc-loading::before, .sg-loading::before, .pc-loading::before {
  content: '';
  width: 18px;
  height: 18px;
  border: 2px solid var(--rule);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Loading spinners inside dark cards */
.intel-card-dark .wc-loading,
.intel-card-dark .pc-loading,
.intel-card-eco .sg-loading {
  color: rgba(255,255,255,.45);
}
.intel-card-dark .wc-loading::before,
.intel-card-dark .pc-loading::before,
.intel-card-eco .sg-loading::before {
  border-color: rgba(255,255,255,.12);
  border-top-color: var(--gold-warm);
}

/* Source attribution */
.intel-source {
  font-family: var(--ff-mono);
  font-size: .56rem;
  color: var(--ink-soft);
  letter-spacing: .5px;
  margin-top: 10px;
  line-height: 1.5;
}
/* Source on dark cards */
.intel-card-dark .intel-source,
.intel-card-eco .intel-source {
  color: rgba(255,255,255,.25);
}

.pc-context {
  font-size: .82rem;
  color: var(--ink-mid);
  line-height: 1.65;
  font-weight: 300;
  margin-bottom: 12px;
}

/* Local indicators — inside intel-card-eco (dark green) */
.local-indicators {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.li-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .82rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.08); /* dark card divider */
  flex-wrap: wrap;
}
.li-item:last-child { border-bottom: none; }
.li-indicator { flex: 1; color: rgba(255,255,255,.8); font-weight: 400; min-width: 120px; }
.li-meaning   { font-size: .75rem; color: rgba(255,255,255,.5); font-weight: 300; width: 100%; padding-left: 0; }
.li-status {
  font-family: var(--ff-mono);
  font-size: .56rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 100px;
  flex-shrink: 0;
  white-space: nowrap;
}
.status-active { background: rgba(42,160,80,.25); color: #7fda9a; border: 1px solid rgba(42,160,80,.35); }
.status-clear  { background: rgba(59,130,246,.2); color: #93c5fd; border: 1px solid rgba(59,130,246,.3); }
.status-unknown, .status-collecting {
  background: rgba(220,160,20,.2); color: #fcd34d;
  border: 1px solid rgba(220,160,20,.3);
}
.li-active {
  background: rgba(42,160,80,.08);
  border-radius: var(--radius-sm);
  padding-left: 8px;
  padding-right: 8px;
}

/* Yield prediction card */
.ypc-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}
.ypc-header h3 {
  font-family: var(--ff-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 5px;
}
.ypc-header p {
  font-size: .82rem;
  color: var(--ink-soft);
  font-weight: 300;
  line-height: 1.55;
}
.ypc-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ypc-input {
  flex: 1 1 140px;
  padding: 10px 14px;
  border: 1.5px solid var(--rule);
  border-radius: var(--radius-sm);
  font-family: var(--ff-body);
  font-size: .88rem;
  transition: var(--t-base);
}
.ypc-input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(26,107,60,.1);
  outline: none;
}
.ypc-result {
  margin-top: 20px;
  padding: 18px;
  background: var(--green-pale);
  border: 1px solid var(--green-light);
  border-radius: var(--radius-md);
  font-size: .88rem;
  color: var(--ink);
  line-height: 1.65;
}

/* Plant doctor card */
.pd-web-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 36px);
  box-shadow: var(--shadow-sm);
}
.pd-drop-area {
  border: 2px dashed var(--rule);
  border-radius: var(--radius-md);
  padding: clamp(32px, 6vw, 56px) 24px;
  text-align: center;
  transition: var(--t-base);
  cursor: pointer;
}
.pd-drop-area:hover,
.pd-drop-area.drag-over {
  border-color: var(--green);
  background: var(--green-pale);
}
.pd-drop-icon { font-size: 2.5rem; margin-bottom: 12px; }
.pd-drop-text {
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.pd-drop-sub {
  font-size: .8rem;
  color: var(--ink-soft);
  font-weight: 300;
}
.pd-upload-zone {}
.pd-web-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}
.pd-web-select,
.pd-web-input {
  padding: 10px 14px;
  border: 1.5px solid var(--rule);
  border-radius: var(--radius-sm);
  font-family: var(--ff-body);
  font-size: .88rem;
  transition: var(--t-base);
}
.pd-web-select:focus,
.pd-web-input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(26,107,60,.1);
  outline: none;
}
.pd-web-result {
  margin-top: 20px;
  padding: 18px;
  background: var(--green-pale);
  border: 1px solid var(--green-light);
  border-radius: var(--radius-md);
}
.pd-web-preview { margin-bottom: 14px; }
.pd-web-file {
  font-size: .8rem;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

/* Data sources grid */
.datasource-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 32px;
}
@media (min-width: 640px) { .datasource-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .datasource-grid { grid-template-columns: repeat(4, 1fr); } }

.ds-logo {
  font-size: 1.8rem;
  margin-bottom: 10px;
}
.ds-name {
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.ds-data {
  font-size: .75rem;
  color: var(--ink-soft);
  line-height: 1.55;
  font-weight: 300;
}

/* ════════════════════════════════════════════════════════════
   MARKET PAGE
   ════════════════════════════════════════════════════════════ */

/* How it works bar */
.am-how-bar {
  background: var(--green-pale);
  border-top: 1px solid var(--green-light);
  border-bottom: 1px solid var(--green-light);
  padding: 24px clamp(20px, 5vw, 48px);
}
.am-how-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.am-how-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--white);
  border: 1px solid var(--green-light);
  border-radius: var(--radius-full);
  font-size: .82rem;
  color: var(--ink-mid);
  white-space: nowrap;
  flex-shrink: 0;
}
.am-how-icon { font-size: 1rem; flex-shrink: 0; }
.am-how-arrow {
  color: var(--green-light);
  font-size: 1rem;
  flex-shrink: 0;
}

/* Filter bar */
.am-filter-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}
.if-select {
  padding: 9px 14px;
  border: 1.5px solid var(--rule);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-family: var(--ff-body);
  font-size: .85rem;
  color: var(--ink);
  cursor: pointer;
  transition: var(--t-fast);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236a6a5a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.if-select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(26,107,60,.1);
  outline: none;
}
.if-clear {
  font-size: .8rem;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--rule);
  background: var(--white);
  transition: var(--t-fast);
  white-space: nowrap;
}
.if-clear:hover { color: var(--green); border-color: var(--green-light); }

/* Listings grid */
.am-listings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 640px) { .am-listings-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .am-listings-grid { grid-template-columns: repeat(3, 1fr); } }

.am-listing-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--t-base);
  display: flex;
  flex-direction: column;
}
.am-listing-card:hover {
  border-color: var(--green-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.am-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--rule);
  background: var(--green-pale);
}
.am-crop-icon {
  font-size: 1.8rem;
  width: 46px;
  height: 46px;
  background: var(--white);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.am-crop-info { flex: 1; min-width: 0; }
.am-crop-name {
  font-family: var(--ff-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 3px;
}
.am-listing-age {
  font-family: var(--ff-mono);
  font-size: .6rem;
  color: var(--ink-soft);
  letter-spacing: .5px;
}
.am-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--green);
  color: var(--white);
  font-size: .62rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Card body */
.am-price-row,
.am-qty,
.am-farmer-row,
.am-badges,
.am-notes {
  padding: 12px 18px;
  border-bottom: 1px solid var(--rule);
}
.am-notes:last-of-type,
.am-badges:last-of-type { border-bottom: none; }

.am-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.am-price-main {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--green);
  line-height: 1;
}
.am-price-sub {
  font-size: .75rem;
  color: var(--ink-soft);
  font-weight: 300;
}
.am-qty-main {
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
}
.am-qty-sub {
  font-size: .75rem;
  color: var(--ink-soft);
  font-weight: 300;
}
.am-farmer-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.am-farmer-avatar {
  width: 34px;
  height: 34px;
  background: var(--green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  flex-shrink: 0;
}
.am-farmer-info { flex: 1; min-width: 0; }
.am-farmer-name {
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.am-farmer-loc {
  font-size: .72rem;
  color: var(--ink-soft);
  font-weight: 300;
}
.am-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.am-badge {
  font-size: .65rem;
  padding: 3px 10px;
  border-radius: 100px;
  font-weight: 500;
  white-space: nowrap;
}
.am-badge-delivery { background: var(--gold-light); color: var(--gold); border: 1px solid #e8d08a; }
.am-badge-visits   { background: var(--green-pale); color: var(--green); border: 1px solid var(--green-light); }
.am-badge-ref      { background: var(--blue-light); color: var(--blue); border: 1px solid #a8c8ee;
  font-family: var(--ff-mono); letter-spacing: .5px; }
.am-notes {
  font-size: .78rem;
  color: var(--ink-soft);
  font-weight: 300;
  line-height: 1.55;
  font-style: italic;
}
.am-enquire-btn {
  display: flex;
  margin: 14px 18px;
  margin-top: auto;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-mid) 100%);
  color: var(--white);
  border: none;
  border-radius: var(--radius-full);
  padding: 11px 20px;
  font-family: var(--ff-body);
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  justify-content: center;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: var(--t-base);
  width: calc(100% - 36px);
  letter-spacing: .2px;
}
.am-enquire-btn:hover {
  background: linear-gradient(135deg, var(--green-mid) 0%, #33b06a 100%);
  box-shadow: var(--shadow-green);
  transform: translateY(-1px);
}

/* Trust list */
.am-trust-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}
.am-trust-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: .88rem;
  color: var(--ink-mid);
  font-weight: 300;
  line-height: 1.6;
}
.am-trust-item > span:first-child { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }
.am-trust-item strong { color: var(--ink); font-weight: 600; }

/* ════════════════════════════════════════════════════════════
   MEMBERSHIP PAGE
   ════════════════════════════════════════════════════════════ */

/* Participant type grid */
.participant-type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 32px;
}
@media (min-width: 640px)  { .participant-type-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px)  { .participant-type-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .participant-type-grid { grid-template-columns: repeat(8, 1fr); } }

.pt-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 18px 12px;
  text-align: center;
  transition: var(--t-base);
  cursor: default;
  border-top: 3px solid var(--rule);
}
.pt-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.pt-crop   { border-top-color: var(--green); }
.pt-proc   { border-top-color: var(--gold); }
.pt-live   { border-top-color: var(--earth); }
.pt-buy    { border-top-color: var(--blue); }
.pt-trans  { border-top-color: #6b4c9a; }
.pt-coord  { border-top-color: var(--green-mid); }
.pt-supp   { border-top-color: var(--gold-warm); }
.pt-invest { border-top-color: var(--ink); }
.pt-icon { font-size: 1.6rem; margin-bottom: 8px; }
.pt-name {
  font-size: .82rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 3px;
}
.pt-sub {
  font-size: .7rem;
  color: var(--ink-soft);
  font-weight: 300;
  line-height: 1.4;
}

/* Section badge */
.msh-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: var(--radius-full);
  padding: 5px 14px;
  font-family: var(--ff-mono);
  font-size: .62rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 12px;
}
.msh-crop   { background: var(--green-pale); color: var(--green); border: 1px solid var(--green-light); }
.msh-proc   { background: var(--gold-light); color: var(--gold); border: 1px solid #e8d08a; }
.msh-live   { background: var(--earth-light); color: var(--earth); border: 1px solid #d4b8a0; }
.msh-buy    { background: var(--blue-light); color: var(--blue); border: 1px solid #a8c8ee; }
.msh-trans  { background: #f0e8ff; color: #6b4c9a; border: 1px solid #d4c0f0; }
.msh-coord  { background: var(--green-pale); color: var(--green-mid); border: 1px solid var(--green-light); }
.msh-supp   { background: var(--gold-light); color: var(--gold-warm); border: 1px solid #f0d080; }
.msh-invest { background: var(--earth-light); color: var(--ink); border: 1px solid var(--rule); }

/* What you get */
.mem-what-you-get {
  background: var(--green-pale);
  border: 1px solid var(--green-light);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 0;   /* gap handled by two-col-grid or parent spacing */
}
.mwyg-title {
  font-family: var(--ff-mono);
  font-size: .6rem;
  color: var(--green);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.mwyg-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .84rem;
  color: var(--ink-mid);
  padding: 6px 0;
  border-bottom: 1px solid rgba(26,107,60,.1);
  font-weight: 300;
  line-height: 1.5;
}
.mwyg-item:last-child { border-bottom: none; }
.mwyg-item > span:first-child { flex-shrink: 0; margin-top: 1px; }
.mem-note {
  background: var(--gold-light);
  border: 1px solid #e8d08a;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: .8rem;
  color: var(--gold);
  margin-top: 14px;
  line-height: 1.55;
}
.mfc-title {
  font-family: var(--ff-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}

/* Donation form fields (shared with donate.php) */
.df-field {
  margin-bottom: 16px;
}
.df-label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--ink-mid);
  margin-bottom: 6px;
  letter-spacing: .2px;
}
.df-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--rule);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: .9rem;
  transition: var(--t-base);
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
}
/* Add chevron arrow for select elements */
select.df-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236a6a5a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  /* prevent long option text from causing horizontal overflow */
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 100%;
}
.df-input:hover  { border-color: rgba(26,107,60,.25); }
.df-input:focus  {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(26,107,60,.1);
}
.df-textarea {
  resize: vertical;
  min-height: 90px;
}
.df-notice {
  font-size: .75rem;
  color: var(--ink-soft);
  margin-top: 8px;
  line-height: 1.5;
  font-style: italic;
}
.form-status {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  margin-top: 10px;
  display: none;
}

/* Livestock types */
.livestock-types-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 14px;
}
@media (min-width: 640px) { .livestock-types-grid { grid-template-columns: repeat(3, 1fr); } }
.lt-type {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
  font-size: .8rem;
  color: var(--ink-mid);
  transition: var(--t-fast);
}
.lt-type:hover {
  border-color: var(--earth-light);
  background: var(--earth-light);
}
.buyer-note {
  background: var(--blue-light);
  border: 1px solid #a8c8ee;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: .82rem;
  color: var(--blue);
  margin-top: 14px;
  line-height: 1.55;
}
.invest-vehicle-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: clamp(18px, 3vw, 26px);
  margin-top: 16px;   /* gap from mem-what-you-get above */
  transition: var(--t-base);
}
.invest-vehicle-card:hover {
  border-color: var(--green-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.ivc-title {
  font-family: var(--ff-display);
  font-size: .95rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.ivc-desc {
  font-size: .82rem;
  color: var(--ink-soft);
  line-height: 1.6;
  font-weight: 300;
  margin-bottom: 14px;
}
/* Enquire button: full-width, properly spaced */
.invest-vehicle-card .btn-outline {
  display: flex;
  width: 100%;
  justify-content: center;
  text-align: center;
  margin-top: 0;
}

/* ════════════════════════════════════════════════════════════
   IMPACT PAGE
   ════════════════════════════════════════════════════════════ */

/* Impact numbers */
.impact-numbers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  margin-top: 32px;
}
@media (min-width: 600px) { .impact-numbers-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .impact-numbers-grid { grid-template-columns: repeat(6, 1fr); } }

.ing-item {
  padding: 24px 18px;
  text-align: center;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.07);
  transition: var(--t-base);
}
.ing-item:hover { background: rgba(255,255,255,.09); }
.ing-num {
  display: block;
  font-family: var(--ff-display);
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold-warm) 0%, #f5cc44 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 6px;
}
.ing-label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  color: rgba(255,255,255,.75);
  margin-bottom: 3px;
}
.ing-sub {
  display: block;
  font-family: var(--ff-mono);
  font-size: .58rem;
  color: rgba(255,255,255,.35);
  letter-spacing: .5px;
}

/* ── Farmer Profile Cards ───────────────────────────────── */
.farmer-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 580px) { .farmer-cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .farmer-cards-grid { grid-template-columns: repeat(3, 1fr); } }

/* Card top section */
.fc-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 0;
}

/* Avatar — larger, gradient bg for initials */
.fc-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-display);
  font-size: .95rem;
  font-weight: 900;
  color: var(--green-deep);
  background: linear-gradient(135deg, var(--green-light) 0%, #b8e8cc 100%);
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid rgba(26,107,60,.15);
  letter-spacing: .5px;
}
.fc-avatar img,
.fc-avatar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
/* When the div itself IS the photo container */
.fc-avatar.fc-avatar-photo {
  padding: 0;
  background: var(--cream);
}

/* Info block */
.fc-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fc-name {
  font-family: var(--ff-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  /* allow wrapping — names shouldn't be truncated on a profile card */
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}
.fc-location {
  font-size: .74rem;
  color: var(--ink-soft);
  font-weight: 300;
  line-height: 1.4;
}

/* Badges — now a full-width row below the top block */
.fc-badges {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--rule);
}
.fc-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: var(--ff-mono);
  font-size: .6rem;
  padding: 3px 10px;
  border-radius: 100px;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: .2px;
}
.fc-sealed  { background: var(--green-pale); color: var(--green); border: 1px solid var(--green-light); }
.fc-pending { background: var(--gold-light); color: #92600a; border: 1px solid #e8d08a; }
.fc-women   { background: #fce4f3; color: #b02d6e; border: 1px solid #f0b8d8; }
.fc-youth   { background: var(--blue-light); color: #1a5fa0; border: 1px solid #a8c8ee; }

/* Stats bar — 3 equal cols with individual card styling */
.fc-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 14px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.fcs-item {
  text-align: center;
  padding: 12px 6px;
  position: relative;
}
.fcs-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--rule);
}
.fcs-item strong {
  display: block;
  font-family: var(--ff-display);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--green);
  line-height: 1;
  margin-bottom: 3px;
}
/* crop name is text not a number — smaller */
.fcs-item strong[data-type="text"],
.fcs-item:last-child strong {
  font-size: .88rem;
  color: var(--ink);
}
.fcs-item span {
  display: block;
  font-family: var(--ff-mono);
  font-size: .56rem;
  color: var(--ink-soft);
  letter-spacing: .8px;
  text-transform: uppercase;
}

/* iTONA reference chip */
.fc-ref {
  font-family: var(--ff-mono);
  font-size: .6rem;
  color: var(--green);
  letter-spacing: 1.2px;
  margin-top: 12px;
  background: var(--green-pale);
  border: 1px solid var(--green-light);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  display: inline-block;
  text-transform: uppercase;
}

/* Verify link — subtle button style */
.fc-verify-link {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-family: var(--ff-mono);
  font-size: .68rem;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
  letter-spacing: .3px;
  padding: 7px 14px;
  border: 1.5px solid var(--green-light);
  border-radius: var(--radius-sm);
  background: var(--green-pale);
  transition: var(--t-fast);
  justify-content: center;
}
.fc-verify-link:hover {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
  text-decoration: none;
}

/* ════════════════════════════════════════════════════════════
   DONATE PAGE
   ════════════════════════════════════════════════════════════ */

/* Campaign full layout */
.donate-campaign-full {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}
@media (min-width: 768px) {
  .donate-campaign-full { grid-template-columns: 1fr 1fr; gap: 56px; }
}
.dcf-left { display: flex; flex-direction: column; gap: 14px; }
.dcf-right {}
.dcf-amount {
  font-family: var(--ff-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--green);
  line-height: 1;
}
.dcf-name {
  font-family: var(--ff-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  color: var(--ink);
  line-height: 1.1;
  margin: 0;
}
.dcf-tagline {
  font-family: var(--ff-display);
  font-size: clamp(.9rem, 1.5vw, 1.05rem);
  font-style: italic;
  color: var(--ink-soft);
  margin-top: 2px;
}
.dcf-what-you-get {
  background: var(--green-pale);
  border: 1px solid var(--green-light);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-top: 8px;
}
.dcf-wg-title {
  font-family: var(--ff-mono);
  font-size: .6rem;
  color: var(--green);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.dcf-wg-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .84rem;
  color: var(--ink-mid);
  padding: 6px 0;
  border-bottom: 1px solid rgba(26,107,60,.1);
  line-height: 1.55;
  font-weight: 300;
}
.dcf-wg-item:last-child { border-bottom: none; }
.dcf-wg-item > span { flex-shrink: 0; }
.dcf-note {
  background: var(--gold-light);
  border: 1px solid #e8d08a;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: .8rem;
  color: var(--gold);
  line-height: 1.55;
}
.dcf-note strong { color: #8a6508; }

/* Form card (donate & membership) */
.dfc-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.dfc-campaign-name {
  font-family: var(--ff-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}
.dfc-amount-fixed {
  font-family: var(--ff-mono);
  font-size: .72rem;
  color: var(--green);
  letter-spacing: .5px;
  white-space: nowrap;
}
.dfc-amount-fixed span {
  color: var(--ink-soft);
  font-size: .65rem;
}
.donate-form { display: flex; flex-direction: column; gap: 0; }

/* Trust items */
.trust-icon { font-size: 1.6rem; margin-bottom: 8px; }
.trust-label {
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.trust-sub {
  font-size: .78rem;
  color: var(--ink-soft);
  font-weight: 300;
  line-height: 1.5;
}

/* ════════════════════════════════════════════════════════════
   ABOUT PAGE
   ════════════════════════════════════════════════════════════ */

.governance-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 36px;
}
@media (min-width: 640px) { .governance-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .governance-grid { grid-template-columns: repeat(3, 1fr); } }

.gov-tier-num {
  font-family: var(--ff-mono);
  font-size: .6rem;
  color: var(--green);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.gov-tier-title {
  font-family: var(--ff-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.gov-tier-desc {
  font-size: .82rem;
  color: var(--ink-soft);
  line-height: 1.62;
  font-weight: 300;
}

/* Team grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 32px;
}
@media (min-width: 640px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .team-grid { grid-template-columns: repeat(4, 1fr); } }

.team-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 14px;
  display: block;
  border: 3px solid var(--green-light);
}
.team-photo-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-pale) 0%, var(--green-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 14px;
  border: 3px solid var(--green-light);
}
.team-info { text-align: center; }
.team-name {
  font-family: var(--ff-display);
  font-size: .95rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 3px;
}
.team-role {
  font-size: .75rem;
  color: var(--green);
  font-weight: 500;
  margin-bottom: 8px;
}
.team-bio {
  font-size: .78rem;
  color: var(--ink-soft);
  line-height: 1.55;
  font-weight: 300;
}
.team-programme {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: .58rem;
  color: var(--ink-soft);
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-top: 8px;
  background: var(--green-pale);
  padding: 2px 8px;
  border-radius: 100px;
  border: 1px solid var(--green-light);
}

/* Community stats */
.community-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.cs-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cs-icon {
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  background: var(--green-pale);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cs-text {
  font-size: .85rem;
  color: var(--ink-mid);
  font-weight: 300;
  line-height: 1.55;
}
.cs-text strong {
  display: block;
  font-weight: 700;
  color: var(--ink);
}

/* CAC sub-label */
.cac-sub {
  font-size: .75rem;
  color: var(--ink-soft);
  font-weight: 300;
  margin-top: 4px;
}

/* ════════════════════════════════════════════════════════════
   POST PAGE (Single Article)
   ════════════════════════════════════════════════════════════ */

.post-layout {
  min-height: 100vh;
  padding-top: var(--nav-h);
}

.post-hero {
  position: relative;
  padding: clamp(40px, 7vw, 80px) clamp(20px, 5vw, 48px) clamp(40px, 6vw, 64px);
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.post-hero-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .25;
}
.post-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}
.post-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-mono);
  font-size: .62rem;
  color: rgba(255,255,255,.5);
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.post-breadcrumb a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: color .2s;
}
.post-breadcrumb a:hover { color: var(--white); }
.post-breadcrumb span { color: rgba(255,255,255,.3); }
.post-title {
  font-family: var(--ff-display);
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 14px;
  overflow-wrap: anywhere;
}
.post-excerpt {
  font-size: clamp(.9rem, 1.4vw, 1.05rem);
  color: rgba(255,255,255,.72);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 18px;
  max-width: 680px;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: .8rem;
  color: rgba(255,255,255,.6);
}
.post-author { font-weight: 500; color: rgba(255,255,255,.75); }
.post-dot { color: rgba(255,255,255,.25); }
.post-date { color: rgba(255,255,255,.55); }
.post-programme {
  background: var(--green);
  color: var(--white);
  font-family: var(--ff-mono);
  font-size: .58rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 2px 9px;
  border-radius: 100px;
}

/* Post body */
.post-body-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 48px);
}
.post-content {
  font-size: clamp(.9rem, 1.3vw, 1rem);
  line-height: 1.85;
  color: var(--ink-mid);
  font-weight: 300;
}
.post-content h2 {
  font-family: var(--ff-display);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 900;
  color: var(--ink);
  margin: 36px 0 14px;
  line-height: 1.2;
}
.post-content h3 {
  font-family: var(--ff-display);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 700;
  color: var(--ink);
  margin: 28px 0 12px;
}
.post-content p { margin-bottom: 18px; }
.post-content ul, .post-content ol {
  padding-left: 24px;
  margin-bottom: 18px;
}
.post-content li { margin-bottom: 6px; line-height: 1.7; }
.post-content strong { color: var(--ink); font-weight: 600; }
.post-content a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.post-content a:hover { color: var(--green-mid); }
.post-content blockquote {
  border-left: 3px solid var(--green);
  padding: 12px 20px;
  margin: 24px 0;
  background: var(--green-pale);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--ink-mid);
}
.post-content img {
  border-radius: var(--radius-md);
  margin: 24px 0;
  width: 100%;
}
.post-content code {
  font-family: var(--ff-mono);
  font-size: .85em;
  background: var(--green-pale);
  color: var(--green);
  padding: 2px 6px;
  border-radius: 4px;
}
.post-footer {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 32px;
  margin-top: 32px;
  border-top: 1px solid var(--rule);
}

/* ════════════════════════════════════════════════════════════
   VERIFY PAGE
   ════════════════════════════════════════════════════════════ */

/* Search bar */
.verify-search-bar {
  max-width: 520px;
  margin: 0 auto;
}
.vsb-form {
  display: flex;
  gap: 8px;
}
.vsb-input {
  flex: 1;
  padding: 12px 18px;
  border: 2px solid rgba(255,255,255,.2);
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.09);
  color: var(--white);
  font-family: var(--ff-mono);
  font-size: .9rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: var(--t-base);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.vsb-input::placeholder { color: rgba(255,255,255,.35); text-transform: uppercase; }
.vsb-input:focus {
  outline: none;
  border-color: rgba(255,255,255,.45);
  background: rgba(255,255,255,.12);
}
.vsb-btn {
  background: var(--gradient-gold);
  color: var(--white);
  border: none;
  border-radius: var(--radius-full);
  padding: 12px 24px;
  font-family: var(--ff-body);
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--t-base);
  letter-spacing: .2px;
  box-shadow: 0 2px 12px rgba(184,134,11,.3);
}
.vsb-btn:hover {
  background: linear-gradient(135deg, var(--gold-warm) 0%, #f0b230 100%);
  box-shadow: var(--shadow-gold);
  transform: translateY(-1px);
}
@media (max-width: 480px) {
  .vsb-form { flex-direction: column; }
  .vsb-input, .vsb-btn { width: 100%; border-radius: var(--radius-md); }
}

/* Verify error */
.verify-error {
  text-align: center;
  padding: clamp(40px, 7vw, 72px) 20px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  max-width: 560px;
  margin: 0 auto;
}
.ve-icon { font-size: 3rem; margin-bottom: 14px; opacity: .6; }
.ve-title {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}
.ve-body {
  font-size: .88rem;
  color: var(--ink-soft);
  line-height: 1.65;
  font-weight: 300;
}

/* Verify result */
.verify-result {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.vr-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--rule);
  background: var(--green-pale);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.vr-status {
  font-family: var(--ff-mono);
  font-size: .72rem;
  letter-spacing: .5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}
.vr-sealed {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 2px 10px rgba(26,107,60,.25);
}
.vr-pending {
  background: var(--gold-light);
  color: var(--gold);
  border: 1px solid #e8d08a;
}
.vr-ref {
  font-family: var(--ff-mono);
  font-size: .78rem;
  color: var(--ink-soft);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.vr-body {
  padding: 0;
}
.vr-row {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--rule);
}
.vr-row:last-child { border-bottom: none; }
.vr-label {
  font-family: var(--ff-mono);
  font-size: .62rem;
  color: var(--ink-soft);
  letter-spacing: 1px;
  text-transform: uppercase;
  min-width: 120px;
  flex-shrink: 0;
}
.vr-val {
  font-size: .88rem;
  color: var(--ink);
  line-height: 1.5;
  font-weight: 400;
}

/* Activity summary */
.vr-activity {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border-top: 1px solid var(--rule);
}
.vra-item {
  padding: 20px;
  text-align: center;
  background: var(--white);
  transition: var(--t-fast);
}
.vra-item:hover { background: var(--green-pale); }
.vra-num {
  display: block;
  font-family: var(--ff-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--green);
  line-height: 1;
  margin-bottom: 5px;
}
.vra-label {
  font-family: var(--ff-mono);
  font-size: .6rem;
  color: var(--ink-soft);
  letter-spacing: .5px;
  text-transform: uppercase;
  line-height: 1.3;
}

/* API note */
.vr-api-note {
  padding: 14px 24px;
  border-top: 1px solid var(--rule);
  background: var(--green-pale);
  font-size: .78rem;
  color: var(--ink-soft);
  line-height: 1.6;
}
.vr-api-note code {
  font-family: var(--ff-mono);
  font-size: .78rem;
  color: var(--green);
  background: rgba(26,107,60,.08);
  padding: 2px 6px;
  border-radius: 4px;
  word-break: break-all;
}

/* Instructions */
.verify-instructions {
  text-align: center;
  padding: clamp(24px, 4vw, 40px);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.vi-icon { font-size: 3rem; margin-bottom: 16px; }
.verify-instructions h3 {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}
.verify-instructions p {
  font-size: .88rem;
  color: var(--ink-soft);
  line-height: 1.65;
  font-weight: 300;
  margin-bottom: 24px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.vi-usecases {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  text-align: left;
  margin-top: 24px;
}
@media (min-width: 640px) { .vi-usecases { grid-template-columns: repeat(2, 1fr); } }

/* vi-case already partially styled, enhance here */
.vi-case {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 16px;
  font-size: .84rem;
  color: var(--ink-mid);
  line-height: 1.6;
  font-weight: 300;
  transition: var(--t-fast);
}
.vi-case:hover { border-color: var(--green-light); background: var(--green-pale); }
.vi-case > span:first-child { font-size: 1.3rem; flex-shrink: 0; margin-top: 1px; }
.vi-case strong { color: var(--ink); font-weight: 600; display: block; margin-bottom: 3px; }

/* ════════════════════════════════════════════════════════════
   GALLERY PAGE
   ════════════════════════════════════════════════════════════ */

.gallery-mosaic {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, 1fr);
}
@media (min-width: 768px) { .gallery-mosaic { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 500px) { .gallery-mosaic { grid-template-columns: repeat(2, 1fr); } }

.gm-item-wide { grid-column: span 2; }
.gm-item-std  { grid-column: span 1; }

.gm-item img, .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 1;
  transition: transform .4s ease;
}
.gm-item-wide img { aspect-ratio: 2/1; }
.gm-item:hover img, .gallery-item:hover img { transform: scale(1.06); }

/* ════════════════════════════════════════════════════════════
   IMPACT PAGE — Additional components
   ════════════════════════════════════════════════════════════ */

/* Impact layer cards */
.impact-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 32px;
}
@media (min-width: 640px)  { .impact-cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .impact-cards-grid { grid-template-columns: repeat(4, 1fr); } }

.impact-layer-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: clamp(20px, 3vw, 28px);
  border-top: 3px solid var(--rule);
  transition: var(--t-base);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.impact-layer-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.ilc-1 { border-top-color: var(--green); }
.ilc-2 { border-top-color: var(--gold); }
.ilc-3 { border-top-color: var(--blue); }
.ilc-4 { border-top-color: var(--earth); }

.ilc-layer-num {
  font-family: var(--ff-mono);
  font-size: .58rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.ilc-1 .ilc-layer-num { color: var(--green); }
.ilc-2 .ilc-layer-num { color: var(--gold); }
.ilc-3 .ilc-layer-num { color: var(--blue); }
.ilc-4 .ilc-layer-num { color: var(--earth); }

.ilc-icon { font-size: 1.8rem; line-height: 1; }
.ilc-title {
  font-family: var(--ff-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: 2px;
}
.ilc-desc {
  font-size: .83rem;
  color: var(--ink-soft);
  line-height: 1.65;
  font-weight: 300;
  flex: 1;
}
.ilc-count {
  font-family: var(--ff-mono);
  font-size: .7rem;
  color: var(--ink-mid);
  padding-top: 10px;
  border-top: 1px solid var(--rule);
  margin-top: auto;
}
.ilc-count strong {
  font-weight: 700;
  color: var(--green);
}
.ilc-verify-link {
  color: var(--green);
  text-decoration: none;
  font-weight: 600;
}
.ilc-verify-link:hover { text-decoration: underline; }

/* Impact filter bar */
/* Impact filter bar — overrides the general .if-select with tighter sizing */
.impact-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
/* Restate if-select here so it doesn't inherit less-styled version */
.impact-filter-bar .if-select {
  padding: 8px 32px 8px 12px;
  font-size: .83rem;
}
.impact-filter-bar .if-clear {
  margin-left: auto;
  font-size: .75rem;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--rule);
  background: var(--cream);
  transition: var(--t-fast);
  white-space: nowrap;
}
.impact-filter-bar .if-clear:hover { color: var(--green); border-color: var(--green-light); background: var(--green-pale); }

/* Donate preview section (dark — on impact page) */
.donate-preview-section {
  background: var(--ink);
  padding: clamp(48px, 8vw, 80px) 0;
}
.donate-preview-section .section-label { color: rgba(255,255,255,.5); }
.donate-preview-section .section-title { color: var(--white); }

.donate-campaigns-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 32px;
}
@media (min-width: 640px)  { .donate-campaigns-grid { grid-template-columns: repeat(3, 1fr); } }

.dc-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md);
  padding: clamp(22px, 3vw, 30px);
  border-top: 3px solid rgba(255,255,255,.15);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: var(--t-base);
}
.dc-card:hover {
  background: rgba(255,255,255,.09);
  transform: translateY(-3px);
}
.dc-seal    { border-top-color: var(--green-mid); }
.dc-harvest { border-top-color: var(--gold-warm); }
.dc-witness { border-top-color: var(--blue); }

.dc-amount {
  font-family: var(--ff-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold-warm) 0%, #f5cc44 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.dc-name {
  font-family: var(--ff-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
}
.dc-tagline {
  font-size: .83rem;
  font-weight: 600;
  color: rgba(255,255,255,.65);
  line-height: 1.4;
}
.dc-desc {
  font-size: .8rem;
  color: rgba(255,255,255,.45);
  line-height: 1.65;
  font-weight: 300;
  flex: 1;
}
.dc-card .btn-gold {
  margin-top: auto;
  align-self: flex-start;
  text-decoration: none;
}

/* ════════════════════════════════════════════════════════════
   MEMBERSHIP PAGE — Additional components
   ════════════════════════════════════════════════════════════ */

/* Coordinator earn card */
.coord-earn-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  padding: clamp(18px, 3vw, 26px);
  margin-top: 20px;
}
.cec-title {
  font-family: var(--ff-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.cec-items { display: flex; flex-direction: column; gap: 10px; }
.cec-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .83rem;
  color: rgba(255,255,255,.65);
  line-height: 1.5;
  font-weight: 300;
}
.cec-token {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.12);
  color: var(--white);
  font-family: var(--ff-mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .5px;
}
.cec-label { flex: 1; }

/* Member eligibility list */
.mem-eligibility {
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-top: 16px;
}
.me-title {
  font-family: var(--ff-mono);
  font-size: .58rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.me-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .82rem;
  line-height: 1.55;
  font-weight: 300;
  padding: 5px 0;
}
.me-item > span:first-child { flex-shrink: 0; }

/* Supporter / skills cards */
.sc-icon { font-size: 1.5rem; margin-bottom: 8px; }
.sc-title {
  font-family: var(--ff-display);
  font-size: .95rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.sc-desc {
  font-size: .8rem;
  color: var(--ink-soft);
  line-height: 1.6;
  font-weight: 300;
  margin-bottom: 10px;
}
.sc-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.sc-skills span {
  font-family: var(--ff-mono);
  font-size: .6rem;
  padding: 3px 8px;
  border-radius: 100px;
  background: var(--green-pale);
  color: var(--green);
  border: 1px solid var(--green-light);
  letter-spacing: .3px;
  font-weight: 500;
}

/* Invest pathways */
.invest-pathways-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 28px;
}
@media (min-width: 640px)  { .invest-pathways-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .invest-pathways-grid { grid-template-columns: repeat(4, 1fr); } }

.invest-pathway {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: clamp(18px, 3vw, 26px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: var(--t-base);
}
.invest-pathway:hover {
  border-color: var(--gold-warm);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.ip-icon { font-size: 1.8rem; line-height: 1; }
.ip-title {
  font-family: var(--ff-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}
.ip-desc {
  font-size: .82rem;
  color: var(--ink-soft);
  line-height: 1.65;
  font-weight: 300;
  flex: 1;
}
.ip-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding-top: 10px;
  border-top: 1px solid var(--rule);
  margin-top: auto;
}
.ip-terms span {
  font-family: var(--ff-mono);
  font-size: .58rem;
  padding: 3px 8px;
  border-radius: 100px;
  background: var(--gold-light);
  color: var(--gold);
  border: 1px solid #e8d08a;
  letter-spacing: .3px;
  white-space: nowrap;
}

/* Global node banner */
.global-node-banner {
  background: linear-gradient(135deg, var(--green-deep) 0%, #0f5030 50%, #1a3a20 100%);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 48px);
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-top: 28px;
}
.gnb-icon { font-size: 2.5rem; flex-shrink: 0; margin-top: 2px; }
.gnb-text { flex: 1; }
.gnb-title {
  font-family: var(--ff-display);
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
  margin-bottom: 10px;
}
.gnb-sub {
  font-size: .85rem;
  color: rgba(255,255,255,.6);
  line-height: 1.65;
  font-weight: 300;
}
@media (max-width: 500px) {
  .global-node-banner { flex-direction: column; }
}

/* Marketplace flow diagram */
.marketplace-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 24px;
  padding: 20px;
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
}
.mf-node {
  text-align: center;
  padding: 16px 18px;
  font-size: .78rem;
  color: var(--ink-mid);
  line-height: 1.5;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  min-width: 90px;
  transition: var(--t-fast);
}
.mf-node:hover { border-color: var(--green-light); box-shadow: var(--shadow-sm); }
.mf-node strong { color: var(--ink); font-weight: 600; display: block; }
.mf-node small  { color: var(--ink-soft); font-size: .68rem; font-weight: 300; }
.mf-farmer  { border-top: 2px solid var(--green); }
.mf-storage { border-top: 2px solid var(--gold); }
.mf-trans   { border-top: 2px solid var(--earth); }
.mf-proc    { border-top: 2px solid var(--blue); }
.mf-buyer   { border-top: 2px solid var(--green-mid); }
.mf-arrow {
  font-size: 1.2rem;
  color: var(--ink-soft);
  padding: 0 6px;
  flex-shrink: 0;
}
.mf-chain {
  width: 100%;
  text-align: center;
  font-family: var(--ff-mono);
  font-size: .65rem;
  color: var(--ink-soft);
  letter-spacing: .3px;
  padding: 10px 0 0;
  border-top: 1px solid var(--rule);
  margin-top: 8px;
}
@media (max-width: 600px) {
  .marketplace-flow { flex-direction: column; gap: 4px; }
  .mf-arrow { transform: rotate(90deg); }
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — Page-specific breakpoints
   ════════════════════════════════════════════════════════════ */

@media (max-width: 960px) {
  .donate-campaign-full { grid-template-columns: 1fr; }
  .donate-campaign-full .dcf-right[style*="order:1"] { order: unset !important; }
  .donate-campaign-full .dcf-left[style*="order:2"]  { order: unset !important; }
  .vr-activity { grid-template-columns: repeat(2, 1fr); }
  .am-how-step span:last-child { display: none; }
  .flow-steps { flex-wrap: wrap; }
  .flow-arrow { display: none; }
}

@media (max-width: 640px) {
  .vr-row { flex-direction: column; gap: 4px; }
  .vr-label { min-width: 0; }
  .vr-activity { grid-template-columns: repeat(2, 1fr); }
  .am-listings-grid { grid-template-columns: 1fr; }
  .impact-numbers-grid { grid-template-columns: repeat(2, 1fr); }
  .ing-item { padding: 18px 12px; }
  .participant-type-grid { grid-template-columns: repeat(2, 1fr); }
  .coop-hero-stats, .am-hero-stats { max-width: 100%; }
  .dfc-header { flex-direction: column; gap: 4px; }
  .integrity-grid { grid-template-columns: 1fr; }
  /* Why a Cooperative — stack text and model box vertically */
  .coop-why-grid { grid-template-columns: 1fr !important; gap: 28px !important; }
}

/* ════════════════════════════════════════════════════════════
   INTELLIGENCE PAGE — Dynamic output components
   ════════════════════════════════════════════════════════════ */

/* Mobile: search row stack + prevent overflow */
@media (max-width: 480px) {
  .lp-search-row {
    flex-direction: column;
  }
  .lp-search-input {
    width: 100%;
    min-width: 0;
    color: var(--ink); /* ensure readable */
  }
  .lp-search-row .btn-ghost {
    width: 100%;
    justify-content: center;
  }
  .location-prompt {
    padding: 20px 16px;
    max-width: calc(100vw - 32px);
  }
}

/* Location search results */
.lp-searching, .lp-no-result {
  padding: 8px 12px;
  font-size: .82rem;
  color: var(--ink-soft);
  font-style: italic;
}
.lp-result {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: .85rem;
  color: var(--ink);
  cursor: pointer;
  border-bottom: 1px solid var(--rule);
  transition: var(--t-fast);
}
.lp-result:last-child { border-bottom: none; }
.lp-result:hover { background: var(--green-pale); color: var(--green); }

/* ── Weather card (WHITE background) ─────────────────────── */
.wc-main {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.wc-icon { font-size: 2.5rem; line-height: 1; flex-shrink: 0; }
.wc-temp {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--ink);          /* dark text on white card */
  line-height: 1;
}
.wc-range {
  font-size: .8rem;
  color: var(--ink-soft);
  margin-top: 2px;
  font-weight: 300;
}
.wc-details {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.wcd-item {
  font-size: .78rem;
  color: var(--ink-mid);
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
}
.wcd-item strong { color: var(--ink); }
.wc-error {
  font-size: .82rem;
  color: var(--ink-soft);
  font-style: italic;
  padding: 8px 0;
}

/* 7-day forecast grid — single scrollable row, no overflow */
.fc-grid {
  display: flex;
  gap: 5px;
  flex-wrap: nowrap;           /* keep all 6 days in one row */
  overflow-x: auto;            /* scroll if they don't fit */
  overscroll-behavior-x: contain;
  scrollbar-width: none;       /* hide scrollbar */
  -webkit-overflow-scrolling: touch;
  margin-top: 14px;
  padding-bottom: 4px;         /* room for any shadow */
}
.fc-grid::-webkit-scrollbar { display: none; }
.fc-day {
  text-align: center;
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  background: var(--cream);
  border: 1px solid var(--rule);
  flex: 1 1 0;                 /* equal width, never shrink below content */
  min-width: 52px;
  flex-shrink: 0;              /* prevent compression */
}
.fc-day-name {
  font-family: var(--ff-mono);
  font-size: .58rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 4px;
}
.fc-icon { font-size: 1.2rem; line-height: 1; margin-bottom: 4px; }
.fc-temp {
  font-size: .82rem;
  font-weight: 700;
  color: var(--ink);
}
.fc-rain {
  font-size: .65rem;
  color: var(--ink-soft);
  margin-top: 2px;
  font-weight: 300;
}

/* ── Soil panel (WHITE background) ───────────────────────── */
/* #soilGrid renders .soil-item children directly — give it a grid */
#soilGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  text-align: center;
}
.soil-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 10px;
  background: var(--cream);
  border-radius: var(--radius-sm);
  border: 1px solid var(--rule);
  border-bottom: 2px solid var(--rule);
  text-align: center;
  transition: var(--t-fast);
}
.soil-item.si-good { border-bottom-color: var(--green); }
.soil-item.si-warn { border-bottom-color: #c97a10; }
.si-label {
  font-family: var(--ff-mono);
  font-size: .58rem;
  color: var(--ink-soft);
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.si-val {
  font-family: var(--ff-display);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--ink);          /* dark text on cream card */
  line-height: 1;
}
.si-status {
  font-size: .64rem;
  margin-top: 5px;
  color: var(--ink-soft);
  font-weight: 300;
  line-height: 1.3;
}
.si-good .si-status { color: var(--green); font-weight: 500; }
.si-warn .si-status { color: #c97a10; font-weight: 500; }
.sg-error {
  font-size: .82rem;
  color: var(--ink-soft);
  font-style: italic;
  padding: 8px 0;
  grid-column: 1 / -1;
}

/* ── Solar radiation card (WHITE background) ─────────────── */
#solarData {
  text-align: center;
}
.sol-chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 64px;
  margin-bottom: 12px;
  padding: 0 2px;
}
.sol-bar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex: 1;
  height: 100%;
  justify-content: flex-end;
}
.sol-bar {
  width: 100%;
  background: var(--green-light);
  border-radius: 2px 2px 0 0;
  min-height: 3px;
  transition: var(--t-base);
}
.sol-current .sol-bar { background: var(--gold-warm); }
.sol-bar-label {
  font-size: .52rem;
  color: var(--ink-soft);
  font-family: var(--ff-mono);
  letter-spacing: .2px;
}
.solar-summary {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
  justify-content: center;
}
.solar-item {
  flex: 1 1 auto;
  min-width: 90px;
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  text-align: center;
}
.sol-label {
  font-size: .6rem;
  color: var(--ink-soft);
  font-family: var(--ff-mono);
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.sol-val {
  font-family: var(--ff-display);
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--ink);          /* dark text on cream */
  line-height: 1;
}
.sol-note {
  font-size: .65rem;
  color: var(--ink-soft);
  font-weight: 300;
  margin-top: 3px;
}

/* ── Planting calendar (DARK blue intel-card-dark) ───────── */
.pc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 500px) { .pc-grid { grid-template-columns: repeat(3, 1fr); } }

.pc-crop {
  padding: 12px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  text-align: center;
  transition: var(--t-fast);
}
.pc-crop.optimal    { border-color: rgba(42,160,80,.5); background: rgba(42,160,80,.14); }
.pc-crop.marginal   { border-color: rgba(220,160,20,.4); background: rgba(220,160,20,.1); }
.pc-crop.off-season { opacity: .45; }
.pc-icon { font-size: 1.4rem; margin-bottom: 5px; }
.pc-msg  {
  font-size: .7rem;
  color: rgba(255,255,255,.6);  /* dark card — keep light text */
  font-weight: 300;
  line-height: 1.4;
}

/* ── Disease risk (WHITE background) ──────────────────────── */
.dr-context {
  font-family: var(--ff-mono);
  font-size: .6rem;
  color: var(--ink-soft);
  letter-spacing: .3px;
  margin-bottom: 12px;
  padding: 6px 10px;
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
}
.dr-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
}
.dr-item:last-child { border-bottom: none; }
.dr-disease {
  flex: 1;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink);          /* dark text on white */
}
.dr-note {
  font-size: .78rem;
  color: var(--ink-soft);
  line-height: 1.55;
  font-weight: 300;
  margin-top: 3px;
}
.dr-risk {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--ff-mono);
  font-size: .6rem;
  padding: 3px 8px;
  border-radius: 100px;
  white-space: nowrap;
  font-weight: 600;
  flex-shrink: 0;
}
.dr-high    { background: #fdecea; color: #b71c1c; border: 1px solid #f5c6c2; }
.dr-medium  { background: var(--gold-light); color: #92600a; border: 1px solid #e8d08a; }
.dr-low     { background: var(--green-pale); color: var(--green); border: 1px solid var(--green-light); }
.dr-unknown { background: var(--cream); color: var(--ink-soft); border: 1px solid var(--rule); }

/* ── Yield prediction (WHITE card / section) ─────────────── */
.ypc-error {
  font-size: .82rem;
  color: #b05800;
  font-style: italic;
  padding: 8px 0;
}
.ypc-output {
  background: var(--green-pale);
  border: 1px solid var(--green-light);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 12px;
}
.ypo-label {
  font-family: var(--ff-mono);
  font-size: .6rem;
  color: var(--green);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.ypo-range {
  font-family: var(--ff-display);
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 900;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 8px;
}
.ypo-value {
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.ypo-basis {
  font-size: .75rem;
  color: var(--ink-soft);
  font-weight: 300;
  margin-bottom: 6px;
}
.ypo-note {
  font-size: .75rem;
  color: var(--ink-soft);
  font-style: italic;
  line-height: 1.55;
  font-weight: 300;
}

/* ── Plant Doctor output (WHITE pd-web-card) ─────────────── */
.pd-web-output { padding: 16px 0 4px; }
.pd-web-disease {
  font-family: var(--ff-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.pd-web-meta {
  font-size: .8rem;
  color: var(--ink-soft);
  margin-bottom: 4px;
  font-weight: 300;
}
.pd-web-meta strong { color: var(--ink); font-weight: 600; }
.pd-web-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 10px 0;
}
.pd-web-section {
  margin: 10px 0;
  font-size: .82rem;
  color: var(--ink-mid);
  line-height: 1.65;
  font-weight: 300;
}
.pd-web-section strong {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.pd-web-section p { margin: 0; }

/* ════════════════════════════════════════════════════════════
   INTELLIGENCE PAGE — Mobile-specific fixes
   ════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  /* Portal section: tighter vertical padding */
  .intel-portal-section {
    padding-top: 28px;
    padding-bottom: 28px;
    padding-left: 14px;
    padding-right: 14px;
  }

  /* Stack the two intel cols with slightly tighter gap */
  .intel-col { gap: 12px; }

  /* All cards: reduce padding on mobile */
  .intel-card-dark,
  .intel-card-eco {
    padding: 16px;
  }

  /* Weather: scale down the big temperature number */
  .wc-temp { font-size: 1.8rem; }
  .wc-icon { font-size: 2rem; }

  /* Forecast: smaller day cells, still scrollable */
  .fc-day {
    min-width: 44px;
    padding: 8px 5px;
  }
  .fc-icon { font-size: 1rem; }
  .fc-temp { font-size: .78rem; }

  /* Soil grid: 2 cols but tighter */
  #soilGrid { gap: 6px; }
  .soil-item { padding: 12px 8px; }
  .si-val { font-size: 1.15rem; }
  .si-status { font-size: .6rem; }

  /* Solar: summary items wrap to single column */
  .solar-summary { flex-direction: column; }
  .sol-chart { height: 52px; }

  /* Planting calendar: 2-col grid on mobile */
  .pc-grid { grid-template-columns: repeat(2, 1fr); gap: 7px; }

  /* Disease risk: stack risk badge and disease on narrow screens */
  .dr-item { flex-wrap: wrap; }
  .dr-risk  { order: -1; margin-bottom: 4px; }

  /* Yield form: full-width inputs */
  .ypc-form { flex-direction: column; }
  .ypc-input { width: 100%; min-width: 0; flex: none; }

  /* Local indicators: tighten up */
  .li-item { gap: 6px; }
  .li-status { font-size: .52rem; padding: 2px 7px; }

  /* Location strip: stack on very narrow */
  .intel-location-strip { flex-direction: column; align-items: flex-start; gap: 8px; }

  /* Plant Doctor upload zone: tighter */
  .pd-drop-area { padding: 24px 16px; }

  /* Suppress hover transforms on touch devices */
  .intel-card:hover,
  .intel-card-dark:hover,
  .intel-card-eco:hover {
    transform: none !important;
  }
}

@media (max-width: 480px) {
  /* Location bar in hero: stack GPS + search button */
  .intel-location-bar {
    border-radius: var(--radius-md);
    padding: 10px 14px;
  }
  .ilb-btn { font-size: .6rem; }

  /* Forecast days: even tighter */
  .fc-day { min-width: 40px; padding: 6px 4px; }
  .fc-day-name { font-size: .5rem; letter-spacing: 0; }

  /* Soil: stack to 1 col on very small screens */
  #soilGrid { grid-template-columns: 1fr 1fr; } /* keep 2 cols — fits */
  .si-val { font-size: 1.05rem; }

  /* Solar chart: shorter */
  .sol-chart { height: 44px; }
  .sol-bar-label { font-size: .45rem; }

  /* Yield output: tighter */
  .ypo-range { font-size: 1.3rem; }
}

/* ════════════════════════════════════════════════════════════
   ECOVITALIZE — Active phase highlight
   ════════════════════════════════════════════════════════════ */
.ep-active {
  border-color: var(--green);
  background: var(--green-pale);
  box-shadow: 0 0 0 2px rgba(26,107,60,.12);
}
.ep-active .eco-phase-num {
  background: var(--green);
  color: var(--white);
}

/* ════════════════════════════════════════════════════════════
   COOPERATIVE — Tier modifier
   ════════════════════════════════════════════════════════════ */
.cmb-tier-farmer {
  border-left-color: var(--green);
  background: linear-gradient(90deg, rgba(26,107,60,.06) 0%, transparent 100%);
}

/* ════════════════════════════════════════════════════════════
   NDPR / LEGAL PAGES
   ════════════════════════════════════════════════════════════ */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 64px) clamp(20px, 5vw, 48px);
  font-family: var(--ff-body);
  font-size: .9rem;
  font-weight: 300;
  color: var(--ink-mid);
  line-height: 1.8;
}
.legal-content h1, .legal-content h2, .legal-content h3 {
  font-family: var(--ff-display);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  margin-top: 2em;
  margin-bottom: .5em;
}
.legal-content h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.legal-content h2 { font-size: clamp(1.15rem, 2.5vw, 1.4rem); }
.legal-content h3 { font-size: 1rem; }
.legal-content p  { margin: 0 0 1em; }
.legal-content ul, .legal-content ol {
  margin: 0 0 1em 1.4em;
  padding: 0;
}
.legal-content li { margin-bottom: .4em; }
.legal-content a  { color: var(--green); text-decoration: underline; }
.legal-updated {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: .7rem;
  letter-spacing: .5px;
  color: var(--ink-soft);
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: 4px 12px;
  margin-bottom: 2em;
}

/* ════════════════════════════════════════════════════════════
   ECOVITALIZE — UI Enhancement Layer v2
   ════════════════════════════════════════════════════════════ */

/* ── Eco Stats Strip ────────────────────────────────────────── */
.eco-stats-strip {
  background: var(--white);
  border-bottom: 1px solid var(--rule);
}
.eco-stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(16px, 3vw, 24px) clamp(16px, 5vw, 48px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
@media (min-width: 480px) {
  .eco-stats-inner { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
@media (min-width: 768px) {
  .eco-stats-inner {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding-top: 0;
    padding-bottom: 0;
  }
}
.ess-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--cream);
  border-radius: var(--radius-sm);
  min-height: 64px;
}
@media (min-width: 768px) {
  .ess-item {
    background: transparent;
    border-radius: 0;
    padding: 20px 20px;
    border-right: 1px solid var(--rule);
  }
  .ess-item:last-child { border-right: none; }
}
.ess-item div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.ess-item strong {
  font-size: .82rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ess-item span {
  font-family: var(--ff-mono);
  font-size: .57rem;
  color: var(--ink-soft);
  letter-spacing: .4px;
  text-transform: uppercase;
  line-height: 1.4;
}
.ess-icon {
  font-size: 1.35rem;
  width: 38px;
  height: 38px;
  min-width: 38px;
  background: linear-gradient(135deg, #fdf5ec 0%, rgba(92,58,30,.07) 100%);
  border: 1px solid rgba(92,58,30,.14);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
/* Hide flex dividers — grid handles spacing */
.ess-div { display: none; }

/* ── Challenge Cards ────────────────────────────────────────── */
.ecc {
  background: var(--white);
  border: 1px solid rgba(92,58,30,.13);
  border-left: 3px solid var(--earth);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  align-items: flex-start;
  gap: 14px;
}
.ecc:hover {
  border-left-color: var(--earth);
  box-shadow: 0 4px 16px rgba(92,58,30,.1);
  transform: translateX(4px);
}
.ecc-icon {
  font-size: 1.4rem;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #fdf5ec 0%, rgba(92,58,30,.07) 100%);
  border: 1px solid rgba(92,58,30,.14);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ecc strong {
  display: block;
  font-size: .88rem;
  font-weight: 700;
  color: var(--earth);
  margin-bottom: 3px;
}
.ecc div:last-child {
  font-size: .83rem;
  color: var(--ink-mid);
  line-height: 1.58;
  font-weight: 300;
}

/* ── Eco Pillars ────────────────────────────────────────────── */
@media (min-width: 900px) { .eco-pillars { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .eco-pillars { grid-template-columns: repeat(5, 1fr); } }

.eco-pillar {
  border-top: 3px solid var(--earth);
  background: var(--white);
}
.ep-icon {
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #fdf5ec 0%, rgba(92,58,30,.08) 100%);
  border: 1px solid rgba(92,58,30,.14);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.ep-title {
  font-size: .92rem;
}
.ep-income {
  font-size: .65rem;
  padding: 5px 10px;
  line-height: 1.4;
}

/* ── Synergy Visual ─────────────────────────────────────────── */
.sv-centre {
  font-size: 2rem;
  background: linear-gradient(135deg, var(--green-deep) 0%, var(--green) 100%);
  color: var(--white);
  box-shadow: 0 0 0 8px rgba(42,138,80,.18), 0 0 0 18px rgba(42,138,80,.07);
}
.sf-item {
  padding: 12px 14px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius-sm);
  transition: var(--t-fast);
}
.sf-item:hover {
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.16);
}
.sf-arrow {
  color: var(--gold-warm);
  font-size: 1.1rem;
  font-weight: 700;
}

/* ── Active Phase fix & enhancement ────────────────────────── */
.eco-phase.ep-active,
.eco-phase.active {
  border-color: var(--earth);
  background: linear-gradient(160deg, #fffaf5 0%, var(--white) 100%);
  box-shadow: 0 0 0 1px var(--earth), 0 4px 16px rgba(92,58,30,.1);
}
.eco-phase.ep-active .ephase-label {
  color: var(--earth);
  font-weight: 700;
}
.eco-phase.ep-active .ephase-title {
  color: var(--earth);
}
.ephase-items div {
  font-size: .82rem;
  color: var(--ink-mid);
  line-height: 1.58;
  font-weight: 300;
  padding-left: 16px;
  position: relative;
}
.ephase-items div::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--ink-soft);
}
.eco-phase.ep-active .ephase-items div::before {
  content: '✓';
  color: var(--earth);
  font-size: .72rem;
  top: 2px;
  opacity: .85;
}

/* ════════════════════════════════════════════════════════════
   ABOUT — UI Enhancement Layer v2
   ════════════════════════════════════════════════════════════ */

/* ── About Hero inner centred ───────────────────────────────── */
.about .page-hero-inner,
.page-hero-inner {
  text-align: left;
}

/* ── Values Card — numbered badges ─────────────────────────── */
.avc-icon {
  font-size: .7rem;
  font-weight: 700;
  color: var(--green);
  background: linear-gradient(135deg, var(--green-pale) 0%, rgba(26,107,60,.1) 100%);
  border: 1px solid var(--green-light);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  font-family: var(--ff-mono);
}

/* ── CAC Cards — emoji icon container ──────────────────────── */
.cac-icon {
  font-size: 1.6rem;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--green-pale) 0%, rgba(26,107,60,.07) 100%);
  border: 1px solid var(--green-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.cac-val {
  font-size: .88rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

/* ── Governance Tiers ───────────────────────────────────────── */
.gov-tier {
  border-left: 3px solid transparent;
  transition: all .25s ease;
}
.gov-tier:hover {
  border-left-color: var(--green);
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(26,107,60,.1);
}
.gov-tier-num {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--green-pale) 0%, rgba(26,107,60,.1) 100%);
  border: 1px solid var(--green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .62rem;
  letter-spacing: 0;
  margin-bottom: 14px;
}
.gov-tier-title {
  font-size: 1rem;
  margin-bottom: 10px;
}

/* ── Community Stats — card layout ─────────────────────────── */
.community-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 28px;
}
@media (min-width: 480px) { .community-stats { grid-template-columns: repeat(2, 1fr); } }

.cs-item {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: var(--t-base);
}
.cs-item:hover {
  border-color: var(--green-light);
  box-shadow: 0 4px 16px rgba(26,107,60,.08);
}
.cs-icon {
  font-size: 1.4rem;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--green-pale) 0%, rgba(26,107,60,.07) 100%);
  border: 1px solid var(--green-light);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cs-text strong {
  font-size: .88rem;
}
.cs-text span {
  font-size: .8rem;
  color: var(--ink-soft);
  line-height: 1.55;
  font-weight: 300;
}
