/* Features page, website run 2. Builds on v2.css: a row of the five tabs, then one chapter per tab.
   Wide screens: the chapter name, its count and its screen stay pinned while the groups scroll past.
   Phones: the chapter head and screen, then each group opens on a tap. */
.fhero{padding-top:calc(3.25rem + clamp(3rem,2rem + 4vw,6rem));overflow:clip}
.fhero h1{font-size:var(--d1);line-height:.92;letter-spacing:-.055em;margin-top:1.25rem}
.fstat{display:flex;align-items:baseline;gap:1.25rem;margin-top:2rem;max-width:44rem}
@media (min-width:1024px){.fhero .w2{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);column-gap:4rem;align-items:end}.fhero .ey{grid-column:1/-1}.fstat{margin:0 0 .5rem;flex-direction:column;gap:.75rem}}
.fstat b{font-size:clamp(3.5rem,2rem + 5vw,6rem);font-weight:600;letter-spacing:-.05em;line-height:1;font-variant-numeric:tabular-nums}
.fstat span{font-size:var(--b1);line-height:1.45;color:var(--mute);max-width:26ch}
.frow{display:flex;gap:clamp(1rem,2.2vw,2rem);justify-content:center;margin-top:clamp(3rem,2rem + 4vw,5.5rem);padding:0 var(--gut) 1rem}
.frow .dv{--dw:clamp(9rem,4rem + 11vw,16rem)}
.frow .dv>span{position:absolute;left:0;right:0;top:calc(100% + 1rem);text-align:center;font-size:.9375rem;font-weight:600;color:var(--mute)}
.frow .dv:nth-child(2),.frow .dv:nth-child(4){transform:translateY(2.5rem)}
.frow{padding-bottom:5rem}
@media (max-width:760px){
 .fstat{flex-direction:column;gap:.5rem}
 .frow{justify-content:flex-start;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding-inline:var(--gut);scrollbar-width:none;padding-bottom:3.5rem}
 .frow::-webkit-scrollbar{display:none}.frow::after{content:"";flex:0 0 1px}
 .frow{gap:calc(100vw - min(60vw,15rem));padding-inline:calc((100vw - min(60vw,15rem))/2);scroll-padding-inline:0}.frow::after{display:none}
 .frow .dv{--dw:min(60vw,15rem);scroll-snap-align:center}.frow .dv:nth-child(2),.frow .dv:nth-child(4){transform:none}}

