.tier-heading { align-items: center; }
.tier-provisional { color: var(--accent); }
.tier-intro {
  margin: -4px 0 16px;
  color: var(--muted);
  max-width: 980px;
}

.tier-methodology,
.tier-insufficient {
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-2);
}

.tier-methodology summary,
.tier-insufficient summary { cursor: pointer; font-weight: 800; }
.tier-methodology p,
.tier-insufficient > p { margin: 14px 0 0; color: var(--muted); font-size: .84rem; }
.tier-method-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.tier-method-grid div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.tier-method-grid strong { color: var(--accent); font-size: 1.1rem; }
.tier-method-grid span { color: var(--muted); font-size: .75rem; }

.tier-board { display: grid; gap: 14px; }
.tier-band {
  --tier-color: var(--muted);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--tier-color) 48%, var(--line));
  border-radius: 13px;
  background: color-mix(in srgb, var(--tier-color) 4%, var(--panel-2));
}
.tier-band-s { --tier-color: #f0b429; }
.tier-band-a { --tier-color: #58c58b; }
.tier-band-b { --tier-color: #62a7e8; }
.tier-band-c { --tier-color: #a88bd8; }
.tier-band-d { --tier-color: #d06c72; }
.tier-band > header {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 13px;
  padding: 12px 16px;
  border-bottom: 1px solid color-mix(in srgb, var(--tier-color) 32%, var(--line));
  background: color-mix(in srgb, var(--tier-color) 10%, var(--panel));
}
.tier-band > header h3,
.tier-band > header p { margin: 0; }
.tier-band > header p { color: var(--muted); font-size: .78rem; }
.tier-band > header > strong { color: var(--muted); font-size: .78rem; }
.tier-letter {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 9px;
  background: var(--tier-color);
  color: #10141b;
  font-size: 1.55rem;
  font-weight: 900;
}
.tier-hero-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px; }
.tier-hero-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--tier-color);
  border-radius: 10px;
  background: var(--panel);
}
.tier-hero-heading { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }
.tier-hero-heading img {
  width: 52px;
  height: 52px;
  border-radius: 9px;
  object-fit: cover;
  object-position: center 20%;
}
.tier-hero-heading h4 { margin: 0; font-size: 1rem; }
.tier-hero-heading span { color: var(--muted); font-size: .75rem; }
.tier-hero-heading > strong { color: var(--tier-color); font-size: 1.55rem; }
.tier-stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 12px 0;
}
.tier-stat-strip > div { display: flex; min-width: 0; flex-direction: column; padding: 8px; border-radius: 7px; background: var(--panel-2); }
.tier-stat-strip span,
.tier-stat-strip small { overflow: hidden; color: var(--muted); font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.tier-stat-strip strong { font-size: .84rem; }
.tier-components { display: grid; gap: 5px; }
.tier-components > div { display: grid; grid-template-columns: minmax(130px, 1fr) minmax(90px, 1fr) 34px; align-items: center; gap: 8px; font-size: .7rem; }
.tier-components span { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.tier-components small { color: var(--muted); }
.tier-components strong { text-align: right; }
.tier-components progress { width: 100%; height: 7px; overflow: hidden; border: 0; border-radius: 99px; background: var(--line); }
.tier-components progress::-webkit-progress-bar { border-radius: 99px; background: var(--line); }
.tier-components progress::-webkit-progress-value { border-radius: 99px; background: var(--tier-color); }
.tier-components progress::-moz-progress-bar { border-radius: 99px; background: var(--tier-color); }
.tier-why { margin-top: 11px; padding-top: 9px; border-top: 1px solid var(--line); }
.tier-why summary { cursor: pointer; color: var(--muted); font-size: .76rem; font-weight: 800; }
.tier-why ul { margin: 9px 0 0; padding-left: 18px; color: var(--muted); font-size: .75rem; }
.tier-empty { grid-column: 1 / -1; margin: 4px; color: var(--muted); font-size: .82rem; }

.tier-insufficient { margin-top: 16px; }
.tier-insufficient-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.tier-insufficient-grid article { display: flex; min-width: 0; gap: 9px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; }
.tier-insufficient-grid img { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 7px; object-fit: cover; object-position: center 20%; }
.tier-insufficient-grid div { display: flex; min-width: 0; flex-direction: column; }
.tier-insufficient-grid strong,
.tier-insufficient-grid span,
.tier-insufficient-grid small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tier-insufficient-grid span,
.tier-insufficient-grid small { color: var(--muted); font-size: .7rem; }

@media (max-width: 1050px) {
  .tier-method-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tier-hero-grid { grid-template-columns: 1fr; }
  .tier-insufficient-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 650px) {
  .tier-method-grid,
  .tier-insufficient-grid { grid-template-columns: 1fr; }
  .tier-band > header { grid-template-columns: 44px 1fr; padding: 11px; }
  .tier-band > header > strong { grid-column: 2; }
  .tier-hero-grid { padding: 8px; }
  .tier-stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tier-components > div { grid-template-columns: minmax(100px, 1fr) minmax(65px, .8fr) 30px; }
}
