/* The new design's core stylesheet (APEX; redesign P2, release 2-2). Loaded only on pages drawn in the new design
   (design_next_chrome(), site/includes/design.php), after fonts-next.css, site-next-base.css, site-shared.css and promotions.css. The current
   design never loads it. See docs/REDESIGN_BUILD.md, "The new design's header, footer and drawer".

   What is here: every custom property the new design's component styles read (colours for both themes, the type scale,
   spacing, radii, layout), the base elements, focus rings, the skip link, buttons, and the header, phone section row,
   drawer and footer. Page stylesheets (P3 onwards) build on these tokens and never define colours of their own.

   Transitional, until P5b: site.css still loads before this file, because the page bodies are still the current design's
   templates. So this file also defines the properties site.css and the component stylesheets (promotions, analytics
   consent, buying guide, finder, comparison, bike pages) read, mapped onto the new tokens (the "legacy names" block), and
   redefines .wrap, so those bodies line up with the new header. Since release 2-5 those stylesheets write every colour as
   a token, and this file gives each one its new-design value ("component colours"), so the bodies follow both themes; it
   also raises their small text to 12 px and fixes their measured contrast ("the current templates under the new design").
   Each P3–P5b page stylesheet retired its share of site.css; since go-live stage 2b part 2 no public page loads it, and
   site-shared.css (the rules of it the public pages still use) loads in its place.

   Rules this file keeps (dev plan P2, CSS architecture):
   - no text under 12 px: --fs-label is the floor;
   - control borders use --line-control, at least 3:1 against every surface they sit on, in both themes;
   - white text sits on --accent-surface or --accent-hover, both at least 4.5:1;
   - focus rings are drawn inside scroll containers, where an outer ring would be cut off;
   - no variable-font axis settings: each type role is a static cut (fonts-next.css). */

/* ------------------------------------------------------------------ tokens: dark, the default (D1) */
:root{
  color-scheme:dark;
  /* raw palette: asphalt neutrals with a faint blue bias, and the brand's signal red */
  --asphalt-975:#08080B;--asphalt-950:#0B0B0E;--asphalt-900:#111115;--asphalt-850:#16161B;--asphalt-800:#1C1C22;
  --asphalt-700:#26262E;--asphalt-600:#34343D;--asphalt-500:#4A4A55;--asphalt-400:#6E6E7A;--asphalt-300:#A0A0AA;
  --asphalt-200:#CBCBD2;--asphalt-100:#E4E4E9;--asphalt-50:#F5F5F7;
  --signal-500:#FF2E3E;   /* brand red: marks, rules, the current-page line */
  --signal-600:#D81F2D;   /* button surface: 5.1:1 with white */
  --signal-400:#FF5462;   /* red text on dark: 6.3:1 */
  --signal-700:#B5121F;   /* red text on light: 6.2:1; button hover: 6.8:1 with white */

  /* semantic colours */
  --bg:var(--asphalt-950);
  --bg-sunken:var(--asphalt-975);
  --bg-band:var(--asphalt-900);
  --surface:var(--asphalt-850);
  --surface-2:var(--asphalt-800);
  --surface-hover:var(--asphalt-700);
  --line:var(--asphalt-700);            /* dividers: decoration, not a control's edge */
  --line-strong:var(--asphalt-600);
  --line-control:var(--asphalt-400);    /* a control's border: 3.9:1 on --bg, 3.4:1 on --surface-2 */
  --text-strong:var(--asphalt-50);
  --text:#DADAE0;
  --text-muted:var(--asphalt-300);      /* 7.6:1 on --bg */
  --text-faint:#84848F;                 /* 5.3:1 on --bg, 4.6:1 on --surface-2 (the mockups' #80808B: 4.3:1 there) */
  --accent:var(--signal-500);
  --accent-ink:var(--signal-400);
  --accent-surface:var(--signal-600);
  --accent-hover:var(--signal-700);     /* was #E8293A in the mockups: 4.4:1 with white, under AA */
  --on-accent:#FFFFFF;
  --kerb-light:#F2F2F4;
  --studio-a:#F3F4F6;--studio-b:#DFE1E5;
  --studio-dark-a:var(--asphalt-700);--studio-dark-b:var(--asphalt-900);   /* the dark plate for a logo made for dark grounds (release 4-3) */
  --studio-neutral:var(--asphalt-300);  /* a logo without a stored tone: white 2.6:1, black 8:1, a saturated red, blue or yellow 1.6:1 or more (release 4-3 review) */
  --overlay:rgb(5 5 8 / .72);
  --scrim:linear-gradient(180deg,rgb(0 0 0 / 0) 35%,rgb(0 0 0 / .82) 100%);
  --shadow-pop:0 16px 40px rgb(0 0 0 / .45);
  --focus:#FFFFFF;
  --brand-ring:none;                    /* D20: the logo's ring, light theme only */
  --cat-news:#B8B8C2;--cat-bikes:#FFB347;--cat-racing:var(--signal-500);--cat-gear:#6FB7F0;--cat-reviews:#F2E6C9;
  --cat-tech:#A992F7;--cat-market:#52D3A6;--cat-trackdays:#FF7A3D;--cat-guide:#7FE0F0;
  --ok:#3DD68C;--warn:#F5B740;--bad:#FF5462;

  /* type: the families and role weights come from fonts-next.css (--font-display, --font-heading, --font-title,
     --font-numerals, --font-text, --weight-*) */
  --font-mono:ui-monospace,"SF Mono",Menlo,monospace;
  --fs-display:clamp(2.5rem,1.55rem + 3.2vw,4.5rem);   /* 40 → 72 */
  --fs-h1:clamp(2rem,1.45rem + 2vw,3.25rem);           /* 32 → 52 */
  --fs-h2:clamp(1.5rem,1.22rem + 1vw,2.125rem);        /* 24 → 34 */
  --fs-h3:clamp(1.1875rem,1.1rem + .35vw,1.375rem);    /* 19 → 22 */
  --fs-h4:1.0625rem;                                   /* 17 */
  --fs-body-l:clamp(1.0625rem,1rem + .25vw,1.1875rem); /* 17 → 19, articles */
  --fs-body:1rem;                                      /* 16 */
  --fs-small:.875rem;                                  /* 14 */
  --fs-caption:.8125rem;                               /* 13 */
  --fs-label:.75rem;                                   /* 12: the floor, nothing smaller */
  /* D25: the wordmark is set in the display cut, which is narrower than the mockups' 900/80 variable instance. Measured
     on the style tile: 0.8762 of the width at the same size (design-research/review/p2-style-tile, analysis.json). So
     it is set 1 / 0.8762 = 1.1412 times the mockups' size, and keeps its former width. */
  --fs-wordmark:calc(1.15rem * 1.1412);                /* 21.0 px, from the mockups' 18.4 */

  /* space, radius, layout */
  --s1:4px;--s2:8px;--s3:12px;--s4:16px;--s5:24px;--s6:32px;--s7:48px;--s8:64px;--s9:96px;
  --r-sm:4px;--r-md:8px;--r-lg:16px;--r-pill:999px;
  --max:1320px;
  --reading:680px;
  --gutter:max(16px,env(safe-area-inset-left,0px));
  --section-gap:clamp(48px,6vw,88px);
  /* The header: its bar, the phone section row under it, and how much of it is on screen. --header-offset is what a
     sticky element below the header sets as its top; it is 0 while the phone header is tucked away (site.js adds
     .header-tucked), so such an element moves up with it. */
  --header-h:64px;
  --subnav-h:0px;
  --header-offset:calc(var(--header-h) + var(--subnav-h) + 1px);

  /* legacy names: the custom properties site.css and the component stylesheets read, on the new tokens */
  --border:var(--line);
  --muted:var(--text-muted);
  --control-border:var(--line-control);
  --red:var(--accent);
  --red-surface:var(--accent-surface);
  --body:var(--font-text);
  --display:var(--font-title);
  --wordmark:var(--font-display);
  --radius:14px;
  --panel:var(--surface);
}

