/* Mount Carmel School — public styles
   Colors are taken from the school crest. */

@font-face { font-family: "Marcellus"; src: url("../fonts/Marcellus.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "UnifrakturMaguntia"; src: url("../fonts/UnifrakturMaguntia.woff2") format("woff2"); font-display: swap; }

:root {
  --red: #C62A21;
  --red-dark: #A01F18;
  --navy: #25236E;
  --navy-deep: #191852;
  --gold: #E9B526;
  --gold-soft: #FCF3D6;
  --ink: #1E2033;
  --muted: #5B5F73;
  --line: #E2E3EB;
  --alt: #F4F5F9;
  --white: #FFFFFF;

  --serif: "Marcellus", "Palatino Linotype", Palatino, Georgia, serif;
  --blackletter: "UnifrakturMaguntia", "Old English Text MT", "Palatino Linotype", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1180px;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: .18em; }
a:hover { color: var(--red); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.2; color: var(--navy); margin: 0 0 .5em; }
h1 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.75rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.icon { width: 1.1em; height: 1.1em; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 860px; }
.center { text-align: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .7em 1.3em; border-radius: var(--radius);
  background: var(--red); color: #fff; border: 2px solid var(--red);
  font: 600 .95rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-small { padding: .5em 1em; font-size: .88rem; }
.btn-row { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center; }

/* Top bar */
.topbar { background: var(--navy-deep); color: #D9DAF0; font-size: .85rem; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 38px; }
.topbar a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: .4em; }
.topbar a:hover { color: var(--gold); }
.topbar-contact { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.topbar-social { display: flex; gap: .9rem; }
.topbar-social .icon { width: 1.2em; height: 1.2em; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px;
  background: linear-gradient(90deg, var(--red) 0 33.3%, var(--gold) 33.3% 66.6%, var(--navy) 66.6%); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 84px; }
.brand { display: flex; align-items: center; gap: .85rem; text-decoration: none; }
.brand img { width: 52px; height: auto; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-family: var(--blackletter); font-size: 1.85rem; color: var(--red); line-height: 1.05; text-shadow: 1px 1px 0 #6E120C; letter-spacing: .01em; }
.brand-place { font-size: .82rem; color: var(--red); letter-spacing: .02em; margin-top: .15rem; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.site-nav a {
  display: block; padding: .55rem .7rem; color: var(--ink); text-decoration: none;
  font-weight: 500; font-size: .95rem; border-radius: var(--radius);
}
.site-nav a:hover { color: var(--red); }
.site-nav a[aria-current="page"] { color: var(--red); box-shadow: inset 0 -2px 0 var(--red); border-radius: 0; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem; color: var(--navy); cursor: pointer; }
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle-close { display: none; }

/* Important strip */
.alert-strip { background: var(--gold-soft); border-bottom: 1px solid #F1DC9C; font-size: .93rem; }
.alert-strip .wrap { display: flex; align-items: center; gap: .75rem; padding-top: .55rem; padding-bottom: .55rem; }
.alert-strip-tag { background: var(--red); color: #fff; font-size: .75rem; font-weight: 700; padding: .2em .6em; border-radius: 3px; flex: none; }
.alert-strip a { color: var(--ink); font-weight: 600; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alert-strip a:hover { color: var(--red); text-decoration: underline; }

/* Slider */
.slider { position: relative; background: var(--navy-deep); }
.slider-track { display: grid; }
.slide { grid-area: 1 / 1; margin: 0; position: relative; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s .9s; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s ease; z-index: 1; }
.slide img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.slide-cap {
  position: absolute; left: 0; right: 0; bottom: 0; color: #fff;
  padding: 4.5rem 0 2.6rem;
  background: linear-gradient(to top, rgba(25, 24, 82, .92), rgba(25, 24, 82, .55) 60%, rgba(25, 24, 82, 0));
}
.slide-cap .wrap { max-width: var(--wrap); }
.slide-title { font-family: var(--serif); font-size: clamp(1.4rem, 1rem + 1.8vw, 2.4rem); line-height: 1.15; margin: 0 0 .35rem; max-width: 26ch; }
.slide-desc { margin: 0; max-width: 60ch; color: #E4E5F5; font-size: 1.02rem; }
.slide-link { display: inline-block; margin-top: .8rem; color: var(--gold); font-weight: 600; }
.slide-link:hover { color: #fff; }
.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .85); color: var(--navy); display: grid; place-items: center;
}
.slider-btn:hover { background: #fff; }
.slider-btn .icon { width: 22px; height: 22px; }
.slider-prev { left: 16px; }
.slider-next { right: 16px; }
.slider-dots { position: absolute; z-index: 3; right: 20px; bottom: 14px; display: flex; gap: 6px; }
.slider-dots button { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; }
.slider-dots button[aria-selected="true"] { background: var(--gold); border-color: var(--gold); }

.welcome-plain { background: var(--navy); color: #fff; padding: 4rem 0; text-align: center; }
.welcome-plain h1 { color: #fff; }
.welcome-plain p { color: var(--gold); font-family: var(--serif); font-size: 1.2rem; margin: 0; }

/* Sections */
.section { padding: 3.5rem 0; }
.section-tight { padding: 2.25rem 0 3.5rem; }
.section-alt { background: var(--alt); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.section-head .h-rule { margin: 0; }
.more { font-weight: 600; font-size: .92rem; white-space: nowrap; }
.h-rule { position: relative; padding-bottom: .55rem; }
.h-rule::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 66px; height: 3px;
  background: linear-gradient(90deg, var(--red) 0 33.3%, var(--gold) 33.3% 66.6%, var(--navy) 66.6%);
}
.empty { color: var(--muted); padding: 2rem; text-align: center; background: var(--alt); border-radius: var(--radius); }

/* Page heading band */
.page-head { background: var(--alt); border-bottom: 1px solid var(--line); padding: 2.2rem 0 1.8rem; }
.page-head h1 { margin: 0; }
.page-head-in { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.25rem; flex-wrap: wrap; }
.page-lede { color: var(--muted); margin: .4rem 0 0; }

/* Home: notices + principal */
.home-split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 3rem; align-items: start; }
.notice-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.notice-row { display: flex; gap: 1.1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.notice-row h3 { font-family: var(--sans); font-weight: 650; font-size: 1.05rem; margin: 0 0 .25rem; line-height: 1.35; }
.notice-row h3 a { color: var(--ink); text-decoration: none; }
.notice-row h3 a:hover { color: var(--red); text-decoration: underline; }
.notice-row p { margin: 0 0 .45rem; color: var(--muted); font-size: .94rem; }
.notice-row-body { min-width: 0; }

.date-tile {
  flex: none; width: 64px; text-align: center; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; align-self: flex-start; background: #fff;
}
.date-d { display: block; font-family: var(--serif); font-size: 1.6rem; line-height: 1; color: var(--navy); padding: .45rem 0 .3rem; }
.date-m { display: block; font-size: .7rem; font-weight: 600; background: var(--navy); color: #fff; padding: .2rem 0; }

.tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag {
  display: inline-flex; align-items: center; gap: .3em; font-size: .75rem; font-weight: 600;
  padding: .15em .55em; border-radius: 3px; background: var(--alt); color: var(--muted); border: 1px solid var(--line);
}
.tag .icon { width: 1em; height: 1em; }
.tag-red { background: #FBE9E7; color: var(--red-dark); border-color: #F3C7C2; }
.tag-gold { background: var(--gold-soft); color: #7A5A00; border-color: #F1DC9C; }

.principal-card { background: var(--navy); color: #E4E5F5; border-radius: var(--radius); padding: 1.8rem 1.6rem 1.9rem; }
.principal-card .h-rule { color: #fff; }
.principal-photo { margin: 1.2rem 0 1rem; }
.principal-photo img { width: 150px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); box-shadow: 8px 8px 0 var(--red); }
.principal-name { font-family: var(--serif); font-size: 1.2rem; color: #fff; margin: 0; }
.principal-role { font-size: .88rem; color: var(--gold); margin: 0 0 1rem; }
.principal-quote { margin: 0 0 1.4rem; font-size: .96rem; line-height: 1.7; border-left: 3px solid var(--gold); padding-left: 1rem; }
.principal-card .btn-outline { color: #fff; border-color: #fff; }
.principal-card .btn-outline:hover { background: #fff; color: var(--navy); }

/* Albums */
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; }
.album-card { text-decoration: none; color: var(--ink); display: block; }
.album-cover { display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--line); }
.album-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.album-card:hover .album-cover img { transform: scale(1.04); }
.album-count {
  position: absolute; right: .6rem; bottom: .6rem; display: inline-flex; align-items: center; gap: .3em;
  background: rgba(25, 24, 82, .85); color: #fff; font-size: .78rem; font-weight: 600; padding: .25em .6em; border-radius: 3px;
}
.album-meta { display: block; padding: .75rem .1rem 0; }
.album-title { display: block; font-weight: 650; line-height: 1.35; }
.album-card:hover .album-title { color: var(--red); }
.album-meta time { display: block; font-size: .85rem; color: var(--muted); margin-top: .15rem; }

/* Videos */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.5rem; align-items: start; }
.video-title { margin: .6rem 0 0; font-weight: 600; font-size: .95rem; line-height: 1.4; }
.yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; cursor: pointer; background: #000; border-radius: var(--radius); overflow: hidden; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.yt:hover img { opacity: 1; }
.yt-play {
  position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; transform: translate(-50%, -50%);
  background: var(--red); border-radius: 12px;
}
.yt-play::after { content: ""; position: absolute; left: 27px; top: 14px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
.yt iframe, .ig iframe { width: 100%; height: 100%; border: 0; display: block; }
.ig { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); }
.ig.is-loaded { aspect-ratio: 9 / 15; max-height: 680px; }
.ig-load {
  width: 100%; height: 100%; border: 0; cursor: pointer; color: #fff; padding: 1.5rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; text-align: center;
  background: linear-gradient(160deg, var(--navy) 0%, var(--red) 70%, var(--gold) 130%);
  font: 600 1rem/1.4 var(--sans);
}
.ig-load .icon { width: 40px; height: 40px; }
.ig-load small { font-weight: 400; opacity: .85; }

/* Motto band */
.motto-band { background: var(--red); color: #fff; padding: 2.4rem 0; text-align: center; }
.motto-band p { margin: 0; font-family: var(--serif); font-size: clamp(1.2rem, 1rem + 1.2vw, 1.75rem); line-height: 1.3; }

/* Notices list page */
.search { display: flex; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; min-width: min(100%, 320px); }
.search input { flex: 1; border: 0; padding: .65rem .9rem; font: inherit; min-width: 0; background: transparent; }
.search input:focus { outline: none; }
.search:focus-within { outline: 3px solid var(--gold); outline-offset: 1px; }
.search button { border: 0; background: var(--navy); color: #fff; padding: 0 .9rem; cursor: pointer; }
.search .icon { width: 20px; height: 20px; }
.result-line { color: var(--muted); }

.notice-feed { border-top: 1px solid var(--line); }
.feed-item { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 1.25rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.feed-item.has-thumb { grid-template-columns: 64px minmax(0, 1fr) 180px; }
.feed-body h2 { font-family: var(--sans); font-weight: 650; font-size: 1.2rem; line-height: 1.35; margin: 0 0 .35rem; }
.feed-body h2 a { color: var(--ink); text-decoration: none; }
.feed-body h2 a:hover { color: var(--red); text-decoration: underline; }
.feed-body p { color: var(--muted); margin: 0 0 .6rem; }
.read-more { display: inline-block; margin-top: .6rem; font-weight: 600; font-size: .92rem; }
.feed-thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }

/* Pagination */
.pager { display: flex; justify-content: center; align-items: center; gap: .5rem; margin-top: 2.25rem; flex-wrap: wrap; }
.pager-nums { display: flex; gap: .3rem; }
.pager a, .pager span { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 .75rem; border-radius: var(--radius); text-decoration: none; font-weight: 600; font-size: .92rem; }
.pager a { border: 1px solid var(--line); color: var(--navy); }
.pager a:hover { border-color: var(--navy); color: var(--navy); background: var(--alt); }
.pager .is-current { background: var(--navy); color: #fff; }
.pager .is-off { color: #A5A8B8; border: 1px solid var(--line); }
.pager-gap { color: var(--muted); min-width: 20px !important; padding: 0 !important; }

/* Article (notice detail) */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 3rem; align-items: start; }
.article { max-width: 760px; }
.back { display: inline-flex; align-items: center; gap: .3em; font-size: .9rem; font-weight: 600; text-decoration: none; margin-bottom: 1.1rem; }
.article h1 { margin-bottom: .4rem; }
.article-meta { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; color: var(--muted); font-size: .93rem; margin: 0 0 1.5rem; }
.article-hero { display: block; margin-bottom: 1.6rem; }
.article-hero img { width: 100%; border-radius: var(--radius); max-height: 560px; object-fit: cover; }
.prose { font-size: 1.05rem; line-height: 1.75; }
.prose p, .prose ul { margin: 0 0 1.1em; max-width: 72ch; }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: .3em; }
.prose a { word-break: break-word; }

.pdf-box {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; margin: 1.8rem 0;
  border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: var(--radius);
  text-decoration: none; color: var(--ink); background: #fff;
}
.pdf-box:hover { background: var(--alt); color: var(--ink); }
.pdf-icon { color: var(--red); }
.pdf-icon .icon { width: 32px; height: 32px; }
.pdf-text { flex: 1; min-width: 0; }
.pdf-name { display: block; font-weight: 650; overflow-wrap: anywhere; }
.pdf-size { display: block; font-size: .85rem; color: var(--muted); }
.pdf-action { display: inline-flex; align-items: center; gap: .35em; font-weight: 600; color: var(--red); white-space: nowrap; font-size: .92rem; }

.share { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.share-label { font-weight: 600; color: var(--muted); margin-right: .25rem; font-size: .92rem; }
.share-btn {
  display: inline-flex; align-items: center; gap: .4em; padding: .45em .85em; font: 600 .86rem/1.2 var(--sans);
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--navy); text-decoration: none; cursor: pointer;
}
.share-btn:hover { border-color: var(--navy); color: var(--navy); }

.side { position: sticky; top: 110px; }
.side-head { font-size: 1.15rem; padding-bottom: .5rem; border-bottom: 2px solid var(--navy); }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li { padding: .8rem 0; border-bottom: 1px solid var(--line); }
.side-list a { display: block; font-weight: 600; color: var(--ink); text-decoration: none; line-height: 1.4; font-size: .95rem; }
.side-list a:hover { color: var(--red); }
.side-list time { font-size: .8rem; color: var(--muted); }

/* Photo grids */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .75rem; margin-top: 1.75rem; }
.photo-grid-sm { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.photo-grid a { display: block; overflow: hidden; border-radius: var(--radius); background: var(--line); }
.photo-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .35s ease; }
.photo-grid a:hover img { transform: scale(1.04); }
.album-head { max-width: 820px; }

/* Principal page */
.principal-page { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 3rem; align-items: start; }
.principal-figure { margin: 0; position: sticky; top: 110px; }
.principal-figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); box-shadow: 10px 10px 0 var(--gold); }
.principal-figure figcaption { margin-top: 1.4rem; }
.principal-figure .principal-name { color: var(--navy); display: block; }
.principal-figure .principal-role { color: var(--red); display: block; }
.prose-letter p:first-child::first-letter { font-family: var(--serif); float: left; font-size: 3.4em; line-height: .9; padding: .05em .1em 0 0; color: var(--red); }
.signoff { font-family: var(--serif); font-size: 1.15rem; color: var(--navy); margin-top: 2rem; }
.signoff span { font-family: var(--sans); font-size: .9rem; color: var(--muted); }

/* About */
.about-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 3rem; align-items: start; }
.crest-panel { text-align: center; padding: 2rem 1.5rem; border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: var(--radius); }
.crest-panel img { width: 120px; margin: 0 auto 1.2rem; }
.crest-motto { font-family: var(--serif); font-size: 1.2rem; color: var(--navy); line-height: 1.35; margin-bottom: .4rem; }
.crest-note { color: var(--muted); font-size: .85rem; margin: 0; }

/* Contact */
.contact-layout { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.contact-info dl { margin: 0 0 1.75rem; }
.contact-info dl > div { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.contact-info dt { display: flex; align-items: center; gap: .5em; font-weight: 650; color: var(--navy); margin-bottom: .2rem; }
.contact-info dt .icon { color: var(--red); }
.contact-info dd { margin: 0 0 0 1.6em; color: var(--ink); }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--alt); aspect-ratio: 4 / 3; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Filters */
.filter { display: flex; gap: .4rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.filter a { padding: .45em 1em; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .9rem; }
.filter a:hover { border-color: var(--navy); color: var(--navy); }
.filter a[aria-current="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.channel-links { display: flex; gap: .5rem; flex-wrap: wrap; }

.h-big { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.2rem); }

/* Footer */
.site-footer { background: var(--navy-deep); color: #C9CAE3; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; padding-top: 3rem; padding-bottom: 2.5rem; }
.footer-brand { display: flex; gap: 1rem; align-items: flex-start; }
.footer-brand img { width: 58px; background: #fff; border-radius: var(--radius); padding: 6px; }
.footer-name { font-family: var(--blackletter); font-size: 1.7rem; color: #fff; margin: 0 0 .4rem; text-shadow: 1px 1px 0 var(--red); line-height: 1.1; }
.footer-motto { margin: 0; color: var(--gold); font-family: var(--serif); line-height: 1.4; }
.footer-head { font-family: var(--sans); font-size: .95rem; font-weight: 700; color: #fff; margin: 0 0 .9rem; }
.footer-list, .footer-links { list-style: none; margin: 0; padding: 0; }
.footer-list li { display: flex; gap: .6rem; margin-bottom: .7rem; }
.footer-list .icon { margin-top: .25em; color: var(--gold); }
.footer-links li { margin-bottom: .45rem; }
.site-footer a { color: #C9CAE3; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-social { display: flex; gap: 1rem; margin-top: 1.2rem; }
.footer-social .icon { width: 1.4em; height: 1.4em; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, .1); font-size: .84rem; }
.footer-base-in { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1rem; padding-bottom: 1rem; flex-wrap: wrap; }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(12, 12, 36, .95); display: none; align-items: center; justify-content: center; flex-direction: column; }
.lb.is-open { display: flex; }
.lb-img { max-width: 92vw; max-height: 80vh; object-fit: contain; border-radius: 4px; }
.lb-cap { color: #fff; margin-top: .9rem; text-align: center; padding: 0 1rem; font-size: .95rem; }
.lb-count { color: #A9AACB; font-size: .8rem; margin-top: .3rem; }
.lb button { position: absolute; background: rgba(255, 255, 255, .12); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.lb button:hover { background: rgba(255, 255, 255, .25); }
.lb button .icon { width: 26px; height: 26px; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
body.lb-lock { overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .home-split { grid-template-columns: 1fr; gap: 2.5rem; }
  .principal-card { display: grid; grid-template-columns: 150px 1fr; column-gap: 1.6rem; }
  .principal-card .h-rule { grid-column: 1 / -1; }
  .principal-photo { grid-row: span 4; margin-top: .4rem; }
  .principal-card .btn { justify-self: start; }
  .article-layout, .about-layout { grid-template-columns: 1fr; }
  .side { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 1200px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(25, 24, 82, .12); display: none; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; padding: .5rem 20px 1rem; gap: 0; }
  .site-nav a { padding: .85rem .25rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--red); padding-left: .8rem; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-close { display: inline; }
}
@media (max-width: 860px) {
  .principal-page, .contact-layout { grid-template-columns: 1fr; }
  .principal-figure { position: static; max-width: 280px; }
}

@media (max-width: 680px) {
  .wrap { padding: 0 16px; }
  .header-in { min-height: 70px; }
  .brand img { width: 42px; }
  .brand-name { font-size: 1.45rem; }
  .brand-place { font-size: .76rem; }
  .topbar-contact span { display: none; }
  .topbar-contact { gap: 1rem; }
  .topbar-contact .icon, .topbar-social .icon { width: 1.25em; height: 1.25em; }

  .slide img { aspect-ratio: 4 / 3; }
  .slide-cap { position: static; background: var(--navy); padding: 1rem 0 2.6rem; }
  .slide-title { font-size: 1.25rem; }
  .slide-desc { font-size: .93rem; }
  .slider-btn { top: calc(37.5vw); width: 38px; height: 38px; }
  .slider-prev { left: 8px; }
  .slider-next { right: 8px; }
  .slider-dots { left: 0; right: 0; justify-content: center; bottom: 12px; }

  .section { padding: 2.5rem 0; }
  .principal-card { display: block; }
  .feed-item, .feed-item.has-thumb { grid-template-columns: 56px minmax(0, 1fr); gap: 1rem; }
  .feed-item.has-thumb .feed-thumb { grid-column: 2; grid-row: 2; }
  .feed-thumb img { aspect-ratio: 16 / 9; }
  .date-tile { width: 56px; }
  .date-d { font-size: 1.35rem; }
  .album-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); gap: .5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
  .pdf-box { flex-wrap: wrap; }
  .pdf-action { width: 100%; justify-content: flex-end; }
  .search { width: 100%; }
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .topbar, .site-header, .site-footer, .alert-strip, .share, .side, .back { display: none !important; }
  body { color: #000; }
}

/* Text pages: headings and tables */
.prose-page h2 { font-size: 1.45rem; margin: 2rem 0 .8rem; padding-bottom: .4rem; border-bottom: 1px solid var(--line); }
.prose-page h2:first-child { margin-top: 0; }
.table-scroll { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--line); border-radius: var(--radius); }
.data-table { width: 100%; border-collapse: collapse; font-size: .94rem; line-height: 1.45; }
.data-table th, .data-table td { padding: .55rem .8rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th { background: var(--navy); color: #fff; font-weight: 600; white-space: nowrap; }
.data-table tbody tr:nth-child(even) { background: var(--alt); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.side-stack { display: grid; gap: 1.5rem; position: sticky; top: 110px; }
.side-contact p { display: flex; align-items: center; gap: .5rem; margin: 0 0 .6rem; overflow-wrap: anywhere; }
.side-contact .icon { color: var(--red); }
@media (max-width: 1020px) { .side-stack { position: static; } }

/* Pictures inside page text */
.text-figure { margin: 0 0 1.4em; }
.text-figure a { display: block; border-radius: var(--radius); overflow: hidden; background: var(--line); }
.text-figure img { width: 100%; }
.text-figure figcaption { font-size: .88rem; color: var(--muted); margin-top: .5rem; line-height: 1.5; }
.figure-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .9rem; margin: 0 0 1.4em; }
.figure-row .text-figure { margin: 0; }
.figure-row .text-figure img { aspect-ratio: 4 / 3; object-fit: cover; }
.media-card { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 1.25rem; align-items: start; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.media-card .text-figure { margin: 0; }
.media-card .text-figure img { aspect-ratio: 4 / 5; object-fit: cover; }
.media-card-body h3 { font-family: var(--sans); font-weight: 650; font-size: 1.08rem; color: var(--ink); margin: 0 0 .35rem; }
.media-card-body p { margin: 0 0 .5em; font-size: 1rem; }
@media (max-width: 560px) {
  .media-card { grid-template-columns: 110px minmax(0, 1fr); gap: .9rem; }
  .figure-row { grid-template-columns: repeat(2, 1fr); }
}

/* ======================================================================
   Version 2.0 additions
   ====================================================================== */

/* Menu with drop-down groups */
.site-nav > ul > li { position: relative; }
.site-nav a .icon { width: .85em; height: .85em; margin-left: .2em; vertical-align: -.08em; opacity: .7; }
.site-nav li.is-here > a { color: var(--red); }
.site-nav .sub {
  display: none; position: absolute; top: 100%; left: 0; z-index: 60; min-width: 220px;
  flex-direction: column; gap: 0; padding: .4rem; background: #fff;
  border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 14px 28px rgba(25, 24, 82, .14);
}
.site-nav .sub a { padding: .55rem .75rem; font-size: .93rem; white-space: nowrap; }
.site-nav .sub a:hover { background: var(--alt); }
.site-nav .sub a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--red); border-radius: 0; }
@media (min-width: 1201px) {
  .site-nav .has-sub:hover > .sub, .site-nav .has-sub:focus-within > .sub { display: flex; }
}
@media (max-width: 1200px) {
  .site-nav { max-height: calc(100vh - 84px); overflow-y: auto; }
  .site-nav .sub { display: flex; position: static; box-shadow: none; border: 0; padding: 0 0 0 1rem; min-width: 0; }
  .site-nav .sub a { padding: .7rem .25rem; font-size: .92rem; color: var(--muted); }
  .site-nav a .icon { display: none; }
}
.footer-links { columns: 2; column-gap: 1.5rem; }

/* Shared pieces */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.lead-text { font-size: 1.08rem; color: var(--muted); max-width: 70ch; }
.chip { display: inline-flex; align-items: center; gap: .35em; font-size: .75rem; font-weight: 700; letter-spacing: .02em;
  padding: .2em .65em; border-radius: 999px; background: var(--alt); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.cat-term { background: #EEF0F6; color: #3D4466; border-color: #D9DCE8; }
.cat-exam { background: #FBE9E7; color: var(--red-dark); border-color: #F3C7C2; }
.cat-holiday { background: #E5F4EC; color: #1C6B43; border-color: #BFE3CF; }
.cat-event { background: #E9E9F7; color: var(--navy); border-color: #CDCCEB; }
.cat-admission { background: var(--gold-soft); color: #7A5A00; border-color: #F1DC9C; }
.cat-meeting { background: #E6F2F6; color: #1D5E73; border-color: #C3E1EA; }
.notice-box { border: 1px solid var(--line); border-left: 4px solid var(--gold); background: var(--gold-soft); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 0 0 1.5rem; }
.notice-box p:last-child { margin: 0; }
.ok-box { border: 1px solid #B7DEC6; border-left: 4px solid #2E8B57; background: #EEF8F2; border-radius: var(--radius); padding: 1.2rem 1.4rem; margin: 0 0 1.5rem; }
.err-box { border: 1px solid #F0C1BC; border-left: 4px solid var(--red); background: #FDF1EF; border-radius: var(--radius); padding: .9rem 1.2rem; margin: 0 0 1.5rem; color: #8A1C15; }
.err-box ul { margin: .3rem 0 0; padding-left: 1.2rem; }

/* Public forms */
.pform { display: grid; gap: 1.1rem; }
.pform fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem .4rem; margin: 0; min-width: 0; background: #fff; }
.pform legend { font-family: var(--serif); font-size: 1.15rem; color: var(--navy); padding: 0 .4rem; }
.pform .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.1rem; }
.pform .row-3 { grid-template-columns: 2fr 1fr; }
.field { display: block; margin-bottom: 1rem; }
.field > span { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .35rem; }
.field > span small { font-weight: 400; color: var(--muted); }
.req { color: var(--red); }
.pform input[type=text], .pform input[type=tel], .pform input[type=email], .pform input[type=search], .pform select, .pform textarea {
  width: 100%; font: inherit; padding: .65rem .8rem; border: 1px solid #C9CBD8; border-radius: var(--radius); background: #fff; color: var(--ink);
}
.pform textarea { resize: vertical; min-height: 130px; }
.pform input:focus, .pform select:focus, .pform textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(37, 35, 110, .15); }
.pform .field-error input, .pform .field-error select, .pform .field-error textarea { border-color: var(--red); }
.choice-row { display: flex; gap: .75rem; flex-wrap: wrap; }
.choice { display: inline-flex; align-items: center; gap: .55rem; border: 1px solid #C9CBD8; border-radius: var(--radius); padding: .6rem 1rem; cursor: pointer; font-weight: 600; background: #fff; }
.choice input { accent-color: var(--navy); width: 1.1em; height: 1.1em; }
.choice:has(input:checked) { border-color: var(--navy); background: #EEEEF9; }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .94rem; margin: 0 0 1rem; }
.consent input { margin-top: .3rem; accent-color: var(--navy); width: 1.05em; height: 1.05em; flex: none; }
.form-foot { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.form-foot small { color: var(--muted); }
@media (max-width: 680px) { .pform .row, .pform .row-3 { grid-template-columns: 1fr; } }

/* Home: quick links and upcoming events */
.quick-links { background: var(--navy); }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.quick-tile { display: flex; align-items: center; gap: .9rem; padding: 1.3rem 1.2rem; color: #fff; text-decoration: none; border-right: 1px solid rgba(255,255,255,.12); }
.quick-tile:last-child { border-right: 0; }
.quick-tile:hover { background: var(--navy-deep); color: #fff; }
.quick-tile .icon { width: 34px; height: 34px; color: var(--gold); flex: none; }
.quick-tile strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.12rem; line-height: 1.2; }
.quick-tile small { display: block; color: #C9CAE8; font-size: .84rem; margin-top: .15rem; }
.quick-tile.is-open { background: var(--red); }
.quick-tile.is-open:hover { background: var(--red-dark); }
@media (max-width: 860px) {
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .quick-tile:nth-child(2) { border-right: 0; }
  .quick-tile:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.12); }
}
@media (max-width: 480px) { .quick-tile { padding: 1rem .9rem; gap: .6rem; } .quick-tile .icon { width: 26px; height: 26px; } .quick-tile small { display: none; } }

.events-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.event-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 1rem; padding: .95rem 0; border-bottom: 1px solid var(--line); align-items: center; }
.event-row h3 { font-family: var(--sans); font-weight: 650; font-size: 1rem; margin: 0 0 .2rem; color: var(--ink); }
.event-row p { margin: 0; color: var(--muted); font-size: .9rem; }
.home-events { margin-top: 2.2rem; }

/* Leadership cards */
.leaders { margin: 0 0 2.5rem; }
.leader-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); gap: 1.2rem; }
.leader { margin: 0; text-align: center; }
.leader-photo { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: linear-gradient(160deg, var(--navy), var(--navy-deep)); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(25,24,82,.12); }
.leader-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.leader-initials { font-family: var(--serif); font-size: 3rem; color: var(--gold); }
.leader figcaption { padding-top: .7rem; }
.leader-name { display: block; font-weight: 650; line-height: 1.3; }
.leader-role { display: block; font-size: .86rem; color: var(--red); margin-top: .15rem; }

/* FAQ */
.faq-tools { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; margin-bottom: 1.6rem; }
.faq-cats { display: flex; gap: .4rem; flex-wrap: wrap; }
.faq-cats button { font: 600 .85rem var(--sans); border: 1px solid var(--line); background: #fff; color: var(--navy); border-radius: 999px; padding: .4rem .9rem; cursor: pointer; }
.faq-cats button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.faq-group { margin-bottom: 2rem; }
.faq-group h2 { font-size: 1.3rem; margin-bottom: .7rem; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .6rem; background: #fff; }
.faq-item summary { list-style: none; cursor: pointer; padding: 1rem 3rem 1rem 1.15rem; font-weight: 650; position: relative; line-height: 1.4; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--red); line-height: 1; }
.faq-item[open] summary::after { content: "–"; }
.faq-item[open] summary { color: var(--navy); border-bottom: 1px solid var(--line); }
.faq-answer { padding: .9rem 1.15rem .3rem; }
.faq-answer p, .faq-answer ul { margin: 0 0 .8em; }
.faq-empty { display: none; }

/* Academic calendar */
.cal-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.cal-sessions { display: flex; gap: .4rem; flex-wrap: wrap; }
.cal-sessions a { padding: .45rem .9rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .88rem; }
.cal-sessions a[aria-current="page"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.cal-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.cal-filter { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.cal-filter button { font: 600 .82rem var(--sans); border-radius: 999px; padding: .35rem .85rem; cursor: pointer; border: 1px solid var(--line); }
.cal-filter button[aria-pressed="false"] { opacity: .45; text-decoration: line-through; }
.cal-month { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 1.5rem; padding: 1.2rem 0; border-top: 1px solid var(--line); }
.cal-month-name { font-family: var(--serif); font-size: 1.35rem; color: var(--navy); line-height: 1.15; position: sticky; top: 100px; align-self: start; }
.cal-month-name small { display: block; font-family: var(--sans); font-size: .82rem; color: var(--muted); margin-top: .15rem; }
.cal-month.is-now .cal-month-name { color: var(--red); }
.cal-events { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.cal-ev { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 1rem; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem .9rem; }
.cal-ev.is-past { opacity: .62; }
.cal-ev.is-next { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.cal-ev h3 { font-family: var(--sans); font-weight: 650; font-size: 1.02rem; margin: 0 0 .2rem; color: var(--ink); }
.cal-ev .when { font-size: .88rem; color: var(--muted); margin: 0 0 .35rem; }
.cal-ev .desc { font-size: .93rem; margin: .35rem 0 0; }
.cal-ev .date-tile { width: 64px; }
.date-tile.is-month .date-d { font-size: 1.05rem; padding: .7rem 0 .55rem; }
.next-tag { font-size: .72rem; font-weight: 700; color: #7A5A00; background: var(--gold-soft); border: 1px solid #F1DC9C; padding: .05em .5em; border-radius: 3px; margin-left: .4rem; vertical-align: middle; }
@media (max-width: 680px) {
  .cal-month { grid-template-columns: 1fr; gap: .6rem; }
  .cal-month-name { position: static; }
  .cal-ev { grid-template-columns: 54px minmax(0, 1fr); gap: .8rem; }
  .cal-ev .date-tile { width: 54px; }
}

/* Alumni */
.alumni-intro { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2.5rem; align-items: start; }
.join-card { background: var(--navy); color: #E4E5F5; border-radius: var(--radius); padding: 1.5rem; }
.join-card h2 { color: #fff; font-size: 1.3rem; }
.join-card p { font-size: .95rem; }
.join-card .btn { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.join-card .btn:hover { background: #fff; border-color: #fff; }
.star-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.5rem; }
.star-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.star-card:hover { box-shadow: 0 12px 26px rgba(25,24,82,.12); transform: translateY(-2px); }
.star-photo { aspect-ratio: 4 / 5; background: linear-gradient(160deg, var(--navy), var(--navy-deep)); display: grid; place-items: center; position: relative; overflow: hidden; }
.star-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.star-photo .leader-initials { font-size: 3.4rem; }
.star-badge { position: absolute; top: .7rem; left: .7rem; background: var(--gold); color: var(--navy-deep); border-radius: 999px; padding: .25rem .6rem; font-size: .72rem; font-weight: 800; display: inline-flex; align-items: center; gap: .3em; }
.star-badge .icon { width: 1em; height: 1em; }
.star-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .25rem; }
.star-name { font-family: var(--serif); font-size: 1.2rem; color: var(--navy); line-height: 1.2; margin: 0; }
.star-headline { font-weight: 650; color: var(--red); font-size: .93rem; line-height: 1.35; margin: 0; }
.star-batch { font-size: .84rem; color: var(--muted); margin: 0; }
.star-details { font-size: .92rem; margin: .4rem 0 0; color: var(--ink); }
.dir-tools { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.dir-tools select { font: inherit; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.dir-count { color: var(--muted); font-size: .9rem; }
@media (max-width: 1020px) { .alumni-intro { grid-template-columns: 1fr; } }
@media (max-width: 680px) { .star-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; } .star-body { padding: .8rem; } .star-name { font-size: 1.05rem; } }

/* Apply online */
.apply-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2.5rem; align-items: start; }
.apply-side { display: grid; gap: 1.2rem; position: sticky; top: 110px; }
.info-card { background: var(--alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; }
.info-card h2 { font-size: 1.15rem; margin-bottom: .6rem; }
.info-card ul { margin: 0; padding-left: 1.1rem; font-size: .93rem; }
.info-card li { margin-bottom: .45rem; }
.status-pill { display: inline-flex; align-items: center; gap: .45em; font-weight: 700; font-size: .85rem; padding: .3em .8em; border-radius: 999px; }
.status-pill::before { content: ""; width: .55em; height: .55em; border-radius: 50%; background: currentColor; }
.status-open { background: #E5F4EC; color: #1C6B43; }
.status-closed { background: #FBE9E7; color: var(--red-dark); }
.app-no { font-family: var(--serif); font-size: 1.7rem; color: var(--navy); margin: .2rem 0 .6rem; letter-spacing: .02em; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 1rem; }
.steps li { counter-increment: s; position: relative; padding-left: 2.3rem; margin-bottom: .7rem; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -.05em; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; font-size: .85rem; display: grid; place-items: center; }
@media (max-width: 1020px) { .apply-layout { grid-template-columns: 1fr; } .apply-side { position: static; } }

/* Contact form */
.contact-form-wrap { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2.5rem; align-items: start; }
@media (max-width: 860px) { .contact-form-wrap { grid-template-columns: 1fr; } }

@media print {
  .quick-links, .cal-actions, .cal-filter, .cal-sessions, .faq-tools, .join-card, .nav-toggle { display: none !important; }
  .cal-month { break-inside: avoid; }
  .cal-ev.is-past { opacity: 1; }
}

.search input[type=search] { border: 0 !important; box-shadow: none !important; }

.site-nav a { white-space: nowrap; }
.brand-name { white-space: nowrap; }
@media (min-width: 1201px) and (max-width: 1320px) { .site-nav a { padding: .55rem .55rem; font-size: .93rem; } }

.video-search { max-width: 520px; margin: 0 0 1.5rem; }
