/* ============================================================
   MNG Global: school profile pages (schools/<slug>/)
   Generated by tools/school-pages/build.py. Loaded after pages.css,
   same sticker language: square corners, tape, dashed rules.
   ============================================================ */

:root {
  --sp-nav: 69px;
  --sp-tabs: 52px;
}

.sp-section {
  padding: 4.5rem 0;
  scroll-margin-top: calc(var(--sp-nav) + var(--sp-tabs));
}

.sp-price {
  scroll-margin-top: calc(var(--sp-nav) + var(--sp-tabs));
}

.sp-small {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--gray-500);
  margin-top: 0.9rem;
}

/* Section heading: sticker tag above a left-aligned title */
.sp-head {
  margin-bottom: 2.25rem;
}

.sp-tag {
  display: inline-block;
  font-family: 'Manrope', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--note-blue);
  padding: 0.35rem 0.7rem;
  border-radius: 3px;
  rotate: -2deg;
  margin-bottom: 0.8rem;
}

.sp-tag--yellow {
  background: var(--sticker);
}

.sp-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.sp-sub {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
  margin: 2.5rem 0 1.1rem;
}

.sp-prose p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--gray-700);
  margin-bottom: 1rem;
}

.sp-intro {
  color: var(--gray-600);
  margin: -1rem 0 1.5rem;
}

.sp-ticks,
.sp-dashes,
.sp-amen,
.sp-rules,
.sp-day,
.sp-week,
.sp-floors,
.sp-legend,
.sp-fac ul,
.sp-near ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Square tick list (CSS-drawn, no icon font) */
.sp-ticks li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.7rem;
  line-height: 1.55;
}

.sp-ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 3px;
  background: var(--navy);
}

.sp-ticks li::after {
  content: '';
  position: absolute;
  left: 0.36rem;
  top: 0.36em;
  width: 0.32rem;
  height: 0.55rem;
  border: solid var(--sticker);
  border-width: 0 2.5px 2.5px 0;
  rotate: 45deg;
}

.sp-dashes li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.7rem;
  line-height: 1.55;
}

.sp-dashes li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.8rem;
  border-top: 2px dashed var(--gray-400);
}

/* ── Hero ─────────────────────────────────────────────────── */
.sp-hero {
  position: relative;
  overflow: hidden;
  padding: 7.5rem 0 4rem;
  background: linear-gradient(180deg, #EEF4FF 0%, #F8FAFF 100%);
}

.sp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--gray-300) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 55% 80% at 75% 45%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 55% 80% at 75% 45%, #000 0%, transparent 75%);
  opacity: 0.6;
}

.sp-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.sp-hero .breadcrumb-nav {
  justify-content: flex-start;
  margin: 0 0 1.5rem;
}

.sp-place {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: 'Manrope', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gray-600);
  margin-bottom: 0.9rem;
}

.sp-place img {
  width: 22px;
  height: 15px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(27, 42, 74, 0.15);
}

.sp-hero h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: 1.1rem;
}

.sp-hero h1::after {
  content: '';
  display: block;
  width: 140px;
  height: 14px;
  margin-top: 0.55rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M2 14 C 50 4, 120 4, 198 12' stroke='%23F59E0B' stroke-width='6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.sp-lead {
  max-width: 600px;
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--gray-600);
  margin-bottom: 2rem;
}

.sp-stats {
  display: flex;
  flex-wrap: wrap;
  row-gap: 1rem;
  margin-bottom: 2.25rem;
}

.sp-stats div {
  display: flex;
  flex-direction: column;
  padding: 0.1rem 1.6rem;
  border-left: 2px dashed var(--gray-300);
}

.sp-stats div:first-child {
  padding-left: 0;
  border-left: 0;
}

.sp-stats b {
  font-family: 'Manrope', sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--navy);
}

.sp-stats span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-500);
}

.sp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
}

.sp-hero .hero-btn--sticker,
.sp-back .hero-btn--sticker {
  box-shadow: 0 8px 0 -2px var(--navy);
}

.sp-hero .hero-btn--dashed,
.sp-back .hero-btn--dashed {
  color: var(--navy);
  background: var(--white);
  border-color: var(--primary);
}

.sp-hero .hero-btn--dashed:hover,
.sp-back .hero-btn--dashed:hover {
  background: var(--white);
  border-color: #F59E0B;
}

