/* The site header on pages that do not load css/style.css (the clock, the loan
   monitor, the thesis). The same markup and look as the header in style.css,
   with only the rules the header needs, so each page keeps its own design.
   The phone menu comes from js/nav.js, which the build adds to every page with
   a <nav class="nav"> (shared/seo/inject.py). Keep in step with style.css. */
.header {
  padding: 1.5rem 0;
  border-bottom: 1px solid #E0E0E0;
  position: sticky;
  top: 0;
  background: #FFFFFF;
  z-index: 100;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.5;
  text-align: left;
}
.header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}
.header a { text-decoration: none; }
.header .logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #000000;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  white-space: nowrap;
  letter-spacing: normal;
  font-family: inherit;
}
.header .logo-text { display: flex; flex-direction: column; line-height: 1.1; font-family: inherit; font-size: inherit; font-weight: inherit; letter-spacing: normal; }
.header .logo-icon { flex-shrink: 0; }
.header .nav { display: flex; gap: 2rem; align-items: center; margin: 0; padding: 0; position: static; background: none; border: 0; }
.header .nav a { color: #757575; font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.header .nav a:hover, .header .nav a.active { color: #000000; }
.header .nav a.nav-x { white-space: nowrap; }
.header .nav a.nav-cta { white-space: nowrap; padding: 7px 14px; margin: -7px 0; border-radius: 999px; background: #F7931A; color: #1A1206; font-weight: 600; }
.header .nav a.nav-cta:hover { background: #FFB255; color: #1A1206; }
.header .nav-dropdown { position: relative; }
.header .nav-dropdown > a { cursor: pointer; }
.header .nav-dropdown-menu { display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); padding-top: 0.5rem; min-width: 220px; z-index: 200; }
.header .nav-dropdown-menu-inner { background: #FFFFFF; border: 1px solid #E0E0E0; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.1); padding: 0.4rem 0; overflow: hidden; }
.header .nav-dropdown:hover .nav-dropdown-menu { display: block; }
.header .nav-dropdown-menu a { display: block; padding: 0.5rem 1rem; color: #757575 !important; font-size: 0.85rem; font-weight: 500; white-space: nowrap; }
.header .nav-dropdown-menu a:hover { background: #F5F5F5; color: #000000 !important; }
@media (max-width: 1200px) and (min-width: 961px) {
  .header .nav { gap: 0.9rem; }
  .header .nav > a, .header .nav-dropdown > a { font-size: 0.9rem; }
}
@media (max-width: 960px) and (min-width: 861px) {
  .header .nav { gap: 0.55rem; }
  .header .nav > a, .header .nav-dropdown > a { font-size: 0.8rem; }
}
@media (max-width: 860px) {
  .header .container { flex-direction: column; align-items: flex-start; gap: 0.35rem; padding: 0 1rem; }
  .header .nav { gap: 1rem; max-width: 100%; overflow-x: auto; scrollbar-width: none; white-space: nowrap; align-items: stretch; }
  .header .nav::-webkit-scrollbar { display: none; }
  .header .nav a.nav-x { order: -1; }
  .header .nav-dropdown-menu, .header .nav-dropdown:hover .nav-dropdown-menu { display: none; }
}

/* Dark pages (the clock). */
.header.header-dark { background: rgba(10, 10, 12, 0.85); border-bottom-color: rgba(255, 255, 255, 0.08); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.header.header-dark .logo { color: #FAFAF8; }
.header.header-dark .nav a { color: #8A8A92; }
.header.header-dark .nav a:hover, .header.header-dark .nav a.active { color: #FAFAF8; }
.header.header-dark .nav a.nav-cta { color: #1A1206; }
.header.header-dark .nav-dropdown-menu-inner { background: #14141A; border-color: rgba(255, 255, 255, 0.1); }
.header.header-dark .nav-dropdown-menu a { color: #8A8A92 !important; }
.header.header-dark .nav-dropdown-menu a:hover { background: rgba(255, 255, 255, 0.06); color: #FAFAF8 !important; }

/* Floor status strip, under the header on floor pages. Hidden while the floor
   holds; floor_state_class comes from the build and js/floor-status.js. */
.floor-strip { background: #2B0A10; color: #FFE4E8; font-size: 0.875rem; line-height: 1.45; }
.floor-strip.is-holding { display: none; }
.floor-strip-in { max-width: var(--max-width, 1200px); margin: 0 auto; padding: 9px var(--spacing-lg, 24px); }
.floor-strip .fs-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #FF4D6A; margin-right: 8px; vertical-align: 1px; }
.floor-strip b { color: #fff; font-weight: 600; }
.floor-strip a { display: inline-block; color: #FFB3C0; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.floor-strip a:hover { color: #fff; }
.floor-strip .fs-broken { display: none; }
.floor-strip.is-broken .fs-below { display: none; }
.floor-strip.is-broken .fs-broken { display: inline; }
@media (max-width: 640px) { .floor-strip-in { padding: 8px 16px; font-size: 0.8125rem; } }
