/* Green Flame R61 — project-local authority
   Scope: projects/city-green-flame only.
   Shared shell/navigation remain untouched. */

.theme-green-flame {
  --gf-paper: #f3efe6;
  --gf-paper-soft: #ebe9df;
  --gf-ink: #132018;
  --gf-ink-soft: #485249;
  --gf-line: rgba(19, 32, 24, .16);
  --gf-accent: #9f3d34;
  --gf-accent-deep: #7d302a;
  --gf-green: #355a45;
  --gf-live: #b6da72;
  --gf-white: #fffdf8;
  --gf-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --gf-serif: "Playfair Display", Georgia, serif;
  --gf-sans: "Inter", Arial, sans-serif;
}

.theme-green-flame .gf61-container {
  width: min(1180px, calc(100% - 80px));
  margin-inline: auto;
}

.theme-green-flame .gf61-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: 500 10px/1.3 var(--gf-mono);
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--gf-accent);
}

.theme-green-flame .gf61-kicker::before {
  content: "";
  width: 16px;
  height: 1px;
  background: currentColor;
}

.theme-green-flame .gf61-section {
  position: relative;
  padding: clamp(76px, 8vw, 118px) 0;
  background: var(--gf-paper);
  color: var(--gf-ink);
}

.theme-green-flame .gf61-section--soft { background: var(--gf-paper-soft); }
.theme-green-flame .gf61-section--dark { background: #132019; color: var(--gf-white); }

.theme-green-flame .gf61-section h2,
.theme-green-flame .gf61-section h3,
.theme-green-flame .gf61-hero h1,
.theme-green-flame .gf61-hero__thesis {
  margin: 0;
  font-family: var(--gf-serif);
  font-weight: 400;
  letter-spacing: -.035em;
}

.theme-green-flame .gf61-section h2 {
  max-width: 14ch;
  font-size: clamp(42px, 5.2vw, 72px);
  line-height: .98;
}

.theme-green-flame .gf61-section p {
  margin: 0;
  font-family: var(--gf-sans);
  font-size: 15px;
  line-height: 1.68;
}

/* Hero */
.theme-green-flame .gf61-hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: #0d1712;
  color: var(--gf-white);
  isolation: isolate;
}

.theme-green-flame .gf61-hero__media,
.theme-green-flame .gf61-hero__media::before,
.theme-green-flame .gf61-hero__media::after {
  position: absolute;
  inset: 0;
}

.theme-green-flame .gf61-hero__media { z-index: -2; }
.theme-green-flame .gf61-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 42%;
  filter: saturate(.9) contrast(1.03);
}

.theme-green-flame .gf61-hero__media::before {
  content: "";
  z-index: 1;
  background: linear-gradient(90deg, rgba(8,18,13,.94) 0%, rgba(8,18,13,.82) 35%, rgba(8,18,13,.28) 62%, rgba(8,18,13,.06) 100%);
}

.theme-green-flame .gf61-hero__media::after {
  content: "";
  z-index: 2;
  background: linear-gradient(180deg, rgba(8,18,13,.28), transparent 28%, transparent 70%, rgba(8,18,13,.36));
}

.theme-green-flame .gf61-hero__inner {
  width: min(1180px, calc(100% - 80px));
  min-height: 100svh;
  margin-inline: auto;
  display: flex;
  align-items: flex-end;
  padding: 148px 0 76px;
}

.theme-green-flame .gf61-hero__copy {
  width: min(610px, 56vw);
}

.theme-green-flame .gf61-hero__status {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 28px;
  font: 500 10px/1.2 var(--gf-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.84);
}

.theme-green-flame .gf61-hero__status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gf-live);
  box-shadow: 0 0 0 4px rgba(182,218,114,.11);
}

.theme-green-flame .gf61-hero h1 {
  font-size: clamp(72px, 8.4vw, 132px);
  line-height: .78;
}

.theme-green-flame .gf61-hero__thesis {
  max-width: 12ch;
  margin-top: 30px;
  font-size: clamp(31px, 3vw, 48px);
  line-height: 1.02;
}

