/* Aid offer matrix: one column per college. */
.og { display: flex; flex-direction: column; gap: 8px; }
.og-row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
}
.og-label { font-size: 13px; font-weight: 600; color: #2a2f3a; line-height: 1.3; }
.og-head .og-label { color: var(--muted); font-weight: 600; }
.og-group {
  display: flex; align-items: center; gap: 8px;
  margin: 10px 0 0;
  font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.og-group .tag { display: inline-block; padding: 3px 8px; border-radius: 999px; }
.og-group .tag.free { background: #e7f6ef; color: var(--t-good); }
.og-group .tag.owe { background: #fff1e6; color: var(--t-bad); }
.og-group .tag.cost { background: #eef2f7; color: #3b4250; }
.og-group small { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--muted); font-size: 12.5px; }
.og-row input[type="text"].og-name { font-weight: 700; }
.og-foot { margin-top: 16px; }

.cmp-table { margin: 16px 0 0; border: 1px solid var(--t-border); border-radius: 14px; background: #fff; overflow-x: auto; }
.cmp-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cmp-table th, .cmp-table td { padding: 9px 8px; border-bottom: 1px solid var(--t-border); text-align: right; font-variant-numeric: tabular-nums; }
.cmp-table th:first-child, .cmp-table td:first-child { text-align: left; color: #3b4250; padding-left: 10px; }
.cmp-table thead th { font-size: 12px; font-weight: 700; color: #2a2f3a; overflow-wrap: anywhere; vertical-align: bottom; }
.cmp-table tr:last-child td { border-bottom: 0; }
.cmp-table tr td.best:not(:first-child) { color: var(--accent); font-weight: 700; }
.cmp-table tr.free td:not(:first-child) { color: var(--t-good); }
.cmp-table tr.owe td:not(:first-child) { color: var(--t-bad); }
.cmp-table tr.key td { font-weight: 700; }

@media (max-width: 600px) {
  .og-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .og-row > .og-label { grid-column: 1 / -1; margin-top: 4px; }
  .og-head > .og-label { display: none; }
  .og-row .affix > .pre { left: 9px; }
  .tools-page .og-row .affix > input { padding-left: 21px; padding-right: 6px; }
  .tools-page .og-row input.og-name { padding-left: 8px; padding-right: 6px; font-size: 16px; }
  .cmp-table th, .cmp-table td { padding: 8px 5px; font-size: 13px; }
  .cmp-table th:first-child, .cmp-table td:first-child { padding-left: 8px; }
}
