/* SEO guide shell (8 Nov 2026): a sticky header and a sticky "On this
   page" bar that highlights the current section. Loaded after service-landing.css on the guides. */
.seo-header{position:sticky;top:0;z-index:60}
.seo-header .header-inner{justify-content:space-between;gap:16px}

/* Contents bar: sticks directly under the header once scrolled past. */
.guide-jump[data-contents-bar]{position:sticky;top:var(--seo-header-h,64px);z-index:40;background:rgba(243,240,232,.97);backdrop-filter:blur(10px);scrollbar-width:none}
.guide-jump[data-contents-bar]::-webkit-scrollbar{display:none}
.guide-jump[data-contents-bar].is-stuck{max-width:none;box-shadow:0 8px 20px rgba(20,37,33,.08)}
.guide-jump[data-contents-bar] a.is-current{color:var(--ink);text-decoration-thickness:2px;text-decoration-color:var(--teal);background:var(--teal-pale);border-radius:8px;padding:4px 8px;margin:-4px -8px}
@media (min-width:721px){.guide-jump[data-contents-bar].is-stuck{padding-left:max(24px,calc((100vw - 1180px)/2 + 24px));padding-right:max(24px,calc((100vw - 1180px)/2 + 24px))}}

/* Scroll past both fixed controls so the footer and keyboard targets can clear them. */
html:has([data-booking-sticky]){scroll-padding-bottom:var(--booking-clearance,0px)}
/* Reserve the footer space before the bar appears, including when the first scroll jumps to the end. */
body:has(>[data-booking-sticky]){padding-bottom:max(calc(104px + var(--booking-notice-space,0px)),var(--booking-clearance,0px))}

/* The managed booking bar uses the same controls on service, research and council pages. */
.council-page .sticky-cta[data-booking-sticky]{position:fixed;z-index:60;left:0;right:0;bottom:0;display:flex;
  align-items:center;gap:10px;padding:10px 16px max(10px,env(safe-area-inset-bottom));
  border-top:1px solid var(--line);background:rgba(255,253,248,.97);box-shadow:0 -8px 24px rgba(20,37,33,.1)}
.council-page .sticky-cta[data-booking-sticky][hidden]{display:none}
.council-page .sticky-cta[data-booking-sticky] a{display:inline-flex;align-items:center;min-height:50px;
  border:1px solid var(--teal);border-radius:10px;font-size:16px;font-weight:800;line-height:1.5;
  text-decoration:none;white-space:nowrap}
.council-page .sticky-cta[data-booking-sticky] .sticky-call{min-width:76px;justify-content:center;color:var(--teal);padding:0}
.council-page .sticky-cta[data-booking-sticky] .primary{flex:1;gap:14px;justify-content:space-between;
  padding:12px 18px;background:var(--teal);color:white}
.council-page .sticky-cta[data-booking-sticky] .primary:hover{background:var(--teal-dark)}
.council-page .sticky-cta[data-booking-sticky] .sticky-call-number{display:none;margin:0}
@media (min-width:681px){
  .council-page .sticky-cta[data-booking-sticky]{left:auto;right:24px;bottom:24px;width:auto;padding:10px;
    border:1px solid var(--line);border-radius:16px;box-shadow:0 18px 40px rgba(20,37,33,.18)}
  .council-page .sticky-cta[data-booking-sticky] .primary{flex:0 0 auto;width:auto;padding:0 20px}
  .council-page .sticky-cta[data-booking-sticky] .sticky-call{min-width:0;gap:6px;padding:0 18px}
  .council-page .sticky-cta[data-booking-sticky] .sticky-call-number{display:inline}
}
