/*
 * NBSUK redesign styles. Generated by scripts/build-nbs-assets.php from the
 * prototype (prototype/assets/css/nbs). Don't edit: rebuild instead.
 * rem units are written as px (the site sets html { font-size: 10px }).
 */

/* ===== tokens.css ===== */
/*
 * NBSUK design tokens.
 *
 * Variables only: this file styles nothing by itself. The --nbs- prefix keeps them clear of
 * Bootstrap's variables (--primary, --blue, …) and the existing site CSS.
 *
 * The brand colours are the live site's: header red #d93939, heading navy #232d80.
 * Contrast ratios are WCAG 2.x. Colour roles are explained in docs/design-decisions.md (DD-05).
 */
:root {
  /* Brand: red is identity and accent; navy is structure and interaction. */
  --nbs-red-500: #d93939;   /* existing brand red. White text on it 4.57:1. As text: white backgrounds only (4.57:1); fails on --nbs-surface-muted (4.23:1). */
  --nbs-red-700: #b42828;   /* red for text and small marks: 6.41:1 on white, 5.93:1 on muted */
  --nbs-red-050: #fdf0f0;
  --nbs-navy-700: #232d80;  /* existing brand navy: 11.94:1 on white */
  --nbs-navy-900: #161c4f;  /* deep navy for dark surfaces: white text 15.99:1 */
  --nbs-navy-100: #e3e6f4;
  --nbs-navy-050: #f2f3fa;

  /* Neutrals */
  --nbs-ink: #1b1f2e;            /* body text: 16.38:1 on white */
  --nbs-ink-muted: #4a5163;      /* secondary text: 7.93:1 on white, 7.34:1 on muted */
  --nbs-surface: #ffffff;
  --nbs-surface-muted: #f5f6f9;  /* section bands, table stripes */
  --nbs-border: #dfe2ea;         /* decorative dividers only (1.30:1) */
  --nbs-border-strong: #c3c8d4;  /* decorative only (1.68:1); form-control borders need >= 3:1, so use --nbs-ink-muted */

  /* Status colours: always with a text label or icon, never colour alone. */
  --nbs-positive-700: #1e7a46;   /* 5.35:1 on white, 4.81:1 on its tint */
  --nbs-positive-050: #e9f6ee;
  --nbs-caution-700: #8a5a00;    /* 5.93:1 on white, 5.46:1 on its tint */
  --nbs-caution-050: #fdf5e3;
  --nbs-negative-700: #b42828;   /* 6.41:1 on white, 5.77:1 on its tint */
  --nbs-negative-050: #fdf0f0;

  /* Rating stars: decorative only (the rating is always given as text), so no contrast requirement. */
  --nbs-star: #e3a008;

  /* Colour roles: components use these, not the raw palette. */
  --nbs-color-text: var(--nbs-ink);
  --nbs-color-text-muted: var(--nbs-ink-muted);
  --nbs-color-heading: var(--nbs-navy-700);
  --nbs-color-link: var(--nbs-navy-700);
  --nbs-color-link-hover: var(--nbs-red-700);
  --nbs-color-accent: var(--nbs-red-500);
  --nbs-color-focus: var(--nbs-navy-700);       /* on light surfaces */
  --nbs-color-focus-inverse: #ffffff;           /* on red/navy surfaces: 4.57:1 on red, 11.94:1 on navy */

  /* Typography. Nunito Sans, the site's existing font. */
  --nbs-font-sans: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --nbs-weight-regular: 400;
  --nbs-weight-medium: 500;
  --nbs-weight-semibold: 600;
  --nbs-weight-bold: 700;
  --nbs-weight-heavy: 800;

  /* Heading weights as on the live site: H1 700, H2 and H3 500, H4 700. */
  --nbs-weight-h1: var(--nbs-weight-bold);
  --nbs-weight-h2: var(--nbs-weight-medium);
  --nbs-weight-h3: var(--nbs-weight-medium);
  --nbs-weight-h4: var(--nbs-weight-bold);

  /* Type scale: fluid between ~360px and ~1280px viewports. Values in rem (16px root). */
  --nbs-text-xs: 13px;                                    /* 13px: terms, fine print */
  --nbs-text-sm: 14px;                                     /* 14px: metadata, captions */
  --nbs-text-md: 16px;                                         /* 16px: table cells, UI text */
  --nbs-text-base: clamp(17px, 15.68px + 0.33vw, 19px); /* 17px → 19px: body copy (19px from about 1024px wide) */
  --nbs-text-lead: clamp(19px, 17.6px + 0.4vw, 21px);   /* 19px → 21px: introductions */
  --nbs-text-h4: clamp(17px, 16px + 0.3vw, 19px);       /* 17px → 19px */
  --nbs-text-h3: clamp(20px, 18.4px + 0.45vw, 24px);        /* 20px → 24px */
  --nbs-text-h2: clamp(24px, 20.8px + 0.9vw, 32px);             /* 24px → 32px */
  --nbs-text-h1: clamp(26px, 22.4px + 1vw, 36px);          /* 26px → 36px: above H2 at every width; 36px matches production's other templates */

  --nbs-leading-tight: 1.2;
  --nbs-leading-snug: 1.35;
  --nbs-leading-body: 1.65;
  /* Text width. 100% is the full container, the same width as the tables (about 120 characters a
     line at 1440px). For a narrower reading column, use calc(var(--nbs-text-base) * 37): about 700px. */
  --nbs-measure: 100%;

  /* Spacing: 4px base */
  --nbs-space-1: 4px;
  --nbs-space-2: 8px;
  --nbs-space-3: 12px;
  --nbs-space-4: 16px;
  --nbs-space-5: 24px;
  --nbs-space-6: 32px;
  --nbs-space-7: 48px;
  --nbs-space-8: 64px;
  --nbs-space-9: 96px;
  --nbs-section-space: clamp(40px, 24px + 4vw, 72px);

  /* Layout */
  --nbs-container: 1110px;   /* 1110px content width, matching the production Bootstrap container at >= 1200px */
  --nbs-gutter: clamp(16px, 9.6px + 1.8vw, 24px);

  /* Fixed and sticky elements. On the live site the 55px header scrolls away below ~991px;
     from ~991px a 56px header is fixed. */
  --nbs-header-height: 0px;           /* fixed header height at this breakpoint (0 = header not fixed) */
  --nbs-section-nav-height: 48px;     /* 48px sticky section bar */
  --nbs-sticky-offset: calc(var(--nbs-header-height) + var(--nbs-section-nav-height) + var(--nbs-space-4));
  --nbs-bottom-bar-height: 0px;       /* production's fixed mobile bottom bar (57px on narrow phones) */
  --nbs-sticky-offset-bottom: calc(var(--nbs-bottom-bar-height) + var(--nbs-space-4));

  /* Shape: radius encodes hierarchy (chips < cards < panels). */
  --nbs-radius-sm: 4px;
  --nbs-radius-md: 8px;
  --nbs-radius-lg: 12px;
  --nbs-shadow-raised: 0 1px 2px rgb(22 28 79 / 0.06), 0 2px 8px rgb(22 28 79 / 0.06);
  --nbs-shadow-overlay: 0 8px 28px rgb(22 28 79 / 0.18);

  /* Focus */
  --nbs-focus-width: 3px;
  --nbs-focus-offset: 2px;

  /* Motion: transitions are opt-in under prefers-reduced-motion: no-preference. */
  --nbs-duration-fast: 120ms;
  --nbs-duration-base: 200ms;
  --nbs-ease: cubic-bezier(0.2, 0, 0, 1);

  /* Stacking, aligned with production: Bootstrap's fixed header uses 1030, the cookie banner 9999,
     the assistant button 9. The section bar sits just below the header so header menus open over it. */
  --nbs-z-sticky: 1020;
  --nbs-z-overlay: 1040;
}

/* Production shows its fixed 57px bottom bar on narrow phones (seen at 390px, not at 575px).
   Confirm the exact breakpoint in production CSS; 575px is the Bootstrap small-screen limit. */
@media (max-width: 35.9375em) {
  :root {
    --nbs-bottom-bar-height: 57px;
  }
}

/* The live site switches to the fixed 56px desktop header at about 991px. */
@media (min-width: 61.9375em) {
  :root {
    --nbs-header-height: 56px;
  }
}

