/* ============================================================
   FIRO — public website styles (night-jungle theme)
   Used by: index, about, blog, post, contact, report, login,
            admin and 404 pages.
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@500;600;700;800&display=swap");

:root {
  /* Jungle night palette */
  --jg-bg-0: #020d08;
  --jg-bg-1: #04160e;
  --jg-bg-2: #072116;
  --jg-leaf: #2b8e4e;          /* FIRO logo green */
  --jg-leaf-bright: #4fd185;
  --jg-lime: #b8f36b;
  --jg-fire: #f47a1f;          /* FIRO logo orange */
  --jg-fire-bright: #ff9a3c;
  --jg-ember: #ffcf6b;
  --jg-danger: #ff5d5d;

  --jg-text: #e8f5ec;
  --jg-text-dim: #b3cdbd;
  --jg-muted: #7f9f8c;

  --jg-glass: rgba(6, 28, 18, 0.62);
  --jg-glass-strong: rgba(4, 20, 13, 0.86);
  --jg-glass-soft: rgba(10, 40, 26, 0.45);
  --jg-border: rgba(150, 230, 180, 0.14);
  --jg-border-strong: rgba(150, 230, 180, 0.28);

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --header-h: 72px;
  --container: 1180px;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Outfit", "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body.site {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--jg-text);
  background: var(--jg-bg-0);
  overflow-x: hidden;
}

body.site main { flex: 1; }

img { max-width: 100%; display: block; }
a { color: var(--jg-leaf-bright); text-decoration: none; }
a:hover { color: var(--jg-lime); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; color: #f4fbf6; }
p { margin: 0 0 1em; }
::selection { background: rgba(244, 122, 31, .45); color: #fff; }

:focus-visible { outline: 2px solid var(--jg-fire-bright); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

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

/* ============================================================
   Jungle background (built by js/jungle-bg.js)
   ============================================================ */
#jungle-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 78% 8%, rgba(120, 210, 160, 0.16), transparent 60%),
    radial-gradient(ellipse 60% 40% at 15% 20%, rgba(40, 120, 80, 0.14), transparent 65%),
    linear-gradient(180deg, #03140d 0%, #06281a 42%, #041a11 70%, #020d08 100%);
}

#jungle-bg .jg-moon {
  position: absolute;
  top: 7%;
  right: 11%;
  width: clamp(70px, 9vw, 130px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 36%, #f6fbe9 0%, #dcebd0 38%, #b9d6b0 62%, rgba(185, 214, 176, 0) 72%);
  box-shadow:
    0 0 60px 20px rgba(210, 245, 215, 0.16),
    0 0 180px 70px rgba(120, 210, 160, 0.10);
  opacity: .9;
}

#jungle-bg .jg-rays {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 90%;
  height: 120%;
  background: repeating-conic-gradient(from 200deg at 85% 12%,
    rgba(190, 240, 205, 0.045) 0deg 3deg, transparent 3deg 11deg);
  mask-image: radial-gradient(ellipse at 85% 12%, #000 0%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at 85% 12%, #000 0%, transparent 65%);
  animation: jg-rays 24s ease-in-out infinite alternate;
}

#jungle-bg .jg-layer {
  position: absolute;
  left: -40px;
  top: 0;
  width: calc(100% + 80px);
  height: 118%;
  will-change: transform;
}

#jungle-bg .jg-mist {
  position: absolute;
  left: -50%;
  width: 200%;
  height: 28%;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(175, 225, 195, 0.085), transparent 70%);
  filter: blur(18px);
  animation: jg-mist 70s linear infinite alternate;
}
#jungle-bg .jg-mist-1 { top: 52%; }
#jungle-bg .jg-mist-2 { top: 70%; height: 34%; animation-duration: 95s; animation-direction: alternate-reverse; opacity: .8; }

#jungle-bg .jg-particles { position: absolute; inset: 0; width: 100%; height: 100%; }

#jungle-bg .jg-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 85% 75% at 50% 40%, transparent 40%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(180deg, rgba(2, 13, 8, 0.25) 0%, transparent 25%, transparent 75%, rgba(2, 13, 8, 0.55) 100%);
}

@keyframes jg-mist { from { transform: translateX(-8%); } to { transform: translateX(8%); } }
@keyframes jg-rays { from { opacity: .55; transform: rotate(-2deg); } to { opacity: 1; transform: rotate(2deg); } }

@media (prefers-reduced-motion: reduce) {
  #jungle-bg .jg-mist, #jungle-bg .jg-rays { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Header / navigation (built by js/site.js)
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-h);
  background: linear-gradient(180deg, rgba(2, 13, 8, 0.85), rgba(2, 13, 8, 0.55));
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--jg-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 12px; color: var(--jg-text); }
.brand:hover { color: #fff; }
.brand-mark { width: auto; height: 38px; flex-shrink: 0; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .35)); }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.45rem; letter-spacing: .08em; line-height: 1; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--jg-text-dim);
  font-weight: 500;
  font-size: .95rem;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: #fff; background: rgba(150, 230, 180, 0.08); }