/* Quick-facts card: taped, slightly tilted */
.sp-card {
  position: relative;
  background: var(--white);
  border-radius: 3px;
  padding: 2rem 1.75rem 1.5rem;
  rotate: 1.5deg;
  box-shadow: 0 24px 38px -22px rgba(27, 42, 74, 0.5);
}

.sp-card::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 50%;
  width: 110px;
  height: 28px;
  margin-left: -55px;
  background: rgba(255, 200, 69, 0.85);
  rotate: -3deg;
}

.sp-card-title {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 0.75rem;
}

.sp-card dl div {
  padding: 0.85rem 0;
  border-top: 2px dashed var(--gray-200);
}

.sp-card dt {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.2rem;
}

.sp-card dd {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--navy);
}

/* ── Sticky section tabs ──────────────────────────────────── */
.sp-tabs {
  position: sticky;
  top: var(--sp-nav);
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border-soft);
}

.sp-tabs-row {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.sp-tabs-row::-webkit-scrollbar {
  display: none;
}

.sp-tabs a {
  flex-shrink: 0;
  display: block;
  padding: 0.95rem 0.9rem 0.8rem;
  font-family: 'Manrope', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gray-500);
  text-decoration: none;
  border-bottom: 4px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.sp-tabs a:hover {
  color: var(--navy);
}

.sp-tabs a.active {
  color: var(--navy);
  border-bottom-color: var(--sticker);
}

/* ── Overview ─────────────────────────────────────────────── */
.sp-overview {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

/* Yellow sticky note with tape */
.sp-note {
  position: relative;
  background: var(--note-yellow);
  border-radius: 3px;
  padding: 2.25rem 1.75rem 1.5rem;
  rotate: -1.2deg;
  box-shadow: 0 14px 24px -14px rgba(27, 42, 74, 0.35);
}

.sp-note::before {
  content: '';
  position: absolute;
  top: -13px;
  left: 50%;
  width: 100px;
  height: 26px;
  margin-left: -50px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(27, 42, 74, 0.08);
  rotate: 3deg;
}

.sp-note h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 1.1rem;
}

.sp-note li b {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  color: var(--navy);
}

.sp-note li span {
  font-size: 0.88rem;
  color: #334155;
}

/* Nationality mix */
.sp-nat {
  margin-top: 3rem;
  padding-top: 2.25rem;
  border-top: 2px dashed var(--gray-200);
}

.sp-nat h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 1rem;
}

.sp-bar {
  display: flex;
  height: 26px;
  border-radius: 3px;
  overflow: hidden;
}

.sp-bar-seg + .sp-bar-seg {
  border-left: 2px solid var(--white);
}

.sp-seg-0 { background: var(--navy); }
.sp-seg-1 { background: var(--primary); }
.sp-seg-2 { background: var(--sticker); }
.sp-seg-3 { background: #93B4FF; }
.sp-seg-4 { background: #F59E0B; }
.sp-seg-5 { background: #14B8A6; }
.sp-seg-rest { background: var(--gray-300); }

.sp-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--gray-700);
}

.sp-legend li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.sp-legend i {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}

.sp-legend b {
  color: var(--navy);
}

/* ── Courses table ────────────────────────────────────────── */
.sp-table-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.sp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.sp-table thead th {
  background: var(--navy);
  color: var(--white);
  font-family: 'Manrope', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
  padding: 0.85rem 0.75rem;
}

.sp-table thead th:first-child,
.sp-table thead th:last-child {
  text-align: left;
}

.sp-table tbody th {
  text-align: left;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  color: var(--navy);
  white-space: nowrap;
}

.sp-table tbody th,
.sp-table td {
  padding: 0.95rem 0.75rem;
  border-top: 1px solid var(--border-soft);
  vertical-align: top;
}

.sp-table td {
  text-align: center;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  color: var(--gray-700);
  white-space: nowrap;
}

.sp-table td.sp-total {
  background: var(--note-yellow);
  color: var(--navy);
  font-weight: 800;
}

/* Text columns (intake months, fees) may wrap */
.sp-table--text td {
  white-space: normal;
  min-width: 7rem;
}

.sp-table--text td.sp-total {
  white-space: nowrap;
}

.sp-table td.sp-who {
  text-align: left;
  white-space: normal;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.55;
  color: var(--gray-600);
  min-width: 260px;
}

.sp-callouts {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 1.5rem;
  margin-top: 1.75rem;
}

.sp-callout {
  background: var(--white);
  border: 2px dashed var(--gray-300);
  border-radius: 4px;
  padding: 1.4rem 1.5rem;
}

.sp-callout h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.sp-callout p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--gray-600);
}