/* ===== base.css ===== */
/*
 * NBSUK base styles.
 *
 * Scoping (more in docs/implementation.md#css-architecture):
 *  - No bare element selectors. Element styles apply only inside .nbs-prose (rich text)
 *    or inside a named .nbs-* component.
 *  - Don't put .nbs-scope or .nbs-prose around the main bookmaker listing.
 *  - Element styles inside prose use :where(), so a single class can override them.
 *
 * The only global rule is scroll-padding on html, so in-page links don't land under the
 * fixed header. Check it against the production header height.
 */
html {
  scroll-padding-top: var(--nbs-sticky-offset);
  /* Keeps keyboard focus clear of the fixed mobile bottom bar (WCAG 2.4.11). */
  scroll-padding-bottom: var(--nbs-sticky-offset-bottom);
}

/* ---------- Region root ---------- */
.nbs-scope {
  font-family: var(--nbs-font-sans);
  color: var(--nbs-color-text);
  line-height: var(--nbs-leading-body);
}

/* ---------- Headings (classes for use outside prose) ---------- */
.nbs-h1,
.nbs-h2,
.nbs-h3,
.nbs-h4,
.nbs-prose :where(h2, h3, h4) {
  margin: 0;
  font-family: var(--nbs-font-sans);
  color: var(--nbs-color-heading);
  text-align: left;
  text-transform: none;
  text-wrap: balance; /* progressive enhancement: avoids one-word last lines where supported */
}

/* Weights as on the live site: H1 700, H2 and H3 500, H4 700. Size and colour carry the hierarchy. */
.nbs-h1 {
  font-size: var(--nbs-text-h1);
  font-weight: var(--nbs-weight-h1);
  line-height: var(--nbs-leading-tight);
}

.nbs-h2,
.nbs-prose :where(h2) {
  font-size: var(--nbs-text-h2);
  font-weight: var(--nbs-weight-h2);
  line-height: var(--nbs-leading-tight);
}

.nbs-h3,
.nbs-prose :where(h3) {
  font-size: var(--nbs-text-h3);
  font-weight: var(--nbs-weight-h3);
  line-height: var(--nbs-leading-snug);
}

.nbs-h4,
.nbs-prose :where(h4) {
  font-size: var(--nbs-text-h4);
  font-weight: var(--nbs-weight-h4);
  line-height: var(--nbs-leading-snug);
  color: var(--nbs-color-text);
}

/* Rich text sometimes wraps a whole heading in <strong>; keep the heading's own weight. */
.nbs-prose :where(h2, h3) :where(strong, b) {
  font-weight: inherit;
}

/* ---------- Prose: editorial rich text (Craft rich-text fields render inside this) ---------- */
.nbs-prose {
  font-family: var(--nbs-font-sans);
  font-size: var(--nbs-text-base);
  line-height: var(--nbs-leading-body);
  color: var(--nbs-color-text);
  text-align: left;
}

/* Everything is left-aligned on the same edge as the tables and cards. Text width comes from
   --nbs-measure (the full container by default); headings and .nbs-wide content always use the full width. */
.nbs-prose > * {
  max-width: var(--nbs-measure);
  margin-block: 0;
  margin-inline: 0;
}

.nbs-prose > :where(h2, h3) {
  max-width: none;
}

/* Vertical rhythm: one rule for flow, larger gaps before headings, tight after them. */
.nbs-prose > * + * {
  margin-block-start: var(--nbs-space-4);
}

.nbs-prose > * + :where(h2) {
  margin-block-start: var(--nbs-space-7);
}

.nbs-prose > * + :where(h3) {
  margin-block-start: var(--nbs-space-6);
}

.nbs-prose > * + :where(h4) {
  margin-block-start: var(--nbs-space-5);
}

.nbs-prose > :where(h2, h3, h4) + * {
  margin-block-start: var(--nbs-space-3);
}

/* A subheading directly under a heading needs a little more air than body text does. */
.nbs-prose > :where(h2, h3) + :where(h3, h4) {
  margin-block-start: var(--nbs-space-4);
}

/* Wide content (tables, card grids) may use the full container width. */
.nbs-prose > .nbs-wide {
  max-width: none;
}

.nbs-prose :where(p, li) {
  text-align: left;
  hyphens: manual;
}

.nbs-prose :where(ul, ol) {
  padding-inline-start: 1.375em;
}

.nbs-prose :where(li + li) {
  margin-block-start: var(--nbs-space-2);
}

.nbs-prose :where(li)::marker {
  color: var(--nbs-color-heading);
}

.nbs-prose :where(strong, b) {
  font-weight: var(--nbs-weight-bold);
}

/* Images inside rich text: never wider than the column, rounded like cards. */
.nbs-prose :where(figure) {
  margin-inline: 0;
}

.nbs-prose :where(img) {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--nbs-radius-md);
}

.nbs-prose :where(a),
.nbs-link {
  color: var(--nbs-color-link);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.nbs-prose :where(a:hover),
.nbs-link:hover {
  color: var(--nbs-color-link-hover);
  text-decoration-thickness: 2px;
}

.nbs-lead {
  font-size: var(--nbs-text-lead);
  line-height: 1.55;
  color: var(--nbs-color-text);
}

.nbs-meta {
  font-size: var(--nbs-text-sm);
  line-height: 1.5;
  color: var(--nbs-color-text-muted);
}

/* ---------- Focus. Specificity (0,2,0) beats Bootstrap reboot's button:focus. ---------- */
.nbs-scope :focus-visible,
.nbs-prose :focus-visible,
.nbs-skip-link:focus-visible {
  outline: var(--nbs-focus-width) solid var(--nbs-color-focus);
  outline-offset: var(--nbs-focus-offset);
  border-radius: 2px;
}

/* Apply to red or navy surfaces so the focus ring stays visible (navy on red is only 2.61:1). */
.nbs-on-brand {
  --nbs-color-focus: var(--nbs-color-focus-inverse);
}

/* ---------- Utilities ---------- */
.nbs-visually-hidden:not(:focus):not(:active) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.nbs-skip-link {
  position: absolute;
  inset-inline-start: var(--nbs-space-4);
  inset-block-start: var(--nbs-space-4);
  z-index: var(--nbs-z-overlay);
  padding: var(--nbs-space-3) var(--nbs-space-4);
  font-family: var(--nbs-font-sans);
  font-weight: var(--nbs-weight-bold);
  color: var(--nbs-surface);
  background: var(--nbs-navy-900);
  border-radius: var(--nbs-radius-sm);
  transform: translateY(-200%);
}

.nbs-skip-link:focus {
  transform: none;
}

/* A skip link placed inside the page flow (for example "Skip the bookmaker list").
   Invisible and takes no visual space until it receives keyboard focus. */
.nbs-skip-link--local {
  inset-block-start: auto;
  inset-block-end: var(--nbs-space-2);
  transform: none;
}

.nbs-skip-link--local:not(:focus) {
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

/* ===== layout.css ===== */
/*
 * NBSUK layout primitives.
 *
 * Small, composable primitives. Page-specific arrangement belongs in component CSS.
 * The container matches the production Bootstrap content width (1110px), so new
 * regions line up with the bookmaker listing above or below them.
 */
.nbs-container {
  box-sizing: border-box;
  width: 100%;
  max-width: calc(var(--nbs-container) + 2 * var(--nbs-gutter));
  margin-inline: auto;
  padding-inline: var(--nbs-gutter);
}

/* Full-width band. Related sections share one band. */
.nbs-band {
  padding-block: var(--nbs-section-space);
  background-color: var(--nbs-surface);
}

.nbs-band--muted {
  background-color: var(--nbs-surface-muted);
}

/* Two adjacent bands with the same background read as one. Collapse the gap. */
.nbs-band:not(.nbs-band--muted) + .nbs-band:not(.nbs-band--muted),
.nbs-band--muted + .nbs-band--muted {
  padding-block-start: 0;
}

/* Vertical flow between siblings. Override the gap per instance with --nbs-stack-gap. */
.nbs-stack > * {
  margin-block: 0;
}

.nbs-stack > * + * {
  margin-block-start: var(--nbs-stack-gap, var(--nbs-space-4));
}

/* Horizontal group that wraps. */
.nbs-cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--nbs-cluster-gap, var(--nbs-space-3));
}

/* Responsive grid: as many columns as fit at --nbs-grid-min width. */
.nbs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--nbs-grid-min, 256px)), 1fr));
  gap: var(--nbs-grid-gap, var(--nbs-space-5));
}

.nbs-measure {
  max-width: var(--nbs-measure);
}

