@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@500;600;700&family=Nunito+Sans:wght@400;500;600;700;800;900&display=swap');

:root {
  --ink:#172e5e;
  --muted:#7b8ca9;
  --pink:#fa4487;
  --blue:#2876ff;
  --line:#e3edf7;
  --surface:#fff;
  --page:#f1f7fc;
}

html {
  scroll-behavior:smooth;
  scroll-padding-top:80px;
}

body {
  padding-top:62px;
  background:var(--page);
  color:var(--ink);
  font-family:'Nunito Sans',sans-serif;
  font-size:14px;
}

a {
  color:var(--blue);
  text-decoration:none;
}

a:hover {
  color:#185bd0;
}

button,input {
  font:inherit;
}

button,a,input {
  -webkit-tap-highlight-color:transparent;
}

:focus-visible {
  outline:3px solid var(--blue);
  outline-offset:4px;
}

.site-header {
  height:62px;
  padding:0!important;
  margin:0!important;
  background:rgba(255,255,255,.94)!important;
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(14px);
}

.site-nav {
  max-width:1240px;
  height:100%;
  margin:auto;
  display:flex;
  align-items:center;
  gap:22px;
  padding:0 20px;
}

.site-brand {
  display:flex;
  align-items:center;
  gap:9px;
  color:var(--ink);
  font-size:25px;
  font-weight:800;
  letter-spacing:-.9px;
  white-space:nowrap;
  line-height:1;
}

.site-brand:hover {
  color:var(--ink);
}

.site-brand>.bi {
  font-size:40px;
  transform:rotate(-8deg);
}

.brand-pink {
  color:var(--pink);
}

.site-brand small {
  font-size:.8em;
}

.desktop-nav {
  display:flex;
  align-items:center;
  gap:23px;
  margin:auto;
}

.desktop-nav a {
  display:flex;
  align-items:center;
  gap:9px;
  color:var(--ink);
  white-space:nowrap;
  font-weight:700;
  font-size:13px;
}

.desktop-nav .bi {
  color:#516688;
  font-size:17px;
}

.header-search-link {
  font-size:20px;
  color:var(--ink);
  padding:4px 12px;
  border-right:1px solid var(--line);
}

.header-account {
  white-space:nowrap;
}

.header-account>div {
  display:flex;
  align-items:center;
  margin:0!important;
}

.site-header .btn {
  font-size:12px;
  border-radius:9px;
  padding:10px 15px;
  font-weight:700;
}

.btn-primary {
  background:var(--pink);
  border-color:var(--pink);
}

.btn-primary:hover,.btn-primary:focus {
  background:#e43174;
  border-color:#e43174;
}

.btn-outline-primary {
  color:var(--blue);
  border-color:var(--blue);
}

.site-header .theme-toggle {
  padding:7px;
  border:0;
  font-size:14px;
  margin-left:5px!important;
  color:var(--muted);
}

.mobile-menu-button {
  display:none;
}

.page-wrapper:not(.home-page) {
  padding-top:28px;
}

.home-page>.row {
  margin:0;
}

.home-page>.row>.col-md-12 {
  padding:0;
}

.home-page {
  min-height:0;
}

.spring-hero {
  overflow:hidden;
  height:335px;
  position:relative;
  background:#bedcfa url('/images/hero-spring.jpg') center 48%/cover no-repeat;
  display:flex;
  align-items:center;
  justify-content:center;
  isolation:isolate;
}

.hero-content {
  text-align:center;
  width:min(660px,49%);
  padding-top:5px;
  position:relative;
  z-index:1;
}

.hero-content h1 {
  font-family:'Caveat',cursive;
  font-weight:700;
  font-size:clamp(56px,5.6vw,90px);
  letter-spacing:-3px;
  line-height:1.1;
  white-space:nowrap;
  color:#102955;
  margin:0 0 17px;
  position:relative;
  text-shadow:0 2px 10px #ffffff40;
}

.hero-content h1:after {
  content:'';
  position:absolute;
  height:7px;
  background:var(--pink);
  border-radius:70%;
  width:78%;
  bottom:-3px;
  left:12%;
  transform:rotate(-2deg);
}

.hero-content>p {
  font-size:18px;
  margin:0 0 17px;
  color:#172e5e;
  text-shadow:0 1px 8px #fff,0 1px 4px #fff;
}

.hero-search {
  height:66px;
  background:#fff;
  display:flex;
  align-items:center;
  border-radius:50px;
  padding:10px 13px 10px 26px;
  gap:20px;
  box-shadow:0 5px 22px #18315c15;
}

