/* Shared footer and navigation, independent of each challenge's theme. */
/* One responsive title-image frame for every challenge. Cover keeps the image's
   proportions; explicit no-repeat also protects single-layer image overrides. */
@media screen {
  body .hero {
    display:flex;
    align-items:center;
    min-height:46rem;
    width:100%;
    overflow:hidden;
    background-size:cover;
    background-repeat:no-repeat;
  }
  body .hero-image, body .hero-art {
    background-size:cover;
    background-repeat:no-repeat;
  }
  /* The wide Carol asset is complete: no stretched backdrop or second portrait. */
  body .hero-art:has(+ .hero-copy) { background-position:right top; }
  body .hero-art::after { content:none; }
  @media(max-width:650px) {
    body .hero { min-height:38rem; }
  }
}
.shared-site-footer { display:block; width:100%; margin:0; padding:0; border:0; background:#100d19; color:#fff; font:400 1rem/1.6 Arial,sans-serif; text-align:left; letter-spacing:normal; }
.shared-site-footer *, .challenge-site-header * { box-sizing:border-box; }
.shared-site-footer a { color:inherit; text-decoration:none; }
.shared-site-footer .footer-main, .shared-site-footer .footer-legal { width:min(86rem,calc(100% - clamp(2rem,5vw,6rem))); margin:0 auto; }
.shared-site-footer .footer-main { display:grid; grid-template-columns:1fr auto; gap:1.5rem 3rem; align-items:center; min-height:12rem; padding:2.5rem 0; }
.shared-site-footer .footer-brand { display:flex; align-items:center; gap:.85rem; }
.shared-site-footer .footer-brand img { display:block; width:2.8rem; height:2.8rem; flex:0 0 2.8rem; object-fit:cover; border:1px solid #ffffffb3; border-radius:50%; box-shadow:0 8px 24px #0005; }
.shared-site-footer .footer-brand div { display:flex; flex-direction:column; }
.shared-site-footer .footer-brand strong { font:italic 700 1.08rem/1.4 Georgia,serif; letter-spacing:-.02em; }
.shared-site-footer .footer-brand small { display:block; margin-top:.2rem; color:#fff; font:700 .75rem/1.4 monospace; letter-spacing:.15em; }
.shared-site-footer .footer-main > p { grid-column:1; margin:-.8rem 0 0; color:#ffffffa6; font:italic 1rem/1.5 Georgia,serif; text-align:left; }
.shared-site-footer .footer-links { grid-column:2; grid-row:1 / 3; display:flex; flex-wrap:wrap; justify-content:flex-end; gap:1rem 1.5rem; max-width:34rem; margin:0; padding:0; border:0; background:none; }
.shared-site-footer .footer-links a { font:700 .875rem/1.5 Arial,sans-serif; text-transform:none; letter-spacing:0; white-space:nowrap; }
.shared-site-footer a:hover { color:#f5bfd6; }
.shared-site-footer .footer-legal { display:flex; position:relative; align-items:center; flex-wrap:wrap; gap:1rem 1.5rem; min-height:5rem; padding:1.25rem 0; border-top:1px solid #ffffff26; color:#ffffffb3; font:400 .8125rem/1.5 Arial,sans-serif; text-transform:none; letter-spacing:0; }
.shared-site-footer .footer-legal > a:last-child { margin-left:auto; }
.shared-site-footer details { position:relative; }
.shared-site-footer summary { cursor:pointer; list-style:none; font:inherit; }
.shared-site-footer summary::-webkit-details-marker { display:none; }
.shared-site-footer .legal-popover { position:absolute; z-index:40; bottom:2.25rem; left:0; width:min(25rem,calc(100vw - 2rem)); padding:1.5rem; border:1px solid #ffffff30; border-radius:.75rem; background:#211a2c; box-shadow:0 20px 50px #0006; color:#ffffffc4; font:400 .875rem/1.6 Arial,sans-serif; text-transform:none; letter-spacing:0; }
.shared-site-footer .legal-popover strong { color:white; font-size:.95rem; }
.shared-site-footer .legal-popover p { margin:1rem 0; }
.shared-site-footer .legal-popover p:last-child { margin-bottom:0; }
.shared-site-footer .legal-popover { max-height:min(32rem,70dvh); overflow-y:auto; overscroll-behavior:contain; }
.shared-site-footer a:focus-visible, .shared-site-footer summary:focus-visible { outline:2px solid #f5bfd6; outline-offset:5px; }
.challenge-site-header { position:relative; z-index:25; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:1rem; width:100%; margin:0; padding:1.3rem clamp(1rem,4vw,5rem); background:#100d19; color:white; font:400 1rem/1.5 Arial,sans-serif; }
.challenge-site-header a { color:inherit; text-decoration:none; }
.challenge-site-header .brand { display:flex; align-items:center; gap:.8rem; font:italic 700 1.1rem/1.3 Georgia,serif; white-space:nowrap; }
.challenge-site-header .brand img { width:2.8rem; height:2.8rem; object-fit:cover; border-radius:50%; border:1px solid #ffffffb3; }
.challenge-site-header .brand span { display:flex; flex-direction:column; }
.challenge-site-header .brand small { margin-top:.25rem; color:#fff; font:700 .75rem/1.3 monospace; letter-spacing:.12em; }
.challenge-site-header .site-nav { display:flex; position:static; align-items:center; gap:clamp(.8rem,1.4vw,1.5rem); padding:0; border:0; background:transparent; color:white; }
.challenge-site-header .site-nav > a, .challenge-site-header .site-nav > details > summary { font:700 .875rem/1.5 Arial,sans-serif; text-transform:none; letter-spacing:0; white-space:nowrap; }
.challenge-site-header .site-nav a[aria-current=page] { color:#f5bfd6; }
.challenge-site-header .nav-live { padding:.65rem 1rem; border:1px solid #ffffff70; border-radius:2rem; }
.challenge-site-header .formats-menu { position:relative; }
.challenge-site-header .formats-menu summary { cursor:pointer; list-style:none; }
.challenge-site-header .formats-menu summary::after { content:" +"; color:#f5bfd6; }
.challenge-site-header .formats-dropdown { position:absolute; top:calc(100% + 1rem); right:0; display:grid; width:17rem; max-height:70vh; overflow-y:auto; padding:.8rem; border:1px solid #ffffff26; border-radius:.75rem; background:#211a2c; box-shadow:0 15px 40px #0005; }
.challenge-site-header .formats-dropdown a { padding:.65rem .8rem; font:400 .9rem/1.5 Arial,sans-serif; text-transform:none; }
.challenge-site-header .formats-dropdown a:hover { background:#ffffff12; border-radius:.4rem; }
.challenge-site-header .mobile-menu { display:none; position:relative; }
.challenge-site-header .mobile-menu > summary { list-style:none; padding:.6rem .9rem; border:1px solid #ffffff70; border-radius:2rem; cursor:pointer; font:700 .875rem/1.5 Arial,sans-serif; }
.challenge-site-header .mobile-menu > nav { position:absolute; top:calc(100% + 1rem); right:0; display:grid; width:min(21rem,calc(100vw - 2rem)); max-height:75vh; overflow-y:auto; padding:.8rem; border:1px solid #ffffff26; border-radius:.75rem; background:#211a2c; box-shadow:0 15px 40px #0005; }
.challenge-site-header .mobile-menu nav a { padding:.6rem .8rem; font:400 .875rem/1.5 Arial,sans-serif; text-transform:none; }
@media(max-width:1100px) { .challenge-site-header .site-nav { display:none; } .challenge-site-header .mobile-menu { display:block; } }
@media(max-width:760px) {
  .shared-site-footer .footer-main { display:flex; flex-direction:column; align-items:flex-start; gap:1.5rem; padding:2.5rem 0; }
  .shared-site-footer .footer-main > p { margin:-.4rem 0 0; }
  .shared-site-footer .footer-links { justify-content:flex-start; gap:1rem 1.25rem; }
  .shared-site-footer .footer-legal { gap:1rem; }
  .shared-site-footer .footer-legal > span { width:100%; }
  .shared-site-footer .legal-popover { left:-1rem; }
  .shared-site-footer .legal-right { left:-6rem; }
}
