/* MentorSurge site shell: shared header, navigation, and footer.
   Loaded on every page. Self-contained: it does not depend on the
   compiled Next.js stylesheet or on mentor-surge-redesign.css. */
:root {
  --mss-bg: #07101f;
  --mss-panel: #0e1c30;
  --mss-panel-2: #132741;
  --mss-line: rgba(171, 196, 229, 0.18);
  --mss-line-strong: rgba(171, 196, 229, 0.34);
  --mss-text: #f5f8fc;
  --mss-muted: #b4c2d4;
  --mss-blue: #6aaeff;
  --mss-blue-ink: #04101f;
  --mss-gold: #f1b958;
  --mss-focus: #ffd166;
  --mss-header-h: 68px;
  --mss-max: 1200px;
  --mss-font: "Avenir Next", Avenir, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  /* Pages built on mentor-surge-redesign.css read this for their top offset. */
  --msr-header-height: 68px;
}

/* Visually hidden text for screen readers (used in the shared header/footer on every page). */
.ms-sr, .mss-sr { position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important; }

/* Keep keyboard focus and in-page targets clear of the fixed header (WCAG 2.4.11). */
html { scroll-padding-top: calc(var(--mss-header-h) + 20px); }

/* Older article templates have their own second skip link; keep it above the fixed header when focused. */
.msr-skip:focus { z-index: 2001 !important; top: 8px !important; }

/* Older exported pages keep their own nav markup out of the way. */
body > nav.ms-site-nav, .msr-header { display: none !important; }

.mss-skip {
  position: fixed; z-index: 2000; top: 8px; left: 12px;
  transform: translateY(-180%);
  padding: 12px 16px; border-radius: 8px;
  background: #fff; color: #07101f; font: 700 15px/1.2 var(--mss-font); text-decoration: none;
}
.mss-skip:focus { transform: none; }

.mss-header {
  position: fixed; z-index: 1500; top: 0; left: 0; right: 0;
  height: var(--mss-header-h);
  background: rgba(7, 16, 31, 0.94);
  border-bottom: 1px solid var(--mss-line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  font-family: var(--mss-font);
}
.mss-header-inner {
  box-sizing: border-box;
  max-width: calc(var(--mss-max) + 48px); height: 100%;
  margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 16px;
}
.mss-header .mss-brand {
  display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto;
  color: var(--mss-text); text-decoration: none;
  font-size: 17px; font-weight: 800; letter-spacing: 0.01em; white-space: nowrap;
}
.mss-brand img { width: 40px; height: 40px; flex: 0 0 auto; object-fit: contain; }
.mss-brand b { color: var(--mss-blue); font-weight: 800; }
.mss-nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.mss-header .mss-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  border-radius: 8px; color: var(--mss-muted); text-decoration: none;
  font-size: 15px; font-weight: 650; white-space: nowrap;
}
.mss-header .mss-nav a:hover { color: var(--mss-text); background: rgba(255, 255, 255, 0.05); }
.mss-header .mss-nav a[aria-current="page"] { color: var(--mss-text); background: rgba(106, 174, 255, 0.12); box-shadow: inset 0 -2px 0 var(--mss-blue); }
.mss-header .mss-nav a.mss-nav-cta { margin-left: 8px; padding: 0 16px; background: var(--mss-blue); color: var(--mss-blue-ink); font-weight: 750; }
.mss-header .mss-nav a.mss-nav-cta:hover { background: #8cc1ff; color: var(--mss-blue-ink); }
.mss-header .mss-nav a.mss-nav-cta[aria-current="page"] { box-shadow: none; }
.mss-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; align-items: center; justify-content: center;
  border: 1px solid var(--mss-line-strong); border-radius: 10px;
  background: var(--mss-panel); color: var(--mss-text); cursor: pointer;
}
.mss-toggle svg { width: 22px; height: 22px; }
.mss-toggle .mss-icon-close { display: none; }
.mss-header[data-open="true"] .mss-toggle .mss-icon-open { display: none; }
.mss-header[data-open="true"] .mss-toggle .mss-icon-close { display: block; }
/* The open menu sits above the non-modal first-visit privacy prompt so focused links stay visible (WCAG 2.4.11). */
.mss-header[data-open="true"] { z-index: 10001; }
/* Narrow desktops: tighter links leave room for the logo, including with increased text spacing (WCAG 1.4.12). */
@media (min-width: 1080px) and (max-width: 1239px) {
  .mss-header-inner { gap: 12px; }
  .mss-header .mss-nav a { padding: 0 9px; }
  .mss-header .mss-nav a.mss-nav-cta { margin-left: 6px; padding: 0 13px; }
}

