/**
 * BluePages chrome: Prussian masthead, cool-gray page, civic footer.
 * Tokens live in theme.css. This file does not invent a second palette.
 */

html {
  scroll-padding-top: 5.5rem;
}

/* Cool-gray canvas under the navy bar (same page color as home and portal) */
.page-canvas,
main {
  flex: 1;
  background: var(--theme-bg, #f4f6f9);
}

.site-header,
#site-header {
  background: var(--theme-header, var(--theme-prussian, #0b2545));
  border-bottom: 1px solid var(--theme-oxford, #13315c);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner,
#header-inner,
.site-header .header-inner,
#site-header .header-inner {
  max-width: var(--theme-max-width, 1100px);
  margin: 0 auto;
  padding: 0.75rem max(var(--theme-gutter, 1.5rem), env(safe-area-inset-right))
    0.75rem max(var(--theme-gutter, 1.5rem), env(safe-area-inset-left));
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.85rem 1rem;
  position: relative;
  flex-wrap: wrap;
}

.logo,
.site-header .logo,
#site-header .logo,
.site-header #logo,
#site-header #logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--theme-cream, #eef4ed);
  text-decoration: none;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  margin-right: auto;
}

.logo:hover,
.site-header .logo:hover,
#site-header .logo:hover,
.site-header #logo:hover,
#site-header #logo:hover {
  color: #fff;
  text-decoration: none;
}

.logo-mark {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0;
  background: url("/static/brand/br02-monogram-1color-reverse.svg") center / contain no-repeat;
  flex-shrink: 0;
}

.site-header nav,
.site-nav,
#site-nav,
.site-header #site-nav,
#site-header #site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem 0.95rem;
}

.site-header nav a,
.site-nav a,
#site-nav a {
  color: var(--theme-nav, var(--theme-powder, #8da9c4));
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.2;
  border-radius: 999px;
}

.site-header nav a:hover,
.site-nav a:hover,
#site-nav a:hover,
.site-header nav a:focus-visible,
.site-nav a:focus-visible,
#site-nav a:focus-visible {
  color: var(--theme-cream, #eef4ed);
  text-decoration: none;
}

.site-header nav a:focus-visible,
.site-nav a:focus-visible,
#site-nav a:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid var(--theme-powder, #8da9c4);
  outline-offset: 2px;
}

.site-header nav a[aria-current="page"],
.site-nav a[aria-current="page"],
#site-nav a[aria-current="page"] {
  color: var(--theme-cream, #eef4ed);
  font-weight: 600;
}

/* Claim listing is the Yale fill and stays on the bar (nav.js lifts it out of the drawer). */
.nav-claim,
.site-header nav a[href="/add-business/claim"],
.site-header nav a[href="/funnel/claim"],
.site-nav a[href="/add-business/claim"],
.site-nav a[href="/funnel/claim"],
#site-nav a[href="/add-business/claim"],
#site-nav a[href="/funnel/claim"] {
  color: var(--theme-cream, #eef4ed) !important;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--theme-yale, #134074);
  flex-shrink: 0;
}

.nav-claim:hover,
.site-header nav a[href="/add-business/claim"]:hover,
.site-header nav a[href="/funnel/claim"]:hover,
.site-nav a[href="/add-business/claim"]:hover,
.site-nav a[href="/funnel/claim"]:hover,
#site-nav a[href="/add-business/claim"]:hover,
#site-nav a[href="/funnel/claim"]:hover {
  background: var(--theme-oxford, #13315c);
  border-color: transparent;
  color: #fff !important;
}

/* Advertise is a Powder outline. */
.site-header nav a[href="/funnel/csuiteware"]:not(.nav-add-business),
.site-nav a[href="/funnel/csuiteware"]:not(.nav-add-business),
#site-nav a[href="/funnel/csuiteware"]:not(.nav-add-business) {
  color: var(--theme-cream, #eef4ed);
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--theme-powder, #8da9c4);
  border-radius: 999px;
}

