/* Features page: a catalog that reads like a timing sheet. Everything is scoped to .features-page. */
.features-page .features-pos,.features-page .features-num,.features-page .features-count{font-variant-numeric:tabular-nums}
.features-page .features-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* Hero: the section index drawn as a results board */
.features-page .features-board{list-style:none;margin:0;padding:0;background:var(--navy-raised);border:1px solid #ffffff20;border-radius:4px}
.features-page .features-board li+li{border-top:1px solid #ffffff16}
.features-page .features-board a{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:14px;align-items:baseline;padding:13px 22px;font-size:16px;line-height:1.4;color:var(--on-dark)}
.features-page .features-board a:hover{color:#fff}
.features-page .features-board a:focus-visible{outline:3px solid #fff;outline-offset:-3px}
.features-page .features-board .features-pos{font-size:14px;color:var(--on-dark-muted)}
.features-page .features-board .features-count{font-weight:600;color:#fff;text-align:right}

/* Body: sticky index beside the sections, on the canvas. Every section is a direct child of main (Studio's zone),
   so main is the grid: the hero, race formats and closing block span it, the index sits in the left column and the
   light sections in the right one. The light band comes from each section's own horizontal overflow. */
.features-page{--side:56px;display:grid;grid-template-columns:minmax(var(--side),1fr) 230px 72px minmax(0,1026px) minmax(var(--side),1fr)}
/* Default for a section an editor adds in Studio: full width. The rules below are more specific and win. */
.features-page>*{grid-column:1/-1}
.features-page>.features-hero,.features-page>.features-formats,.features-page>.company-next{grid-column:1/-1}
.features-page>.features-section.section-light{background:none;border-image:linear-gradient(var(--canvas),var(--canvas)) fill 0/0/0 100vmax}
.features-page>.features-index{grid-column:2;grid-row:2/span 11;z-index:1;align-self:start;margin-top:72px;position:sticky;top:calc(var(--header-height) + 28px);max-height:calc(100vh - var(--header-height) - 56px);overflow-y:auto}
.features-page .features-index ol{list-style:none;margin:0;padding:0;border-left:1px solid var(--line)}
.features-page .features-index a{display:flex;gap:12px;padding:8px 0 8px 16px;font-size:15px;line-height:1.4;color:var(--muted)}
.features-page .features-index a:hover{color:var(--navy)}
.features-page .features-index a:focus-visible{outline-offset:-3px}
.features-page .features-index .features-pos{flex:none;min-width:2ch;font-size:14px;color:var(--brand-strong)}
.features-page .features-section{scroll-margin-top:calc(var(--header-height) + 24px)}
.features-page>.features-section.section-light{grid-column:4;position:relative;min-width:0;padding-bottom:64px}
.features-page>.features-index+.features-section.section-light{padding-top:72px}
.features-page>.features-section.section-light:has(+ .features-formats,+ .company-next){padding-bottom:88px}
.features-page>.features-section.section-light+.features-section.section-light{padding-top:56px}
.features-page>.features-section.section-light+.features-section.section-light:before{content:"";position:absolute;top:0;left:0;right:0;border-top:1px solid var(--border-strong)}
.features-page .features-head{display:flex;align-items:baseline;gap:18px}
.features-page .features-num{flex:none;min-width:2ch;font-size:15px;font-weight:600;color:var(--brand-strong)}
.features-page .features-section h2{font-size:clamp(28px,2.8vw,38px);line-height:1.1;letter-spacing:-.045em}
.features-page .features-intro{margin:14px 0 28px 0;padding-left:calc(2ch + 18px);font-size:16px;line-height:1.7;color:var(--muted);max-width:62ch}
.features-page .features-links{display:flex;flex-wrap:wrap;gap:10px 32px;margin:-14px 0 28px;padding-left:calc(2ch + 18px)}
.features-page .features-list{display:grid;grid-template-columns:1fr 1fr;column-gap:40px;margin:0;border-top:1px solid var(--line)}
.features-page .features-row{min-width:0;padding:16px 0 18px;border-bottom:1px solid var(--line)}
.features-page .features-row:last-child:nth-child(odd){grid-column:1/-1}
.features-page .features-row h3{margin:0;font-size:16px;font-weight:600;line-height:1.4;letter-spacing:normal;color:var(--navy)}
.features-page .features-row p{margin:6px 0 0;font-size:15px;line-height:1.6;color:var(--muted)}

/* Race formats: a full-width dark band, listed like a start list */
/* The one index stays sticky down the whole page; the two full-width bands sit above it so it passes underneath. */
.features-page .features-formats{background:var(--navy);padding:84px 0;color:#fff;position:relative;z-index:2}
/* Row 7 is named so the band may cross the index column, which the index holds for rows 2 to 12. */
.features-page>.features-formats{grid-row:7}
.features-page>.company-next{position:relative;z-index:2}
.features-page .features-formats-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);gap:72px;align-items:start}
.features-page .features-formats .features-num{color:var(--on-dark-muted)}
.features-page .features-formats .features-intro{color:var(--on-dark)}
.features-page .features-formats-note{margin-top:28px;padding-left:calc(2ch + 18px);font-size:16px;line-height:1.7;color:var(--on-dark);max-width:44ch}
.features-page .features-start-list{list-style:none;margin:0;padding:0;counter-reset:start;border-bottom:1px solid #ffffff22}
.features-page .features-start-list li{counter-increment:start;display:flex;align-items:baseline;gap:24px;padding:16px 0;border-top:1px solid #ffffff22;font-size:clamp(22px,2.4vw,32px);font-weight:500;line-height:1.2;letter-spacing:-.03em}
.features-page .features-start-list li:before{content:counter(start,decimal-leading-zero);flex:none;min-width:2ch;font-size:15px;font-weight:600;letter-spacing:0;color:var(--on-dark-muted);font-variant-numeric:tabular-nums}

/* Closing block */
.features-page .features-next-actions{display:flex;align-items:center;gap:32px;flex-wrap:wrap}

@media(max-width:1180px){.features-page{--side:36px}}
@media(max-width:980px){
.features-page{grid-template-columns:var(--side) minmax(0,1fr) var(--side)}
.features-page>.features-hero,.features-page>.features-formats,.features-page>.company-next{grid-column:1/-1}
.features-page>.features-formats{grid-row:auto}
.features-page>.features-index{grid-column:2;grid-row:auto;margin:0;padding:48px 0 32px;position:static;background:none;border-image:linear-gradient(var(--canvas),var(--canvas)) fill 0/0/0 100vmax}
.features-page>.features-section.section-light{grid-column:2}
.features-page>.features-index+.features-section.section-light{padding-top:0}
.features-page>.features-section.section-light:has(+ .features-formats,+ .company-next){padding-bottom:80px}
.features-page .features-index ol{display:flex;gap:4px;overflow-x:auto;border-left:0;border-bottom:1px solid var(--line);padding-bottom:2px}
.features-page .features-index li{flex:none}
.features-page .features-index a{padding:10px 12px;white-space:nowrap}
.features-page .features-formats{padding:56px 0}
.features-page .features-formats-grid{grid-template-columns:minmax(0,1fr);gap:36px}
}
@media(max-width:760px){
.features-page .features-list{grid-template-columns:minmax(0,1fr)}
.features-page .features-intro,.features-page .features-formats-note,.features-page .features-links{padding-left:0}
.features-page{--side:20px}
.features-page>.features-section.section-light{padding-bottom:44px}
.features-page>.features-section.section-light:has(+ .features-formats,+ .company-next){padding-bottom:60px}
.features-page>.features-section.section-light+.features-section.section-light{padding-top:40px}
.features-page .features-next-actions{gap:20px}
}
@media(max-width:380px){
.features-page .features-board a{grid-template-columns:32px minmax(0,1fr) auto;gap:10px;padding:12px 14px;font-size:15px}
.features-page{--side:16px}
.features-page .features-head{gap:12px}
.features-page .features-start-list li{gap:16px}
}
