/* Colleges section: directory, school pages, compare. Builds on styles.css tokens. */

.section-nav { display: flex; gap: 20px; font-weight: 600; font-size: 0.95rem; }
.section-nav a { text-decoration: none; }
.section-nav a:hover { text-decoration: underline; }

.crumbs { font-size: 0.9rem; color: var(--muted); padding-top: 24px; display: flex; gap: 8px; }
.crumbs a { color: var(--muted); }

/* School header */
.school { max-width: 920px; padding-bottom: 64px; }
.school-head { padding: 12px 0 24px; }
.school-head h1 { font-size: clamp(2.1rem, 4.6vw, 3.25rem); max-width: 20ch; margin: 8px 0 6px; }
.school-where { margin: 0 0 14px; font-size: 1.125rem; color: var(--muted); }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; }
.chips li {
  font-size: 0.875rem; font-weight: 600;
  border: 1.5px solid var(--rule); border-radius: 999px; padding: 4px 12px 2px;
  background: var(--card);
}

.school-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.button {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 20px 8px;
  border-radius: 999px; background: var(--ink); color: #fff; font-weight: 800; font-size: 0.95rem;
  text-decoration: none; border: 2px solid var(--ink);
}
.button:hover { background: #24365a; color: #fff; }
.button.secondary { background: transparent; color: var(--ink); }
.button.secondary:hover { background: var(--card); color: var(--ink); }

/* Closed / closing / merged / changed school notice: sits above everything else on the page */
.status-notice {
  border: 2px solid var(--ink); border-left-width: 8px; background: var(--card);
  padding: 16px 20px; border-radius: 0 10px 10px 0; margin: 0 0 24px; max-width: 46em;
}
.status-notice p { margin: 0 0 8px; }
.status-notice p:last-child { margin-bottom: 0; }
.status-head { font-size: 1.15rem; }
.status-closed, .status-closing { border-color: var(--gap); }
.status-merged, .status-changed { border-color: var(--trade); }
.status-src { font-size: 0.85rem; color: var(--muted); }

.notice {
  border-left: 5px solid var(--trade); background: var(--card);
  padding: 14px 18px; border-radius: 0 10px 10px 0; margin: 0 0 24px; max-width: 46em;
}

/* At a glance: the one bold element on the page */
.glance { border-top: 4px solid var(--college); border-bottom: 1px solid var(--rule); padding: 20px 0 24px; margin-bottom: 8px; }
.glance-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0; }
.stat.big dt { font-size: 0.9rem; font-weight: 600; color: var(--muted); }
.stat.big .stat-value { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 900; letter-spacing: -0.02em; line-height: 1.1; }
.stat.big.empty .stat-value { font-size: 1.05rem; font-weight: 600; color: var(--muted); }

/* Sections */
.block { padding: 32px 0 8px; border-bottom: 1px solid var(--rule); }
.block:last-of-type { border-bottom: 0; }
.block h2 { font-size: 1.5rem; font-weight: 800; margin: 0 0 14px; }
.block h3 { font-size: 1.05rem; font-weight: 800; margin: 18px 0 8px; }
.block-lede { color: var(--muted); max-width: 40em; margin: -4px 0 18px; }
.highlights { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 18px; max-width: 44em; }
.highlights li { border-left: 4px solid var(--college); padding: 2px 0 2px 16px; }
.highlights p { margin: 0; }
.highlights .hl-src { margin-top: 4px; font-size: 0.85rem; color: var(--muted); }
.highlights .hl-src a { color: var(--muted); }
.highlights .hl-src a:hover { color: var(--college); }
.hl-meta { font-size: 0.875rem; color: var(--muted); max-width: 44em; margin: 0 0 20px; }
.pending-note { color: var(--muted); max-width: 40em; margin: 0 0 20px; }

.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 40px; margin: 0 0 24px; }
.stat { margin: 0; }
.stat dt { font-weight: 600; font-size: 0.95rem; }
.stat dd { margin: 2px 0 0; display: grid; gap: 2px; }
.stat-value { font-size: 1.5rem; font-weight: 800; }
.stat.empty .stat-value { font-size: 1rem; font-weight: 600; color: var(--muted); }
.stat-note { font-size: 0.875rem; color: var(--muted); }
.src { font-size: 0.78rem; color: var(--muted); text-decoration: underline; text-decoration-color: var(--rule); }
.src:hover { color: var(--college); }