/* ------------------------------------------------------------------ tokens: light, the reading mode (D1) */
/* Release 2-5 review: these three are also defined in site.css's :root (the current design's values). Set here on the new
   design's root as well, so they win by specificity, not by which stylesheet loads last; the light block below still
   overrides --text-strong. */
html[data-ar-theme]{--text-strong:var(--asphalt-50);--on-accent:#FFFFFF;--accent-hover:var(--signal-700)}
html[data-ar-theme="light"]{
  color-scheme:light;
  --bg:#F3F4F6;
  --bg-sunken:#E9EBEE;
  --bg-band:#FFFFFF;
  --surface:#FFFFFF;
  --surface-2:#ECEEF1;
  --surface-hover:#E2E5E9;
  --line:#DCDFE4;
  --line-strong:#C1C5CC;
  --line-control:#80838C;               /* 3.4:1 on --bg, 3.3:1 on --surface-2, 3.0:1 on --surface-hover */
  --text-strong:#0C0C0F;
  --text:#24242A;
  --text-muted:#585A64;
  --text-faint:#64666F;                 /* 4.8:1 on --bg-sunken, 4.9:1 on --surface-2 (the mockups' #6A6C76: 4.4:1, 4.5:1) */
  --accent:#E1192B;
  --accent-ink:var(--signal-700);
  --accent-surface:var(--signal-600);
  --kerb-light:#FFFFFF;
  --overlay:rgb(12 12 16 / .5);
  --shadow-pop:0 16px 40px rgb(20 22 30 / .16);
  --focus:#0C0C0F;
  --brand-ring:0 0 0 1px rgb(11 11 14 / .22);
  --cat-news:#6B6D78;--cat-bikes:#C7780A;--cat-gear:#1F78C1;--cat-reviews:#8A6A1F;
  --cat-tech:#6A4FD8;--cat-market:#108A63;--cat-trackdays:#D2531A;--cat-guide:#0E8A9E;
}

/* ------------------------------------------------------------------ component colours (release 2-5)
   Since release 2-5 site.css and the component stylesheets write no colour of their own: each is a token, and site.css's
   :root gives it the value the current design had (unchanged). Here is the new design's value for each, so the page
   bodies follow both themes. Most are the semantic colours above; artwork, photographs and the photo viewer keep one
   colour in both themes. The workspace tokens are not here: admin pages never draw the new design. */
html[data-ar-theme]{
  /* status colours as text (the light theme's are the style tile's light badges) and as tinted notes */
  --ok-ink:var(--ok);--warn-ink:var(--warn);--bad-ink:var(--bad);
  --tint-ok-bg:color-mix(in srgb,var(--ok) 10%,var(--surface));--tint-warn-bg:color-mix(in srgb,var(--warn) 10%,var(--surface));
  --tint-bad-bg:color-mix(in srgb,var(--bad) 10%,var(--surface));--tint-accent-bg:color-mix(in srgb,var(--accent) 14%,var(--surface));
  --tint-ok-line:color-mix(in srgb,var(--ok) 35%,var(--surface));--tint-warn-line:color-mix(in srgb,var(--warn) 35%,var(--surface));
  --tint-bad-line:color-mix(in srgb,var(--bad) 35%,var(--surface));
  /* Shadow colours, by strength */
  --shadow-1:#0002;--shadow-2:#0003;--shadow-3:#0005;--shadow-4:#0006;--shadow-5:#0008;--shadow-6:#0009;
  /* Analytics consent banner */
  --consent-bg:var(--surface);--consent-ink:var(--text);--consent-line:var(--line-strong);
  --consent-button:var(--text-strong);--consent-button-ink:var(--bg);
  --consent-button-hover:color-mix(in srgb,var(--text-strong) 80%,var(--bg));
  --consent-control-line:var(--line-control);--consent-focus:var(--focus);
  /* Page */
  --skip-link-ink:var(--bg);--article-ink:var(--text);--footer-bg:var(--bg-sunken);--menu-scrim:var(--overlay);
  --field-line:var(--line-control);--dialog-line:var(--line-strong);
  /* Notes and states */
  --notice-ink:var(--text);--notice-bg:var(--tint-warn-bg);--notice-rule:var(--warn);
  --notice-line:var(--tint-warn-line);--draft-ink:var(--warn-ink);--draft-bg:var(--tint-warn-bg);
  --draft-line:var(--tint-warn-line);--caution-ink:var(--warn-ink);--warning-ink:var(--warn-ink);
  --success-ink:var(--ok-ink);--success-bg:var(--tint-ok-bg);--success-line:var(--tint-ok-line);
  --error-ink:var(--bad-ink);--error-bg:var(--tint-bad-bg);--error-line:var(--tint-bad-line);
  --cancelled-ink:var(--bad-ink);--cancelled-bg:var(--tint-bad-bg);--cancelled-line:var(--tint-bad-line);
  --postponed-ink:var(--warn-ink);--postponed-bg:var(--tint-warn-bg);--postponed-line:var(--tint-warn-line);
  /* Over photographs, videos and the photo viewer */
  --viewer-bg-dim:rgba(6,7,10,.97);--viewer-ink:#f6f6f8;--viewer-status-ink:#c4c4ce;--viewer-button-line:#62636d;
  --viewer-button-bg:#23242c;--viewer-button-hover:#383943;--viewer-button-ink:#fff;--viewer-focus:#fff;
  /* Sharing */
  --share-facebook-ink:#4a97f7;--share-whatsapp-ink:#3ddc7d;--share-x-line:var(--text-strong);
  --share-email-line:var(--text-muted);--share-email-ink:var(--text-strong);--share-action-ink:var(--accent-ink);
  /* Notification hint */
  --hint-bg:var(--kerb-light);--hint-ink:var(--asphalt-900);--hint-edge:#fff8;--hint-copy-ink:var(--asphalt-600);
  --hint-promise-ink:var(--asphalt-500);--hint-close-ink:var(--asphalt-500);--hint-accent:var(--signal-700);
  --hint-glow:color-mix(in srgb,var(--accent) 11%,transparent);
  /* Model cards (search and buying guide) */
  --model-card-line:var(--line);--model-card-from:var(--surface);--model-card-to:var(--bg-band);
  --model-card-hover-line:var(--line-control);
  /* Community offers */
  --offer-line:var(--line);--offer-benefit-from:color-mix(in srgb,var(--cat-reviews) 10%,var(--surface));
  --offer-benefit-to:var(--surface);--offer-benefit-ink:var(--cat-reviews);
  --offer-disclosure-ink:var(--text-muted);--offer-audience-ink:var(--text-muted);
  --offer-button-line:var(--line-control);--offer-button-ink:var(--text-strong);
  --offer-button-hover-bg:var(--surface-2);--offer-button-hover-line:var(--cat-reviews);
  /* Promotions */
  --promo-line:var(--line);--promo-bg:var(--surface);--promo-ink:var(--text-strong);--promo-description:var(--text);
  --promo-note:var(--text-muted);--promo-badge-line:var(--line-control);--promo-button:var(--accent-surface);
  --promo-veil-1:#090a0ff5;--promo-veil-2:#090a0fe0;--promo-veil-3:#090a0f66;--promo-veil-4:#090a0f3d;
  --promo-veil-5:#090a0f8a;--promo-veil-6:#08090af7;--promo-veil-7:#08090ade;--promo-veil-8:#08090a50;
  --promo-admin-line:var(--line);--promo-admin-row-bg:var(--surface);--promo-admin-panel-bg:var(--surface-2);
  --promo-admin-selected-line:var(--accent);--promo-admin-selected-bg:var(--tint-accent-bg);
  --promo-admin-delete-ink:var(--accent-ink);--promo-admin-delete-line:var(--accent);
  --promo-admin-empty-ink:var(--text-muted);--promo-admin-note:var(--text-muted);
  /* Buying guide */
  --guide-preview-ink:var(--text);--guide-preview-bg:var(--tint-warn-bg);--guide-preview-line:var(--tint-warn-line);
  --guide-highlight:var(--accent-ink);--guide-intro-ink:var(--text-muted);--guide-search-bg:var(--surface);
  --guide-search-focus:var(--focus);--guide-icon-ink:var(--text-muted);--guide-filter-bg:var(--surface);
  --guide-label-ink:var(--text);--guide-choice-ink:var(--text);--guide-check:var(--accent-surface);
  --guide-field-bg:var(--surface-2);--guide-button-line:var(--line-control);--guide-brand-ink:var(--accent-ink);
  --guide-tag-ink:var(--text-muted);--guide-tag-line:var(--line-strong);--guide-electric-ink:var(--ok-ink);
  --guide-electric-line:var(--tint-ok-line);--guide-divider:var(--line);--guide-row-line:var(--line);
  --guide-source-ink:var(--text-muted);--guide-source-link:var(--text);--guide-source-mark:var(--warn-ink);
  --guide-empty-line:var(--line-strong);--guide-about-line:var(--line);--guide-scrollbar:var(--line-strong);
  --guide-spinner-track:var(--line-strong);--guide-spinner:var(--accent);--guide-spec-ink:var(--text-strong);
  --guide-photo-focus:var(--focus);--launcher-line:var(--line-strong);--launcher-from:var(--surface-2);
  --launcher-to:var(--surface);--launcher-note:var(--text-muted);--launcher-arrow:var(--accent-ink);
  --launcher-close-ink:var(--text);--launcher-close-line:var(--line-control);--launcher-close-bg:var(--surface-2);
  --launcher-close-hover-line:var(--text-muted);--launcher-close-hover-bg:var(--surface-hover);
  /* Model comparison and the catalogue assistant */
  --compare-line:var(--line-strong);--compare-tray-bg:var(--surface);--compare-dock-bg:var(--surface-2);
  --compare-tray-ink:var(--text);--compare-pressed-bg:var(--tint-accent-bg);--compare-pressed-line:var(--accent);
  --compare-feedback-ink:var(--accent-ink);--assistant-bg:color-mix(in srgb,var(--accent) 6%,var(--surface));
  --assistant-note:var(--text-muted);--assistant-hover-line:var(--accent);
  --assistant-glow-1:color-mix(in srgb,var(--accent) 10%,transparent);
  --assistant-glow-2:color-mix(in srgb,var(--accent) 33%,transparent);
  /* Finder */
  --finder-panel-from:color-mix(in srgb,var(--accent) 8%,var(--surface));--finder-panel-to:var(--surface);
  --finder-panel-line:var(--line-strong);--finder-panel-ink:var(--text);--finder-allowance-ink:var(--text-muted);
  --finder-eyebrow-ink:var(--text-muted);--finder-ink-dim:var(--text-muted);--finder-spec-value:var(--text-strong);
  --finder-spec-line:var(--line);--finder-step-ink:var(--text-muted);--finder-step-rule:var(--line);
  --finder-step-line:var(--line-control);--finder-step-bg:var(--bg);--finder-step-current-bg:var(--accent-surface);
  --finder-step-current-line:var(--accent);--finder-step-glow:color-mix(in srgb,var(--accent) 9%,transparent);
  --finder-step-done-line:color-mix(in srgb,var(--accent) 50%,var(--line-control));
  --finder-step-done-ink:var(--accent-ink);--finder-step-done-label:var(--text);
  --finder-legend-ink:var(--text-strong);--finder-option-bg:var(--surface);--finder-option-line:var(--line-control);
  --finder-option-hover-bg:var(--surface-2);--finder-option-hover-line:var(--text-muted);
  --finder-option-checked-bg:var(--tint-accent-bg);--finder-option-note:var(--text-muted);
  --finder-selected:var(--accent);--finder-focus:var(--focus);--finder-control-line:var(--line-control);
  --finder-check:var(--accent);--finder-order-bg:var(--accent-surface);--finder-invalid:var(--bad);
  --finder-invalid-ink:var(--bad-ink);--finder-field-bg:var(--surface);--finder-field-line:var(--line-control);
  --finder-field-focus:var(--focus);--finder-placeholder:var(--text-faint);
  --finder-notes-placeholder:var(--text-faint);--finder-unit-ink:var(--text-muted);
  --finder-reassurance-ink:var(--text-muted);--finder-reassurance-line:var(--line);
  --finder-reassurance-mark:var(--accent-ink);--finder-actions-line:var(--line);--finder-back-bg:var(--surface);
  --finder-back-line:var(--line-control);--finder-back-hover-line:var(--text-muted);
  --finder-back-ink:var(--text-strong);--finder-error-bg:var(--tint-bad-bg);--finder-error-ink:var(--text-strong);
  --finder-group-line:var(--line);--finder-group-head-bg:var(--surface-2);--finder-group-head-ink:var(--text-strong);
  --finder-group-row-line:var(--line);--finder-group-term:var(--text-muted);--finder-group-action:var(--accent-ink);
  --finder-exclusions-line:var(--line);--finder-loading-line:var(--line);
  --finder-loading-glow:color-mix(in srgb,var(--accent) 20%,transparent);--finder-loading-bg:var(--surface);
  --finder-mark-ink:var(--on-accent);--finder-mark-line:color-mix(in srgb,var(--accent) 33%,transparent);
  --finder-mark-from:var(--accent-surface);--finder-mark-to:var(--accent-hover);
  --finder-mark-glow:color-mix(in srgb,var(--accent) 17%,transparent);--finder-skeleton-line:var(--line);
  --finder-skeleton-bg:var(--surface);--finder-skeleton-bar:var(--surface-2);
  --finder-shimmer:color-mix(in srgb,var(--text-strong) 11%,transparent);--finder-empty-line:var(--line-control);
  --finder-empty-ink:var(--accent-ink);--finder-chip-line:var(--line-control);--finder-chip-ink:var(--text);
  --finder-chip-bg:var(--surface-2);--finder-card-line:var(--line);--finder-card-bg:var(--surface);
  --finder-card-top-line:var(--accent);--finder-card-top-from:color-mix(in srgb,var(--accent) 10%,var(--surface));
  --finder-card-top-to:var(--surface);--finder-rank-ink:var(--accent-ink);--finder-brand-ink:var(--text-muted);
  --finder-tag-ink:var(--text);--finder-tag-bg:var(--surface-2);--finder-price-line:var(--line);
  --finder-price-note:var(--text-muted);--finder-card-heading:var(--text-strong);--finder-reason-ink:var(--text);
  --finder-bullet:var(--accent-ink);--finder-compromise-heading:var(--text);--finder-target:var(--accent);
  --finder-help-line:var(--line);
  --finder-help-ink:var(--text-muted);--finder-help-summary:var(--text);--finder-link:var(--accent-ink);
  --finder-note-rule:var(--accent);--finder-note-bg:var(--surface-2);--finder-note-ink:var(--text);
  --finder-email-field-bg:var(--bg);
  --finder-status-ok-bg:var(--tint-ok-bg);--finder-status-ok-ink:var(--text-strong);
  --finder-status-error-bg:var(--tint-bad-bg);--finder-status-error-ink:var(--text-strong);
}
html[data-ar-theme="light"]{
  --ok-ink:#0B7A47;--warn-ink:#8A5A00;--bad-ink:var(--signal-700);
  --shadow-1:rgb(20 22 30 / .05);--shadow-2:rgb(20 22 30 / .08);--shadow-3:rgb(20 22 30 / .13);
  --shadow-4:rgb(20 22 30 / .16);--shadow-5:rgb(20 22 30 / .21);--shadow-6:rgb(20 22 30 / .24);
  --share-facebook-ink:#1565C0;--share-whatsapp-ink:#0F7A40;--hint-edge:var(--line);--offer-benefit-ink:#6F5418;
}

/* ------------------------------------------------------------------ base */
*,*::before,*::after{box-sizing:border-box}
html{background:var(--bg);-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-padding-top:calc(var(--header-offset) + 16px)}
body{margin:0;background:var(--bg);color:var(--text);font:400 var(--fs-body)/1.6 var(--font-text);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
/* viewport-fit=cover: the strip under a phone's status bar keeps the page colour while the header is tucked away */
body::before{content:"";position:fixed;inset:0 0 auto;height:env(safe-area-inset-top,0px);z-index:60;background:var(--bg);pointer-events:none}
img{display:block;max-width:100%;height:auto}
a{color:inherit;text-decoration:none}
a:hover{color:var(--text-strong)}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
h1,h2,h3,h4{font-family:var(--font-title);color:var(--text-strong)}
::selection{background:var(--accent-surface);color:var(--on-accent)}
/* The same selectors site.css gives its red ring, so this one replaces it everywhere: white on dark, near-black on light. */
:focus-visible,a:focus-visible,button:focus-visible,summary:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--focus);outline-offset:3px}
/* No box cuts the ring (owner, 3 December 2026). A card's title keeps to its lines by hiding what overflows, the ring of its link
   included, and that link covers the whole card, so the ring is drawn on the card (as on the brand and model pages); a video's
   title link has its ring on the title (the home page's events and the article's further reading do the same in their own
   stylesheets). A row that scrolls sideways, which cuts what passes its edges, leaves the ring room inside it (home-next.css).
   Only where the browser can say which card holds the focus (:has); elsewhere the link keeps its own ring.
   tests/visual/layout-probe.mjs (ringFaults) measures every ring on the audited pages. */
