/* Styles for non-homepage templates (template-content-page.php, page-sitemap.php)
   and the shared site header/footer rendered on every non-front page. */

/* Breadcrumbs (page heroes) */
.bpx-crumbs {
  font-size: 13px;
  color: var(--bpx-on-dark-faint);
  margin-bottom: 18px;
  font-weight: 600;
}
.bpx-crumbs a {
  color: var(--bpx-accent-bright);
  text-decoration: none;
}
.bpx-crumbs a:hover {
  color: var(--bpx-white);
}


/* ============================================================
   Dedicated site header + footer (all pages except homepage)
   ============================================================ */
/* Light bar: the logo mark is a saturated blue that all but disappeared
   against the old navy background. A soft blue tint one shade deeper than the
   page wash keeps the bar distinct from the content without going flat white. */
.bpx-header {
  background: var(--bpx-surface);
  /* Accent rule rather than a grey hairline: it separates the bar from the
     content and ties the blue tint to the brand at the same time. */
  border-bottom: 3px solid var(--bpx-accent);
  font-family: var(--bpx-font);
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: 0 6px 20px -18px rgba(var(--bpx-navy-rgb), 0.55);
}
.bpx-header__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 24px;
}
.bpx-header__brand {
  text-decoration: none;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  padding: 0;
  flex: 0 0 auto;
}
/* logo-mark.png is the mark with its dead canvas trimmed off, so this height
   is the glyph's height rather than the height of a mostly-empty square. */
.bpx-header__logo {
  height: 46px;
  width: auto;
  display: block;
}
.bpx-header__nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bpx-header__nav a {
  color: var(--bpx-ink-soft);
  text-decoration: none;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0;
  padding: 12px 13px;
  border-radius: var(--bpx-radius);
  transition: background 0.15s, color 0.15s;
}
.bpx-header__nav a:hover,
.bpx-header__nav a.is-active {
  color: var(--bpx-accent);
  background: var(--bpx-white);
}
.bpx-header__nav a.bpx-header__cta {
  background: var(--bpx-accent);
  color: var(--bpx-white);
  padding: 12px 22px;
  border-radius: var(--bpx-radius);
  margin-left: 6px;
  min-width: 104px;
  text-align: center;
  box-shadow: 0 10px 22px rgba(var(--bpx-accent-rgb), 0.22);
}
.bpx-header__nav a.bpx-header__cta:hover {
  background: var(--bpx-accent-hover);
  color: var(--bpx-white);
}
.bpx-header__check,
.bpx-header__burger {
  display: none;
}
.bpx-header__burger {
  width: 44px;
  height: 44px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  border: 1px solid var(--bpx-border-strong);
  border-radius: var(--bpx-radius);
  background: var(--bpx-white);
}
.bpx-header__burger span {
  display: block;
  width: 22px;
  height: 3px;
  border-radius: var(--bpx-radius-sm);
  background: var(--bpx-navy);
}

@media (max-width: 820px) {
  .bpx-header__inner {
    min-height: 66px;
    padding: 0 16px;
  }
  .bpx-header__logo {
    height: 38px;
  }
  .bpx-header__burger {
    display: flex;
  }
  .bpx-header__nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bpx-surface);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
    border-bottom: 1px solid var(--bpx-border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    box-shadow: 0 20px 34px -26px rgba(var(--bpx-navy-rgb), 0.6);
  }
  .bpx-header__nav a {
    font-size: 17px;
    padding: 15px 22px;
    border-radius: 0;
    border-top: 1px solid var(--bpx-border-soft);
  }
  .bpx-header__nav a.bpx-header__cta {
    margin: 12px 18px 10px;
    text-align: center;
    border-radius: var(--bpx-radius);
  }
  .bpx-header__check:checked ~ .bpx-header__nav {
    max-height: 340px;
  }
}

.bpx-footer {
  background: var(--bpx-navy-deep);
  color: var(--bpx-on-dark);
  font-family: var(--bpx-font);
  margin-top: auto;
  border-top: 4px solid var(--bpx-accent);
}
.bpx-footer__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 48px 20px 32px;
  display: grid;
  grid-template-columns: 1.55fr 0.9fr 0.9fr 1.35fr;
  gap: 38px;
  align-items: start;
}
.bpx-footer__brand {
  text-decoration: none;
  display: inline-block;
  margin-bottom: 18px;
}
/* The mark is solid brand blue, which is dense against near-black navy. Sit it
   on a light plate the way an app icon would, so it reads as a logo rather
   than fading into the panel. */
