/*
  Recycle This website: the shared stylesheet (structure, base layout and the Classic look).
  Every page links to this file, then /assets/theme.css. There are no inline styles and no
  per-page <style> blocks (the only inline values are bin colours from the data, set by the
  site's script as --bin and --on-bin custom properties).

  Switching style is a one-file change: copy one of /assets/themes/*.css over /assets/theme.css.
  A theme file overrides the tokens below and may also restyle components, because the styles
  differ a lot (full-bleed bin-colour blocks versus outlined pastel cards with hard shadows).
*/

/* ==========================================================================
   Tokens: Classic (the app's original theme)
   ========================================================================== */
:root {
  /* Colours */
  --color-bg: #F4F6F3;
  --color-surface: #FFFFFF;
  --color-text: #18211D;
  --color-muted: #56635C;
  --color-line: #D9E1DB;
  --color-accent: #0B6E4F;
  --color-accent-soft: #E1EFE8;
  --color-on-accent: #FFFFFF;
  --color-focus: #0B6E4F;
  --color-link: var(--color-accent);
  --color-link-hover: var(--color-accent);
  --color-rule: var(--color-line);
  --color-outline: var(--color-line);
  --color-button-bg: var(--color-surface);
  --color-button-text: var(--color-accent);
  --color-button-border: var(--color-accent);
  --color-panel-bg: var(--color-accent-soft);
  --color-panel-link: var(--color-link);
  --color-footer-bg: transparent;
  --color-footer-text: var(--color-muted);
  --color-footer-head: var(--color-text);
  --color-footer-link: var(--color-accent);
  --color-header-bg: transparent;
  --color-header-text: var(--color-text);
  --color-field-bg: #FFFFFF;
  --color-field-text: #18211D;
  --color-placeholder: #5E6963;
  --color-dark: #18211D;        /* dark buttons */
  --color-on-dark: #FFFFFF;
  --color-chip-bg: var(--color-surface);
  --color-chip-text: var(--color-text);
  --color-chip-on-bg: var(--color-accent);
  --color-chip-on-text: var(--color-on-accent);
  --color-flag-bg: #F7ECDB;
  --color-flag-text: #18211D;
  --color-notice-bg: #F7ECDB;
  --color-notice-text: #18211D;

  /* Answer colour families ("tones"): background, text on it, and a dot or swatch colour */
  --tone-recycling-bg: #E3ECF7; --tone-recycling-fg: #18211D; --tone-recycling-dot: #1F5FAD;
  --tone-food-bg: #E1EFE8;      --tone-food-fg: #18211D;      --tone-food-dot: #0B6E4F;
  --tone-garden-bg: #F7ECDB;    --tone-garden-fg: #18211D;    --tone-garden-dot: #9A5B00;
  --tone-general-bg: #E8EAE9;   --tone-general-fg: #18211D;   --tone-general-dot: #454B48;
  --tone-dropoff-bg: #ECE6F5;   --tone-dropoff-fg: #18211D;   --tone-dropoff-dot: #62479A;
  --tone-centre-bg: #ECE6F5;    --tone-centre-fg: #18211D;    --tone-centre-dot: #62479A;
  --tone-collect-bg: #F7ECDB;   --tone-collect-fg: #18211D;   --tone-collect-dot: #9A5B00;
  --tone-hazard-bg: #F9E3E1;    --tone-hazard-fg: #18211D;    --tone-hazard-dot: #B3261E;
  --tone-mixed-bg: #FFFFFF;     --tone-mixed-fg: #18211D;     --tone-mixed-dot: #0B6E4F;
  --tone-none-bg: #FFFFFF;      --tone-none-fg: #18211D;      --tone-none-dot: #56635C;

  /* Explore map. --map-style names the Google Maps style in /assets/maps/<name>.json; the site's
     script reads it and the pin tokens when the map opens, so a theme file changes the map too.
     Each pin type has a fill and a letter colour (--map-pin-<type>-on); the letter and the square
     recycling-centre pin mean colour is never the only difference. */
  --map-style: "classic";
  --map-pin-hwrc: #0B6E4F;         --map-pin-hwrc-on: #FFFFFF;
  --map-pin-supermarket: #1F5FAD;  --map-pin-supermarket-on: #FFFFFF;
  --map-pin-retailer: #62479A;     --map-pin-retailer-on: #FFFFFF;
  --map-pin-bring-bank: #9A5B00;   --map-pin-bring-bank-on: #FFFFFF;
  --map-pin-charity-shop: #454B48; --map-pin-charity-shop-on: #FFFFFF;
  --map-pin-pharmacy: #B3261E;     --map-pin-pharmacy-on: #FFFFFF;
  --map-pin-parcel-shop: #FFFFFF;  --map-pin-parcel-shop-on: #18211D;
  --map-pin-other: #E8EAE9;        --map-pin-other-on: #18211D;
  --map-pin-ring: #FFFFFF;         /* the border round each pin */
  --map-pin-ring-width: 2.5;
  --map-pin-edge: #18211D;         /* a thin line outside the ring, or none */
  --map-pin-shadow: soft;          /* soft, hard or none */
  --map-pin-shadow-colour: rgba(0, 0, 0, 0.35);
  --color-map-legend-bg: var(--color-surface);
  --color-map-legend-text: var(--color-text);
  --color-map-info-bg: #FFFFFF;
  --color-map-info-text: #18211D;
  --color-map-dir-bg: #0B6E4F;
  --color-map-dir-text: #FFFFFF;
  --map-frame-border: var(--border-width) solid var(--color-line);
  --map-frame-radius: var(--radius-card);
  --map-frame-shadow: none;
  --map-info-border: 0;
  --map-info-radius: 8px;
  --map-info-shadow: 0 2px 7px 1px rgba(0, 0, 0, 0.3);
  --map-height: 360px;
  --map-height-wide: 560px;

  /* Fonts */
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --weight-body: 400;
  --weight-strong: 600;
  --weight-heading: 700;

  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.25rem;
  --text-xl: 1.75rem;
  --text-2xl: 2.25rem;
  --text-hero: clamp(2rem, 6vw, 3rem);       /* "Which bin does it go in?" */
  --text-display: clamp(1.75rem, 5vw, 2.5rem); /* item verdicts, section titles */
  --text-h2: 1.5rem;
  --text-tile: 1.25rem;

  --leading-body: 1.6;
  --leading-heading: 1.2;
  --tracking-heading: normal;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --gutter: 16px;
  --gutter-wide: 32px;
  --section-pad: var(--space-6);
  --grid-gap: var(--space-4);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-icon: 22%;
  --radius-button: var(--radius-sm);
  --radius-card: var(--radius-md);
  --radius-field: var(--radius-sm);
  --radius-pill: 999px;
  --radius-tile: var(--radius-md);

  /* Borders */
  --border-width: 1px;
  --border-strong: 1px;
  --border-card: 0px;
  --border-chip: 1px;
  --rule-width: 1px;
  --focus-width: 3px;
  --link-underline: 1px;
  --link-offset: 2px;

  /* Shadows */
  --shadow-card: none;
  --shadow-button: none;
  --shadow-button-hover: none;
  --shadow-icon: none;
  --shadow-dialog: 0 12px 40px rgba(0, 0, 0, 0.25);

  /* Widths */
  --width-content: 720px;  /* prose pages (privacy, terms, support) */
  --width-page: 1120px;    /* section content */
  --width-bar: var(--width-content);
  --icon-header: 40px;
  --icon-hero: 96px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #121714;
    --color-surface: #1B221E;
    --color-text: #E6ECE8;
    --color-muted: #A9B5AE;
    --color-line: #2E3833;
    --color-accent: #6FCFA8;
    --color-accent-soft: #1D3A2E;
    --color-on-accent: #0A1A13;
    --color-focus: #6FCFA8;
    --color-field-bg: #1B221E;
    --color-field-text: #E6ECE8;
    --color-placeholder: #A9B5AE;
    --color-dark: #E6ECE8;
    --color-on-dark: #121714;
    --color-flag-bg: #3A2E14;
    --color-flag-text: #E6ECE8;
    --color-notice-bg: #3A2E14;
    --color-notice-text: #E6ECE8;
    --tone-recycling-bg: #1A2A3D; --tone-recycling-fg: #E6ECE8; --tone-recycling-dot: #8AB4F0;
    --tone-food-bg: #1D3A2E;      --tone-food-fg: #E6ECE8;      --tone-food-dot: #6FCFA8;
    --tone-garden-bg: #3A2E14;    --tone-garden-fg: #E6ECE8;    --tone-garden-dot: #E0B060;
    --tone-general-bg: #2A302D;   --tone-general-fg: #E6ECE8;   --tone-general-dot: #A9B5AE;
    --tone-dropoff-bg: #2C2440;   --tone-dropoff-fg: #E6ECE8;   --tone-dropoff-dot: #B9A3E8;
    --tone-centre-bg: #2C2440;    --tone-centre-fg: #E6ECE8;    --tone-centre-dot: #B9A3E8;
    --tone-collect-bg: #3A2E14;   --tone-collect-fg: #E6ECE8;   --tone-collect-dot: #E0B060;
    --tone-hazard-bg: #3D1C1A;    --tone-hazard-fg: #E6ECE8;    --tone-hazard-dot: #F2A29C;
    --tone-mixed-bg: #1B221E;     --tone-mixed-fg: #E6ECE8;     --tone-mixed-dot: #6FCFA8;
    --tone-none-bg: #1B221E;      --tone-none-fg: #E6ECE8;      --tone-none-dot: #A9B5AE;
    --map-style: "classic-dark";
    --map-pin-edge: none;
    --color-map-info-bg: #1B221E;
    --color-map-info-text: #E6ECE8;
    --color-map-dir-bg: #6FCFA8;
    --color-map-dir-text: #0A1A13;
  }
}

