/* Phones and tablets, whole site: everything centred (Katie, 13 Nov 2026; town pages first, then the whole site).
   Desktop is unchanged. Covers the Google reviews box and the free review form,
   which the shared site styles keep left-aligned. */
@media (max-width:900px){
  /* Google reviews box: a little less padding so the text has room */
  html body:not(#nmx):not(#nma) #reviews.nm-rev .sheet{padding:40px 20px!important}
  html body:not(#nmx):not(#nma) #reviews.nm-rev .sheet .vt-row{margin-right:-20px!important;padding-right:20px!important}

  html body:not(#nmx):not(#nma) #reviews .sheet .rev-head{flex-direction:column!important;align-items:center!important;justify-content:center!important;text-align:center!important}
  html body:not(#nmx):not(#nma) #reviews .sheet .rev-head .section-head,
  html body:not(#nmx):not(#nma) #reviews .sheet .rev-head .section-head>*{text-align:center!important;margin-left:auto!important;margin-right:auto!important}
  html body:not(#nmx):not(#nma) #reviews .rev-score{justify-content:center!important}
  html body:not(#nmx):not(#nma) #reviews .sheet .vt-wrap,
  html body:not(#nmx):not(#nma) #reviews .sheet .vt-wrap>p{text-align:center!important;margin-left:auto!important;margin-right:auto!important}
  html body:not(#nmx):not(#nma) #reviews .rev-card{text-align:center!important}
  html body:not(#nmx):not(#nma) #reviews .rev-card .rc-top{justify-content:center!important;text-align:left}
  html body:not(#nmx):not(#nma) #reviews .rev-card .rc-stars{text-align:center!important}

  /* Free review form: heading, words and buttons centred */
  html body:not(#nmx):not(#nma) :is(#contact,#enquiry,.contact-grid) .contact-left,
  html body:not(#nmx):not(#nma) :is(#contact,#enquiry,.contact-grid) .contact-left *{text-align:center!important}
  html body:not(#nmx):not(#nma) :is(#contact,#enquiry,.contact-grid) .contact-left :is(h2,p,.cl-sub){margin-left:auto!important;margin-right:auto!important}
  html body:not(#nmx):not(#nma) :is(#contact,#enquiry,.contact-grid) .contact-left .cl-phone{align-items:center!important;justify-content:center!important}
  html body:not(#nmx):not(#nma) :is(#contact,#enquiry,.contact-grid) .contact-left .ct-quick{justify-content:center!important;align-items:center!important}
  html body:not(#nmx):not(#nma) :is(#contact,#enquiry,.contact-grid) .contact-left :is(.ctq-btn,.ctq-hudson){justify-content:center!important}

  html body:not(#nmx):not(#nma) :is(#contact,#enquiry,.contact-grid) .contact-right .cform :is(label,.svc-q,.nm-form-note,.nm-form-note span,.form-success){text-align:center!important}
  html body:not(#nmx):not(#nma) :is(#contact,#enquiry,.contact-grid) .contact-right .cform :is(input[type=text],input[type=email],input[type=tel],textarea){text-align:center!important}
  html body:not(#nmx):not(#nma) :is(#contact,#enquiry,.contact-grid) .contact-right .cform :is(input,textarea)::placeholder{text-align:center!important}
  html body:not(#nmx):not(#nma) :is(#contact,#enquiry,.contact-grid) .contact-right .cform .consent{display:flex!important;justify-content:center!important;align-items:flex-start;gap:8px;text-align:center!important}
  html body:not(#nmx):not(#nma) :is(#contact,#enquiry,.contact-grid) .contact-right .cform .nm-form-note{display:flex;flex-direction:column;align-items:center}
  html body:not(#nmx):not(#nma) :is(#contact,#enquiry,.contact-grid) .contact-right .cform button[type=submit]{justify-content:center!important;text-align:center!important}

  /* FAQ (newer town pages): question and answer centred, plus sign stays on the right */
  html body:not(#nmx):not(#nma) .gfaq-i>summary{justify-content:center!important;text-align:center!important;position:relative;padding-left:36px!important;padding-right:36px!important}
  html body:not(#nmx):not(#nma) .gfaq-i>summary .pm{position:absolute!important;right:2px;top:50%;margin-top:-8px}
  html body:not(#nmx):not(#nma) .gfaq-i>:not(summary){text-align:center!important}

  /* Rest of the site (Katie, 13 Nov 2026): centre where it reads better, keep each block one way.
     Blog articles read as one left-aligned block: headings follow the text, not the other way round. */
  html body:not(#nmx):not(#nma) .gd-body :is(h2,h3,h4):not(#nmx){text-align:left!important;margin-left:0!important;margin-right:0!important}

  /* Photo captions on service, sector and team pictures (not the article pictures or the sample ad and brand board) */
  html body:not(#nmx):not(#nma) main figure:not(.gd-fig):not(.wp-chart):not(.sde-post) figcaption,
  html body:not(#nmx):not(#nma) main figure:not(.gd-fig):not(.wp-chart):not(.sde-post) figcaption *{text-align:center!important}
  html body:not(#nmx):not(#nma) main figure:not(.gd-fig):not(.wp-chart):not(.sde-post) figcaption{align-items:center!important;justify-content:center}

  /* Leftover headings and intros */
  html body:not(#nmx):not(#nma) :is(#rewards,.lp-sec,.gp-hero,.cx-top,.fa-sci) :is(h1,h2,h3,p):not(#nmx){text-align:center!important;margin-left:auto!important;margin-right:auto!important}
  html body:not(#nmx):not(#nma) .fa-seg>label{text-align:center!important}

  /* Every other FAQ on the site: question and answer centred like the town pages, plus sign stays on the right */
  html body:not(#nmx):not(#nma) :is(main,section) details:not(.fa-more):not(.gfaq-i):not(.gd-body details):not(form details)>summary{text-align:center!important;padding-left:40px!important;padding-right:40px!important}
  html body:not(#nmx):not(#nma) :is(main,section) details:not(.fa-more):not(.gfaq-i):not(.gd-body details):not(form details)>:not(summary),
  html body:not(#nmx):not(#nma) :is(main,section) details:not(.fa-more):not(.gfaq-i):not(.gd-body details):not(form details)>:not(summary) :is(p,h3,h4){text-align:center!important}
  html body:not(#nmx):not(#nma) details.faqx-item>summary{justify-content:center!important;position:relative!important}
  html body:not(#nmx):not(#nma) details.faqx-item>summary::after{position:absolute!important;right:20px;top:50%;margin-top:-5px!important}

  html body:not(#nmx):not(#nma) .contact-left .cx-proof{justify-content:center!important}
  html body:not(#nmx):not(#nma) .contact-left .cx-one-t{align-items:center}

  /* Small labels, links and buttons that sat on the left inside centred cards */
  html body:not(#nmx):not(#nma) :is(.wc-body,.nc-body,.nx-wide .b){align-items:center!important;text-align:center!important}
  html body:not(#nmx):not(#nma) :is(.wc-body,.nc-body,.nx-wide .b)>*{align-self:center!important;margin-left:auto!important;margin-right:auto!important}
  html body:not(#nmx):not(#nma) #rewards .rw-grid>div:not(.rw-card){text-align:center!important}
  html body:not(#nmx):not(#nma) #rewards .rw-card .rw-toggle{display:flex!important;width:max-content;margin-left:auto!important;margin-right:auto!important}
  html body:not(#nmx):not(#nma) #rewards .rw-card .rw-pts{justify-content:center!important}
  html body:not(#nmx):not(#nma) #rewards .rw-card .rw-tier{text-align:center!important}

  html body:not(#nmx):not(#nma) .cine-switch{justify-content:center!important}
  html body:not(#nmx):not(#nma) .nmx-card .t{align-items:center!important;text-align:center!important}
  html body:not(#nmx):not(#nma) .nmx-card .t>*{text-align:center!important}

  /* Page tops (service and sector heroes): buttons, rating line and the small rule follow the centred heading */
  html body:not(#nmx):not(#nma) :is(.sfh-cta,.nx-cta){justify-content:center!important;align-items:center!important;text-align:center!important}
  html body:not(#nmx):not(#nma) .sv-trust{justify-content:center!important;text-align:center!important}
  html body:not(#nmx):not(#nma) .sv-trust>li{justify-content:center!important;text-align:center!important}
  html body:not(#nmx):not(#nma) .sfh-rule{margin-left:auto!important;margin-right:auto!important}
  html body:not(#nmx):not(#nma) .r5-team .rv{text-align:center!important}
  html body:not(#nmx):not(#nma) .sx-body{align-items:center!important;text-align:center!important}
  html body:not(#nmx):not(#nma) .sx-body .sx-go{text-align:center!important}
}
@media (max-width:768px){
  /* Contact form: names side by side, service choices three to a row */
  html body:not(#nmx):not(#nma) .contact-right .cform .f-row:first-of-type:has(input[name="Last Name"]):not(#nmx){display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important}
  html body:not(#nmx):not(#nma) .contact-right .cform .svc-pills:not(#nmx):not(#nma){grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
  html body:not(#nmx):not(#nma) .contact-right .cform .svc-pill:not(#nmx){font-size:13px!important;padding:8px 4px!important;min-height:40px!important}
  html body:not(#nmx):not(#nma) .contact-right .cform .f-row:first-of-type:has(input[name="Last Name"]) input:not(#nmx){font-size:13px!important;padding-left:8px!important;padding-right:8px!important;min-width:0!important}
  /* Reviews: a little less empty space around the heading */
  html body:not(#nmx):not(#nma) #reviews .sheet .rev-head:not(#nmx){gap:14px!important}
}
@media (max-width:360px){html body:not(#nmx):not(#nma) .contact-right .cform .f-row:first-of-type:has(input[name="Last Name"]):not(#nmx){grid-template-columns:1fr!important}}
/* Smallest phones (320 wide): case study tops and the scorecard box fit inside the screen (16 Nov 2026) */
@media (max-width:400px){
  html body:not(#nmx):not(#nma) .nx-hero .wrap:not(#nmx){grid-template-columns:minmax(0,1fr)!important}
  html body:not(#nmx):not(#nma) .nx-hero .wrap>*:not(#nmx){min-width:0!important;max-width:100%!important}
  html body:not(#nmx):not(#nma) .nm-sci-in:not(#nmx){grid-template-columns:minmax(0,1fr)!important}
  html body:not(#nmx):not(#nma) .nm-sci-in:not(#nmx):not(#nma){padding-left:18px!important;padding-right:18px!important}
  html body:not(#nmx):not(#nma) .nm-sci-row:not(#nmx){grid-template-columns:minmax(0,1fr)!important}
  html body:not(#nmx):not(#nma) .nm-sci-in>*:not(#nmx),html body:not(#nmx):not(#nma) .nm-sci-in *:not(#nmx){min-width:0!important;max-width:100%!important}
}
/* Footer "Get in touch" rows centred on phones (Katie, 16 Nov 2026) */
@media (max-width:900px){
  html body:not(#nmx):not(#nma) footer .foot-contact a:not(#nmx),html body:not(#nmx):not(#nma) footer .foot-contact .foot-acc-body>*:not(#nmx){justify-content:center!important;text-align:center!important;margin-left:auto!important;margin-right:auto!important}
}
/* Footer on phones: the Services and Get in touch blocks are not needed (Katie, 16 Nov 2026). Laptop keeps them. */
@media (max-width:768px){
  html body:not(#nmx):not(#nma) footer .foot-col.foot-svc:not(#nmx),html body:not(#nmx):not(#nma) footer .foot-col.foot-contact:not(#nmx){display:none!important}
}