.bpx-footer__logo {
  display: block;
  height: 44px;
  width: auto;
  background: var(--bpx-white);
  padding: 10px 14px;
  border-radius: var(--bpx-radius-lg);
  box-sizing: content-box;
}
.bpx-footer__col p {
  max-width: 34ch;
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 22px;
  color: var(--bpx-on-dark-dim);
}
.bpx-footer__heading {
  color: var(--bpx-white);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 8px 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--bpx-border-light);
  position: relative;
}
.bpx-footer__heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 40px;
  height: 2px;
  background: var(--bpx-accent-bright);
}
.bpx-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.bpx-footer__col li {
  margin-bottom: 12px;
}
.bpx-footer__col a {
  color: var(--bpx-on-dark);
  text-decoration: none;
  font-size: 16px;
  line-height: 1.4;
  display: inline-block;
  transition: color 0.15s, transform 0.15s;
}
.bpx-footer__col a:hover {
  color: var(--bpx-accent-bright);
  transform: translateX(3px);
}
.bpx-footer__col a.bpx-footer__wa {
  display: inline-block;
  background: var(--bpx-accent);
  color: var(--bpx-white);
  font-weight: 700;
  padding: 13px 24px;
  border-radius: var(--bpx-radius);
  font-size: 16px;
  line-height: 1.2;
  box-shadow: 0 10px 22px rgba(var(--bpx-accent-rgb), 0.25);
}
/* The button lifts rather than sliding, so cancel the nudge it inherits from
   the generic footer link rule above. */
.bpx-footer__col a.bpx-footer__wa:hover {
  background: var(--bpx-accent-hover);
  color: var(--bpx-white);
  transform: translateY(-2px);
}
.bpx-footer__note {
  font-size: 15px;
  line-height: 1.65;
}
.bpx-footer__age {
  display: inline-block;
  border: 2px solid var(--bpx-accent);
  color: var(--bpx-accent-bright);
  font-weight: 700;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  line-height: 38px;
  text-align: center;
  font-size: 16px;
}
.bpx-footer__bar {
  border-top: 1px solid var(--bpx-overlay-rule);
}
.bpx-footer__bar {
  max-width: 1140px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  font-size: 14px;
  line-height: 1.45;
  color: var(--bpx-on-dark-dim);
}
@media (max-width: 820px) {
  .bpx-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 30px 24px;
    padding: 38px 18px 28px;
  }
}
@media (max-width: 520px) {
  .bpx-footer__inner {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .bpx-footer__logo {
    height: 64px;
    max-width: 190px;
  }
  .bpx-footer__col p,
  .bpx-footer__col a,
  .bpx-footer__col a.bpx-footer__wa {
    font-size: 16px;
  }
  .bpx-footer__bar {
    padding: 16px 18px;
  }
}

/* ============================================================
   Content page template (template-content-page.php) and sitemap
   ============================================================ */
.bpx-page-hero {
  background: linear-gradient(160deg, var(--bpx-navy-light), var(--bpx-navy) 60%, var(--bpx-navy-dark));
  background-size: cover;
  background-position: center;
  color: var(--bpx-white);
  font-family: var(--bpx-font);
  position: relative;
  overflow: hidden;
}

/* Dot field over the gradient. Drawn with a repeating radial-gradient rather
   than an image, so it costs no request and stays crisp at any density. Low
   enough contrast to read as texture, not as content. */
.bpx-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.5;
  pointer-events: none;
}

/* A featured image already carries its own texture, so the dots come off. */
.bpx-page-hero.has-image::before {
  display: none;
}

.bpx-page-hero__inner {
  position: relative;
  z-index: 1;
}

/* With a featured image, --bpx-hero-image is set on the element by the template
   and the navy overlay keeps the heading readable. */
.bpx-page-hero.has-image {
  background-image: linear-gradient(rgba(var(--bpx-navy-rgb), 0.78), rgba(var(--bpx-navy-rgb), 0.9)),
    var(--bpx-hero-image);
}