/* ===== components/page-intro.css ===== */
/*
 * LAY-03 Page introduction.
 * Spec: docs/components/lay-03-page-intro.md
 *
 * H1 and introduction above the bookmaker listing. Height budget: the listing must start no
 * lower than it does today (219px below the header at 390 and 768px wide, 165px at 1440px).
 * The byline row belongs to the listing, not to this component.
 *
 * States. The collapsed look is applied by CSS as soon as <html> has the class "nbs-js" (set by a
 * one-line inline script in <head>, before first paint), so nothing moves when disclosure.js runs.
 * That matters here: any shift would push the listing down (CLS).
 *   no "nbs-js"                         -> everything shown, no button (no JavaScript)
 *   .nbs-js, body not expanded          -> second paragraph hidden, first clamped below 991px
 *   [data-nbs-expanded="true"]          -> everything shown (set by disclosure.js)
 */
.nbs-page-intro {
  position: relative; /* anchors the local skip link */
  padding-block: var(--nbs-space-4);
  background-color: var(--nbs-surface);
}

.nbs-page-intro__body {
  margin-block-start: var(--nbs-space-2);
  font-size: var(--nbs-text-md);
  line-height: 1.5;
  color: var(--nbs-color-text);
}

.nbs-page-intro__body > :where(p) {
  margin: 0;
}

.nbs-page-intro__more {
  margin-block-start: var(--nbs-space-3);
}

.nbs-page-intro__more > :where(p) {
  margin: 0;
}

.nbs-page-intro__more > :where(p + p) {
  margin-block-start: var(--nbs-space-3);
}

/* "Read more": a real button styled as an inline text control. Shown only when JavaScript runs. */
.nbs-page-intro__toggle {
  display: none;
}

.nbs-js .nbs-page-intro__toggle {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0;
  font: inherit;
  font-weight: var(--nbs-weight-bold);
  color: var(--nbs-color-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  background: none;
  border: 0;
  cursor: pointer;
}

.nbs-page-intro__toggle:hover {
  color: var(--nbs-color-link-hover);
}

.nbs-js .nbs-page-intro__body:not([data-nbs-expanded="true"]) > .nbs-page-intro__more {
  display: none;
}

/* Below the desktop header breakpoint: keep the page top within its height budget by
   clamping the first paragraph to three lines until "Read more" is pressed.
   All text stays in the HTML and is read in full by screen readers. */
@media (max-width: 61.9275em) {
  .nbs-js .nbs-page-intro__body:not([data-nbs-expanded="true"], .nbs-page-intro__body--full) > :where(p:first-child) {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
  }
}

@media (min-width: 61.9375em) {
  .nbs-page-intro {
    padding-block: var(--nbs-space-5) var(--nbs-space-4);
  }

  .nbs-page-intro__body {
    font-size: 18px;
  }

  /* The introduction runs to two lines across the container (as it does today), so the
     listing keeps its position. "Read more" follows the first paragraph inline. */
  .nbs-page-intro__body:not(.nbs-page-intro__body--full) > :where(p:first-child) {
    display: inline;
  }

  /* Templates whose introduction is shown in full (no "Read more"): body size and the reading measure. */
  .nbs-page-intro__body--full {
    max-width: var(--nbs-measure);
    font-size: var(--nbs-text-base);
    line-height: var(--nbs-leading-body);
  }

  .nbs-page-intro__body--full > :where(p + p) {
    margin-block-start: var(--nbs-space-3);
  }

  .nbs-page-intro__toggle {
    min-height: 0;
    margin-inline-start: 0.35em;
  }
}

/* ===== components/section-nav.css ===== */
/*
 * NAV-01 Section navigation.
 * Spec: docs/components/nav-01-section-navigation.md
 *
 * Two parts:
 *  1. .nbs-contents     "Table of contents" dropdown directly after the bookmaker listing,
 *                       where the current one is. A native <details>: collapsed by default, opens
 *                       without JavaScript, and every link is in the server HTML. Generated from the
 *                       page's headings by the CMS template (see the spec).
 *  2. .nbs-section-bar  Sticky bar built by section-nav.js from the same list. Appears only once the
 *                       contents dropdown has scrolled past (never over the listing); shows the
 *                       current group and opens the full list. It overlays content (position: fixed),
 *                       so it never moves anything or causes layout shift.
 */

/* ---------- 1. Contents dropdown ---------- */
.nbs-contents {
  padding-block: var(--nbs-space-5) 0; /* the first content band below supplies the space after it */
  background-color: var(--nbs-surface);
}

.nbs-contents__box {
  background-color: var(--nbs-surface);
  border: 1px solid var(--nbs-border-strong);
  border-inline-start: 4px solid var(--nbs-color-accent);
  border-radius: var(--nbs-radius-md);
}

.nbs-contents__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--nbs-space-4);
  min-height: 52px;
  padding: var(--nbs-space-3) var(--nbs-space-5);
  font-size: 18px;
  font-weight: var(--nbs-weight-bold);
  line-height: 1.3;
  color: var(--nbs-color-heading);
  list-style: none;
  cursor: pointer;
}

.nbs-contents__summary::-webkit-details-marker {
  display: none;
}

.nbs-contents__summary:hover {
  color: var(--nbs-color-link-hover);
}

.nbs-contents__count {
  margin-inline-start: auto;
  font-size: var(--nbs-text-sm);
  font-weight: var(--nbs-weight-semibold);
  color: var(--nbs-color-text-muted);
}

/* Chevron drawn with borders: decorative. */
.nbs-contents__summary::after {
  flex: none;
  width: 8.8px;
  height: 8.8px;
  content: "";
  border-inline-end: 2px solid currentColor;
  border-block-end: 2px solid currentColor;
  transform: translateY(-25%) rotate(45deg);
}

.nbs-contents__box[open] > .nbs-contents__summary {
  border-block-end: 1px solid var(--nbs-border);
}

.nbs-contents__box[open] > .nbs-contents__summary::after {
  transform: translateY(25%) rotate(-135deg);
}

.nbs-contents__box > .nbs-contents__groups {
  padding: var(--nbs-space-5);
}

.nbs-contents__groups {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 3 240px;
  column-gap: var(--nbs-space-6);
}

.nbs-contents__group {
  break-inside: avoid;
  padding-block-end: var(--nbs-space-5);
}

/* Group names carry the brand's red rule, the same mark used for group labels on the page. */
.nbs-contents__group-link {
  display: inline-block;
  padding-inline-start: var(--nbs-space-3);
  font-weight: var(--nbs-weight-bold);
  line-height: 1.4;
  color: var(--nbs-color-link);
  text-decoration: none;
  border-inline-start: 3px solid var(--nbs-color-accent);
}

.nbs-contents__group-link:hover {
  color: var(--nbs-color-link-hover);
  text-decoration: underline;
}

/* In the sticky panel, the group currently in view (set by section-nav.js). */
.nbs-contents__group-link[aria-current="true"] {
  color: var(--nbs-color-text);
  border-inline-start-width: 6px;
  padding-inline-start: calc(var(--nbs-space-3) - 3px);
}

.nbs-contents__group-link[aria-current="true"]::after {
  content: " (you are here)";
  content: " (you are here)" / ""; /* silent for screen readers, which already announce aria-current */
  font-weight: var(--nbs-weight-regular);
  color: var(--nbs-color-text-muted);
}

.nbs-contents__sections {
  margin: var(--nbs-space-2) 0 0;
  padding: 0 0 0 calc(var(--nbs-space-3) + 3px);
  list-style: none;
  font-size: var(--nbs-text-md);
  line-height: 1.45;
}

.nbs-contents__sections > li + li {
  margin-block-start: var(--nbs-space-2);
}

