/* Shared marketing header, extracted from the production homepage. */
.five-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  padding: 0 clamp(22px, 3.6vw, 58px);
  display: flex;
  align-items: center;
  gap: clamp(24px, 2.4vw, 42px);
  border-bottom: 1px solid rgba(69, 94, 147, .12);
  background: rgba(249, 248, 245, .82);
  box-shadow: 0 10px 34px rgba(36, 54, 93, .05);
  backdrop-filter: blur(24px) saturate(140%);
}
.five-header.community-is-open { backdrop-filter: none; }

.five-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--five-ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .18em;
}

.five-brand > img {
  width: 31px;
  height: 31px;
  display: block;
  border-radius: 9px;
  box-shadow: 0 8px 20px rgba(69, 94, 147, .2), inset 0 1px rgba(255, 255, 255, .7);
}

.five-menu { display: none; margin-left: auto; border: 0; color: var(--five-ink); background: transparent; }
.five-nav { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.five-nav > div { display: flex; align-items: center; gap: clamp(18px,1.65vw,32px); }
.five-nav a { color: rgba(36,54,93,.72); font-size: 13px; font-weight: 600; }

.five-account-menu {
  position: relative;
  min-width: 0;
}
.five-account-trigger {
  min-width: 0;
  max-width: 174px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 4px 7px 4px 4px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: var(--five-ink);
  background: transparent;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.five-account-trigger:hover,
.five-account-trigger[aria-expanded="true"] {
  border-color: rgba(69, 94, 147, .12);
  background: rgba(255, 255, 255, .66);
  box-shadow: 0 8px 22px rgba(36, 54, 93, .06);
}
.five-account-avatar {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, var(--five-deep), var(--five-primary));
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.five-account-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.five-account-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--five-ink);
  font: 700 11.5px/1 "DM Sans", sans-serif;
}
.five-account-chevron {
  flex: 0 0 auto;
  color: rgba(69, 94, 147, .72);
  transition: transform .18s ease;
}
.five-account-trigger[aria-expanded="true"] .five-account-chevron { transform: rotate(180deg); }
.five-account-popover {
  position: absolute;
  z-index: 90;
  top: calc(100% + 9px);
  right: 0;
  width: 190px;
  padding: 6px;
  border: 1px solid rgba(69, 94, 147, .15);
  border-radius: 13px;
  background: rgba(255, 254, 250, .98);
  box-shadow: 0 22px 54px rgba(36, 54, 93, .16), inset 0 1px rgba(255, 255, 255, .9);
  backdrop-filter: blur(20px);
}
.five-account-popover a,
.five-account-popover button {
  width: 100%;
  min-height: 39px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 9px;
  color: var(--five-deep);
  background: transparent;
  font: 650 11.5px/normal "DM Sans", sans-serif;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
  transition: color .18s ease, background .18s ease;
}
.five-account-popover a:hover,
.five-account-popover button:hover {
  color: var(--five-ink);
  background: rgba(223, 230, 244, .52);
}
.five-account-popover svg {
  flex: 0 0 auto;
  color: rgba(69, 94, 147, .72);
}

.five-community-button {
  min-height: 42px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(69, 94, 147, .3);
  border-radius: 11px;
  color: var(--five-deep);
  background: rgba(255, 254, 250, .56);
  font: 600 12px/normal "DM Sans", sans-serif !important;
  cursor: pointer;
  transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
}
.five-community-button:hover {
  transform: translateY(-2px);
  border-color: rgba(86, 108, 229, .58);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 12px 28px rgba(69, 94, 147, .12);
}