@supports selector(:has(*)){
  .card:has(.card__title a:focus-visible){outline:2px solid var(--focus);outline-offset:4px;border-radius:var(--r-md)}
  .video-card h3:has(a:focus-visible){outline:2px solid var(--focus);outline-offset:2px;border-radius:var(--r-sm)}
  .card__title a:focus-visible,.video-card h3 a:focus-visible{outline:none}
}
.sr-only,.skip-link:not(:focus){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.skip-link:focus{position:fixed;top:calc(env(safe-area-inset-top,0px) + 8px);left:max(8px,env(safe-area-inset-left,0px));z-index:100;padding:12px 16px;border-radius:var(--r-md);background:var(--text-strong);color:var(--bg);font-weight:650;outline-offset:2px}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* ------------------------------------------------------------------ layout */
.wrap{width:100%;max-width:calc(var(--max) + 2 * 40px);margin-inline:auto;padding-left:max(16px,env(safe-area-inset-left,0px),min(40px,4vw));padding-right:max(16px,env(safe-area-inset-right,0px),min(40px,4vw))}

/* ------------------------------------------------------------------ buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 20px;border-radius:var(--r-md);border:1px solid transparent;font-size:var(--fs-small);font-weight:700;line-height:1.2;white-space:nowrap;transition:background-color .15s,border-color .15s}
.btn svg{width:18px;height:18px;flex-shrink:0}
.btn--primary{background:var(--accent-surface);color:var(--on-accent)}
.btn--primary:hover{background:var(--accent-hover);color:var(--on-accent)}
.btn--secondary{background:var(--surface-2);border-color:var(--line-control);color:var(--text-strong)}
.btn--secondary:hover{border-color:var(--text-muted)}
.btn--ghost{background:transparent;border-color:var(--line-control);color:var(--text-strong)}
.btn--ghost:hover{background:var(--surface-2)}
.btn--ghost[aria-pressed="true"]{border-color:var(--text-strong)}

/* ------------------------------------------------------------------ inline notification asks (release 6a-2; notify-asks.php)
   The racing hub, the trackdays calendar and a model page each offer one: a button for what it names, a line saying it is only that,
   and a status line. Once on, the button is a link to the settings, with a check. On an iPhone outside the Home Screen the line on
   Add to Home Screen and the newsletter take its place. */
.nask{display:flex;flex-direction:column;align-items:flex-start;gap:var(--s2);min-width:0}
.nask[hidden],.nask__ios[hidden],.nask [hidden]{display:none}
.nask__button{white-space:normal;text-align:left}
.nask[data-state="on"] .nask__button{border-color:var(--text-strong)}
.nask[data-state="on"] .nask__button::after{content:"✓";content:"✓"/"";font-weight:700;color:var(--ok-ink)}
.nask__button[aria-disabled="true"]{opacity:.7;cursor:progress}
.nask__note{margin:0;font-size:var(--fs-caption);line-height:1.5;color:var(--text-muted)}
.nask__note a{color:var(--text-muted);text-decoration:underline;text-underline-offset:3px}
.nask__note a:hover{color:var(--text-strong)}
.nask__status{margin:0;font-size:var(--fs-small);line-height:1.5;color:var(--text-strong)}
.nask__status:empty{display:none}
.nask__status.is-ok,.nask__status.is-warn{padding-left:var(--s3);border-left:3px solid var(--ok)}
.nask__status.is-warn{border-left-color:var(--warn)}
.nask__ios{display:flex;flex-direction:column;align-items:flex-start;gap:var(--s3);max-width:var(--reading)}
.nask__ios p{margin:0;font-size:var(--fs-small);line-height:1.55;color:var(--text)}
@media (max-width:640px){.nask,.nask__button,.nask__ios .btn{width:100%}.nask__button{justify-content:center;text-align:center}}

/* ------------------------------------------------------------------ brand mark (D20, D25) */
.ar-brand{display:flex;align-items:center;gap:12px;flex-shrink:0;color:var(--text-strong)}
.ar-brand:hover{color:var(--text-strong)}
.ar-brand img{width:36px;height:36px;border-radius:50%;box-shadow:var(--brand-ring)}
/* One colour, no red RIDER, in both themes (D20); the display cut at the size that keeps the former width (D25). */
.ar-brand__word{font:var(--weight-display) var(--fs-wordmark)/1 var(--font-display);letter-spacing:-.01em;white-space:nowrap;color:var(--text-strong)}

/* ------------------------------------------------------------------ header */
.ar-header{position:sticky;top:env(safe-area-inset-top,0px);z-index:50;background:color-mix(in srgb,var(--bg) 92%,transparent);-webkit-backdrop-filter:saturate(1.4) blur(12px);backdrop-filter:saturate(1.4) blur(12px);border-bottom:1px solid var(--line);transition:transform .2s ease}
/* The phone header-hide (site.js, at 640 px and below): the header slides away and --header-offset follows it. */
.ar-header.header-tucked{transform:translateY(-100%)}
html:has(.ar-header.header-tucked){--header-offset:0px}
@media (min-width:641px){.ar-header.header-tucked{transform:none}html:has(.ar-header.header-tucked){--header-offset:calc(var(--header-h) + var(--subnav-h) + 1px)}}
.ar-header__bar{display:flex;align-items:center;gap:16px;height:var(--header-h)}
.ar-header__bar > .ar-brand{margin-right:8px}

.ar-nav{display:flex;align-items:center;gap:2px;min-width:0}
.ar-nav a{display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 8px;border-radius:var(--r-md);font-size:var(--fs-small);font-weight:600;color:var(--text);white-space:nowrap}
.ar-nav a:hover{background:var(--surface-2);color:var(--text-strong)}
.ar-nav a[aria-current="page"]{color:var(--text-strong);box-shadow:inset 0 -2px 0 var(--accent);border-radius:var(--r-md) var(--r-md) 0 0}
.ar-nav svg{opacity:.7}
/* A promotion's menu label may be 50 characters long (S-14): in the bar it is cut to fit with an ellipsis; its full text
   is its accessible name and is shown in the drawer. Styled like a section link (D9). */
.ar-nav .promotion-nav-link{display:block;flex:0 1 auto;min-width:7.5rem;max-width:13rem;line-height:40px;overflow:hidden;text-overflow:ellipsis}
.ar-nav .ar-nav__widest{display:none}

.ar-tools{margin-left:auto;display:flex;align-items:center;gap:var(--s2);flex-shrink:0}
.ar-icon-btn{display:inline-grid;place-items:center;width:40px;height:40px;padding:0;border:0;border-radius:var(--r-pill);background:transparent;color:var(--text-strong);flex-shrink:0}
.ar-icon-btn:hover{background:var(--surface-2);color:var(--text-strong)}
.ar-icon-btn svg{width:22px;height:22px}
.ar-search-btn{border:1px solid var(--line-control)}
.ar-search-btn svg,.ar-theme-btn svg{width:20px;height:20px}
/* The reading-mode buttons sit in a GET form to /theme, so they work without JavaScript (release 2-3); the form draws no box
   of its own, so each button lays out in the bar and the drawer exactly as it did on its own. */
.ar-theme-form{display:contents}
.ar-search-btn[aria-current="page"]{border-color:var(--text-strong)}
/* D4: the buying guide is a pill in the header, in place of the floating launcher. */
.ar-guide-btn{display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 16px 0 5px;border-radius:var(--r-pill);background:var(--surface-2);border:1px solid var(--line-control);font-size:var(--fs-small);font-weight:650;color:var(--text-strong);white-space:nowrap}
.ar-guide-btn:hover{border-color:var(--accent);color:var(--text-strong)}
.ar-guide-btn[aria-current="page"]{border-color:var(--text-strong)}
.ar-guide-btn .bg-rider{width:28px;height:28px;flex-shrink:0}
.ar-lang{display:inline-flex;align-items:center;height:40px;font-size:var(--fs-caption);font-weight:650;color:var(--text-muted)}
.ar-lang a,.ar-lang span{display:inline-flex;align-items:center;min-height:40px;padding:0 6px}
.ar-lang a:hover{color:var(--text-strong)}
.ar-lang [aria-current]{color:var(--text-strong);box-shadow:inset 0 -2px 0 var(--accent)}
.ar-lang .unavailable-language{color:var(--text-faint);text-decoration:line-through;cursor:not-allowed}
.ar-menu-btn{display:none}

/* the phone and tablet section row, scrolled sideways */
.ar-subnav{display:none;overflow-x:auto;scrollbar-width:none;border-top:1px solid var(--line)}
.ar-subnav::-webkit-scrollbar{display:none}
.ar-subnav ul{display:flex;align-items:center;gap:4px;width:max-content;min-width:100%;max-width:none;height:calc(var(--subnav-h) - 1px);margin:0;list-style:none}
.ar-subnav li{flex-shrink:0}
.ar-subnav a{display:inline-flex;align-items:center;height:34px;padding:0 16px;border-radius:var(--r-pill);border:1px solid var(--line-control);background:var(--surface);font-size:var(--fs-small);font-weight:600;color:var(--text);white-space:nowrap}
.ar-subnav a[aria-current="page"]{background:var(--text-strong);border-color:var(--text-strong);color:var(--bg)}
/* inside the scroll container a ring outside the pill would be cut off at the row's edges */
.ar-subnav a:focus-visible{outline-offset:-4px}
.ar-subnav a[aria-current="page"]:focus-visible{outline-color:var(--bg)}

/* A promotion kept off phones and tablets ("show on phones" off) stays off them in the bar and the drawer too. */
@media (hover:none),(pointer:coarse){
  .ar-header .promotion-desktop-only,.ar-drawer .promotion-desktop-only{display:none!important}
  .ar-drawer__promotions:not(:has(a:not(.promotion-desktop-only))){display:none}
}

/* ------------------------------------------------------------------ drawer */
.ar-drawer{position:fixed;inset:0 0 0 auto;z-index:70;width:min(420px,100%);max-width:100%;height:100%;max-height:none;margin:0 0 0 auto;padding:0;border:0;border-left:1px solid var(--line);background:var(--bg);color:var(--text);overflow-y:auto;overscroll-behavior:contain}
.ar-drawer::backdrop{background:var(--overlay)}
/* Without JavaScript the menu links lead to #ar-menu, and the drawer shows as a fixed panel while it is the target. A browser
   without native dialogs would show a closed <dialog>, so the closed state is hidden here rather than by the browser. */
.ar-drawer:not([open]){display:none}
.ar-drawer:target{display:block}
.next-js .ar-drawer:target:not([open]){display:none}
/* The page keeps its scrollbar's space while the drawer locks scrolling: without it the scrollbar disappears, the page
   widens by its width and every centred block shifts sideways (owner, 30 November). Overlay scrollbars take no space,
   so there is nothing to keep there. New-design pages only. */
html[data-ar-theme]{scrollbar-gutter:stable}
html:has(.ar-drawer[open]),html:not(.next-js):has(.ar-drawer:target){overflow:hidden}
.ar-drawer__panel{display:flex;flex-direction:column;gap:var(--s5);min-height:100%;padding:calc(env(safe-area-inset-top,0px) + 12px) max(20px,env(safe-area-inset-right,0px)) calc(32px + env(safe-area-inset-bottom,0px)) 20px}
.ar-drawer__top{display:flex;align-items:center;justify-content:space-between;gap:var(--s3);min-height:44px}
.ar-drawer__top .ar-brand img{width:32px;height:32px}
.ar-drawer__search{display:flex;align-items:center;gap:12px;height:48px;padding:0 16px;border-radius:var(--r-md);background:var(--surface);border:1px solid var(--line-control);color:var(--text-muted)}
.ar-drawer__search svg{flex-shrink:0}
.ar-drawer__search:focus-within{border-color:var(--text-muted);outline:2px solid var(--focus);outline-offset:2px}
.ar-drawer__search input{flex:1;min-width:0;height:100%;padding:0;border:0;background:transparent;font-size:var(--fs-body);color:var(--text-strong);outline:none}
.ar-drawer__search input::placeholder{color:var(--text-faint);opacity:1}
.ar-drawer__tools{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px}
.ar-drawer__tools a{display:flex;flex-direction:column;gap:6px;min-height:48px;padding:16px;border-radius:var(--r-md);background:var(--surface);border:1px solid var(--line);font-weight:650;line-height:1.3;color:var(--text-strong)}
.ar-drawer__tools a:hover{border-color:var(--line-control);color:var(--text-strong)}
.ar-drawer__tools a[aria-current="page"]{border-color:var(--accent)}
.ar-drawer__tools span{font-size:var(--fs-caption);font-weight:500;color:var(--text-muted)}
.ar-drawer__group{display:flex;flex-direction:column}
.ar-drawer__group h2{margin:0 0 8px;font:650 var(--fs-label)/1.3 var(--font-text);letter-spacing:.07em;color:var(--text-faint)}
.ar-drawer__group a{display:flex;align-items:center;min-height:48px;padding-block:8px;border-bottom:1px solid var(--line);font-weight:600;line-height:1.35;color:var(--text-strong)}
.ar-drawer__group a:hover{color:var(--accent-ink)}
.ar-drawer__group a[aria-current="page"]{color:var(--accent-ink)}
.ar-drawer__foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--s3);margin-top:auto;padding-top:var(--s2)}
.ar-lang--long{font-size:var(--fs-small);gap:4px}

