/* ============================================================
   Thidal site header — the single source for every onboarding
   page (index, college, corporates and the five feature pages).

   Rendered by site-header.js into <header id="site-header">.
   Self-contained: it carries its own --sh-* tokens so it does not
   depend on any page's local variable names (college.html calls
   its accent --amber, the others call it --accent).
   ============================================================ */

/* The rendered bar height (74px bar + 1px bottom border). Pages use it to fill
   the rest of the screen below the sticky header; keep it in sync with .sh-nav. */
:root {
  --site-header-h: 75px;
}

.site-header {
  --sh-ink: #ffffff;
  --sh-muted: #b6b8c9;
  --sh-muted-2: #8b8f9e;
  --sh-accent: #38BDF8;
  --sh-accent-ink: #042230;
  --sh-surface: #11161f;
  --sh-line: rgba(255, 255, 255, .08);
  --sh-line-2: rgba(255, 255, 255, .14);
  --sh-tint: rgba(56, 189, 248, .12);
  --sh-x: clamp(16px, 2vw, 32px);

  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(5, 7, 10, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--sh-line);
  font-family: 'Inter', -apple-system, system-ui, Arial, sans-serif;
}

/* Full-bleed bar: brand pinned to the far left with the menu right beside
   it, and the actions pinned to the far right. Page content below keeps
   its own centred .wrap. */
.site-header .sh-nav {
  padding: 0 var(--sh-x);
  height: calc(var(--site-header-h) - 1px);
  display: flex;
  align-items: center;
}

/* ---- brand ---- */
.site-header .sh-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--sh-ink);
  text-decoration: none;
}
.site-header .sh-mark {
  display: flex;
  align-items: center;
  color: var(--sh-accent);
  flex-shrink: 0;
}
.site-header .sh-lock {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.site-header .sh-name {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -.02em;
}
.site-header .sh-kick {
  font-size: .7rem;
  font-weight: 500;
  color: var(--sh-muted-2);
  margin-top: 4px;
}

/* ---- links ---- */
.site-header .sh-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: clamp(32px, 4vw, 60px);
}
.site-header .sh-links a {
  color: var(--sh-muted);
  font-size: .94rem;
  font-weight: 300;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.site-header .sh-links a:hover { color: var(--sh-ink); }
.site-header .sh-caret { font-size: .6em; opacity: .6; }

/* ---- dropdown menus ---- */
.site-header .sh-has-menu {
  position: relative;
  padding-bottom: 16px;
  margin-bottom: -16px;
}
.site-header .sh-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 230px;
  padding: 7px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--sh-surface);
  border: 1px solid var(--sh-line-2);
  border-radius: 13px;
  box-shadow: 0 22px 55px rgba(0, 0, 0, .55);
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s, transform .18s;
}
.site-header .sh-has-menu:hover .sh-menu,
.site-header .sh-has-menu:focus-within .sh-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.site-header .sh-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 9px;
  color: var(--sh-ink);
  font-weight: 600;
  font-size: .92rem;
  text-align: left;
}
.site-header .sh-menu a:hover { background: rgba(255, 255, 255, .05); }
.site-header .sh-menu a[aria-current="page"] {
  background: var(--sh-tint);
  color: var(--sh-accent);
}

/* ---- actions ---- */
.site-header .sh-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.site-header .sh-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s, filter .2s, background .2s;
}
.site-header .sh-btn:hover { transform: translateY(-2px); }
.site-header .sh-btn-primary {
  background: var(--sh-accent);
  color: var(--sh-accent-ink);
}
.site-header .sh-btn-primary:hover { filter: brightness(1.07); }
.site-header .sh-btn-ghost {
  background: transparent;
  color: var(--sh-ink);
  border-color: var(--sh-line-2);
}
.site-header .sh-btn-ghost:hover { background: rgba(255, 255, 255, .05); }
.site-header .sh-btn-text {
  background: transparent;
  color: var(--sh-ink);
  font-weight: 300;
  padding-left: 10px;
  padding-right: 10px;
}
.site-header .sh-btn-text:hover { background: rgba(255, 255, 255, .05); }
/* "Enter code" (assessment entry): a quiet text link beside Sign in, with a
   key icon. Hidden on tablets and phones; the home hero carries the same
   link there. */
.site-header .sh-code { gap: 6px; color: var(--sh-muted); }
.site-header .sh-code svg { flex-shrink: 0; color: var(--sh-accent); }

.site-header a:focus-visible,
.site-header button:focus-visible {
  outline: 2px solid var(--sh-accent);
  outline-offset: 3px;
  border-radius: 6px;
}

@media (max-width: 900px) {
  .site-header .sh-links { display: none; }
}
/* Below 1024px "Enter code" would crowd the nav links; the home hero has it. */
@media (max-width: 1024px) {
  .site-header .sh-code { display: none; }
}

/* Phones: three actions beside the brand, so keep each label on one line. */
.site-header .sh-btn { white-space: nowrap; }
@media (max-width: 560px) {
  .site-header .sh-kick { display: none; }
  /* Phones keep the original brand size so the three actions still fit. */
  .site-header .sh-mark svg { width: 30px; height: 30px; }
  .site-header .sh-name { font-size: 1.3rem; }
  .site-header .sh-cta { gap: 6px; }
  .site-header .sh-btn { padding: 8px 10px; font-size: .82rem; }
  .site-header .sh-btn-text { padding-left: 6px; padding-right: 6px; }
}
/* Narrow phones (375px and below): tighten the brand and buttons a little more
   so all three actions fit beside the brand without clipping. */
@media (max-width: 420px) {
  .site-header .sh-brand { gap: 7px; }
  .site-header .sh-mark svg { width: 26px; height: 26px; }
  .site-header .sh-name { font-size: 1.12rem; }
  .site-header .sh-cta { gap: 4px; }
  .site-header .sh-btn { padding: 8px 8px; font-size: .78rem; }
}
/* Smallest phones (320px): keep all three actions by dropping the wordmark;
   the mark alone still links home. */
@media (max-width: 359px) {
  .site-header .sh-lock { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .site-header .sh-menu,
  .site-header .sh-btn { transition: none; }
  .site-header .sh-btn:hover { transform: none; }
}
