/* =========================================================
   MSSL Mobile Bottom Sheet Menu
   - Hidden on desktop by default
   - Enabled only on touch devices <= 1024px
   ========================================================= */

/* Desktop: completely remove from layout */
.mssl-sheet,
.mssl-sheet-alt,
.mssl-sheet-trigger,
.mssl-sheet-trigger-alt{
  display: none !important;
}

/* Only apply on mobile touch devices. Adjust breakpoint if needed */
@media (max-width: 1024px) and (pointer: coarse){

  /* -------------------------
	 Tunables + Theme Colors
	 ------------------------- */
  :root{
	--mssl-mobile-header-h: 64px; /* sticky header height */
	--mssl-trigger-y: 0px;        /* vertical alignment knob for BOTH header icons */
	--mssl-panel-gutter: 10px;    /* outer sheet gutter */

	/* Brand */
	--mssl-blue-500: #1862af;     /* Primary */
	--mssl-blue-600: #13589f;     /* Slightly darker */
	--mssl-blue-700: #0f4e90;     /* Deeper */
	--mssl-white: #ffffff;

	/* Sheet surface + borders */
	--mssl-sheet-bg: var(--mssl-blue-500);
	--mssl-sheet-bg-2: var(--mssl-blue-600);
	--mssl-sheet-fg: var(--mssl-white);
	--mssl-sheet-border: rgba(255,255,255,.14);
	--mssl-sheet-divider: rgba(255,255,255,.12);

	/* Interactive */
	--mssl-hover: rgba(255,255,255,.08);
	--mssl-active: rgba(255,255,255,.12);
  }

  /* Show our triggers + sheets on mobile (sheets still hidden via opacity until open) */
  .mssl-sheet,
  .mssl-sheet-alt,
  .mssl-sheet-trigger,
  .mssl-sheet-trigger-alt{
	display: block !important;
  }

  /* Hide Genesis responsive hamburger + desktop menu on mobile */
  .nav-header .responsive-menu-icon{ display: none !important; }
  #nav_menu-3{ display: none !important; }

  /* ============================================
	 Sticky mobile header
	 ============================================ */
  .site-header{
	position: sticky !important;
	top: 0 !important;
	z-index: 100001 !important;
	min-height: var(--mssl-mobile-header-h);
  }

  /* Make header row flex so title can vertically align */
  .site-header .wrap{
	position: relative;
	z-index: 100001;

	display: flex !important;
	align-items: center !important;
	min-height: var(--mssl-mobile-header-h);
  }

  /* Title container: full width, centered vertically, clears BOTH header icons */
  .site-header .title-area{
	float: none !important;
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;

	display: flex !important;
	align-items: center !important;
	justify-content: center !important;

	/* clear left + right header icons */
	padding-left: 38px !important;
	padding-right: 38px !important;

	padding-top: 0 !important;
	padding-bottom: 0 !important;

	text-align: center !important;
  }

  /* Title: bigger + baseline fixed
	 NOTE: target both .site-title and its <a> (Genesis often styles the <a>) */
  .site-header .site-title,
  .site-header .site-title a{
	margin: 0 !important;
	padding: 0 !important;

	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: clip !important;
	text-align: center !important;

	line-height: 1 !important;

	/* Bigger ceiling + still responsive */
	font-size: clamp(19px, 4.9vw, 26px) !important;

	/* Keep it readable, but reduce spacing a touch at larger sizes */
	letter-spacing: clamp(0.25px, 0.18vw, 0.85px) !important;

	/* IMPORTANT: no transform nudges here — we align icons via --mssl-trigger-y */
	transform: none !important;
  }

  /* ============================================
	 iOS/Theme pressed-state kill (black background)
	 ============================================ */
  button.mssl-sheet-trigger,
  button.mssl-sheet-trigger-alt{
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	outline: none !important;
	border: 0 !important;

	-webkit-appearance: none !important;
	appearance: none !important;

	-webkit-tap-highlight-color: rgba(0,0,0,0) !important;
	-webkit-touch-callout: none !important;
	user-select: none !important;
	touch-action: manipulation !important;
  }

  button.mssl-sheet-trigger:active,
  button.mssl-sheet-trigger-alt:active,
  button.mssl-sheet-trigger:focus,
  button.mssl-sheet-trigger-alt:focus,
  button.mssl-sheet-trigger:focus-visible,
  button.mssl-sheet-trigger-alt:focus-visible{
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	outline: none !important;
	filter: none !important;
  }

  /* Catch theme pseudo overlays */
  button.mssl-sheet-trigger::before,
  button.mssl-sheet-trigger::after,
  button.mssl-sheet-trigger-alt::before,
  button.mssl-sheet-trigger-alt::after{
	background: transparent !important;
	box-shadow: none !important;
	filter: none !important;
  }

  /* =========================
	 Trigger button (hamburger)
	 ========================= */
  .mssl-sheet-trigger{
	position: fixed !important;
	left: 12px !important;
	top: calc(
	  env(safe-area-inset-top, 0px) + (var(--mssl-mobile-header-h) / 2) + var(--mssl-trigger-y)
	) !important;
	transform: translateY(-50%) !important;
	z-index: 100002 !important;

	display: flex;
	align-items: center;
	justify-content: center;

	width: 44px;
	height: 44px;
	padding: 0;

	cursor: pointer;
	border-radius: 12px;

	color: var(--mssl-sheet-fg);
  }

  /* Kill any theme focus/active transforms that cause "jump" */
  .mssl-sheet-trigger:focus,
  .mssl-sheet-trigger:active,
  .mssl-sheet-trigger:focus-visible{
	transform: translateY(-50%) !important;
  }

  .mssl-sheet-trigger:active{ opacity: .75; }

  .mssl-sheet-trigger__icon{
	background: none;
  }
  
  .mssl-sheet-trigger::before{
	content: "\e195"; /* grid */
	font-family: "Font Awesome 7 Pro", "Font Awesome 7 Free";
	font-weight: 900;
	font-size: 20px;
  }

  /* =========================
	 Right-side trigger (Teams)
	 ========================= */
  .mssl-sheet-trigger-alt{
	position: fixed !important;
	right: 12px !important;
	top: calc(
	  env(safe-area-inset-top, 0px) + (var(--mssl-mobile-header-h) / 2) + var(--mssl-trigger-y)
	) !important;
	transform: translateY(-50%) !important;
	z-index: 100002 !important;

	width: 44px;
	height: 44px;
	padding: 0;

	cursor: pointer;
	border-radius: 12px;

	display: flex;
	align-items: center;
	justify-content: center;

	color: var(--mssl-sheet-fg);
  }

  .mssl-sheet-trigger-alt:active,
  .mssl-sheet-trigger-alt:focus,
  .mssl-sheet-trigger-alt:focus-visible{
	transform: translateY(-50%) !important;
  }

  /* Font Awesome icon (e7ab) */
  .mssl-sheet-trigger-alt::before{
	content: "\e7ab";
	font-family: "Font Awesome 7 Pro", "Font Awesome 7 Free";
	font-weight: 900;
	font-style: normal;
	-webkit-font-smoothing: antialiased;
	font-size: 18px;
	line-height: 1;
  }

  /* =========================
	 Sheet base + animations (MAIN)
	 ========================= */
  .mssl-sheet{
	position: fixed;
	inset: 0;
	z-index: 99999;

	opacity: 0;
	pointer-events: none;
	transition: opacity 400ms ease;
  }

  .mssl-sheet.is-open{
	opacity: 1;
	pointer-events: auto;
  }

  .mssl-sheet__backdrop{
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,.35);

	opacity: 0;
	transition: opacity 400ms ease;
	will-change: opacity;
  }
  .mssl-sheet.is-open .mssl-sheet__backdrop{ opacity: 1; }

  /* Panel: cap height so it never collides with sticky header */
  .mssl-sheet__panel{
	position: absolute;
	left: var(--mssl-panel-gutter);
	right: var(--mssl-panel-gutter);
	bottom: var(--mssl-panel-gutter);

	width: auto;

	max-height: calc(
	  100vh - var(--mssl-mobile-header-h) - env(safe-area-inset-top, 0px) - 22px
	);

	background: var(--mssl-sheet-bg);
	border-radius: 22px;

	transform: translateY(110%);
	transition: transform 400ms cubic-bezier(.2,.8,.2,1);
	will-change: transform;

	display: flex;
	flex-direction: column;
	overflow: hidden;
  }

  .mssl-sheet.is-open .mssl-sheet__panel{ transform: translateY(0); }
  .mssl-sheet-alt.is-open .mssl-sheet__panel{ transform: translateY(0); }

  .mssl-sheet__handle{
	width: 44px;
	height: 5px;
	border-radius: 10px;
	background: rgba(255,255,255,.35);
	margin: 8px auto 6px;
  }

  /* =========================
	 ALT sheet (Teams) — same behavior as main sheet
	 ========================= */
  .mssl-sheet-alt{
	position: fixed;
	inset: 0;
	z-index: 99999;

	opacity: 0;
	pointer-events: none;
	transition: opacity 400ms ease;
  }

  .mssl-sheet-alt.is-open{
	opacity: 1;
	pointer-events: auto;
  }

  .mssl-sheet-alt .mssl-sheet__backdrop{
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,.35);

	opacity: 0;
	transition: opacity 400ms ease;
  }
  .mssl-sheet-alt.is-open .mssl-sheet__backdrop{ opacity: 1; }

  /* Allow shortcode area to scroll */
  .mssl-sheet-alt .mssl-sheet__nav{
	overflow: auto;
	-webkit-overflow-scrolling: touch;
  }

  /* =========================
	 Header (brand + close)
	 ========================= */
  .mssl-sheet__header{
	display: flex;
	align-items: center;
	justify-content: space-between;

	padding: 12px 16px;
	border-bottom: 1px solid var(--mssl-sheet-border);
  }

  .mssl-sheet__brand{
	color: var(--mssl-sheet-fg);
	font-weight: 800;
	letter-spacing: .10em;
	font-size: 15px;
	text-transform: uppercase;

	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	padding-right: 10px;
  }

  .mssl-sheet__close{
	border: 0;
	background: rgba(255,255,255,.14);
	color: var(--mssl-sheet-fg);

	width: 40px;
	height: 40px;
	border-radius: 14px;
	cursor: pointer;

	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	font-size: 22px;

	outline: 0 !important;
	box-shadow: none !important;
  }

  .mssl-sheet__close:active{ opacity: .85; }

  /* =========================
	 Nav list
	 ========================= */
  .mssl-sheet__nav{
	overflow: auto;
	-webkit-overflow-scrolling: touch;
	padding: 6px 10px 10px;
  }

  .mssl-sheet-menu,
  .mssl-sheet-menu .sub-menu{
	list-style: none;
	margin: 0;
	padding: 0;
  }

  .mssl-sheet-menu > li{
	border-bottom: 1px solid var(--mssl-sheet-divider);
  }

  .mssl-sheet-menu a{
	color: var(--mssl-sheet-fg);
	text-decoration: none;

	display: flex;
	align-items: center;

	padding: 12px 10px;
	font-size: 17px;
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: .03em;

	border-radius: 12px;
  }

 /* =========================================================
	MSSL: Kill ALL hover/active/focus/visited color changes
	(prevents “random” lingering highlights on iOS + theme bleed)
	========================================================= */
 
 /* 1) Remove your own hover/active backgrounds entirely */
 .mssl-sheet .mssl-sheet-menu a:hover,
 .mssl-sheet .mssl-sheet-menu a:active,
 .mssl-sheet .mssl-sheet-menu a:focus,
 .mssl-sheet .mssl-sheet-menu a:focus-visible,
 .mssl-sheet-alt .mssl-sheet__nav a:hover,
 .mssl-sheet-alt .mssl-sheet__nav a:active,
 .mssl-sheet-alt .mssl-sheet__nav a:focus,
 .mssl-sheet-alt .mssl-sheet__nav a:focus-visible{
   background: transparent !important;
   color: var(--mssl-sheet-fg) !important;
   text-decoration: none !important;
   outline: none !important;
   box-shadow: none !important;
   filter: none !important;
 }
 
 /* 2) Stop theme “visited” colors from bleeding in */
 .mssl-sheet .mssl-sheet-menu a:visited,
 .mssl-sheet-alt .mssl-sheet__nav a:visited{
   color: var(--mssl-sheet-fg) !important;
 }
 
 /* 3) iOS-specific: kill tap highlight + lingering focus paint */
 .mssl-sheet .mssl-sheet-menu a,
 .mssl-sheet-alt .mssl-sheet__nav a{
   -webkit-tap-highlight-color: rgba(0,0,0,0) !important;
   -webkit-touch-callout: none !important;
   user-select: none !important;
 }
 
 /* 4) If Genesis/theme applies weird pseudo-element highlights */
 .mssl-sheet .mssl-sheet-menu a::before,
 .mssl-sheet .mssl-sheet-menu a::after,
 .mssl-sheet-alt .mssl-sheet__nav a::before,
 .mssl-sheet-alt .mssl-sheet__nav a::after{
   background: transparent !important;
   box-shadow: none !important;
   filter: none !important;
 }

  /* =========================
	 Font Awesome icons (menu)
	 ========================= */
  .mssl-sheet .mssl-sheet-menu > li > a::before,
  .mssl-sheet .mssl-sheet-menu .sub-menu > li > a::before{
	display: inline-block;
	width: 22px;
	min-width: 22px;
	text-align: center;
	margin-right: 10px;
	line-height: 1;
	opacity: 0.95;

	font-family: "Font Awesome 7 Pro", "Font Awesome 7 Free";
	font-style: normal;
	font-variant: normal;
	text-rendering: auto;
	-webkit-font-smoothing: antialiased;
  }

  /* Parent menu icons */
  .mssl-sheet .mssl-sheet-menu > li.mssl-ico-home > a::before      { content: "\f015"; font-weight: 900; }
  .mssl-sheet .mssl-sheet-menu > li.mssl-ico-faq > a::before       { content: "\e14e"; font-weight: 900; }
  .mssl-sheet .mssl-sheet-menu > li.mssl-ico-sports > a::before    { content: "\e643"; font-weight: 900; }
  .mssl-sheet .mssl-sheet-menu > li.mssl-ico-register > a::before  { content: "\f14a"; font-weight: 900; }
  .mssl-sheet .mssl-sheet-menu > li.mssl-ico-dashboard > a::before { content: "\f624"; font-weight: 900; }

  /* Sub Menu icons */
  .mssl-sheet .mssl-sheet-menu .sub-menu > li.mssl-ico-cal > a::before        { content: "\f133"; font-weight: 900; }
  .mssl-sheet .mssl-sheet-menu .sub-menu > li.mssl-ico-contact > a::before    { content: "\e10c"; font-weight: 900; }
  .mssl-sheet .mssl-sheet-menu .sub-menu > li.mssl-ico-directions > a::before { content: "\f59f"; font-weight: 900; }
  .mssl-sheet .mssl-sheet-menu .sub-menu > li.mssl-ico-waiver > a::before     { content: "\f56c"; font-weight: 900; }
  .mssl-sheet .mssl-sheet-menu .sub-menu > li.mssl-ico-rules > a::before      { content: "\f460"; font-weight: 900; }
  .mssl-sheet .mssl-sheet-menu .sub-menu > li.mssl-ico-sponsor > a::before      { content: "\f2b5"; font-weight: 900; }
  .mssl-sheet .mssl-sheet-menu .sub-menu > li.mssl-ico-about > a::before      { content: "\f30f"; font-weight: 900; }
  .mssl-sheet .mssl-sheet-menu .sub-menu > li.mssl-ico-faq > a::before      { content: "\e14e"; font-weight: 900; }

  /* Default submenu icon */
  .mssl-sheet .mssl-sheet-menu .sub-menu > li > a::before{
	content: "\f105";
	font-weight: 900;
	opacity: 0.6;
  }

  /* Airtable injected items */
  .mssl-sheet .mssl-sheet-menu .mssl-dynamic > a::before{
	content: "\f073";
	font-weight: 400;
	opacity: 0.85;
  }

  /* Sport icon classes */
  .mssl-sheet .mssl-sheet-menu li.mssl-ico-softball > a::before     { content: "\f433"; font-weight: 900; opacity: .95; }
  .mssl-sheet .mssl-sheet-menu li.mssl-ico-volleyball > a::before   { content: "\f45f"; font-weight: 900; opacity: .95; }
  .mssl-sheet .mssl-sheet-menu li.mssl-ico-kickball > a::before     { content: "\e789"; font-weight: 900; opacity: .95; }
  .mssl-sheet .mssl-sheet-menu li.mssl-ico-basketball > a::before   { content: "\f434"; font-weight: 900; opacity: .95; }
  .mssl-sheet .mssl-sheet-menu li.mssl-ico-soccer > a::before       { content: "\f1e3"; font-weight: 900; opacity: .95; } /* duotone fallback */
  .mssl-sheet .mssl-sheet-menu li.mssl-ico-flagfootball > a::before { content: "\f44e"; font-weight: 900; opacity: .95; }
  .mssl-sheet .mssl-sheet-menu li.mssl-ico-pickleball > a::before   { content: "\e435"; font-weight: 900; opacity: .95; }

  /* =========================
	 Accordion toggle
	 ========================= */
  .mssl-acc{ position: relative; }

  .mssl-sheet .mssl-acc > a{ padding-right: 64px; }

  .mssl-sheet .mssl-acc__toggle{
	all: unset;
	box-sizing: border-box;

	position: absolute;
	right: 10px;
	top: 9px;

	width: 28px;
	height: 28px;

	display: flex;
	align-items: center;
	justify-content: center;

	background: rgba(255,255,255,.14);
	color: var(--mssl-sheet-fg);
	border-radius: 12px;
	cursor: pointer;

	line-height: 1;
	font-size: 20px;

	-webkit-tap-highlight-color: rgba(0,0,0,0);
	-webkit-appearance: none;
	appearance: none;

	outline: none;
	box-shadow: none;

	overflow: hidden;
  }

  .mssl-sheet .mssl-acc__toggle:hover,
  .mssl-sheet .mssl-acc__toggle:active,
  .mssl-sheet .mssl-acc__toggle:focus,
  .mssl-sheet .mssl-acc__toggle:focus-visible{
	background: rgba(255,255,255,.14) !important;
	border-radius: 14px !important;
	outline: none !important;
	box-shadow: none !important;
	filter: none !important;
	transform: none !important;
	opacity: 1 !important;
  }

  .mssl-acc__toggle span{
	display: block;
	transform: rotate(0deg);
	transition: transform 400ms ease;
  }

  /* Only rotate the toggle that is a DIRECT child of the expanded li */
  .mssl-acc.is-expanded > .mssl-acc__toggle span{
	transform: rotate(180deg);
  }

  .mssl-acc__panel{
	overflow: hidden;
	transition: max-height 400ms ease;
	background: rgba(0,0,0,.08);
  }

  .mssl-acc__panel a{
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 10px 10px 10px 18px;
  }

  /* Optional: make Airtable rows slightly less shouty */
  .mssl-sheet .mssl-dynamic > a{
	text-transform: none;
	letter-spacing: 0;
  }

  /* =========================
	 Footer
	 ========================= */
  .mssl-sheet__footer{
	padding: 10px 14px 12px;
  }

  .mssl-sheet__footer-btn{
	display: block;
	text-align: center;
	background: rgba(255,255,255,.18);
	color: #ffffff !important;
	text-decoration: none;
	padding: 10px 14px;
	border-radius: 14px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .04em;
	box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
  }

  .mssl-sheet__footer-btn:hover{
	background: rgba(255,255,255,.22);
	box-shadow: inset 0 0 0 1px rgba(255,255,255,.4);
  }
  .mssl-sheet__footer-btn:active{ background: rgba(255,255,255,.26); }

  .mssl-sheet__social{
	display: flex;
	gap: 10px;
	margin-top: 10px;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	justify-content: center;
  }

  .mssl-sheet__social a{
	width: 44px;
	height: 44px;
	border-radius: 14px;
	background: rgba(255,255,255,.14);

	display: flex;
	align-items: center;
	justify-content: center;

	text-decoration: none;
  }

  /* Social icons: Font Awesome Brands */
  .mssl-sheet__social a::before{
	display: block;
	font-family: "Font Awesome 7 Brands";
	font-weight: 400;
	font-style: normal;
	-webkit-font-smoothing: antialiased;
	line-height: 1;
	font-size: 20px;
	color: var(--mssl-sheet-fg);
	opacity: .95;
	content: "";
  }

  .mssl-sheet__social a.mssl-social-facebook::before  { content: "\f09a"; }
  .mssl-sheet__social a.mssl-social-instagram::before { content: "\f16d"; }
  .mssl-sheet__social a.mssl-social-twitter::before   { content: "\e61a"; }

  /* =========================
	 Scroll lock
	 ========================= */
  html.mssl-sheet-open,
  body.mssl-sheet-open{
	overflow: hidden;
	height: 100%;
  }

  /* =========================
	 Menu typography
	 ========================= */
  .mssl-sheet__nav,
  .mssl-sheet__nav a,
  .mssl-sheet__nav button{
	font-family: 'Outfit', sans-serif;
  }

  .mssl-sheet-menu > li > a{ font-weight: 700; }
}

