:root {
  --ink: #0D3B8C;
  --ink-2: #1A4FA8;
  --paper: #FFFFFF;
  --paper-2: #F2F6FC;
  --rule: #D3DDEE;
  --crimson: #2A7BE4;
  --gold: #5FB2F5;
  --text: #1F2937;
  --muted: #5C6B82;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --max: 1180px
}

* {
  box-sizing: border-box
}

@media (prefers-reduced-motion:reduce) {
  * {
    transition: none !important;
    animation: none !important
  }
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--paper);
  line-height: 1.55;
  font-size: 17px
}

a {
  color: var(--ink)
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  color: var(--ink)
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px
}

button {
  font-family: inherit;
  font-size: inherit
}

/* Header */
header {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 50
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none
}

.brand img {
  height: 40px;
  width: auto;
  display: block
}


nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0
}

nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-2);
  padding-bottom: 4px
}

nav a:hover {
  color: var(--crimson)
}

nav a[aria-current="page"] {
  color: var(--crimson);
  border-bottom: 2px solid var(--crimson)
}

.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer
}

@media(max-width:820px) {
  nav ul {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--rule)
  }

  nav ul.open {
    display: flex
  }

  nav li {
    padding: 14px 24px;
    border-top: 1px solid var(--rule)
  }

  .menu-btn {
    display: block
  }
}

/* Hero + page headers */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background: #fff url(hero.png) center right/cover no-repeat;
  overflow: hidden
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, .96) 0%, rgba(255, 255, 255, .9) 38%, rgba(255, 255, 255, .55) 52%, rgba(255, 255, 255, 0) 68%)
}

.hero .wrap {
  position: relative;
  width: 100%;
  padding-top: 64px;
  padding-bottom: 64px
}

.hero h1 {
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(40px, 5.6vw, 66px);
  font-weight: 700;
  line-height: 1.05;
  max-width: 560px;
  letter-spacing: -.02em
}

.hero p {
  font-size: 21px;
  max-width: 520px;
  color: var(--ink);
  margin: 18px 0 26px;
  font-weight: 400
}

.hero .quick {
  display: flex;
  gap: 0;
  margin: 0 0 28px;
  flex-wrap: wrap
}

.hero .quick a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.15;
  font-size: 16px;
  padding: 6px 22px 6px 0;
  margin-right: 22px;
  border-right: 1px solid var(--rule)
}

.hero .quick a:last-child {
  border: 0
}

.hero .quick svg {
  width: 34px;
  height: 34px;
  stroke: var(--ink);
  fill: none;
  stroke-width: 1.7;
  stroke-linejoin: round;
  stroke-linecap: round;
  flex: none
}

.hero .quick a:hover {
  color: var(--crimson)
}

.hero .facts {
  display: flex;
  gap: 36px;
  margin-top: 34px;
  flex-wrap: wrap
}

.hero .facts div {
  border-left: 2px solid var(--crimson);
  padding-left: 14px
}

.hero .facts strong {
  display: block;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--ink)
}

.hero .facts small {
  color: var(--muted);
  font-size: 14px
}

@media(max-width:820px) {
  .hero {
    background-position: 72% center
  }

  .hero::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, .94) 0%, rgba(255, 255, 255, .9) 70%, rgba(255, 255, 255, .6) 100%)
  }
}

.search {
  display: flex;
  max-width: 640px;
  background: #fff;
  border-radius: 6px;
  padding: 6px 6px 6px 18px;
  box-shadow: 0 12px 32px rgba(13, 59, 140, .18);
  border: 1px solid var(--rule);
  align-items: center;
  gap: 8px
}

.search svg {
  width: 22px;
  height: 22px;
  stroke: var(--ink);
  fill: none;
  stroke-width: 2;
  flex: none
}

.search input {
  flex: 1;
  border: 0;
  padding: 14px 16px;
  font-size: 18px;
  font-family: inherit;
  background: transparent;
  color: var(--text);
  min-width: 0
}

.search input:focus {
  outline: none
}

.search button {
  background: var(--crimson);
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 13px 28px;
  font-weight: 700;
  cursor: pointer
}

.search button:hover {
  background: #1F65C4
}

.page-head {
  background: linear-gradient(135deg, var(--ink), #1E5BC0);
  color: #fff;
  padding: 48px 0 40px
}

.page-head h1 {
  color: #fff;
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 400
}

.page-head p {
  color: #C9D2E3;
  font-size: 19px;
  max-width: 640px;
  margin: 12px 0 0
}

.crumbs {
  font-size: 14px;
  color: #C9D2E3;
  margin-bottom: 14px
}

.crumbs a {
  color: #C9D2E3;
  text-decoration: none
}

.crumbs a:hover {
  color: var(--gold)
}

/* Sections */
section {
  padding: 64px 0
}

section.alt {
  background: var(--paper-2)
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 40px)
}

.section-head p {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 560px
}

.btn {
  display: inline-block;
  background: var(--crimson);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 6px;
  border: 0;
  cursor: pointer
}

.btn:hover {
  background: #1F65C4
}

.btn.quiet {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule)
}

.btn.quiet:hover {
  background: var(--paper-2)
}

/* Filters */
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  align-items: stretch
}

.filters > *,
.filters .chip {
  height: 40px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  line-height: 40px;
}

/* the type chips: inline with the other controls on desktop, one scrollable row on phones */
.filters .chips {
  display: contents;
}

