
/* MSAC CAPITAL — unified navigation
   Move With MSAC visual identity across all primary pages. */

.msac-site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-height: 76px !important;
  height: 76px !important;
  margin: 0 !important;
  padding: 0 clamp(18px, 4.5vw, 64px) !important;

  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  gap: 14px 24px !important;

  background: rgba(255,255,255,.97) !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(0,0,0,.08) !important;
  box-shadow: none !important;

  backdrop-filter: saturate(180%) blur(12px) !important;
  -webkit-backdrop-filter: saturate(180%) blur(12px) !important;
}

.msac-site-header-inner {
  position: static !important;
  inset: auto !important;
  width: 100% !important;
  padding: 0 !important;
  display: contents !important;
}

/* Brand */

.msac-site-brand {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: max-content !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #171717 !important;
  text-decoration: none !important;
  line-height: 1 !important;
}

.msac-site-brand-mark {
  width: 38px !important;
  height: 38px !important;
  flex: 0 0 38px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid #d8d8d8 !important;
  border-radius: 50% !important;
  color: #171717 !important;
  font: 500 21px/1 Georgia, 'Times New Roman', serif !important;
  letter-spacing: 0 !important;
  transition: border-color .2s ease, color .2s ease !important;
}

.msac-site-brand:hover .msac-site-brand-mark {
  border-color: #128c7e !important;
  color: #128c7e !important;
}

.msac-site-brand-copy {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 5px !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
}

.msac-site-brand-copy strong {
  display: block !important;
  margin: 0 !important;
  color: #171717 !important;
  font: 700 14px/1.05 'Segoe UI', system-ui, -apple-system, sans-serif !important;
  letter-spacing: 1.55px !important;
}

.msac-site-brand-copy small {
  display: block !important;
  margin: 0 !important;
  color: #777 !important;
  font: 600 8px/1.1 'Segoe UI', system-ui, -apple-system, sans-serif !important;
  letter-spacing: 2.35px !important;
}

/* Main navigation */

.msac-site-nav {
  display: flex !important;
  flex: 0 1 auto !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 9px 15px !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  order: initial !important;
}

.msac-site-nav a,
.msac-site-nav button {
  position: relative !important;
  min-height: 36px !important;
  margin: 0 !important;
  padding: 8px 2px !important;

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

  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #222 !important;

  font: 550 11px/1.2 'Segoe UI', system-ui, -apple-system, sans-serif !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  cursor: pointer !important;

  transition: color .2s ease !important;
}

/* Green text hover — matching Move With MSAC */

.msac-site-nav a:hover,
.msac-site-nav button:hover {
  background: transparent !important;
  color: #128c7e !important;
}

/* Subtle active-page indication */

.msac-site-nav a[aria-current="page"] {
  background: transparent !important;
  color: #128c7e !important;
  font-weight: 700 !important;
}

.msac-site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: 2px;
  bottom: 2px;
  left: 2px;
  height: 2px;
  border-radius: 2px;
  background: #128c7e;
  transform: scaleX(1);
  transform-origin: center;
}

.msac-site-nav a:not([aria-current="page"])::after {
  content: "";
  position: absolute;
  right: 2px;
  bottom: 2px;
  left: 2px;
  height: 2px;
  border-radius: 2px;
  background: #128c7e;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s ease;
}

.msac-site-nav a:not([aria-current="page"]):hover::after {
  transform: scaleX(1);
}

.msac-site-nav a:focus-visible,
.msac-site-nav button:focus-visible {
  outline: 2px solid #128c7e !important;
  outline-offset: 4px !important;
  border-radius: 2px !important;
}

/* Account area */