.nbs-contents__sections a {
  color: var(--nbs-color-link);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.nbs-contents__sections a:hover {
  color: var(--nbs-color-link-hover);
}

/* ---------- 2. Sticky bar ---------- */
.nbs-section-bar {
  position: fixed;
  inset-inline: 0;
  inset-block-start: var(--nbs-header-height);
  z-index: var(--nbs-z-sticky);
  font-family: var(--nbs-font-sans);
  background-color: var(--nbs-surface);
  border-block-end: 1px solid var(--nbs-border);
  box-shadow: var(--nbs-shadow-raised);
}

.nbs-section-bar[data-nbs-state="hidden"] {
  visibility: hidden;
  transform: translateY(calc(-100% - var(--nbs-header-height)));
}

@media (prefers-reduced-motion: no-preference) {
  .nbs-section-bar {
    transition: transform var(--nbs-duration-base) var(--nbs-ease), visibility 0s linear 0s;
  }

  .nbs-section-bar[data-nbs-state="hidden"] {
    transition: transform var(--nbs-duration-base) var(--nbs-ease), visibility 0s linear var(--nbs-duration-base);
  }
}

.nbs-section-bar__inner {
  display: flex;
  align-items: stretch;
  gap: var(--nbs-space-4);
  min-height: var(--nbs-section-nav-height);
}

.nbs-section-bar__label {
  display: none;
  align-self: center;
  margin: 0;
  font-size: var(--nbs-text-sm);
  font-weight: var(--nbs-weight-semibold);
  color: var(--nbs-color-text-muted);
  white-space: nowrap;
}

.nbs-section-bar__groups {
  display: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nbs-section-bar__groups a {
  display: flex;
  align-items: center;
  height: 100%;
  padding-inline: var(--nbs-space-3);
  font-size: 15px;
  font-weight: var(--nbs-weight-semibold);
  color: var(--nbs-color-link);
  text-decoration: none;
  white-space: nowrap;
}

.nbs-section-bar__groups a:hover {
  color: var(--nbs-color-link-hover);
  text-decoration: underline;
}

/* Current group: weight, colour and a red underline bar, so it does not rely on colour alone. */
.nbs-section-bar__groups a[aria-current="true"] {
  font-weight: var(--nbs-weight-heavy);
  color: var(--nbs-color-text);
  box-shadow: inset 0 -3px 0 var(--nbs-color-accent);
}

.nbs-section-bar__groups a:focus-visible,
.nbs-section-bar__toggle:focus-visible {
  outline-offset: -3px;
}

.nbs-section-bar__toggle {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: space-between;
  gap: var(--nbs-space-3);
  min-height: var(--nbs-section-nav-height);
  padding: 0;
  font: inherit;
  font-size: var(--nbs-text-md);
  color: var(--nbs-color-text);
  text-align: start;
  background: none;
  border: 0;
  cursor: pointer;
}

.nbs-section-bar__toggle-label {
  font-weight: var(--nbs-weight-semibold);
  color: var(--nbs-color-text-muted);
}

.nbs-section-bar__current {
  margin-inline-start: auto;
  overflow: hidden;
  font-weight: var(--nbs-weight-bold);
  color: var(--nbs-color-link);
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Chevron drawn with borders: no icon font needed. Decorative. */
.nbs-section-bar__toggle::after {
  flex: none;
  width: 8px;
  height: 8px;
  margin-inline-end: 4px;
  content: "";
  border-inline-end: 2px solid currentColor;
  border-block-end: 2px solid currentColor;
  transform: translateY(-25%) rotate(45deg);
}

.nbs-section-bar__toggle[aria-expanded="true"]::after {
  transform: translateY(25%) rotate(-135deg);
}

.nbs-section-bar__panel {
  max-height: calc(100vh - var(--nbs-header-height) - var(--nbs-section-nav-height) - 80px);
  max-height: calc(100dvh - var(--nbs-header-height) - var(--nbs-section-nav-height) - 80px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-block: var(--nbs-space-5) var(--nbs-space-2);
  background-color: var(--nbs-surface);
  border-block-start: 1px solid var(--nbs-border);
  box-shadow: var(--nbs-shadow-overlay);
}

/* Wide screens: show the groups as links in the bar; the toggle becomes "All sections". */
@media (min-width: 68.75em) {
  .nbs-section-bar__label {
    display: block;
  }

  .nbs-section-bar__groups {
    display: flex;
    flex: 1 1 auto;
  }

  .nbs-section-bar__toggle {
    flex: none;
    gap: var(--nbs-space-2);
    font-size: 15px;
    font-weight: var(--nbs-weight-semibold);
    color: var(--nbs-color-link);
  }

  .nbs-section-bar__toggle-label,
  .nbs-section-bar__current {
    display: none;
  }

  .nbs-section-bar__toggle-wide {
    display: inline;
  }
}

@media (max-width: 68.6875em) {
  .nbs-section-bar__toggle-wide {
    display: none;
  }
}

/* Compact bar for pages whose table of contents has more entries than fit in one row (set by
   section-nav.js when there are more than seven): the "Contents · current section" button at every width. */
.nbs-section-bar--compact .nbs-section-bar__label,
.nbs-section-bar--compact .nbs-section-bar__groups,
.nbs-section-bar--compact .nbs-section-bar__toggle-wide {
  display: none;
}

.nbs-section-bar--compact .nbs-section-bar__toggle {
  flex: 1 1 auto;
  font-size: var(--nbs-text-md);
  font-weight: var(--nbs-weight-regular);
  color: var(--nbs-color-text);
}

.nbs-section-bar--compact .nbs-section-bar__toggle-label,
.nbs-section-bar--compact .nbs-section-bar__current {
  display: inline;
}

/* ===== components/group.css ===== */
/*
 * LAY-01 / LAY-02 Content groups.
 * Spec: docs/components/lay-01-content-groups.md
 *
 * A group is a full-width band (.nbs-band, optionally .nbs-band--muted) holding one or more
 * related H2 sections. Groups are visual and navigational containers, not new heading levels:
 * the existing H2s and their anchors stay. The group label names the group in the
 * same words the section navigator uses.
 *
 *   <div class="nbs-band nbs-group" id="group-compare">
 *     <div class="nbs-container"><p class="nbs-group__label">Compare sites</p></div>
 *     <section class="nbs-section"><div class="nbs-container nbs-prose"><h2 id="…">…</h2>…</div></section>
 *   </div>
 */
.nbs-group__label {
  margin: 0 0 var(--nbs-space-4);
  padding-inline-start: var(--nbs-space-3);
  font-size: var(--nbs-text-md);
  font-weight: var(--nbs-weight-bold);
  line-height: 1.4;
  color: var(--nbs-red-700);
  border-inline-start: 3px solid var(--nbs-color-accent);
}

/* Sections inside a group are separated by space only; the band does the grouping. */
.nbs-section + .nbs-section {
  margin-block-start: var(--nbs-space-8);
}

/* A section that follows a full-width component gets a hairline so the change of topic is clear. */
.nbs-section--divided {
  padding-block-start: var(--nbs-space-8);
  border-block-start: 1px solid var(--nbs-border);
}

.nbs-band--muted .nbs-section--divided {
  border-block-start-color: var(--nbs-border-strong);
}

/* ===== components/lists.css ===== */
/*
 * Editorial list patterns.
 * Spec: docs/components/typ-prose.md#list-patterns
 *
 *   .nbs-checklist  benefits or features list; replaces leading emoji ticks typed into content
 *   .nbs-steps      numbered steps (ordered list); replaces "1) … <br>" runs inside one paragraph
 *   .nbs-launches   compact name + date list (new betting sites by launch month)
 *
 * All three are plain <ul>/<ol> markup with one class, so they can be applied from a rich-text
 * style menu or a Twig template. Marks are drawn with CSS: no icon font, no images.
 */

/* ---------- Checklist ---------- */
.nbs-checklist {
  padding-inline-start: 0;
  list-style: none;
}

.nbs-checklist > li {
  position: relative;
  padding-inline-start: 32px;
}

.nbs-checklist > li + li {
  margin-block-start: var(--nbs-space-3);
}

/* Filled circle with a tick. Decorative: the list itself carries the meaning. */
.nbs-checklist > li::before,
.nbs-checklist > li::after {
  position: absolute;
  content: "";
}

.nbs-checklist > li::before {
  inset-inline-start: 0;
  inset-block-start: 0.25em;
  width: 20px;
  height: 20px;
  background-color: var(--nbs-positive-700);
  border-radius: 50%;
}

.nbs-checklist > li::after {
  inset-inline-start: 7.2px;
  inset-block-start: calc(0.25em + 4px);
  width: 5.6px;
  height: 9.6px;
  border-inline-end: 2px solid var(--nbs-surface);
  border-block-end: 2px solid var(--nbs-surface);
  transform: rotate(45deg);
}

/* Variant for drawbacks (for example the "Cons" of a review): a cross in a red circle. */
.nbs-checklist--cons > li::before {
  background-color: var(--nbs-negative-700);
}

.nbs-checklist--cons > li::after {
  inset-inline-start: 4.8px;
  inset-block-start: calc(0.25em + 4.8px);
  width: 10.4px;
  height: 10.4px;
  border: 0;
  background:
    linear-gradient(45deg, transparent 43%, var(--nbs-surface) 43% 57%, transparent 57%),
    linear-gradient(-45deg, transparent 43%, var(--nbs-surface) 43% 57%, transparent 57%);
  transform: none;
}

/* ---------- Numbered steps ---------- */
.nbs-steps {
  padding-inline-start: 0;
  list-style: none;
  counter-reset: nbs-step;
}

.nbs-steps > li {
  position: relative;
  min-height: 32px;
  padding-inline-start: 48px;
  counter-increment: nbs-step;
}

.nbs-steps > li + li {
  margin-block-start: var(--nbs-space-5);
}

.nbs-steps > li::before {
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  font-size: var(--nbs-text-md);
  font-weight: var(--nbs-weight-bold);
  line-height: 1;
  color: var(--nbs-surface);
  content: counter(nbs-step);
  background-color: var(--nbs-navy-700);
  border-radius: 50%;
}

/* The step title sits on its own line, like a small heading. */
.nbs-steps > li > strong:first-child {
  display: block;
  margin-block-end: var(--nbs-space-1);
  color: var(--nbs-color-heading);
}

/* ---------- Launch list ---------- */
.nbs-launches {
  padding: 0;
  list-style: none;
  columns: 4 208px;
  column-gap: var(--nbs-space-6);
  font-size: var(--nbs-text-md);
}

.nbs-launches > li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0 var(--nbs-space-3);
  padding-block: var(--nbs-space-2);
  break-inside: avoid;
  border-block-end: 1px solid var(--nbs-border);
}

.nbs-launches > li + li {
  margin-block-start: 0;
}

.nbs-launches > li > span {
  color: var(--nbs-color-text-muted);
  font-variant-numeric: tabular-nums;
}

/* ===== components/callout.css ===== */
/*
 * CMP-07 Callouts.
 * Spec: docs/components/cmp-07-callouts.md
 *
 * One component, two variants. Use sparingly: a callout loses its effect if every
 * section has one.
 *   .nbs-callout--note  a point to remember or a caveat ("Important: …")
 *   .nbs-callout--rg    responsible-gambling guidance; real text, never an image
 */
.nbs-callout {
  padding: var(--nbs-space-4) var(--nbs-space-5);
  font-size: var(--nbs-text-md);
  line-height: 1.6;
  color: var(--nbs-color-text);
  border-inline-start: 4px solid var(--nbs-navy-700);
  border-radius: 0 var(--nbs-radius-md) var(--nbs-radius-md) 0;
}

.nbs-callout > :where(*) {
  margin-block: 0;
}

.nbs-callout > :where(* + *) {
  margin-block-start: var(--nbs-space-3);
}

/* Callouts are full width, so their lists of short points flow into two columns when there's
   room (each at least 352px). One column on phones. */
.nbs-callout :where(ul) {
  padding-inline-start: 1.25em;
  columns: 2 352px;
  column-gap: var(--nbs-space-7);
}

.nbs-callout :where(li) {
  break-inside: avoid;
}

.nbs-callout :where(li + li) {
  margin-block-start: var(--nbs-space-1);
}

.nbs-callout__title {
  font-weight: var(--nbs-weight-bold);
  color: var(--nbs-color-heading);
}

.nbs-callout--note {
  background-color: var(--nbs-navy-050);
}

.nbs-callout--rg {
  background-color: var(--nbs-surface);
  border: 1px solid var(--nbs-border-strong);
  border-inline-start: 4px solid var(--nbs-color-accent);
}

.nbs-band--muted .nbs-callout--note {
  background-color: var(--nbs-surface);
  border: 1px solid var(--nbs-border-strong);
  border-inline-start: 4px solid var(--nbs-navy-700);
}

/* ===== components/table.css ===== */
/*
 * TBL-01, TBL-03, TBL-04 Supporting tables.
 * Spec: docs/components/tbl-01-supporting-tables.md
 *
 * For the editorial tables lower on the homepage (withdrawals, by sport, Trustpilot, cash out,
 * red flags, payments). Not for the main bookmaker listing: every rule here needs the
 * .nbs-table class, which the listing doesn't use.
 *
 *   .nbs-table-wrap         scroll container (keyboard-focusable region named by the caption)
 *   .nbs-table              the table
 *   .nbs-table--compact     denser rows for big data tables (see comparison.css)
 *   .nbs-table--stack       explanatory tables: each row becomes a card below 768px
 *   .nbs-table__num         numeric column: right-aligned, tabular figures
 *   .nbs-status--yes|no|unknown   status value: text plus a mark, never colour alone
 */

/* ---------- Container ---------- */
.nbs-table-wrap {
  overflow-x: auto;
  background-color: var(--nbs-surface);
  border: 1px solid var(--nbs-border-strong);
  border-radius: var(--nbs-radius-md);
}

/* ---------- Table ---------- */
.nbs-table {
  width: 100%;
  font-size: var(--nbs-text-md);
  line-height: 1.5;
  color: var(--nbs-color-text);
  border-collapse: collapse;
  font-variant-numeric: lining-nums;
}

.nbs-table > caption {
  padding: var(--nbs-space-3) var(--nbs-space-4);
  font-size: 15px;
  font-weight: var(--nbs-weight-bold);
  line-height: 1.4;
  color: var(--nbs-color-text);
  text-align: start;
  caption-side: top;
  border-block-end: 1px solid var(--nbs-border);
}

.nbs-table :where(th, td) {
  padding: var(--nbs-space-3) var(--nbs-space-4);
  text-align: start;
  vertical-align: top;
}

.nbs-table > thead th {
  font-size: 15px;
  font-weight: var(--nbs-weight-semibold);
  line-height: 1.35;
  color: var(--nbs-surface);
  vertical-align: bottom;
  background-color: var(--nbs-navy-700);
}

.nbs-table > tbody > tr {
  border-block-start: 1px solid var(--nbs-border);
}

.nbs-table > tbody > tr:nth-child(even) {
  background-color: var(--nbs-surface-muted);
}

.nbs-table > tbody th {
  font-weight: var(--nbs-weight-bold);
}

.nbs-table :where(a) {
  color: var(--nbs-color-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.nbs-table :where(a:hover) {
  color: var(--nbs-color-link-hover);
}

.nbs-table .nbs-table__num {
  text-align: end;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Headers of numeric columns may wrap, so long labels do not widen narrow number columns. */
.nbs-table > thead .nbs-table__num {
  white-space: normal;
}

/* Logo shown beside its name in a row header (for example payment methods). */
.nbs-table__logo {
  display: inline-block;
  width: 48px;
  height: 28px;
  margin-inline-end: var(--nbs-space-2);
  object-fit: contain;
  vertical-align: middle;
}

/* An empty cell says so in words rather than being blank. */
.nbs-table__empty {
  font-style: italic;
  color: var(--nbs-color-text-muted);
}

/* ---------- Status values (TBL-04) ---------- */
.nbs-status {
  display: inline-flex;
  align-items: center;
  gap: 0.375em;
  font-weight: var(--nbs-weight-bold);
  white-space: nowrap;
}

.nbs-status::before {
  display: inline-grid;
  place-items: center;
  width: 1.25em;
  height: 1.25em;
  font-size: 0.8125em;
  line-height: 1;
  border-radius: 50%;
}

.nbs-status--yes {
  color: var(--nbs-positive-700);
}

.nbs-status--yes::before {
  content: "✓";
  content: "✓" / ""; /* the word "Yes" is the accessible value; the mark is decoration */
  color: var(--nbs-surface);
  background-color: var(--nbs-positive-700);
}

.nbs-status--no {
  color: var(--nbs-negative-700);
}

.nbs-status--no::before {
  content: "✕";
  content: "✕" / "";
  color: var(--nbs-surface);
  background-color: var(--nbs-negative-700);
}

.nbs-status--unknown {
  font-weight: var(--nbs-weight-regular);
  font-style: italic;
  color: var(--nbs-color-text-muted);
}

/* ---------- Notes under a table ---------- */
.nbs-table-notes {
  margin-block-start: var(--nbs-space-3);
  font-size: var(--nbs-text-sm);
  line-height: 1.55;
  color: var(--nbs-color-text-muted);
}

.nbs-table-notes > :where(p) {
  max-width: var(--nbs-measure);
  margin: 0;
}

.nbs-table-notes > :where(p + p) {
  margin-block-start: var(--nbs-space-2);
}

.nbs-table-notes :where(strong) {
  color: var(--nbs-color-text);
}

/* ---------- Stacked explanatory tables (TBL-03) ---------- */
/* Below 768px each row becomes a card: the row header as its title, every other cell labelled
   with its column name (data-label). Explicit ARIA table roles in the markup keep the table
   semantics that some browsers drop when display changes. */
@media (max-width: 47.9375em) {
  .nbs-table-wrap--stack {
    overflow: visible;
    background: none;
    border: 0;
  }

  .nbs-table--stack,
  .nbs-table--stack > tbody,
  .nbs-table--stack > tbody > tr,
  .nbs-table--stack > tbody > tr > :where(th, td) {
    display: block;
  }

  .nbs-table--stack > caption {
    display: block;
    padding-inline: 0;
    border: 0;
  }

  .nbs-table--stack > thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .nbs-table--stack > tbody > tr,
  .nbs-table--stack > tbody > tr:nth-child(even) {
    padding: var(--nbs-space-4);
    background-color: var(--nbs-surface);
    border: 1px solid var(--nbs-border-strong);
    border-radius: var(--nbs-radius-md);
  }

  .nbs-table--stack > tbody > tr + tr {
    margin-block-start: var(--nbs-space-3);
  }

  .nbs-table--stack > tbody > tr > :where(th, td) {
    padding: 0;
  }

  .nbs-table--stack > tbody > tr > th {
    margin-block-end: var(--nbs-space-2);
    font-size: 17px;
    color: var(--nbs-color-heading);
  }

  .nbs-table--stack > tbody > tr > td + td {
    margin-block-start: var(--nbs-space-3);
  }

  .nbs-table--stack > tbody > tr > td::before {
    display: block;
    font-size: var(--nbs-text-sm);
    font-weight: var(--nbs-weight-bold);
    color: var(--nbs-color-text-muted);
    content: attr(data-label);
    content: attr(data-label) / ""; /* the cell is already associated with its header */
  }
}

/* ===== components/comparison.css ===== */
/*
 * TBL-02 Wide comparison table.
 * Spec: docs/components/tbl-02-comparison-table.md
 *
 * The 77-row "Odds, bonuses & features" table: a supporting table, not the main listing.
 * Builds on table.css. All rows stay in the HTML; comparison-table.js shows the first rows and adds
 * a "Show all" button.
 *
 *  >= 1200px  the table fits the 1,110px container: no inner scrolling; the header row sticks
 *             below the site header and section bar while the reader scrolls the page.
 *  <  1200px  the table scrolls inside its own box (both directions, max 75% of the screen height),
 *             with the header row and the rank and bookmaker columns kept in view.
 */
/* Visible title above the scroll box. A <caption> is always as wide as its table, so it would scroll
   out of view; the real caption stays in the table (visually hidden) for assistive technology, and
   this copy is aria-hidden so the name is not read twice. */
.nbs-comparison__title {
  margin: 0 0 var(--nbs-space-2);
  font-size: 15px;
  font-weight: var(--nbs-weight-bold);
  line-height: 1.4;
  color: var(--nbs-color-text);
}

.nbs-table--compact {
  font-size: 15px;
}

.nbs-table--compact :where(th, td) {
  padding: var(--nbs-space-2) var(--nbs-space-3);
}

.nbs-table--compact > thead th {
  font-size: var(--nbs-text-sm);
}

.nbs-comparison__rank {
  width: 44px;
  min-width: 44px;
  color: var(--nbs-color-text-muted);
}

/* Bookmaker column: never wraps mid-name. */
.nbs-comparison__name {
  min-width: 136px;
}

/* Sticky header row. The offset clears the fixed site header and the section bar. */
.nbs-comparison .nbs-table > thead th {
  position: sticky;
  inset-block-start: 0;
  z-index: 2;
}

/* Below 1200px: scroll inside the box; keep rank and bookmaker columns visible. */
@media (max-width: 74.9375em) {
  .nbs-comparison__scroller {
    max-height: 75vh;
    max-height: 75dvh;
    overflow: auto;
    overscroll-behavior-x: contain;
  }

  /* Keep columns readable instead of squeezing nine of them into a phone's width. */
  .nbs-comparison .nbs-table {
    min-width: 1024px;
  }

  .nbs-comparison .nbs-comparison__rank,
  .nbs-comparison .nbs-comparison__name {
    position: sticky;
    z-index: 1;
    background-color: inherit;
  }

  .nbs-comparison .nbs-comparison__rank {
    inset-inline-start: 0;
  }

  .nbs-comparison .nbs-comparison__name {
    inset-inline-start: 44px;
    box-shadow: inset -1px 0 0 var(--nbs-border-strong);
  }

  .nbs-comparison .nbs-table > tbody > tr {
    background-color: var(--nbs-surface);
  }

  .nbs-comparison .nbs-table > tbody > tr:nth-child(even) {
    background-color: var(--nbs-surface-muted);
  }

  /* Header cells of the sticky columns sit above everything else in the box. */
  .nbs-comparison .nbs-table > thead :is(.nbs-comparison__rank, .nbs-comparison__name) {
    z-index: 3;
    background-color: var(--nbs-navy-700);
  }
}

/* 1200px and up: the table fits, so let the page scroll it and stick the header row to the viewport. */
@media (min-width: 75em) {
  .nbs-comparison__scroller {
    overflow: visible;
  }

  .nbs-comparison .nbs-table > thead th {
    inset-block-start: calc(var(--nbs-header-height) + var(--nbs-section-nav-height));
  }

  /* Round the header corners by hand, since the container no longer clips them. */
  .nbs-comparison .nbs-table > thead th:first-child {
    border-start-start-radius: calc(var(--nbs-radius-md) - 1px);
  }

  .nbs-comparison .nbs-table > thead th:last-child {
    border-start-end-radius: calc(var(--nbs-radius-md) - 1px);
  }
}

/* ---------- Collapsed state ---------- */
/* Applied by CSS as soon as <html> has "nbs-js" (inline script in <head>), so the table never changes
   height when comparison-table.js runs. Rows stay in the HTML. Keep 10 in step with data-nbs-visible-rows. */
.nbs-js [data-nbs-comparison]:not([data-nbs-expanded="true"]) tbody > tr:nth-child(n + 11) {
  display: none;
}

/* ---------- Footer: row count and "Show all" ---------- */
.nbs-comparison__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--nbs-space-3) var(--nbs-space-4);
  margin-block-start: var(--nbs-space-3);
}

.nbs-comparison__toggle {
  display: none; /* shown only when JavaScript runs */
}

.nbs-js .nbs-comparison__toggle {
  display: inline-block;
  min-height: 44px;
  padding: var(--nbs-space-2) var(--nbs-space-5);
  font: inherit;
  font-size: var(--nbs-text-md);
  font-weight: var(--nbs-weight-bold);
  color: var(--nbs-navy-700);
  cursor: pointer;
  background-color: var(--nbs-surface);
  border: 2px solid var(--nbs-navy-700);
  border-radius: var(--nbs-radius-sm);
}

.nbs-comparison__toggle:hover {
  color: var(--nbs-surface);
  background-color: var(--nbs-navy-700);
}

.nbs-comparison__count {
  margin: 0;
  font-size: var(--nbs-text-sm);
  color: var(--nbs-color-text-muted);
}

/* ===== components/category-cards.css ===== */
/*
 * CMP-01 Category cards.
 * Spec: docs/components/cmp-01-category-cards.md
 *
 * A list of links to category pages. Each card has ONE link whose text is the destination title;
 * the link's ::after covers the whole card, so the card is clickable without wrapping block content
 * in the link. The icon is decorative (alt="").
 */
.nbs-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: var(--nbs-space-3);
  margin-block-start: var(--nbs-space-5);
  padding: 0;
  list-style: none;
}

.nbs-category-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--nbs-space-3);
  margin: 0;
  padding: var(--nbs-space-3) var(--nbs-space-4);
  background-color: var(--nbs-surface);
  border: 1px solid var(--nbs-border-strong);
  border-radius: var(--nbs-radius-md);
}

.nbs-category-card:hover {
  border-color: var(--nbs-navy-700);
  box-shadow: var(--nbs-shadow-raised);
}

/* Focus ring around the whole card when its link has keyboard focus. */
.nbs-category-card:has(.nbs-category-card__link:focus-visible) {
  outline: var(--nbs-focus-width) solid var(--nbs-color-focus);
  outline-offset: var(--nbs-focus-offset);
}

.nbs-category-card__icon {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.nbs-category-card__link {
  font-size: 17px;
  font-weight: var(--nbs-weight-bold);
  line-height: 1.35;
  color: var(--nbs-color-link);
  text-decoration: none;
}

.nbs-category-card__link:focus-visible {
  outline: none; /* the card shows the ring instead */
}

.nbs-category-card__link::after {
  position: absolute;
  inset: 0;
  content: "";
  border-radius: inherit;
}

.nbs-category-card:hover .nbs-category-card__link {
  color: var(--nbs-color-link-hover);
  text-decoration: underline;
}

/* ===== components/pick-cards.css ===== */
/*
 * CMP-02 Top-pick cards.
 * Spec: docs/components/cmp-02-pick-cards.md
 *
 * Replaces four single-cell layout tables. Name, rating and offer should come from the bookmaker
 * records that feed the listing, not be typed into the card. No calls to action are added: the
 * name links to the review, as it does today.
 */
.nbs-picks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 288px), 1fr));
  gap: var(--nbs-space-5);
  margin-block-start: var(--nbs-space-5);
  padding: 0;
  list-style: none;
}