.sp-callout--blue {
  background: var(--note-blue);
  border-color: transparent;
  margin-top: 1.25rem;
}

/* ── Schedule ─────────────────────────────────────────────── */
.sp-schedule {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3.5rem;
}

.sp-schedule--single {
  grid-template-columns: 1fr;
  max-width: 760px;
}

.sp-schedule h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 1.25rem;
}

/* Day: a timeline with a dashed spine */
.sp-day li {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.1rem;
  padding-bottom: 1.1rem;
}

.sp-day li::before {
  content: '';
  position: absolute;
  left: 78px;
  top: 0.45rem;
  bottom: -0.2rem;
  border-left: 2px dashed var(--gray-300);
}

.sp-day li:last-child::before {
  display: none;
}

.sp-day li::after {
  content: '';
  position: absolute;
  left: 73px;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: var(--sticker);
  rotate: 45deg;
}

.sp-day time {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--navy);
  line-height: 1.3;
}

.sp-day time small {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gray-400);
}

.sp-day span {
  padding-left: 1.4rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--gray-700);
}

/* Week: calendar blocks */
.sp-week li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.7rem;
}

.sp-week b {
  display: grid;
  place-items: center;
  height: 48px;
  border: 2px solid var(--navy);
  border-top-width: 10px;
  border-radius: 4px;
  background: var(--white);
  font-family: 'Manrope', sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--navy);
}

.sp-week li:nth-child(6) b,
.sp-week li:nth-child(7) b {
  border-color: #F59E0B;
}

/* Year calendar: month numbers with a small "сар" label, no weekend colouring */
.sp-week--year li:nth-child(n) b {
  border-color: var(--navy);
  line-height: 1;
}

.sp-week--year b::after {
  content: 'сар';
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  opacity: 0.6;
  margin-top: 0.1rem;
}

.sp-week span {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--gray-700);
}

/* ── Dormitory ────────────────────────────────────────────── */
.sp-dorm-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.sp-building h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.9rem;
}

/* Building cross-section: one row per floor, top floor first */
.sp-floors li {
  display: grid;
  grid-template-columns: 74px 1fr;
  align-items: stretch;
  border: 2px solid var(--navy);
  background: var(--white);
  margin-top: -2px;
}

.sp-floors li:first-child {
  margin-top: 0;
  border-radius: 4px 4px 0 0;
}

.sp-floors li:last-child {
  border-bottom-width: 6px;
}

.sp-floors b {
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--white);
  font-family: 'Manrope', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
}

.sp-floors b::after {
  content: 'давхар';
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  opacity: 0.7;
  margin-top: -0.4rem;
}

.sp-floors b.sp-floor-word::after {
  content: none;
}

.sp-floors span {
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--gray-700);
}

.sp-floors li:first-child span {
  background: var(--note-blue);
  font-weight: 700;
  color: var(--navy);
}

/* Room cards with a little floor plan */
.sp-rooms {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
  padding-top: 0.5rem;
}

.sp-room {
  position: relative;
  background: var(--white);
  border-radius: 3px;
  padding: 1.5rem 1.4rem 1.6rem;
  box-shadow: 0 14px 24px -14px rgba(27, 42, 74, 0.35);
  rotate: -0.8deg;
  transition: rotate 0.3s var(--ease-spring), translate 0.3s var(--ease-spring);
}

.sp-room:nth-child(2n) {
  rotate: 0.9deg;
}

.sp-room:hover {
  rotate: 0deg;
  translate: 0 -4px;
}

.sp-plan {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 8px;
  height: 108px;
  padding: 10px;
  margin-bottom: 1.1rem;
  border: 3px solid var(--navy);
  border-radius: 2px;
  background: repeating-linear-gradient(0deg, transparent 0 11px, rgba(27, 42, 74, 0.05) 11px 12px), var(--gray-50);
}

.sp-bed {
  position: relative;
  width: 30px;
  height: 52px;
  border: 2px solid var(--primary);
  border-radius: 2px;
  background: var(--white);
}

.sp-bed::before {
  content: '';
  position: absolute;
  left: 3px;
  right: 3px;
  top: 3px;
  height: 9px;
  border-radius: 2px;
  background: var(--note-blue);
}

