/* Guardian page — character hero + equipped loadout + Health/Movement calculators.
   Reuses the Lab's .extras-* card/chip/seg/slider styles and the Armor Picker's
   .bc-class-pick tabs; only the page-specific bands are defined here. */

/* ── Section titles: one shared heading style for every band. ── */
.g-section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-top: var(--sp-2);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--hairline);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.g-section-right {
  font-weight: 400;
  letter-spacing: .02em;
  text-transform: none;
  color: var(--text-dim);
}

/* ── Status card: sign-in / loading / error — one honest centred card. ── */
.g-status-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-3);
  padding: var(--sp-6) var(--sp-4);
  background: var(--bg-card);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius);
}
.g-status-title { font-size: var(--fs-lg); font-weight: 600; color: var(--text-primary); }
.g-status-note { font-size: var(--fs-sm); font-weight: 400; color: var(--text-secondary); max-width: 52ch; line-height: 1.5; }

/* ── Character tabs (signed in): reuse .bc-class-pick, add the power numeral. ── */
.g-char-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-3); }
.g-char-pl { font-family: var(--font-display); font-size: var(--fs-xs); font-weight: 600; color: var(--text-dim); }
.bc-class-pick.active .g-char-pl { color: rgba(var(--accent-rgb), 1); }

/* ── Emblem hero. Text sits over the emblem art, so it keeps fixed light ink
      (both themes) behind a left-weighted shade for legibility. ── */
.g-hero-card {
  position: relative;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--bg-card);
  background-size: cover;
  background-position: center right;
}
.g-hero-shade {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: 96px;
  padding: var(--sp-4) var(--sp-5);
  background: linear-gradient(90deg, rgba(8, 10, 14, .86) 0%, rgba(8, 10, 14, .55) 55%, rgba(8, 10, 14, .16) 100%);
}
.g-hero-main { min-width: 0; }
.g-hero-cls {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #f5f7fa;
}
.g-hero-sub {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: 2px;
  font-size: var(--fs-sm);
  font-weight: 400;
  color: rgba(245, 247, 250, .75);
  min-width: 0;
}
.g-hero-sub img { width: 18px; height: 18px; flex: 0 0 auto; }
.g-hero-sub span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-hero-power {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 600;
  color: rgba(var(--accent-rgb), 1);
  white-space: nowrap;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
}

/* ── Equipped loadout: multi-column grid of quiet row cards. ── */
.g-loadout {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: var(--sp-3);
}
.g-gear-card {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-width: 0;
  padding: var(--sp-2) var(--sp-3);
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}
.g-gear-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--hairline);
  background: var(--bg-secondary);
  color: var(--text-dim);
}
.g-gear-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.g-gear-info { min-width: 0; }
.g-gear-name {
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.g-gear-meta {
  margin-top: 1px;
  font-size: var(--fs-xs);
  font-weight: 400;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.g-gear-card.g-exotic-gear .g-gear-name { color: var(--tier-exotic); }

/* ── Calculators band. ── */
.guardian-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 16px;
  align-items: start;
}

/* Health bar: base segment + coloured overshield segments, one track. */
.g-hpbar {
  display: flex;
  width: 100%;
  height: 18px;
  border-radius: 9px;
  overflow: hidden;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--border-dim);
  margin-bottom: 6px;
}
.g-hpbar-fill { height: 100%; transition: width var(--dur-1) var(--ease); }
.g-hpbar-base { background: var(--text-primary); }
.g-hpbar-os { background: linear-gradient(90deg, rgba(var(--accent-void, 150 110 240), .95), rgba(120, 180, 255, .95)); }
.g-hpbar-label { font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-bottom: 12px; }

/* Four big bold numbers. */
.g-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.g-stat {
  background: rgba(var(--accent-rgb), .07);
  border: 1px solid rgba(var(--accent-rgb), .3);
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
  min-width: 0;
}
.g-stat-num {
  font-size: 22px;
  font-weight: 800;
  color: rgba(var(--accent-rgb), 1);
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.g-stat-label { font-size: 10.5px; font-weight: 700; color: var(--text-secondary); margin-top: 4px; letter-spacing: .2px; }
.g-stat-sub { font-size: 9.5px; color: var(--text-dim); margin-top: 1px; }

@media (max-width: 520px) {
  .g-stats { grid-template-columns: repeat(2, 1fr); }
  .g-hero-power { font-size: var(--fs-xl); }
  .g-hero-shade { padding: var(--sp-3) var(--sp-4); }
}

/* Super section: per-element group labels + regen breakdown line. */
.g-class-seg { margin-bottom: 6px; }
.g-el-grp { font-size: 9.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; margin: 10px 0 4px; }
.g-super-groups .extras-chips { margin-bottom: 2px; }
/* Fixed-height wrapper so the breakdown appearing/disappearing never shifts layout. */
.g-regenwrap { min-height: 16px; margin: -4px 0 12px; }
.g-regen-parts { font-size: 11px; color: var(--text-dim); line-height: 1.4; }

/* Page-level class filter for the calculators (armor-picker strip), centred,
   with a one-line caption stating exactly what it scopes. */
.guardian-class-row { display: flex; justify-content: center; margin: 0 0 var(--sp-2); }
.guardian-class-row .bc-character-strip { justify-content: center; gap: 10px; width: 100%; max-width: 720px; }
.guardian-class-strip .bc-class-pick { flex: 1 1 0; justify-content: center; }
.g-class-note { text-align: center; font-size: var(--fs-xs); font-weight: 400; color: var(--text-dim); }
/* Neutral default for subgroup labels; element subgroups override the colour inline. */
.g-el-grp { color: var(--text-secondary); }
/* Exotic chips show gold. */
.extras-chip.g-exotic .extras-chip-name { color: var(--tier-exotic); }
.extras-chip.g-exotic.active { border-color: color-mix(in srgb, var(--tier-exotic), transparent 25%); box-shadow: 0 0 0 1px color-mix(in srgb, var(--tier-exotic), transparent 65%); }