/* Each tone sets --tbg, --tfg and --tdot for whatever carries it. */
[data-tone="recycling"] { --tbg: var(--tone-recycling-bg); --tfg: var(--tone-recycling-fg); --tdot: var(--tone-recycling-dot); --twm: var(--tone-recycling-wm, var(--tone-recycling-fg)); }
[data-tone="food"]      { --tbg: var(--tone-food-bg);      --tfg: var(--tone-food-fg);      --tdot: var(--tone-food-dot); --twm: var(--tone-food-wm, var(--tone-food-fg)); }
[data-tone="garden"]    { --tbg: var(--tone-garden-bg);    --tfg: var(--tone-garden-fg);    --tdot: var(--tone-garden-dot); --twm: var(--tone-garden-wm, var(--tone-garden-fg)); }
[data-tone="general"]   { --tbg: var(--tone-general-bg);   --tfg: var(--tone-general-fg);   --tdot: var(--tone-general-dot); --twm: var(--tone-general-wm, var(--tone-general-fg)); }
[data-tone="dropoff"]   { --tbg: var(--tone-dropoff-bg);   --tfg: var(--tone-dropoff-fg);   --tdot: var(--tone-dropoff-dot); --twm: var(--tone-dropoff-wm, var(--tone-dropoff-fg)); }
[data-tone="centre"]    { --tbg: var(--tone-centre-bg);    --tfg: var(--tone-centre-fg);    --tdot: var(--tone-centre-dot); --twm: var(--tone-centre-wm, var(--tone-centre-fg)); }
[data-tone="collect"]   { --tbg: var(--tone-collect-bg);   --tfg: var(--tone-collect-fg);   --tdot: var(--tone-collect-dot); --twm: var(--tone-collect-wm, var(--tone-collect-fg)); }
[data-tone="hazard"]    { --tbg: var(--tone-hazard-bg);    --tfg: var(--tone-hazard-fg);    --tdot: var(--tone-hazard-dot); --twm: var(--tone-hazard-wm, var(--tone-hazard-fg)); }
[data-tone="mixed"]     { --tbg: var(--tone-mixed-bg);     --tfg: var(--tone-mixed-fg);     --tdot: var(--tone-mixed-dot); --twm: var(--tone-mixed-wm, var(--tone-mixed-fg)); }
[data-tone="none"]      { --tbg: var(--tone-none-bg);      --tfg: var(--tone-none-fg);      --tdot: var(--tone-none-dot); --twm: var(--tone-none-wm, var(--tone-none-fg)); }
.hazard-banner          { --tbg: var(--tone-hazard-bg);    --tfg: var(--tone-hazard-fg);    --tdot: var(--tone-hazard-dot); }

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

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-body);
  line-height: var(--leading-body);
  overflow-wrap: break-word;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: var(--weight-heading);
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-heading);
  color: inherit;
}

h1 { font-size: var(--text-xl); margin: 0 0 var(--space-2); }
h2 { font-size: var(--text-lg); margin: var(--space-6) 0 var(--space-2); }
h3 { font-size: var(--text-md); margin: var(--space-5) 0 var(--space-1); }

p, ul, ol { margin: 0 0 var(--space-4); }
ul, ol { padding-left: var(--space-5); }
li + li { margin-top: var(--space-1); }
strong { font-weight: var(--weight-strong); }

a {
  color: var(--color-link);
  text-decoration-thickness: var(--link-underline);
  text-underline-offset: var(--link-offset);
}
a:hover { color: var(--color-link-hover); text-decoration-thickness: calc(var(--link-underline) + 1px); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: var(--focus-width) solid var(--color-focus);
  outline-offset: 2px;
}

.muted { color: var(--color-muted); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.icon { flex: none; vertical-align: middle; }
[hidden] { display: none !important; }

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: calc(-1 * var(--space-8));
  padding: var(--space-2) var(--space-3);
  background: var(--color-surface);
  color: var(--color-accent);
  border: var(--border-width) solid var(--color-line);
  border-radius: var(--radius-sm);
  z-index: 20;
}
.skip-link:focus { top: var(--space-2); }

/* ==========================================================================
   Layout
   ========================================================================== */
.wrap {
  max-width: var(--width-page);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Prose pages (privacy, terms, support, 404): a single narrow column. */
main:not(.page) {
  max-width: var(--width-content);
  margin: 0 auto;
  padding: var(--space-6) var(--gutter) var(--space-7);
}
main:not(.page) footer {
  margin-top: var(--space-7);
  padding-top: var(--space-4);
  border-top: var(--border-width) solid var(--color-line);
  color: var(--color-muted);
  font-size: var(--text-sm);
}

/* Section pages: full-width sections, content in .wrap. */
main.page > section { padding: var(--section-pad) 0; }
main.page > section > .wrap > :last-child { margin-bottom: 0; }

/* Header */
.site-header {
  background: var(--color-header-bg);
  color: var(--color-header-text);
  border-bottom: var(--rule-width) solid var(--color-rule);
}
.site-header__inner {
  max-width: var(--width-page);
  margin: 0 auto;
  padding: var(--space-3) var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-5);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-brand, inherit);
  font-family: var(--font-heading);
  font-weight: var(--weight-heading);
  font-size: var(--text-md);
  text-decoration: none;
  margin-right: auto;
}
/* The wordmark: outlined paths (docs/BRAND.md), coloured by currentColor. The viewBox is cropped to the glyphs,
   so a height of 0.947em gives a cap height of 0.7em of the brand's font size (the R is 66 of the 89.3 units). */
