/* SVG-derived layout layer. Loaded after styles.css.
   Source of truth: x2-for-xport.svg, viewBox 911.92 x 484. */

.msd{
  container-type:size;
  width:min(100vw,188.4132vh);
  height:min(100vh,53.0750vw);
  aspect-ratio:911.92 / 484;
}

/* Use the exported vector structure directly rather than approximating the
   large LCARS shapes with independent CSS rectangles.

   The frame must sit ABOVE the vehicle artwork. Several of the visible
   Illustrator bars/sweeps cross the vehicle's image rectangle; when the shell
   lived at the old z-index:0 they were present but completely hidden beneath
   the opaque hero image. Callout leaders come later in the DOM at the same
   z-index, so they still paint over the frame, followed by callout labels and
   the header identity layer. */
.lcars-shell{
  inset:0;
  z-index:4;
  background:url('assets/reference-frame.svg') center / 100% 100% no-repeat;
}
.lcars-shell > *{display:none}

/* Header placement comes from the exported outline bounds. */
.identity{inset:0}
.plate,.brand{
  top:9.62%;
  height:5.63%;
  display:flex;
  align-items:center;
  padding:0 .35cqw;
  background:#000;
  font-family:"Antonio","Arial Narrow",sans-serif;
  font-size:7.05cqh;
  font-weight:500;
  line-height:.78;
}
.plate{left:11.07%}
.brand{right:13.47%}

/* Preserve the current vehicle treatment while moving the surrounding layout
   onto the exact reference aspect ratio. */
.hero{
  left:7.2%;
  top:18.1%;
  width:75.6%;
  height:59%;
}

/* The leader artwork is copied directly from the Illustrator SVG, so every
   elbow, radius, line weight, and endpoint stays exactly where it was drawn. */
.callout-leaders{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  z-index:4;
  pointer-events:none;
  user-select:none;
}

.callouts{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  z-index:5;
  pointer-events:none;
}

.callout{
  --bullet:#a285bd;
  position:absolute;
  display:flex;
  align-items:center;
  width:max-content;
  gap:.18cqw;
  padding:0;
  color:var(--bullet);
  font-family:"Antonio","Arial Narrow",sans-serif;
  font-size:1.20cqh;
  font-weight:400;
  line-height:1;
  letter-spacing:0;
  white-space:nowrap;
  transform:translateY(-50%);
}
.callout span{display:block;line-height:1}
.callouts i{
  width:.318cqw;
  height:.318cqw;
  flex:0 0 auto;
  margin:0;
  border-radius:50%;
  background:currentColor;
  box-shadow:0 0 .35cqw color-mix(in srgb,currentColor 55%,transparent);
}

/* Exact bullet columns from the SVG. Left labels terminate at the bullet;
   right labels begin at the bullet. */
.callouts-left .callout{
  right:85.0623%;
  left:auto;
  justify-content:flex-end;
  text-align:right;
}
.callouts-right .callout{
  left:83.2047%;
  right:auto;
  text-align:left;
}

/* Left callouts: exact bullet-center Y positions and source colors. */
.callouts-left .callout:nth-child(1){top:28.7066%;--bullet:#aed0e2}
.callouts-left .callout:nth-child(2){top:32.6364%;--bullet:#916399}
.callouts-left .callout:nth-child(3){top:40.4194%;--bullet:#aed0e2}
.callouts-left .callout:nth-child(4){top:43.8161%;--bullet:#a285bd}
.callouts-left .callout:nth-child(5){top:48.7169%;--bullet:#aed0e2}
.callouts-left .callout:nth-child(6){top:56.7583%;--bullet:#efa672}
.callouts-left .callout:nth-child(7){top:66.4298%;--bullet:#a285bd}

/* Right callouts: exact bullet-center Y positions and source colors. */
.callouts-right .callout:nth-child(1){top:27.9483%;--bullet:#aed0e2}
.callouts-right .callout:nth-child(2){top:31.2624%;--bullet:#916399}
.callouts-right .callout:nth-child(3){top:33.3017%;--bullet:#aed0e2}
.callouts-right .callout:nth-child(4){top:38.2541%;--bullet:#aed0e2}
.callouts-right .callout:nth-child(5){top:40.8926%;--bullet:#a285bd}
.callouts-right .callout:nth-child(6){top:43.1033%;--bullet:#efa672}
.callouts-right .callout:nth-child(7){top:49.4690%;--bullet:#efa672}
.callouts-right .callout:nth-child(8){top:54.8864%;--bullet:#efa672}
.callouts-right .callout:nth-child(9){top:61.3781%;--bullet:#a285bd}
