/* Carbon Trader, 2026 marketplace design.
   One hand-written stylesheet for every public page. The tokens, type, buttons, header and footer are
   the same ones Carbon Tracker uses (carbontracker.nz, app/site/site.css) so the two sites read as one
   product. Where Carbon Tracker opens on a tall dark hero, Carbon Trader opens on the listings. */

:root {
  color-scheme: light;
  --navy: #071a27;
  --navy-2: #0b2a3d;
  --blue: #0d6f9e;
  --blue-bright: #1696d2;
  --lime: #7ac143;
  --lime-bright: #8fd14f;
  --lime-soft: #eaf5df;
  --lime-ink: #2c5a12;
  --pine: #14402c;
  --pine-2: #1f5a3a;
  --ground: #f6f4ee;
  --panel: #ffffff;
  --panel-2: #fbfaf6;
  --line: #e2ddd0;
  --line-strong: #cfc8b6;
  --ink: #0c1a24;
  --ink-2: #44535f;
  --ink-3: #5c6a75;
  --warn-soft: #fbf0d9;
  --warn-ink: #7a5406;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(12, 26, 36, 0.06), 0 8px 24px rgba(12, 26, 36, 0.06);
  --shadow-lift: 0 2px 4px rgba(12, 26, 36, 0.08), 0 16px 34px rgba(12, 26, 36, 0.12);
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 140px; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); }
h3 { font-size: 1.05rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
[hidden] { display: none !important; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--ink); padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.eyebrow { display: block; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pine-2); margin-bottom: 8px; }
.lead { font-size: 1.08rem; color: var(--ink-2); max-width: 64ch; }
.muted { color: var(--ink-3); }
.small { font-size: 0.86rem; }
.num { font-variant-numeric: tabular-nums; }

/* Buttons - identical to Carbon Tracker */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 12px; border: 2px solid transparent;
  font-size: 1rem; font-weight: 700; text-decoration: none; cursor: pointer; font-family: inherit;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-lime { background: var(--lime); color: var(--navy); box-shadow: 0 6px 18px rgba(122, 193, 67, 0.32); }
