/* Westminster College: public site styles. */

:root {
	--navy: #13294b;
	--navy-2: #1f3d6e;
	--red: #a3111b;
	--red-2: #7e0d15;
	--gold: #c9a227;
	--ink: #1d2433;
	--muted: #5b6b82;
	--line: #e1e6ee;
	--tint: #f5f7fb;
	--radius: 14px;
	--shadow: 0 10px 30px rgba(19, 41, 75, .1);
	--serif: "Playfair Display", Georgia, "Times New Roman", serif;
	--sans: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #fff; font-family: var(--sans); font-size: 16.5px; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }
h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--navy); font-family: var(--serif); line-height: 1.2; }
h2 { font-size: clamp(26px, 3vw, 38px); }
h3 { font-size: 21px; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.screen-reader-text, .skip-link:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 16px; background: #fff; }

/* Buttons */
.btn { display: inline-block; padding: 11px 22px; border: 2px solid transparent; border-radius: 8px; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-2); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); color: #fff; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #b8911c; color: var(--navy); }
.btn-outline-light { border-color: rgba(255, 255, 255, .8); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* Top bar & header */
.topbar { background: var(--navy); color: rgba(255, 255, 255, .85); font-size: 13.5px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 38px; }
.topbar-links a { margin-left: 18px; color: #fff; font-weight: 600; text-decoration: none; }
.topbar-links a:hover { color: var(--gold); }
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 2px 14px rgba(19, 41, 75, .08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 64px; height: 64px; object-fit: contain; }
.brand-text strong { display: block; color: var(--navy); font-family: var(--serif); font-size: 22px; line-height: 1.1; }
.brand-text small { color: var(--red); font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav .menu { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.site-nav .menu > li { position: relative; }
.site-nav .menu a { display: block; padding: 10px 12px; border-radius: 6px; color: var(--navy); font-weight: 600; font-size: 15px; text-decoration: none; }
.site-nav .menu a:hover, .site-nav .current-menu-item > a, .site-nav .current_page_item > a { color: var(--red); background: var(--tint); }
.site-nav .sub-menu { position: absolute; top: 100%; left: 0; z-index: 10; min-width: 230px; margin: 0; padding: 8px; list-style: none; border-top: 3px solid var(--red); border-radius: 0 0 10px 10px; background: #fff; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s; }
.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.site-nav .sub-menu a { font-weight: 500; }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 46px; height: 46px; border: 0; border-radius: 8px; background: var(--tint); cursor: pointer; }
.nav-toggle span:not(.screen-reader-text) { display: block; width: 22px; height: 2px; margin: 0 auto; background: var(--navy); }

/* Hero */
.hero { position: relative; display: flex; align-items: center; min-height: 560px; padding: 90px 0; background: linear-gradient(100deg, rgba(19, 41, 75, .95) 0%, rgba(19, 41, 75, .78) 45%, rgba(163, 17, 27, .35) 100%), var(--hero-img) center / cover no-repeat; color: #fff; }
.hero-inner { max-width: 1200px; }
.hero .eyebrow { color: var(--gold); }
.hero h1 { max-width: 700px; color: #fff; font-size: clamp(38px, 6vw, 66px); }
.hero p { max-width: 600px; font-size: 19px; opacity: .92; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.eyebrow { display: inline-block; margin-bottom: 12px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow-red { color: var(--red); }

/* Stats */
.stats { position: relative; z-index: 2; margin-top: -54px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; overflow: hidden; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.stat { padding: 26px 22px; border-right: 1px solid var(--line); text-align: center; }
.stat:last-child { border-right: 0; }
.stat strong { display: block; color: var(--red); font-family: var(--serif); font-size: 26px; }
.stat span { color: var(--muted); font-size: 14.5px; }

/* Sections */
.section { padding: 80px 0; }
.section-tint { background: var(--tint); }
.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.checks { margin: 0 0 24px; padding: 0; list-style: none; }
.checks li { position: relative; margin: 0 0 10px; padding-left: 30px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-bottom: 30px; }
.card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: inherit; text-decoration: none; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card-body { padding: 20px 22px 24px; }
.card-body time, .tag { display: inline-block; margin-bottom: 8px; color: var(--red); font-size: 13px; font-weight: 700; }
.tag { padding: 3px 10px; border-radius: 20px; background: #fdecea; }
.card-body p { margin: 0; color: var(--muted); }
.group-title { margin: 10px 0 24px; padding-bottom: 10px; border-bottom: 2px solid var(--line); }

/* People */
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 40px; }
.person { display: block; padding: 0 0 18px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: inherit; text-align: center; text-decoration: none; transition: transform .25s, box-shadow .25s; }
.person:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.person img { width: 100%; aspect-ratio: 6 / 7; object-fit: cover; margin-bottom: 14px; }
.person strong { display: block; padding: 0 12px; color: var(--navy); font-size: 17px; }
.person span { display: block; padding: 0 12px; color: var(--muted); font-size: 14px; }
.person .person-initials { display: flex; align-items: center; justify-content: center; aspect-ratio: 6 / 7; margin-bottom: 14px; padding: 0; background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: rgba(255, 255, 255, .92); font-family: var(--serif); font-size: 52px; letter-spacing: .04em; }

/* CTA band */
.cta-band { padding: 64px 0; background: linear-gradient(110deg, var(--red) 0%, #6d0b12 100%); color: #fff; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { color: #fff; }
.cta-band p { margin: 0; opacity: .9; font-size: 18px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Inner pages */
.page-hero { padding: 64px 0 56px; background: linear-gradient(110deg, var(--navy) 0%, var(--navy-2) 70%, #3a1d3f 100%); color: #fff; }
.page-hero h1 { color: #fff; font-size: clamp(32px, 4.5vw, 50px); }
.page-hero p { margin: 0; opacity: .85; font-size: 18px; }
.content-narrow { max-width: 860px; }
.entry h2 { margin-top: 1.4em; font-size: 30px; }
.entry h3 { margin-top: 1.2em; }
.entry img { border-radius: 10px; }
.entry table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; }
.entry th, .entry td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; }
.entry th { background: var(--tint); }
.entry blockquote { margin: 1.4em 0; padding: 14px 22px; border-left: 4px solid var(--gold); background: var(--tint); font-style: italic; }
.entry-image { margin: 0 0 26px; }
.back { margin-top: 32px; }
.back a { font-weight: 600; text-decoration: none; }
.profile { display: grid; grid-template-columns: 320px 1fr; gap: 46px; align-items: start; }
.profile-photo img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.profile-contact { margin-top: 16px; }
.course { display: grid; grid-template-columns: 1fr 320px; gap: 46px; align-items: start; }
.course-side { position: sticky; top: 120px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--tint); }
.facts { margin: 0 0 20px; }
.facts dt { color: var(--muted); font-size: 13px; font-weight: 700; text-transform: uppercase; }
.facts dd { margin: 0 0 12px; font-weight: 600; }
.pagination { margin-top: 20px; text-align: center; }
.pagination .page-numbers { display: inline-block; margin: 0 3px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; }
.pagination .current { background: var(--navy); color: #fff; }

/* Footer */
.site-footer { background: #0d1d36; color: rgba(255, 255, 255, .8); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding: 64px 20px 44px; }
.footer-brand img { width: 84px; height: 84px; margin-bottom: 14px; object-fit: contain; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: 16px; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer .menu { margin: 0; padding: 0; list-style: none; }
.site-footer .menu li { margin: 0 0 8px; }
.social a { margin-right: 14px; }
.motto { color: var(--gold); font-family: var(--serif); font-size: 20px; }
.footer-bottom { padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; }

/* Responsive */
@media (max-width: 1080px) {
	.nav-toggle { display: flex; }
	.site-nav { position: fixed; inset: 122px 0 0 0; z-index: 40; display: none; flex-direction: column; align-items: stretch; gap: 10px; padding: 20px; overflow-y: auto; background: #fff; }
	.site-nav.open { display: flex; }
	.site-nav .menu { flex-direction: column; }
	.site-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding-left: 14px; }
	.nav-cta { margin: 6px 0 0; text-align: center; }
	.cards { grid-template-columns: repeat(2, 1fr); }
	.people { grid-template-columns: repeat(3, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
	body { font-size: 16px; }
	.topbar-inner > span:first-child { display: none; }
	.brand-text small { display: none; }
	.brand-text strong { font-size: 18px; }
	.hero { min-height: 480px; padding: 70px 0 100px; }
	.stats-grid { grid-template-columns: 1fr 1fr; }
	.stat:nth-child(2) { border-right: 0; }
	.stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
	.split, .profile, .course { grid-template-columns: 1fr; gap: 30px; }
	.course-side { position: static; }
	.section { padding: 56px 0; }
	.cards { grid-template-columns: 1fr; }
	.people { grid-template-columns: 1fr 1fr; }
	.footer-grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ Added for the PHP site */

.muted { color: var(--muted); }
.small { font-size: 14px; }
.lead { color: var(--muted); font-size: 19px; }
.empty { padding: 40px 20px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); text-align: center; }
.plain { margin: 0 0 20px; padding: 0; list-style: none; }
.plain li { margin: 0 0 6px; }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.site-nav .has-sub > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); opacity: .6; }

/* Notices */
.notice { margin: 20px 0; padding: 14px 18px; border-radius: 10px; font-weight: 600; }
.notice-success { border: 1px solid #b8e2c6; background: #eaf7ee; color: #1d6b36; }
.notice-error { border: 1px solid #f2c0c3; background: #fdecea; color: var(--red-2); }

/* Page hero breadcrumbs */
.crumbs { margin-bottom: 10px; font-size: 14px; opacity: .85; }
.crumbs a { color: #fff; text-decoration: none; }
.crumbs a:hover { color: var(--gold); }
.crumbs span { margin: 0 4px; opacity: .6; }

/* Pages with section navigation */
.with-sidebar { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 50px; align-items: start; }
.side-nav { position: sticky; top: 110px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--tint); }
.side-nav h4 { margin: 0 0 10px; font-size: 18px; }
.side-nav h4 a { color: var(--navy); text-decoration: none; }
.side-nav ul { margin: 0; padding: 0; list-style: none; }
.side-nav li a { display: block; padding: 8px 10px; border-radius: 6px; color: var(--ink); font-size: 15px; text-decoration: none; }
.side-nav li a:hover, .side-nav li a.active { background: #fff; color: var(--red); }
.side-nav li a.active { font-weight: 700; }
.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-top: 30px; }
.link-tile { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; color: var(--navy); font-weight: 600; text-decoration: none; transition: .2s; }
.link-tile:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); }
.link-tile-red { border-color: var(--red); background: #fdecea; color: var(--red); }

/* Content imported from the old site */
.entry iframe { max-width: 100%; }
.entry ul, .entry ol { padding-left: 1.3em; }
.entry .wp-block-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 30px; }
.entry .wp-block-columns h2 { margin-top: 0; font-size: 24px; }
.entry figure { margin: 0 0 1em; }

/* S.T.E.A.M. */
.steam-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; margin-bottom: 34px; }
.steam-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: inherit; text-decoration: none; transition: .2s; }
.steam-tile:hover { border-color: var(--red); box-shadow: var(--shadow); transform: translateY(-3px); }
.steam-tile strong { color: var(--navy); font-size: 17px; }
.steam-tile small { color: var(--muted); }
.steam-letter { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin-bottom: 8px; border-radius: 10px; background: var(--navy); color: var(--gold); font-family: var(--serif); font-size: 22px; font-weight: 700; }
.steam-letter.sm { width: 34px; height: 34px; margin: 0 12px 0 0; font-size: 18px; }
.steam-banner { display: grid; grid-template-columns: repeat(5, 1fr); overflow: hidden; margin-bottom: 30px; border-radius: var(--radius); background: var(--navy); color: #fff; }
.steam-banner div { padding: 18px 10px; border-right: 1px solid rgba(255, 255, 255, .12); text-align: center; font-weight: 600; }
.steam-banner div:last-child { border-right: 0; }
.steam-banner span { display: block; color: var(--gold); font-family: var(--serif); font-size: 34px; line-height: 1.1; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 30px; }
.filters a { padding: 8px 16px; border: 1px solid var(--line); border-radius: 30px; color: var(--navy); font-size: 14.5px; font-weight: 600; text-decoration: none; }
.filters a:hover { border-color: var(--navy); }
.filters a.active { border-color: var(--navy); background: var(--navy); color: #fff; }
.filters-sm a { padding: 5px 12px; font-size: 13.5px; }
.filter-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; margin-bottom: 30px; padding: 18px; border-radius: var(--radius); background: var(--tint); }
.filter-form label { display: flex; flex-direction: column; gap: 4px; min-width: 180px; color: var(--muted); font-size: 13px; font-weight: 700; text-transform: uppercase; }
.filter-form select { padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: inherit; font-size: 15px; text-transform: none; }

/* Course catalogue */
.course-group { margin-bottom: 40px; scroll-margin-top: 110px; }
.course-group .group-title { display: flex; align-items: center; }
.course-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.course-item { display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; color: inherit; text-decoration: none; transition: .2s; }
.course-item:hover { border-color: var(--red); box-shadow: var(--shadow); }
.course-item strong { color: var(--navy); font-size: 17px; }
.course-item > span { color: var(--muted); font-size: 14.5px; }
.course-item .levels { margin-top: auto; }
.lvl { display: inline-block; margin-right: 4px; padding: 2px 8px; border-radius: 5px; font-size: 12px; font-style: normal; font-weight: 700; letter-spacing: .04em; }
.lvl-glat { background: #e7f3ec; color: #1d6b36; }
.lvl-bjc { background: #e8eef9; color: var(--navy-2); }
.lvl-bgcse { background: #fbf3dc; color: #7a5d06; }
.level-key { margin-top: 30px; padding: 18px 20px; border-radius: var(--radius); background: var(--tint); font-size: 14.5px; }
.level-key p { margin: 0 0 6px; }

/* Tags */
.tag-announcement { background: #e8eef9; color: var(--navy-2); }
.tag-event { background: #f1e8f8; color: #5b2a86; }
.tag-achievement { background: #fbf3dc; color: #7a5d06; }
.tag-assignment { background: #fdecea; color: var(--red); }
.tag-homework { background: #e7f3ec; color: #1d6b36; }
.tag-pinned { background: var(--red); color: #fff; }
.tag-plain { background: var(--tint); color: var(--muted); text-decoration: none; }

/* Homework & assignments */
.work-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; margin-bottom: 30px; }
.work-card { display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 12px; color: inherit; text-decoration: none; transition: .2s; }
.work-card:hover { box-shadow: var(--shadow); }
.work-card.is-past { border-left-color: var(--line); opacity: .75; }
.work-card h3 { margin-top: 6px; font-size: 19px; }
.work-card p { color: var(--muted); font-size: 15px; }
.work-meta .tag { margin-right: 4px; }
.work-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: auto; font-size: 14px; }
.due { color: var(--red); font-weight: 700; }
.due.past { color: var(--muted); }
.work-list { margin: 0 0 20px; padding: 0; list-style: none; }
.work-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.work-list li a { font-weight: 600; }
.work-list .tag { margin: 0; }

/* Posts */
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 20px; }
.post-meta .tag { margin: 0; }
.key-date { margin-bottom: 24px; padding: 14px 18px; border-left: 4px solid var(--gold); border-radius: 8px; background: var(--tint); }

/* Yearbook */
.card-placeholder { display: block; aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--navy), var(--navy-2)); }
.album-intro { margin: 0 auto 30px; font-size: 18px; text-align: center; }
.gallery { columns: 3 260px; column-gap: 14px; }
.gallery figure { margin: 0 0 14px; break-inside: avoid; }
.gallery img { width: 100%; border-radius: 10px; cursor: zoom-in; transition: opacity .2s; }
.gallery a:hover img { opacity: .88; }
.gallery figcaption { padding: 6px 2px 0; color: var(--muted); font-size: 14px; }
.photo-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 34px; }
.photo-strip img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; transition: transform .25s; }
.photo-strip a:hover img { transform: scale(1.03); }
.lightbox { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px 70px; background: rgba(8, 16, 30, .94); }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: 6px; }
.lightbox p { margin: 14px 0 0; color: #fff; }
.lightbox button { position: absolute; border: 0; background: none; color: #fff; font-size: 40px; line-height: 1; cursor: pointer; opacity: .8; }
.lightbox button:hover { opacity: 1; }
.lightbox .lb-close { top: 16px; right: 22px; }
.lightbox .lb-prev { left: 16px; top: 50%; }
.lightbox .lb-next { right: 16px; top: 50%; }

/* Forms */
.form fieldset { margin: 0 0 24px; padding: 20px 22px 6px; border: 1px solid var(--line); border-radius: var(--radius); }
.form legend { padding: 0 8px; color: var(--navy); font-family: var(--serif); font-size: 20px; font-weight: 700; }
.form label { display: block; margin-bottom: 16px; color: var(--ink); font-size: 14.5px; font-weight: 600; }
.form input, .form select, .form textarea { display: block; width: 100%; margin-top: 6px; padding: 11px 12px; border: 1px solid #cfd6e2; border-radius: 8px; background: #fff; font: inherit; font-weight: 400; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--navy); outline: 3px solid rgba(31, 61, 110, .15); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.field-error { display: block; margin-top: 5px; color: var(--red); font-size: 13.5px; }
.hp { position: absolute; left: -9999px; }
.contact-form-wrap { max-width: 860px; margin-top: 50px; padding: 30px; border-radius: var(--radius); background: var(--tint); }

@media (max-width: 1080px) {
	.with-sidebar { grid-template-columns: 1fr; gap: 30px; }
	.side-nav { position: static; }
	.photo-strip { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
	.grid-2, .entry .wp-block-columns { grid-template-columns: 1fr; }
	.steam-banner div { padding: 12px 2px; font-size: 11px; }
	.steam-banner span { font-size: 24px; }
	.photo-strip { grid-template-columns: 1fr 1fr; }
	.work-cards { grid-template-columns: 1fr; }
	.filter-form label { min-width: 100%; }
	.lightbox { padding: 20px 10px 60px; }
	.lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 14px; }
	.contact-form-wrap { padding: 20px; }
}

/* Keep menu labels on one line */
.site-nav .menu a, .nav-cta { white-space: nowrap; }
.card-body .tag + time, .card-body .tag-pinned { margin-left: 6px; }
@media (max-width: 1240px) and (min-width: 1081px) {
	.site-nav .menu a { padding: 10px 8px; font-size: 14.5px; }
	.brand-text strong { font-size: 19px; }
}

/* ------------------------------------------------------------------ Homepage */

.home-hero { position: relative; overflow: hidden; padding: 80px 0 120px; background: radial-gradient(circle at 85% 20%, rgba(201, 162, 39, .18), transparent 40%), radial-gradient(circle at 10% 90%, rgba(163, 17, 27, .35), transparent 45%), linear-gradient(120deg, #0d1d36 0%, var(--navy) 50%, #1f3d6e 100%); color: #fff; }
.home-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 22px 22px; pointer-events: none; }
.home-hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; }
.home-hero .eyebrow { color: var(--gold); }
.home-hero h1 { color: #fff; font-size: clamp(40px, 5.6vw, 68px); line-height: 1.05; }
.home-hero-text > p { max-width: 560px; font-size: 19px; opacity: .9; }
.hero-quick { display: flex; flex-wrap: wrap; gap: 10px; margin: 34px 0 0; padding: 0; list-style: none; }
.hero-quick a { display: flex; align-items: center; gap: 8px; padding: 9px 16px 9px 10px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 30px; background: rgba(255, 255, 255, .06); color: #fff; font-size: 14.5px; font-weight: 600; text-decoration: none; backdrop-filter: blur(4px); transition: .2s; }
.hero-quick a:hover { border-color: var(--gold); background: rgba(255, 255, 255, .12); }
.hero-quick span { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .12); font-size: 14px; }
.home-hero-media { position: relative; padding: 0 20px 30px 30px; }
.hero-frame { position: relative; aspect-ratio: 545 / 400; overflow: hidden; border: 6px solid rgba(255, 255, 255, .95); border-radius: 22px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); transform: rotate(1.5deg); }
.hero-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1s ease, transform 6s ease; }
.hero-frame img.is-active { opacity: 1; transform: scale(1); }
.hero-dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.hero-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .55); cursor: pointer; transition: .2s; }
.hero-dots button.is-active { width: 26px; border-radius: 6px; background: #fff; }
.float-card { position: absolute; z-index: 2; display: flex; flex-direction: column; padding: 14px 18px; border-radius: 14px; background: #fff; color: var(--ink); box-shadow: 0 18px 40px rgba(0, 0, 0, .25); animation: bob 5s ease-in-out infinite; }
.float-card strong { color: var(--red); font-family: var(--serif); font-size: 19px; }
.float-card span { color: var(--muted); font-size: 13.5px; }
.float-card-a { left: -10px; bottom: 0; border-left: 4px solid var(--gold); }
.float-card-b { top: -18px; right: 0; flex-direction: row; align-items: center; gap: 10px; animation-delay: -2.5s; }
.float-card-b img { width: 38px; height: 38px; }
.float-card-b span { color: var(--navy); font-family: var(--serif); font-size: 15px; font-weight: 700; }
@keyframes bob { 50% { transform: translateY(-8px); } }

.home-hero + .stats .stats-grid { border-top: 4px solid var(--gold); }

/* Features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature { position: relative; padding: 30px 24px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: transform .3s, box-shadow .3s, border-color .3s; }
.feature::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--red), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.feature:hover { transform: translateY(-6px); border-color: transparent; box-shadow: var(--shadow); }
.feature:hover::after { transform: scaleX(1); }
.feature-icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin-bottom: 18px; border-radius: 16px; background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: var(--gold); }
.feature-icon svg { width: 28px; height: 28px; }
.feature p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* Layered about photos */
.layered { position: relative; padding: 0 60px 60px 0; }
.layered .layer-main { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.layered .layer-small { position: absolute; right: 0; bottom: 0; width: 52%; border: 6px solid #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.layer-badge { position: absolute; left: -16px; top: 26px; display: flex; flex-direction: column; padding: 14px 18px; border-radius: 12px; background: var(--red); color: rgba(255, 255, 255, .9); font-size: 13px; box-shadow: var(--shadow); }
.layer-badge strong { color: #fff; font-family: var(--serif); font-size: 26px; line-height: 1.1; }

/* President's message */
.quote-band { position: relative; padding: 80px 0; overflow: hidden; background: linear-gradient(120deg, var(--red-2), var(--red) 60%, #c2272f); color: #fff; }
.quote-band::before { content: "\201C"; position: absolute; top: -60px; left: 4%; color: rgba(255, 255, 255, .08); font-family: var(--serif); font-size: 420px; line-height: 1; }
.quote-inner { position: relative; display: grid; grid-template-columns: 200px 1fr; gap: 50px; align-items: center; max-width: 1000px; }
.quote-inner > img { width: 200px; height: 240px; object-fit: cover; object-position: top; border: 5px solid rgba(255, 255, 255, .9); border-radius: 18px; box-shadow: 0 20px 40px rgba(0, 0, 0, .3); }
.quote-band blockquote { margin: 0; }
.quote-band blockquote p { font-family: var(--serif); font-size: clamp(20px, 2.4vw, 27px); line-height: 1.45; }
.quote-band footer { display: flex; flex-direction: column; margin-bottom: 22px; }
.quote-band footer strong { color: var(--gold); font-size: 18px; }
.quote-band footer span { opacity: .85; }

/* What's happening */
.happening { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }
.news-lead { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; margin-bottom: 14px; border: 1px solid var(--line); border-radius: var(--radius); color: inherit; text-decoration: none; transition: box-shadow .25s; }
.news-lead:hover { box-shadow: var(--shadow); }
.news-lead img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.news-lead div { padding: 26px; }
.news-lead time, .news-row time { margin-left: 8px; color: var(--muted); font-size: 13px; font-weight: 600; }
.news-lead h3 { margin-top: 10px; font-size: 24px; }
.news-lead p { color: var(--muted); }
.news-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 16px 18px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 12px; color: var(--navy); text-decoration: none; transition: .2s; }
.news-row:hover { border-color: var(--red); }
.news-row .tag { margin: 0; }
.news-row strong { flex: 1; min-width: 200px; }
.more { display: inline-block; margin-top: 8px; font-weight: 700; text-decoration: none; }
.happening-side { display: grid; gap: 18px; }
.mini-panel { padding: 22px; border-radius: var(--radius); background: var(--tint); }
.mini-panel h3 { font-size: 20px; }
.mini-panel-red { border-top: 4px solid var(--red); background: #fff; box-shadow: var(--shadow); }
.event-row { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.event-row:last-of-type { border-bottom: 0; }
.event-row strong { display: block; color: var(--navy); }
.event-row small { color: var(--muted); }
.date-block { display: flex; flex-direction: column; align-items: center; flex: none; width: 54px; padding: 6px 0; border-radius: 10px; background: var(--navy); color: rgba(255, 255, 255, .8); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.date-block b { color: #fff; font-family: var(--serif); font-size: 22px; line-height: 1; }
.due-row { display: block; padding: 10px 0 10px 14px; margin-bottom: 6px; border-left: 3px solid var(--red); color: inherit; text-decoration: none; }
.due-row:hover strong { color: var(--red); }
.due-row strong { display: block; color: var(--navy); }
.due-row small { color: var(--muted); }

/* S.T.E.A.M. on dark */
.steam-dark { position: relative; background: linear-gradient(160deg, #0d1d36, var(--navy) 60%, #1a2f55); color: #fff; }
.steam-dark h2 { color: #fff; }
.steam-dark .eyebrow { color: var(--gold); }
.steam-dark .section-head p { opacity: .85; }
.steam-letters { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-bottom: 22px; }
.steam-big { --c: #3b82f6; position: relative; display: flex; flex-direction: column; padding: 24px 20px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius); background: rgba(255, 255, 255, .04); color: #fff; text-decoration: none; transition: transform .3s, background .3s; }
.steam-big::before { content: ""; position: absolute; inset: auto -30% -60% auto; width: 160px; height: 160px; border-radius: 50%; background: var(--c); opacity: .25; filter: blur(10px); transition: opacity .3s; }
.steam-big:hover { transform: translateY(-6px); background: rgba(255, 255, 255, .08); }
.steam-big:hover::before { opacity: .5; }
.steam-big b { color: var(--c); font-family: var(--serif); font-size: 64px; line-height: 1; }
.steam-big strong { margin-top: 8px; font-size: 17px; }
.steam-big small { opacity: .7; }
.steam-teal { --c: #2dd4bf; } .steam-blue { --c: #60a5fa; } .steam-red { --c: #f87171; } .steam-purple { --c: #c084fc; } .steam-gold { --c: #fbbf24; }
.steam-more { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 34px; }
.steam-more a { padding: 8px 16px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 30px; color: #fff; font-weight: 600; text-decoration: none; }
.steam-more a:hover { border-color: var(--gold); }
.steam-more span { margin-left: 4px; padding: 0 7px; border-radius: 10px; background: rgba(255, 255, 255, .15); font-size: 12.5px; }

/* Yearbook mosaic */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; gap: 12px; margin-bottom: 34px; }
.mosaic a { position: relative; overflow: hidden; border-radius: 12px; }
.mosaic a:first-child { grid-column: span 2; grid-row: span 2; }
.mosaic a:nth-child(4) { grid-row: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.mosaic a:hover img { transform: scale(1.07); }
.mosaic span { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; background: linear-gradient(transparent, rgba(13, 29, 54, .85)); color: #fff; font-size: 14px; font-weight: 600; opacity: 0; transform: translateY(8px); transition: .3s; }
.mosaic a:hover span { opacity: 1; transform: none; }

/* CTA with photo */
.cta-photo { position: relative; background: linear-gradient(110deg, rgba(163, 17, 27, .95) 0%, rgba(109, 11, 18, .9) 100%), var(--cta-img) center / cover; }

/* Scroll reveal (only when JavaScript is running and motion is welcome) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--d, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.js .reveal { opacity: 1; transform: none; transition: none; }
	.float-card { animation: none; }
	.hero-frame img { transition: opacity .3s; transform: none; }
}

@media (max-width: 1080px) {
	.home-hero-inner { grid-template-columns: 1fr; gap: 50px; }
	.home-hero-media { max-width: 600px; }
	.features { grid-template-columns: 1fr 1fr; }
	.happening { grid-template-columns: 1fr; }
	.steam-letters { grid-template-columns: repeat(5, 1fr); gap: 10px; }
	.steam-big { padding: 18px 12px; }
	.steam-big b { font-size: 46px; }
	.steam-big strong { font-size: 14px; }
}
@media (max-width: 760px) {
	.home-hero { padding: 50px 0 100px; }
	.home-hero-media { padding: 0 6px 30px 10px; }
	.float-card-b { display: none; }
	.features { grid-template-columns: 1fr; }
	.layered { padding: 0 30px 40px 0; }
	.layer-badge { left: 8px; }
	.quote-inner { grid-template-columns: 1fr; gap: 26px; text-align: center; }
	.quote-inner > img { margin: 0 auto; width: 150px; height: 180px; }
	.news-lead { grid-template-columns: 1fr; }
	.news-lead img { min-height: 200px; }
	.steam-letters { grid-template-columns: 1fr 1fr; }
	.mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; }
	.mosaic a:nth-child(4) { grid-row: auto; }
	.mosaic span { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------ Student Portal */

.checks-light li { color: rgba(255, 255, 255, .9); }
.btn-block { display: block; width: 100%; text-align: center; }
.notice-info { border: 1px solid var(--line); background: var(--tint); color: var(--muted); font-weight: 500; }
.late { color: var(--red); }

.portal-login { padding: 70px 0 90px; background: radial-gradient(circle at 85% 15%, rgba(201, 162, 39, .18), transparent 40%), linear-gradient(120deg, #0d1d36, var(--navy) 55%, #1f3d6e); color: #fff; }
.portal-login-inner { display: grid; grid-template-columns: 1fr 440px; gap: 60px; align-items: center; }
.portal-login .eyebrow { color: var(--gold); }
.portal-login h1 { color: #fff; font-size: clamp(34px, 4.5vw, 52px); }
.portal-login-card { padding: 34px; border-radius: 18px; background: #fff; color: var(--ink); box-shadow: 0 30px 60px rgba(0, 0, 0, .3); text-align: center; }
.portal-login-card img { margin: 0 auto 8px; }
.portal-login-card .form { margin-top: 18px; text-align: left; }

.portal-hero { padding: 26px 0; background: linear-gradient(110deg, var(--navy), var(--navy-2)); color: #fff; }
.portal-hero-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.portal-who { display: flex; align-items: center; gap: 14px; }
.portal-who strong { display: block; font-family: var(--serif); font-size: 24px; }
.portal-who small { opacity: .8; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 50%; background: var(--gold); color: var(--navy); font-family: var(--serif); font-size: 20px; font-weight: 700; }
img.avatar { object-fit: cover; border: 3px solid var(--gold); }
.portal-nav { display: flex; align-items: center; gap: 6px; }
.portal-nav a, .portal-nav button { padding: 9px 16px; border: 0; border-radius: 8px; background: none; color: rgba(255, 255, 255, .85); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.portal-nav a:hover, .portal-nav button:hover, .portal-nav a.active { background: rgba(255, 255, 255, .12); color: #fff; }
.portal-nav form { margin: 0; }

.portal-body { padding-top: 40px; }
.portal-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; align-items: start; }
.portal-side { display: grid; gap: 18px; }
.portal-counts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 34px; }
.count { padding: 18px; border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: 12px; color: inherit; text-decoration: none; }
.count strong { display: block; color: var(--navy); font-family: var(--serif); font-size: 32px; line-height: 1.1; }
.count span { color: var(--muted); font-size: 14px; font-weight: 600; }
.count-todo { border-top-color: var(--navy-2); }
.count-overdue { border-top-color: var(--red); }
.count-overdue strong { color: var(--red); }
.count-submitted { border-top-color: var(--gold); }
.count-marked { border-top-color: #1d6b36; }
.hw-section { margin-bottom: 36px; scroll-margin-top: 110px; }
.hw-section h2 { margin-bottom: 2px; font-size: 26px; }
.hw-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-top: 14px; }
.hw-card { display: flex; flex-direction: column; padding: 18px; border: 1px solid var(--line); border-left: 4px solid var(--navy-2); border-radius: 12px; color: inherit; text-decoration: none; transition: box-shadow .2s, transform .2s; }
.hw-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.hw-card h3 { margin: 10px 0; font-size: 19px; }
.hw-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.hw-top .tag { margin: 0; }
.hw-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: auto; font-size: 14px; }
.hw-status { margin-left: auto; padding: 3px 10px; border-radius: 20px; background: var(--tint); color: var(--muted); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.hw-missing { border-left-color: var(--red); }
.hw-missing .hw-status, .hw-status.hw-missing { background: #fdecea; color: var(--red); }
.hw-done { border-left-color: var(--gold); }
.hw-done .hw-status, .hw-status.hw-done { background: #fbf3dc; color: #7a5d06; }
.hw-marked { border-left-color: #1d6b36; }
.hw-marked .hw-status, .hw-status.hw-marked { background: #e7f3ec; color: #1d6b36; }
.hw-redo { border-left-color: #5b2a86; }
.hw-redo .hw-status, .hw-status.hw-redo { background: #f1e8f8; color: #5b2a86; }

.hw-title { margin: 8px 0 16px; font-size: clamp(28px, 3.5vw, 40px); }
.back-top { margin: 0 0 16px; }
.key-date-late { border-left-color: var(--red); }
.work-panel { position: sticky; top: 110px; padding: 22px; border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.work-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.work-panel-head h2 { margin: 0; font-size: 24px; }
.feedback { margin-bottom: 16px; padding: 16px; border-radius: 10px; background: #e7f3ec; }
.feedback .grade { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.feedback .grade strong { color: #1d6b36; font-family: var(--serif); font-size: 30px; }
.feedback .grade small { color: var(--muted); font-weight: 700; text-transform: uppercase; }
.feedback p { margin-bottom: 6px; }
.prewrap { white-space: pre-wrap; }
.file-list { margin: 0 0 14px; padding: 0; list-style: none; }
.file-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 10px 12px; margin-bottom: 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--tint); font-size: 14.5px; }
.file-list li a { flex: 1; min-width: 0; overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.file-list small { color: var(--muted); }
.file-list .remove { display: inline-flex; align-items: center; gap: 4px; margin: 0; color: var(--red); font-size: 13px; font-weight: 600; }
.file-list .remove input { display: inline; width: auto; margin: 0; }
.drop { position: relative; margin-bottom: 16px; padding: 22px 16px; border: 2px dashed #cfd6e2; border-radius: 12px; background: var(--tint); text-align: center; transition: .2s; }
.drop:hover, .drop.has-files { border-color: var(--navy-2); background: #eef3fb; }
.drop input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.drop label { margin: 0; }
.drop label strong { display: block; color: var(--navy); font-size: 17px; }
.drop label span { display: block; color: var(--muted); font-size: 13px; font-weight: 400; }
.drop output { display: block; margin-top: 8px; color: var(--navy); font-size: 14px; font-weight: 600; }
.narrow-form { max-width: 460px; }
.portal-promo { text-align: center; }
.promo-icon { display: block; font-size: 34px; }

@media (max-width: 1080px) {
	.portal-login-inner, .portal-grid { grid-template-columns: 1fr; }
	.portal-login-card { max-width: 460px; }
	.work-panel { position: static; }
}
@media (max-width: 760px) {
	.portal-counts { grid-template-columns: 1fr 1fr; }
	.portal-hero-inner { flex-direction: column; align-items: flex-start; }
}
