/* The new homepage (APEX; redesign P3, release 3-1). Loaded only by templates/home-next.php, in the new design, after
   site-next.css (header.php, the per-route pattern). Built from the approved mockup (design-research/review/p2-style-tile/
   after/home.html and apex-static.css): the shared components first (section heads, labels, cards, pictures, the Latest
   list, rails), then the page's modules in their order (D22). The components carry the mockup's names so the article and
   category releases can lift them into the core unchanged.

   Rules kept (dev plan P2/P3): every colour is a token from site-next.css, in both themes; no text under 12 px; no
   variable-font settings; no inline image URI; titles and summaries clamped to three lines; paired columns end on the same line
   (each module stretches its last items to the row it shares); focus rings inside the rails, which scroll. */

/* No bottom padding on the page: the footer's top margin is the one --section-gap under its last block (owner, 3 December 2026). */
.home-next .section{padding-top:var(--section-gap)}
.home-next .band{margin-top:var(--section-gap);padding-block:var(--section-gap);border-block:1px solid var(--line);background:var(--bg-band)}
.home-next .label{display:flex;align-items:center;gap:12px;font:600 var(--fs-label)/1.3 var(--font-text);letter-spacing:.07em;text-transform:uppercase;color:var(--text-muted)}
.home-next .caption{font-size:var(--fs-caption);color:var(--text-muted)}
.home-next .cluster{display:flex;flex-wrap:wrap;align-items:center;gap:var(--s2)}

/* ------------------------------------------------------------------ promotion slots: the existing renderer, in the new look
   (promotions-next.css, under .promo-apex, release 3-4) */
.hn-promo:empty{display:none}
/* Every slot stands a section-gap below what is above it, and the section under it starts its own gap below it, so a banner is
   never flush with the stories above (release 3-4 review: site.css's divider and an equal-weight reset had left every slot but
   `top` at no gap). `top`, under the topic row, has the top block's own gap above and below (32 px; 16 on a phone). */
.home-next .hn-promo .home-promotions{margin:var(--section-gap) 0 0}
.home-next .hn-promo--top .home-promotions{margin-top:var(--s6)}
.home-next .home-section-divider{border:0;padding:0}
/* Two bands in a row (the Buying Guide band, then Athenian Rider TV) with no promotion between them drew two lines a section-gap
   apart above «Τελευταία βίντεο»: the first band's bottom edge and the second's top edge (release 3-4). The second now meets the
   first on its line: one rule between the two. A slot whose only banners a phone or tablet hides counts as empty there. */
.home-next .band + .band,.home-next .band + .hn-promo:empty + .band{margin-top:0;border-top:0}
@media (hover:none),(pointer:coarse){
  .home-next .band + .hn-promo:not(:has(.promotion:not(.promotion-desktop-only))) + .band{margin-top:0;border-top:0}
}

/* ------------------------------------------------------------------ 0. the topic row (release 3-3; D3, D12)
   The mockup's «ΘΕΜΑΤΑ» bar under the header: the pinned topics (or the automatic ones), a live one with a pulsing dot, and the
   next trackday on the right. One line that scrolls sideways on a narrow screen; the trackday line leaves at 1000 px and below,
   as in the mockup. The pulse stops under reduced motion (the core's rule). */
.topic-bar{border-bottom:1px solid var(--line);background:var(--bg)}
.topic-bar__inner{display:flex;align-items:center;gap:var(--s4);min-height:48px;padding-block:var(--s2);overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none}
.topic-bar__inner::-webkit-scrollbar{display:none}
.topic-bar__label{flex-shrink:0;color:var(--text-faint)}
.topic-bar__list{display:flex;align-items:center;gap:var(--s2);flex-shrink:0;margin:0;padding:0;list-style:none}
.topic{display:inline-flex;align-items:center;gap:8px;min-height:32px;padding:0 12px;border-radius:var(--r-pill);border:1px solid var(--line-strong);font-size:var(--fs-caption);font-weight:600;color:var(--text-strong);white-space:nowrap}
.topic:hover{border-color:var(--accent);color:var(--text-strong)}
.topic:focus-visible{outline-offset:-2px}
.topic .live{width:7px;height:7px;flex-shrink:0;border-radius:50%;background:var(--accent);animation:topic-pulse 2s infinite}
@keyframes topic-pulse{0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--accent) 60%,transparent)}70%{box-shadow:0 0 0 8px color-mix(in srgb,var(--accent) 0%,transparent)}100%{box-shadow:0 0 0 0 color-mix(in srgb,var(--accent) 0%,transparent)}}
.topic-bar__next{display:inline-flex;align-items:center;gap:8px;flex-shrink:0;margin-left:auto;min-height:32px;font-size:var(--fs-caption);color:var(--text-muted);white-space:nowrap}
.topic-bar__next strong{color:var(--text-strong);font-weight:650}
.topic-bar__next::after{content:"→"}
.topic-bar__next:hover strong{color:var(--accent-ink)}
.home-next .topic-bar .label{display:inline-flex}
/* Its arrows (release 3-4): smaller, at the bar's two ends, and the row keeps room for them while it overflows, so neither covers
   a chip or the label. */