.brand__mark { display: block; height: 0.947em; width: auto; aspect-ratio: 517 / 89.3; }
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-5);
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav li + li { margin-top: 0; }
.site-nav a {
  display: inline-block;
  padding: var(--space-2) 0;
  color: inherit;
  font-weight: var(--weight-strong);
  text-decoration: none;
}
.site-nav a:hover { text-decoration: underline; }
.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}
.nav-toggle,
.council-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 40px;
  padding: 0 var(--space-4);
  border: var(--border-strong) solid currentColor;
  border-radius: var(--radius-pill);
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: var(--weight-strong);
  font-size: var(--text-sm);
  cursor: pointer;
}
.council-chip span { max-width: 14em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Below 640px the nav collapses into a menu (only once the script can open it). */
@media (max-width: 639px) {
  .site-header.has-js .site-nav { display: none; flex-basis: 100%; order: 3; }
  .site-header.has-js.nav-open .site-nav { display: block; }
  .site-header.has-js .site-nav ul { flex-direction: column; gap: 0; }
  .site-header.has-js .site-nav a { padding: var(--space-3) 0; }
  .site-header .brand { font-size: var(--text-base); }
  .council-chip { order: 2; }
  .nav-toggle { order: 1; }
}
@media (min-width: 640px) {
  .nav-toggle { display: none !important; }
}

/* Footer */
.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  border-top: var(--rule-width) solid var(--color-rule);
  font-size: var(--text-sm);
}
.site-footer__inner {
  max-width: var(--width-page);
  margin: 0 auto;
  padding: var(--space-6) var(--gutter) var(--space-7);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
.site-footer p { color: var(--color-footer-text); margin-bottom: var(--space-2); }
.site-footer a { color: var(--color-footer-link); }
.site-footer h2 {
  margin: 0 0 var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-footer-head);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li + li { margin-top: var(--space-2); }
.footer-logo {
  font-family: var(--font-heading);
  font-weight: var(--weight-heading);
  font-size: var(--text-lg);
  color: var(--color-footer-head) !important;
}
.footer-small { border-top: var(--border-width) solid var(--color-rule); padding-top: var(--space-4); }
/* Social accounts: a row of 44px icon links (tools/build_site.py SOCIAL_LINKS), in the footer link colour. */
.footer-social { margin-top: var(--space-4); }
.site-footer .social-links { display: flex; flex-wrap: wrap; gap: 4px; margin-left: -11px; }
.site-footer .social-links li + li { margin-top: 0; }
.social-links a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-pill);
  color: var(--color-footer-link);
  transition: background-color 180ms ease, color 180ms ease;
}
.social-links a:hover { background: color-mix(in srgb, currentColor 14%, transparent); }
.social-links svg { display: block; }
@media (prefers-reduced-motion: reduce) { .social-links a { transition: none; } }
@media (min-width: 640px) {
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .footer-brand, .footer-small { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .site-footer__inner { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer-brand { grid-column: auto; }
}

/* ==========================================================================
   Controls
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: var(--space-2) var(--space-5);
  border: var(--border-strong) solid var(--color-accent);
  border-radius: var(--radius-button);
  background: var(--color-accent);
  color: var(--color-on-accent);
  box-shadow: var(--shadow-button);
  font: inherit;
  font-weight: var(--weight-strong);
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { color: var(--color-on-accent); box-shadow: var(--shadow-button-hover); text-decoration: none; }
.btn:active { transform: translate(1px, 1px); }
.btn--dark { background: var(--color-dark); border-color: var(--color-dark); color: var(--color-on-dark); }
.btn--dark:hover { color: var(--color-on-dark); }
.btn--outline { background: transparent; border-color: currentColor; color: inherit; }
.btn--outline:hover { color: inherit; }
.btn--small { min-height: 36px; padding: var(--space-1) var(--space-4); font-size: var(--text-sm); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.link-button {
  background: none; border: 0; padding: var(--space-1) 0; font: inherit; color: var(--color-link);
  text-decoration: underline; text-underline-offset: var(--link-offset); cursor: pointer;
}

.chips, .pill-list {
  display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; padding: 0; margin: 0 0 var(--space-4);
}
.chips li + li, .pill-list li + li { margin-top: 0; }
.chips-label { margin: var(--space-3) 0 var(--space-2); font-weight: var(--weight-strong); }
.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 40px;
  padding: var(--space-1) var(--space-4);
  border: var(--border-chip) solid currentColor;
  border-radius: var(--radius-pill);
  background: var(--color-chip-bg);
  color: var(--color-chip-text);
  font: inherit;
  font-size: var(--text-sm);
  font-weight: var(--weight-strong);
  text-decoration: none;
  cursor: pointer;
}
.pill:hover { color: var(--color-chip-text); text-decoration: underline; }
.pill.is-on, .pill[aria-pressed="true"] {
  background: var(--color-chip-on-bg); color: var(--color-chip-on-text); border-color: var(--color-chip-on-bg);
}

.label {
  margin: 0 0 var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--weight-heading);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Search field */
.search-form {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  padding: var(--space-1) var(--space-1) var(--space-1) var(--space-3);
  background: var(--color-field-bg);
  color: var(--color-field-text);
  border: var(--border-strong) solid var(--color-outline);
  border-radius: var(--radius-field);
  box-shadow: var(--shadow-button);
}
.search-form:focus-within { outline: var(--focus-width) solid var(--color-focus); outline-offset: 2px; }
.search-form__icon { display: inline-flex; color: var(--color-field-text); }
.search-form input {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--color-field-text);
  font: inherit;
  font-size: var(--text-md);
  font-weight: var(--weight-strong);
  text-overflow: ellipsis; /* a placeholder too long for a phone ends in "…" rather than a cut-off quote */
}
.search-form input:focus-visible { outline: none; }
.search-form input::placeholder { color: var(--color-placeholder); opacity: 1; font-weight: var(--weight-body); }
.search-form .btn { flex: none; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0 0 var(--space-3);
  padding: 2px var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: var(--weight-heading);
}
.tag::before {
  content: "";
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--tdot, var(--color-accent));
}
.notice, .flag {
  margin: var(--space-3) 0;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  background: var(--color-notice-bg);
  color: var(--color-notice-text);
  font-size: var(--text-sm);
}
.flag { display: inline-block; background: var(--color-flag-bg); color: var(--color-flag-text); font-weight: var(--weight-strong); }
.swatch {
  display: inline-block; width: 18px; height: 18px; border-radius: 4px; flex: none;
  background: var(--bin, var(--tdot, var(--color-muted)));
  border: 1px solid var(--color-outline);
}
.swatch--big { width: 28px; height: 28px; border-radius: 6px; }

.num-list { counter-reset: n; list-style: none; padding: 0; }
.num-list > li {
  counter-increment: n;
  position: relative;
  padding-left: 2.25em;
  margin-top: var(--space-3);
}
.num-list > li::before {
  content: counter(n);
  position: absolute; left: 0; top: 0;
  width: 1.6em; height: 1.6em; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--color-accent-soft); color: var(--color-text);
  font-weight: var(--weight-heading); font-size: 0.95em;
}

/* "Coming soon to Google Play": styled like a button, but not a link. */
.store-button {
  display: inline-block;
  margin: var(--space-2) 0 var(--space-3);
  padding: var(--space-3) var(--space-5);
  border: var(--border-strong) solid var(--color-button-border);
  border-radius: var(--radius-button);
  background: var(--color-button-bg);
  color: var(--color-button-text);
  box-shadow: var(--shadow-button);
  font-weight: var(--weight-strong);
}
.store-badge { display: inline-block; margin: var(--space-2) 0 var(--space-3); }
/* Store buttons: Google Play (the listing) and iPhone (coming soon). */
.store-buttons { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: var(--space-3) 0; }
.store-btn { display: inline-flex; align-items: center; gap: var(--space-2); }
.store-btn.is-soon { cursor: default; }
.store-btn.is-soon:hover, .store-btn.is-soon:active { filter: none; transform: none; }
/* The app page: a hero, then what the app does as full-width colour blocks. */
.app-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
.feature-blocks { list-style: none; margin: 0; padding: 0; }
.feature-blocks li + li { margin-top: 0; }
.feature-block__inner { max-width: var(--width-page); margin: 0 auto; padding: var(--space-5) var(--gutter); }
.feature-block__name, .feature-block__text { margin: 0; }
@media (min-width: 1024px) { .app-hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; column-gap: 56px; } }
.store-badge img { display: block; height: 80px; width: auto; }

/* Panels and tables (support and privacy pages) */
.panel {
  background: var(--color-panel-bg);
  border: var(--border-card) solid var(--color-outline);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: var(--space-4) var(--space-5);
  margin: var(--space-5) 0;
}
.panel a { color: var(--color-panel-link); }
.panel p:last-child { margin-bottom: 0; }
.panel h2 { margin-top: 0; }
.email { font-size: var(--text-md); font-weight: var(--weight-strong); }
.lead { font-size: var(--text-md); }
.intro-icon { display: block; width: var(--icon-hero); height: var(--icon-hero); border-radius: var(--radius-icon); }
.table-wrap { overflow-x: auto; margin: var(--space-3) 0; }
table { border-collapse: collapse; width: 100%; background: var(--color-surface); color: var(--color-text); font-size: var(--text-sm); }
th, td { text-align: left; vertical-align: top; padding: var(--space-2) var(--space-3); border: var(--border-width) solid var(--color-line); }
th { font-weight: var(--weight-strong); }

/* Cards */
.answer-card, .scheme-card, .area-card, .step-card, .place-card, .empty-card, .council-prompt {
  background: var(--color-surface);
  color: var(--color-text);
  border: var(--border-card) solid var(--color-outline);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: var(--space-4) var(--space-5);
}
.answer-card { background: var(--tbg, var(--color-surface)); color: var(--tfg, var(--color-text)); }
.answer-card > :last-child, .scheme-card > :last-child, .area-card > :last-child,
.place-card > :last-child, .council-prompt > :last-child { margin-bottom: 0; }

