/* =========================================================
   TheSpaceLaunches · 通用组件（卡片 / 列表 / 筛选面板 / 详情页）
   ========================================================= */

/* —— 通用卡片 —— */
.card {
  position: relative;
  background: var(--glass-bg);
  border: var(--border-glow);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.6),
              0 0 22px rgba(76, 201, 255, 0.18),
              0 0 0 1px rgba(76, 201, 255, 0.25) inset;
  border-color: rgba(76, 201, 255, 0.45);
}
.card__media {
  position: relative;
  height: 168px;
  background: linear-gradient(135deg, #0a1226, #16244a);
  overflow: hidden;
}
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.92;
  transition: transform .4s ease;
}
.card:hover .card__media img { transform: scale(1.04); }

/* Full-card link overlay for card grids (sites / rockets / etc.) */
.card__link-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  text-decoration: none;
  color: inherit;
  outline: none;
  border-radius: inherit;
}
.card__link-overlay:hover,
.card__link-overlay:focus-visible {
  box-shadow: 0 0 0 2px rgba(76, 201, 255, 0.45) inset;
}

/* 占位图（无外链时使用 CSS 画的渐变火箭意象） */
.media-placeholder {
  position: relative;
  width: 100%; height: 100%;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(255, 138, 61, 0.25), transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(76, 201, 255, 0.35), transparent 60%),
    linear-gradient(135deg, #050a18, #0a1226 60%, #16244a);
}
.media-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, #fff, transparent),
    radial-gradient(1px 1px at 60% 70%, #fff, transparent),
    radial-gradient(1px 1px at 80% 20%, #fff, transparent),
    radial-gradient(1px 1px at 35% 80%, #fff, transparent),
    radial-gradient(1px 1px at 90% 60%, #fff, transparent),
    radial-gradient(2px 2px at 50% 40%, var(--accent-blue), transparent);
}
.media-placeholder::after {
  content: "✦";
  position: absolute;
  right: 14px; bottom: 10px;
  font-size: 22px;
  color: var(--accent-orange);
  text-shadow: 0 0 10px rgba(255, 138, 61, 0.8);
}

.card__body { padding: 16px 18px 18px; }
.card__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-0);
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__meta {
  font-size: 12px;
  color: var(--text-2);
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  margin-bottom: 12px;
}
.card__meta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.card__meta-row svg { width: 12px; height: 12px; opacity: 0.7; flex-shrink: 0; }
.meta-sep { opacity: 0.5; margin: 0 2px; flex-shrink: 0; }
.card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px dashed rgba(76, 201, 255, 0.18);
}
.card__agency { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-1); }
.card__agency .flag {
  width: 18px; height: 12px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--accent-blue-deep), var(--accent-orange));
}

.card__corner-tag {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 2;
}

/* —— Sites list card enrichment —— */
.card__badge {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-green);
  background: rgba(92, 227, 155, 0.14);
  border: 1px solid rgba(92, 227, 155, 0.45);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.card__flag {
  display: inline-block;
  font-size: 15px;
  line-height: 1;
  margin-right: 6px;
  vertical-align: -2px;
}
.card__meta--country {
  display: flex;
  align-items: center;
  color: var(--text-1);
  font-size: 13px;
  margin: 0 0 4px;
}
.card__meta--count {
  color: var(--text-1);
  font-size: 12px;
  margin: 0 0 8px;
  font-variant-numeric: tabular-nums;
}
.card__meta--operators {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}
.card__tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-1);
  background: rgba(76, 201, 255, 0.08);
  border: 1px solid rgba(76, 201, 255, 0.25);
  border-radius: 999px;
  white-space: nowrap;
}

/* —— Launch card status variants (overlay badge in card__media) —— */
.card__badge--upcoming {
  color: var(--accent-blue-strong);
  background: rgba(76, 201, 255, 0.16);
  border-color: rgba(76, 201, 255, 0.5);
}
.card__badge--success {
  color: var(--accent-green);
  background: rgba(92, 227, 155, 0.16);
  border-color: rgba(92, 227, 155, 0.5);
}
.card__badge--failed {
  color: var(--accent-red);
  background: rgba(255, 92, 122, 0.16);
  border-color: rgba(255, 92, 122, 0.5);
}

