/* Shared banner navigation for the news, video, download, and FAQ pages. */
:root {
  --resource-banner-accent: #ff8530;
  --resource-banner-frame: rgba(245, 247, 249, 0.78);
}

body #app > .form {
  width: var(--pros-container);
  max-width: calc(100% - 2rem);
  min-height: 3rem;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  color: var(--pros-muted);
  font-size: 0.88rem;
  line-height: 1.4;
  background:rgba(245, 247, 249, 0.78) ;
}

body #app > .form a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

body #app > .form a:hover {
  color: var(--resource-banner-accent);
}

body #app > .form a:last-child {
  color: var(--pros-ink);
  font-weight: 800;
}

body #app .resource-banner {
  position: relative;
  display: block;
  /* height: clamp(355px, 23.5vw, 450px); */
  min-height: 0;
  margin: 0;
  padding-top: var(--banner-header-offset);
  box-sizing: border-box;
  overflow: hidden;
  background: #1a2329;
  isolation: isolate;
}

body #app .resource-banner > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

body #app .resource-banner::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: rgba(7, 14, 19, 0.48);
  pointer-events: none;
}

body #app .resource-banner .content {
  position: relative;
  inset: auto;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  transform: none;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  padding: 44px 26px 50px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 20px;
  box-sizing: border-box;
}

body #app .resource-banner .item {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  aspect-ratio: 1.34;
  overflow: hidden;
  display: block;
  border: 8px solid rgba(186, 186, 186, 1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 1);
  color: #f5f7f9;
  box-sizing: border-box;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

body #app .resource-banner .item::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 28.93%, rgba(0, 0, 0, 0.64) 72.99%);
  pointer-events: none;
}

body #app .resource-banner .item > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transition: transform 0.35s ease;
}

body #app .resource-banner .item p {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 2;
  margin: 0;
  color: inherit;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: 0;
  text-align: center;
}

body #app .resource-banner .item.item-active {
  border-color: var(--resource-banner-accent);
  color: #0c0c0c;
}

body #app .resource-banner .item.item-active::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 50%, rgba(255, 222, 195, 0.38) 100%);
}

@media (hover: hover) {
  body #app .resource-banner .item:hover {
    border-color: var(--resource-banner-accent);
    transform: translateY(-4px);
  }

  body #app .resource-banner .item:hover > img {
    transform: scale(1.04);
  }
}

@media (max-width: 1100px) {
  body #app .resource-banner {
    height: clamp(290px, 29vw, 355px);
  }

  body #app .resource-banner .content {
    gap: 16px;
    padding: 32px 22px 38px;
  }

  body #app .resource-banner .item {
    border-width: 6px;
    border-radius: 10px;
  }

  body #app .resource-banner .item p {
    right: 10px;
    bottom: 12px;
    left: 10px;
    font-size: 20px;
  }
}

/* Keep four cards on small tablets. Switch to two columns only on phones,
   where a single row would make the labels and images too narrow. */
@media (max-width: 620px) {
  body #app > .form {
    width: calc(100% - 2rem);
    min-height: 2.625rem;
    font-size: 0.75rem;
  }

  body #app .resource-banner {
    height: auto;
    min-height: 0;
  }

  body #app .resource-banner .content {
    position: relative;
    inset: auto;
    transform: none;
    height: auto;
    min-height: 0;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  body #app .resource-banner .item {
    width: 100%;
    height: auto;
  }

  body #app .resource-banner .item p {
    bottom: 11px;
    font-size: 18px;
  }
}

@media (max-width: 420px) {
  body #app .resource-banner .content {
    padding: 14px;
    gap: 10px;
  }

  body #app .resource-banner .item {
    border-width: 4px;
    border-radius: 8px;
  }

  body #app .resource-banner .item p {
    right: 5px;
    bottom: 7px;
    left: 5px;
    font-size: 15px;
  }
}