/* ==========================================================================
   Home
   ========================================================================== */
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
.hero__grid > *, .explore-layout > *, .nation-grid > *, .scheme-grid > * { min-width: 0; }
.hero h1 { font-size: var(--text-hero); margin: 0 0 var(--space-3); }
.hero__badge {
  display: inline-block; margin: 0 0 var(--space-3); padding: 2px var(--space-3);
  border-radius: var(--radius-pill); background: var(--color-accent-soft); color: var(--color-text);
  font-size: var(--text-sm); font-weight: var(--weight-strong);
}
.area-card__name { font-family: var(--font-heading); font-weight: var(--weight-heading); font-size: var(--text-lg); line-height: 1.15; margin-bottom: var(--space-2); }
@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    grid-template-areas: "text aside" "search aside";
    column-gap: var(--space-7);
  }
  .hero__text { grid-area: text; }
  .hero__search { grid-area: search; }
  .hero__aside { grid-area: aside; align-self: center; }
}

.bins__head h2, .steps h2, .teaser h2, .app-section h2, .good-to-know h2, .nations h2,
.prep h2, .schemes h2, .clarify h2, .related h2, .cant-find h2, .page-head h1 { margin-top: 0; }
.bins h2, .steps h2, .teaser h2, .app-section h2, .cant-find h2 { font-size: var(--text-display); }

.bin-blocks {
  list-style: none; margin: 0 auto; padding: 0 var(--gutter);
  max-width: var(--width-page);
  display: grid; gap: var(--space-3);
}
.bin-blocks li + li { margin-top: 0; }
.bin-block {
  background: var(--color-surface);
  color: var(--color-text);
  border: var(--border-card) solid var(--color-outline);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.bin-block__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-1) var(--space-3);
  align-items: start;
  padding: var(--space-4);
}
.bin-block .swatch { grid-row: span 2; }
.bin-block__name { margin: 0; font-size: var(--text-md); }
.bin-block__meta { margin: 0; display: flex; flex-direction: column; gap: var(--space-1); }
.bin-block__freq { font-weight: var(--weight-strong); }
.bin-block__acc { color: inherit; font-size: var(--text-sm); }
@media (min-width: 640px) { .bin-blocks { grid-template-columns: 1fr 1fr; } }

/* ----- Website ads (option A): one fixed-size space per page, filled by /assets/js/ads.js only when ads are
   switched on. Fixed sizes per screen width, so the page never jumps when an ad arrives. ----- */
.ad-slot { padding: 32px var(--gutter); text-align: center; }
.ad-slot[hidden] { display: none; }
.ad-slot__label { margin: 0 0 6px; font-size: 0.75rem; line-height: 1.2; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: #5A5A55; }
.ad-slot .adsbygoogle { display: inline-block; width: 320px; height: 100px; }
@media (min-width: 768px) { .ad-slot .adsbygoogle { width: 728px; height: 90px; } }
.az .ad-slot, .bins__head .ad-slot { padding-left: 0; padding-right: 0; }
.bins__head .ad-slot { padding-bottom: 0; }
/* Bin days' left column is narrower than 728px until the screen is 1440px wide. */
@media (min-width: 1024px) and (max-width: 1439px) { .bins__head .ad-slot .adsbygoogle { width: 468px; height: 60px; } }

/* ----- Bin days: address finder, calendar, next collection, bin switches ----- */
.linklike { background: none; border: 0; padding: 0; font: inherit; font-weight: inherit; color: var(--color-link); text-decoration: underline; cursor: pointer; }
.linklike:hover { color: var(--color-link-hover); }
.bindays-address { font-weight: var(--weight-strong); margin: var(--space-2) 0 0; overflow-wrap: anywhere; }
.bindays-address .linklike { color: inherit; }
.bindays-note { margin: var(--space-3) 0 0; }
.bindays-consent { border: 1px solid var(--color-outline); padding: var(--space-3); margin-bottom: var(--space-3); }
.bindays-consent__text { white-space: pre-line; margin-top: 0; }
.bindays-consent__tick { display: flex; gap: var(--space-2); align-items: center; font-weight: var(--weight-strong); margin-bottom: 0; }
.bindays-consent__tick input { width: 24px; height: 24px; flex: none; }
.address-list__title { margin: var(--space-4) 0 var(--space-2); font-size: var(--text-md); }
.address-list { list-style: none; margin: 0; padding: 0; max-height: 420px; overflow-y: auto; border: 1px solid var(--color-outline); }
.address-list li + li { margin-top: 0; border-top: 1px solid var(--color-line); }
.address-list__btn { display: block; width: 100%; min-height: 48px; padding: var(--space-2) var(--space-3); text-align: left; background: var(--color-surface); color: var(--color-text); border: 0; font: inherit; cursor: pointer; }
.address-list__btn:hover, .address-list__btn:focus-visible { background: var(--color-accent-soft); }
.address-list__btn[aria-busy="true"] { font-weight: var(--weight-strong); }

.cal { margin-top: var(--space-4); }
.cal__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-3); }
.cal__title { margin: 0; font-size: 1.75rem; line-height: 1; }
.cal__nav { display: flex; gap: var(--space-2); }
.cal__nav-btn { width: 48px; height: 48px; border-radius: 50%; border: 2px solid currentColor; background: transparent; color: inherit; font: inherit; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.cal__nav-btn:disabled { opacity: 0.35; cursor: default; }
.cal__grid { width: calc(100% + 8px); margin: 0 -4px; border-collapse: separate; border-spacing: 4px; table-layout: fixed; background: none; font-size: 1rem; }
.cal__grid th, .cal__grid td { border: 0; }
.cal__nav-btn svg { display: block; margin: auto; }
.cal__grid th { font-size: 0.8125rem; font-weight: 700; color: var(--color-muted); text-align: left; padding: 0 0 2px 6px; }
.cal__grid abbr { text-decoration: none; }
.cal__day, .cal__blank { height: 56px; vertical-align: top; padding: 5px 6px; border-radius: 10px; }
.cal__num { display: block; font-weight: 700; line-height: 1.2; }
.cal__day.is-past { color: var(--color-muted); }
.cal__day.is-collection { box-shadow: inset 0 0 0 2px var(--color-outline); }
.cal__day.is-today { background: var(--color-accent-soft); }
.cal__day.is-next { background: var(--color-dark); color: var(--color-on-dark); box-shadow: none; }
.cal__today { display: block; font-size: 0.6875rem; font-weight: 700; line-height: 1.1; }
.cal__dots { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 4px; }
.cal__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--bin, var(--color-surface)); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.4); }
.cal__day.is-next .cal__dot { box-shadow: 0 0 0 2px var(--color-on-dark); }
.cal__legend { list-style: none; padding: 0; margin: var(--space-4) 0 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.cal__legend li + li { margin-top: 0; }
.bin-pill { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 18px; background: var(--bin, var(--color-surface)); color: var(--on-bin, var(--color-text)); font-weight: 700; font-size: 0.9375rem; }
.bin-pill.is-light { box-shadow: inset 0 0 0 2px var(--color-outline); }
.bin-pill__dot { display: none; }
/* Phones: the next collection first, then the calendar, then the bins. */
@media (max-width: 1023px) {
  .bins--days[data-has-dates] { display: flex; flex-direction: column; }
  .bins--days[data-has-dates] > .bins__list { display: contents; }
  .bins--days[data-has-dates] .bindays-next { order: -1; }
}

.bindays-next { background: var(--color-dark); color: var(--color-on-dark); padding: var(--space-5) var(--gutter); }
.bindays-next__label { margin: 0; font-weight: 700; color: #BBBBBB; }
.bindays-next__date { margin: 4px 0 14px; font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 0.95; }
.bindays-next__bins { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.bindays-next__none { margin: 8px 0 0; }
.bindays-next .bin-pill.is-light { box-shadow: none; }
.bindays-source { padding: var(--space-3) var(--gutter); font-size: 0.9375rem; color: var(--color-muted); margin: 0; }

.bin-block--switch .bin-block__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.bin-switch { flex: none; position: relative; width: 56px; height: 32px; border-radius: 16px; border: 0; padding: 0; background: rgba(255, 255, 255, 0.35); cursor: pointer; }
.bin-switch__knob { position: absolute; top: 4px; left: 28px; width: 24px; height: 24px; border-radius: 50%; background: #FFFFFF; transition: left 0.15s ease; }
.bin-switch[aria-checked="false"] .bin-switch__knob { left: 4px; }
.bin-block.is-light .bin-switch, .bin-block.is-off .bin-switch { background: rgba(0, 0, 0, 0.22); }
.bin-block.is-light .bin-switch__knob { background: #161616; }
.bin-block.is-off { background: #ECEBE6 !important; color: #161616 !important; }
.bin-block.is-off .bin-switch__knob { background: #555555; }
@media (prefers-reduced-motion: reduce) { .bin-switch__knob { transition: none; } }

.step-cards { list-style: none; padding: 0; display: grid; gap: var(--grid-gap); }
.step-cards li + li { margin-top: 0; }
.step-card h3 { margin-top: var(--space-2); }
.step-card p { margin: 0; }
.step-card__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--color-accent-soft); color: var(--color-text); font-weight: var(--weight-heading);
}
@media (min-width: 1024px) { .step-cards { grid-template-columns: repeat(3, 1fr); } }

.feature-list li { margin-top: var(--space-2); }
.app-section .lead { max-width: 40em; }

/* Map teaser and app section: text, plus a drawing or the app's screenshots beside it on wide screens. */
.teaser__grid, .app-section__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
.teaser__art { display: none; }
.teaser__takes .take {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 var(--space-4);
  border-radius: var(--radius-pill); background: var(--tone-dropoff-bg); color: var(--tone-dropoff-fg);
  font-size: var(--text-sm); font-weight: var(--weight-strong);
}
.teaser__takes .take[data-take="food"]      { background: var(--tone-food-bg);      color: var(--tone-food-fg); }
.teaser__takes .take[data-take="recycling"] { background: var(--tone-recycling-bg); color: var(--tone-recycling-fg); }
.teaser__takes .take[data-take="hazard"]    { background: var(--tone-hazard-bg);    color: var(--tone-hazard-fg); }
.teaser__takes .take[data-take="general"]   { background: var(--tone-general-bg);   color: var(--tone-general-fg); }
.app-section__shots { display: flex; gap: var(--space-5); justify-content: center; }
.app-section__shots img { width: min(230px, 42vw); height: auto; border-radius: 28px; }
@media (min-width: 1024px) {
  .teaser__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: stretch; }
  .teaser__art { display: block; }
  .teaser__art svg { display: block; width: 100%; height: 100%; }
  .teaser__art img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .app-section__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; column-gap: 56px; }
}

/* ==========================================================================
   Search
   ========================================================================== */
.search-head h1 { margin-top: 0; }
.search-form--big { max-width: 900px; }
.results-meta { margin: var(--space-4) 0 var(--space-2); font-weight: var(--weight-strong); }
.filter-pills { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.result-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--grid-gap); }
.result-grid li + li { margin-top: 0; }
.result-tile {
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-4);
  height: 100%;
  min-height: 140px;
  padding: var(--space-4) var(--space-5);
  background: var(--tbg, var(--color-surface));
  color: var(--tfg, var(--color-text));
  border: var(--border-card) solid var(--color-outline);
  border-radius: var(--radius-tile);
  box-shadow: var(--shadow-card);
  text-decoration: none;
}
.result-tile:hover { color: var(--tfg, var(--color-text)); }
.result-tile:hover .result-tile__name { text-decoration: underline; }
.result-tile__top { display: flex; justify-content: space-between; gap: var(--space-3); align-items: flex-start; }
.result-tile__name { font-family: var(--font-heading); font-weight: var(--weight-heading); font-size: var(--text-tile); line-height: 1.15; }
.result-tile__arrow { transition: transform 0.15s; }
.result-tile:hover .result-tile__arrow { transform: translateY(-2px); }
.result-tile__bottom { display: flex; flex-direction: column; gap: 2px; }
.result-tile__dest { font-weight: var(--weight-heading); font-size: var(--text-md); }
.result-tile__note { font-size: var(--text-sm); }
@media (min-width: 640px) { .result-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .result-grid { grid-template-columns: repeat(3, 1fr); } }
.no-results .results { display: none; }

/* ==========================================================================
   Item pages
   ========================================================================== */
.breadcrumb ol { list-style: none; padding: 0; margin: 0 0 var(--space-3); display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-2); font-size: var(--text-sm); }
.breadcrumb li + li { margin-top: 0; }
.breadcrumb li + li::before { content: "\203A"; margin-right: var(--space-2); }
.breadcrumb a { color: inherit; }
.item-hero { background: var(--tbg, transparent); color: var(--tfg, inherit); }
.item-hero h1 { font-size: var(--text-2xl); margin: 0 0 var(--space-2); }
.item-hero__verdict {
  margin: var(--space-3) 0 var(--space-2);
  font-family: var(--font-heading); font-weight: var(--weight-heading);
  font-size: var(--text-display); line-height: var(--leading-heading); letter-spacing: var(--tracking-heading);
}
.item-hero__sub { font-weight: var(--weight-strong); }
.item-hero__aka { font-size: var(--text-sm); }
/* The item and its answer on the left, how to prepare it on the right (hand-off page 03). */
.item-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
.item-hero__main > :last-child, .item-hero__side > :last-child { margin-bottom: 0; }
.item-hero .council-answer { margin-top: var(--space-5); }
@media (min-width: 1024px) {
  .item-hero__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: var(--space-8); }
  .item-hero__grid:has(> .item-hero__side[hidden]) { grid-template-columns: minmax(0, 1fr); }
}
.hazard-banner__grid { display: grid; gap: var(--space-4); }
.hazard-banner__detail { margin: 0; }
@media (min-width: 1024px) {
  .hazard-banner__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); align-items: end; column-gap: 40px; }
}

