/* Shared mobile drawer (homepage + inner pages). Hal's final spec (2026-11-13): left panel ~85% wide on deep navy,
   darkened + blurred page beside it, MENU header with its own close, outline-icon rows, #BLUEBLOODS branding that
   gives way first when space runs out, BECOME A BOMBER button + socials anchored at the bottom. Same in both themes. */
.ip-drawer { --mm-bg: #0A1426; --mm-fg: #ffffff; --mm-blue: #4A93FF; --mm-blue-hi: #6AA8FF; --mm-line: rgba(110,160,240,0.20); --mm-edge: rgba(74,147,255,0.45); --mm-muted: rgba(214,228,255,0.66);
  position: fixed; inset: 0; z-index: 1000; background: rgba(2,7,18,0.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  visibility: hidden; opacity: 0; transition: opacity .25s, visibility .25s; -webkit-tap-highlight-color: transparent; }
.ip-drawer.is-open { visibility: visible; opacity: 1; }
.ip-drawer-inner { position: absolute; top: 0; left: 0; bottom: 0; width: 85%; max-width: 400px; height: 100%; display: flex; flex-direction: column;
  background: var(--mm-bg); color: var(--mm-fg); border-right: 1px solid var(--mm-edge); box-shadow: 12px 0 40px rgba(0,0,0,0.45);
  padding-left: env(safe-area-inset-left, 0px); transform: translateX(-102%); transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.ip-drawer.is-open .ip-drawer-inner { transform: none; }
/* header: badge, MENU, close */
.mm-top { flex: none; display: flex; align-items: center; gap: 14px; height: 64px; padding: 0 10px 0 18px; border-bottom: 1px solid var(--mm-edge); }
.mm-logo { display: inline-flex; flex: none; }
.mm-logo img { width: 46px; height: 46px; display: block; }
.mm-title { margin: 0; font-family: var(--font-body, 'Barlow', sans-serif); font-size: 23px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--mm-blue); line-height: 1; }
.mm-close { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 8px; background: none; color: #fff; cursor: pointer; }
.mm-close svg { width: 22px; height: 22px; }
/* scrolling body: rows, branding (flexible), foot (anchored) */
.mm-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  display: flex; flex-direction: column; padding: 4px 20px calc(18px + env(safe-area-inset-bottom, 0px)); }
.mm-primary { flex: none; display: flex; flex-direction: column; }
.mm-row, .mm-head { display: flex; width: 100%; align-items: center; gap: 20px; min-height: 58px; margin: 0; padding: 0 4px 0 6px;
  border: 0; border-bottom: 1px solid var(--mm-line); border-radius: 0; background: none; box-shadow: none;
  color: var(--mm-fg); font-family: var(--font-body, 'Barlow', sans-serif); font-size: 16px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  line-height: 1.2; text-align: left; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: rgba(74,147,255,0.14); }
.mm-ico { flex: none; display: inline-flex; width: 26px; height: 26px; color: var(--mm-blue); }
.mm-ico svg { width: 26px; height: 26px; }
.mm-txt { flex: 1 1 auto; min-width: 0; }
.mm-head > svg { flex: none; width: 14px; height: 14px; margin-right: 6px; color: var(--mm-blue); transition: transform .25s; }
.mm-head[aria-expanded="true"] > svg { transform: rotate(180deg); }
.mm-row[aria-current="page"] .mm-txt { color: var(--mm-blue-hi); }
.mm-group { border-radius: 0; background: none; }
.mm-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.mm-group.is-open .mm-body { grid-template-rows: 1fr; border-bottom: 1px solid var(--mm-line); }
.mm-list { min-height: 0; overflow: hidden; display: flex; flex-direction: column; padding: 0; }
.mm-group.is-open .mm-list { padding: 2px 0 10px; }
/* sub-links: indented under the label */
.ip-drawer .mm-sub { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 46px; padding: 7px 4px 7px 52px; border: 0;
  color: rgba(255,255,255,0.9); font-family: var(--font-body, 'Barlow', sans-serif); font-size: 15px; font-weight: 500; letter-spacing: .01em; text-transform: none;
  line-height: 1.25; text-decoration: none; -webkit-tap-highlight-color: rgba(74,147,255,0.14); }
.ip-drawer .mm-sub small { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; color: var(--mm-muted); }
.ip-drawer .mm-sub[aria-current="page"] { color: var(--mm-blue-hi); font-weight: 700; box-shadow: inset 2px 0 0 var(--mm-blue); }
.mm-label { margin: 0; padding: 12px 4px 2px 52px; font-family: var(--font-body, 'Barlow', sans-serif); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--mm-blue); }
/* branding: takes the spare height; hidden when there is too little of it */
.mm-brand { flex: 1 1 0; min-height: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; container-type: size; pointer-events: none; }
.mm-brand-in { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; text-align: center; }
.mm-brand-in img { position: absolute; top: 50%; left: 50%; width: min(220px, 74cqw, 94cqh); height: auto; transform: translate(-50%, -50%); opacity: .09; filter: grayscale(.2); }
.mm-tag { position: relative; margin: 0; font-family: var(--font-cond, 'Barlow Condensed', sans-serif); font-size: clamp(34px, 13cqw, 46px); font-weight: 900; line-height: 1; letter-spacing: .01em; text-transform: uppercase; color: #fff; }
.mm-tag span { color: var(--mm-blue); }
.mm-club-name { position: relative; margin: 8px 0 0; padding-left: .45em; font-family: var(--font-body, 'Barlow', sans-serif); font-size: 11px; font-weight: 700; letter-spacing: .45em; text-transform: uppercase; color: #fff; }
@container (max-height: 120px) { .mm-brand-in { display: none; } }
/* foot: button + socials */
.mm-foot { flex: none; padding-top: 22px; }
.mm-brand-in::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--mm-line); }
.mm-cta { position: relative; display: flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 48px; border: 1.5px solid var(--mm-blue); border-radius: 9px;
  background: rgba(32,78,156,0.28); color: var(--mm-blue-hi); font-family: var(--font-body, 'Barlow', sans-serif); font-size: 16px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; text-align: center; }
.mm-cta svg { position: absolute; right: 16px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); }
.mm-social { list-style: none; display: flex; justify-content: center; gap: 22px; margin: 12px 0 0; padding: 0; }
.mm-social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 8px; color: #fff; }
.mm-social svg { width: 22px; height: 22px; }
/* page behind */
html.menu-open, html.menu-open body { overflow: hidden; height: 100%; overscroll-behavior: none; }
html.menu-open .qa { opacity: 0; pointer-events: none; }
.ip-drawer a:focus-visible, .ip-drawer button:focus-visible { outline: 2px solid var(--mm-blue-hi); outline-offset: -2px; }
@media (hover: hover) { .mm-row:hover, .mm-head:hover, .ip-drawer .mm-sub:hover, .mm-close:hover, .mm-social a:hover { background: rgba(74,147,255,0.10); } .mm-cta:hover { background: rgba(32,78,156,0.45); } }
@media (prefers-reduced-motion: reduce) { .ip-drawer, .ip-drawer-inner, .mm-body, .mm-head > svg { transition: none; } }
@media (max-width: 340px) { .mm-row, .mm-head { gap: 16px; font-size: 15px; letter-spacing: .1em; } .mm-cta { font-size: 14px; letter-spacing: .08em; padding: 0 38px; } .mm-cta svg { right: 12px; } .mm-scroll { padding-left: 16px; padding-right: 16px; } }
@media (min-width: 1101px) { .ip-drawer { display: none; } }
