.school-page {
  padding-top:26px;
}
.breadcrumbs {
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:24px;
  font-size:14px;
  color:var(--muted);
}
.breadcrumbs .demo-note {
  margin-left:auto;
}
.branches {
  padding:22px 0 18px;
}
.branches .section-heading {
  margin-bottom:4px;
}
.branches h2 {
  display:flex;
  align-items:center;
  font-size:25px;
  gap:12px;
  letter-spacing:-.035em;
}
.branches h2>.icon {
  width:28px;
  height:31px;
  margin:0;
}
.branches h2>.tag {
  font-size:17px;
  color:var(--blue);
  padding:4px 11px;
  margin-left:3px;
}
.branches .section-heading>.button {
  font-size:14px;
  min-height:42px;
  padding:10px 16px;
}
.branch {
  display:grid;
  grid-template-columns:48px minmax(210px,1.5fr) minmax(200px,1fr) auto;
  column-gap:28px;
  align-items:center;
  padding:20px 0;
  border-bottom:1px solid var(--line);
}
.branch:last-child {
  border-bottom:0;
}
.branch-number {
  display:flex;
  align-items:center;
  justify-content:center;
  width:48px;
  height:48px;
  background:var(--soft);
  color:var(--blue);
  font-size:20px;
  font-weight:600;
  border-radius:8px;
}
.branch-address h3 {
  font-size:17px;
  letter-spacing:-.02em;
  display:inline;
}
.branch-address .tag {
  font-size:11px;
  margin-left:10px;
  padding:5px 12px;
  color:var(--blue);
  vertical-align:middle;
}
.branch-address p {
  font-size:14px;
  color:var(--muted);
  margin-top:5px;
  line-height:1.5;
}
.phone-number {
  font-size:15px;
  padding:0;
  min-height:28px;
  white-space:nowrap;
  font-weight:600;
}
.phone-number .icon {
  display:none;
}
.branch-contact p {
  color:var(--muted);
  font-size:14px;
  line-height:1.5;
  margin-top:2px;
}
.branch-actions {
  display:flex;
  gap:16px;
}
.branch-actions .button {
  font-size:14px;
  min-height:44px;
  padding:10px 14px;
}
.branch-actions>.button:last-child {
  margin-left:auto;
}
.branch-actions .icon {
  width:20px;
  height:22px;
}
.branches>.demo-note {
  margin-top:8px;
}
.reviews {
  margin-top:18px;
  padding:18px 22px 12px;
}
.reviews .section-heading {
  margin-bottom:14px;
  align-items:center;
}
.reviews h2 {
  font-size:25px;
  display:flex;
  gap:12px;
  align-items:center;
}
.reviews h2>.icon {
  width:29px;
  height:30px;
  margin:0;
}
.reviews .section-heading>.text-button {
  font-size:14px;
}
.review-list {
  border:1px solid var(--line);
  border-radius:8px;
  overflow:hidden;
}
.review {
  display:grid;
  grid-template-columns:230px minmax(200px,1fr) 178px 178px;
  gap:20px;
  align-items:center;
  padding:14px;
}
.review+.review {
  border-top:1px solid var(--line);
}
.review-identity {
  display:flex;
  align-items:flex-start;
  gap:18px;
  align-self:start;
}
.avatar {
  width:70px;
  height:70px;
  border-radius:50%;
  object-fit:cover;
  flex-shrink:0;
}
.review h3 {
  font-size:16px;
  letter-spacing:-.025em;
  line-height:1.3;
  white-space:nowrap;
}
.review time {
  display:block;
  color:var(--muted);
  font-size:13px;
  margin-top:4px;
}
.stars {
  display:flex;
  gap:4px;
  margin-top:5px;
}
.stars>.icon {
  width:18px;
  height:18px;
}
.dim-star {
  opacity:.22;
}
.review-text {
  font-size:13px;
  color:#465877;
  line-height:1.55;
  align-self:end;
  margin-bottom:4px;
}
.review-scores {
  margin:0;
  padding:12px 15px;
  background:#f4f8f7;
  border-radius:7px;
  font-size:12px;
  color:var(--muted);
  min-width:0;
}
.review-scores>div {
  display:flex;
  justify-content:space-between;
  gap:10px;
  margin:2px 0;
}
.review-scores dd {
  color:var(--text);
  margin:0;
  font-weight:600;
}
.review-photo-button {
  border:0;
  background:none;
  padding:0;
  width:100%;
  border-radius:7px;
  overflow:hidden;
  cursor:zoom-in;
}
.review-photo-button picture {
  display:block;
}
.review-photo-button img {
  width:100%;
  height:auto;
  aspect-ratio:178/108;
  object-fit:cover;
}
.more-reviews {
  display:flex;
  margin:12px auto 0;
  min-height:40px;
  font-size:14px;
  padding:8px 28px;
}
.more-reviews>.icon {
  width:16px;
  height:14px;
}
.mobile-review-note {
  display:none;
}
.card-expanded>.reviews {
  border:0;
  border-top:1px solid var(--line);
  border-radius:0;
  padding-inline:0;
  margin-top:0;
  padding-bottom:20px;
}
@media(max-width:1250px) and (min-width:1024px) {
  .branch {
    column-gap:24px;
    grid-template-columns:48px minmax(220px,1.4fr) minmax(190px,1fr) auto;
  }
  .branch-actions {
    gap:12px;
  }
  .branch-actions .button {
    padding:10px 12px;
    font-size:13px;
  }
  .review {
    grid-template-columns:220px minmax(160px,1fr) 165px 165px;
    gap:14px;
  }
  .review-identity {
    gap:14px;
  }
  .review h3 {
    font-size:15px;
  }
  .review-scores {
    padding:10px;
  }
  .branch-address h3 {
    font-size:16px;
  }
  .branch-address .tag {
    padding:4px 8px;
    margin-left:7px;
  }
}
@media(max-width:1023px) {
  .branch {
    grid-template-columns:48px 1fr 1fr;
    gap:16px 24px;
  }
  .branch-address {
    grid-column:2;
  }
  .branch-contact {
    grid-column:3;
  }
  .branch-actions {
    grid-column:2/-1;
    justify-content:flex-end;
  }
  .branch-actions>.button:last-child {
    margin-left:0;
  }
  .review {
    grid-template-columns:1fr 170px;
    gap:18px;
    padding:20px;
  }
  .review-identity {
    grid-column:1;
    grid-row:1;
  }
  .review-text {
    grid-column:1;
    grid-row:2;
    margin:0;
    font-size:15px;
    align-self:start;
  }
  .review-scores {
    grid-column:2;
    grid-row:1;
  }
  .review-photo-button {
    grid-column:2;
    grid-row:2;
  }
  .review h3 {
    font-size:17px;
  }
  .review time {
    font-size:14px;
  }
  .avatar {
    width:70px;
    height:70px;
  }
  .stars>.icon {
    width:19px;
    height:19px;
  }
  .reviews {
    padding:20px;
  }
  .breadcrumbs .demo-note {
    font-size:11px;
  }
  .card-expanded>.reviews {
    padding-inline:0;
  }
}
@media(max-width:599px) {
  .school-page {
    padding-top:24px;
  }
  .breadcrumbs {
    font-size:12px;
    gap:8px;
    flex-wrap:wrap;
    margin-bottom:18px;
  }
  .breadcrumbs .demo-note {
    font-size:10px;
    width:100%;
    margin-left:0;
  }
  .detail-card {
    background:transparent;
    border:0;
    padding:0;
  }
  .detail-card>.school-summary {
    background:#fff;
    border:1px solid var(--line);
    border-bottom:0;
    border-radius:13px 13px 0 0;
    padding:45px 15px 0;
    grid-template-columns:100px minmax(0,1fr);
    gap:0 12px;
  }
  .detail-card .school-logo {
    grid-row:1/3;
  }
  .detail-card .logo-frame {
    width:100px;
    height:106px;
  }
  .detail-card .rank {
    top:16px;
    left:15px;
  }
  .detail-card .favorite-button {
    grid-area:auto;
    top:17px;
    right:15px;
  }
  .detail-card .school-name {
    font-size:25px;
    margin-bottom:17px;
    max-width:172px;
  }
  .detail-card .school-meta {
    grid-column:2;
    flex-wrap:nowrap;
    gap:6px;
    align-items:flex-start;
  }
  .detail-card .rating-score {
    display:grid;
    grid-template-columns:22px 1fr;
    gap:0 5px;
  }
  .detail-card .rating-score span {
    font-size:9px;
    margin-left:0;
  }
  .detail-card .review-link {
    border-left:0;
    padding-left:0;
    font-size:12px;
    min-height:28px;
    gap:4px;
  }
  .detail-card .tags {
    grid-column:2;
    grid-row:3;
    margin-top:17px;
    gap:5px;
  }
  .detail-card .tags .tag {
    font-size:11px;
    padding:5px 10px;
  }
  .detail-card .school-logo {
    grid-row:1/4;
  }
  .detail-card .metrics {
    border-top:1px solid var(--line);
    padding-top:16px;
    margin-top:15px;
  }
  .detail-card .metric {
    gap:15px;
    padding-bottom:16px;
  }
  .detail-card .metric:nth-child(n+3) {
    padding-bottom:0;
  }
  .detail-card>.card-actions {
    background:#fff;
    border:1px solid var(--line);
    border-top:0;
    border-radius:0 0 13px 13px;
    margin:0;
    padding:16px 15px 0;
    gap:0;
  }
  .detail-card>.card-actions .disclosure {
    border-top:1px solid var(--line);
    min-height:49px;
    font-size:14px;
  }
  .detail-card>.card-actions .school-details-link {
    display:none;
  }
  .detail-card>.card-expanded {
    border-top:0;
  }
  .branches {
    padding:26px 0 0;
  }
  .branches .section-heading {
    flex-direction:column;
    gap:16px;
    margin-bottom:13px;
    align-items:stretch;
  }
  .branches h2 {
    font-size:27px;
    gap:13px;
    line-height:1.2;
  }
  .branches h2>.icon {
    width:29px;
    height:32px;
  }
  .branches h2>.tag {
    font-size:17px;
    border-radius:8px;
    padding:6px 11px;
  }
  .branches .section-heading>.button {
    width:100%;
    min-height:40px;
    font-size:14px;
    padding:9px 14px;
    gap:20px;
    border-radius:8px;
  }
  .branches .section-heading>.button .icon {
    width:26px;
    height:24px;
  }
  .branch-list {
    display:flex;
    flex-direction:column;
    gap:16px;
  }
  .branch {
    display:grid;
    grid-template-columns:52px minmax(0,1fr);
    gap:16px 15px;
    padding:14px;
    background:white;
    border:1px solid var(--line)!important;
    border-radius:13px;
    align-items:start;
  }
  .branch-number {
    width:51px;
    height:52px;
    border-radius:50%;
    font-size:23px;
  }
  .branch-address {
    grid-column:2;
    grid-row:1;
  }
  .branch-address h3 {
    font-size:20px;
    line-height:1.25;
    display:block;
    letter-spacing:-.035em;
  }
  .branch-address .tag {
    display:inline-flex;
    font-size:12px;
    margin:5px 0 0;
    padding:4px 10px;
  }
  .branch-address p {
    font-size:14px;
    line-height:1.45;
    letter-spacing:-.025em;
    margin-top:6px;
  }
  .branch-contact {
    grid-column:2;
    grid-row:2;
  }
  .phone-number {
    font-size:16px;
    min-height:28px;
    gap:8px;
    letter-spacing:-.02em;
    white-space:normal;
    text-align:left;
  }
  .phone-number>.icon {
    display:block;
    width:24px;
    height:25px;
  }
  .branch-contact p {
    font-size:14px;
    line-height:1.5;
    margin:4px 0 0 32px;
    letter-spacing:-.03em;
  }
  .branch-actions {
    grid-column:1/-1;
    border-top:1px solid var(--line);
    padding-top:11px;
    gap:10px;
    display:flex;
    justify-content:stretch;
  }
  .branch-actions .button {
    flex:1;
    font-size:15px;
    padding:10px 8px;
    min-height:44px;
    border-radius:8px;
    gap:12px;
  }
  .branch-actions .icon {
    width:24px;
    height:24px;
  }
  .branches>.demo-note {
    font-size:11px;
    margin:16px 0 0;
  }
  .reviews {
    border:0;
    background:none;
    padding:0;
    margin-top:28px;
  }
  .reviews .section-heading {
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:5px;
    margin:0 6px 15px;
  }
  .reviews h2 {
    font-size:25px;
    gap:15px;
    line-height:1.2;
  }
  .reviews h2>.icon {
    width:33px;
    height:34px;
  }
  .reviews .section-heading>.text-button {
    font-size:16px;
    min-height:34px;
    gap:16px;
    padding:0;
  }
  .review-list {
    border:0;
    border-radius:0;
    overflow:visible;
    display:flex;
    flex-direction:column;
    gap:14px;
  }
  .review {
    border:1px solid var(--line)!important;
    border-radius:12px;
    background:#fff;
    padding:16px;
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);
    gap:16px 20px;
  }
  .review-identity {
    grid-column:1/-1;
    grid-row:1;
    gap:18px;
    align-items:center;
  }
  .avatar {
    width:76px;
    height:76px;
  }
  .review h3 {
    font-size:18px;
    white-space:normal;
    letter-spacing:-.035em;
    line-height:1.25;
  }
  .review time {
    font-size:14px;
    margin-top:5px;
  }
  .stars {
    gap:4px;
    margin-top:7px;
  }
  .stars>.icon {
    width:20px;
    height:20px;
  }
  .review-text {
    grid-column:1/-1;
    grid-row:2;
    font-size:17px;
    color:#16213e;
    line-height:1.43;
    letter-spacing:-.03em;
    padding-bottom:17px;
    border-bottom:1px solid var(--line);
  }
  .review-scores {
    grid-row:3;
    grid-column:1;
    background:none;
    padding:2px 0;
    font-size:13px;
    line-height:1.5;
    align-self:center;
    letter-spacing:-.025em;
  }
  .review-scores>div {
    margin:4px 0;
    gap:5px;
  }
  .review-photo-button {
    grid-row:3;
    grid-column:2;
    align-self:center;
    border-radius:8px;
  }
  .review-photo-button img {
    aspect-ratio:1.5;
  }
  .more-reviews {
    width:100%;
    font-size:16px;
    min-height:47px;
    margin-top:18px;
    gap:18px;
    border:1px solid var(--blue);
    border-radius:9px;
  }
  .more-reviews>.icon {
    width:19px;
    height:16px;
  }
  .mobile-review-note {
    display:block;
    margin-top:15px;
    font-size:11px;
  }
  .card-expanded>.reviews {
    margin-top:26px;
    border-top:0;
    padding-bottom:20px;
  }
  .card-expanded .branches .section-heading h2 {
    font-size:25px;
  }
  .school-card:not(.detail-card) .branch {
    padding:12px;
    grid-template-columns:40px 1fr;
    gap:12px;
  }
  .school-card:not(.detail-card) .branch-number {
    width:40px;
    height:40px;
    font-size:19px;
  }
  .school-card:not(.detail-card) .phone-number {
    font-size:14px;
  }
  .school-card:not(.detail-card) .branch-actions {
    gap:8px;
  }
  .school-card:not(.detail-card) .branch-actions .button {
    font-size:13px;
    gap:8px;
  }
  .school-card:not(.detail-card) .review {
    padding:12px;
    gap:14px;
  }
  .school-card:not(.detail-card) .review h3 {
    font-size:16px;
  }
  .school-card:not(.detail-card) .review-text {
    font-size:15px;
  }
  .school-card:not(.detail-card) .review-scores {
    font-size:11px;
  }
}
@media(max-width:374px) {
  .detail-card>.school-summary {
    grid-template-columns:80px minmax(0,1fr);
    padding-top:64px;
  }
  .detail-card .school-meta {
    flex-wrap:wrap;
    gap:4px;
  }
  .detail-card .tags {
    grid-column:1/-1;
    gap:6px;
  }
  .detail-card .logo-frame {
    width:80px;
    height:98px;
  }
  .detail-card .school-name {
    font-size:22px;
  }
  .detail-card .metric {
    gap:10px;
  }
  .branches h2 {
    font-size:25px;
  }
  .branch {
    grid-template-columns:42px minmax(0,1fr);
    gap:14px 10px;
    padding:12px;
  }
  .branch-number {
    width:42px;
    height:43px;
    font-size:21px;
  }
  .branch-address h3 {
    font-size:18px;
  }
  .branch-address p {
    font-size:13px;
  }
  .phone-number {
    font-size:14px;
    gap:6px;
  }
  .phone-number>.icon {
    width:20px;
    height:23px;
  }
  .branch-contact p {
    font-size:12px;
    margin-left:26px;
  }
  .branch-actions .button {
    font-size:13px;
    gap:8px;
  }
  .review {
    padding:14px;
    gap:15px 14px;
  }
  .review-identity {
    gap:14px;
  }
  .avatar {
    width:60px;
    height:60px;
  }
  .review h3 {
    font-size:16px;
  }
  .review time {
    font-size:12px;
  }
  .stars>.icon {
    width:18px;
    height:18px;
  }
  .review-text {
    font-size:15px;
  }
  .review-scores {
    font-size:11px;
  }
  .reviews h2 {
    font-size:22px;
  }
}
