/* MethaneMIP — site styles
   Poppins, white ground, restrained teal accent.
   Scenario colors match the protocol figures: TM blue, Ambitious red. */

:root {
  --ink: #111820;
  --ink-2: #3c4855;
  --muted: #6b7885;
  --line: #dfe4e8;
  --tint: #f4f7f8;
  --tint-2: #e9eff1;
  --accent: #0e6b78;
  --accent-dark: #0a4d57;
  /* Scenario colors sampled from the protocol figures, so the page and the
     charts read as one system. The -ink variants are darkened for text. */
  --tm: #46e9ff;
  --tm-ink: #0b7c92;
  --amb: #ff5b46;
  --amb-ink: #c0392b;
  --white: #fff;
  --wrap: 1140px;
  --prose: 68ch;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(17, 24, 32, .06), 0 8px 24px rgba(17, 24, 32, .06);
  --header-h: 68px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Poppins, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; }

h1, h2, h3, h4 {
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -.02em;
  margin: 0 0 .6em;
}

h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem); }
h4 { font-size: 1.05rem; font-weight: 600; letter-spacing: -.01em; }

p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: .45em; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.prose { max-width: var(--prose); }
.center { text-align: center; margin-inline: auto; }

.section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.section--tint { background: var(--tint); }
.section--line { border-top: 1px solid var(--line); }

.eyebrow {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 .9em;
}

.lede { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); color: var(--ink-2); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-right: auto;
}
.brand:hover { text-decoration: none; color: var(--accent); }

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: .9rem;
  padding: .45rem .8rem;
  border-radius: var(--radius);
  cursor: pointer;
}

.nav > ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: .25rem;
  margin: 0;
  padding: 0;
}

.nav a, .nav .subnav-btn {
  display: block;
  padding: .55rem .7rem;
  font-size: .95rem;
  color: var(--ink-2);
  border-radius: var(--radius);
  background: none;
  border: 0;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.nav a:hover, .nav .subnav-btn:hover { color: var(--accent); background: var(--tint); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--accent); font-weight: 500; }

.has-sub { position: relative; }
.subnav-btn::after { content: ""; display: inline-block; margin-left: .4em; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px); }

.subnav {
  position: absolute;
  top: calc(100% + .35rem);
  left: 0;
  min-width: 250px;
  list-style: none;
  margin: 0;
  padding: .4rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: none;
}
.has-sub[data-open="true"] .subnav { display: block; }
.subnav a { padding: .5rem .65rem; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: clamp(360px, 52vh, 560px);
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem);
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(10, 30, 36, .35) 0%, rgba(10, 30, 36, .78) 100%),
    linear-gradient(135deg, #12343b 0%, #0e6b78 55%, #2b6cb0 100%);
  background-size: cover;
  background-position: center;
}
/* Third layer is the fallback gradient, so a hero still reads correctly
   before its photograph is in place. */
.hero--image {
  background-image:
    linear-gradient(180deg, rgba(10, 30, 36, .22) 0%, rgba(10, 30, 36, .5) 45%, rgba(10, 30, 36, .8) 100%),
    var(--hero-img),
    linear-gradient(135deg, #12343b 0%, #0e6b78 55%, #2b6cb0 100%);
  background-position: center bottom, center, center;
}
.hero--short { min-height: clamp(240px, 34vh, 360px); }

.hero h1, .hero h2 { color: var(--white); max-width: 20ch; }
.hero p { color: rgba(255, 255, 255, .88); max-width: 56ch; margin-bottom: 0; }
.hero .eyebrow { color: rgba(255, 255, 255, .8); }

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

.btn {
  display: inline-block;
  padding: .7rem 1.35rem;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 500;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--white);
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--white); text-decoration: none; }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .6); }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: var(--white); color: var(--white); }
.btn--quiet { background: transparent; color: var(--accent); }
.btn--quiet:hover { background: var(--tint); color: var(--accent-dark); }
.hero .btn { margin-top: 1.6rem; }

/* ---------- Cards and grids ---------- */

.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.card h3 { margin-bottom: .5em; }
.card p:last-child { margin-bottom: 0; }
.card__link { display: inline-block; margin-top: .3rem; font-size: .92rem; font-weight: 500; }

/* Participants */

.person { text-align: left; }
.person__photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--tint-2);
  margin-bottom: .85rem;
}
.person__initials {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--tint-2), #d7e3e6);
  color: var(--accent-dark);
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: .02em;
  margin-bottom: .85rem;
}
.person__name { font-size: 1rem; font-weight: 600; color: var(--ink); margin: 0 0 .15em; letter-spacing: -.01em; }
.person__link { color: inherit; }
.person__link:hover { color: var(--accent); text-decoration: underline; }
.person__affil { font-size: .88rem; color: var(--muted); margin: 0; line-height: 1.45; }
.person__role { font-size: .82rem; font-weight: 600; color: var(--accent); margin: 0 0 .2em; text-transform: uppercase; letter-spacing: .08em; }

/* Stat row */

.stats { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.stat { border-left: 3px solid var(--accent); padding-left: 1rem; }
.stat__num { display: block; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); font-weight: 600; color: var(--ink); line-height: 1.1; letter-spacing: -.03em; }
.stat__label { font-size: .9rem; color: var(--muted); }

/* Scenario blocks */