.hazard-banner { background: var(--tbg); color: var(--tfg); }
.hazard-banner__label { display: flex; align-items: center; gap: var(--space-2); margin: 0 0 var(--space-2); font-weight: var(--weight-heading); color: var(--tdot); }
.hazard-banner__text {
  margin: 0; max-width: 40em;
  font-family: var(--font-heading); font-weight: var(--weight-heading);
  font-size: var(--text-lg); line-height: 1.3;
}

.council-prompt h2, .answer-card--council h2 { margin-top: 0; }
.answer-card__nation { margin: 0 0 var(--space-2); }
.answer-card__headline { font-family: var(--font-heading); font-weight: var(--weight-heading); font-size: var(--text-md); line-height: 1.3; }
.answer-card--council .answer-card__headline { font-size: var(--text-lg); }
.answer-card__also, .answer-card__source { font-size: var(--text-sm); }
.answer-card a { color: inherit; }
.answer-card .notice { background: var(--color-notice-bg); color: var(--color-notice-text); }
.container-line {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3);
  padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm);
  background: var(--color-surface); color: var(--color-text);
}
.container-line__freq { font-size: var(--text-sm); }
.bin-block__next { font-weight: var(--weight-heading); }
/* Chip and pill rows: phones show the first six, wider screens the rest too ("is-extra"), so rows fill out
   (Rory, 16 Oct). */
@media (max-width: 767px) { .chips > .is-extra, .pill-list > .is-extra { display: none; } }
/* Full rows (data-even, Rory 16 Oct): each button keeps its own length, and the buttons in a row share out the
   spare space (their padding grows), so every row runs the full width. site.js (evenRows) shows as many as
   fit without a sparse last row, and six on a phone. */
