/* Layout corrections applied after the main stylesheet. */

/* Keep all hero content on the same 1180px grid as the header and footer. */
.hero-inner {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.hero-copy {
  max-width: 560px;
}

/* On desktop the artwork is a contained right-hand panel rather than a
   viewport-wide background. This prevents enlargement beyond its useful
   display size and aligns its right edge with the site grid. */
@media (min-width: 961px) {
  .hero-art {
    inset: auto;
    top: 50%;
    right: max(20px, calc((100vw - 1180px) / 2));
    width: min(660px, 52vw);
    height: min(640px, calc(100% - 96px));
    transform: translateY(-50%);
    display: block;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 28px;
    background-color: #01091d;
    background-image: url("./assets/hero-desktop.webp?v=20260806-1542");
    background-repeat: no-repeat;
    background-position: 68% center;
    background-size: cover;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .34);
  }

  /* The cache-busted CSS background is used on desktop so browsers cannot
     retain the earlier low-resolution hero file under the same filename. */
  .hero-art img {
    opacity: 0;
  }

  .hero-art::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(1, 9, 29, .34), transparent 38%);
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(1, 9, 29, .99) 0%, rgba(1, 9, 29, .96) 30%, rgba(1, 9, 29, .72) 47%, rgba(1, 9, 29, .08) 69%),
      linear-gradient(0deg, #01091d 0%, transparent 20%, transparent 82%, rgba(1, 9, 29, .35) 100%);
  }
}

/* Keep the CAPTCHA and its privacy note aligned with the form grid. */
.recaptcha-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
}

.form-security-note {
  margin: -6px 0 0;
  color: var(--muted);
  font-size: .78rem;
}

/* Reject and close controls are equally easy to find and use. */
.cookie-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cookie-actions .button {
  width: 100%;
}

@media (max-width: 760px) {
  .hero-inner {
    width: min(1180px, calc(100% - 28px));
  }

  .hero-copy {
    max-width: 640px;
  }

  .cookie-actions {
    grid-template-columns: 1fr;
  }
}
