/*
 * Scoped marketing-site header styles for the /pre-approval app page.
 *
 * The pre-approval page is a React app that ships its own stylesheet
 * (src/styles.css). That stylesheet and the full marketing stylesheet
 * (site.css) define several of the SAME class names (.btn, .eyebrow, .lede,
 * .site-footer, …), so loading site.css here would restyle the pre-approval
 * form. Instead we load ONLY the header rules — copied verbatim from the
 * header block of public/css/site.css — so the shared site nav injected via
 * the <!-- SITE_HEADER --> placeholder (src/shared/site-header.html, the single
 * source of the nav LINKS) renders identically to every other page without
 * touching the app. The app's own top bar was renamed to .app-topbar so
 * .topbar here only ever matches the injected marketing header.
 *
 * If the header design in site.css changes, mirror it here.
 */

:root {
  --paper: #faf8f4;
  --ink: #1c2733;
  --paper-line: #e6e1d6;
  --navy: #12314e;
  --gold-dark: #a87a2e;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: -apple-system, "Segoe UI", Inter, system-ui, Helvetica, Arial, sans-serif;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 1100px;
}

.topbar {
  background: var(--paper);
  color: var(--ink);
  border-bottom: 1px solid var(--paper-line);
}

.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  height: 44px;
  width: auto;
}

.brand-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--navy);
}

.brand-name small {
  display: block;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.topnav {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 1.05rem;
  flex-wrap: wrap;
}

.topnav .nav-links {
  display: flex;
  align-items: center;
  gap: 1.9rem;
}

.topnav a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
  transition: text-decoration-color 0.15s ease, color 0.15s ease;
}

.topnav a:hover {
  color: var(--gold-dark);
  text-decoration-color: var(--gold-dark);
}

.topnav .call {
  font-weight: 700;
  color: var(--gold-dark);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .topnav {
    gap: 0.9rem;
  }

  .topnav .nav-links {
    display: none;
  }
}
