/* Quietbench design system v1. One file shared by every Quietbench site.
   Served from https://quietbench.co.uk/ds/v1/qb.css. Font: Inter (SIL OFL 1.1, see OFL.txt).
   Theme: follows the device by default; <html data-theme="light|dark"> overrides (set by theme.js). */
@font-face { font-family: "Inter"; src: url("inter.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  --pine: #1E3D36; --paper: #F4F1EA;
  --bg: #F4F1EA; --surface: #FCFBF8; --soft: #ECE8DE; --line: #D9D3C5; --line-strong: #B9B2A2;
  --ink: #1E3D36; --text: #26302D; --muted: #55625D;
  --accent: #1E3D36; --accent-hover: #2A5249; --on-accent: #F4F1EA; --tint: #E3ECE8; --focus: #1E3D36;
  /* Status tags: [bg, text] */
  --t-yes-bg: #1E3D36; --t-yes: #F4F1EA;
  --t-likely-bg: #D6E8DE; --t-likely: #17402F;
  --t-maybe-bg: #F5E6C4; --t-maybe: #6B4600;
  --t-unknown-bg: #E6E2D9; --t-unknown: #48514D;
  --t-no-bg: #F5D9D5; --t-no: #8A1C17;
  --t-info-bg: transparent; --t-info: #1E3D36; --t-info-line: #B9B2A2;
  --warn-bg: #FBF0DC; --warn-line: #B7791F; --warn-text: #7A4A00; --ok-bg: #E4EDE8; --error: #A3201B;
  --qb-tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%232E7D5B' d='M12 1l2.6 2.1 3.3-.4 1.2 3.1 3.1 1.2-.4 3.3L23 12l-2.1 2.6.4 3.3-3.1 1.2-1.2 3.1-3.3-.4L12 23l-2.6-2.1-3.3.4-1.2-3.1-3.1-1.2.4-3.3L1 12l2.1-2.6-.4-3.3 3.1-1.2 1.2-3.1 3.3.4z'/%3E%3Cpath d='M7.3 12.3l3.1 3.1 6.3-6.6' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); --radius: 10px; --shadow: 0 6px 20px rgba(30, 61, 54, .10);
  color-scheme: light;
}
/* Dark: warm charcoal, not green. Green stays an accent. */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #161917; --surface: #1E2220; --soft: #262B28; --line: #323834; --line-strong: #48504B;
  --ink: #F4F1EA; --text: #E4E0D6; --muted: #A6ADA7;
  --accent: #8FCBB2; --accent-hover: #A9D9C4; --on-accent: #10231E; --tint: #1F3029; --focus: #8FCBB2;
  --t-yes-bg: #8FCBB2; --t-yes: #10231E;
  --t-likely-bg: #1F3A2F; --t-likely: #B9E2CF;
  --t-maybe-bg: #3A2F17; --t-maybe: #F0D08C;
  --t-unknown-bg: #2B302D; --t-unknown: #C3C8C2;
  --t-no-bg: #3D1F1C; --t-no: #F2B3AB;
  --t-info: #E4E0D6; --t-info-line: #48504B;
  --warn-bg: #33291A; --warn-line: #D69E3A; --warn-text: #F0D08C; --ok-bg: #1F3029; --error: #F28B80;
  --qb-tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%233A9A70' d='M12 1l2.6 2.1 3.3-.4 1.2 3.1 3.1 1.2-.4 3.3L23 12l-2.1 2.6.4 3.3-3.1 1.2-1.2 3.1-3.3-.4L12 23l-2.6-2.1-3.3.4-1.2-3.1-3.1-1.2.4-3.3L1 12l2.1-2.6-.4-3.3 3.1-1.2 1.2-3.1 3.3.4z'/%3E%3Cpath d='M7.3 12.3l3.1 3.1 6.3-6.6' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); --shadow: 0 6px 20px rgba(0, 0, 0, .35);
  color-scheme: dark;
} }
:root[data-theme="dark"] {
  --bg: #161917; --surface: #1E2220; --soft: #262B28; --line: #323834; --line-strong: #48504B;
  --ink: #F4F1EA; --text: #E4E0D6; --muted: #A6ADA7;
  --accent: #8FCBB2; --accent-hover: #A9D9C4; --on-accent: #10231E; --tint: #1F3029; --focus: #8FCBB2;
  --t-yes-bg: #8FCBB2; --t-yes: #10231E;
  --t-likely-bg: #1F3A2F; --t-likely: #B9E2CF;
  --t-maybe-bg: #3A2F17; --t-maybe: #F0D08C;
  --t-unknown-bg: #2B302D; --t-unknown: #C3C8C2;
  --t-no-bg: #3D1F1C; --t-no: #F2B3AB;
  --t-info: #E4E0D6; --t-info-line: #48504B;
  --warn-bg: #33291A; --warn-line: #D69E3A; --warn-text: #F0D08C; --ok-bg: #1F3029; --error: #F28B80;
  --qb-tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%233A9A70' d='M12 1l2.6 2.1 3.3-.4 1.2 3.1 3.1 1.2-.4 3.3L23 12l-2.1 2.6.4 3.3-3.1 1.2-1.2 3.1-3.3-.4L12 23l-2.6-2.1-3.3.4-1.2-3.1-3.1-1.2.4-3.3L1 12l2.1-2.6-.4-3.3 3.1-1.2 1.2-3.1 3.3.4z'/%3E%3Cpath d='M7.3 12.3l3.1 3.1 6.3-6.6' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); --shadow: 0 6px 20px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16.5px/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-feature-settings: "cv11"; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; letter-spacing: -.018em; font-weight: 650; }
h1 { font-size: clamp(1.75rem, 4vw, 2.3rem); margin: .2em 0 .6em; text-wrap: balance; }
h2 { font-size: 1.35rem; margin: 2.2em 0 .7em; }
h3 { font-size: 1.08rem; margin: 1.4em 0 .45em; }
strong { font-weight: 650; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 6px; z-index: 10; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); } .small { font-size: .9rem; }
.lead { font-size: 1.15rem; line-height: 1.55; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .86em; background: var(--soft); padding: 1px 5px; border-radius: 4px; }

