/* Shared MDI page canvas and rounded navigation treatment. */
:root {
  color-scheme: dark;
  --mdi-page-bg: #0b0d0a;
  --mdi-page-glow: rgba(104, 143, 41, 0.09);
}

html { background: var(--mdi-page-bg); scroll-padding-top: 110px; }
/* Conditional UI must stay hidden even when a component uses flex or grid. */
[hidden]:not([hidden="until-found"]) { display: none !important; }
:root { --mdi-focus: #b9ff3b; --mdi-muted-text: #acb5a5; }
:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--mdi-focus); outline-offset: 4px;
}
:where(button, a, input, select, textarea) { -webkit-tap-highlight-color: transparent; }
button:not(:disabled), summary { cursor: pointer; }
button:disabled { cursor: not-allowed; }
:where(dialog) { max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; }
:where(dialog)::backdrop { background: rgba(3,6,3,.72); backdrop-filter: blur(8px); }
:where(main) { min-width: 0; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
/* Preserve conditional account and membership navigation over page-level display rules. */
[data-guest-only][hidden],
[data-signed-in-only][hidden],
[data-member-only][hidden] { display: none !important; }
body.mdi-signed-in [data-guest-only] { display: none !important; }
body {
  background: radial-gradient(ellipse at 75% 0%, var(--mdi-page-glow), transparent 38%), var(--mdi-page-bg) !important;
}
body[data-member-gate="required"] { visibility: hidden; }

/* Keep the canvas smooth and quiet across pages with legacy grid/grain layers. */
body::before,
body::after,
.noise,
.auth-grain { display: none !important; }

.site-nav .nav-pill {
  width: 100%;
  min-height: 68px;
  border-radius: 22px;
}
.funding-shell .funding-nav-shell {
  width: min(1440px, calc(100vw - 80px));
  margin-right: auto;
  margin-left: auto;
}
.workspace-global-nav {
  position: fixed;
  z-index: 7;
  top: 12px;
  right: 0;
  left: 0;
  display: flex;
  justify-content: center;
  padding: 0 40px;
}
.workspace-global-nav .nav-pill {
  width: min(1440px, 100%);
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 8px 20px;
  border: 1px solid rgba(226, 239, 215, .18);
  border-radius: 22px;
  background: rgba(18, 23, 17, .88);
  box-shadow: 0 16px 48px rgba(0, 0, 0, .3), inset 0 1px rgba(255, 255, 255, .1);
  backdrop-filter: blur(22px) saturate(125%);
  -webkit-backdrop-filter: blur(22px) saturate(125%);
}
body:has(> .shell) .shell { padding-top: 104px; }
.workspace-global-nav .wordmark { position: relative; z-index: 1; display: flex; flex: none; align-items: center; gap: 10px; color: #e5e8de; font-family: 'DM Mono', monospace; font-size: 10px; font-weight: 700; line-height: 1.15; letter-spacing: .09em; }
.workspace-global-nav .wordmark em { color: #b9ff3b; font-style: normal; }
.workspace-global-nav .wordmark-mark { display: flex; width: 27px; height: 30px; align-items: flex-end; gap: 3px; transform: skew(-17deg); }
.workspace-global-nav .wordmark-mark span { display: block; width: 6px; border-radius: 2px 2px 0 0; background: #b9ff3b; }
.workspace-global-nav .wordmark-mark span:nth-child(1) { height: 13px; }
.workspace-global-nav .wordmark-mark span:nth-child(2) { height: 21px; }
.workspace-global-nav .wordmark-mark span:nth-child(3) { height: 28px; }
.workspace-global-links { display: flex; flex: 0 1 auto; max-width: calc(100% - 150px); min-width: 0; align-items: center; justify-content: flex-end; gap: clamp(8px, 1.6vw, 22px); overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.workspace-global-links::-webkit-scrollbar { display: none; }
.workspace-global-links a { display: inline-flex; align-items: center; min-height: 42px; padding: 0 7px; border-radius: 10px; color: #bdc7b7; font-size: 12px; }
.workspace-global-links a:hover,
.workspace-global-links a[aria-current="page"],
.workspace-global-links a.is-active { color: var(--mdi-page-bg); background: #b9ff3b; }
.mdi-membership-notice { width: min(900px, calc(100% - 32px)); margin: 18px auto 0; padding: 14px 18px; border: 1px solid rgba(185, 255, 59, .28); border-radius: 14px; background: rgba(185, 255, 59, .07); color: #dce5d3; font-size: 13px; line-height: 1.5; }
.app-shell { padding-top: 92px; }
.app-shell .sidebar { top: 92px; bottom: auto; height: calc(100vh - 92px); }
.app-shell .main-area { min-height: calc(100vh - 92px); }
.events-nav {
  border-radius: 22px;
  background: rgba(20, 24, 19, .88);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .24), inset 0 1px rgba(255, 255, 255, .08);
}
.events-nav nav a[aria-current="page"],
.events-nav nav a.is-active { color: #b9ff3b; }
.site-menu a:last-child { margin-top: 0; background: transparent; color: #dce1d5; font-weight: 500; }
.site-menu a[aria-current="page"] { background: rgba(185,255,59,.1); color: #b9ff3b; }

/* Quiet liquid-glass interaction for the shared MDI navigation links. */
:is(.nav-links, .site-menu, .workspace-global-links, .funding-nav, .funding-mobile-menu, .events-nav nav) > a {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
  transition:
    color 260ms cubic-bezier(.2,.8,.2,1),
    background-color 260ms ease,
    border-color 260ms ease,
    box-shadow 320ms cubic-bezier(.2,.8,.2,1),
    transform 360ms cubic-bezier(.2,1.35,.4,1);
  -webkit-backdrop-filter: blur(14px) saturate(145%);
  backdrop-filter: blur(14px) saturate(145%);
}
:is(.nav-links, .site-menu, .workspace-global-links, .funding-nav, .funding-mobile-menu, .events-nav nav) > a::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -45% auto -45% -70%;
  width: 42%;
  border-radius: inherit;
  background: linear-gradient(105deg, transparent 4%, rgba(255,255,255,.02) 25%, rgba(255,255,255,.28) 49%, rgba(185,255,59,.1) 58%, transparent 82%);
  opacity: 0;
  transform: skewX(-19deg);
  pointer-events: none;
}
:is(.nav-links, .site-menu, .workspace-global-links, .funding-nav, .funding-mobile-menu, .events-nav nav) > a:hover,
:is(.nav-links, .site-menu, .workspace-global-links, .funding-nav, .funding-mobile-menu, .events-nav nav) > a:focus-visible {
  color: #f4f8ed;
  border-color: rgba(239,248,229,.2);
  background: linear-gradient(135deg, rgba(245,250,239,.14), rgba(185,255,59,.045) 58%, rgba(255,255,255,.025));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), inset 0 -1px 0 rgba(255,255,255,.035), 0 7px 20px rgba(0,0,0,.22), 0 0 18px rgba(185,255,59,.045);
  transform: translateY(-1px);
}
:is(.nav-links, .site-menu, .workspace-global-links, .funding-nav, .funding-mobile-menu, .events-nav nav) > a:hover::before,
:is(.nav-links, .site-menu, .workspace-global-links, .funding-nav, .funding-mobile-menu, .events-nav nav) > a:focus-visible::before {
  opacity: 1;
  animation: mdi-glass-sweep 760ms cubic-bezier(.16,.8,.24,1) both;
}
.workspace-global-links a[aria-current="page"],
.workspace-global-links a.is-active,
.events-nav nav a[aria-current="page"],
.events-nav nav a.is-active,
.funding-nav a[aria-current="page"],
.funding-nav a.is-active,
.nav-links a[aria-current="page"],
.nav-links a.is-active,
.site-menu a[aria-current="page"],
.funding-mobile-menu a[aria-current="page"] {
  color: #dfffaa;
  border-color: rgba(185,255,59,.28);
  background: linear-gradient(135deg, rgba(230,255,198,.14), rgba(185,255,59,.085) 56%, rgba(255,255,255,.035));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.21), inset 0 -1px 0 rgba(255,255,255,.04), 0 5px 18px rgba(0,0,0,.17), 0 0 18px rgba(185,255,59,.065);
}
:is(.nav-links, .site-menu, .workspace-global-links, .funding-nav, .funding-mobile-menu, .events-nav nav) > a:active {
  transform: translateY(0) scale(.965);
  transition-duration: 90ms;
}
@keyframes mdi-glass-sweep {
  0% { transform: translateX(0) skewX(-19deg); }
  100% { transform: translateX(390%) skewX(-19deg); }
}
.events-shell {
  max-width: 1520px;
  padding-right: 40px;
  padding-left: 40px;
}
.profile-page .topbar,
body:has(> .page#profileApp) .topbar,
body:has(> .shell) .topbar,
body:has(> .app-shell) .topbar {
  margin: 12px 16px 0;
  min-height: 62px;
  border: 1px solid rgba(226, 233, 220, .14);
  border-radius: 20px;
  background: rgba(20, 24, 19, .88);
}
body.auth-page .auth-header {
  width: min(1440px, calc(100% - 80px));
  height: 64px;
  margin: 14px auto 0;
  padding: 0 20px;
  border: 1px solid rgba(226, 233, 220, .16);
  border-radius: 20px;
  background: rgba(20, 24, 19, .88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
body.auth-page .auth-site-nav { display: flex; align-items: center; gap: 22px; color: #bdc7b7; font-size: 12px; }
body.auth-page .auth-site-nav a:hover,
body.auth-page .auth-site-nav a[aria-current="page"] { color: #b9ff3b; }

body:has(> .page#profileApp) .page { padding-top: 92px; }
body:has(> .page#profileApp) .sidebar { top: 92px; height: calc(100vh - 92px); }

.about-shell { width: min(1440px, calc(100% - 80px)); }
.about-main { padding: 74px clamp(8px, 4vw, 58px) 46px; }
.about-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(270px, .65fr); align-items: end; gap: clamp(44px, 9vw, 140px); padding: 36px 0 76px; border-bottom: 1px solid rgba(226,233,220,.15); }
.about-eyebrow,.about-kicker { display: flex; align-items: center; gap: 10px; color: #aeb9a5; font: 600 10px/1.4 'DM Mono',monospace; letter-spacing: .15em; }
.about-eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: #b9ff3b; }
.about-copy h1 { margin: 25px 0 22px; color: #eff2ea; font-size: clamp(64px, 9vw, 128px); font-weight: 600; letter-spacing: -.09em; line-height: .88; }
.about-copy h1 em,.about-team-heading h2 em { color: #b9ff3b; font-style: normal; }
.about-lead { max-width: 700px; margin: 0; color: #b5bdb0; font-size: clamp(16px, 1.55vw, 20px); line-height: 1.65; }
.about-note { padding: 24px 26px; border: 1px solid rgba(185,255,59,.24); border-radius: 18px; background: linear-gradient(145deg, rgba(185,255,59,.075), rgba(20,24,19,.78)); }
.about-note p { margin: 17px 0 0; color: #e6ecdf; font-size: 18px; line-height: 1.55; letter-spacing: -.025em; }
.about-kicker { color: #b9ff3b; }
.about-principles { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); padding: 34px 0 64px; border-bottom: 1px solid rgba(226,233,220,.15); }
.about-principles article { min-height: 190px; padding: 12px 30px; border-left: 1px solid rgba(226,233,220,.12); }
.about-principles article:first-child { padding-left: 0; border-left: 0; }
.about-principles article > span,.about-people article > span { color: #aeb9a5; font: 600 10px 'DM Mono',monospace; letter-spacing: .13em; }
.about-principles h2 { max-width: 320px; margin: 26px 0 12px; color: #eff2ea; font-size: clamp(21px,2.3vw,30px); letter-spacing: -.05em; }
.about-principles p,.about-team-heading > p:last-child { max-width: 360px; margin: 0; color: #aab3a4; font-size: 14px; line-height: 1.65; }
.about-team { display: grid; grid-template-columns: minmax(240px,.75fr) minmax(0,1.25fr); gap: clamp(40px,8vw,118px); padding: 64px 0 58px; }
.about-team-heading h2 { margin: 22px 0 18px; color: #eff2ea; font-size: clamp(40px,5vw,64px); letter-spacing: -.075em; line-height: .96; }
.about-team-heading > p:last-child { max-width: 390px; }
.about-people { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-content: start; gap: 0 28px; }
.about-people article { min-width: 0; padding: 18px 0; border-bottom: 1px solid rgba(226,233,220,.13); }
.about-people h3 { margin: 10px 0 5px; color: #e8ece3; font-size: 15px; letter-spacing: -.025em; }
.about-people p { margin: 0; color: #a9b2a3; font-size: 12px; }
.about-footer { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; border-top: 1px solid rgba(226,233,220,.15); color: #9aa494; font: 10px 'DM Mono',monospace; letter-spacing: .12em; text-transform: uppercase; }
.about-footer a { color: #c4ff64; }

@media (max-width: 700px) {
  .site-nav .nav-pill { min-height: 60px; border-radius: 18px; }
  .funding-shell .funding-nav-shell { width: calc(100vw - 24px); }
  .events-nav { border-radius: 18px; }
  .workspace-global-nav { top: 8px; padding: 0 12px; }
  .workspace-global-nav .nav-pill { min-height: 60px; gap: 10px; padding: 7px 10px; border-radius: 18px; }
  .workspace-global-nav .wordmark { gap: 7px; font-size: 8px; }
  .workspace-global-nav .wordmark-mark { width: 22px; height: 24px; }
  .workspace-global-links { gap: 4px; overflow-x: auto; }
  .workspace-global-links { flex: 1; justify-content: flex-end; }
  .workspace-global-links a { min-height: 38px; padding: 0 7px; font-size: 9px; white-space: nowrap; }
  .app-shell { padding-top: 78px; }
  .app-shell .sidebar { top: 78px; height: calc(100vh - 78px); }
  .app-shell .main-area { min-height: calc(100vh - 78px); }
  body.auth-page .auth-header { width: calc(100% - 24px); margin-top: 10px; padding: 0 14px; border-radius: 17px; }
  body.auth-page .auth-site-nav { gap: 9px; font-size: 9px; }
  body:has(> .page#profileApp) .topbar,
  body:has(> .shell) .topbar,
  body:has(> .app-shell) .topbar { margin: 8px 8px 0; border-radius: 16px; }
  body:has(> .page#profileApp) .page { padding-top: 76px; }
  body:has(> .page#profileApp) .sidebar { top: 76px; height: calc(100vh - 76px); }
  body:has(> .shell) .shell { padding-top: 82px; }
  body.auth-page .auth-site-nav { max-width: 42vw; overflow-x: auto; white-space: nowrap; }
  .events-nav nav { gap: 5px; max-width: 72%; overflow-x: auto; scrollbar-width: none; }
  .events-nav nav a { flex: none; font-size: 9px; }
  .fc-nav { display: none !important; }
  .fc-nav-shell .nav-pill > .nav-right > .menu-button { display: grid; }
  .about-shell { width: calc(100% - 24px); }
  .about-main { padding: 34px 4px 28px; }
  .about-hero { grid-template-columns: 1fr; gap: 28px; padding: 20px 0 42px; }
  .about-copy h1 { font-size: clamp(58px, 15vw, 90px); }
  .about-note { max-width: 560px; }
  .about-principles { grid-template-columns: 1fr; padding: 20px 0 32px; }
  .about-principles article,.about-principles article:first-child { min-height: 0; padding: 22px 0; border-left: 0; border-bottom: 1px solid rgba(226,233,220,.12); }
  .about-principles article:last-child { border-bottom: 0; }
  .about-principles h2 { margin: 15px 0 8px; }
  .about-team { grid-template-columns: 1fr; gap: 28px; padding: 40px 0; }
  .about-people { gap: 0 16px; }
  .about-footer { font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  :is(.nav-links, .site-menu, .workspace-global-links, .funding-nav, .funding-mobile-menu, .events-nav nav) > a { transition: none; }
  :is(.nav-links, .site-menu, .workspace-global-links, .funding-nav, .funding-mobile-menu, .events-nav nav) > a::before { animation: none !important; }
  :is(.nav-links, .site-menu, .workspace-global-links, .funding-nav, .funding-mobile-menu, .events-nav nav) > a:hover,
  :is(.nav-links, .site-menu, .workspace-global-links, .funding-nav, .funding-mobile-menu, .events-nav nav) > a:focus-visible,
  :is(.nav-links, .site-menu, .workspace-global-links, .funding-nav, .funding-mobile-menu, .events-nav nav) > a:active { transform: none; }
}

/* One shared MDI navigation size across public, member, and admin pages. */
:root {
  --mdi-nav-width: 1280px;
  --mdi-nav-height: 72px;
}
.site-nav,
.fc-nav-shell {
  justify-content: center;
}
.site-nav .nav-pill,
.fc-nav-shell .nav-pill,
.funding-shell .funding-nav-shell .funding-nav-pill,
.workspace-global-nav .nav-pill {
  width: min(var(--mdi-nav-width), 100%);
  min-height: var(--mdi-nav-height);
  border-radius: 20px;
}
.site-nav .nav-pill,
.fc-nav-shell .nav-pill,
.funding-shell .funding-nav-shell .funding-nav-pill,
.workspace-global-nav .nav-pill {
  box-sizing: border-box;
}
.funding-shell .funding-nav-shell {
  width: min(var(--mdi-nav-width), 100%);
}
.workspace-global-nav {
  padding-inline: 20px;
}
.workspace-global-nav .nav-pill {
  max-width: var(--mdi-nav-width);
}
.events-shell .events-nav {
  width: min(var(--mdi-nav-width), 100%);
  min-height: var(--mdi-nav-height);
  margin-inline: auto;
  border-radius: 20px;
}
body.auth-page .auth-header {
  width: min(var(--mdi-nav-width), calc(100vw - 40px));
  min-height: var(--mdi-nav-height);
  height: var(--mdi-nav-height);
  border-radius: 20px;
}

/* Keep the same liquid-glass feedback on every page's navigation actions. */
:is(.nav-links, .site-menu, .workspace-global-links, .funding-nav, .funding-mobile-menu, .events-nav nav, .auth-site-nav) > a,
.auth-header > a:not(.auth-brand),
.events-account {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 999px;
  transition: color 260ms cubic-bezier(.2,.8,.2,1), background-color 260ms ease, border-color 260ms ease, box-shadow 320ms cubic-bezier(.2,.8,.2,1), transform 360ms cubic-bezier(.2,1.35,.4,1);
  -webkit-backdrop-filter: blur(14px) saturate(145%);
  backdrop-filter: blur(14px) saturate(145%);
}
:is(.nav-links, .site-menu, .workspace-global-links, .funding-nav, .funding-mobile-menu, .events-nav nav, .auth-site-nav) > a:hover,
:is(.nav-links, .site-menu, .workspace-global-links, .funding-nav, .funding-mobile-menu, .events-nav nav, .auth-site-nav) > a:focus-visible,
.auth-header > a:not(.auth-brand):hover,
.auth-header > a:not(.auth-brand):focus-visible,
.events-account:hover,
.events-account:focus-visible {
  color: #f4f8ed;
  border-color: rgba(239,248,229,.2);
  background: linear-gradient(135deg, rgba(245,250,239,.14), rgba(185,255,59,.045) 58%, rgba(255,255,255,.025));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), inset 0 -1px 0 rgba(255,255,255,.035), 0 7px 20px rgba(0,0,0,.22), 0 0 18px rgba(185,255,59,.045);
  transform: translateY(-1px);
}
:is(.nav-links, .site-menu, .workspace-global-links, .funding-nav, .funding-mobile-menu, .events-nav nav, .auth-site-nav) > a:active,
.auth-header > a:not(.auth-brand):active,
.events-account:active {
  transform: translateY(0) scale(.965);
  transition-duration: 90ms;
}
@media (max-width: 700px) {
  .site-nav .nav-pill,
  .fc-nav-shell .nav-pill,
  .funding-shell .funding-nav-shell .funding-nav-pill,
  .workspace-global-nav .nav-pill,
  .events-shell .events-nav,
  body.auth-page .auth-header {
    width: min(var(--mdi-nav-width), 100%);
    min-height: 62px;
    height: auto;
    border-radius: 18px;
  }
  .workspace-global-nav { padding-inline: 17px; }
  body.auth-page .auth-header { width: calc(100% - 34px); height: 54px; }
}
@media (prefers-reduced-motion: reduce) {
  :is(.nav-links, .site-menu, .workspace-global-links, .funding-nav, .funding-mobile-menu, .events-nav nav, .auth-site-nav) > a,
  .auth-header > a:not(.auth-brand),
  .events-account { transition: none; }
  :is(.nav-links, .site-menu, .workspace-global-links, .funding-nav, .funding-mobile-menu, .events-nav nav, .auth-site-nav) > a:hover,
  :is(.nav-links, .site-menu, .workspace-global-links, .funding-nav, .funding-mobile-menu, .events-nav nav, .auth-site-nav) > a:focus-visible,
  :is(.nav-links, .site-menu, .workspace-global-links, .funding-nav, .funding-mobile-menu, .events-nav nav, .auth-site-nav) > a:active,
  .auth-header > a:not(.auth-brand):hover,
  .auth-header > a:not(.auth-brand):focus-visible,
  .auth-header > a:not(.auth-brand):active,
  .events-account:hover,
  .events-account:focus-visible,
  .events-account:active { transform: none; }
}

/* Final override: navigation links use a calm, non-reflective interaction. */
:is(.nav-links, .site-menu, .workspace-global-links, .funding-nav, .funding-mobile-menu, .events-nav nav, .auth-site-nav) > a::before,
.auth-header > a:not(.auth-brand)::before,
.events-account::before {
  content: none !important;
  display: none !important;
  animation: none !important;
}
:is(.nav-links, .site-menu, .workspace-global-links, .funding-nav, .funding-mobile-menu, .events-nav nav, .auth-site-nav) > a,
.auth-header > a:not(.auth-brand),
.events-account {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}
:is(.nav-links, .site-menu, .workspace-global-links, .funding-nav, .funding-mobile-menu, .events-nav nav, .auth-site-nav) > a:hover,
:is(.nav-links, .site-menu, .workspace-global-links, .funding-nav, .funding-mobile-menu, .events-nav nav, .auth-site-nav) > a:focus-visible,
.auth-header > a:not(.auth-brand):hover,
.auth-header > a:not(.auth-brand):focus-visible,
.events-account:hover,
.events-account:focus-visible {
  color: #f4f8ed;
  border-color: rgba(220,229,211,.22);
  background: rgba(220,229,211,.07);
  box-shadow: none;
  transform: translateY(-1px);
}
:is(.workspace-global-links, .events-nav nav, .funding-nav, .nav-links, .site-menu) > a[aria-current="page"],
:is(.workspace-global-links, .events-nav nav, .funding-nav, .nav-links, .site-menu) > a.is-active {
  color: #dfffaa;
  border-color: rgba(185,255,59,.24);
  background: rgba(185,255,59,.075);
  box-shadow: none;
}

.mdi-notification-trigger {
  position: relative;
  display: inline-grid;
  width: 44px;
  height: 44px;
  flex: none;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(220,225,213,.16);
  border-radius: 50%;
  background: rgba(220,225,213,.035);
  color: #c8d0c0;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}
.mdi-notification-trigger:hover,
.mdi-notification-trigger:focus-visible { border-color: rgba(185,255,59,.42); background: rgba(185,255,59,.08); color: #e8f2dc; }
.mdi-notification-trigger svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mdi-notification-count { position: absolute; top: -4px; right: -4px; display: grid; min-width: 16px; height: 16px; place-items: center; padding: 0 4px; border-radius: 999px; background: #b9ff3b; color: #11150c; font: 700 9px/1 Arial,sans-serif; }
.mdi-notification-count[hidden] { display: none; }

/* Shared MDI glass navigation: larger and consistent across every section. */
:is(.site-nav .nav-pill, .fc-nav-shell .nav-pill, .funding-shell .funding-nav-shell .funding-nav-pill, .workspace-global-nav .nav-pill, .events-shell .events-nav, body.auth-page .auth-header) {
  border: 1px solid rgba(226, 236, 218, .22);
  background: linear-gradient(112deg, rgba(236, 242, 230, .105), rgba(38, 49, 35, .66) 46%, rgba(10, 13, 10, .88));
  box-shadow: 0 18px 48px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 -1px 0 rgba(0, 0, 0, .36);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
  backdrop-filter: blur(22px) saturate(135%);
}
:is(.nav-links, .site-menu, .workspace-global-links, .funding-nav, .funding-mobile-menu, .events-nav nav, .auth-site-nav) > a,
.auth-header > a:not(.auth-brand) {
  min-height: 46px;
  padding-inline: 14px;
  font-size: 12px;
}
.mdi-notification-trigger { width: 48px; height: 48px; }
@media (max-width: 700px) {
  :is(.nav-links, .site-menu, .workspace-global-links, .funding-nav, .funding-mobile-menu, .events-nav nav, .auth-site-nav) > a,
  .auth-header > a:not(.auth-brand) { min-height: 42px; padding-inline: 10px; font-size: 11px; }
  .mdi-notification-trigger { width: 42px; height: 42px; }
}
.mdi-notifications-dialog { position: fixed; width: min(520px,calc(100% - 28px)); max-height: min(620px,calc(100dvh - 32px)); margin: auto; padding: 27px; overflow: auto; border: 1px solid rgba(220,225,213,.19); border-radius: 18px; background: #11150f; color: #eff2ea; box-shadow: 0 24px 80px rgba(0,0,0,.7); }
.mdi-notifications-dialog::backdrop { background: rgba(3,5,3,.72); }
.mdi-notifications-close { position: absolute; top: 13px; right: 14px; width: 34px; height: 34px; border: 1px solid rgba(220,225,213,.16); border-radius: 50%; background: transparent; color: #c4cbbb; font-size: 20px; cursor: pointer; }
.mdi-notifications-kicker { margin: 0 0 8px; color: #b9ff3b; font: 700 9px/1.5 'DM Mono',monospace; letter-spacing: .13em; }
.mdi-notifications-dialog h2 { margin: 0 42px 18px 0; font-size: 26px; letter-spacing: -.05em; }
.mdi-notifications-list { display: grid; gap: 9px; color: #aeb7a5; font-size: 12px; line-height: 1.5; }
.mdi-notifications-empty { margin: 0; padding: 20px; border: 1px solid rgba(220,225,213,.1); border-radius: 12px; text-align: center; }
.mdi-notification-item { display: grid; gap: 12px; padding: 14px; border: 1px solid rgba(220,225,213,.12); border-radius: 12px; background: rgba(220,225,213,.025); }
.mdi-notification-item strong { color: #e8ede2; font-size: 12px; }
.mdi-notification-item p { margin: 5px 0 0; color: #aeb7a5; font-size: 11px; text-transform: capitalize; }
.mdi-notification-actions { display: flex; gap: 8px; }
.mdi-notification-actions button { min-height: 34px; padding: 0 12px; border: 1px solid rgba(220,225,213,.17); border-radius: 8px; background: rgba(220,225,213,.04); color: #e8ede2; cursor: pointer; }
.mdi-notification-actions button:first-child { border-color: rgba(185,255,59,.4); background: rgba(185,255,59,.09); color: #dfffaa; }
@media (max-width: 700px) { .mdi-notification-trigger { width: 44px; height: 44px; } .mdi-notifications-dialog { padding: 23px 17px; } }

@media (max-width: 760px) {
  .events-shell { padding-right: 16px; padding-left: 16px; }
}

/* Use one navigation footprint everywhere, with a quiet hover state and no shine sweep. */
:root { --mdi-nav-width: 1280px; --mdi-nav-height: 72px; }
.site-nav,
.fc-nav-shell { justify-content: center; }
.site-nav .nav-pill,
.fc-nav-shell .nav-pill,
.funding-shell .funding-nav-shell .funding-nav-pill,
.workspace-global-nav .nav-pill,
.events-shell .events-nav,
body.auth-page .auth-header {
  width: min(var(--mdi-nav-width), 100%);
  min-height: var(--mdi-nav-height);
  height: auto;
  box-sizing: border-box;
  border-radius: 20px;
}
.workspace-global-nav { padding-inline: 20px; }
.workspace-global-nav .nav-pill { max-width: var(--mdi-nav-width); }
.fc-wrap > .fc-nav-shell { width: 100%; padding-inline: 0; }
.funding-shell .funding-nav-shell { width: min(var(--mdi-nav-width), 100%); }
.events-shell .events-nav { margin-inline: auto; }
:is(.nav-links, .site-menu, .workspace-global-links, .funding-nav, .funding-mobile-menu, .events-nav nav, .auth-site-nav) > a::before,
.fc-body .fc-nav a::before { display: none !important; content: none !important; animation: none !important; }
:is(.nav-links, .site-menu, .workspace-global-links, .funding-nav, .funding-mobile-menu, .events-nav nav, .auth-site-nav) > a,
.fc-body .fc-nav a {
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
  transform: none;
  box-shadow: none;
}
:is(.nav-links, .site-menu, .workspace-global-links, .funding-nav, .funding-mobile-menu, .events-nav nav) > a:hover,
:is(.nav-links, .site-menu, .workspace-global-links, .funding-nav, .funding-mobile-menu, .events-nav nav) > a:focus-visible,
.fc-body .fc-nav a:hover,
.fc-body .fc-nav a:focus-visible {
  color: #e9f6d9;
  background: rgba(185, 255, 59, .08);
  border-color: rgba(185, 255, 59, .24);
  transform: none;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
:is(.nav-links, .site-menu, .workspace-global-links, .funding-nav, .funding-mobile-menu, .events-nav nav) > a:active,
.fc-body .fc-nav a:active { transform: none; transition-duration: 120ms; }
@media (max-width: 700px) {
  .site-nav .nav-pill,
  .fc-nav-shell .nav-pill,
  .funding-shell .funding-nav-shell .funding-nav-pill,
  .workspace-global-nav .nav-pill,
  .events-shell .events-nav,
  body.auth-page .auth-header { min-height: 62px; border-radius: 18px; }
  .workspace-global-nav { padding-inline: 17px; }
  .fc-wrap > .fc-nav-shell { height: 82px; }
}
/* Hide only before the first navigation render; cached navigation avoids a blank bar on page changes. */
body:not([data-mdi-navigation-cache="ready"]):not([data-membership-ready="true"]) [data-mdi-navigation],
body:not([data-mdi-navigation-cache="ready"]):not([data-membership-ready="true"]) [data-guest-only],
body:not([data-mdi-navigation-cache="ready"]):not([data-membership-ready="true"]) [data-signed-in-only],
body:not([data-mdi-navigation-cache="ready"]):not([data-membership-ready="true"]) [data-member-only] {
  visibility: hidden;
}