.chip {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 0 16px;
  text-decoration: none;
  font-size: 15px;
  cursor: pointer;
  font-weight: 600;
  color: var(--ink-2)
}

.chip[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink)
}

.filters select,
.filters input {
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 0 14px;
  background: #fff;
  font-family: inherit;
  font-weight: 600;
  color: var(--ink-2);
  font-size: 15px
}

.filters input {
  min-width: 240px;
  flex: 1
}

.count {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 16px
}

/* College cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 22px
}

.college {
  background: #fff;
  border: 1px solid var(--rule);
  border-top: 4px solid var(--ink);
  text-align: left;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit
}

.college:hover {
  border-top-color: var(--crimson)
}

.college .top {
  padding: 22px 22px 14px
}

.college h3 {
  font-size: 24px
}

.college .loc {
  color: var(--muted);
  font-size: 15px;
  margin-top: 4px
}

.college .type {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--crimson);
  border: 1px solid #BFD8F7;
  padding: 2px 8px;
  border-radius: 4px
}

.ledger {
  border-top: 1px solid var(--rule);
  margin-top: auto
}

.ledger dl {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  margin: 0
}

.ledger div {
  padding: 14px 16px;
  border-right: 1px solid var(--rule)
}

.ledger div:last-child {
  border-right: 0
}

.ledger dt {
  font-size: 13px;
  color: var(--muted)
}

.ledger dd {
  margin: 2px 0 0;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  color: var(--ink)
}

.walk {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  color: var(--muted)
}

.walk .bar {
  flex: 1;
  height: 6px;
  background: var(--paper-2);
  border-radius: 3px;
  overflow: hidden
}

.walk .bar i {
  display: block;
  height: 100%;
  background: var(--gold)
}

.empty {
  padding: 48px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--rule);
  grid-column: 1/-1
}

.pager {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 36px;
  flex-wrap: wrap
}

.pager button {
  background: #fff;
  border: 1px solid var(--rule);
  min-width: 42px;
  height: 42px;
  cursor: pointer;
  font-weight: 600;
  color: var(--ink-2)
}

.pager button[aria-current="page"] {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink)
}

.pager button:disabled {
  opacity: .4;
  cursor: default
}

/* Profile page */
.profile {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  padding: 56px 0
}

.toc {
  position: sticky;
  top: 90px;
  align-self: start;
  border-left: 2px solid var(--rule)
}

.toc a {
  display: block;
  padding: 8px 16px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
  margin-left: -2px;
  border-left: 2px solid transparent
}

.toc a:hover {
  color: var(--crimson);
  border-left-color: var(--crimson)
}

.profile article h2 {
  font-size: 28px;
  margin: 0 0 16px;
  padding-top: 8px
}

.profile article section {
  padding: 0 0 44px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 44px
}

.profile article section:last-child {
  border: 0
}

.profile table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 18px
}

.profile th,
.profile td {
  text-align: left;
  padding: 11px 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top
}

.profile th {
  color: var(--muted);
  font-weight: 600;
  width: 34%
}

.profile td {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--ink)
}

.profile ul {
  padding-left: 20px;
  margin: 0 0 16px
}

.profile li {
  margin-bottom: 8px
}

.note {
  background: var(--paper-2);
  border-left: 3px solid var(--gold);
  padding: 12px 16px;
  font-size: 15px;
  color: var(--muted)
}

.scholar {
  border: 1px solid var(--rule);
  padding: 16px;
  margin-bottom: 12px
}

.scholar strong {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--ink);
  display: block
}

.scholar .amt {
  color: var(--crimson);
  font-weight: 700
}

.keyfacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border: 1px solid var(--rule);
  background: #fff;
  margin-bottom: 48px
}

.keyfacts div {
  padding: 18px;
  border-right: 1px solid var(--rule)
}

.keyfacts div:last-child {
  border-right: 0
}

.keyfacts small {
  color: var(--muted);
  font-size: 13px;
  display: block
}

.keyfacts b {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--ink);
  font-weight: 600
}

.walkmeter {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 8px 0 18px
}

.walkmeter .bar {
  flex: 1;
  height: 10px;
  background: var(--paper-2);
  border-radius: 5px;
  overflow: hidden
}

.walkmeter .bar i {
  display: block;
  height: 100%;
  background: var(--gold)
}

.walkmeter b {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--ink)
}

.prevnext {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--rule);
  padding-top: 28px;
  margin-top: 8px
}

.prevnext a {
  text-decoration: none;
  font-weight: 600
}

.prevnext small {
  display: block;
  color: var(--muted);
  font-weight: 400;
  font-size: 13px
}

@media(max-width:860px) {
  .profile {
    grid-template-columns: minmax(0, 1fr)
  }

  .profile article,
  .profile > div {
    min-width: 0;
  }

  .profile table {
    display: block;
    overflow-x: auto;
    max-width: 100%;
  }

  .profile article .btn {
    white-space: normal;
    text-align: center;
  }

  /* Section nav becomes a single-row, horizontally scrollable strip pinned under the sticky header */
  .toc {
    position: sticky;
    top: 60px;
    z-index: 20;
    box-shadow: 0 6px 12px -8px rgba(13, 59, 140, .25);
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    border: 0;
    border-bottom: 1px solid var(--rule);
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(6px);
    margin: 0 -18px;
    padding: 10px 18px;
    cursor: grab;
    user-select: none;
    overscroll-behavior-x: contain
  }

  .toc::-webkit-scrollbar {
    display: none
  }

  .toc.dragging {
    cursor: grabbing;
    scroll-snap-type: none
  }

  .toc a {
    flex: 0 0 auto;
    white-space: nowrap;
    border: 1px solid var(--rule);
    border-radius: 999px;
    margin: 0;
    padding: 7px 13px;
    font-size: 14px;
    scroll-snap-align: start;
    background: #fff
  }

  .toc a.on {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink)
  }

  .toc::after {
    content: "";
    flex: 0 0 12px
  }
}