.nav-links a.active { color: #fff; background: rgba(79, 209, 133, 0.14); box-shadow: inset 0 0 0 1px rgba(79, 209, 133, .25); }
.nav-links a.nav-report { color: #ffd9b8; }
.nav-links a.nav-report:hover { background: rgba(244, 122, 31, .14); color: #fff; }

.nav-actions { display: flex; align-items: center; gap: 10px; }

/* Round profile button that opens the dashboard */
.nav-profile {
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-size: 1.05rem;
  color: #04160e;
  background: linear-gradient(135deg, #4fd185 0%, #2b8e4e 100%);
  box-shadow: 0 6px 20px rgba(43, 142, 78, .35), 0 0 0 3px rgba(79, 209, 133, .15);
  transition: transform .15s, box-shadow .2s;
}
.nav-profile:hover { color: #02100a; transform: translateY(-1px); box-shadow: 0 8px 26px rgba(43, 142, 78, .5), 0 0 0 3px rgba(79, 209, 133, .25); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--jg-border-strong);
  background: rgba(8, 36, 24, .6);
  color: var(--jg-text);
  font-size: 1.15rem;
  cursor: pointer;
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-actions .btn-dashboard-label { display: none; }
  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px 16px 20px;
    /* solid: a blurred panel can't blur again inside the blurred header */
    background: #04140d;
    border-bottom: 1px solid var(--jg-border-strong);
    box-shadow: 0 24px 40px rgba(0, 0, 0, .55);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav-links.open { opacity: 1; transform: none; visibility: visible; }
  .nav-links a { padding: 12px 14px; border-radius: 12px; font-size: 1rem; }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  --btn-bg: rgba(150, 230, 180, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid var(--jg-border-strong);
  background: var(--btn-bg);
  color: var(--jg-text);
  font: 600 .95rem/1.2 var(--font-body);
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover { color: #fff; border-color: rgba(150, 230, 180, .45); background: rgba(150, 230, 180, 0.14); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.btn-fire {
  border: none;
  background: linear-gradient(135deg, #ff9a3c 0%, #f47a1f 50%, #d9480f 100%);
  color: #fff;
  box-shadow: 0 8px 26px rgba(244, 122, 31, 0.35);
}
.btn-fire:hover { color: #fff; background: linear-gradient(135deg, #ffab5a 0%, #ff8a30 50%, #e8561a 100%); box-shadow: 0 10px 34px rgba(244, 122, 31, 0.5); }

.btn-leaf {
  border: none;
  background: linear-gradient(135deg, #4fd185 0%, #2b8e4e 100%);
  color: #04160e;
  box-shadow: 0 8px 26px rgba(43, 142, 78, 0.35);
}
.btn-leaf:hover { color: #02100a; background: linear-gradient(135deg, #6de29c 0%, #36a35d 100%); }

.btn-danger { border-color: rgba(255, 93, 93, .4); color: #ffb3b3; background: rgba(255, 93, 93, .08); }
.btn-danger:hover { background: rgba(255, 93, 93, .18); color: #fff; border-color: rgba(255, 93, 93, .6); }

.btn-sm { padding: 7px 13px; font-size: .85rem; }
.btn-lg { padding: 14px 26px; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* ============================================================
   Layout helpers
   ============================================================ */
.section { padding: 84px 0; position: relative; }
.section-tight { padding: 48px 0; }

.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.section-head p { color: var(--jg-text-dim); font-size: 1.05rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--jg-lime);
  background: rgba(184, 243, 107, 0.08);
  border: 1px solid rgba(184, 243, 107, 0.22);
}
.eyebrow.fire { color: #ffc48f; background: rgba(244, 122, 31, .1); border-color: rgba(244, 122, 31, .3); }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.glass {
  background: var(--jg-glass);
  border: 1px solid var(--jg-border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  box-shadow: var(--shadow);
}
.card { padding: 26px; }
.card h3 { font-size: 1.2rem; margin-bottom: .45em; }
.card p { color: var(--jg-text-dim); margin-bottom: 0; }

.icon-badge {
  width: 50px; height: 50px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 14px;
  margin-bottom: 16px;
  font-size: 1.25rem;
  color: var(--jg-lime);
  background: linear-gradient(135deg, rgba(79, 209, 133, .22), rgba(43, 142, 78, .08));
  border: 1px solid rgba(79, 209, 133, .28);
}
.icon-badge.fire { color: #ffc48f; background: linear-gradient(135deg, rgba(244, 122, 31, .25), rgba(244, 122, 31, .06)); border-color: rgba(244, 122, 31, .35); }

.text-dim { color: var(--jg-text-dim); }
.text-muted { color: var(--jg-muted); }
.text-fire { color: var(--jg-fire-bright); }
.text-leaf { color: var(--jg-leaf-bright); }
.center { text-align: center; }

/* ============================================================
   Hero
   ============================================================ */
.hero { padding: 120px 0 110px; position: relative; }
.hero-inner { max-width: 860px; margin: 0 auto; text-align: center; }
.hero-inner .lead { margin-left: auto; margin-right: auto; }
.hero-inner .hero-actions { justify-content: center; }
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -.01em;
  margin-bottom: .35em;
}
.hero h1 .glow {
  background: linear-gradient(120deg, #ffcf6b 0%, #ff9a3c 40%, #f47a1f 70%, #ff5d2d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 40px rgba(244, 122, 31, .25);
}
.hero .lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--jg-text-dim); max-width: 660px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.page-hero { padding: 76px 0 36px; text-align: center; }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
.page-hero p { color: var(--jg-text-dim); max-width: 680px; margin: 0 auto; font-size: 1.1rem; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 56px; }
@media (max-width: 820px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { padding: 22px; text-align: left; }
.stat-value { font-family: var(--font-head); font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 800; color: #fff; line-height: 1.1; }
.stat-value.fire { color: var(--jg-fire-bright); }
.stat-value.leaf { color: var(--jg-leaf-bright); }
.stat-label { font-size: .88rem; color: var(--jg-text-dim); margin-top: 6px; }

/* Steps (how it works) */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 26px 22px 24px; }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute; top: 18px; right: 20px;
  font-family: var(--font-head); font-weight: 800; font-size: 1.6rem;
  color: rgba(184, 243, 107, .18);
}

/* Tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--jg-border); }
.table th { font-family: var(--font-head); font-weight: 600; color: var(--jg-lime); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; background: rgba(4, 22, 14, .5); }
.table tr.highlight td { background: rgba(244, 122, 31, .1); color: #fff; font-weight: 600; }

/* CTA band */
.cta-band {
  padding: 46px;
  display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(244, 122, 31, .22), transparent 55%),
    radial-gradient(ellipse at 100% 100%, rgba(79, 209, 133, .18), transparent 55%),
    var(--jg-glass);
}
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .3em; }
.cta-band p { color: var(--jg-text-dim); margin: 0; max-width: 560px; }

/* ============================================================
   Blog
   ============================================================ */
.blog-card { display: flex; flex-direction: column; overflow: hidden; color: var(--jg-text); transition: transform .2s, border-color .2s; }
.blog-card:hover { transform: translateY(-4px); border-color: var(--jg-border-strong); color: var(--jg-text); }
.blog-cover {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(244, 122, 31, .35), transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(79, 209, 133, .3), transparent 60%),
    linear-gradient(135deg, #0b2d1d, #04160e);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.6rem; color: rgba(255, 255, 255, .8);
}
.blog-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.blog-meta { font-size: .82rem; color: var(--jg-muted); margin-bottom: 8px; display: flex; gap: 10px; flex-wrap: wrap; }
.blog-card h3 { font-size: 1.22rem; margin-bottom: .45em; }
.blog-card p { color: var(--jg-text-dim); font-size: .95rem; flex: 1; }
.read-more { font-weight: 600; color: var(--jg-leaf-bright); display: inline-flex; gap: 6px; align-items: center; }

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--jg-lime);
  background: rgba(184, 243, 107, .08);
  border: 1px solid rgba(184, 243, 107, .2);
}

.article { max-width: 820px; margin: 0 auto; padding: 40px; }
@media (max-width: 640px) { .article { padding: 24px 20px; } }
.article-cover { width: 100%; border-radius: 14px; margin-bottom: 28px; aspect-ratio: 16 / 8; object-fit: cover; }

/* Markdown content */
.prose { color: var(--jg-text-dim); font-size: 1.05rem; line-height: 1.8; }
.prose h1, .prose h2, .prose h3 { color: #fff; margin-top: 1.6em; }
.prose h2 { font-size: 1.6rem; }
.prose h3 { font-size: 1.25rem; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: #fff; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin: .35em 0; }
.prose blockquote {
  margin: 1.4em 0; padding: 14px 20px;
  border-left: 3px solid var(--jg-fire);
  background: rgba(244, 122, 31, .07);
  border-radius: 0 12px 12px 0;
  color: var(--jg-text);
}
.prose code { font-size: .9em; padding: 2px 6px; border-radius: 6px; background: rgba(150, 230, 180, .1); color: var(--jg-lime); }
.prose pre { overflow-x: auto; padding: 16px; border-radius: 12px; background: rgba(0, 0, 0, .35); border: 1px solid var(--jg-border); }
.prose pre code { background: none; padding: 0; }
.prose img { border-radius: 12px; margin: 1.2em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: .95rem; }
.prose th, .prose td { padding: 10px 12px; border: 1px solid var(--jg-border); text-align: left; }
.prose th { color: var(--jg-lime); background: rgba(4, 22, 14, .5); }
.prose hr { border: none; height: 1px; background: var(--jg-border); margin: 2em 0; }

/* ============================================================
   Forms
   ============================================================ */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-weight: 600; font-size: .9rem; color: var(--jg-text); }
.field .hint { font-size: .8rem; color: var(--jg-muted); }
.req { color: var(--jg-fire-bright); }

.input, .select, .textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--jg-border-strong);
  background: rgba(2, 13, 8, 0.6);
  color: var(--jg-text);
  font: 400 .98rem/1.4 var(--font-body);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.input::placeholder, .textarea::placeholder { color: #5f7e6c; }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--jg-leaf-bright);
  box-shadow: 0 0 0 3px rgba(79, 209, 133, .18);
  background: rgba(2, 13, 8, 0.8);
}
.textarea { min-height: 140px; resize: vertical; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--jg-text-dim) 50%), linear-gradient(135deg, var(--jg-text-dim) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.select option { background: #06201a; color: var(--jg-text); }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.choice-group { display: flex; flex-wrap: wrap; gap: 10px; }
.choice {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--jg-border-strong);
  background: rgba(2, 13, 8, .5);
  cursor: pointer;
  font-weight: 500; font-size: .92rem;
  transition: all .2s;
}
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice:has(input:checked) { border-color: var(--jg-fire); background: rgba(244, 122, 31, .15); color: #fff; }
.choice:has(input:focus-visible) { outline: 2px solid var(--jg-fire-bright); outline-offset: 2px; }

.file-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 26px;
  border-radius: var(--radius-sm);
  border: 1.5px dashed var(--jg-border-strong);
  background: rgba(2, 13, 8, .4);
  color: var(--jg-text-dim);
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.file-drop:hover, .file-drop.drag { border-color: var(--jg-leaf-bright); background: rgba(79, 209, 133, .06); }
.file-drop i { font-size: 1.6rem; color: var(--jg-leaf-bright); }
.photo-preview { position: relative; margin-top: 12px; display: none; }
.photo-preview.show { display: block; }
.photo-preview img { max-height: 260px; border-radius: 12px; border: 1px solid var(--jg-border); }
.photo-preview button { position: absolute; top: 8px; left: 8px; }

.map-picker { height: 300px; border-radius: var(--radius-sm); border: 1px solid var(--jg-border-strong); overflow: hidden; }

.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--jg-border);
  background: rgba(79, 209, 133, .08);
  color: var(--jg-text);
  display: flex; gap: 12px; align-items: flex-start;
}
.alert i { margin-top: 3px; }
.alert-fire { background: rgba(244, 122, 31, .1); border-color: rgba(244, 122, 31, .35); }
.alert-error { background: rgba(255, 93, 93, .1); border-color: rgba(255, 93, 93, .35); color: #ffd1d1; }
.alert-success { background: rgba(79, 209, 133, .1); border-color: rgba(79, 209, 133, .4); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  margin-top: 60px;
  padding: 56px 0 28px;
  background: linear-gradient(180deg, rgba(2, 13, 8, 0.35), rgba(2, 13, 8, 0.92) 40%);
  border-top: 1px solid var(--jg-border);
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--jg-lime); margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-grid a { color: var(--jg-text-dim); }
.footer-grid a:hover { color: #fff; }
.footer-credit { color: var(--jg-text-dim); font-weight: 600; }
.footer-credit:hover { color: var(--jg-fire-bright); }
.footer-about p { color: var(--jg-text-dim); font-size: .95rem; margin-top: 14px; max-width: 360px; }
.footer-bottom {
  margin-top: 40px; padding-top: 22px;
  border-top: 1px solid var(--jg-border);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: .85rem; color: var(--jg-muted);
}

/* ============================================================
   Misc: reveal animation, toast, modal, spinner, empty states
   ============================================================ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

.toast-stack { position: fixed; bottom: 22px; right: 22px; z-index: 300; display: grid; gap: 10px; max-width: min(380px, calc(100vw - 44px)); }
.toast {
  padding: 13px 18px;
  border-radius: 12px;
  background: var(--jg-glass-strong);
  border: 1px solid var(--jg-border-strong);
  color: var(--jg-text);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  animation: toast-in .25s ease;
  font-size: .93rem;
}
.toast.error { border-color: rgba(255, 93, 93, .5); }
.toast.success { border-color: rgba(79, 209, 133, .55); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(1, 8, 5, .72);
  backdrop-filter: blur(4px);
}
.modal-backdrop.open { display: flex; }
.modal { width: 100%; max-width: 760px; max-height: calc(100vh - 40px); overflow: auto; padding: 26px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.modal-head h3 { margin: 0; }

.spinner {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 3px solid rgba(150, 230, 180, .2);
  border-top-color: var(--jg-leaf-bright);
  animation: spin .8s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

.empty { padding: 40px 20px; text-align: center; color: var(--jg-muted); }
.empty i { font-size: 2rem; margin-bottom: 10px; display: block; color: var(--jg-border-strong); }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.pill-new { background: rgba(244, 122, 31, .18); color: #ffc48f; }
.pill-reviewing { background: rgba(255, 207, 107, .15); color: var(--jg-ember); }
.pill-verified { background: rgba(255, 93, 93, .18); color: #ffb3b3; }
.pill-resolved { background: rgba(79, 209, 133, .16); color: var(--jg-leaf-bright); }
.pill-dismissed { background: rgba(127, 159, 140, .16); color: var(--jg-muted); }
.pill-unread { background: rgba(244, 122, 31, .18); color: #ffc48f; }
.pill-read { background: rgba(127, 159, 140, .16); color: var(--jg-muted); }
.pill-published { background: rgba(79, 209, 133, .16); color: var(--jg-leaf-bright); }
.pill-draft { background: rgba(127, 159, 140, .16); color: var(--jg-muted); }

/* Team */
.team-card { text-align: center; padding: 30px 24px; }
.avatar {
  width: 86px; height: 86px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 800; font-size: 1.8rem;
  color: #04160e;
  background: linear-gradient(135deg, var(--jg-lime), var(--jg-leaf));
  box-shadow: 0 0 0 4px rgba(184, 243, 107, .12), 0 10px 30px rgba(43, 142, 78, .35);
}
.avatar.fire { background: linear-gradient(135deg, var(--jg-ember), var(--jg-fire)); box-shadow: 0 0 0 4px rgba(244, 122, 31, .15), 0 10px 30px rgba(244, 122, 31, .35); }
.team-card .role { color: var(--jg-leaf-bright); font-weight: 600; font-size: .9rem; }

/* Timeline */
.timeline { position: relative; display: grid; gap: 18px; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--jg-fire), var(--jg-leaf)); opacity: .6; }
.timeline-item { position: relative; padding: 18px 22px; }
.timeline-item::before {
  content: ""; position: absolute; left: -26px; top: 24px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--jg-bg-0); border: 3px solid var(--jg-fire-bright);
}
.timeline-item h4 { margin-bottom: .25em; }
.timeline-item p { margin: 0; color: var(--jg-text-dim); }

/* Login page (jungle skin) */
.auth-wrap { min-height: calc(100vh - var(--header-h)); display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 430px; padding: 34px; }
.auth-card .logo { width: auto; height: 80px; margin: 0 auto 14px; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .4)); }

/* ============================================================
   Apple-style refinements
   Clarity (strong type hierarchy, generous space), deference
   (content first, quiet chrome), depth (translucent layers,
   soft shadows) and calm, purposeful motion.
   ============================================================ */
:root {
  --header-h: 60px;
  --radius: 22px;
  --radius-sm: 12px;
  --ease: cubic-bezier(.25, .1, .25, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --hairline: rgba(255, 255, 255, 0.08);
  --shadow: 0 1px 2px rgba(0, 0, 0, .25), 0 16px 40px rgba(0, 0, 0, .28);
  --jg-glass: rgba(10, 32, 22, 0.55);
}

body.site { font-size: 17px; line-height: 1.53; letter-spacing: -.01em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
h1, h2, h3, h4 { letter-spacing: -.02em; line-height: 1.1; }
h3 { font-weight: 600; }

/* Navigation: slim, frosted, quiet */
.site-header {
  background: rgba(2, 13, 8, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline);
}
.brand-mark { height: 32px; }
.brand-name { font-size: 1.25rem; letter-spacing: .06em; }
.nav-links { gap: 2px; }
.nav-links a { padding: 8px 14px; font-size: .88rem; font-weight: 500; color: rgba(232, 245, 236, .72); transition: color .25s var(--ease); }
.nav-links a:hover { background: none; color: #fff; }
.nav-links a.active { background: none; box-shadow: none; color: #fff; }
.nav-links a.nav-report { color: #ffb67a; }
.nav-links a.nav-report:hover { background: none; color: #ffd2ab; }
.nav-profile { width: 36px; height: 36px; font-size: .9rem; box-shadow: none; }
.nav-profile:hover { transform: none; box-shadow: 0 0 0 4px rgba(79, 209, 133, .18); }
@media (max-width: 960px) {
  .nav-links { background: rgba(3, 16, 10, .97); border-bottom: 1px solid var(--hairline); }
  .nav-links a { padding: 14px 8px; border-radius: 0; font-size: 1.05rem; border-bottom: 1px solid var(--hairline); }
  .nav-links li:last-child a { border-bottom: 0; }
}

.nav-toggle { border: 0; background: none; border-radius: 10px; }
.nav-toggle:hover { background: rgba(255, 255, 255, .08); }

/* Buttons: solid, calm, 44px touch targets */
.btn {
  min-height: 44px;
  padding: 11px 22px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font: 500 .95rem/1.2 var(--font-body);
  letter-spacing: -.005em;
  transition: background .25s var(--ease), color .25s var(--ease), transform .2s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { background: rgba(255, 255, 255, 0.16); border-color: transparent; }
.btn:active { transform: scale(.98); }
.btn-fire, .btn-fire:hover { background: #f47a1f; box-shadow: none; }
.btn-fire:hover { background: #ff8a33; }
.btn-leaf, .btn-leaf:hover { background: #4fd185; box-shadow: none; }
.btn-leaf:hover { background: #66dc97; }
.btn-danger { background: rgba(255, 93, 93, .12); border-color: transparent; }
.btn-danger:hover { background: rgba(255, 93, 93, .22); border-color: transparent; }
.btn-sm { min-height: 34px; padding: 6px 14px; font-size: .84rem; }
.btn-lg { min-height: 52px; padding: 14px 28px; font-size: 1.05rem; }

/* Sections: generous space, centred, readable width */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-tight { padding: clamp(40px, 6vw, 64px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 700; }
.section-head p { font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.5; max-width: 640px; margin-left: auto; margin-right: auto; }

/* Section labels: simple coloured text, no pill */
.eyebrow {
  padding: 0;
  margin-bottom: 12px;
  background: none;
  border: 0;
  border-radius: 0;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: -.005em;
  text-transform: none;
  color: var(--jg-leaf-bright);
}
.eyebrow.fire { background: none; border: 0; color: var(--jg-fire-bright); }

/* Hero: large, confident type */
.hero { padding: clamp(96px, 14vw, 168px) 0 clamp(80px, 11vw, 136px); }
.hero h1 { font-size: clamp(2.8rem, 7.4vw, 5.6rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.04; }
.hero h1 .glow { text-shadow: none; }
.hero .lead { font-size: clamp(1.15rem, 2.2vw, 1.45rem); line-height: 1.45; color: rgba(232, 245, 236, .78); }
.hero-actions { gap: 12px; margin-top: 36px; }
.page-hero { padding: clamp(72px, 10vw, 120px) 0 clamp(28px, 4vw, 48px); }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 700; letter-spacing: -.03em; }
.page-hero p { font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.45; }

/* Surfaces: translucent material, hairline edge, soft depth */
.glass {
  background: var(--jg-glass);
  border: 1px solid var(--hairline);
  backdrop-filter: saturate(160%) blur(24px);
  -webkit-backdrop-filter: saturate(160%) blur(24px);
  box-shadow: var(--shadow);
}
.grid { gap: 20px; }
.card { padding: 30px; }
.card h3 { font-size: 1.25rem; }
.card p { line-height: 1.5; }
.icon-badge { width: 44px; height: 44px; border-radius: 12px; border: 0; font-size: 1.1rem; margin-bottom: 18px; background: rgba(79, 209, 133, .16); }
.icon-badge.fire { border: 0; background: rgba(244, 122, 31, .18); }
.step { padding: 30px 26px 28px; }
.step::before { font-weight: 600; font-size: 1rem; top: 26px; right: 26px; color: rgba(232, 245, 236, .3); }
.stat { padding: 28px; }
.stat-value { font-weight: 700; letter-spacing: -.03em; font-size: clamp(2rem, 4vw, 2.8rem); }
.stat-label { line-height: 1.4; }
.cta-band { padding: clamp(32px, 5vw, 56px); }
.cta-band h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; }
.team-card { padding: 36px 24px; }
.avatar { box-shadow: none; }
.avatar.fire { box-shadow: none; }
.team-card .role { font-weight: 500; color: var(--jg-text-dim); }
.timeline-item { padding: 22px 26px; }

/* Blog */
.blog-card { transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out); }
.blog-card:hover { transform: translateY(-4px) scale(1.01); border-color: var(--hairline); box-shadow: 0 2px 4px rgba(0, 0, 0, .25), 0 28px 60px rgba(0, 0, 0, .35); }
.blog-card h3 { font-size: 1.3rem; }
.tag { border: 0; font-weight: 500; }
.article { padding: clamp(24px, 5vw, 56px); }
.prose { font-size: 1.1rem; line-height: 1.7; }
.prose h2 { font-size: 1.75rem; font-weight: 700; }

/* Forms: calm fields with a clear focus ring */
.input, .select, .textarea { border-color: rgba(255, 255, 255, .12); background: rgba(0, 0, 0, .28); min-height: 44px; font-size: 1rem; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--jg-leaf-bright); box-shadow: 0 0 0 4px rgba(79, 209, 133, .2); }
.choice { border-color: rgba(255, 255, 255, .12); min-height: 44px; }
.alert { border-radius: var(--radius-sm); }

/* Footer: small, quiet type */
.site-footer { font-size: .88rem; border-top: 1px solid var(--hairline); background: rgba(2, 13, 8, .88); }
.footer-grid h4 { font-size: .8rem; letter-spacing: 0; text-transform: none; font-weight: 600; color: var(--jg-text); }
.footer-bottom { border-top: 1px solid var(--hairline); font-size: .8rem; }

/* Motion: gentle fade-up with an ease-out curve */
.reveal { transform: translateY(24px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .btn, .blog-card { transition: none; } }

/* ============================================================
   Quotes
   On-page: large italic serif, no box. Home page: one drifts in
   on the right while scrolling, then fades away.
   ============================================================ */
:root { --font-quote: "New York", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif; }

.page-quote { padding: clamp(56px, 9vw, 112px) 0; text-align: center; }
.page-quote figure { margin: 0 auto; max-width: 860px; }
.page-quote blockquote {
  margin: 0;
  font-family: var(--font-quote);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.6rem, 3.8vw, 2.6rem);
  line-height: 1.3;
  letter-spacing: -.01em;
  color: #f4fbf6;
  text-wrap: balance;
}
.page-quote blockquote::before { content: "\201C"; }
.page-quote blockquote::after { content: "\201D"; }
.page-quote figcaption {
  margin-top: 22px;
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--jg-text-dim);
}
.page-quote figcaption::before {
  content: "";
  display: block;
  width: 36px; height: 2px;
  margin: 0 auto 16px;
  border-radius: 2px;
  background: var(--jg-fire-bright);
  opacity: .8;
}

.quote-float {
  position: fixed;
  right: clamp(20px, 4vw, 56px);
  top: 50%;
  z-index: 40;
  max-width: 330px;
  padding: 6px 20px 6px 0;
  text-align: right;
  border-right: 2px solid var(--jg-fire-bright);
  pointer-events: none;
  opacity: 0;
  transform: translate(24px, -50%);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
/* soft frosted shade behind the words, feathered so it has no visible edge */
.quote-float::before {
  content: "";
  position: absolute;
  inset: -70px -60px -70px -90px;
  z-index: -1;
  background: rgba(2, 13, 8, .78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
}
.quote-float.show { opacity: 1; transform: translate(0, -50%); }
.quote-float-text {
  margin: 0 0 10px;
  font-family: var(--font-quote);
  font-style: italic;
  font-size: 1.28rem;
  line-height: 1.4;
  color: #f4fbf6;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .7);
}
.quote-float-by { margin: 0; font-size: .85rem; font-weight: 500; color: var(--jg-text-dim); }
@media (max-width: 720px) {
  .quote-float { top: auto; bottom: 0; left: 0; right: 0; max-width: none; padding: 64px 24px 30px; border-right: 0; text-align: center; transform: translateY(16px); }
  .quote-float.show { transform: none; }
  /* phones: a frosted shade rising from the bottom edge */
  .quote-float::before { inset: 0; -webkit-mask-image: linear-gradient(to top, #000 70%, transparent); mask-image: linear-gradient(to top, #000 70%, transparent); }
  .quote-float-text { font-size: 1.12rem; }
  .quote-float-by::before { content: ""; display: block; width: 28px; height: 2px; margin: 0 auto 10px; border-radius: 2px; background: var(--jg-fire-bright); }
}
@media (prefers-reduced-motion: reduce) {
  .quote-float { transition: opacity .3s linear; }
}

/* ============================================================
   Volunteers page
   ============================================================ */
.volunteer-filter { display: flex; justify-content: center; margin-bottom: 30px; }
.volunteer-card { padding: 32px 28px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.volunteer-card .avatar { margin-bottom: 10px; }
.volunteer-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin-bottom: 10px; }
.volunteer-card h3 { margin: 6px 0 0; font-size: 1.3rem; }
.volunteer-card .role { color: var(--jg-text-dim); font-weight: 500; font-size: .95rem; }
.volunteer-card p { color: var(--jg-text-dim); margin: 8px 0 0; line-height: 1.55; font-size: .97rem; }
.volunteer-card .read-more { margin-top: auto; padding-top: 12px; }
.join-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .join-grid { grid-template-columns: 1fr; } }
.join-grid h2 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 700; }
.join-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.join-list li { position: relative; padding-left: 30px; color: var(--jg-text); }
.join-list li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; top: 1px; color: var(--jg-leaf-bright); }

/* Team cards with photos (About page) */
.team-grid .team-card { display: flex; flex-direction: column; align-items: center; padding: 36px 28px 32px; }
.team-photo {
  width: 132px; height: 132px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 2.4rem;
  color: #04160e;
  background: linear-gradient(135deg, var(--jg-lime), var(--jg-leaf));
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .06), 0 12px 30px rgba(0, 0, 0, .35);
}
.team-photo.fire { background: linear-gradient(135deg, var(--jg-ember), var(--jg-fire)); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-grid .team-card h3 { font-size: 1.3rem; margin: 0 0 4px; }
.team-grid .team-card .role { color: var(--jg-fire-bright); font-weight: 600; font-size: .95rem; margin-bottom: 14px; }
.team-grid .team-card p { color: var(--jg-text-dim); font-size: .97rem; line-height: 1.6; margin: 0; }

/* Blog covers: photo with the article title written over it */
.blog-cover { position: relative; overflow: hidden; display: flex; align-items: flex-end; justify-content: flex-start; aspect-ratio: 16 / 10; font-size: 1rem; color: #fff; }
.blog-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.blog-card:hover .blog-cover img { transform: scale(1.04); }
.blog-cover::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(2, 13, 8, 0) 30%, rgba(2, 13, 8, .35) 55%, rgba(2, 13, 8, .88) 100%);
}
.blog-cover:not(.has-photo)::after { background: linear-gradient(180deg, transparent 40%, rgba(2, 13, 8, .55)); }
.blog-cover .cover-title {
  position: relative; z-index: 1;
  margin: 0; padding: 22px 22px 20px;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .55);
  text-wrap: balance;
}
.blog-card .blog-body { padding-top: 18px; }

.article-hero { position: relative; margin: calc(-1 * clamp(24px, 5vw, 56px)) calc(-1 * clamp(24px, 5vw, 56px)) 26px; aspect-ratio: 16 / 8; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; display: flex; align-items: flex-end; }
.article-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.article-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2, 13, 8, 0) 35%, rgba(2, 13, 8, .85) 100%); }
.article-hero h1 {
  position: relative; z-index: 1;
  margin: 0; padding: clamp(20px, 4vw, 44px);
  font-size: clamp(1.8rem, 4.4vw, 3rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.08;
  color: #fff; text-shadow: 0 2px 20px rgba(0, 0, 0, .55); text-wrap: balance;
}
@media (max-width: 640px) { .article-hero { aspect-ratio: 4 / 3; } }
.article-hero.no-photo { aspect-ratio: auto; background: linear-gradient(135deg, #0b2d1d, #04160e); }

/* ============================================================
   Donate page
   ============================================================ */
.donate-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .donate-grid { grid-template-columns: 1fr; } .donate-side { order: -1; } }
.field-label { font-weight: 600; font-size: .9rem; color: var(--jg-text); }
.category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 560px) { .category-grid { grid-template-columns: 1fr; } }
.category-choice {
  position: relative; display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border-radius: var(--radius-sm); cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .12); background: rgba(0, 0, 0, .22);
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.category-choice input { position: absolute; opacity: 0; pointer-events: none; }
.category-choice i { color: var(--jg-leaf-bright); font-size: 1.05rem; margin-top: 3px; width: 20px; text-align: center; }
.category-choice strong { display: block; font-size: .95rem; color: var(--jg-text); }
.category-choice small { display: block; color: var(--jg-text-dim); font-size: .82rem; line-height: 1.4; margin-top: 2px; }
.category-choice:hover { border-color: rgba(255, 255, 255, .25); }
.category-choice:has(input:checked) { border-color: var(--jg-fire); background: rgba(244, 122, 31, .12); }
.category-choice:has(input:checked) i { color: var(--jg-fire-bright); }
.category-choice:has(input:focus-visible) { outline: 2px solid var(--jg-fire-bright); outline-offset: 2px; }
.amount-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; }
.donate-side h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 700; }
.donate-steps { list-style: none; counter-reset: dstep; margin: 26px 0 0; padding: 0; display: grid; gap: 18px; }
.donate-steps li { counter-increment: dstep; position: relative; padding-left: 48px; }
.donate-steps li::before {
  content: counter(dstep); position: absolute; left: 0; top: 0;
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: .9rem; color: #04160e; background: var(--jg-leaf-bright);
}
.donate-steps strong { display: block; color: var(--jg-text); }
.donate-steps span { color: var(--jg-text-dim); }

.year-tabs { justify-content: center; margin-bottom: 30px; }
.impact-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; text-align: center; margin-bottom: 28px; }
@media (max-width: 640px) { .impact-stats { grid-template-columns: 1fr; } }
.impact-value { font-family: var(--font-head); font-weight: 700; font-size: clamp(2.2rem, 5.6vw, 3.6rem); letter-spacing: -.03em; line-height: 1.05; color: #fff; }
.impact-label { color: var(--jg-text-dim); margin-top: 6px; }
.impact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
@media (max-width: 900px) { .impact-grid { grid-template-columns: 1fr; } }
.impact-grid h3 { margin-bottom: 18px; }
.bar-list { display: grid; gap: 14px; }
.bar-row { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(0, 1.4fr) auto; gap: 12px; align-items: center; font-size: .92rem; }
.bar-name { color: var(--jg-text); }
.bar-track { height: 10px; border-radius: 4px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 4px; background: var(--jg-leaf-bright); }
.bar-value { color: var(--jg-text-dim); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar-row:hover .bar-fill { background: #7fe3a8; }
@media (max-width: 520px) { .bar-row { grid-template-columns: 1fr auto; } .bar-track { grid-column: 1 / -1; order: 3; } }
.use-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.use-list li { padding-bottom: 18px; border-bottom: 1px solid var(--hairline); }
.use-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.use-top { display: flex; justify-content: space-between; gap: 12px; }
.use-top span { color: var(--jg-text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.use-meta { display: flex; gap: 10px; align-items: center; margin-top: 6px; font-size: .85rem; color: var(--jg-muted); }
.use-list p { margin: 8px 0 0; color: var(--jg-text-dim); font-size: .95rem; }

/* Public header: logo left, links centred, menu button right */
.site-header .nav { display: grid; grid-template-columns: 1fr auto 1fr; }
.site-header .nav-actions { grid-column: 3; justify-self: end; }
@media (max-width: 960px) {
  .site-header .nav-links { background: #04140d; }
  .site-header .nav-links a { display: flex; width: 100%; }
}

/* ── Footer flags ─────────────────────────────────────────── */
.footer-flags { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 20px; }
.footer-flag {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--jg-text-dim); font-size: .8rem; font-weight: 500;
}
.footer-flag img { width: 30px; height: 20px; object-fit: cover; }

/* ── Chinar leaf icon (symbol of Kashmir), takes the text colour ── */
.chinar {
  display: inline-block; width: 1.05em; height: 1.05em; vertical-align: -.16em;
  background-color: currentColor;
  -webkit-mask: url("/assets/chinar-leaf.svg") center / contain no-repeat;
          mask: url("/assets/chinar-leaf.svg") center / contain no-repeat;
}
.empty .chinar { margin: 0 auto 10px; font-size: 2.4rem; }
.eyebrow .chinar { width: 1.15em; height: 1.15em; }

/* ── Products ─────────────────────────────────────────────── */
.product-filter { display: flex; justify-content: center; margin-bottom: 30px; }
.product-card { display: flex; flex-direction: column; overflow: hidden; color: var(--jg-text); transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out); }
.product-card:hover { transform: translateY(-4px) scale(1.01); color: var(--jg-text); box-shadow: 0 2px 4px rgba(0, 0, 0, .25), 0 28px 60px rgba(0, 0, 0, .35); }
.product-media, .product-main {
  position: relative; overflow: hidden; aspect-ratio: 4 / 3;
  display: grid; place-items: center;
  background: radial-gradient(120% 90% at 30% 20%, rgba(79, 209, 133, .22), transparent 60%),
              radial-gradient(90% 80% at 85% 90%, rgba(244, 122, 31, .18), transparent 60%),
              linear-gradient(160deg, #0b3321, #041a10);
}
.product-media > i, .product-main > i { font-size: 3.4rem; color: rgba(232, 245, 236, .82); filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .45)); }
.product-media img, .product-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #06170f; transition: transform .8s var(--ease-out); z-index: 1; }
.product-card:hover .product-media img { transform: scale(1.04); }
.product-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; gap: 8px; }
.product-body .tag { align-self: flex-start; }
.product-body h2 { font-size: 1.25rem; line-height: 1.2; margin: 4px 0 0; letter-spacing: -.01em; }
.product-body p { color: var(--jg-text-dim); font-size: .95rem; margin: 0; flex: 1; line-height: 1.5; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.product-price { color: var(--jg-lime); font-weight: 600; font-size: .92rem; }
.product-help { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.product-help h2 { font-size: 1.4rem; margin: 0 0 6px; }
.product-help p { margin: 0; }

.product-back { margin: 10px 0 20px; }
.product-detail { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 36px; align-items: start; }
@media (max-width: 860px) { .product-detail { grid-template-columns: 1fr; gap: 24px; } }
.product-main { border-radius: var(--radius); border: 1px solid var(--hairline); }
.product-main > i { font-size: 5rem; }
.product-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.product-thumb { width: 76px; height: 58px; padding: 0; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: #06170f; cursor: pointer; opacity: .7; transition: opacity .2s, border-color .2s; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-thumb.active, .product-thumb:hover { opacity: 1; border-color: var(--jg-leaf-bright); }
.product-info h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.1; letter-spacing: -.02em; margin: 14px 0 12px; }
.product-summary { color: var(--jg-text-dim); font-size: 1.08rem; line-height: 1.55; }
.product-price-lg { font-size: 1.35rem; font-weight: 700; color: var(--jg-lime); margin: 6px 0 18px; }
.product-buy { padding: 20px; display: grid; gap: 12px; }
.product-buy .btn { justify-content: center; width: 100%; }
.product-buy .hint { margin: 0; font-size: .85rem; }
.product-qty { max-width: 140px; }
.product-share { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.product-more { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; margin-top: 36px; align-items: start; }
@media (max-width: 860px) { .product-more { grid-template-columns: 1fr; } }
.product-more h2 { font-size: 1.3rem; margin: 0 0 14px; }
.spec-list { margin: 0; display: grid; gap: 0; }
.spec-list div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 12px; padding: 11px 0; border-top: 1px solid var(--hairline); }
.spec-list div:first-child { border-top: 0; padding-top: 0; }
.spec-list dt { color: var(--jg-muted); font-size: .9rem; }
.spec-list dd { margin: 0; color: var(--jg-text); font-size: .95rem; }
.product-more .prose p { margin: 0 0 1em; }

/* ── FAQ ──────────────────────────────────────────────────── */
.faq { display: grid; gap: 12px; }
.faq details { padding: 0; overflow: hidden; }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; position: relative;
  font-weight: 600; font-size: 1.05rem; color: var(--jg-text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; font-weight: 400; color: var(--jg-leaf-bright); transition: transform .3s var(--ease-out);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0; padding: 0 24px 22px; color: var(--jg-text-dim); line-height: 1.6; }

/* ── Legal pages ──────────────────────────────────────────── */
.legal { max-width: 860px; margin: 0 auto; }
.legal h2 { font-size: 1.3rem; margin: 1.8em 0 .5em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .5em; }

/* ── Cookie and terms banner ──────────────────────────────── */
.consent {
  position: fixed; z-index: 90; left: 16px; right: 16px; bottom: 16px;
  max-width: 760px; margin: 0 auto; padding: 18px 20px;
  display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: rgba(4, 20, 13, .94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
  opacity: 0; transform: translateY(20px); transition: opacity .3s, transform .3s var(--ease-out);
}
.consent.show { opacity: 1; transform: none; }
.consent.hide { opacity: 0; transform: translateY(20px); }
.consent-text { flex: 1 1 360px; font-size: .9rem; color: var(--jg-text-dim); }
.consent-text strong { color: var(--jg-text); display: block; margin-bottom: 4px; }
.consent-text p { margin: 0; line-height: 1.5; }
.consent-text a { text-decoration: underline; text-underline-offset: 3px; }
.consent-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-legal { display: inline-flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.footer-legal a, .link-btn { color: var(--jg-muted); font-size: inherit; }
.link-btn { background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
.footer-legal a:hover, .link-btn:hover { color: #fff; }
.terms-check { font-size: .9rem; color: var(--jg-text-dim); display: flex; gap: 10px; align-items: flex-start; }
.terms-check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--jg-leaf-bright); flex: none; }
.terms-check a { text-decoration: underline; text-underline-offset: 3px; }

/* Wide tables in articles scroll inside their own box on phones */
.prose table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 640px) { .prose table { font-size: .88rem; } }
