/* Primer 08 — page-specific components. */

/* ── §2 stat unit reader ────────────────────────────────────────────────── */
.prof { display: grid; grid-template-columns: 1fr 300px; gap: 26px; align-items: start; }

/* the dark overlay, styled after the in-game stat unit readout */
.statunit {
  background: #0e1524; border-radius: var(--radius-sm);
  border: 1px solid var(--color-neutral-300); padding: 14px 18px;
}
.statunit__title {
  font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255, 255, 255, .45); margin-bottom: 8px;
}
.statunit__row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 3px 0; font-size: 14px; color: rgba(255, 255, 255, .75);
}
.statunit__row--frame { color: rgba(255, 255, 255, .9); }
.statunit__row--hot { color: #ff8a6c; }
.statunit__name { width: 64px; }
.statunit__track {
  flex: 1; height: 9px; background: rgba(255, 255, 255, .07);
  border-radius: 2px; overflow: hidden; margin: 0 12px; position: relative;
}
.statunit__fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; }
.statunit__ms { width: 56px; text-align: right; }
.statunit__foot {
  display: flex; justify-content: space-between; margin-top: 8px; padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 12px; color: rgba(255, 255, 255, .5);
}

.timeline { margin-top: 16px; }
.timeline__label { font-size: 11px; color: var(--color-neutral-500); letter-spacing: .06em; margin-bottom: 6px; }
.timeline__stage {
  background: #0b0f18; border-radius: var(--radius-sm);
  border: 1px solid var(--color-neutral-300); padding: 8px;
}
.timeline__stage canvas { width: 100%; height: auto; }

.presetgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 20px; }
.presetgrid__label { font-size: 11px; color: var(--color-neutral-500); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.presetgrid__btn {
  border: 1px solid var(--color-divider); background: var(--color-surface);
  color: var(--color-neutral-600); cursor: pointer; padding: 8px 6px;
  border-radius: var(--radius-sm); font-family: var(--font-heading); font-size: 12.5px;
}
.presetgrid__btn[aria-pressed="true"] { background: var(--color-accent-100); color: var(--color-accent-700); }

.prof__control { margin-bottom: 16px; }
.prof__control:last-of-type { margin-bottom: 18px; }
.prof__row { display: flex; justify-content: space-between; font-family: var(--font-heading); font-size: 14px; margin-bottom: 6px; }
.prof__en { color: var(--color-neutral-500); font-size: 11px; }
.prof__val { color: var(--color-accent-700); }

/* ── §3 fixes catalogue ─────────────────────────────────────────────────── */
.fixes { display: flex; flex-direction: column; gap: 14px; margin: 24px 0 0; }
.fix {
  border: 1px solid var(--color-divider); border-left: 4px solid var(--color-accent-500);
  border-radius: var(--radius-md); background: var(--color-surface);
  box-shadow: var(--shadow-sm); padding: 20px 24px;
}
.fix--hot { border-left-color: var(--hot); }
.fix__head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.fix__tag {
  font-family: var(--font-heading); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--color-accent-700); border: 1px solid var(--color-accent-400);
  border-radius: 20px; padding: 3px 11px;
}
.fix--hot .fix__tag { color: var(--hot); border-color: var(--hot); }
.fix__symptom { font-family: var(--font-heading); font-size: 17px; }
.fix__lede { font-size: 14px; line-height: 1.7; margin: 0 0 12px; color: var(--color-neutral-800); max-width: 70ch; }
.fix__lede--last { margin-bottom: 0; }
.fix__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.fix__item {
  border: 1px solid var(--color-divider); border-radius: var(--radius-sm);
  background: var(--color-neutral-100); padding: 11px 14px;
  font-size: 13px; line-height: 1.55; color: var(--color-neutral-800);
}
.fix__item b { color: var(--color-neutral-900); }

.cardgrid--roomy .tcard__title { font-size: 17px; }

@media (max-width: 680px) {
  .prof, .presetgrid, .fix__grid { grid-template-columns: 1fr; }
}
