/* Single-frame companion to the homepage's panoramic feature. */
.restored-product:not(.discovery-magazine) .page-width:has(> .nova-banner) {
  width: min(100%, var(--tf-page-max));
}
.restored-product #main > .page-width:has(> [data-space-breadcrumb]) {
  margin-block-start: 0;
  padding-block-start: clamp(.75rem, 2vw, 1.25rem);
}
.restored-product nav[data-space-breadcrumb] {
  margin: 0 0 .75rem;
  padding: 0;
}
.restored-product nav[data-space-breadcrumb] a { color: inherit; }
.restored-product nav[data-space-breadcrumb] a:is(:hover, :focus-visible) {
  text-decoration: underline;
  text-underline-offset: .18em;
}

.restored-product .nova-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
  align-items: center;
  text-align: left;
  min-height: clamp(15rem, 26vw, 25rem);
  margin: 0 0 clamp(1.25rem, 2.7vw, 2.6rem);
  padding: 0;
  border: 0;
  border-top: 3px solid var(--topic-ink, #bba8ff);
  color: #fff;
  background: radial-gradient(ellipse at 42% 100%, var(--topic-deep, #392346), transparent 70%), #13101e;
}
.nova-banner::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -30% 48% -30% 30%;
  transform: skewX(-26deg);
  background: linear-gradient(90deg, transparent, var(--topic-deep, #392346), transparent);
  pointer-events: none;
}
.nova-banner .nova-banner-art {
  position: relative;
  grid-area: 1 / 2;
  align-self: stretch;
  width: 100%;
  aspect-ratio: 3 / 2;
  display: grid;
  place-items: center end;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 16%);
  mask-image: linear-gradient(90deg, transparent, #000 16%);
}
.nova-banner .nova-banner-art img {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: right center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
}
.restored-product .nova-banner-copy {
  grid-area: 1 / 1;
  position: relative;
  box-sizing: border-box;
  min-width: 0;
  padding: clamp(1.35rem, 3.2vw, 3.4rem) 0 clamp(1.4rem, 3.5vw, 3.5rem) clamp(1rem, 3.1vw, 3.3rem);
}
.restored-product .nova-banner-copy h1 {
  margin: 0;
  padding: 0;
  max-width: none;
  font-size: clamp(2.05rem, 3.9vw, 4.4rem);
  font-weight: 750;
  line-height: .99;
  letter-spacing: -.055em;
  overflow-wrap: break-word;
  text-wrap: balance;
  color: #fff;
}
.nova-banner-copy h1 em, .nova-banner-copy h1 span { color: var(--topic-ink, #c0adff); }
.restored-product .nova-banner-copy p {
  margin: .8rem 0 0;
  max-width: 48ch;
  font-size: clamp(.98rem, 1.18vw, 1.15rem);
  line-height: 1.45;
  color: #ece9f1;
}
.restored-product .nova-banner-copy .nova-banner-kicker, .restored-product .nova-banner-copy .back-link {
  display: block;
  margin: 0 0 .75rem;
  color: var(--topic-ink, #c0adff);
  font-weight: 700;
  font-size: .79rem;
  line-height: 1.4;
}
.restored-product .nova-banner-copy .nova-banner-credit, .restored-product .nova-banner-copy .check-micro {
  font-size: .87rem;
  color: #d3cfd9;
}
.nova-banner-copy > :is(nav, .button-row, .points-actions), .nova-banner-copy > a:not(.back-link) { margin-top: 1rem; }
.nova-banner-copy > a { display: inline-block; }
.nova-banner-copy nav { display: flex; flex-wrap: wrap; gap: .45rem 1rem; }
.nova-banner-copy nav a, .nova-banner-copy p a, .nova-banner-copy > a:not(.button) { color: var(--topic-ink, #c0adff); }
@media (min-width: 701px) and (prefers-reduced-motion: no-preference) {
  .nova-banner::before { animation: nova-banner-light 4s ease-out 1 both; }
  @keyframes nova-banner-light { from { translate: -15% 0; opacity: .2; } to { translate: 8% 0; opacity: .72; } }
}
@media (max-width: 700px) {
  .restored-product .nova-banner { display: flex; flex-direction: column; align-items: stretch; min-height: 0; margin-bottom: .75rem; }
  .nova-banner .nova-banner-art {
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: 3 / 2;
    -webkit-mask-image: linear-gradient(0deg, transparent, #000 10%);
    mask-image: linear-gradient(0deg, transparent, #000 10%);
  }
  .nova-banner .nova-banner-art img { object-position: center; }
  .restored-product .nova-banner-copy { padding: .65rem .85rem .85rem; }
  .restored-product .nova-banner-copy h1 { font-size: clamp(1.9rem, 7.8vw, 3.25rem); }
  .nova-banner::before { display: none; }
}

.nova-banner-copy .discovery-hub-account .topic-plate {
  flex: 0 0 2rem;
  width: 2rem;
  margin: 0;
  padding: .12rem;
  align-self: center;
  border: 1px solid #ffffff59;
  border-radius: 50%;
  transform: none;
}

/* Each main section keeps its own photograph and a detail from its subject. */
[data-banner-motion] {
  --motion-ink: #a7cbff;
  --motion-shade: #21304f;
  --mark-x: 77%;
  --mark-y: 40%;
  --shot-ratio: 2 / 1;
}
[data-banner-motion="archive"] {
  --motion-ink: #ffd297; --motion-shade: #3a2840; --shot-ratio: 3 / 2;
  --mark-x: 77%; --mark-y: 48%;
}
[data-banner-motion="providers"] {
  --motion-ink: #a4ead9; --motion-shade: #17383d; --shot-ratio: 2 / 1;
  --mark-x: 26%; --mark-y: 32%;
}
[data-banner-motion="news"] { --shot-ratio: 16 / 9; --mark-x: 30%; }
[data-banner-motion="tools"] {
  --motion-ink: #d7ed85; --motion-shade: #2b3045; --mark-x: 29%; --mark-y: 41%;
}
[data-banner-motion="forum"] {
  --motion-ink: #dec2ff; --motion-shade: #382743; --shot-ratio: 3 / 2;
  --mark-x: 26%; --mark-y: 33%;
}
[data-banner-motion="spaces"] { --motion-ink: #c8d6ff; --motion-shade: #2a2956; }
[data-banner-motion="quiz"] {
  --motion-ink: #d4ff76; --mark-x: 18%; --mark-y: 36%;
}
.restored-product .nova-banner[data-banner-motion] {
  border: 1px solid color-mix(in srgb, var(--motion-ink) 32%, #191925);
  border-top: 3px solid var(--motion-ink);
  border-radius: clamp(.65rem, 1.1vw, 1.15rem);
  background: radial-gradient(ellipse at 38% 100%, var(--motion-shade), transparent 68%), #12121e;
}
.nova-banner[data-banner-motion]::before {
  inset: -28% 42% -20% 5%;
  background: radial-gradient(ellipse, color-mix(in srgb, var(--motion-ink) 15%, transparent), transparent 65%);
}
.nova-banner[data-banner-motion] .nova-banner-art {
  aspect-ratio: var(--shot-ratio);
  align-content: center;
  mask-image: linear-gradient(90deg, transparent, #000 13%);
}
.nova-banner .banner-frame {
  position: relative;
  width: 100%;
  aspect-ratio: var(--shot-ratio);
  overflow: hidden;
  isolation: isolate;
}
.nova-banner .banner-frame img { transform-origin: center top; }
.banner-frame::after {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 62% -12% -42%;
  pointer-events: none;
  background: radial-gradient(ellipse, color-mix(in srgb, var(--motion-ink) 27%, transparent), transparent 66%);
  mix-blend-mode: screen;
}
.banner-mark {
  position: absolute;
  z-index: 2;
  top: var(--mark-y);
  left: var(--mark-x);
  width: clamp(2.4rem, 5vw, 4.65rem);
  aspect-ratio: 1;
  translate: -50% -50%;
  color: var(--motion-ink);
  opacity: .8;
  filter: drop-shadow(0 1px 5px #12101f);
  pointer-events: none;
}
.banner-mark i { position: absolute; display: block; }

/* News transmits a signal. Spaces traces the routes between three points. */
[data-banner-motion="news"] .banner-mark::before,
[data-banner-motion="spaces"] .banner-mark::before {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: .44rem; height: .44rem; border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 .65rem currentColor;
}
[data-banner-motion="news"] .banner-mark i {
  inset: 3%;
  border: 2px solid currentColor;
  border-color: currentColor transparent;
  border-radius: 50%;
  rotate: 90deg;
}
[data-banner-motion="news"] .banner-mark i:nth-child(2) { inset: 16%; }
[data-banner-motion="news"] .banner-mark i:nth-child(3) { inset: 30%; }
[data-banner-motion="spaces"] .banner-mark i {
  inset: 22% -4%;
  border: 1px solid currentColor;
  border-radius: 50%;
}
[data-banner-motion="spaces"] .banner-mark i::after {
  content: ''; position: absolute; top: 12%; left: 12%;
  width: .32rem; height: .32rem; border-radius: 50%; background: currentColor;
}
[data-banner-motion="spaces"] .banner-mark i:nth-child(2) { rotate: 60deg; }
[data-banner-motion="spaces"] .banner-mark i:nth-child(3) { rotate: -60deg; }

/* The guide's layered pages and the quiz's cards pivot around their lower edges. */
:is([data-banner-motion="archive"], [data-banner-motion="quiz"]) .banner-mark i {
  inset: 12% 20%;
  border: 1.5px solid currentColor;
  border-radius: 9%;
  transform-origin: 50% 92%;
  rotate: -18deg;
}
:is([data-banner-motion="archive"], [data-banner-motion="quiz"]) .banner-mark i:nth-child(2) { rotate: -4deg; }
:is([data-banner-motion="archive"], [data-banner-motion="quiz"]) .banner-mark i:nth-child(3) {
  rotate: 10deg; background: var(--motion-shade);
}
[data-banner-motion="archive"] .banner-mark i:last-child::after {
  content: ''; position: absolute; top: 26%; left: 18%;
  width: 64%; height: 1px; background: currentColor; box-shadow: 0 .35em, 0 .7em;
}
[data-banner-motion="quiz"] .banner-mark { z-index: 0; width: clamp(1.35rem, 5vw, 4.65rem); }
[data-banner-motion="quiz"] .banner-mark i:last-child::after {
  content: ''; position: absolute; inset: 37% 32%; border: 1px solid; rotate: 45deg;
}

/* Index comparisons, the console dial and the forum replies use the studio's empty space. */
[data-banner-motion="providers"] .banner-mark i {
  left: 5%; top: 24%; width: 75%; height: 9%;
  border-radius: 8px; background: linear-gradient(90deg, transparent, currentColor);
  transform-origin: left center;
}
[data-banner-motion="providers"] .banner-mark i:nth-child(2) { top: 46%; width: 94%; }
[data-banner-motion="providers"] .banner-mark i:nth-child(3) { top: 68%; width: 60%; }
[data-banner-motion="tools"] .banner-mark {
  border: 2px solid; border-bottom-color: transparent; border-radius: 50%;
}
[data-banner-motion="tools"] .banner-mark i:first-child {
  inset: 9%; border: 2px dotted currentColor; border-radius: inherit;
}
[data-banner-motion="tools"] .banner-mark i:nth-child(2) {
  left: 50%; bottom: 50%; width: 2px; height: 35%;
  background: currentColor; transform-origin: bottom; rotate: 35deg;
}
[data-banner-motion="tools"] .banner-mark i:last-child {
  left: 50%; top: 50%; translate: -50% -50%; width: 12%; height: 12%; border-radius: 50%; background: currentColor;
}
[data-banner-motion="forum"] .banner-mark i { border: 1.5px solid; border-radius: 28%; }
[data-banner-motion="forum"] .banner-mark i:first-child { inset: 12% 29% 42% 2%; }
[data-banner-motion="forum"] .banner-mark i:nth-child(2) { inset: 48% 0 8% 35%; background: var(--motion-shade); }
[data-banner-motion="forum"] .banner-mark i:nth-child(-n+2)::after {
  content: ''; position: absolute; left: 20%; bottom: -14%; width: 14%; height: 19%;
  border-left: 1.5px solid; border-bottom: 1.5px solid; transform: skewY(-32deg); background: var(--motion-shade);
}
[data-banner-motion="forum"] .banner-mark i:last-child {
  left: 52%; top: 68%; width: 5%; height: 5%; border: 0; border-radius: 50%;
  background: currentColor; box-shadow: .44em 0, .88em 0;
}
[data-banner-motion] .banner-motion-control { display: none; }
@media (prefers-reduced-motion: no-preference) {
  [data-banner-motion] .banner-motion-control {
    position: absolute; z-index: 4; bottom: .25rem; right: .3rem;
    display: grid; place-items: center; width: 44px; height: 44px; margin: 0; cursor: pointer;
  }
  .banner-motion-control input {
    position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer;
  }
  .banner-motion-control span {
    display: grid; place-items: center; box-sizing: border-box;
    width: 30px; height: 30px; border: 1px solid #ffffff83; border-radius: 50%; background: #101420ce; color: #fff;
  }
  .banner-motion-control span::after {
    content: ''; width: 7px; height: 10px; box-sizing: border-box; border-inline: 2px solid;
  }
  .banner-motion-control input:checked + span::after {
    width: 0; height: 0; margin-left: 2px; border: 5px solid transparent; border-right: 0; border-left: 8px solid;
  }
  .banner-motion-control input:focus-visible + span { outline: 3px solid white; outline-offset: 3px; }
  :is(.nova-banner, .spaces-stage)[data-banner-motion] .banner-frame img { animation: banner-camera 8s ease-in-out infinite alternate; }
  .vq-portrait img { animation: banner-float 5s ease-in-out infinite alternate; }
  .banner-frame::after { animation: banner-light 5.2s ease-in-out infinite alternate; }
  [data-banner-motion="news"] .banner-mark i, [data-banner-motion="forum"] .banner-mark i {
    animation: banner-pulse 3.2s ease-in-out infinite alternate;
  }
  [data-banner-motion="spaces"] .banner-mark { animation: banner-orbit 22s linear infinite; }
  :is([data-banner-motion="archive"], [data-banner-motion="quiz"]) .banner-mark i {
    animation: banner-fan 4.5s ease-in-out infinite alternate;
  }
  [data-banner-motion="providers"] .banner-mark i { animation: banner-compare 4s ease-in-out infinite alternate; }
  [data-banner-motion="tools"] .banner-mark i:nth-child(2) { animation: banner-dial 4s ease-in-out infinite alternate; }
  .banner-mark i:nth-child(2) { animation-delay: -.8s; }
  .banner-mark i:nth-child(3) { animation-delay: -1.6s; }
  [data-banner-motion]:has(.banner-motion-control input:checked)::before,
  [data-banner-motion]:has(.banner-motion-control input:checked) :is(.banner-mark, .banner-mark i, .banner-frame img),
  [data-banner-motion]:has(.banner-motion-control input:checked) .banner-frame::after {
    animation-play-state: paused;
  }
}
@keyframes banner-camera { to { transform: scale(1.018); } }
@keyframes banner-float { to { transform: translateY(-3px); } }
@keyframes banner-light { from { opacity: .3; transform: translateX(-12%); } to { opacity: .92; transform: translateX(12%); } }
@keyframes banner-pulse { from { opacity: .4; transform: scale(.88); } to { opacity: .98; transform: scale(1.03); } }
@keyframes banner-orbit { to { rotate: 1turn; } }
@keyframes banner-fan { from { transform: rotate(-6deg); } to { transform: rotate(7deg); } }
@keyframes banner-compare { from { transform: scaleX(.54); } to { transform: scaleX(1); } }
@keyframes banner-dial { from { rotate: -52deg; } to { rotate: 54deg; } }
@media (max-width: 700px) {
  .nova-banner[data-banner-motion] .nova-banner-art {
    aspect-ratio: var(--shot-ratio);
    mask-image: linear-gradient(0deg, transparent, #000 10%);
  }
}
