/* radar.css — Boojee Problem Radar.
 *
 * ⚠ THE GRADE MUST NEVER BE CARRIED BY COLOUR ALONE. "five people said this
 * independently" and "one person said this" are the only claims on the page
 * that matter, and the whole tool is worthless if a reader skims past the
 * difference. Each grade therefore carries a word, a border style AND a
 * colour, so it survives greyscale, colour blindness and a fast scroll.
 *
 * ⚠ `single` is deliberately NOT styled as a failure. It is the honest and
 * most common answer. Styling it as an error would push a future me toward
 * loosening the clustering to make the page look healthier, which is exactly
 * how this tool would start lying.
 */

.rad-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.rad-stat {
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, .02);
}

.rad-stat b {
  display: block;
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.1;
  font-family: "Cormorant Garamond", Georgia, serif;
}

.rad-stat span {
  display: block;
  margin-top: 6px;
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: .62;
}

/* Health banner. Only rendered when something is actually wrong. */
.rad-health {
  margin: 22px 0 0;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 176, 32, .5);
  background: rgba(255, 176, 32, .08);
  font-size: .92rem;
}

.rad-health.is-stale {
  border-color: rgba(255, 92, 92, .55);
  background: rgba(255, 92, 92, .09);
}

.rad-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 30px 0 0;
}

.rad-filter {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.rad-filter[aria-pressed="true"] {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .38);
}

.rad-list {
  display: grid;
  gap: 16px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.rad-card {
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  padding: 20px 22px;
  background: rgba(255, 255, 255, .02);
}

/* Border style, not just colour — see the note at the top of this file. */
.rad-card.grade-strong { border-left: 5px solid #56d68a; }
.rad-card.grade-fair   { border-left: 5px solid #7fb2ff; }
.rad-card.grade-weak   { border-left: 5px dashed #d8c46a; }
.rad-card.grade-single { border-left: 5px dotted rgba(255, 255, 255, .34); }

.rad-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.rad-grade {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid currentColor;
}

.rad-grade.grade-strong { color: #56d68a; }
.rad-grade.grade-fair   { color: #7fb2ff; }
.rad-grade.grade-weak   { color: #d8c46a; }
.rad-grade.grade-single { color: rgba(255, 255, 255, .55); }

.rad-authors { font-size: .88rem; opacity: .8; }

.rad-kw {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .84rem;
  opacity: .74;
  margin: 0 0 14px;
  word-break: break-word;
}

.rad-quote {
  margin: 0 0 12px;
  padding: 10px 0 10px 16px;
  border-left: 2px solid rgba(255, 255, 255, .14);
}

.rad-quote p { margin: 0 0 6px; font-size: .95rem; line-height: 1.55; }

.rad-cite {
  font-size: .78rem;
  opacity: .6;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.rad-cite a { color: inherit; }

/* A solved question still shows, and says so. */
.rad-solved {
  font-size: .7rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .2);
  opacity: .8;
}

.rad-note {
  margin: 26px 0 0;
  font-size: .88rem;
  opacity: .68;
  line-height: 1.6;
}

.rad-method {
  margin: 40px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 28px;
}

.rad-method h2 { margin-top: 0; }
.rad-method dt { font-weight: 600; margin-top: 14px; }
.rad-method dd { margin: 4px 0 0; opacity: .75; line-height: 1.6; }

.rad-excluded {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.rad-excluded li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  font-size: .9rem;
  opacity: .78;
  line-height: 1.55;
}

.rad-excluded b {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  opacity: 1;
}

@media (max-width: 600px) {
  .rad-card { padding: 16px 16px; }
  .rad-stat b { font-size: 1.45rem; }
}
