/* ---------------------------------------------------------------------------
   CO2IN Help & FAQ theme for Material for MkDocs.

   Rule for this file: components come from www.co2in.com, they are not
   invented here. Where a component exists on the live site, its rule is
   copied. Reference implementation: design/reference.html.

   Colour roles, taken from the live site's own usage:
     - ALL headings and body copy are black (#1A1C1E).
     - Green (#2FA875) is for buttons, icons, underlines and active states.
     - Forest (#054938) is a BLOCK BACKGROUND, never text. It appears as a
       text colour in exactly one rule on co2in.com.
--------------------------------------------------------------------------- */

/* CO2IN web fonts, self-hosted (SIL OFL 1.1; licences beside the files). No request leaves our own host.
   Same kit as co2in.com, see docs/rework/2026-11-02-fonts/ in co2in-web. Instrument Sans is frozen at wdth 95.
   URLs stay relative: this file is served from /stylesheets/ on every locale. */
@font-face {
  font-family: 'Figtree'; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url('../fonts/figtree-latin-ext-wght.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Figtree'; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url('../fonts/figtree-latin-wght.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('../fonts/instrument-sans-latin-ext-wght-wdth95.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('../fonts/instrument-sans-latin-wght-wdth95.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Metric-matched fallbacks: Arial scaled to the real face, so the swap barely moves text.
   Figtree 640: 1.048 x Arial, ascent 0.95, descent 0.25. Instrument Sans 400 wdth 95: 0.981 x Arial, 0.97 / 0.25.
   Overrides are divided by size-adjust, which scales them too. */
@font-face {
  font-family: figtree-fallback; src: local('Arial'), local('ArialMT'), local('Liberation Sans');
  size-adjust: 104.8%; ascent-override: 90.6%; descent-override: 23.9%; line-gap-override: 0%;
}
@font-face {
  font-family: instrument-sans-fallback; src: local('Arial'), local('ArialMT'), local('Liberation Sans');
  size-adjust: 98.1%; ascent-override: 98.9%; descent-override: 25.5%; line-gap-override: 0%;
}

:root {
  --co2in-cream:     #FEFEF9;
  --co2in-mint-pale: #ECFFE3;
  --co2in-mint:      #A0E8C0;
  --co2in-forest:    #054938;
  --co2in-green:     #2FA875;
  --co2in-ink:       #1A1C1E;
  --co2in-peach:     #FFC9A1;
  --co2in-slate:     #6B7A72;
  --co2in-rule:      #DFE6DE;
  /* design/reference.html declares this as --card. Card and panel surfaces sit
     on it; it is not the same white as the cream page ground. */
  --co2in-card:      #FFFFFF;
  /* The main web's green for text links and the filled button on light
     surfaces (co2in-astro-web tokens.css linkText / buttonSolid, and its
     hover). The header uses it so it matches www exactly. */
  --co2in-web-green:       #1F7A52;
  --co2in-web-green-hover: #176341;
  /* The web's focus ring (tokens.css --focus: focusRing) and its ring on the
     forest footer (focusRingOnDark). */
  --co2in-focus:        #054938;
  --co2in-focus-forest: #A0E8C0;
  /* The web's ink-brand, its header rule (ink-brand 12% over the page) and
     the panel's shadow colour. */
  --co2in-ink-brand:    #054938;
  --co2in-web-rule:     color-mix(in srgb, #054938 12%, #FEFEF9);
  --co2in-panel-shadow: #054938;

  /* The warning callout, from design/reference.html:122-123 -- `.warn` and
     `.warn .ic`. Approved values that the reference itself never named, so
     they were sitting in this file as bare literals. Named here rather than
     re-mixed: they are the design's, not ours. */
  --co2in-warn-bg:   #FFF1E4;
  --co2in-warn-ink:  #C4763A;

  /* Material composes --md-text-font-family as
     `var(--md-text-font, _), -apple-system, ...`, so the knob to set is
     --md-text-font; a family list substitutes cleanly. Setting
     --md-text-font-family directly is overwritten by the theme. */
  /* co2in.com's button arrow, for contexts that cannot carry inline SVG. */
  --co2in-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 38 38' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M3 18.626h30M29.4 14l4.33 4.331a.5.5 0 0 1-.011.719l-4.474 4.19'/%3E%3C/svg%3E");

  --md-text-font: "Instrument Sans", instrument-sans-fallback;
  --md-code-font: ui-monospace, SFMono-Regular, Menlo, monospace;
  --co2in-heading-font: Figtree, figtree-fallback, sans-serif;
}

/* Headings, labels and buttons are Figtree; everything else inherits Instrument
   Sans from --md-text-font. These rules set the family only, weights stay with
   their components. Weight 800 is what co2in.com's headings use (operator 2026-11-09); labels at 500
   stay 500. */
.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4,
.md-typeset table:not([class]) th,
.md-typeset .admonition > .admonition-title,
.md-typeset details:not(.md-search-result__more) > summary,
.md-typeset .grid.cards > ul > li > p:first-child a,
.md-typeset .grid.cards > ul > li h3 a,
.md-typeset a.co2in-btn,
.md-typeset a.co2in-chip,
.md-header .co2in-btn,
.co2in-btn,
.md-header__title,
.md-nav__title,
.md-nav__link--active,
.md-nav__item--section > .md-nav__link,
.co2in-footer__head,
.co2in-pagenav__direction,
.co2in-pagenav__title,
.md-typeset .co2in-hero .md-search__output details.md-search-result__more > summary {
  font-family: var(--co2in-heading-font);
}

/* Material ships these at 700, which is 800 here. Card titles are `**[link]**`:
   `strong` means bolder, and bolder than 800 is 900. */
.md-nav--primary .md-nav__title[for="__drawer"],
.md-search-result .md-typeset h2,
.md-search-result .md-typeset :is(h3, h4),
.md-typeset .co2in-hero .md-search__output details.md-search-result__more > summary { font-weight: 800; }
.md-typeset .grid.cards > ul > li > p:first-child a strong { font-weight: inherit; }

/* Material declares its palette on :root, and only stamps
   [data-md-color-scheme] on <html> when a palette is configured in
   mkdocs.yml. There is none here, so overriding the scheme selector alone
   never matched and the header stayed Material indigo. Override :root --
   extra_css loads after the theme, so equal specificity resolves our way --
   and keep the scheme selector for the day a palette toggle is added. */
:root,
[data-md-color-scheme="default"] {
  --md-default-bg-color:          var(--co2in-cream);
  --md-default-fg-color:          var(--co2in-ink);
  --md-default-fg-color--light:   var(--co2in-slate);
  /* Material's muted-text ramp needs a step between slate and rule. This was
     a bare #9AA69F, which appears nowhere in design/reference.html -- the one
     colour in this file that really was invented rather than copied. Derived
     from the palette instead, so the set of CO2IN colours stays exactly the
     reference's. The fallback is for browsers without color-mix. */
  --md-default-fg-color--lighter: var(--co2in-slate);
  --md-default-fg-color--lighter: color-mix(in srgb, var(--co2in-slate) 62%, var(--co2in-cream));
  --md-default-fg-color--lightest: var(--co2in-rule);

  /* Light header: cream ground, black content. */
  --md-primary-fg-color:  var(--co2in-cream);
  --md-primary-bg-color:  var(--co2in-ink);
  --md-primary-bg-color--light: var(--co2in-slate);

  --md-accent-fg-color:   var(--co2in-green);
  --md-typeset-a-color:   var(--co2in-green);

  --md-code-bg-color:     var(--co2in-mint-pale);
  --md-code-fg-color:     var(--co2in-forest);
}

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

/* GEOMETRY IS IN PX ON PURPOSE.
   The approved design is authored against a 16px root. Material sets
   html{font-size:125%} = 20px, so every rem copied from the design renders
   25% oversized -- the button came out 15px/9.4px padding instead of
   14px/7.5px, and the nav gap 25px instead of 22px. px keeps the header
   identical to the design regardless of the theme's root scaling. */

.md-header {
  border-bottom: 0; /* no rule under the header, as on www (operator 2026-11-09) */
  box-shadow: none;
}
/* The main web's header bar (co2in-astro-web Header.astro): its 1282px
   container with 24px gutters, 72px high, 86px from 1024px. */
.md-header__inner.md-grid { max-width: 1282px; height: 72px; padding: 0 24px; }
@media (min-width: 64em) { .md-header__inner.md-grid { height: 86px; } }

/* Logo at 46px: co2in.com renders the wordmark at its natural 76x46 with no
   CSS override, so that is the authentic size. Material otherwise pads the
   anchor by 8px and caps the image at 24px.
   The 10px gap to the title also needs Material's own 20px title margin
   removed, or the two stack to 30px. */
.md-header .md-logo { padding: 0; margin: 0 10px 0 0; }
/* The web's hit area (Header.astro .logo): 12px round the wordmark, taken back
   by the margin, so nothing moves. */
.md-header__inner > .md-logo { padding: 12px; margin: -12px -2px -12px -12px; }
/* Two wordmarks (overrides/partials/logo.html); the page's scheme picks one. */
body:not([data-md-color-scheme="slate"]) .md-logo img.co2in-logo--dark,
[data-md-color-scheme="slate"] .md-logo img.co2in-logo--light { display: none; }
.md-header .md-logo :is(img, svg), .co2in-panel__bar .md-logo :is(img, svg) { height: 46px; width: auto; transform: translateY(10.65%); /* the 2 hangs below the letters: centre C O I N, not the box (4.9 of 46 units) */ }
/* Below 1024px the web's wordmark is 28px high. */
@media (max-width: 63.984375em) {
  .md-header .md-logo :is(img, svg), .co2in-panel__bar .md-logo :is(img, svg) { height: 28px; }
}

/* The landing page sets `hide: navigation`, so its drawer holds no navigation
   and the card grid is the navigation instead. Material renders the toggle
   from 1219px down regardless; a control that opens an empty panel is worse
   than no control. co2in-header--home is rendered server-side by
   header.html, so this needs no JavaScript and cannot flash. */
.co2in-header--home label[for="__drawer"] { display: none; }

/* "Help & FAQ" at 19px/500. This KNOWINGLY departs from design/reference.html,
   which specifies 15px: the title is sized against the 46px co2in.com wordmark
   beside it, not against the reference's 26px mark. Reviewed and kept
   2026-08-11 -- see review/2026-08-11-ux-refactor-design.md, A1. Do not "fix"
   this back to 15px without also shrinking the wordmark. Material ships
   18px / 700. */
.md-header__title { font-size: 19px; font-weight: 500; line-height: 1.3; margin: 0; }
.md-header__title .md-ellipsis {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--co2in-ink);
}
/* Material swaps the site name for the page title on scroll, and implements
   that by absolutely positioning both topics inside a fixed 48px block. With
   the swap suppressed, the absolute topic stayed pinned to the top of that
   block, sitting 14px above the logo's centre line. Returning it to normal
   flow lets the header's own align-items:center do the alignment. */
/* Material sets the title offset as `[dir=ltr] .md-header__title` -- (0,2,0),
   which outranks a bare class, so `.md-header__title { margin: 0 }` was
   silently losing and the gap stayed 30px instead of 10px. */
/* The logo image itself is shifted so its letters C O I N sit on the bar's
   centre line (see the .md-logo rule above), so the title needs no offset of
   its own: plain align-items:center puts its capitals on that same line. An
   older -2.9px lift compensated for the unshifted logo; once the logo moved
   it lifted the title 4px above the letters and the web links (operator
   2026-11-09). The 1px is the font's own: Figtree's capitals sit 1px above
   the middle of its 19px line. Measured on the rendered header at 1440, 1024
   and 800px. Not text-box trimming: .md-ellipsis hides overflow, so a trimmed
   box cuts off the p of "Help". */
.md-header .md-header__title {
  display: flex;
  align-items: center;
  height: auto;
  margin: 0 0 0 5px;
  position: relative;
  top: 1px;
}
.md-header__title .md-header__ellipsis { height: auto; }
.md-header__title .md-header__topic { position: static; }
/* The second topic MUST stay hidden, and it is not an oversight.
   Material's title swap works by absolutely positioning both topics on top of
   each other and cross-fading them. The rule above puts them back in normal
   flow, which is what lets the header's own align-items:center place the
   title against the wordmark. Two static topics do not overlap -- they stack,
   doubling the title box to 49px and leaving the visible one 17px above the
   logo's centre line.
   Removing this line to "restore the swap" was tried on 2026-08-11 and did
   exactly that. The swap and the static alignment cannot both be had without
   reworking Material's markup; the alignment wins. */
.md-header__title .md-header__topic + .md-header__topic { display: none; }

.co2in-header__actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: 28px;
}

/* The main web's links (co2in-astro-web Header.astro). From 84em (1344px) they
   sit in the header row beside the FAQ's own title and search; below it they do
   not fit (Czech title 145px + search + four links + portal + language +
   button), so the web's mobile header (menu panel) is used instead. */
.co2in-header__actions, .co2in-webnav { display: none; }
@media (min-width: 84em) {
  /* As on the web: the four links on the left, after the logo (and here
     "Help & FAQ"); the tools on the right. */
  .co2in-header__actions { display: flex; }
  .co2in-webnav { display: block; margin: 0 28px 0 40px; }
  .md-header .md-header__title { flex: 0 0 auto; }
  /* The FAQ's search sits with the tools and is what gives way: 160px where
     the row has room (English), down to its icon (Czech, German). Opened, it
     widens to the left over the links rather than pushing the row. */
  .md-header .md-search { position: relative; flex: 0 1 160px; min-width: 44px; margin-left: auto; }
  .md-header .md-search__inner { width: 100%; }
  .md-header .md-search__form { container-type: inline-size; }
  [data-md-toggle="search"]:checked ~ .md-header .md-search__inner { position: absolute; top: 50%; right: 0; z-index: 1; width: 34.4rem; transform: translateY(-50%); }
  /* German is the longest row: the web's spacing does not leave it room. */
  .md-header:lang(de) .co2in-webnav { margin: 0 16px 0 24px; }
  .md-header:lang(de) .co2in-webnav__list { gap: 16px; }
  .md-header:lang(de) .co2in-header__actions { gap: 16px; margin-left: 16px; }
}
/* Empty, the field has no clear button, so the placeholder may use that room;
   squeezed to its icon, it shows no clipped placeholder at all. */
@media (min-width: 84em) {
  .md-header .md-search__input:placeholder-shown { padding-right: 12px; }
}
@container (width <= 100px) {
  .md-header .md-search__input::placeholder { color: transparent; }
}
.co2in-header__faq { color: inherit; text-decoration: none; }
.co2in-header__faq:hover { color: var(--co2in-green); }
.co2in-webnav__list { display: flex; align-items: center; gap: 36px; margin: 0; padding: 0; list-style: none; }
.co2in-webnav__item { position: relative; margin: 0; padding: 11px 0; } /* the menu's hover bridge, on the item so the link's box is the web's */
/* The web's header type: links 17px, tools 15px, Figtree 500. */
.co2in-webnav .co2in-header__link { display: inline-flex; align-items: center; gap: 4px; padding: 0; font-size: 17px; line-height: 24px; font-weight: 500; font-family: var(--co2in-heading-font); }
.co2in-header__actions .co2in-header__link { font-family: var(--co2in-heading-font); font-size: 15px; line-height: 24px; font-weight: 500; }
.md-header .co2in-header__portal { color: var(--co2in-web-green); }
.md-header .co2in-header__portal:hover { color: var(--co2in-web-green-hover); } /* the web's link hover (co2in-astro-web 9daf1f2) */
/* The other two languages as plain codes, as on the web. */
.co2in-langs { display: flex; gap: 12px; margin: 0; padding: 0; list-style: none; }
.co2in-langs li { margin: 0; }
/* Inline as on the web, so the focus ring hugs the text (the late
   inline-flex is for the external-link glyph, which these do not carry). */
.co2in-header__actions .co2in-header__link { display: inline; }
/* Client Portal is a flex item, so it cannot be inline: the font's own line
   height gives it the inline box the web's link has. */
.co2in-header__actions > .co2in-header__portal { line-height: normal; }
.co2in-webnav__list > li > a.co2in-header__link { display: inline; }
/* "For individuals": the web's M2 panel (co2in-astro-web Header.astro), its
   rendered values at 1440 px copied in px (the web's rem is 16 px, Material's
   20 px). A button; the panel opens on click, and on hover with a fine pointer
   (header.html script); without the script on hover and keyboard focus. */
.co2in-webnav .co2in-ipanel__toggle {
  display: flex; gap: 8px; padding: 0; border: 0; background: none; cursor: pointer; white-space: nowrap;
  color: var(--co2in-ink);
}
.co2in-ipanel__toggle[aria-expanded="true"] { color: var(--co2in-web-green); }
.co2in-caret {
  display: block; width: 6.4px; height: 6.4px; margin-top: -4px;
  border: solid currentColor; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); transition: transform 0.15s;
}
[aria-expanded="true"] > .co2in-caret { margin-top: 3.2px; transform: rotate(-135deg); }
.co2in-ipanel { display: none; }
.co2in-webnav__item--menu[data-open] .co2in-ipanel,
.md-header:not([data-co2in-js]) .co2in-webnav__item--menu:is(:hover, :focus-within) .co2in-ipanel { display: grid; }
/* 14 px under the button: the item carries 11 px of hover bridge below it. */
.co2in-ipanel {
  position: absolute; top: calc(100% + 3px); left: -16px; z-index: 5; width: 640px;
  grid-template-columns: 208px minmax(0, 1fr); gap: 20px; padding: 18px;
  background: var(--co2in-cream); border: 1px solid var(--co2in-web-rule); border-radius: 14px;
  box-shadow: 0 16px 40px color-mix(in srgb, var(--co2in-panel-shadow) 12%, transparent);
  font-family: var(--md-text-font-family); font-size: 16px; line-height: 16px; color: var(--co2in-ink);
}
.co2in-ipanel::before { content: ""; position: absolute; inset: -16px 0 100% 0; } /* the gap stays hoverable */
.co2in-ipanel ul { margin: 0; padding: 0; list-style: none; }
.co2in-ipanel li { margin: 0; }
.co2in-ipanel a { text-decoration: none; white-space: normal; }
.co2in-ipanel__links { display: grid; align-content: start; gap: 2px; }
.co2in-ipanel__links a {
  display: block; padding: 9px 12px; border-radius: 8px;
  font-family: var(--co2in-heading-font); font-size: 15px; font-weight: 500; line-height: 24px; color: var(--co2in-ink);
}
.co2in-ipanel__links a:hover { background: var(--co2in-mint-pale); color: var(--co2in-web-green); }
.co2in-ipanel__calcs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.co2in-calc {
  display: grid; align-content: start; gap: 6px; height: 100%; padding: 12px; border-radius: 12px;
  background: var(--co2in-mint-pale); color: var(--co2in-ink);
  font-family: var(--co2in-heading-font); font-size: 17px; font-weight: 500; line-height: 24px;
}
.co2in-calc:hover { color: var(--co2in-web-green); }
.co2in-calc__art { display: block; justify-self: start; width: auto; height: 70px; }
.co2in-calc__title { display: block; font-size: 15px; font-weight: 800; line-height: 1.3; color: var(--co2in-ink-brand); }
.co2in-calc__short { display: block; font-size: 13px; line-height: 1.35; }
.co2in-calc__go { display: block; font-size: 13px; font-weight: 800; color: var(--co2in-web-green); }
.co2in-calc:hover .co2in-calc__go { text-decoration: underline; }
.co2in-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
/* "For companies": one card, as wide as a calculator card, no illustration (operator 2026-11-16). */
.co2in-ipanel--companies { width: 448px; }
.co2in-ipanel--companies .co2in-ipanel__calcs { grid-template-columns: 1fr; }
.co2in-ipanel__all { grid-column: 1 / -1; justify-self: end; }
.co2in-ipanel__all a { font-family: var(--co2in-heading-font); font-size: 17px; font-weight: 800; line-height: 24px; color: var(--co2in-web-green); }
.co2in-ipanel__all a:hover { text-decoration: underline; }
/* Illustrations in dark mode, as the web's (global.css, option A): on a mint plate. */
[data-md-color-scheme="slate"] .co2in-calc__art {
  object-fit: contain; padding: clamp(6px, 1.2vw, 16px); border-radius: 24px; background-color: #ecffe3;
}

/* Below 84em: the web's mobile header (co2in-astro-web Header.astro): logo,
   "Contact us" and a menu button opening a full-screen panel. Above it these
   are hidden and the row above is used. */
.co2in-header__contact-m { order: 5; min-height: 44px; margin-left: 0; }
.md-header .co2in-header__menu-open { order: 6; margin: 0 -10px 0 12px; }
.co2in-menu-toggle {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; margin: 0; padding: 10px;
  border: 0; background: transparent; color: var(--co2in-ink); cursor: pointer;
}
.co2in-menu-toggle svg { width: 24px; height: 24px; fill: none; } /* the web's stroked icons (header.html) */
@media (min-width: 84em) {
  .co2in-header__contact-m, .co2in-header__menu-open, .co2in-panel { display: none !important; }
}
.co2in-panel {
  position: fixed; inset: 0; z-index: 10; overflow-y: auto;
  background: var(--co2in-cream);
}
.co2in-panel[hidden] { display: none; }
.co2in-panel-open { overflow: hidden; }
/* The bar of the open menu sits exactly where the header bar was. */
.co2in-panel__bar {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; padding: 0 14px 0 24px; border-bottom: 1px solid var(--co2in-rule);
}
@media (min-width: 64em) { .co2in-panel__bar { height: 86px; } }
.co2in-panel__bar .md-logo { display: block; padding: 0; }
.co2in-panel__bar { box-sizing: content-box; border-bottom-color: var(--co2in-web-rule); } /* the rule under the bar, as the web's menu rule */
.co2in-panel__bar > * { box-sizing: border-box; } /* the bar is content-box for its rule only */
.co2in-panel__contact { flex: none; min-height: 44px; margin-left: auto; }
.co2in-panel__contact + .co2in-menu-toggle { margin-left: 12px; }
/* Rows as the web's mobile menu (Header.astro below 1024 px): the four links
   20/24 px with a rule under each, the individuals items indented 17/24 px,
   then the tools and the languages side by side, 16/24 px, 44 px to tap. */
.co2in-panel__nav { max-width: none; margin: 0; padding: 8px 24px 24px; }
.co2in-panel__list { margin: 0; padding: 0; list-style: none; }
.co2in-panel__list li { margin: 0; }
.co2in-panel__row {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 10px 0; border: 0; background: transparent; cursor: pointer; text-align: left;
  color: var(--co2in-ink); font-family: var(--co2in-heading-font); font-size: 16px; font-weight: 500; line-height: 24px; text-decoration: none;
}
.co2in-panel__list > li > .co2in-panel__row { padding: 18px 0; border-bottom: 1px solid var(--co2in-web-rule); font-size: 20px; }
.co2in-panel__row:hover, .co2in-panel__expand[aria-expanded="true"] { color: var(--co2in-web-green); }
.co2in-panel__expand .co2in-caret { margin-right: 4px; }
.co2in-panel__green { color: var(--co2in-web-green); }
.co2in-panel__sub { margin: 0; padding: 4px 0 12px 16px; list-style: none; border-bottom: 1px solid var(--co2in-web-rule); }
.co2in-panel__sub[hidden] { display: none; }
.co2in-panel__sub .co2in-panel__row { display: block; padding: 10px 0; font-size: 17px; }
.co2in-panel__list--tools, .co2in-panel__list--langs { display: flex; flex-wrap: wrap; column-gap: 24px; }
.co2in-panel__list--tools { margin-top: 12px; }
/* The tools in the link green, as the web's (.tools a), darker on hover. */
.co2in-panel__list--tools .co2in-panel__row { color: var(--co2in-web-green); }
.co2in-panel__list--tools .co2in-panel__row:hover { color: var(--co2in-web-green-hover); }
.co2in-panel__list--tools > li > .co2in-panel__row, .co2in-panel__list--langs > li > .co2in-panel__row {
  display: block; width: auto; padding: 10px 0; border: 0; font-size: 16px;
}
.co2in-panel .co2in-footer__untranslated { margin-left: 6px; font-size: 12px; opacity: .75; }
/* The title does not fit beside the buttons on a phone; it is in the panel. */
@media (max-width: 44.984375em) {
  .md-header .md-header__title { display: none; }
  .md-header .md-logo { margin-right: 0; }
  .md-header__inner > .md-logo { margin-right: -12px; }
  .md-header label[for="__search"].md-header__button { margin-left: auto; }
  .md-header label[for="__drawer"].md-header__button { display: none; }
}
/* 320px: the longest label (German) needs the compact button to leave room for
   the menu. From 375px the web's sizes fit. */
@media (max-width: 23.375em) {
  .md-header .co2in-header__contact-m { padding: 7px 5px; font-size: 11px; letter-spacing: 0; margin-left: 0; }
  .md-header label.md-header__button.md-icon, .md-header .co2in-header__menu-open { width: 38px; }
  .md-header .co2in-header__menu-open { margin: 0; }
  .md-header .md-header__inner.md-grid { padding-left: 4px; padding-right: 4px; }
}
@media (min-width: 45em) { .co2in-panel__topics { display: none; } }

/* co2in.com link: .c-bkmSKn on the live site -- black, with a 1px green bar
   that sweeps in from the right on hover. */
.co2in-header__link {
  position: relative;
  color: var(--co2in-ink);
  font-size: 14px;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
}
/* Hover as the web's header (co2in-astro-web Header.astro): the link green,
   no underline. */
.co2in-header__link:hover { color: var(--co2in-web-green); }

/* Primary button: .c-eFjjir + .c-eFjjir-dWUOxu-variant-primary, at the
   header size modifier. Copied value for value.
   Scoped tightly -- Material's own link rules outrank a bare class. */
.md-header .co2in-btn,
.md-typeset a.co2in-btn,
.co2in-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7.5px 18px;
  border: 1px solid var(--co2in-web-green);
  border-radius: 100px;
  background: var(--co2in-web-green);
  color: var(--co2in-cream);
  font-size: 14px;
  line-height: 21px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.15s, background-color 0.15s, border-color 0.15s, transform 0.15s;
}
/* Hover as the web's .btn-primary: the darker fill, label unchanged. */
.md-header .co2in-btn:hover,
.md-typeset a.co2in-btn:hover,
.co2in-btn:hover {
  background: var(--co2in-web-green-hover);
  border-color: var(--co2in-web-green-hover);
  color: var(--co2in-cream);
  text-decoration: none;
}
/* "Contact us": the web's filled button (buttonSolid, its hover), 44px high
   at 14px below 1024px and 46px at 16px from there. Dark mode keeps its own
   colours (see Dark mode below). */
.md-header .co2in-btn { background: var(--co2in-web-green); border-color: var(--co2in-web-green); }
.md-header .co2in-btn:hover { background: var(--co2in-web-green-hover); border-color: var(--co2in-web-green-hover); color: var(--co2in-cream); }
@media (min-width: 64em) {
  .md-header .co2in-btn { min-height: 46px; padding: 10px 24px; font-size: 16px; line-height: 24px; letter-spacing: normal; }
}
/* 38px is co2in.com's --sizes-buttonIcon: a long thin arrow beside 14px text,
   which is what gives the button its wide proportion. */
.co2in-btn__arrow {
  width: 38px;
  height: 38px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
/* In-content buttons (the two app store links in registration.md) take the
   smaller icon. Markdown cannot carry the inline SVG, so the arrow is a mask
   -- which means it still inherits colour through the hover inversion, unlike
   a background image would.

   The contact band is excluded from the type and padding shrink only. Its
   button is authored in markdown like any other, so it was silently rendering
   at 13px where design/reference.html gives it the default 14px button. The
   26px arrow below is NOT scoped away: reference.html:51 sets .btn-ic to
   26px, which is what this already matches. (The arrow's SVG carries
   viewBox="0 0 38 38"; those are coordinate units, not rendered pixels.)

   Negating by ancestor rather than by parent is deliberate: markdown wraps
   the button in a <p>, so the anchor's parent is that <p> and never
   .co2in-band itself. */
.md-typeset a.co2in-btn:not(.co2in-band a) { font-size: 13px; padding: 6.4px 16px; }
/* Consecutive in-content buttons -- the two app-store links -- are separate
   paragraphs with no margin between them, so they sat edge to edge with a 0px
   gap and read as one merged control. */
.md-typeset p + p > a.co2in-btn:only-child { margin-top: 10px; }
.md-typeset a.co2in-btn { margin-bottom: 2px; }
.md-typeset a.co2in-btn::after {
  content: "";
  width: 26px;
  height: 26px;
  flex: none;
  background: currentColor;
  -webkit-mask: var(--co2in-arrow) center / contain no-repeat;
  mask: var(--co2in-arrow) center / contain no-repeat;
}

/* --- Typography --------------------------------------------------------- */

/* px again: the design's type scale is authored at a 16px root. */
.md-typeset { font-size: 15px; line-height: 1.75; color: var(--co2in-ink); }
.md-typeset p { max-width: 64ch; margin: 0 0 12px; }

.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4 {
  color: var(--co2in-ink);
  font-weight: 800;
}
.md-typeset h1 { font-size: 32px; letter-spacing: -0.025em; margin: 0 0 12px; line-height: 1.15; }
/* H3 is used for the cases inside a question -- e.g. the ways a transfer can
   go wrong. It needs enough air to read as a sub-block rather than as a bold
   line in a run of text, and a green rule to tie it to the answer above. */
.md-typeset h3 {
  font-size: 16px;
  letter-spacing: -0.01em;
  margin: 26px 0 8px;
  padding-left: 12px;
  border-left: 2px solid var(--co2in-green);
}

/* Questions are H2, with a hairline above each so answers separate without
   needing cards. */
.md-typeset h2 {
  font-size: 18px;
  letter-spacing: -0.01em;
  line-height: 1.35;
  border-top: 1px solid var(--co2in-rule);
  margin-top: 26px;
  margin-bottom: 10px;
  padding-top: 26px;
}
.md-typeset h2:first-of-type { border-top: none; margin-top: 0; padding-top: 0; }

/* Standfirst under the page title. */
.md-typeset p.lede {
  font-size: 16px;
  line-height: 1.7;
  color: var(--co2in-slate);
  max-width: 62ch;
  margin: 0 0 32px;
}

/* Inline link: .c-eFjjir-jGTpve-variant-inline -- green and underlined, and
   the hover REMOVES the underline rather than changing the colour. */
.md-typeset a {
  color: var(--co2in-green);
  text-decoration: underline;
  font-weight: inherit;
}
.md-typeset a:hover,
.md-typeset a:focus {
  color: var(--co2in-green);
  text-decoration: none;
}

/* Headerlink anchors must not inherit the underline. */
.md-typeset .headerlink { text-decoration: none; }

/* Tables carried no rules at all, so they rendered as raw Material: .64rem
   against a 20px root is 12.8px, beside 15px body copy, with a 0.1rem radius
   and grey borders from no palette in particular. 21 pages have tables and
   the four-column German ones were the worst of it.

   :not([class]) leaves Material's own tables -- search, footer -- alone. */
.md-typeset table:not([class]) {
  font-size: 14px;
  border: 1px solid var(--co2in-rule);
  border-radius: 12px;
  box-shadow: none;
}
.md-typeset table:not([class]) th {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 800;
  color: var(--co2in-forest);
  background: var(--co2in-mint-pale);
  border-bottom: 1px solid var(--co2in-rule);
}
.md-typeset table:not([class]) td {
  padding: 12px 16px;
  border-top: 1px solid var(--co2in-rule);
}
.md-typeset table:not([class]) tbody tr:first-child td { border-top: none; }
.md-typeset table:not([class]) tbody tr:hover { background: var(--co2in-cream); }

/* --- Sidebar navigation ------------------------------------------------- */

.md-nav { font-size: 13px; }
.md-nav__title { color: var(--co2in-ink); font-weight: 500; font-size: 14px; }
.md-nav--secondary .md-nav__list .md-nav__link { font-size: 13px; }
.md-nav__link { color: var(--co2in-ink); }
.md-nav__link:focus,
.md-nav__link:hover { color: var(--co2in-green); }
.md-nav__link--active,
.md-nav__item .md-nav__link--active { color: var(--co2in-green); font-weight: 500; }

.md-nav--secondary .md-nav__title {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--co2in-slate);
  font-weight: 500;
}

/* Section groups carry an icon set per item in the nav via Markdown, so keep
   the group label itself quiet and black. */
.md-nav__item--section > .md-nav__link { color: var(--co2in-ink); font-weight: 500; }

/* --- Search ------------------------------------------------------------- */

.md-search__form {
  border-radius: 100px;
  background: var(--co2in-cream);
  border: 1px solid var(--co2in-rule);
}
.md-search__form:hover { background: var(--co2in-cream); border-color: var(--co2in-mint); }
.md-search__input { color: var(--co2in-ink); }
.md-search__input::placeholder { color: var(--co2in-slate); }
.md-search__icon { color: var(--co2in-green); }
[data-md-toggle="search"]:checked ~ .md-header .md-search__form { border-color: var(--co2in-green); }

/* --- Callouts ----------------------------------------------------------- */

/* `:not(.md-search-result__more)` matters. Material's "N more on this page"
   in the search results is a <details>, so these content-callout rules were
   landing on it -- 18px/22px padding, a 20px margin and summary padding took
   a 34px row up to 77px, which is the empty space around it in the hero
   results panel. */

.md-typeset .admonition,
.md-typeset details:not(.md-search-result__more) {
  border: none;
  border-radius: 16px;
  box-shadow: none;
  font-size: 14px;
  line-height: 1.7;
  padding: 18px 22px;
  margin: 20px 0;
  max-width: 64ch;
}
.md-typeset .admonition > .admonition-title,
.md-typeset details:not(.md-search-result__more) > summary {
  font-weight: 500;
  font-size: 14px;
  padding: 14px 0 4px 28px;
  background: transparent;
  border: none;
  margin: 0;
}
.md-typeset .admonition > .admonition-title::before,
.md-typeset details:not(.md-search-result__more) > summary::before { left: 0; top: 15px; width: 18px; height: 18px; }
.md-typeset .admonition > .admonition-title::after,
.md-typeset details:not(.md-search-result__more) > summary::after { display: none; }
.md-typeset .admonition > p { margin: 0; max-width: none; }

/* Every callout in the content is authored `!!! info ""` -- all 21 of them,
   deliberately titleless so the box carries the answer rather than a heading.
   Python-Markdown emits no .admonition-title for an empty title, so the icon
   rules above have never rendered once: every callout on the site is a plain
   tinted rectangle. design/reference.html:117 shows the approved callout with
   the icon present.

   Hang it off the box instead, using Material's own mask mechanism so the
   icon set stays the theme's. Where :has() is unsupported the rule is dropped
   whole and the result is today's appearance, which is a safe floor. */
.md-typeset .admonition:not(:has(> .admonition-title)) { padding-left: 52px; }
.md-typeset .admonition:not(:has(> .admonition-title))::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 20px;
  width: 19px;
  height: 19px;
  background-color: var(--co2in-green);
  -webkit-mask-image: var(--md-admonition-icon--info);
          mask-image: var(--md-admonition-icon--info);
  -webkit-mask-position: center;
          mask-position: center;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-size: contain;
          mask-size: contain;
}
/* The box is not positioned by default, so the absolute icon would escape it. */
.md-typeset .admonition { position: relative; }

