/* Best Immune: the main site, matched to the shop. Light by default, dark when the device asks
   for it or the visitor picks it (the choice is shared with the shop through a bestimmuneint.com cookie). */
@font-face { font-family: 'Gabarito'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(fonts/gabarito-latin-var.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: 'Gabarito'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(fonts/gabarito-latin-ext-var.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/hanken-grotesk-latin-var.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: 'Hanken Grotesk'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/hanken-grotesk-latin-ext-var.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: light;
  --page: #F7F8F8;
  --surface: #FFFFFF;
  --raised: #FFFFFF;
  --tint: #EAF7EF;
  --tint-strong: #D9F0E2;
  --tint-line: #C9E6D6;
  --line: #E2E8E9;
  --line-strong: #CFDADC;
  --text: #00303C;
  --text-soft: #234B56;
  --mute: #41626B;
  --accent: #007A2F;          /* links, icons, button fill */
  --accent-strong: #00622A;   /* hover */
  --on-accent: #FFFFFF;
  --red: #C41824;
  --band-ink: #00303C;
  --on-ink: #EAF4F2;
  --on-ink-soft: #B9D3D9;
  --shadow: 0 1px 2px rgba(0, 48, 60, .06), 0 8px 24px rgba(0, 48, 60, .07);
  --shadow-hover: 0 1px 2px rgba(0, 48, 60, .06), 0 14px 34px rgba(0, 48, 60, .12);
  --display: 'Gabarito', 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --body: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --r-card: 14px;
  --r-btn: 10px;
  --ease: cubic-bezier(.2, .7, .3, 1);
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #07161B; --surface: #0D2229; --raised: #14303A; --tint: #0F2A2A; --tint-strong: #143832; --tint-line: #21493F;
    --line: #214552; --line-strong: #2C5664; --text: #EAF4F2; --text-soft: #C9DDE0; --mute: #94B4BE;
    --accent: #3FD47A; --accent-strong: #6BE39A; --on-accent: #041E11; --red: #FF6B72;
    --band-ink: #0D2229; --on-ink: #EAF4F2; --on-ink-soft: #94B4BE;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .28);
    --shadow-hover: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 34px rgba(0, 0, 0, .4);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #07161B; --surface: #0D2229; --raised: #14303A; --tint: #0F2A2A; --tint-strong: #143832; --tint-line: #21493F;
  --line: #214552; --line-strong: #2C5664; --text: #EAF4F2; --text-soft: #C9DDE0; --mute: #94B4BE;
  --accent: #3FD47A; --accent-strong: #6BE39A; --on-accent: #041E11; --red: #FF6B72;
  --band-ink: #0D2229; --on-ink: #EAF4F2; --on-ink-soft: #94B4BE;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .28);
  --shadow-hover: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 34px rgba(0, 0, 0, .4);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--page); color: var(--text-soft); font: 400 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; }
img, svg, video, canvas { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4, h5, h6 { color: var(--text); font-family: var(--display); font-weight: 700; line-height: 1.1; letter-spacing: -.01em; text-wrap: balance; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.bi-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.bi-i { width: 20px; height: 20px; flex: none; }
.bi-skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--surface); color: var(--text); border-radius: var(--r-btn); box-shadow: var(--shadow); }
.bi-skip:focus { top: 12px; }

/* Buttons */
.bi-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border: 1px solid var(--accent); border-radius: var(--r-btn); background: var(--accent); color: var(--on-accent); font: 600 16px/1.2 var(--body); text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, box-shadow .2s var(--ease), transform .2s var(--ease); }
.bi-btn:hover, .bi-btn:focus-visible { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--on-accent); box-shadow: 0 6px 18px rgba(0, 98, 42, .22); }
.bi-btn:active { transform: translateY(1px); color: var(--on-accent); }
.bi-btn--sm { min-height: 40px; padding: 8px 14px; font-size: 15px; }
.bi-btn--lg { min-height: 52px; padding: 12px 26px; font-size: 17px; }
.bi-btn--ghost, .bi-btn--ghost:active { background: transparent; color: var(--accent); border-color: var(--line-strong); }
.bi-btn--ghost:hover, .bi-btn--ghost:focus-visible { background: var(--tint); color: var(--accent-strong); border-color: var(--tint-line); box-shadow: none; }
.bi-btn--light, .bi-btn--light:active { background: #FFFFFF; border-color: #FFFFFF; color: #00303C; }
.bi-btn--light:hover, .bi-btn--light:focus-visible { background: #EAF7EF; border-color: #EAF7EF; color: #00303C; }
.bi-btn--ghost-light, .bi-btn--ghost-light:active { background: transparent; border-color: rgba(234, 244, 242, .4); color: var(--on-ink); }
.bi-btn--ghost-light:hover, .bi-btn--ghost-light:focus-visible { background: rgba(234, 244, 242, .1); border-color: var(--on-ink); color: var(--on-ink); box-shadow: none; }
.bi-iconbtn { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: var(--r-btn); background: var(--surface); color: var(--text); cursor: pointer; }
.bi-iconbtn:hover { background: var(--tint); border-color: var(--tint-line); color: var(--accent); }
.bi-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.bi-more { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; text-decoration: none; }
.bi-more .bi-i { width: 18px; height: 18px; transition: transform .2s var(--ease); }
a:hover > .bi-more .bi-i, .bi-more:hover .bi-i { transform: translateX(3px); }

/* Header */
.bi-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.bi-header__bar { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.bi-header__logo { display: block; flex: none; line-height: 0; }
.bi-logo { width: 150px; height: auto; }
.bi-header__tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.bi-theme .bi-i:last-child, :root[data-theme="dark"] .bi-theme .bi-i:first-child { display: none; }
:root[data-theme="dark"] .bi-theme .bi-i:last-child { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bi-theme .bi-i:first-child { display: none; } :root:not([data-theme="light"]) .bi-theme .bi-i:last-child { display: block; } }
.bi-menu .bi-i:last-child, .bi-menu[aria-expanded="true"] .bi-i:first-child { display: none; }
.bi-menu[aria-expanded="true"] .bi-i:last-child { display: block; }
.bi-nav__list { list-style: none; margin: 0; padding: 0; }
.bi-nav a { display: block; color: var(--text); font-weight: 500; text-decoration: none; border-radius: 8px; }
.bi-nav a:hover, .bi-nav a[aria-current="page"], .bi-nav .current-menu-item > a { color: var(--accent); }
/* Phones: the menu opens as a panel under the bar */
.bi-nav { position: absolute; left: 0; right: 0; top: 100%; display: none; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
.bi-nav.is-open { display: block; }
.bi-nav__list { padding: 8px var(--gutter) 16px; }
.bi-nav__list a { padding: 13px 4px; border-bottom: 1px solid var(--line); font-size: 18px; }
.bi-nav__list li:last-child a { border-bottom: 0; }
@media (min-width: 980px) {
  .bi-menu { display: none; }
  .bi-nav { position: static; display: block; background: none; border: 0; box-shadow: none; margin-left: 12px; }
  .bi-nav__list { display: flex; gap: 2px; padding: 0; }
  .bi-nav__list a { padding: 8px 12px; border: 0; font-size: 16px; }
  .bi-nav__list a:hover { background: var(--tint); }
  .bi-logo { width: 170px; }
}

/* Sections */
.bi-main { display: block; }
.bi-band { padding: clamp(48px, 7vw, 88px) 0; }
.bi-band--tint { background: var(--tint); }
.bi-band--ink { background: var(--band-ink); color: var(--on-ink-soft); }
.bi-band--ink .bi-section-title { color: var(--on-ink); }
.bi-section-title { font-size: clamp(28px, 1.2rem + 1.9vw, 42px); letter-spacing: -.01em; }
.bi-section-title a { color: inherit; text-decoration: none; }
.bi-eyebrow { margin: 0 0 10px; color: var(--accent); font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.bi-band__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; }
.bi-band__head .bi-section-title { margin: 0; }
.bi-split { display: grid; gap: 8px 48px; }
@media (min-width: 860px) { .bi-split { grid-template-columns: 5fr 7fr; align-items: start; } }
.bi-prose--lead { font-size: clamp(17px, .95rem + .35vw, 20px); color: var(--text-soft); }

/* Hero: the shop's packs over a slow fermentation animation */
.bi-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--tint) 0%, var(--page) 100%); }
.bi-hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.35), #000 92%); mask-image: linear-gradient(180deg, rgba(0,0,0,.35), #000 92%); }
@media (min-width: 900px) { .bi-hero__canvas { -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.25) 0, rgba(0,0,0,.35) 42%, #000 62%); mask-image: linear-gradient(90deg, rgba(0,0,0,.25) 0, rgba(0,0,0,.35) 42%, #000 62%); } }
.bi-hero__grid { position: relative; display: grid; gap: 24px; align-items: center; padding-top: clamp(36px, 6vw, 72px); padding-bottom: clamp(36px, 6vw, 80px); }
.bi-hero__title { font-size: clamp(36px, 1.4rem + 3.6vw, 64px); font-weight: 600; letter-spacing: -.015em; line-height: 1.05; margin-bottom: 18px; }
.bi-hero__lead { max-width: 34em; font-size: clamp(18px, 1rem + .4vw, 21px); color: var(--text-soft); margin-bottom: 28px; }
.bi-hero__art { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 280px; }
.bi-hero__pack { position: relative; width: clamp(130px, 30vw, 240px); filter: drop-shadow(0 22px 28px rgba(0, 48, 60, .22)); animation: bi-rise 1.1s var(--ease) both; }
.bi-hero__pack--back { position: absolute; width: clamp(110px, 24vw, 196px); transform: translate(58%, -8%) rotate(7deg); opacity: .96; animation-delay: .12s; }
@keyframes bi-rise { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
@media (min-width: 900px) { .bi-hero__grid { grid-template-columns: 7fr 5fr; } .bi-hero__art { min-height: 420px; } }

/* Product cards */
.bi-products { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .bi-products { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.bi-product { display: flex; flex-direction: column; height: 100%; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); color: inherit; text-decoration: none; transition: box-shadow .25s var(--ease), transform .25s var(--ease), border-color .2s; }
.bi-product:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); border-color: var(--line-strong); color: inherit; }
.bi-product__img { position: relative; display: block; aspect-ratio: 1; margin-bottom: 12px; border-radius: 10px; background: var(--tint); overflow: hidden; }
.bi-product__img img { position: absolute; inset: 7%; width: 86%; height: 86%; object-fit: contain; transition: transform .35s var(--ease); }
.bi-product:hover .bi-product__img img { transform: scale(1.04); }
.bi-product__name { color: var(--text); font: 600 19px/1.2 var(--display); }
.bi-product__sub { margin-top: 4px; color: var(--mute); font-size: 15px; line-height: 1.4; }
.bi-product__go { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 12px; color: var(--accent); font-weight: 600; font-size: 15px; }
.bi-product__go .bi-i { width: 16px; height: 16px; }

/* Range cards */
.bi-ranges { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 820px) { .bi-ranges { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.bi-range { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 24px; background: var(--surface); border: 1px solid var(--tint-line); border-radius: var(--r-card); color: inherit; text-decoration: none; transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.bi-range:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); color: inherit; }
.bi-range__art { display: block; width: 112px; height: 112px; margin: -4px 0 4px -6px; }
.bi-range__art .bi-art { width: 100%; height: 100%; }
.bi-range__title { color: var(--text); font: 600 23px/1.2 var(--display); }
.bi-range__text { color: var(--text-soft); }
.bi-range .bi-more { margin-top: auto; padding-top: 8px; }

/* Reasons */
.bi-why { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px 32px; }
@media (min-width: 760px) { .bi-why { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bi-why li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--tint-line); }
.bi-why strong { color: var(--text); }
.bi-why__mark { display: block; width: 40px; height: 40px; flex: none; }
.bi-why__mark .bi-art { width: 100%; height: 100%; }

.bi-cta-band { display: grid; gap: 20px; align-items: center; }
.bi-cta-band p { margin: 0; }
@media (min-width: 900px) { .bi-cta-band { grid-template-columns: 1fr auto; } }

/* Inner pages */
.bi-page__head { padding: clamp(32px, 5vw, 56px) 0 clamp(20px, 3vw, 28px); background: linear-gradient(180deg, var(--tint), var(--page)); }
.bi-page__title { font-size: clamp(32px, 1.3rem + 2.6vw, 52px); margin: 0; }
.bi-entry { padding-bottom: clamp(48px, 7vw, 88px); }
.bi-entry > :first-child { margin-top: 0; }
.bi-row { display: grid; gap: 20px 32px; margin: 0 0 clamp(24px, 4vw, 40px); }
@media (min-width: 760px) {
  .bi-row { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .bi-col--full { grid-column: span 12; } .bi-col--half { grid-column: span 6; } .bi-col--third { grid-column: span 4; }
  .bi-col--two-thirds { grid-column: span 8; } .bi-col--quarter { grid-column: span 3; } .bi-col--three-quarters { grid-column: span 9; }
}
.bi-prose { max-width: 72ch; }
.bi-col--full > .bi-prose { margin-inline: auto; }
/* Words typed in the old editor kept their own colours and fonts; here they follow the theme */
.bi-entry [style*="color"], .bi-entry font { color: inherit !important; }
.bi-entry [style*="font-family"] { font-family: inherit !important; }
.bi-entry [style*="padding-left"] { padding-left: 0 !important; }
.bi-entry [style*="font-size"] { font-size: inherit !important; }
.bi-entry .bi-prose [style*="text-align"] { text-align: left !important; }
.bi-entry .bi-prose h4 strong, .bi-entry .bi-prose h5 strong, .bi-entry .bi-prose h6 strong { font-weight: 700; color: var(--text); }
.bi-entry .bi-prose h4, .bi-entry .bi-prose h5, .bi-entry .bi-prose h6 { font-weight: 400; margin: 0 0 .8em; }
.bi-entry h2, .bi-entry h3 { font-size: clamp(24px, 1.1rem + 1vw, 32px); margin-top: 1.4em; }
.bi-entry h4, .bi-entry h5, .bi-entry h6 { font-family: var(--body); font-size: 18px; font-weight: 600; line-height: 1.5; color: var(--text-soft); }
.bi-entry ul { padding-left: 1.2em; }
.bi-entry li { margin-bottom: .4em; }
.bi-entry li::marker { color: var(--accent); }
.bi-entry img { border-radius: 10px; }
.bi-figure { margin: 0; text-align: center; }
.bi-figure img { width: auto; max-height: 520px; }
.bi-gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 560px) { .bi-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .bi-gallery { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.bi-gallery li { aspect-ratio: 1; display: grid; place-items: center; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.bi-gallery img { max-height: 100%; width: auto; object-fit: contain; border-radius: 6px; }
.bi-tile { display: flex; flex-direction: column; gap: 10px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); color: var(--text); text-decoration: none; box-shadow: var(--shadow); }
.bi-tile:hover { box-shadow: var(--shadow-hover); color: var(--text); }
.bi-tile__title { font: 600 19px/1.25 var(--display); }
.bi-tile__img { display: grid; place-items: center; height: 240px; border-radius: 10px; background: var(--tint); }
.bi-tile__img img { max-height: 220px; width: auto; object-fit: contain; }
.bi-cta { margin: 0 0 1em; }
.bi-raw { text-align: center; font-size: 19px; }
.bi-list { list-style: none; padding: 0; }
.bi-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }

/* Contact form (Contact Form 7) in the shop's form style */
.bi-form { max-width: 640px; }
.bi-form label { display: block; color: var(--text); font-weight: 600; }
.bi-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]), .bi-form textarea, .bi-form select { width: 100%; min-height: 48px; margin-top: 6px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-btn); background: var(--surface); color: var(--text); font: 16px/1.4 var(--body); }
.bi-form textarea { min-height: 160px; }
.bi-form input:focus, .bi-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.bi-form input[type="submit"] { min-height: 48px; padding: 10px 24px; border: 0; border-radius: var(--r-btn); background: var(--accent); color: var(--on-accent); font: 600 16px var(--body); cursor: pointer; }
.bi-form input[type="submit"]:hover { background: var(--accent-strong); }
.bi-form .wpcf7-response-output { margin: 16px 0 0 !important; padding: 12px 16px !important; border-radius: var(--r-btn); }