.sp-living {
  position: absolute;
  top: 10px;
  right: 10px;
  bottom: 10px;
  width: 44%;
  display: grid;
  place-items: center;
  border-left: 2px dashed var(--navy);
  font-style: normal;
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  color: var(--navy);
}

.sp-bath {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 38px;
  height: 30px;
  display: grid;
  place-items: center;
  border-left: 2px solid var(--navy);
  border-top: 2px solid var(--navy);
  background: var(--note-blue);
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--navy);
}

.sp-plan--living .sp-bath {
  right: auto;
  left: 0;
  border-left: 0;
  border-right: 2px solid var(--navy);
}

.sp-plan--living .sp-bed:first-child {
  margin-left: 0;
}

.sp-room-type {
  display: inline-block;
  font-family: 'Manrope', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--navy);
  background: var(--sticker);
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  rotate: -2deg;
  margin-bottom: 0.6rem;
}

.sp-room h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.sp-room p {
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--gray-600);
}

.sp-rooms-note {
  margin-top: 1.4rem;
  font-weight: 600;
  color: var(--gray-600);
}

.sp-dorm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
}

.sp-amen {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 1.25rem;
}

.sp-amen li {
  position: relative;
  padding: 0.7rem 0.9rem 0.7rem 2.4rem;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}

.sp-amen li::before {
  content: '';
  position: absolute;
  left: 0.95rem;
  top: 50%;
  width: 0.35rem;
  height: 0.65rem;
  margin-top: -0.45rem;
  border: solid var(--primary);
  border-width: 0 2.5px 2.5px 0;
  rotate: 45deg;
}

/* Service tickets: notches cut into both sides */
.sp-tickets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.sp-ticket {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.95rem 1.4rem;
  background: var(--navy);
  border-radius: 6px;
  -webkit-mask: radial-gradient(circle 8px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle 8px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 8px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle 8px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
}

.sp-ticket span {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

.sp-ticket b {
  font-family: 'Manrope', sans-serif;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--sticker);
}

/* ── Campus facilities ────────────────────────────────────── */
.sp-facs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.sp-fac {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.4rem 1.4rem 0.9rem;
}

.sp-fac h3 {
  display: inline-block;
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.8rem;
  box-shadow: inset 0 -0.45em 0 var(--note-yellow);
}

.sp-fac li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.6rem 0;
  border-top: 2px dashed var(--gray-200);
  font-size: 0.9rem;
  color: var(--gray-700);
}

.sp-fac li:first-child {
  border-top: 0;
}

.sp-fac small {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--gray-500);
}

/* ── Rules ────────────────────────────────────────────────── */
.sp-rules {
  counter-reset: rule;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2.5rem;
}

.sp-rules li {
  counter-increment: rule;
  position: relative;
  padding: 0.2rem 0 0.2rem 3.2rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--gray-700);
}

.sp-rules li::before {
  content: counter(rule);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  border-radius: 3px;
  background: var(--sticker);
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  color: var(--navy);
  rotate: -4deg;
}

.sp-rules li:nth-child(2n)::before {
  background: var(--note-blue);
  rotate: 3deg;
}

/* ── Location ─────────────────────────────────────────────── */
.sp-location {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 3rem;
  align-items: start;
}

.sp-map iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 8px solid var(--white);
  border-radius: 3px;
  box-shadow: 0 20px 34px -18px rgba(27, 42, 74, 0.45);
}

.sp-near h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.6rem;
}

.sp-near ul + h3 {
  margin-top: 1.75rem;
}

.sp-near li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 0;
  border-top: 2px dashed var(--gray-200);
  font-size: 0.9rem;
  color: var(--gray-700);
}

.sp-near b {
  flex-shrink: 0;
  font-family: 'Manrope', sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--navy);
  background: var(--note-blue);
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
}

/* ── Price band ───────────────────────────────────────────── */
.sp-price {
  padding: 4.5rem 0;
}

.sp-price-band {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3rem;
  align-items: center;
  background: var(--navy);
  border-radius: 22px;
  padding: 3.25rem;
}

.sp-price-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 1rem;
}

.sp-price-text p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.sp-price-lists {
  display: grid;
  gap: 1.25rem;
}

.sp-price-card {
  background: var(--white);
  border-radius: 3px;
  padding: 1.4rem 1.5rem 0.8rem;
  rotate: -1deg;
}

