/* Site chrome — the public header and footer.
 *
 * SINGLE SOURCE OF TRUTH for both renderers:
 *   · SPA  — components/layout/SiteHeader.jsx + SiteFooter.jsx
 *   · SEO  — backend/JobSearchApi/Seo/Templates/Layout.cs, which links
 *            /seo-assets/site-chrome.css. backend/JobSearchApi/Seo/Assets/
 *            site-chrome.css is a verbatim copy of this file, rewritten by
 *            both `npm run build` and every `dotnet build` — edit this one.
 *
 * Because the SEO pages don't load the SPA bundle, everything the chrome
 * needs lives here: no @import, no utility classes, and only tokens that
 * exist in BOTH styles/variables.css and Seo/Assets/seo.css. */

/* ── shared container ─────────────────────────────────────────────────── */

.site-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ── header ───────────────────────────────────────────────────────────── */

.site-head {
  position: sticky;
  top: 0;
  z-index: 30;
  /* The two hosts set different base type — pin ours so the chrome measures
     the same on both. */
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-head-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.site-logo {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
}

.site-logo:hover { color: var(--ink); }

.site-logo-dot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--rust);
  display: inline-block;
  margin-left: 3px;
}

.site-head-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
}

.site-head-links a {
  color: var(--sub);
  font-family: var(--sans);
  font-size: 14px;
  text-decoration: none;
}

.site-head-links a:hover { color: var(--ink); }

/* Current section — quiet: ink text over a hairline, no fill, no weight bump */
.site-head-links a.is-current {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-decoration-thickness: 1px;
  text-underline-offset: 7px;
}

.site-head-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-head-signin {
  color: var(--sub);
  font-family: var(--sans);
  font-size: 14px;
  text-decoration: none;
}

.site-head-signin:hover { color: var(--ink); }

/* Matches <Button variant="primary" size="sm"> from QuietUI, inlined so the
   SEO pages get the same button without the SPA stylesheet. */
.site-head-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1px;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background 150ms var(--ease-enter), transform 150ms var(--ease-enter);
}

.site-head-cta:hover { background: var(--ink-2); color: var(--paper); }
.site-head-cta:active { transform: scale(0.98); }

/* Signed-in: the avatar replaces the sign-in pair and opens /profile */
.site-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--stone);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 150ms var(--ease-enter);
}

.site-avatar:hover,
.site-avatar.is-current { background: var(--line-2); color: var(--ink); }

/* ── footer ───────────────────────────────────────────────────────────── */

.site-foot {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 36px 0 40px;
  background: var(--bg);
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.5;
}

.site-foot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 28px;
  margin-bottom: 28px;
}

.site-foot-head {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--sub);
}

.site-foot ul {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-foot a {
  color: var(--sub);
  font-family: var(--sans);
  font-size: 13.5px;
  text-decoration: none;
}

.site-foot a:hover { color: var(--ink); }

.site-foot-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--serif);
  font-size: 12.5px;
  font-style: italic;
  color: var(--sub-hi);
}

/* ── responsive ───────────────────────────────────────────────────────── */

@media (max-width: 640px) {
  .site-wrap { padding: 0 22px; }
  .site-head-links { display: none; }
}