.chances-slot {
  background: var(--card); border: 2px dashed var(--rule); border-radius: 12px;
  padding: 16px 18px; margin: 0 0 24px; max-width: 46em;
}
.chances-slot p { margin: 0; }

/* Net price bars */
.bars { margin: 0 0 24px; max-width: 560px; }
.bars figcaption { font-weight: 600; font-size: 0.95rem; margin-bottom: 8px; }
.bars svg { width: 100%; height: auto; display: block; }
.bar-track { fill: var(--rule); opacity: 0.5; }
.bar-fill { fill: var(--college); }
.bar-label { font: 600 14px "Overpass", sans-serif; fill: var(--ink); }
.bar-value { font: 800 14px "Overpass", sans-serif; fill: var(--ink); }

.mini-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.mini-list a { font-weight: 700; }
.mini-list span { color: var(--muted); font-size: 0.925rem; }

.sources p { max-width: 44em; color: var(--muted); }

/* Directory */
.dir-head { padding: 32px 0 8px; max-width: 46em; }
.dir-head h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); max-width: none; margin: 0 0 12px; }
.dir-head p { color: var(--muted); margin: 0 0 8px; }

.filters {
  display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 12px;
  padding: 20px 0 12px; position: sticky; top: 0; background: var(--paper); z-index: 2;
}
.filters .field-label { font-size: 0.8rem; }
.filters input[type="search"], .filters select {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--card);
  border: 2px solid var(--rule); border-radius: 10px; padding: 10px 12px; min-height: 46px; width: 100%;
}
.filters input:focus-visible, .filters select:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.more-filters { grid-column: 1 / -1; }
.more-filters summary { cursor: pointer; font-weight: 700; font-size: 0.95rem; padding: 4px 0; }
.more-filters[open] summary { margin-bottom: 10px; }
.more-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }

.result-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0 16px; border-bottom: 1px solid var(--rule); }
.result-count { font-weight: 700; margin: 0; }
.result-bar label { font-size: 0.9rem; display: flex; gap: 8px; align-items: center; white-space: nowrap; }
.result-bar select { font: inherit; font-size: 0.95rem; border: 2px solid var(--rule); border-radius: 8px; padding: 6px 10px; background: var(--card); color: var(--ink); }

.cards { list-style: none; margin: 0; padding: 0; }
.card {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 2fr); gap: 16px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--rule);
  content-visibility: auto; contain-intrinsic-size: auto 80px;
}
.card[hidden] { display: none; }
.card-link { text-decoration: none; display: grid; gap: 2px; }
.card-name { font-weight: 800; font-size: 1.1rem; }
.card-link:hover .card-name { color: var(--college); text-decoration: underline; }
.card-where { color: var(--muted); font-size: 0.925rem; }
.card-facts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 0; }
.card-facts dt { font-size: 0.75rem; color: var(--muted); }
.card-facts dd { margin: 0; font-weight: 700; font-size: 0.95rem; }

.show-more { margin: 24px 0 8px; }
.empty-state { padding: 32px 0; color: var(--muted); }

.state-list { columns: 4 12em; column-gap: 32px; padding: 0; margin: 8px 0 32px; list-style: none; }
.state-list li { break-inside: avoid; padding: 3px 0; }
.state-list span { color: var(--muted); font-size: 0.875rem; }

/* Compare */
.compare-head { padding: 32px 0 8px; max-width: 46em; }
.compare-head h1 { font-size: clamp(2rem, 4.4vw, 3rem); max-width: none; margin: 0 0 12px; }
.compare-picker { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; padding: 8px 0 20px; position: relative; max-width: 46em; }
.compare-picker .field { flex: 1 1 18em; }
.compare-picker input { font: inherit; border: 2px solid var(--rule); border-radius: 10px; padding: 10px 12px; min-height: 46px; width: 100%; background: var(--card); color: var(--ink); }
.suggest { list-style: none; margin: 0; padding: 4px 0; position: absolute; top: 100%; left: 0; right: 0; background: var(--card); border: 2px solid var(--rule); border-radius: 10px; z-index: 5; max-height: 320px; overflow: auto; }
.suggest[hidden] { display: none; }
.suggest button { all: unset; display: block; width: 100%; box-sizing: border-box; padding: 10px 14px; cursor: pointer; }
.suggest button:hover, .suggest button:focus-visible { background: var(--paper); outline: none; }
.suggest small { color: var(--muted); }

.compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 40px; }
.compare-table { border-collapse: collapse; min-width: 100%; }
.compare-table th, .compare-table td { text-align: left; padding: 12px 16px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; min-width: 11em; }
.compare-table thead th { font-size: 1.05rem; font-weight: 800; }
.compare-table thead th a { text-decoration: none; }
.compare-table tbody th { font-weight: 600; color: var(--muted); font-size: 0.9rem; min-width: 9em; position: sticky; left: 0; background: var(--paper); }
.compare-table td { font-weight: 700; }
.compare-table td.na { font-weight: 400; color: var(--muted); font-size: 0.9rem; }
.remove { all: unset; cursor: pointer; font-size: 0.8rem; color: var(--muted); text-decoration: underline; display: block; margin-top: 4px; }

/* Methodology */
.method { max-width: 44em; padding: 40px 0 72px; }
.method h1 { font-size: clamp(2rem, 4vw, 2.75rem); max-width: none; }
.method h2 { font-size: 1.3rem; margin: 32px 0 8px; }
.method dt { font-weight: 800; margin-top: 14px; }
.method dd { margin: 2px 0 0; color: var(--muted); }

@media (max-width: 900px) {
  .glance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters { grid-template-columns: 1fr 1fr; position: static; }
  .filters .search { grid-column: 1 / -1; }
  .more-grid { grid-template-columns: 1fr 1fr; }
  .card { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 520px) {
  .section-nav { gap: 12px; font-size: 0.875rem; }
  .stat-grid { grid-template-columns: 1fr; gap: 16px; }
  .card-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 8px; }
}

/* A-to-Z school list on state pages */
.az-list { list-style: none; padding: 0; margin: 0; columns: 2 18em; column-gap: 32px; }
.az-list li { break-inside: avoid; padding: 5px 0; border-bottom: 1px solid var(--rule); }
.az-list span { color: var(--muted); font-size: 0.85rem; }

