/* px2: Quiet Summit desktop header (px layer). Uses the tokens from px-foundation.css. */
.px-header { position: relative; z-index: 1000; background: #fff; }
/* sticky can't escape the skin's wrapper, so once scrolled the header goes fixed and a spacer holds its place */
.px-header.is-stuck { position: fixed; top: 0; left: 0; right: 0; }
.px-header-spacer { display: none; }
.px-header.is-stuck + .px-header-spacer, .px-header-spacer.is-on { display: block; }
.px-header .px-wrap { max-width: 1320px; margin: 0 auto; padding: 0 28px; box-sizing: border-box; }

/* slim utility row: the owner's pill links, now quiet text links */
.px-util { background: var(--px-navy); color: #d9e1ec; transition: margin-top .2s ease; }
.px-util .px-wrap { display: flex; align-items: center; gap: 22px; height: 34px; justify-content: flex-end; }
.px-util a, .px-util span { font-size: 13px !important; line-height: 1 !important; color: #d9e1ec !important; text-decoration: none !important; white-space: nowrap; }
.px-util a:hover { color: #fff !important; }
.px-util .px-util-l { margin-right: auto; opacity: .8; }
.px-util .px-util-tel { font-weight: 600; color: #fff !important; }
.px-util .px-util-tel i { margin-right: 6px; font-size: 11px; color: var(--px-gold); }

/* main bar */
.px-bar { border-bottom: 1px solid var(--px-line); transition: box-shadow .2s ease; }
.px-header.is-stuck .px-bar { box-shadow: 0 6px 24px rgba(22,38,66,.08); }
.px-header.is-stuck .px-util { margin-top: -34px; }
.px-bar .px-wrap { display: flex; align-items: center; gap: 20px; height: 76px; }

.px-brand { display: flex; align-items: center; gap: 12px; text-decoration: none !important; flex: 0 0 auto; }
.px-brand img { width: 52px; height: 52px; display: block; }
.px-brand b { display: block; font-family: var(--px-serif) !important; font-weight: 600; font-size: 23px; line-height: 1; color: var(--px-navy); }
.px-brand small { display: block; font-size: 11.5px; line-height: 1.3; color: var(--px-muted); margin-top: 4px; }

.px-nav { display: flex; align-items: stretch; gap: 4px; height: 100%; }
.px-dd { position: static; display: flex; }
.px-dd-btn, .px-nav-link {
  display: inline-flex; align-items: center; gap: 6px; height: 100%; padding: 0 12px;
  background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer;
  font-size: 15px !important; font-weight: 500; color: var(--px-ink) !important; text-decoration: none !important; white-space: nowrap;
}
.px-dd-btn i { font-size: 10px; opacity: .55; transition: transform .2s; }
.px-dd-btn:hover, .px-nav-link:hover, .px-dd.is-open .px-dd-btn { border-bottom-color: var(--px-gold); color: var(--px-navy) !important; }
.px-dd.is-open .px-dd-btn i { transform: rotate(180deg); }
.px-dd-btn:focus-visible, .px-nav-link:focus-visible, .px-cta:focus-visible { outline: 3px solid var(--px-gold); outline-offset: 2px; }

/* mega menu: full-width panel under the bar */
.px-mega {
  position: absolute; left: 0; right: 0; top: 100%;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 1.3fr; gap: 8px 40px;
  max-width: 1320px; margin: 0 auto; padding: 28px 28px 32px; box-sizing: border-box;
  background: #fff; border-top: 1px solid var(--px-line); border-radius: 0 0 var(--px-radius) var(--px-radius);
  box-shadow: 0 24px 48px rgba(22,38,66,.14);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .15s, transform .15s, visibility 0s linear .15s;
}
.px-mega-sm { grid-template-columns: repeat(2, minmax(0, 260px)); }
.px-mega-xs { grid-template-columns: minmax(0, 260px); left: auto; right: auto; }
.px-dd.is-open .px-mega { opacity: 1; visibility: visible; transform: none; transition: opacity .15s, transform .15s; }
.px-mega-col { display: flex; flex-direction: column; }
.px-mega-col a { padding: 6px 0; font-size: 15px !important; color: var(--px-ink) !important; text-decoration: none !important; }
.px-mega-col a:hover { color: var(--px-blue) !important; }
.px-mega-h { display: block; margin: 0 0 8px; font-size: 11.5px !important; font-weight: 600; text-transform: uppercase; letter-spacing: .12em !important; color: var(--px-muted); }
.px-mega-h2 { margin-top: 18px; }
.px-mega-feature { background: var(--px-paper); border-radius: var(--px-radius); padding: 22px 24px; align-self: start; }
.px-mega-feature p { font-size: 15px; line-height: 1.55; color: var(--px-ink); margin: 0 0 16px; }
.px-mega-feature .px-mega-h { color: var(--px-navy); font-size: 12px !important; }
.px-mega-all { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 600; font-size: 14px !important; color: var(--px-navy) !important; text-decoration: none !important; }

/* search (hs2's box) and the planner button */
/* the slot keeps the box's place in the bar; the box widens over the menu when in use (owner 16 Nov: "should open up wider") */
.px-bar .px-search-slot { position: relative; flex: 1 1 200px; min-width: 150px; max-width: 300px; height: 44px; margin-left: auto; }
.px-bar .px-search.hhs-box--masthead { position: absolute; top: 1px; right: 0; width: 100%; max-width: none; margin: 0; z-index: 30; transition: width .25s ease; }
.px-bar .px-search.hhs-box--masthead:focus-within { width: min(460px, 40vw); }
.px-bar .px-search:focus-within .hhs-box__input { background: #fff; box-shadow: 0 8px 28px rgba(22,38,66,.14); border-color: var(--px-navy); }
.px-bar .px-search .hhs-pop { left: auto; right: 0; width: min(480px, calc(100vw - 32px)); min-width: 0; }
.px-bar .px-search .hhs-box__input { height: 42px; border-radius: 21px; background: var(--px-paper); border: 1px solid var(--px-line); font-size: 14px !important; }
.px-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 22px;
  background: var(--px-navy); color: #fff !important; font-size: 14.5px !important; font-weight: 600; text-decoration: none !important; white-space: nowrap;
  transition: background .15s;
}
.px-cta:hover { background: var(--px-navy-2); color: #fff !important; }
.px-header .menu-toggle.px-all { position: static; display: flex; align-items: center; z-index: auto; }
.px-all a { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--px-line); }
.px-all a:hover { border-color: var(--px-navy); }
.px-all .menu-link { width: 18px; height: 14px; padding: 0; }
.px-all .menu-link::before, .px-all .menu-link::after, .px-all .menu-link div { height: 2px; background: var(--px-navy); }

/* narrower desktops: drop the tagline, then the line in the top row and the planner button (it stays in Treks) */
@media (max-width: 1500px) { .px-brand small { display: none; } }
@media (max-width: 1200px) { .px-util .px-util-l { display: none; } .px-cta-head { display: none; } .px-dd-btn, .px-nav-link { padding: 0 9px; } }
/* phones and tablets keep the existing mobile header */
@media (max-width: 1023.98px) { .px-header { display: none !important; } }

/* ---------- phones and tablets: the existing mobile header, in Quiet Summit ---------- */
body.pagebody .hhm-header { background: rgba(255,255,255,.96) !important; backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--px-line) !important; box-shadow: none !important; }
body.pagebody .hhm-header__inner { min-height: 60px; padding-top: 6px !important; padding-bottom: 6px !important; }
body.pagebody .hhm-header__logo { width: 40px !important; height: 40px !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important; }
body.pagebody .hhm-header__name { font-family: var(--px-serif) !important; font-weight: 600 !important; font-size: 21px !important; line-height: 1.05 !important; color: var(--px-navy) !important; text-transform: none !important; }
body.pagebody .hhm-header__tag { font-size: 11px !important; color: var(--px-muted) !important; margin-top: 2px; }
body.pagebody .hhm-header__actions { gap: 2px !important; }
body.pagebody .hhm-action, body.pagebody .hhm-burger {
  width: 42px !important; height: 42px !important; border: 0 !important; border-radius: 21px !important;
  background: transparent !important; box-shadow: none !important; color: var(--px-navy) !important;
}
body.pagebody .hhm-action i { color: var(--px-navy) !important; font-size: 17px !important; }
body.pagebody .hhm-action:active, body.pagebody .hhm-burger:active { background: var(--px-paper) !important; }
body.pagebody .hhm-burger { border: 1px solid var(--px-line) !important; }
body.pagebody .hhm-burger span { background: var(--px-navy) !important; height: 2px !important; width: 18px !important; }
@media (max-width: 440px) {
  body.pagebody .hhm-header__tag { display: none !important; }
  body.pagebody .hhm-header__name { font-size: 20px !important; white-space: nowrap !important; overflow: visible !important; text-overflow: clip !important; }
  body.pagebody .hhm-header__text { overflow: visible !important; min-width: 0; }
  body.pagebody .hhm-action, body.pagebody .hhm-burger { width: 38px !important; height: 38px !important; }
  body.pagebody .hhm-action i { font-size: 16px !important; }
}

/* px2b (owner 16 Nov): the sticky bar slides in instead of snapping */
@keyframes px-slide-in { from { transform: translateY(-100%); } to { transform: none; } }
.px-header.is-stuck { animation: px-slide-in .32s cubic-bezier(.2,.7,.2,1); }
.px-header .px-util { transition: none !important; }

/* the "All pages" side menu: pinned to the screen and scrollable, so it is whole wherever the page is */
@media (min-width: 1024px) {
  #hhSidemenu.sidemenu { position: fixed !important; top: 0 !important; right: 0 !important; max-height: 100vh; overflow-y: auto; overscroll-behavior: contain; z-index: 10050 !important; box-shadow: -12px 0 40px rgba(22,38,66,.18); padding-top: 54px !important; }
  #hhSidemenu .sidemenu-close { position: absolute !important; top: 10px !important; left: auto !important; right: 16px !important; }
}

/* px2c (owner 16 Nov): season month ranges, a summit photo filling the Peaks menu */
.px-mega-col a .px-mega-m { margin-left: 6px; font-size: 12.5px; font-weight: 400; color: var(--px-muted); white-space: nowrap; }
.px-mega-sm { grid-template-columns: repeat(2, minmax(0, 260px)) minmax(0, 1fr); }
.px-mega-photo { position: relative; display: block; align-self: start; justify-self: end; width: 100%; max-width: 420px; border-radius: var(--px-radius); overflow: hidden; text-decoration: none !important; }
.px-mega-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s ease; }
.px-mega-photo:hover img { transform: scale(1.03); }
.px-mega-photo-cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 34px 16px 14px; background: linear-gradient(transparent, rgba(10,18,32,.78)); color: #fff; font-size: 14px; font-weight: 600; }
/* px2d (owner 17 Nov): the top bar promotes WhatsApp, not a call */
.px-util .px-util-wa { display: inline-flex; align-items: center; gap: 6px; background: #15803d; color: #fff !important; border-radius: 999px; padding: 2px 11px 2px 9px; line-height: 22px; text-decoration: none !important; }
.px-util .px-util-wa i { margin: 0 !important; font-size: 14px !important; color: #fff !important; }
.px-util .px-util-wa:hover { background: #178046; }
.px-mega-photo img { aspect-ratio: 16 / 9 !important; }
/* px2e (owner 17 Nov): WhatsApp number with room to breathe, a small call icon beside it */
.px-util .px-util-wa { padding: 3px 14px 3px 11px !important; gap: 7px !important; letter-spacing: .02em; }
.px-util .px-util-call { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin-left: 6px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); color: #fff !important; text-decoration: none !important; }
.px-util .px-util-call i { font-size: 11px; color: #fff !important; margin: 0 !important; }
.px-util .px-util-call:hover { background: rgba(255,255,255,.12); }
/* Treks menu: a photo under the planner card; Peaks menu: the Beyond 6,000 m link under the collage */
.px-mega-photo-in { margin-top: 18px; max-width: none; justify-self: stretch; }
.px-mega-photo-in img { aspect-ratio: 3 / 2 !important; }
.px-mega-side { justify-self: end; width: 100%; max-width: 420px; display: grid; gap: 10px; align-self: start; }
.px-mega-side .px-mega-photo { max-width: none; }
.px-mega-promo { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border: 1px solid var(--px-line); border-radius: 12px; background: var(--px-paper); color: var(--px-navy) !important; text-decoration: none !important; }
.px-mega-promo span { display: grid; gap: 2px; font-size: 13px; color: var(--px-muted); line-height: 1.4; }
.px-mega-promo strong { font-family: var(--px-serif); font-size: 18px; font-weight: 600; color: var(--px-navy); }
.px-mega-promo i { color: var(--px-gold); }
.px-mega-promo:hover { border-color: var(--px-navy); }
/* px2f (owner 17 Nov): About menu gets the Chakula summit photo and a reviews link beside the list */
.px-mega.px-mega-about { grid-template-columns: minmax(0, 240px) minmax(0, 1fr); max-width: 820px; }
.px-mega-about .px-mega-side { max-width: 460px; }
/* px2g (owner 17 Nov): all three menus open at the same full width; Peaks and About use the room for a third list */
.px-mega.px-mega-peaks, .px-mega.px-mega-about { grid-template-columns: repeat(3, minmax(0, 1fr)) 1.3fr; max-width: 1320px; left: 0; right: 0; }
.px-mega-peaks .px-mega-side, .px-mega-about .px-mega-side { max-width: 420px; }
.px-mega-about .px-mega-side { grid-column: 4; }

/* px8a (owner 17 Nov): back-to-top arrow, desktop */
.px-totop { position: fixed; right: 28px; bottom: 28px; z-index: 9000; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); background: var(--px-navy, #162642); color: #fff; font-size: 17px; cursor: pointer; box-shadow: 0 10px 28px rgba(22,38,66,.28); display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s, background .15s; }
.px-totop.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease, transform .2s ease, background .15s; }
.px-totop:hover { background: var(--px-gold, #c9952b); }
.px-totop:focus-visible { outline: 3px solid var(--px-gold, #c9952b); outline-offset: 3px; }
.px-totop i { color: #fff; margin: 0; }
@media (max-width: 1023px) { .px-totop { display: none !important; } }

/* px2h (17 Nov): at exactly 1024px the HH phone header (shown up to 1024) and the px desktop header (from 1024) met; the desktop one wins */
@media (min-width: 1024px) and (max-width: 1024.98px) { .hhm-header { display: none !important; } }

/* px2-19 (owner 18 Nov): the side menu's close button was a big pink disc; now a quiet ring with a thin white cross */
body.pagebody #hhSidemenu .sidemenu-close { display: inline-grid !important; place-items: center; width: 40px !important; height: 40px !important; padding: 0 !important; margin: 0 !important; border-radius: 50% !important; background: rgba(255,255,255,.08) !important; border: 1px solid rgba(255,255,255,.38) !important; color: #fff !important; font: 300 26px/1 system-ui, -apple-system, "Segoe UI", sans-serif !important; box-shadow: none !important; text-shadow: none !important; cursor: pointer; transition: background-color .2s ease, border-color .2s ease, transform .2s ease; }
body.pagebody #hhSidemenu .sidemenu-close:hover { background: rgba(255,255,255,.18) !important; border-color: rgba(255,255,255,.7) !important; transform: rotate(90deg); }
@media (prefers-reduced-motion: reduce) { body.pagebody #hhSidemenu .sidemenu-close:hover { transform: none; } }