.scenario { border-left: 4px solid var(--line); padding-left: 1.25rem; }
.scenario--tm { border-left-color: var(--tm); }
.scenario--amb { border-left-color: var(--amb); }
.scenario h3 { margin-bottom: .35em; }
.scenario__tag { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.scenario--tm .scenario__tag { color: var(--tm-ink); }
.scenario--amb .scenario__tag { color: var(--amb-ink); }

/* Accordion */

.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary {
  list-style: none;
  cursor: pointer;
  padding: 1.05rem 2.5rem 1.05rem 0;
  position: relative;
  font-weight: 500;
  color: var(--ink);
  font-size: 1.02rem;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: "";
  position: absolute;
  right: .4rem;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .15s ease;
}
.acc details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.acc summary:hover { color: var(--accent); }
.acc__body { padding: 0 0 1.4rem; max-width: var(--prose); }
.acc__body > *:last-child { margin-bottom: 0; }

/* Status list */

.status-list { list-style: none; padding: 0; margin: 0; }
.status-list li { position: relative; padding-left: 1.6rem; margin-bottom: .6em; }
.status-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.status-list--next li::before { background: none; border: 1.5px solid var(--accent); }

/* Resource table */

.res-table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; font-size: .95rem; }
.res-table th, .res-table td { text-align: left; padding: .85rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.res-table th { font-weight: 600; color: var(--ink); font-size: .82rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.res-table td:first-child { color: var(--ink); font-weight: 500; }

/* Multi-column data tables. Unlike the resources table these lose their meaning
   if the columns are stacked, so on a narrow screen they scroll instead. */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.data-table th, .data-table td {
  text-align: left;
  padding: .8rem .9rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.data-table th {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.data-table td:first-child { color: var(--ink); font-weight: 500; }
.data-table td:not(:first-child) { white-space: nowrap; }

.pill { display: inline-block; font-size: .78rem; font-weight: 500; padding: .2rem .6rem; border-radius: 999px; white-space: nowrap; }
.pill--ready { background: #e2f0ee; color: #0a4d57; }
.pill--soon { background: var(--tint-2); color: var(--muted); }
.pill--ref { background: var(--white); color: var(--accent); border: 1px solid var(--line); }
.pill--ref:hover { border-color: var(--accent); text-decoration: none; }

/* Figure */

figure { margin: 0 0 1.5rem; }
figure img { border: 1px solid var(--line); border-radius: var(--radius); }
figcaption { font-size: .88rem; color: var(--muted); margin-top: .7rem; max-width: var(--prose); }

/* A chart shrunk to phone width stops being readable, so below 700px the
   figure keeps a legible size and scrolls sideways inside its own box
   rather than squeezing. The page itself never scrolls sideways. */
.figscroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.figscroll > img { display: block; max-width: 100%; }
.scrollhint { display: none; font-size: .82rem; color: var(--muted); margin: .5rem 0 0; }

/* Pull quote */

.quote { max-width: 46ch; }
.quote p { font-size: clamp(1.25rem, 1.05rem + .9vw, 1.7rem); line-height: 1.35; font-weight: 500; color: var(--ink); letter-spacing: -.02em; }
.quote cite { font-style: normal; font-size: .92rem; color: var(--muted); }

/* References */

.refs { font-size: .86rem; color: var(--muted); line-height: 1.55; }
.refs li { margin-bottom: .7em; }
.refs a { word-break: break-word; }

/* Meta line */

.meta { font-size: .85rem; color: var(--muted); margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }

/* Form */

.form { max-width: 520px; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .9rem; font-weight: 500; color: var(--ink); margin-bottom: .35rem; }
.field input, .field textarea, .field select {
  width: 100%;
  font: inherit;
  font-size: .97rem;
  padding: .65rem .8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field textarea { min-height: 150px; resize: vertical; }
.hp { position: absolute; left: -9999px; }

/* Footer */

.site-footer { background: #101a20; color: #b7c3cb; padding: 3.5rem 0 2.5rem; font-size: .92rem; }
.site-footer a { color: #cfe0e4; }
.site-footer a:hover { color: var(--white); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.site-footer h4 { color: var(--white); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .9em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .4em; }
.site-footer address { font-style: normal; line-height: 1.7; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; color: #8a99a3; display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }

/* Skip link */

.skip {
  position: absolute; left: -9999px;
  background: var(--accent); color: var(--white);
  padding: .6rem 1rem; z-index: 100; border-radius: var(--radius);
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Mobile ---------- */

@media (max-width: 700px) {
  .table-scroll .data-table { min-width: 620px; }
  .figscroll > img { max-width: none; width: 620px; }
  /* A two-panel figure needs more room again, or each panel is a postage stamp. */
  .figscroll--wide > img { width: 860px; }
  .scrollhint { display: block; }
}

/* The resources table has three columns of real text, which cannot fit a
   phone. Below 640px each row becomes a stacked block instead. */
@media (max-width: 640px) {
  .res-table { display: block; }
  .res-table thead { position: absolute; left: -9999px; }
  .res-table tbody, .res-table tr, .res-table td { display: block; width: 100%; }
  .res-table tr { border-bottom: 1px solid var(--line); padding: 1.2rem 0; }
  .res-table td { border: 0; padding: 0 0 .5rem; }
  .res-table td:first-child { font-size: 1.05rem; padding-bottom: .3rem; }
  .res-table td:last-child { padding-bottom: 0; }
}

@media (max-width: 560px) {
  /* Keep the people grid two across rather than one huge column. */
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
  .person__initials { font-size: 1.25rem; }
  .person__name { font-size: .95rem; }
  .person__affil { font-size: .82rem; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: .6rem 1.25rem 1.2rem;
  }
  .site-header[data-open="true"] .nav { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a, .nav .subnav-btn { padding: .7rem .2rem; width: 100%; text-align: left; font-size: 1rem; }
  .subnav { position: static; display: block; border: 0; box-shadow: none; padding: 0 0 .4rem .9rem; min-width: 0; }
  .subnav-btn::after { display: none; }
  .subnav a { font-size: .95rem; color: var(--muted); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media print {
  .site-header, .site-footer, .nav-toggle { display: none; }
  body { font-size: 11pt; color: #000; }
}
