/* CargoFlex website: shared design system.
   Minimal on purpose: one typeface (Saira, matched to the CargoFlex wordmark: heavy, italic, wide),
   deep forest surfaces, paper panels for dense data, CargoFlex yellow only for actions and focus.
   Every mark on the page carries information; nothing is decoration. */

:root {
  --canvas: #0B241C;
  --canvas-deep: #071A14;
  --panel: #113328;
  --line: rgba(169, 191, 180, .2);
  --line-strong: rgba(169, 191, 180, .45);
  --accent: #F5CF05;
  --accent-hover: #FFE05A;
  --accent-muted: rgba(245, 207, 5, .22);
  --text: #F2F5EF;
  --text-2: #A9BFB4;
  --text-3: #8FA59A;
  --paper: #F4F6F0;
  --paper-2: #E6ECE6;
  --ink: #0E1D17;
  --ink-2: #4E6359;
  --ink-line: #CBD6CF;
  --brand: #114232;
  --observed: #7FCB9B;
  --modelled: #9DB8C9;
  --document: #E3D9BE;
  --limit: #E0A59B;
  --observed-ink: #1A5C47;
  --modelled-ink: #3D5A6C;
  --document-ink: #6B5B2E;
  --limit-ink: #8A3E33;

  --font: "Saira", "Segoe UI", system-ui, sans-serif;
  --ease-out: cubic-bezier(.22, .61, .36, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
  --radius: 0;
  --tshadow: 0 1px 2px rgba(5, 12, 9, .95), 0 3px 12px rgba(5, 12, 9, .78), 0 10px 44px rgba(5, 12, 9, .8);
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; overflow-x: hidden; overflow-x: clip;
  background: var(--canvas); color: var(--text);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; font-weight: 400;
  font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
/* Chart labels take the text colour of their section, so dark ink never lands on the green */
:where(svg text:not([fill])) { fill: currentColor; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--canvas); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 0; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--canvas); padding: 10px 16px; border-radius: 0; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Layout */
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { position: relative; padding-block: clamp(72px, 10vw, 140px); }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }
.paper { background: var(--paper); color: var(--ink); }
.paper a { color: var(--brand); }
.deep { background: var(--canvas-deep); }