/* WooCommerce catalogue pages: buying happens in the shop */
.bi-wc .woocommerce-breadcrumb { margin: 24px 0 8px; color: var(--mute); font-size: 15px; }
.bi-wc div.product { display: grid; gap: 24px 48px; padding-top: 16px; }
@media (min-width: 860px) { .bi-wc div.product { grid-template-columns: 5fr 7fr; } .bi-wc div.product > .woocommerce-tabs, .bi-wc div.product > .related, .bi-wc div.product > .up-sells { grid-column: 1 / -1; } }
.bi-wc .woocommerce-product-gallery { margin: 0; }
.bi-wc .woocommerce-product-gallery__wrapper { margin: 0; }
.bi-wc .woocommerce-product-gallery img { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.bi-wc .product_title { font-size: clamp(30px, 1.2rem + 2vw, 44px); }
.bi-wc .price, .bi-wc .cart, .bi-wc .product_meta, .bi-wc .woocommerce-tabs ul.tabs { display: none; }
.bi-wc .related ul.products, .bi-wc ul.products { list-style: none; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .bi-wc ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.bi-wc ul.products li a { color: var(--text); text-decoration: none; }
.bi-wc ul.products .button, .bi-wc ul.products .price { display: none; }
.bi-buy { margin: 16px 0 0; }

/* Footer */
.bi-footer { background: var(--band-ink); color: var(--on-ink-soft); padding: 56px 0 0; font-size: 16px; }
:root[data-theme="dark"] .bi-footer { border-top: 1px solid var(--line); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bi-footer { border-top: 1px solid var(--line); } }
.bi-footer a { color: var(--on-ink); text-decoration: none; }
.bi-footer a:hover { color: var(--on-ink); text-decoration: underline; }
.bi-footer__grid { display: grid; gap: 32px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bi-footer__brand { grid-column: 1 / -1; max-width: 32em; }
@media (min-width: 900px) { .bi-footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } .bi-footer__brand { grid-column: auto; } }
.bi-logo--footer { width: 180px; margin-bottom: 16px; }
.bi-footer__h { color: var(--on-ink); font: 700 13px/1.4 var(--body); letter-spacing: .08em; text-transform: uppercase; margin: 0 0 12px; }
.bi-footer__list { list-style: none; margin: 0; padding: 0; }
.bi-footer__list li { margin: 0 0 10px; }
.bi-footer__base { margin-top: 40px; padding-top: 20px; padding-bottom: 24px; border-top: 1px solid rgba(234, 244, 242, .14); font-size: 14px; }
.bi-footer__base p { margin: 0; }

/* Brand drawings: green lines, red details, soft mint fill; lifted for dark mode */
.bi-art { --g: #007A2F; --r: #EE3442; --t: #EAF7EF; display: block; }
.bi-band--tint .bi-art { --t: #FFFFFF; }
:root[data-theme="dark"] .bi-art { --g: #3FD47A; --r: #FF6B72; --t: #14303A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bi-art { --g: #3FD47A; --r: #FF6B72; --t: #14303A; } }

/* Logo colours: the logo's own red and green on light; lifted a little on dark so they stay clear */
:root { --logo-red: #EE3442; --logo-green: #01A951; --logo-head: #40B75B; }
:root[data-theme="dark"], .bi-footer { --logo-red: #FF6B72; --logo-green: #3FD47A; --logo-head: #6BE39A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --logo-red: #FF6B72; --logo-green: #3FD47A; --logo-head: #6BE39A; } }
.bi-logo { display: block; height: auto; aspect-ratio: 2682 / 756; }

/* Press page */
.bi-press-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--tint) 0%, var(--page) 100%); }
.bi-press-hero__art { position: absolute; inset: 0; display: flex; justify-content: flex-end; pointer-events: none; }
.bi-press-hero__art .bi-art { width: auto; height: 100%; min-width: 900px; opacity: .9; }
.bi-press-hero__copy { position: relative; padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(48px, 8vw, 96px); max-width: var(--wrap); }
.bi-press-hero__copy > * { max-width: 36rem; }
@media (max-width: 899px) { .bi-press-hero__art { opacity: .35; } }
.bi-facts { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 700px) { .bi-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1060px) { .bi-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.bi-fact { padding: 22px; background: var(--surface); border: 1px solid var(--tint-line); border-radius: var(--r-card); }
.bi-fact__art { display: block; width: 48px; height: 48px; margin-bottom: 12px; }
.bi-fact__art .bi-art { width: 100%; height: 100%; }
.bi-fact__title { font-size: 21px; margin: 0 0 6px; }
.bi-fact p { margin: 0; font-size: 16px; }
.bi-note { color: var(--mute); max-width: 60ch; }
.bi-downloads { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.bi-download { display: flex; flex-direction: column; gap: 6px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.bi-download__show { display: grid; place-items: center; height: 150px; margin-bottom: 6px; padding: 18px; border-radius: 10px; border: 1px solid var(--line); }
.bi-download__show { overflow: hidden; }
.bi-download__show img { display: block; width: 100%; height: 112px; object-fit: contain; } /* fixed box: Safari ignores a % height inside a grid cell, and the SVGs have no size of their own */
.bi-download__show--light { background: #FFFFFF; }
.bi-download__show--dark { background: #07161B; }
.bi-download__show--ink { background: #007A2F; }
.bi-download__title { color: var(--text); font-weight: 700; }
.bi-download__desc { color: var(--mute); font-size: 15px; margin-bottom: 8px; }
.bi-download .bi-btn { align-self: flex-start; margin-top: auto; }
.bi-swatches { list-style: none; margin: 8px 0 28px; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.bi-swatches li { display: flex; flex-direction: column; gap: 2px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.bi-swatch { display: block; height: 64px; margin-bottom: 8px; border-radius: 8px; border: 1px solid rgba(0, 48, 60, .12); }
.bi-swatches strong { color: var(--text); font-size: 15px; }
.bi-swatches code { color: var(--mute); font: 14px ui-monospace, SFMono-Regular, Menlo, monospace; }
.bi-type p { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 0 0 8px; color: var(--mute); }
.bi-type__sample { color: var(--text); font: 600 30px/1.2 var(--body); }
.bi-type__sample--display { font-family: var(--display); }

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

/* Languages: the header menu, the footer list and the note offering a visitor their own language */
.bi-lang { position: relative; }
.bi-lang > summary { list-style: none; width: auto; min-width: 44px; padding: 0 10px; gap: 6px; display: inline-flex; align-items: center; }
.bi-lang > summary::-webkit-details-marker { display: none; }
.bi-lang__code { font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.bi-lang__list { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 170px; margin: 0; padding: 6px; list-style: none; background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-hover); }
.bi-lang__list a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 500; }
.bi-lang__list a:hover { background: var(--tint); color: var(--accent); }
.bi-lang__list a[aria-current] { color: var(--accent); font-weight: 700; }
.bi-footer__langs { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px !important; }
.bi-footer__langs a { color: inherit; text-decoration: none; }
.bi-footer__langs a:hover, .bi-footer__langs a[aria-current] { color: var(--on-ink); text-decoration: underline; text-underline-offset: 3px; }
.bi-langnote { position: fixed; z-index: 40; left: 50%; bottom: 16px; translate: -50% 0; width: min(560px, calc(100% - 32px)); display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; background: var(--raised); color: var(--text); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-hover); }
.bi-langnote p { margin: 0; flex: 1; font-size: 15px; }
.bi-langnote .bi-iconbtn { flex: none; }

/* Where to buy: every shop and marketplace, the visitor's own first */
.bi-buyto { display: grid; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.bi-buyto__item { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; min-height: 64px; padding: 12px 16px; border: 1px solid rgba(234, 244, 242, .18); border-radius: var(--r-card); color: var(--on-ink); text-decoration: none; transition: background .2s var(--ease), border-color .2s var(--ease); }
.bi-buyto__item:hover { background: rgba(234, 244, 242, .07); border-color: rgba(234, 244, 242, .4); }
.bi-buyto__name { font-weight: 700; }
.bi-buyto__note { grid-column: 1; font-size: 14px; color: var(--on-ink-soft); }
.bi-buyto__item .bi-i { grid-row: 1 / span 2; grid-column: 2; width: 20px; height: 20px; }
/* German and Polish have very long words: let headings break them properly instead of running off a phone screen */
html:not([lang^="en"]) :is(h1, h2, h3, .bi-hero__title, .bi-section-title, .bi-page__title) { -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; }
html:not([lang^="en"]) .bi-btn { overflow-wrap: anywhere; }
.bi-hero__grid > *, .bi-split > *, .bi-cta-band > * { min-width: 0; }
html, body { overflow-x: clip; }

/* Amazon UK ratings on the product cards, and the "Also on Amazon" link under each card */
.bi-products > li { display: flex; flex-direction: column; gap: 8px; }
.bi-products > li > .bi-product { flex: 1; height: auto; }
.bi-product__rating { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; margin-top: 8px; font-size: 14px; color: var(--mute); }
.bi-product__rating strong { color: var(--text); }
.bi-stars { position: relative; display: inline-block; font-size: 15px; line-height: 1; letter-spacing: 1px; color: var(--line-strong); }
.bi-stars::before, .bi-stars > span::before { content: "★★★★★"; }
.bi-stars > span { position: absolute; inset: 0 auto 0 0; width: var(--pct); overflow: hidden; white-space: nowrap; color: #E89B0C; }
:root[data-theme="dark"] .bi-stars > span { color: #FFB627; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bi-stars > span { color: #FFB627; } }
.bi-product__alt { align-self: flex-start; padding: 4px 2px; font-size: 14px; font-weight: 600; color: var(--accent); text-underline-offset: 3px; }
.bi-by { display: inline-block; margin-left: 10px; }
.bi-by a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* Phones: logo, language, theme, shop and menu must all fit one row at 320-560px.
   Language and Shop go icon-only (Shop keeps its name for screen readers). */
@media (max-width: 559px) {
  .bi-header__bar { gap: 10px; }
  .bi-header__logo { flex: 0 1 auto; min-width: 0; }
  .bi-logo { width: 124px; max-width: 100%; }
  .bi-header__tools { gap: 6px; flex: none; }
  .bi-header__tools .bi-iconbtn { width: 40px; height: 40px; }
  .bi-lang > summary { min-width: 40px; padding: 0; justify-content: center; }
  .bi-lang__code { display: none; }
  .bi-header__tools .bi-btn { width: 40px; min-height: 40px; height: 40px; padding: 0; gap: 0; }
  .bi-header__tools .bi-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* Where to buy: every card the same height, whichever wraps to two lines (Graham, 28 Oct) */
.bi-buyto { grid-auto-rows: 1fr; }
.bi-buyto > li { display: flex; }
.bi-buyto__item { flex: 1; align-content: center; }
