/* Mini-Site Refreshed Template (V2, beta)
   Loaded after mini-site.css only when a site uses template 2 (or is previewed with ?template=2).
   Every rule is scoped to body.osp-v2 so classic sites are never affected.
   School colors still come from the --school-* variables set in _MiniSiteLayout. */

body.osp-v2 {
  --v2-serif: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --v2-sans: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --v2-primary-dark: color-mix(in srgb, var(--school-primary) 72%, black);
  --v2-primary-tint: color-mix(in srgb, var(--school-primary) 10%, white);
  --v2-line: #dfe3e3;
  --v2-paper-shadow: 0 18px 30px -24px rgba(0, 0, 0, 0.55);
  --osp-radius: 6px;
  font-family: var(--v2-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

/* Readable text on a school color, whatever the color is: white on dark, near-black on light
   (--school-on-secondary is worked out in _MiniSiteLayout). */
body.osp-v2 .v2-btn-bright,
body.osp-v2 .btn-school-secondary {
  color: var(--school-on-secondary);
}

/* ---------- Typography ---------- */
body.osp-v2 h1,
body.osp-v2 h2,
body.osp-v2 .school-heading,
body.osp-v2 .display-3 {
  font-family: var(--v2-serif);
  font-weight: 400;
  letter-spacing: -0.01em;
}

body.osp-v2 .school-heading {
  font-weight: 400;
}

body.osp-v2 h3,
body.osp-v2 h4,
body.osp-v2 h5,
body.osp-v2 h6,
body.osp-v2 .school-subheading {
  font-family: var(--v2-sans);
  font-weight: 700;
}

/* ---------- Buttons ---------- */
body.osp-v2 .btn {
  border-radius: 8px;
  font-weight: 700;
}

body.osp-v2 .btn-school-primary,
body.osp-v2 .btn-school-secondary,
body.osp-v2 .btn-osp-outline {
  text-transform: none;
  letter-spacing: 0;
}

body.osp-v2 .btn-school-primary:hover,
body.osp-v2 .btn-school-secondary:hover,
body.osp-v2 .btn-osp-outline:hover {
  transform: none;
  box-shadow: none;
}

body.osp-v2 .btn-lg {
  min-height: 52px;
  padding: 0.7rem 1.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.osp-v2 .v2-btn-bright {
  background-color: var(--school-secondary);
  border: 2px solid var(--school-secondary);
}

body.osp-v2 .v2-btn-bright:hover {
  background-color: color-mix(in srgb, var(--school-secondary) 85%, black);
  border-color: color-mix(in srgb, var(--school-secondary) 85%, black);
}

body.osp-v2 .btn-outline-light {
  border-width: 2px;
}

body.osp-v2 a:focus-visible,
body.osp-v2 .btn:focus-visible {
  outline: 3px solid var(--school-secondary);
  outline-offset: 3px;
  box-shadow: none;
}

/* ---------- Navigation ---------- */
body.osp-v2 .navbar-mini {
  box-shadow: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0.75rem 0;
}

body.osp-v2 .navbar-mini .navbar-brand {
  font-family: var(--v2-serif);
  font-weight: 400;
  font-size: 1.4rem;
}

body.osp-v2 .navbar-mini .nav-link {
  font-weight: 600;
  color: #4b5557;
}

/* ---------- Hero ---------- */
body.osp-v2 .mini-hero {
  background: var(--school-primary);
  color: #fff;
  padding-bottom: 3.5rem;
}

body.osp-v2 .hero-background {
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0 14px, transparent 14px 28px);
}

body.osp-v2 .v2-hero {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 2.5rem 0 1rem;
}

body.osp-v2 .v2-school-pill {
  align-self: flex-start;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  font-weight: 600;
  font-size: 0.95rem;
}

body.osp-v2 .v2-hero-title {
  margin: 0;
  color: #fff;
  font-size: clamp(2.75rem, 6.5vw, 5.5rem);
  line-height: 0.98;
}

body.osp-v2 .v2-hero-subtitle {
  display: block;
  font-style: italic;
  color: var(--school-secondary-on-primary);
}

body.osp-v2 .v2-hero-lead {
  margin: 0;
  max-width: 34em;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.94);
}

body.osp-v2 .v2-hero-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  font-weight: 600;
}

body.osp-v2 .v2-hero-facts li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

body.osp-v2 .v2-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

body.osp-v2 .v2-hero-actions .btn {
  margin: 0 !important;
}

body.osp-v2 .v2-hero-link {
  color: #fff;
  font-weight: 700;
  padding: 0.5rem 0.25rem;
  text-underline-offset: 4px;
}

