:root {
  --navy: #06264a;
  --ink: #071e3d;
  --teal: #007f7b;
  --gold: #ffad0a;
  --nav-line: rgba(255, 255, 255, .18);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: rgba(6, 38, 74, .98);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 10px 30px rgba(1, 20, 42, .16);
}

.site-header .nav-wrap {
  width: min(1280px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  margin: 0 10px 0 0;
  color: #fff;
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 950;
  letter-spacing: -.035em;
}

.site-header .brand::after {
  content: "PICKS";
  align-self: center;
  margin-left: -4px;
  padding: 7px 0 2px;
  color: var(--gold);
  border-bottom: 2px solid var(--gold);
  font-size: .57rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .2em;
}

.site-header .brand-mark {
  width: 32px;
  height: 40px;
  display: grid;
  place-items: center;
}

.site-header .brand-mark svg { width: 100%; height: 100%; }

.site-header .main-nav {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  gap: 4px;
  min-width: 0;
}

.site-header .main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  color: #dce9f2;
  border-radius: 10px;
  text-decoration: none;
  white-space: nowrap;
  font-size: .86rem;
  font-weight: 760;
  transition: color .16s ease, background .16s ease;
}

.site-header .main-nav a:hover,
.site-header .main-nav a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, .08);
  text-decoration: none;
}

.site-header .main-nav a[aria-current="page"],
.site-header .main-nav a[data-active-parent="true"] {
  color: #fff;
  background: #0c4c6f;
  font-weight: 900;
}

.site-header .main-nav a[aria-current="page"]::after,
.site-header .main-nav a[data-active-parent="true"]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 4px;
  border-radius: 4px 4px 0 0;
  background: var(--gold);
}

.site-header .nav-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
}

.site-header .nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font: inherit;
  font-size: 0;
  cursor: pointer;
}

.site-header .nav-toggle::before {
  content: "";
  width: 20px;
  height: 14px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
}

.site-header .nav-toggle:hover,
.site-header .nav-toggle:focus-visible,
.site-header .nav-toggle[aria-expanded="true"] {
  background: rgba(255, 255, 255, .16);
}

.site-header .nav-actions a {
  text-decoration: none;
  white-space: nowrap;
  font-size: .84rem;
  font-weight: 850;
}

.site-header .sign-in {
  padding: 10px 12px;
  color: #fff;
}

.site-header .sign-in[aria-current="page"] {
  border-radius: 9px;
  background: rgba(255, 255, 255, .12);
  box-shadow: inset 0 -3px var(--gold);
}

.site-header .nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 4px 0 #c77e00;
}

.site-header .language-picker {
  position: relative;
  display: flex;
  align-items: center;
}

.site-header .language-picker::before { content: none !important; }

.site-header .language-picker select {
  width: 74px;
  min-height: 38px;
  padding: 0 5px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 9px;
  background: #0b345f;
  color: #fff;
  font: inherit;
  font-size: .76rem;
  font-weight: 850;
  cursor: pointer;
}

.site-header .member-profile-menu { position: relative; }

.site-header .member-notification-link {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 10px;
  color: #dce9f2;
  background: rgba(255, 255, 255, .08);
}

.site-header .member-notification-link svg { width: 20px; height: 20px; }
.site-header .member-notification-link:hover,
.site-header .member-notification-link:focus-visible { color: #fff; background: rgba(255, 255, 255, .15); }
.site-header .member-notification-link[aria-current="page"] {
  color: var(--ink);
  border-color: var(--gold);
  background: var(--gold);
}

.site-header .member-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 5px 10px 5px 5px;
  border: 1px solid var(--nav-line);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, .07);
  font: inherit;
  cursor: pointer;
}

