/* Parent PLUS Calculator: site-specific additions to shared/base.css */
.tool .intro { margin: -4px 0 16px; color: var(--ink-2); font-size: 15px; }
.err { color: var(--bad); font-size: 13px; min-height: 0; }
.err:empty { display: none; }
input[aria-invalid="true"] { border-color: var(--bad); }
.field[hidden], .tool-grid > [hidden] { display: none; }
.fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.fieldset legend { font-weight: 600; font-size: 15px; padding: 0; margin-bottom: 6px; }
.adv { grid-column: 1 / -1; border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; background: var(--soft); }
.adv summary { cursor: pointer; font-weight: 600; font-size: 15px; padding: 10px 0; }
.adv[open] { padding-bottom: 14px; }
.adv .tool-grid { margin-top: 4px; }

.result .k { font-size: 14px; color: var(--ink-2); margin: 0; font-weight: 600; }
.stat .v .sub, td .sub, th .sub { display: block; font-size: 12px; font-weight: 500; color: var(--ink-3); white-space: normal; }
.notes { margin: 12px 0; padding-left: 20px; font-size: 15px; }
.notes li { margin-bottom: 6px; }
.fine-print { font-size: 13px; color: var(--ink-3); margin: 8px 0 0; }
.result .table-wrap { margin: 12px 0 8px; }
table caption { text-align: left; font-weight: 650; font-size: 14px; padding: 10px 12px 4px; color: var(--ink-2); }
table.plan { font-size: 14px; }
table.plan th, table.plan td { padding: 8px 10px; }
table.plan thead th { white-space: normal; font-size: 13px; vertical-align: bottom; }
table.plan tbody th { font-weight: 650; white-space: nowrap; }
table.plan tfoot th, table.plan tfoot td { font-weight: 700; background: var(--soft); border-top: 2px solid var(--line); border-bottom: 0; }
tr.is-legacy th, tr.is-legacy td { background: color-mix(in srgb, var(--accent) 5%, #fff); }
tr.is-current th, tr.is-current td { background: var(--ok-bg); }
td.gap { color: var(--bad); font-weight: 650; }

.steps { counter-reset: s; list-style: none; padding: 0; }
.steps > li { counter-increment: s; position: relative; padding-left: 40px; margin-bottom: 14px; }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.compare td:first-child, .compare th:first-child { font-weight: 600; }

@media (max-width: 640px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat .v { font-size: 17px; }
  table.plan { font-size: 13px; }
}
@media (max-width: 300px) {
  .stats { grid-template-columns: 1fr; }
}

/* Sortable college table (/colleges/) */
.sort-btn { font: inherit; font-weight: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
.sort-btn::after { content: " \2195"; color: var(--ink-3); font-weight: 400; }
th[aria-sort="ascending"] .sort-btn::after { content: " \2191"; color: var(--accent); }
th[aria-sort="descending"] .sort-btn::after { content: " \2193"; color: var(--accent); }
table.sortable tbody th { white-space: normal; }