@media (max-width: 1079px) {
  .mss-header-inner { padding: 0 16px; }
  .mss-toggle { display: inline-flex; }
  .mss-nav {
    display: none; position: absolute; top: var(--mss-header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    max-height: calc(100vh - var(--mss-header-h)); overflow-y: auto;
    padding: 12px 16px 20px; background: #081325;
    border-bottom: 1px solid var(--mss-line); box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  }
  .mss-header[data-open="true"] .mss-nav { display: flex; }
  .mss-header .mss-nav a { min-height: 48px; padding: 0 14px; font-size: 16px; background: rgba(255, 255, 255, 0.03); }
  .mss-header .mss-nav a.mss-nav-cta { margin: 8px 0 0; justify-content: center; }
}
/* Without JavaScript the menu button cannot open anything, so the header stops being fixed and lists the links in rows. */
@media (max-width: 1079px) and (scripting: none) {
  :root { --mss-header-h: 0px; --msr-header-height: 0px; }
  .mss-header { position: relative; height: auto; }
  .mss-header-inner { height: auto; flex-wrap: wrap; padding: 10px 16px 12px; gap: 6px 16px; }
  .mss-header .mss-toggle { display: none; }
  .mss-header .mss-nav {
    display: flex; position: static; flex: 1 1 100%; margin: 0;
    flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px;
    max-height: none; overflow: visible; padding: 0;
    background: none; border: 0; box-shadow: none;
  }
  .mss-header .mss-nav a { min-height: 44px; padding: 0 10px; font-size: 15px; background: rgba(255, 255, 255, 0.03); }
  .mss-header .mss-nav a.mss-nav-cta { margin: 0; padding: 0 14px; }
}
@media (max-width: 360px) {
  .mss-brand { font-size: 15px; }
  .mss-brand img { width: 34px; height: 34px; }
}

.mss-footer {
  margin-top: 64px; border-top: 1px solid var(--mss-line);
  background: #060e1b; color: var(--mss-muted);
  font: 15px/1.6 var(--mss-font);
}
.mss-footer-inner { box-sizing: border-box; max-width: calc(var(--mss-max) + 48px); margin: 0 auto; padding: 48px 24px 28px; }
.mss-footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.mss-footer-brand { display: flex; align-items: center; gap: 10px; color: var(--mss-text); font-weight: 800; font-size: 17px; letter-spacing: 0.01em; }
.mss-footer-brand img { width: 36px; height: 36px; }
.mss-footer-brand b { color: var(--mss-blue); }
.mss-footer .mss-footer-inner p { margin: 12px 0 0; max-width: 34ch; }
.mss-footer .mss-footer-inner h2 { font-family: var(--mss-font); line-height: 1.3; margin: 0 0 10px; color: var(--mss-text); font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.mss-footer ul { list-style: none; margin: 0; padding: 0; }
.mss-footer li { margin: 0; }
.mss-footer .mss-footer-inner a, .mss-footer .mss-footer-inner .mss-linklike {
  display: inline-flex; align-items: center; min-height: 32px;
  color: var(--mss-muted); text-decoration: none;
}
.mss-footer .mss-footer-inner a:hover, .mss-footer .mss-footer-inner .mss-linklike:hover { color: var(--mss-text); text-decoration: underline; }
.mss-footer .mss-footer-inner .mss-linklike { appearance: none; border: 0; padding: 0; background: none; font: inherit; cursor: pointer; text-align: left; }
.mss-footer-note {
  margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--mss-line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 14px;
}
.mss-footer-note p { margin: 0; max-width: 80ch; }
@media (max-width: 900px) {
  .mss-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mss-footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .mss-footer-inner { padding: 40px 16px 24px; }
}

.mss-header a:focus-visible, .mss-header button:focus-visible,
.mss-footer a:focus-visible, .mss-footer button:focus-visible, .mss-skip:focus-visible {
  outline: 3px solid var(--mss-focus) !important; outline-offset: 2px !important;
}
@media (prefers-reduced-motion: reduce) {
  .mss-header { -webkit-backdrop-filter: none; backdrop-filter: none; }
}
