/* ============================================================
   CBM RESPONSIVE LAYER  ·  cbm-responsive.css
   Capital Business Media — Business Matters + Optimum
   ------------------------------------------------------------
   Mobile-first. Loaded AFTER each template's inline <style>, so
   the BASE rules here are the mobile design; desktop is restored
   in the min-width blocks at the bottom. This file supersedes the
   old max-width patches and retires bm-homepage-mobile.html.

   Brand is switched with <html data-brand="bm"> or "optimum".
   Nothing here changes the design tokens — it only changes layout,
   density and touch behaviour.
   ============================================================ */

/* ---------- 1. Fluid scale ------------------------------------ */
:root{
  --pad:clamp(20px,5.2vw,28px);      /* gutter: 20px @375 -> 28px @538+. Was 16px, which */
                                     /* put text ~17px off the edge on a 393pt iPhone and read */
                                     /* as edge-to-edge. Richard, 3 Sep: "looks a bit too wide". */
  --gap:clamp(12px,3vw,26px);
  --gap-s:clamp(8px,2vw,14px);
  --band-y:clamp(30px,7vw,54px);     /* vertical band rhythm */
  --tap:44px;                         /* WCAG 2.2 AA minimum */
  --safe-l:env(safe-area-inset-left,0px);
  --safe-r:env(safe-area-inset-right,0px);
  --safe-b:env(safe-area-inset-bottom,0px);
  --safe-t:env(safe-area-inset-top,0px);
  --anchor-h:0px;                     /* set to 50px by JS when anchor ad shows */
  --navbar-h:56px;
}

html{
  -webkit-text-size-adjust:100%;      /* stop iOS landscape inflation */
  text-size-adjust:100%;
  overflow-x:hidden;
}
body{
  overflow-x:hidden;
  overscroll-behavior-y:none;         /* no rubber-band under the sticky nav */
  padding-bottom:calc(var(--anchor-h) + var(--safe-b));
}

/* Gutters respect notch/curved edges in landscape */
.wrap{
  padding-left:calc(var(--pad) + var(--safe-l));
  padding-right:calc(var(--pad) + var(--safe-r));
}

/* Nothing may push the page sideways */
img,svg,video,iframe,table,pre{max-width:100%}
iframe{border:0}

/* Long headlines / URLs must not force horizontal scroll on 320px */
h1,h2,h3,h4,h5,p,li,a,span,td,th,dd,dt,figcaption{overflow-wrap:break-word}

/* Below-the-fold bands skip layout+paint until scrolled near (INP/LCP win) */
.band,.justin,.trending,.mag-band,.biz,.opinion,footer{
  content-visibility:auto;
  contain-intrinsic-size:auto 640px;
}

/* ---------- 2. Touch target floor -----------------------------
   House standard: 44px for anything that behaves like a control
   (WCAG 2.5.5 AAA). Inline links inside prose keep their natural
   size but get 24px of vertical room + spacing, which is the
   WCAG 2.2 AA requirement (2.5.8) and the AA spacing exception.
   ------------------------------------------------------------ */
