/* IBPG overrides (27 Nov). Our file, loaded after Nilo's ibpg.css and pages.css so her files stay untouched.
   1. Header: a solid white bar that keeps its own space (page content and banners start below it) and slims after a scroll.
   2. Banner and hero overlays: lighter than the first build, tuned so white text keeps WCAG AA contrast (see NOTES).
   3. Link cards with a one-line description. */

:root{
  --ib-head-h:72px;      /* full bar height: also the space the header reserves in the page */
  --ib-head-slim-h:54px; /* bar height once the page has been scrolled */
  --ib-logo-h:50px;
  --ib-logo-slim-h:36px;
  --ib-burger-d:46px;
  --ib-burger-slim-d:38px;
  --ib-phero-tint:.24;   /* flat tint over inner-page banners */
}

/* ---------- Header ---------- */
/* The <header> is an in-flow spacer of the full bar height, so nothing ever sits under the bar and the page never
   jumps when the bar slims. The bar itself (.ib-wrap) and its white backing (::before) are fixed to the top. */
.ib-header{position:relative;inset:auto;height:var(--ib-head-h);padding:0;z-index:80;transition:none;
  --hb:var(--ib-head-h);--logo:var(--ib-logo-h);--burger:var(--ib-burger-d)}
.ib-header.is-solid{padding:0;--hb:var(--ib-head-slim-h);--logo:var(--ib-logo-slim-h);--burger:var(--ib-burger-slim-d)}
.ib-header::before{content:"";position:fixed;z-index:-1;top:0;left:0;right:0;height:var(--hb);background:#fff;
  box-shadow:0 1px 0 rgba(18,49,43,.08);transition:height .3s var(--ease),box-shadow .3s var(--ease)}
.ib-header.is-solid::before{box-shadow:0 1px 0 rgba(18,49,43,.08),0 10px 24px -14px rgba(18,49,43,.28)}
.ib-header>.ib-wrap{position:fixed;top:0;left:0;right:0;z-index:1}
.ib-bar{height:var(--hb);padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;
  -webkit-backdrop-filter:none;backdrop-filter:none;transition:height .3s var(--ease)}
.ib-header.is-solid .ib-bar,.ib-header.menu-open .ib-bar{background:transparent;box-shadow:none;border:0}
.ib-logo{height:var(--logo);width:calc(var(--logo) * 1.48);transition:height .3s var(--ease),width .3s var(--ease)}
.ib-logo img{height:var(--logo);transition:height .3s var(--ease),opacity .3s}
.ib-logo__light{opacity:0}
.ib-logo__dark{opacity:1}
.ib-header .ib-nav__link{color:var(--ink)}
.ib-header .ib-nav__link:hover,.ib-header .ib-dd.is-open>.ib-nav__link{background:var(--sage);color:var(--ink)}
.ib-header .ib-nav__link.is-current,.ib-header .ib-dd.is-current>.ib-nav__link{color:var(--ink);background:var(--sage)}
.ib-header .ib-login{color:var(--ink);border-color:rgba(18,49,43,.18)}
.ib-header .ib-login:hover{background:var(--sage)}
.ib-header .ib-burger{width:var(--burger);height:var(--burger);background:var(--sage);color:var(--ink);transition:width .3s var(--ease),height .3s var(--ease),background-color .25s}
.ib-header .ib-login,.ib-header .ib-join{transition:padding .3s var(--ease),background-color .25s,border-color .25s,color .25s}
.ib-header.is-solid .ib-login{padding-top:8px;padding-bottom:8px}
.ib-header.is-solid .ib-join{padding-top:9px;padding-bottom:9px}
.ib-header.is-solid .ib-nav__link{padding-top:7px;padding-bottom:7px}
.ib-header .ib-nav__link{transition:color .25s,background-color .25s,padding .3s var(--ease)}
/* Mobile menu: a card under the bar, scrolls inside itself. */
.ib-mmenu{margin-top:6px;max-height:calc(100svh - var(--hb) - 18px)}
html{scroll-padding-top:calc(var(--ib-head-slim-h) + 16px)}
@media (prefers-reduced-motion:reduce){
  .ib-header::before,.ib-bar,.ib-logo,.ib-logo img,.ib-header .ib-burger,.ib-header .ib-login,.ib-header .ib-join,.ib-header .ib-nav__link{transition:none}
}