.nbs-pick {
  display: flex;
  flex-direction: column;
  gap: var(--nbs-space-3);
  margin: 0;
  padding: var(--nbs-space-5);
  background-color: var(--nbs-surface);
  border: 1px solid var(--nbs-border-strong);
  border-block-start: 4px solid var(--nbs-color-accent);
  border-radius: var(--nbs-radius-lg);
}

.nbs-pick > :where(*) {
  margin: 0;
}

.nbs-pick__name {
  font-size: var(--nbs-text-h3);
}

.nbs-pick__name a {
  text-decoration-thickness: 1px;
}

.nbs-pick__rating {
  display: flex;
  align-items: center;
  gap: var(--nbs-space-2);
  font-weight: var(--nbs-weight-bold);
  font-variant-numeric: tabular-nums;
}

/* Stars filled in proportion to the rating (set per card with style="--nbs-rating: 4.8").
   Decorative and aria-hidden: the rating is also given as text. */
.nbs-stars {
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0.1em;
  color: transparent;
  background: linear-gradient(90deg, var(--nbs-star) calc(var(--nbs-rating, 0) / 5 * 100%), var(--nbs-border-strong) 0);
  -webkit-background-clip: text;
  background-clip: text;
}

.nbs-pick__summary {
  flex: 1 1 auto;
  font-size: var(--nbs-text-md);
  line-height: 1.55;
}