/* jump links: stay under the site header */
.lnav{position:sticky;top:calc(3.25rem + env(safe-area-inset-top,0px));z-index:30;background:rgba(0,0,0,.78);backdrop-filter:blur(1.25rem) saturate(160%);-webkit-backdrop-filter:blur(1.25rem) saturate(160%);border-bottom:1px solid var(--line)}
.lnav .lk{display:flex;gap:.375rem;overflow-x:auto;scrollbar-width:none;padding-block:.625rem}
.lnav .lk::-webkit-scrollbar{display:none}
.lnav a{flex:none;color:var(--mute);text-decoration:none;font-size:.9375rem;font-weight:600;padding:.5rem 1rem;border-radius:99rem;min-height:2.75rem;display:inline-flex;align-items:center}
.lnav a:hover{color:var(--fg)}
.lnav a.on{color:#000;background:var(--fg)}
.lnav a:focus-visible{outline:2px solid #fff;outline-offset:2px}

/* chapters */
.fch{padding-block:clamp(4rem,3rem + 3.5vw,6rem);border-top:1px solid var(--line);scroll-margin-top:6.5rem}
.fch:first-of-type{border-top:0}
.fgrid{display:grid;grid-template-columns:minmax(0,22rem) minmax(0,1fr);gap:clamp(2.5rem,6vw,7rem)}
.fst{position:sticky;top:8rem}
.fst .n{font-size:.875rem;font-weight:600;color:#a1a1a6;display:flex;gap:.625rem;align-items:center}
.fst .n::after{content:"";width:1.75rem;height:1px;background:currentColor}
.fst h2{font-size:var(--d2);line-height:.98;margin-top:.875rem}
.fst .cnt{margin-top:1rem;color:var(--mute);font-size:1rem;display:flex;align-items:baseline;gap:.5rem}
.fst .cnt b{font-size:2.25rem;font-weight:600;letter-spacing:-.04em;color:var(--fg);line-height:1;font-variant-numeric:tabular-nums}
.fst .cnt b::before{content:"";display:inline-block;width:.5rem;height:.5rem;border-radius:50%;background:var(--c);margin-right:.625rem;vertical-align:.45em}
.fst .tl{margin-top:1.25rem}
.fst .dv{--dw:min(16rem,calc((100svh - 27rem) * 400 / 856));margin-top:2rem}

/* groups: open on wide screens, a tap to open on phones */
.fbody{min-width:0;border-top:1px solid var(--line)}
.fg{border-bottom:1px solid var(--line)}
.fg summary{list-style:none;display:flex;align-items:center;gap:.75rem;padding:1.5rem 0 1.25rem;cursor:pointer}
.fg summary::-webkit-details-marker{display:none}
.fg summary h3{font-size:clamp(1.25rem,1rem + .8vw,1.625rem);letter-spacing:-.025em;line-height:1.15;flex:1;min-width:0}
.fg summary em{font-style:normal;font-size:.8125rem;font-weight:600;color:var(--mute);min-width:1.75rem;height:1.75rem;border-radius:99rem;background:#1c1c1e;display:grid;place-items:center;padding:0 .5rem}
.fg summary i{flex:none;width:.75rem;height:.75rem;position:relative}
.fg summary i::before,.fg summary i::after{content:"";position:absolute;left:0;right:0;top:50%;height:1.5px;background:var(--fg);transition:transform .3s var(--ez)}
.fg summary i::after{transform:rotate(90deg)}.fg[open] summary i::after{transform:none}
.fg summary:focus-visible{outline:2px solid #fff;outline-offset:4px;border-radius:.25rem}
.fg ul{list-style:none;margin:0;padding:0 0 2rem;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.5rem 2.5rem}
.fg li b{display:block;font-size:1rem;font-weight:600;letter-spacing:-.01em}
.fg li>span{display:block;color:var(--mute);font-size:.9375rem;line-height:1.5;margin-top:.3125rem}
@media (min-width:861px){.fg summary{cursor:default}.fg summary i{display:none}}

@media (max-width:860px){
 .fgrid{grid-template-columns:minmax(0,1fr);gap:2rem}
 .fst{position:static;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:1fr auto auto auto auto 1fr;grid-template-areas:"e dv" "n dv" "h dv" "c dv" "l dv" "f dv";column-gap:1.25rem;align-items:start}
 .fst .n{grid-area:n}.fst h2{grid-area:h;font-size:clamp(2rem,1.2rem + 4vw,3rem)}.fst .cnt{grid-area:c}.fst .tl{grid-area:l}
 .fst .dv{grid-area:dv;--dw:min(32vw,10rem);margin-top:0}
 .fg ul{grid-template-columns:minmax(0,1fr);gap:1.125rem}
 .fg summary{padding:1.25rem 0;min-height:2.75rem}}
@media (prefers-reduced-motion:reduce){.fg summary i::before,.fg summary i::after{transition:none}}

/* round 4 (blind review 1) */
.fcta{margin-top:1.75rem}
.fhero .exd2{text-align:center;margin-top:0}
@media (min-width:861px){.fch:last-of-type .fst .dv{display:none}}
@media (max-width:760px){.lnav .lk{-webkit-mask-image:linear-gradient(90deg,#000 85%,transparent);mask-image:linear-gradient(90deg,#000 85%,transparent);padding-right:2rem}}
.fst .sc{position:relative}.fst .sc img.l2{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .3s ease;z-index:1}.fst .sc img.l2.on{opacity:1}.fst .sc img.l2:not([src]){display:none}
/* 2 Dec (Olly's picks): no bar over the page on phones */
@media (max-width:760px){.lnav{display:none}}

/* 3 Dec phone consistency pass: same spacing and type scale as the other pages */
@media (max-width:760px){
 html body section.fhero{padding-top:4.25rem}
 html body section.fch{padding-block:3.5rem}
 html body .fst h2{font-size:1.75rem;line-height:1.1}
 html body .w2 h1{font-size:2.25rem;line-height:1.02;letter-spacing:-.035em}
 html body .btn.lg{font-size:1rem}
}
@media (max-width:760px){
 html body .frow .dv{--dw:min(44vw,11rem)}
 html body .frow{gap:calc(100vw - min(44vw,11rem));padding-inline:calc((100vw - min(44vw,11rem))/2)}
 html body .fstat b{font-size:2.75rem}
}
@media (max-width:760px){html body .exd2{margin-bottom:2rem}}
