/* Collection landing and browse only. NASA intake and individual Marvels have their own templates. */
#primary [data-collection-look="interstellar"] {
  --ink: #f1f6fb;
  --muted: #c4d5e3;
  --line: #466175;
  --interstellar-gutter: 0px;
  box-sizing: border-box; width: calc(100% - clamp(20px,4vw,64px)); max-width: 1220px;
  margin: 16px auto 36px; padding: clamp(18px,3vw,42px);
  color: var(--ink); background-color: #070910;
  background-image: url("star-field.webp?sky=73bf56a6b622");
  background-size: 1024px 550px; background-position: center top; background-repeat: repeat;
  border: 1px solid var(--line); border-radius: 12px;
  font: 400 16px/1.5 "Avenir Next Regular","Segoe UI",sans-serif;
  & * { box-sizing: border-box; }
  & .recent-avatars-head, & .avatar-head-content {
    display: block; width: 100%; margin: 0; padding: 0; border: 0; background: none;
  }
  & .interstellar-collection-brand { display: flex; align-items: center; gap: 12px; margin: 0; }
  & .interstellar-collection-brand img { width: 54px; height: 54px; object-fit: contain; }
  & .interstellar-collection-brand img:first-of-type:has(+img) { display: none; }
  & .interstellar-collection-brand h1 {
    color: var(--ink); font: 700 clamp(32px,3.9vw,52px)/1.06 "Avenir Next Regular","Segoe UI",sans-serif;
    letter-spacing: -.035em; margin: 0; text-transform: none;
  }
  & .mind_heading, & .interstellar-empty {
    display: block; color: var(--muted); font: inherit; font-size: 1.075rem;
    text-align: left; letter-spacing: 0; margin: 12px 0 0;
  }
  & .interstellar-landing-tools, & .interstellar-browse-tools {
    display: flex; align-items: flex-end; justify-content: flex-start; flex-wrap: wrap;
    gap: 12px 20px; border-block: 1px solid var(--line); margin: 20px 0; padding: 16px 0;
  }
  & .interstellar-landing-search { flex: 1 1 300px; max-width: 630px; min-width: 0; text-align: left; }
  & .interstellar-landing-search label { font: 650 15px/1.3 "Avenir Next Regular",sans-serif; color: var(--ink); margin-bottom: 6px; }
  & :is(.interstellar-landing-search input,.interstellar-browse-tools select) {
    min-width: 0; max-width: 100%; min-height: 44px; font: inherit; font-size: 15px; padding: 8px 12px;
    background: #f7fafc; color: #142534; border: 1px solid #9fb8c9; border-radius: 5px;
    text-transform: none; letter-spacing: 0;
  }
  & .interstellar-filter-actions { gap: 8px; }
  & :is(.interstellar-button,.augment-tour-launch,.redirection-links>a,.interstellar-add-button) {
    min-height: 40px; width: auto; max-width: 100%; padding: 8px 14px; border: 1px solid #9ad2e2;
    background: #bde7f2; color: #102b3c; border-radius: 5px;
    font: 650 14px/1.35 "Avenir Next Regular","Segoe UI",sans-serif;
    letter-spacing: 0; text-decoration: none; text-transform: none; margin: 0;
  }
  & :is(.interstellar-button-outline,.augment-tour-launch,.interstellar-add-button) {
    background: #192e41; color: #e4f6fc; border-color: #5a8298;
  }
  & :is(.interstellar-button,.augment-tour-launch,.redirection-links>a,.interstellar-add-button):hover {
    background: white; color: #142534;
  }
  & .interstellar-results-heading { margin: 20px 0 12px; }
  & .interstellar-results-heading h2 { color: var(--ink); font: 700 23px/1.25 "Avenir Next Regular",sans-serif; }
  & .interstellar-marvel-grid:not(.interstellar-carousel) {
    grid-template-columns: repeat(auto-fill,minmax(min(100%,198px),1fr)); gap: 12px;
  }
  & .interstellar-marvel-grid { margin: 0 0 16px; padding-inline: 0; }
  & .my-avatar-cont {
    display: flex; align-items: stretch; justify-content: flex-start; min-width: 0;
    margin: 0; padding: 0 0 14px; background: #172330; border: 1px solid #40586b;
    border-radius: 7px; transform: none; text-align: left;
  }
  & .my-avatar-cont:is(:hover,:focus-within) { border-color: #83b5ca; background: #1d3245; }
  & .img-container { width: 100%; aspect-ratio: 16/11; margin: 0 0 6px; overflow: hidden; border-radius: 6px 6px 0 0; background: #0a1520; }
  & .img-container a, & .img-container img { display: block; width: 100%; height: 100%; margin: 0; border-radius: 0; object-fit: contain; }
  & :is(.avtar-category,.avtar-name,.avtar-title) {
    width: auto; margin: 5px 12px 0; text-align: left; letter-spacing: 0;
    color: var(--ink); font: inherit; overflow-wrap: anywhere;
  }
  & .avtar-category { font-size: 12px; color: #a6ddeb; font-weight: 700; }
  & .avtar-name, & .avtar-name a { font: 700 19px/1.22 "Avenir Next Regular",sans-serif; color: var(--ink); text-decoration: none; }
  & .avtar-title { font-size: 15px; line-height: 1.45; color: var(--muted); }
  & .avatar-redirection { display: block; position: static; opacity: 1; visibility: visible; width: 100%; margin: auto 0 0; padding: 12px 12px 0; }
  & .redirection-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-start; width: 100%; background: none; box-shadow: none; }
  & .redirection-links>a, & .interstellar-add { flex: 0 1 auto; }
  & .interstellar-add { width: auto; }
  & .interstellar-back, & .interstellar-pagination a { color: #bde7f2; text-decoration: underline; }
  & :focus-visible { outline: 3px solid #bde7f2 !important; outline-offset: 3px; }
}
@media(max-width:620px) {
  #primary [data-collection-look="interstellar"] {
    width: calc(100% - 16px); margin: 8px auto 24px; padding: 16px 12px;
    & .interstellar-collection-brand { gap: 8px; }
    & .interstellar-collection-brand img { width: 40px; height: 40px; }
    & .interstellar-marvel-grid:not(.interstellar-carousel) { grid-template-columns: repeat(auto-fill,minmax(min(100%,144px),1fr)); gap: 8px; }
    & .avtar-name, & .avtar-name a { font-size: 17px; }
  }
}
