/*
 * oc-cdf chrome: what church.adventiston.org's pages need beyond the main site's stylesheets. The trust
 * bar, the brand bar, the slimmed-down footer, the landing page and privacy notice text, and
 * focus rings that stay visible on the dark bars. Enqueued last (functions.php makes it depend
 * on normalize, webflow, oc-website-webflow and oc-custom), so it wins ties with all four.
 *
 * Everything here is a class of this theme's own (oc-cdf-*), plus two Webflow footer classes
 * scoped under .oc-cdf-footer. Colours come from the Webflow export's :root variables, with
 * their values as fallbacks.
 */

/* --- Trust bar --------------------------------------------------------------------------- */

.oc-cdf-trust {
  position: relative;
  z-index: 2;
  background-color: var(--neutral--800, #0c1830);
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
}

.oc-cdf-trust__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.oc-cdf-trust__symbol {
  flex: none;
  width: 22px;
  height: 22px;
}

.oc-cdf-trust__text {
  margin: 0;
}

.oc-cdf-trust__text a {
  color: #fff;
  text-decoration: underline;
  overflow-wrap: anywhere;
}

.oc-cdf-trust__text a:hover {
  color: var(--neutral--400, #cbd7ea);
}

/* --- Brand bar --------------------------------------------------------------------------- */

.oc-cdf-brand {
  background-color: var(--sda-blue, #003a5d);
}

.oc-cdf-brand__inner {
  padding-top: 16px;
  padding-bottom: 16px;
}

.oc-cdf-brand__link {
  display: inline-block;
}

.oc-cdf-brand__logo {
  display: block;
  width: 260px;
  max-width: 100%;
  height: auto;
}

/* --- Focus ------------------------------------------------------------------------------- */

/* oc-custom.css draws a #0066cc ring for :focus-visible, which disappears on the dark bars. */
.oc-cdf-trust a:focus-visible,
.oc-cdf-brand__link:focus-visible,
.skip-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* The skip link's target is a landmark, not a control: no ring when it receives focus. */
#main:focus {
  outline: none;
}

/* --- Page text (landing page, privacy notice, 404) --------------------------------------- */

.oc-cdf-prose {
  max-width: 760px;
}

.oc-cdf-prose h2 {
  margin-top: 0;
  margin-bottom: 16px;
}

.oc-cdf-prose h3 {
  margin-top: 40px;
  margin-bottom: 12px;
}

.oc-cdf-prose p,
.oc-cdf-prose ul {
  margin-bottom: 16px;
}

.oc-cdf-prose ul {
  padding-left: 1.25em;
}

.oc-cdf-prose li {
  margin-bottom: 6px;
}

.oc-cdf-prose a {
  text-decoration: underline;
  overflow-wrap: anywhere;
}

.oc-cdf-prose blockquote {
  margin: 24px 0;
  padding: 0 0 0 20px;
  border-left: 4px solid var(--neutral--400, #cbd7ea);
  font-style: italic;
}

/* The privacy notice's "awaiting approval" box. Remove it with the marker in the template. */
.oc-cdf-draft {
  margin-bottom: 32px;
  padding: 12px 16px;
  border: 2px dashed var(--system--red-400, #dc2b2b);
  background-color: #fff5f5;
  color: #7a1010;
  font-weight: 700;
}

/* --- Footer ------------------------------------------------------------------------------ */

/* Above the two decorative images, as the main site's inline z-index puts them. */
.oc-cdf-footer .footer-top-v1,
.oc-cdf-footer .footer-bottom-v1 {
  position: relative;
  z-index: 2;
}

.oc-cdf-footer .footer-canada-map-image,
.oc-cdf-footer .footer-canada-footer-symbol-image {
  z-index: 1;
}

.oc-cdf-footer__logo {
  display: block;
  width: 228px;
  max-width: 100%;
  height: auto;
}

.oc-cdf-footer__mission {
  max-width: 420px;
}

.oc-cdf-footer__mission a {
  color: inherit;
}

.oc-cdf-footer__links a {
  text-decoration: underline;
}

/* --- Small screens ----------------------------------------------------------------------- */

@media screen and (max-width: 767px) {
  .oc-cdf-brand__logo {
    width: 200px;
  }
}

@media screen and (max-width: 479px) {
  .oc-cdf-trust {
    font-size: 13px;
  }

  .oc-cdf-trust__symbol {
    width: 18px;
    height: 18px;
  }
}
