:root {
  --blue: #0595fc;
  --navy: #164b70;
  --black: #000;
  --white: #fff;
  --ink: #0b1220;
  --muted: #5b667a;
  --surface: #f7f9fc;
  --line: rgba(0,0,0,.10);
  --shadow: 0 12px 30px rgba(0,0,0,.10);
  --radius: 18px;
  --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Microsoft New Tai Lue", "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
p { margin: 0 0 14px; }
h1, h2, h3 { margin: 0 0 12px; line-height: 1.15; }
h1 { font-size: clamp(32px, 4vw, 52px); letter-spacing: -0.02em; }
h2 { font-size: clamp(24px, 2.4vw, 34px); letter-spacing: -0.01em; }
h3 { font-size: 18px; }
small { color: var(--muted); }

.container {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #000;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.12);
}

/* === Dark header theme overrides === */
.topbar .brandText { font-family: 'Microsoft New Tai Lue', 'Segoe UI', Arial, sans-serif; font-weight: 700; letter-spacing: 0px; white-space: nowrap; display: inline-flex; align-items: baseline;  font-weight:700; font-size:18px; gap:0px; }

.topbar .brandMy { color: #fff; }
.topbar .brandPool { color: #0595fc; font-weight: 700; letter-spacing: -0.8px; }

.topbar .menu a { color: rgba(255,255,255,.82); }
.topbar .menu a:hover,
.topbar .menu a[aria-current="page"] { color: #fff; background: rgba(5,149,252,.18); }

.topbar .dropBtn { color: rgba(255,255,255,.82); }
.topbar .dropBtn:hover { color: #fff; background: rgba(5,149,252,.18); }

/* Ensure Services dropdown items are readable on dark header */
.topbar .dropMenu a{
  color: var(--ink);
  background: transparent;
}
.topbar .dropMenu a:hover,
.topbar .dropMenu a:focus{
  color: #fff;
  background: var(--blue);
}


.topbar .btnGhost { color: rgba(255,255,255,.90); border-color: rgba(255,255,255,.25); }
.topbar .btnGhost:hover { background: rgba(255,255,255,.08); }

.topbar .mobileToggle { background: transparent; color: #fff; border-color: rgba(255,255,255,.25); }
.topbar .mobileToggle:hover { background: rgba(255,255,255,.08); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0px;
  font-weight: 800;
  letter-spacing: .2px;
}
.logoMark {
  height: 48px;
  width: auto;
  max-width: 280px;
  display: block;
  object-fit: contain;
}
.siteLogo{ height: 46px; }
.footerLogo{ height: 46px; }

@media (max-width: 780px){
  .logoMark { height: 36px; max-width: 240px; }
  .siteLogo{ height: 36px; }
  .footerLogo{ height: 40px; }
}

.menu {
  display: flex;
  align-items: center;
  gap: 14px;
}
.menu a {
  padding: 10px 10px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 600;
  text-align: center;
}
.menu a:hover, .menu a[aria-current="page"] {
  color: var(--ink);
  background: rgba(5,149,252,.10);
}

.navRight {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .06s ease, box-shadow .2s ease;
  gap: 10px;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btnPrimary {
  background: linear-gradient(135deg, var(--blue), var(--navy));
  color: var(--white);
  box-shadow: var(--shadow);
}
.btnPrimary:hover { box-shadow: 0 16px 36px rgba(0,0,0,.13); }
.btnGhost {
  background: transparent;
  border-color: rgba(22,75,112,.30);
  color: var(--navy);
}
.btnGhost:hover { background: rgba(22,75,112,.06); }

.mobileToggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
}

.hero {
  padding: 60px 0 26px;
  background:
    radial-gradient(800px 400px at 15% 10%, rgba(5,149,252,.20), transparent 60%),
    radial-gradient(700px 400px at 90% 0%, rgba(22,75,112,.20), transparent 60%),
    linear-gradient(to bottom, rgba(247,249,252,1), rgba(255,255,255,1));
}
.heroGrid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 26px;
  align-items: start;
}
.kicker {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(22,75,112,.08);
  color: var(--navy);
  font-weight: 800;
}

.kicker-build{
  color:#000;
  font-style:normal;
  font-weight:800;
  font-family: "Microsoft New Tai Lue", "Segoe UI", Arial, sans-serif;
}

.kicker em {
  font-style: normal;
  font-family: "Segoe Print", "Segoe UI", Arial, sans-serif;

  color: #000;
}
.hero p {
  font-size: 18px;
  color: var(--muted);
  max-width: 64ch;
}
.heroActions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
}
.sideCard {
  padding: 18px;
}
.sideCard h3 { margin-bottom: 8px; }
.sideCard ul {
  margin: 10px 0 0;
  padding: 0 0 0 18px;
  color: var(--muted);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(5,149,252,.25);
  background: rgba(5,149,252,.10);
  color: var(--navy);
  font-weight: 800;
  font-size: 12px;
}

.section {
  padding: 46px 0;
}
.sectionAlt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.grid2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.feature {
  padding: 18px;
}
.feature h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.iconDot {
  width: 12px; height: 12px;
  border-radius: 99px;
  background: var(--blue);
}
.list {
  margin: 12px 0 0;
  padding: 0 0 0 18px;
  color: var(--muted);
}

/* Service availability list (used on Service Areas) */
.serviceAvail{
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 10px;
}
.serviceAvail li{
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}
.serviceAvail li strong{ color: var(--ink); }
.serviceAvail li span{ color: var(--muted); }

/* Service Areas: availability list (clean rows) */
.serviceAvailSection{ margin-top: 6px; }
.serviceAvailRows{
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
}
.serviceAvailRow{
  padding: 14px 16px;
}
.serviceAvailRow + .serviceAvailRow{
  border-top: 1px solid var(--line);
}
.serviceAvailRow .title{
  font-weight: 700;
  color: var(--ink);
}
.serviceAvailRow .desc{
  margin-top: 4px;
  color: var(--muted);
}
.serviceAvailNote{ margin-top: 12px; }

.callout{
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(5,149,252,.22);
  background: rgba(5,149,252,.06);
  display: grid;
  gap: 6px;
}
.callout strong{ color: var(--ink); }
.callout p{ color: var(--muted); margin: 0; }
.callout .btn{ justify-self: start; margin-top: 8px; }

.footer {
  padding: 32px 0;
  border-top: 1px solid var(--line);
}
.footerGrid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
  align-items: start;
}
.footer a { color: var(--muted); }
.footer a:hover { color: var(--ink); }
.footerLinks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pageHeader {
  padding: 40px 0 18px;
  background:
    radial-gradient(900px 450px at 10% 0%, rgba(5,149,252,.16), transparent 60%),
    radial-gradient(800px 450px at 90% 0%, rgba(22,75,112,.14), transparent 60%);
}
.pageHeader p {
  color: var(--muted);
  max-width: 70ch;
  font-size: 18px;
}
.breadcrumbs {
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 13px;
}

.content {
  padding: 30px 0 54px;
}
.content .card {
  padding: 22px;
}

.faqItem {
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
}
.faqItem + .faqItem { margin-top: 10px; }
.faqItem summary {
  cursor: pointer;
  font-weight: 900;
  color: var(--ink);
}
.faqItem p { color: var(--muted); margin-top: 10px; }

.formGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0px;
}
input, textarea, select {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 12px 12px;
  font: inherit;
}
textarea { min-height: 120px; resize: vertical; }
label { font-weight: 800; font-size: 13px; color: var(--muted); display:block; margin: 8px 0 6px; }
.formActions { display:flex; gap:10px; flex-wrap: wrap; margin-top: 12px; }

@media (max-width: 920px) {
  .heroGrid { grid-template-columns: 1fr; }
  .grid3 { grid-template-columns: 1fr; }
  .grid2 { grid-template-columns: 1fr; }
  .footerGrid { grid-template-columns: 1fr; }
  .menu {
    position: fixed;
    inset: 68px 12px auto 12px;
    background: rgba(255,255,255,.96);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 10px;
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    align-items: stretch;
  }
  .menu a { padding: 12px 12px; }
  .mobileToggle { display: inline-flex; align-items:center; justify-content:center; }
  /* Mobile header: keep primary CTA, hide booklet pill to prevent crowding */
  .navRight .btnBooklet { display: none !important; }
  .navRight .btnPrimary { padding: 10px 12px; border-radius: 14px; font-size: 14px; }
  .nav { gap: 12px; }

}



/* Services dropdown */
.dropdown{ position: relative; display: inline-flex; align-items: center; }
.dropBtn{
  background: transparent;
  border: 0;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  padding: 10px 10px;
  border-radius: 12px;
  cursor: pointer;
}
.dropBtn:hover{ background: rgba(5,149,252,.10); }
.dropMenu{
  display:none;
  position:absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 230px;
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0,0,0,.16);
  padding: 8px;
  z-index: 50;
  flex-direction: column;
  gap: 2px;
}
.dropMenu a{
  padding: 10px 10px;
  border-radius: 10px;
  color: var(--ink);
  background: transparent;
  text-decoration: none;
  font-weight: 600;
}
.dropMenu a:hover{ background: var(--blue); color: #fff; }
.dropdown:hover .dropMenu,
.dropdown:focus-within .dropMenu{ display:flex; }

@media (max-width: 920px){
  .dropdown{ width: 100%; }
  .dropMenu{
    position: static;
    display: flex;
    box-shadow: none;
    border: 0;
    padding: 6px 0 0;
    background: transparent;
  }
  .dropBtn{ width: 100%; text-align:left; padding: 10px 0; }
  .dropMenu a{ padding: 10px 0; }
}


/* Home service teaser images: consistent sizing */
.imgRow .imgFrame{
  aspect-ratio: 16 / 10;
}
.imgRow .imgFrame img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}


/* Liner & Cover image grid */
.imgGrid.twoCol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 18px 0;
}
@media (max-width: 768px) {
  .imgGrid.twoCol {
    grid-template-columns: 1fr;
  }
}