.theme-green-flame .gf61-hero__lead {
  max-width: 560px;
  margin-top: 20px;
  font: 400 15px/1.62 var(--gf-sans);
  color: rgba(255,255,255,.82);
}

.theme-green-flame .gf61-hero__actions,
.theme-green-flame .gf61-next__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.theme-green-flame .gf61-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 999px;
  font: 600 12px/1 var(--gf-sans);
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}

.theme-green-flame .gf61-button--light {
  background: var(--gf-white);
  color: #102017;
  border-color: var(--gf-white);
}

.theme-green-flame .gf61-button--ghost { color: var(--gf-white); }
.theme-green-flame .gf61-button:hover,
.theme-green-flame .gf61-button:focus-visible { transform: translateY(-1px); }

/* Current progress */
.theme-green-flame .gf61-progress__head {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(360px, 1fr);
  gap: clamp(70px, 10vw, 160px);
  align-items: end;
}

.theme-green-flame .gf61-progress__intro p {
  max-width: 560px;
  color: var(--gf-ink-soft);
}

.theme-green-flame .gf61-progress__intro .gf61-kicker { margin-bottom: 22px; }
.theme-green-flame .gf61-progress__intro h2 { margin-bottom: 28px; }

.theme-green-flame .gf61-progress-viz {
  border-top: 1px solid var(--gf-line);
  padding-top: 30px;
}

.theme-green-flame .gf61-progress-row + .gf61-progress-row { margin-top: 30px; }
.theme-green-flame .gf61-progress-row__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 12px;
}

.theme-green-flame .gf61-progress-row__meta span {
  font: 500 10px/1.3 var(--gf-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gf-ink-soft);
}

.theme-green-flame .gf61-progress-row__meta strong {
  font: 400 clamp(38px, 4vw, 58px)/.9 var(--gf-serif);
  letter-spacing: -.04em;
}

.theme-green-flame .gf61-progress-row__track {
  height: 10px;
  overflow: hidden;
  background: rgba(19,32,24,.08);
}

.theme-green-flame .gf61-progress-row__fill {
  display: block;
  height: 100%;
  width: var(--gf61-w);
  background: var(--gf-green);
}

.theme-green-flame .gf61-progress-row--reported .gf61-progress-row__fill { background: var(--gf-accent); }
.theme-green-flame .gf61-progress-viz__note {
  margin-top: 22px !important;
  font-size: 12px !important;
  color: var(--gf-ink-soft);
}

.theme-green-flame .gf61-district-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 46px;
  background: var(--gf-line);
  border: 1px solid var(--gf-line);
}

.theme-green-flame .gf61-district-split__item {
  background: var(--gf-paper);
  padding: 28px;
}

.theme-green-flame .gf61-district-split__item span {
  display: block;
  font: 500 10px/1.3 var(--gf-mono);
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--gf-accent);
}

.theme-green-flame .gf61-district-split__item strong {
  display: block;
  margin-top: 12px;
  font: 400 48px/.95 var(--gf-serif);
  letter-spacing: -.04em;
}

.theme-green-flame .gf61-district-split__item p {
  margin-top: 6px;
  font-size: 13px;
  color: var(--gf-ink-soft);
}

/* Mechanism */
.theme-green-flame .gf61-mechanism__head {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, .75fr);
  gap: 90px;
  align-items: end;
}

.theme-green-flame .gf61-section--dark .gf61-kicker { color: #d98177; }
.theme-green-flame .gf61-section--dark p { color: rgba(255,255,255,.7); }
.theme-green-flame .gf61-mechanism__head .gf61-kicker { margin-bottom: 22px; }

.theme-green-flame .gf61-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-top: 72px;
}

.theme-green-flame .gf61-flow::before {
  content: "";
  position: absolute;
  top: 30px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: rgba(255,255,255,.2);
}

.theme-green-flame .gf61-flow__step {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.theme-green-flame .gf61-flow__icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #132019;
  border: 1px solid rgba(255,255,255,.32);
}

.theme-green-flame .gf61-flow__icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: #f6efe5;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-green-flame .gf61-flow__step strong {
  display: block;
  margin-top: 24px;
  font: 400 26px/1.02 var(--gf-serif);
}

