.row { display: flex; background: var(--bg-card, white); border: 1px solid var(--border-color, #e5dfd5); border-left: 3px solid transparent; border-radius: 8px; padding: 0.875rem 1rem; transition: border-color 0.15s ease, box-shadow 0.15s ease; animation: rowFadeIn 0.3s ease-out both; } .row:hover { border-left-color: var(--accent-coral, #e07256); box-shadow: 0 2px 8px rgba(26, 22, 18, 0.06); } .rowInCompare { border-left-color: var(--accent-teal, #2d7d7d); background: var(--bg-secondary, #f3ede4); } @keyframes rowFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } } .rowMain { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.3rem; } /* Line 1: name+score on the left, actions pinned right */ .rowTop { display: flex; align-items: center; gap: 1rem; } /* Name + score grouped together on the left */ .nameScore { display: flex; align-items: baseline; gap: 0.75rem; flex: 1; min-width: 0; } .schoolName { font-size: 0.9375rem; font-weight: 600; color: var(--text-primary, #1a1612); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex-shrink: 1; } .schoolName:hover { color: var(--accent-coral, #e07256); } /* Score block: value + label inline */ .scoreBlock { display: flex; align-items: baseline; gap: 0.3rem; flex-shrink: 0; white-space: nowrap; } .scoreValue { font-size: 1.0625rem; font-weight: 700; color: var(--text-primary, #1a1612); font-family: var(--font-playfair), 'Playfair Display', serif; line-height: 1.2; display: flex; align-items: center; gap: 0.2rem; } .scoreNA { font-size: 1rem; color: var(--text-muted, #8a847a); } .scoreLabel { font-size: 0.75rem; color: var(--text-muted, #8a847a); white-space: nowrap; } /* Trend arrow */ .trend { display: inline-flex; align-items: center; margin-left: 2px; } .trendUp { color: var(--accent-teal, #2d7d7d); } .trendDown { color: var(--accent-coral, #e07256); } .trendStable { color: var(--text-muted, #8a847a); } /* Action buttons — pinned right, slightly larger on desktop */ .rowActions { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; } /* Equalise and