/* Compare */
.compare {
  overflow-x: auto;
  border: 1px solid var(--rule);
  background: #fff
}

.compare table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px
}

.compare th,
.compare td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--rule);
  text-align: left
}

.compare thead th {
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  white-space: nowrap
}

.compare thead th:hover {
  background: var(--ink-2)
}

.compare tbody th {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600
}

.compare tbody th a {
  text-decoration: none
}

.compare tbody th a:hover {
  color: var(--crimson)
}

.compare tbody tr:nth-child(even) {
  background: var(--paper-2)
}

/* Topics */
.topics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  border: 1px solid var(--rule);
  background: #fff
}

.topic {
  padding: 28px 24px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule)
}

.topic h3 {
  font-size: 20px;
  margin-bottom: 8px
}

.topic p {
  margin: 0;
  color: var(--muted);
  font-size: 15px
}

.topic .glyph {
  font-family: var(--serif);
  font-size: 34px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 12px
}

/* Guides / articles */
.articles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px
}

.article {
  border: 1px solid var(--rule);
  background: #fff;
  padding: 26px;
  text-decoration: none;
  color: inherit;
  display: block
}

.article:hover h3 {
  color: var(--crimson)
}

.article h3 {
  font-size: 22px;
  margin-bottom: 8px
}

.article p {
  margin: 0;
  color: var(--muted);
  font-size: 15px
}

.article small {
  display: block;
  margin-top: 14px;
  color: var(--gold);
  font-weight: 700;
  font-size: 13px
}

.prose {
  max-width: 720px
}

.prose p {
  margin: 0 0 18px
}

.prose h2 {
  font-size: 28px;
  margin: 36px 0 14px
}

/* Deadlines */
.deadlines {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px
}

.deadline {
  background: #fff;
  border: 1px solid var(--rule);
  padding: 22px;
  display: flex;
  gap: 18px
}

.deadline .date {
  font-family: var(--serif);
  color: var(--crimson);
  text-align: center;
  min-width: 56px
}

.deadline .date b {
  display: block;
  font-size: 30px;
  line-height: 1
}

.deadline .date span {
  font-size: 13px;
  font-weight: 700
}

.deadline h3 {
  font-size: 19px
}

.deadline p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 15px
}

/* States index */
.states {
  columns: 4;
  column-gap: 32px
}

.states a {
  display: block;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid var(--rule);
  font-weight: 600
}

.states a span {
  color: var(--muted);
  font-weight: 400;
  float: right
}

@media(max-width:760px) {
  .states {
    columns: 2
  }
}

/* Signup + footer */
.signup {
  background: var(--crimson);
  color: #fff;
  padding: 56px 0
}

.signup .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap
}

.signup h2 {
  color: #fff;
  font-size: 30px
}

.signup p {
  margin: 6px 0 0;
  color: #D6E8FB
}

.signup form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}

.signup input {
  padding: 12px 16px;
  border: 0;
  border-radius: 6px;
  font-family: inherit;
  font-size: 16px;
  min-width: 260px
}

.signup button {
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 12px 22px;
  font-weight: 700;
  cursor: pointer
}

footer {
  background: var(--ink);
  color: #C9D2E3;
  padding: 56px 0 32px;
  font-size: 15px
}

footer .cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px
}

footer h4 {
  color: #fff;
  font-family: var(--sans);
  font-size: 15px;
  margin-bottom: 12px
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0
}

footer li {
  margin-bottom: 8px
}

footer a {
  color: #C9D2E3;
  text-decoration: none
}

footer a:hover {
  color: var(--gold)
}

footer .brand img {
  height: 40px;
  width: auto;
  background: #fff;
  padding: 6px 10px;
  border-radius: 6px
}

footer .legal {
  border-top: 1px solid rgba(255, 255, 255, .15);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px
}

@media(max-width:760px) {
  footer .cols {
    grid-template-columns: 1fr 1fr
  }
}

/* Lead forms */
.lead {
  background: #fff;
  border: 1px solid var(--rule);
  border-top: 4px solid var(--crimson);
  padding: 28px
}

.lead h2,
.lead h3 {
  font-size: 24px;
  margin-bottom: 6px
}

.lead>p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 15px
}

.lead .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px
}

.lead label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 14px
}

.lead label span {
  display: block;
  margin-bottom: 5px
}

.lead input,
.lead select,
.lead textarea {
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 11px 12px;
  font-family: inherit;
  font-size: 16px;
  color: var(--text);
  background: #fff
}

.lead textarea {
  min-height: 90px;
  resize: vertical
}

.lead input:focus,
.lead select:focus,
.lead textarea:focus {
  outline: none;
  border-color: var(--crimson);
  box-shadow: 0 0 0 3px rgba(42, 123, 228, .18)
}

.lead .check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400;
  color: var(--muted);
  font-size: 14px;
  margin: 4px 0 18px
}

.lead .check input {
  width: auto;
  margin-top: 3px
}

.lead .btn {
  width: 100%;
  padding: 14px
}