.topic-bar{position:relative}
.topic-bar .rail-arrow{width:32px;height:32px;margin-top:-16px;box-shadow:none}
.topic-bar .rail-arrow--back{left:max(4px,calc((100% - var(--max)) / 2 + 4px))}
.topic-bar .rail-arrow--forward{right:max(4px,calc((100% - var(--max)) / 2 + 4px))}
/* A chip the keyboard reaches is scrolled clear of the arrows (32 px at a 4 px inset) rather than under them (B2). */
.topic-bar.rail-frame--overflow .topic-bar__inner{padding-inline:44px;scroll-padding-inline:40px}

/* ------------------------------------------------------------------ section heads */
.section-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:var(--s2) var(--s4);margin-bottom:var(--s5)}
.section-head__title{display:flex;flex-direction:column;gap:var(--s2);min-width:0;max-width:100%}
.section-head h2{font:var(--weight-heading) var(--fs-h2)/1.1 var(--font-heading);letter-spacing:-.01em;color:var(--text-strong)}
.section-head h3{font:var(--weight-heading) var(--fs-h3)/1.2 var(--font-heading);color:var(--text-strong)}
.more{display:inline-flex;align-items:center;gap:var(--s2);min-height:44px;font-size:var(--fs-small);font-weight:650;color:var(--text-strong);white-space:nowrap}
.more::after{content:"→";transition:transform .15s}
.more:hover{color:var(--accent-ink)}
.more:hover::after{transform:translateX(3px)}

/* ------------------------------------------------------------------ labels, chips, badges */
.pip{display:inline-flex;align-items:center;gap:var(--s2);font:650 var(--fs-label)/1.3 var(--font-text);letter-spacing:.06em;text-transform:uppercase;color:var(--text-muted);width:fit-content}
.pip::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--pip,var(--text-muted));flex-shrink:0}
a.pip:hover{color:var(--text-strong)}
.pip[data-cat="news"]{--pip:var(--cat-news)}
.pip[data-cat="bikes"]{--pip:var(--cat-bikes)}
.pip[data-cat="racing"]{--pip:var(--cat-racing)}
.pip[data-cat="gear"]{--pip:var(--cat-gear)}
.pip[data-cat="reviews"]{--pip:var(--cat-reviews)}
.pip[data-cat="tech"]{--pip:var(--cat-tech)}
.pip[data-cat="market"]{--pip:var(--cat-market)}
.pip[data-cat="trackdays"]{--pip:var(--cat-trackdays)}
.pip[data-cat="guide"]{--pip:var(--cat-guide)}
.chip{display:inline-flex;align-items:center;min-height:36px;padding:0 var(--s4);border-radius:var(--r-pill);border:1px solid var(--line-control);font-size:var(--fs-small);font-weight:600;color:var(--text);white-space:nowrap}
.chip:hover{border-color:var(--text-muted);color:var(--text-strong)}
.chip--sm{min-height:32px;padding:0 var(--s3);font-size:var(--fs-caption)}
.badge{display:inline-flex;align-items:center;height:24px;padding:0 var(--s2);border-radius:var(--r-sm);font:700 var(--fs-label)/1 var(--font-text);letter-spacing:.06em;text-transform:uppercase;white-space:nowrap}
.badge--ok{background:var(--tint-ok-bg);color:var(--ok-ink)}

/* ------------------------------------------------------------------ pictures */
.media{position:relative;display:block;overflow:hidden;border-radius:var(--r-md);background:var(--surface-2);aspect-ratio:16/9}
.media__img{width:100%;height:100%;object-fit:cover}
/* The small-image rule (site/includes/home-next.php): the photograph at its natural size, at most 1.25×, centred over a
   blurred, dimmed copy of itself (the same file). The slot keeps its height. */
.media--natural .media__backdrop{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:blur(22px) saturate(1.15) brightness(.6);transform:scale(1.15)}
.media--natural .media__fg{position:absolute;inset:0;margin:auto;max-width:100%;max-height:100%;object-fit:contain}
/* An article without a photograph keeps the editorial card (S-17), filling the same slot. Its two small lines are drawn in a
   weight the page already preloads (600, not site.css's 500), so the card costs no extra font file (release 3-1 review: 24 KB
   on a throttled phone). */
.media--graphic > .story-visual{position:absolute;inset:0;aspect-ratio:auto;height:100%;border:0;border-radius:0}
.media--graphic .graphic-brand,.media--graphic .graphic-foot{font-weight:600}
/* At a phone list's thumbnail size (104 px) the brand line wrapped into a column of three words: only the section's name stays
   (release 5-3 review, the layout audit). The card is its own size container (site.css). */