.chips[data-even], .pill-list[data-even] { display: flex; flex-wrap: wrap; width: 100%; align-self: stretch; box-sizing: border-box; }
.chips[data-even] > li, .pill-list[data-even] > li { display: flex; flex: 1 1 auto; min-width: 0; }
.chips[data-even] > li > .pill, .pill-list[data-even] > li > .pill { width: 100%; box-sizing: border-box; justify-content: center; text-align: center; }
.chips[data-even] > .take { justify-content: center; text-align: center; }
[data-even] > .is-trimmed { display: none !important; }
.chips[data-even] > .is-loose, .pill-list[data-even] > .is-loose { flex-grow: 0; }
.home-step { margin: var(--space-4) 0; }
.home-step__title { margin: 0 0 var(--space-2); font-size: var(--text-md); }
.picker__address { margin-top: var(--space-4); }
.picker__address:empty { display: none; }
.picker__select { display: block; width: 100%; min-height: 52px; font: inherit; padding: 0 var(--space-3); border: 2px solid #161616; border-radius: 26px; background: #FFFFFF; color: #161616; }
.home-step__select { min-height: 48px; max-width: 100%; flex: 1 1 14rem; font: inherit; padding: 0 var(--space-3); border: 2px solid currentColor; border-radius: 12px; background: #FFFFFF; color: #161616; }
.home-step .linklike { color: inherit; }
.item-hero .home-step .muted, .item-hero .home-step .postcode-form__hint { color: inherit; opacity: 0.9; }
.bin-block__hint { font: inherit; font-size: 1rem; text-align: inherit; color: inherit; text-decoration: underline; }
.container-line__next { margin: var(--space-2) 0 0; font-size: var(--text-sm); }
.bulky h3 { margin-top: var(--space-3); }
.council-answer .btn-row { margin-top: var(--space-4); }

.nation-grid, .scheme-grid { display: grid; gap: var(--grid-gap); }
@media (min-width: 640px) { .scheme-grid, .nation-grid--2, .nation-grid--4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .nation-grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .nation-grid--4 { grid-template-columns: repeat(4, 1fr); } }
.answer-card__sources { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-1); }
.nations-more { margin-top: var(--space-5); }
.nations-more > summary { cursor: pointer; font-weight: var(--weight-heading); font-size: var(--text-md); padding: var(--space-3) 0; }
.nations-more > .nation-grid { margin-top: var(--space-3); }

.num-list--big > li { font-size: var(--text-md); }
.deposit-card {
  margin: var(--space-5) 0 0; padding: var(--space-4) var(--space-5); border-radius: var(--radius-card);
  background: var(--color-notice-bg); color: var(--color-notice-text); font-weight: var(--weight-strong);
  border: var(--border-card) solid var(--color-outline); box-shadow: var(--shadow-card);
}
.scheme-card h3 { margin-top: 0; }
.scheme-card__cost { font-weight: var(--weight-heading); }
.scheme-card__links { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.scheme-card__source { font-size: var(--text-sm); }
.item-foot { font-size: var(--text-sm); }

/* A to Z */
.az-list { list-style: none; padding: 0; columns: 2 12em; column-gap: var(--space-5); }
.az-list li { break-inside: avoid; margin: 0 0 var(--space-2); }
.az h2 { margin-top: var(--space-5); }

/* ==========================================================================
   Explore and bin days
   ========================================================================== */
/* Explore (hand-off page 05): the filters, the count and the list in a sidebar, the map beside them.
   Narrow screens stack them in source order: filters, count, map, list. With no map, one column. */
.explore-layout {
  display: grid; gap: var(--space-4); grid-template-columns: minmax(0, 1fr);
  max-width: var(--width-page); margin: 0 auto; padding: 0 var(--gutter);
}
.explore-side h1 { margin-top: 0; }
.explore-layout > .count-row { margin: 0; }
@media (min-width: 1024px) {
  .explore-layout {
    grid-template-columns: minmax(320px, 400px) minmax(0, 1fr);
    grid-template-areas: "side map" "count map" "list map";
    grid-template-rows: auto auto 1fr;
    align-items: start;
    column-gap: var(--space-5);
    padding: 0 var(--gutter-wide);
  }
  .explore-side { grid-area: side; }
  .explore-layout > .count-row { grid-area: count; }
  .explore-layout > .explore-map { grid-area: map; position: sticky; top: 0; }
  .explore-list { grid-area: list; }
  .explore-layout:has(> .explore-map[hidden]) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "side" "count" "list"; }
}
.filters {
  background: var(--color-surface); color: var(--color-text);
  border: var(--border-card) solid var(--color-outline); border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: var(--space-4);
}
.filter-group { border: 0; margin: 0 0 var(--space-4); padding: 0; min-width: 0; }
.filter-group .chips { margin-bottom: 0; }
.filter-group select {
  width: 100%; min-height: 44px; padding: var(--space-2); font: inherit;
  background: var(--color-field-bg); color: var(--color-field-text);
  border: var(--border-strong) solid var(--color-outline); border-radius: var(--radius-field);
}
.count-row { font-weight: var(--weight-heading); font-size: var(--text-md); margin-top: 0; }
.place-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); }
.place-list li + li { margin-top: 0; }
.place-card__name { margin: 0; font-size: var(--text-md); }
.place-card__type { margin: 0 0 var(--space-2); color: var(--color-muted); font-size: var(--text-sm); font-weight: var(--weight-strong); }
.place-card p { font-size: var(--text-sm); margin-bottom: var(--space-2); }
.place-card__links { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.place-card__more summary { cursor: pointer; font-size: var(--text-sm); font-weight: var(--weight-strong); }
.place-card[data-kind="hwrc"] { border-left: 6px solid var(--tone-centre-dot); }

/* Trust labels (site.js trustRow, tools/build_site.py trust_chip; the app's TrustChips): one small, calm chip per
   card about where its details come from, in the card's own text colour on a light shade of the card, never a
   warning. A tap opens the explanation under it; hovering shows it too (title). */
.trust-row { display: flex; flex-wrap: wrap; gap: 6px; margin: var(--space-2) 0; }
.trust { display: inline-block; max-width: 100%; }
.trust__chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 26px; box-sizing: border-box;
  padding: 2px 10px; border-radius: 13px; cursor: pointer; list-style: none;
  border: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 45%, transparent);
  background: rgba(0, 0, 0, 0.12);
  font-size: 0.8125rem; font-weight: 700; line-height: 1.2;
}
.trust__chip::-webkit-details-marker { display: none; }
/* A small "i" in a ring before the label. */
.trust__chip::before {
  content: "i"; flex: none; width: 13px; height: 13px; border: 1.5px solid currentColor; border-radius: 50%;
  font: 700 9px/13px var(--font-body, sans-serif); text-align: center; box-sizing: content-box;
}
.trust[open] > .trust__chip { background: rgba(0, 0, 0, 0.2); }
.trust__explain { margin: 6px 0 0; max-width: 34em; font-size: var(--text-sm); }
.scheme-card__kicker .trust { margin: 0; }
.place-card__closures { font-weight: var(--weight-strong); }

/* "Where to take it" on an item page: the answer's places (site.js answerPlaces), in a grid of place cards. */
.answer-places__title { margin: var(--space-5) 0 var(--space-3); font-size: var(--text-md); }
.answer-places__list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.answer-places .distance-box > :last-child { margin-bottom: 0; }

/* The nearest store taking part, on a scheme card (site.js schemeNearBlock). */
.scheme-near__card { margin: 0; }
.scheme-near__card > * { margin: 0; }
.scheme-near__card > * + * { margin-top: var(--space-2); }
.scheme-near__label { font-size: var(--text-sm); font-weight: var(--weight-strong); }
.scheme-near__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); }
.scheme-near__name { font-size: 1.25rem; line-height: 1.1; }
.scheme-near__dist { flex: none; font-weight: var(--weight-heading); font-variant-numeric: tabular-nums; }

/* "Help fill a gap": community questions (site.js; off until /assets/community-config.js switches it on) */
.ask-gap__list { display: grid; gap: var(--space-4); margin: var(--space-4) 0; }
.ask {
  background: var(--color-surface);
  color: var(--color-text);
  border: var(--border-card) solid var(--color-outline);
  border-radius: var(--radius-card);
  padding: var(--space-4) var(--space-5);
}
.place-card .ask { margin-top: var(--space-3); padding: var(--space-3) var(--space-4); }
.ask__label { margin: 0 0 var(--space-1); color: var(--color-muted); font-size: var(--text-sm); font-weight: var(--weight-strong); }
.ask__q, .place-card .ask__q { margin: 0 0 var(--space-2); font-size: var(--text-md); font-weight: var(--weight-strong); }
.ask__context { margin: 0 0 var(--space-2); }
.ask__how { margin: var(--space-2) 0 0; font-weight: var(--weight-strong); }
.ask__options { margin-top: var(--space-2); gap: var(--space-2); }
/* The answers share out each row the way the [data-even] pill rows do (Rory, 24 Oct): every button keeps its own
   length plus an even share of the spare space, so rows end flush; a short last row (Send on its own) doesn't
   stretch. site.js evenRows marks it is-loose. */
.ask__options[data-even] { width: 100%; }
.ask__options[data-even] > .btn { flex: 1 1 auto; justify-content: center; text-align: center; }
.ask__options[data-even] > .is-loose { flex-grow: 0; }
/* A ticked answer fills in the accent colour with a tick (the app's picked pill). Two classes, so the theme's
   outline and hover rules don't paint over it. */
