@import url("/assets/css/tokens.css");
@import url("/assets/css/pcg-lockup.css");

:root {
  color-scheme: light;
  --red: var(--brand);
  --red-deep: var(--brand-hover);
  --espresso: #332D26;
  --cream: #F6F3EE;
  --stone: #59554F;
  --sand: #D8D0C4;
  --white: #ffffff;
  --ink: #332D26;
  --heading: "Crimson Text", Georgia, "Times New Roman", serif;
  --body: "Open Sans", Calibri, Carlito, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--size-body);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 8px;
  z-index: 20;
  transform: translateY(-140%);
  background: var(--white);
  color: var(--espresso);
  font-weight: 700;
  padding: 10px 14px;
  text-decoration: none;
}

.skip-link:focus {
  transform: none;
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 18px;
  padding: 6px clamp(16px, 4vw, 48px);
  background: var(--espresso);
  border-top: 4px solid var(--red);
  color: var(--white);
}

.top-nav a {
  color: var(--white);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.top-nav a:hover { text-decoration: underline; }

.top-nav a[aria-current="page"] { text-decoration: underline; }

.top-nav a:focus-visible,
.footer a:focus-visible,
.button:focus-visible,
.prose a:focus-visible,
.catalog-card:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.nav-brand {
  letter-spacing: 0.12em;
  margin-right: 8px;
}

.official-bar {
  position: static;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  width: 100%;
  height: 36px;
  min-height: 36px;
  padding: 0 var(--gutter);
  border-bottom: 2px solid #ee3626;
  background: #000000;
  color: #ffffff;
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.pcg-lockup,
.official-bar-links {
  display: inline-flex;
  align-items: center;
  flex: none;
  white-space: nowrap;
}

.pcg-lockup {
  gap: 6px;
  background: transparent;
}

.official-bar-links {
  gap: 0;
  margin-left: auto;
  flex-wrap: nowrap;
}

.official-bar-dot {
  margin: 0 4px;
  color: #ffffff;
}

.pcg-lockup .pcg-mark,
.pcg-lockup .pcg-wordmark {
  display: block;
  flex: none;
  border: 0;
  padding: 0;
  background: transparent;
  object-fit: fill;
}

@media (min-width: 768px) {
  .official-bar {
    gap: 16px;
    font-size: 12px;
  }

  .pcg-lockup { gap: 8px; }

  .official-bar-dot { margin: 0 8px; }

  .official-bar a.official-bar-sign-in {
    margin-left: 14px;
    padding: 4px 10px;
    font-size: 12px;
  }
}

.official-bar a,
.official-bar a:visited {
  display: inline-flex;
  align-items: center;
  align-self: stretch;
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}

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

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

.official-bar a.official-bar-sign-in,
.official-bar a.official-bar-sign-in:visited {
  display: inline-flex;
  align-items: center;
  align-self: center;
  gap: 5px;
  margin-left: 14px;
  padding: 4px 10px;
  font-size: 12px;
  /* The 44px link target must not stretch this pill to the bar edges. */
  min-height: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #ffffff;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.official-bar a.official-bar-sign-in:hover {
  background: var(--brand);
  color: #ffffff;
  opacity: 0.86;
  text-decoration: none;
}

.official-bar a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.official-bar .link-short { display: none; }

@media (max-width: 767px) {
  .official-bar .link-full { display: none; }
  .official-bar .link-short { display: inline; }
  .official-bar a.official-bar-sign-in,
  .official-bar a.official-bar-sign-in:visited,
  .official-bar a.official-bar-sign-in:hover {
    margin-left: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    opacity: 1;
    font-weight: 600;
    font-size: inherit;
  }
  .official-bar a.official-bar-sign-in::before {
    content: "·";
    margin: 0 4px;
  }
}

.site-banner {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px 18px;
  min-height: 66px;
  padding: 10px var(--gutter);
  background: #ffffff;
  border-top: 0;
  border-bottom: 1px solid #d9dde2;
  color: #111827;
  transition: min-height 160ms ease, padding 160ms ease;
}

.site-banner.is-shrunk {
  min-height: 52px;
  padding-top: 4px;
  padding-bottom: 4px;
}

.site-banner.is-shrunk .banner-brand img {
  width: 24px;
  height: 24px;
}

.site-banner.is-shrunk .banner-name {
  font-size: 1.2rem;
}

@media (prefers-reduced-motion: reduce) {
  .site-banner { transition: none; }
}

.banner-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #111827;
  text-decoration: none;
}

.banner-brand img { width: 30px; height: 30px; object-fit: contain; }

.banner-name {
  font-family: "Crimson Text", Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
}

.nav-toggle {
  display: none;
  align-items: center;
  border: 1px solid #000000;
  border-radius: 4px;
  background: #ffffff;
  color: #000000;
  min-height: 44px;
  padding: 6px 12px;
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
}

.nav-toggle:hover { border-color: var(--brand); color: var(--brand-text); }
.nav-toggle:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.give-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 40px;
  padding: 8px 17px;
  border: 1px solid var(--brand);
  border-radius: 8px;
  background: var(--brand);
  color: #ffffff;
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .05em;
  text-decoration: none;
}