.theme-green-flame .gf61-flow__step p {
  margin-top: 10px;
  max-width: 22ch;
  font-size: 13px;
}

/* Documentary */
.theme-green-flame .gf61-field__head {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(300px, .68fr);
  gap: 90px;
  align-items: end;
  margin-bottom: 54px;
}

.theme-green-flame .gf61-field__head .gf61-kicker { margin-bottom: 20px; }
.theme-green-flame .gf61-field__head p { color: var(--gf-ink-soft); }

.theme-green-flame .gf61-field-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(300px, .62fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: end;
}

.theme-green-flame .gf61-field-grid figure { margin: 0; min-width: 0; }
.theme-green-flame .gf61-field-grid img {
  width: 100%;
  display: block;
  object-fit: cover;
  background: #d9d7cf;
}

.theme-green-flame .gf61-field-grid__system img {
  aspect-ratio: 1.18 / 1;
  object-position: 50% 50%;
}

.theme-green-flame .gf61-field-grid figcaption {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  color: var(--gf-ink-soft);
  font: 400 11px/1.5 var(--gf-sans);
}

.theme-green-flame .gf61-field-grid figcaption strong {
  flex: 0 0 auto;
  font: 500 9px/1.5 var(--gf-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gf-accent);
}

.theme-green-flame .gf61-field-note {
  border-top: 1px solid var(--gf-line);
  padding-top: 22px;
  padding-bottom: 4px;
}

.theme-green-flame .gf61-field-note .gf61-kicker { margin-bottom: 28px; }
.theme-green-flame .gf61-field-note__statement {
  max-width: 12ch;
  font: 400 clamp(31px, 3.1vw, 44px)/1.02 var(--gf-serif) !important;
  letter-spacing: -.035em;
  color: var(--gf-ink) !important;
}

.theme-green-flame .gf61-field-note__statement + p {
  max-width: 34ch;
  margin-top: 24px;
  font-size: 13px;
  color: var(--gf-ink-soft);
}

/* What matters now */
.theme-green-flame .gf61-now__top {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, .8fr);
  gap: 90px;
  align-items: end;
}

.theme-green-flame .gf61-now__top .gf61-kicker { margin-bottom: 20px; }
.theme-green-flame .gf61-now__top p { color: var(--gf-ink-soft); }

.theme-green-flame .gf61-now-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 58px;
  border-top: 1px solid var(--gf-line);
  border-bottom: 1px solid var(--gf-line);
}

.theme-green-flame .gf61-now-item {
  padding: 30px 24px 34px 0;
  min-width: 0;
}

.theme-green-flame .gf61-now-item + .gf61-now-item {
  border-left: 1px solid var(--gf-line);
  padding-left: 24px;
}

.theme-green-flame .gf61-now-item span {
  font: 500 10px/1.2 var(--gf-mono);
  letter-spacing: .1em;
  color: var(--gf-accent);
}

.theme-green-flame .gf61-now-item h3 {
  margin-top: 36px;
  font-size: 29px;
  line-height: 1;
}

.theme-green-flame .gf61-now-item p {
  margin-top: 14px;
  font-size: 13px;
  color: var(--gf-ink-soft);
}

/* Phase I */
.theme-green-flame .gf61-phase__head {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(300px, .72fr);
  gap: 90px;
  align-items: end;
}

.theme-green-flame .gf61-phase__head .gf61-kicker { margin-bottom: 20px; }
.theme-green-flame .gf61-phase__head p { color: var(--gf-ink-soft); }

.theme-green-flame .gf61-phase-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 52px;
  background: var(--gf-line);
  border: 1px solid var(--gf-line);
}

.theme-green-flame .gf61-phase-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 20px;
  min-width: 0;
  padding: 28px;
  background: var(--gf-paper);
}

.theme-green-flame .gf61-phase-item__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gf-line);
  border-radius: 50%;
}

.theme-green-flame .gf61-phase-item__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--gf-accent-deep);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-green-flame .gf61-phase-item strong {
  display: block;
  font: 400 28px/1 var(--gf-serif);
}