.five-community-overlay {
  position: fixed;
  z-index: 120;
  inset: 0;
  padding: 22px;
  display: grid;
  place-items: center;
  background: rgba(13, 26, 54, .52);
  backdrop-filter: blur(16px) saturate(125%);
}
.five-community-dialog {
  position: relative;
  width: min(440px, 100%);
  padding: 34px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .76);
  border-radius: 28px;
  color: var(--five-ink);
  background:
    radial-gradient(circle at 86% 8%, rgba(107, 134, 232, .28), transparent 35%),
    linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(238, 242, 250, .96));
  box-shadow: 0 34px 90px rgba(7, 18, 46, .3), inset 0 1px rgba(255, 255, 255, .92);
  text-align: center;
}
.five-community-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(69, 94, 147, .18);
  border-radius: 50%;
  color: var(--five-deep);
  background: rgba(255, 255, 255, .72);
  cursor: pointer;
}
.five-community-eyebrow {
  margin: 4px 0 12px;
  color: var(--five-primary);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.five-community-dialog h2 {
  margin: 0;
  font-family: "Lora", Georgia, serif;
  font-size: clamp(34px, 4vw, 44px);
  font-weight: 400;
  letter-spacing: -.05em;
  line-height: 1;
}
.five-community-copy {
  max-width: 330px;
  margin: 16px auto 22px;
  color: var(--five-muted);
  font-size: 14px;
  line-height: 1.6;
}
.five-community-qr-link {
  width: min(260px, 74vw);
  margin: 0 auto;
  padding: 12px;
  display: block;
  border: 1px solid rgba(69, 94, 147, .14);
  border-radius: 24px;
  background: rgba(255, 255, 255, .8);
  box-shadow: 0 20px 48px rgba(69, 94, 147, .14);
}
.five-community-qr-link img { width: 100%; height: auto; display: block; border-radius: 15px; }
.five-community-open {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--five-primary) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}


/* Identical geometry for the production homepage and Journal navigation. */
.five-header {
  --five-ink: #24365d;
  --five-deep: #455e93;
  --five-primary: #6b86e8;
  --five-muted: #626e84;
  --five-line: rgba(69,94,147,.16);
  font: 400 14px/normal "DM Sans", sans-serif;
  font-synthesis: weight style;
  border-bottom: 1px solid rgba(255,255,255,.72);
  background: linear-gradient(115deg, rgba(255,255,255,.91), rgba(238,242,250,.76));
  box-shadow: 0 16px 45px rgba(36,54,93,.075), inset 0 -1px rgba(69,94,147,.08), inset 0 1px rgba(255,255,255,.92);
  backdrop-filter: blur(28px) saturate(155%);
  -webkit-backdrop-filter: blur(28px) saturate(155%);
}
.five-header, .five-header * { box-sizing: border-box; }
.five-header a { text-decoration: none; }
.five-header .five-brand { flex-shrink: 0; color: var(--five-ink); }
.five-header .five-nav a { white-space: nowrap; color: rgba(36,54,93,.72); }
.five-header .five-nav a:hover { color: var(--five-ink); }
.five-header .five-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 7px; }
.five-header :is(a,button):focus-visible { outline: 3px solid #6b86e8; outline-offset: 4px; }
.five-header dialog.five-community-overlay:not([open]) { display: none; }
.five-header dialog.five-community-overlay { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; border: 0; color: var(--five-ink); }
.five-header dialog.five-community-overlay::backdrop { background: transparent; }
.memova-site-header-space { height: 72px; }
@media(max-width:1280px) {
  .five-header .five-menu { width:40px;height:40px;display:grid;place-items:center;border:1px solid var(--five-line);border-radius:10px;background:rgba(255,255,255,.72);cursor:pointer; }
  .five-header .five-nav { position:absolute;top:72px;left:0;right:0;padding:24px;display:none;align-items:stretch;flex-direction:column;border-bottom:1px solid var(--five-line);background:rgba(238,242,250,.98);box-shadow:0 20px 40px rgba(36,54,93,.1);max-height:calc(100dvh - 72px);overflow-y:auto; }
  .five-header .five-nav.is-open { display:flex; }
  .five-header .five-nav>div { align-items:stretch;flex-direction:column;gap:19px; }
  .five-header .five-community-button,.five-header .five-account-menu { width:100%; }
  .five-header .five-account-trigger { width:100%;max-width:none;justify-content:flex-start; }
  .five-header .five-account-trigger .five-account-chevron { margin-left:auto; }
  .five-header .five-account-popover { position:static;width:100%;margin-top:7px; }
}
@media(max-width:820px) {
  .five-header { height:64px;padding:0 20px; }
  .five-header .five-nav { top:64px;max-height:calc(100dvh - 64px); }
  .memova-site-header-space { height:64px; }
}
@media(prefers-reduced-motion:reduce) { .five-header * { transition:none!important; } }
