/* Tell The Greens - public site styles. Mobile first. Green and neutral only. */

@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  /* Overridden per campaign by an inline style block. */
  --brand: #6ab023;
  --brand-on-light: #3f7014;
  --brand-on-dark: #6ab023;
  --on-brand: #0f1210;
  --brand-soft: #edf5e4;
  --ink: #0f1210;

  --ink-2: #1b211d;
  --ink-3: #2a312c;
  --paper: #ffffff;
  --paper-2: #f3f5f2;
  --muted-light: #4d564f;
  --muted-dark: #b9c2bb;
  --line-light: #dfe4de;
  --line-dark: #333b35;

  --hero-bg: var(--ink);
  --hero-fg: var(--paper);
  --hero-accent: var(--brand-on-dark);
  --hero-muted: var(--muted-dark);

  --radius: 14px;
  --gutter: 16px;
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html[data-mode='light'] {
  --hero-bg: var(--paper);
  --hero-fg: var(--ink);
  --hero-accent: var(--brand-on-light);
  --hero-muted: var(--muted-light);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--brand-on-light); text-underline-offset: 0.18em; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 0.5em; word-spacing: 0.08em; }
.statement p, .wordmark, .footer-mark { word-spacing: 0.08em; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--brand); color: var(--on-brand); padding: 10px 14px; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 8px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--hero-bg); color: var(--hero-fg); border-bottom: 1px solid color-mix(in srgb, var(--hero-fg) 10%, transparent); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 56px; gap: 12px; }
.wordmark {
  color: inherit; text-decoration: none; font-weight: 900; font-stretch: 80%;
  text-transform: uppercase; letter-spacing: 0.02em; font-size: 0.95rem;
}
.wordmark::before {
  content: ''; display: inline-block; width: 0.7em; height: 0.7em; margin-right: 0.5em;
  background: var(--brand); border-radius: 2px; vertical-align: -0.02em;
}
.topbar-cta {
  color: var(--hero-accent); font-weight: 800; text-decoration: none; text-transform: uppercase;
  font-size: 0.85rem; letter-spacing: 0.06em;
}

/* ---------- Hero ---------- */
.hero { background: var(--hero-bg); color: var(--hero-fg); padding: 56px 0 64px; position: relative; overflow: hidden; }
.hero::after {
  /* a single bold green slab, nothing decorative beyond it */
  content: ''; position: absolute; right: -12vw; bottom: -14vw; width: 46vw; height: 46vw;
  background: var(--brand); opacity: 0.12; transform: rotate(-12deg); border-radius: 24px; pointer-events: none;
}
.kicker {
  color: var(--hero-accent); text-transform: uppercase; font-weight: 800; letter-spacing: 0.12em;
  font-size: 0.9rem; margin-bottom: 0.75rem;
}
.headline {
  font-weight: 900; font-stretch: 72%; text-transform: uppercase;
  font-size: clamp(3.4rem, 17vw, 10.5rem); line-height: 0.86; letter-spacing: -0.01em; margin: 0;
}
.hero-rule { width: 96px; height: 10px; background: var(--brand); margin: 28px 0 24px; border-radius: 2px; }
.lede { font-size: clamp(1.15rem, 2.6vw, 1.45rem); line-height: 1.45; max-width: 40ch; position: relative; z-index: 1; }
.hero .lede { color: color-mix(in srgb, var(--hero-fg) 88%, transparent); }
.hero-cta {
  display: inline-flex; align-items: center; gap: 0.5em; margin-top: 12px; position: relative; z-index: 1;
  color: var(--hero-accent); font-weight: 800; text-decoration: none; font-size: 1.05rem;
  border-bottom: 2px solid currentColor; padding-bottom: 2px;
}

