/* 05-operators.css
   launch milestones, operator detail, platform mix

   Split out of styles.css. The numeric prefix is load-bearing: the server
   loads styles.css first, then styles/*.css alphabetically, and the cascade
   here is the original file's order. Renaming these out of sequence changes
   which rule wins.

   A few blocks are filed by position rather than by subject — the mobile
   header sits inside launch, a shared chart rule inside game stats — because
   moving them would reorder the cascade. Worth relocating one at a time with
   a visual check, not in bulk.
   ======================================================================== */

/* ===========================================================================
   Launch milestones V1
   Performance trend only. Exclusive / general / US dates come directly from
   the Game To Project dimension rather than inferred from metric movements.
   ======================================================================== */

.chart-milestone {
  cursor: default;
}

.chart-milestone__line {
  stroke: var(--line-strong);
  stroke-width: 1;
  stroke-dasharray: 3 5;
  opacity: .72;
}

.chart-milestone__badge {
  stroke-width: 2;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .18));
}

.chart-milestone__glyph {
  font-size: 8px;
  font-weight: 800;
  pointer-events: none;
}

.chart-milestone:hover .chart-milestone__line,
.chart-milestone:focus .chart-milestone__line {
  opacity: 1;
  stroke-width: 1.5;
}

/* ===========================================================================
   Operator detail V1
   ======================================================================== */

.operator-detail {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.operator-detail__picker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
}

.operator-detail__picker-copy {
  min-width: 0;
}

.operator-detail__eyebrow {
  color: var(--ink-faint);
  font-size: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.operator-detail__picker h2 {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 20px;
}

.operator-detail__picker p {
  margin: 4px 0 0;
  color: var(--ink-faint);
  font-size: 10px;
}

.operator-detail__aliases {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.operator-detail__aliases span {
  max-width: 240px;
  overflow: hidden;
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface-sunk);
  color: var(--ink-soft);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operator-detail__select {
  width: min(360px, 38vw);
  min-width: 260px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 11px;
}

.operator-detail__cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
}

.operator-detail__card {
  min-width: 0;
  padding: 13px 15px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.operator-detail__card:nth-child(4n) {
  border-right: 0;
}

.operator-detail__card:nth-child(n+5) {
  border-bottom: 0;
}

.operator-detail__card-label {
  display: block;
  color: var(--ink-faint);
  font-size: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.operator-detail__card strong {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--ink);
  font-size: 20px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operator-detail__card small {
  display: block;
  margin-top: 3px;
  color: var(--ink-faint);
  font-size: 9px;
}

.operator-detail__card small.is-up {
  color: var(--positive);
}

.operator-detail__card small.is-down {
  color: var(--negative);
}

.operator-detail__overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, .8fr);
  gap: 14px;
  align-items: stretch;
}

.operator-detail__overview-grid > .panel,
.operator-detail__mix-grid > .panel {
  min-width: 0;
  margin: 0;
}

.operator-detail__trend-panel .panel__body {
  min-height: 330px;
}

.operator-detail__metric-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
  margin-left: auto;
}

.operator-detail__metric-nav button {
  min-height: 25px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: transparent;
  color: var(--ink-faint);
  font: inherit;
  font-size: 8px;
  cursor: pointer;
}

.operator-detail__metric-nav button:hover {
  border-color: var(--line-strong);
  color: var(--ink-soft);
}

.operator-detail__metric-nav button[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.operator-detail__coverage-panel .panel__body {
  padding: 8px 16px 16px;
}

.operator-detail__coverage-hero {
  padding: 8px 0 15px;
  border-bottom: 1px solid var(--line);
}

.operator-detail__coverage-hero strong {
  display: block;
  color: var(--ink);
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -.035em;
}

.operator-detail__coverage-hero > span {
  display: block;
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 10px;
}

.operator-detail__coverage-track {
  height: 5px;
  margin-top: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-sunk);
}

.operator-detail__coverage-track i {
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.operator-detail__overview-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.operator-detail__overview-item {
  min-width: 0;
  padding: 11px 9px 11px 0;
  border-bottom: 1px solid var(--line);
}

.operator-detail__overview-item:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.operator-detail__overview-item:nth-child(even) {
  padding-left: 10px;
}

.operator-detail__overview-item:nth-last-child(-n+2) {
  border-bottom: 0;
}

.operator-detail__overview-item span,
.operator-detail__overview-item small {
  display: block;
  color: var(--ink-faint);
  font-size: 8px;
}

.operator-detail__overview-item strong {
  display: block;
  margin: 3px 0 2px;
  overflow: hidden;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operator-detail__recent {
  padding-top: 13px;
}

.operator-detail__recent h3 {
  margin: 0 0 7px;
  color: var(--ink-faint);
  font-size: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.operator-detail__recent > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  color: var(--ink-soft);
  font-size: 9px;
}

.operator-detail__recent > div + div {
  border-top: 1px solid var(--line);
}

.operator-detail__recent span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operator-detail__recent time {
  flex: 0 0 auto;
  color: var(--ink-faint);
}

.operator-detail__mix-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.operator-detail__mix-grid .panel__body {
  min-height: 290px;
}

.operator-detail__table {
  min-width: 0;
}

.operator-detail__missing-table .panel {
  border-color: var(--line-strong);
}

.operator-detail__empty,
.operator-detail__complete {
  display: flex;
  min-height: 130px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  text-align: center;
  color: var(--ink-faint);
  font-size: 10px;
}

.operator-detail__complete strong {
  color: var(--positive);
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 1100px) {
  .operator-detail__overview-grid {
    grid-template-columns: 1fr;
  }

  .operator-detail__mix-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 850px) {
  .operator-detail__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .operator-detail__card:nth-child(4n) {
    border-right: 1px solid var(--line);
  }

  .operator-detail__card:nth-child(2n) {
    border-right: 0;
  }

  .operator-detail__card:nth-child(n+5) {
    border-bottom: 1px solid var(--line);
  }

  .operator-detail__card:nth-child(n+7) {
    border-bottom: 0;
  }
}

@media (max-width: 700px) {
  .operator-detail__picker {
    align-items: stretch;
    flex-direction: column;
  }

  .operator-detail__select {
    width: 100%;
    min-width: 0;
    font-size: 16px;
  }

  .operator-detail__metric-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .operator-detail__cards {
    grid-template-columns: 1fr 1fr;
  }
}


/* ===========================================================================
   Operator platform mix V10
   ======================================================================== */

.operator-detail__platform-mix {
  padding: 12px 0 13px;
  border-bottom: 1px solid var(--line);
}

.operator-detail__platform-mix-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.operator-detail__platform-mix-head > span {
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 600;
}

.operator-detail__platform-mix-head > small {
  color: var(--ink-faint);
  font-size: 8px;
}

.operator-detail__platform-track {
  display: flex;
  width: 100%;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-sunk);
}

.operator-detail__platform-track i {
  display: block;
  width: var(--w);
  height: 100%;
}

.operator-detail__platform-track .is-bragg {
  background: var(--series-4);
}

.operator-detail__platform-track .is-relax {
  background: var(--accent);
}

.operator-detail__platform-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 8px;
}

.operator-detail__platform-labels > span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}

.operator-detail__platform-labels > span::before {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  content: '';
}

.operator-detail__platform-labels > .is-bragg::before {
  background: var(--series-4);
}

.operator-detail__platform-labels > .is-relax::before {
  background: var(--accent);
}

.operator-detail__platform-labels b {
  color: var(--ink);
  font-size: 9px;
  font-weight: 600;
}

.operator-detail__platform-labels small {
  color: var(--ink-faint);
  font-size: 8px;
}