/* ------------------------------------------------------------------ footer */
.ar-footer{margin-top:var(--section-gap);padding-block:var(--s8) var(--s5);background:var(--bg-sunken);border-top:1px solid var(--line);color:var(--text)}
.ar-footer__grid{display:grid;grid-template-columns:minmax(0,1.4fr) repeat(4,minmax(0,1fr));gap:var(--s6)}
.ar-footer h2{margin:0 0 var(--s3);font:650 var(--fs-label)/1.3 var(--font-text);letter-spacing:.07em;color:var(--text-faint)}
.ar-footer__about p{margin:var(--s3) 0 0;max-width:34ch;font-size:var(--fs-small);line-height:1.6;color:var(--text-muted)}
.ar-footer__col{display:flex;flex-direction:column;align-items:flex-start}
.ar-footer__col a{display:flex;align-items:center;min-height:36px;font-size:var(--fs-small);color:var(--text)}
.ar-footer__col a:hover,.ar-footer__bottom a:hover{color:var(--text-strong);text-decoration:underline;text-decoration-color:var(--accent);text-underline-offset:4px}
/* S-13: platform icons, and any other destination by name */
.ar-socials{display:flex;flex-wrap:wrap;gap:8px;margin-top:var(--s4)}
.ar-socials a{display:inline-grid;place-items:center;min-width:40px;height:40px;border-radius:var(--r-pill);border:1px solid var(--line-control);color:var(--text-strong)}
.ar-socials a:hover{border-color:var(--accent);color:var(--accent-ink)}
.ar-socials svg{width:18px;height:18px}
.ar-socials .ar-socials__text{padding:0 14px;font-size:var(--fs-caption);font-weight:650}
.ar-footer__bottom{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--s2) var(--s4);margin-top:var(--s7);padding-top:var(--s5);border-top:1px solid var(--line);font-size:var(--fs-caption);color:var(--text-faint)}
.ar-footer__bottom nav{display:flex;flex-wrap:wrap;align-items:center;gap:0 20px}
.ar-footer__bottom a,.ar-footer__bottom .analytics-settings{display:inline-flex;align-items:center;min-height:32px;font-size:var(--fs-caption);color:var(--text-muted)}
.ar-footer__bottom .analytics-settings{appearance:none;padding:0;border:0;background:transparent;font-family:inherit;cursor:pointer;text-align:left}
.ar-footer__bottom .analytics-settings:hover{color:var(--text-strong);text-decoration:underline}

