/* Discovery pages: directory, profile, compare, shortlist */
.dir { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 960px) { .dir { grid-template-columns: 320px minmax(0, 1fr); gap: 32px; } .dir__filters { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; } }
.filters { padding: 20px; }
.dir__toggle { width: 100%; margin-bottom: 12px; }
@media (min-width: 960px) { .dir__toggle { display: none; } }
@media (max-width: 959px) { .filters:not(.is-open) { display: none; } }
.dir__bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; justify-content: space-between; margin-bottom: 16px; }
.dir__count { margin: 0; font-weight: 500; }
.dir__sort { margin: 0; min-width: 200px; }
.school-card__note { margin: 0; font-size: .8125rem; color: var(--c-muted); }
.tray { position: sticky; bottom: 0; z-index: 90; background: var(--c-forest); color: #fff; padding: 12px 0; box-shadow: 0 -6px 24px rgba(43,42,38,.15); }
.tray[hidden] { display: none; }
.tray__in { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.tray__text { margin: 0; font-size: .95rem; }
.tray .btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.tray .btn--primary { background: #fff; color: var(--c-forest); border-color: #fff; }

.profile-head { display: grid; gap: 20px; margin-bottom: 32px; }
.profile-head h1 { margin-bottom: .2em; }
.profile-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; color: var(--c-muted); font-size: .9rem; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.profile-layout { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 960px) { .profile-layout { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }
.facts { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; }
@media (min-width: 640px) { .facts { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
.facts > div { padding: 12px 0; border-bottom: 1px solid var(--c-line); }
.facts dt { font-size: .8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted); margin: 0 0 2px; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.panel { padding: 24px; margin-bottom: 28px; }
.panel h2 { font-size: 1.6rem; }
.panel--typical { background: var(--c-sage-soft); border-style: dashed; }
.typical-list { margin: 0; }
.typical-list dt { font-weight: 600; margin-top: 12px; }
.typical-list dd { margin: 2px 0 0; color: var(--c-muted); }
.completeness { display: grid; gap: 6px; max-width: 360px; }
.sources { margin: 0; padding-left: 1.1em; overflow-wrap: anywhere; }
.consent-box { background: var(--c-bg); border: 1px solid var(--c-line); border-radius: 10px; padding: 14px; margin-bottom: 18px; }
.consent-box .checkbox { margin-bottom: 0; }

.cmp-bar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cmp-toggle { display: inline-flex; gap: 10px; align-items: center; font-weight: 500; }
.cmp-toggle input { width: 22px; height: 22px; accent-color: var(--c-forest); }
.cmp-table { min-width: 560px; }
.cmp-table th:first-child, .cmp-table td:first-child { width: 160px; min-width: 130px; }
.cmp-table td { overflow-wrap: anywhere; min-width: 170px; }
.cmp-head a { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; text-decoration: none; color: var(--c-ink); white-space: normal; }
.cmp-head .btn { margin-top: 8px; }
.cmp-note { font-size: .8125rem; color: var(--c-muted); font-weight: 400; text-transform: none; letter-spacing: 0; }
.add-pick { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-top: 20px; }
.add-pick .form-field { margin: 0; flex: 1 1 240px; }