.btn-lime:hover { background: var(--lime-bright); color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.btn-outline { border-color: var(--line-strong); color: var(--ink); background: var(--panel); }
.btn-outline:hover { border-color: var(--navy); color: var(--navy); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 0.92rem; border-radius: 10px; }
.btn-block { width: 100%; }

/* ---------- Family bar: one product family, two sites ---------- */
.family { background: var(--navy); color: rgba(255, 255, 255, 0.82); font-size: 0.84rem; }
.family .wrap { display: flex; align-items: stretch; gap: 14px; min-height: 40px; }
.family-tabs { display: flex; align-items: flex-end; gap: 2px; }
.family-tab { display: inline-flex; align-items: center; gap: 7px; padding: 0 14px; height: 34px; border-radius: 8px 8px 0 0; color: rgba(255, 255, 255, 0.82); text-decoration: none; font-weight: 600; }
.family-tab:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.family-tab[aria-current="true"] { background: #fff; color: var(--navy); }
.family-tab small { font-weight: 500; font-size: 0.8rem; opacity: 0.75; }
.family-ref { margin-left: auto; display: flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, 0.82); text-decoration: none; white-space: nowrap; }
.family-ref:hover { color: #fff; }
.family-ref strong { color: #fff; font-variant-numeric: tabular-nums; }
.family-ref .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); flex-shrink: 0; }
@media (max-width: 760px) { .family-tab small, .family-ref .ref-extra { display: none; } .family-tab { padding: 0 10px; } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.head-main { display: flex; align-items: center; gap: 18px; min-height: 72px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 46px; width: auto; display: block; }
.search { flex: 1 1 auto; display: flex; min-width: 0; border: 2px solid var(--navy); border-radius: 12px; background: #fff; overflow: hidden; }
.search:focus-within { border-color: var(--blue-bright); }
.search input { flex: 1 1 auto; min-width: 0; border: 0; padding: 0 14px; min-height: 44px; font: inherit; color: var(--ink); background: transparent; outline: none; }
.search select { border: 0; border-left: 1px solid var(--line); padding: 0 10px; font: inherit; font-size: 0.9rem; color: var(--ink-2); background: var(--panel-2); max-width: 170px; outline: none; }
.search button { border: 0; background: var(--navy); color: #fff; padding: 0 18px; font: inherit; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.search button:hover { background: var(--navy-2); }
/* The box clips an outside ring, so focus is drawn inside each control. */
.search input:focus-visible, .search select:focus-visible, .search button:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: -3px; border-radius: 9px; }
.head-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.head-link { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 0.93rem; padding: 10px 10px; border-radius: 8px; }
.head-link:hover { color: var(--navy); background: #eef3ea; }
.cats { border-top: 1px solid var(--line); }
.cats .wrap { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.cats .wrap::-webkit-scrollbar { display: none; }
.cats a { display: inline-flex; align-items: center; gap: 7px; padding: 11px 12px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 0.92rem; white-space: nowrap; border-bottom: 3px solid transparent; }
.cats a:hover { color: var(--navy); border-bottom-color: var(--line-strong); }
.cats a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--lime); }
.cats svg { color: var(--pine-2); flex-shrink: 0; }
@media (max-width: 900px) {
  .head-main { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; gap: 10px; }
  .brand img { height: 38px; }
  .head-actions { margin-left: auto; }
  .search { order: 3; flex-basis: 100%; }
  .search select { display: none; }
  .head-link.hide-sm, .hide-sm { display: none; }
  .head-link { padding: 10px 7px; }
}
.show-sm { display: none; }
@media (max-width: 900px) { .show-sm { display: inline; } }
@media (max-width: 400px) { .brand img { height: 32px; } .head-main { gap: 6px; } .head-actions { gap: 2px; } }

/* ---------- Page top: a light band, never a dark hero ---------- */
.top { background: #fff; border-bottom: 1px solid var(--line); }
.top .wrap { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 36px; align-items: center; padding-top: 36px; padding-bottom: 36px; }
.top.slim .wrap { grid-template-columns: 1fr; padding-top: 26px; padding-bottom: 26px; }
.top .lead { margin-top: 12px; }
.top-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.ticks { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 0.9rem; color: var(--ink-2); font-weight: 600; }
.ticks li { display: inline-flex; align-items: center; gap: 7px; }
.ticks li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23071a27' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 10 17.5 19 7'/%3E%3C/svg%3E") center / 11px no-repeat; }
.crumbs { font-size: 0.86rem; color: var(--ink-3); margin-bottom: 10px; }
.crumbs a { color: var(--ink-2); }
@media (max-width: 900px) { .top .wrap { grid-template-columns: 1fr; gap: 22px; padding-top: 24px; padding-bottom: 24px; } }

/* Reference price card */
.refcard { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.refcard .label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.refcard .price { font-size: 2.3rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--navy); margin-top: 4px; }
.refcard .price small { font-size: 0.95rem; font-weight: 600; letter-spacing: 0; color: var(--ink-3); }
.refcard dl { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 0.9rem; }
.refcard dl div { display: flex; justify-content: space-between; gap: 12px; }
.refcard dt { color: var(--ink-3); }
.refcard dd { margin: 0; font-weight: 700; text-align: right; }

/* ---------- Sections ---------- */
section.block { padding: 44px 0; }
section.block.panel { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 20px; margin-bottom: 20px; }
.section-head p { color: var(--ink-2); margin: 6px 0 0; max-width: 70ch; }
.section-head .more { font-weight: 700; white-space: nowrap; }

/* ---------- Listing cards ---------- */
.lots { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.lot { position: relative; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: 0 1px 2px rgba(12, 26, 36, 0.05); transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease; }
a.lot:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: var(--line-strong); color: var(--ink); }
.lot-art { position: relative; aspect-ratio: 16 / 9; color: #fff; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 14px 16px;
  background: radial-gradient(260px 160px at 85% 0%, rgba(122, 193, 67, 0.32), transparent 65%), linear-gradient(160deg, #0b2a1d, var(--pine)); }
.lot-art.wallet { background: radial-gradient(260px 160px at 85% 0%, rgba(22, 150, 210, 0.36), transparent 65%), linear-gradient(160deg, var(--navy), var(--navy-2)); }
.lot-art svg.ridge { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 56%; pointer-events: none; }
.lot-art .units { position: relative; font-size: 1.9rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.lot-art .unit-type { position: relative; font-size: 0.82rem; font-weight: 600; opacity: 0.86; margin-top: 3px; }
.lot-flag { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 3px 9px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; background: var(--lime); color: var(--navy); }
.lot-flag.soon { background: #fff; color: #a0322f; }
.lot-flag.sample { left: auto; right: 12px; background: var(--warn-soft); color: var(--warn-ink); }
.lot-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.lot-title { font-weight: 700; font-size: 1.02rem; line-height: 1.3; }
.lot-meta { font-size: 0.84rem; color: var(--ink-3); }
.lot-price { margin-top: auto; padding-top: 10px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.lot-price .amount { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--navy); }
.lot-price .amount small { font-size: 0.8rem; font-weight: 600; color: var(--ink-3); letter-spacing: 0; }
.lot-price .closes { font-size: 0.8rem; color: var(--ink-3); text-align: right; }
/* The "list yours" card that always ends the grid */
.lot.lot-sell { border: 2px dashed var(--line-strong); background: var(--panel-2); box-shadow: none; align-items: flex-start; justify-content: center; padding: 22px; gap: 10px; min-height: 250px; }
.lot.lot-sell p { color: var(--ink-2); font-size: 0.94rem; margin: 0; }

.empty { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.empty .icon { flex-shrink: 0; }
.empty div { flex: 1 1 320px; }
.empty p { color: var(--ink-2); margin: 6px 0 0; }

/* ---------- Browse layout: filters left, results right ---------- */
.browse { display: grid; grid-template-columns: 250px 1fr; gap: 26px; align-items: start; }
.filters { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: sticky; top: 150px; }
.filters h2 { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.filters fieldset { border: 0; margin: 0 0 18px; padding: 0; }
.filters fieldset:last-of-type { margin-bottom: 8px; }
.filters legend { font-weight: 700; font-size: 0.92rem; padding: 0; margin-bottom: 6px; }
.filters label.opt { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 0.94rem; color: var(--ink-2); cursor: pointer; }
.filters input[type="radio"], .filters input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--pine-2); }
.results-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.results-bar .count { font-weight: 700; }
.results-bar select { min-height: 40px; border-radius: 10px; border: 1px solid var(--line-strong); padding: 0 10px; font: inherit; font-size: 0.92rem; background: #fff; color: var(--ink); }
@media (max-width: 900px) { .browse { grid-template-columns: 1fr; } .filters { position: static; } }

/* ---------- Fields ---------- */
.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-size: 0.84rem; font-weight: 700; margin-bottom: 4px; color: var(--ink-2); }
.field input, .field select { width: 100%; min-height: 46px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: #fff; color: var(--ink); font: inherit; }
.field .hint { display: block; font-size: 0.82rem; color: var(--ink-3); margin-top: 4px; font-weight: 400; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------- Cards, tiles, steps ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
section.panel .card { background: var(--panel-2); }
.card p { color: var(--ink-2); font-size: 0.94rem; margin: 0; }
.icon { width: 42px; height: 42px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; background: var(--lime-soft); color: var(--pine-2); flex-shrink: 0; }
.icon.blue { background: #e3f1f8; color: var(--blue); }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.tile { display: flex; align-items: flex-start; gap: 14px; padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: border-color 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease; }
section.panel .tile { background: var(--panel-2); }
.tile:hover { border-color: var(--pine-2); box-shadow: var(--shadow); transform: translateY(-1px); color: var(--ink); }
.tile strong { display: block; font-size: 1rem; line-height: 1.3; }
.tile span.desc { display: block; font-size: 0.88rem; color: var(--ink-3); margin-top: 3px; line-height: 1.45; }
.tag { display: inline-block; font-size: 0.7rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--lime-soft); color: var(--lime-ink); vertical-align: middle; margin-left: 6px; }
.tag.navy { background: #e3f1f8; color: #0a4f72; }

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.steps li { counter-increment: step; position: relative; padding-left: 54px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.steps p { color: var(--ink-2); font-size: 0.94rem; margin: 5px 0 0; }

.two-col { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 32px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 22px; } section.block { padding: 34px 0; } }

/* From-Carbon-Tracker handoff card */
.handoff { background: linear-gradient(160deg, #0b2a1d, var(--pine)); color: #fff; border-radius: var(--radius); padding: 22px; position: relative; overflow: hidden; }
.handoff img { height: 40px; width: auto; display: block; margin-bottom: 12px; }
.handoff h3 { color: #fff; font-size: 1.15rem; }
.handoff p { color: rgba(255, 255, 255, 0.84); font-size: 0.94rem; margin: 8px 0 14px; }
.handoff .flow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 0.82rem; font-weight: 700; margin-bottom: 16px; }
.handoff .flow span { padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.2); }
.handoff .flow i { font-style: normal; opacity: 0.6; }

/* Navy band, the same one that closes every Carbon Tracker page */
.cta-band { color: #fff; position: relative; overflow: hidden; background: radial-gradient(800px 400px at 90% 0%, rgba(22, 150, 210, 0.3), transparent 60%), linear-gradient(160deg, var(--navy), var(--navy-2)); }
.cta-band .wrap { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 22px; padding-top: 46px; padding-bottom: 46px; }
.cta-band .cta-text { flex: 1 1 420px; }
.cta-band .eyebrow { color: var(--lime); }
.cta-band p { color: rgba(255, 255, 255, 0.82); margin: 10px 0 0; max-width: 62ch; }
.cta-band .cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Listing detail ---------- */
.detail { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; }
.detail-art { border-radius: var(--radius); aspect-ratio: 16 / 5; padding: 26px; }
.detail-art .units { font-size: clamp(2.4rem, 6vw, 3.6rem); }
.detail-art .unit-type { font-size: 1rem; }
.spec { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 0.95rem; }
.spec th, .spec td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.spec th { width: 38%; color: var(--ink-3); font-weight: 600; background: var(--panel-2); }
.spec td { font-weight: 600; }
.buybox { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); position: sticky; top: 150px; }
.buybox .price { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--navy); }
.buybox .price small { font-size: 0.95rem; font-weight: 600; color: var(--ink-3); letter-spacing: 0; }
.buybox .basis { font-size: 0.86rem; color: var(--ink-3); margin: 6px 0 16px; }
.buybox .total { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 4px 0 14px; }
.buybox .total strong { font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.protect { list-style: none; margin: 16px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 0.9rem; color: var(--ink-2); }
.protect li { display: flex; gap: 10px; align-items: flex-start; }
.protect svg { color: var(--pine-2); flex-shrink: 0; margin-top: 2px; }
.note { background: var(--lime-soft); border: 1px solid #cfe5b8; border-radius: 12px; padding: 14px 16px; font-size: 0.92rem; color: var(--ink-2); }
.note strong { color: var(--ink); }
@media (max-width: 960px) { .detail { grid-template-columns: 1fr; } .buybox { position: static; } }


/* ---------- FAQ ---------- */
.faq { max-width: 860px; display: grid; gap: 10px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
section.panel .faq details { background: var(--panel-2); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 34px 16px 0; position: relative; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 2px; top: 20px; width: 10px; height: 10px; border-right: 2.5px solid var(--pine-2); border-bottom: 2.5px solid var(--pine-2); transform: rotate(45deg); transition: transform 0.15s ease; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 25px; }
.faq details p { color: var(--ink-2); padding-bottom: 16px; margin: 0; }

/* ---------- Footer - the Carbon Tracker footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.78); font-size: 0.92rem; padding: 50px 0 60px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
/* A link inside a sentence is told apart by more than colour. */
.site-footer .legal > span:first-child a { text-decoration: underline; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 30px; }
@media (max-width: 900px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer h2 { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lime); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer .foot-brand { display: inline-block; background: #fff; border-radius: 10px; padding: 8px 12px; margin-bottom: 14px; }
.site-footer .foot-brand img { height: 38px; width: auto; display: block; }
.site-footer .legal { margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 0.84rem; color: rgba(255, 255, 255, 0.62); display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; }

/* Phone refinements */
.family-tab { white-space: nowrap; }
@media (max-width: 900px) { .site-header { position: static; } html { scroll-padding-top: 16px; } }
@media (max-width: 480px) { .family-ref > span:last-child { font-size: 0.8rem; } .family .wrap { gap: 6px; padding: 0 12px; } }
@media (max-width: 350px) { .family-ref { display: none; } }

/* ==========================================================================
   Content components: prose pages, forms, calculators, tables, charts.
   Same tokens and the same visual language as everything above.
   ========================================================================== */
.hidden { display: none !important; }
.wrap.narrow { max-width: 860px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; background: #eef1ec; border-radius: 5px; padding: 1px 5px; }
button.head-link { border: 0; background: none; font: inherit; font-weight: 600; font-size: 0.93rem; cursor: pointer; }

/* ---------- Article layout: optional side links, then the article ---------- */
.page-grid { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 32px; align-items: start; }
.side { position: sticky; top: 150px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; display: grid; gap: 2px; font-size: 0.93rem; }
.side h2 { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); padding: 8px 10px 4px; }
.side a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-weight: 600; }
.side a:hover, .side a[aria-current="page"] { background: #eef3ea; color: var(--navy); }
@media (max-width: 900px) { .page-grid { grid-template-columns: 1fr; gap: 20px; } .side { position: static; display: flex; flex-wrap: wrap; gap: 4px; } .side h2 { flex-basis: 100%; } .side a { padding: 6px 10px; background: var(--panel-2); border: 1px solid var(--line); } }

/* Prose: the reading surface for guides, policies and explanations */
.prose { min-width: 0; color: var(--ink-2); }
.prose > * { max-width: 76ch; }
.prose > .full, .prose > .box, .prose > .table-wrap, .prose > .stats, .prose > .cards, .prose > .tiles, .prose > .chart, .prose > .code, .prose > .callout, .prose > figure { max-width: none; }
.prose h2 { color: var(--ink); margin: 1.9em 0 0.5em; scroll-margin-top: 150px; }
.prose h3 { color: var(--ink); margin: 1.5em 0 0.4em; font-size: 1.1rem; }
.prose > :first-child, .box > :first-child { margin-top: 0; }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.3em; }
.prose li { margin: 0.35em 0; }
.prose a:not(.btn):not(.tile):not(.lot) { text-decoration: underline; }
.prose img { height: auto; border-radius: var(--radius-sm); }
.prose blockquote { margin: 1.2em 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--lime); color: var(--ink); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose .meta, .fine { font-size: 0.86rem; color: var(--ink-3); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* A white box: forms, calculators, anything that needs a container */
.box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; color: var(--ink-2); }
.box + .box, .prose > .box { margin-top: 18px; }
.box h2 { color: var(--ink); font-size: 1.25rem; margin: 0 0 10px; }
.box h3 { color: var(--ink); margin: 0 0 6px; }
.box.tight { padding: 16px; }
.stack { display: grid; gap: 18px; }

/* Callouts. JS toggles .success and .error on the same element. */
.callout { background: var(--lime-soft); border: 1px solid #cfe5b8; border-left: 4px solid var(--lime); border-radius: 12px; padding: 14px 16px; font-size: 0.94rem; color: var(--ink-2); margin: 0 0 18px; }
.callout strong { color: var(--ink); }
.callout.info { background: #e9f3f9; border-color: #c5deec; border-left-color: var(--blue); }
.callout.warn { background: var(--warn-soft); border-color: #ecd9a8; border-left-color: #c98a0a; color: var(--warn-ink); }
.callout.error { background: #fbeaea; border-color: #efc4c3; border-left-color: #a0322f; color: #7d2422; }
.error-text { color: #96281f; font-size: 0.92rem; margin-top: 12px; }

/* ---------- Forms ---------- */
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px 16px; align-items: end; }
.form.one { grid-template-columns: 1fr; }
.form > *, .two-col > *, .page-grid > * { min-width: 0; }
.form .full { grid-column: 1 / -1; }
.form label, label.lab { display: grid; gap: 5px; font-size: 0.86rem; font-weight: 700; color: var(--ink-2); align-content: start; }
.form input:not([type="checkbox"]):not([type="radio"]), .form select, .form textarea,
.rowline input, .rowline select, .filters-bar input, .filters-bar select {
  width: 100%; min-height: 46px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: #fff; color: var(--ink); font: inherit; font-weight: 400;
}
.form textarea, .field textarea { min-height: 140px; padding: 10px 12px; line-height: 1.5; resize: vertical; width: 100%; border-radius: 10px; border: 1px solid var(--line-strong); font: inherit; color: var(--ink); background: #fff; }
.form input:focus, .form select:focus, .form textarea:focus, .field input:focus, .field select:focus { border-color: var(--blue); }
.hint { display: block; font-size: 0.82rem; color: var(--ink-3); font-weight: 400; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.group-label { font-size: 0.95rem; font-weight: 700; color: var(--ink); margin: 0 0 2px; }
/* A repeating input row (one gas, one fuel, one product) */
.rowline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.rowline select { flex: 1 1 220px; width: auto; min-width: 0; max-width: 100%; }
.rowline input { flex: 0 1 160px; width: auto; }
.rowline.block { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); margin-bottom: 12px; }
.rowline.block label { display: grid; gap: 4px; font-size: 0.86rem; font-weight: 700; color: var(--ink-2); }
.rowline.block select, .rowline.block input { width: 100%; }
.rowline.block .btn { justify-self: start; }
.filters-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px 16px; align-items: end; margin-bottom: 14px; }
.filters-bar label { display: grid; gap: 5px; font-size: 0.86rem; font-weight: 700; color: var(--ink-2); }

/* ---------- Results: a row of figures ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 0 0 14px; }
.stat { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.box .stat, section.panel .stat { background: var(--panel-2); }
.stat > span { display: block; font-size: 0.82rem; color: var(--ink-3); }
.stat > strong, .stat > b { display: block; font-size: 1.45rem; font-weight: 800; letter-spacing: -0.02em; color: var(--navy); font-variant-numeric: tabular-nums; line-height: 1.25; }
.stat > small, .stat > em { display: block; font-style: normal; font-size: 0.82rem; color: var(--ink-3); margin-top: 2px; }
.stats.plain .stat { background: var(--panel); }
.result { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.result ul { margin: 0 0 10px; padding-left: 1.2em; font-size: 0.93rem; }
.big { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; color: var(--navy); font-variant-numeric: tabular-nums; margin: 10px 0 2px; }
.big.sm { font-size: 1.15rem; }

/* ---------- Data tables: always inside a focusable scroll region ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); margin: 14px 0; }
table.data { width: 100%; border-collapse: collapse; font-size: 0.93rem; min-width: 560px; }
table.data.wide { min-width: 820px; }
table.data th, table.data td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--line); }
table.data thead th { background: var(--panel-2); color: var(--ink); font-weight: 700; white-space: nowrap; font-size: 0.86rem; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data td.num, table.data th.num, .ta-r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sub { display: block; font-size: 0.8rem; color: var(--ink-3); margin-top: 2px; }
table.data .quiet { color: var(--ink-3); font-size: 0.88rem; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-align: left; }
.linklike:hover { color: var(--navy); }
.pager { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }

.pill, .chip { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; white-space: nowrap; background: #eef1ec; color: var(--ink-2); }
.pill.ok, .chip.green { background: var(--lime-soft); color: var(--lime-ink); }
.pill.fail { background: #fbeaea; color: #96281f; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }

/* A list of rows with a value on the right: fee schedule, API routes */
.rows { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.rows > article { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.rows > article:last-child { border-bottom: 0; }
.rows > article > div { flex: 1 1 340px; min-width: 0; }
.rows > article p { margin: 3px 0 0; font-size: 0.9rem; color: var(--ink-3); }
.rows .value { font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; text-align: right; flex: 0 1 auto; }
.rows > p { padding: 16px; margin: 0; }

/* Code and API examples */
.code { display: block; background: var(--navy); color: #d9e8ef; border-radius: 12px; padding: 14px 16px; overflow-x: auto; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.84rem; line-height: 1.6; white-space: pre; margin: 12px 0; }

/* Charts */
.chart { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 10px 8px; overflow-x: auto; }
.chart svg { min-width: 660px; display: block; }
.chart text.ax { font-size: 12px; fill: var(--ink-3); font-family: inherit; }
.legend { display: flex; gap: 8px 18px; flex-wrap: wrap; font-size: 0.85rem; color: var(--ink-3); padding: 10px 6px 0; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }

/* Wanted cards and notices reuse the listing grid */
.lot.wanted .lot-art { aspect-ratio: auto; min-height: 96px; background: radial-gradient(260px 160px at 85% 0%, rgba(22, 150, 210, 0.36), transparent 65%), linear-gradient(160deg, var(--navy), var(--navy-2)); }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin: 6px 0 0; font-size: 0.86rem; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; font-weight: 700; color: var(--ink); }
.kv div { min-width: 0; }
.notice-card time { font-size: 0.82rem; color: var(--ink-3); }

/* Small pages: sign-in callback, password reset, one-click actions */
.solo { max-width: 640px; margin: 0 auto; }
.price-figure { font-size: clamp(2.6rem, 7vw, 4rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--navy); font-variant-numeric: tabular-nums; }
.handoff.light { background: var(--panel); color: var(--ink-2); border: 1px solid var(--line); }
.handoff.light h3 { color: var(--ink); }
.handoff.light p { color: var(--ink-2); }
@media (max-width: 520px) { .box { padding: 16px; } .kv { grid-template-columns: 1fr; } .field-row { grid-template-columns: 1fr; } }
/* Auction chart colours, used by the generated /ets-auctions/ page */
:root { --auction-line: #0d6f9e; --auction-fail: #a0322f; --auction-grid: rgba(12, 26, 36, 0.1); --auction-bg: #ffffff; }
/* Help, blog and legal: a long side list drops below the article on small screens */
@media (max-width: 900px) { .page-grid .side.after { order: 2; } }
.card .post-title { font-size: 1.15rem; line-height: 1.3; }
.card .post-title a { color: var(--ink); text-decoration: none; }
.card .post-title a:hover { text-decoration: underline; }
.legal-index .card h3 { font-size: 1.02rem; line-height: 1.35; }
.pager-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.prose .card .post-title { margin: 0; }
.prose .card .post-title a:not(.btn):not(.tile):not(.lot) { text-decoration: none; }
.prose .card h3 { margin: 0; }
