/* ==========================================================================
   Flood information banner
   Site-wide alert bar linking to flood information and resources.
   ========================================================================== */

.flood-banner {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
  padding: 14px 24px;
  background-color: #ffe000;
  color: #0f1b2d;
  font-family: 'Karla', Helvetica, Arial, sans-serif;
  text-align: center;
}

.flood-banner-title {
  margin-right: 24px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
}

.flood-banner-cta {
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
  padding: 12px 24px;
  background-color: #0f1b2d;
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.flood-banner-cta:hover,
.flood-banner-cta:focus {
  background-color: #1f3a5f;
  color: #ffffff;
  text-decoration: none;
}

.flood-banner-cta:focus {
  outline: 3px solid #0f1b2d;
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .flood-banner {
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    padding: 12px 16px;
  }

  .flood-banner-title {
    width: 100%;
    margin-right: 0;
    margin-bottom: 10px;
    font-size: 22px;
  }

  .flood-banner-cta {
    padding: 10px 20px;
    font-size: 18px;
  }
}

/* ==========================================================================
   Site modernization notice
   Centered italic note shown under the hero image bar.
   ========================================================================== */

.site-notice {
  box-sizing: border-box;
  max-width: 960px;
  margin: 0 auto;
  padding: 2em 1em 2.5em;
  text-align: center;
}

.site-notice-text {
  margin: 0;
  color: #505660;
  font-family: 'Karla', Helvetica, Arial, sans-serif;
  font-size: 1.25em;
  font-style: italic;
  line-height: 1.5em;
}

@media (max-width: 640px) {
  .site-notice {
    padding: 1.5em 1em 2em;
  }

  .site-notice-text {
    font-size: 1em;
  }
}


/* ==========================================================================
   Logo tiles
   Opt-in modifier for tiles whose image is a logo rather than a photo.
   main.css uses background-size:cover, which crops wide logos; "contain"
   fits the whole logo inside the box without cropping or distortion.
   Usage: <div class="tile-image logo" style="background-image: url(...)">
   ========================================================================== */

.activity-tile .tile-image.logo {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  background-color: #ffffff;
  background-origin: content-box;
  background-clip: content-box;
  padding: 1em; /* now this actually insets the logo */
  box-sizing: border-box; /* so padding doesn't grow the box's outer size */
}