.lead .status {
  margin-top: 14px;
  font-size: 15px;
  min-height: 20px
}

.lead .status.ok {
  color: #1B6E3A;
  font-weight: 600
}

.lead .status.err {
  color: #A32323;
  font-weight: 600
}

.lead .done {
  text-align: center;
  padding: 30px 10px
}

.lead .done .mark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--crimson);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 28px;
  margin: 0 auto 14px
}

.lead .fine {
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px
}

.lead-split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: start
}

.lead-split .why h2 {
  font-size: 34px;
  margin-bottom: 16px
}

.lead-split .why p {
  color: var(--muted);
  margin: 0 0 14px
}

.lead-split .why ul {
  padding-left: 0;
  list-style: none;
  margin: 22px 0 0
}

.lead-split .why li {
  padding: 12px 0;
  border-top: 1px solid var(--rule);
  display: flex;
  gap: 12px
}

.lead-split .why li b {
  color: var(--crimson);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1;
  min-width: 26px
}

.lead-strip {
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 44px 0
}

.lead-strip .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap
}

.lead-strip h2 {
  font-size: 26px
}

.lead-strip p {
  margin: 6px 0 0;
  color: var(--muted)
}

.profile .lead {
  margin-top: 8px
}

@media(max-width:820px) {

  .lead .row,
  .lead-split {
    grid-template-columns: 1fr
  }
}

/* Guides page */
.feature {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  border: 1px solid var(--rule);
  background: #fff;
  margin-bottom: 56px
}

.feature .text {
  padding: 40px
}

.feature .text small {
  color: var(--crimson);
  font-weight: 700;
  font-size: 14px
}

.feature h2 {
  font-size: 34px;
  margin: 10px 0 14px
}

.feature p {
  color: var(--muted);
  margin: 0 0 22px
}

.feature .side {
  background: var(--ink);
  color: #fff;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center
}

.feature .side h3 {
  color: #fff;
  font-size: 20px;
  margin-bottom: 14px
}

.feature .side ol {
  margin: 0;
  padding-left: 20px;
  color: #D6E8FB
}

.feature .side li {
  margin-bottom: 8px
}

.guide-group {
  margin-bottom: 52px
}

.guide-group h2 {
  font-size: 26px;
  margin-bottom: 6px
}

.guide-group>p {
  margin: 0 0 22px;
  color: var(--muted)
}

.article .meta {
  display: flex;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
  margin-top: 14px
}

.article .meta small {
  color: var(--crimson);
  font-weight: 700;
  margin: 0
}

.prose .lede {
  font-size: 21px;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 28px
}

.prose .meta {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px
}

.prose blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 3px solid var(--crimson);
  background: var(--paper-2);
  font-family: var(--serif);
  font-size: 19px;
  color: var(--ink)
}

.prose ul {
  padding-left: 20px;
  margin: 0 0 18px
}

.prose li {
  margin-bottom: 8px
}

.related {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--rule)
}

.related h3 {
  font-size: 20px;
  margin-bottom: 14px
}

.related a {
  display: block;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 0;
  border-bottom: 1px solid var(--rule)
}

.related a small {
  display: block;
  color: var(--muted);
  font-weight: 400;
  font-size: 14px
}

.faq {
  border: 1px solid var(--rule);
  background: #fff;
  margin-top: 8px
}

.faq details {
  border-bottom: 1px solid var(--rule)
}

.faq details:last-child {
  border: 0
}

.faq summary {
  padding: 18px 22px;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px
}

.faq summary::after {
  content: "+";
  color: var(--crimson);
  font-size: 22px;
  line-height: 1
}

.faq details[open] summary::after {
  content: "–"
}

.faq details p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--muted)
}

@media(max-width:820px) {
  .feature {
    grid-template-columns: 1fr
  }
}

.guide-group .articles {
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr))
}

/* ===================== Mobile ===================== */
.profile {
  padding: 56px 24px
}

.profile tr:last-child th,
.profile tr:last-child td {
  border-bottom: 0
}

.profile table {
  margin-bottom: 0
}

.compare td[data-label]::before {
  display: none
}

.nav .menu-btn {
  font-weight: 600;
  color: var(--ink);
  padding: 8px 14px;
  min-height: 40px
}