.md-typeset .admonition.note,
.md-typeset .admonition.info,
.md-typeset .admonition.tip {
  background: var(--co2in-mint-pale);
  color: var(--co2in-ink);
}
.md-typeset .note > .admonition-title,
.md-typeset .info > .admonition-title,
.md-typeset .tip > .admonition-title {
  background: transparent;
  color: var(--co2in-ink);
}
.md-typeset .note > .admonition-title::before,
.md-typeset .info > .admonition-title::before,
.md-typeset .tip > .admonition-title::before { background-color: var(--co2in-green); }

.md-typeset .admonition.warning {
  background: var(--co2in-warn-bg);
  color: var(--co2in-ink);
}
.md-typeset .warning > .admonition-title { background: transparent; color: var(--co2in-ink); }
.md-typeset .warning > .admonition-title::before { background-color: var(--co2in-warn-ink); }

/* --- Landing page card grid --------------------------------------------- */

.md-typeset .grid.cards > ul > li {
  border: 1px solid var(--co2in-rule);
  border-radius: 20px;
  padding: 24px;
  background: var(--co2in-card);
  box-shadow: none;
  transition: border-color 0.15s;
}
.md-typeset .grid.cards > ul > li:hover { border-color: var(--co2in-green); }
/* Card titles link to the section overview. Keep them black like every other
   heading -- the card is the affordance, not the link colour. */