/* ------------------------------------------------------------------ narrower screens
   Header priority, measured with the Greek labels (the longer ones) and a 50-character promotion label: the full bar
   fits from 1380 px; below that the guide pill drops its label, then New motorcycles goes, then the promotion link.
   Everything that leaves the bar is still in the drawer. The pill's label is hidden from sight only (the .sr-only pattern), so the
   rider icon still has its name for assistive technology (the analytics review of 3 December 2026, B1). */
@media (max-width:1380px){
  .ar-guide-btn__label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .ar-guide-btn{position:relative;padding:0 5px}
}
@media (max-width:1260px){.ar-nav .ar-nav__wide{display:none}}
@media (max-width:1100px){.ar-nav .promotion-nav-link{display:none}}
@media (max-width:1000px){
  :root{--header-h:56px;--subnav-h:51px}
  .ar-nav,.ar-header .ar-lang,.ar-theme-btn{display:none!important}
  .ar-menu-btn{display:inline-grid}
  .ar-subnav{display:block}
  .ar-search-btn{border-color:transparent}
  .ar-footer__grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .ar-footer__about{grid-column:1 / -1}
}
@media (max-width:640px){
  :root{--fs-wordmark:calc(1.125rem * 1.1412)}        /* 20.5 px, from the mockups' 18 */
  .ar-header__bar{gap:8px}
  .ar-header__bar > .ar-brand{margin-right:auto}
  .ar-brand{gap:10px}
  .ar-brand img{width:32px;height:32px}
  .ar-tools{gap:4px}
  .ar-footer{padding-top:var(--s7)}
  .ar-footer__grid{gap:var(--s5) var(--s4)}
}
/* Under 360 px the brand and three buttons no longer fit: search leaves the bar (it opens the drawer, at its top). */
@media (max-width:359px){.ar-search-btn{display:none}}