@media(max-width:720px) {
  body {
    font-size: 16px
  }

  section {
    padding: 44px 0
  }

  .wrap {
    padding: 0 18px
  }

  .nav {
    height: 60px
  }

  .brand img {
    height: 32px
  }

  nav ul {
    top: 60px
  }

  nav li {
    padding: 0
  }

  nav li a {
    display: block;
    padding: 14px 18px;
    font-size: 17px
  }

  /* Hero: photo becomes a banner above the text instead of sitting behind it */
  .hero {
    min-height: 0;
    display: block;
    background: #fff url(hero.png) right top/auto 250px no-repeat
  }

  .hero::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0) 170px, rgba(255, 255, 255, .85) 230px, #fff 250px)
  }

  .hero .wrap {
    padding-top: 228px;
    padding-bottom: 36px
  }

  .hero h1 {
    font-size: 36px;
    max-width: none
  }

  .hero p {
    font-size: 17px;
    margin: 12px 0 18px
  }

  .hero .quick {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 20px
  }

  .hero .quick a {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 12px 10px;
    margin: 0;
    border: 1px solid var(--rule);
    border-radius: 8px;
    font-size: 14px;
    background: #fff
  }

  .hero .quick svg {
    width: 26px;
    height: 26px
  }

  .search {
    padding: 5px 5px 5px 12px;
    border-radius: 6px
  }

  .search svg {
    display: none
  }

  .search input {
    font-size: 16px;
    padding: 12px 4px
  }

  .search button {
    padding: 12px 18px;
    border-radius: 6px
  }

  .hero .facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 26px
  }

  .hero .facts div {
    padding-left: 10px
  }

  .hero .facts strong {
    font-size: 19px
  }

  .hero .facts small {
    font-size: 12px;
    line-height: 1.3;
    display: block
  }

  /* Page headers */
  .page-head {
    padding: 28px 0 26px
  }

  .page-head h1 {
    font-size: 30px
  }

  .page-head p {
    font-size: 16px;
    margin-top: 8px
  }

  .crumbs {
    margin-bottom: 10px;
    font-size: 13px
  }

  .section-head {
    margin-bottom: 22px
  }

  .section-head p {
    font-size: 15px
  }

  /* Cards + grids */
  .grid {
    gap: 16px
  }

  .college .top {
    padding: 18px 18px 12px
  }

  .college h3 {
    font-size: 21px
  }

  .ledger div {
    padding: 10px 12px
  }

  .ledger dt {
    font-size: 12px
  }

  .ledger dd {
    font-size: 18px
  }

  .walk {
    padding: 10px 18px
  }

  .topics {
    grid-template-columns: 1fr 1fr
  }

  .topic {
    padding: 18px 16px
  }

  .topic .glyph {
    font-size: 24px;
    margin-bottom: 8px
  }

  .topic h3 {
    font-size: 17px
  }

  .topic p {
    font-size: 14px
  }

  .articles {
    gap: 14px
  }

  .article {
    padding: 20px
  }

  .article h3 {
    font-size: 19px
  }

  .filters {
    gap: 8px
  }

  .filters input {
    min-width: 0;
    width: 100%;
    flex: none
  }

  .chip {
    padding: 8px 13px;
    font-size: 15px
  }

  .filters select {
    width: 100%
  }

  /* Profile */
  .profile {
    padding: 28px 18px;
    gap: 24px
  }

  .keyfacts {
    grid-template-columns: 1fr 1fr 1fr;
    margin-bottom: 28px
  }

  .keyfacts div {
    padding: 12px 10px;
    border-bottom: 1px solid var(--rule)
  }

  .keyfacts div:nth-child(3n) {
    border-right: 0
  }

  .keyfacts b {
    font-size: 19px
  }

  .keyfacts small {
    font-size: 12px
  }

  .profile article h2 {
    font-size: 24px
  }

  .profile article section {
    padding-bottom: 28px;
    margin-bottom: 28px
  }

  .profile th,
  .profile td {
    display: block;
    width: auto;
    padding: 0
  }

  .profile th {
    padding-top: 12px;
    font-size: 13px
  }

  .profile td {
    padding: 2px 0 12px;
    font-size: 18px;
    border-bottom: 1px solid var(--rule)
  }

  .profile tr:last-child td {
    border-bottom: 0
  }

  .profile tr {
    display: block
  }

  .profile th {
    border-bottom: 0
  }

  .toc a {
    font-size: 14px;
    padding: 7px 12px
  }

  .prevnext {
    flex-direction: column;
    gap: 14px
  }

  .prevnext span {
    text-align: left !important
  }

  /* Compare table becomes stacked cards */
  .compare {
    border: 0;
    background: transparent;
    overflow: visible
  }

  .compare table {
    min-width: 0;
    display: block
  }

  .compare thead {
    display: none
  }

  .compare tbody {
    display: grid;
    gap: 14px
  }

  .compare tbody tr {
    display: block;
    border: 1px solid var(--rule);
    border-top: 4px solid var(--ink);
    background: #fff !important;
    padding: 16px 18px
  }

  .compare tbody th {
    display: block;
    border: 0;
    padding: 0 0 10px;
    font-size: 21px
  }

  .compare td[data-label] {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--rule);
    font-size: 15px
  }

  .compare td[data-label]::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-weight: 600
  }

  .compare td:last-child {
    border-bottom: 0
  }

  .compare-sort {
    display: block
  }

  /* Guides */
  .feature .text,
  .feature .side {
    padding: 24px 20px
  }

  .feature h2 {
    font-size: 26px
  }

  .guide-group {
    margin-bottom: 36px
  }

  .guide-group h2 {
    font-size: 22px
  }

  .faq summary {
    padding: 14px 16px;
    font-size: 15px
  }

  .faq details p {
    padding: 0 16px 16px;
    font-size: 15px
  }

  .prose .lede {
    font-size: 18px
  }

  .prose h2 {
    font-size: 22px
  }

  /* Forms, strips, deadlines */
  .lead {
    padding: 20px 18px
  }

  .lead-split {
    gap: 28px
  }

  .lead-split .why h2 {
    font-size: 26px
  }

  .lead-strip {
    padding: 32px 0
  }

  .lead-strip .btn {
    width: 100%;
    text-align: center
  }

  .deadline {
    padding: 16px
  }

  .signup {
    padding: 36px 0
  }

  .signup h2 {
    font-size: 24px
  }

  .signup form {
    width: 100%
  }

  .signup input {
    min-width: 0;
    flex: 1
  }

  .states {
    columns: 1
  }

  footer {
    padding: 36px 0 24px
  }

  footer .cols {
    gap: 22px
  }

  footer .cols>div:first-child {
    grid-column: 1/-1
  }

  footer .legal {
    flex-direction: column;
    gap: 6px;
    font-size: 13px
  }
}