/* Force equal-size images in Liner & Cover grid */
.imgGrid.twoCol .imgFrame {
  aspect-ratio: 4 / 3;
}
.imgGrid.twoCol .imgFrame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* Nudge left liner image down to reveal tear detail */
.liners-covers .imgGrid.twoCol .imgFrame:first-child img {
  object-position: center 65%;
}


.dropdown.isCurrent .dropBtn{ color: var(--ink); background: rgba(5,149,252,.10); }


/* --- Gallery Lightbox --- */
.galleryImg{cursor:zoom-in;}
.lightboxOverlay{
  position:fixed; inset:0;
  background:rgba(0,0,0,0.78);
  display:none;
  align-items:center;
  justify-content:center;
  padding:24px;
  z-index:9999;
}
.lightboxOverlay[aria-hidden="false"]{display:flex;}
.lightboxInner{
  position:relative;
  max-width:min(1100px, 100%);
  max-height:100%;
}
.lightboxInner img{
  display:block;
  width:100%;
  height:auto;
  max-height:calc(100vh - 120px);
  border-radius:16px;
  box-shadow:0 18px 60px rgba(0,0,0,0.4);
}

.lightboxFigure{margin:0; width:100%;}
.lightboxCaption{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  margin-top:10px;
  color:#ffffff;
  font-size:14px;
}
.lightboxText{opacity:0.95;}
.lightboxCount{opacity:0.75; white-space:nowrap;}