.ask .ask__opt[aria-pressed="true"], .ask .ask__opt[aria-pressed="true"]:hover {
  background: var(--color-accent); border-color: var(--color-accent); color: var(--color-on-accent);
}
.ask .ask__opt[aria-pressed="true"]::before {
  content: ""; flex: none; width: 5px; height: 10px; margin: -3px 2px 0 0;
  border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.ask__status:empty { display: none; }
.ask__status, .ask__done { margin: var(--space-2) 0 0; }
.ask > :last-child { margin-bottom: 0; }
.osm-credit { margin-top: var(--space-4); font-size: var(--text-sm); color: var(--color-muted); }
.empty-card__title { font-weight: var(--weight-heading); font-size: var(--text-md); }
.bindays-head .area-card, .explore-side .area-card { max-width: 560px; margin-top: var(--space-4); }
.bins__app { margin-top: var(--space-6); }
.bins__app h3 { margin-top: 0; }
.deposit-card p { margin: 0; }
.deposit-card__label { font-weight: var(--weight-heading); }

/* Explore map (shown when a council with mapped places is chosen; the list stays the full, accessible version) */
.explore-map { margin: 0 0 var(--space-4); min-width: 0; }
.explore-map__frame {
  position: relative;
  overflow: hidden;
  border: var(--map-frame-border);
  border-radius: var(--map-frame-radius);
  box-shadow: var(--map-frame-shadow);
  background: var(--color-map-legend-bg);
}
.explore-map__canvas { width: 100%; height: var(--map-height); }
@media (min-width: 640px) { .explore-map__canvas { height: calc((var(--map-height) + var(--map-height-wide)) / 2); } }
@media (min-width: 1024px) { .explore-map__canvas { height: var(--map-height-wide); } }
.explore-map__status { margin: var(--space-2) 0 0; font-size: var(--text-sm); }
.explore-map__status:empty { display: none; }
.map-legend {
  display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4);
  list-style: none; margin: var(--space-3) 0 0; padding: var(--space-2) var(--space-3);
  background: var(--color-map-legend-bg); color: var(--color-map-legend-text);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm); font-weight: var(--weight-strong);
}
.map-legend:empty { display: none; }
.map-legend li + li { margin-top: 0; }
.map-legend__item { display: inline-flex; align-items: center; gap: var(--space-2); }
.map-legend__pin {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid var(--map-pin-ring);
  box-shadow: 0 0 0 1px var(--map-pin-edge); /* "none" makes this invalid, so no line */
  font-family: Arial, Helvetica, sans-serif; font-size: 11px; font-weight: 700; line-height: 1;
}
.map-legend__pin[data-kind="hwrc"] { border-radius: 5px; }
.map-legend__pin[data-kind="hwrc"]         { background: var(--map-pin-hwrc);         color: var(--map-pin-hwrc-on); }
.map-legend__pin[data-kind="supermarket"]  { background: var(--map-pin-supermarket);  color: var(--map-pin-supermarket-on); }
.map-legend__pin[data-kind="retailer"]     { background: var(--map-pin-retailer);     color: var(--map-pin-retailer-on); }
.map-legend__pin[data-kind="bring_bank"]   { background: var(--map-pin-bring-bank);   color: var(--map-pin-bring-bank-on); }
.map-legend__pin[data-kind="charity_shop"] { background: var(--map-pin-charity-shop); color: var(--map-pin-charity-shop-on); }
.map-legend__pin[data-kind="pharmacy"]     { background: var(--map-pin-pharmacy);     color: var(--map-pin-pharmacy-on); }
.map-legend__pin[data-kind="parcel_shop"]  { background: var(--map-pin-parcel-shop);  color: var(--map-pin-parcel-shop-on); }
.map-legend__pin[data-kind="other"]        { background: var(--map-pin-other);        color: var(--map-pin-other-on); }

/* Google's info window, in the theme's colours (the content is ours; the frame is Google's). */
.explore-map .gm-style .gm-style-iw-c {
  background: var(--color-map-info-bg); color: var(--color-map-info-text);
  border: var(--map-info-border); border-radius: var(--map-info-radius); box-shadow: var(--map-info-shadow);
}
.explore-map .gm-style .gm-style-iw-d { color: inherit; background: transparent; overflow: auto !important; }
.explore-map .gm-style .gm-style-iw-tc::after { background: var(--color-map-info-bg); }
.explore-map .gm-style .gm-ui-hover-effect > span { background-color: var(--color-map-info-text) !important; }
.explore-map .gm-style .map-info { font-family: var(--font-body); font-size: var(--text-sm); line-height: 1.45; color: var(--color-map-info-text); padding: 0 var(--space-2) var(--space-2) 0; }
.map-info__name { margin: 0 0 var(--space-1); font-family: var(--font-heading); font-size: var(--text-base); line-height: 1.2; letter-spacing: normal; }
.map-info__type { margin: 0 0 var(--space-2); font-weight: var(--weight-strong); }
.map-info__hours { margin: 0 0 var(--space-2); }
.map-info__links { margin: var(--space-2) 0 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.map-info__flag { margin: 0 0 var(--space-2); font-size: var(--text-xs, 0.8125rem); opacity: 0.9; }
.explore-map .gm-style .map-info__dir {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--space-4);
  border-radius: var(--radius-button); border: var(--map-dir-border, 0);
  background: var(--color-map-dir-bg); color: var(--color-map-dir-text);
  box-shadow: var(--map-dir-shadow, none);
  font-weight: var(--weight-heading); text-decoration: none;
}
.explore-map .gm-style .map-info__dir:hover { text-decoration: underline; }
.explore-map .gm-style .map-info__dir:focus-visible { outline: var(--focus-width) solid var(--color-map-info-text); outline-offset: 2px; }
.app-promo .store-button { margin-top: 0; }

/* ==========================================================================
   Council picker
   ========================================================================== */
.picker {
  width: min(560px, calc(100vw - 2 * var(--gutter)));
  max-height: calc(100vh - 2 * var(--gutter));
  padding: 0;
  border: var(--border-card) solid var(--color-outline);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow-dialog);
}
.picker::backdrop { background: rgba(0, 0, 0, 0.5); }
.picker__inner { padding: var(--space-5); }
.picker h2 { margin-top: 0; }
.picker__label { display: block; font-weight: var(--weight-strong); margin-bottom: var(--space-1); }
.picker input {
  width: 100%; min-height: 48px; padding: var(--space-2) var(--space-3); font: inherit;
  background: var(--color-field-bg); color: var(--color-field-text);
  border: var(--border-strong) solid var(--color-outline); border-radius: var(--radius-field);
}
.picker__hint { font-size: var(--text-sm); color: var(--color-muted); margin: var(--space-2) 0; }
.picker__list {
  list-style: none; padding: 0; margin: 0;
  max-height: 40vh; overflow-y: auto;
  border: var(--border-width) solid var(--color-line); border-radius: var(--radius-sm);
}
.picker__list:empty { display: none; }
.picker__option { margin: 0 !important; padding: var(--space-2) var(--space-3); cursor: pointer; border-bottom: 1px solid var(--color-line); }
.picker__option:hover { background: var(--color-accent-soft); }
.picker__option[aria-selected="true"] { background: var(--color-dark); color: var(--color-on-dark); }
.picker__status { font-size: var(--text-sm); margin: var(--space-2) 0; }
.picker__current { font-weight: var(--weight-strong); }
.picker__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: flex-end; }
.picker__or { font-weight: var(--weight-strong); margin: var(--space-4) 0 var(--space-2); padding-top: var(--space-3); border-top: 1px solid var(--color-line); }

/* Postcode box and "Use my location" (the picker, and the council cards) */
.postcode-form { margin: var(--space-3) 0; }
.postcode-form__label { display: block; font-weight: var(--weight-strong); margin-bottom: var(--space-1); }
.postcode-form__row { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: stretch; }
.postcode-form .postcode-form__input {
  flex: 1 1 9rem; width: auto; min-width: 0; max-width: 14rem; min-height: 48px; padding: var(--space-2) var(--space-3); font: inherit;
  text-transform: uppercase;
  background: var(--color-field-bg); color: var(--color-field-text);
  border: var(--border-strong) solid var(--color-outline); border-radius: var(--radius-field);
}
.postcode-form__geo { margin: var(--space-2) 0 0; }
.postcode-form__hint { font-size: var(--text-sm); margin: var(--space-2) 0 0; }
.postcode-form__msg { margin: var(--space-2) 0 0; font-weight: var(--weight-strong); }
.postcode-form__msg:empty { display: none; }
.distance-box > :last-child { margin-bottom: 0; }
.place-card__distance { margin: 0 0 var(--space-2); font-weight: var(--weight-strong); }