.md-typeset .grid.cards > ul > li > p:first-child a,
.md-typeset .grid.cards > ul > li h3 a {
  color: var(--co2in-ink);
  text-decoration: none;
  font-weight: 800;
}
.md-typeset .grid.cards > ul > li:hover > p:first-child a { color: var(--co2in-green); }
.md-typeset .grid.cards > ul > li > hr { display: none; }

/* The whole card is the link, as design/reference.html:71 has it -- there
   .card IS the anchor. Here it cannot be: the card already contains its own
   deep links, and wrapping it in an anchor would nest anchors, which is
   invalid and which browsers silently reparent.

   So the title's existing anchor is stretched across the card instead, and
   the deep links are lifted above it. The border already reacted on hover,
   promising the whole card was clickable; only the title actually was. */
.md-typeset .grid.cards > ul > li { position: relative; }
.md-typeset .grid.cards > ul > li > p:first-child a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.md-typeset .grid.cards > ul > li > p:last-child a {
  position: relative;
  z-index: 1;
}
/* The stretched anchor covers the card, so its own focus ring would be a box
   round the whole thing. Put the ring on the card instead.

   Both halves live inside @supports. Suppressing the anchor's own outline
   unconditionally would leave keyboard users with NO focus indicator at all
   wherever :has() is unsupported -- worse than the ring being the wrong
   shape. Without :has() the anchor keeps its own ring and the card is simply
   outlined by the anchor rather than by the li. */