/* ---------- Banners ---------- */
/* The bar no longer floats over the picture, so the banners lose the 150px that cleared it. */
.ib-phero{min-height:clamp(300px,34vw,440px)}
.ib-phero__inner{padding-top:clamp(40px,5vw,72px)}
.ib-phero::before{background:rgba(13,38,33,var(--ib-phero-tint))}
.ib-phero::after{background:linear-gradient(0deg,rgba(13,38,33,.88) 0%,rgba(13,38,33,.76) 50%,rgba(13,38,33,.5) 78%,rgba(13,38,33,.2) 100%)}
.ib-crumbs{color:rgba(255,255,255,.92)}
.ib-hero{min-height:calc(100svh - var(--ib-head-h))}
.ib-hero__inner{padding-top:clamp(56px,8vw,120px)}
.ib-hero__shade{background:linear-gradient(180deg,rgba(13,38,33,.06) 0%,rgba(13,38,33,.04) 22%,rgba(13,38,33,.56) 48%,rgba(13,38,33,.82) 68%,rgba(13,38,33,.92) 100%)}
.ib-hero__side p{color:rgba(255,255,255,.96)}

/* ---------- Link cards with a description ---------- */
.ib-lcard small.ib-lcard__d{white-space:normal;overflow:visible;text-overflow:clip;line-height:1.45;margin-top:2px}

/* Phones and tablets: the narrow banner box is shorter relative to its text, so the overlay is a little stronger there. */
@media (max-width:1279px){
  .ib-phero{--ib-phero-tint:.3}
  .ib-phero::after{background:linear-gradient(0deg,rgba(13,38,33,.88) 0%,rgba(13,38,33,.76) 50%,rgba(13,38,33,.5) 78%,rgba(13,38,33,.2) 100%)}
  .ib-hero__shade{background:linear-gradient(180deg,rgba(13,38,33,.12) 0%,rgba(13,38,33,.46) 18%,rgba(13,38,33,.72) 36%,rgba(13,38,33,.87) 56%,rgba(13,38,33,.93) 100%)}
}

/* ---------- Home numbers strip: optional second line (28 Nov) ---------- */
/* A tile with a `detail` line: number, then the label a little stronger, then the detail in smaller muted type. */
.ib-stat--detail .ib-stat__lab{color:var(--ink);font-weight:500;font-size:15px;line-height:1.3}
.ib-stat__detail{font-size:13px;line-height:1.45;color:var(--muted);max-width:28ch;overflow-wrap:anywhere}
@media (max-width:759px){.ib-stat--detail .ib-stat__lab{font-size:14.5px}.ib-stat__detail{font-size:12.5px}}

/* ---------- Dark price card heading (28 Nov): the h2 inherited the ink colour and vanished on the dark card ---------- */
.ib-plan--dark h2{color:#fff}

/* ---------- Events switch (28 Nov): Upcoming / Past events / Gallery, same look as the members' area tabs ---------- */
.ib-etabs{display:flex;gap:4px;margin:0 0 28px;padding:5px;background:var(--sage);border-radius:16px;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;width:max-content;max-width:100%}
.ib-etabs::-webkit-scrollbar{display:none}
.ib-etabs .ib-tab{flex:0 0 auto;background:transparent;color:var(--ink);opacity:.72;padding:12px 16px;border-radius:12px;white-space:nowrap;text-decoration:none}
.ib-etabs .ib-tab:hover{background:rgba(255,255,255,.55);opacity:1}
.ib-etabs .ib-tab.is-active{background:#fff;color:var(--ink);opacity:1;font-weight:600;box-shadow:0 1px 2px rgba(18,49,43,.12),0 2px 8px rgba(18,49,43,.08)}
.ib-etabs .ib-tab:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
html.app-mode .ib-etabs{margin-bottom:20px}

/* ---------- Event alerts prompt (28 Nov, installed app): asked once over the members' area ---------- */
.ib-pprompt{position:fixed;inset:0;z-index:120;display:grid;place-items:center;padding:20px;background:rgba(18,49,43,.45)}
.ib-pprompt__box{width:100%;max-width:420px;background:#fff;color:var(--ink);border-radius:20px;padding:22px 20px;box-shadow:0 20px 50px -20px rgba(18,49,43,.5);display:grid;gap:12px}
.ib-pprompt__box h3{margin:0}
.ib-pprompt__box p{margin:0;color:var(--muted)}
.ib-pprompt__btns{display:flex;gap:10px;flex-wrap:wrap}