/* —— Launch card meta rows (rocket tag / time / location / operator) —— */
.card__meta--rocket {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px;
}
.card__meta--time {
  color: var(--text-1);
  font-size: 12px;
  margin: 0 0 4px;
  font-variant-numeric: tabular-nums;
}
.card__meta--location {
  display: flex;
  align-items: center;
  color: var(--text-1);
  font-size: 13px;
  margin: 0 0 4px;
}
.card__meta--operator {
  color: var(--text-2);
  font-size: 12px;
  margin: 0;
}

/* —— Launch columns top tab bar —— */
.launch-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 24px;
  padding: 6px;
  background: var(--glass-bg);
  border: var(--border-glow);
  border-radius: var(--radius-md);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.launch-tabs__item {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-1);
  text-decoration: none;
  border-radius: 8px;
  transition: background .15s ease, color .15s ease;
}
.launch-tabs__item:hover {
  color: var(--text-0);
  background: rgba(76, 201, 255, 0.08);
}
.launch-tabs__item--active {
  color: var(--text-0);
  background: rgba(76, 201, 255, 0.18);
  border: 1px solid rgba(76, 201, 255, 0.45);
  box-shadow: 0 0 12px rgba(76, 201, 255, 0.18);
}

/* —— 通用列表项 —— */
.list-row {
  display: grid;
  grid-template-columns: 80px 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  background: var(--glass-bg);
  border: var(--border-glow);
  border-radius: var(--radius-md);
  transition: background .15s ease, border-color .15s ease;
}
.list-row + .list-row { margin-top: 10px; }
.list-row:hover { background: rgba(15, 28, 61, 0.7); border-color: rgba(76, 201, 255, 0.45); }
.list-row__thumb {
  width: 80px; height: 60px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(76, 201, 255, 0.2);
}
.list-row__title { font-size: 14px; font-weight: 600; color: var(--text-0); }
.list-row__sub { font-size: 12px; color: var(--text-2); margin-top: 2px; }

/* —— 筛选面板（左侧） —— */
.filter-panel {
  background: var(--glass-bg-strong);
  border: var(--border-glow);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  position: sticky;
  top: calc(var(--nav-h) + 16px);
  box-shadow: var(--shadow-card);
}
.filter-panel__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-blue);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(76, 201, 255, 0.18);
}
.filter-panel__title svg { width: 14px; height: 14px; }
.filter-group { margin-bottom: 22px; }
.filter-group:last-of-type { margin-bottom: 18px; }
.filter-group__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-1);
  margin-bottom: 10px;
}
.filter-group__label .count {
  font-size: 11px; color: var(--text-3); font-weight: 500; letter-spacing: 0;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.filter-options--row { flex-direction: row; flex-wrap: wrap; gap: 6px; }
.filter-check {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--text-1);
  cursor: pointer;
  padding: 4px 0;
  transition: color .15s ease;
}
.filter-check:hover { color: var(--text-0); }
.filter-check input { display: none; }
.filter-check .box {
  width: 14px; height: 14px;
  border: 1px solid rgba(76, 201, 255, 0.35);
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, border-color .15s ease;
}
.filter-check input:checked + .box {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  box-shadow: 0 0 8px rgba(76, 201, 255, 0.5);
}
.filter-check input:checked + .box::after {
  content: "";
  width: 6px; height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

.filter-chip {
  padding: 6px 12px;
  border: 1px solid rgba(76, 201, 255, 0.3);
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-1);
  cursor: pointer;
  background: rgba(15, 28, 61, 0.4);
  transition: all .15s ease;
}
.filter-chip:hover { color: var(--text-0); border-color: rgba(76, 201, 255, 0.6); }
.filter-chip.active {
  background: rgba(76, 201, 255, 0.15);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  box-shadow: 0 0 8px rgba(76, 201, 255, 0.3);
}

.filter-select {
  width: 100%;
  padding: 9px 12px;
  background: rgba(15, 28, 61, 0.6);
  border: 1px solid rgba(76, 201, 255, 0.2);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-0);
  outline: 0;
  appearance: none;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--accent-blue) 50%),
    linear-gradient(135deg, var(--accent-blue) 50%, transparent 50%);
  background-position: calc(100% - 14px) center, calc(100% - 9px) center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.filter-select:focus { border-color: var(--accent-blue); }