.theme-green-flame .gf61-phase-item p {
  margin-top: 8px;
  font-size: 13px;
  color: var(--gf-ink-soft);
}

/* Close */
.theme-green-flame .gf61-next {
  background: #8f372f;
  color: var(--gf-white);
}

.theme-green-flame .gf61-next__grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(340px, .78fr);
  gap: 100px;
  align-items: end;
}

.theme-green-flame .gf61-next .gf61-kicker { color: #f1c2bc; margin-bottom: 20px; }
.theme-green-flame .gf61-next h2 { max-width: 13ch; }
.theme-green-flame .gf61-next__copy p { color: rgba(255,255,255,.78); }
.theme-green-flame .gf61-next__copy p + p { margin-top: 15px; }
.theme-green-flame .gf61-next .gf61-button--light { color: #7d302a; }

.theme-green-flame .gf61-source-notes {
  margin-top: 42px;
  border-top: 1px solid rgba(255,255,255,.24);
  padding-top: 20px;
}

.theme-green-flame .gf61-source-notes summary {
  cursor: pointer;
  width: fit-content;
  font: 500 10px/1.3 var(--gf-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.78);
}

.theme-green-flame .gf61-source-notes__body {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 22px;
}

.theme-green-flame .gf61-source-notes__body p {
  font-size: 12px;
  color: rgba(255,255,255,.68);
}

.theme-green-flame .gf61-source-notes__body a { color: inherit; text-underline-offset: 3px; }

@media (max-width: 980px) {
  .theme-green-flame .gf61-container,
  .theme-green-flame .gf61-hero__inner { width: min(100% - 48px, 760px); }

  .theme-green-flame .gf61-progress__head,
  .theme-green-flame .gf61-mechanism__head,
  .theme-green-flame .gf61-field__head,
  .theme-green-flame .gf61-now__top,
  .theme-green-flame .gf61-phase__head,
  .theme-green-flame .gf61-next__grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .theme-green-flame .gf61-hero__copy { width: min(620px, 74vw); }
  .theme-green-flame .gf61-flow,
  .theme-green-flame .gf61-now-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .theme-green-flame .gf61-flow::before { display: none; }
  .theme-green-flame .gf61-now-item:nth-child(3) { border-left: 0; border-top: 1px solid var(--gf-line); padding-left: 0; }
  .theme-green-flame .gf61-now-item:nth-child(4) { border-top: 1px solid var(--gf-line); }
  .theme-green-flame .gf61-field-grid { grid-template-columns: 1.08fr .92fr; gap: 34px; }
  .theme-green-flame .gf61-source-notes__body { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .theme-green-flame .gf61-container,
  .theme-green-flame .gf61-hero__inner { width: calc(100% - 32px); }

  .theme-green-flame .gf61-section { padding: 66px 0; }
  .theme-green-flame .gf61-section h2 { max-width: 12ch; font-size: clamp(39px, 12vw, 54px); }
  .theme-green-flame .gf61-section p { font-size: 14px; line-height: 1.62; }

  .theme-green-flame .gf61-hero { min-height: 100svh; }
  .theme-green-flame .gf61-hero__media img { object-position: 60% 36%; }
  .theme-green-flame .gf61-hero__media::before {
    background: linear-gradient(180deg, rgba(8,18,13,.08) 0%, rgba(8,18,13,.06) 30%, rgba(8,18,13,.52) 56%, rgba(8,18,13,.95) 100%);
  }
  .theme-green-flame .gf61-hero__media::after { background: linear-gradient(180deg, rgba(8,18,13,.18), transparent 38%); }
  .theme-green-flame .gf61-hero__inner { min-height: 100svh; padding: 92px 0 30px; align-items: flex-end; }
  .theme-green-flame .gf61-hero__copy { width: 100%; }
  .theme-green-flame .gf61-hero__status { margin-bottom: 14px; font-size: 8px; }
  .theme-green-flame .gf61-hero h1 { font-size: clamp(54px, 17vw, 76px); line-height: .82; }
  .theme-green-flame .gf61-hero__thesis { margin-top: 16px; max-width: 14ch; font-size: clamp(27px, 8vw, 36px); }
  .theme-green-flame .gf61-hero__lead { margin-top: 12px; font-size: 12.5px; line-height: 1.5; max-width: 37em; }
  .theme-green-flame .gf61-hero__actions { margin-top: 18px; gap: 8px; }
  .theme-green-flame .gf61-button { min-height: 44px; padding: 0 15px; font-size: 11px; }

  .theme-green-flame .gf61-progress-viz { padding-top: 24px; }
  .theme-green-flame .gf61-progress-row__meta strong { font-size: 42px; }
  .theme-green-flame .gf61-district-split { margin-top: 34px; }
  .theme-green-flame .gf61-district-split__item { padding: 20px; }
  .theme-green-flame .gf61-district-split__item strong { font-size: 38px; }

  .theme-green-flame .gf61-flow { grid-template-columns: 1fr; gap: 28px; margin-top: 46px; }
  .theme-green-flame .gf61-flow__step { display: grid; grid-template-columns: 52px 1fr; column-gap: 18px; align-items: start; }
  .theme-green-flame .gf61-flow__icon { width: 52px; height: 52px; grid-row: 1 / span 2; }
  .theme-green-flame .gf61-flow__step strong { margin-top: 2px; font-size: 25px; }
  .theme-green-flame .gf61-flow__step p { margin-top: 7px; max-width: none; }

  .theme-green-flame .gf61-field__head { margin-bottom: 34px; }
  .theme-green-flame .gf61-field-grid { grid-template-columns: 1fr; gap: 38px; }
  .theme-green-flame .gf61-field-grid__system img { aspect-ratio: 1.05 / 1; }
  .theme-green-flame .gf61-field-grid figcaption { font-size: 10.5px; }
  .theme-green-flame .gf61-field-note { width: 88%; margin-left: auto; padding-top: 20px; }
  .theme-green-flame .gf61-field-note .gf61-kicker { margin-bottom: 20px; }
  .theme-green-flame .gf61-field-note__statement { max-width: 13ch; font-size: clamp(29px, 9vw, 37px) !important; }
  .theme-green-flame .gf61-field-note__statement + p { margin-top: 18px; }

  .theme-green-flame .gf61-now-grid { grid-template-columns: 1fr; margin-top: 40px; }
  .theme-green-flame .gf61-now-item,
  .theme-green-flame .gf61-now-item + .gf61-now-item,
  .theme-green-flame .gf61-now-item:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--gf-line);
    padding: 24px 0;
  }
  .theme-green-flame .gf61-now-item:first-child { border-top: 0; }
  .theme-green-flame .gf61-now-item h3 { margin-top: 18px; font-size: 28px; }

  .theme-green-flame .gf61-phase-list { grid-template-columns: 1fr; margin-top: 38px; }
  .theme-green-flame .gf61-phase-item { padding: 22px; grid-template-columns: 46px 1fr; gap: 16px; }
  .theme-green-flame .gf61-phase-item__icon { width: 42px; height: 42px; }
  .theme-green-flame .gf61-phase-item strong { font-size: 25px; }

  .theme-green-flame .gf61-next__actions { margin-top: 22px; }
  .theme-green-flame .gf61-source-notes { margin-top: 34px; }
}

@media (max-width: 390px) {
  .theme-green-flame .gf61-hero__lead { font-size: 12px; }
  .theme-green-flame .gf61-hero__actions { flex-wrap: nowrap; }
  .theme-green-flame .gf61-button { padding-inline: 12px; font-size: 10px; }
  .theme-green-flame .gf61-district-split { grid-template-columns: 1fr; }
  .theme-green-flame .gf61-field-note { width: 92%; }
}

@media (prefers-reduced-motion: no-preference) {
  .theme-green-flame .gf61-hero__copy {
    animation: gf61-hero-in .75s cubic-bezier(.2,.7,.2,1) both;
  }
  @keyframes gf61-hero-in {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .theme-green-flame .gf61-button { transition: none; }
}