@supports selector(li:has(> p a:focus-visible)) {
  .md-typeset .grid.cards > ul > li > p:first-child a:focus-visible { outline: none; }
  .md-typeset .grid.cards > ul > li:has(> p:first-child a:focus-visible) {
    outline: 2px solid var(--co2in-green);
    outline-offset: 2px;
  }
}

/* The approved card leads with a 44px pale-mint badge (reference.html:74);
   this only recoloured the raw Material icon. */
/* Badge and title share one row, centred on each other.

   The icon and the title live in one <p>. Left inline, the 44px badge sits
   inside the text line, inflates it to 60px and drops the title onto the
   baseline underneath -- an icon stranded above its own heading with a band
   of dead space around it. Making the badge block-level fixed the stranding
   but kept them on separate lines.

   Making the PARAGRAPH the flex row is what actually puts them side by side
   and vertically centred, with the badge refusing to shrink. */
.md-typeset .grid.cards > ul > li > p:first-child {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
}
.md-typeset .grid.cards > ul > li > p:first-child .twemoji {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: none;
  margin: 0;
  border-radius: 50%;
  background: var(--co2in-mint-pale);
}
.md-typeset .grid.cards > ul > li > p:first-child .twemoji svg {
  width: 22px;
  height: 22px;
}
.md-typeset .grid.cards .twemoji,
.md-typeset .grid.cards svg { color: var(--co2in-green); }