.give-button:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: var(--on-brand); text-decoration: none; }
.give-button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

@media (max-width: 819px) {
  .nav-toggle { display: inline-flex; }
  .site-banner { flex-wrap: wrap; row-gap: 8px; }
  .banner-brand { flex: 1 1 auto; min-width: 0; }
  .banner-name { font-size: 1.15rem; }
  .lang-switch { margin-left: 0; }
  .give-button { min-height: 44px; padding: 8px 14px; font-size: 13px; margin-left: auto; }
  .site-banner .banner-nav { display: none; }
  .site-banner .banner-nav.is-open {
    display: flex;
    flex: 1 1 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid #e6e0d6;
  }
  .site-banner .banner-nav.is-open a {
    width: 100%;
    min-height: 48px;
    padding: 8px 2px;
    border-bottom: 1px solid #e6e0d6;
    font-size: 16px;
  }
}

.banner-nav { display: flex; align-items: center; flex-wrap: nowrap; gap: 22px; }

.banner-nav a {
  color: #111827;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  text-decoration: none;
}

.banner-nav a:hover { color: var(--brand-text); text-decoration: underline; }

@media (min-width: 820px) {
  .resources-menu { position: relative; }
  .resources-menu summary {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #111827;
    font-size: .84rem;
    font-weight: 700;
    list-style: none;
    cursor: pointer;
  }
  .resources-menu summary::-webkit-details-marker { display: none; }
  .resources-menu summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
  .resources-menu .nav-gospel { display: none; }
  .resources-menu[open] .nav-gospel {
    display: flex;
    align-items: center;
    position: absolute;
    z-index: 40;
    top: calc(100% + 6px);
    left: 0;
    min-width: 15rem;
    min-height: 48px;
    padding: 12px 16px;
    background: var(--brand);
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
  }
}
.resources-menu .nav-gospel:hover,
.resources-menu .nav-gospel:focus-visible {
  background: #ffffff;
  color: var(--brand-text);
  outline: 3px solid #111827;
  outline-offset: 2px;
}
@media (max-width: 819px) {
  .resources-menu { width: 100%; }
  .resources-menu summary { display: none; }
  .resources-menu .nav-gospel,
  .resources-menu[open] .nav-gospel {
    display: flex;
    position: static;
    width: 100%;
    min-height: 48px;
    margin-top: 4px;
    background: var(--brand);
    color: #ffffff;
  }
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 32px;
  padding: 24px var(--gutter) 27px;
  background: #f7f4ee;
  border-top: 1px solid #d9dde2;
  color: #344454;
  font-size: var(--size-small);
  line-height: var(--leading-body);
}

.site-footer p { margin: 0; max-width: 660px; }

.site-footer .footer-links {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  gap: 12px 22px;
}