@media (hover:none){
  /* 2a. Controls — hard 44px floor */
  .mainnav a.nl,
  .mainnav .subscribe,
  .masthead .logo,
  .masthead .top a,
  .mainnav .mini,
  .foot-main ul a,
  .mini-list a,
  .biz li a,
  .socials a,
  .pager a,
  .subcats a,
  .btn, a.btn, .cta, a.read, .card-cta,
  .mag-band .btn, .foot-cta a,
  button:not(.close):not(.stab):not(.nav-btn):not(.fcol-toggle),
  input[type="submit"],
  [role="button"]{
    min-height:var(--tap);
    display:flex;
    align-items:center;
  }
  .mainnav .subscribe,
  .btn, a.btn, .cta, a.read, .mag-band .btn, .foot-cta a,
  button:not(.close):not(.stab):not(.nav-btn):not(.fcol-toggle),
  input[type="submit"]{
    justify-content:center;
    min-height:48px;
  }
  .masthead .logo,.mainnav .mini{justify-content:center}
  .socials a,.share a,.share button,.fshare a,.fshare button{
    width:var(--tap);height:var(--tap);min-height:var(--tap);
    padding:0;justify-content:center;
  }
  .share,.fshare{gap:10px;flex-wrap:wrap}
  /* Author-box / related link clusters */
  .links a{min-height:var(--tap);display:inline-flex;align-items:center}
  .links{display:flex;flex-wrap:wrap;gap:0 18px}
  .stab{flex:0 0 auto}
  /* Bylines and inline contact links get vertical breathing room */
  .by a,.byline a,b a,a[href^="mailto"],a[href^="tel"]{
    display:inline-flex;align-items:center;min-height:24px;padding-block:5px;
  }

  /* 2b. Touch targets for STANDALONE links — breadcrumbs, ticker items, legal
     links, and mailto/tel in lists. Each of these is its own tap target with
     nothing either side of it on the line.

     Links inside running prose are deliberately NOT in this list. `inline-flex`
     makes an element an atomic inline box, which cannot break across lines — so
     an embedded link in a paragraph gets shoved onto a line of its own the
     moment it would need to wrap. That is what it was doing on mobile.

     They do not need to be here anyway: WCAG 2.5.8 exempts a target that is
     "in a sentence or its size is otherwise constrained by the line-height of
     non-target text", which is exactly an inline link in body copy. */
  .crumb a, .crumbs a,
  .ticker .items a, .foot-legal a,
  li a[href^="mailto"], li a[href^="tel"]{
    min-height:24px;
    display:inline-flex;
    align-items:center;
    padding-block:6px;
  }
  .crumb,.crumbs{display:flex;flex-wrap:wrap;gap:4px 10px;align-items:center}
  .foot-legal{gap:10px 18px}
  .ticker .items{align-items:center}

  /* Hover-only reveals are useless on touch — don't animate them at all */
  .card h3 a,.tile h3 span{background-size:0 0}
  .split .stack article:hover{padding-left:28px}
}

/* ---------- 3. Mobile shell (BASE = mobile) ------------------- */

/* 3a. Masthead compresses to a single 56px bar */
.masthead .top{display:none}
.masthead .brand{
  padding:10px 0;
  gap:12px;
  justify-content:center;
  position:relative;
}
.masthead .logo img{height:clamp(38px,11vw,56px)}
.head-ad{display:none}                 /* 728x90 never renders on phones */

/* 3b. Primary nav → hamburger bar. No horizontal scrolling nav. */
.mainnav{
  position:sticky;
  top:0;
  z-index:80;
  padding-top:var(--safe-t);
}
.mainnav .wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  height:var(--navbar-h);
  overflow:visible;                    /* kills the old overflow-x:auto strip */
}
.mainnav a.nl{display:none}            /* categories live in the drawer */
.mainnav .spacer{display:none}
/* The mini logo appears ONLY once the masthead has scrolled away.
   It used to be display:block unconditionally here, which meant the full logo
   in the masthead and the mini logo in the black nav bar were both on screen
   at the same time. Richard, 3 Sep: "Two logos at top? Is the one on black
   where a banner ad goes?" - so it read as an ad slot rather than navigation.
   Desktop already behaved this way; mobile was the odd one out. */
.mainnav .mini{display:none!important;margin:0}
.mainnav.scrolled .mini{display:block!important;margin:0}
.mainnav .mini img{height:24px;width:auto}
.mainnav .subscribe{
  padding:0 14px;
  min-height:44px;
  display:flex;
  align-items:center;
  font-size:12px;
  white-space:nowrap;
}
.masthead .logo{display:flex;align-items:center;min-height:44px}

