/* site-header.css
   The homepage header, for pages that are not the homepage.

   Dr. Schmidt, 2026-11-13: Blog, Why PrepQ, Press, SMS Opt-In and Sign up each
   had a smaller header of their own, so clicking them from the homepage looked
   like leaving the site. This file reproduces the homepage header (the dark
   one) rule for rule. The homepage itself does not use this file; if its header
   changes, change this to match.

   Everything is scoped to #pq-main-nav and #pq-nav-drawer and sets its own
   values, so a page's own styles for nav, a, img or .btn cannot leak in. */

#pq-main-nav, #pq-main-nav *, #pq-nav-drawer, #pq-nav-drawer * { box-sizing: border-box; margin: 0; padding: 0; }

#pq-main-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 96px; padding: 0 40px;
  display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between;
  background: rgba(2,14,26,0.75);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border: 0; border-bottom: 1px solid rgba(14,165,233,0.14); border-radius: 0;
  transition: background 0.3s;
  font-family: 'Inter', sans-serif; font-size: 16px; font-weight: 400; line-height: 1.6;
  color: #f0f9ff; text-align: left; letter-spacing: normal;
}
/* The homepage darkens the bar once the page has scrolled. */
#pq-main-nav.pqn-scrolled { background: rgba(2,14,26,0.97); }
/* On a page with a light background the see through bar would turn grey, and
   the phone menu's white text would sit on white. Such a page asks for the
   solid bar, which is the colour the homepage bar has once scrolled. */
#pq-main-nav.pqn-solid, #pq-main-nav.pqn-solid + #pq-nav-drawer { background: rgba(2,14,26,0.97); }
/* The dashboard page: the bar sits at the top of the page and scrolls away
   with it, so it takes no working space from staff (site-header-inject.js). */
#pq-main-nav.pqn-flow { position: relative; background: rgba(2,14,26,0.97); }
#pq-main-nav.pqn-flow + #pq-nav-drawer { position: absolute; background: rgba(2,14,26,0.97); }
body.pq-has-site-header #login-screen { min-height: calc(100vh - 96px); }
/* The bar is fixed, so this holds its place at the top of the page. */
#pq-nav-spacer { height: 96px; }

#pq-main-nav .pqn-left { display: flex; align-items: center; gap: 16px; }
#pq-main-nav .pqn-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; line-height: 1.6; border: 0; background: none; }
#pq-main-nav .pqn-logo img { height: 100px; width: auto; max-width: none; border: 0; border-radius: 0; box-shadow: none; object-fit: fill; }

#pq-main-nav .pqn-links { display: flex; align-items: center; gap: 10px; margin-right: 10px; list-style: none; }
#pq-main-nav .pqn-links li { list-style: none; }
#pq-main-nav .pqn-links a,
#pq-main-nav .pqn-cta a {
  display: inline-block; width: auto; height: auto; min-width: auto;
  background: transparent; color: #fff;
  border: 1.5px solid transparent; border-radius: 8px; box-shadow: none;
  padding: 9px 20px;
  font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.6;
  text-decoration: none; text-transform: none; cursor: pointer; opacity: 1; transform: none;
  transition: border-color .15s, background .15s;
}
#pq-main-nav .pqn-links a { letter-spacing: 0.01em; }
#pq-main-nav .pqn-cta a { letter-spacing: normal; }
#pq-main-nav .pqn-links a:hover,
#pq-main-nav .pqn-cta a:hover { border-color: #38bdf8; background: rgba(2,132,199,0.18); color: #fff; opacity: 1; transform: none; }
#pq-main-nav a:focus-visible, #pq-main-nav button:focus-visible, #pq-nav-drawer a:focus-visible { outline: 2px solid #38bdf8; outline-offset: 2px; }

#pq-main-nav .pqn-cta { display: flex; align-items: center; gap: 10px; }
/* The homepage has a light and dark switch here. These pages have one look, so
   there is no switch, only the space it takes, which keeps every link in the
   same place as on the homepage. */
#pq-main-nav .pqn-switch-space { display: block; width: 36px; height: 36px; flex-shrink: 0; }

#pq-main-nav .pqn-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; border-radius: 0; padding: 8px; z-index: 201; width: auto; height: auto; box-shadow: none; }
#pq-main-nav .pqn-burger span { display: block; width: 22px; height: 2px; background: #f0f9ff; border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
#pq-main-nav .pqn-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#pq-main-nav .pqn-burger.open span:nth-child(2) { opacity: 0; }
#pq-main-nav .pqn-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

#pq-nav-drawer {
  display: none; position: fixed; top: 88px; left: 0; right: 0; z-index: 99;
  flex-direction: column; gap: 4px; padding: 16px 24px 24px;
  background: rgba(2,14,26,0.75);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(14,165,233,0.14);
  font-family: 'Inter', sans-serif; line-height: 1.6; text-align: left;
}
#pq-nav-drawer.open { display: flex; }
#pq-nav-drawer a { display: block; width: auto; height: auto; color: #f0f9ff; background: none; text-decoration: none; font-size: 17px; font-weight: 500; line-height: 1.6; letter-spacing: normal; padding: 14px 0; border: 0; border-bottom: 1px solid rgba(14,165,233,0.14); border-radius: 0; }
#pq-nav-drawer a:last-child { border-bottom: none; }

@media (max-width: 1199px) {
  #pq-main-nav { padding: 0 16px; height: 88px; gap: 0; }
  #pq-nav-spacer { height: 88px; }
  body.pq-has-site-header #login-screen { min-height: calc(100vh - 88px); }
  #pq-main-nav .pqn-links { display: none; }
  #pq-main-nav .pqn-left { flex: 1; justify-content: flex-start; padding: 0; height: 100%; }
  #pq-main-nav .pqn-logo img { height: 70px; }
  #pq-main-nav .pqn-cta { flex: 0 0 auto; gap: 8px; height: 100%; align-self: center; }
  #pq-main-nav .pqn-cta a { display: none; }
  #pq-main-nav .pqn-switch-space { display: none; }
  #pq-main-nav .pqn-burger { display: flex; }
}
@media print { #pq-main-nav, #pq-nav-drawer, #pq-nav-spacer { display: none !important; } }