@container (max-width:160px){.media--graphic .graphic-brand{display:none}}
.media--video img{width:100%;height:100%;object-fit:cover}
.media--video::after{content:"";position:absolute;inset:0;background:var(--scrim);opacity:.6}
.play{position:absolute;left:var(--s4);bottom:var(--s4);z-index:1;display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:var(--accent-surface);color:var(--on-accent);box-shadow:var(--shadow-pop)}
.play svg{margin-left:3px}

/* ------------------------------------------------------------------ cards */
.card{position:relative;display:flex;flex-direction:column;gap:var(--s3);min-width:0}
.card__body{display:flex;flex-direction:column;gap:var(--s2);min-width:0}
.card__title{font:var(--weight-title) var(--fs-h3)/1.2 var(--font-title);color:var(--text-strong);text-wrap:balance;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.card__title a::after{content:"";position:absolute;inset:0;z-index:0}
.card__title a:hover{text-decoration:underline;text-decoration-color:var(--accent);text-decoration-thickness:2px;text-underline-offset:4px}
.card .pip{position:relative;z-index:1}
.card__dek{color:var(--text-muted);font-size:var(--fs-small);line-height:1.55;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.meta{display:flex;flex-wrap:wrap;align-items:center;gap:var(--s1) var(--s3);font-size:var(--fs-caption);color:var(--text-faint)}
.meta > * + *::before{content:"·";margin-right:var(--s3);color:var(--line-strong)}
.meta time{font-variant-numeric:tabular-nums}
.card--fill{align-self:stretch}
.card--fill > .media{flex:1 0 auto}
.card--lead .card__title{font:var(--weight-display) clamp(1.875rem,1.2rem + 2.2vw,3rem)/1.04 var(--font-display);letter-spacing:-.015em}
.card--lead .card__dek{font-size:var(--fs-body-l)}
.card--feature .card__title{font:var(--weight-heading) clamp(1.375rem,1.15rem + .8vw,1.875rem)/1.15 var(--font-heading)}
.card--side .card__title,.card--review .card__title,.card--bento .card__title,.hn-newbikes .card__title,.hn-row .card__title{font-size:var(--fs-h4)}

/* ------------------------------------------------------------------ 1. top stories, the Latest list and the row under them */
.hn-top{padding-top:var(--s6)}
.hn-top__grid{display:grid;grid-template-columns:minmax(0,8fr) minmax(0,4fr);gap:var(--s6)}
.hn-top__grid--alone{grid-template-columns:minmax(0,1fr)}
.card--lead > .media{aspect-ratio:16/9}
.card--lead .card__body{gap:var(--s3)}
.hn-latest{display:flex;flex-direction:column;border-left:1px solid var(--line);padding-left:var(--s6)}
.hn-latest .section-head{margin-bottom:var(--s4)}
.hn-latest .section-head h2{font-size:1.375rem}
.river{display:flex;flex-direction:column;flex:1 1 auto;margin:0;padding:0;list-style:none}
.river li{flex:1 1 auto;display:grid;grid-template-columns:52px minmax(0,1fr);align-content:start;gap:var(--s3);padding-block:var(--s3);border-top:1px solid var(--line)}
.river li:first-child{border-top:0;padding-top:0}
.river time{font:650 var(--fs-caption)/1.5 var(--font-text);font-variant-numeric:tabular-nums;color:var(--text-faint)}
.river .pip{margin-bottom:var(--s1)}
.river a{font-weight:600;line-height:1.38;color:var(--text-strong);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.river a:hover{color:var(--accent-ink)}
.hn-latest > .more{margin-top:auto;padding-top:var(--s3)}
.hn-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--s5);margin-top:var(--s6);padding-top:var(--s6);border-top:1px solid var(--line)}
.hn-row--3{grid-template-columns:repeat(3,minmax(0,1fr))}
.hn-row--2{grid-template-columns:repeat(2,minmax(0,1fr))}
.hn-row .media{aspect-ratio:3/2}
.hn-row .card__body{flex:1 1 auto}
.hn-row .card__body > .meta{margin-top:auto}
.hn-empty{padding-block:var(--section-gap)}
.hn-empty h2{margin-top:var(--s2)}
.hn-empty p{margin-top:var(--s3);color:var(--text-muted)}

/* ------------------------------------------------------------------ 2. racing: a feature and the stories beside it */
.series{display:flex;flex-wrap:wrap;gap:var(--s2);margin-bottom:var(--s5)}
/* The next race under the chips (the racing cards, 2 December 2026; site/includes/racing-cards.php): one line, its date, never a result.
   Owner, 2 December 2026: "Make it more visible" and even spacing above and below. A panel that hugs its text, an accent stripe on its
   left edge, the label in the accent ink and the race in body size; the chips' own gap above it and the same gap below. */
.hn-race-next{width:fit-content;max-width:100%;margin:0 0 var(--s5);padding:var(--s3) var(--s4);border:1px solid var(--line);border-radius:var(--r-md);background:var(--surface);box-shadow:inset 3px 0 0 var(--accent);font-size:var(--fs-body);line-height:1.45;color:var(--text-strong);overflow-wrap:anywhere}
.hn-race-next__label{font-weight:700;color:var(--accent-ink)}
.hn-race-next a{font-weight:700;color:var(--text-strong)}
.hn-race-next a:hover{color:var(--accent-ink)}
.hn-race-next time{font-variant-numeric:tabular-nums;white-space:nowrap}
/* On a phone the label takes its own line, so the race and its date wrap as whole parts (measured at 375 px). */
@media (max-width:640px){.hn-race-next__label{display:block;margin-bottom:2px}}
.hn-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:var(--s5)}
.hn-split--1{grid-template-columns:minmax(0,1fr)}
.hn-split--1 > .card--feature{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:var(--s5);align-items:start}
.hn-split > .card--feature > .media{aspect-ratio:16/9}
.hn-stack{display:flex;flex-direction:column;gap:var(--s5)}
/* With a story stream (release 3-3): the racing stories, then the stream beside them, ending on their line. A single racing card
   (picture beside its words) stretches its picture to the row's height, so it ends on the stream's line too (review). */