/* Hero block on the landing page. */
.co2in-hero {
  background: var(--co2in-mint-pale);
  border-radius: 28px;
  padding: 56px 32px 48px;
  text-align: center;
  margin: 32px 0;
}
.md-typeset .co2in-hero h1 {
  font-size: clamp(28px, 3.2vw, 38px);
  margin: 0 0 10px;
  border-top: none;
  padding-top: 0;
}
.md-typeset .co2in-hero p {
  color: var(--co2in-ink);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 auto 28px;
  max-width: 46ch;
}
/* Markdown wraps these links in a <p>, so the flex container's only child was
   that paragraph -- and `.md-typeset p { max-width: 64ch }`, the reading
   measure for body copy, capped it at ~480px. The chips total 498px, so they
   wrapped for want of 18px. The paragraph itself has to be the flex row. */
.co2in-hero__links { display: contents; }
.md-typeset .co2in-hero__links > p {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: center;
  max-width: none;
  /* 22px is design/reference.html:61's `.chips{margin-top:22px}`. This was a
     flat margin: 0, so the shortcuts sat hard against the search field with a
     measured gap of exactly zero -- the two read as one control. */
  margin: 22px 0 0;
}

/* Chips carry no arrow -- the arrow is what was making three of them too wide
   to sit on one row. */
.md-typeset a.co2in-chip {
  display: inline-flex;
  align-items: center;
  padding: 7.5px 18px;
  border: 1px solid var(--co2in-green);
  border-radius: 100px;
  background: var(--co2in-green);
  color: var(--co2in-cream);
  font-size: 13px;
  line-height: 21px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color 0.15s, background-color 0.15s, border-color 0.15s, transform 0.15s;
}
.md-typeset a.co2in-chip:hover {
  background: transparent;
  color: var(--co2in-green);
  text-decoration: none;
}
.md-typeset a.co2in-chip::after { content: none; }
.md-typeset .co2in-hero__links a { text-decoration: none; }

/* Dark contact band, the site's `type-dark` pattern: forest ground with
   cream and mint on top. */
.co2in-band {
  background: var(--co2in-forest);
  border-radius: 28px;
  padding: 40px;
  margin: 40px 0 0;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.md-typeset .co2in-band h2 {
  color: var(--co2in-cream);
  font-size: 22px;
  border-top: none;
  padding-top: 0;
  margin: 0 0 6px;
}
.md-typeset .co2in-band p { color: var(--co2in-mint); font-size: 15px; line-height: 1.6; margin: 0; max-width: none; }
.co2in-band__body { flex: 1 1 260px; }
.md-typeset .co2in-band a.co2in-btn { margin-left: auto; }
/* On forest, the web's .btn-on-dark: bright green with a forest label. */
.md-typeset .co2in-band a.co2in-btn { background: #3ad694; border-color: #3ad694; color: #054938; }
.md-typeset .co2in-band a.co2in-btn:hover { background: #5fe3a9; border-color: #5fe3a9; color: #054938; }
.md-typeset .co2in-band a:not(.co2in-btn) { color: var(--co2in-mint); }

/* --- Footer ------------------------------------------------------------- */
/* The footer of the main web (co2in-astro-web Footer.astro): a forest band with
   three link columns over a bottom line holding the company identity, Terms and
   Privacy. Material's prev/next nav and copyright line are replaced wholesale in
   overrides/partials/footer.html. Colours: links mint-on-forest, titles and the
   bottom line the softer mint, as on the web. */

.co2in-footer { background: var(--co2in-forest); color: var(--co2in-cream); }
/* The web's container: 1282px with 24px gutters. */
.co2in-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 48px 24px 28px;
  max-width: 1282px;
  margin: 0 auto;
}
.co2in-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 48px;
}
.co2in-footer__col { display: flex; flex-direction: column; }
.co2in-footer__head {
  display: block;
  padding-bottom: 6px;
  font-family: var(--co2in-heading-font, inherit);
  font-size: 17px;
  font-weight: 800;
  line-height: 24px;
  color: var(--co2in-mint);
}
.co2in-footer .co2in-footer__head a { font-size: inherit; font-weight: inherit; color: var(--co2in-mint); }
.co2in-footer a {
  color: var(--co2in-cream);
  font-size: 16px;
  line-height: 24px;
  text-decoration: none;
}
.co2in-footer a:hover { text-decoration: underline; color: var(--co2in-cream); }
/* The padding on the link, as the web's, so its focus ring is 36px high. */
.co2in-footer__row a { display: inline-block; padding: 6px 0; }
.co2in-footer__dot { margin: 0 8px; color: var(--co2in-cream); }
/* "(EN)" on a link whose document is not in the reader's language.
   Quiet by design: it is a caveat, not a label. */
.co2in-footer__untranslated {
  margin-left: 6px;
  font-size: 12px;
  opacity: 0.75;
}
.co2in-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 24px;
  padding-top: 10px;
  border-top: 1px solid color-mix(in srgb, var(--co2in-mint) 30%, transparent);
  font-size: 14px;
  line-height: 24px;
  color: var(--co2in-mint);
}
.co2in-footer__identity { margin: 0; padding: 10px 0; }
.co2in-footer__identity span { white-space: nowrap; } /* a phone wraps between items only, as the web's */
.co2in-footer__legal { display: flex; flex-wrap: wrap; column-gap: 24px; margin: 0; padding: 0; list-style: none; }
.co2in-footer__legal li { margin: 0; }
.co2in-footer .co2in-footer__legal a { display: inline-block; padding: 10px 0; font-size: 14px; color: var(--co2in-mint); }

/* The web footer's own edge (Footer.astro: columns from 768px). */
@media (max-width: 767.98px) {
  .co2in-footer__inner { gap: 24px; padding: 32px 24px calc(24px + env(safe-area-inset-bottom)); }
  .co2in-footer__cols { grid-template-columns: 1fr; row-gap: 24px; }
  /* Every target 44px high on phones, as on the web. */
  .co2in-footer__head { display: flex; align-items: center; min-height: 44px; padding-bottom: 0; }
  .co2in-footer__row a { padding: 10px 0; }
  .co2in-footer__bottom { padding-top: 8px; }
}

/* --- Focus -------------------------------------------------------------- */

/* design/reference.html:144 carries `a:focus-visible, .card:focus-visible`.
   None of it survived into this stylesheet: there was no :focus-visible rule
   anywhere, so keyboard users navigating the header, the language menu, the
   chips, the footer or previous/next got whatever the browser happened to
   draw over a custom background -- on the forest footer, effectively nothing.

   One treatment everywhere rather than per-component variants, so the
   affordance is recognisable wherever it appears. :focus-visible rather than
   :focus keeps it off mouse clicks. */
.co2in-header__link:focus-visible,
.co2in-btn:focus-visible,
.md-typeset a.co2in-chip:focus-visible,
.co2in-footer a:focus-visible,
.co2in-pagenav__link:focus-visible,
.md-header label:focus-visible,
.md-nav__link:focus-visible,
.md-search__input:focus-visible,
.md-header .md-logo:focus-visible,
.co2in-menu-toggle:focus-visible,
.co2in-panel a:focus-visible,
.co2in-panel button:focus-visible {
  outline: 3px solid var(--co2in-focus);
  outline-offset: 3px;
}
/* The footer sits on forest: the web's ring there (focusRingOnDark). */
.co2in-footer a:focus-visible { outline-color: var(--co2in-focus-forest); }
/* Material fades header buttons on hover and focus; the web's logo does not. */
.md-header .md-logo:is(:hover, :focus) { opacity: 1; }
/* Search: the ring goes round the pill, not round the square input inside it,
   which cut across the pill's ends and covered the magnifier. */
@supports selector(form:has(input:focus-visible)) {
  .md-search__input:focus-visible { outline: none; }
  .md-search__form:has(.md-search__input:focus-visible) { outline: 2px solid var(--co2in-green); outline-offset: 2px; }
}