/* ------------------------------------------------------------------ the current templates under the new design (release 2-5)
   site.css's rules (site-shared.css since go-live stage 2b part 2) drew the page bodies until P3–P5b replaced them. These rules apply the new design's limits to them,
   on the new design's pages only (html[data-ar-theme]); the current design never loads this file. */

/* No text under 12 px: every selector the component stylesheets set smaller, raised to --fs-label (artwork lettering,
   the current header and footer, and the workspace are left: the first is part of a picture, the others are not drawn
   in the new design). */
/* site-shared.css and promotions.css load before this file: the same weight as the rule raised, later in the cascade */
:where(html[data-ar-theme]) .strip-label,:where(html[data-ar-theme]) .category-label,
:where(html[data-ar-theme]) .story-meta,:where(html[data-ar-theme]) .eyebrow,:where(html[data-ar-theme]) .byline p,
:where(html[data-ar-theme]) .updated-label,:where(html[data-ar-theme]) .article-hero figcaption,
:where(html[data-ar-theme]) th,:where(html[data-ar-theme]) .contact-signature span,
:where(html[data-ar-theme]) .share-label,:where(html[data-ar-theme]) .event-status,
:where(html[data-ar-theme]) .about-photo figcaption,:where(html[data-ar-theme]) .about-index,
:where(html[data-ar-theme]) .offer-benefit-label,:where(html[data-ar-theme]) .offer-discount-label,
:where(html[data-ar-theme]) .offer-disclosure,:where(html[data-ar-theme]) .offer-audience,
:where(html[data-ar-theme]) .offer-action p,:where(html[data-ar-theme]) .notification-hint-promise,
:where(html[data-ar-theme]) .search-model-price small,:where(html[data-ar-theme]) .calendar-event-venue,
:where(html[data-ar-theme]) .promotion-kicker,:where(html[data-ar-theme]) .promotion .promotion-note,
:where(html[data-ar-theme]) .promotion-c .promotion-kicker{font-size:var(--fs-label)}
@media(max-width:640px){
:where(html[data-ar-theme]) .strip-label,:where(html[data-ar-theme]) .latest-strip a,
:where(html[data-ar-theme]) .category-label,:where(html[data-ar-theme]) .card-secondary .story-meta,
:where(html[data-ar-theme]) .eyebrow,:where(html[data-ar-theme]) .text-link,
:where(html[data-ar-theme]) .racing-links a,:where(html[data-ar-theme]) .breadcrumbs,
:where(html[data-ar-theme]) .search-form .button,:where(html[data-ar-theme]) .article-hero figcaption,
:where(html[data-ar-theme]) .fixture-notice,:where(html[data-ar-theme]) :where(.public-page) .strip-label,
:where(html[data-ar-theme]) :where(.public-page) .eyebrow,
:where(html[data-ar-theme]) :where(.public-page) .offer-benefit-label,
:where(html[data-ar-theme]) :where(.public-page) .about-photo figcaption,
:where(html[data-ar-theme]) :where(.public-page) .search-model-price small{font-size:var(--fs-label)}
}
@media(max-width:380px){
:where(html[data-ar-theme]) .about-photo figcaption{font-size:var(--fs-label)}
}
@media(max-width: 760px){
:where(html[data-ar-theme]) .editorial-story-facts dt{font-size:var(--fs-label)}
}
@media(max-width: 760px){
:where(html[data-ar-theme]) .editorial-story-facts dd{font-size:max(var(--fs-label),clamp(11px,3.25vw,14px))}
}
@container(max-width:700px){
:where(html[data-ar-theme]) .promotion-c .promotion-description,
:where(html[data-ar-theme]) .promotion-c .promotion-kicker{font-size:var(--fs-label)}
}
/* the buying guide's stylesheets load after this file: one step heavier than the rule raised */
html[data-ar-theme] .finder-eyebrow,html[data-ar-theme] .finder-progress-number,
html[data-ar-theme] .finder-field small,html[data-ar-theme] .finder-notes label small,
html[data-ar-theme] .finder-exclusions summary small,html[data-ar-theme] .finder-option-copy small,
html[data-ar-theme] .finder-priority-order,html[data-ar-theme] .finder-field-hint,
html[data-ar-theme] .finder-review-group h3,html[data-ar-theme] .finder-review-group dt,
html[data-ar-theme] .finder-review-group button,html[data-ar-theme] .finder-notes p,
html[data-ar-theme] .finder-note-count,html[data-ar-theme] .finder-profile-chips span,
html[data-ar-theme] .finder-result-rank,html[data-ar-theme] .finder-result-brand,
html[data-ar-theme] .finder-result-tags span,html[data-ar-theme] .finder-result-price small,
html[data-ar-theme] .finder-result-card h4,html[data-ar-theme] .finder-result-card>.button,
html[data-ar-theme] .bg-preview,html[data-ar-theme] .bg-kicker,
html[data-ar-theme] .bg-facts,html[data-ar-theme] .bg-filters legend,html[data-ar-theme] .bg-field,
html[data-ar-theme] .bg-budget label,html[data-ar-theme] .bg-reset,html[data-ar-theme] .bg-sort label,
html[data-ar-theme] .bg-sort select,html[data-ar-theme] .bg-brand,html[data-ar-theme] .bg-tags,
html[data-ar-theme] .bg-model-price>span,html[data-ar-theme] .bg-model-price small,
html[data-ar-theme] .bg-model-details>summary,html[data-ar-theme] .bg-model-expanded dt,
html[data-ar-theme] .bg-source-note,html[data-ar-theme] .bg-pagination,html[data-ar-theme] .bg-about>a,
html[data-ar-theme] .bg-launcher small,html[data-ar-theme] .bg-feedback,html[data-ar-theme] .bg-quick-specs dt,
html[data-ar-theme] .bike-photo-fallback{font-size:var(--fs-label)}
@media(max-width:1050px){
html[data-ar-theme] .finder-result-card>.button{font-size:var(--fs-label)}
}
@media(max-width:760px){
html[data-ar-theme] .finder-back-guide,html[data-ar-theme] .finder-progress li,
html[data-ar-theme] .finder-option-copy small,html[data-ar-theme] .finder-actions .button,
html[data-ar-theme] .finder-back,html[data-ar-theme] .finder-review-group dt,
html[data-ar-theme] .finder-empty-actions>.button,html[data-ar-theme] .finder-profile-chips span,
html[data-ar-theme] .finder-result-card>.button,
html[data-ar-theme] .finder-licence-help,html[data-ar-theme] .finder-context-note,
html[data-ar-theme] .bg-search .button,html[data-ar-theme] .bg-launcher small{font-size:var(--fs-label)}
}
@media(max-width:640px){
html[data-ar-theme] :where(.public-page) .finder-progress li,
html[data-ar-theme] :where(.public-page) .finder-result-tags span,
html[data-ar-theme] :where(.public-page) .bg-model-price small,
html[data-ar-theme] :where(.public-page) .bg-sort select,html[data-ar-theme] :where(.public-page) .bg-brand,
html[data-ar-theme] :where(.public-page) .bg-tags,html[data-ar-theme] :where(.public-page) .bg-model-price > span,
html[data-ar-theme] :where(.public-page) .bg-quick-specs dt,
html[data-ar-theme] :where(.public-page) .bg-model-expanded dt,html[data-ar-theme] :where(.public-page) .bg-preview{font-size:var(--fs-label)}
}
@media(max-width:480px){
html[data-ar-theme] .bg-preview,html[data-ar-theme] .bg-results-bar h2,html[data-ar-theme] .bg-sort select,
html[data-ar-theme] .bg-pagination,html[data-ar-theme] .bg-choice,html[data-ar-theme] .bg-quick-specs dt{font-size:var(--fs-label)}
}

