/* Gateway Sustainability Systems: shared styles for every page.
   One font (Inter Tight) and the existing site palette only. */

:root {
  --green: #0B6E4F;          /* primary: headings accents, buttons, links */
  --green-mid: #3F8F43;      /* accent: borders and rules only (not small text) */
  --green-tint: #E8F3EC;     /* button fills, highlight backgrounds */
  --surface: #F3F5F2;        /* soft panels */
  --ink: #343743;            /* body text */
  --ink-strong: #111417;     /* large headings */
  --ink-muted: #5E6878;      /* secondary text (AA on white and on --surface) */
  --line: #D8DCE5;           /* hairlines and card borders */
  --white: #FFFFFF;

  --radius: 12px;
  --gutter: 16px;
  --max: 1200px;
  --font: "Inter Tight", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--green); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

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

h1, h2, h3 { color: var(--ink-strong); line-height: 1.15; margin: 0 0 0.5rem; }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.45rem, 3.6vw, 1.9rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 0.85rem; }

.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;
}

.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--green); color: var(--white); padding: 0.6rem 1rem;
  border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 0.5rem; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 768px) { .wrap { padding: 0 2rem; } }

.section { padding: 2.5rem 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-intro { color: var(--ink-muted); max-width: 46rem; margin-bottom: 1.25rem; }
.eyebrow {
  display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-muted); margin-bottom: 0.4rem;
}

/* ---------- Header and navigation ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 60px; gap: 1rem;
}
.brand {
  display: flex; align-items: center; gap: 0.55rem;
  font-weight: 700; font-size: 1.05rem; color: var(--ink-strong); text-decoration: none;
}
@media (max-width: 380px) { .brand { font-size: 0.95rem; } }
.nav-toggle {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font: inherit; font-weight: 600; font-size: 0.95rem;
  background: var(--green); color: var(--white);
  border: 0; border-radius: 8px; padding: 0.5rem 0.85rem; cursor: pointer;
}
.nav-toggle svg { width: 18px; height: 18px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; text-decoration: none; color: var(--ink);
  font-weight: 600; font-size: 0.95rem; border-radius: 8px;
}
.site-nav a[aria-current="page"] { color: var(--green); background: var(--green-tint); }
.site-nav a:hover { color: var(--green); }
.nav-num { color: var(--ink-muted); font-weight: 600; margin-right: 0.35rem; }

@media (max-width: 1199px) {
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(17, 20, 23, 0.08);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { padding: 0.5rem var(--gutter) 1rem; }
  .site-nav a { padding: 0.75rem 0.75rem; }
}
@media (min-width: 1200px) {
  .nav-toggle { display: none; }
  .site-nav a, .brand { white-space: nowrap; }
  .site-header .wrap { flex-wrap: wrap; padding-top: 0.4rem; padding-bottom: 0.4rem; }
  .site-nav ul { display: flex; flex-wrap: wrap; gap: 0.15rem; }
  .site-nav a { padding: 0.45rem 0.6rem; font-size: 0.9rem; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
  font: inherit; font-weight: 600; font-size: 0.95rem; text-decoration: none;
  padding: 0.6rem 1rem; border-radius: 9px; cursor: pointer;
  background: var(--green-tint); color: var(--green); border: 1px solid var(--green);
}
.btn:hover { background: var(--green); color: var(--white); }
.btn-solid { background: var(--green); color: var(--white); }
.btn-solid:hover { background: #095C42; }
.btn-block { display: flex; width: 100%; }

/* ---------- Home hero (full-bleed, no border or rounding) ---------- */

.hero-img {
  width: 100%; height: 210px; object-fit: cover; object-position: center 40%;
  border-radius: 0;
}
@media (min-width: 768px) { .hero-img { height: 420px; } }
.hero-text { padding-top: 1.5rem; padding-bottom: 0.5rem; }
.hero-text .lede { font-size: 1.1rem; max-width: 46rem; }
.hero-text p { max-width: 46rem; }

/* ---------- Metrics (2x2 on mobile, 4 across on desktop) ---------- */

.metrics {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem;
  margin: 0; padding: 0; list-style: none;
}
@media (min-width: 768px) { .metrics { grid-template-columns: repeat(4, 1fr); gap: 1rem; } }
.metric {
  background: var(--surface); border-radius: var(--radius);
  padding: 0.9rem 1rem; border-top: 4px solid var(--green);
}
.metric-value {
  display: block; font-size: clamp(1.35rem, 5vw, 2rem); font-weight: 700;
  line-height: 1.15; color: var(--ink-strong);
}
.metric-label { display: block; font-size: 0.85rem; color: var(--ink-muted); margin-top: 0.2rem; line-height: 1.35; }