@media(min-width:721px) {
  .compare-sort {
    display: none
  }
}

/* Logo size, article right-nav, data form */
.brand img {
  height: 52px
}

footer .brand img {
  height: 48px
}

@media(max-width:720px) {
  .brand img {
    height: 40px
  }
}

.reading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 56px;
  align-items: start;
  padding: 56px 0
}

.reading .prose {
  max-width: none
}

.rightnav {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 20px
}

.rightnav .box {
  border: 1px solid var(--rule);
  background: #fff;
  padding: 20px
}

.rightnav h3 {
  font-size: 15px;
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin-bottom: 10px
}

.rightnav .box a {
  display: block;
  text-decoration: none;
  font-weight: 600;
  padding: 7px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 15px
}

.rightnav .box a:last-child {
  border: 0
}

.rightnav .box a:hover {
  color: var(--crimson)
}

.rightnav .box a small {
  display: block;
  color: var(--muted);
  font-weight: 400;
  font-size: 13px
}

.rightnav .toc-list a {
  border: 0;
  padding: 5px 0;
  border-left: 2px solid var(--rule);
  padding-left: 12px;
  margin-left: 2px;
  color: var(--muted)
}

.rightnav .toc-list a.on,
.rightnav .toc-list a:hover {
  border-left-color: var(--crimson);
  color: var(--ink)
}

.rightnav .cta {
  background: var(--ink);
  color: #fff;
  padding: 22px
}

.rightnav .cta h3 {
  color: #9DB6E3
}

.rightnav .cta p {
  margin: 0 0 14px;
  color: #D6E8FB;
  font-size: 15px
}

.rightnav .cta .btn {
  display: inline-block
}

.report-link {
  font-size: 14px;
  color: var(--muted);
  margin: -36px 0 40px
}

.report-link a {
  font-weight: 600
}

@media(max-width:960px) {
  .reading {
    grid-template-columns: 1fr;
    gap: 32px
  }

  .rightnav {
    position: static
  }

  .rightnav .toc-list {
    display: none
  }
}

@media(max-width:720px) {
  .reading {
    padding: 28px 0
  }
}

[hidden] {
  display: none !important
}

/* Compare list */
nav li a {
  position: relative
}

.nav-count {
  position: absolute;
  top: -9px;
  right: -17px;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  background: var(--crimson);
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  padding: 0 5px;
  pointer-events: none
}

.nav-count.is-empty {
  display: none
}

.head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap
}

.head-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap
}

.head-actions form {
  margin: 0
}

.btn.light {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border-color: rgba(255, 255, 255, .35)
}

.cmp-btn.is-in {
  background: #fff;
  color: var(--ink)
}

.cmp-tools {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px
}

.cmp-picks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
  margin-bottom: 8px
}

.cmp-picks h3 {
  grid-column: 1/-1;
  font-size: 18px;
  margin: 8px 0 4px
}

.pick {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--rule);
  background: #fff;
  padding: 12px 14px;
  margin: 0
}

.pick small {
  display: block;
  color: var(--muted);
  font-size: 13px
}

.btn.sm {
  padding: 7px 14px;
  font-size: 14px
}

.cmp-grid table {
  min-width: 0;
  table-layout: fixed
}

.cmp-grid thead th {
  vertical-align: top
}

.cmp-grid thead th a {
  color: #fff;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 19px
}

.cmp-grid thead th small {
  display: block;
  color: #C9D2E3;
  font-weight: 400;
  margin-top: 2px
}

.cmp-grid thead th:first-child {
  width: 180px
}

.cmp-grid tbody th {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted);
  font-weight: 600
}

.cmp-grid td {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink)
}

.cmp-remove {
  background: none;
  border: 0;
  color: #C9D2E3;
  font-size: 12px;
  cursor: pointer;
  padding: 6px 0 0;
  text-decoration: underline;
  font-family: inherit
}

.cmp-remove:hover {
  color: #fff
}

.card-cmp {
  margin: -1px 0 0
}

.card-cmp button {
  width: 100%;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-top: 0;
  padding: 8px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  font-size: 14px
}

.card-cmp button:hover {
  background: #E6F0FC
}

.college-item {
  display: flex;
  flex-direction: column
}

.college-item .college {
  flex: 1;
  border-bottom: 0
}

@media(max-width:720px) {
  .cmp-grid {
    overflow-x: auto;
    border: 1px solid var(--rule);
    background: #fff
  }

  .cmp-grid table {
    display: table;
    min-width: 560px;
    table-layout: auto
  }

  .cmp-grid thead {
    display: table-header-group
  }

  .cmp-grid tbody {
    display: table-row-group
  }

  .cmp-grid tbody tr {
    display: table-row;
    border: 0;
    padding: 0
  }

  .cmp-grid tbody th {
    display: table-cell;
    padding: 10px 12px;
    border-bottom: 1px solid var(--rule);
    white-space: nowrap
  }

  .cmp-grid td[data-label] {
    display: table-cell;
    padding: 10px 12px;
    font-size: 15px
  }

  .cmp-grid td[data-label]::before {
    display: none
  }

  .head-actions {
    width: 100%
  }

  .head-actions .btn {
    flex: 1;
    text-align: center
  }
}

/* Anchor offsets for the sticky header */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px
}

.profile article section,
.profile article [id],
.prose h2,
.prose h3,
.guide-group[id],
[id^="s"] {
  scroll-margin-top: 90px
}

