/* Call to Action Strip: a thin full-width bar, like the copper "Sundays at 10 AM" bar under the
   home page's photo, on one of four backgrounds staff pick. Hard colours (not the skin's tokens)
   so it looks the same on every page and in both modes; the home page is always dark.
     patina (default) #5fa89a: text #1e1e1e 6.0:1; button #ffffff on #1e1e1e 16.7:1,
                               hover #1e1e1e on #ffffff
     white #ffffff:            text #1e1e1e 16.7:1; button #ffffff on #2f6f64 5.9:1, hover #245a51 7.9:1
     light patina #a9d6cb:     text #1e1e1e 10.5:1; button as white
     dark patina #2f6f64:      text #ffffff 5.9:1; button #2f6f64 on #ffffff 5.9:1,
                               hover #1e1e1e on #a9d6cb 10.5:1
   The button rules start with .ccm-page so they outrank the skin's link colour and underline
   (div.theme-restoration a:not(.btn)). */
.rc-cta-strip {
  background: #5fa89a;
  color: #1e1e1e;
}

.rc-cta-strip--white {
  background: #ffffff;
  border-block: 1px solid #e5ddd4; /* keeps its edges on a white page */
}

.rc-cta-strip--patina-light {
  background: #a9d6cb;
}

.rc-cta-strip--patina-dark {
  background: #2f6f64;
  color: #ffffff;
}

.rc-cta-strip .rc-cta-strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .5rem 1.5rem;
  margin: 0;
  padding: .75rem 0;
  font-size: 1rem;
  line-height: 1.4;
  text-align: center;
}

.rc-cta-strip .rc-cta-strip-text {
  font-weight: 600;
}

/* Patina: a charcoal button. */
.ccm-page .rc-cta-strip a.rc-cta-strip-button {
  display: inline-block;
  padding: .375rem 1.125rem;
  border-radius: 999px;
  background: #1e1e1e;
  color: #ffffff;
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}

.ccm-page .rc-cta-strip a.rc-cta-strip-button:hover,
.ccm-page .rc-cta-strip a.rc-cta-strip-button:focus-visible {
  background: #ffffff;
  color: #1e1e1e;
}

.ccm-page .rc-cta-strip a.rc-cta-strip-button:focus-visible {
  outline: 2px solid #1e1e1e;
  outline-offset: 2px;
}

/* White and light patina: a dark patina button. */
.ccm-page .rc-cta-strip--white a.rc-cta-strip-button,
.ccm-page .rc-cta-strip--patina-light a.rc-cta-strip-button {
  background: #2f6f64;
  color: #ffffff;
}

.ccm-page .rc-cta-strip--white a.rc-cta-strip-button:hover,
.ccm-page .rc-cta-strip--white a.rc-cta-strip-button:focus-visible,
.ccm-page .rc-cta-strip--patina-light a.rc-cta-strip-button:hover,
.ccm-page .rc-cta-strip--patina-light a.rc-cta-strip-button:focus-visible {
  background: #245a51;
  color: #ffffff;
}

/* Dark patina: a white button. */
.ccm-page .rc-cta-strip--patina-dark a.rc-cta-strip-button {
  background: #ffffff;
  color: #2f6f64;
}

.ccm-page .rc-cta-strip--patina-dark a.rc-cta-strip-button:hover,
.ccm-page .rc-cta-strip--patina-dark a.rc-cta-strip-button:focus-visible {
  background: #a9d6cb;
  color: #1e1e1e;
}

.ccm-page .rc-cta-strip--patina-dark a.rc-cta-strip-button:focus-visible {
  outline-color: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
  .ccm-page .rc-cta-strip a.rc-cta-strip-button {
    transition: none;
  }
}

/* On the home page the strip sits in its own wrapper (.home-cta) between two of the alternating
   section bands. The band padding and background must not apply to it, and the sections after it
   swap stripes so the alternation carries on as if it weren't there. The same rules are in
   _iteration.scss; they're repeated here so they work without recompiling the skin. */
div.theme-restoration .rc-home-sections > .home-cta {
  padding: 0;
  background: none;
}

div.theme-restoration .rc-home-sections > .home-cta ~ :nth-child(odd) {
  --rc-bg: #000000;
  --rc-surface: #121212;
  --rc-surface-hover: #1a1a1a;
  --rc-border: #262626;
}

div.theme-restoration .rc-home-sections > .home-cta ~ :nth-child(even) {
  --rc-bg: #141414;
  --rc-surface: #1d1d1d;
  --rc-surface-hover: #242424;
  --rc-border: #2e2e2e;
}