.hero-search>.bi {
  font-size:26px;
  color:#172e5e;
}

.hero-search input {
  min-width:0;
  flex:1;
  border:0;
  background:transparent;
  color:#172e5e;
  font-size:19px;
  outline-offset:1px;
  width:100%;
}

.hero-search input::placeholder {
  color:#7e8ca7;
}

.hero-search button {
  border:0;
  background:var(--pink);
  color:white;
  border-radius:30px;
  height:44px;
  padding:0 32px;
  font-weight:800;
}

.hero-search button:hover {
  background:#e53175;
}

.hero-shortcuts {
  display:flex;
  gap:10px;
  justify-content:center;
  margin-top:15px;
}

.hero-shortcuts a {
  background:#fffffff0;
  border:1px solid #e4edf9;
  border-radius:30px;
  padding:8px 19px;
  font-size:12px;
  box-shadow:0 3px 8px #17356115;
  color:#172e5e;
  font-weight:700;
  white-space:nowrap;
}

.hero-shortcuts a:hover {
  background:white;
  transform:translateY(-1px);
}

.hero-shortcuts .bi {
  margin-right:7px;
}

.hero-note {
  position:absolute;
  font-family:'Caveat',cursive;
  font-weight:700;
  font-size:25px;
  line-height:1.15;
  color:#172e5e;
  text-align:center;
}

.hero-note-left {
  top:35px;
  left:1.7%;
  transform:rotate(-13deg);
  text-shadow:0 0 8px white;
}

.hero-note-left span {
  display:block;
  color:var(--pink);
  font-size:40px;
  line-height:1;
}

.hero-note-right {
  right:2.7%;
  top:36px;
  background:#ffffffb8;
  padding:14px 18px;
  transform:rotate(-9deg);
  font-size:24px;
}

.hero-note-right span {
  display:block;
  text-align:right;
  font-size:27px;
}

.home-dashboard {
  max-width:1640px;
  padding:14px 26px 0;
  margin:auto;
}

.dashboard-grid {
  display:grid;
  grid-template-columns:1.06fr 1fr 1fr;
  gap:13px;
  align-items:stretch;
}

.dashboard-panel {
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:9px;
  padding:0 12px;
  min-width:0;
  box-shadow:0 2px 6px #2b5d9a02;
}

.panel-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-height:44px;
  border-bottom:1px solid var(--line);
}

.panel-heading h2 {
  font-size:16px;
  font-weight:800;
  margin:0;
  display:flex;
  align-items:center;
  gap:12px;
  line-height:1.25;
}

.panel-heading h2>.bi {
  font-size:21px;
  color:#4c7bff;
}

.top-teachers .panel-heading h2>.bi {
  color:#ffab20;
}

.panel-heading>a {
  font-size:12px;
  white-space:nowrap;
  font-weight:700;
}

.panel-heading>a .bi {
  margin-left:8px;
}

.ranked-row {
  display:flex;
  align-items:center;
  gap:12px;
  min-height:60px;
  border-bottom:1px solid var(--line);
}

.ranked-row:last-child,.latest-row:last-child,.review-row:last-child {
  border-bottom:0;
}

.rank {
  position:relative;
  flex:0 0 30px;
  height:30px;
  border-radius:12px;
  background:#f0f5fa;
  display:grid;
  place-items:center;
  font-weight:800;
  font-size:14px;
}

.rank>.bi {
  position:absolute;
  font-size:34px;
  color:#ffc15b;
}

.rank>span {
  z-index:1;
}

.rank-1,.rank-2,.rank-3 {
  background:none;
}

.rank-2>.bi {
  color:#bacada;
}

.rank-3>.bi {
  color:#eba17f;
}

.ranked-profile {
  min-width:0;
  flex:1;
  display:flex;
  align-items:center;
  gap:12px;
  color:var(--ink);
}

.person-avatar {
  width:45px;
  height:45px;
  flex-shrink:0;
  object-fit:cover;
  border-radius:50%;
  background:#eef2f7;
}

.row-copy {
  min-width:0;
  flex:1;
}