.lightboxNav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:44px;
  height:44px;
  border-radius:999px;
  border:0;
  cursor:pointer;
  background:rgba(255,255,255,0.92);
  color:#111827;
  font-size:30px;
  line-height:44px;
  box-shadow:0 10px 30px rgba(0,0,0,0.35);
  display:flex;
  align-items:center;
  justify-content:center;
}
.lightboxNav:focus{outline:2px solid rgba(5,149,252,0.7); outline-offset:2px;}
.lightboxPrev{left:12px;}
.lightboxNext{right:12px;}
@media (max-width: 640px){
  .lightboxNav{width:40px; height:40px; font-size:28px; line-height:40px;}
  .lightboxPrev{left:8px;}
  .lightboxNext{right:8px;}
  .lightboxClose{top:-10px; right:-10px;}
}

.lightboxClose{
  position:absolute;
  top:-12px;
  right:-12px;
  width:40px;
  height:40px;
  border-radius:999px;
  border:0;
  cursor:pointer;
  background:#ffffff;
  color:#111827;
  font-size:22px;
  line-height:40px;
  box-shadow:0 10px 30px rgba(0,0,0,0.35);
}
.lightboxClose:focus{outline:2px solid rgba(5,149,252,0.7); outline-offset:2px;}

/* === MyPool Enhancements (No Image Changes) === */
h1 { font-size: clamp(32px, 4vw, 44px); line-height: 1.15; }
h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.2; }
h3 { font-size: 22px; }