/* Layout */
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }

/* Header and footer (same on every site) */
.qb-header { border-bottom: 1px solid var(--line); }
.qb-header .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; }
.qb-brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em; }
.qb-by { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); text-decoration: none; font-size: .8rem; font-weight: 500; }
.qb-by .qb-wordmark { color: inherit; }
.qb-by:hover { color: var(--ink); }
.qb-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; }
.qb-nav a { color: var(--text); text-decoration: none; font-size: .93rem; font-weight: 500; padding: 4px 0; border-bottom: 2px solid transparent; }
.qb-nav a:hover, .qb-nav a[aria-current] { color: var(--ink); border-bottom-color: currentColor; }
.qb-footer { border-top: 1px solid var(--line); margin-top: 64px; padding: 28px 0 48px; color: var(--muted); font-size: .88rem; }
.qb-footer p { margin: .4em 0; }
.qb-footer a { color: var(--muted); } .qb-footer a:hover { color: var(--ink); }

/* Theme switch: three small buttons (System / Light / Dark) */
.qb-theme { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; padding: 2px; gap: 2px; }
.qb-theme button { font: inherit; font-size: .78rem; font-weight: 500; border: 0; background: transparent; color: var(--muted); padding: 3px 10px; border-radius: 999px; cursor: pointer; }
.qb-theme button[aria-pressed="true"] { background: var(--soft); color: var(--ink); }

/* Buttons and inputs */
.btn, button { font: inherit; font-size: .95rem; font-weight: 500; line-height: 1.3; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); padding: 8px 16px; border-radius: 8px; cursor: pointer; transition: background-color .12s, border-color .12s; }
.btn:hover, button:hover { background: var(--soft); border-color: var(--ink); }
button:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary, button.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.btn.primary:hover, button.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
a.btn { display: inline-block; text-decoration: none; }
input[type="text"], input[type="search"], input[type="email"], input[type="url"], input[type="date"], input[type="number"], select, textarea { font: inherit; font-size: .95rem; padding: 7px 10px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface); color: var(--text); max-width: 100%; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); width: 1.05em; height: 1.05em; }
.qb-search { width: 100%; font-size: 1.1rem !important; padding: 12px 16px !important; border-radius: 12px !important; }

/* Cards */
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 14px 0; background: var(--surface); }
.card.link { position: relative; transition: border-color .15s, box-shadow .15s; }
.card.link:hover, .card.link:focus-within { border-color: var(--ink); box-shadow: var(--shadow); }
.stretched::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.raised { position: relative; z-index: 1; }

/* Tags: one look for every status and label. <span class="tag yes">Vegan</span> */
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; line-height: 1.5; white-space: nowrap; background: var(--t-unknown-bg); color: var(--t-unknown); }
.tag.yes { background: var(--t-yes-bg); color: var(--t-yes); }
.tag.likely { background: var(--t-likely-bg); color: var(--t-likely); }
.tag.maybe { background: var(--t-maybe-bg); color: var(--t-maybe); }
.tag.unknown { background: var(--t-unknown-bg); color: var(--t-unknown); }
.tag.no { background: var(--t-no-bg); color: var(--t-no); }
.tag.info { background: var(--t-info-bg); color: var(--t-info); box-shadow: inset 0 0 0 1px var(--t-info-line); }

/* Tick badge: green seal with a white tick. <span class="qb-tick" role="img" aria-label="Confirmed"></span> */
.qb-tick { display: inline-block; width: 1.25em; height: 1.25em; flex: none; vertical-align: -.25em; background: var(--qb-tick) center/contain no-repeat; }
.qb-tick.lg { width: 2.2em; height: 2.2em; }

/* Notices */
.notice { background: var(--warn-bg); border-left: 4px solid var(--warn-line); padding: 12px 16px; margin: 16px 0; border-radius: 0 var(--radius) var(--radius) 0; }
.notice.ok { background: var(--ok-bg); border-left-color: var(--accent); }
.notice > :first-child { margin-top: 0; } .notice > :last-child { margin-bottom: 0; }
.error { color: var(--error); }

/* Prose (guides, legal pages) */
.prose { line-height: 1.7; }
.prose table { border-collapse: collapse; width: 100%; margin: 16px 0; font-size: .94rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--soft); color: var(--ink); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }

@media (max-width: 600px) {
  .wrap { padding: 0 18px; }
  .qb-header .wrap { padding-top: 14px; padding-bottom: 12px; }
  .qb-nav { gap: 0 16px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { .qb-nav, .qb-theme, .skip { display: none; } body { background: #fff; color: #000; } }

/* Logo: drawn with the text colour so it follows the theme. Lockup = mark + wordmark. */
.qb-lockup, .qb-wordmark { display: block; background: currentColor; color: var(--ink); -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.qb-lockup { -webkit-mask-image: url("lockup.svg"); mask-image: url("lockup.svg"); height: 26px; aspect-ratio: 318 / 44.72; }
.qb-wordmark { -webkit-mask-image: url("wordmark.svg"); mask-image: url("wordmark.svg"); height: 13px; aspect-ratio: 239.52 / 44.72; }