/* Common Data Set panel inside "Getting in" */
.cds { border-top: 1px solid var(--rule); margin-top: 8px; padding-top: 20px; }
.cds-title { font-size: 1.15rem; margin: 0 0 6px; }
.cds-intro { color: var(--muted); max-width: 44em; margin: 0 0 18px; }
.cds-gpa { margin-bottom: 16px; }
.cds-note { font-size: 0.875rem; color: var(--muted); max-width: 44em; margin: 6px 0 18px; }
.cds-line { margin: 0 0 18px; }
.cds-stats { margin-bottom: 8px; }
.cds-factors { margin: 20px 0 8px; }
.cds-factors h4 { font-size: 1rem; font-weight: 800; margin: 0 0 12px; }
.factor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.factor-group { background: var(--card); border-radius: 10px; padding: 12px 14px; border-top: 4px solid var(--rule); }
.factor-group.lv-very-important { border-top-color: var(--college); }
.factor-group.lv-important { border-top-color: #7fa3ff; }
.factor-group.lv-considered { border-top-color: var(--muted); }
.factor-level { font-weight: 800; margin: 0 0 6px; }
.factor-group ul { margin: 0; padding-left: 18px; display: grid; gap: 3px; font-size: 0.95rem; }
.lv-not-considered { opacity: 0.85; }
.cds-meta { font-size: 0.8rem; color: var(--muted); margin: 14px 0 20px; }
.hbars { list-style: none; margin: 0 0 4px; padding: 0; display: grid; gap: 8px; max-width: 560px; }
.hbars li { display: grid; grid-template-columns: 6.5em 1fr 3.2em; align-items: center; gap: 10px; }
.hbar-label { font-weight: 600; font-size: 0.9rem; }
.hbar-track { height: 18px; background: color-mix(in srgb, var(--rule) 50%, transparent); border-radius: 4px; overflow: hidden; }
.hbar-fill { display: block; height: 100%; background: var(--college); border-radius: 4px; }
.hbar-value { font-weight: 800; font-size: 0.9rem; text-align: right; }

/* Where you'd stand */
.wys { border-top: 1px solid var(--rule); margin-top: 8px; padding-top: 20px; max-width: 46em; }
.wys-title { font-size: 1.15rem; margin: 0 0 6px; }
.wys-intro { color: var(--muted); margin: 0 0 14px; }
.wys-form { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 6px; }
.wys-form label { display: grid; gap: 4px; font-weight: 700; font-size: 0.9rem; flex: 1 1 9em; }
.wys-form input { font: inherit; font-size: 1.05rem; border: 2px solid var(--rule); border-radius: 10px; padding: 10px 12px; min-height: 46px; width: 100%; background: var(--card); color: var(--ink); }
.wys-form input:focus-visible { outline: 3px solid var(--college); outline-offset: 1px; border-color: var(--college); }
.wys-hint { font-size: 0.85rem; color: var(--muted); margin: 0 0 16px; }
.wys-grid { display: grid; gap: 14px; }
.wys-item { background: var(--card); border-radius: 12px; padding: 14px 16px; border-left: 6px solid var(--rule); }
.wys-item.tone-above { border-left-color: var(--apprentice); }
.wys-item.tone-mid { border-left-color: var(--college); }
.wys-item.tone-below { border-left-color: var(--trade); }
.wys-item h4 { margin: 0 0 4px; font-size: 1.05rem; font-weight: 800; }
.wys-item p { margin: 0 0 8px; }
.wys-note { font-size: 0.85rem; color: var(--muted); }
.wys-gpa { margin: 8px 0; }
.wys-gpa li.is-you .hbar-label { color: var(--college); }
.wys-gpa li.is-you .hbar-fill { background: var(--college); }
.wys-gpa li:not(.is-you) .hbar-fill { background: var(--rule); }
.wys-strip { position: relative; height: 54px; margin: 6px 4px 4px; }
.wys-strip::before { content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 8px; border-radius: 4px; background: var(--rule); opacity: 0.6; }
.wys-band { position: absolute; top: 22px; height: 8px; border-radius: 4px; background: var(--college); opacity: 0.35; }
.wys-median { position: absolute; top: 18px; width: 2px; height: 16px; background: var(--college); }
.wys-you { position: absolute; top: 16px; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; background: var(--ink); border: 3px solid var(--card); box-shadow: 0 0 0 2px var(--ink); }
.wys-you span { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); font-size: 0.75rem; font-weight: 800; }
.wys-tick { position: absolute; top: 36px; transform: translateX(-50%); font-size: 0.75rem; color: var(--muted); }
.wys-ctx { margin: 16px 0 0; }
.wys-src { font-size: 0.8rem; color: var(--muted); margin: 14px 0 20px; }
.wys-empty p { color: var(--muted); margin: 0 0 20px; }

