/* Four shared counters span the banner beneath its introduction and book image. */
.home-feature:has(.home-scoreboard){display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:0;min-height:310px;padding-right:30px}
body[data-site-page=space-home] .home-feature:not(.has-custom-banner){grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);column-gap:40px;padding-inline:max(32px,calc((100% - 1120px)/2));background:#f7f4ee;border-color:#e3e1d9}
.home-feature-intro{position:relative;z-index:2;grid-column:1;grid-row:1;min-width:0;padding:24px 0 0 40px}
.home-feature:not(.has-custom-banner) .home-feature-intro{padding:24px 0 0}
.home-feature:has(.home-scoreboard) .home-feature-content,.home-feature:has(.home-scoreboard).has-image .home-feature-content{width:auto;padding:0}
.home-feature:not(.has-custom-banner) .home-feature-label{font-size:15px;font-weight:600;letter-spacing:.04em;color:#414a3d;margin-bottom:15px}
body[data-site-page=space-home] .home-feature:not(.has-custom-banner) h1{font-size:clamp(36px,3.2vw,52px);font-weight:700;line-height:1.14;letter-spacing:-1.6px;margin-bottom:16px;color:#20251f}
body[data-site-page=space-home] .home-feature:not(.has-custom-banner) .home-feature-description{font-size:clamp(16px,1vw,17px);line-height:1.55;color:#465040}
.home-feature:not(.has-custom-banner) .home-feature-link{min-height:44px;margin-top:22px;padding:10px 15px;font-size:15px}
.home-feature:has(.home-scoreboard) .home-feature-art,.home-feature:has(.home-scoreboard).has-image .home-feature-art{position:relative;grid-column:2;grid-row:1;inset:auto;width:100%;height:264px;min-width:0;transform:none}
.home-feature:has(.home-scoreboard):not(.has-custom-banner) .home-feature-art{align-self:stretch;height:auto;min-height:0;background:url('/assets/home-learning-banner-v4.webp') right bottom/contain no-repeat}
.home-feature:not(.has-custom-banner) .home-feature-art>.home-book{display:none}
.home-feature:has(.home-scoreboard) .home-book{transform:translate(-16px,8px) rotate(-10deg) scale(.88)}
.home-feature:has(.home-scoreboard) .home-book-back{transform:translate(41px,-9px) rotate(12deg) scale(.88)}
.home-scoreboard{--score-width:30px;--score-height:43px;--score-size:35px;--score-gap:3px;--score-max-columns:4;position:relative;z-index:2;grid-column:1/-1;grid-row:2;min-width:0;display:grid;grid-template-columns:repeat(var(--score-columns,var(--score-max-columns)),minmax(0,1fr));align-content:start;align-self:end;gap:28px;margin:28px 0 24px 40px;padding:0;color:#f7f4e9}
.home-feature:not(.has-custom-banner) .home-scoreboard{margin-left:0}
.home-scoreboard-row{--score-row-gap:8px;--score-unit-size:16px;display:grid;grid-template-columns:minmax(0,max-content) var(--score-unit-size);justify-content:start;align-items:end;column-gap:var(--score-row-gap);row-gap:8px;min-width:0;max-width:100%;font-size:13px}
.home-scoreboard-row>.home-scoreboard-caption:first-child{grid-column:1/-1;color:#636b5e;font-weight:500}
.home-scoreboard-caption{flex:0 0 auto;font:600 1em/1.5 var(--sans,sans-serif);letter-spacing:0;color:#303b2d;white-space:nowrap}
.home-scoreboard-unit{width:var(--score-unit-size);font-size:var(--score-unit-size);font-weight:700;color:#263224;align-self:end;line-height:1.5;padding-bottom:2px}
/* Values keep their full precision; the grid reduces columns before tiles get too small. */
.home-scoreboard-digits{container-type:inline-size;display:flex;flex-wrap:nowrap;justify-content:flex-end;justify-self:end;width:calc(var(--score-length,1)*var(--score-width) + (var(--score-length,1) - 1)*var(--score-gap));gap:var(--score-gap);min-width:0;max-width:100%;perspective:600px;font-variant-numeric:tabular-nums}
.home-scoreboard-placeholder{display:grid;place-items:center;min-width:0;height:var(--score-height);font:400 34px/1 var(--sans,sans-serif);color:#737b70}
.home-scoreboard-digit{--score-tile-width:min(var(--score-width),calc((100cqi - (var(--score-length,1) - 1)*var(--score-gap))/var(--score-length,1)));--score-height:calc(var(--score-tile-width)*1.42857);--score-size:calc(var(--score-tile-width)*1.16667);position:relative;flex:none;width:var(--score-tile-width);height:var(--score-height);border-radius:4px;background:#282d27;box-shadow:0 0 0 1px #171c1652,0 3px 3px #1a211b16;font:500 var(--score-size)/var(--score-height) var(--sans,sans-serif);font-variant-numeric:tabular-nums;letter-spacing:-.055em;text-align:center;perspective:300px}
.home-scoreboard-digit::after{content:'';position:absolute;z-index:5;left:0;right:0;top:50%;height:1px;background:#0c100b80;box-shadow:0 1px #ffffff0a;pointer-events:none}
.home-scoreboard-half{position:absolute;left:0;right:0;height:50%;overflow:hidden;backface-visibility:hidden;transform-style:preserve-3d}
.home-scoreboard-half>span{position:absolute;top:0;left:0;right:0;height:var(--score-height);line-height:var(--score-height)}
.home-scoreboard-top{top:0;border-radius:4px 4px 0 0;background:#252a24}
.home-scoreboard-bottom{bottom:0;border-radius:0 0 4px 4px;background:#30352e}
.home-scoreboard-bottom>span{top:calc(var(--score-height)*-.5)}
.home-scoreboard-fold-top,.home-scoreboard-fold-bottom{visibility:hidden;z-index:3;will-change:transform;transform-origin:center bottom}
.home-scoreboard-fold-bottom{z-index:4;transform-origin:center top;transform:rotateX(90deg)}
.is-flipping>.home-scoreboard-fold-top{visibility:visible;animation:home-scoreboard-top .25s cubic-bezier(.55,.06,.74,.44) both;animation-delay:var(--score-delay,0ms)}
.is-flipping>.home-scoreboard-fold-bottom{visibility:visible;animation:home-scoreboard-bottom .29s cubic-bezier(.18,.62,.32,1) both;animation-delay:calc(var(--score-delay,0ms) + 250ms)}
.home-scoreboard-row.is-wide{--score-width:20px;--score-height:29px;--score-size:24px}
.home-scoreboard-row.is-wide .home-scoreboard-digits{flex-wrap:wrap}
.home-scoreboard-row.is-wide .home-scoreboard-digit{--score-tile-width:var(--score-width)}
@keyframes home-scoreboard-top{from{transform:rotateX(0)}to{transform:rotateX(-90deg)}}
@keyframes home-scoreboard-bottom{from{transform:rotateX(90deg)}to{transform:rotateX(0)}}
@media(max-width:1100px){
 .home-feature:has(.home-scoreboard){grid-template-columns:minmax(0,1fr) minmax(0,.85fr);padding-right:24px}
 .home-feature-intro{padding-left:32px}
 .home-feature.has-custom-banner .home-scoreboard{margin-left:32px}
 .home-scoreboard{gap:22px}
}
@media(max-width:1100px){
 .home-feature:has(.home-scoreboard){grid-template-columns:minmax(0,1fr);padding-right:0}
 body[data-site-page=space-home] .home-feature:not(.has-custom-banner){grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);column-gap:16px;padding-inline:32px}
 .home-feature:not(.has-custom-banner) .home-feature-intro{width:100%;max-width:none;padding:32px 0 0}
 .home-feature:has(.home-scoreboard) .home-feature-art{display:none}
 .home-feature:has(.home-scoreboard):not(.has-custom-banner) .home-feature-art{display:block;min-height:0;background-size:contain;background-position:right bottom}
 .home-feature-intro{padding:32px 32px 0}
 .home-feature.has-custom-banner .home-scoreboard{margin-inline:32px}
}
@media(max-width:900px){
 body[data-site-page=space-home] .home-feature:not(.has-custom-banner){grid-template-columns:minmax(0,1fr);padding-inline:0}
 .home-feature:not(.has-custom-banner) .home-feature-intro{padding:32px 32px 0}
 .home-feature:not(.has-custom-banner) .home-scoreboard{margin-inline:32px}
 .home-feature:has(.home-scoreboard):not(.has-custom-banner) .home-feature-art{display:none}
}
@media(max-width:900px){
 .home-feature:has(.home-scoreboard){min-height:0}
 .home-feature-intro{padding:28px 24px 0}
 .home-feature:not(.has-custom-banner) .home-feature-intro{padding:28px 24px 0}
 body[data-site-page=space-home] .home-feature:not(.has-custom-banner) h1{font-size:36px;line-height:1.17;letter-spacing:-1px}
 body[data-site-page=space-home] .home-feature:not(.has-custom-banner) .home-feature-description{font-size:16px;line-height:1.75}
 .home-feature:has(.home-scoreboard) .home-feature-description{max-width:none}
 .home-scoreboard{--score-width:27px;--score-height:39px;--score-size:32px;--score-max-columns:2;gap:24px;margin-top:26px;margin-bottom:28px}
 .home-feature.has-custom-banner .home-scoreboard,.home-feature:not(.has-custom-banner) .home-scoreboard{margin-inline:24px}
 .home-scoreboard-row{--score-row-gap:7px;--score-unit-size:16px;font-size:13px}
 .home-feature:has(.home-scoreboard).has-multiple{padding-bottom:96px}
}
@media(max-width:600px){
 .home-feature-intro{padding:24px 18px 0}
 .home-feature:not(.has-custom-banner) .home-feature-intro{padding:24px 18px 0}
 body[data-site-page=space-home] .home-feature:not(.has-custom-banner) h1{font-size:32px}
 .home-scoreboard{--score-width:24px;--score-height:34px;--score-size:28px;gap:18px}
 .home-feature.has-custom-banner .home-scoreboard,.home-feature:not(.has-custom-banner) .home-scoreboard{margin-inline:18px;margin-bottom:24px}
}
@media(prefers-reduced-motion:reduce){.home-scoreboard-fold-top,.home-scoreboard-fold-bottom{display:none!important;animation:none!important}}
