:root { --section-accent: #ffe81f; color-scheme: dark; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #f5f5f5; background: #000; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; }
/* The Death Star page background at 10% strength, as on the other collections (next17.css, stan-solo.css). A separate layer, so text and photographs stay fully opaque. */
body { position: relative; isolation: isolate; min-height: 100vh; background: #000; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: url("/images/opt/next17/death-star-blue-background-bg.jpg") 55% center / cover no-repeat; opacity: 0.1; }
a { color: inherit; text-underline-offset: .25em; }
button, input, select { font: inherit; }
button, select, summary { cursor: pointer; }
button:disabled, select:disabled { cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid #c99aff; outline-offset: 4px; }
.site-header, main, footer { width: min(1140px, calc(100% - 80px)); margin: 0 auto; }
.site-header, footer { display: flex; justify-content: space-between; gap: 20px; align-items: center; color: #a1a1a1; font-size: 12px; }
.site-header { padding: 38px 0 22px; }
.site-header a { text-decoration: none; color: #ddd; letter-spacing: .12em; text-transform: uppercase; }
.figure-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 58px; align-items: center; padding: 38px 0 64px; }
.figure-content { min-width: 0; }
.kenner-logo { display: block; width: min(100%, 211.345px); height: 60px; object-fit: contain; object-position: left center; margin-bottom: 20px; }
.figure-photo img { display: block; width: 100%; max-height: 760px; height: auto; object-fit: contain; }
/* Reveal the page background behind the photographs' black outer mat (all 97 share one frame: 4.4% top and bottom, 6.5% sides), as stan-solo.css does. Clips the main photo only; the inset portrait and layout box are untouched. */
.figure-photo > img:not(.figure-movie-photo) { clip-path: inset(4.4% 6.65% round 19.9% / 13.2%); }
.eyebrow { margin: 0 0 12px; color: #aaa; font-size: 13px; line-height: 1.6; }
h1 { margin: 0 0 34px; font-size: clamp(40px, 5vw, 62px); letter-spacing: -.05em; font-weight: 500; line-height: 1.05; }
.figure-content > h1 { margin-bottom: 12px; }
.figure-content > .eyebrow { margin-bottom: 34px; }
h2 { color: var(--section-accent); margin: 0; font-size: 22px; font-weight: 500; letter-spacing: -.025em; }
h3 { margin: 0; font-size: 13px; font-weight: 400; color: var(--section-accent); }
p { line-height: 1.6; }
.small { font-size: 12px; }
.muted { color: #aaa; }
.search-section { margin-top: 32px; }
.field-label { display: block; margin: 18px 0 8px; color: #bbb; font-size: 13px; }
select, input { color: #eee; background: #151515; border: 0; border-radius: 4px; padding: 12px; min-height: 46px; width: 100%; }
select { padding-right: 28px; }
.search-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: 12px 18px; background: #1c1c1c; border: 0; border-radius: 4px; color: #f1f1f1; text-decoration: none; font-size: 14px; font-weight: 500; line-height: 1.5; }
.button:hover { background: #292929; }
.button.primary { background: #f1f1f1; color: #0a0a0a; }
.button.primary:hover { background: #d9d9d9; }
.affiliate { color: #969696; margin-bottom: 0; }
label { display: block; font-size: 13px; color: #c3c3c3; }
footer { padding: 46px 0 32px; }
footer a { text-decoration: none; }
@media (max-width: 820px) {
  .site-header, main, footer { width: min(640px, calc(100% - 40px)); }
  .figure-layout { grid-template-columns: 1fr; gap: 28px; padding-top: 20px; padding-bottom: 15px; }
  .figure-photo { width: min(100%, 340px); margin: 0 auto; }
  .figure-content { width: 100%; }
  h1 { margin-bottom: 28px; }
  .figure-content > .eyebrow { margin-bottom: 28px; }
  input, select { font-size: 16px; }
}
@media (max-width: 480px) {
  .site-header { padding-top: 24px; }
  .site-header span { display: none; }
  .figure-photo { max-width: 290px; }
  .search-links .button { flex: 1 1 auto; padding-left: 13px; padding-right: 13px; }
  footer { flex-wrap: wrap; }
}

/* Vintage Kenner reference pages. */
html { scroll-behavior: smooth; }
.guide-nav { display: flex; flex-wrap: wrap; gap: 12px 28px; padding: 32px 0 8px; }
.guide-nav a, .guide-kicker { color: var(--section-accent); }
.guide-nav a { padding: 5px 0; font-size: 14px; text-decoration: none; }
.guide-nav a:hover { text-decoration: underline; }
.reference-section { padding: 62px 0 0; scroll-margin-top: 28px; }
.reference-section h2 { font-size: clamp(28px, 3vw, 36px); margin-bottom: 24px; }
.reference-section h3 { color: var(--section-accent); font-size: 18px; font-weight: 500; margin: 30px 0 12px; }
.reference-section p { color: #bdbdbd; font-size: 15px; margin: 0 0 22px; }
.reference-section strong { color: #e7e7e7; font-weight: 500; }
.reference-section .section-intro { max-width: 850px; font-size: 17px; line-height: 1.75; }
.reference-section .reference-note { color: #969696; font-size: 13px; max-width: 850px; line-height: 1.7; }
.facts { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 28px 32px; margin: 34px 0; }
.facts dt, .baggie-list dt { color: #989898; font-size: 12px; margin-bottom: 8px; }
.facts dd, .baggie-list dd { margin: 0; font-size: 15px; line-height: 1.6; }
.identification-layout { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 52px; align-items: start; margin-top: 34px; }
.family-notes h3:first-child { margin-top: 0; }
.reference-photo { margin: 0; min-width: 0; }
.reference-photo a { display: block; }
.reference-photo img { display: block; width: 100%; height: auto; object-fit: contain; }
.reference-photo figcaption { color: #969696; font-size: 12px; line-height: 1.65; margin-top: 12px; text-align: center; margin-inline: auto; }
.lineup { max-width: 950px; margin-top: 30px; }
.photo-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 30px; margin: 22px 0 36px; align-items: start; }
.tig-comparisons { align-items: center; }
.text-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 52px; }
.text-columns h3 { margin-top: 0; }
.baggie-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 30px; margin: 26px 0 0; }
.baggie-list + p { margin-top: 22px; }
.references ul { padding: 0; margin: 0; list-style: none; }
.references li { font-size: 13px; color: #aaa; line-height: 1.7; margin: 0 0 12px; }
@media (max-width: 820px) {
  .guide-nav { padding-top: 36px; gap: 6px 22px; }
  .reference-section { padding-top: 46px; }
  .facts { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
  .identification-layout { grid-template-columns: 1fr; gap: 28px; }
  .coo-chart { max-width: 560px; margin: 0 auto; }
  .text-columns { grid-template-columns: 1fr; gap: 12px; }
  .baggie-list { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 560px) {
  .photo-grid { grid-template-columns: 1fr; gap: 26px; }
  .reference-section .section-intro { font-size: 16px; }
}
/* Source photographs: preserve the full image and original proportions. */
.detail-views .supporting-photo > a { display: flex; align-items: center; justify-content: center; height: 360px; }
.detail-views img { width: auto; max-width: 100%; height: auto; max-height: 360px; }
.supporting-photo figcaption a { display: inline; }
.packaging-feature { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 44px; align-items: start; margin-bottom: 36px; }
.packaging-feature h3 { margin-top: 0; }
.card-example { width: 270px; max-width: 100%; margin: 0 auto; }
.period-ad { margin: 24px 0; }
@media (max-width: 820px) { .packaging-feature { grid-template-columns: 1fr; gap: 12px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Reference copy follows the images, with full-size originals available. */
.reference-section > p { max-width: 80ch; }
.reference-photo figcaption a { display: inline; }
.references ul { columns: 2; column-gap: 42px; }
.references li { break-inside: avoid; }
@media (max-width: 700px) { .references ul { columns: 1; } }
/* Breathing room beneath the reference links at the foot of the page. */
.references ul { margin-bottom: 25px; }

@media (max-width: 580px) { .kenner-logo { width: min(100%, 169.075px); height: 48px; margin-bottom: 16px; } }

/* Overview facts sit directly beneath the figure name. */
.figure-content .hero-overview { padding: 0; }
.hero-overview .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 28px; margin: 26px 0; }
.hero-overview > :last-child { margin-bottom: 0; }
.hero-overview .section-intro { font-size: 15px; line-height: 1.6; }
.hero-overview a, .hero-overview dd { overflow-wrap: anywhere; }

/* Collection identity links match the yellow Kenner index label. */
.site-header .collection-label, footer .collection-label { color: var(--section-accent); font-size: 11px; line-height: 1.65; text-transform: uppercase; letter-spacing: .16em; font-weight: 650; }
.site-header .collection-label { text-align: right; margin-left: auto; max-width: 60%; }

/* Character titles follow the Lili Ledy display-page typography. */
.figure-content > h1 { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: clamp(48px, 6vw, 77px); font-weight: 570; letter-spacing: -.065em; line-height: 1.04; color: #f1f1ec; font-synthesis: auto; overflow-wrap: break-word; }
@media (max-width: 580px) { .figure-content > h1 { font-size: 56px; } }


.single-photo { grid-template-columns: 1fr; }
.single-photo .reference-photo { max-width: 950px; }
.reference-photo figcaption a { display: inline; }
.reference-photo img { width: auto; max-width: 100%; margin: 0 auto; max-height: 640px; }
.photo-grid { align-items: start; }
.photo-grid .reference-photo > a { min-height: 0; }
.card-grid .reference-photo img { max-height: 408px; }
.reference-section a { overflow-wrap: anywhere; }

.reference-table-scroll { overflow-x: auto; margin: 32px 0 16px; }
.reference-table { width: 100%; border-collapse: collapse; font-size: .95rem; text-align: left; }
.reference-table caption { text-align: left; font-size: 1.15rem; font-weight: 700; margin-bottom: 20px; }
.reference-table th, .reference-table td { vertical-align: top; padding: 10px 20px 10px 0; }
.reference-table td:first-child { white-space: nowrap; }
.reference-table th { color: inherit; }

@media (max-width: 640px) { .reference-table, .reference-table tbody, .reference-table caption { display: block; } .reference-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } .reference-table tr { display: block; margin: 0 0 28px; } .reference-table td { display: grid; grid-template-columns: 105px minmax(0, 1fr); gap: 12px; padding: 5px 0; } .reference-table td::before { content: attr(data-label); color: inherit; font-weight: 600; } .reference-table td:first-child { white-space: normal; } }

.reference-section > p { max-width: 80ch; }
.reference-section .photo-grid { margin-top: 26px; margin-bottom: 42px; }
.reference-photo figcaption { max-width: 75ch; }
.references ul { columns: 2; column-gap: 42px; }
.references li { break-inside: avoid; }
@media (max-width: 700px) { .references ul { columns: 1; } }

@media (min-width: 1050px) { .photo-grid.three-photos { grid-template-columns: repeat(3,minmax(0,1fr)); } }

/* Optional movie photograph, enabled only on guides with supplied movie_photo data. */
/* Keep the approved 2-1B composition proportional at every viewport:
   140px left overhang and 225px portrait on a 486.90625px figure photo. */
.figure-layout--movie-inset { align-items: start; }
.figure-layout--movie-inset .figure-content { padding-top: 32px; }
/* Reserve the photo overhang, minus the grid gap, plus 28px of text clearance. */
.figure-layout--movie-inset .hero-overview { padding-right: max(0px, calc(23.52515593% - 30px)); }
.figure-photo--movie-inset { position: relative; margin-bottom: 0; }
.figure-photo--movie-inset .figure-movie-photo {
  position: absolute;
  z-index: 1;
  left: -28.7529683589%;
  bottom: 18%;
  width: 46.2101277197%;
  max-height: none;
  height: auto;
  border-radius: 44px;
  box-shadow: 0 0 0 6px #000;
}
@media (max-width: 1200px) {
  .figure-photo--movie-inset .figure-movie-photo { border-radius: 30px; }
}
@media (max-width: 820px) {
  .figure-layout--movie-inset .figure-content { padding-top: 0; }
  .figure-layout--movie-inset .hero-overview { padding-right: 0; }
  /* Fit and center the entire pair, including the portrait's left overhang.
     The portrait itself keeps exactly the same anchors as on desktop. */
  .figure-photo--movie-inset {
    width: min(340px, calc((100% - 12px) / 1.287529683589));
    max-width: none;
    margin: 0 auto;
    transform: translateX(14.37648417945%);
  }
  .figure-photo--movie-inset .figure-movie-photo { border-radius: 28px; box-shadow: 0 0 0 4px #000; }
}

/* Reserve the same portrait clearance for selected long figure headings. */
@media (min-width: 821px) { .figure-layout--movie-heading-clearance .figure-content > h1 { padding-right: max(0px, calc(23.52515593% - 30px)); } }

/* Additional source comparisons retain their original proportions. */
.reference-set { margin-top: 42px; }
.reference-set h3 { font-size: 1.08rem; font-weight: 600; line-height: 1.5; margin: 0 0 24px; }
.photo-grid .audit-reference-photo--wide { grid-column: 1 / -1; width: 100%; max-width: 1100px; }
.photo-grid .audit-reference-photo--wide img { width: auto; max-width: 100%; max-height: none; height: auto; }
.reference-set .reference-photo { min-width: 0; }
.reference-set .reference-photo img { object-fit: contain; }