.nbs-pick__offer {
  padding: var(--nbs-space-2) var(--nbs-space-3);
  font-weight: var(--nbs-weight-bold);
  line-height: 1.4;
  background-color: var(--nbs-red-050);
  border-inline-start: 3px solid var(--nbs-color-accent);
  border-radius: 0 var(--nbs-radius-sm) var(--nbs-radius-sm) 0;
}

.nbs-pick__highlights {
  font-size: var(--nbs-text-md);
}

.nbs-pick__highlights > li + li {
  margin-block-start: var(--nbs-space-2);
}

/* ===== components/article-cards.css ===== */
/*
 * CMP-03 Article cards (news and guides).
 * Spec: docs/components/cmp-03-article-cards.md
 *
 * One link per card: the title, whose ::after covers the card. No "Read More" buttons.
 * Images keep a 16:9 frame (no layout shift); below 576px the card turns horizontal with a
 * square thumbnail so four cards do not fill four screens.
 */
.nbs-article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: var(--nbs-space-5);
  margin-block-start: var(--nbs-space-5);
  padding: 0;
  list-style: none;
}

.nbs-article-card {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  overflow: hidden;
  background-color: var(--nbs-surface);
  border: 1px solid var(--nbs-border-strong);
  border-radius: var(--nbs-radius-lg);
}

