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

@media (max-width: 1024px) {
  :root {
    --mssl-mobile-header-h: 60px;
    --mssl-panel-gutter: 10px;
    --mssl-admin-bar-offset: 0px;
    --mssl-overlay-z: 99997;
    --mssl-trigger-z: 99998;
    --mssl-admin-bar-z: 99999;
    --mssl-trigger-left-space: 34px;
    --mssl-trigger-right-space: 34px;
    --mssl-blue-500: #1862af;
    --mssl-white: #ffffff;
    --mssl-sheet-bg: var(--mssl-blue-500);
    --mssl-sheet-fg: var(--mssl-white);
    --mssl-sheet-border: rgba(255,255,255,.14);
    --mssl-sheet-divider: rgba(255,255,255,.12);
  }

  body.admin-bar {
    --mssl-admin-bar-offset: 46px;
  }

  .mssl-sheet,
  .mssl-sheet-alt,
  .mssl-sheet-trigger,
  .mssl-sheet-trigger-alt {
    display: block !important;
  }

  .nav-header .responsive-menu-icon,
  #nav_menu-3,
  .site-header .header-widget-area,
  .site-header .widget-area.header-widget-area,
  #genesis-mobile-nav-primary,
  .site-header .menu-toggle,
  #genesis-nav-primary,
  .nav-primary,
  .nav-primary.genesis-responsive-menu {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    max-height: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .site-header {
    position: sticky !important;
    top: var(--mssl-admin-bar-offset) !important;
    z-index: calc(var(--mssl-overlay-z) - 1) !important;
    min-height: var(--mssl-mobile-header-h);
  }

  .site-header .wrap {
    position: relative;
    z-index: calc(var(--mssl-overlay-z) - 1);
    display: flex !important;
    align-items: center !important;
    min-height: var(--mssl-mobile-header-h);
    width: calc(100% - 10px) !important;
    max-width: none !important;
    margin-right: 5px !important;
    margin-left: 5px !important;
  }

  .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;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: var(--mssl-trigger-left-space) !important;
    padding-right: var(--mssl-trigger-right-space) !important;
    text-align: center !important;
  }

  .site-header .site-title,
  .site-header .site-title a {
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-align: center !important;
    line-height: 1 !important;
    font-size: clamp(19px, 4.9vw, 26px) !important;
    letter-spacing: clamp(0.25px, 0.18vw, 0.85px) !important;
    transform: none !important;
  }

  #wpadminbar {
    position: sticky !important;
    top: 0 !important;
    z-index: var(--mssl-admin-bar-z) !important;
  }

  body.mssl-sheet-header-scrolled .site-header {
    box-shadow: 0 1px 8px rgba(0, 0, 0, .08);
  }

  button.mssl-sheet-trigger,
  button.mssl-sheet-trigger-alt,
  .mssl-sheet__close,
  .mssl-acc__toggle {
    -webkit-tap-highlight-color: rgba(0,0,0,0) !important;
    -webkit-touch-callout: none !important;
    user-select: none !important;
    touch-action: manipulation !important;
    -webkit-appearance: none !important;
    appearance: none !important;
  }

  button.mssl-sheet-trigger,
  button.mssl-sheet-trigger-alt {
    all: unset;
    box-sizing: border-box;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: var(--mssl-trigger-z) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    cursor: pointer;
    border-radius: 12px;
    color: var(--mssl-sheet-fg) !important;
    -webkit-text-fill-color: var(--mssl-sheet-fg);
  }

  .mssl-sheet-trigger {
    left: 12px !important;
  }

  button.mssl-sheet-trigger-alt {
    right: 6px !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    max-width: 28px !important;
    min-height: 28px !important;
    max-height: 28px !important;
    padding: 0 !important;
    overflow: hidden !important;
    font-size: 0 !important;
    line-height: 0 !important;
    flex: 0 0 28px;
  }

  button.mssl-sheet-trigger:hover,
  button.mssl-sheet-trigger:focus,
  button.mssl-sheet-trigger:active,
  button.mssl-sheet-trigger:focus-visible,
  button.mssl-sheet-trigger-alt:hover,
  button.mssl-sheet-trigger-alt:focus,
  button.mssl-sheet-trigger-alt:active,
  button.mssl-sheet-trigger-alt:focus-visible {
    outline: 0 !important;
    box-shadow: none !important;
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    transform: translateY(-50%) !important;
    color: var(--mssl-sheet-fg) !important;
    -webkit-text-fill-color: var(--mssl-sheet-fg);
  }

  .mssl-sheet-trigger:active,
  .mssl-sheet-trigger-alt:active {
    opacity: .75 !important;
  }

  .mssl-sheet-trigger::before,
  .mssl-sheet-trigger-alt::before {
    display: inline-block;
    width: 1em;
    line-height: 1;
    text-align: center;
    flex: 0 0 auto;
    pointer-events: none;
    font-family: "Font Awesome 7 Pro", "Font Awesome 7 Free";
    font-weight: 900;
    -webkit-font-smoothing: antialiased;
  }

  .mssl-sheet-trigger::before {
    content: "\e195";
    font-size: 20px;
  }

  .mssl-sheet-trigger-alt::before {
    content: "\e7ab";
    width: auto;
    font-size: 14px;
  }

  .mssl-sheet-trigger__icon {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    pointer-events: none !important;
  }

  .mssl-sheet,
  .mssl-sheet-alt {
    position: fixed;
    top: var(--mssl-admin-bar-offset);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: var(--mssl-overlay-z);
    opacity: 0;
    pointer-events: none;
    transition: opacity 400ms ease;
  }

  .mssl-sheet.is-open,
  .mssl-sheet-alt.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,
  .mssl-sheet-alt.is-open .mssl-sheet__backdrop {
    opacity: 1;
  }

  .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) - var(--mssl-admin-bar-offset) - 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,
  .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 .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-family: "Outfit", serif;
    font-weight: 800;
    letter-spacing: 1.2px;
    font-size: 17px;
    text-transform: uppercase;
    -webkit-font-smoothing: antialiased; /* Adjusts for Outfit */
    -moz-osx-font-smoothing: grayscale;
    text-rendering: geometricPrecision;
    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: 15px;
    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; }
  .mssl-sheet .mssl-sheet-menu > li.mssl-ico-youth > a::before 	   { content: "\f434"; 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 calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .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;
  }
}

@media (min-width: 783px) and (max-width: 1024px) {
  body.admin-bar {
    --mssl-admin-bar-offset: 32px;
  }
}

/* Very Small Phone Site Title Adjustment */
@media (max-width: 782px) {
  .site-header .site-title,
  .site-header .site-title a {
    font-size: 18px !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;
}