@media(max-width:720px) {
  html {
    scroll-padding-top: 76px
  }

  .profile article section,
  .prose h2,
  .prose h3 {
    scroll-margin-top: 76px
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto
  }
}

/* Near me */
.near-tools {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 18px
}

.near-manual input,
.near-manual select {
  border-radius: 6px;
  padding: 11px 14px;
  font-weight: 400;
  color: var(--text);
}

.near-manual input {
  min-width: 140px;
  flex: none;
  width: 150px
}

.near-status {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  width: 100%
}

.near-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px
}

.near-item {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 18px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--rule);
  padding: 16px 18px
}

.near-item .dist {
  text-align: center;
  font-family: var(--serif);
  color: var(--crimson);
  border-right: 1px solid var(--rule);
  padding-right: 14px
}

.near-item .dist b {
  display: block;
  font-size: 30px;
  line-height: 1
}

.near-item .dist small {
  font-size: 12px;
  font-weight: 700
}

.near-item h3 {
  font-size: 21px
}

.near-item h3 a {
  text-decoration: none
}

.near-item h3 a:hover {
  color: var(--crimson)
}

.near-item .loc {
  color: var(--muted);
  font-size: 14px;
  margin: 2px 0 8px
}

.near-item .facts {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink)
}

.near-item .facts small {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted)
}

.near-item .acts {
  display: flex;
  flex-direction: column;
  gap: 6px
}

.near-item .acts form {
  margin: 0
}

.near-item .acts .btn {
  white-space: nowrap;
  text-align: center
}

.near-empty {
  border: 1px solid var(--rule);
  background: var(--paper-2);
  padding: 28px;
  max-width: 720px
}

.near-empty h3 {
  font-size: 20px;
  margin-bottom: 8px
}

.near-empty p {
  margin: 0;
  color: var(--muted)
}

@media(max-width:720px) {
  .near-item {
    grid-template-columns: 60px 1fr
  }

  .near-item .acts {
    grid-column: 1/-1;
    flex-direction: row;
    flex-wrap: wrap
  }

  .near-item .acts .btn {
    flex: 1
  }

  .near-manual {
    width: 100%
  }

  .near-manual input {
    width: auto;
    flex: 1;
    min-width: 0
  }
}

/* Managed header images (admin > Page headers) */
.page-head,
.hero {
  position: relative;
  overflow: hidden
}

.page-head .wrap,
.hero .wrap {
  position: relative;
  z-index: 2
}

.head-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block
}

.head-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.head-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, var(--ink) 0%, rgba(13, 59, 140, .88) 40%, rgba(13, 59, 140, .45) 75%, rgba(13, 59, 140, .25) 100%)
}

@media(max-width:720px) {
  .head-overlay {
    background: linear-gradient(180deg, rgba(13, 59, 140, .92) 0%, rgba(13, 59, 140, .7) 100%)
  }
}

.hero .head-overlay {
  background: linear-gradient(90deg, rgba(255, 255, 255, .96) 0%, rgba(255, 255, 255, .9) 38%, rgba(255, 255, 255, .55) 52%, rgba(255, 255, 255, 0) 68%);
  opacity: 1 !important
}

.hero:has(.head-img) {
  background-image: none
}

.hero:has(.head-img)::before {
  display: none
}

@media(max-width:720px) {
  .hero .head-overlay {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0) 170px, rgba(255, 255, 255, .85) 230px, #fff 250px)
  }
}

/* Reviews */
.rating-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px
}

.rating-summary b {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--ink)
}

.rating-summary .muted {
  color: var(--muted)
}

.stars i {
  font-style: normal;
  color: #D5DBE6;
  font-size: 22px;
  letter-spacing: 1px
}

.stars i.on {
  color: #F5B301
}

.stars.small i {
  font-size: 16px
}

.reviews {
  display: grid;
  gap: 14px;
  margin-bottom: 28px
}

.review {
  border: 1px solid var(--rule);
  background: #fff;
  padding: 18px 20px
}

.review-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px
}

.review-head b {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink)
}

.review p {
  margin: 0 0 10px;
  white-space: pre-line
}

.review-meta {
  color: var(--muted);
  font-size: 13px
}

.star-input {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 2px
}

.star-input input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px
}

.star-input label {
  font-size: 30px;
  color: #D5DBE6;
  cursor: pointer;
  line-height: 1;
  padding: 0 2px
}

.star-input input:checked~label,
.star-input label:hover,
.star-input label:hover~label {
  color: #F5B301
}

.star-input input:focus-visible+label {
  outline: 2px solid var(--gold);
  outline-offset: 2px
}

.review-form {
  margin-top: 8px
}

.cf-turnstile {
  margin: 6px 0 14px
}

/* Lightbox (native <dialog>) */
.lightbox {
  border: 0;
  padding: 0;
  position: relative;
  background: transparent;
  max-width: min(680px, calc(100vw - 32px));
  width: 100%;
  max-height: calc(100vh - 32px);
  overflow: visible
}

.lightbox::backdrop {
  background: rgba(13, 59, 140, .55);
  backdrop-filter: blur(2px)
}

.lightbox .lb-body {
  max-height: calc(100vh - 32px);
  overflow: auto;
  border-radius: 10px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .35)
}

.lightbox .lb-form {
  margin: 0;
  border-radius: 10px;
  border-top-width: 6px
}

.lb-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25)
}

.lb-close:hover {
  background: var(--paper-2)
}

