.cohort-card { position: relative; display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 42px; margin-top: 22px; padding: 32px 34px 24px; border: 1px solid #d3def0; border-radius: 14px; background: linear-gradient(135deg, #f8faff, #fff); box-shadow: 0 8px 24px rgba(32,48,100,.055); overflow: hidden; }
.cohort-card::after { content: ''; position: absolute; right: -70px; top: -80px; width: 190px; height: 190px; border-radius: 50%; background: var(--red-soft); opacity: .7; pointer-events: none; }
.cohort-copy { position: relative; z-index: 1; }
.cohort-copy h2 { margin: 10px 0 9px; }
.cohort-copy p { font-size: 13px; }
.cohort-callout { display: flex; flex-direction: column; margin-top: 20px; padding: 14px 16px; border-left: 4px solid var(--red); border-radius: 0 8px 8px 0; background: #fff; box-shadow: 0 5px 16px rgba(32,48,100,.06); }
.cohort-callout strong { color: var(--navy); font-size: 24px; }
.cohort-callout span { color: var(--green); font-size: 12px; font-weight: 750; }
.boxplot-wrap { position: relative; z-index: 1; padding: 14px 18px 0; }
.benchmark-badge { display: inline-block; margin-bottom: 43px; padding: 7px 12px; border-radius: 20px; background: var(--green-soft); color: var(--green); font-size: 11px; font-weight: 800; }
.boxplot { --student: 50%; position: relative; height: 70px; margin: 0 12px; }
.whisker { position: absolute; left: 6%; right: 6%; top: 33px; height: 4px; border-radius: 4px; background: #8197bc; }
.whisker::before, .whisker::after { content: ''; position: absolute; top: -10px; width: 3px; height: 24px; background: #8197bc; border-radius: 3px; }
.whisker::before { left: 0; }
.whisker::after { right: 0; }
.box-range { position: absolute; left: 25%; right: 25%; top: 16px; height: 38px; border: 3px solid var(--blue); border-radius: 7px; background: #dfe8f7; box-shadow: 0 4px 12px rgba(49,91,152,.12); }
.median { position: absolute; left: 50%; top: -3px; width: 3px; height: 38px; background: var(--navy); }
.student-marker { position: absolute; left: clamp(3%, var(--student), 97%); top: -24px; display: flex; flex-direction: column; align-items: center; transform: translateX(-50%); z-index: 2; }
.student-marker::after { content: ''; width: 3px; height: 64px; background: var(--red); box-shadow: 0 0 0 3px #fff; }
.student-marker span { white-space: nowrap; padding: 4px 8px; border-radius: 5px; background: var(--red); color: #fff; font-size: 10px; font-weight: 800; }
.student-marker b { position: absolute; top: 62px; display: grid; place-items: center; width: 30px; height: 30px; border: 3px solid #fff; border-radius: 50%; background: var(--red); color: #fff; font-size: 11px; box-shadow: 0 4px 10px rgba(217,52,50,.24); }
.axis-labels { display: flex; justify-content: space-between; margin: 8px 3px 0; color: var(--muted); font-size: 10px; font-weight: 700; }
.quartile-key { display: flex; gap: 24px; margin-top: 24px; color: var(--muted); font-size: 10px; }
.quartile-key span { display: flex; align-items: center; gap: 7px; }
.key-line { width: 22px; height: 8px; border: 2px solid var(--blue); background: #dfe8f7; }
.key-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.benchmark-note { grid-column: 1 / -1; margin: 4px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 10px; }
.products { margin-top: 48px; }
@media (max-width: 850px) { .cohort-card { grid-template-columns: 1fr; gap: 16px; } .benchmark-badge { margin-bottom: 42px; } }
@media (max-width: 560px) { .cohort-card { padding: 24px 18px; } .boxplot-wrap { padding-left: 0; padding-right: 0; } .quartile-key { display: grid; gap: 6px; } .axis-labels span:nth-child(2) { display: none; } }
