
/* ============================================================
   Crossmark Media: RUN 1 DEFECT FIXES (Nov 24, 2026, on v40)
   Fixes only. No copy, claims, prices or layout redesign in this block.
   F1 menu scroll lock   F2 header fit with a cart item / at 360px
   F3 checker text overflow   F4 listing mockup uses Google's own text sizes   F5 cart legibility in dark mode
   ============================================================ */
/* F1: v40 set overflow:hidden on <body> as well as <html> while the menu was open.
   That makes <body> the scroll box, so on any scrolled page the sticky header and the
   open menu jumped off screen and the page froze. Lock the viewport only. */
html.cm-menu-open{overflow:hidden}
html.cm-menu-open body.cm-menu-open{overflow:visible;overflow-x:clip}
header.site .cm-panel{overscroll-behavior:contain;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 80px);max-height:calc(100dvh - 80px)}
/* F2: the header row was wider than the screen (a) at 360px and (b) at every phone width
   once the Cart button appeared, which pushed the menu button off screen. */
header.site .nav{min-width:0}
@media (max-width:480px){
  html.cm-has-cart header.site .nav{gap:8px}
  html.cm-has-cart header.site nav.nav-actions{gap:6px}
  html.cm-has-cart header.site .nav-checker .cta-full{display:none}
  html.cm-has-cart header.site .nav-checker .cta-short{display:inline}
  html.cm-has-cart header.site .cart-open.btn.ghost{padding:0 12px!important;font-size:14px!important;gap:2px!important;min-height:40px!important;height:40px}
  html.cm-has-cart header.site .cart-open .cart-count{margin-left:5px!important;min-width:20px!important;height:20px!important;padding:0 6px!important;line-height:20px!important}
}
@media (max-width:389px){
  html.cm-has-cart header.site .brand .brand-word{display:none}
}
@media (max-width:374px){
  header.site .nav{gap:6px;padding-left:12px;padding-right:10px}
  header.site nav.nav-actions{gap:6px}
  header.site .nav-actions a.nav-checker{padding:0 8px!important;font-size:12.5px!important}
  header.site .brand .brand-word{font-size:14px}
}
/* F3: long website addresses and business names ran out of their boxes in the checker. */
#iaResult,#iaMatchList{overflow-wrap:break-word}
#iaResult .cm-r-card>span:first-child{white-space:nowrap;flex:none}
#iaResult .cm-diag>div,#iaResult .cm-r-main,#iaResult .cm-r-left{min-width:0}
#iaMatchList button{white-space:normal;height:auto}
/* F4: a page rule (#iaResult p{font-size:1.5rem}) blew the Address / Hours / Phone rows of the
   listing preview up to 24px, larger than the business name. Google shows them at 14px. */
#iaResult .cm-gl p{font-size:14px;line-height:1.5}
/* F5: cart in dark mode. The discount box is hard-coded white, so its label (light text in dark
   mode) vanished, and two trust lines used a fixed dark grey on the dark drawer. */
#cartCheckout .promo-box label{color:#101418}
.cart-drawer .cm-cart-guarantee{color:var(--ink2)!important}
.cart-drawer .cm-cart-gbp-free{color:var(--muted)!important}


/* ============================================================
   Crossmark Media: DESKTOP PASS v3 (Run 1, Nov 24, 2026). Completes desktop-pass-v2.
   Scope: DESKTOP ONLY, viewports 1024px and wider. Nothing here applies below 1024px.
   D1 homepage hero   D2 checker pages (form card + results)   D3 industry pages
   D4 blog posts   D5 leftover narrow text columns   D6 small text
   ============================================================ */