.msac-site-account {
  display: flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.msac-site-account > a,
.msac-site-account > button {
  min-height: 36px !important;
  margin: 0 !important;
  padding: 8px 0 !important;

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

  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #555 !important;

  font: 550 11px/1.2 'Segoe UI', system-ui, -apple-system, sans-serif !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  cursor: pointer !important;

  transition:
    color .2s ease,
    background .2s ease,
    border-color .2s ease,
    transform .2s ease !important;
}

/* Sign-in is the primary account action */

.msac-site-account > a:not([hidden]) {
  border-color: #128c7e !important;
  background: #128c7e !important;
  color: #fff !important;
}

.msac-site-account > a:not([hidden]):hover {
  border-color: #0c6f65 !important;
  background: #0c6f65 !important;
  color: #fff !important;
  transform: translateY(-1px) !important;
}

/* Sign-out uses the quiet text-only treatment from the Messages page. */

.msac-site-account > button {
  border: 0 !important;
  background: transparent !important;
  color: #555 !important;
}

.msac-site-account > button:hover {
  border: 0 !important;
  background: transparent !important;
  color: #128c7e !important;
}

.msac-site-account [hidden],
.msac-site-nav [hidden] {
  display: none !important;
}

/* Global account widget */

.msac-site-account .msac-global-account-status,
.msac-site-account .msac-global-dashboard,
.msac-site-account .msac-global-messages {
  display: none !important;
}

.msac-site-account .msac-global-account {
  display: flex !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

.msac-site-account .msac-global-account-link,
.msac-site-account .msac-global-account-button {
  min-height: 36px !important;
  padding: 8px 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #555 !important;
  font: 600 11px/1.2 'Segoe UI', system-ui, -apple-system, sans-serif !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition:
    color .2s ease,
    background .2s ease,
    border-color .2s ease !important;
}

.msac-site-account .msac-global-account-link:hover,
.msac-site-account .msac-global-account-button:hover {
  border-color: #128c7e !important;
  background: #128c7e !important;
  color: #fff !important;
}

/* Connection status */

.msac-site-header .connection-status {
  font-size: 10px !important;
}

/* Unread-message count */

.msac-site-nav a[href="messages.html"] {
  gap: 7px !important;
}

.msac-unread-badge {
  display: inline-flex;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #d92d35;
  color: #fff;
  font: 700 10px/1 'Segoe UI', system-ui, sans-serif;
  letter-spacing: 0;
  box-shadow: 0 0 0 2px #fff;
}

.msac-unread-badge[hidden] {
  display: none !important;
}

.msac-site-nav a.has-unread-messages {
  color: #202020 !important;
}

/* Unread professional-response badges */

.msac-unread-response-badge,
.requirement-response-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: #c93636;
  color: #fff;
  font: 700 10px/1 'Segoe UI', system-ui, sans-serif;
  letter-spacing: 0;
  vertical-align: middle;
  box-sizing: border-box;
}

.msac-unread-response-badge {
  margin-left: 7px;
}

.msac-unread-response-badge[hidden],
.requirement-response-badge[hidden] {
  display: none !important;
}

/* Tablet */

@media (max-width: 900px) {
  .msac-site-header {
    min-height: 108px !important;
    height: auto !important;
    padding: 8px 4% !important;
    flex-wrap: wrap !important;
    gap: 2px 14px !important;
  }

  .msac-site-nav {
    flex: 1 1 100% !important;
    justify-content: flex-start !important;
    order: 3 !important;
  }

  .msac-site-account {
    margin-left: auto !important;
  }
}

/* Mobile */

@media (max-width: 560px) {
  .msac-site-header {
    position: sticky !important;
    min-height: 108px !important;
    height: auto !important;
    padding: 8px 4% !important;
    align-items: center !important;
    gap: 2px 10px !important;
  }

  .msac-site-brand-mark {
    width: 34px !important;
    height: 34px !important;
    flex-basis: 34px !important;
    font-size: 19px !important;
  }

  .msac-site-brand-copy strong {
    font-size: 12px !important;
    letter-spacing: 1.15px !important;
  }

  .msac-site-brand-copy small {
    font-size: 7px !important;
    letter-spacing: 1.7px !important;
  }

  .msac-site-nav {
    flex: 1 1 100% !important;
    order: 3 !important;
    justify-content: space-between !important;
    gap: 2px !important;
    width: 100% !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    scrollbar-width: none !important;
  }

  .msac-site-nav::-webkit-scrollbar {
    display: none !important;
  }

  .msac-site-nav a,
  .msac-site-nav button {
    min-height: 34px !important;
    padding: 7px 5px !important;
    font-size: 10px !important;
  }

  .msac-site-account > a {
    min-height: 32px !important;
    padding: 7px 9px !important;
    font-size: 10px !important;
  }

  .msac-site-account > button {
    min-height: 32px !important;
    padding: 7px 0 !important;
    font-size: 10px !important;
  }

  .msac-site-account {
    margin-left: auto !important;
  }

  .msac-site-account .msac-global-account {
    gap: 4px !important;
  }
}

/* Homepage compatibility */

@media (max-width: 560px) {
  .gateway-page .gateway-main {
    padding-top: 22px !important;
  }
}

.gateway-page .msac-site-header {
  pointer-events: auto !important;
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  .msac-site-header *,
  .msac-site-header *::before,
  .msac-site-header *::after {
    transition-duration: .01ms !important;
  }
}


/* Shared footer — based on the Dashboard footer, consistent across the site. */
.msac-site-footer {
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px;
  width:100%; padding:25px 5%; border-top:1px solid #e8e8e5; background:#fff;
  color:#8b8b83; text-align:center; font-size:9px; letter-spacing:2.2px;
}
.msac-site-footer-brand { color:#77776f; font-weight:650; }
.msac-site-footer-copy { color:#8b8b83; font-size:10px; font-weight:400; letter-spacing:.15px; }


/* Shared signed-in profile / signed-out account actions */
.msac-site-account { position: relative; display:flex; align-items:center; justify-content:flex-end; flex:0 0 auto; }
.msac-profile-control { position:relative; display:flex; align-items:center; font-family:inherit; }
.msac-profile-guest { display:flex; align-items:center; gap:9px; }
.msac-profile-signin,.msac-profile-create { display:inline-flex; align-items:center; justify-content:center; min-height:38px; padding:0 15px; border-radius:999px; text-decoration:none; font-size:12px; font-weight:650; white-space:nowrap; transition:background .18s ease,border-color .18s ease; }
.msac-profile-signin { color:#202522; border:1px solid #dfe3df; background:#fff; }
.msac-profile-create { color:#fff; border:1px solid #202522; background:#202522; }
.msac-profile-signin:hover { background:#f5f6f3; }
.msac-profile-create:hover { background:#39433d; }
.msac-profile-trigger { display:flex; align-items:center; gap:9px; padding:4px 9px 4px 4px; border:1px solid #e7e9e5; border-radius:999px; background:#fff; color:#202522; cursor:pointer; text-align:left; }
.msac-profile-avatar { display:grid; place-items:center; width:34px; height:34px; flex:0 0 34px; border-radius:50%; background:#f1f2ee; color:#252b27; font-size:13px; font-weight:700; }
.msac-profile-trigger-copy { display:flex; flex-direction:column; gap:2px; min-width:0; }
.msac-profile-trigger-copy strong { max-width:110px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; font-weight:700; }
.msac-profile-trigger-copy small { color:#858c86; font-size:10px; line-height:1; }
.msac-profile-chevron { color:#7a827c; font-size:17px; line-height:1; margin-left:3px; }
.msac-profile-menu { position:absolute; z-index:500; top:calc(100% + 10px); right:0; width:225px; padding:8px; border:1px solid #e8eae6; border-radius:13px; background:#fff; box-shadow:0 14px 36px rgba(20,28,22,.13); }
.msac-profile-menu-identity { display:flex; flex-direction:column; gap:4px; padding:10px 11px 12px; border-bottom:1px solid #eef0ec; margin-bottom:5px; }
.msac-profile-menu-identity strong { color:#202522; font-size:13px; }
.msac-profile-menu-identity span { color:#858c86; font-size:11px; overflow-wrap:anywhere; }
.msac-profile-menu a,.msac-profile-menu button { display:flex; width:100%; align-items:center; padding:10px 11px; border:0; border-radius:8px; background:transparent; color:#303832; text-align:left; text-decoration:none; font:600 12px inherit; cursor:pointer; }
.msac-profile-menu a:hover { background:#f5f6f3; }
.msac-profile-menu button { color:#a13e36; }
.msac-profile-menu button:hover { background:#fff5f4; }
.msac-profile-member[hidden],.msac-profile-guest[hidden],.msac-profile-menu[hidden] { display:none !important; }
@media(max-width:760px) {
 .msac-site-account { flex:0 0 auto; }
 .msac-profile-trigger { gap:0; padding:3px; }
 .msac-profile-trigger-copy,.msac-profile-chevron { display:none; }
 .msac-profile-avatar { width:34px; height:34px; flex-basis:34px; }
 .msac-profile-menu { right:0; }
 .msac-profile-guest { gap:6px; }
 .msac-profile-signin,.msac-profile-create { min-height:34px; padding:0 10px; font-size:11px; }
}
.msac-site-account > #navSignOutButton,
.msac-site-account > #signOutButton { display:none !important; }
.msac-site-account > #navSignInLink { display:none !important; }

/* Avoid a signed-in/signed-out flash while Supabase restores the session. */


/* Force readable Create Account label on every page, including Requirements. */
.msac-site-account .msac-profile-create,
.msac-site-account .msac-profile-create:link,
.msac-site-account .msac-profile-create:visited,
.msac-site-account .msac-profile-create:hover,
.msac-site-account .msac-profile-create:focus,
.msac-site-account .msac-profile-create:active {
  color:#fff !important; -webkit-text-fill-color:#fff !important;
  background:#202522 !important; border-color:#202522 !important;
}
.msac-site-account .msac-profile-create:hover { background:#39433d !important; border-color:#39433d !important; }

/* Header alignment refinements: align the brand mark with the Messages PRIVATE INBOX edge. */
@media (min-width: 761px) {
  .msac-site-header {
    padding-left: calc((100vw - min(1540px, 96vw)) / 2 + 21px) !important;
  }
}
@media (max-width: 760px) {
  .msac-site-header {
    padding-left: calc((100vw - min(1540px, 96vw)) / 2 + 15px) !important;
  }
}

/* Keep the signed-in identity stack identical on every page; no dropdown arrow. */
.msac-profile-trigger-copy {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 2px !important;
  line-height: 1.15 !important;
}
.msac-profile-trigger-copy strong {
  display: block !important;
  margin: 0 !important;
  line-height: 1.15 !important;
}
.msac-profile-trigger-copy small {
  display: block !important;
  margin: 0 !important;
  line-height: 1.15 !important;
}
.msac-profile-chevron {
  display: none !important;
}


/* MSAC global notification bell — yellow, beside the signed-in profile. */
.msac-shared-header .msac-profile-member {
  display:flex !important; align-items:center !important; justify-content:flex-end !important; gap:10px !important;
  width:100% !important; min-width:0 !important;
}
.msac-shared-header .msac-notification-control { position:relative !important; display:flex !important; flex:0 0 36px !important; align-items:center !important; justify-content:center !important; }
.msac-shared-header .msac-notification-trigger {
  position:relative !important; display:grid !important; place-items:center !important; width:36px !important; height:40px !important;
  padding:0 !important; border:0 !important; border-radius:10px !important; background:transparent !important;
  color:#d5a21b !important; cursor:pointer !important; transition:background .18s ease, transform .18s ease !important;
}
.msac-shared-header .msac-notification-trigger:hover { background:#fff8e6 !important; transform:translateY(-1px) !important; }
.msac-shared-header .msac-notification-trigger:focus-visible { outline:2px solid #d5a21b !important; outline-offset:2px !important; }
.msac-shared-header .msac-notification-trigger svg { width:22px !important; height:22px !important; fill:none !important; stroke:currentColor !important; stroke-width:1.8 !important; stroke-linecap:round !important; stroke-linejoin:round !important; }
.msac-shared-header .msac-notification-count {
  position:absolute !important; top:1px !important; right:0 !important; display:grid !important; place-items:center !important;
  min-width:16px !important; height:16px !important; padding:0 4px !important; border:2px solid #fff !important; border-radius:999px !important;
  background:#b42318 !important; color:#fff !important; font:700 9px/1 'Segoe UI',system-ui,sans-serif !important;
}
.msac-shared-header .msac-notification-count[hidden] { display:none !important; }
.msac-shared-header .msac-notification-panel {
  position:absolute !important; z-index:700 !important; top:calc(100% + 12px) !important; right:-4px !important;
  width:min(340px, calc(100vw - 28px)) !important; padding:0 !important; border:1px solid #e8eae6 !important;
  border-radius:14px !important; background:#fff !important; box-shadow:0 16px 42px rgba(20,28,22,.16) !important;
  color:#202522 !important; text-align:left !important;
}
.msac-shared-header .msac-notification-panel[hidden] { display:none !important; }
.msac-notification-panel-heading { padding:15px 17px 12px !important; border-bottom:1px solid #eef0ec !important; font:700 13px/1.2 'Segoe UI',system-ui,sans-serif !important; }
.msac-notification-empty { padding:24px 17px !important; color:#7b827c !important; text-align:center !important; font:400 12px/1.5 'Segoe UI',system-ui,sans-serif !important; }
.msac-shared-header .msac-profile-trigger { width:auto !important; min-width:0 !important; flex:1 1 auto !important; }
@media(max-width:760px) {
  .msac-shared-header .msac-profile-member { gap:7px !important; }
  .msac-shared-header .msac-notification-control { flex-basis:34px !important; }
  .msac-shared-header .msac-notification-trigger { width:34px !important; height:38px !important; }
  .msac-shared-header .msac-profile-trigger { width:auto !important; flex:1 1 auto !important; }
  .msac-shared-header .msac-notification-panel { right:-2px !important; }
}

.msac-shared-header .msac-profile-member[hidden] { display:none !important; }


/* Notification history rows and unread state. */
.msac-shared-header .msac-notification-list { max-height:min(420px,65vh) !important; overflow-y:auto !important; }
.msac-shared-header .msac-notification-item {
  display:flex !important; align-items:flex-start !important; gap:12px !important; width:100% !important;
  padding:13px 16px !important; border:0 !important; border-bottom:1px solid #f0f1ed !important;
  background:#fff !important; color:#202522 !important; text-align:left !important; cursor:pointer !important;
}
.msac-shared-header .msac-notification-item:hover { background:#fffaf0 !important; }
.msac-shared-header .msac-notification-item.is-unread { background:#fffdf6 !important; }
.msac-shared-header .msac-notification-item-copy { display:flex !important; flex:1 1 auto !important; min-width:0 !important; flex-direction:column !important; gap:4px !important; }
.msac-shared-header .msac-notification-item-copy strong { color:#252923 !important; font:700 12px/1.35 'Segoe UI',system-ui,sans-serif !important; }
.msac-shared-header .msac-notification-item-copy span { color:#60685f !important; white-space:normal !important; font:400 12px/1.45 'Segoe UI',system-ui,sans-serif !important; }
.msac-shared-header .msac-notification-item-copy small { color:#92988f !important; font:400 10px/1.35 'Segoe UI',system-ui,sans-serif !important; }
.msac-shared-header .msac-notification-unread-dot { flex:0 0 7px !important; width:7px !important; height:7px !important; margin-top:5px !important; border-radius:50% !important; background:#d5a21b !important; }