.sp-price-card--local {
  background: var(--note-yellow);
  rotate: 1deg;
}

.sp-price-card h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.9rem;
}

.sp-price-card li {
  font-size: 0.9rem;
  color: #334155;
}

/* Published fees: label left, amount right, dashed rules */
.sp-price-card--fees {
  rotate: 0deg;
  padding-bottom: 1.1rem;
}

.sp-fees div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-top: 1px dashed var(--gray-300);
}

.sp-fees div:first-child {
  border-top: 0;
}

.sp-fees dt {
  font-size: 0.9rem;
  color: #334155;
}

.sp-fees dd {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  color: var(--navy);
  text-align: right;
  white-space: nowrap;
}

.sp-price-card--fees .sp-small {
  margin-top: 0.6rem;
}

/* ── FAQ, back link ───────────────────────────────────────── */
.sp-faq {
  display: grid;
  gap: 0.75rem;
  max-width: 820px;
}

.sp-faq .faq-q .icon {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
}

.sp-back {
  padding: 3.5rem 0 4.5rem;
  text-align: center;
}

.sp-sources {
  max-width: 640px;
  margin: 1.75rem auto 0;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--gray-500);
}

/* ── Tablet ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .sp-rooms {
    grid-template-columns: repeat(2, 1fr);
  }

  .sp-facs {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .sp-hero {
    padding: 6.5rem 0 3.25rem;
  }

  .sp-hero-inner,
  .sp-overview,
  .sp-schedule,
  .sp-dorm-top,
  .sp-dorm-grid,
  .sp-location,
  .sp-callouts,
  .sp-price-band {
    grid-template-columns: 1fr;
  }

  .sp-hero-inner,
  .sp-overview,
  .sp-schedule,
  .sp-dorm-top,
  .sp-dorm-grid,
  .sp-location {
    gap: 2.5rem;
  }

  .sp-card {
    rotate: 0.8deg;
  }

  .sp-rules {
    grid-template-columns: 1fr;
  }

  .sp-price-band {
    padding: 2.25rem 1.5rem;
    border-radius: 16px;
  }

  /* Table becomes one card per course */
  .sp-table thead {
    display: none;
  }

  .sp-table,
  .sp-table tbody,
  .sp-table tr {
    display: block;
  }

  .sp-table tr {
    display: grid;
    grid-template-columns: repeat(var(--cols, 4), 1fr);
    padding: 1rem;
    border-top: 1px solid var(--border-soft);
  }

  .sp-table tr:first-child {
    border-top: 0;
  }

  .sp-table tbody th,
  .sp-table td {
    border-top: 0;
    padding: 0;
  }

  .sp-table tbody th {
    grid-column: 1 / -1;
    font-size: 1.05rem;
    margin-bottom: 0.7rem;
    white-space: normal;
  }

  .sp-table td {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    font-size: 1rem;
    white-space: normal;
    min-width: 0;
    padding-right: 0.5rem;
  }

  .sp-table td::before {
    content: attr(data-label);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--gray-400);
  }

  .sp-table td.sp-total {
    background: none;
    white-space: normal;
  }

  .sp-table td.sp-total::after {
    content: '';
    width: 1.6rem;
    border-top: 4px solid var(--sticker);
    margin-top: 0.15rem;
  }

  .sp-table td.sp-who {
    grid-column: 1 / -1;
    min-width: 0;
    margin-top: 0.75rem;
    font-size: 0.88rem;
  }

  .sp-table td.sp-who::before {
    display: none;
  }
}

@media (max-width: 640px) {
  .sp-section,
  .sp-price {
    padding: 3.5rem 0;
  }

  .sp-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    row-gap: 0;
    border-top: 2px dashed var(--gray-300);
  }

  .sp-stats div {
    padding: 0.75rem 0 0.75rem 1.1rem;
  }

  .sp-stats div:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .sp-stats div:nth-child(n+3) {
    border-top: 2px dashed var(--gray-300);
  }

  .sp-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .sp-actions .hero-btn {
    justify-content: center;
  }

  .sp-rooms,
  .sp-facs,
  .sp-amen {
    grid-template-columns: 1fr;
  }

  .sp-map iframe {
    height: 300px;
  }
}

@media (max-width: 380px) {
  .sp-tickets {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sp-room {
    transition: none;
  }
}
