/* The floating header, shared by thirdraft.com, thirdraft.com/app/ and the
   policy pages, so moving between them feels like switching tabs, not sites.
   Every page links this one file; edit it here, not in any page. Needs the
   page to define --fg and --sans. */

html { scroll-padding-top: 96px; }
body { padding-top: 84px; }

.site-header {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  width: min(calc(100% - 28px), 960px); z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 8px 8px 18px; border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  border: 1px solid rgba(17, 17, 26, .07);
  box-shadow: 0 1px 2px rgba(17, 17, 26, .04), 0 8px 28px rgba(17, 17, 26, .07);
  color: var(--fg);
  /* Pinned so the header renders the same whatever the page's body sets. */
  font-family: var(--sans); line-height: 1.65;
}
.site-header .brand {
  display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18px;
  letter-spacing: -0.02em; color: inherit; text-decoration: none; white-space: nowrap;
}
.site-header .brand img { width: 28px; height: 28px; border-radius: 8px; }

.site-nav { display: flex; gap: 22px; align-items: center; font-size: 15px; }
.site-nav a, .site-nav button {
  color: #5c5c68; text-decoration: none; white-space: nowrap;
  font: inherit; background: none; border: 0; padding: 0; cursor: pointer;
}
.site-nav a:hover, .site-nav button:hover { color: var(--fg); }
/* The page you're on, like the selected tab. */
.site-nav [aria-current="page"] { color: var(--fg); font-weight: 600; }
.site-nav .nav-signin { color: var(--fg); font-weight: 600; }
.site-nav .nav-cta {
  display: inline-block; font-weight: 600; font-size: 15px;
  padding: 9px 18px; border-radius: 999px;
  background: #111118; color: #fff;
}
.site-nav .nav-cta:hover { color: #fff; background: #2a2a33; }
/* Phone-only items (see the 620px rule below). */
.site-nav .show-sm { display: none; }

@media (max-width: 960px) { .site-nav .hide-md { display: none; } }
@media (max-width: 620px) {
  .site-nav .hide-sm { display: none; }
  .site-nav .show-sm { display: inline-block; }
  .site-nav { gap: 14px; }
  .site-nav .nav-cta { padding: 8px 14px; font-size: 14px; }
}
@media (max-width: 400px) {
  .site-header { padding: 6px 6px 6px 14px; gap: 8px; }
  .site-header .brand { font-size: 17px; gap: 8px; }
  .site-header .brand img { width: 26px; height: 26px; }
  .site-nav { gap: 12px; }
}
@media (max-width: 370px) {
  .site-header { padding-left: 16px; }
  .site-header .brand { font-size: 16px; }
  .site-header .brand img { display: none; }
  .site-nav { gap: 10px; }
  .site-nav .nav-cta { padding: 7px 11px; font-size: 13px; }
  .site-nav .nav-signin { font-size: 14px; }
}