/* Type: headings take the wordmark's stance, body stays upright and quiet */
h1, h2, h3 { margin: 0; font-style: italic; font-weight: 800; font-stretch: 112%; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6vw, 5.6rem); line-height: .98; }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.02; }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.55rem); line-height: 1.15; font-weight: 700; font-stretch: 106%; }
p { margin: 0; text-wrap: pretty; }
.lede { font-size: clamp(1.1rem, 1.45vw, 1.28rem); line-height: 1.55; color: var(--text-2); max-width: 60ch; }
.paper .lede { color: var(--ink-2); }
.body-copy { max-width: 64ch; }
.body-copy p + p { margin-top: 1em; }
.small { font-size: .9375rem; }
.fine { font-size: .8125rem; color: var(--text-3); }
.paper .fine { color: var(--ink-2); }
.num { font-weight: 700; font-variant-numeric: tabular-nums; }
.section-head { display: grid; gap: 18px; max-width: 780px; margin-bottom: clamp(36px, 5vw, 60px); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 11px 22px; border-radius: 0; border: 1px solid transparent;
  font-weight: 700; font-style: italic; font-stretch: 106%; font-size: 1.0625rem; letter-spacing: .01em;
  text-decoration: none; cursor: pointer; text-shadow: none;
  transition: background-color .2s var(--ease-out), border-color .2s var(--ease-out), color .2s var(--ease-out);
}
.btn--primary { background: var(--accent); color: var(--canvas); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--text); }
.paper .btn--ghost { color: var(--ink); border-color: var(--ink-line); }
.paper .btn--ghost:hover { border-color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link { color: inherit; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.paper .link { text-decoration-color: #8A6A00; }

/* "Read more" and cross-references: a yellow rule that sweeps into a full highlight on hover or focus */
.more {
  display: inline-block; padding: 1px 6px; margin: 0 -6px; text-decoration: none; white-space: nowrap;
  font-weight: 700; font-style: italic; font-stretch: 106%; color: var(--text);
  background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 100% / 0% 100%, linear-gradient(var(--accent), var(--accent)) no-repeat 6px 100% / calc(100% - 12px) 2px;
  transition: background-size .35s var(--ease-out), color .25s var(--ease-out);
}
.more:hover, .more:focus-visible { background-size: 100% 100%, calc(100% - 12px) 2px; color: var(--canvas); outline-offset: 2px; }
.paper .more { color: var(--ink); background-image: linear-gradient(var(--accent), var(--accent)), linear-gradient(#8A6A00, #8A6A00); }
.paper .more:hover, .paper .more:focus-visible { color: var(--ink); }

/* Navigation: a plain top bar; the links are always visible */
/* Floats at the top; once the page scrolls it shrinks into a compact bar so every page and Contact stay one click away */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; border: 1px solid transparent; transition: top .3s var(--ease-out), left .3s var(--ease-out), right .3s var(--ease-out), background-color .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s var(--ease-out); }
.nav.is-solid { top: 10px; left: 10px; right: 10px; background: rgba(7, 26, 20, .94); backdrop-filter: blur(10px); border-color: var(--line); box-shadow: 0 12px 32px rgba(3, 10, 7, .45); }
.nav__inner { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); min-height: 72px; transition: min-height .3s var(--ease-out); }
.nav.is-solid .nav__inner { min-height: 52px; }
.nav__logo { display: block; width: 140px; flex: none; transition: width .3s var(--ease-out); }
.nav.is-solid .nav__logo { width: 112px; }
.nav.is-solid .nav__links a { font-size: .9375rem; }
.nav.is-solid .nav__cta { min-height: 36px; padding: 5px 14px; font-size: .9375rem; }
.nav__logo img { width: 100%; height: auto; }
.nav__links { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav__links a {
  display: block; padding: 6px 0; text-decoration: none; color: var(--text-2);
  font-weight: 600; font-size: 1rem; letter-spacing: .01em;
  border-bottom: 2px solid transparent; transition: color .2s var(--ease-out), border-color .2s var(--ease-out);
}
.nav__links a:hover { color: var(--text); }
.nav__links a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }
.nav__cta { flex: none; min-height: 42px; padding: 8px 18px; }
@media (max-width: 900px) {
  .nav__inner { flex-wrap: wrap; row-gap: 0; padding-top: 10px; }
  .nav__links {
    order: 3; width: 100%; margin: 0; padding: 4px 0 8px; gap: 22px;
    overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .nav__links::-webkit-scrollbar { display: none; }
  .nav__links a { white-space: nowrap; padding: 10px 0; }
  .nav__cta { margin-left: auto; }
  .nav { background: rgba(7, 26, 20, .94); }
  .nav.is-solid { top: 6px; left: 6px; right: 6px; }
  .nav.is-solid .nav__links a { padding: 6px 0; }
}
@media (max-width: 420px) { .nav__cta { display: none; } }
/* Phones: the links sit in two rows of three with clear space between them, so Contact is never off-screen */
@media (max-width: 560px) {
  .nav__links { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 0 18px; overflow: visible; padding: 2px 0 6px; }
  .nav__links a, .nav.is-solid .nav__links a { padding: 5px 0; font-size: .9375rem; }
}

/* Page header for pages without a film */
.page-head { padding-top: clamp(140px, 16vw, 200px); padding-bottom: clamp(44px, 6vw, 80px); }
.page-head h1 { max-width: 16ch; }
.page-head .lede { margin-top: 22px; }
.page-head .btn-row { margin-top: 30px; }

/* Metric panel */
.metrics { background: rgba(7, 26, 20, .78); border: 1px solid var(--line); border-radius: 0; padding: clamp(18px, 2.4vw, 28px); backdrop-filter: blur(8px); }
.metrics__title { font-size: 1rem; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.metric { display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--line); }
.metric:first-of-type { border-top: 0; }
.metric__label { font-weight: 500; line-height: 1.3; }
.metric__value { font-style: italic; font-weight: 800; font-stretch: 110%; font-size: clamp(1.8rem, 2.8vw, 2.4rem); line-height: 1; text-align: right; white-space: nowrap; }
.metric__value small { font-size: .5em; font-weight: 600; font-style: normal; color: var(--text-2); margin-left: 4px; }
.metric__meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: .875rem; color: var(--text-2); }
.metrics__foot { margin-top: 14px; font-size: .875rem; color: var(--text-2); }

/* Cards and grids */
.grid { display: grid; gap: clamp(16px, 2vw, 28px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 2.4vw, 30px); }
.paper .card { background: #fff; border-color: var(--ink-line); }
.media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--panel); margin: 0; }
.media img { width: 100%; height: 100%; object-fit: cover; }

/* Data table */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--ink-line); background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: .9375rem; min-width: 720px; }
table.data th, table.data td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--paper-2); vertical-align: middle; }
table.data th { font-weight: 600; color: var(--ink-2); background: var(--paper); position: sticky; top: 0; z-index: 1; white-space: nowrap; }
table.data .num-cell { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data tbody tr:hover { background: #F7FAF5; }
table.data .na { color: var(--ink-2); font-style: italic; }

/* Forms */
.field { display: grid; gap: 8px; align-content: start; }
.field label, .field .field__label { font-weight: 600; color: var(--text-2); }
.paper .field label, .paper .field .field__label { color: var(--ink-2); }
.input {
  min-height: 48px; width: 100%; padding: 10px 14px; border-radius: 0;
  border: 1px solid var(--line-strong); background: rgba(7, 26, 20, .5); color: var(--text);
  transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.paper .input { background: #fff; border-color: #9FB2A8; color: var(--ink); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-muted); }
select.input { appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; }
.field__hint { font-size: .875rem; color: var(--text-3); }
.paper .field__hint { color: var(--ink-2); }

/* Segmented controls and filter chips */
.segmented { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 0; background: var(--paper-2); }
.segmented button { min-height: 38px; padding: 6px 14px; border: 0; border-radius: 0; background: transparent; color: var(--ink-2); font-weight: 600; cursor: pointer; transition: background-color .2s var(--ease-out), color .2s var(--ease-out); }
.segmented button:hover { color: var(--ink); }
.segmented button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(14, 29, 23, .15); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 38px; padding: 6px 14px; border-radius: 0; border: 1px solid var(--ink-line); background: #fff; color: var(--ink); font-weight: 600; cursor: pointer; transition: background-color .2s var(--ease-out), border-color .2s var(--ease-out), color .2s var(--ease-out); }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Disclosure */
details.disclose { border-top: 1px solid var(--line); }
.paper details.disclose { border-color: var(--ink-line); }
details.disclose summary { list-style: none; cursor: pointer; padding: 18px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 700; font-style: italic; font-size: 1.2rem; }
details.disclose summary::-webkit-details-marker { display: none; }
details.disclose summary::after { content: "+"; font-size: 1.5rem; font-style: normal; color: var(--accent); transition: transform .25s var(--ease-out); }
.paper details.disclose summary::after { color: var(--brand); }
details.disclose[open] summary::after { transform: rotate(45deg); }
details.disclose .disclose__body { padding: 0 0 22px; }

/* A fold-out as a slim forest-green bar: brighter under the pointer, opens into a white panel, folds back on a second click */
details.disclose--bar { border: 0; background: var(--brand); color: var(--text); interpolate-size: allow-keywords; transition: background-color .3s var(--ease-out), color .3s var(--ease-out); }
details.disclose--bar > summary { padding: 15px 22px; font-size: 1.1rem; transition: background-color .25s var(--ease-out); }
details.disclose--bar > summary::after { color: var(--text); transition: transform .25s var(--ease-out), color .25s var(--ease-out); }
details.disclose--bar:not([open]):hover { background: #1A5C47; }
details.disclose--bar:not([open]):hover > summary::after { color: var(--accent); }
details.disclose--bar > summary:focus-visible { outline-offset: -3px; }
details.disclose--bar[open] { background: #fff; color: var(--ink); box-shadow: 0 18px 44px rgba(3, 10, 7, .35); }
details.disclose--bar[open] > summary { border-bottom: 1px solid var(--ink-line); }
details.disclose--bar[open] > summary:hover { background: var(--paper); }
details.disclose--bar[open] > summary::after { color: var(--brand); }
details.disclose--bar .disclose__body { padding: 18px 22px 22px; }
details.disclose--bar .fine { color: var(--ink-2); }
details.disclose--bar::details-content { block-size: 0; overflow-y: clip; transition: block-size .35s var(--ease-out), content-visibility .35s var(--ease-out) allow-discrete; }
details.disclose--bar[open]::details-content { block-size: auto; }

/* Footer */
.footer { background: var(--canvas-deep); border-top: 1px solid var(--line); padding-block: 60px 32px; font-size: .9375rem; color: var(--text-2); }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; }
.footer__logo { width: 200px; height: auto; }
.footer h2 { font-size: 1.05rem; color: var(--text); margin-bottom: 12px; font-weight: 700; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer a { color: var(--text-2); text-decoration: none; }
.footer a:hover { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); }
.footer address { font-style: normal; line-height: 1.55; }
.footer__base { margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .8125rem; color: var(--text-3); }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

.notice { padding: 14px 16px; border-radius: 0; border: 1px solid var(--line); background: rgba(17, 66, 50, .45); font-size: .9375rem; color: var(--text-2); }
.paper .notice { background: #fff; border-color: var(--ink-line); color: var(--ink-2); }

@media (pointer: coarse) { .btn, .chip, .segmented button { min-height: 44px; } }

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

/* No status tags anywhere: what is measured, modelled, planned or still to come is said in plain sentences */