.hn-racing__body--stream{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,340px);gap:var(--s6);align-items:stretch}
@media (min-width:1101px){
  .hn-racing__body--stream .hn-split--1 > .card--feature{align-items:stretch}
  .hn-racing__body--stream .hn-split--1 > .card--feature > .media{aspect-ratio:auto;height:100%;min-height:300px}
}
.card--side{display:grid;grid-template-columns:minmax(0,45%) minmax(0,1fr);gap:var(--s4);align-items:start;flex:1 1 0}
.card--side > .media{aspect-ratio:auto;align-self:stretch;height:100%;min-height:150px}

/* ------------------------------------------------------------------ 3. reviews and new motorcycles, ending level */
.hn-pair{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:var(--s7)}
.hn-pair--one{grid-template-columns:minmax(0,1fr)}
.hn-pair__col{display:flex;flex-direction:column;min-width:0}
.hn-reviews{display:flex;flex-direction:column;gap:var(--s5);flex:1 1 auto}
.card--review{display:grid;grid-template-columns:minmax(0,240px) minmax(0,1fr);gap:var(--s4);align-items:start;flex:1 1 0}
.card--review > .media{aspect-ratio:auto;align-self:stretch;height:100%;min-height:150px}
.hn-newbikes{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:var(--s5) var(--s4);flex:1 1 auto;align-content:space-between}
.hn-newbikes .media{aspect-ratio:3/2}
.hn-newbikes > .card--wide{grid-column:1 / -1}
.hn-newbikes > .card--wide > .media{aspect-ratio:16/9}
.hn-pair--one .hn-newbikes{grid-template-columns:repeat(3,minmax(0,1fr))}
.hn-pair--one .hn-newbikes > .card--wide{grid-column:auto}
.hn-pair--one .hn-newbikes > .card--wide > .media{aspect-ratio:3/2}
.hn-pair--one .hn-reviews{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.hn-pair--one .card--review{display:flex;flex-direction:column}
.hn-pair--one .card--review > .media{aspect-ratio:3/2;height:auto}
/* One section alone with fewer than three stories: as many columns as stories, and one story as a wide card, never an empty column. */
.hn-pair--one .hn-reviews--2,.hn-pair--one .hn-newbikes--2{grid-template-columns:repeat(2,minmax(0,1fr))}
.hn-pair--one .hn-reviews--1,.hn-pair--one .hn-newbikes--1{grid-template-columns:minmax(0,1fr)}
.hn-pair--one .hn-reviews--1 > .card,.hn-pair--one .hn-newbikes--1 > .card{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:var(--s5);align-items:start}
.hn-pair--one .hn-reviews--1 > .card > .media,.hn-pair--one .hn-newbikes--1 > .card > .media{aspect-ratio:16/9;height:auto}

/* ------------------------------------------------------------------ 4. gear, technology, industry */
.hn-bento{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--s5)}
.hn-bento--2{grid-template-columns:repeat(2,minmax(0,1fr))}
.hn-bento--1{grid-template-columns:minmax(0,1fr)}
.hn-bento--1 .card--bento{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:var(--s5);align-items:start}
.bento-col{display:flex;flex-direction:column;gap:var(--s4);padding-top:var(--s4);border-top:2px solid var(--text-strong);min-width:0}
.bento-col__head{display:flex;justify-content:space-between;align-items:center;gap:var(--s3)}
.bento-col__head h3{font:var(--weight-heading) var(--fs-h3)/1.2 var(--font-heading);color:var(--text-strong)}
.bento-col__head a{display:inline-flex;align-items:center;min-height:44px;font-size:var(--fs-caption);font-weight:600;color:var(--text-muted);white-space:nowrap}
.bento-col__head a:hover{color:var(--accent-ink)}
.bento-col ul{flex:1 1 auto;display:flex;flex-direction:column;justify-content:space-between;margin:0;padding:0;list-style:none}
.bento-col li{padding-block:var(--s3);border-top:1px solid var(--line)}
.bento-col li:last-child{padding-bottom:0}
.bento-col li a{font-weight:600;line-height:1.38;color:var(--text-strong);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.bento-col li a:hover{color:var(--accent-ink)}

/* ------------------------------------------------------------------ 5. most read */
.ranked{counter-reset:rank;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0 var(--s5);margin:0;padding:0;list-style:none}
.ranked--3{grid-template-columns:repeat(3,minmax(0,1fr))}
.ranked--2{grid-template-columns:repeat(2,minmax(0,1fr))}
.ranked--1{grid-template-columns:minmax(0,1fr)}
.ranked li{counter-increment:rank;display:grid;grid-template-columns:44px minmax(0,1fr);gap:var(--s3);padding-block:var(--s4);border-top:1px solid var(--line)}
.ranked li::before{content:counter(rank);font:var(--weight-numerals) 2.5rem/.9 var(--font-numerals);color:var(--accent-ink)}
.ranked a{font-weight:650;line-height:1.38;color:var(--text-strong);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.ranked a:hover{text-decoration:underline;text-decoration-color:var(--accent);text-underline-offset:4px}

/* ------------------------------------------------------------------ 6. the Buying Guide band (D4) */
.home-next .guide-band{background:linear-gradient(180deg,var(--bg-band),var(--bg))}
.guide-top{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:var(--s6);align-items:center}
.guide-top--alone{grid-template-columns:minmax(0,1fr);max-width:820px}
.guide-top h2{margin-top:var(--s3);font:var(--weight-display) var(--fs-h1)/1 var(--font-display);letter-spacing:-.015em;color:var(--text-strong)}
.guide-top h2 em{font-style:normal;color:var(--accent-ink)}
.guide-search{margin-top:var(--s5)}
.input{display:flex;align-items:center;gap:var(--s3);min-height:52px;padding:0 var(--s2) 0 var(--s4);border-radius:var(--r-md);background:var(--surface);border:1px solid var(--line-control)}
.input:focus-within{border-color:var(--text-muted);outline:2px solid var(--focus);outline-offset:1px}
.input input{flex:1;min-width:0;height:48px;border:0;background:transparent;font-size:var(--fs-body);color:var(--text-strong);outline:none}
.input input::placeholder{color:var(--text-faint)}
.input svg{flex-shrink:0;color:var(--text-muted)}
.input .btn{flex-shrink:0}
.guide-chips{margin-top:var(--s4)}
.finder-card{display:grid;grid-template-columns:96px minmax(0,1fr);gap:var(--s4);align-items:center;padding:var(--s5);border-radius:var(--r-lg);background:var(--surface);border:1px solid var(--line-strong)}
.finder-card .bg-rider{width:96px;height:96px}
.finder-card h3{font:var(--weight-title) var(--fs-h3)/1.2 var(--font-title);color:var(--text-strong)}
.finder-card p{margin-top:var(--s2);color:var(--text-muted);font-size:var(--fs-small)}
.finder-card .btn{margin-top:var(--s3)}

/* ------------------------------------------------------------------ 7. Athenian Rider TV and Shorts (D21, D23) */
.home-next .tv{background:var(--bg-sunken)}
.tv__note{margin:calc(-1 * var(--s3)) 0 var(--s5)}
.tv-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:var(--s5)}
.tv-grid--single{grid-template-columns:minmax(0,1fr)}
.tv-grid--single > .vcard--feature{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:var(--s5);align-items:center}
.vcard--feature > .media,.vcard--pair > .media{aspect-ratio:16/9}
.tv-grid--feature > .vcard--feature{align-self:stretch}
.tv-grid--feature > .vcard--feature > .media{flex:1 0 auto}
.vcard--feature .card__title{font:var(--weight-heading) clamp(1.375rem,1.15rem + .8vw,1.875rem)/1.15 var(--font-heading)}
.vcard .card__title a span{color:inherit}
.tv-side{min-width:0}
.tv-side--rows{display:flex;flex-direction:column;justify-content:space-between;gap:var(--s4)}
.vcard--row{display:grid;grid-template-columns:minmax(0,46%) minmax(0,1fr);gap:var(--s4);align-items:start}
.tv-side--grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:repeat(2,minmax(0,1fr));gap:var(--s5) var(--s4)}
.vcard--thumb > .media{flex:1 0 auto;min-height:120px}
.vcard--thumb .card__title,.vcard--row .card__title{font-size:var(--fs-h4)}
.tv-side--compact{display:flex;flex-direction:column;justify-content:space-between}
/* Seven to eleven: two columns, each spread over the feature's height, so both end on its line even when one holds a row fewer. */
.tv-side--compact-2{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:var(--s4)}
.tv-side__col{display:flex;flex-direction:column;justify-content:space-between;min-width:0}
.vcard--compact{display:grid;grid-template-columns:128px minmax(0,1fr);gap:var(--s3);align-items:center;padding-block:10px;border-top:1px solid var(--line)}
.vcard--compact .card__title{font:600 var(--fs-small)/1.35 var(--font-text);-webkit-line-clamp:2}
.shorts{margin-top:var(--s7)}
.tv-grid ~ .shorts,.shorts:first-child{margin-top:var(--s7)}
.shorts:first-child{margin-top:0}
.rail{display:grid;grid-auto-flow:column;grid-auto-columns:176px;gap:var(--s4);overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;padding-bottom:var(--s3);scrollbar-width:thin;scrollbar-color:var(--line-strong) transparent;justify-content:start}
/* The rails' arrows (release 3-4; home_next_rail_arrow(), site-next.js): drawn only while the track overflows, at its two edges,
   level with the middle of its pictures (--rail-arrow-top), straddling the edge so they cover little of a card. The one at an end
   is dimmed (aria-disabled). Once the script runs the track's scrollbar is hidden; without it, the scrollbar stays. */