/* Hamburger + search buttons (markup injected by cbm-app.js) */
.nav-btn{
  width:var(--tap);height:var(--tap);
  display:flex;align-items:center;justify-content:center;
  background:none;border:0;cursor:pointer;
  color:inherit;
  flex-shrink:0;
}
.nav-btn svg{width:22px;height:22px;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round}
[data-brand="optimum"] .nav-btn{color:var(--ink,#111112)}

/* 3c. Off-canvas drawer */
.drawer-scrim{
  position:fixed;inset:0;
  background:rgba(0,0,0,.55);
  opacity:0;visibility:hidden;
  transition:opacity .25s ease,visibility .25s;
  z-index:900;
}
.drawer-scrim.open{opacity:1;visibility:visible}
.drawer{
  position:fixed;
  top:0;bottom:0;left:0;
  width:min(86vw,380px);
  background:var(--black,#0B0B0C);
  color:#fff;
  z-index:901;
  transform:translateX(-100%);
  transition:transform .28s cubic-bezier(.2,.7,.2,1);
  display:flex;flex-direction:column;
  padding-top:var(--safe-t);
  padding-left:var(--safe-l);
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  overflow-y:auto;
}
[data-brand="optimum"] .drawer{background:#fff;color:var(--ink,#111112);border-right:1px solid var(--line,#e5ddd0)}
.drawer.open{transform:none}
.drawer-head{
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 18px;
  border-bottom:1px solid rgba(255,255,255,.14);
}
[data-brand="optimum"] .drawer-head{border-bottom-color:var(--line,#e5ddd0)}
.drawer-head img{height:26px;width:auto}
.drawer nav{display:flex;flex-direction:column;padding:6px 0}
.drawer nav a{
  display:flex;align-items:center;justify-content:space-between;
  min-height:52px;
  padding:0 18px;
  font-family:var(--display,'Archivo',sans-serif);
  font-weight:800;
  font-size:15px;
  text-transform:uppercase;
  letter-spacing:.06em;
  border-bottom:1px solid rgba(255,255,255,.08);
}
[data-brand="optimum"] .drawer nav a{
  border-bottom-color:var(--line,#e5ddd0);
  font-family:var(--sans,'Inter',sans-serif);
  font-weight:600;
  letter-spacing:.14em;
  font-size:13px;
}
.drawer nav a::after{content:"→";color:var(--red-bright,#F2604F);font-weight:800}
.drawer nav a:active{background:rgba(255,255,255,.08)}
.drawer .drawer-cta{padding:20px 18px calc(28px + var(--safe-b))}
.drawer .drawer-cta a{
  display:flex;align-items:center;justify-content:center;
  min-height:52px;
  background:var(--red-ui,#C63528);color:#fff;
  font-family:var(--display,'Archivo',sans-serif);
  font-weight:800;font-size:14px;text-transform:uppercase;letter-spacing:.06em;
}
.drawer .drawer-cta p{font-size:12px;opacity:.7;margin-top:12px;line-height:1.5}
body.drawer-open{overflow:hidden;position:relative}

/* 3d. Ticker — one line, no wrap, still pauses on hover/focus */
.ticker .wrap{height:40px;gap:10px}
.ticker .label{font-size:10px;padding:5px 8px}
.ticker .items{font-size:12.5px;gap:34px}

/* 3e. Hero slider — stacked, swipeable, 44px controls */
.slide{grid-template-columns:1fr}
.slide .panel{
  border-left:none;
  border-top:5px solid var(--red,#E84A3C);
  padding:20px var(--pad) 24px;
}
.slide .panel::before{font-size:150px;right:-14px;bottom:-40px}
.slide .hl{font-size:clamp(22px,6.2vw,32px);margin-bottom:12px}
.slide p{font-size:15px;line-height:1.5}
.hs-stage{touch-action:pan-y}

/* Tabs become dots + prev/next on phones.
   Zero gap keeps eight 34px dots inside a 320px viewport; the 44px
   height plus adjacency satisfies the target-spacing exception. */
.slidetabs .wrap{display:flex;align-items:center;justify-content:center;gap:0;padding:8px 0;flex-wrap:wrap}
.stab{
  padding:0;
  flex:0 0 auto;
  width:34px;height:var(--tap);
  display:flex;align-items:center;justify-content:center;
  border-radius:50%;
}
.stab .no,.stab .tt,.stab .bar{display:none}
.stab::before{
  content:"";width:9px;height:9px;border-radius:50%;
  background:rgba(255,255,255,.34);transition:background .2s,transform .2s;
}
.stab.on::before{background:var(--red-bright,#F2604F);transform:scale(1.35)}
.hs-nav{
  position:absolute;top:calc(28.125vw - 22px);   /* vertical centre of a 16:9 full-bleed frame */
  width:var(--tap);height:var(--tap);
  display:flex;align-items:center;justify-content:center;
  background:rgba(0,0,0,.55);color:#fff;border:0;cursor:pointer;z-index:5;
}
.hs-nav.prev{left:6px}
.hs-nav.next{right:6px}
.heroslider{position:relative}

/* 3f. Grid children may not establish a min-content floor — this is
   what makes stat blocks, tables and long words blow out at 320px. */
.mosaic>*,.cards-4>*,.cards-3>*,.tr-grid>*,.op-grid>*,.duo>*,
.split>*,.with-rail>*,.foot-main>*,.stats>*,.rows .row>*,
.pillar-grid>*,.cards>*,.page-layout>*,.feed-wrap>*,.tri>*{min-width:0}
.stats{grid-template-columns:minmax(0,1fr)}
.stats>*{padding:16px 14px!important}

/* Every multi-column grid collapses — including the two page shells
   (.page-layout on static pages, .feed-wrap on category pages) whose
   fixed 300px rail was the main source of overflow below 400px. */
.mosaic,.cards-4,.cards-3,.tr-grid,.op-grid,.duo,.split,
.with-rail,.foot-main,.biz ul,.pillar-grid,.cards,
.page-layout,.feed-wrap,.tri{
  grid-template-columns:minmax(0,1fr);
  gap:var(--gap);
}
.page-layout{padding:var(--band-y) calc(var(--pad) + var(--safe-l)) 30px calc(var(--pad) + var(--safe-r))}
.feed-wrap{padding:20px 0 10px}

/* Head rows with a flexible rule + a control must be allowed to wrap */
.feed-head,.band-head,.justin .head,.duo .col-head,.biz .head{flex-wrap:wrap}
.feed-head .rule,.band-head .rule,.justin .head .rule,.duo .col-head .rule{min-width:24px}

/* Forms wrap rather than overflow, wherever they are dropped */
form{flex-wrap:wrap}
form>input,form>button,form>select{min-width:0}
form>button{flex:1 1 auto;max-width:100%}
.rail form,.rail-box form{flex-direction:column}
.rail form button,.rail-box form button,.rail form input,.rail-box form input{width:100%}

/* Buttons hold long labels (email addresses, long CTAs) without spilling */
.btn,a.btn,.cta,.foot-cta a,.mag-band .btn{
  max-width:100%;
  padding-inline:clamp(14px,4.5vw,26px);
  text-align:center;
  word-break:break-word;
}

/* Pager wraps; every step is a real target */
.pager{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.pager a,.pager span{min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center}
.mosaic{gap:var(--gap-s)}
.rows .row{grid-template-columns:112px 1fr;gap:14px;padding:16px 0}
.rows h3{font-size:16px;line-height:1.3}
.rows p{display:none}                 /* dek is noise at 112px thumb width */
.tr-grid{gap:18px}
.tr-item .n{font-size:44px}
.duo{gap:34px}

/* Rail drops inline, ads centred, sticky disabled */
.with-rail{gap:var(--band-y)}
.rail{position:static;flex-direction:column;align-items:center;gap:22px}
.rail .ad-slot{max-width:100%}
.rail-box{width:100%}

/* 3g. Bands + headings */
.band,.justin{padding:var(--band-y) 0}
.band-head,.justin .head{gap:14px;margin-bottom:20px}
.band-head h2,.justin .head h2{font-size:clamp(24px,6.4vw,34px)}
.band-head .rule,.justin .head .rule{height:4px}
.band-head .more,.justin .head .more,.duo .col-head .more,.biz .head .more,.feed-head .more{
  font-size:11.5px;min-height:44px;display:inline-flex;align-items:center;
}

/* 3h. Forms stack and never zoom iOS (16px minimum) */
.nl-band{padding:26px 0}
.nl-band .wrap{gap:20px}
.nl-band form{flex-direction:column;min-width:0;max-width:none;width:100%}
.nl-band input,.newsletter input,
input[type="text"],input[type="email"],input[type="tel"],select,textarea{
  font-size:16px;
  min-height:var(--tap);
}
.nl-band button,.newsletter button,button[type="submit"]{min-height:48px;font-size:14px}

/* 3i. Magazine + opinion bands */
.mag-band .wrap{grid-template-columns:1fr;gap:24px;text-align:left}
.mag-band .cover{max-width:190px;transform:none}
.mag-band .btns .btn{flex:1;justify-content:center;text-align:center;min-height:48px;display:flex;align-items:center}
.op-card{padding:22px}
.op-card .img{margin:-22px -22px 18px}
.opinion{padding:var(--band-y) 0}

/* 3j. Footer */
.foot-cta{padding:30px 0;gap:18px}
.foot-cta h3{font-size:clamp(22px,6vw,30px)}
.foot-cta a{width:100%;text-align:center;min-height:52px;display:flex;align-items:center;justify-content:center}
.foot-main{padding:32px 0 24px;gap:28px}
.foot-legal{padding-bottom:calc(20px + var(--anchor-h) + var(--safe-b));flex-direction:column;gap:8px}

/* Footer link columns become accordions to cut a 4-screen footer to one */
.foot-main .fcol h5{
  display:flex;align-items:center;justify-content:space-between;
  min-height:var(--tap);margin-bottom:0;cursor:pointer;
}
.foot-main .fcol h5::after{content:"+";font-size:18px;line-height:1}
.foot-main .fcol[data-open="true"] h5::after{content:"–"}
.foot-main .fcol ul{display:none;padding:6px 0 14px}
.foot-main .fcol[data-open="true"] ul{display:flex}

/* ---------- 4. Mobile ad inventory ---------------------------- */
/* Reserved boxes — height is declared up front so nothing shifts (CLS=0). */
.ad-mobile{display:flex;justify-content:center;padding:18px 0}
.ad-mobile .ad-slot{width:320px;height:50px;max-width:100%}
.ad-mobile.mpu .ad-slot{width:300px;height:250px}
.ad-desktop-only{display:none}

/* Dismissible sticky anchor, above the home indicator */
.ad-anchor{
  position:fixed;
  left:0;right:0;
  bottom:0;
  z-index:70;
  display:flex;align-items:center;justify-content:center;
  height:calc(50px + var(--safe-b));
  padding-bottom:var(--safe-b);
  background:#fff;
  border-top:1px solid var(--line,#e9d5bf);
  transform:translateY(110%);
  transition:transform .3s ease;
}
.ad-anchor.show{transform:none}
/* the close tab sits above the bar, so it must not peek while hidden */
.ad-anchor .close{display:none}
.ad-anchor.show .close{display:flex}
.ad-anchor .ad-slot{width:320px;height:50px;border:1px dashed var(--line,#e9d5bf)}
.ad-anchor .close{
  position:absolute;top:-36px;right:6px;
  width:44px;height:36px;
  display:flex;align-items:center;justify-content:center;
  background:rgba(0,0,0,.72);color:#fff;border:0;border-radius:50% 50% 0 0;
  font-size:15px;line-height:1;cursor:pointer;
}

/* ---------- 5. Offline / connection states -------------------- */
.offline-bar{
  position:fixed;left:0;right:0;top:0;z-index:950;
  background:var(--black,#0B0B0C);color:#fff;
  font-family:var(--display,'Archivo',sans-serif);
  font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;
  text-align:center;padding:calc(8px + var(--safe-t)) 12px 8px;
  transform:translateY(-100%);transition:transform .25s;
}
.offline-bar.show{transform:none}
.saved-badge{
  display:inline-flex;align-items:center;gap:6px;
  font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.1em;
  color:var(--grey-2,#616167);
}
.push-card{
  border:1px solid var(--line,#e9d5bf);background:#fff;
  padding:18px;margin:var(--gap) 0;
  display:flex;flex-direction:column;gap:12px;
}
.push-card h4{font-family:var(--display,'Archivo',sans-serif);font-size:13px;text-transform:uppercase;letter-spacing:.1em}
.push-card p{font-size:13px;line-height:1.5;color:var(--grey-1,#3f3f42)}
.push-card .row{display:flex;gap:10px}
.push-card button{
  flex:1;min-height:46px;border:0;cursor:pointer;
  font-family:var(--display,'Archivo',sans-serif);font-weight:800;font-size:12.5px;
  text-transform:uppercase;letter-spacing:.06em;
}
.push-card .yes{background:var(--red-ui,#C63528);color:#fff}
.push-card .no{background:transparent;border:1.5px solid var(--line,#e9d5bf);color:var(--grey-1,#3f3f42)}

/* ---------- 5b. Declarative grids ------------------------------
   Replaces the hardcoded `style="grid-template-columns:…"` attributes
   that used to sit in the markup. An inline style beats every
   stylesheet rule, so those attributes silently defeated the whole
   responsive layer — they are now data attributes instead. */
[data-grid]{display:grid;gap:var(--gap);grid-template-columns:minmax(0,1fr)}
[data-grid]>*{min-width:0}

@media (min-width:700px){
  [data-grid="2up"]{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (min-width:1025px){
  [data-grid="1.6-1"]{grid-template-columns:1.6fr minmax(0,1fr);gap:36px}
  [data-grid="1.5-1"]{grid-template-columns:1.5fr minmax(0,1fr);gap:48px}
  [data-grid="300-1"]{grid-template-columns:300px minmax(0,1fr);gap:60px;align-items:center}
  [data-grid="2up"]{grid-template-columns:repeat(2,minmax(0,1fr));max-width:66%}
}

/* ---------- 6. Optimum overrides on mobile --------------------
   Optimum uses its own grid class names (.hero .grid, .issue-band
   .grid, .pillar-grid) and a centred logo with no .logo wrapper. */
[data-brand="optimum"] .hero .grid,
[data-brand="optimum"] .issue-band .grid,
[data-brand="optimum"] .pillar-grid,
[data-brand="optimum"] .cards,
[data-brand="optimum"] .duo,
[data-brand="optimum"] .foot-main{grid-template-columns:minmax(0,1fr);gap:var(--gap)}
[data-brand="optimum"] .hero .grid>*,
[data-brand="optimum"] .issue-band .grid>*,
[data-brand="optimum"] .hero .side article>*{min-width:0}
[data-brand="optimum"] .hero .side{width:100%}

@media (hover:none){
  /* Centred masthead logo, topbar cross-brand link and inline CTAs */
  [data-brand="optimum"] .masthead a,
  [data-brand="optimum"] .topbar a,
  .masthead a,
  .more,.arrow-link,a.more,a.link,.box .link{
    min-height:var(--tap);
    display:inline-flex;
    align-items:center;
  }
  [data-brand="optimum"] .topbar .wrap{gap:10px;flex-wrap:wrap}
}

@media (min-width:700px){
  [data-brand="optimum"] .pillar-grid,
  [data-brand="optimum"] .cards,
  [data-brand="optimum"] .duo{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media (min-width:1025px){
  [data-brand="optimum"] .hero .grid{grid-template-columns:1.5fr 1fr;gap:48px}
  [data-brand="optimum"] .issue-band .grid{grid-template-columns:300px 1fr;gap:60px}
  [data-brand="optimum"] .pillar-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:1px}
  [data-brand="optimum"] .cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:36px}
  [data-brand="optimum"] .duo{grid-template-columns:1fr 1fr;gap:36px}
  [data-brand="optimum"] .foot-main{grid-template-columns:1.5fr 1fr 1fr;gap:44px}
}

[data-brand="optimum"] .masthead{padding:16px 0 14px}
[data-brand="optimum"] .masthead img{height:clamp(40px,12vw,60px)}
[data-brand="optimum"] .mainnav .wrap{justify-content:space-between}
[data-brand="optimum"] .mainnav .mini{position:static}
[data-brand="optimum"] .mainnav .subscribe{position:static}
[data-brand="optimum"] .hero .side article{grid-template-columns:88px 1fr}
[data-brand="optimum"] .topbar .wrap{height:34px;font-size:11px}
[data-brand="optimum"] .topbar .wrap span:last-child{display:none}

/* ============================================================
   7. TABLET  ≥ 700px
   ============================================================ */
@media (min-width:700px){
  .mosaic,.cards-4{grid-template-columns:repeat(2,1fr)}
  .tr-grid,.op-grid,.cards-3,.biz ul,.pillar-grid,.cards{grid-template-columns:repeat(2,1fr)}
  .tri,.stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .foot-main{grid-template-columns:1fr 1fr}
  .rows .row{grid-template-columns:190px 1fr}
  .rows p{display:block}
  .mag-band .wrap{grid-template-columns:200px 1fr;align-items:center}
  .nl-band form{flex-direction:row;max-width:520px}
  .foot-cta a{width:auto}
  .masthead .logo img{height:64px}
  .ad-mobile .ad-slot{width:468px;height:60px}
}

/* ============================================================
   8. DESKTOP  ≥ 1025px — restore the approved desktop design
   ============================================================ */
@media (min-width:1025px){
  body{padding-bottom:0}

  /* Masthead + leaderboard return */
  .masthead .top{display:block}
  .masthead .brand{padding:22px 0;justify-content:space-between;gap:40px}
  .masthead .logo img{height:86px}
  .head-ad{display:block}

  /* Full horizontal nav returns; drawer controls disappear */
  .mainnav .wrap{height:58px;justify-content:flex-start;gap:0}
  .mainnav a.nl{display:flex}
  .mainnav .spacer{display:block;flex:1}
  .mainnav .mini{display:none!important}
  .mainnav.scrolled .mini{display:block!important;margin-right:18px}
  .mainnav .subscribe{height:auto;padding:11px 22px;font-size:13px}
  .nav-btn,.drawer,.drawer-scrim{display:none}

  /* Ticker */
  .ticker .wrap{height:44px;gap:16px}
  .ticker .label{font-size:11px;padding:6px 11px}
  .ticker .items{font-size:13px;gap:52px}

  /* Hero */
  .slide{grid-template-columns:1.55fr 1fr}
  .slide .panel{border-left:6px solid var(--red,#E84A3C);border-top:none;padding:44px 46px}
  .slide .panel::before{font-size:280px;right:-30px;bottom:-70px}
  .slidetabs .wrap{display:grid;grid-template-columns:repeat(8,1fr);gap:2px;padding:0}
  .stab{width:auto;height:auto;border-radius:0;display:block;text-align:left;padding:12px 13px 14px}
  .stab::before{display:none}
  .stab .no,.stab .tt,.stab .bar{display:block}
  .hs-nav{display:none}

  /* Grids */
  .mosaic{grid-template-columns:repeat(4,1fr);gap:14px}
  .cards-4,.tr-grid{grid-template-columns:repeat(4,1fr)}
  .cards-3,.op-grid,.pillar-grid,.cards{grid-template-columns:repeat(3,1fr)}
  .duo{grid-template-columns:1fr 1fr;gap:52px}
  .split{grid-template-columns:1.35fr 1fr}
  .with-rail{grid-template-columns:1fr 300px;gap:44px}
  .rail{position:sticky;top:78px;flex-direction:column;align-items:stretch;gap:26px}
  .biz ul{grid-template-columns:repeat(5,1fr)}
  .foot-main{grid-template-columns:1.4fr 1fr 1fr 1fr;padding:48px 0 40px}
  .stats{grid-template-columns:repeat(4,minmax(0,1fr))}
  .stats>*{padding:26px 22px!important}
  .page-layout{grid-template-columns:minmax(0,760px) 300px;gap:52px;padding:44px 28px 30px}
  .feed-wrap{grid-template-columns:minmax(0,1fr) 300px;gap:44px;padding:26px 0 10px}
  .tri{grid-template-columns:repeat(3,minmax(0,1fr))}
  .feed-head,.band-head,.justin .head,.duo .col-head,.biz .head{flex-wrap:nowrap}
  .pager{gap:6px}
  .slidetabs .wrap{flex-wrap:nowrap}

  /* Footer accordions revert to open columns */
  .foot-main .fcol h5{display:block;min-height:0;margin-bottom:16px;cursor:auto}
  .foot-main .fcol h5::after{content:none}
  .foot-main .fcol ul{display:flex!important;padding:0}
  .foot-legal{flex-direction:row;padding-bottom:20px}

  /* Bands */
  .mag-band .wrap{grid-template-columns:280px 1fr;gap:52px}
  .mag-band .cover{max-width:none;transform:rotate(-2deg)}
  .mag-band .btns .btn{flex:none}
  .op-card{padding:30px}
  .op-card .img{margin:-30px -30px 22px}
  .nl-band{padding:36px 0}
  .rows .row{padding:22px 0}
  .rows h3{font-size:20px}

  /* Mobile-only commercial units off; desktop-only units on */
  .ad-mobile,.ad-anchor{display:none!important}
  .ad-desktop-only{display:flex}

  [data-brand="optimum"] .mainnav .wrap{justify-content:center;gap:4px}
  [data-brand="optimum"] .mainnav .mini{position:absolute;left:28px}
  [data-brand="optimum"] .mainnav .subscribe{position:absolute;right:28px}
  [data-brand="optimum"] .masthead{padding:38px 0 30px}
  [data-brand="optimum"] .masthead img{height:96px}
  [data-brand="optimum"] .topbar .wrap{height:40px;font-size:12px}
  [data-brand="optimum"] .topbar .wrap span:last-child{display:block}
}

/* ---------- 9. Motion, contrast, print ------------------------ */
@media (prefers-reduced-motion:reduce){
  .drawer,.drawer-scrim,.ad-anchor,.offline-bar,.reveal{transition:none!important}
  .stab.on .bar,.ticker .items,.slide.on .kick,.slide.on .hl,
  .slide.on p,.slide.on .by,.ticker .label{animation:none!important}
  .slide .kick,.slide .hl,.slide p,.slide .by{opacity:1;transform:none}
  html{scroll-behavior:auto}
}
@media (prefers-contrast:more){
  .ad-slot{border-style:solid}
  .drawer nav a{border-bottom-color:currentColor}
}
@media print{
  .mainnav,.ticker,.ad-slot,.ad-mobile,.ad-anchor,.drawer,.drawer-scrim,
  .nav-btn,.offline-bar,.push-card,.slidetabs{display:none!important}
  body{background:#fff;color:#000}
  .band,.justin,footer{content-visibility:visible}
}
