/* 图鉴 page: only what dex.css does not already give. */

/* 比一比: one dotted tile, one column per rocket on a shared ground line, same scale. */
.v-codex .v-codex__tile { border-radius: 20px; overflow: hidden; padding: 32px clamp(16px, 4vw, 56px) 24px;
  background-color: var(--art); background-image: radial-gradient(circle at 1px 1px, var(--art-dot) 1px, transparent 1.5px); background-size: 12px 12px;
  border-bottom: 3px solid var(--y); }
.v-codex .v-codex__lineup { display: flex; justify-content: center; align-items: flex-end; max-width: 820px; margin: 0 auto; }
.v-codex .v-codex__col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; }
.v-codex .v-codex__fig { width: 100%; height: 264px; display: flex; justify-content: center; color: var(--fg); border-bottom: 1px solid var(--fg-3); }
.v-codex .v-codex__fig svg { display: block; height: 100%; width: auto; max-width: none; }
.v-codex .v-codex__lbl { display: flex; flex-direction: column; align-items: center; gap: 2px; padding-top: 12px; text-align: center; min-width: 0; }
.v-codex .v-codex__lname { font-size: 13px; color: var(--fg-2); white-space: nowrap; }
.v-codex .v-codex__lh { font-family: var(--font-display); font-size: 26px; line-height: 1.1; letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }
.v-codex .v-codex__lh small { font-family: var(--font); font-size: 12px; color: var(--fg-3); margin-left: 3px; }
.v-codex .v-codex__lineup--raw { flex-direction: column; align-items: stretch; }
.v-codex .v-codex__lbls { display: flex; justify-content: space-around; }

/* Cards: four rockets share one row on wide screens; bodies stretch so the fact line sits on the bottom edge. */
.v-codex .v-codex__dex--4 { grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr)); }
.v-codex .card__body { flex: 1 1 auto; }
.v-codex .card__fact { margin-top: auto; }
.v-codex .card__name { overflow-wrap: anywhere; }
.v-codex .v-codex__art--craft { padding: 56px 40px 28px; }
.v-codex .v-codex__art--scene { padding-top: 52px; }
.v-codex .card--retired .card__name,
.v-codex .card--retired .dstat__v { color: var(--fg-2); }
.v-codex .card--retired .card__art svg { opacity: 0.7; }

/* Booster dossiers */
.v-codex .v-codex__boost .pill { min-height: 44px; }
.v-codex .v-codex__dosid { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.v-codex .v-codex__fam { font-size: 12px; color: var(--fg-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-codex .v-codex__dosid .dos__serial { white-space: nowrap; flex: 0 0 auto; }
.v-codex .dos[hidden] { display: none; }

@media (max-width: 640px) {
  .v-codex .v-codex__tile { padding: 24px 12px 20px; }
  .v-codex .v-codex__fig { height: 220px; }
  .v-codex .v-codex__lname { font-size: 11px; white-space: normal; }
  .v-codex .v-codex__lh { font-size: 20px; }
}

/* 发射基地 cards: four fixed stat slots on the left, a locator map on the right. */
.v-codex .v-codex__sites { grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); }
.v-codex .v-codex__split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 220px); gap: 20px; align-items: center; }
.v-codex .v-codex__split .card__stats { align-self: start; }
.v-codex .v-codex__map { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.v-codex .v-codex__map svg { display: block; width: 100%; height: auto; overflow: visible; }
.v-codex .v-codex__map figcaption { font-size: 12px; color: var(--fg-3); letter-spacing: 0.04em; }
.v-codex .v-codex__land { fill: var(--track); stroke: var(--tile); stroke-linejoin: round; }
.v-codex .v-codex__state { fill: var(--y); stroke: var(--tile); stroke-linejoin: round; }
.v-codex .v-codex__dots { fill: #55555C; }
.v-codex .v-codex__pin circle:first-child { fill: rgba(255, 90, 69, 0.18); stroke: var(--r); }
.v-codex .v-codex__pin circle:last-child { fill: var(--r); stroke: #000000; }
.v-codex .card--retired .v-codex__state { fill: var(--fg-3); }
@media (max-width: 560px) {
  .v-codex .v-codex__split { grid-template-columns: minmax(0, 1fr); }
  .v-codex .v-codex__map { max-width: 260px; justify-self: center; width: 100%; }
}
.v-codex .v-codex__wide { grid-column: 1 / -1; }

/* 发射基地 / 回收设施: compact cards, four to a row on wide screens. */
.v-codex .v-codex__sites { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 12px; }
.v-codex .v-codex__sites .card__art { height: 150px; padding: 40px 16px 0; }
.v-codex .v-codex__sites .card__body { gap: 10px; padding: 14px 16px 16px; }
.v-codex .v-codex__sites .card__name { font-size: 26px; }
.v-codex .v-codex__sites .v-codex__split { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.v-codex .v-codex__sites .card__stats { gap: 10px 12px; }
.v-codex .v-codex__sites .dstat__v { font-size: 20px; }
.v-codex .v-codex__sites .dstat--text .dstat__v { font-size: 13px; }
.v-codex .v-codex__sites .v-codex__map { max-width: 150px; justify-self: center; width: 100%; gap: 4px; }
.v-codex .v-codex__sites .card__fact { padding-top: 10px; font-size: 12px; }

/* 比一比: each rocket pulls apart into its parts on hover, focus or tap. Offsets are in metres, set per part. */
.v-codex .v-codex__hint { font-size: 13px; color: var(--fg-3); }
.v-codex .v-codex__tile { overflow: visible; padding-top: 56px; }
.v-codex .v-codex__col { position: relative; cursor: pointer; border-radius: 8px; }
.v-codex .v-codex__fig svg { overflow: visible; }
.v-codex .rk-part { transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1); }
.v-codex .rk-label { font-family: var(--font); font-size: 5.2px; font-weight: 600; fill: var(--y); opacity: 0; transition: opacity 0.3s ease; }
.v-codex .v-codex__col:hover, .v-codex .v-codex__col:focus-within, .v-codex .v-codex__col.is-open { z-index: 2; }
.v-codex .v-codex__col:hover .rk-part, .v-codex .v-codex__col:focus-visible .rk-part, .v-codex .v-codex__col.is-open .rk-part { transform: translate(var(--dx), var(--dy)); }
.v-codex .v-codex__col:hover .rk-label, .v-codex .v-codex__col:focus-visible .rk-label, .v-codex .v-codex__col.is-open .rk-label { opacity: 1; transition-delay: 0.2s; }