/* Very Small Phone Site Title Adjustment */
@media (max-width: 782px) and (pointer: coarse){
  .site-header .site-title,
  .site-header .site-title a{
	font-size: 17px !important;
	letter-spacing: 1.2px !important;
  }
}

/* =========================================================
   MSSL: Hard-disable ALL visual press states on Close (X)
   ========================================================= */

.mssl-sheet__close{
  background: rgba(255,255,255,.14) !important;
  color: var(--mssl-sheet-fg) !important;

  outline: none !important;
  box-shadow: none !important;
  border: 0 !important;

  -webkit-appearance: none !important;
  appearance: none !important;

  -webkit-tap-highlight-color: rgba(0,0,0,0) !important;
  -webkit-touch-callout: none !important;
  user-select: none !important;
  touch-action: manipulation !important;
}

/* Kill EVERY interaction state */
.mssl-sheet__close:hover,
.mssl-sheet__close:active,
.mssl-sheet__close:focus,
.mssl-sheet__close:focus-visible{
  background: rgba(255,255,255,.14) !important;
  color: var(--mssl-sheet-fg) !important;

  outline: none !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
  opacity: 1 !important;
}

/* Safari sometimes paints pseudo layers on buttons */
.mssl-sheet__close::before,
.mssl-sheet__close::after{
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
}

/* Prevent "pressed darkening" caused by opacity inheritance */
.mssl-sheet__close *{
  opacity: 1 !important;
}