/* Contrast, from the release's measurements of the new design's pages in both themes (text, borders, hover).
   Red text is --accent-ink, the style tile's red for text (6.3:1 dark, 6.2:1 light): site.css writes it as --red,
   which is --accent here, 4.4:1 on the light page. Same selectors, so the same elements at the same weight. */
:where(html[data-ar-theme]) .strip-label,:where(html[data-ar-theme]) .category-label,
:where(html[data-ar-theme]) .text-link:hover,:where(html[data-ar-theme]) .error-code,
:where(html[data-ar-theme]) .article-body li::marker,:where(html[data-ar-theme]) .video-dialog-actions button:hover,
:where(html[data-ar-theme]) .about-intro .eyebrow,:where(html[data-ar-theme]) .about-index,
:where(html[data-ar-theme]) .about-destination:hover h3,:where(html[data-ar-theme]) .calendar-event-marker{color:var(--accent-ink)}
/* .button sets white text for its red fill; an outline button has no fill, so its text is the page's strongest (it was
   white on the light page, 1.1:1). */
:where(html[data-ar-theme]) .button-outline{color:var(--text-strong)}
/* Both site.css and this file turn a link's text to --text-strong on hover. A red button that is a link keeps its white
   text (on the light theme it went near-black on the red hover, 2.9:1); the same weight as a:hover, later. */