.nav-add-business {
  padding: 0.35rem 0.15rem;
  border-radius: 0;
  background: transparent;
  color: var(--theme-powder, #8da9c4) !important;
  font-weight: 600;
  border: 0;
}

.nav-add-business:hover {
  background: transparent;
  color: var(--theme-cream, #eef4ed) !important;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--theme-powder, #8da9c4);
  background: var(--theme-oxford, #13315c);
  color: var(--theme-cream, #eef4ed);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  line-height: 1.2;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle:hover {
  background: var(--theme-yale, #134074);
  color: #fff;
}

@media (max-width: 900px) {
  .header-inner,
  #header-inner,
  .site-header .header-inner,
  #site-header .header-inner {
    flex-wrap: nowrap;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-header nav,
  .site-nav,
  #site-nav,
  .site-header #site-nav,
  #site-header #site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 0.35rem max(var(--theme-gutter, 1.5rem), env(safe-area-inset-right))
      calc(0.85rem + env(safe-area-inset-bottom))
      max(var(--theme-gutter, 1.5rem), env(safe-area-inset-left));
    background: var(--theme-header, var(--theme-prussian, #0b2545));
    border-bottom: 1px solid var(--theme-oxford, #13315c);
  }

  .site-header.nav-open nav,
  .site-header.nav-open .site-nav,
  .site-header.nav-open #site-nav,
  #site-header.nav-open nav,
  #site-header.nav-open .site-nav,
  #site-header.nav-open #site-nav {
    display: flex;
  }

  .site-header nav a,
  .site-nav a,
  #site-nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--theme-oxford, #13315c);
    border-radius: 0;
  }

  .site-header nav a[href="/add-business/claim"],
  .site-header nav a[href="/funnel/claim"],
  .site-nav a[href="/add-business/claim"],
  .site-nav a[href="/funnel/claim"],
  #site-nav a[href="/add-business/claim"],
  #site-nav a[href="/funnel/claim"],
  .nav-add-business {
    margin-top: 0.55rem;
    text-align: center;
    border-bottom: 0;
    border-radius: 999px;
    padding: 0.55rem 0.85rem;
  }

  .site-header nav a[href="/funnel/csuiteware"]:not(.nav-add-business),
  .site-nav a[href="/funnel/csuiteware"]:not(.nav-add-business),
  #site-nav a[href="/funnel/csuiteware"]:not(.nav-add-business) {
    text-align: center;
    border-bottom: 0;
    padding: 0.7rem 0 0.35rem;
  }
}

@media (min-width: 901px) {
  .nav-toggle {
    display: none;
  }

  .site-header nav,
  .site-nav,
  #site-nav,
  .site-header #site-nav,
  #site-header #site-nav {
    display: flex;
    position: static;
    flex-direction: row;
    background: transparent;
    border-bottom: 0;
    padding: 0;
  }
}

.section-inner,
.page-inner {
  max-width: var(--theme-max-width, 1100px);
  margin: 0 auto;
  padding: 2rem var(--theme-gutter, 1.5rem);
}

.hero {
  padding: 3.25rem var(--theme-gutter, 1.5rem) 2.5rem;
  text-align: left;
  background: var(--theme-bg, #f4f6f9);
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
  color: var(--theme-heading, var(--theme-oxford, #13315c));
}

.hero-tagline {
  color: var(--theme-text-muted, var(--theme-oxford, #13315c));
  font-size: 1.1rem;
  margin: 0 0 1.5rem;
}

.site-footer,
#site-footer {
  background: var(--theme-footer, var(--theme-prussian, #0b2545));
  border-top: 1px solid var(--theme-oxford, #13315c);
  margin-top: auto;
  padding: 2rem max(var(--theme-gutter, 1.5rem), env(safe-area-inset-right))
    calc(2rem + env(safe-area-inset-bottom))
    max(var(--theme-gutter, 1.5rem), env(safe-area-inset-left));
  text-align: center;
}

.footer-inner {
  max-width: var(--theme-max-width, 1100px);
  margin: 0 auto;
}

.footer-inner p,
.footer-nav,
.footer-links {
  margin: 0.35rem 0;
  font-size: 0.95rem;
  color: var(--theme-powder, #8da9c4);
}

.footer-inner a,
.footer-nav a,
.footer-links a {
  color: var(--theme-cream, #eef4ed);
  text-decoration: none;
}

.footer-inner a:hover,
.footer-nav a:hover,
.footer-links a:hover,
.footer-inner a:focus-visible,
.footer-nav a:focus-visible,
.footer-links a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.footer-inner a:focus-visible,
.footer-nav a:focus-visible,
.footer-links a:focus-visible {
  outline: 2px solid var(--theme-powder, #8da9c4);
  outline-offset: 2px;
}

/* Locations / SEO / Podcast / Contact / Legal (and sibling funnel links). */
.footer-nav,
.footer-links,
.site-footer .footer-inner > p:first-of-type {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.55rem 1.15rem;
  font-size: 0;
  line-height: 0;
}

.footer-nav a,
.footer-links a,
.site-footer .footer-inner > p:first-of-type a {
  font-size: 0.95rem;
  line-height: 1.3;
  font-weight: 600;
}

.site-footer .footer-inner > p:first-of-type a[href="/locations"],
.site-footer .footer-inner > p:first-of-type a[href="/funnel/seo"],
.site-footer .footer-inner > p:first-of-type a[href="/funnel/podcast"],
.site-footer .footer-inner > p:first-of-type a[href="/contact"],
.site-footer .footer-inner > p:first-of-type a[href="/legal"],
.footer-nav a[href="/locations"],
.footer-nav a[href="/funnel/seo"],
.footer-nav a[href="/funnel/podcast"],
.footer-nav a[href="/contact"],
.footer-nav a[href="/legal"] {
  color: var(--theme-cream, #eef4ed);
}

.footer-meta {
  margin-top: 0.85rem !important;
  font-size: 0.9rem !important;
}

.site-footer .footer-login {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--theme-oxford, #13315c);
  font-size: 0.85rem;
  color: var(--theme-powder, #8da9c4);
}

.site-footer .footer-login a {
  color: var(--theme-powder, #8da9c4);
}

.site-footer .footer-login a:hover {
  color: var(--theme-cream, #eef4ed);
}

@media (max-width: 900px) {
  .footer-nav,
  .footer-links,
  .site-footer .footer-inner > p:first-of-type {
    gap: 0.7rem 1.1rem;
  }

  .footer-nav a,
  .footer-links a,
  .site-footer .footer-inner > p:first-of-type a {
    font-size: 0.92rem;
  }
}