.row-copy strong {
  display:block;
  font-size:13px;
  font-weight:800;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.row-copy small {
  display:block;
  color:var(--muted);
  font-size:12px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  margin-top:3px;
}

.rating-score {
  display:inline-flex;
  align-items:center;
  gap:5px;
  white-space:nowrap;
  font-size:13px;
}

.rating-score .bi {
  color:#ffa51b;
}

.rating-score>span {
  color:var(--muted);
  font-size:12px;
}

.favorite-button {
  border:0;
  background:none;
  color:#8799b6;
  font-size:18px;
  display:grid;
  place-items:center;
  flex-shrink:0;
  width:30px;
  height:36px;
  padding:0;
}

.favorite-button:hover,.favorite-button[aria-pressed=true] {
  color:var(--pink);
}

.favorite-button:disabled {
  opacity:.5;
}

.unrated {
  font-size:12px;
  color:var(--muted);
}

.review-row {
  display:flex;
  align-items:center;
  gap:12px;
  min-height:60px;
  border-bottom:1px solid var(--line);
  color:var(--ink);
}

.review-row .person-avatar {
  width:42px;
  height:42px;
}

.review-row .row-copy strong {
  display:inline;
  font-size:12px;
}

.review-row .row-copy>span {
  font-size:12px;
}

.muted {
  color:var(--muted);
}

.review-rating {
  flex-shrink:0;
}

.stars {
  display:flex;
  gap:2px;
  color:#ffab22;
  font-size:13px;
}

.star-empty {
  color:#d1d9e4;
}

.review-rating time {
  display:block;
  margin-top:4px;
  font-size:10px;
  color:var(--muted);
}

.review-row>.bi,.latest-row>.bi {
  color:#8598b5;
  font-size:12px;
}

.latest-panels {
  display:grid;
  grid-template-rows:1.2fr 1fr;
  gap:12px;
  min-width:0;
}

.latest-row {
  display:flex;
  align-items:center;
  gap:10px;
  min-height:47px;
  border-bottom:1px solid var(--line);
  color:var(--ink);
}

.latest-row .person-avatar {
  width:37px;
  height:37px;
}

.latest-row .row-copy strong {
  font-size:12px;
}

.latest-row .row-copy small {
  font-size:11px;
}

.latest-row time {
  font-size:10px;
  color:var(--muted);
  white-space:nowrap;
}

.latest-row .school-photo {
  width:47px;
  height:30px;
  object-fit:cover;
  border-radius:5px;
}

.latest-schools .latest-row {
  min-height:37px;
}

.latest-panels .panel-heading {
  min-height:38px;
}

.latest-panels .panel-heading h2 {
  font-size:15px;
}

.popular-schools {
  position:relative;
  margin-top:13px;
  padding:0 13px 11px;
}

.popular-schools .panel-heading {
  border:0;
  min-height:49px;
}

.popular-schools .panel-heading h2 {
  font-size:18px;
}

.popular-schools .panel-heading h2>.bi {
  color:#e3497e;
}

.school-carousel {
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:calc((100% - 60px)/6);
  gap:12px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  scrollbar-width:none;
}

.school-carousel::-webkit-scrollbar {
  display:none;
}

.school-tile {
  min-width:0;
  border:1px solid var(--line);
  border-radius:9px;
  overflow:hidden;
  scroll-snap-align:start;
  box-shadow:0 3px 7px #2b5d9a05;
}

.school-tile>a {
  display:block;
  background:#e5eff9;
}

.school-tile .school-photo {
  width:100%;
  height:99px;
  object-fit:cover;
}

.school-tile-copy {
  padding:8px 11px;
  display:grid;
  grid-template-columns:minmax(0,1fr) 24px;
  gap:3px 4px;
  align-items:start;
}

.school-tile-copy>a {
  color:var(--ink);
  min-width:0;
}

.school-tile-copy strong {
  display:block;
  font-size:12px;
  font-weight:800;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.school-tile-copy .favorite-button {
  width:24px;
  height:23px;
  font-size:16px;
  grid-column:2;
  grid-row:1/3;
}

.school-tile-copy .rating-score,.school-tile-copy .unrated {
  grid-column:1;
  font-size:12px;
}

.carousel-next {
  position:absolute;
  right:-9px;
  top:51%;
  width:39px;
  height:39px;
  background:var(--surface);
  color:var(--ink);
  border:1px solid var(--line);
  border-radius:50%;
  box-shadow:0 2px 8px #18315c15;
  display:grid;
  place-items:center;
  font-size:20px;
}

.carousel-next:disabled {
  display:none;
}

.dashboard-empty {
  min-height:130px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:18px;
  color:var(--muted);
  text-align:center;
}

.dashboard-empty>.bi {
  font-size:28px;
  color:#9ab4e2;
}

.dashboard-empty p {
  margin:9px 0;
  font-size:13px;
}

.dashboard-empty a {
  font-size:12px;
  font-weight:700;
}

.recent-ratings .dashboard-empty {
  min-height:290px;
}

.latest-panels .dashboard-empty {
  min-height:109px;
  padding:10px;
}

.latest-panels .dashboard-empty>.bi {
  display:none;
}

.favorite-status {
  margin:0;
}

.favorite-status:not(:empty) {
  position:fixed;
  bottom:20px;
  left:50%;
  transform:translateX(-50%);
  padding:14px 22px;
  background:var(--ink);
  color:var(--surface);
  border-radius:12px;
  box-shadow:0 5px 20px #172e5e30;
  z-index:1100;
  max-width:90vw;
}

footer {
  font-size:12px;
  color:var(--muted);
  border-color:var(--line)!important;
}

footer .link-dark {
  color:var(--muted)!important;
}

.card,.list-group-item {
  border-color:var(--line);
  border-radius:9px;
}

.form-control,.form-select {
  border-color:#dbe5f0;
}

.home-page a:hover strong {
  color:var(--blue);
}

:root[data-theme=dark] {
  --ink:#e0e9ff;
  --muted:#9daec9;
  --line:#2c3d59;
  --surface:#19263c;
  --page:#111d30;
  --blue:#85b3ff;
}

:root[data-theme=dark] body {
  background:var(--page);
  color:var(--ink);
}

:root[data-theme=dark] .site-header {
  background:#172339f5!important;
  border-color:var(--line)!important;
}

:root[data-theme=dark] .desktop-nav a {
  color:var(--ink);
}

:root[data-theme=dark] .desktop-nav .bi {
  color:var(--muted);
}

:root[data-theme=dark] .rank {
  background:#293b55;
}

:root[data-theme=dark] .spring-hero {
  box-shadow:inset 0 0 0 1000px #101c3020;
}

@media(min-width:1600px) {
  .spring-hero {
    height:365px;
  }
  .ranked-row,.review-row {
    min-height:66px;
  }
  .school-tile .school-photo {
    height:112px;
  }
}

@media(max-width:1199px) {
  .site-nav {
    gap:14px;
  }
  .site-brand {
    font-size:21px;
  }
  .site-brand>.bi {
    font-size:33px;
  }
  .desktop-nav {
    gap:14px;
  }
  .desktop-nav a {
    font-size:12px;
    gap:6px;
  }
  .site-header .btn {
    padding:9px 11px;
  }
  .header-search-link {
    padding:4px 8px;
  }
  .hero-note {
    font-size:20px;
  }
  .hero-content {
    width:55%;
  }
  .hero-content h1 {
    font-size:69px;
  }
  .home-dashboard {
    padding:14px 16px 0;
  }
  .dashboard-grid {
    grid-template-columns:1fr 1fr;
  }
  .latest-panels {
    grid-column:1/-1;
    grid-template-columns:1fr 1fr;
    grid-template-rows:auto;
  }
  .school-carousel {
    grid-auto-columns:calc((100% - 36px)/4);
  }
  .latest-panels .latest-row {
    min-height:48px;
  }
}

@media(max-width:959px) {
  .desktop-nav {
    gap:15px;
  }
  .desktop-nav a .bi {
    display:none;
  }
  .desktop-nav a {
    font-size:11px;
  }
  .site-nav {
    gap:12px;
    padding:0 15px;
  }
  .site-brand {
    font-size:19px;
  }
  .site-brand>.bi {
    font-size:29px;
  }
  .header-account .theme-toggle {
    display:none;
  }
  .header-search-link {
    display:none;
  }
  .hero-content>p {
    font-size:16px;
  }
  .hero-content h1 {
    font-size:58px;
  }
  .hero-note-left {
    display:none;
  }
  .hero-note-right {
    right:1%;
    font-size:20px;
  }
  .hero-search {
    gap:12px;
    padding-left:20px;
  }
  .hero-search input {
    font-size:16px;
  }
  .hero-search button {
    padding:0 23px;
  }
  .panel-heading h2 {
    font-size:14px;
  }
  .panel-heading>a {
    font-size:11px;
  }
  .panel-heading h2 {
    gap:8px;
  }
  .ranked-row {
    gap:8px;
  }
  .rating-score {
    font-size:12px;
  }
  .rank {
    flex-basis:24px;
  }
  .person-avatar {
    width:38px;
    height:38px;
  }
  .ranked-profile {
    gap:8px;
  }
  .row-copy strong {
    font-size:12px;
  }
}

@media(max-width:767px) {
  body {
    padding-top:0;
  }
  .site-header {
    height:auto;
    min-height:60px;
    padding:0!important;
  }
  .site-nav {
    height:60px;
    justify-content:space-between;
  }
  .site-brand {
    font-size:22px;
  }
  .site-brand>.bi {
    font-size:34px;
  }
  .desktop-nav,.header-account {
    display:none;
  }
  .header-search-link {
    display:block;
    border:0;
    margin-left:auto;
  }
  .mobile-menu-button {
    display:block;
    border:1px solid var(--line);
    border-radius:8px;
    color:var(--ink);
    background:var(--surface);
    font-size:23px;
    line-height:1;
    padding:6px;
  }
  .site-header #mobile-nav-menu {
    padding:8px 20px 16px;
    border-top:1px solid var(--line);
    background:var(--surface);
  }
  #mobile-nav-menu nav {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
    padding:8px 0 18px;
  }
  #mobile-nav-menu nav a {
    color:var(--ink);
    font-weight:700;
  }
  #mobile-nav-menu nav .bi {
    margin-right:10px;
  }
  .mobile-account>div {
    margin:0!important;
  }
  .spring-hero {
    height:365px;
    background-position:38% center;
    align-items:flex-end;
    padding:0 16px 24px;
  }
  .spring-hero:before {
    content:'';
    position:absolute;
    inset:0;
    background:linear-gradient(0deg,#e9f3ffed 0%,#e9f3ff99 45%,transparent 85%);
    z-index:-1;
  }
  .hero-note {
    display:none;
  }
  .hero-content {
    width:100%;
    max-width:530px;
    padding:0;
  }
  .hero-content h1 {
    font-size:64px;
    margin-bottom:14px;
    letter-spacing:-2px;
  }
  .hero-content>p {
    font-size:15px;
    margin-bottom:18px;
  }
  .hero-search {
    height:60px;
    padding:8px 9px 8px 20px;
    gap:12px;
  }
  .hero-search>.bi {
    font-size:21px;
  }
  .hero-search input {
    font-size:15px;
  }
  .hero-search button {
    height:42px;
    padding:0 23px;
  }
  .hero-shortcuts {
    gap:7px;
    margin-top:13px;
  }
  .hero-shortcuts a {
    padding:8px 14px;
    font-size:11px;
  }
  .hero-shortcuts .bi {
    margin-right:5px;
  }
  .home-dashboard {
    padding:12px;
  }
  .dashboard-grid {
    grid-template-columns:1fr;
    gap:12px;
  }
  .latest-panels {
    grid-column:auto;
    grid-template-columns:1fr;
    gap:12px;
  }
  .panel-heading {
    min-height:48px;
  }
  .panel-heading h2 {
    font-size:15px;
  }
  .panel-heading>a {
    font-size:11px;
  }
  .ranked-row,.review-row {
    min-height:65px;
  }
  .ranked-row {
    gap:10px;
  }
  .rank {
    flex-basis:28px;
  }
  .ranked-profile {
    gap:11px;
  }
  .person-avatar {
    width:43px;
    height:43px;
  }
  .row-copy strong {
    font-size:13px;
  }
  .school-carousel {
    grid-auto-columns:calc((100% - 12px)/2);
  }
  .school-tile .school-photo {
    height:110px;
  }
  .popular-schools .panel-heading h2 {
    font-size:16px;
  }
  .popular-schools .panel-heading>a {
    font-size:10px;
  }
  .popular-schools .panel-heading>a .bi {
    margin-left:3px;
  }
  .carousel-next {
    right:-5px;
  }
  .recent-ratings .dashboard-empty {
    min-height:170px;
  }
  footer {
    margin-top:15px!important;
  }
  footer ul {
    justify-content:flex-start!important;
  }
}

@media(max-width:380px) {
  .site-brand {
    font-size:19px;
  }
  .hero-content h1 {
    font-size:54px;
  }
  .hero-content>p {
    font-size:13px;
  }
  .hero-search {
    gap:8px;
    padding-left:14px;
  }
  .hero-search input {
    font-size:13px;
  }
  .hero-search button {
    padding:0 17px;
  }
  .hero-shortcuts a {
    padding:8px 10px;
    font-size:10px;
  }
  .ranked-row {
    gap:6px;
  }
  .rating-score>span {
    display:none;
  }
  .review-row {
    gap:8px;
  }
  .review-row .person-avatar {
    width:35px;
    height:35px;
  }
  .panel-heading h2 {
    font-size:13px;
  }
  .panel-heading>a {
    font-size:10px;
  }
  .latest-row time {
    font-size:9px;
  }
}

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

/* Keep the existing palette overrides from fading the header sign-in action. */
.site-header .btn-outline-primary {
  color:var(--blue);
  border-color:var(--blue);
}

:root[data-theme=dark] .rank-1,:root[data-theme=dark] .rank-2,:root[data-theme=dark] .rank-3 {
  background:none;
  color:#172e5e;
}