/* ---------- System cards ---------- */

.cards { display: grid; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); gap: 1rem; } }
@media (min-width: 1024px) { .cards-5 { grid-template-columns: repeat(5, 1fr); } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.card-img { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; }
.card-body { padding: 0.9rem 1rem 1rem; display: flex; flex-direction: column; flex: 1; }
.card-num { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; color: var(--green); }
.card h3 { margin: 0.15rem 0 0.3rem; }
.card p { color: var(--ink-muted); font-size: 0.92rem; margin-bottom: 0.75rem; flex: 1; }

/* Compact system cards on phones: no photo, tight spacing, green accent edge. */
@media (max-width: 639px) {
  .card-system { border-left: 4px solid var(--green); }
  .card-system:nth-child(even) { border-left-color: var(--green-mid); }
  .card-system .card-img { display: none; }
  .card-system .card-body { padding: 0.7rem 0.85rem 0.8rem; }
  .card-system h3 { margin: 0.05rem 0 0.1rem; font-size: 1rem; }
  .card-system p { margin-bottom: 0.5rem; font-size: 0.86rem; }
  .card-system .btn { padding: 0.45rem 0.8rem; }
}


/* ---------- Text panels ---------- */

.panel-grid { display: grid; gap: 1rem; }
@media (min-width: 768px) { .panel-grid { grid-template-columns: repeat(2, 1fr); } }
.panel {
  background: var(--surface); border-radius: var(--radius); padding: 1.1rem 1.2rem;
}
.panel h3 { margin-bottom: 0.4rem; }
.panel ul { margin: 0 0 0.75rem; padding-left: 1.2rem; }
.panel li { margin-bottom: 0.35rem; }
.source { font-size: 0.85rem; color: var(--ink-muted); margin: 0; }

.pull {
  border-left: 4px solid var(--green); padding: 0.6rem 0 0.6rem 1rem; margin: 1.25rem 0 0;
  font-weight: 600; color: var(--ink-strong); max-width: 46rem;
}

/* ---------- Callouts: The Science, Current Wins, What you can do ---------- */

.callout {
  border: 1px solid var(--line); border-left: 4px solid var(--green);
  background: var(--white); border-radius: var(--radius);
  padding: 0.95rem 1.1rem; margin: 1.25rem 0;
}
.callout-label {
  display: flex; align-items: center; gap: 0.45rem;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--green); margin-bottom: 0.35rem;
}
.callout-label svg { width: 18px; height: 18px; flex: none; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout .source { margin-top: 0.4rem; }
.callout-science { background: var(--surface); }
.callout-wins { background: var(--green-tint); border-left-color: var(--green); }
.callout-action { border-left-color: var(--green-mid); }
.status {
  display: inline-block; font-size: 0.75rem; font-weight: 700; color: var(--ink-muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 0.05rem 0.5rem; margin-left: 0.3rem;
  background: var(--white); vertical-align: 1px;
}

/* ---------- Team ---------- */

.team { display: grid; align-items: start; gap: 0.75rem; margin: 1rem 0 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .team { grid-template-columns: repeat(2, 1fr); gap: 1rem; } }
@media (min-width: 1024px) { .team { grid-template-columns: repeat(3, 1fr); } }
.person {
  display: flex; gap: 0.85rem; align-items: flex-start;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 0.9rem 1rem;
}
.avatar {
  flex: none; width: 52px; height: 52px; border-radius: 50%;
  background: var(--green); color: var(--white);
  display: grid; place-items: center; font-weight: 700; font-size: 1.05rem; letter-spacing: 0.02em;
}
.person:nth-child(even) .avatar { background: var(--green-tint); color: var(--green); border: 2px solid var(--green); }
.person h3 { margin: 0 0 0.1rem; font-size: 1.02rem; }
.person .role { font-weight: 600; color: var(--green); font-size: 0.9rem; margin-bottom: 0.35rem; }
.person p { font-size: 0.92rem; margin-bottom: 0.4rem; }
.person blockquote { margin: 0.4rem 0 0; padding-left: 0.75rem; border-left: 3px solid var(--line); font-size: 0.92rem; color: var(--ink); }

/* ---------- Resource cards ---------- */

.resource { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; display: flex; flex-direction: column; }
.resource p { color: var(--ink-muted); flex: 1; }

/* ---------- Footer / Get Involved ---------- */

.site-footer { background: var(--green); color: var(--white); margin-top: 2.5rem; }
.site-footer a { color: var(--white); }
.site-footer h2 { color: var(--white); }
.site-footer .wrap { padding-top: 2.25rem; padding-bottom: 2rem; }
.involved { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .involved { grid-template-columns: 1.1fr 1fr; gap: 3rem; } }
.involved p { color: rgba(255, 255, 255, 0.94); }
.site-footer .btn { background: var(--white); color: var(--green); border-color: var(--white); }
.site-footer .btn:hover { background: var(--green-tint); }
.site-footer :focus-visible { outline-color: var(--white); }
.contacts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.contacts li { border-top: 1px solid rgba(255, 255, 255, 0.3); padding-top: 0.75rem; }
.contacts strong { display: block; }
.contacts span { display: block; font-size: 0.9rem; color: rgba(255, 255, 255, 0.94); }
.footer-base {
  border-top: 1px solid rgba(255, 255, 255, 0.3); margin-top: 2rem; padding-top: 1rem;
  font-size: 0.85rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; justify-content: space-between;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ---------- Collapsible sections (phones) ----------
   <details data-open-desktop> folds long text on phones and is opened
   by site.js on wider screens, where the toggle is hidden. */

.fold > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
}
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after {
  content: ""; flex: none; width: 9px; height: 9px; margin-right: 4px;
  border-right: 2px solid var(--green); border-bottom: 2px solid var(--green);
  transform: rotate(45deg) translateY(-3px); transition: transform 0.15s;
}
.fold[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.fold > summary h2, .fold > summary h3 { margin: 0; }
.fold-hint { display: block; font-size: 0.86rem; color: var(--ink-muted); font-weight: 400; margin-top: 0.15rem; }
.fold > summary > :first-child { flex: 1; }
.panel.fold > summary { display: grid; grid-template-columns: 1fr auto; }
.panel.fold > summary h3 { grid-column: 1; }
.panel.fold > summary .fold-hint { grid-column: 1; }
.panel.fold > summary::after { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.panel.fold[open] > summary { margin-bottom: 0.5rem; }
.fold-plain > summary {
  justify-content: flex-start; color: var(--green); font-weight: 600; font-size: 0.95rem;
  padding: 0.25rem 0; margin-bottom: 0.5rem;
}
.fold-plain > summary > :first-child { flex: none; }
.site-footer .fold > summary::after { border-color: var(--white); }

@media (min-width: 768px) {
  .js .fold[data-open-desktop] > summary { pointer-events: none; cursor: default; }
  .js .fold[data-open-desktop] > summary::after,
  .js .fold[data-open-desktop] .fold-hint,
  .js .fold-plain[data-open-desktop] > summary { display: none; }
  .js .panel.fold[data-open-desktop] > summary { margin-bottom: 0.4rem; }
}

/* ---------- Phone density ---------- */

@media (max-width: 639px) {
  .section { padding: 1.6rem 0; }
  h2 { margin-bottom: 0.35rem; }
  .section-intro { font-size: 0.95rem; margin-bottom: 0.9rem; }
  .hero-img { height: 180px; }
  .hero-text { padding-top: 1.1rem; padding-bottom: 0; }
  .hero-text .lede { font-size: 1.02rem; margin-bottom: 0.4rem; }
  .metric { padding: 0.7rem 0.8rem; }

  /* System cards become single rows: text on the left, Explore on the right. */
  .cards { gap: 0.5rem; }
  .card-system .card-body {
    display: grid; grid-template-columns: 1fr auto; column-gap: 0.75rem; align-items: center;
    padding: 0.6rem 0.75rem;
  }
  .card-system .card-num, .card-system h3, .card-system p { grid-column: 1; }
  .card-system p { margin: 0; }
  .card-system .btn { grid-column: 2; grid-row: 1 / span 3; width: auto; padding: 0.45rem 0.85rem; }

  .panel-grid { gap: 0.6rem; }
  .panel { padding: 0.85rem 0.95rem; }
  .pull { margin-top: 0.9rem; font-size: 0.95rem; }

  /* Team scrolls sideways so the section stays one card tall. */
  .team-lead { margin-bottom: 0.25rem; }
  .team {
    display: flex; align-items: flex-start; gap: 0.6rem; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0.75rem calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter) 0.5rem;
    scroll-padding: 0 var(--gutter);
  }
  .person { flex: 0 0 82%; scroll-snap-align: start; padding: 0.8rem 0.85rem; }

  .resource { padding: 0.85rem 0.95rem; }
  .resource .eyebrow { display: none; }
  .resource p { font-size: 0.9rem; margin-bottom: 0.6rem; }

  .site-footer { margin-top: 1.5rem; }
  .site-footer .wrap { padding-top: 1.6rem; padding-bottom: 1.4rem; }
  .involved { gap: 1rem; }
  .footer-base { margin-top: 1.25rem; }
}

/* ---------- Content pages ---------- */

.subnav-label { font-size: 0.85rem; font-weight: 700; color: var(--green); letter-spacing: 0.04em; display: block; margin-bottom: 0.25rem; }
.split { display: grid; gap: 1rem; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 1.75rem; } .split-wide { grid-template-columns: 1.4fr 1fr; } }
.photo { border-radius: var(--radius); width: 100%; object-fit: cover; }
.photo-caption { font-size: 0.85rem; color: var(--ink-muted); margin-top: 0.4rem; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.facts li { padding-left: 1.1rem; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.stat-inline { display: block; font-size: 1.6rem; font-weight: 700; color: var(--ink-strong); line-height: 1.1; }
.stat-inline-label { display: block; font-size: 0.85rem; color: var(--ink-muted); margin-bottom: 0.6rem; }
.mini-grid { display: grid; gap: 0.6rem; }
@media (min-width: 640px) { .mini-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .mini-grid-4 { grid-template-columns: repeat(4, 1fr); } .mini-grid-3 { grid-template-columns: repeat(3, 1fr); } }
.mini { border: 1px solid var(--line); border-radius: var(--radius); padding: 0.85rem 0.95rem; }
.mini h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.mini p, .mini li { font-size: 0.92rem; }
.mini p:last-child { margin-bottom: 0; }

/* Charts */
.chart-figure { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 0.85rem 0.9rem 0.6rem; }
.chart-title { font-weight: 700; color: var(--ink-strong); font-size: 1.02rem; margin: 0; }
.chart-sub { font-size: 0.85rem; color: var(--ink-muted); margin: 0.1rem 0 0.3rem; }
.chart { width: 100%; min-height: 260px; }
.chart-figure figcaption { font-size: 0.88rem; color: var(--ink); margin-top: 0.35rem; }
.chart-fallback { font-size: 0.9rem; color: var(--ink-muted); padding: 1rem 0; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; margin-top: 0.5rem; }
.data-table th, .data-table td { text-align: left; padding: 0.35rem 0.4rem; border-bottom: 1px solid var(--line); }
.data-table td.num, .data-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-fold > summary { font-size: 0.88rem; font-weight: 600; color: var(--green); padding: 0.35rem 0; justify-content: flex-start; }
.table-fold > summary > :first-child { flex: none; }
.table-scroll { max-height: 320px; overflow: auto; }

@media (max-width: 639px) {
  .chart { min-height: 230px; }
  .chart-figure { padding: 0.7rem 0.6rem 0.5rem; }
  .stat-inline { font-size: 1.35rem; }
}
.fold-section { margin-top: 1.25rem; }
@media (max-width: 639px) {
  .photo { max-height: 210px; }
  .fold-section { margin-top: 0.9rem; }
}

/* ---------- Mass-balance flow diagram (Building Systems) ---------- */

.flow { display: grid; gap: 0.6rem; align-items: center; margin: 0.5rem 0 0; }
@media (min-width: 900px) { .flow { grid-template-columns: 1fr auto 0.8fr auto 1.25fr; gap: 0.9rem; } }
.flow-col { border: 1px solid var(--line); border-radius: var(--radius); padding: 0.8rem 0.9rem; }
.flow-col h3 { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green); margin-bottom: 0.45rem; }
.flow-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.flow-list li { background: var(--surface); border-radius: 8px; padding: 0.45rem 0.65rem; font-size: 0.93rem; line-height: 1.35; }
.flow-list li strong { display: block; color: var(--ink-strong); }
.flow-list li span { display: block; font-size: 0.84rem; color: var(--ink-muted); }
.flow-list li.flow-landfill { background: var(--white); border: 2px dashed var(--ink-muted); }
.flow-hub {
  background: var(--green); color: var(--white); border-radius: var(--radius);
  padding: 1rem; text-align: center; font-weight: 700; font-size: 1.15rem;
}
.flow-hub span { display: block; font-weight: 400; font-size: 0.86rem; margin-top: 0.2rem; color: rgba(255, 255, 255, 0.92); }
.flow-arrow { display: flex; justify-content: center; color: var(--green); }
.flow-arrow svg { width: 28px; height: 28px; transform: rotate(90deg); }
@media (min-width: 900px) { .flow-arrow svg { transform: none; } }
@media (max-width: 639px) {
  .flow { gap: 0.35rem; }
  .flow-list { grid-template-columns: 1fr 1fr; gap: 0.35rem; }
  .flow-list li { padding: 0.4rem 0.5rem; font-size: 0.88rem; }
  .flow-hub { padding: 0.7rem; }
}
.equation { font-weight: 600; color: var(--ink-strong); font-size: 1.02rem; }
.callout-grid { display: grid; gap: 0 1rem; }
@media (min-width: 900px) { .callout-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Step indicator (Reuse / Refill / Reorder) ---------- */

.steps { list-style: none; margin: 0.75rem 0 0.5rem; padding: 0; display: flex; align-items: flex-start; position: relative; z-index: 0; }
.steps li { flex: 1; text-align: center; position: relative; font-weight: 600; font-size: 0.92rem; color: var(--ink-muted); }
.steps li::before {
  content: attr(data-n); display: grid; place-items: center; margin: 0 auto 0.4rem;
  width: 44px; height: 44px; border-radius: 50%; background: var(--surface);
  border: 2px solid var(--line); color: var(--ink-muted); font-weight: 700; font-size: 1.05rem;
}
.steps li + li::after {
  content: ""; position: absolute; top: 22px; right: 50%; width: 100%; height: 2px;
  background: var(--line); z-index: -1;
}
.steps li.is-here { color: var(--green); }
.steps li.is-here::before { background: var(--green); border-color: var(--green); color: var(--white); }
.steps a { color: inherit; }
.here-note { font-size: 0.9rem; color: var(--ink-muted); }
.kit { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
@media (min-width: 900px) { .kit { grid-template-columns: repeat(4, 1fr); gap: 0.9rem; } }
.kit li { background: var(--surface); border-radius: var(--radius); padding: 0.75rem 0.85rem; }
.kit .metric-value { font-size: clamp(1.25rem, 4.6vw, 1.6rem); }
.motto { font-size: 1.15rem; font-weight: 700; color: var(--green); margin-bottom: 0.6rem; }

/* ---------- Phone readability: fewer, larger, airier blocks ---------- */
@media (max-width: 639px) {
  .hide-phone { display: none !important; }
  body { line-height: 1.6; }
  .section-intro { font-size: 1rem; }
  .mini p, .mini li, .facts li, .panel li, .panel p { font-size: 1rem; }
  .facts { gap: 0.55rem; }
  .split { gap: 1.1rem; }
  .callout { padding: 0.9rem 1rem; margin: 1rem 0; }
  .callout-grid > .callout + .callout { margin-top: 0; }
  .mini { border: 0; background: var(--surface); padding: 0.85rem 0.95rem; }
  .mini-grid { gap: 0.75rem; }
  .kit { gap: 0.6rem; }
  .kit .metric-label { font-size: 0.9rem; }
  .resource { padding: 0; border: 0; }
  .resource h3 { display: none; }
  .resource p { display: none; }
  .panel-grid:has(.resource) { gap: 0.6rem; }
  .pull { font-size: 1rem; margin-top: 0.75rem; }
  .chart-figure figcaption { font-size: 0.95rem; }
}
.photo-portrait { max-height: 480px; width: auto; max-width: 100%; margin: 0 auto; }
@media (max-width: 639px) { .photo-portrait { width: 100%; max-height: 300px; object-fit: cover; object-position: center 20%; } }

/* ---------- Circular Purchasing ---------- */

.target {
  display: flex; align-items: center; gap: 1rem; margin-top: 1rem; max-width: 40rem;
  background: var(--green); color: var(--white); border-radius: var(--radius); padding: 0.9rem 1.1rem;
}
.target-value { font-size: 2rem; font-weight: 700; line-height: 1; flex: none; }
.target-text { font-size: 0.95rem; line-height: 1.45; }
.steps-4 li { font-size: 0.85rem; padding: 0 0.15rem; }
@media (min-width: 640px) { .split-2 { grid-template-columns: 1fr 1fr; } }
.check { background: var(--surface); border-radius: var(--radius); padding: 0.85rem 1rem; border-left: 4px solid var(--green); }
.check-no { border-left-color: var(--ink-muted); }
.check-no .facts li::before { background: var(--ink-muted); }
.check-label { font-weight: 700; color: var(--green); margin-bottom: 0.4rem; }
.check-no .check-label { color: var(--ink-muted); }
.check-yes .check-label::before { content: "\2713\00a0"; }
.check-no .check-label::before { content: "\2715\00a0"; }
.link-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.1rem; }
@media (max-width: 639px) { .link-row .btn { width: 100%; } }

/* ---------- Recovery ---------- */

.pathways { display: grid; gap: 0.75rem; }
@media (min-width: 900px) { .pathways { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
.pathway { border: 1px solid var(--line); border-top: 4px solid var(--green); border-radius: var(--radius); padding: 0.95rem 1.05rem; display: flex; flex-direction: column; }
.pathway .photo { aspect-ratio: 3 / 2; margin-bottom: 0.8rem; }
.pathway h3 { margin-bottom: 0.3rem; }
.pathway-where { font-weight: 600; color: var(--ink-strong); }
.pathway-takes { font-size: 0.92rem; }
.pathway-outcome { font-size: 0.9rem; color: var(--ink-muted); flex: 1; }
.pathway .btn { margin-top: 0.4rem; }
.pathway-more { flex: 1; }
.pathway-more > summary { margin-top: 0.1rem; }
@media (max-width: 639px) { .photo-short { max-height: 170px; } }

/* ---------- Resource Library ---------- */

.page-head { padding: 1.75rem 0 0.25rem; }
.page-head h1 { margin-bottom: 0.3rem; }
.crumb { display: inline-block; font-size: 0.9rem; font-weight: 600; margin-bottom: 0.5rem; }
.crumb::before { content: "\2190\00a0"; }
.guide-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
@media (min-width: 768px) { .guide-list { grid-template-columns: repeat(2, 1fr); gap: 0.85rem; } }
.guide-link {
  display: block; border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: var(--radius);
  padding: 0.85rem 1rem; text-decoration: none; color: var(--ink);
}
.guide-link:hover, .guide-link:focus-visible { background: var(--green-tint); }
.guide-title { display: block; font-weight: 700; color: var(--green); font-size: 1.05rem; }
.guide-title::after { content: "\00a0\2192"; }
.guide-desc { display: block; font-size: 0.92rem; color: var(--ink-muted); margin-top: 0.15rem; }
.bins { display: grid; gap: 0.75rem; }
@media (min-width: 768px) { .bins { grid-template-columns: repeat(3, 1fr); } .bins-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .bins-4 { grid-template-columns: repeat(4, 1fr); } }
.bin { background: var(--surface); border-radius: var(--radius); padding: 0.85rem 1rem; border-top: 4px solid var(--bin, var(--green)); }
.bin-compost { --bin: #0B6E4F; }
.bin-recycle { --bin: #2F5F98; }
.bin-landfill { --bin: #343743; }
.bin-dispatch { --bin: #FF6B00; }
.bin-name { display: flex; align-items: center; flex-wrap: wrap; gap: 0.45rem; font-weight: 700; font-size: 1.08rem; color: var(--ink-strong); margin-bottom: 0.5rem; }
.bin-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--bin); flex: none; }
.bin-color { font-size: 0.82rem; font-weight: 600; color: var(--ink-muted); }
.bin .facts li::before { background: var(--bin); }
.bin-note { font-size: 0.9rem; color: var(--ink-muted); margin: 0.5rem 0 0; }
.plastics { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-bottom: 0.75rem; max-width: 30rem; }
.plastic { border-radius: var(--radius); padding: 0.75rem 0.9rem; display: flex; flex-direction: column; font-weight: 600; }
.plastic-num { font-size: 1.45rem; font-weight: 700; }
.plastic-yes { background: var(--green-tint); color: var(--green); }
.plastic-no { background: var(--surface); color: var(--ink-strong); border: 1px solid var(--line); }
.callout-alert { border-left-color: var(--ink-strong); }
.callout-alert .callout-label { color: var(--ink-strong); font-size: 0.95rem; letter-spacing: 0; text-transform: none; }
.howto { margin: 0.5rem 0 0; padding-left: 1.3rem; display: grid; gap: 0.5rem; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
@media (min-width: 640px) { .checklist { grid-template-columns: 1fr 1fr; } }
.checklist li { padding-left: 1.7rem; position: relative; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.2em; width: 1.05rem; height: 1.05rem;
  border: 2px solid var(--green); border-radius: 4px;
}
.caterer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
@media (min-width: 640px) { .caterer-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .caterer-list { grid-template-columns: repeat(3, 1fr); } }
.caterer-list a { display: block; background: var(--surface); border-radius: var(--radius); padding: 0.6rem 0.85rem; font-weight: 600; }
.manual-end { margin-top: 1.5rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.manual-end p { color: var(--ink-muted); font-size: 0.95rem; }

/* ---------- PDF links ---------- */

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.9rem; }
@media (max-width: 639px) { .hero-actions .btn { width: 100%; } }
@media (min-width: 1024px) { .panel-grid-3 { grid-template-columns: repeat(3, 1fr); } }
.pathway .pathway-photo { aspect-ratio: 3 / 2; margin-bottom: 0.8rem; }
@media (max-width: 639px) { .pathway .pathway-photo { aspect-ratio: 3 / 1; } }

/* Home: Start here quick actions */
.section-tight { padding-top: 1.25rem; }
.quick-grid { list-style: none; margin: 0.75rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
@media (min-width: 768px) { .quick-grid { grid-template-columns: repeat(4, 1fr); } }
.quick { display: flex; flex-direction: column; gap: 0.2rem; height: 100%; padding: 0.8rem 0.9rem; border: 1px solid var(--line); border-left: 4px solid #0B6E4F; border-radius: 10px; background: #F3F5F2; color: #343743; text-decoration: none; }
.quick strong { color: #0B6E4F; font-size: 1rem; }
.quick span { font-size: 0.85rem; color: #5E6878; line-height: 1.35; }
.quick:hover, .quick:focus-visible { background: #E8F3EC; }
.bin-paper { --bin: #2F5F98; }

/* Home: compact team list, one bio dropdown per person */
.team-mini { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.5rem; align-items: start; }
@media (min-width: 640px) { .team-mini { grid-template-columns: repeat(2, 1fr); gap: 0.6rem 0.9rem; } }
@media (min-width: 1024px) { .team-mini { grid-template-columns: repeat(3, 1fr); } }
.mini-photo { flex: none; width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: #E8F3EC; }
.mini-name { display: block; font-weight: 700; font-size: 0.95rem; line-height: 1.25; color: #343743; }
.mini-role { display: block; font-size: 0.82rem; line-height: 1.3; color: #5E6878; }
.team-more { margin-top: 1rem; font-weight: 600; }
.person-photo { flex: none; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.team-photos { display: grid; gap: 0.75rem; margin: 1rem 0 0; }
@media (min-width: 768px) { .team-photos { grid-template-columns: 1fr 1fr; } }
.team-photos figure { margin: 0; }
.team-photos img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; display: block; }
.team-photos figcaption { font-size: 0.82rem; color: #5E6878; margin-top: 0.35rem; }
.name-list { list-style: none; margin: 0.5rem 0 0.9rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.name-list li { padding: 0.35rem 0.75rem; border: 1px solid var(--line); border-radius: 999px; background: #F3F5F2; font-weight: 600; font-size: 0.92rem; }
.team-bios { margin-top: 0.75rem; }
.member { border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.member summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0.75rem; }
.member summary::-webkit-details-marker { display: none; }
.member-text { flex: 1; min-width: 0; }
.member-more { flex: none; font-size: 0.82rem; font-weight: 600; color: #0B6E4F; }
.member-more::after { content: " \25BE"; }
.member[open] .member-more::after { content: " \25B4"; }
.member summary:focus-visible { outline: 2px solid #0B6E4F; outline-offset: 2px; border-radius: 10px; }
.member-bio { padding: 0 0.85rem 0.8rem; font-size: 0.92rem; }
.member-bio p { margin: 0 0 0.4rem; }
.member-bio blockquote { margin: 0.3rem 0 0; padding-left: 0.75rem; border-left: 3px solid #0B6E4F; }


/* Approved Products Catalog */
.reuse-box { background: var(--green-tint); border: 1px solid var(--green); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.reuse-box h2 { margin-top: 0; }
.reuse-box p { margin-bottom: 0.6rem; }
.reuse-chips { list-style: none; margin: 0.4rem 0 0.75rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.reuse-chips li { background: var(--white); border: 1px solid var(--green); color: var(--green); border-radius: 999px; padding: 0.25rem 0.7rem; font-size: 0.92rem; font-weight: 600; }
.reuse-more { margin: 0; font-weight: 600; }
.epp-top-label { font-weight: 600; margin: 0.75rem 0 0; }
.epp-top li { background: var(--surface); border-color: var(--line); color: var(--ink-strong); }
.epp-folds { border-bottom: 1px solid var(--line); margin-top: 0.5rem; }
.epp-fold { border-top: 1px solid var(--line); padding: 0.35rem 0; margin: 0; }
.epp-fold > summary { color: var(--ink-strong); margin-bottom: 0; }
.epp-fold > summary h3 { font-size: 1.1rem; }
.epp-fold[open] > summary { margin-bottom: 0.4rem; }
.epp-list { list-style: none; margin: 0 0 0.5rem; padding: 0; }
@media (min-width: 768px) { .epp-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1.5rem; } }
.epp-list li { padding: 0.5rem 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 0.1rem; }
.epp-list li:last-child { border-bottom: 0; }
.epp-name { font-weight: 600; font-size: 0.97rem; }
.epp-brand { font-weight: 400; color: var(--ink-muted); }
.epp-meta { font-size: 0.86rem; color: var(--ink-muted); }
.epp-note { color: var(--ink-muted); font-size: 0.95rem; margin: 0.75rem 0; }
.epp-fold .callout { margin: 0.5rem 0 0.75rem; }

/* Footer: Green Team note under the sign-up button */
.site-footer .footer-note { margin: 0.85rem 0 0; font-size: 0.92rem; opacity: 0.9; }

.card-text { flex: 1; display: flex; flex-direction: column; }
/* Home on phones: a bit more air, shorter overall. System cards are compact photo rows (thumbnail, title, whole card tappable). */
@media (max-width: 639px) {
  body[data-page="home"] .section { padding: 1.8rem 0; }
  body[data-page="home"] .section-tight { padding-top: 1.4rem; }
  body[data-page="home"] h2 { margin-bottom: 0.45rem; }
  body[data-page="home"] .quick-grid { gap: 0.65rem; }
  body[data-page="home"] .quick { padding: 0.85rem 0.95rem; }
  body[data-page="home"] .metrics { gap: 0.65rem; }

  .cards-5 { gap: 0.6rem; margin-top: 0.75rem; }
  .cards-5 .card-system { position: relative; flex-direction: row; align-items: stretch; border-left: 1px solid var(--line); min-height: 72px; }
  .cards-5 .card-system .card-img { display: block; width: 84px; flex: none; aspect-ratio: auto; height: auto; object-fit: cover; }
  .cards-5 .card-system .card-body { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 0.6rem; text-align: left; padding: 0.6rem 0.85rem; }
  .cards-5 .card-system .card-num { display: block; font-size: 0.75rem; }
  .cards-5 .card-system h3 { font-size: 1.02rem; margin: 0; }
  .cards-5 .card-system p { display: none; }
  .cards-5 .card-system .card-text { flex: 1; min-width: 0; }
  .cards-5 .card-system .btn { all: unset; flex: none; color: var(--green); font-weight: 700; font-size: 1.2rem; cursor: pointer; }
  .cards-5 .card-system .btn .btn-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cards-5 .card-system .btn::after { content: "\2192"; }
  .cards-5 .card-system .btn::before { content: ""; position: absolute; inset: 0; }
  .cards-5 .card-system:focus-within { outline: 2px solid var(--green); outline-offset: 2px; }
}

/* Catering: approved caterers with order links */
.caterer-rows { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
@media (min-width: 768px) { .caterer-rows { grid-template-columns: 1fr 1fr; gap: 0.6rem 1rem; } }
.caterer-rows li { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.7rem 0.9rem; border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 10px; background: var(--surface); }
.caterer-name { font-weight: 600; }
.caterer-order { font-weight: 600; font-size: 0.92rem; white-space: nowrap; }
.caterer-order::after { content: " \2192"; }
.pending-tag { display: block; font-size: 0.82rem; font-weight: 400; color: var(--ink-muted); }
.caterer-pending li { border-left-color: var(--line); }