.site-header .profile-chevron { color: #bcd0df; font-size: .7rem; }
.site-header .member-profile-dropdown {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 80;
  width: 230px;
  padding: 7px;
  border: 1px solid #d5e1e9;
  border-radius: 13px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 18px 45px rgba(1, 20, 42, .22);
}
.site-header .member-profile-dropdown a,
.site-header .member-profile-dropdown button {
  width: 100%;
  min-height: 40px;
  display: grid;
  justify-items: start;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  font: inherit;
  font-size: .8rem;
  font-weight: 850;
  cursor: pointer;
}
.site-header .member-profile-dropdown a:hover,
.site-header .member-profile-dropdown button:hover { background: #edf7f6; color: var(--teal); }
.site-header .member-profile-dropdown small { color: #657584; font-size: .68rem; font-weight: 650; }

.site-header .member-avatar {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font-size: .75rem;
  font-weight: 950;
}

.site-header .member-chip small {
  display: block;
  color: #bcd0df;
  font-size: .63rem;
  font-weight: 700;
  line-height: 1;
}

.site-header .member-chip strong {
  display: block;
  font-size: .78rem;
  line-height: 1.2;
}

.site-header .nav-signout {
  min-height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #dce9f2;
  font: inherit;
  font-size: .75rem;
  font-weight: 850;
  cursor: pointer;
}

.site-header .nav-signout:hover,
.site-header .nav-signout:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, .1);
}

/* Shared registration role picker. It stays inside the form card so visitors can
   correct the default Join Free route without adding another onboarding step. */
.signup-role-picker {
  margin: -3px 0 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line, #dce5eb);
}

.signup-role-picker-label {
  display: block;
  margin: 0 0 10px;
  color: var(--muted, #64798d);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .09em;
  line-height: 1.35;
  text-transform: uppercase;
}

.signup-role-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.signup-role-option {
  min-width: 0;
  min-height: 82px;
  padding: 12px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 18px;
  gap: 10px;
  align-items: center;
  border: 1.5px solid var(--line, #dce5eb);
  border-radius: 14px;
  background: #fff;
  color: var(--ink, #17324d);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(16, 42, 67, .04);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.signup-role-option:hover,
.signup-role-option:focus-visible {
  transform: translateY(-1px);
  border-color: #79b7bd;
  box-shadow: 0 8px 20px rgba(16, 42, 67, .1);
}

.signup-role-option:focus-visible {
  outline: 3px solid rgba(27, 154, 170, .2);
  outline-offset: 2px;
}

.signup-role-option[aria-current="page"] {
  border-color: var(--navy, #102a43);
  background: var(--navy, #102a43);
  color: #fff;
  box-shadow: 0 5px 0 #071e3d;
}

.signup-role-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #eaf7f8;
  color: var(--aqua-dark, #147d8a);
}

.signup-role-option[aria-current="page"] .signup-role-icon {
  background: var(--gold, #ffad0a);
  color: var(--navy, #102a43);
}

.signup-role-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.signup-role-option strong,
.signup-role-option small {
  display: block;
}

.signup-role-option strong {
  font-size: .82rem;
  font-weight: 900;
  line-height: 1.2;
}

.signup-role-option small {
  margin-top: 4px;
  color: var(--muted, #64798d);
  font-size: .68rem;
  font-weight: 600;
  line-height: 1.35;
}

.signup-role-option[aria-current="page"] small {
  color: #c7d8e5;
}

.signup-role-check {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold, #ffad0a);
  color: var(--navy, #102a43);
  font-size: .7rem;
  font-weight: 950;
  opacity: 0;
}

.signup-role-option[aria-current="page"] .signup-role-check {
  opacity: 1;
}

.signup-role-note {
  margin: 11px 0 0;
  color: var(--muted, #64798d);
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
}

@media (max-width: 1100px) {
  .site-header .nav-wrap { gap: 12px; }
  .site-header .main-nav a { padding-inline: 9px; font-size: .8rem; }
  .site-header .brand { margin-right: 0; }
  .site-header .language-picker { display: flex; }
}

@media (max-width: 860px) {
  .site-header .nav-wrap {
    min-height: 0;
    padding: 11px 0 0;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
  }

  .site-header .brand { min-height: 42px; }
  .site-header .nav-actions { grid-column: 2; grid-row: 1; }
  .site-header .nav-toggle { display: inline-flex; }
  .site-header .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    max-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    opacity: 0;
    border-top: 1px solid rgba(255, 255, 255, .1);
    transition: max-height .2s ease, opacity .2s ease, padding .2s ease;
  }
  .site-header .main-nav[data-open="true"] {
    max-height: 480px;
    padding: 8px 0 11px;
    opacity: 1;
  }
  .site-header .main-nav a { min-height: 44px; padding: 0 11px; justify-content: center; }
  .site-header .main-nav a[aria-current="page"]::after,
  .site-header .main-nav a[data-active-parent="true"]::after { left: 10px; right: 10px; }

  .site-header[data-member-role] .nav-toggle { display: none; }
  .site-header[data-member-role] .main-nav {
    max-height: none;
    padding: 8px 0 11px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    opacity: 1;
  }
  .site-header[data-member-role="follower"] .main-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .site-header .nav-wrap { width: calc(100% - 28px); }
  .site-header .main-nav { grid-template-columns: 1fr; }
  .site-header .brand { font-size: 1.2rem; }
  .site-header .brand::after {
    margin-left: -5px;
    padding-top: 6px;
    font-size: .48rem;
    letter-spacing: .16em;
  }
  .site-header .brand-mark { width: 27px; height: 34px; }
  .site-header .nav-actions { gap: 5px; }
  .site-header .language-picker select { width:62px; }
  .site-header .nav-signout { display:none; }
  .site-header .nav-actions .sign-in,
  .site-header .nav-actions .nav-cta { display: none; }
  .site-header .sign-in { padding: 8px 7px; font-size: .75rem !important; }
  .site-header .nav-cta { min-height: 38px; padding: 0 11px; font-size: .75rem !important; box-shadow: none; }
  .site-header .member-chip { padding-right: 7px; }
  .site-header .member-chip small { display: none; }
  .site-header .member-chip > span:last-child { display: none; }
  .site-header[data-member-role] .main-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-header[data-member-role="follower"] .main-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-header[data-member-role] .main-nav a { padding-inline: 4px; font-size: .68rem; }

  .signup-role-options { grid-template-columns: 1fr; }
  .signup-role-option { min-height: 72px; }
  .signup-role-picker { margin-bottom: 21px; padding-bottom: 21px; }

  /* On signup pages the choice and form come before the marketing explanation
     on small screens, so the role switch is visible without scrolling. */
  .signup-page .layout { display: flex; flex-direction: column; }
  .signup-page .layout > .card { order: -1; margin-top: 0; }
}