.bpx-page-hero__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 20px 42px;
}
.bpx-page-hero__title {
  font-size: 40px;
  line-height: 1.2;
  font-weight: 700;
  margin: 0;
  color: var(--bpx-white);
}
.bpx-page-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 34px 18px 50px;
  font-family: var(--bpx-font);
  color: var(--bpx-navy);
}
.bpx-page .bpx-article__content {
  font-size: 18px;
  line-height: 1.85;
  color: var(--bpx-ink-body);
}
.bpx-sitemap {
  background: var(--bpx-white);
  border: 1px solid var(--bpx-border);
  border-radius: var(--bpx-radius-lg);
  padding: 26px;
  box-shadow: 0 18px 42px -32px rgba(var(--bpx-navy-rgb), 0.55);
}
.bpx-sitemap__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.bpx-sitemap__list li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--bpx-border-soft);
}
.bpx-sitemap__list li:last-child {
  border-bottom: 0;
}
.bpx-sitemap__list a {
  color: var(--bpx-navy);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}
.bpx-sitemap__list a:hover {
  color: var(--bpx-accent);
}
.bpx-sitemap__list time {
  flex: 0 0 auto;
  color: var(--bpx-ink-muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.7;
}
@media (max-width: 560px) {
  .bpx-sitemap {
    padding: 20px 18px;
  }
  .bpx-sitemap__list li {
    display: block;
  }
  .bpx-sitemap__list time {
    display: block;
    margin-top: 5px;
  }
}

/* ── Archive / search listings ── */
.bpx-post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 760px;
}
.bpx-post-list__item {
  padding: 22px 0;
  border-bottom: 1px solid var(--bpx-border);
}
.bpx-post-list__item:last-child {
  border-bottom: 0;
}
.bpx-post-list__title {
  margin: 0 0 6px;
  font-size: 24px;
  line-height: 1.3;
}
.bpx-post-list__title a {
  color: var(--bpx-navy);
  text-decoration: none;
}
.bpx-post-list__title a:hover {
  color: var(--bpx-accent);
}
.bpx-post-list__meta,
.bpx-post-meta {
  color: var(--bpx-ink-muted);
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 8px;
}
.bpx-post-list__excerpt {
  color: var(--bpx-ink-body);
  line-height: 1.7;
  margin: 0;
}
.bpx-search-count {
  color: var(--bpx-ink-muted);
  font-weight: 600;
  margin: 0 0 8px;
}
.bpx-archive-intro {
  color: var(--bpx-on-dark-soft);
  font-size: 16px;
  line-height: 1.6;
  margin-top: 10px;
}

/* ── Pagination ── */
.bpx-pagination {
  margin-top: 28px;
}
.bpx-pagination .page-numbers {
  display: inline-block;
  padding: 8px 14px;
  margin: 0 4px 4px 0;
  border: 1px solid var(--bpx-border-strong);
  border-radius: var(--bpx-radius);
  color: var(--bpx-navy);
  text-decoration: none;
  font-weight: 700;
}
.bpx-pagination .page-numbers.current,
.bpx-pagination .page-numbers:hover {
  background: var(--bpx-accent);
  color: var(--bpx-white);
  border-color: var(--bpx-accent);
}

/* ── Search form ── */
.bpx-page-wrap .search-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.bpx-page-wrap .search-form label {
  flex: 1 1 220px;
}
.bpx-page-wrap .search-form .search-field {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--bpx-border-strong);
  border-radius: var(--bpx-radius);
  font-size: 16px;
}
.bpx-page-wrap .search-form .search-submit {
  background: var(--bpx-accent);
  color: var(--bpx-white);
  border: 0;
  border-radius: var(--bpx-radius);
  padding: 11px 22px;
  font-weight: 700;
  cursor: pointer;
}
.bpx-page-wrap .search-form .search-submit:hover {
  background: var(--bpx-accent-hover);
}

/* ── HTML sitemap ── */
.bpx-sitemap__section + .bpx-sitemap__section {
  margin-top: 30px;
}
.bpx-sitemap__heading {
  font-size: 22px;
  color: var(--bpx-navy);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--bpx-border-soft);
}
.bpx-sitemap__list span {
  flex: 0 0 auto;
  color: var(--bpx-ink-muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.7;
}

