/* Directory of Colleges — "registrar's catalog" theme.
   Navy with the original site's heritage blue as the accent, Plus Jakarta Sans throughout (no serifs, no rounded terminals), an index-card search panel as the one signature element,
   everything else quiet: ruled lists, one sans family for headings and UI. */

:root {
  --navy: #14325c;
  --navy-deep: #0c2140;
  --accent: #1862c1;
  --accent-hover: #124f9e;
  --accent-soft: #e6eefa;
  --accent-ink: #0f4489;
  --ink: #1b2533;
  --slate: #5a6577;
  --rule: #d8dde5;
  --paper: #f6f7f9;
  --white: #ffffff;
  --card-line: #dbe6f3;
  --card-margin: #d9796f;
  --focus: #2f6fd1;
  --ok: #1d6b45;
  --err: #a12a2a;

  --display: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --sans: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.5625rem;
  --step-3: 1.953rem;
  --step-4: 2.441rem;
  --step-5: 3.052rem;

  --radius-sm: 4px;
  --radius: 8px;
  --wrap: 1200px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--sans);
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--navy); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--navy-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3, h4 { font-family: var(--display); color: var(--navy-deep); font-weight: 700; line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(var(--step-3), 4vw, var(--step-5)); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; }
h2 { font-size: clamp(var(--step-2), 2.6vw, var(--step-3)); font-weight: 800; letter-spacing: -0.015em; }
h3, h4 { font-weight: 700; }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1em; }
.lede { font-size: var(--step-1); color: var(--slate); max-width: 62ch; line-height: 1.5; }
.muted { color: var(--slate); }
.small { font-size: var(--step--1); }
.visually-hidden-focusable:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 24px; } }

/* ---------- header ---------- */
.utility { display: none; background: var(--navy-deep); color: #c9d3e3; font-size: var(--step--1); }
.utility .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 36px; }
.utility a { color: #e3e9f2; text-decoration: none; }
.utility a:hover { color: var(--white); text-decoration: underline; }
.utility nav { display: none; gap: 1.25rem; }
@media (min-width: 640px) { .utility, .utility nav { display: block; } .utility nav { display: flex; } }
.utility .tagline { display: none; }
@media (min-width: 900px) { .utility .tagline { display: block; } }

.masthead { background: var(--white); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 30; }
.masthead > .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { flex: none; display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--navy-deep); }
.brand:hover { color: var(--navy-deep); text-decoration: none; }
.brand-logo { display: block; width: auto; height: 36px; }
.footer-brand { display: inline-block; margin-bottom: 1rem; }
.footer-brand img { display: block; width: 280px; height: auto; }
@media (max-width: 519px) { .brand-logo { height: 26px; } }
@media (max-width: 360px) { .brand-logo { height: 21px; } .nav-toggle { padding: .4rem .55rem; } }