.nbs-article-card:hover {
  border-color: var(--nbs-navy-700);
  box-shadow: var(--nbs-shadow-raised);
}

.nbs-article-card:has(.nbs-article-card__title a:focus-visible) {
  outline: var(--nbs-focus-width) solid var(--nbs-color-focus);
  outline-offset: var(--nbs-focus-offset);
}

.nbs-article-card__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background-color: var(--nbs-surface-muted);
  border-radius: 0;
}

.nbs-article-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: var(--nbs-space-2);
  padding: var(--nbs-space-4);
}

.nbs-article-card__body > :where(*) {
  margin: 0;
}

.nbs-article-card__title {
  font-size: 18px;
  font-weight: var(--nbs-weight-bold);
  line-height: var(--nbs-leading-snug);
}

.nbs-article-card__title a {
  color: var(--nbs-color-heading);
  text-decoration: none;
}

.nbs-article-card__title a:focus-visible {
  outline: none; /* the card shows the ring instead */
}

.nbs-article-card__title a::after {
  position: absolute;
  inset: 0;
  content: "";
}

.nbs-article-card:hover .nbs-article-card__title a {
  color: var(--nbs-color-link-hover);
  text-decoration: underline;
}

.nbs-article-card__date {
  font-size: var(--nbs-text-sm);
  color: var(--nbs-color-text-muted);
}

.nbs-article-card__excerpt {
  font-size: 15px;
  line-height: 1.55;
}

/* Category labels: small, not links (as today). */
.nbs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--nbs-space-1);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nbs-tags > li {
  margin: 0;
  padding: 2px var(--nbs-space-2);
  font-size: var(--nbs-text-xs);
  font-weight: var(--nbs-weight-bold);
  line-height: 1.5;
  color: var(--nbs-red-700);
  background-color: var(--nbs-red-050);
  border-radius: var(--nbs-radius-sm);
}

/* "More news" link under a card grid. */
.nbs-more-link {
  font-weight: var(--nbs-weight-bold);
}

@media (max-width: 35.9375em) {
  .nbs-article-grid {
    gap: var(--nbs-space-3);
  }

  .nbs-article-card {
    flex-direction: row;
  }

  .nbs-article-card__image {
    flex: none;
    width: 104px;
    aspect-ratio: 1;
  }

  .nbs-article-card__body {
    padding: var(--nbs-space-3);
  }

  .nbs-article-card__excerpt {
    display: none; /* the title, labels and date are enough to choose; the excerpt stays in the HTML */
  }
}

/* ===== components/trust.css ===== */
/*
 * CMP-04 Methodology weights and author profiles; CMP-06 press strip.
 * Specs: docs/components/cmp-04-methodology-authors.md, docs/components/cmp-06-press-strip.md
 */

/* ---------- Rating weights (CMP-04) ---------- */
/* Each bar's length is the weight's share of the final rating (20% fills a fifth of the track),
   so the bars add up to the whole. Set per item with style="--nbs-weight: 20". */
.nbs-weights {
  padding: var(--nbs-space-5);
  background-color: var(--nbs-surface);
  border: 1px solid var(--nbs-border-strong);
  border-radius: var(--nbs-radius-lg);
}

.nbs-weights__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nbs-weights__item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: var(--nbs-space-1) var(--nbs-space-3);
  margin: 0;
  font-size: var(--nbs-text-md);
}

.nbs-weights__item + .nbs-weights__item {
  margin-block-start: var(--nbs-space-3);
}

.nbs-weights__item::after {
  grid-column: 1 / -1;
  height: 6px;
  content: "";
  background: linear-gradient(90deg, var(--nbs-navy-700) calc(var(--nbs-weight, 0) * 1%), var(--nbs-navy-100) 0);
  border-radius: 999px;
}

.nbs-weights__value {
  font-variant-numeric: tabular-nums;
}

.nbs-weights__total {
  display: flex;
  justify-content: space-between;
  margin: var(--nbs-space-4) 0 0;
  padding-block-start: var(--nbs-space-3);
  font-size: var(--nbs-text-md);
  border-block-start: 1px solid var(--nbs-border);
}

/* ---------- Author profiles (CMP-04) ---------- */
.nbs-authors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 352px), 1fr));
  gap: var(--nbs-space-5);
  margin-block-start: var(--nbs-space-4);
  padding: 0;
  list-style: none;
}

.nbs-author {
  display: flex;
  align-items: flex-start;
  gap: var(--nbs-space-4);
  margin: 0;
  padding: var(--nbs-space-5);
  background-color: var(--nbs-surface);
  border: 1px solid var(--nbs-border-strong);
  border-radius: var(--nbs-radius-lg);
}

