.grade-figure { margin:1.5rem 0; color:#233c2d; font-family:inherit }
.grade-frame { display:grid; grid-template-columns:minmax(0,1fr); align-items:start; border-block:1px solid #c7cabb; background:#faf9f3 }
.grade-frame:has(.grade-card:not([hidden])) { grid-template-columns:minmax(0,2fr) minmax(15rem,1fr) }
.grade-plot { min-width:0; padding:1rem }
.grade-us { display:block; width:100%; height:auto }
.grade-us path { cursor:pointer; stroke:#fffef8; stroke-width:1; stroke-linejoin:round }
.grade-us path:hover,.grade-us path:focus-visible,.grade-us path.active { stroke:#152e21; stroke-width:3 }
.grade-key { display:flex; gap:.6rem; align-items:center; font-size:.85rem }
.grade-key i { width:7rem; height:.5rem; background:linear-gradient(90deg,#eef0e2,#6b794b,#334229) }
.grade-card { box-sizing:border-box; min-width:0; border-left:1px solid #c7cabb; padding:1rem; background:#fffef8 }
.grade-card[hidden] { display:none }
.grade-card button { float:right; font:inherit; cursor:pointer; width:2rem; height:2rem; border:1px solid #c7cabb; background:transparent; color:inherit }
.grade-card h3 { margin:0; line-height:1.2; padding-right:2.3rem }
.grade-card .grade-summary { margin:.5rem 0 1rem; font-size:.9rem }
.grade-card small { display:block; color:#536356; font-size:.82rem; font-weight:400 }
.grade-card ul { list-style:none; max-height:20rem; overflow:auto; margin:0; padding:0 }
.grade-card li { display:flex; justify-content:space-between; gap:.6rem; padding:.55rem .25rem .55rem 0; border-top:1px solid #dbded3; font-size:1rem; line-height:1.3 }
.grade-card b { font-variant-numeric:tabular-nums }
.grade-figure figcaption { display:grid; gap:.35rem; margin:.8rem 0 0; max-width:75ch; font:inherit; font-size:.9rem; line-height:1.45; text-align:left; color:#49594e }
.grade-figure figcaption a { justify-self:start; text-underline-offset:.2em }
@media(max-width:640px){.grade-frame:has(.grade-card:not([hidden])){grid-template-columns:minmax(0,1fr)}.grade-card{border-left:0;border-top:1px solid #c7cabb}.grade-card ul{max-height:15rem}}
.grade-card li { align-items:center } .grade-card li span { flex:1; min-width:0 } .grade-portrait { width:36px; height:44px; flex:none; object-fit:cover; object-position:center 24%; border-radius:4px }
