/* checkbox: white square with the field's hairline, drawn rather than browser-default */
input[type="checkbox"] {
  -webkit-appearance: none; appearance: none; margin: 0;
  background: #fff; border: 1px solid #C3DAEC; border-radius: 4px;
  position: relative; cursor: pointer; min-height: 0;
  transition: border-color .18s ease, box-shadow .18s ease;
}
input[type="checkbox"]::before {
  content: ""; position: absolute; left: 50%; top: 46%;
  width: 13px; height: 7px; box-sizing: border-box;
  border-left: 2.4px solid #12314E; border-bottom: 2.4px solid #12314E;
  transform: translate(-52%, -58%) rotate(-45deg);
  opacity: 0; transition: opacity .16s ease;
}
input[type="checkbox"]:checked { border-color: #2C6E9E; box-shadow: inset 0 0 0 1px #2C6E9E; }
input[type="checkbox"]:checked::before { opacity: 1; }
input[type="checkbox"]:hover { border-color: #2C6E9E; }
input[type="checkbox"]:focus-visible { outline: 3px solid #2C6E9E; outline-offset: 2px; }

/* header chrome is not text to be selected — a stray drag over the wordmark or the
   nav should never leave a blue highlight behind, on any width */
header,
[data-m-drawer],
[data-m-bar],
[data-m-toggle],
[data-m-brand],
[data-m-hero-btns],
[data-m-stats],
[data-aura] {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
/* anything a visitor genuinely needs to select or type into stays selectable */
header input,
header textarea,
header [contenteditable] {
  -webkit-user-select: text;
  user-select: text;
}

/* Opening the drawer or a dialog locks page scroll, which removes the scrollbar and
   widens the viewport — the whole header used to jump right by the scrollbar's width.
   Reserving the gutter permanently keeps everything still. */
html { scrollbar-gutter: stable; }

/* Menu button: three bars that fold into an ✕ rather than swapping two icons.
   Top-level on purpose — the toggle is visible at every width on the interior pages. */
[data-m-toggle] [data-i-bars] > span:nth-child(2) { transition-delay: .04s; }
[data-m-toggle][aria-expanded="true"] [data-i-bars] > span:nth-child(1) { transform: rotate(45deg); }
[data-m-toggle][aria-expanded="true"] [data-i-bars] > span:nth-child(2) { opacity: 0; transform: scaleX(.2); transition-delay: 0s; }
[data-m-toggle][aria-expanded="true"] [data-i-bars] > span:nth-child(3) { transform: rotate(-45deg); }
/* a small squeeze on press, so the tap has some weight */
[data-m-toggle]:active [data-i-bars] { transform: scale(.9); }
[data-m-toggle] [data-i-bars] { transition: transform .16s ease; }
/* desktop takes the heavier mark: same tap area, more presence */
@media (min-width: 901px) {
  [data-m-toggle] { width: 62px; height: 62px; }
  [data-m-toggle] [data-i-bars] { width: 48px; height: 40px; }
  [data-m-toggle] [data-i-bars] > span { height: 8.7px; border-radius: 4px; }
  [data-m-toggle] [data-i-bars] > span:nth-child(2) { margin-top: -4.35px; }
  [data-m-toggle][aria-expanded="true"] [data-i-bars] { height: 40px; }
  [data-m-toggle][aria-expanded="true"] [data-i-bars] > span:nth-child(1) { transform: rotate(45deg); }
  [data-m-toggle][aria-expanded="true"] [data-i-bars] > span:nth-child(3) { transform: rotate(-45deg); }
}
/* Open state: both strokes pinned to the centre and rotated ±45°, so the mark is an ✕ by
   construction rather than by two translations that only align when the box is square. */
[data-m-toggle][aria-expanded="true"] [data-i-bars] > span:nth-child(1),
[data-m-toggle][aria-expanded="true"] [data-i-bars] > span:nth-child(3) {
  top: 50% !important; bottom: auto !important; margin-top: -2.3px !important;
  left: 50% !important; width: 26px !important; margin-left: -13px !important;
}
@media (prefers-reduced-motion: reduce) {
  [data-m-toggle] [data-i-bars] > span { transition: none !important; }
}


/* ============================================================
   Pool Deck Lady — mobile layer
   Loaded by every page after its own <style>. The desktop design
   is untouched; everything here lives inside a media query and
   uses !important because the pages are inline-styled.

   Tier 1   ≤900px  header chrome: drawer replaces the wide nav
   Tier 2   ≤900px  the phone layout: restack, rails, action bar
   Hooks: data-m-* attributes on the page templates.
   ============================================================ */

/* ---------- touch behaviour (all widths) ---------- */
/* a vertical swipe that starts on the before/after handle scrolls the page;
   only horizontal movement drags the slider */
input[type="range"] { touch-action: pan-y; }

/* ---------- tablet: unstack two-column bodies ---------- */
@media (max-width: 980px) {
  [data-m-stack] { grid-template-columns: 1fr !important; }
  [data-m-stack-gap] { gap: 22px !important; }
  [data-m-sticky] { position: static !important; top: auto !important; }

  /* ---------- privacy policy: the rail becomes a card as soon as the grid stacks ---------- */
  [data-m-toc] {
    position: static !important;
    max-height: none !important;
    overflow: visible !important;
    border-left: 0 !important;
    border: 1px solid #C3DAEC !important;
    background: linear-gradient(180deg,rgba(255,255,255,.42),rgba(255,255,255,.26));
    padding: 14px 16px 12px !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 2px 18px;
    margin-bottom: 6px;
  }
  [data-m-toc] > span { grid-column: 1 / -1; padding-left: 0 !important; }
  [data-m-toc] [data-toc-a] { padding: 7px 0 7px 10px !important; font-size: .92rem !important; min-height: 34px; }
}

/* ---------- Tier 1: header chrome + drawer ---------- */
@media (max-width: 900px) {
  header > div {
    padding: 5px 16px 3px !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
    min-height: 44px !important;
  }
  [data-m-brand],
[data-m-hero-btns],
[data-m-stats],
[data-aura] { font-size: 1.22rem !important; }                       /* desktop grew; phones stay put */
  /* pull the logo's wave up closer to the wordmark on phones */
  [data-m-brand] > span:last-child { margin-top: -6px !important; }
  /* the bottom bar already carries Call Now, so the header chip is redundant on a phone */
  [data-m-tools] > a { display: none !important; }
  [data-m-toggle] { width: 54px !important; height: 54px !important;
    border: 0 !important; background: transparent !important; }   /* still well past the 44px thumb floor */
  [data-m-toggle] [data-i-bars] { width: 30px !important; height: 19px !important; }
  [data-m-toggle][aria-expanded="true"] [data-i-bars] > span:nth-child(1) { transform: translateY(7.55px) rotate(45deg); }
  [data-m-toggle][aria-expanded="true"] [data-i-bars] > span:nth-child(3) { transform: translateY(-7.55px) rotate(-45deg); }
  [data-m-desktop-nav] { display: none !important; }
  [data-m-hdr-cta] { display: none !important; }   /* the bottom bar already carries this on phones */
  [data-m-only] { display: flex !important; }
  [data-m-tools] { align-items: center; gap: 8px; flex: none; }
  [data-m-toggle][aria-expanded="true"] [data-i-menu] { display: none; }
  [data-m-toggle][aria-expanded="false"] [data-i-close] { display: none; }

  [data-m-drawer] {
    display: block !important;
    position: absolute; top: 100%; left: 0; right: 0;
    max-height: 0; overflow: hidden; visibility: hidden;
    transition: max-height .34s cubic-bezier(.2,.7,.3,1), visibility .34s linear;
  }
  [data-m-drawer][data-open="true"] {
    max-height: min(80vh, 660px);
    overflow-y: auto;
    visibility: visible;
    -webkit-overflow-scrolling: touch;
  }
  /* the directory stacks into labelled groups on a phone */
  [data-m-dir] { grid-template-columns: 1fr !important; gap: 0 !important; padding: 0 !important; max-width: none !important; }
  [data-m-dir-col] { padding: 12px 18px 14px !important; border-bottom: 1px solid #DCE7EE; }
  [data-m-dir-a] { min-height: 46px !important; font-size: 1.06rem !important; }
  [data-m-scrim] { display: block !important; }
  [data-m-scrim][data-open="true"] { opacity: 1 !important; pointer-events: auto !important; }
  html[data-m-locked] { overflow: hidden; }
}

/* laptops between: keep the real nav, just tighten it so it stays on one line */
@media (min-width: 901px) and (max-width: 1120px) {
  [data-m-desktop-nav] { gap: 10px 13px !important; flex-wrap: nowrap !important; }
  [data-m-desktop-nav] > a { white-space: nowrap; }
  [data-m-desktop-nav] > a:last-child { padding: 11px 19px !important; font-size: 1.06rem !important; }
  header > div { gap: 12px !important; flex-wrap: nowrap !important; }
  [data-m-brand],
[data-m-hero-btns],
[data-m-stats],
[data-aura] { font-size: 1.36rem !important; flex: none; }
}
@media (min-width: 901px) and (max-width: 1019px) {
  [data-m-desktop-nav] > a { font-size: .96rem !important; }
}
@media (min-width: 1020px) and (max-width: 1120px) {
  [data-m-desktop-nav] > a { font-size: 1.14rem !important; }
}

/* ---------- Tier 2: the phone layout ---------- */
@media (max-width: 900px) {
  html { -webkit-text-size-adjust: 100%; }

  /* page gutters */
  [data-m-shell] { padding-left: 16px !important; padding-right: 16px !important; }
  [data-m-brand],
[data-m-hero-btns],
[data-m-stats],
[data-aura] { font-size: 1.42rem !important; }

  /* stop iOS zooming on focus */
  input, select, textarea { font-size: 16px !important; }
  input, select { min-height: 48px; }
  input[type="checkbox"] { min-height: 0 !important; }

  /* ---------- condensed vertical rhythm ---------- */
  [data-m-pt] { padding-top: 26px !important; }
  [data-m-pb] { padding-bottom: 32px !important; }
  [data-m-pb-wave] { padding-bottom: 64px !important; }   /* clears the wave band pinned to the bottom */
  [data-m-pb-big] { padding-bottom: 235px !important; }
  [data-m-intro] { margin-bottom: 18px !important; }
  [data-m-card] { padding: 18px 16px !important; }
  [data-m-card] h3 { font-size: 1.26rem !important; }
  [data-m-card] p { font-size: 1.16rem !important; }
  [data-m-photo] { aspect-ratio: 4 / 3 !important; max-height: 300px !important; }
  [data-m-h2c] { margin-bottom: 22px !important; font-size: clamp(1.45rem, 6.2vw, 1.9rem) !important; }
  [data-m-shell] > h2, [data-m-shell] > div > h2 { margin-bottom: 6px !important; }

  /* ---------- hero (landing) ---------- */
  [data-m-hero] { padding-top: 34px !important; padding-bottom: 196px !important; }
  /* the eyebrow can't fit one line on a phone, so break it deliberately instead of
     letting it wrap with the separator dangling at the end of line one */
  [data-m-hero-text] > span:first-of-type { display: block !important; }
  [data-m-kick-dot] { display: none !important; }
  [data-m-kick-2] { display: block !important; margin-top: 3px; }
  [data-m-hero-slash] { display: none !important; }
  [data-m-hero-media] {
    position: absolute !important;
    inset: 0 !important;
    width: auto !important; max-width: none !important;
    height: auto !important;
    margin: 0 !important;
    clip-path: none !important;
    transform: none !important;
  }
  [data-m-hero-text] { max-width: 100% !important; }
  [data-m-hero-text] h1 { font-size: clamp(2.1rem, 9.5vw, 2.9rem) !important; max-width: 18ch !important; }
  [data-m-hero-text] p { font-size: 1.14rem !important; margin: 14px 0 20px !important; }
  /* copy sits over the footage, so it stays inverted — as on desktop */
  [data-m-hero-text] { position: relative; z-index: 2; }
  [data-m-hero-scrim] { background: linear-gradient(180deg,rgba(8,22,36,.86) 0%,rgba(8,22,36,.8) 45%,rgba(10,30,49,.74) 100%) !important; }
  /* justify-content matters too: one of these anchors lays out as a flex box, where
     text-align alone leaves the label pinned to the left edge. border-box keeps the 44px
     tap floor from stacking on top of the padding and inflating the box. */
  /* justify-content matters too: one of these anchors lays out as a flex box, where
     text-align alone leaves the label pinned to the left edge. border-box keeps the 44px
     tap floor from stacking on top of the padding and inflating the box. */
  [data-m-hero-btns] { align-items: center !important; flex-direction: column !important; }
  /* A backdrop blur over playing video makes the GPU re-blur every frame — costly on a
     phone, and invisible here anyway because the mobile hero already lays a dark scrim
     over the footage. The glass tint and border stay; only the per-frame work goes. */
  [data-m-hero-btns] a { backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
    background: rgba(120,170,205,.16) !important; }
  [data-m-hero-btns] a { flex: 0 0 auto !important; width: auto !important;
    min-width: min(100%, 258px) !important;
    text-align: center !important;
    justify-content: center !important; align-items: center !important;
    box-sizing: border-box !important; min-height: 52px !important;
    padding: 12px 26px !important; font-size: 1.05rem !important; }   /* desktop grew; phones stay put */
  [data-m-stats] {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important; margin-top: 20px !important; align-items: start !important;
  }
  [data-m-stats] strong { font-size: 1.32rem !important; }
  [data-m-stats] small { font-size: .82rem !important; line-height: 1.35; display: block; }
  [data-m-dots] { margin-top: 14px !important; }
  [data-m-cta-bar] { margin-top: 14px !important; padding: 14px 16px !important; gap: 12px !important; }

  /* partner ring: text on top, logos 2-up under it */
  [data-m-ring] { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }
  [data-m-ring-mid] { grid-column: 1 / -1 !important; grid-row: 1 !important; text-align: left !important; padding: 0 !important; }
  [data-m-ring-mid] p { margin: 0 !important; }
  [data-m-ring-bot] { grid-column: 1 / -1 !important; grid-row: auto !important; }
  [data-m-ring-bot] > div { width: 100% !important; }

  /* ---------- partner program ---------- */
  [data-m-copystrip] { border-bottom: none !important; padding-top: 2px !important; padding-bottom: 16px !important; }
  [data-m-copygrid] { gap: 12px !important; }
  [data-m-copycard] { background: #F5FAFD !important; border: 1px solid #DCE7EE !important; border-radius: 12px !important; padding: 14px 16px !important; }
  [data-m-ring] a { height: 74px !important; }
  [data-m-tels] { gap: 8px !important; }
  [data-m-telrow] { display: flex !important; align-items: center !important; justify-content: center !important; gap: 8px !important; min-height: 48px !important; padding: 0 14px !important; border: 1px solid #9CC6E2 !important; border-radius: 10px !important; background: #fff !important; text-decoration: none !important; }

  /* ---------- swipe rails ---------- */
  [data-m-rail] {
    display: flex !important;
    grid-template-columns: none !important;
    justify-content: flex-start !important;
    gap: 14px !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 -16px !important;
    padding: 2px 16px 14px !important;
  }
  [data-m-rail]::-webkit-scrollbar { display: none; }
  [data-m-rail] > * { box-sizing: border-box; scroll-snap-align: center; min-width: 0; }
  [data-m-rail="reviews"] > * { flex: 0 0 auto !important; width: min(86%, 380px) !important; }
  /* stone selections: a 2x2 grid on the phone, not a side-scroller */
  [data-m-rail="models"] {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
    justify-content: stretch !important;
  }
  [data-m-rail="models"] > * { width: auto !important; max-width: none !important; }
  [data-m-rail="models"] > * > div:first-child { aspect-ratio: 1 / 1 !important; font-size: .82rem !important; }
  [data-m-rail="models"] > * > div:last-child { padding: 12px 13px 14px !important; }
  [data-m-rail="models"] h3 { font-size: .98rem !important; line-height: 1.2 !important; }
  [data-m-rail="models"] p { font-size: .84rem !important; line-height: 1.4 !important; margin-bottom: 8px !important;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  [data-m-rail="models"] span { display: none !important; }
  [data-m-rail="models"] p { -webkit-line-clamp: 4 !important; }

  /* ---------- grids that just stack ---------- */
  [data-m-stack] { grid-template-columns: 1fr !important; }
  [data-m-two] { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }
  [data-m-cards] { grid-template-columns: 1fr !important; justify-content: stretch !important; }
  [data-m-cards] > * { min-height: 0 !important; }

  /* ---------- gallery ---------- */
  [data-grid] { grid-template-columns: 1fr !important; gap: 16px !important; }
  [data-grid] > * { grid-column: auto !important; }
  [data-lb-prev], [data-lb-next] {
    top: auto !important; bottom: 18px !important;
    transform: none !important;
    width: 54px !important; height: 54px !important;
  }
  [data-lb-close] { top: 12px !important; right: 12px !important; }
  [data-lb-img] { max-height: 62vh !important; }
  [data-lb-figure] { padding-bottom: 56px !important; }

  /* ---------- model swatch rows ---------- */
  [data-row] { grid-template-columns: 1fr !important; gap: 14px !important; }
  [data-example] { height: 200px !important; }


  /* ---------- touch targets ---------- */
  /* every link and control a thumb can reach clears 44px without changing type size */
  /* inline phone links in body copy get a full thumb target; the header chip and
     bottom bar are already large, so they are excluded by their own attributes */
  /* [data-m-ring] tiles are excluded: their contents are absolutely positioned, so
     inline-flex leaves them with no in-flow width and they collapse to the border */
  a[href^="tel:"]:not([data-m-hdr-cta]):not([data-m-bar] a):not([data-m-tools] a):not([data-m-dir-a]):not([data-m-ring] a) {
    min-height: 44px !important; display: inline-flex !important; align-items: center !important;
  }
  [data-m-legal] a, [data-m-legal] button { min-height: 44px !important; display: inline-flex !important; align-items: center !important; padding: 4px 0 !important; }
  [data-m-dots] button { width: 44px !important; height: 44px !important; }
  footer nav a, footer > div > a, footer > div > div > a { min-height: 44px !important; display: inline-flex !important; align-items: center !important; }

  /* ---------- footer ---------- */
  [data-m-legal] { font-size: .78rem !important; row-gap: 4px !important; }
  [data-m-legal] > * { border-right: none !important; }
  [data-m-footer-cols] { grid-template-columns: 1fr !important; gap: 18px !important; }
  [data-m-cards] { gap: 12px !important; }
  [data-m-two] { gap: 10px !important; }
  footer nav[aria-label="Legal"] { gap: 6px 0; line-height: 2.1; }

  /* ---------- thumb-sized tap targets ---------- */
  [data-social] { width: 42px !important; height: 42px !important; }
  footer nav[aria-label="Legal"] a { display: inline-flex; align-items: center; min-height: 36px; }
  footer p a, [data-m-card] a, [data-m-dir-col] p a { display: inline-flex; align-items: center; min-height: 40px; }
  [data-m-callrow] a[href^="tel:"] { display: flex; align-items: center; min-height: 42px; }
  [data-m-dir-col] > span:first-child { font-size: .82rem !important; }
  [data-m-dir-col] p { font-size: .92rem !important; }

  /* the four "anything to fix" chips stay 2 x 2 on a phone */
  [data-m-chips] { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  [data-m-chips] > label { padding: 9px 12px !important; gap: 9px !important;
    font-size: 1.06rem !important; min-height: 68px !important; line-height: 1.2 !important; }

  /* ---------- cookie notice ---------- */
  [data-m-cookie] {
    left: 10px !important; right: 10px !important; transform: none !important;
    width: auto !important;
    bottom: calc(112px + env(safe-area-inset-bottom)) !important;   /* clears the call bar */
    border-radius: 12px !important;
  }
  [data-cookie-body] { padding: 16px 16px 14px !important; }
  [data-m-cookie] h3 { font-size: 1.12rem !important; }
  [data-m-cookie] p { font-size: .95rem !important; margin: 0 0 12px !important; line-height: 1.5 !important; }
  /* the three pills stack: full-width primary, then the two secondaries side by side */
  [data-cookie-actions] { grid-template-columns: 1fr 1fr !important; gap: 8px !important; }
  [data-cookie-actions] > button:first-child { grid-column: 1 / -1 !important; }
  [data-cookie-actions] button { min-height: 48px !important; font-size: .95rem !important; padding: 10px 12px !important; }

  /* ---------- bottom action bar ---------- */
  [data-m-bar] {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    gap: 10px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  }
  [data-m-bar] > a { box-sizing: border-box; min-height: 68px; font-size: 1.16rem !important; }
  [data-m-bar] > a svg { width: 22px !important; height: 22px !important; }
  [data-m-bar] > a[href$="Book Consultation.dc.html"] { animation: ctaGlow 3.4s ease-in-out infinite; }
  [data-m-bar] > a[href$="Book Consultation.dc.html"]:active { animation-play-state: paused; }
  /* holds off-screen until you scroll past the hero's own Call / Book buttons */
  [data-m-bar] { transform: translateY(116%); opacity: 0; pointer-events: none;
    transition: transform .38s cubic-bezier(.2,.7,.3,1), opacity .26s ease; }
  [data-m-bar][data-show="true"] { transform: none; opacity: 1; pointer-events: auto; }
  /* keep the bar off the last of the content */
  footer > div:last-child { padding-bottom: calc(22px + 92px + env(safe-area-inset-bottom)) !important; }
  /* pages with no action bar keep the normal footer */
  footer > div[data-m-nobar] { padding-bottom: 22px !important; }
  [role="dialog"][aria-label="Cookie consent"] { bottom: calc(84px + env(safe-area-inset-bottom)) !important; }

  /* ---------- privacy policy ---------- */
  [data-m-toc] { grid-template-columns: 1fr !important; }
  [data-sec] h2 { font-size: 1.24rem !important; }
  [data-sec] { padding-bottom: 18px !important; margin-bottom: 20px !important; }

  /* ---------- forms + dialogs ---------- */
  /* the sticky header is 71px on a phone, so anchored jumps and the browser's
     scroll-to-invalid-field don't need the desktop's 120–130px of clearance */
  #booking-form, #reseal-form { scroll-margin-top: 84px !important; }
  input, select, textarea { scroll-margin-top: 88px !important; }
  [data-sec] { scroll-margin-top: 84px !important; }
  form button[type="submit"] { width: 100% !important; justify-self: stretch !important; min-height: 52px !important; }
  [data-dlg] { width: calc(100vw - 22px) !important; max-width: none !important; max-height: 88vh !important; overflow-y: auto !important; }
  [data-m-actions] { flex-direction: column !important; align-items: stretch !important; }
  [data-m-actions] > * { width: 100% !important; text-align: center !important; justify-self: stretch !important; }
}

@media (max-width: 430px) {
  [data-m-stats] strong { font-size: 1.18rem !important; }
  [data-m-stats] small { font-size: .76rem !important; }
  [data-m-two] { grid-template-columns: 1fr !important; }
  [data-m-bar] > a[data-m-bar-call] span[data-m-num] { font-size: .9rem !important; }
}

@media (prefers-reduced-motion: reduce) {
  [data-m-bar] > a[href$="Book Consultation.dc.html"] { animation: none !important; }
  [data-m-bar] { transition: opacity .2s ease !important; transform: none !important; }
  [data-m-bar]:not([data-show="true"]) { visibility: hidden; }
}

@media print {
  [data-m-bar], [data-m-drawer], [data-m-scrim], [data-m-only] { display: none !important; }
}

/* a short desktop window can't hold 15 rows — tighten them before the rail ever scrolls */
@media (min-width: 981px) and (max-height: 700px) {
  [data-m-toc] [data-toc-a] { padding-top: 3px !important; padding-bottom: 3px !important; font-size: .9rem !important; }
}

/* The reseal comparison is a side-by-side by definition, so it keeps two columns further
   down than the generic body grids and only stacks where a phone leaves no choice. */
@media (max-width: 620px) {
  [data-cmp-row], [data-cmp-tiles] { grid-template-columns: 1fr !important; }
  [data-cmp-row] { gap: 14px !important; padding: 16px 16px 18px !important; }

  /* The dialog was 2.5 screens tall on a phone. Everything below trims the chrome, not
     the substance: the two photos and the two lists all survive. */
  [data-cmp-head] { padding: 18px 18px 20px !important; }
  [data-cmp-lead] { display: none !important; }            /* the heading already says it */
  [data-cmp-tiles] { gap: 10px !important; padding: 16px 16px 0 !important; }
  /* each tile becomes one compact row instead of a three-line stack */
  [data-cmp-tile] { display: grid !important; grid-template-columns: 1fr auto !important;
    align-items: center !important; padding: 11px 14px !important; }
  [data-cmp-label] { grid-column: 1; margin: 0 !important; font-size: .78rem !important; letter-spacing: .1em !important; }
  [data-cmp-every] { grid-column: 1; font-size: 1.14rem !important; }
  [data-cmp-hint] { grid-column: 2; grid-row: 1 / span 2; margin: 0 !important; font-size: 1.4rem !important; }
  [data-cmp-hint-txt] { display: none; }                   /* keep the glyph, drop the words */

  /* the cap has to sit on the well itself — its children are absolutely positioned */
  [data-cmp-well] { max-height: 21vh !important; }
  [data-cmp-list] { padding: 10px 14px 12px 30px !important; gap: 5px !important; font-size: .88rem !important; line-height: 1.35; }
  [data-cmp-row] > div > div:first-child { padding: 9px 14px !important; }   /* card header bar */
}

/* thumb floor: every control a phone user can tap clears 44px, including the footer's
   legal row and the "Read more" toggles, which were landing at 15–40px */
@media (max-width: 900px) {
  footer a, footer button { display: inline-flex !important; align-items: center;
    min-height: 44px !important; }
  [data-m-dir-a], [data-m-drawer] a, [data-m-drawer] button { min-height: 44px !important; }
  button, a[role="button"] { min-height: 44px; }
  [data-m-card] > a { min-height: 44px !important; }
}

/* ---------- the dive: deep-water sections on the phone ---------- */
@media (max-width: 900px) {
  [data-deep="deep"] [data-m-card] {
    background: linear-gradient(152deg, rgba(255,255,255,.2) 0%, rgba(255,255,255,.12) 50%, rgba(255,255,255,.07) 100%) !important;
    border-color: rgba(190,220,240,.4) !important;
  }
  /* a phone shows less of the gradient at once, so the beams are widened to stay readable */
  [data-deep] [data-shaft] { background-size: 150% 150%; }
}

/* ---------- gallery: the surface chooser ---------- */
@media (max-width: 900px) {
  #areas [data-m-cards] { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }
  #areas [data-area] > span:first-child { aspect-ratio: 3/4 !important; height: auto !important; }
  #areas [data-area] strong { font-size: 1.18rem !important; }
  #areas [data-area] > span:last-child { padding: 14px 12px 16px !important; gap: 4px !important; }
  #gallery [data-back] { min-height: 44px !important; }
}
@media (hover: none) and (max-width: 900px) {
  #areas [data-area]:hover,
  #areas [data-area]:active {
    transform: none !important;
    box-shadow: 0 12px 30px -14px rgba(10,30,49,.38) !important;
  }
}
@media (max-width: 420px) {
  #areas [data-area] > span:first-child { aspect-ratio: 4/5 !important; height: auto !important; }
  #areas [data-area] strong { font-size: 1.06rem !important; }
}

/* the services heading sits 4px lower on desktop only — phones keep the original offset */
@media (max-width: 900px) {
  #services h2 { margin-top: 0 !important; }
}

/* the gallery bar's action reads as a chip on desktop; a phone taps the whole bar */
@media (max-width: 900px) {
  [data-m-cta-bar] > span:last-child {
    padding: 0 !important;
    background: none !important;
    box-shadow: none !important;
    font-size: .98rem !important;
  }
}

/* the FAQ is the last panel before the footer, so it reserves more room than the others */
@media (max-width: 900px) {
  #faq[data-m-pb-big] { padding-bottom: 207px !important; }
  footer > [data-panel="7"] { margin-top: -74px !important; }
}

/* Issue checkboxes: a white square with the field's hairline, and a drawn tick when checked. */
[data-tick]:checked { background: #2C6E9E !important; border-color: #2C6E9E !important; }
[data-tick]:checked::after {
  content: ""; position: absolute; left: 50%; top: 46%;
  width: 8px; height: 15px; margin: -9px 0 0 -4px;
  border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg);
}
[data-tick]:focus-visible { outline: 3px solid #2C6E9E; outline-offset: 2px; }
label:hover > [data-tick]:not(:checked) { border-color: #2C6E9E; }

/* ---------- hero trust chips: one row on phones ---------- */
@media (max-width: 900px) {
  [data-m-trust] {
    max-width: none !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
    margin-top: 14px !important;
  }
  [data-m-trust] > span {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    justify-content: flex-start !important;
    gap: 5px !important;
    font-size: .84rem !important;
    letter-spacing: 0 !important;
  }
  [data-m-trust] svg { width: 15px !important; height: 15px !important; flex: none; }
}
@media (max-width: 380px) {
  [data-m-trust] > span { font-size: .78rem !important; gap: 4px !important; }
  [data-m-trust] { gap: 7px !important; }
}

/* ---------- hero crests: shorter on phones ---------- */
@media (max-width: 900px) {
  [data-wave-band] { height: 49px !important; }
}