.filter-actions {
  display: flex;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid rgba(76, 201, 255, 0.18);
}
.filter-actions .btn { flex: 1; }

/* —— 详情页（Launcher / Rocket / Site 通用） —— */
.detail-hero {
  position: relative;
  height: 240px;
  border-radius: var(--radius-lg);
  border: var(--border-glow);
  overflow: hidden;
  background: linear-gradient(135deg, #0a1226, #16244a);
  margin-bottom: 24px;
}
.detail-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(76, 201, 255, 0.18), transparent 50%);
  pointer-events: none;
}
.detail-hero__title {
  position: absolute;
  left: 28px; bottom: 24px;
  font-family: var(--font-display);
  font-size: 30px;
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
.detail-hero__sub {
  position: absolute;
  left: 28px; top: 24px;
  font-size: 12px;
  color: var(--accent-blue);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.kv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}
.kv {
  padding: 16px;
  background: var(--glass-bg);
  border: var(--border-glow);
  border-radius: var(--radius-md);
}
.kv__label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
}
.kv__value {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--accent-blue);
  margin-top: 4px;
  text-shadow: 0 0 10px rgba(76, 201, 255, 0.4);
}

/* —— 分段按钮组（View All、右上角） —— */
.view-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--accent-blue);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color .15s ease;
}
.view-all:hover { color: var(--accent-orange); }
.view-all::after { content: "→"; }

/* —— 通用网格容器 —— */
.grid {
  display: grid;
  gap: 18px;
}
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* Sites / rockets list card grid — 4 per row at >=1100px. */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 1100px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* =========================================================
   Mission timeline（SSG 实体页 · ssg/src/entities/launches.ts 渲染）
   —— event_type 9 枚举 → 4 kind 边色映射（与 ssg/src/entities/launches.ts 的 EVENT_TYPE_KIND 对齐）
   LIFTOFF / MECO / STAGE_SEPARATION / SECOND_STAGE_IGNITION / ORBIT_INSERTION  → key     (橙)
   MAX_Q                                                                          → normal  (青)
   PAYLOAD_DEPLOYMENT / MISSION_SUCCESS                                           → end     (绿)
   MISSION_FAILURE                                                               → failure (红)
   未知 event_type 落 normal，渲染绝不出错。
   —— 由 frontend/templates/base.html 引用 ../styles/components.css 进 ssg/dist 输出。
   ========================================================= */