@media (min-width:1024px){
  /* D1: hero text sat in the vertical middle of a 1,200px tall row, so the headline started
     far below the listing and the button fell under the fold. Top-align it. */
  .hero .hero-grid{align-items:start}
  .hero h1{font-size:clamp(2.5rem,3.7vw,3.15rem);line-height:1.08}
  .hero .hero-ctas{margin-top:22px}
  /* D2: checker pages carry their own CSS and an inline 840px card. Match the wide layout. */
  #instant-audit .card,main .card[style*="max-width:840px"]{max-width:1120px!important}
  #instant-audit .wrap.wrap-wide .card{max-width:none!important}
  #instant-audit h1{font-size:2.5rem;line-height:1.15}
  #instantAuditForm{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:28px;align-items:end}
  #instantAuditForm>*{grid-column:1/-1}
  #instantAuditForm>.field{grid-column:auto;margin-top:0!important}
  #instantAuditForm .biz-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1.3fr) minmax(0,.7fr);column-gap:22px}
  /* results: one consistent reading size instead of 27px body text beside 15px text */
  #iaResult{font-size:1.06rem}
  #iaResult p,#iaResult li{font-size:1.06rem;line-height:1.5}
  #iaResult .cm-gl p{font-size:14px}
  #iaResult .cm-results{grid-template-columns:minmax(380px,430px) minmax(0,1fr);gap:28px}
  #iaMatchList{grid-template-columns:repeat(auto-fit,minmax(380px,1fr))}
  /* D3: industry pages were one 792px column in a 1,400px page. Text takes the left,
     the free-audit box rides alongside on the right. */
  .trade-body>.wrap{display:grid;grid-template-columns:minmax(0,1fr) minmax(330px,400px);column-gap:60px;align-items:start}
  .trade-body>.wrap>*{grid-column:1;max-width:none!important;min-width:0}
  .trade-body>.wrap>div[style*="var(--navy)"]{grid-column:2;grid-row:1/span 80;position:sticky;top:104px;margin:6px 0 0!important}
  .trade-body>.wrap>h2{margin-top:1.6em}
  .trade-body>.wrap>div[style*="var(--navy)"] p:last-child{display:flex;flex-direction:column;align-items:flex-start;gap:14px}
  /* paragraphs were 19px beside 23px list items: one size for both */
  .trade-body .wrap>p,.trade-body .wrap>ul,.trade-body .wrap>ul li,.trade-body .wrap>details p,.trade-body .wrap>details summary{font-size:1.18rem!important}
  /* D4/D5: remaining 44rem (792px) text caps */
  .blog-body>*{max-width:62rem!important}
  main p[style*="max-width:44rem"],main ul[style*="max-width:44rem"],main div[style*="max-width:44rem"],main figure[style*="max-width:44rem"],main blockquote[style*="max-width:44rem"]{max-width:62rem!important}
  .trade-body>.wrap>p[style*="max-width:44rem"],.trade-body>.wrap>ul[style*="max-width:44rem"]{max-width:none!important}
  /* D6: text that stayed under 15px on desktop */
  .label{font-size:.84rem}
  .stat-src,.pk-terms{font-size:.8rem!important}
  .pk-badge{font-size:.72rem!important}
  .g-flag{font-size:.78rem!important}
  .ai-fine,.form-note,.rq-file small{font-size:.9rem}
  .crumbs,main nav[aria-label="Breadcrumb"]{font-size:.92rem!important}
  p.rail-cat{font-size:.8rem}
  .ai-badge{font-size:.8rem}
}


/* ============================================================
   Crossmark Media: RUN 3 (Nov 24, 2026). Styles for the ten agreed changes.
   R1 "Bought separately" line   R2 checker form on trade pages
   R3 checker: example link, share link, last-check line, example note
   ============================================================ */