/* --- Motion ------------------------------------------------------------- */

/* Touch has no hover, so without this a tap gives no feedback at all until
   the next page paints. */
.co2in-btn:active,
.md-typeset a.co2in-chip:active,
.co2in-pagenav__link:active { transform: scale(0.985); }

@media (prefers-reduced-motion: reduce) {
  .co2in-btn { transition: none; }
  /* Added with the pressed states above -- the block reached two controls. */
  .md-typeset a.co2in-chip,
  .co2in-pagenav__link { transition: none; }
  .co2in-btn:active,
  .md-typeset a.co2in-chip:active,
  .co2in-pagenav__link:active { transform: none; }
}

/* --- Late corrections --------------------------------------------------- */

/* External-link glyph on the co2in.com link. */
.co2in-header__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.co2in-header__ext {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Right-hand rail: design is "On this page", 11px uppercase label over a
   hairline rule, with a 2px green bar marking the active item. */
.md-sidebar--secondary .md-nav__list { border-left: 1px solid var(--co2in-rule); }
.md-sidebar--secondary .md-nav__item { margin-left: 0; }
.md-sidebar--secondary .md-nav__link {
  padding-left: 14px;
  line-height: 1.45;
  color: var(--co2in-slate);
}
.md-sidebar--secondary .md-nav__link--active,
.md-sidebar--secondary .md-nav__link--passed:hover {
  color: var(--co2in-green);
  box-shadow: inset 2px 0 0 var(--co2in-green);
}

/* Left rail: design is a 252px column with a divider.

   DESKTOP ONLY. Below 76.25em this same element is the slide-in drawer, and
   Material parks it closed at left: -12.1rem -- exactly -242px, its own
   width. Widening it to 252px without moving that offset left 10px of cream
   drawer permanently visible down the left edge of every article page on a
   phone. Scoped to the width where it is actually a rail. */
@media (min-width: 76.25em) {
  .md-sidebar--primary { width: 252px; }
}
.md-sidebar--primary .md-sidebar__scrollwrap { border-right: 1px solid var(--co2in-rule); }
.md-sidebar--primary .md-nav__list { padding-right: 12px; }


/* --- Search ------------------------------------------------------------- */

/* The design puts search in the hero, not the header, so Material's header
   trigger is hidden -- but ONLY where the hero actually has it.

   This rule was unscoped, and hid the trigger on every page at every width,
   contradicting the comment four lines below it which states the header
   search is untouched everywhere else. On a phone reading an answer there was
   then no way to search at all without going back to the landing page: the
   label rendered at 0x0.

   Two conditions, both necessary. .co2in-header--home because only the
   landing page has a hero, and min-width 60em because hero-search.js only
   moves the component above that -- below it the component stays in the
   header and its trigger is the only way in. The class is rendered
   server-side by header.html, so no JavaScript and no flash. */
@media (min-width: 60em) {
  .co2in-header--home label[for="__search"] { display: none; }
}

/* Landing page: Material's search component is MOVED into the hero by
   hero-search.js, so the header genuinely has no search on this page --
   nothing hidden, nothing to reveal. Everywhere else the header search is
   untouched.

   Material shows its results panel through selectors rooted at .md-header,
   which no longer match once the component has moved, so the panel is shown
   here instead. */

.co2in-search-slot { max-width: 560px; margin: 0 auto; }

/* Stand-in for the hero search below 60em, injected by hero-search.js.
   The real component goes back to the header there, and without this the
   landing page -- whose entire job is "search the FAQ" -- rendered a blank
   gap where its search field belongs. Same pill, opens Material's sheet. */
.co2in-search-proxy {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  background: var(--co2in-card);
  border: 1.5px solid var(--co2in-mint);
  border-radius: 100px;
  color: var(--co2in-slate);
  font-size: 16px;
  text-align: left;
  cursor: pointer;
}
.co2in-search-proxy svg {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: var(--co2in-green);
  stroke-width: 1.8;
  stroke-linecap: round;
}
.co2in-search-proxy:focus-visible {
  outline: 2px solid var(--co2in-green);
  outline-offset: 2px;
}

.co2in-has-hero-search .md-header .md-search { display: none; }

.co2in-hero .md-search {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
}
.co2in-hero .md-search__overlay { display: none; }
.co2in-hero .md-search__inner {
  /* Material floats this on desktop, so it contributes no height and
     .md-search collapses to 8px -- which put the results panel on top of the
     field instead of under it. Back into normal flow. */
  float: none;
  position: static;
  width: 100%;
  height: auto;
  margin: 0;
  transform: none;
  opacity: 1;
  pointer-events: auto;
}
.co2in-hero .md-search__form {
  display: flex;
  align-items: center;
  height: auto;
  padding: 4px 8px 4px 20px;
  background: var(--co2in-card);
  border: 1.5px solid var(--co2in-mint);
  border-radius: 100px;
  box-shadow: none;
}
.co2in-hero .md-search__form:hover { background: var(--co2in-card); border-color: var(--co2in-green); }
.co2in-hero .md-search__input {
  height: 46px;
  padding: 0 8px;
  /* 16px, not 15px. iOS Safari zooms the whole page when focus lands on an
     input below 16px, and the reader then has to pinch back out to read the
     results. A functional defect rather than a preference. */
  font-size: 16px;
  color: var(--co2in-ink);
  text-align: left;
}
.co2in-hero .md-search__input::placeholder { color: var(--co2in-slate); }
/* Enter pressed before Material's index finished building. Without a visible
   state the key is indistinguishable from a dead one. Set by hero-search.js. */
.co2in-hero .md-search[data-co2in-pending] .md-search__form {
  border-color: var(--co2in-green);
}
.co2in-hero .md-search[data-co2in-pending] .md-search__icon { opacity: 0.45; }
@media (prefers-reduced-motion: reduce) {
  .co2in-hero .md-search[data-co2in-pending] .md-search__icon { opacity: 1; }
}
.co2in-hero .md-search__icon[for="__search"] {
  position: static;
  width: 22px;
  height: 22px;
  margin: 0;
  color: var(--co2in-green);
  opacity: 1;
}
.co2in-hero .md-search__options { right: 12px; }

/* Results, anchored under the field rather than under the header.

   Material reveals the panel AND the result list through selectors rooted at
   .md-header -- `[data-md-toggle=search]:checked ~ .md-header .md-search__output`
   and friends. None of those match once the component has moved, so the panel
   was rendering at opacity 0 with `display: none` on the list: present in the
   DOM, invisible on screen. Both are set explicitly here.

   The inner elements are also sized for the header dropdown (a fixed ~688px),
   so they are pinned to the field width instead. */
.co2in-hero .md-search__output {
  display: none;
  opacity: 1;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 6;
  max-height: 60vh;
  border: 1px solid var(--co2in-rule);
  border-radius: 16px;
  background: var(--co2in-card);
  box-shadow: 0 8px 24px rgba(5, 73, 56, 0.10);
  overflow: hidden;
  text-align: left;
}
.co2in-hero .md-search:focus-within .md-search__output,
.co2in-hero .md-search__output[data-co2in-open] { display: block; }

.co2in-hero .md-search__scrollwrap {
  width: 100%;
  max-height: 60vh;
  margin: 0;
  overflow-y: auto;
}
.co2in-hero .md-search-result { width: 100%; }
.co2in-hero .md-search-result__list { display: block; }
.co2in-hero .md-search-result__meta {
  padding: 12px 20px;
  font-size: 13px;
  color: var(--co2in-slate);
  background: var(--co2in-mint-pale);
}

/* The panel sits inside .md-typeset AND inside .co2in-hero, so the article
   and hero type rules cascade into it. Material renders a result title as
   <h1> and each section hit as <h2>, so titles were picking up the hero's
   clamp(28px,3.2vw,38px) and sitting beside 12.8px section headings -- while
   the question-heading rules added rules and padding on top.

   These used to transcribe Material's own search-result scale, measured off
   the header search so the two matched. That scale is authored in rem against
   Material's 20px root, so .64rem landed on 12.8px and .5rem on 10px -- and
   Material raises that root to 22px at 1600px and 24px at 2000px, so the
   transcription was only ever correct on a mid-size desktop. They are on the
   CO2IN ladder now: 13px section headings, 16px titles. */
.md-typeset .co2in-hero .md-search__output h1 {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: normal;
  margin: 11px 0;
  padding: 0;
  border: none;
  color: var(--co2in-ink);
}
.md-typeset .co2in-hero .md-search__output h2 {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.6;
  letter-spacing: normal;
  margin: 0 0 6px;
  padding: 0;
  border: none;
  color: inherit;
}
.md-typeset .co2in-hero .md-search__output :is(h3, h4) {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.6;
  margin: 0 0 6px;
  padding: 0;
  border: none;
}
.md-typeset .co2in-hero .md-search__output p {
  font-size: 13px;
  line-height: 1.6;
  max-width: none;
  margin: 0;
}

/* "N more on this page" is a <details>, and the panel sits inside
   .md-typeset -- so MATERIAL'S OWN content rules for details/summary apply to
   it here in a way they never do in the header. Reset to a 34px row with no
   padding and no margin. The summary was 10px, transcribed from Material's
   .5rem; a 10px control is too small to read on a desktop, let alone a
   phone. */
.md-typeset .co2in-hero .md-search__output details.md-search-result__more {
  margin: 0;
  padding: 0;
  font-size: 13px;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
}
.md-typeset .co2in-hero .md-search__output details.md-search-result__more > summary {
  margin: 0;
  padding: 0;
  font-size: 13px;
  background: transparent;
  border: none;
  border-radius: 0;
  list-style: none;
}
.md-typeset .co2in-hero .md-search__output details.md-search-result__more > summary::before,
.md-typeset .co2in-hero .md-search__output details.md-search-result__more > summary::after {
  display: none;
}
/* The label inside the summary is a <div>, so it inherits .md-typeset's line
   height rather than the summary's -- which is where the extra row height
   came from. Sized explicitly. */
.md-typeset .co2in-hero .md-search__output details.md-search-result__more > summary > div {
  font-size: 13px;
  line-height: 1.4;
  padding: 10px 16px 10px 44px;
}
.co2in-hero .md-search-result__link { padding: 0; }
.co2in-hero .md-search-result__link:hover { background: var(--co2in-mint-pale); }
.md-typeset .co2in-hero .md-search__output p { max-width: none; margin: 0; }

/* The magnifier is a <label for="__search"> that Material gives
   pointer-events:none, and an inline-suggestion layer sits over the field, so
   neither reaches the input. Clicking anywhere on the pill focuses it. */
.co2in-hero .md-search__form { cursor: text; }
.co2in-hero .md-search__icon[for="__search"] { cursor: text; }

/* --- Previous / next ---------------------------------------------------- */
/* Material's own footer nav, restyled. A reader who finishes a page should
   have somewhere obvious to go rather than reaching for the sidebar. */

.co2in-pagenav {
  display: flex;
  gap: 16px;
  margin: 44px 0 16px;
  padding-top: 28px;
  border-top: 1px solid var(--co2in-rule);
}
.co2in-pagenav__link {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1 1 0;
  min-width: 0;
  padding: 14px 20px;
  border: 1px solid var(--co2in-rule);
  border-radius: 16px;
  text-decoration: none;
  transition: border-color 0.15s;
}
.co2in-pagenav__link:hover { border-color: var(--co2in-green); }
.co2in-pagenav__link--next { text-align: right; }
.co2in-pagenav__link--next:only-child { margin-left: auto; }
.co2in-pagenav__direction {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--co2in-slate);
  font-weight: 500;
}
.co2in-pagenav__title {
  font-size: 15px;
  font-weight: 500;
  color: var(--co2in-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.co2in-pagenav__link:hover .co2in-pagenav__title { color: var(--co2in-green); }

/* Material hides the header logo below 76.25em, on the assumption that the
   drawer carries the brand instead. This site has no drawer on the landing
   page at all, so that left the header with no CO2IN mark anywhere.

   The whole sub-desktop range, not just phones. Restoring it only below
   44.98em left the wordmark missing from every window between 720px and
   1219px -- tablets and small laptops, where there is plenty of room for it. */
@media (max-width: 76.234375em) {
  .md-header .md-logo { display: flex; align-items: center; }
}

/* --- Drawer: accordion, not drill-down ---------------------------------- */

/* Material's mobile drawer is tiered. Each sub-nav is
   `position:absolute; height:100%` layered over the drawer, and tapping a
   section slides it in with a back arrow at the top. Opening the drawer from
   an article lands you INSIDE that article's section, so the first thing you
   see is a partial list with no indication that the others exist, and getting
   anywhere else means going back first.

   Flattened to one level: sections expand in place and the whole map is
   visible at once. Nothing here overrides a template, so no extra Material
   partial gets pinned -- it is the positioning that makes the drill-down, and
   taking that away is enough.

   Scoped to :not(.md-nav--secondary) so the table of contents, which Material
   already renders statically inside this same drawer, is left alone. */
@media (max-width: 76.234375em) {
  .md-nav--primary .md-nav:not(.md-nav--secondary) {
    position: static;
    height: auto;
    z-index: auto;
    opacity: 1;
    transform: none;
    transition: none;
    display: none;
  }
  .md-nav--primary .md-nav__toggle:checked ~ .md-nav:not(.md-nav--secondary) {
    display: block;
  }
  /* Each sub-nav carries its own title bar, which was the drill-down's back
     button. Inline it is a duplicate of the row you just tapped. */
  .md-nav--primary .md-nav:not(.md-nav--secondary) > .md-nav__title { display: none; }

  /* Indent the expanded children so the level reads at a glance, and give the
     section rows enough height to be tapped. */
  .md-nav--primary .md-nav:not(.md-nav--secondary) .md-nav__link { padding-left: 28px; }
  .md-nav--primary .md-nav__link { min-height: 44px; display: flex; align-items: center; }

  /* The chevron points right when closed; turn it down when open, so the row
     says which state it is in. Material rotates 90deg for its own desktop
     accordion, which is the wrong axis once the arrow is inline. */
  .md-nav__item--nested .md-nav__toggle:checked ~ .md-nav__link .md-nav__icon::after {
    transform: rotate(90deg);
  }
}

/* --- Compact chrome ----------------------------------------------------- */

/* Below 959.75px the header action row is dropped. The breakpoint is measured,
   not chosen by feel. The row is 380px wide in Czech, and the full header
   needs logo 76 + margin 10 + title + row + padding 64:

     en  "Help & FAQ"      99px title  ->  629px
     de  "Hilfe & FAQ"    100px title  ->  630px
     cs  "Nápověda a FAQ" 145px title  ->  675px   <- binding

   Czech is the constraint; English never is. Material's next edge up is
   719.75px, which clears 675px by only 45px -- one reworded label and it
   overflows again. 959.75px clears it by 285px and is also where Material
   switches its search from a dropdown to the full-screen sheet, so the header
   and the search change at one boundary rather than two.

   The three utilities are not lost: the footer carries co2in.com, Client
   Portal and the language switcher in every language. Nor is this a
   regression in reach -- at 393px today the portal button starts at x=363 and
   is almost entirely off-screen. */
@media (max-width: 59.984375em) {
  /* One order for the whole compact band: title, utilities, search, drawer.
     Material emits the drawer toggle second, right after the logo, which puts
     a hamburger between the wordmark and the title. */
  .md-header__title { order: 1; }
  .md-header label[for="__search"].md-header__button { order: 3; }
  .md-header label[for="__drawer"].md-header__button { order: 4; margin-left: 4px; }

  /* SIZING follows touch, LAYOUT follows width. Everything in this block is
     about the finger: a tablet at 768px is a touch device just as much as a
     phone is, and Material's header controls default to 40x40 here. The
     phone block further down is where things become full-width and stack,
     which is a question about space rather than about pointers.

     flex: none matters as much as the size -- these are flex children, so a
     long title squeezed them to 42px on the German pages.

     SCOPED TO .md-header__button, NOT to every label in the header. Material's
     full-screen search scrim is also a <label> inside .md-header
     (.md-search__overlay, for="__search"), and a blanket rule clamped it to
     44x44 -- so opening search on a phone produced no panel and no input at
     all. Search was completely dead on mobile until this was narrowed. */
  .md-header label.md-header__button { width: 44px; height: 44px; flex: none; }
  .md-typeset a.co2in-chip { min-height: 44px; }
  .md-typeset .co2in-band a.co2in-btn { min-height: 44px; }
  .co2in-pagenav__link { min-height: 44px; }

  /* Card deep links stay INLINE. Giving them a 44px min-height turned each
     wrapped line into a 44px row, so a card whose links run to two lines --
     "What is CO2IN / How it reduces emissions / Certification" -- spent 88px
     on 52px of text. Vertical padding on an inline element grows the tap area
     without growing the line box, which is the whole point of using inline
     here rather than a flex row. */
  .md-typeset .grid.cards > ul > li p:last-child a {
    display: inline;
    padding: 9px 0;
  }
}

/* --- Tablet ------------------------------------------------------------- */

/* design/reference.html:145 specifies this block and it was never carried
   across, so the hero kept its full desktop padding all the way down. */
@media (max-width: 900px) {
  .co2in-hero { margin: 16px; padding: 36px 20px; }
  .co2in-band { padding-left: 18px; padding-right: 18px; }
}

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

@media (max-width: 44.984375em) {
  .co2in-pagenav { flex-direction: column; }
  /* flex: 1 1 0 on the link is there to give the two cards equal WIDTH in the
     desktop row. Turning the container into a column re-points that basis at
     the vertical axis, so each card collapsed to its 44px minimum and squeezed
     the page title to height 0 -- the cards rendered as bare "PREVIOUS" and
     "NEXT" labels with no destination on them. Size to content here. */
  .co2in-pagenav__link { flex: 0 0 auto; }
  .co2in-pagenav__link--next { text-align: left; }
  /* 44px margin plus 28px padding put 72px of nothing between the last answer
     and the first card. The rule already separates them. */
  .co2in-pagenav { margin: 28px 0 8px; padding-top: 20px; }
  /* In a column flexbox this cross-axis auto margin stops the card
     stretching and floats a solitary Next right instead of filling the row. */
  .co2in-pagenav__link--next:only-child { margin-left: 0; }
  .co2in-pagenav__link { padding: 14px 16px; }

  /* Header: the web's 24px gutter, kept clear of a notch. */
  .md-header__inner.md-grid {
    padding-left: max(24px, env(safe-area-inset-left));
    padding-right: max(24px, env(safe-area-inset-right));
  }

  /* The title is flex: 1 1 auto with min-width: auto, so it refuses to shrink
     below its text and pushes past the viewport instead of ellipsing. This is
     what the ellipsis was always for. */
  .md-header__title { min-width: 0; overflow: hidden; }
  .md-header__title .md-header__ellipsis,
  .md-header__title .md-header__topic { min-width: 0; overflow: hidden; }

  /* Hero. */
  .co2in-hero { margin: 16px; padding: 30px 20px; border-radius: 22px; }
  .md-typeset .co2in-hero p { margin-bottom: 24px; }
  /* Three differently-sized centred pills become three equal rows. */
  .md-typeset .co2in-hero__links > p { flex-direction: column; align-items: stretch; gap: 8px; }
  .md-typeset a.co2in-chip { min-height: 48px; justify-content: center; }

  /* Cards, band. */
  .md-typeset .grid.cards > ul > li { padding: 20px; border-radius: 16px; }
  .co2in-band { padding: 28px 24px; }
  .md-typeset .co2in-band a.co2in-btn {
    display: flex;
    width: 100%;
    min-height: 48px;
    margin-left: 0;
    justify-content: center;
  }
}

/* --- Dark mode ---------------------------------------------------------- */

/* Operator decision 2026-10-26: dark mode on every CO2IN site, following the
   visitor's system setting only, no toggle. mkdocs.yml declares the two
   media-matched palettes; Material then stamps data-md-color-scheme="slate" on
   <body> when the system is dark, and everything below keys off that.

   The values are the shared dark roles of co2in-astro-web src/styles/tokens.css
   (--dark-*), the ones the footprint calculator and Offset my trip use:
     surface #0c1813   raised #12221b   text #e9f1ec   muted #a9bcb1
     link #6fdaa5      line #6f8f7f     ink-brand #a0e8c0
     action #3ad694 with #054938 on it (buttonOnDark / onButtonOnDark)
   and the header hairline #263b31 of the calculators' dark header.

   Most of this file reads the --co2in-* palette, so dark mode re-points those
   names rather than restating every rule. Light mode never reaches any of this
   (the block is inert unless the scheme is slate), so it renders as before.

   Derived Material variables are restated here, not inherited: the light
   block computes them on :root, where the light palette was still in force. */
/* [data-md-color-primary][data-md-color-accent] lifts this above Material's own
   slate+indigo rules (e.g. the blue --md-typeset-a-color), which would
   otherwise win on specificity. */
[data-md-color-scheme="slate"][data-md-color-primary][data-md-color-accent] {
  --co2in-cream:     #0c1813; /* page surface */
  --co2in-card:      #12221b; /* raised: cards, panels, results */
  --co2in-mint-pale: #12221b; /* raised: hero, callouts, table heads, code */
  --co2in-ink:       #e9f1ec; /* text */
  --co2in-slate:     #a9bcb1; /* muted text */
  --co2in-rule:      #263b31; /* hairlines */
  --co2in-green:     #6fdaa5; /* link green: text, icons, active, focus */
  --co2in-web-green: #6fdaa5; /* the web's dark link green (portal) */
  --co2in-web-green-hover: #5fe3a9; /* the web's dark link hover (--dark-action-hover) */
  --co2in-ink-brand:    #a0e8c0;
  --co2in-web-rule:     color-mix(in srgb, #a0e8c0 12%, #0c1813);
  --co2in-panel-shadow: #000;
  --co2in-warn-bg:   #3a2a1f; /* the calculators' notice, dark */
  --co2in-warn-ink:  #ffc9a1; /* peach icon on it */
  --co2in-line:      #6f8f7f; /* control borders, 3:1 */
  --co2in-action:    #3ad694; /* filled button */
  --co2in-on-action: #054938;
  --co2in-action-hover: #5fe3a9; /* the web's buttonOnDarkHover */
  --co2in-focus:        #6fdaa5; /* the web's dark ring (--dark-link) */
  --co2in-focus-forest: #6fdaa5;

  --md-default-bg-color:          var(--co2in-cream);
  --md-default-bg-color--light:   rgba(12, 24, 19, 0.7);
  --md-default-bg-color--lighter: rgba(12, 24, 19, 0.3);
  --md-default-bg-color--lightest: rgba(12, 24, 19, 0.12);
  --md-default-fg-color:          var(--co2in-ink);
  --md-default-fg-color--light:   var(--co2in-slate);
  --md-default-fg-color--lighter: color-mix(in srgb, var(--co2in-slate) 80%, var(--co2in-cream)); /* 80%: the search suggestion needs 4.5:1 */
  --md-default-fg-color--lightest: var(--co2in-rule);

  --md-primary-fg-color:  var(--co2in-cream);
  --md-primary-fg-color--light: var(--co2in-cream);
  --md-primary-fg-color--dark:  var(--co2in-cream);
  --md-primary-bg-color:  var(--co2in-ink);
  --md-primary-bg-color--light: var(--co2in-slate);

  --md-accent-fg-color:   var(--co2in-green);
  --md-accent-fg-color--transparent: rgba(111, 218, 165, 0.1);
  --md-accent-bg-color:   var(--co2in-cream);
  --md-typeset-color:     var(--co2in-ink);
  --md-typeset-a-color:   var(--co2in-green);
  --md-typeset-mark-color: #3d3514;
  --md-typeset-kbd-color: var(--co2in-card);
  --md-typeset-kbd-accent-color: var(--co2in-card);
  --md-typeset-kbd-border-color: var(--co2in-rule);
  --md-typeset-table-color: var(--co2in-rule);
  --md-typeset-table-color--light: rgba(233, 241, 236, 0.04);

  --md-code-bg-color:     var(--co2in-mint-pale);
  --md-code-fg-color:     #a0e8c0; /* ink-brand */
  --md-code-hl-color:     rgba(111, 218, 165, 0.15);
  --md-code-hl-number-color:   #a0e8c0;
  --md-code-hl-special-color:  #ffc9a1;
  --md-code-hl-function-color: #a0e8c0;
  --md-code-hl-constant-color: #a0e8c0;
  --md-code-hl-keyword-color:  #6fdaa5;
  --md-code-hl-string-color:   #ffc9a1;
  --md-code-hl-name-color:     var(--md-code-fg-color);
  --md-code-hl-operator-color: var(--co2in-slate);
  --md-code-hl-punctuation-color: var(--co2in-slate);
  --md-code-hl-comment-color:  var(--co2in-slate);
  --md-code-hl-generic-color:  var(--co2in-slate);
  --md-code-hl-variable-color: var(--co2in-slate);

  --md-admonition-bg-color: var(--co2in-cream);
  --md-admonition-fg-color: var(--co2in-ink);

  /* Footer: forest with light text, as the main web's. */
  --md-footer-bg-color:       var(--co2in-forest);
  --md-footer-bg-color--dark: var(--co2in-forest);
  --md-footer-fg-color:       #fefef9;
  --md-footer-fg-color--light: #a0e8c0;
  --md-footer-fg-color--lighter: rgba(160, 232, 192, 0.7);

  --md-shadow-z1: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.35);
  --md-shadow-z2: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.45);
  --md-shadow-z3: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.55);
}
html:has(> body[data-md-color-scheme="slate"]) { background: #0c1813; color-scheme: dark; }

/* Forest blocks stay forest: their text is the web's cream and mint, not the
   dark page colour the --co2in-cream name now holds. */
[data-md-color-scheme="slate"] .co2in-band { --co2in-cream: #fefef9; }
/* The footer as the web's in dark (tokens.css --surface-forest, --on-forest):
   the raised surface with the dark text; titles and the bottom line keep mint. */
[data-md-color-scheme="slate"] .co2in-footer { --co2in-cream: #e9f1ec; background: #12221b; }

/* Filled buttons: the web's buttonOnDark, as in the calculators. The label is
   forest on #3ad694; the hover keeps the site's inversion (clear fill, green
   text) with the link green. */
[data-md-color-scheme="slate"] :is(.md-header .co2in-btn, .md-typeset a.co2in-btn, .co2in-btn, .md-typeset a.co2in-chip) {
  background: var(--co2in-action);
  border-color: var(--co2in-action);
  color: var(--co2in-on-action);
}
[data-md-color-scheme="slate"] .md-typeset a.co2in-chip:hover {
  background: transparent;
  color: var(--co2in-green);
}
/* Buttons hover as the web's in dark: the lighter fill, label unchanged. */
[data-md-color-scheme="slate"] :is(.md-header .co2in-btn, .md-typeset a.co2in-btn, .co2in-btn):hover {
  background: var(--co2in-action-hover);
  border-color: var(--co2in-action-hover);
  color: var(--co2in-on-action);
}

/* Table heads were forest on mint; here ink-brand on the raised surface. */
[data-md-color-scheme="slate"] .md-typeset table:not([class]) th { color: #a0e8c0; }

/* Control borders carry 3:1 (the calculators' --line); decorative outlines
   stay with the hairline. */
[data-md-color-scheme="slate"] .md-search__form { border-color: var(--co2in-line); }
[data-md-color-scheme="slate"] .md-search__form:hover { border-color: var(--co2in-green); }
[data-md-color-scheme="slate"] .co2in-hero .md-search__form { background: var(--co2in-cream); border-color: var(--co2in-line); }
[data-md-color-scheme="slate"] .co2in-hero .md-search__form:hover { background: var(--co2in-cream); border-color: var(--co2in-green); }
[data-md-color-scheme="slate"] .co2in-panel__sub { border-left-color: var(--co2in-rule); }

/* Floating boxes: black shadow. */
[data-md-color-scheme="slate"] .co2in-hero .md-search__output { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45); }

/* The page's end: one quiet way up after previous/next, as on the calculators' methodology pages (operator
   2026-11-16). The link is the site's inline link (green, underlined, hover drops the underline). */
.md-typeset .co2in-top { margin: 4px 0 24px; font-size: 16px; font-weight: 600; }
.md-typeset .co2in-top a { display: inline-block; padding-block: 10px; } /* a 44 px tap target, as on the calculators */
