/* Site-wide nav (from the Squarespace header code injection) */
/* ===== DESKTOP NAV ===== */
.mi-nav {
  /* Full-bleed. 100vw includes the scrollbar, which pushed the bar
     about 8px to the right and gave the page a horizontal scroll, so
     --mi-vw (set by the script below) is used instead — it measures the
     visible width only. 100vw is just the fallback. */
  width: var(--mi-vw, 100vw);
  margin-left: calc(50% - (var(--mi-vw, 100vw) / 2));
  background: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  position: relative;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  isolation: isolate;
  min-height: 146px;
  overflow: visible;
}
.mi-nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #ffffff;
  z-index: -1;
}
.mi-nav-inner {
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 60px 10px 34px;
  /* Flex, not grid. Grid columns could shrink below their contents and let
     the three groups overlap; flex with no shrink on the logo and the button
     keeps them apart, and the links take the space in between. */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 146px;
  overflow: visible;
}
.mi-nav-logo { flex: 0 0 auto; }
.mi-nav-logo img { height: 124px; width: auto; flex-shrink: 0; display: block; contain: layout; }

.mi-nav-links {
  display: flex; align-items: stretch; list-style: none;
  gap: 0; justify-content: center;
  align-self: stretch;
  flex: 1 1 auto; min-width: 0; margin: 0; padding: 0;
  flex-wrap: nowrap;
}
.mi-nav-item { position: relative; display: flex; align-items: stretch; flex: 0 0 auto; }
.mi-nav-link {
  display: flex; align-items: center; gap: 5px;
  padding: 0 16px; height: 100%;
  font-size: 19px; font-weight: 600; color: #1F456E;
  text-decoration: none; letter-spacing: 0.02em;
  transition: color 0.2s; white-space: nowrap;
  cursor: pointer; position: relative;
}
.mi-nav-link::after {
  content: ''; position: absolute;
  bottom: 0; left: 16px; right: 16px; height: 2px;
  background: #A91101; transform: scaleX(0);
  transform-origin: left; transition: transform 0.25s ease;
}
.mi-nav-item:hover .mi-nav-link,
.mi-nav-item:focus-within .mi-nav-link { color: #A91101; }
.mi-nav-item:hover .mi-nav-link::after,
.mi-nav-item:focus-within .mi-nav-link::after { transform: scaleX(1); }
.mi-nav-link svg {
  width: 12px; height: 12px; stroke: currentColor;
  fill: none; stroke-width: 2.5; transition: transform 0.2s ease; flex-shrink: 0;
}
.mi-nav-item:hover .mi-nav-link svg,
.mi-nav-item:focus-within .mi-nav-link svg { transform: rotate(180deg); }

.mi-dropdown {
  position: absolute; top: 100%; left: 50%; min-width: 240px;
  transform: translateX(-50%) translateY(-6px);
  margin-top: 0;
  background: #fff;
  border-radius: 0 0 16px 16px;
  padding: 10px;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 10px 24px rgba(31,69,110,0.14);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 100;
}
.mi-nav-item:hover .mi-dropdown,
.mi-nav-item:focus-within .mi-dropdown {
  opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: all;
}
.mi-dropdown-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; font-size: 16px; font-weight: 600;
  color: #1F456E; text-decoration: none;
  border-radius: 12px;
  position: relative;
  opacity: 0; transform: translateY(-6px);
  transition: background 0.18s ease, color 0.18s ease, opacity 0.28s ease, transform 0.28s ease;
}
.mi-nav-item:hover .mi-dropdown-item,
.mi-nav-item:focus-within .mi-dropdown-item {
  opacity: 1; transform: translateY(0);
}
.mi-nav-item:hover .mi-dropdown-item:nth-child(1),
.mi-nav-item:focus-within .mi-dropdown-item:nth-child(1) { transition-delay: 0.03s; }
.mi-nav-item:hover .mi-dropdown-item:nth-child(2),
.mi-nav-item:focus-within .mi-dropdown-item:nth-child(2) { transition-delay: 0.08s; }
.mi-dropdown-item:hover { background: #F2F6FA; color: #A91101; }
.mi-dropdown-icon {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: #EAF0F6; flex-shrink: 0;
  transition: background 0.18s ease, transform 0.18s ease;
}
.mi-dropdown-item:hover .mi-dropdown-icon {
  background: #A91101; transform: scale(1.06);
}
.mi-dropdown-item svg {
  width: 14px; height: 14px; stroke: #1F456E;
  fill: none; stroke-width: 2; flex-shrink: 0;
  transition: stroke 0.18s ease;
}
.mi-dropdown-item:hover svg { stroke: #fff; }

.mi-nav-right { flex: 0 0 auto; overflow: visible; }

/* ===== SPARKLE LOGIN BUTTON =====
   Palette lives in --c1 through --c4. Change those four values
   to recolor the whole button. */
.mi-login-btn {
  --c1: #16325C;   /* deep navy */
  --c2: #3D3F8F;   /* indigo */
  --c3: #7B3B86;   /* plum */
  --c4: #B33350;   /* rose-red */

  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 14px 30px;
  border-radius: 100px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  overflow: visible;
  background: linear-gradient(115deg, var(--c1) 0%, var(--c2) 30%, var(--c3) 58%, var(--c4) 82%, var(--c1) 100%);
  background-size: 260% 100%;
  background-position: 0% 0;
  box-shadow: 0 6px 18px -10px rgba(123,59,134,0.75);
  transition: background-position 1.1s cubic-bezier(.4,0,.2,1), box-shadow 0.4s ease;
}
.mi-login-btn:hover,
.mi-login-btn:focus-visible {
  color: #fff;
  background-position: 100% 0;
  box-shadow: 0 12px 30px -12px rgba(179,51,80,0.85);
}
.mi-login-btn:focus-visible { outline: 3px solid #1F456E; outline-offset: 3px; }
.mi-login-btn__text { position: relative; z-index: 2; }

.mi-login-btn .spark {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  transform: scale(0);
  z-index: 3;
  animation: mi-twinkle 3.4s ease-in-out infinite;
}
.mi-login-btn:hover .spark,
.mi-login-btn:focus-visible .spark { animation-duration: 1.5s; }
.mi-login-btn .spark:nth-of-type(1) { top: -5px;   left: 14%;  width: 13px; height: 13px; fill: #FFE9A8; animation-delay: 0s; }
.mi-login-btn .spark:nth-of-type(2) { bottom: -4px; left: 31%;  width: 9px;  height: 9px;  fill: #FFFFFF; animation-delay: 0.42s; }
.mi-login-btn .spark:nth-of-type(3) { top: 4px;    left: 52%;  width: 8px;  height: 8px;  fill: #BFE9FF; animation-delay: 0.85s; }
.mi-login-btn .spark:nth-of-type(4) { bottom: 2px; right: 26%; width: 12px; height: 12px; fill: #FFD9EC; animation-delay: 1.25s; }
.mi-login-btn .spark:nth-of-type(5) { top: -6px;   right: 11%; width: 10px; height: 10px; fill: #FFFFFF; animation-delay: 1.7s; }
.mi-login-btn .spark:nth-of-type(6) { bottom: 6px; left: 7%;   width: 7px;  height: 7px;  fill: #FFE9A8; animation-delay: 2.15s; }

@keyframes mi-twinkle {
  0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }
  42%      { opacity: 0.95; transform: scale(1) rotate(80deg); }
  70%      { opacity: 0; transform: scale(0.2) rotate(140deg); }
}

/* ===== MOBILE NAV ===== */
.mi-mobile-nav {
  display: none;
  background: #fff; width: 100%;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  position: relative; z-index: 1000;
}
.mi-mobile-nav-bar {
  display: flex; align-items: center;
  justify-content: space-between; padding: 0 20px; height: 92px;
}
.mi-mobile-logo img { height: 66px; width: auto; display: block; }
.mi-hamburger {
  display: flex; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 8px;
  background: none; border: none; outline: none;
}
.mi-hamburger span {
  display: block; width: 24px; height: 2px;
  background: #1F456E; border-radius: 2px; transition: all 0.25s ease;
}
.mi-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mi-hamburger.is-open span:nth-child(2) { opacity: 0; }
.mi-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mi-mobile-menu {
  display: none; flex-direction: column;
  padding: 8px 20px 20px; border-top: 1px solid #f0f0f0;
}
.mi-mobile-menu.is-open { display: flex; }

.mi-mobile-accordion-toggle {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; font-size: 17px; font-weight: 700; color: #1F456E;
  padding: 13px 0; border: none; border-bottom: 1px solid #f5f5f5;
  background: none; cursor: pointer; text-align: left;
  font-family: inherit;
}
.mi-mobile-accordion-toggle svg {
  width: 14px; height: 14px; stroke: #1F456E;
  fill: none; stroke-width: 2.5; flex-shrink: 0;
  transition: transform 0.25s ease;
}
.mi-mobile-accordion-toggle.is-open svg { transform: rotate(180deg); }

.mi-mobile-menu-sub {
  display: none; flex-direction: column;
  background: #F7FAFC; border-radius: 0 0 10px 10px;
  border-bottom: 1px solid #f5f5f5;
}
.mi-mobile-menu-sub.is-open { display: flex; }
.mi-mobile-menu-sub a {
  font-size: 16px; font-weight: 400; color: #4A6580;
  padding: 11px 16px; display: block;
  border-bottom: 1px solid #eef2f6;
}
.mi-mobile-menu-sub a:last-child { border-bottom: none; }

.mi-mobile-menu-item {
  font-size: 17px; font-weight: 700; color: #1F456E;
  padding: 13px 0; border-bottom: 1px solid #f5f5f5; display: block;
}

/* mobile login — same pill, just centered in the stacked menu */
.mi-login-btn--mobile {
  align-self: center;
  margin: 22px 0 6px;
}

/* ===== INTERMEDIATE BREAKPOINTS =====
   Each step was checked against the actual width of the logo, the seven
   links and the button, so the row always has room to spare. */
@media (max-width: 1500px) {
  .mi-nav, .mi-nav-inner { min-height: 132px; height: 132px; }
  .mi-nav-inner { padding: 0 44px 10px 26px; }
  .mi-nav-logo img { height: 112px; }
  .mi-nav-link { padding: 0 13px; font-size: 17.5px; }
  .mi-nav-link::after { left: 13px; right: 13px; }
  .mi-nav-right .mi-login-btn { padding: 13px 26px; font-size: 16px; }
}
@media (max-width: 1320px) {
  .mi-nav, .mi-nav-inner { min-height: 124px; height: 124px; }
  .mi-nav-inner { padding: 0 32px 10px 20px; }
  .mi-nav-logo img { height: 104px; }
  .mi-nav-link { padding: 0 10px; font-size: 16.5px; }
  .mi-nav-link::after { left: 10px; right: 10px; }
  .mi-nav-right .mi-login-btn { padding: 12px 22px; font-size: 15px; }
}
@media (max-width: 1180px) {
  .mi-nav, .mi-nav-inner { min-height: 112px; height: 112px; }
  .mi-nav-inner { padding: 0 22px 10px 14px; }
  .mi-nav-logo img { height: 92px; }
  .mi-nav-link { padding: 0 7px; font-size: 15px; }
  .mi-nav-link::after { left: 7px; right: 7px; }
  .mi-nav-link svg { width: 10px; height: 10px; }
  .mi-nav-right .mi-login-btn { padding: 11px 18px; font-size: 14px; }
}
@media (max-width: 1060px) {
  .mi-nav, .mi-nav-inner { min-height: 102px; height: 102px; }
  .mi-nav-inner { padding: 0 16px 10px 10px; }
  .mi-nav-logo img { height: 82px; }
  .mi-nav-link { padding: 0 5px; font-size: 13.5px; letter-spacing: 0; }
  .mi-nav-link::after { left: 5px; right: 5px; }
  .mi-nav-right .mi-login-btn { padding: 10px 15px; font-size: 13px; }
}

/* ===== MOBILE ===== */
@media (max-width: 960px) {
  .mi-nav { display: none; }
  .mi-mobile-nav { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .mi-login-btn, .mi-login-btn .spark { animation: none !important; transition: none !important; }
  .mi-login-btn .spark { opacity: 0.9; transform: scale(1); }
}

/* Site-wide footer */
.mi-footer {
  background: #0d1f3c;
  font-family: Arial, Helvetica, sans-serif;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  border-top: 1px solid rgba(255,255,255,0.15);
}
.mi-footer-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 40px 48px 36px;
  display: grid; grid-template-columns: 1.6fr 1px 1fr 1px 0.7fr;
  gap: 0 56px; align-items: start;
}
.mi-footer-vline { width: 1px; background: rgba(255,255,255,0.12); align-self: stretch; }
.mi-footer-col { padding: 0 8px; }

.mi-footer-brand { padding: 0 8px; }
.mi-footer-social { display: flex; gap: 12px; }
.mi-footer-social a {
  width: 52px; height: 52px; border-radius: 12px;
  border: 2px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.05);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.mi-footer-social a:hover { border-color: #A91101; background: rgba(169,17,1,0.25); transform: translateY(-2px); }
.mi-footer-social svg { width: 22px; height: 22px; fill: none; stroke: rgba(255,255,255,0.85); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.mi-footer-social a:hover svg { stroke: #fff; }

/* Headings */
.mi-footer-heading {
  display: flex; align-items: center; gap: 10px;
  color: #fff; font-size: 13px; font-weight: 800;
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 16px;
}
.mi-footer-heading svg { width: 18px; height: 18px; fill: #5b8fc9; flex: 0 0 18px; }
.mi-footer-divider { height: 1px; background: rgba(255,255,255,0.12); margin-bottom: 24px; }

/* Contact list */
.mi-footer-list { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.mi-footer-list li {
  display: flex; align-items: flex-start; gap: 12px;
  color: rgba(255,255,255,0.65); font-size: 14px; line-height: 1.6;
}
.mi-footer-list li svg { width: 16px; height: 16px; fill: #5b8fc9; flex: 0 0 16px; margin-top: 3px; }

/* Nav links */
.mi-footer-links { list-style: none; display: flex; flex-direction: column; }
.mi-footer-links li { border-bottom: 1px solid rgba(255,255,255,0.08); }
.mi-footer-links li:first-child { border-top: 1px solid rgba(255,255,255,0.08); }
.mi-footer-links a {
  display: flex; justify-content: space-between; align-items: center;
  color: rgba(255,255,255,0.65); font-size: 14px;
  padding: 13px 0; transition: color 0.2s, padding-left 0.2s;
}
.mi-footer-links a:hover { color: #fff; padding-left: 6px; }
.mi-footer-links a span { font-size: 16px; opacity: 0.4; }

/* Bottom bar */
.mi-footer-bar {
  background: #091629; text-align: center;
  color: rgba(255,255,255,0.35); font-size: 12px; letter-spacing: 2px;
  padding: 18px 48px; border-top: 1px solid rgba(255,255,255,0.08);
}

@media (max-width: 900px) {
  .mi-footer-inner {
    grid-template-columns: 1fr;
    gap: 40px 0; padding: 48px 22px 40px;
  }
  .mi-footer-vline { display: none; }
  .mi-footer-bar { padding: 16px 22px; }
}

/* ===== STAFF (only shown to logged-in staff, except the footer link) ===== */
.mi-footer-staff {
  display: inline-block; margin-top: 18px;
  font-size: 12px; letter-spacing: 0.04em;
  color: rgba(255,255,255,0.38); text-decoration: none;
  transition: color .2s ease;
}
.mi-footer-staff:hover, .mi-footer-staff:focus-visible { color: rgba(255,255,255,0.8); text-decoration: underline; }

.mi-nav-right { display: flex; align-items: center; gap: 14px; }
.mi-staff { position: relative; }
.mi-staff-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: #1F456E; color: #fff;
  font: 700 14px/1 Arial, Helvetica, sans-serif; letter-spacing: 0.03em;
  border: 2px solid #fff; box-shadow: 0 0 0 2px #1F456E;
}
.mi-staff-toggle { cursor: pointer; padding: 0; transition: box-shadow .2s ease, background .2s ease; }
.mi-staff-toggle:hover, .mi-staff-toggle:focus-visible, .mi-staff.is-open .mi-staff-toggle { background: #A91101; box-shadow: 0 0 0 2px #A91101; outline: none; }
.mi-staff-panel {
  position: absolute; right: 0; top: calc(100% + 12px); z-index: 1000;
  min-width: 230px; padding: 8px;
  background: #fff; border-radius: 12px;
  box-shadow: 0 12px 32px rgba(13,26,38,0.18); border: 1px solid #e4e9ef;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  font-family: Arial, Helvetica, sans-serif;
}
.mi-staff.is-open .mi-staff-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.mi-staff-who { padding: 10px 12px 12px; border-bottom: 1px solid #eef1f5; margin-bottom: 6px; }
.mi-staff-who strong { display: block; color: #1F456E; font-size: 15px; }
.mi-staff-who span { display: block; color: #6b7785; font-size: 13px; margin-top: 3px; word-break: break-all; }
.mi-staff-panel form { margin: 0; }
.mi-staff-item {
  display: block; width: 100%; text-align: left;
  padding: 10px 12px; border-radius: 8px; border: 0; background: none; cursor: pointer;
  color: #1F456E; font: 600 15px Arial, Helvetica, sans-serif; text-decoration: none;
}
.mi-staff-item:hover, .mi-staff-item:focus-visible { background: #1F456E; color: #fff; outline: none; }

.mi-staff-mobile { border-top: 1px solid rgba(31,69,110,0.15); margin-top: 8px; padding-top: 10px; }
.mi-staff-mobile-who { display: flex; align-items: center; gap: 10px; padding: 6px 0 10px; color: #1F456E; font: 700 15px Arial, Helvetica, sans-serif; }
.mi-staff-mobile .mi-staff-avatar { width: 32px; height: 32px; font-size: 12px; }
.mi-staff-mobile form { margin: 0; }
.mi-staff-mobile-logout { background: none; border: 0; border-bottom: 1px solid #f5f5f5; width: 100%; text-align: left; cursor: pointer; font-family: inherit; font-size: 17px; font-weight: 700; color: #1F456E; }