.rail-frame{position:relative;min-width:0}
.rail-frame--ready [data-rail-track]{scrollbar-width:none}
.rail-frame--ready [data-rail-track]::-webkit-scrollbar{display:none}
.rail-arrow{position:absolute;top:var(--rail-arrow-top,50%);z-index:2;display:grid;place-items:center;width:40px;height:40px;margin-top:-20px;padding:0;border-radius:50%;border:1px solid var(--line-control);background:var(--surface);color:var(--text-strong);box-shadow:var(--shadow-pop);cursor:pointer;transition:opacity .15s,background-color .15s}
.rail-arrow[hidden]{display:none}
.rail-arrow--back{left:-12px}
.rail-arrow--forward{right:-12px}
.rail-arrow:hover{background:var(--surface-hover)}
.rail-arrow[aria-disabled="true"]{opacity:.35;cursor:default;box-shadow:none}
.rail-arrow[aria-disabled="true"]:hover{background:var(--surface)}
.rail-arrow:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.shorts-frame{--rail-arrow-top:156px}
.tv-side-frame{--rail-arrow-top:68px;display:flex;flex-direction:column}
.tv-side-frame > .tv-side{flex:1 1 auto}
.rail > *{scroll-snap-align:start}
/* The row cuts what passes its edges: 6 px of room inside it for a card's ring (4 px out, 2 px wide), without moving the cards
   (owner, 3 December 2026). */
