/* Shared layout for the private site redesign. */
:is(.home-preview, .subpage-preview) {
  --preview-ink: #f7f2e8;
  --preview-muted: #cbd0d8;
  --preview-content-width: 1080px;
  --preview-gutter: clamp(16px, 4vw, 64px);
  --preview-card-padding: clamp(16px, 4vw, 48px);
  --preview-chrome-gutter: clamp(16px, 1.6vw, 20px);
  --preview-space: clamp(62px, 7.5vw, 104px);
  color: var(--preview-ink);
}
:is(.home-preview, .subpage-preview) .site-header {
  position: sticky;
  top: 12px;
  z-index: 12;
  width: min(1320px, calc(100% - 2 * var(--preview-chrome-gutter)));
  margin: 12px auto 0;
  background: rgb(8 18 33 / .9);
  border: 1px solid #ffffff30;
  border-radius: 12px;
  backdrop-filter: blur(16px);
}
:is(.home-preview, .subpage-preview) .header-inner,
:is(.home-preview, .subpage-preview) .mobile-nav {
  width: calc(100% - 2 * clamp(10px, 1.9vw, 24px));
}
:is(.home-preview, .subpage-preview) .header-inner { gap: clamp(8px, 1.2vw, 20px); }
:is(.home-preview, .subpage-preview) .desktop-nav { gap: clamp(16px, 2vw, 32px); }
:is(.home-preview, .subpage-preview) .desktop-nav a:first-child {
  background: transparent;
  color: inherit;
  padding: 10px 0;
}
:is(.home-preview, .subpage-preview) .desktop-nav a:last-child {
  padding: 10px 20px;
  background: var(--gold);
  color: #142434;
  border-radius: 3px;
}
:is(.home-preview, .subpage-preview) .mobile-nav {
  max-height: 70vh;
  max-height: 70dvh;
  overflow-y: auto;
}
:is(.home-preview, .subpage-preview) .preview-footer {
  margin-top: calc(var(--preview-space) / 2);
  padding-block: clamp(30px, 4.5vw, 58px) clamp(20px, 3vw, 36px);
  background: rgb(7 14 25 / .9);
  border-top: 1px solid #ffffff26;
}
.preview-footer-grid {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(0, 200px) minmax(0, 200px);
  gap: clamp(20px, 4vw, 60px);
  align-items: start;
}
.preview-footer-label {
  margin: 0 0 6px;
  color: var(--preview-ink);
  font-size: .9375rem;
  font-weight: 700;
}
.preview-footer-grid ul { margin: 0; padding: 0; list-style: none; }
.preview-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--preview-muted);
  font-size: .875rem;
  line-height: 1.5;
  text-decoration: none;
}
.preview-footer nav a:hover,
.preview-footer nav a:focus-visible {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: .22em;
}
.preview-footer .footer-bottom { margin-top: 24px; padding-top: 14px; }
.preview-footer .footer-bottom nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
.preview-footer-copyright {
  display: block;
  margin-top: 16px;
  color: var(--preview-muted);
  font-size: .75rem;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 850px) {
  :is(.home-preview, .subpage-preview) .mobile-quick-actions {
    inset: auto max(var(--preview-gutter), env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(var(--preview-gutter), env(safe-area-inset-left));
    gap: 6px;
    padding: 6px;
    background: #091521ee;
    border: 1px solid #ffffff30;
    border-radius: 10px;
  }
  :is(.home-preview, .subpage-preview) .mobile-quick-actions a {
    padding-inline: 5px;
    font-size: clamp(.75rem, 3.6vw, .875rem);
  }
  :is(.home-preview, .subpage-preview) .mobile-quick-actions .mobile-quick-nominees {
    color: var(--preview-ink);
    border-color: #8292a7;
    background: #192a3d;
  }
  :is(.home-preview, .subpage-preview) .mobile-quick-actions a:last-child {
    color: #091521;
    border-color: var(--gold);
    background: var(--gold);
    grid-column: 1;
    grid-row: 1;
  }
  .preview-footer .footer-bottom nav { margin-top: 4px; }
}
@media (max-width: 650px) {
  .preview-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
  .preview-footer-brand { grid-column: 1 / -1; }
}

.preview-footer > .container {
  width: min(var(--preview-content-width), calc(100% - 2 * var(--preview-gutter)));
}

/* Keep the background visible beyond the content and between panels. */
@media screen {
  body.subpage-preview {
    --preview-header-bottom: 96px;
    --preview-panel-surface: rgb(15 23 38 / .91);
    --preview-panel-border: #bfcce335;
    position: relative;
    isolation: isolate;
    background: #030712;
  }
  .subpage-preview .ambient-scene::after {
    background: linear-gradient(90deg, #03071255, #030712aa 50%, #03071255);
  }
  .subpage-preview > :is(main, footer, .legal-header) {
    position: relative;
    z-index: 1;
  }
  .subpage-preview main :is(.container, .ex-wrap) {
    width: min(var(--preview-content-width), calc(100% - 2 * var(--preview-gutter)));
  }
  .subpage-preview .press-main {
    width: min(768px, calc(100% - 2 * var(--preview-gutter)));
  }
  .guide-page.subpage-preview main {
    width: min(var(--preview-content-width), calc(100% - 2 * var(--preview-gutter)));
    padding-inline: 0;
  }
  .subpage-preview :is(.nominees-hero, .conference-hero, .ex-hero, .guide-hero, .video-intro) {
    padding-block: clamp(26px, 5vw, 64px);
  }
  .subpage-preview :is(.conference-section-heading, .simple-heading, .group-heading) h2 {
    font-size: clamp(1.6rem, 3.6vw, 2.5rem);
    line-height: 1.4;
  }
  .subpage-preview :is(.nominees-navigation-inner, .conference-schedule, .conference-session,
    .conference-registration, .press-guidance, .guide-section, .guide-award, .closing-panel, .legal-section),
  .ex-page.subpage-preview .simple-section > .ex-wrap {
    background: var(--preview-panel-surface);
    border: 1px solid var(--preview-panel-border);
    border-radius: 12px;
  }
  .nominees-page.subpage-preview .nominees-navigation-inner {
    top: calc(var(--preview-header-bottom) + 14px);
    max-height: calc(100dvh - var(--preview-header-bottom) - 32px);
    padding: 16px;
  }
  .subpage-preview .conference-schedule { overflow: hidden; }
  .subpage-preview .conference-schedule-row { background: transparent; }
  .subpage-preview .conference-registration {
    width: min(var(--preview-content-width), calc(100% - 2 * var(--preview-gutter)));
    margin-inline: auto;
    padding-block: clamp(24px, 4vw, 44px);
  }
  .subpage-preview .ex-hero { border-bottom: 0; }
  .ex-page.subpage-preview .simple-section {
    background: transparent;
    padding-block: 0 clamp(22px, 4vw, 56px);
  }
  .ex-page.subpage-preview .simple-section > .ex-wrap { padding: var(--preview-card-padding); }
  .subpage-preview .press-breadcrumb { margin-block: 0 26px; }
  .subpage-preview .press-intro h1 { margin-block: 10px 20px; }
  .subpage-preview .press-main { padding-block: clamp(28px, 5vw, 64px) 0; }
  .subpage-preview .press-guidance { padding: var(--preview-card-padding); }

  .detailed-terms.subpage-preview :is(.legal-header, main, footer) {
    width: min(var(--preview-content-width), calc(100% - 2 * var(--preview-gutter)));
    margin-inline: auto;
    padding-inline: 0;
  }
  .detailed-terms.subpage-preview .legal-nav { color: var(--preview-ink); }

  .subpage-preview:not(.detailed-terms) main :where([id]) {
    scroll-margin-top: calc(var(--preview-header-bottom) - 8px);
  }
}
@media screen and (max-width: 850px) {
  body.subpage-preview { --preview-header-bottom: 84px; }
}
@media screen and (max-width: 700px) {
  .nominees-page.subpage-preview .nominees-navigation {
    top: calc(var(--preview-header-bottom) + 6px);
    margin-inline: 0;
    padding: 0;
    background: transparent;
    border: 0;
  }
  .nominees-page.subpage-preview .nominees-navigation-inner {
    padding: 10px 12px;
    background: #101c2c;
  }
  .nominees-page.subpage-preview .nominees-award {
    scroll-margin-top: calc(var(--preview-header-bottom) + 64px);
  }
}