*, *::before, *::after { box-sizing: border-box; }

/* Keep global containers centered without constraining inner layout columns */
.container, .wrap { max-width: 1100px; width: 100%; margin-left: auto; margin-right: auto; }

p { line-height: 1.55; }

/* CTA consistency */
.btn, button {
  font-weight: 700;
  letter-spacing: 0.2px;
}

/* Subtle hover feedback (buttons only to avoid layout shifts) */
.btn:hover, button:hover {
  transform: translateY(-1px);
  transition: transform .15s ease, opacity .15s ease;
}

/* Card spacing */
.card, .service, .box {
  padding: clamp(16px, 2vw, 24px);
}
/* CTA consistency */
.btn, button {
  font-weight: 700;
  letter-spacing: 0.2px;
}

/* Subtle hover feedback */
.btn:hover, button:hover {
  transform: translateY(-1px);
  transition: transform .15s ease, opacity .15s ease;
}

/* Card spacing */
.card, .service, .box {
  padding: clamp(16px, 2vw, 24px);
}


/* === Phase 2.4 Layout + Blocks Cleanup === */
.mypool-block, .faqs {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
.mypool-block {
  margin-top: 48px;
  padding: 18px 0;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.mypool-block h2 {
  margin: 0 0 12px 0;
}
.mypool-related-list {
  margin: 0;
  padding-left: 18px;
}
.faqs p {
  margin: 12px 0 0 0;
}


/* === MyPool Phase 2 Blocks: Global Cleanup === */
.mypool-block {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 18px;
  padding-right: 18px;
}
.mypool-block.mypool-related,
.mypool-block.mypool-service-areas,
.faqs.mypool-block {
  margin-top: 48px;
  padding-top: 18px;
  border-top: 1px solid rgba(0,0,0,0.10);
}
.mypool-related-list { margin: 0; padding-left: 18px; }
.faqs.mypool-block p { margin: 12px 0 0 0; }


/* === Phase 2.7 Accessibility === */
:focus-visible {
  outline: 3px solid rgba(5, 149, 252, 0.6);
  outline-offset: 2px;
}


/* Ribbon Bar */
.ribbonBar{
  background: rgba(22,75,112,0.06);
  border-bottom: 1px solid rgba(22,75,112,0.12);
}
.ribbonBar .container{
  padding: 10px 0;
}
.ribbonText{
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #164b70;
}


/* Ribbon Link + Emphasis */
.ribbonLink{
  display: block;
  color: inherit;
  text-decoration: none;
}
.ribbonLink:hover,
.ribbonLink:focus-visible{
  text-decoration: underline;
}
.ribbonEm{
  font-weight: 800;
}
/* Brand Header Color */
h1, h2{ color: #164b70; }
h3{ color: var(--ink); }
/* Footer wordmark (match header, but My is black) */
.footer .brandText{ font-family:'Microsoft New Tai Lue','Segoe UI',Tahoma,Arial,sans-serif; display:flex; align-items:baseline; font-weight:700; font-size:18px; gap:0px; white-space:nowrap; }
.footer .brandMy{ color:#000; }
.footer .brandPool{ color:#0595fc; font-weight:700; letter-spacing:-0.8px; }

.dropMenu a:focus-visible{ outline: 2px solid var(--blue); outline-offset: 2px; }

.footer .btnPrimary{ color: var(--white) !important; }


/* === Header blue-glass bubbles (TOP-LEVEL NAV ONLY) === */
.topbar > .container .menu > a:hover,
.topbar > .container .menu > a[aria-current="page"] {
  color: #fff;
  background: rgba(5,149,252,.30);
  border: 1px solid rgba(5,149,252,.55);
}

/* Ensure dropdown menu styles remain untouched */


/* === Header blue-glass bubble for Services button (only) === */
.topbar > .container .menu .dropBtn{
  color: rgba(255,255,255,.86);
}
.topbar > .container .menu .dropBtn:hover,
.topbar > .container .menu .dropdown.open .dropBtn,
.topbar > .container .menu .dropBtn.current{
  color: #fff;
  background: rgba(5,149,252,.30);
  border: 1px solid rgba(5,149,252,.55);
}


/* === Mobile menu readability + remove redundant Services pill === */
@media (max-width: 920px){
  /* Top-level mobile menu links should be dark on white panel */
  .topbar .menu > a{
    color: var(--ink) !important;
    background: transparent !important;
    border: 0 !important;
    text-align: center;
  }
  .topbar .menu > a:hover,
  .topbar .menu > a[aria-current="page"]{
    color: var(--ink) !important;
    background: rgba(5,149,252,.18) !important;
    border: 1px solid rgba(5,149,252,.35) !important;
  }

  /* Services dropdown: hide the redundant "Services ▾" button on mobile */
  .topbar .menu .dropBtn{
    display: none !important;
  }

  /* Make the service links match the rest of the mobile menu */
  .topbar .menu .dropMenu{
    padding: 0 !important;
    margin: 0 !important;
    gap: 0 !important;
  }
  .topbar .menu .dropMenu a{
    color: var(--ink) !important;
    padding: 12px 12px !important;
    text-align: center;
    border-radius: 12px;
  }
  .topbar .menu .dropMenu a:hover,
  .topbar .menu .dropMenu a:focus{
    background: rgba(5,149,252,.14) !important;
  }
}


/* === Mobile menu: force centered alignment for ALL items === */
@media (max-width: 920px){
  .topbar .menu,
  .topbar .menu *{
    text-align: center !important;
  }
  .topbar .menu > a,
  .topbar .menu .dropMenu a{
    display: block;
    width: 100%;
  }
}


/* === Mobile: flatten Services into main list (alignment fix) === */
@media (max-width: 920px){
  body.menuFlatServices .topbar .menu .dropdown[data-services-dropdown],
  body.menuFlatServices .topbar .menu .dropdown[data-services-dropdown=""]{
    display: none !important;
  }
}



/* === Mobile menu: internal scroll + lock background === */
@media (max-width: 920px){
  /* allow menu to scroll so bottom items are reachable */
  .menu{
    inset: 68px 12px 12px 12px; /* add bottom inset */
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  /* prevent background page scroll while menu is open */
  body.menuOpen{
    overflow: hidden;
    touch-action: none;
  }
  html.menuOpen{
    overflow: hidden;
  }
}


/* === MOBILE MENU OVERLAY: full-height + internal scroll (final) === */
@media (max-width: 920px){
  .topbar .menu{
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;

    /* below sticky header */
    top: 68px !important;

    /* allow menu to use the rest of the screen */
    bottom: 12px !important;

    /* iOS viewport-safe height */
    height: calc(100dvh - 68px - 12px) !important;
    max-height: calc(100dvh - 68px - 12px) !important;

    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;

    z-index: 9999 !important;
  }

  /* Ensure the menu panel itself can capture vertical swipes */
  .topbar .menu, .topbar .menu *{
    touch-action: pan-y;
  }

  /* Safe-area padding so the last items aren't behind the iPhone home bar */
  .topbar .menu{
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
  }
}



/* === MOBILE TOPBAR FIXED + MENU OVERLAY STABLE POSITIONING === */

@media (max-width: 920px){
  /* When body is scroll-locked (position:fixed), sticky headers can disappear.
     Force header to be truly fixed in the viewport. */
  .topbar{
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 10000 !important;
  }

  /* Ensure page content starts below the fixed header */
  body{
    padding-top: var(--topbarH, 68px) !important;
  }

  /* Make the mobile menu use the real viewport height and be internally scrollable */
  .menu{
    position: fixed !important;
    top: calc(var(--topbarH, 68px) + 8px) !important;
    left: 12px !important;
    right: 12px !important;
    bottom: 12px !important;
    max-height: calc(100dvh - var(--topbarH, 68px) - 20px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    z-index: 9999 !important;
  }
}



/* === Mobile header polish (prevent CTA crowding) === */
.mobileOnly{display:none;}

@media (max-width: 520px){
  .nav{ gap: 10px; padding: 10px 0; }
  .siteLogo{ height: 34px; width: auto; }
  .navRight .btnGhost{ display: none; } /* hide Planning Booklet pill in header on small screens */
  .navRight .btnPrimary{
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
  }
  .mobileToggle{ padding: 10px 12px; border-radius: 12px; }
}

@media (max-width: 520px){
  .topbar .menu a.mobileOnly{
    display:block;
  }
}