/* ==========================================================================
   Analytics consent banner (non-modal: the page stays readable behind it)
   ========================================================================== */
.consent {
  position: fixed;
  left: var(--gutter);
  right: var(--gutter);
  bottom: var(--gutter);
  z-index: 30;
  max-width: 560px;
  margin: 0 auto;
  padding: var(--space-4) var(--space-5);
  background: var(--color-consent-bg, var(--color-surface));
  color: var(--color-consent-text, var(--color-text));
  border: var(--border-strong) solid var(--color-outline);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-dialog);
}
.consent:focus { outline: var(--focus-width) solid var(--color-focus); outline-offset: 2px; }
.consent__title { margin: 0 0 var(--space-2); font-size: var(--text-md); }
.consent__text, .consent__current { margin: 0 0 var(--space-3); font-size: var(--text-sm); }
.consent a { color: inherit; }
.consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.consent__btn { width: 100%; }
body.has-consent { padding-bottom: 220px; }

/* ==========================================================================
   Wider screens
   ========================================================================== */
@media (min-width: 640px) {
  h1 { font-size: var(--text-2xl); }
  table { font-size: var(--text-base); }
}
@media (min-width: 1024px) {
  .wrap, .site-header__inner, .site-footer__inner, .bin-blocks { padding-left: var(--gutter-wide); padding-right: var(--gutter-wide); }
  main.page > section { padding: calc(var(--section-pad) * 1.5) 0; }
}

/* ----- Web Interface Guidelines audit (Vercel's checklist, 12 Oct 2026) ----- */
/* No double-tap zoom delay on controls; a tap shows the site's own pressed state, not the grey flash. */
a, button, input, select, label, summary { touch-action: manipulation; }
a, button { -webkit-tap-highlight-color: rgba(0, 0, 0, 0.08); }
/* Headings wrap evenly instead of leaving one word on the last line. */
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
/* A heading jumped to from a link (#az-b, #reminders) isn't flush against the top of the screen. */
[id] { scroll-margin-top: 24px; }
/* Figures that are compared line up: calendar dates, distances, counts. */
.cal__grid, .place-card__distance, .count-row, .bindays-next__date { font-variant-numeric: tabular-nums; }
/* The council picker scrolls on its own, not the page behind it. */
.picker, .picker__list { overscroll-behavior: contain; }
/* Native dropdowns keep their colours in Windows dark mode. */
select { background-color: var(--color-field-bg); color: var(--color-field-text); }
/* Long lists: the browser skips drawing cards far off screen (the Explore list, the A to Z). */
.place-list > li, .az-list { content-visibility: auto; contain-intrinsic-size: auto 160px; }

/* ----- Prose pages: the text column, and "On this page" beside it on wide screens ----- */
.toc { display: none; }
@media (min-width: 1024px) {
  main:not(.page):has(.prose-layout) { max-width: var(--width-page); }
  .prose-layout { display: grid; grid-template-columns: minmax(0, var(--width-content)) minmax(220px, 320px); justify-content: space-between; column-gap: 80px; align-items: start; }
  .prose > :first-child { margin-top: 0; }
  .toc { display: block; position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; overscroll-behavior: contain; }
  .toc__title { margin: 0 0 var(--space-3); font-size: var(--text-sm); }
  .toc__list { margin: 0; padding: 0; list-style: none; }
  .toc__list li + li { margin-top: var(--space-2); }
  .toc__list a { color: inherit; }
}

/* Headings the script moves focus to (tabindex="-1", for screen readers after a step like choosing an address)
   aren't controls, so they don't get the focus outline. */
h1[tabindex="-1"]:focus, h2[tabindex="-1"]:focus, h3[tabindex="-1"]:focus { outline: none; }

/* ----- Guides and council hubs (tools/build_content.py, docs/seo/) ----- */
.guide { max-width: var(--width-content); padding-top: var(--space-5); padding-bottom: var(--space-6); }
.guide-section { margin-top: var(--space-6); }
.guide-section h3 { margin-top: var(--space-4); font-size: var(--text-md); }
.guide-warning { margin: var(--space-5) 0; padding: var(--space-4); border-radius: var(--radius-card); background: var(--tbg); color: var(--tfg); }
.guide-warning p { margin: 0; }
.guide-warning__label { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-2) !important; font-weight: var(--weight-heading); }
.guide-items { list-style: none; padding: 0; margin: var(--space-3) 0; display: grid; gap: var(--space-2); }
.guide-item { display: flex; flex-direction: column; gap: 2px; padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-outline); border-left: 6px solid var(--tdot, var(--color-outline));
  border-radius: var(--radius-sm); background: var(--color-surface); color: var(--color-text); }
.guide-item a { font-weight: var(--weight-strong); }
.guide-item__verdict { font-size: var(--text-sm); }
.guide-index { list-style: none; padding: 0; display: grid; gap: var(--space-3); }
.guide-index li { display: flex; flex-direction: column; gap: 2px; }
.guide-index a { font-weight: var(--weight-strong); font-size: var(--text-md); }
.guide .bin-blocks { list-style: none; padding: 0; display: grid; gap: var(--space-3); }
.guide .bin-block__meta { font-size: 1rem; text-align: left; align-items: flex-start; }
.guide .bin-block { border-radius: var(--radius-card); overflow: hidden; }
.guide .bin-block__inner { padding: var(--space-4); }

/* ----- Council rankings (tools/build_rankings.py): tables scroll inside their box on narrow screens ----- */
.page-rankings .table-wrap { -webkit-overflow-scrolling: touch; }
.rank-table th.num, .rank-table td.num { text-align: right; white-space: nowrap; width: 1%; }
.rank-table tbody tr:target { background: var(--color-accent-soft); }
.rank-more { margin-top: var(--space-4); }
.rank-more > summary { cursor: pointer; font-weight: var(--weight-heading); padding: var(--space-2) 0; }
.page-rankings .az-list li:target, .page-rankings span:target { background: var(--color-accent-soft); }
.compare__items a { font-weight: normal; }
.compare-slot[hidden] { display: none; }
main.page > .compare-slot { padding-top: 0; }
main.page > .compare-slot .guide { padding-top: 0; }
/* The tables that list items: wide enough to read, scrolling sideways inside their box on a phone. */
.rank-table--wide { min-width: 34rem; }

/* "Get the app": the card under an answer (item pages, council hubs) and the Android-only banner at the top of
   the page (site.js initGetApp). Both sit in the page flow, never over it, so they can't cover the cookie
   banner or an ad. */
.get-app { background: var(--color-accent-soft); color: var(--color-text); }
main.page > .get-app { padding: var(--space-6) 0; }
.get-app--box { margin-top: var(--space-6); padding: var(--space-5); border-radius: var(--radius-card); }
.get-app__grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4) var(--space-6); }
.get-app__text { flex: 1 1 20em; min-width: 0; }
.get-app h2 { margin: 0 0 var(--space-2); font-size: var(--text-lg); }
.get-app__text p { margin: 0; max-width: 34em; }
.get-app .store-buttons { margin: 0; }
.app-banner { background: var(--color-accent-soft); color: var(--color-text); border-bottom: 1px solid var(--color-line); }
.app-banner__inner { display: flex; align-items: center; gap: var(--space-3); padding-top: var(--space-2); padding-bottom: var(--space-2); }
.app-banner__text { flex: 1 1 auto; min-width: 0; margin: 0; font-size: var(--text-sm); font-weight: var(--weight-strong); }
.app-banner__get { flex: none; }
.app-banner__close { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  margin-right: calc(-1 * var(--space-2)); padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
.app-banner__close:hover { background: rgba(0, 0, 0, 0.08); }
.app-banner__nowrap { white-space: nowrap; }
/* A phone: the line and the close button on top, the link under the line. */
@media (max-width: 599px) {
  .app-banner__inner { flex-wrap: wrap; column-gap: var(--space-2); row-gap: var(--space-2); padding-top: var(--space-3); padding-bottom: var(--space-3); }
  .app-banner__text { flex: 1 1 calc(100% - 44px - var(--space-2)); }
  .app-banner__close { order: 2; align-self: flex-start; margin-top: calc(-1 * var(--space-2)); }
  .app-banner__get { order: 3; }
}