.rail{padding-top:6px;padding-inline:6px;margin-top:-6px;margin-inline:-6px;scroll-padding-inline:6px}
.rail a:focus-visible,.tv-side a:focus-visible{outline-offset:-3px}
.vcard--short > .media{aspect-ratio:9/16}
.vcard--short .card__title{font:600 var(--fs-small)/1.35 var(--font-text)}

/* ------------------------------------------------------------------ 8. trackdays and the community offer (S-15)
   Every count of dates and offers from 0 to 3 (release 3-4; home_next_td_layout()): rows of at most four cards, each card the
   row's height, so every row ends level. A row of four is two by two from 1100 px down and one column on a phone; a row of three
   keeps its three columns down to 641 px, the dates turned upright to fit; two halves stay halves. The calendar card stands in
   for missing dates, and alone runs the module's width as a strip. */
.td-grid{display:flex;flex-direction:column;gap:var(--s4)}
.td-row{display:flex;gap:var(--s4);align-items:stretch}
.td-row > *{flex:1 1 0;min-width:0}
.td-row > .offer{flex-grow:1.15}
.event{position:relative;display:flex;gap:var(--s4);align-items:flex-start;padding:var(--s4);border-radius:var(--r-lg);background:var(--surface);border:1px solid var(--line)}
.event:hover{border-color:var(--line-strong)}
.event__body{display:flex;flex-direction:column;align-items:flex-start;gap:var(--s2);min-width:0;align-self:stretch}
/* Stretched to its row's height, a date keeps its circuit on the card's last line, level with an offer's link beside it. */
.event__body > .caption{margin-top:auto}
.event__title{font:var(--weight-title) var(--fs-h4)/1.3 var(--font-title);color:var(--text-strong);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.event__title a::after{content:"";position:absolute;inset:0}
/* The title keeps to its lines by hiding what overflows, the link's ring included: the ring is drawn on the event it covers. */
@supports selector(:has(*)){.event:has(.event__title a:focus-visible){outline:2px solid var(--focus);outline-offset:3px}.event__title a:focus-visible{outline:none}}
.datetile{display:grid;place-items:center;align-content:center;width:64px;height:68px;flex-shrink:0;border-radius:var(--r-md);background:var(--surface-2);border:1px solid var(--line);text-align:center}
.datetile b{font:var(--weight-numerals) 1.75rem/1 var(--font-numerals);color:var(--text-strong);font-variant-numeric:tabular-nums}
.datetile small{font:700 var(--fs-label)/1.3 var(--font-text);letter-spacing:.08em;text-transform:uppercase;color:var(--accent-ink)}
/* The calendar card: the date tile's shape with a calendar in it, the line that says what the calendar holds, and the link. */
.td-calendar{position:relative;display:flex;gap:var(--s4);align-items:flex-start;padding:var(--s4);border-radius:var(--r-lg);background:var(--surface);border:1px solid var(--line);color:var(--text)}
.td-calendar:hover{border-color:var(--line-strong);color:var(--text)}
.td-calendar__tile{display:grid;place-items:center;width:64px;height:68px;flex-shrink:0;border-radius:var(--r-md);background:var(--surface-2);border:1px solid var(--line);color:var(--accent-ink)}
.td-calendar__body{display:flex;flex-direction:column;align-items:flex-start;gap:var(--s2);min-width:0;align-self:stretch}
.td-calendar strong{font:var(--weight-title) var(--fs-h4)/1.3 var(--font-title);color:var(--text-strong)}
.td-calendar .more{min-height:0;margin-top:auto}
.td-calendar:hover .more{color:var(--accent-ink)}
/* Alone: a strip the module's width, the words beside the tile and the link at the end of the line. */
.td-row--1 > .td-calendar{align-items:center;padding:var(--s5)}
.td-row--1 .td-calendar__body{flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--s2) var(--s5);flex:1 1 auto}
.td-row--1 .td-calendar strong{font-size:var(--fs-h3);max-width:44ch}
.td-row--1 .td-calendar .more{margin-top:0}
.offer{position:relative;display:flex;flex-direction:column;gap:var(--s2);padding:var(--s5);border-radius:var(--r-lg);background:linear-gradient(135deg,var(--offer-benefit-from),var(--offer-benefit-to));border:1px solid var(--offer-line)}
.offer__disclosure{font:600 var(--fs-label)/1.3 var(--font-text);letter-spacing:.04em;color:var(--offer-disclosure-ink)}
.offer__benefit{display:flex;align-items:baseline;gap:var(--s2);color:var(--offer-benefit-ink)}
.offer__benefit b{font:var(--weight-numerals) 3rem/.9 var(--font-numerals)}
.offer__benefit span{font:700 var(--fs-label)/1.3 var(--font-text);letter-spacing:.08em}
.offer__title{font:var(--weight-title) var(--fs-h4)/1.3 var(--font-title);color:var(--text-strong)}
.offer__text{font-size:var(--fs-small);color:var(--text-muted);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.offer__action{margin-top:auto;padding-top:var(--s2);font-size:var(--fs-small);font-weight:700;color:var(--offer-button-ink)}
.offer__action::after{content:"";position:absolute;inset:0}
.offer:hover{border-color:var(--offer-button-hover-line)}

/* ------------------------------------------------------------------ 9. sign-up: cards that lead to the pages that sign up */
.optin{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr) minmax(0,1fr);gap:var(--s5);align-items:stretch}
.optin--1{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.optin__intro{display:flex;flex-direction:column;justify-content:center;gap:var(--s3)}
.optin__intro h2{font:var(--weight-heading) var(--fs-h2)/1.1 var(--font-heading);color:var(--text-strong)}
.optin__card{display:flex;flex-direction:column;gap:var(--s3);padding:var(--s5);border-radius:var(--r-lg);background:var(--surface);border:1px solid var(--line)}
.optin__card h3{font:var(--weight-title) var(--fs-h4)/1.3 var(--font-title);color:var(--text-strong)}
.optin__card p{font-size:var(--fs-small);color:var(--text-muted)}
.optin__action{margin-top:auto;align-self:flex-start;min-height:48px}

/* ------------------------------------------------------------------ narrower screens */
@media (max-width:1100px){
  .hn-racing__body--stream{grid-template-columns:minmax(0,1fr);gap:var(--s5)}
  /* Four cards: two by two, each pair the same height. Three: three columns, the dates upright (tile above the words). */
  .td-row--4{flex-wrap:wrap}
  .td-row--4 > *,.td-row--4 > .offer{flex:1 1 calc(50% - var(--s4) / 2)}
  .td-row--3 > .event,.td-row--3 > .td-calendar{flex-direction:column}
  /* Upright in a third of the width, a date's title may take a fourth line (the organisers' longest). */
  .td-row--3 .event__title{-webkit-line-clamp:4}
  .ranked{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ranked--1{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:1000px){
  .topic-bar__next,.topic-bar--next-only{display:none}
  .hn-top__grid,.hn-pair,.guide-top,.optin,.optin--1{grid-template-columns:minmax(0,1fr)}
  .hn-latest{border-left:0;padding-left:0;border-top:1px solid var(--line);padding-top:var(--s5)}
  .hn-row,.hn-row--3{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hn-split,.hn-split--1 > .card--feature{grid-template-columns:minmax(0,1fr)}
  .hn-bento,.hn-bento--2,.hn-pair--one .hn-newbikes,.hn-pair--one .hn-reviews,.hn-pair--one .hn-reviews--2,.hn-pair--one .hn-newbikes--2{grid-template-columns:minmax(0,1fr)}
  .hn-pair--one .hn-reviews--1 > .card,.hn-pair--one .hn-newbikes--1 > .card{grid-template-columns:minmax(0,1fr)}
  .card--review > .media,.card--side > .media{min-height:0}
  /* The TV band: the feature, then a rail of the rest (D23). */
  .tv-grid--feature{grid-template-columns:minmax(0,1fr)}
  .tv-grid--single > .vcard--feature{grid-template-columns:minmax(0,1fr)}
  .tv-side,.tv-side--rows,.tv-side--grid,.tv-side--compact,.tv-side--compact-2{display:grid;grid-auto-flow:column;grid-template-columns:none;grid-template-rows:none;grid-auto-columns:240px;gap:var(--s4);overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;padding-bottom:var(--s3);scrollbar-width:thin;scrollbar-color:var(--line-strong) transparent;justify-content:start}
  .tv-side__col{display:contents}
  .tv-side .vcard{display:flex;flex-direction:column;gap:var(--s3);padding:0;border:0;scroll-snap-align:start}
  .tv-side .vcard > .media{flex:none;aspect-ratio:16/9;min-height:0}
  .tv-side .card__title{font:600 var(--fs-small)/1.35 var(--font-text);-webkit-line-clamp:3}
  .tv-side{padding-top:6px;padding-inline:6px;margin-top:-6px;margin-inline:-6px;scroll-padding-inline:6px}
}
@media (max-width:640px){
  .hn-top{padding-top:var(--s4)}
  /* `top` keeps the top block's own rhythm: 16 px above it and below it on a phone, as 32 on a computer. */
  .home-next .hn-promo--top .home-promotions{margin-top:var(--s4)}
  .card--lead > .media{margin-inline:calc(-1 * max(16px,env(safe-area-inset-left,0px)));border-radius:0}
  .hn-row,.hn-row--3,.hn-row--2{grid-template-columns:minmax(0,1fr);gap:0;padding-top:0;border-top:0}
  .hn-row .card{display:grid;grid-template-columns:minmax(0,1fr) 104px;gap:var(--s4);padding-block:var(--s4);border-top:1px solid var(--line)}
  .hn-row .card > .media{order:2;aspect-ratio:1}
  .card--side,.card--review,.hn-newbikes .card,.hn-pair--one .card--review{display:grid;grid-template-columns:120px minmax(0,1fr);gap:var(--s4)}
  .card--side > .media,.card--review > .media,.hn-newbikes .card > .media,.hn-pair--one .card--review > .media{aspect-ratio:4/3;height:auto;align-self:start}
  .hn-newbikes,.hn-pair--one .hn-newbikes{grid-template-columns:minmax(0,1fr)}
  .hn-newbikes > .card--wide{grid-column:auto}
  .hn-newbikes > .card--wide > .media{aspect-ratio:4/3}
  .hn-split--1 > .card--feature{display:flex}
  .tv-grid--pair{grid-template-columns:minmax(0,1fr)}
  /* A phone: one card under another, the dates and the calendar card with the tile beside the words again. */
  .td-row{flex-direction:column}
  .td-row--3 > .event,.td-row--3 > .td-calendar{flex-direction:row}
  .td-row--1 .td-calendar__body{flex-direction:column;align-items:flex-start}
  .td-row--1 .td-calendar strong{font-size:var(--fs-h4)}
  .ranked{grid-template-columns:minmax(0,1fr)}
  .finder-card{grid-template-columns:64px minmax(0,1fr)}
  .finder-card .bg-rider{width:64px;height:64px}
  .section-head{margin-bottom:var(--s4)}
  .input .btn{padding-inline:var(--s3)}
}