.nbs-author__photo {
  flex: none;
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
}

.nbs-author__body > :where(*) {
  margin: 0;
}

.nbs-author__role {
  margin-block-start: var(--nbs-space-1);
  font-size: var(--nbs-text-sm);
  font-weight: var(--nbs-weight-bold);
  color: var(--nbs-red-700);
}

.nbs-author__bio {
  margin-block-start: var(--nbs-space-3);
  font-size: var(--nbs-text-md);
  line-height: 1.6;
}

.nbs-author__link {
  margin-block-start: var(--nbs-space-3);
  font-size: var(--nbs-text-md);
  font-weight: var(--nbs-weight-bold);
}

@media (max-width: 35.9375em) {
  .nbs-author {
    flex-direction: column;
  }
}

/* ---------- Press strip (CMP-06) ---------- */
/* Static logos instead of a carousel: all visible at once, no motion, no slider script. */
.nbs-press {
  margin-block-start: var(--nbs-space-7);
  padding-block-start: var(--nbs-space-5);
  border-block-start: 1px solid var(--nbs-border-strong);
}

.nbs-press__intro {
  margin: 0;
  font-size: var(--nbs-text-sm);
  font-weight: var(--nbs-weight-bold);
  color: var(--nbs-color-text-muted);
}

.nbs-press__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--nbs-space-4) var(--nbs-space-6);
  margin: var(--nbs-space-4) 0 0;
  padding: 0;
  list-style: none;
}

.nbs-press__logos > li {
  margin: 0;
}

.nbs-press__logos img {
  display: block;
  width: auto;
  max-width: 136px;
  height: 32px;
  object-fit: contain;
  border-radius: 0;
  filter: grayscale(1);
  opacity: 0.85;
}

/* ===== components/faq.css ===== */
/*
 * CMP-05 FAQ.
 * Spec: docs/components/cmp-05-faq.md
 *
 * Questions are headings; faq.js wraps each question's text in a <button aria-expanded> and
 * collapses the answers with hidden="until-found", so browser find-in-page can still open them.
 * Without JavaScript every answer is shown. FAQPage microdata is unchanged.
 */
.nbs-faq {
  margin-block-start: var(--nbs-space-5);
  border-block-start: 1px solid var(--nbs-border-strong);
}

.nbs-faq__item {
  border-block-end: 1px solid var(--nbs-border-strong);
}

/* Collapsed from first paint when JavaScript is available (<html class="nbs-js">), so nothing moves
   when faq.js runs; faq.js then switches to hidden="until-found". */
.nbs-js .nbs-faq:not([data-nbs-faq-ready]) .nbs-faq__answer {
  display: none;
}

.nbs-faq__question {
  margin: 0;
  padding-block: var(--nbs-space-4);
  font-size: var(--nbs-text-h4);
  font-weight: var(--nbs-weight-h4);
  line-height: var(--nbs-leading-snug);
  color: var(--nbs-color-heading);
}

.nbs-faq__answer {
  padding-block-end: var(--nbs-space-4);
}

.nbs-faq__answer :where(p) {
  margin: 0;
}

.nbs-faq__answer :where(p + p) {
  margin-block-start: var(--nbs-space-3);
}

/* Enhanced (faq.js has run) */
.nbs-faq[data-nbs-faq-ready] .nbs-faq__question {
  padding: 0;
}

.nbs-faq__toggle {
  position: relative;
  display: block;
  width: 100%;
  min-height: 48px;
  padding: var(--nbs-space-4) var(--nbs-space-7) var(--nbs-space-4) 0;
  font: inherit;
  color: inherit;
  text-align: start;
  cursor: pointer;
  background: none;
  border: 0;
}

.nbs-faq__toggle:hover {
  color: var(--nbs-color-link-hover);
}

/* Plus that turns into a minus: drawn with gradients, decorative. */
.nbs-faq__toggle::after {
  position: absolute;
  inset-inline-end: var(--nbs-space-2);
  inset-block-start: 50%;
  width: 16px;
  height: 16px;
  content: "";
  background:
    linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
  transform: translateY(-50%);
}

.nbs-faq__toggle[aria-expanded="true"]::after {
  background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
}

.nbs-faq__toggle:focus-visible {
  outline-offset: 0;
}

/* ===== components/templates.css ===== */
/*
 * Template components.
 * Specs: docs/templates/README.md and the component specs it links to.
 *
 *   .nbs-layout-sidebar  LAY-04  main column beside the existing sidebar (article and review pages)
 *   .nbs-byline          CMP-08  author, role and updated date under an article or review title
 *   .nbs-breadcrumb      NAV-05  breadcrumb trail
 *   .nbs-pagination      NAV-06  numbered pages for listings
 *   .nbs-proscons        CMP-09  pros and cons side by side
 */

/* ---------- LAY-04 Main column with sidebar ---------- */
/* The sidebar keeps its existing markup and content (the bookmaker widget is unchanged).
   Below 992px the sidebar follows the main column, as it does today. */
.nbs-layout-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr); /* lets wide tables scroll inside their own box on phones */
  gap: var(--nbs-space-7);
}

/* Title block, lead image and body of the main column. */
.nbs-layout-sidebar__main > * {
  margin-block: 0;
}

.nbs-layout-sidebar__main > * + * {
  margin-block-start: var(--nbs-space-5);
}

@media (min-width: 61.9375em) {
  .nbs-layout-sidebar {
    grid-template-columns: minmax(0, 1fr) 344px;
    align-items: start;
  }

  /* In a two-column layout the reading column starts at the main column's left edge. */
  .nbs-layout-sidebar__main .nbs-prose > * {
    margin-inline: 0;
  }
}

/* ---------- CMP-08 Byline ---------- */
.nbs-byline {
  display: flex;
  align-items: center;
  gap: var(--nbs-space-3);
  margin: 0;
  font-size: var(--nbs-text-sm);
  line-height: 1.45;
  color: var(--nbs-color-text-muted);
}

.nbs-byline__photo {
  flex: none;
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
}

.nbs-byline__name {
  display: block;
  font-size: var(--nbs-text-md);
  font-weight: var(--nbs-weight-bold);
  color: var(--nbs-color-text);
}

.nbs-byline__name a {
  color: var(--nbs-color-link);
}

/* ---------- NAV-05 Breadcrumb ---------- */
.nbs-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: var(--nbs-space-1) 0;
  margin: 0;
  padding: 0;
  font-size: var(--nbs-text-sm);
  list-style: none;
}

.nbs-breadcrumb li + li::before {
  margin-inline: var(--nbs-space-2);
  content: "/";
  content: "/" / "";
  color: var(--nbs-color-text-muted);
}

.nbs-breadcrumb a {
  color: var(--nbs-color-link);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.nbs-breadcrumb [aria-current="page"] {
  color: var(--nbs-color-text-muted);
}

/* ---------- NAV-06 Pagination ---------- */
.nbs-pagination ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--nbs-space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nbs-pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding-inline: var(--nbs-space-3);
  font-weight: var(--nbs-weight-bold);
  color: var(--nbs-color-link);
  text-decoration: none;
  background-color: var(--nbs-surface);
  border: 1px solid var(--nbs-border-strong);
  border-radius: var(--nbs-radius-sm);
}

.nbs-pagination a:hover {
  border-color: var(--nbs-navy-700);
}

.nbs-pagination a[aria-current="page"] {
  color: var(--nbs-surface);
  background-color: var(--nbs-navy-700);
  border-color: var(--nbs-navy-700);
}

/* ---------- CMP-09 Pros and cons ---------- */
.nbs-proscons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: var(--nbs-space-4);
}

.nbs-proscons__col {
  margin: 0;
  padding: var(--nbs-space-4) var(--nbs-space-5);
  background-color: var(--nbs-surface);
  border: 1px solid var(--nbs-border-strong);
  border-block-start: 4px solid var(--nbs-positive-700);
  border-radius: var(--nbs-radius-md);
}

.nbs-proscons__col--cons {
  border-block-start-color: var(--nbs-negative-700);
}

.nbs-proscons__title {
  margin: 0 0 var(--nbs-space-3);
  font-size: var(--nbs-text-h4);
  font-weight: var(--nbs-weight-h4);
  color: var(--nbs-color-text);
}

.nbs-proscons__col > ul {
  margin: 0;
  font-size: var(--nbs-text-md);
}