.mainnav { display: none; }
.mainnav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0; }
.mainnav a { display: block; white-space: nowrap; padding: .5rem .55rem; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .9rem; border-radius: var(--radius-sm); }
.mainnav a:hover { background: var(--paper); color: var(--navy-deep); }
.mainnav a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.mainnav .nav-cta { background: var(--accent); color: var(--white); font-weight: 600; margin-left: .5rem; }
.mainnav .nav-cta:hover { background: var(--accent-hover); color: var(--white); }
/* Stays a white-on-blue button on its own page (overrides the current-page underline style). */
.mainnav .nav-cta[aria-current="page"] { color: var(--white); background: var(--accent-hover); box-shadow: none; border-radius: var(--radius-sm); }
.nav-toggle { background: none; border: 1px solid var(--rule); border-radius: var(--radius-sm); padding: .45rem .7rem; font: 600 .9rem var(--sans); color: var(--navy-deep); }
/* Four short links + the call to action share the common 1200px column; below 1024px the Menu button takes over. */
@media (min-width: 1024px) {
  .masthead > .wrap { gap: 16px; }
  .brand-logo { height: 34px; }
  .mainnav { display: block; }
  .mainnav ul { gap: .15rem; }
  .mainnav a { font-size: .9rem; padding: .5rem .7rem; }
  .mainnav .nav-cta { margin-left: .5rem; padding: .55rem .9rem; }
  .nav-toggle { display: none; }
}
.mobilenav { border-top: 1px solid var(--rule); background: var(--white); }
.mobilenav ul { list-style: none; margin: 0; padding: 0; }
.mobilenav .wrap { padding-top: .5rem; padding-bottom: 1.25rem; }
.mobilenav .mobilenav-main a { display: block; padding: .85rem 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--navy-deep); font-weight: 600; font-size: 1.05rem; }
.mobilenav .mobilenav-main a[aria-current="page"] { color: var(--accent); }
.mobilenav .mobilenav-cta { display: flex; width: 100%; margin: 1rem 0 .75rem; }
.mobilenav .mobilenav-more { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.mobilenav .mobilenav-more a { display: block; padding: .35rem 0; color: var(--slate); font-size: .92rem; text-decoration: none; }
.mobilenav .mobilenav-more a:hover { color: var(--navy-deep); text-decoration: underline; }
@media (min-width: 1024px) { .mobilenav { display: none !important; } }

/* ---------- buttons & forms ---------- */
.btn-primary-doc, .btn-ghost-doc, .btn-accent-doc {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .7rem 1.15rem; border-radius: var(--radius-sm); font: 600 .95rem/1.2 var(--sans);
  text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
}
.btn-primary-doc { background: var(--navy); color: var(--white); }
.btn-primary-doc:hover { background: var(--navy-deep); color: var(--white); text-decoration: none; }
.btn-accent-doc { background: var(--accent); color: var(--white); }
.btn-accent-doc:hover { background: var(--accent-hover); color: var(--white); text-decoration: none; }
.panel-navy .btn-accent-doc { background: var(--white); color: var(--navy-deep); }
.panel-navy .btn-accent-doc:hover { background: var(--accent-soft); color: var(--navy-deep); }
.btn-ghost-doc { background: var(--white); color: var(--navy); border-color: var(--rule); }
.btn-ghost-doc:hover { border-color: var(--navy); color: var(--navy-deep); text-decoration: none; }

.field { display: flex; flex-direction: column; gap: .3rem; margin-bottom: 1rem; }
.field label, .field .label { font-weight: 600; font-size: .9rem; color: var(--ink); }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=search], .field select, .field textarea {
  width: 100%; padding: .65rem .75rem; font: 400 1rem var(--sans); color: var(--ink);
  background: var(--white); border: 1px solid #b9c2cf; border-radius: var(--radius-sm);
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(47,111,209,.35); border-color: var(--focus); }
.field-validation-error, .validation-summary-errors { color: var(--err); font-size: .875rem; }
.validation-summary-errors ul { margin: 0; padding-left: 1.1rem; }
.input-validation-error { border-color: var(--err) !important; }
.check { display: flex; gap: .5rem; align-items: flex-start; font-size: .95rem; }
.check input { margin-top: .3rem; accent-color: var(--navy); width: 1rem; height: 1rem; }
.notice { padding: .9rem 1rem; border-radius: var(--radius-sm); background: #e7f3ec; color: var(--ok); border: 1px solid #b9dbc8; margin-bottom: 1.25rem; }
.notice-warn { background: #fbf2df; color: #7a5212; border-color: #ecd6a6; }

/* ---------- hero with index-card search ---------- */
.hero { background: var(--navy); color: #dfe6f1; position: relative; overflow: hidden; }
.hero::after { /* faint campus-map grid */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero .wrap { position: relative; z-index: 1; display: grid; gap: 2.5rem; padding-top: 3rem; padding-bottom: 3.5rem; }
@media (min-width: 992px) { .hero .wrap { grid-template-columns: 1.05fr 1fr; align-items: center; padding-top: 4.5rem; padding-bottom: 5rem; } }
.hero h1 { color: var(--white); max-width: 15ch; margin-bottom: .4em; }
.hero .lede { color: #c9d3e3; }

.index-card { position: relative; color: var(--ink); filter: drop-shadow(0 18px 30px rgba(5,16,34,.35)); }
.index-card .card-tabs { display: flex; gap: 6px; padding-left: 22px; position: relative; z-index: 1; }
.index-card .card-tab {
  appearance: none; border: 0; cursor: pointer;
  background: #e9edf3; color: var(--slate); font: 600 .9rem var(--sans);
  padding: .6rem 1.1rem .55rem; border-radius: 12px 12px 0 0;
}
.index-card .card-tab[aria-selected="true"] { background: var(--white); color: var(--navy-deep); }
.index-card .card-body-doc {
  background-color: var(--white);
  background-image:
    linear-gradient(90deg, transparent 46px, var(--card-margin) 46px, var(--card-margin) 47px, transparent 47px),
    repeating-linear-gradient(180deg, transparent 0 31px, var(--card-line) 31px 32px);
  background-position: 0 0, 0 56px; background-repeat: no-repeat, repeat;
  border-radius: 16px; overflow: hidden;
  padding: 1.4rem 1.5rem 1.6rem 64px; min-height: 290px;
}
.index-card .field input, .index-card .field select, .index-card .btn-primary-doc { border-radius: 10px; }
.index-card .card-title { font: 700 1.3rem/1.3 var(--display); color: var(--navy-deep); margin: 0 0 1rem; }
.index-card .card-panel[hidden] { display: none; }
.index-card .row-fields { display: grid; gap: .75rem; }
@media (min-width: 560px) { .index-card .row-fields.two { grid-template-columns: 1fr 1fr; } }
.index-card .field { margin-bottom: .75rem; }
.index-card .zip-input { font: 700 1.6rem var(--display) !important; letter-spacing: .12em; max-width: 220px; }
.index-card .hint { font-size: .85rem; color: var(--slate); margin: -.25rem 0 1rem; }
@media (max-width: 480px) { .index-card .card-body-doc { padding-left: 1.1rem; background-image: repeating-linear-gradient(180deg, transparent 0 31px, var(--card-line) 31px 32px); } }

/* ---------- sections ---------- */
.section { padding: 3.5rem 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section-white { background: var(--white); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: .5rem 1.5rem; margin-bottom: 1.75rem; }
.section-head h2 { margin: 0; }
.section-head p { margin: .35rem 0 0; color: var(--slate); max-width: 60ch; }

/* catalog index (program areas) */
.catalog { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; column-gap: 2.5rem; }
@media (min-width: 640px) { .catalog { grid-template-columns: 1fr 1fr; } }
@media (min-width: 992px) { .catalog { grid-template-columns: 1fr 1fr 1fr; } }
.catalog li { border-bottom: 1px solid var(--rule); }
.catalog a { display: grid; grid-template-columns: 1fr auto; gap: .1rem 1rem; padding: .95rem 0; text-decoration: none; color: var(--ink); }
.catalog a:hover .catalog-name { color: var(--navy); text-decoration: underline; }
.catalog-name { font: 700 1.1rem var(--display); color: var(--navy-deep); }
/* Icon badges for program areas and degree levels (Services/Icons.cs). */
.icon-badge { display: inline-grid; place-items: center; flex: none; width: 2.25rem; height: 2.25rem; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.icon-badge svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-badge-lg { width: 3rem; height: 3rem; border-radius: 12px; }
.icon-badge-lg svg { width: 1.7rem; height: 1.7rem; }
.catalog-name { display: flex; align-items: center; gap: .7rem; }
.catalog-blurb { padding-left: 2.95rem; }
/* Narrow screens: the school/program count drops under the name instead of squeezing beside it. */
@media (max-width: 560px) {
  .catalog a { grid-template-columns: 1fr; }
}
.icon-heading { display: flex; align-items: center; gap: .9rem; }
.catalog-blurb { grid-column: 1 / -1; font-size: .9rem; color: var(--slate); }


/* Degree path: the five credential levels as one progression (Views/Shared/_DegreePath.cshtml). */
.degree-path { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.degree-stop { position: relative; display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 0 1rem; padding-bottom: 1.5rem; }
.degree-stop:last-child { padding-bottom: 0; }
/* connecting rule between the nodes */
.degree-stop::before { content: ""; position: absolute; left: 1.5rem; top: 3rem; bottom: 0; width: 2px; background: var(--accent-soft); }
.degree-stop:last-child::before { display: none; }
.degree-node {
  position: relative; z-index: 1; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--white); border: 2px solid var(--accent); color: var(--accent);
}
.degree-node svg { width: 1.35rem; height: 1.35rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.degree-card { padding-top: .35rem; }
.degree-card h3 { font-size: 1.1rem; margin: 0 0 .3rem; }
.degree-card h3 a { color: var(--navy-deep); text-decoration: none; }
.degree-card h3 a:hover { text-decoration: underline; }
.degree-duration { display: inline-block; margin: 0 0 .5rem; padding: .15rem .55rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: .78rem; font-weight: 700; }
.degree-tagline { margin: 0 0 .6rem; color: var(--slate); font-size: .92rem; line-height: 1.5; }
.degree-links { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin: 0; font-size: .88rem; font-weight: 600; }
.degree-links a { color: var(--accent); }
@media (min-width: 992px) {
  .degree-path { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.25rem; }
  .degree-stop { grid-template-columns: 1fr; padding-bottom: 0; justify-items: start; }
  .degree-stop::before { left: 3rem; right: -1.25rem; top: 1.5rem; bottom: auto; width: auto; height: 2px; }
  .degree-card { padding-top: 1rem; }
}

/* View colleges: school tiles (home). Every tile has the same rows (logo, two-line name, facts), so
   rows line up across a line of tiles. */
.school-tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.school-tiles li {
  position: relative; display: grid; grid-template-rows: 72px auto 1fr; padding: 0; background: var(--white);
  border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.school-tiles li:hover, .school-tiles li:focus-within { transform: translateY(-2px); border-color: #9fb4d3; box-shadow: 0 8px 20px rgba(12, 33, 64, .1); }
.tile-logo { display: grid; place-items: center; padding: .6rem 1rem; background: #fbfcfd; border-bottom: 1px solid var(--rule); }
.tile-logo img { max-width: 75%; max-height: 50px; object-fit: contain; }
.school-tiles h3 { margin: 0; padding: .85rem 1rem .5rem; font-size: 1rem; line-height: 1.3; min-height: calc(2 * 1.3em + 1.35rem); display: flex; align-items: flex-start; }
.school-tiles h3 a { color: var(--navy-deep); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.school-tiles h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); } /* whole tile is the link */
.school-tiles h3 a:focus-visible { outline: none; }
.school-tiles li:has(a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.tile-facts { margin: 0; padding: 0 1rem 1rem; display: grid; gap: .4rem; align-content: start; font-size: .82rem; }
.tile-facts > div { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr); gap: .5rem; align-items: baseline; }
.tile-facts dt { color: #8a93a1; font-weight: 500; }
.tile-facts dd { margin: 0; color: var(--ink); line-height: 1.4; }
.tile-format { display: flex; align-items: center; gap: .3rem; font-weight: 600; color: var(--accent-ink) !important; }
.tile-format svg { width: .95rem; height: .95rem; flex: none; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) { .school-tiles li { transition: none; } .school-tiles li:hover { transform: none; } }
/* Phones: compact rows, logo on the left. */
@media (max-width: 560px) {
  .school-tiles { gap: .6rem; }
  .school-tiles li { grid-template-columns: 84px minmax(0, 1fr); grid-template-rows: auto auto; }
  .tile-logo { grid-row: 1 / span 2; border-bottom: 0; border-right: 1px solid var(--rule); padding: .5rem; }
  .tile-logo img { max-width: 100%; max-height: 44px; }
  .school-tiles h3 { min-height: 0; padding: .75rem .9rem .3rem; }
  .tile-facts { padding: 0 .9rem .8rem; }
  .tile-facts > div:not(:first-child) { display: none; }
  .tile-facts dt { display: none; }
  .tile-facts > div { grid-template-columns: 1fr; }
}

.tag { display: inline-block; padding: .15rem .5rem; border-radius: 3px; font-size: .8rem; font-weight: 600; background: #eceff3; color: #3a4556; white-space: nowrap; }
.tag-accent { background: var(--accent-soft); color: var(--accent-ink); }
.tag-green { background: #e5f1ea; color: var(--ok); }

/* ---------- layouts ---------- */
.with-aside { display: grid; gap: 2.5rem; }
@media (min-width: 992px) { .with-aside { grid-template-columns: minmax(0, 1fr) 320px; } }

/* Inner-page header: deliberately quiet so the page content leads. */
.page-head { background: var(--white); border-bottom: 1px solid var(--rule); padding: 1.25rem 0 1.4rem; }
.page-head h1 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: .25em; }
.page-head .lede { margin: 0; font-size: 1rem; color: var(--slate); max-width: 70ch; }
.crumbs { font-size: .8rem; color: #8a93a1; margin-bottom: .5rem; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.crumbs li + li::before { content: "\203A"; margin-right: .35rem; color: #b3bac5; }
.crumbs a { color: #8a93a1; text-decoration: none; }
.crumbs a:hover { color: var(--navy); text-decoration: underline; }

.prose { max-width: 72ch; font-size: 1.05rem; line-height: 1.7; }
.prose h2 { font-size: var(--step-2); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1em; }
.prose li { margin-bottom: .4rem; }
.prose table { border-collapse: collapse; margin: 1rem 0; }
.prose td, .prose th { border: 1px solid var(--rule); padding: .4rem .6rem; }
.prose-lead { font-size: 1.1rem; line-height: 1.75; }

.panel { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.25rem 1.35rem; }
.panel + .panel { margin-top: 1.25rem; }
.panel h2, .panel h3 { font-size: 1.15rem; }
.panel-navy { background: var(--navy); color: #dfe6f1; border-color: var(--navy); }
.panel-navy h2, .panel-navy h3 { color: var(--white); }
.panel-navy a:not([class]) { color: var(--white); }
/* Call-to-action card with a background: navy-to-blue gradient, the hero's faint grid, and a large
   faint logo mark in the corner. */
.cta-card {
  position: relative; overflow: hidden; isolation: isolate; padding: 1.6rem 1.5rem 1.75rem;
  background:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 55%, var(--accent) 140%);
  border: 0;
}
.cta-card::after {
  content: ""; position: absolute; right: -2.5rem; bottom: -2.5rem; width: 10rem; height: 10rem; z-index: -1;
  background: url("../img/brand/mark-reversed.svg") center / contain no-repeat; opacity: .1;
}
.cta-card h2 { font-size: 1.35rem; }
.cta-card p { color: #d5deeb; max-width: 30ch; }
.cta-card .btn-accent-doc { background: var(--white); color: var(--navy-deep); }
.cta-card .btn-accent-doc:hover { background: var(--accent-soft); color: var(--navy-deep); }

/* ---------- filters + results ---------- */

/* Refine search: full-width box above the results (the original search app's layout). */
.refine-search { background: var(--white); border: 2px solid var(--accent); border-radius: var(--radius); box-shadow: 0 2px 6px rgba(12, 33, 64, .08); margin-bottom: 1.5rem; }
.refine-groups { display: grid; gap: 1.25rem 2rem; padding: 1.25rem; }
@media (min-width: 860px) { .refine-groups { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1fr); } }
.refine-search fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.refine-search legend { float: none; width: auto; padding: 0; margin-bottom: .5rem; font: 700 1rem var(--display); color: var(--navy-deep); }
.refine-options { display: grid; gap: .3rem 1rem; }
.refine-programs .refine-options { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.refine-search .check { font-size: .92rem; cursor: pointer; }
.refine-search .check input { flex: none; }
.refine-details > summary { display: flex; align-items: center; gap: .6rem; cursor: pointer; list-style: none; padding: .9rem 1.1rem; font: 700 1rem var(--sans); color: var(--navy-deep); }
.refine-details > summary::-webkit-details-marker { display: none; }
.refine-details > summary svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.refine-count { padding: .1rem .5rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: .75rem; font-weight: 700; }
.refine-chevron { margin-left: auto; color: var(--slate); transition: transform .2s ease; }
.refine-details[open] .refine-chevron { transform: rotate(180deg); }
@media (min-width: 860px) { .refine-details > summary { display: none; } }

/* Phones: a compact filter panel. */
@media (max-width: 859px) {
  .refine-details[open] > summary { border-bottom: 1px solid var(--rule); }
  .refine-groups { gap: 1.25rem; padding: 1rem 1.1rem; }
  .refine-search legend { font-size: .95rem; }
  .refine-programs .refine-options { grid-template-columns: 1fr 1fr; gap: .45rem .75rem; }
  .refine-programs .check { font-size: .86rem; }
  /* degrees as wrapping chips */
  .refine-degrees .refine-options { display: flex; flex-wrap: wrap; gap: .4rem; }
  .refine-degrees .check { position: relative; padding: .35rem .75rem; border: 1px solid var(--rule); border-radius: 999px; font-size: .86rem; background: var(--white); }
  .refine-degrees .check input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
  .refine-degrees .check:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
  .refine-degrees .check:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
  /* program type as a three-way switch */
  .refine-type .refine-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--rule); border-radius: var(--radius-sm); overflow: hidden; }
  .refine-type .check { position: relative; justify-content: center; text-align: center; padding: .55rem .25rem; font-size: .86rem; background: var(--white); }
  .refine-type .check + .check { border-left: 1px solid var(--rule); }
  .refine-type .check input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
  .refine-type .check:has(input:checked) { background: var(--accent); color: var(--white); font-weight: 600; }
  .refine-type .check:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: -3px; }
  .refine-search .refine-zip input { max-width: none; }
  .refine-actions .btn-primary-doc { flex: 1; }
}
.check-all { margin: .5rem 0 0; font-size: .82rem; color: var(--slate); }
.check-all button { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; text-decoration: underline; cursor: pointer; }
.refine-side { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.refine-zip { display: flex; flex-direction: column; gap: .4rem; }
.refine-zip label { font: 700 1rem var(--display); color: var(--navy-deep); }
.refine-zip input { width: 100%; max-width: 12rem; padding: .55rem .7rem; font: 400 1rem var(--sans); border: 1px solid #b9c2cf; border-radius: var(--radius-sm); }
.refine-zip input:focus { outline: 3px solid rgba(47, 111, 209, .35); border-color: var(--focus); }
.refine-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem 1.25rem; padding: 1rem 1.25rem; border-top: 1px solid var(--rule); background: #fbfcfd; border-radius: 0 0 var(--radius) var(--radius); }
.refine-actions .btn-primary-doc { min-width: 10rem; }
.refine-reset { font-size: .9rem; }
.result-stats { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin-bottom: 1rem; }
.result-stats p { margin: 0; font-size: 1.15rem; color: var(--ink); }
.result-stats strong { color: var(--navy-deep); }
.results-sponsor { margin-top: 2rem; max-width: 340px; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .6rem; border: 1px solid var(--rule); border-radius: 999px; background: var(--white); font-size: .85rem; color: var(--ink); text-decoration: none; }
.chip:hover { border-color: var(--navy); }
.chip span[aria-hidden] { color: var(--slate); }

/* Result card: name on top, logo + counts on the left, description on the right, button at the bottom
   (the original search app's layout). */
.school-card { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: 0 2px 6px rgba(12, 33, 64, .08); overflow: hidden; }
.school-card + .school-card { margin-top: 1rem; }
.school-card .result-name { margin: 0; padding: 1rem 1.25rem; text-align: center; font-size: 1.25rem; border-bottom: 1px solid var(--rule); background: #fbfcfd; }
.school-card .result-name a { color: var(--navy-deep); text-decoration: none; }
.school-card .result-name a:hover { text-decoration: underline; }
.school-card .result-body { display: grid; gap: 1rem 1.5rem; padding: 1.25rem; }
@media (min-width: 640px) { .school-card .result-body { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); } }
.school-card .result-side { text-align: center; font-size: .875rem; color: var(--slate); }
.school-card .logo-box { display: grid; place-items: center; height: 96px; padding: .5rem; }
.school-card .logo-box img { max-height: 80px; max-width: 90%; object-fit: contain; }
.school-card .result-side p { margin: .6rem 0 0; }
.school-card .programs-count { font-weight: 700; color: var(--navy-deep); }
.school-card .online-campus { display: inline-flex; align-items: center; gap: .35rem; }
.school-card .online-campus svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.school-card .nearby { color: var(--ok); font-weight: 600; }
.school-card .result-desc { color: #3a4556; font-size: .95rem; }
.school-card .result-desc p:last-child { margin-bottom: 0; }
.school-card .result-desc br + br { display: none; }
.school-card .show-more { background: none; border: 0; padding: 0; margin-top: .6rem; color: var(--accent); font: 600 .85rem var(--sans); text-decoration: underline; cursor: pointer; }
.school-card .visit-section { display: flex; justify-content: flex-end; padding: 0 1.25rem 1.25rem; }

/* ---------- school profile ---------- */
.profile-head { background: var(--white); border-bottom: 1px solid var(--rule); padding: 2rem 0; }
.profile-head .wrap { display: grid; gap: 1.5rem; }
@media (min-width: 860px) { .profile-head .wrap { grid-template-columns: 220px minmax(0, 1fr) auto; align-items: center; } }
.profile-logo { display: grid; place-items: center; height: 120px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--white); padding: .8rem; }
.profile-logo img { max-height: 96px; object-fit: contain; }
.profile-head h1 { font-size: clamp(1.80rem, 3.2vw, 2.60rem); margin-bottom: .4rem; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--white); margin: 0 0 2rem; }
.facts div { padding: 1rem 1.1rem; border-right: 1px solid var(--rule); }
.facts div:last-child { border-right: 0; }
.facts dt { font-size: .82rem; color: var(--slate); font-weight: 500; }
.facts dd { margin: .15rem 0 0; font: 800 1.35rem var(--display); color: var(--navy-deep); }
.program-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.program-table th { text-align: left; font-size: .8rem; color: var(--slate); padding: .5rem .25rem; border-bottom: 2px solid var(--navy); }
.program-table td { padding: .55rem .25rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.program-group { margin-bottom: 2rem; }
.program-group h3 { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--rule); padding-bottom: .4rem; }
.program-group h3 small { font: 500 .85rem var(--sans); color: var(--slate); }
.program-list { list-style: none; margin: 0; padding: 0; columns: 2 260px; column-gap: 2rem; }
.program-list li { padding: .35rem 0; break-inside: avoid; border-bottom: 1px dotted var(--rule); font-size: .95rem; }
.campus-list { list-style: none; margin: 0; padding: 0; }
.campus-list > li { border-bottom: 1px solid var(--rule); }
.campus-list details summary { cursor: pointer; padding: .7rem 0; display: flex; justify-content: space-between; gap: 1rem; font-weight: 600; color: var(--navy-deep); list-style: none; }
.campus-list details summary::-webkit-details-marker { display: none; }
.campus-list details summary::after { content: "+"; font: 700 1.2rem/1 var(--display); color: var(--accent); }
.campus-list details[open] summary::after { content: "\2212"; }
.campus-list details ul { margin: 0 0 .9rem; padding-left: 1.1rem; font-size: .92rem; color: #3a4556; }
.campus-list .n { font-weight: 400; color: var(--slate); font-size: .85rem; margin-left: auto; }
.tabs-doc { display: flex; gap: .25rem; border-bottom: 1px solid var(--rule); margin-bottom: 1.5rem; overflow-x: auto; }
.tabs-doc a { padding: .7rem 1rem; text-decoration: none; color: var(--slate); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs-doc a:hover { color: var(--navy); }
.tabs-doc a.active { color: var(--navy-deep); border-bottom-color: var(--accent); }

/* sponsor + featured */
/* Sponsored banner: full width of its column (matches the cards above it), with a small, quiet
   "Sponsored" note under the image that explains the placement on hover or focus. */
.sponsor { position: relative; width: 100%; max-width: 340px; margin: 1.25rem auto 0; }
.sponsor-link { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--rule); transition: border-color .15s ease, box-shadow .15s ease; }
.sponsor-link img { display: block; width: 100%; height: auto; }
.sponsor-link:hover, .sponsor-link:focus-visible { border-color: #9fb4d3; box-shadow: 0 4px 12px rgba(12, 33, 64, .1); }
.sponsor-badge {
  display: flex; align-items: center; gap: .2rem; margin: .35rem 0 0 auto; padding: 0; border: 0; background: none;
  color: #8a93a1; font: 500 .7rem var(--sans); cursor: help;
}
.sponsor-badge svg { width: .75rem; height: .75rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.sponsor-badge:hover, .sponsor-badge:focus-visible { color: var(--slate); }
.sponsor-note {
  position: absolute; bottom: 1.6rem; right: 0; z-index: 2; width: max-content; max-width: min(15rem, 100%);
  padding: .45rem .6rem; border-radius: var(--radius-sm); background: var(--navy-deep); color: var(--white);
  font-size: .75rem; line-height: 1.4; text-align: left; box-shadow: 0 6px 16px rgba(12, 33, 64, .25);
  opacity: 0; visibility: hidden; transition: opacity .15s ease, visibility .15s;
}
.sponsor-badge:hover + .sponsor-note, .sponsor-badge:focus + .sponsor-note { opacity: 1; visibility: visible; }
@media (prefers-reduced-motion: reduce) { .sponsor-link, .sponsor-note { transition: none; } }
.featured-list { list-style: none; margin: 0; padding: 0; }
.featured-list li { display: flex; gap: .9rem; align-items: center; padding: .8rem 0; border-bottom: 1px solid var(--rule); }
.featured-list li:last-child { border-bottom: 0; }
.featured-list img { width: 88px; height: 48px; object-fit: contain; background: var(--white); flex: none; }
.featured-list a { font: 700 1rem/1.3 var(--display); text-decoration: none; color: var(--navy-deep); }
.featured-list a:hover { text-decoration: underline; }

/* Featured schools band (top of home page, as on the original site) */
.featured-schools { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 860px) { .featured-schools { grid-template-columns: 1fr 1fr; } }
.featured-schools li { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--white); }
.featured-logo { flex: none; display: grid; place-items: center; width: 120px; height: 60px; }
.featured-logo img { max-width: 100%; max-height: 56px; object-fit: contain; }
.featured-text { flex: 1; min-width: 0; }
.featured-text h3 { font-size: 1.05rem; margin: 0 0 .15rem; }
.featured-text h3 a { color: var(--navy-deep); text-decoration: none; }
.featured-text h3 a:hover { text-decoration: underline; }
.featured-text p { margin: 0; }
@media (max-width: 520px) {
  .featured-schools li { flex-wrap: wrap; }
  .featured-logo { width: 96px; }
  .featured-schools .btn-accent-doc { width: 100%; }
}

/* articles */
.article-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 2.5rem; }
@media (min-width: 860px) { .article-list.cols-3 { grid-template-columns: repeat(3, 1fr); } .article-list.cols-2 { grid-template-columns: 1fr 1fr; } }
.article-list li { padding: 1.25rem 0; border-top: 2px solid var(--navy); }
.article-list h3 { font-size: 1.2rem; margin-bottom: .45rem; }
.article-list h3 a { color: var(--navy-deep); text-decoration: none; }
.article-list h3 a:hover { text-decoration: underline; }
.article-list p { font-size: .95rem; color: var(--slate); margin: 0; }

.welcome { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 992px) { .welcome { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 2rem; } }
.welcome-card { background: var(--white); border: 1px solid var(--rule); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 1.75rem 1.75rem 1.5rem; }
.welcome-card h2, .info-side-head h2 { font-size: 1.35rem; margin: 0; }
.welcome-card h2 { margin-bottom: .9rem; }
.welcome-text p { color: #3a4556; line-height: 1.75; margin: 0 0 1rem; max-width: 68ch; }
.welcome-card .signature { display: flex; align-items: center; gap: .6rem; margin: 1.25rem 0 0; padding-top: 1rem; border-top: 1px solid var(--rule); font: 600 .95rem var(--sans); font-style: normal; color: var(--navy-deep); }
@media (max-width: 560px) { .welcome-card { padding: 1.25rem; } }

/* Info Center articles beside the welcome card */
.info-side { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.75rem 1.5rem 1.25rem; }
.info-side-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .5rem; }
.info-side-head a { font-size: .9rem; font-weight: 600; }
.info-cards { list-style: none; margin: 0; padding: 0; display: grid; }
.info-cards li { position: relative; display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 0; border-top: 1px solid var(--rule); }
.info-cards li:first-child { border-top: 0; }
.info-cards li:hover h3 a { text-decoration: underline; }
.info-cards h3 { font-size: 1rem; line-height: 1.35; margin: 0 0 .3rem; }
.info-cards h3 a { color: var(--navy-deep); text-decoration: none; }
.info-cards h3 a::after { content: ""; position: absolute; inset: 0; } /* whole card is the link */
.info-cards h3 a:hover { text-decoration: underline; }
.info-cards p { margin: 0; color: var(--slate); font-size: .88rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* FAQ */
.faq { border-top: 1px solid var(--rule); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding: 1.1rem 2rem 1.1rem 0; font: 700 1.1rem/1.4 var(--display); color: var(--navy-deep); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: 1rem; font-size: 1.4rem; color: var(--accent); }
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 0 1.2rem; max-width: 70ch; color: #3a4556; }

/* steps (find the right school) */
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .5rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice span { display: block; padding: .7rem .9rem; border: 1px solid var(--rule); border-radius: var(--radius-sm); background: var(--white); cursor: pointer; font-weight: 500; font-size: .95rem; }
.choice input:checked + span { border-color: var(--navy); background: #eef3fa; box-shadow: inset 3px 0 0 var(--accent); }
.choice input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

/* site map */
.sitemap-cols { display: grid; gap: 2rem; }
@media (min-width: 768px) { .sitemap-cols { grid-template-columns: repeat(3, 1fr); } }
.sitemap-cols ul { list-style: none; padding: 0; margin: 0; }
.sitemap-cols li { padding: .3rem 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-deep); color: #b8c4d6; margin-top: 0; padding: 3rem 0 1.5rem; font-size: .92rem; }
.site-footer a { color: #e3e9f2; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-grid h2 { font: 700 1rem var(--display); color: var(--white); margin-bottom: .75rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { padding: .2rem 0; }
.footer-about { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer-about { grid-column: auto; } }
.footer-about p { max-width: 38ch; }
.footer-base { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.25rem; display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between; font-size: .85rem; }
.footer-base nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
@media print { .utility, .masthead, .site-footer, .refine-search, .sponsor { display: none !important; } body { background: #fff; } }

/* Phones: one header row, logo left and Menu right. */
@media (max-width: 519px) {
  .masthead > .wrap { min-height: 60px; gap: .75rem; }
  .brand { min-width: 0; }
}


.hero .wrap > * { min-width: 0; }
.index-card .card-tab { white-space: nowrap; }
@media (max-width: 400px) {
  .index-card .card-tabs { padding-left: 12px; gap: 4px; }
  .index-card .card-tab { padding: .55rem .7rem .5rem; font-size: .82rem; }
}