/* ---------- World map ---------- */
.band-map { background: var(--paper-2); border-top: 1px solid var(--line-light); }
.map-views { display: inline-flex; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; margin: 4px 0 20px; }
.map-views .chip[aria-selected='true'] { background: var(--ink); color: var(--paper); }
.map-grid { display: grid; gap: 28px; }
.map-figure { background: var(--paper); border: 1px solid var(--line-light); border-radius: var(--radius); padding: 12px; }
.m-svg { width: 100%; height: auto; display: block; }
.m-land path, .m-svg circle { fill: #d9ded8; stroke: var(--paper); stroke-width: 0.4; }
/* Majority view: one clear colour per religion. Israel is Israel blue in both views. */
[data-view='majority'] .maj-christian { fill: #2a312c; }
[data-view='majority'] .maj-muslim { fill: #6ab023; }
[data-view='majority'] .maj-buddhist { fill: #c9a227; }
[data-view='majority'] .maj-hindu { fill: #e07b2a; }
[data-view='majority'] .maj-other { fill: #d9ded8; }
/* Official state religion view */
[data-view='official'] .off-islam { fill: #6ab023; }
[data-view='official'] .off-christianity { fill: #2a312c; }
[data-view='official'] .off-buddhism { fill: #c9a227; }
[data-view='majority'] .map-official, [data-view='official'] .map-majority { display: none; }
.m-svg .maj-jewish, .m-svg .off-judaism, .m-il { fill: #0038b8; stroke: #ffffff; stroke-width: 0.8; }
.m-halo { fill: none; stroke: #0038b8; stroke-width: 2; }
.m-arrow { stroke: #0038b8; stroke-width: 4.5; stroke-linecap: round; }
.m-arrowhead { fill: #0038b8; }
.m-label { font: 900 26px var(--font); fill: #0038b8; letter-spacing: 0.06em; paint-order: stroke; stroke: #ffffff; stroke-width: 6px; stroke-linejoin: round; }
/* Phones show the map at under half size, so the callout is drawn larger to compensate. */
@media (max-width: 719px) {
  .m-halo { r: 13; stroke-width: 3.5; }
  .m-arrow { stroke-width: 10; }
  .m-label { font-size: 52px; stroke-width: 12px; }
}
.map-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 12px 4px 0; padding: 0; font-size: 0.92rem; font-weight: 600; }
.map-legend li { display: inline-flex; align-items: center; gap: 8px; }
.swatch { width: 16px; height: 16px; border-radius: 4px; border: 1px solid var(--line-light); display: inline-block; background: #d9ded8; }
.swatch.maj-christian, .swatch.off-christianity { background: #2a312c; }
.swatch.maj-muslim, .swatch.off-islam { background: #6ab023; }
.swatch.maj-buddhist, .swatch.off-buddhism { background: #c9a227; }
.swatch.maj-hindu { background: #e07b2a; }
.swatch.maj-jewish, .swatch.off-judaism { background: #0038b8; }
.map-big { font-size: 1.35rem; line-height: 1.3; margin-bottom: 8px; }
.map-big strong { display: block; font-size: clamp(3.5rem, 12vw, 6rem); font-weight: 900; font-stretch: 75%; line-height: 0.9; color: var(--brand-on-light); }
.map-counts { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 1.05rem; }
.map-counts strong { font-weight: 900; font-size: 1.3em; }
.map-intro { font-size: 1.15rem; }
.map-note { font-weight: 800; font-size: 1.15rem; border-left: 6px solid var(--brand); padding-left: 14px; margin-top: 4px; }
.map-list { margin-top: 20px; }
.map-list summary { cursor: pointer; font-weight: 700; }
.map-list-title { font-size: 1.1rem; margin: 18px 0 6px; }
.map-list-cols { display: grid; gap: 12px 24px; }
.map-list-cols h4 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 4px; }
.map-list-cols ul { margin: 0; padding-left: 1.1em; font-size: 0.95rem; columns: 2; }
.map-source { font-size: 0.85rem; color: var(--muted-light); margin: 16px 0 0; }
@media (min-width: 900px) {
  .map-grid { grid-template-columns: 1.5fr 1fr; align-items: center; }
  .map-list-cols { grid-template-columns: repeat(3, 1fr); }
  .map-list-cols ul { columns: 1; }
}

/* ---------- Content bands ---------- */
.band { padding: 64px 0; }
.band-ask { background: var(--paper-2); }
.two-col { display: grid; gap: 8px; }
.section-title {
  font-weight: 900; font-stretch: 80%; text-transform: uppercase; letter-spacing: 0.01em;
  font-size: clamp(1.9rem, 5vw, 2.8rem);
}
.prose { font-size: 1.15rem; max-width: 62ch; }
.prose p:last-child { margin-bottom: 0; }

.statement { background: var(--brand); color: var(--on-brand); padding: 44px 0; }
.statement p {
  margin: 0; font-weight: 900; font-stretch: 70%; text-transform: uppercase;
  font-size: clamp(2.4rem, 11vw, 7rem); line-height: 0.9; letter-spacing: -0.01em;
}

.steps { counter-reset: step; list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.steps li {
  counter-increment: step; position: relative; padding: 16px 16px 16px 64px; background: var(--paper);
  border: 1px solid var(--line-light); border-radius: var(--radius);
}
.steps li::before {
  content: counter(step); position: absolute; left: 16px; top: 14px; width: 34px; height: 34px;
  display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--paper);
  font-weight: 900;
}

/* ---------- Action ---------- */
.act { background: var(--hero-bg); color: var(--hero-fg); padding: 72px 0 80px; scroll-margin-top: 0; }
.act-inner { text-align: center; }
.act-title {
  font-weight: 900; font-stretch: 75%; text-transform: uppercase;
  font-size: clamp(2.2rem, 8vw, 4.5rem); line-height: 0.95;
}
.act-sub { color: var(--hero-muted); max-width: 52ch; margin: 0 auto 32px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; line-height: 1.2;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: color-mix(in srgb, var(--brand) 88%, var(--paper)); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: 0.95rem; }

.btn-giant {
  background: var(--brand); color: var(--on-brand);
  font-size: clamp(1.35rem, 5vw, 2rem); font-weight: 900; text-transform: uppercase; letter-spacing: 0.02em;
  padding: 24px 44px; min-height: 76px; width: min(100%, 520px);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 60%, transparent);
}
.btn-giant:hover { transform: translateY(-2px); }
.btn-giant.is-pulsing { animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 55%, transparent); transform: scale(1); }
  50% { transform: scale(1.03); }
  70% { box-shadow: 0 0 0 22px color-mix(in srgb, var(--brand) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 0%, transparent); transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .btn-giant.is-pulsing { animation: none; outline: 3px solid color-mix(in srgb, var(--brand) 50%, transparent); outline-offset: 6px; }
}

.email-panel {
  text-align: left; margin: 36px auto 0; max-width: 820px; background: var(--paper); color: var(--ink);
  border-radius: 20px; padding: 22px var(--gutter) 26px; box-shadow: 0 20px 60px rgb(0 0 0 / 0.35);
}
html[data-mode='light'] .email-panel { border: 1px solid var(--line-light); box-shadow: 0 16px 40px rgb(15 18 16 / 0.1); }
.panel-title { font-weight: 900; font-stretch: 80%; text-transform: uppercase; font-size: 1.6rem; margin-bottom: 4px; }
.panel-title:focus { outline: none; }
.open-status { color: var(--muted-light); min-height: 1.6em; font-weight: 600; margin-bottom: 12px; }
.open-status.is-live::before {
  content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px;
  background: var(--brand); vertical-align: 0.05em;
}

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.actions .btn { flex: 1 1 auto; }

.envelope { margin: 18px 0; border-top: 1px solid var(--line-light); }
.env-row { display: grid; grid-template-columns: 52px 1fr; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line-light); }
.env-row dt { font-weight: 800; color: var(--muted-light); text-transform: uppercase; font-size: 0.85rem; padding-top: 2px; }
.env-row dd { margin: 0; overflow-wrap: anywhere; font-size: 0.98rem; }
.cc-details summary { cursor: pointer; font-weight: 600; display: inline; }
.cc-list { margin: 8px 0 0; padding-left: 1.1em; font-size: 0.92rem; color: var(--muted-light); columns: 1; }
.copy-mini {
  font: inherit; font-size: 0.8rem; font-weight: 700; color: var(--brand-on-light); background: none; border: 0;
  padding: 2px 4px; margin-left: 4px; cursor: pointer; text-decoration: underline; text-underline-offset: 0.2em;
}
.hint { font-size: 0.88rem; color: var(--muted-light); margin: 6px 0 0; }

.variant-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 8px 0 16px; }
.variant-label { font-weight: 800; font-size: 0.85rem; text-transform: uppercase; color: var(--muted-light); }
.chips { display: inline-flex; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; }
.chip {
  font: inherit; font-weight: 700; font-size: 0.92rem; border: 0; background: none; color: var(--ink);
  padding: 8px 14px; min-height: 40px; cursor: pointer;
}
.chip + .chip { border-left: 2px solid var(--ink); }
.chip[aria-pressed='true'] { background: var(--ink); color: var(--paper); }

.field { display: block; margin-bottom: 14px; }
.field-label { display: block; font-weight: 800; margin-bottom: 6px; }
.field-note { display: block; font-weight: 500; font-size: 0.88rem; color: var(--muted-light); }
.field input,
.field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper-2);
  border: 2px solid var(--line-light); border-radius: 10px; padding: 12px 14px;
}
.field textarea { line-height: 1.55; resize: vertical; min-height: 280px; }
.field input:focus,
.field textarea:focus { border-color: var(--brand-on-light); outline: none; background: var(--paper); }

/* ---------- What next ---------- */
.next { padding: 64px 0 80px; background: var(--paper); scroll-margin-top: 0; }
.next .section-title:focus { outline: none; }
.next-lede { font-size: 1.2rem; max-width: 58ch; }
.guidance {
  border-left: 6px solid var(--brand); background: var(--brand-soft); padding: 16px 18px; border-radius: 0 var(--radius) var(--radius) 0;
  margin: 20px 0 28px; font-weight: 600; max-width: 70ch;
}
.guidance p { margin: 0; }
.cards { display: grid; gap: 16px; }
.card {
  border: 2px solid var(--ink); border-radius: 18px; padding: 22px 20px; display: flex; flex-direction: column; gap: 4px;
}
.card h3 { font-weight: 900; font-stretch: 80%; text-transform: uppercase; font-size: 1.45rem; }
.card p { color: var(--muted-light); }
.card .btn { align-self: flex-start; }
.card-result:empty { display: none; }
.card-result { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-light); }
.card .who { font-weight: 800; font-size: 1.15rem; margin: 0; color: var(--ink); }
.card .where { color: var(--muted-light); margin: 0 0 10px; }
.tel-link { display: inline-block; font-size: 1.35rem; font-weight: 900; color: var(--brand-on-light); margin: 2px 0 8px; }
.card-result textarea {
  width: 100%; font: inherit; font-size: 0.98rem; border: 2px solid var(--line-light); border-radius: 10px; padding: 10px 12px;
  background: var(--paper-2); min-height: 130px; margin: 6px 0 10px; resize: vertical; color: var(--ink);
}
.link-btn {
  font: inherit; background: none; border: 0; color: var(--brand-on-light); text-decoration: underline;
  text-underline-offset: 0.2em; cursor: pointer; padding: 0; font-weight: 700;
}
.share { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line-light); }
.share h3 { font-weight: 900; text-transform: uppercase; font-stretch: 80%; }
.share .btn { color: var(--ink); }

.notice { background: var(--brand-soft); color: var(--ink); padding: 12px 16px; border-radius: 10px; margin-top: 20px; }

.toast {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 50;
  background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 999px; font-weight: 700;
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.3); max-width: calc(100% - 32px);
}

/* ---------- Spread the word ---------- */
.spread { padding: 64px 0 80px; background: var(--paper-2); }
.social-tabs { display: inline-flex; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; margin: 8px 0 20px; }
.social-tabs .chip[aria-selected='true'] { background: var(--ink); color: var(--paper); }
.social-panel { display: grid; gap: 20px; background: var(--paper); border: 1px solid var(--line-light); border-radius: 20px; padding: 18px; }
.social-image img { width: 100%; max-width: 420px; height: auto; display: block; border-radius: 10px; box-shadow: 0 10px 30px rgb(15 18 16 / 0.15); }
.social-image-actions { display: inline-flex; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; margin-top: 12px; }
.social-image-actions .chip.is-on { background: var(--ink); color: var(--paper); }
.social-text .field textarea { min-height: 200px; }
.social-text .actions { margin-top: 10px; }
#card-share .btn { align-self: flex-start; }
@media (min-width: 820px) {
  .social-panel { grid-template-columns: 420px 1fr; padding: 28px; }
  .spread { padding: 96px 0; }
}

/* ---------- Simple pages ---------- */
.page { padding: 56px 0 72px; min-height: 60vh; }
.page-title { font-weight: 900; font-stretch: 75%; text-transform: uppercase; font-size: clamp(2.4rem, 8vw, 4rem); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--muted-dark); padding: 36px 0 44px; font-size: 0.95rem; }
.footer-inner { display: grid; gap: 8px; }
.footer-mark { color: var(--paper); font-weight: 900; text-transform: uppercase; font-stretch: 80%; margin: 0; }
.footer-note { margin: 0; max-width: 60ch; }
.site-footer nav { display: flex; gap: 18px; margin-top: 6px; }
.site-footer a { color: var(--paper); }

/* ---------- Larger screens ---------- */
@media (min-width: 720px) {
  :root { --gutter: 28px; }
  .hero { padding: 96px 0 104px; }
  .band { padding: 96px 0; }
  .email-panel { padding: 32px 36px 36px; }
  .env-row { grid-template-columns: 64px 1fr; }
  .cc-list { columns: 2; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .actions .btn { flex: 0 1 auto; }
}
@media (min-width: 960px) {
  .two-col { grid-template-columns: 320px 1fr; gap: 48px; align-items: start; }
  .cards { grid-template-columns: repeat(4, 1fr); }
}
