@charset "UTF-8";
/**
 * Section appearance
 *
 * Every block opts into this: a theme that sets the token palette, plus
 * an optional image layer painted over the theme colour.
 *
 * Two token layers, deliberately separate:
 *
 *   Section layer  (--crea-bg, --crea-ink, ...)
 *     The band itself. Inverts on the blue theme.
 *
 *   Surface layer  (--crea-surface, --crea-surface-ink, ...)
 *     Cards sitting on the band. A card is white with dark text on every
 *     theme. If one set of tokens drove both, cards would invert along
 *     with the section and become unreadable.
 *
 * @package creaunited_2020
 */
.crea-section {
  position: relative;
  background-color: var(--crea-bg);
  color: var(--crea-ink);
  /* Surface tokens are theme-independent: a card is a card. */
  --crea-surface: #fff;
  --crea-surface-ink: #1d2430;
  --crea-surface-ink-soft: #3d4550;
  --crea-surface-ink-faint: #78808d;
  --crea-surface-rule: #e4e7ec;
  /* Content sits above the image layer. */
}
.crea-section > * {
  position: relative;
  z-index: 1;
}

/* -------------------------------------------------------------------
 * Themes
 * ---------------------------------------------------------------- */
.crea-section--white {
  --crea-bg: #fff;
  --crea-ink: #1d2430;
  --crea-ink-soft: #5a6270;
  --crea-ink-faint: #78808d;
  --crea-rule: #e4e7ec;
  --crea-btn-bg: #fff;
  --crea-btn-ink: #1d4266;
  --crea-btn-border: #1d4266;
  --crea-btn-bg-hover: #1d4266;
  --crea-btn-ink-hover: #fff;
  --crea-accent-surface: #1d4266;
  --crea-accent-ink: #fff;
  --crea-focus: #1d4266;
}

.crea-section--gray {
  --crea-bg: #f7f8f9;
  --crea-ink: #1d2430;
  --crea-ink-soft: #5a6270;
  --crea-ink-faint: #78808d;
  --crea-rule: #e4e7ec;
  --crea-btn-bg: #fff;
  --crea-btn-ink: #1d4266;
  --crea-btn-border: #1d4266;
  --crea-btn-bg-hover: #1d4266;
  --crea-btn-ink-hover: #fff;
  --crea-accent-surface: #1d4266;
  --crea-accent-ink: #fff;
  --crea-focus: #1d4266;
}

.crea-section--blue {
  --crea-bg: #1d4266;
  --crea-ink: #fff;
  --crea-ink-soft: rgba(255, 255, 255, 0.82);
  --crea-ink-faint: rgba(255, 255, 255, 0.72);
  --crea-rule: rgba(255, 255, 255, 0.22);
  --crea-btn-bg: #fff;
  --crea-btn-ink: #16344f;
  --crea-btn-border: #fff;
  --crea-btn-bg-hover: transparent;
  --crea-btn-ink-hover: #fff;
  /* Inverted so stat cells stay visible against the blue band. */
  --crea-accent-surface: #fff;
  --crea-accent-ink: #1d4266;
  --crea-focus: #fff;
}

/* -------------------------------------------------------------------
 * Image layer
 *
 * Painted over the theme colour, so a transparent PNG shows the colour
 * through it with no extra handling.
 *
 * Cover and contain use an <img>, which gets WordPress srcset — worth a
 * lot on a hero, the heaviest image on the page. Repeat has to use a CSS
 * background because an <img> cannot tile, and so forgoes srcset. Tiling
 * textures are small files, so that trade is fine.
 * ---------------------------------------------------------------- */
.crea-section__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: var(--crea-bg-opacity, 1);
}

.crea-section__bg-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: var(--crea-bg-fit, cover);
  object-position: var(--crea-bg-position, center center);
}

.crea-section__bg--repeat {
  background-image: var(--crea-bg-image);
  background-repeat: repeat;
  background-position: var(--crea-bg-position, center center);
}

/* -------------------------------------------------------------------
 * Shared section furniture
 * ---------------------------------------------------------------- */
.crea-section__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 3.5rem 1.25rem;
}
@media (min-width: 1200px) {
  .crea-section__inner {
    padding: 4.5rem 2rem;
  }
}

.crea-kicker {
  margin: 0 0 1rem;
  font-size: 0.6875rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--crea-ink-faint);
}

.crea-headline {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.28;
  color: var(--crea-ink);
}
@media (min-width: 1200px) {
  .crea-headline {
    font-size: 1.875rem;
  }
}

.crea-sub {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--crea-ink-soft);
  max-width: 38em;
}

/* Button, themed. Two classes so the theme's link underline loses. */
.crea-section .crea-btn {
  display: inline-block;
  padding: 0.8125rem 1.75rem;
  background-color: var(--crea-btn-bg);
  border: 1px solid var(--crea-btn-border);
  border-radius: 2px;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  color: var(--crea-btn-ink);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.crea-section .crea-btn:hover, .crea-section .crea-btn:focus, .crea-section .crea-btn:active, .crea-section .crea-btn:visited {
  text-decoration: none;
}
.crea-section .crea-btn:hover, .crea-section .crea-btn:focus {
  background-color: var(--crea-btn-bg-hover);
  color: var(--crea-btn-ink-hover);
}
.crea-section .crea-btn:focus-visible {
  outline: 2px solid var(--crea-focus);
  outline-offset: 3px;
}
