/* The radar chart from radar.py. Also loaded on the admin analysis page, so it can't rely on brand.css. */
.radar-wrap { container-type: inline-size; width: 100%; }
.radar-plot { position: relative; aspect-ratio: 388 / 355; font-size: clamp(13px, 2.5cqw, 14.5px); }
/* 208 viewBox units of the 388 wide plot. */
.radar { position: absolute; left: 50%; top: 50%; width: 53.6%; height: auto; transform: translate(-50%, -50%); display: block; overflow: visible; }
.radar-band { stroke: #677B70; stroke-width: 1; vector-effect: non-scaling-stroke; }
.radar-band-1 { fill: #99B5A4; }
.radar-band-2 { fill: #B4C9BC; }
.radar-band-3 { fill: #CAD9D0; }
.radar-band-4 { fill: #DFE9E4; }
.radar-band-5 { fill: #F2F6F4; }
.radar-shape { fill: #E9EF48; fill-opacity: .45; stroke: #2C4035; stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.radar-dot { fill: #E9EF48; stroke: #2C4035; stroke-width: 2; vector-effect: non-scaling-stroke; }

.radar-dims { list-style: none; margin: 0; padding: 0; }
.radar-dim { position: absolute; display: flex; flex-direction: column; gap: .3em; width: max-content; font-weight: 600; line-height: 1.5; color: #2C4035; }
.radar-dim.at-top { transform: translate(-50%, -100%); align-items: center; text-align: center; }
.radar-dim.at-bottom { transform: translateX(-50%); flex-direction: column-reverse; align-items: center; text-align: center; }
.radar-dim.at-right { transform: translateY(-50%); align-items: flex-start; }
.radar-dim.at-left { transform: translate(-100%, -50%); align-items: flex-end; text-align: right; }
.radar-dim-score { display: flex; align-items: center; gap: .4em; }
.radar-dim-score b { font-weight: 700; color: #282D2D; }
.level-tag { padding: 2px 7px; font: 500 11px/14px "IBM Plex Mono", "Courier New", monospace; letter-spacing: .04em; text-transform: uppercase; color: #282D2D; background: #fff; border: 1px solid #D4DBDF; border-radius: 999px; }

/* Too narrow for labels around the chart: the chart on top, the labels as a list below. */
@container (max-width: 460px) {
  .radar-plot { aspect-ratio: auto; font-size: 14px; }
  .radar { position: static; width: min(60%, 210px); margin: 0 auto 24px; transform: none; }
  .radar-dims { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
  .radar-dim, .radar-dim.at-top, .radar-dim.at-bottom, .radar-dim.at-right, .radar-dim.at-left { position: static; transform: none; width: auto; flex-direction: column; align-items: flex-start; text-align: left; }
  .radar-dim { left: auto !important; top: auto !important; }
}