/* My list */
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--college); text-decoration: underline; cursor: pointer; }
.linkish[aria-pressed="true"] { color: var(--apprentice); text-decoration: none; font-weight: 700; }
.linkish[aria-pressed="true"]::before { content: "✓ "; }
button.button[aria-pressed="true"] { background: var(--card); border-color: var(--apprentice); color: var(--ink); }
button.button[aria-pressed="true"]::before { content: "✓ "; margin-right: 4px; }
button.button { cursor: pointer; font-family: inherit; }
.ml-profile { max-width: 46em; margin-bottom: 18px; }
.ml-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; justify-content: space-between; margin: 8px 0 4px; max-width: 60em; }
.ml-bar label { display: grid; gap: 4px; font-weight: 700; font-size: 0.9rem; }
.ml-bar select { font: inherit; font-size: 0.95rem; border: 2px solid var(--rule); border-radius: 8px; padding: 6px 10px; background: var(--card); color: var(--ink); min-height: 44px; }
.ml-list { list-style: none; margin: 0; padding: 0; max-width: 60em; }
.ml-item { padding: 18px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 10px; }
.ml-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.ml-remove { font-size: 0.9rem; color: var(--muted); flex: none; min-height: 32px; }
.ml-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 30em; }
.ml-stands { display: grid; grid-template-columns: repeat(auto-fit, minmax(13em, 1fr)); gap: 10px; margin: 0; }
.ml-stand { background: var(--card); border-radius: 10px; padding: 8px 12px; border-left: 5px solid var(--rule); }
.ml-stand.tone-above { border-left-color: var(--apprentice); }
.ml-stand.tone-mid { border-left-color: var(--college); }
.ml-stand.tone-below { border-left-color: var(--trade); }
.ml-stand dt { font-size: 0.75rem; color: var(--muted); }
.ml-stand dd { margin: 0; font-weight: 700; font-size: 0.95rem; }
.ml-tag { display: block; font-weight: 400; font-size: 0.75rem; color: var(--muted); }
.ml-note, .ml-hint { color: var(--muted); margin: 0; }
.ml-hint { list-style: none; padding: 12px 0 0; }
.ml-src { max-width: 46em; }
.section-nav a { white-space: nowrap; }
@media (max-width: 440px) {
  .site-header { flex-wrap: wrap; row-gap: 10px; }
  .section-nav { width: 100%; gap: 20px; }
}

/* Trades */
.trade-grid { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.trade-grid a { display: grid; gap: 4px; height: 100%; box-sizing: border-box; background: var(--card); border-radius: 12px; padding: 14px 16px; text-decoration: none; border-top: 5px solid var(--trade); }
.trade-grid a:hover .trade-name { text-decoration: underline; }
.trade-name { font-weight: 800; font-size: 1.05rem; }
.trade-meta { color: var(--muted); font-size: 0.9rem; }
.trade-earn { font-size: 0.875rem; }
.table-scroll { overflow-x: auto; }
.nat-table { border-collapse: collapse; width: 100%; max-width: 56em; font-size: 0.95rem; }
.nat-table th, .nat-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.nat-table thead th { font-size: 0.8rem; color: var(--muted); }
.nat-table td { white-space: nowrap; font-weight: 700; }
.state-links li span { color: var(--muted); font-size: 0.85rem; }
.tr-results { list-style: none; padding: 0; margin: 0; }
.tr-facts { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tp-groups { display: grid; gap: 18px; margin-bottom: 12px; }
.tp-group h3 { margin: 0 0 6px; font-size: 1.05rem; }
.tp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tp-list li { background: var(--card); border-radius: 10px; padding: 10px 14px; display: grid; gap: 2px; }
.tp-title { font-weight: 700; }
.tp-cred, .tp-earn { font-size: 0.9rem; color: var(--muted); }
.tp-earn strong { color: var(--ink); }
.tp-nat { margin-left: 8px; }
.tp-other { margin: 12px 0; }
.tp-other summary { cursor: pointer; font-weight: 700; margin-bottom: 8px; }
@media (max-width: 640px) { .tr-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tp-nat { display: block; margin: 0; } }
.card-main { display: grid; gap: 4px; justify-items: start; }
.card-save { font-size: 0.85rem; color: var(--muted); min-height: 28px; }

/* Apprenticeships */
.ap-grid a { border-top-color: var(--apprentice); }
.ap-def { max-width: 46em; color: var(--muted); margin: 6px 0 14px; }
.ap-callout { background: var(--card); border-left: 6px solid var(--apprentice); border-radius: 10px; padding: 12px 16px; max-width: 46em; }
.ap-quote { margin: 0 0 20px; max-width: 46em; }
.ap-quote blockquote { margin: 0; padding: 4px 0 4px 16px; border-left: 4px solid var(--rule); }
.ap-quote blockquote p { margin: 0 0 8px; }
.ap-quote figcaption { font-size: 0.85rem; color: var(--muted); }
.ap-text { font-size: 1.1rem; }
.ap-pay li { grid-template-columns: 11em 1fr 5em; }
.ap-pay .hbar-fill { background: var(--apprentice); }
.ap-tag { font-size: 0.8rem; font-weight: 700; color: var(--apprentice); }
.ap-cross { margin: 0 0 24px; }
.section-nav { flex-wrap: wrap; row-gap: 6px; }