/* ---------- Highlights card ---------- */
body.osp-v2 .v2-highlights {
  background: #fff;
  color: #1d2426;
  border-radius: 4px;
  padding: 1.75rem;
  box-shadow: 0 24px 40px -28px rgba(0, 0, 0, 0.6);
  transform: rotate(1deg);
  margin: 2.5rem 0 1rem;
}

body.osp-v2 .v2-highlights-title {
  font-size: 1.6rem;
  color: var(--school-primary);
  margin: 0 0 0.5rem;
}

body.osp-v2 .v2-highlights-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.osp-v2 .v2-highlights-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--v2-line);
}

body.osp-v2 .v2-highlights-list li:last-child {
  border-bottom: 0;
}

body.osp-v2 .v2-highlights-icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--v2-primary-tint);
  color: var(--school-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.osp-v2 .v2-highlights-capacity {
  margin-top: 0.75rem;
}

body.osp-v2 .v2-highlights-capacity .progress {
  height: 8px;
  background: var(--v2-primary-tint);
}

body.osp-v2 .v2-highlights-capacity .progress-bar {
  background: var(--school-primary);
}

body.osp-v2 .v2-highlights-capacity small {
  color: #4b5557;
}

/* ---------- Get involved ---------- */
body.osp-v2 .v2-involved {
  position: relative;
  z-index: 3;
  margin-top: -2.5rem;
}

body.osp-v2 .v2-involved-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1rem;
}

body.osp-v2 .v2-involved-tile {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.5rem;
  background: #fff;
  color: #1d2426;
  border-radius: 4px;
  box-shadow: var(--v2-paper-shadow);
  text-decoration: none;
  border-top: 4px solid var(--school-primary);
}

body.osp-v2 .v2-involved-tile:hover {
  background: var(--v2-primary-tint);
}

body.osp-v2 .v2-involved-label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--school-primary);
}

body.osp-v2 .v2-involved-headline {
  font-family: var(--v2-serif);
  font-size: 1.85rem;
  line-height: 1.05;
}

body.osp-v2 .v2-involved-detail {
  color: #4b5557;
}

/* ---------- Why attend ---------- */
body.osp-v2 .v2-why {
  padding: 4.5rem 0 3rem;
  background: var(--school-main-bg);
}

body.osp-v2 .v2-why-header {
  max-width: 44rem;
  margin-bottom: 1.5rem;
}

body.osp-v2 .v2-why-header .school-heading {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
}

body.osp-v2 .v2-why-subtitle {
  color: #4b5557;
  font-size: 1.15rem;
  margin: 0;
}

body.osp-v2 .v2-why-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  column-gap: 3.5rem;
}

body.osp-v2 .v2-why-list li {
  display: flex;
  gap: 1.1rem;
  padding: 1.5rem 0;
  border-top: 2px solid var(--school-primary-text);
}

body.osp-v2 .v2-why-number {
  flex: 0 0 2.5rem;
  font-family: var(--v2-serif);
  font-size: 2.75rem;
  line-height: 1;
  color: var(--school-primary);
}

body.osp-v2 .v2-why-title {
  font-size: 1.25rem;
  margin: 0 0 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

body.osp-v2 .v2-why-title i {
  color: var(--school-primary);
  font-size: 1rem;
}

body.osp-v2 .v2-why-list p {
  margin: 0;
  color: #4b5557;
}

/* ---------- Shared components (restyled, same markup) ---------- */
body.osp-v2 .feature-card {
  border-radius: 4px;
  box-shadow: var(--v2-paper-shadow);
}

body.osp-v2 .feature-card:hover {
  transform: none;
}

body.osp-v2 .card,
body.osp-v2 .card-osp {
  border-radius: 6px;
}

body.osp-v2 .gallery-item,
body.osp-v2 .site-gallery-container,
body.osp-v2 .site-gallery-image {
  border-radius: 4px;
}

body.osp-v2 .cta-section {
  background: var(--v2-primary-dark);
  padding: 4.5rem 0;
}

body.osp-v2 .cta-section::before {
  background: none;
}

body.osp-v2 .cta-section h2 {
  font-size: clamp(2rem, 4.4vw, 3.25rem);
}

body.osp-v2 .cta-section .lead {
  color: rgba(255, 255, 255, 0.85) !important;
}

body.osp-v2 .form-control,
body.osp-v2 .form-select {
  border-radius: 8px;
  min-height: 48px;
}

body.osp-v2 .form-check-input {
  min-height: 0;
}

body.osp-v2 .footer-mini {
  background: var(--v2-primary-dark);
}

@media (max-width: 768px) {
  body.osp-v2 .v2-highlights {
    transform: none;
  }

  body.osp-v2 .v2-hero-actions .btn {
    width: 100%;
  }

  body.osp-v2 .v2-involved {
    margin-top: -1.5rem;
  }
}