.hp-sep,.svc-sep{margin:-8px 0 12px;font-size:.92rem;font-weight:700;color:var(--muted)}
.cm-trade-check{display:grid;gap:10px;margin:4px 0 0;max-width:30rem}
.cm-trade-check label{display:grid;gap:4px;font-weight:700;font-size:.95rem;color:#fff;margin:0}
.cm-trade-check input[type="text"]{width:100%;min-height:48px;padding:10px 12px;font-size:16px;border:1px solid #33475c;border-radius:10px;background:#fff;color:#101418;font-family:inherit;box-sizing:border-box}
.cm-trade-check .cm-tc-row{display:grid;grid-template-columns:1.6fr 1fr;gap:10px}
.cm-trade-check .btn{width:100%;margin-top:4px}
.cm-example-link{margin:12px 0 0;text-align:center;font-size:1rem}
.cm-example-link a{font-weight:700}
#iaResult p.cm-example-note{margin:0 0 14px;padding:10px 14px;border-radius:10px;background:#fff3cd;border:1px solid #d9ab4a;color:#3d2f00;font-weight:700;font-size:1rem;text-align:center}
#iaResult p.cm-share{margin:14px 0 0;text-align:center;font-size:.95rem}
.cm-share-btn{min-height:44px;padding:9px 18px;border-radius:999px;border:1.5px solid #b9c2cc;background:#fff;color:#101418;font:inherit;font-weight:700;font-size:.95rem;cursor:pointer}
.cm-share-said{display:block;margin-top:6px;color:#137333;font-weight:700;min-height:1.2em}
#iaResult p.cm-prev-line{margin:12px 0 0;padding:10px 14px;border-radius:10px;background:#eef4ff;color:#12233a;font-weight:700;font-size:1rem;text-align:center}
#iaResult p.cm-also{font-size:.92rem}


/* ============================================================
   Crossmark Media: MOBILE PASS v1 (Run 1, Nov 24, 2026)
   Scope: ONLY viewports up to 1023px. Every rule sits inside this single
   @media (max-width:1023px) block (narrower ranges are nested inside it), so
   desktop (1024px and wider) is never touched. No copy, claims or prices changed.
   To review or revert the mobile pass, remove this whole style block (id cm-mobile-pass-v1).
   M1 header + menu   M2 type floor   M3 tap targets   M4 spacing   M5 bundle cards
   M6 checker form   M7 checker results   M8 cart   M9 checkout   M10 forms   M11 tablet
   ============================================================ */
@media (max-width:1023px){
  /* M1 header + menu */
  header.site .cm-panel{padding:4px 14px 12px;border-radius:0 0 18px 18px}
  header.site .cm-panel a{min-height:54px;font-size:18px;font-weight:700;padding:12px 10px;border-radius:0;border-bottom:1px solid var(--line)}
  header.site .cm-panel a:last-child{border-bottom:0}
  header.site .cm-panel a[aria-current="page"]{color:var(--brass)}
  header.site .cm-burger:focus-visible{outline:3px solid var(--brass);outline-offset:2px}
  /* M2 type floor: nothing a customer has to read under 13px */
  .label{font-size:.82rem;letter-spacing:.14em}
  .stat-src,.pk-terms,p.rail-cat,.hp-grid .hp-best{font-size:.82rem!important}
  .g-flag{font-size:.8125rem!important;line-height:1.25!important}
  .hl-block-h{font-size:.78rem!important}
  .ph-label,.g-unanswered,.g-ownerresp,.from,.hl-caption,.hl-rev-meta,.ls-label,.hiw-label{font-size:.86rem!important}
  .rq-file small{font-size:.88rem}
  .pk-badge{font-size:.78rem!important}
  @media (max-width:640px){main th.f,main td{font-size:.8125rem!important}}
  header.site .brand{min-height:44px}
  .svc-rail a{padding-top:9px;padding-bottom:9px}
  /* M3 tap targets: 44px for links people actually tap */
  .crumbs a,main nav[aria-label="Breadcrumb"] a{display:inline-block;padding:12px 2px;margin:-12px 0}
  .view-back{display:inline-block;padding:11px 0;margin-bottom:6px}
  footer a{display:inline-block;padding-top:10px;padding-bottom:10px}
  footer .cols a{display:block}
  main details>summary{padding-top:13px;padding-bottom:13px}
  main p>a:not(.btn),main li>a:not(.btn){padding-top:4px;padding-bottom:4px}
  #contactForm input[type="checkbox"],main form label>input[type="checkbox"]{width:22px;height:22px;flex:none}
  .hp-dots button{width:32px;height:32px}
  /* M4 spacing */
  .trade-body .wrap>p,.trade-body .wrap>ul,.trade-body .wrap>ul li,.trade-body .wrap>details p{font-size:1.08rem!important}
  .sec-head{margin-bottom:26px}
  .hero .hero-ctas{margin-top:18px}
  /* M5 bundle cards. Swipe is the homepage only, under 768px. */
  @media (max-width:767.98px){
    html body .hp-svc .hp-grid{gap:14px;margin-left:-22px;margin-right:-22px;padding:8px 22px 16px;scroll-padding:0 22px}
    html body .hp-svc .hp-card{flex-basis:84%;padding:24px 22px 22px}
    html body .hp-svc .hp-card h3{margin-bottom:10px}
    html body .hp-svc .hp-points{margin-bottom:20px;font-size:1.02rem}
    html body .hp-grid .hp-card .add-to-cart{width:100%!important;min-height:50px}
  }
  @media (min-width:768px){
    html body .hp-svc .hp-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;overflow:visible;scroll-snap-type:none}
    html body .hp-svc .hp-card{flex:none;min-width:0}
    html body .hp-swipe-label,html body .hp-dots{display:none}
  }
  /* M6 checker form: more room for the fields, calmer type, full-width button */
  @media (max-width:640px){
    #instant-audit>.wrap{padding-left:14px;padding-right:14px}
    /* the form sat in a card inside a card, which left the fields 246px wide on a 390px phone */
    #instant-audit .card{padding:6px 0 0;border:0;background:transparent;box-shadow:none}
    #instant-audit h1{font-size:1.72rem;line-height:1.18;margin-bottom:14px}
    #instantAuditForm .field{margin-bottom:12px}
    #instantAuditForm .field label{font-size:1.06rem;margin-bottom:4px}
    #instantAuditForm input[type="text"],#instantAuditForm input[type="email"],#instantAuditForm input[type="tel"]{font-size:1.06rem!important;min-height:52px;padding:13px 14px}
    #instantAuditForm .audit-actions{display:block}
    #instantAuditForm .audit-actions .btn{width:100%;min-height:54px;font-size:1.15rem}
    #iaStatus{display:block;text-align:center;margin-top:10px;font-size:1rem!important}
    #iaMatches>p{font-size:1.06rem}
    #iaMatchList button.btn{font-size:1rem!important;padding:14px 16px;border-radius:12px}
    #iaMatchList button.btn strong{font-size:1.14rem!important}
    #iaMatchList button.btn span{font-size:.98rem!important}
  }
  /* M7 checker results: one reading size, tighter cards, no 24px body text */
  #iaResult{font-size:1rem}
  #iaResult p,#iaResult li{font-size:1.02rem;line-height:1.5}
  #iaResult .cm-gl p{font-size:14px}
  #iaResult .cm-results{gap:16px}
  #iaResult .cm-r-card{padding:16px 14px}
  #iaResult .cm-diag{gap:16px;margin:16px 0}
  /* M8 cart: full-width sheet, compact rows so Checkout is reachable without hunting */
  @media (max-width:640px){
    .cart-drawer{width:100vw;overscroll-behavior:contain}
    .cart-head{padding:12px 16px}
    .cart-items{padding:2px 16px}
    .cart-item{padding:12px 0 8px}
    .cart-item-controls{margin-top:2px;justify-content:flex-end}
    .cart-item .cart-remove{min-height:44px;padding-top:6px;padding-bottom:6px}
    .cart-foot{padding:12px 16px calc(18px + env(safe-area-inset-bottom))}
    .cart-totals{margin-bottom:10px}
    #cartCheckout .promo-box{padding:10px!important;margin-bottom:10px!important}
    #promoInput{font-size:16px!important;min-height:44px}
    #promoApplyBtn{min-height:44px}
    #cmAddedToast{bottom:calc(84px + env(safe-area-inset-bottom))!important}
    /* M9 checkout: Stripe gets the whole screen */
    #checkoutOverlay{padding:0!important}
    #checkoutOverlay>div{max-width:none!important;min-height:100vh;min-height:100dvh;border-radius:0!important;padding:8px 6px calc(18px + env(safe-area-inset-bottom))!important;box-sizing:border-box}
    #checkoutOverlayClose{width:44px!important;height:44px!important;font-size:1.4rem!important}
  }
  /* M10 forms: 16px inputs stop iPhones zooming the page on focus */
  form input[type=text],form input[type=email],form input[type=tel],form input[type=url],form select,form textarea{font-size:16px}
  main select{min-height:48px}
  /* M11 tablet band 768 to 1023 */
  @media (min-width:768px){
    .wrap{padding-left:28px;padding-right:28px}
    header.site .nav{padding-left:28px;padding-right:28px}
  }
}