.site-footer a {
  color: var(--brand-text);
  font-weight: 700;
  text-decoration: none;
  text-underline-offset: 4px;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.site-footer a:focus-visible {
  outline: 3px solid #111827;
  outline-offset: 3px;
}

.site-footer a:hover { text-decoration: underline; }

.official-sites {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  width: 100%;
  margin: 2px 0 0;
  padding-top: 10px;
  border-top: 1px solid #d9dde2;
  font-size: 0.78rem;
  line-height: 1.45;
}

.official-sites span { font-weight: 600; }

.site-footer .official-sites a,
.site-footer .official-sites a:visited {
  color: var(--brand-text);
  font-weight: 700;
}

.official-sites a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.lang-switch a {
  color: #111827;
  font-size: 13px;
  min-width: 36px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: .1em;
  text-decoration: none;
  opacity: .72; /* WCAG AA: ~6:1 on white (was .55 = 3.96:1) */
}

.lang-switch a:hover,
.lang-switch a[aria-current="true"] { opacity: 1; text-decoration: underline; }

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px 28px;
  padding: 28px var(--gutter) 36px;
  background: var(--espresso);
  color: #E7E1D8;
  font-size: var(--size-small);
  line-height: 1.5;
}

.footer p { margin: 0; max-width: 38rem; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0;
  padding: 0;
}

.footer a {
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  text-underline-offset: 3px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer a:hover { text-decoration: underline; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border: 1px solid var(--red);
  border-radius: 6px;
  background: var(--red);
  color: var(--white);
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
}

.button:hover, .button:focus-visible {
  text-decoration: none;
  opacity: 1;
  background: var(--brand-hover);
  color: var(--on-brand);
  border-color: var(--brand-hover);
}
.button:focus-visible,
a.button:focus-visible {
  outline: 3px solid #111827;
  outline-offset: 3px;
}

.path-start {
  max-width: 42rem;
  margin: 22px 0 0;
  font-weight: 700;
}

.button.secondary {
  background: transparent;
  color: var(--red);
}

.official-bar a.official-bar-sign-in {
  white-space: nowrap;
  flex: 0 0 auto;
}

@media (min-width: 820px) and (max-width: 1099px) {
  .site-banner { gap: 8px 10px; }
  .banner-name { font-size: 1.05rem; }
  .banner-nav { gap: 10px; }
  .banner-nav a { font-size: 13px; }
  .lang-switch { gap: 8px; }
  .give-button { padding: 8px 12px; font-size: 13px; }
}

@media (max-width: 599px) {
  .site-banner { flex-wrap: nowrap; }
  .banner-brand,
  .site-banner.is-shrunk .banner-brand { min-height: 44px; }
  .banner-name,
  .site-banner.is-shrunk .banner-name { font-size: 1.05rem; }
  .lang-switch { display: none; }
  .site-banner:has(.banner-nav.is-open) { flex-wrap: wrap; }
  .site-banner:has(.banner-nav.is-open) .banner-nav { order: 1; }
  .site-banner:has(.banner-nav.is-open) .lang-switch { order: 2; }
  .site-banner:has(.banner-nav.is-open) .lang-switch {
    display: inline-flex;
    flex: 1 1 100%;
    margin-left: 0;
    gap: 8px;
  }
  .site-banner:has(.banner-nav.is-open) .lang-switch a {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    padding: 0;
    justify-content: center;
  }
}

@media (max-width: 1024px) {
  .official-bar {
    height: auto;
    min-height: 48px;
  }
  .official-bar a,
  .banner-nav a,
  .lang-switch a,
  .give-button {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .nav-toggle { min-height: 44px; align-items: center; }
}

@media (max-width: 1400px) {
  .banner-nav a,
  .lang-switch a,
  .give-button {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .lang-switch a {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    padding: 0;
    justify-content: center;
  }
}

@media (max-width: 720px) {
  .button { width: 100%; }
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 12px;
  }
}
