/* Official Pentecostal Church of God site pair.
   Injected on every page by scripts/apply_site_chrome.py.
   The bar sits above the existing header and is not sticky, so the
   site header, conference nav, and Sunday nav keep their own sticky
   behavior and mobile menus. */

.official-bar {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  width: 100%;
  max-width: 100%;
  align-self: stretch;
  height: auto;
  min-height: 36px;
  height: 36px;
  margin: 0;
  padding: 0 16px;
  position: static;
  background: #000;
  border-bottom: 2px solid #ee3626;
  color: #f6f3ed;
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .01em;
  white-space: nowrap;
}

.official-bar-links {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 2px;
  margin-left: auto;
}

/* White pcg.org lockup. Sizes are whole pixels from the file aspect ratios. */
.pcg-lockup {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  background: transparent;
}
.pcg-lockup-mark,
.pcg-lockup-word,
.pcg-mark-red {
  display: block;
  flex: 0 0 auto;
  max-width: none;
  background: transparent;
  object-fit: contain;
  object-position: left center;
  image-rendering: auto;
}
.pcg-lockup-mark { width: 27px; height: 27px; }
.pcg-lockup-word { width: 59px; height: 21px; }

.official-bar a {
  color: #f6f3ed;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: .02em;
  padding: 6px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.official-bar a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.official-bar a[aria-current="page"] {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  background: rgba(255, 255, 255, .1);
}

.official-bar a:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* White on the official red. #b81d25 as text on this dark bar is too dim to read. */
.official-bar a.official-bar-sign-in {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 4px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #ee3626;
  color: #fff;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1;
}
.official-bar a.official-bar-sign-in:hover {
  background: #d12e20;
  color: #fff;
  text-decoration: none;
}
.official-bar a.official-bar-sign-in:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.official-bar-lock {
  display: block;
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
}

.official-sites {
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 18px;
  width: 100%;
  max-width: 1240px;
  align-self: stretch;
  margin: 0 auto;
  padding: 12px 24px 14px;
  border-bottom: 1px solid color-mix(in srgb, currentColor 22%, transparent);
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.35;
  color: inherit;
}

.official-sites p {
  margin: 0;
  flex: 1 1 16rem;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}

.official-sites-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
}

.official-sites a {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.official-sites a:hover,
.official-sites a[aria-current="page"] {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

.official-sites a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.official-bar-dot {
  color: rgba(255, 255, 255, .72);
  padding: 0 2px;
}
.section-brand,
.site-header .home-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}
.section-brand-name {
  font-family: "Crimson Text", Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}
.bar-short { display: none; }
.site-header .pcg-mark-red,
.section-brand .pcg-mark-red { display: none; }
header.site-header.is-compact .nav-shell {
  min-height: 52px;
  padding-top: 4px;
  padding-bottom: 4px;
}
header.site-header.is-compact .home-link img,
header.site-header.is-compact .pcg-mark-red {
  width: 22px;
  height: 22px;
}
header.site-header.is-compact .section-brand-name { font-size: 22px; }
nav.shell-nav.is-compact .nav-inner,
nav.site-nav.is-compact .nav-inner { padding-top: 4px; padding-bottom: 4px; }

@media (min-width: 768px) {
  .official-bar {
    height: 40px;
    min-height: 40px;
    padding: 0 24px;
    flex-wrap: nowrap;
  }
  .pcg-lockup { gap: 10px; }
  .pcg-lockup-mark { width: 31px; height: 31px; }
  .pcg-lockup-word { width: 71px; height: 25px; }
}

@media (max-width: 767px) {
  .official-bar { flex-wrap: nowrap; gap: 6px; padding: 0 12px; font-size: 12px; }
  .official-bar a { padding: 4px 2px; letter-spacing: 0; }
  .official-bar-dot { padding: 0 1px; }
  .bar-long { display: none; }
  .bar-short { display: inline; }
  .official-bar a.official-bar-sign-in {
    margin-left: 0;
    padding: 4px 2px;
    border-radius: 0;
    background: transparent;
    color: #f6f3ed;
    font-size: 12px;
    font-weight: 600;
  }
  .section-brand-name { font-size: 22px; }
}

/* Light header: the red pcg.org mark, no circle or box behind it. */
.site-header .home-link {
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.site-header .home-link img {
  width: 27px;
  height: 27px;
  max-width: none;
  background: transparent;
  object-fit: contain;
}
@media (min-width: 768px) {
  .site-header .home-link img { width: 31px; height: 31px; }
}

/* Dark footer bands. Light footers keep this hidden so the white wordmark is not lost. */
.pcg-lockup-footer { display: none; }
.pcg-lockup-always { display: inline-flex; margin: 0 0 14px 16px; }
@media (prefers-color-scheme: dark) {
  .pcg-lockup-footer { display: inline-flex; margin: 0 0 14px 16px; }
}
@media (min-width: 768px) {
  .pcg-lockup-always,
  .pcg-lockup-footer { margin-left: 24px; }
}

/* Keep the opened mobile menu inside the viewport when the bar is showing.
   The bar can wrap to two lines under 720px, so leave more than the old 36px. */
@media (max-width: 740px) {
  .top-nav.open { max-height: calc(100svh - 130px); }
}