.lightbox[open] {
  animation: lbin .18s ease-out
}

@keyframes lbin {
  from {
    opacity: 0;
    transform: translateY(12px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

@media(max-width:720px) {
  .lightbox {
    max-width: 100vw;
    max-height: 100vh;
    margin: 0
  }

  .lightbox .lb-body {
    max-height: 100vh;
    border-radius: 0
  }

  .lightbox .lb-form {
    border-radius: 0
  }

  .lb-close {
    top: 8px;
    right: 8px
  }
}

@media(prefers-reduced-motion:reduce) {
  .lightbox[open] {
    animation: none
  }
}

/* Layout-stability: reserve space for things that appear or change after load */

.cmp-btn {
  min-width: 230px;
  text-align: center
}

.card-cmp button {
  min-height: 38px
}

.cf-turnstile {
  min-height: 65px
}

#cmp-grid[hidden],
#cmp-suggest[hidden],
#cmp-matches[hidden] {
  display: none
}

#cmp-shell {
  min-height: 320px
}

#near-list[hidden] {
  display: none
}

#near-shell {
  min-height: 320px
}

.brand img {
  aspect-ratio: 1100/280
}

footer .brand img {
  aspect-ratio: 1100/280
}

.head-img img {
  aspect-ratio: auto
}

.hero .quick a {
  min-height: 52px
}

.college .type {
  min-height: 22px
}

.skeleton {
  display: grid;
  gap: 12px;
  padding: 8px 0
}

.skeleton i {
  display: block;
  height: 64px;
  border: 1px solid var(--rule);
  background: linear-gradient(90deg, #fff 25%, var(--paper-2) 50%, #fff 75%);
  background-size: 200% 100%;
  animation: sk 1.2s linear infinite
}

.skeleton[hidden] {
  display: none
}

@keyframes sk {
  from {
    background-position: 200% 0
  }

  to {
    background-position: -200% 0
  }
}

@media(prefers-reduced-motion:reduce) {
  .skeleton i {
    animation: none
  }
}

#cmp-shell,
#near-shell {
  min-height: 60vh
}

#locate {
  min-width: 170px
}

.rightnav .toc-list {
  min-height: 120px
}

.page-head p {
  min-height: 1.6em
}

.lightbox-sm {
  max-width: min(460px, calc(100vw - 32px))
}

@media(max-width:820px) {
  .nav-count {
    position: static;
    display: inline-block;
    margin-left: 8px;
    vertical-align: middle
  }

  .nav-count.is-empty {
    display: none
  }
}

a.chip {
  text-decoration: none;
  display: inline-block
}

/* IPEDS section */
.ipeds-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px
}

.ipeds-block {
  border: 1px solid var(--rule);
  background: #fff;
  padding: 16px 18px
}

.ipeds-block h3 {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 10px
}

.ipeds-block table {
  margin: 0
}

.ipeds-block th {
  width: 44%;
  font-size: 14px;
  padding: 7px 10px 7px 0
}

.ipeds-block td {
  font-size: 15px;
  padding: 7px 0
}

.ipeds-bars {
  display: grid;
  gap: 6px;
  font-family: var(--sans)
}

.ipeds-bars div {
  display: grid;
  grid-template-columns: minmax(110px, 1.6fr) 2fr auto;
  align-items: center;
  gap: 8px;
  font-size: 13px
}

.ipeds-bars i {
  display: block;
  height: 9px;
  background: var(--crimson);
  border-radius: 99px;
  min-width: 2px
}

.ipeds-bars b {
  color: var(--ink);
  font-size: 13px;
  min-width: 34px;
  text-align: right
}

@media(max-width:960px) {
  .ipeds-grid {
    grid-template-columns: 1fr
  }
}

.deadline[hidden],
tr[hidden] {
  display: none
}

.cmp-btn,
.btn {
  white-space: nowrap
}

.brand-text {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 26px;
  color: var(--ink);
  letter-spacing: -.3px
}

footer .brand-text {
  color: #fff
}
.deadline {
  flex-wrap: wrap;
}

.deadline > div:nth-child(2) {
  flex: 1;
  min-width: 0;
}

.deadline .apply {
  width: 100%;
  margin-top: auto;
  padding-top: 14px;
  padding-left: 74px;   /* date column (56px) + gap (18px): lines the button up with the text */
}

.deadline .apply .btn {
  white-space: nowrap;
}

@media (max-width: 720px) {
  .filters .chips {
    display: flex;
    gap: 8px;
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 -18px;
    padding: 0 18px;
    width: calc(100% + 36px);
  }

  .filters .chips::-webkit-scrollbar {
    display: none;
  }

  .filters .chip {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .filters input,
  .filters select {
    width: 100%;
    min-width: 0;
    flex: 1 1 100%;
  }
}

/* Compare tools on phones: the search box + Find share one row; Clear list drops to its own full-width row */
@media (max-width: 720px) {
  .cmp-tools {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .cmp-tools .filters {
    margin: 0;
    flex-wrap: nowrap;
  }

  .cmp-tools .filters input {
    min-width: 0;
    flex: 1 1 auto;
  }

  .cmp-tools form[data-compare-clear] .btn,
  .cmp-tools #cmp-clear .btn {
    width: 100%;
  }
}

/* Lightbox close button sits inside the panel; leave room for it beside the heading */
.lightbox .lb-form > h3:first-child,
.lightbox .lb-form > h3:first-of-type {
  padding-right: 44px;
}