.mission-detail .timeline {
  margin: 28px 0 0;
  padding: 22px 24px 24px;
  background: var(--glass-bg);
  border: var(--border-glow);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.mission-detail .timeline h2 {
  margin: 0 0 16px;
  font-family: var(--font-display, "Orbitron", system-ui, sans-serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-0, #e8efff);
}
.timeline__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.timeline__item {
  position: relative;
  padding: 12px 14px 12px 18px;
  background: rgba(4, 7, 15, 0.55);
  border: 1px solid rgba(76, 201, 255, 0.12);
  border-left-width: 3px;
  border-radius: 6px;
  line-height: 1.5;
  font-size: 14px;
  color: var(--text-1, #b8c4dd);
}
.timeline__item--key     { border-left-color: var(--accent-orange, #ff8a3d); background: rgba(255, 138, 61, 0.06); }
.timeline__item--normal  { border-left-color: var(--accent-cyan,   #4cc9ff); background: rgba(76, 201, 255, 0.04); }
.timeline__item--end     { border-left-color: #6fff9d;               background: rgba(111, 255, 157, 0.05); }
.timeline__item--failure { border-left-color: #ff6f8b;               background: rgba(255, 111, 139, 0.06); }
.timeline__t-rel {
  display: inline-block;
  margin-right: 10px;
  padding: 2px 8px;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-2, #8c9bbf);
  background: rgba(76, 201, 255, 0.10);
  border: 1px solid rgba(76, 201, 255, 0.20);
  border-radius: 4px;
  white-space: nowrap;
}
.timeline__meta {
  display: inline-block;
  margin-right: 8px;
}
.timeline__type {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-0, #e8efff);
  background: rgba(76, 201, 255, 0.08);
  border: 1px solid rgba(76, 201, 255, 0.18);
  border-radius: 3px;
}
.timeline__item--key     .timeline__type { color: #ffb46a; border-color: rgba(255, 138, 61, 0.45); background: rgba(255, 138, 61, 0.10); }
.timeline__item--end     .timeline__type { color: #8effaf; border-color: rgba(111, 255, 157, 0.40); background: rgba(111, 255, 157, 0.08); }
.timeline__item--failure .timeline__type { color: #ff8ea4; border-color: rgba(255, 111, 139, 0.40); background: rgba(255, 111, 139, 0.10); }
.timeline__desc {
  margin-top: 6px;
  color: var(--text-1, #b8c4dd);
  font-size: 13.5px;
  line-height: 1.6;
}

/* =========================================================
   Mission facts (SSG entity page · ssg/src/entities/launches.ts)
   —— Horizontal multi-column grid: the key facts render as label-on-top /
      value-below tiles. Each `<div class="facts__item">` groups a dt/dd pair
      (HTML5 allows div as a direct child of dl while keeping dl/dt/dd semantics
      for SEO). Variables align with the .timeline block above.
   ========================================================= */
.facts dl {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px 16px;
  margin: 0;
}
.facts__item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.facts dt {
  font-family: var(--font-display, "Orbitron", system-ui, sans-serif);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3, #5b6a85);
}
.facts dd {
  margin: 0;
  color: var(--text-0, #e8efff);
  line-height: 1.45;
  word-break: break-word;
}

/* =========================================================
   Pagination
   ========================================================= */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.pagination__btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  background: var(--glass-bg);
  border: var(--border-glow);
  border-radius: var(--radius-sm, 6px);
  color: var(--text-1);
  font-family: var(--font-display);
  font-size: 13px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.pagination__btn:hover {
  background: rgba(76, 201, 255, 0.08);
  border-color: rgba(76, 201, 255, 0.45);
  color: var(--text-0);
}
.pagination__btn--active {
  background: rgba(76, 201, 255, 0.15);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  box-shadow: 0 0 10px rgba(76, 201, 255, 0.25);
  cursor: default;
}

/* —— Term illustration container (SSG glossary detail page, <figure class="term-figure">).
   The static template page (frontend/glossary-term-detail-content.html) reuses the same class
   names. Originally lived in frontend/styles/glossary-term.css; moved here so every SSG detail
   page (which only links three CSS bundles) renders the component without depending on
   glossary-term.css being loaded. */
.glossary-term-page .term-figure {
  margin: 24px 0 28px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: var(--border-glow);
}
.glossary-term-page .term-figure__media {
  position: relative;
  aspect-ratio: 16 / 7;
  background: linear-gradient(135deg, #050a18, #0a1226 60%, #16244a);
}
.glossary-term-page .term-figure__media .media-placeholder { height: 100%; }
.glossary-term-page .term-figure figcaption {
  padding: 10px 14px;
  font-size: 12.5px;
  color: var(--text-3);
  background: rgba(4, 7, 15, 0.6);
  border-top: 1px solid rgba(76, 201, 255, 0.14);
}
.glossary-term-page .term-figure > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: linear-gradient(135deg, #050a18, #0a1226 60%, #16244a);
}

/* —— Bottom variant (2026-10 feedback) ——
   Figure is no longer the hero image under the H1; it's a closing illustration rendered
   after the Definition/Example sections. Tighter top margin, no border-glow, so it
   visually recedes to a supplementary level. */
.glossary-term-page .term-figure--bottom {
  margin: 20px 0 0;
  border: none;
}
.glossary-term-page .term-figure--bottom > img {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm, 6px);
}

/* —— Mission list row (whole-row click target, 2026-10 feedback) ——
   The launch list (country / year / rockets/{slug}/launches / sites/{slug}/launches) wraps
   each row in an <a class="mission-row">. The whole row receives pointer / hover feedback,
   while the inner <time> / <span class="status"> / <span class="mission-row__name"> keep
   their default block flow inside the <a>. */
.mission-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mission-list__item + .mission-list__item {
  margin-top: 6px;
}
.mission-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--border-soft, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-sm, 6px);
  background: transparent;
  color: inherit;
  text-decoration: none;
  transition: border-color 120ms ease, background-color 120ms ease;
}
.mission-row:hover,
.mission-row:focus-visible {
  border-color: var(--accent-blue, #4cc9ff);
  background: rgba(76, 201, 255, 0.06);
  outline: none;
}
.mission-row__date {
  flex: 0 0 auto;
  color: var(--text-muted, rgba(230, 237, 245, 0.6));
  font-variant-numeric: tabular-nums;
}
.mission-row__name {
  flex: 1 1 auto;
  color: var(--text-color, #e6edf5);
  font-weight: 500;
}

/* —— Pager (static <a> pagination, 2026-10 feedback) ——
   Visual sibling of styles/launches.css .pager so country / year pages match launches.
   Country / year pages only load components.css, so the rules must live here. */
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 28px 0 12px;
  flex-wrap: wrap;
}
.pager__pages {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pager__page,
.pager__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border-soft, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-sm, 6px);
  background: transparent;
  color: var(--text-color, #e6edf5);
  font: 500 14px/1 var(--font-sans, "Space Grotesk", system-ui, sans-serif);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 120ms ease, color 120ms ease, background-color 120ms ease;
}
.pager__nav {
  border-color: rgba(76, 201, 255, 0.35);
  color: var(--accent-blue, #4cc9ff);
}
.pager__page:hover,
.pager__page:focus-visible,
.pager__nav:hover,
.pager__nav:focus-visible {
  border-color: var(--accent-blue, #4cc9ff);
  color: var(--accent-blue, #4cc9ff);
  outline: none;
}
.pager__page.is-active,
.pager__nav.is-active {
  background: var(--accent-blue, #4cc9ff);
  border-color: var(--accent-blue, #4cc9ff);
  color: #fff;
  cursor: default;
}
.pager__page.is-active:hover,
.pager__nav.is-active:hover,
.pager__page.is-active:focus-visible,
.pager__nav.is-active:focus-visible {
  border-color: var(--accent-blue, #4cc9ff);
  color: #fff;
}
.pager__nav.is-disabled,
.pager__nav[aria-disabled="true"] {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}
.pager__dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  color: var(--text-muted, rgba(230, 237, 245, 0.6));
}

/* =========================================================
   Launch Today (SEO landing page, /launch_today.html)
   One launch per row: ET time | mission name | rocket | site | badge.
   Rows reuse the glass-card language; the status badge keeps its
   own .card__badge colors and is re-flowed inline (static) here.
   ========================================================= */
.launch-today__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 28px 0 40px;
}

.launch-today__row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  background: var(--glass-bg, rgba(15, 28, 61, 0.55));
  border: 1px solid rgba(76, 201, 255, 0.14);
  border-radius: var(--radius-md, 12px);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.launch-today__row:hover {
  border-color: rgba(76, 201, 255, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 201, 255, 0.10);
}

/* Re-flow the absolutely-positioned card badge into the row:
   static, right-aligned, keeps its own color variants untouched. */
.launch-today__row .card__badge {
  position: static;
  margin-left: auto;
  flex-shrink: 0;
}

.launch-today__time {
  flex-shrink: 0;
  min-width: 150px;
  font-family: var(--font-display, "Orbitron", sans-serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent-blue, #4cc9ff);
  white-space: nowrap;
}

.launch-today__name {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-0, #f0f4ff);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.launch-today__name:hover,
.launch-today__name:focus-visible {
  color: var(--accent-blue, #4cc9ff);
  outline: none;
}

.launch-today__rocket,
.launch-today__site {
  flex-shrink: 0;
  font-size: 13px;
  color: var(--text-2, #7a87a5);
  white-space: nowrap;
}

.launch-today__rocket {
  color: var(--text-1, #c9d6e6);
  font-weight: 500;
}

.launch-today__empty {
  margin: 32px 0;
  padding: 36px 28px;
  text-align: center;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-2, #7a87a5);
  background: rgba(4, 7, 15, 0.4);
  border: 1px dashed rgba(76, 201, 255, 0.25);
  border-radius: var(--radius-md, 12px);
}