:where(html[data-ar-theme]) a:where(.button:not(.button-outline)):hover{color:var(--on-accent)}

/* Layout B sets its words over the photograph's veils, which are one colour in both themes; so are its words (release 3-3 review:
   on the light theme they were dark on dark). The photo viewer's inks, also one colour in both themes. */
html[data-ar-theme] .promotion-b{--promo-ink:var(--viewer-ink);--promo-description:var(--viewer-status-ink);--promo-note:var(--viewer-status-ink);--promo-badge-line:var(--viewer-button-line)}
/* Its heading too: the core's h1–h4 rule sets --text-strong on every heading, which on the light theme is dark. */
html[data-ar-theme] .promotion-b :is(h2,h3){color:var(--promo-ink)}

/* ------------------------------------------------------------------ the story stream (release 3-3, WP5)
   Articles sharing a topic, newest first (site/includes/topics.php): beside the homepage's racing module, and at the top of a
   section page, in the new design only. In the core because two page stylesheets would otherwise each carry it; the section
   pages load no stylesheet of their own yet. The mockup's «ΣΥΝΕΧΗΣ ΚΑΛΥΨΗ»: a timeline, the newest dot filled. */
.stream{display:flex;flex-direction:column;min-width:0;padding:var(--s5);border-radius:var(--r-lg);background:var(--surface);border:1px solid var(--line)}
.stream__label{font:600 var(--fs-label)/1.3 var(--font-text);letter-spacing:.07em;text-transform:uppercase;color:var(--text-muted)}
.stream__title{margin:var(--s2) 0 0;font:var(--weight-title) var(--fs-h4)/1.3 var(--font-title);color:var(--text-strong);overflow-wrap:anywhere}
.stream__list{position:relative;margin:var(--s4) 0 0;padding:0;list-style:none}
.stream__list::before{content:"";position:absolute;left:5px;top:8px;bottom:8px;width:2px;background:var(--line-strong)}
.stream__list li{position:relative;margin:0;padding:0 0 var(--s4) 26px}
.stream__list li::before{content:"";position:absolute;left:0;top:5px;width:12px;height:12px;box-sizing:border-box;border-radius:50%;background:var(--surface);border:2px solid var(--accent)}
.stream__list li:first-child::before{background:var(--accent)}
.stream__list time{display:block;font-size:var(--fs-caption);line-height:1.5;color:var(--text-faint);font-variant-numeric:tabular-nums}
.stream__list a{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;font-weight:600;line-height:1.38;color:var(--text-strong)}
.stream__list a:hover{color:var(--accent-ink)}
/* «Όλη η κάλυψη» at the bottom right, as every other «Όλα …» link sits on the right (owner, 2 December 2026). */
.stream__more{display:inline-flex;align-self:flex-end;align-items:center;gap:var(--s2);margin-top:auto;min-height:44px;font-size:var(--fs-small);font-weight:650;color:var(--text-strong);text-decoration:none}
.stream__more::after{content:"→"}
.stream__more:hover{color:var(--accent-ink)}
/* On a section page: across the page, the four in a row, each with its dot and no line between rows. */
.stream--wide{margin-block:var(--s5)}
.stream--wide .stream__list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--s4) var(--s5)}
.stream--wide .stream__list::before{display:none}
.stream--wide .stream__list li{padding-bottom:0}
@media (max-width:1000px){.stream--wide .stream__list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){
  .stream{padding:var(--s4)}
  .stream--wide .stream__list{grid-template-columns:minmax(0,1fr);gap:0}
  .stream--wide .stream__list::before{display:block}
  .stream--wide .stream__list li{padding-bottom:var(--s4)}
}

/* ------------------------------------------------------------------ section eyebrows (release 4-3)
   The line over every section heading of a new-design page: the kerb and a short label in capitals, printed only by
   next_eyebrow() (site/includes/design.php), so every page draws the same one. The headings inside a section (h3, card
   titles, the boxes inside an article) carry none; the article's key points box is the one heading that holds the kerb itself
   (the mockup's box label). tests/integration/http.mjs ("section heads") checks every new-design page for both rules. */
.ar-eyebrow{display:flex;align-items:center;gap:12px;margin:0;font:600 var(--fs-label)/1.3 var(--font-text);letter-spacing:.07em;text-transform:uppercase;color:var(--text-muted)}
.ar-kerb{display:inline-block;width:20px;height:12px;flex-shrink:0;background:repeating-linear-gradient(90deg,var(--accent) 0 5px,var(--kerb-light) 5px 10px);transform:skewX(-20deg);border-radius:1px}
/* In a current template drawn by the new design (the 404's latest stories), the eyebrow stands in for site.css's red bar. */
.section-heading .ar-eyebrow{margin-bottom:var(--s2)}
.section-heading .ar-eyebrow + h2::before{content:none}

/* ------------------------------------------------------------------ manufacturer logos (release 4-3)
   Every logo the new design draws sits on a studio plate, the element with .logo-plate, and is drawn as bg_logo_tone() says
   (site/includes/bike-catalogue-identities.php, one answer per file, stored in the registry):
   .logo--ink    a white-only file, made for dark headers: drawn dark on the light plate (one colour, so nothing is lost);
   .logo--plain  a coloured, boxed or dark mark: drawn exactly as it is on the light plate, never filtered;
   .logo--dark   white words beside coloured or black parts: drawn exactly as it is on the dark plate, where it was made to sit;
   .logo--neutral a file the registry has no tone for yet: drawn as it is on a mid-grey plate, where white and black both show.
   The plates are the same in both themes. */
.logo-plate{background:radial-gradient(120% 120% at 50% 40%,var(--studio-a),var(--studio-b))}
.logo-plate.logo--dark{background:radial-gradient(120% 120% at 50% 40%,var(--studio-dark-a),var(--studio-dark-b));box-shadow:inset 0 0 0 1px var(--line-strong)}
.logo-plate.logo--neutral{background:var(--studio-neutral)}
.logo--ink img{filter:brightness(0);opacity:.86}
/* A brand page's model cards under the new design (release 4-3 review): the text starts under the photo in every card of a row,
   and a name wraps between words. */
.bike-page-card a{align-content:start}
.bike-page-card h3{overflow-wrap:break-word}
/* A current template that draws a logo, under the new design only (the class is printed only there): a brand page's heading.
   The new search draws its brand match on the plate itself (search-next.css). */
.bike-page-intro h1.logo-plate{display:flex;align-items:center;justify-content:center;width:fit-content;max-width:100%;padding:14px 20px;border-radius:var(--r-md)}
