/* School website: five layouts drawn from one content model
   (views/partials/website/*). Colors come from the school's brand color
   (--org-primary-color); dark mode is applied by public/js/appearance.js. */

.sw-site {
  --sw-accent: var(--org-primary-color, #0f5a66);
  --sw-accent-deep: var(--org-primary-hover, #0b4650);
  --sw-accent-soft: color-mix(in srgb, var(--sw-accent) 9%, #fff);
  --sw-accent-line: color-mix(in srgb, var(--sw-accent) 28%, #fff);
  --sw-ink: #14181f;
  --sw-text: #3a414c;
  --sw-muted: #6b7280;
  --sw-line: #e6e8ec;
  --sw-paper: #ffffff;
  --sw-tint: #f6f7f9;
  --sw-radius: 14px;
  --sw-gutter: clamp(16px, 4vw, 48px);
  --sw-max: 1240px;
  --sw-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sw-sans: var(--font-family, "Inter", system-ui, -apple-system, "Segoe UI", sans-serif);
  font-family: var(--sw-sans);
  color: var(--sw-text);
  background: var(--sw-paper);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
.sw-site *, .sw-site *::before, .sw-site *::after { box-sizing: border-box; }
/* Base element styles at zero specificity, so component rules always win. */
:where(.sw-site) img { max-width: 100%; display: block; }
:where(.sw-site) a { color: var(--sw-accent-deep); }
:where(.sw-site) :is(h1, h2, h3) { color: var(--sw-ink); margin: 0; text-align: left; line-height: 1.2; font-weight: 700; }
:where(.sw-site) p { margin: 0; }
.sw-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sw-site .sw-wrap { width: 100%; max-width: calc(var(--sw-max) + 2 * var(--sw-gutter)); margin-inline: auto; padding-inline: var(--sw-gutter); }
.sw-main { display: block; }
.sw-section, .sw-anchor { scroll-margin-top: 130px; }
.sw-section { position: relative; }
.sw-anchor { position: absolute; top: 0; left: 0; width: 1px; height: 1px; }

/* Leave room for the site header and its section menu. */
body[data-page="publicDashboard"] .sw-site { margin-top: 32px; }
@media (max-width: 768px) { body[data-page="publicDashboard"] .sw-site { margin-top: 0; } }

/* ---------- Buttons ---------- */
.sw-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.sw-actions--center { justify-content: center; }
.sw-site .sw-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 20px; border-radius: 10px; font-weight: 700; font-size: 0.95rem; text-decoration: none; border: 2px solid transparent; transition: background .15s, color .15s, transform .15s, border-color .15s; cursor: pointer; }
.sw-site .sw-btn:hover { transform: translateY(-1px); }
.sw-site .sw-btn--primary { background: var(--sw-accent); color: var(--sw-on-accent, #fff); }
.sw-site .sw-btn--primary:hover { background: var(--sw-accent-deep); }
.sw-site .sw-btn--ghost { border-color: var(--sw-accent-line); color: var(--sw-accent-deep); background: transparent; }
.sw-site .sw-btn--light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.55); backdrop-filter: blur(4px); }
.sw-site .sw-btn--onaccent { background: #fff; color: var(--sw-ink); }
@media (prefers-reduced-motion: reduce) { .sw-site .sw-btn, .sw-site .sw-card, .sw-site .sw-gallery__open img { transition: none !important; } }

/* ---------- Section heads (base) ---------- */
.sw-head { margin-bottom: clamp(16px, 2.2vw, 24px); }
.sw-head__title { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.sw-head__intro { margin-top: 10px; color: var(--sw-muted); max-width: 68ch; font-size: 1.02rem; }
.sw-head__kicker { display: block; margin-bottom: 6px; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sw-accent-deep); }

/* ---------- Slider ---------- */
.sw-slider { position: relative; overflow: hidden; background: #0d1014; }
.sw-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .8s ease; }
.sw-slide.is-active { opacity: 1; position: relative; }
.sw-slider--cover .sw-slide { position: absolute; }
.sw-slider--cover .sw-slide.is-active { position: absolute; }
.sw-slide__backdrop { position: absolute; inset: -24px; width: calc(100% + 48px); height: calc(100% + 48px); max-width: none; object-fit: cover; filter: blur(22px) brightness(.62) saturate(1.05); }
.sw-slide__img { position: relative; width: 100%; height: 100%; object-fit: contain; }
.sw-slide__caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 22px 18px; color: #fff; font-weight: 600; font-size: .95rem; background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.sw-slider__arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: #111; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.sw-slider__arrow--prev { left: 14px; }
.sw-slider__arrow--next { right: 14px; }
.sw-slider__dots { position: absolute; z-index: 3; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 7px; }
.sw-slider__dot { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: rgba(255,255,255,.5); cursor: pointer; }
.sw-slider__dot.is-active { background: #fff; width: 24px; border-radius: 999px; }
.sw-slider--card { border-radius: var(--sw-radius); aspect-ratio: 16 / 10; }
.sw-slider--card .sw-slide { height: 100%; }
@media (prefers-reduced-motion: reduce) { .sw-slide { transition: none; } }

/* ---------- Shared content pieces ---------- */
.sw-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.sw-fact { display: grid; gap: 4px; padding: 20px; border-radius: var(--sw-radius); background: var(--sw-paper); border: 1px solid var(--sw-line); text-align: center; }
.sw-fact__value { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; color: var(--sw-accent); line-height: 1.1; }
.sw-fact__label { font-size: .9rem; color: var(--sw-muted); font-weight: 600; }

.sw-welcome { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 44px); align-items: center; }
.sw-welcome__photo { width: clamp(120px, 16vw, 200px); aspect-ratio: 1; border-radius: 50%; object-fit: cover; border: 4px solid var(--sw-accent-soft); box-shadow: 0 0 0 2px var(--sw-accent-line); }
.sw-welcome__photo--initials { display: grid; place-items: center; background: var(--sw-accent-soft); color: var(--sw-accent-deep); font-size: 2.6rem; font-weight: 800; }
.sw-welcome__message { margin: 0; font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.7; color: var(--sw-ink); white-space: pre-line; position: relative; }
.sw-welcome__sign { margin-top: 16px; display: grid; }
.sw-welcome__sign strong { color: var(--sw-ink); }
.sw-welcome__sign span { color: var(--sw-muted); font-size: .92rem; }

.sw-about { display: grid; gap: clamp(20px, 4vw, 48px); }
.sw-about--image { grid-template-columns: 1.15fr 1fr; align-items: start; }
.sw-about__motto { font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 700; color: var(--sw-accent-deep); font-style: italic; margin-bottom: 14px; }
.sw-about__body { white-space: pre-line; font-size: 1.04rem; }
.sw-about__facts { margin: 22px 0 0; display: grid; gap: 12px; padding-top: 18px; border-top: 1px solid var(--sw-line); }
.sw-about__facts div { display: grid; grid-template-columns: 90px 1fr; gap: 10px; }
.sw-about__facts dt { font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--sw-accent); padding-top: 3px; }
.sw-about__facts dd { margin: 0; }
.sw-about__figure { margin: 0; }
.sw-about__figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--sw-radius); }
.sw-about__figure figcaption { margin-top: 8px; font-size: .88rem; color: var(--sw-muted); }

.sw-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 20px; }
.sw-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--sw-radius); background: var(--sw-paper); border: 1px solid var(--sw-line); transition: transform .2s, box-shadow .2s; }
.sw-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(15, 23, 42, .1); }
.sw-card__media { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.sw-card__media--blank { display: block; aspect-ratio: auto; height: 6px; background: var(--sw-accent); }
.sw-card__body { padding: 18px 20px 20px; }
.sw-card__body h3 { font-size: 1.12rem; margin-bottom: 6px; }
.sw-card__body p { font-size: .96rem; white-space: pre-line; }

.sw-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 16px; counter-reset: step; }
.sw-step { display: flex; gap: 14px; padding: 18px; border-radius: var(--sw-radius); background: var(--sw-paper); border: 1px solid var(--sw-line); }
.sw-step__num { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--sw-accent); color: var(--sw-on-accent, #fff); }
.sw-step h3 { font-size: 1.04rem; margin-bottom: 4px; }
.sw-step p { font-size: .94rem; color: var(--sw-muted); }

.sw-gallery { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.sw-gallery__item { margin: 0; display: grid; gap: 8px; }
.sw-gallery__open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; overflow: hidden; border-radius: 12px; }
.sw-gallery__open img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s ease; }
.sw-gallery__open:hover img { transform: scale(1.04); }
.sw-gallery__item figcaption { font-size: .9rem; color: var(--sw-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.sw-events { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sw-event { display: grid; grid-template-columns: 74px 1fr; gap: 16px; align-items: start; padding: 16px; border-radius: var(--sw-radius); background: var(--sw-paper); border: 1px solid var(--sw-line); }
.sw-event__date { display: grid; place-items: center; align-content: center; height: 74px; border-radius: 12px; background: var(--sw-accent-soft); color: var(--sw-accent-deep); text-align: center; }
.sw-event__month { font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.sw-event__day { font-size: 1.8rem; font-weight: 800; line-height: 1; }
.sw-event__body h3 { font-size: 1.06rem; }
.sw-event__when { font-size: .86rem; color: var(--sw-muted); margin-top: 2px; }
.sw-event__details { margin-top: 6px; font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sw-event.is-past { opacity: .72; }

.sw-notices { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sw-notice { padding: 16px 18px; border-radius: var(--sw-radius); background: var(--sw-paper); border: 1px solid var(--sw-line); border-left: 4px solid var(--sw-accent); }

.sw-articles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; align-items: start; }
.sw-article { padding: 22px; border-radius: var(--sw-radius); background: var(--sw-paper); border: 1px solid var(--sw-line); }
.sw-article__meta { font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--sw-accent); margin-bottom: 8px; }
.sw-article__title { font-size: 1.2rem; margin-bottom: 8px; }
.sw-article__excerpt { color: var(--sw-text); }
.sw-article__more { margin-top: 12px; }
.sw-article__more summary { cursor: pointer; font-weight: 700; color: var(--sw-accent-deep); list-style: none; display: inline-flex; gap: 6px; }
.sw-article__more summary::-webkit-details-marker { display: none; }
.sw-article__more summary::after { content: "→"; }
.sw-article__more[open] summary { display: none; }
.sw-rich { line-height: 1.7; }
.sw-rich p { margin: 0 0 .8em; }
.sw-rich img { border-radius: 10px; margin: 10px 0; }
.sw-rich ul, .sw-rich ol { padding-left: 1.3em; margin: 0 0 .8em; }

.sw-people { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 20px; }
.sw-person { text-align: center; padding: 24px 18px; border-radius: var(--sw-radius); background: var(--sw-paper); border: 1px solid var(--sw-line); }
.sw-person__photo { width: 88px; height: 88px; margin: 0 auto 14px; border-radius: 50%; object-fit: cover; border: 3px solid var(--sw-accent-line); }
.sw-person__photo--initials { display: grid; place-items: center; font-size: 1.5rem; font-weight: 800; color: var(--sw-accent-deep); background: var(--sw-accent-soft); }
.sw-person h3 { text-align: center; font-size: 1.06rem; }
.sw-person__role { font-size: .88rem; font-weight: 700; color: var(--sw-accent); margin-top: 2px; }
.sw-person__message { margin-top: 10px; font-size: .93rem; font-style: italic; white-space: pre-line; }

.sw-awards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.sw-award { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--sw-radius); background: var(--sw-paper); border: 1px solid var(--sw-line); }
.sw-award__year { flex: none; padding: 4px 10px; border-radius: 999px; background: var(--sw-accent); color: var(--sw-on-accent, #fff); font-weight: 800; font-size: .82rem; }
.sw-award h3 { font-size: 1.04rem; }
.sw-award p { margin-top: 4px; font-size: .93rem; color: var(--sw-muted); }

.sw-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; align-items: start; }
.sw-quote { margin: 0; padding: 26px 24px 22px; border-radius: var(--sw-radius); background: var(--sw-paper); border: 1px solid var(--sw-line); position: relative; }
.sw-quote { border-left: 3px solid var(--sw-accent); }
.sw-quote blockquote { margin: 0; white-space: pre-line; font-size: 1rem; }
.sw-quote figcaption { margin-top: 14px; display: grid; font-size: .9rem; }
.sw-quote figcaption strong { color: var(--sw-ink); }
.sw-quote figcaption span { color: var(--sw-muted); }

.sw-faq { display: grid; gap: 10px; max-width: 900px; }
.sw-faq__item { border-radius: 12px; background: var(--sw-paper); border: 1px solid var(--sw-line); }
.sw-faq__item summary { list-style: none; cursor: pointer; padding: 16px 18px; font-weight: 700; color: var(--sw-ink); display: flex; justify-content: space-between; gap: 12px; }
.sw-faq__item summary::-webkit-details-marker { display: none; }
.sw-faq__item summary::after { content: "+"; color: var(--sw-accent); font-size: 1.3rem; line-height: 1; }
.sw-faq__item[open] summary::after { content: "−"; }
.sw-faq__answer { padding: 0 18px 16px; white-space: pre-line; }

.sw-contact { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.sw-contact__form { margin: 0; padding: clamp(18px, 3vw, 28px); display: grid; gap: 14px; border-radius: var(--sw-radius); background: var(--sw-paper); border: 1px solid var(--sw-line); }
.sw-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sw-contact__form label { display: block; font-size: .86rem; font-weight: 700; color: var(--sw-ink); }
.sw-contact__form label > input, .sw-contact__form label > textarea { display: block; margin-top: 6px; }
.sw-optional { font-weight: 500; color: var(--sw-muted); }
.sw-contact__form input, .sw-contact__form textarea { width: 100%; padding: 12px 14px; font: inherit; font-size: 1rem; color: var(--sw-ink); background: var(--sw-tint); border: 1px solid var(--sw-line); border-radius: 10px; }
.sw-contact__form input:focus, .sw-contact__form textarea:focus { outline: 2px solid color-mix(in srgb, var(--sw-accent) 40%, transparent); border-color: var(--sw-accent); background: var(--sw-paper); }
.sw-contact__form textarea { resize: vertical; min-height: 130px; }
.sw-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sw-form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.sw-form-status { font-size: .92rem; font-weight: 600; }
.sw-form-status.is-ok { color: #15803d; }
.sw-form-status.is-error { color: #b91c1c; }
.sw-contact__info { padding: clamp(18px, 3vw, 28px); border-radius: var(--sw-radius); background: var(--sw-accent-soft); display: grid; gap: 16px; align-content: start; }
.sw-contact__info dl { margin: 0; display: grid; gap: 14px; }
.sw-contact__info dt { font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--sw-accent-deep); }
.sw-contact__info dd { margin: 2px 0 0; color: var(--sw-ink); }
.sw-map { width: 100%; min-height: 220px; border: 0; border-radius: 12px; }

/* ---------- Footer & lightbox ---------- */
/* The school's own color, deepened so light text always reads on it. */
.sw-footer { margin-top: clamp(28px, 4vw, 48px); padding: 44px 0 26px; background: color-mix(in srgb, var(--sw-accent) 42%, #0b0f14); color: rgba(255, 255, 255, .78); }
.sw-footer a { color: #fff; }
.sw-footer__grid { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 28px; align-items: start; }
.sw-footer__name { font-size: 1.2rem; font-weight: 800; color: #fff; }
.sw-footer__motto { margin-top: 6px; font-style: italic; }
.sw-footer__contact { display: grid; gap: 6px; font-size: .94rem; }
.sw-social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sw-social a { display: inline-block; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.28); text-decoration: none; font-size: .86rem; font-weight: 600; }
.sw-social a:hover { background: rgba(255,255,255,.1); }
.sw-site .sw-footer__legal { margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); font-size: .84rem; color: rgba(255,255,255,.62); }

.sw-lightbox { position: fixed; inset: 0; z-index: 10050; display: grid; place-items: center; padding: 24px; background: rgba(5, 8, 12, .92); }
.sw-lightbox[hidden] { display: none; }
.sw-lightbox figure { margin: 0; max-width: min(1100px, 92vw); }
.sw-lightbox img { max-height: 80vh; width: auto; margin: 0 auto; border-radius: 10px; }
.sw-lightbox figcaption { margin-top: 12px; color: #e5e7eb; text-align: center; }
.sw-lightbox__close, .sw-lightbox__nav { position: absolute; border: 0; background: rgba(255,255,255,.12); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.sw-lightbox__close { top: 18px; right: 18px; }
.sw-lightbox__nav--prev { left: 18px; top: 50%; }
.sw-lightbox__nav--next { right: 18px; top: 50%; }

/* =========================================================
   1. CLASSIC — photo banner with centered title, alternating bands
   ========================================================= */
.sw-site--classic { --sw-heading: var(--sw-serif); }
.sw-site--classic h1, .sw-site--classic h2 { font-family: var(--sw-heading); }
.sw-hero__kicker { font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.sw-hero--plain { background: linear-gradient(135deg, var(--sw-accent-deep), var(--sw-accent)); }
.sw-hero__overlay { position: relative; z-index: 4; padding: 40px var(--sw-gutter); }
.sw-stage .sw-slider { height: clamp(300px, 56vh, 580px); }
.sw-intro { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; padding-block: clamp(20px, 3vw, 30px); border-bottom: 1px solid var(--sw-line); }
.sw-intro__logo { width: 64px; height: 64px; object-fit: contain; }
.sw-intro__kicker { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sw-accent-deep); }
.sw-intro__title { font-family: var(--sw-heading, inherit); font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin-top: 2px; }
.sw-intro__tagline { margin-top: 4px; color: var(--sw-muted); font-style: italic; font-size: 1.05rem; }
.sw-intro__actions { margin-top: 0; }
.sw-band { padding: clamp(32px, 4.5vw, 60px) 0; }
.sw-band--tint { background: var(--sw-tint); }
.sw-band--accent { padding: 18px 0; background: var(--sw-accent); color: var(--sw-on-accent, #fff); }
.sw-admit { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.sw-site--classic .sw-head { text-align: center; }
.sw-site--classic .sw-head__title { text-align: center; }
.sw-site--classic .sw-head__intro { margin-inline: auto; }
.sw-site--classic .sw-block--quickFacts .sw-fact { border: 0; background: transparent; }
.sw-site--classic .sw-gallery--classic { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.sw-site--classic .sw-faq { margin-inline: auto; }
.sw-site--classic .sw-welcome { max-width: 980px; margin: 0 auto; }

/* =========================================================
   2. MODERN (horizon) — split welcome, soft cards
   ========================================================= */
.sw-site--horizon { --sw-tint: #f4f6f8; background: var(--sw-tint); }
.sw-site--horizon .sw-section { background: var(--sw-paper); border-radius: 18px; padding: clamp(20px, 3vw, 34px); margin-top: 14px; }
.sw-site--horizon .sw-card, .sw-site--horizon .sw-step, .sw-site--horizon .sw-event, .sw-site--horizon .sw-notice, .sw-site--horizon .sw-article,
.sw-site--horizon .sw-person, .sw-site--horizon .sw-award, .sw-site--horizon .sw-quote, .sw-site--horizon .sw-faq__item, .sw-site--horizon .sw-fact { background: var(--sw-tint); border-color: transparent; }
.sw-site--horizon .sw-contact__form { background: var(--sw-tint); border: 0; }
.sw-site--horizon .sw-contact__form input, .sw-site--horizon .sw-contact__form textarea { background: var(--sw-paper); }
.sw-ribbon { background: var(--sw-ink); color: #e9edf2; font-size: .92rem; }
.sw-ribbon .sw-wrap { display: flex; align-items: center; gap: 12px; padding-block: 10px; }
.sw-ribbon p { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sw-ribbon__tag { flex: none; padding: 2px 10px; border-radius: 999px; background: var(--sw-accent); color: var(--sw-on-accent, #fff); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.sw-ribbon a { color: #fff; font-weight: 700; flex: none; }
.sw-hero--horizon { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 48px); align-items: center; padding-block: clamp(24px, 3.5vw, 44px); }
.sw-hero--photos-only { grid-template-columns: 1fr; }
.sw-hero--horizon .sw-hero__kicker { color: var(--sw-accent); }
.sw-hero--horizon .sw-hero__title { font-size: clamp(2.2rem, 4.6vw, 3.6rem); letter-spacing: -.02em; margin-top: 10px; }
.sw-hero--horizon .sw-hero__tagline { margin-top: 14px; font-size: 1.15rem; color: var(--sw-muted); }
.sw-hero--horizon .sw-btn--light { background: transparent; color: var(--sw-accent-deep); border-color: var(--sw-accent-line); backdrop-filter: none; }
.sw-hero__facts { display: flex; flex-wrap: wrap; gap: 28px; margin: 30px 0 0; padding-top: 22px; border-top: 1px solid var(--sw-line); }
.sw-hero__facts dt { font-size: 1.7rem; font-weight: 800; color: var(--sw-ink); line-height: 1.1; }
.sw-hero__facts dd { margin: 2px 0 0; font-size: .86rem; color: var(--sw-muted); }
.sw-hero--horizon .sw-slider--card { border-radius: 18px; aspect-ratio: 4 / 3; }
.sw-main--cards { padding-bottom: 10px; }
.sw-site--horizon .sw-gallery--horizon { display: block; columns: 3 260px; column-gap: 14px; }
.sw-site--horizon .sw-gallery--horizon .sw-gallery__item { break-inside: avoid; margin-bottom: 14px; }
.sw-site--horizon .sw-gallery--horizon .sw-gallery__open img { aspect-ratio: auto; height: auto; }
.sw-site--horizon .sw-events--horizon { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.sw-site--horizon .sw-notices--horizon { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }

/* =========================================================
   3. MAGAZINE (editorial) — masthead, front page, side column
   ========================================================= */
.sw-site--editorial { --sw-radius: 4px; --sw-line: #dcdfe4; }
.sw-site--editorial h1, .sw-site--editorial h2, .sw-site--editorial h3 { font-family: var(--sw-serif); }
.sw-masthead { padding-top: 8px; text-align: center; }
.sw-masthead__rule { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 3px solid var(--sw-ink); border-bottom: 1px solid var(--sw-ink); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sw-ink); }
.sw-masthead__title { text-align: center; font-size: clamp(2.6rem, 7vw, 5.2rem); font-weight: 900; letter-spacing: -.02em; margin: 20px 0 6px; }
.sw-masthead__tagline { font-style: italic; font-size: 1.12rem; color: var(--sw-muted); }
.sw-masthead__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; margin-top: 18px; padding: 12px 0; border-top: 1px solid var(--sw-ink); border-bottom: 3px double var(--sw-ink); }
.sw-masthead__nav a { color: var(--sw-ink); text-decoration: none; font-size: .86rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.sw-masthead__nav a:hover { color: var(--sw-accent); }
.sw-front { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; margin-top: 26px; }
.sw-front__lead .sw-slider--card { border-radius: 4px; box-shadow: none; aspect-ratio: 16 / 9; }
.sw-front__side { display: grid; gap: 16px; align-content: start; }
.sw-front__box { display: block; padding: 20px; border: 1px solid var(--sw-line); text-decoration: none; color: inherit; }
.sw-front__box h2 { font-size: 1.45rem; margin: 6px 0 8px; }
.sw-front__box--accent { background: var(--sw-accent); color: var(--sw-on-accent, #fff); border-color: transparent; }
.sw-front__box--accent .sw-btn { margin-top: 14px; }
.sw-front__label { font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--sw-accent); }
.sw-front__box--accent .sw-front__label { color: inherit; opacity: .85; }
.sw-paper { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; margin-top: 34px; }
.sw-paper__main > .sw-section + .sw-section, .sw-paper__aside > .sw-section + .sw-section { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--sw-ink); }
.sw-paper__aside { border-left: 1px solid var(--sw-line); padding-left: 30px; }
.sw-site--editorial .sw-head__kicker { color: var(--sw-accent); }
.sw-site--editorial .sw-head__title { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.sw-paper__aside .sw-head__title { font-size: 1.35rem; }
.sw-site--editorial .sw-card, .sw-site--editorial .sw-article, .sw-site--editorial .sw-step, .sw-site--editorial .sw-person,
.sw-site--editorial .sw-award, .sw-site--editorial .sw-quote, .sw-site--editorial .sw-faq__item, .sw-site--editorial .sw-fact { border-radius: 4px; }
.sw-articles--editorial { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.sw-articles--editorial .sw-article { border: 0; border-top: 1px solid var(--sw-line); border-radius: 0; padding: 20px 0; background: transparent; }
.sw-articles--editorial .sw-article--lead { grid-column: 1 / -1; border-top: 0; padding-top: 0; }
.sw-articles--editorial .sw-article--lead .sw-article__title { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.sw-articles--editorial .sw-article--lead .sw-article__full { columns: 2 280px; column-gap: 32px; }
.sw-gallery--editorial { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sw-gallery--editorial .sw-gallery__item:first-child { grid-column: span 2; grid-row: span 2; }
.sw-gallery--editorial .sw-gallery__item:first-child .sw-gallery__open img { aspect-ratio: auto; height: 100%; min-height: 100%; }
.sw-gallery--editorial .sw-gallery__open { border-radius: 2px; height: 100%; }
.sw-events--editorial { gap: 0; }
.sw-events--editorial .sw-event { grid-template-columns: 54px 1fr; padding: 14px 0; border: 0; border-bottom: 1px solid var(--sw-line); border-radius: 0; background: transparent; }
.sw-events--editorial .sw-event__date { height: 54px; border-radius: 2px; background: var(--sw-ink); color: #fff; }
.sw-events--editorial .sw-event__day { font-size: 1.3rem; }
.sw-notices--editorial { gap: 0; }
.sw-notices--editorial .sw-notice { border: 0; border-bottom: 1px solid var(--sw-line); border-radius: 0; padding: 12px 0 12px 18px; position: relative; background: transparent; }
.sw-notices--editorial .sw-notice::before { content: "■"; position: absolute; left: 0; top: 13px; font-size: .6rem; color: var(--sw-accent); }

/* =========================================================
   4. STORY — immersive opening, numbered chapters, timeline
   ========================================================= */
.sw-site--story { --sw-max: 1100px; }
.sw-hero--story { position: relative; min-height: clamp(420px, 74vh, 720px); display: flex; align-items: flex-end; overflow: hidden; color: #fff; }
.sw-hero--story .sw-slider { position: absolute; inset: 0; }
.sw-hero--story .sw-slider::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.7)); pointer-events: none; }
.sw-hero--story .sw-slide__caption { display: none; }
.sw-hero--story .sw-slider__dots { left: auto; right: var(--sw-gutter); transform: none; bottom: 28px; }
.sw-hero--story .sw-slider__arrow { display: none; }
.sw-hero--story .sw-hero__overlay { text-align: left; max-width: none; width: 100%; padding: 0 var(--sw-gutter) clamp(36px, 7vw, 80px); }
.sw-hero--story .sw-hero__title { color: #fff; font-family: var(--sw-serif); font-size: clamp(2.2rem, 5.5vw, 4.2rem); font-weight: 700; line-height: 1.05; margin-top: 8px; max-width: 18ch; }
.sw-hero--story .sw-hero__tagline { margin-top: 18px; font-size: clamp(1.1rem, 2vw, 1.4rem); max-width: 46ch; opacity: .95; }
.sw-hero__scroll { display: inline-block; margin-top: 26px; color: #fff !important; font-weight: 700; text-decoration: none; letter-spacing: .04em; opacity: .9; }
.sw-chapter { padding: clamp(36px, 5vw, 64px) 0; border-bottom: 1px solid var(--sw-line); }
.sw-chapter:nth-child(even) { background: var(--sw-tint); }
.sw-chapter--facts { padding: 0; border: 0; background: var(--sw-ink) !important; color: #fff; }
.sw-chapter--facts .sw-facts { gap: 0; }
.sw-chapter--facts .sw-fact { background: transparent; border: 0; border-right: 1px solid rgba(255,255,255,.14); border-radius: 0; padding: 34px 16px; }
.sw-chapter--facts .sw-fact__value { color: #fff; }
.sw-chapter--facts .sw-fact__label { color: rgba(255,255,255,.7); }
.sw-site--story .sw-head { display: grid; grid-template-columns: auto 1fr; column-gap: 22px; align-items: end; }
.sw-head__num { grid-row: span 2; font-family: var(--sw-serif); font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 700; line-height: .9; color: var(--sw-accent); }
.sw-site--story .sw-head__title { font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -.02em; }
.sw-site--story .sw-head__intro { grid-column: 2; }
.sw-gallery--story { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; padding-bottom: 12px; margin-right: calc(-1 * var(--sw-gutter)); padding-right: var(--sw-gutter); }
.sw-gallery--story .sw-gallery__item { flex: 0 0 min(78vw, 460px); scroll-snap-align: start; }
.sw-gallery--story .sw-gallery__open img { aspect-ratio: 4 / 5; }
.sw-timeline { list-style: none; margin: 0; padding: 0 0 0 28px; position: relative; display: grid; gap: 30px; }
.sw-timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--sw-accent-line); }
.sw-timeline__item { position: relative; }
.sw-timeline__item::before { content: ""; position: absolute; left: -28px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--sw-accent); box-shadow: 0 0 0 5px var(--sw-accent-soft); }
.sw-timeline__item.is-past::before { background: var(--sw-paper); border: 2px solid var(--sw-accent-line); box-shadow: none; }
.sw-timeline__date { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--sw-accent); }
.sw-timeline__item h3 { font-size: 1.3rem; margin-top: 4px; }
.sw-timeline__item p { margin-top: 6px; max-width: 64ch; }
.sw-site--story .sw-quote { background: transparent; border: 0; padding: 0 0 0 22px; border-left: 3px solid var(--sw-accent); border-radius: 0; }
.sw-site--story .sw-quote::before { display: none; }
.sw-site--story .sw-quote blockquote { font-size: 1.18rem; font-family: var(--sw-serif); font-style: italic; color: var(--sw-ink); }
.sw-site--story .sw-welcome__message { font-family: var(--sw-serif); font-size: clamp(1.25rem, 2.4vw, 1.7rem); }

/* =========================================================
   5. CAMPUS — side navigation with school details
   ========================================================= */
.sw-site--campus { --sw-max: 1080px; }
body[data-page="publicDashboard"][data-sw-layout="campus"] .sticky-nav { display: none !important; }
body[data-page="publicDashboard"][data-sw-layout="campus"] .sw-site { margin-top: -16px; }
.sw-campus { display: grid; grid-template-columns: 290px minmax(0, 1fr); min-height: 100vh; }
.sw-campus__side { position: sticky; top: 68px; align-self: start; height: calc(100vh - 68px); overflow-y: auto; display: flex; flex-direction: column; gap: 22px; padding: 30px 24px; background: #14181f; color: rgba(255,255,255,.82); border-top: 4px solid var(--sw-accent); }
.sw-campus__brand img, .sw-campus__initials { width: 64px; height: 64px; border-radius: 16px; object-fit: contain; background: #fff; padding: 6px; }
.sw-campus__initials { display: grid; place-items: center; color: var(--sw-accent-deep); font-weight: 900; font-size: 1.4rem; }
.sw-campus__name { margin-top: 14px; font-size: 1.25rem; font-weight: 800; color: #fff; line-height: 1.25; }
.sw-campus__motto { margin-top: 6px; font-size: .92rem; font-style: italic; opacity: .85; }
.sw-campus__nav { display: grid; gap: 2px; }
.sw-campus__nav a { color: rgba(255,255,255,.86); text-decoration: none; padding: 9px 12px; border-radius: 10px; font-weight: 600; font-size: .95rem; }
.sw-campus__nav a { border-left: 3px solid transparent; }
.sw-campus__nav a:hover, .sw-campus__nav a.is-active { background: rgba(255,255,255,.08); color: #fff; border-left-color: var(--sw-accent); }
.sw-campus__contact { margin-top: auto; display: grid; gap: 8px; font-size: .9rem; }
.sw-campus__contact a { color: #fff; text-decoration: none; word-break: break-word; }
.sw-campus__contact .sw-btn--primary { margin-top: 8px; }
.sw-campus__main { padding: clamp(28px, 4vw, 56px) clamp(16px, 4vw, 56px) 0; max-width: calc(var(--sw-max) + 112px); width: 100%; }
.sw-campus__intro .sw-hero__kicker { color: var(--sw-accent); }
.sw-campus__intro .sw-hero__title { font-size: clamp(2rem, 4vw, 3rem); margin-top: 8px; letter-spacing: -.02em; }
.sw-campus__intro .sw-hero__tagline { margin-top: 10px; color: var(--sw-muted); font-size: 1.1rem; }
.sw-campus__photos { margin-top: 26px; }
.sw-campus__photos .sw-slider--card { aspect-ratio: 16 / 7; }
.sw-site--campus .sw-main > .sw-section { padding: clamp(26px, 3.5vw, 40px) 0; border-bottom: 1px solid var(--sw-line); }
.sw-site--campus .sw-head__title { font-size: clamp(1.45rem, 2.2vw, 1.85rem); }
.sw-site--campus .sw-gallery--campus { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.sw-site--campus .sw-footer { margin-top: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .sw-paper { grid-template-columns: 1fr; }
  .sw-paper__aside { border-left: 0; padding-left: 0; border-top: 3px double var(--sw-ink); padding-top: 30px; }
  .sw-campus { grid-template-columns: 1fr; }
  .sw-campus__side { position: static; height: auto; padding: 22px var(--sw-gutter); }
  .sw-campus__nav { display: flex; flex-wrap: wrap; }
  .sw-campus__contact { margin-top: 0; }
}
@media (max-width: 860px) {
  .sw-hero--horizon, .sw-about--image, .sw-front, .sw-contact { grid-template-columns: 1fr; }
  .sw-footer__grid { grid-template-columns: 1fr; }
  .sw-welcome { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .sw-welcome__sign { justify-items: center; }
  .sw-articles--editorial { grid-template-columns: 1fr; }
  .sw-gallery--editorial { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .sw-form-row { grid-template-columns: 1fr; }
  .sw-event { grid-template-columns: 60px 1fr; padding: 14px; }
  .sw-event__date { height: 60px; }
  .sw-about__facts div { grid-template-columns: 1fr; gap: 2px; }
  .sw-masthead__rule { flex-direction: column; align-items: center; gap: 4px; }
  .sw-site--story .sw-head { grid-template-columns: 1fr; }
  .sw-head__num { grid-row: auto; font-size: 2.6rem; }
  .sw-site--story .sw-head__intro { grid-column: 1; }
  .sw-chapter--facts .sw-facts { grid-template-columns: repeat(2, 1fr); }
  .sw-slider__arrow { width: 38px; height: 38px; font-size: 1.3rem; }
}

/* Classic: About text centered in a reading column when there's no photo. */
.sw-site--classic .sw-about:not(.sw-about--image) { max-width: 860px; margin-inline: auto; }

/* Banded layouts run straight into the footer. */
.sw-site--classic .sw-footer, .sw-site--story .sw-footer { margin-top: 0; }
.sw-paper__main .sw-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }

/* Hide sideways overflow without turning the body into a scroll box
   (overflow-x: hidden would stop sticky elements like the Campus side menu). */
body[data-page="publicDashboard"] { overflow-x: clip !important; overflow-y: visible !important; }

/* Captions leave room for the slider dots. */
.sw-slider--card .sw-slide__caption { padding-bottom: 38px; }

@media (max-width: 640px) {
  /* Full-width banners: swipe dots only, so arrows never cover the title. */
  .sw-slider--cover .sw-slider__arrow { display: none; }
  /* Campus on phones: compact school bar with a one-line, swipeable menu. */
  .sw-campus__side { gap: 14px; padding: 18px var(--sw-gutter); }
  .sw-campus__brand { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
  .sw-campus__brand img, .sw-campus__initials { width: 48px; height: 48px; grid-row: span 2; }
  .sw-campus__name { margin-top: 0; font-size: 1.05rem; }
  .sw-campus__motto { margin-top: 2px; }
  .sw-campus__nav { flex-wrap: nowrap; overflow-x: auto; gap: 4px; margin-inline: calc(-1 * var(--sw-gutter)); padding-inline: var(--sw-gutter); scrollbar-width: none; }
  .sw-campus__nav a { flex: none; white-space: nowrap; padding: 7px 12px; border-left: 0; border-bottom: 2px solid transparent; border-radius: 8px; }
  .sw-campus__nav a.is-active { border-bottom-color: var(--sw-accent); }
  .sw-campus__contact a:not(.sw-btn) { display: none; }
}
@media (max-width: 560px) { .sw-chapter--facts .sw-fact:nth-child(2n) { border-right: 0; } }

/* Welcome without a photo: the message reads as a letter. */
.sw-welcome--text { grid-template-columns: 1fr; max-width: 820px; }
.sw-site--classic .sw-welcome--text { text-align: center; }
.sw-site--classic .sw-welcome--text .sw-welcome__sign { justify-items: center; }

/* Registration success message from the online form. */
body[data-page="publicDashboard"] .alert-success { max-width: 1240px; margin: 12px auto 0; padding: 12px 16px; border-radius: 10px; background: #dcfce7; color: #166534; font-weight: 600; }

@media (max-width: 860px) {
  .sw-intro { grid-template-columns: auto 1fr; }
  .sw-intro__actions { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .sw-intro__logo { width: 48px; height: 48px; }
  .sw-stage .sw-slider { height: clamp(240px, 46vh, 360px); }
}

/* =========================================================
   6. SPOTLIGHT — brand-color welcome beside photos, alternating rows
   ========================================================= */
.sw-site--spotlight { --sw-heading: var(--sw-sans); }
.sw-spot-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: clamp(360px, 60vh, 600px); background: var(--sw-accent); }
.sw-spot-hero--photos { grid-template-columns: 1fr; }
.sw-spot-hero--text { grid-template-columns: 1fr; }
.sw-spot-hero__panel { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: clamp(28px, 5vw, 64px) clamp(20px, 4vw, 56px); color: var(--sw-on-accent, #fff); }
.sw-spot-hero__panel .sw-hero__kicker { opacity: .85; }
.sw-spot-hero__logo { width: 56px; height: 56px; object-fit: contain; margin-bottom: 14px; border-radius: 12px; background: #fff; padding: 5px; }
.sw-site .sw-spot-hero__title { color: inherit; font-size: clamp(2rem, 4vw, 3.3rem); letter-spacing: -.02em; margin-top: 6px; }
.sw-spot-hero__tagline { margin-top: 10px; font-size: 1.12rem; opacity: .9; }
.sw-spot-hero__panel .sw-btn--primary { background: var(--sw-on-accent, #fff); color: var(--sw-accent-deep); }
.sw-spot-hero__panel .sw-btn--ghost { border-color: currentColor; color: inherit; }
.sw-spot-hero__media .sw-slider { height: 100%; min-height: 320px; }
.sw-site--spotlight .sw-band--facts { background: var(--sw-ink); padding: 24px 0; }
.sw-site--spotlight .sw-band--facts .sw-fact { background: transparent; border: 0; }
.sw-site--spotlight .sw-band--facts .sw-fact__value { color: #fff; }
.sw-site--spotlight .sw-band--facts .sw-fact__label { color: rgba(255,255,255,.7); }
.sw-site--spotlight .sw-programs__grid { grid-template-columns: 1fr; gap: 18px; }
.sw-site--spotlight .sw-program { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; border: 0; background: transparent; }
.sw-site--spotlight .sw-program:hover { transform: none; box-shadow: none; }
.sw-site--spotlight .sw-program .sw-card__media { aspect-ratio: 16 / 10; border-radius: var(--sw-radius); }
.sw-site--spotlight .sw-program:nth-child(even) .sw-card__media { order: 2; }
.sw-site--spotlight .sw-program .sw-card__media--blank { display: none; }
.sw-site--spotlight .sw-program:has(.sw-card__media--blank) { grid-template-columns: 1fr; border-left: 4px solid var(--sw-accent); border-radius: 0; }
.sw-site--spotlight .sw-program .sw-card__body { padding: clamp(10px, 3vw, 32px); }
.sw-site--spotlight .sw-program .sw-card__body h3 { font-size: 1.35rem; }
.sw-site--spotlight .sw-head__title { font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -.01em; }

/* =========================================================
   7. MINIMAL — text-first, headings on the left
   ========================================================= */
.sw-site--minimal { --sw-max: 1100px; --sw-radius: 8px; }
.sw-min-head { padding-top: clamp(24px, 4vw, 48px); }
.sw-min-head .sw-hero__kicker { color: var(--sw-accent-deep); }
.sw-min-head__title { font-size: clamp(2.2rem, 5vw, 3.8rem); letter-spacing: -.03em; font-weight: 700; margin-top: 6px; }
.sw-min-head__tagline { margin-top: 10px; font-size: 1.15rem; color: var(--sw-muted); max-width: 60ch; }
.sw-min-head__photos { margin-top: clamp(22px, 3vw, 34px); }
.sw-min-head__photos .sw-slider--card { aspect-ratio: 16 / 7; border-radius: 8px; }
.sw-min-main > .sw-section { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; padding: clamp(28px, 4vw, 44px) 0; border-top: 1px solid var(--sw-line); }
.sw-min-main > .sw-section:first-child { margin-top: clamp(24px, 3vw, 36px); }
.sw-min-main > .sw-section > .sw-head { margin: 0; }
.sw-min-main .sw-head__title { font-size: 1.15rem; font-weight: 700; position: sticky; top: 130px; }
.sw-min-main .sw-head__intro { font-size: .92rem; }
.sw-min-main > .sw-block--quickFacts { display: block; }
.sw-site--minimal .sw-card, .sw-site--minimal .sw-step, .sw-site--minimal .sw-event, .sw-site--minimal .sw-notice, .sw-site--minimal .sw-article,
.sw-site--minimal .sw-person, .sw-site--minimal .sw-award, .sw-site--minimal .sw-quote, .sw-site--minimal .sw-faq__item, .sw-site--minimal .sw-fact { border-radius: 8px; box-shadow: none; }
.sw-site--minimal .sw-card:hover { transform: none; box-shadow: none; }
.sw-site--minimal .sw-fact { text-align: left; border: 0; border-left: 2px solid var(--sw-accent); border-radius: 0; padding: 4px 16px; background: transparent; }
.sw-site--minimal .sw-events { gap: 0; }
.sw-site--minimal .sw-event { border: 0; border-bottom: 1px solid var(--sw-line); border-radius: 0; padding: 14px 0; background: transparent; }
.sw-site--minimal .sw-event__date { background: transparent; height: auto; align-content: start; }
.sw-site--minimal .sw-notices { gap: 0; }
.sw-site--minimal .sw-notice { border: 0; border-bottom: 1px solid var(--sw-line); border-radius: 0; padding: 14px 0; background: transparent; }
.sw-site--minimal .sw-articles { grid-template-columns: 1fr; gap: 0; }
.sw-site--minimal .sw-article { border: 0; border-bottom: 1px solid var(--sw-line); border-radius: 0; padding: 18px 0; background: transparent; }

/* =========================================================
   8. MOSAIC — a grid of tiles
   ========================================================= */
.sw-site--mosaic { --sw-tint: #f3f4f6; background: var(--sw-tint); }
.sw-mosaic { padding-top: clamp(16px, 2vw, 24px); }
.sw-tile { background: var(--sw-paper); border-radius: 20px; overflow: hidden; }
.sw-mosaic__top { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 190px; gap: 14px; }
.sw-tile--photos { grid-column: span 3; grid-row: span 2; }
.sw-tile--photos .sw-slider { height: 100%; }
.sw-tile--brand { grid-column: span 1; grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; background: var(--sw-accent); color: var(--sw-on-accent, #fff); }
.sw-tile--brand .sw-hero__kicker { opacity: .85; }
.sw-site .sw-mosaic__title { color: inherit; font-size: clamp(1.5rem, 2.4vw, 2.1rem); margin-top: 6px; }
.sw-mosaic__tagline { margin-top: 8px; opacity: .9; }
.sw-tile--brand .sw-actions { margin-top: 16px; }
.sw-tile--brand .sw-btn--primary { background: var(--sw-on-accent, #fff); color: var(--sw-accent-deep); }
.sw-tile--brand .sw-btn--ghost { border-color: currentColor; color: inherit; }
.sw-tile--peek { grid-column: span 2; display: block; height: 100%; }
.sw-tile--peek img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.sw-tile--peek:hover img { transform: scale(1.03); }
.sw-mosaic__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: row dense; gap: 14px; margin-top: 14px; }
.sw-mosaic__grid > .sw-tile { grid-column: span 4; padding: clamp(18px, 2.4vw, 28px); }
.sw-mosaic__grid > .sw-tile--welcome, .sw-mosaic__grid > .sw-tile--about, .sw-mosaic__grid > .sw-tile--admissions,
.sw-mosaic__grid > .sw-tile--leadership, .sw-mosaic__grid > .sw-tile--achievements, .sw-mosaic__grid > .sw-tile--testimonials,
.sw-mosaic__grid > .sw-tile--faq, .sw-mosaic__grid > .sw-tile--events, .sw-mosaic__grid > .sw-tile--announcements { grid-column: span 2; }
.sw-mosaic__grid > .sw-tile--quickFacts { padding: 10px; background: transparent; }
.sw-site--mosaic .sw-head__title { font-size: 1.35rem; }
.sw-site--mosaic .sw-card, .sw-site--mosaic .sw-step, .sw-site--mosaic .sw-event, .sw-site--mosaic .sw-notice, .sw-site--mosaic .sw-article,
.sw-site--mosaic .sw-person, .sw-site--mosaic .sw-award, .sw-site--mosaic .sw-quote, .sw-site--mosaic .sw-faq__item { background: var(--sw-tint); border-color: transparent; }
.sw-site--mosaic .sw-contact__form { background: var(--sw-tint); border: 0; }
.sw-site--mosaic .sw-contact__form input, .sw-site--mosaic .sw-contact__form textarea { background: var(--sw-paper); }
.sw-site--mosaic .sw-welcome { grid-template-columns: 1fr; }
.sw-site--mosaic .sw-steps, .sw-site--mosaic .sw-people, .sw-site--mosaic .sw-awards, .sw-site--mosaic .sw-quotes { grid-template-columns: 1fr; }
.sw-site--mosaic .sw-tile--admissions .sw-steps { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.sw-site--mosaic .sw-tile--leadership .sw-people { grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.sw-site--mosaic .sw-gallery--mosaic { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }

@media (max-width: 1024px) {
  .sw-spot-hero { grid-template-columns: 1fr; }
  .sw-spot-hero__media .sw-slider { min-height: 0; height: clamp(260px, 48vw, 420px); }
  .sw-mosaic__top { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; }
  .sw-tile--photos { grid-column: span 2; grid-row: auto; }
  .sw-tile--photos .sw-slider { min-height: 0; height: clamp(240px, 50vw, 420px); }
  .sw-tile--brand { grid-column: span 2; grid-row: auto; justify-content: flex-start; }
  .sw-tile--peek { grid-column: span 1; height: 150px; }
  .sw-mosaic__grid > .sw-tile { grid-column: span 4 !important; }
}
@media (max-width: 760px) {
  .sw-min-main > .sw-section { grid-template-columns: 1fr; gap: 14px; }
  .sw-min-main .sw-head__title { position: static; }
  .sw-site--spotlight .sw-program { grid-template-columns: 1fr; }
  .sw-site--spotlight .sw-program:nth-child(even) .sw-card__media { order: 0; }
}

/* Spotlight: programs without photos sit two across. */
.sw-site--spotlight .sw-programs__grid:not(:has(img.sw-card__media)) { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
/* Spotlight gallery: tight edge-to-edge grid. */
.sw-site--spotlight .sw-gallery--spotlight { gap: 6px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.sw-site--spotlight .sw-gallery--spotlight .sw-gallery__open { border-radius: 4px; }
/* Minimal gallery: three neat columns. */
.sw-site--minimal .sw-gallery--minimal { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 10px; }
/* Minimal: content column fits two cards across. */
.sw-site--minimal .sw-cards, .sw-site--minimal .sw-steps, .sw-site--minimal .sw-people, .sw-site--minimal .sw-awards, .sw-site--minimal .sw-quotes { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.sw-min-main > .sw-section > :not(.sw-head):not(.sw-anchor) { grid-column: 2; }
@media (max-width: 760px) { .sw-min-main > .sw-section > :not(.sw-head):not(.sw-anchor) { grid-column: 1; } }
/* Outline buttons over photos read in white. */
.sw-hero--story .sw-btn--ghost { color: #fff; border-color: rgba(255,255,255,.75); }
.sw-hero--story .sw-btn--ghost:hover { background: rgba(255,255,255,.12); }
