/* H1 (2026-11-24) home hero/reel, pure CSS. Layout principle (G21/Eddy): content is centred in a max-width frame and the TEXT column is the flexible one:
   two fr tracks with minmax(0,..) so the video can never be placed past the frame, and the video is also capped by viewport HEIGHT so landscape phones keep the whole 16:9 in view. No JS fitting. */
.cnh{position:relative;overflow:hidden;color:#fff;background:#0a1b3d url(../site/hero/cn-hero-slat-tile-v63-1120x725.webp) right top/auto 100% repeat-x}
.cnh:after{content:"";position:absolute;top:0;right:0;bottom:0;aspect-ratio:1474/725;max-width:100%;pointer-events:none;background:url(../site/hero/cn-hero-bed-v63-1474x725.webp) right top/100% 100% no-repeat;-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 12%);mask-image:linear-gradient(90deg,transparent 0,#000 12%)}
.cnh{--txr:calc(clamp(16px,6.25vw,90px) + min(500px,36vw)*.88)}
.cnh:before{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,rgba(10,27,61,1) 0,rgba(10,27,61,.93) 12%,rgba(10,27,61,.93) 30.56%,rgba(10,27,61,.4) 45.14%,rgba(10,27,61,0) 58.33%,rgba(10,27,61,0) 100%)}
/* CN-A4 (2026-11-26): 601-1199 scrim keyed to the REAL content edge (--cr = sm + max(text col, nowrap button row)), solid to there, then a long eased fade. Scrim also lifted above the bed art (z-index:1; :after painted over it so the bed showed full-strength behind text at 601-900). The old stops started at the text column edge, so the "Browse all shows" button (wider than the column) sat in a 40px steep fade at 601-900. */
@media(min-width:601px) and (max-width:1199px){.cnh:before{z-index:1;background:linear-gradient(90deg,rgba(10,27,61,.93) 0,rgba(10,27,61,.93) calc(var(--cr) + 8px),rgba(10,27,61,.74) calc(var(--cr) + 50px),rgba(10,27,61,.48) calc(var(--cr) + 100px),rgba(10,27,61,.2) calc(var(--cr) + 160px),rgba(10,27,61,0) calc(var(--cr) + 220px),rgba(10,27,61,0) 100%)}.cnh{--txr:calc(40px + clamp(228px,34vw,380px));--rw:316px;--cr:calc(40px + max(clamp(228px,34vw,380px),var(--rw)))}}
@media(min-width:1024px) and (max-width:1199px){.cnh{--rw:400px}}
@media(min-width:601px) and (max-width:767px){.cnh{--txr:calc(28px + clamp(228px,34vw,380px));--cr:calc(28px + max(clamp(228px,34vw,380px),var(--rw)))}}
.cnh-in{position:relative;z-index:1;box-sizing:border-box;max-width:1500px;margin:0 auto;padding:clamp(18px,2.2vw,32px) clamp(16px,6.25vw,90px);display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);column-gap:clamp(16px,3vw,48px);align-items:center;--tvmax:calc((100svh - 150px)*1.7778)}
.cnh-tx{min-width:0}
.cnh-lb{color:#58b5ff;font-weight:700;letter-spacing:.06em;font-size:clamp(12px,.9vw,15px);text-transform:uppercase}
.cnh-h{color:#fff;font-size:clamp(22px,2.6vw,40px);line-height:1.08;margin:4px 0 8px;font-weight:800;text-wrap:balance;overflow-wrap:anywhere;max-width:9.6em}
.cnh-h a{color:inherit;text-decoration:none}.cnh-h a:hover{text-decoration:underline}.cnh-h a:focus-visible,.cnh .btn:focus-visible,.cnh-play:focus-visible{outline:3px solid #58b5ff;outline-offset:3px}
.cnh-sub{font-size:clamp(14px,1.15vw,18px);line-height:1.25;margin:0 0 8px;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.cnh-d{margin:0 0 12px;font-size:clamp(13px,1vw,16px);line-height:1.35;color:#dbe7ff;max-width:420px}
.cnh-bt{display:flex;flex-wrap:wrap;gap:10px}
.cnh .btn{height:auto;min-height:38px;padding:9px 16px;font-size:clamp(13px,1vw,15px);line-height:1.2;white-space:normal;text-align:center;justify-content:center}
.cnh-tag{margin:12px 0 0;font-size:clamp(13px,1vw,16px);color:#fff}
.cnh-tv{justify-self:start;width:min(100%,var(--tvmax),clamp(380px,39vw,600px));min-width:0}
.cnh-stage{position:relative;aspect-ratio:16/9;background:#000;border:clamp(5px,.8vw,12px) solid #1a2338;border-bottom-width:clamp(7px,1.1vw,16px);border-radius:8px;box-shadow:0 10px 30px rgba(0,0,0,.45);overflow:hidden}
.cnh-po{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.cnh-play{position:absolute;left:50%;top:50%;width:6%;min-width:44px;aspect-ratio:1;transform:translate(-50%,-50%);display:block}.cnh-play img{width:100%;height:100%;display:block}
.cnh-stage iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.cnh-playing .cnh-play,.cnh-playing .cnh-po{display:none}
/* H17 (2026-11-24): >=1024 desktop = production geometry. Hero band is min(25vw,480px) tall (bed art scales with it); TV is absolutely placed like prod's .cn-tv:
   width clamp(431px,40.9vw-58px,727px) (measured live on cnewstv.com), 16:9 screen + 14/14/22px bezel, vertically centred, right edge floats with the art
   (prod: 1618@1920, 2098@2560). Right offset is relative to .cnh-in, so the viewport-based value is corrected by max(0,50vw-750px). */
@media(min-width:1024px){
.cnh-in{min-height:min(25vw,480px);--tvw:clamp(431px,calc(40.9vw - 58px),727px)}
.cnh-in{--tvr:calc(clamp(155px,calc(11.5vw + 81px),302px) + max(0px,calc(25vw - 480px)))}
.cnh-tv{position:absolute;top:50%;transform:translateY(-50%);width:var(--tvw);right:calc(var(--tvr) - max(0px,calc(50vw - 750px)))}
.cnh-tx{max-width:calc(100vw - var(--tvr) - var(--tvw) - max(0px,calc(50vw - 750px)) - clamp(16px,6.25vw,90px) - 20px)}
.cnh-stage{aspect-ratio:auto;height:calc((var(--tvw) - 28px)*.5625 + 39px);border-width:14px;border-bottom-width:22px}
}
/* <=1023: tighter text, description/tagline dropped (still two columns: the TV keeps its share) */
@media(max-width:1023px){.cnh-d,.cnh-tag{display:none}.cnh-in{padding-left:clamp(16px,4vw,40px);padding-right:clamp(16px,4vw,40px)}.cnh-h{font-size:clamp(22px,3.4vw,32px);max-width:none}.cnh-sub{font-size:14px;-webkit-line-clamp:2}.cnh-xl{display:none}}
/* landscape phones / short viewports: keep the whole video inside the frame by height, and compact the text */
@media(max-height:520px){.cnh-in{--tvmax:calc((100svh - 96px)*1.7778);padding-top:10px;padding-bottom:10px}.cnh-lb{font-size:11px}.cnh-h{font-size:clamp(20px,3.2vw,28px);margin:2px 0 4px}.cnh-sub{font-size:13px;-webkit-line-clamp:2;margin-bottom:6px}.cnh .btn{min-height:36px;padding:7px 12px;font-size:13px}.cnh-bt{gap:8px}}
/* portrait phones: single column, video first, full width (bed art dropped, as on the static site) */
@media(max-width:600px) and (orientation:portrait){.cnh{background-image:none}.cnh:before,.cnh:after{display:none}.cnh-in{grid-template-columns:minmax(0,1fr);row-gap:20px;padding:0 0 28px;--tvmax:100%}.cnh-tv{order:-1;width:100%}.cnh-stage{border-radius:0;border-left-width:4px;border-right-width:4px}.cnh-tx{padding:0 16px}.cnh-lb{font-size:15px}.cnh-h{font-size:34px;max-width:none;margin:6px 0 10px}.cnh-sub{font-size:18px;-webkit-line-clamp:3;margin-bottom:12px}.cnh-d{display:block;font-size:16px;max-width:none;margin-bottom:16px}.cnh-tag{display:block;font-size:17px;margin-top:16px}.cnh-xl{display:inline}.cnh-bt{gap:12px}.cnh-bt .btn{flex:1 1 140px;min-height:52px;font-size:16px;padding:10px 14px}}
@media(max-width:600px) and (orientation:landscape){.cnh{background-image:none}.cnh:before,.cnh:after{display:none}}
@media(prefers-reduced-motion:reduce){.cnh *{scroll-behavior:auto}}

/* H18 (2026-11-24): hero margins/type per production breakpoints. Prod: --sm gutter = max(40px,(100vw-1320px)/2,40px+k*.5) (>=1024; 28px at 601-767), text column min(500px,36vw) at >=1200 and clamp(228px,34vw,380px) at 601-1199,
   601-1199 type h1 clamp(24px,4.2vw,36px)/1.02, sub 15px, buttons 38px nowrap gap 8; <=1199 TV bezel 8/8/14. */
:root{--k18:clamp(0px,min((100vw - 1370px)*1.42857,1540px - 100vw),100px);--sm18:max(40px,calc((100vw - 1320px)/2),calc(40px + var(--k18)*.5))}
@media(min-width:1024px){
.cnh-in{max-width:none;padding-left:var(--sm18);padding-right:var(--sm18)}
.cnh-tv{right:var(--tvr)}/* container is now full width (was 1500 max), so the offset is measured from the viewport edge */
.cnh-tx{max-width:min(clamp(228px,34vw,380px),calc(100vw - var(--tvr) - var(--tvw) - var(--sm18) - 20px))}
}
@media(min-width:1200px){.cnh-tx{max-width:min(500px,36vw,calc(100vw - var(--tvr) - var(--tvw) - var(--sm18) - 20px))}}
@media(min-width:601px) and (max-width:1023px){.cnh-tx{max-width:clamp(228px,34vw,380px)}}
@media(min-width:601px) and (max-width:1199px){
.cnh-h{font-size:clamp(24px,4.2vw,36px);line-height:1.02;margin:2px 0 4px}
.cnh-sub{font-size:15px;line-height:1.15;margin:0 0 4px}
.cnh-bt{flex-wrap:nowrap;gap:8px}
.cnh .btn{height:38px;min-height:38px;padding:0 12px;font-size:14px;line-height:1;white-space:nowrap;display:inline-flex;align-items:center}
}
@media(min-width:601px) and (max-width:1023px){.cnh-in{padding-left:40px;padding-right:40px}}
@media(min-width:601px) and (max-width:767px){.cnh-in{padding-left:28px;padding-right:28px}}
@media(max-width:600px) and (orientation:portrait){
.cnh-h{line-height:1.04;margin:4px 0 6px}.cnh-bt{gap:10px}
.cnh-tv{margin-top:14px}
.cnh-stage{border-width:8px 8px 14px;border-radius:7px;aspect-ratio:auto;height:calc((100vw - 16px)*.5625 + 22px)}
}
/* H18b: 601-1199 = production TV geometry. Prod: band = TV height + 2*mv (mv 22px, 12px landscape-short); tvw = max(200px, min(431px, 100vw - sm - txw - 24px - bcw - 8px)); bcw = (300px - mv)*.377 (800+) or sm-8 (601-799); TV left = clamp(txr+24, (txr+100%-bc)/2 - tvw/2, 100%-bc-8-tvw), txr = sm+txw; TV outer aspect 1.68355. */
@media(min-width:601px) and (max-width:1199px){
.cnh-in{--sm:40px;--mv:22px;--gt:24px;--txw:clamp(228px,34vw,380px);--bc:calc((300px - var(--mv))*.377023);--tvw:max(200px,min(431px,calc(100vw - var(--sm) - var(--txw) - var(--gt) - var(--bc) - 8px)));--txr:calc(var(--sm) + var(--txw));padding-top:0;padding-bottom:0;min-height:calc(var(--tvw)/1.68355 + 2*var(--mv));position:relative}
.cnh-tx{max-width:var(--txw)}
.cnh-tv{position:absolute;top:var(--mv);transform:none;right:auto;width:var(--tvw);height:calc(var(--tvw)/1.68355);left:clamp(calc(var(--txr) + var(--gt)),calc((var(--txr) + 100% - var(--bc))/2 - var(--tvw)/2),calc(100% - var(--bc) - 8px - var(--tvw)))}
.cnh-stage{height:100%;aspect-ratio:auto;border-width:8px 8px 14px;border-radius:7px}
}
@media(min-width:601px) and (max-width:799px){.cnh-in{--bc:calc(var(--sm) - 8px)}}
@media(min-width:601px) and (max-width:767px){.cnh-in{--sm:28px}}
@media(min-width:601px) and (max-width:1199px) and (orientation:landscape) and (max-height:520px){.cnh-in{--mv:12px}}
@media(orientation:landscape) and (max-height:500px) and (min-width:560px){
.cnh-in{--txw:clamp(250px,36vw,380px)}.cnh-h{font-size:clamp(22px,7vh,30px);margin:2px 0 3px}.cnh-sub{font-size:14px;margin:0 0 3px}.cnh .btn{height:36px;min-height:36px}
}
@media(orientation:landscape) and (max-height:500px) and (min-width:560px) and (max-width:780px){.cnh-in{--txw:290px}}
@media(min-width:1200px){.cnh-h{font-size:clamp(26px,2.5vw,46px);line-height:1.04;margin:4px 0 6px;max-width:12em}}
@media(max-width:600px) and (orientation:portrait){
.cnh-sub{font-size:17px;line-height:1.25;margin:0 0 8px;display:block;-webkit-line-clamp:unset;overflow:visible}.cnh-d{margin-bottom:12px}
.cnh-bt .btn{min-height:0;padding:11px 20px;font-size:15px;line-height:1.35;flex:1 1 140px}
}
/* H18c: >=1200 = production TV formula (replaces the H17 fitted width/right offset, which was 35px narrow at 1440): mv = max(22px, bh*.05) - k*.1, tv h = bh - 2mv, tv w = h*1.68355,
   left = clamp(txr+40, (txr+100%-bc)/2 - tvw/2, 100%-bc-8-tvw), bc = (bh-mv)*.377, txr = sm + .96*txw (prod sets txr from the measured text width in JS: fitted .96, within 10px of prod at 1280-1920). */
@media(min-width:1200px){
.cnh-in{--bh:min(25vw,480px);--mv:calc(max(22px,var(--bh)*.05) - var(--k18)*.1);--u:calc(var(--bh) - var(--mv));--bc:calc(var(--u)*.377023);--tvh:calc(var(--bh) - 2*var(--mv));--tvw:calc(var(--tvh)*1.68355);--txw:min(500px,36vw);--txr:calc(var(--sm18) + var(--txw)*.88)}
.cnh-tv{right:auto;transform:none;top:var(--mv);width:var(--tvw);height:var(--tvh);left:clamp(calc(var(--txr) + 40px),calc((var(--txr) + 100% - var(--bc))/2 - var(--tvw)/2),calc(100% - var(--bc) - 8px - var(--tvw)))}
.cnh-stage{height:100%;aspect-ratio:auto;border-width:calc(var(--tvh)*.036649);border-bottom-width:calc(var(--tvh)*.057592)}
.cnh-tx{max-width:min(500px,36vw)}
}
/* H18d: text column = prod --txw at 601-1199 (grid col was 5/11 of the row); phone buttons flex:1 (basis 0) like prod */
@media(min-width:601px) and (max-width:1199px){.cnh-in{grid-template-columns:minmax(0,var(--txw)) minmax(0,1fr)}}
@media(max-width:600px) and (orientation:portrait){.cnh-bt .btn{flex:1 1 0}}

/* H29 (2026-11-24): hero swap states, ported from production's hero rules (.npb, .att, .vd/.vd-t/.vd-b, ttlmode, synmode, tight/tight2/novd, .epl, sr-only np). Production class -> theme class: synmode=cnh-syn, vdon/ttlmode/tight/tight2/novd same names scoped under .cnh. */
.cnh .cnh-npb{display:inline-block;margin-left:6px;padding:3px 6px;background:#06649e;border:1px solid #79c7ef;border-radius:3px;color:#fff;font:700 9px/1 Lato,Inter,system-ui,sans-serif;letter-spacing:.06em;vertical-align:middle}
.cnh .cnh-npb[hidden],.cnh .cnh-att[hidden],.cnh .cnh-epl[hidden],.cnh .vd[hidden]{display:none}
.cnh .cnh-att{display:none;font-size:12px;line-height:1.25;color:#dbe7ff;margin:0 0 4px}
.cnh.cnh-syn .cnh-att{display:block}
.cnh.cnh-syn .cnh-d,.cnh.cnh-syn .cnh-tag{display:none}
.cnh.vdon .cnh-d{display:none}
.cnh .cnh-np{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.cnh .cnh-epl{display:inline-flex;align-items:center;min-height:44px;color:#8fc3ff;font-weight:700;font-size:15px;text-decoration:none;margin-top:2px}.cnh .cnh-epl:hover{text-decoration:underline}
.cnh.ttlmode .cnh-h{font-size:clamp(20px,1.7vw,30px);line-height:1.12;max-width:none;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.cnh .cnh-sub:empty{display:none}
.cnh .vd{margin:0 0 10px;color:#dbe7ff;font-size:clamp(13px,1vw,16px);line-height:1.36;max-width:min(470px,100%)}
.cnh .vd-t{white-space:pre-line;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.cnh .vd.open .vd-t{display:block;-webkit-line-clamp:unset;max-height:var(--vdmax,calc(var(--bh,360px) - 250px));overflow-y:auto;padding-right:6px;scrollbar-width:thin}
.cnh .vd-l{display:block}.cnh .vd-l.br{height:.5em}.cnh .vd-l.ts{font-variant-numeric:tabular-nums}
.cnh .vd-b{background:none;border:0;color:#8fc3ff;font:inherit;font-weight:700;padding:1px 0;min-height:24px;cursor:pointer;text-decoration:underline;text-underline-offset:2px}
.cnh .vd-b:hover{color:#fff}.cnh .vd-b:focus-visible,.cnh .vd-t:focus-visible,.cnh .cnh-epl:focus-visible{outline:3px solid #58b5ff;outline-offset:2px;border-radius:3px}
.cnh.tight .cnh-tag{display:none}.cnh.tight2 .cnh-sub{-webkit-line-clamp:1}.cnh.novd .vd{display:none}.cnh.novd.vdon .cnh-d{display:none}
@media(min-width:1050px) and (max-width:1599px){.cnh.vdon .cnh-tag{display:none}.cnh .vd-t{-webkit-line-clamp:3}.cnh .vd.open .vd-t{max-height:max(64px,calc(var(--bh,360px) - 232px))}}
@media(min-width:601px) and (max-width:1199px){.cnh.ttlmode .cnh-h{font-size:max(24px,min(2vw,28px));line-height:1.1;-webkit-line-clamp:2}.cnh .vd{font-size:14px;line-height:1.35;margin:0 0 8px}.cnh .vd-t{-webkit-line-clamp:2}}
@media(min-width:601px) and (max-width:799px){.cnh .vd{display:none}}
@media(max-width:600px){.cnh .vd{font-size:14px;max-width:none}.cnh .vd-t{-webkit-line-clamp:4}.cnh .vd-b{min-height:44px;padding:10px 0}.cnh .vd.open .vd-t{max-height:220px}.cnh .cnh-att{font-size:14px}}
@media(max-height:520px){.cnh .cnh-epl{display:none}}
/* J2 (2026-11-25): bed art + slat tile = production geometry at >=1024. Art height --ah is piecewise-linear through prod's measured values
   (326.13@<=1200, 349.59@1280, 408.25@1440, 443.44@1600, 534.94@>=1920); width = ah*1474/725; art right-anchored, top 0; slat tile (ah*1120/725) anchored to art left edge, repeat-x. */
@media(min-width:1024px){
.cnh{--ah:326.13px}
.cnh{--aw:calc(var(--ah)*2.03310);background-size:calc(var(--ah)*1.54483) var(--ah);background-position:calc(100% - var(--aw)) 0}
.cnh:after{bottom:auto;top:0;right:0;height:var(--ah);width:var(--aw);aspect-ratio:auto;max-width:none}
}
@media(min-width:1200px){.cnh{--ah:calc(326.13px + (100vw - 1200px)*.29338)}}
@media(min-width:1280px){.cnh{--ah:calc(349.59px + (100vw - 1280px)*.36656)}}
@media(min-width:1440px){.cnh{--ah:calc(408.25px + (100vw - 1440px)*.21994)}}
@media(min-width:1600px){.cnh{--ah:calc(443.44px + (100vw - 1600px)*.28594)}}
@media(min-width:1920px){.cnh{--ah:534.94px}}
/* Z3: >=1200 hero subtitle = prod (.hero .sub clamp(14px,1.2vw,20px), 2-line clamp); its width feeds the measured --txr (hero.js) that positions the TV. */
@media(min-width:1200px){.cnh-sub{font-size:clamp(14px,1.2vw,20px);-webkit-line-clamp:2}}

/* CN-A6 (2026-11-27): port of the static-site hero breakpoints that never reached the WP theme (source: dist-root/index.html .hero .bt .x2/.x3/.ic + 601-799 bed rule). Without them the 164px "Browse all shows" button ran under the TV at 601-799. Label by width: <1150 "All shows", 1150+ "Browse all shows", 601-799 icon off + "Shows" and bed art off (slats only). */
.cnh-x3{display:none}.cnh-x2{display:inline}.cnh-lb2{display:inline-block}
@media(min-width:1150px),(max-width:600px){.cnh-x3{display:inline}.cnh-x2{display:none}}
@media(min-width:601px) and (max-width:799px){.cnh-x2,.cnh-ic{display:none}.cnh-lb2::first-letter{text-transform:uppercase}.cnh:after{display:none}}
