/* Samawati — academic school theme for Kisomo Kenya.
   Inspired by cam.ac.uk (photo welcome, study paths, news, events), not a copy. */
:root {
	--sw-ink: #1c1c1c;
	--sw-sky: #0c5c8f;
	--sw-sky-deep: #083e61;
	--sw-mist: #f3f6f8;
	--sw-line: #d7e0e6;
	--sw-paper: #fff;
	--sw-mute: #5c6770;
}

body.sw {
	margin: 0;
	background: var(--sw-paper);
	color: var(--sw-ink);
	font-family: Karla, "Segoe UI", sans-serif;
	overflow-x: hidden;
}
img, iframe, video { max-width: 100%; }
a { color: var(--sw-sky); }

.sw-shell {
	width: min(1120px, calc(100% - 40px));
	margin: 0 auto;
}
.sw-kicker {
	margin: 0 0 8px;
	color: var(--sw-sky);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.sw-kicker-light { color: #fff; }
h1, h2, h3, .sw-foot-name {
	font-family: Newsreader, Georgia, serif;
	font-weight: 500;
	letter-spacing: -0.02em;
}

.sw-btn {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 18px;
	border-radius: 2px;
	background: var(--sw-sky);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}
.sw-btn-line {
	background: transparent;
	color: #fff;
	box-shadow: inset 0 0 0 1px #fff;
}
.sw-text-links { display: flex; flex-wrap: wrap; gap: 16px; }
.sw-text-links a { font-weight: 700; text-decoration: none; }
.sw-text-links a:hover { text-decoration: underline; }

.sw-head {
	position: sticky;
	top: 0;
	z-index: 20;
	background: #fff;
	border-bottom: 1px solid var(--sw-line);
}
.sw-head-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 74px;
}
.sw-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	color: var(--sw-ink);
	text-decoration: none;
}
.sw-brand img { width: 46px; height: 46px; object-fit: contain; }
.sw-brand span {
	font-family: Newsreader, Georgia, serif;
	font-size: 1.25rem;
	line-height: 1.15;
}
.sw-head-tools { display: flex; gap: 8px; }
.sw-tool {
	border: 0;
	background: transparent;
	color: var(--sw-ink);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	padding: 8px 10px;
}
.sw-find, .sw-menu {
	background: #fff;
	border-bottom: 1px solid var(--sw-line);
}
.sw-find { padding: 22px 0 28px; }
.sw-find-grid, .sw-menu nav {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px 18px;
}
.sw-find a, .sw-menu a {
	color: var(--sw-ink);
	font-weight: 700;
	text-decoration: none;
	padding: 8px 0;
}
.sw-find a:hover, .sw-menu a:hover, .sw-menu a.is-on { color: var(--sw-sky); }
.sw-menu { padding: 28px 0 36px; }
.sw-menu nav { grid-template-columns: 1fr 1fr; }
.sw-menu a { font-family: Newsreader, Georgia, serif; font-size: 1.7rem; font-weight: 500; }
.sw-menu-note { max-width: 40rem; color: var(--sw-mute); }
.sw-find[hidden], .sw-menu[hidden], .sw-lightbox[hidden] { display: none !important; }

.sw-hero {
	position: relative;
	min-height: 560px;
	display: flex;
	align-items: flex-end;
	background: var(--sw-sky-deep);
	color: #fff;
	overflow: hidden;
}
.sw-hero-shade {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(8, 30, 48, 0.15), rgba(8, 30, 48, 0.72));
}
.sw-hero-copy {
	position: relative;
	z-index: 2;
	padding: 64px 0 48px;
	max-width: 740px;
}
.sw-hero h1 {
	margin: 0 0 10px;
	font-size: clamp(2.6rem, 6vw, 4.6rem);
	line-height: 1.02;
}
.sw-hero p { max-width: 38rem; font-size: 1.15rem; }
.sw-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.sw-study { border-bottom: 1px solid var(--sw-line); }
.sw-study-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
}
.sw-study article { padding: 36px 28px 32px 0; }
.sw-study article + article {
	padding-left: 28px;
	border-left: 1px solid var(--sw-line);
}
.sw-study h2 { margin: 0 0 8px; font-size: 2rem; }

.sw-band { padding: 48px 0; }
.sw-band-mist { background: var(--sw-mist); }
.sw-section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}
.sw-section-head h2 { margin: 0; font-size: 2.2rem; }
.sw-section-head a { font-weight: 700; text-decoration: none; }

.sw-tiles, .sw-news, .sw-albums {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}
.sw-tiles a, .sw-news a, .sw-albums a {
	display: flex;
	flex-direction: column;
	color: var(--sw-ink);
	text-decoration: none;
}
.sw-tiles img, .sw-news img, .sw-albums img, .sw-tile-gap, .sw-article-hero img {
	width: 100%;
	height: 180px;
	object-fit: cover;
	background: #d5e3ee;
	display: block;
}
.sw-tiles strong, .sw-albums strong { margin-top: 10px; font-size: 1.2rem; }
.sw-tiles em, .sw-albums em, .sw-news span {
	color: var(--sw-mute);
	font-style: normal;
}
.sw-news h3 { margin: 6px 0; font-size: 1.35rem; }
.sw-news p { margin: 10px 0 0; color: var(--sw-sky); font-weight: 700; font-size: 0.9rem; }

.sw-events { list-style: none; margin: 0; padding: 0; }
.sw-events li {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 16px;
	padding: 16px 0;
	border-top: 1px solid var(--sw-line);
}
.sw-events time { color: var(--sw-sky); font-weight: 700; }
.sw-events p { margin: 4px 0 0; color: var(--sw-mute); }

.sw-voices { background: var(--sw-sky-deep); color: #fff; padding: 48px 0; }
.sw-voice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.sw-voices p { font-family: Newsreader, Georgia, serif; font-size: 1.45rem; line-height: 1.35; }
.sw-voices a { color: #fff; font-weight: 700; }
.sw-voices em { display: block; color: rgba(255,255,255,0.75); font-style: normal; }

.sw-mast { padding: 42px 0 10px; }
.sw-mast h1, .sw-article h1, .sw-profile h1, .sw-visit h1 {
	margin: 0 0 8px;
	font-size: clamp(2.2rem, 4vw, 3.4rem);
}
.sw-crumb { color: var(--sw-mute); }
.sw-crumb a { color: inherit; }
.sw-dek { font-size: 1.2rem; color: var(--sw-mute); }
.sw-prose { font-size: 1.05rem; line-height: 1.7; max-width: 68ch; }
.sw-split { display: grid; grid-template-columns: 1.4fr 0.7fr; gap: 28px; align-items: start; }
.sw-side-card img { width: 100%; height: 220px; object-fit: cover; margin-bottom: 12px; }

.sw-admit { display: grid; grid-template-columns: 1.1fr 0.9fr; min-height: 520px; }
.sw-admit-copy { padding: 48px 36px; }
.sw-admit-photo { min-height: 320px; background-size: cover; background-position: center; }

.sw-index { list-style: none; margin: 0; padding: 0; }
.sw-index a {
	display: grid;
	grid-template-columns: 170px 1fr 150px;
	gap: 16px;
	align-items: center;
	padding: 16px 0;
	border-top: 1px solid var(--sw-line);
	color: inherit;
	text-decoration: none;
}
.sw-index time { color: var(--sw-sky); font-weight: 700; }
.sw-index h2 { margin: 0; font-size: 1.45rem; }
.sw-index p { margin: 4px 0 0; color: var(--sw-mute); }
.sw-index img { width: 150px; height: 92px; object-fit: cover; }

.sw-article-hero img { height: min(520px, 60vw); }
.sw-article-body { max-width: 760px; padding-bottom: 40px; }
.sw-share { display: flex; gap: 14px; align-items: center; }
.sw-share a { font-weight: 700; }
.sw-film { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.sw-film img { width: 100%; height: 180px; object-fit: cover; }

.sw-mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sw-mosaic button { border: 0; padding: 0; background: transparent; }
.sw-mosaic img { width: 100%; height: 210px; object-fit: cover; display: block; }
.sw-lightbox {
	position: fixed;
	inset: 0;
	z-index: 40;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(8, 30, 48, 0.92);
}
.sw-lightbox .full-image { max-width: min(1000px, 88vw); max-height: 82vh; object-fit: contain; }
.sw-lightbox-close, .sw-lightbox-nav {
	position: absolute;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 2rem;
	cursor: pointer;
}
.sw-lightbox-close { top: 12px; right: 16px; }
.sw-lightbox-prev { left: 12px; }
.sw-lightbox-next { right: 12px; }
body.sw-lightbox-open { overflow: hidden; }

.sw-terms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }
.sw-terms article { border-top: 3px solid var(--sw-sky); padding-top: 12px; }
.sw-terms h2 { margin: 0 0 8px; }

.sw-fee-mast, .sw-fee-grid { display: flex; justify-content: space-between; gap: 18px; align-items: end; }
.sw-fee-grid { display: grid; grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.sw-fee-grid article { border: 1px solid var(--sw-line); padding: 16px; }
.sw-fee-grid ul { list-style: none; margin: 0; padding: 0; }
.sw-fee-grid li, .sw-govt li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--sw-line); }
.sw-fee-sum, .sw-fee-total strong { font-family: Newsreader, Georgia, serif; font-size: 1.6rem; }
.sw-fee-tools { margin-bottom: 14px; }
.sw-toggle { border: 1px solid var(--sw-sky); color: var(--sw-sky); background: #fff; }
.btn-check:checked + .sw-toggle { background: var(--sw-sky); color: #fff; }
.sw-govt { list-style: none; margin: 0; padding: 0; background: #fff; }
.sw-govt .is-total { background: var(--sw-sky-deep); color: #fff; padding: 12px; }
.fee-pdf-iframe { width: 100%; height: 80vh; border: 0; }

.sw-visit { display: grid; grid-template-columns: 1.3fr 0.7fr; min-height: 70vh; }
.sw-visit aside { padding: 36px 28px; }
.sw-visit #map { width: 100%; height: 100%; min-height: 520px; }
.sw-map-note { color: var(--sw-mute); }

.sw-profile { display: grid; grid-template-columns: 0.8fr 1.2fr; }
.sw-profile img, .sw-tile-gap-tall { width: 100%; height: 100%; min-height: 460px; object-fit: cover; display: block; }
.sw-profile-copy { padding: 40px 32px; }
.sw-tile-gap {
	background: linear-gradient(160deg, #d5e6f2, #8eb4d0);
}

.sw-foot { background: var(--sw-mist); border-top: 1px solid var(--sw-line); padding-top: 36px; }
.sw-foot a { color: var(--sw-ink); text-decoration: none; }
.sw-foot a:hover { text-decoration: underline; }
.sw-foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 20px; }
.sw-foot-name { margin: 0 0 8px; font-size: 1.6rem; }
.sw-foot p { margin: 0 0 8px; }
.sw-foot-copy { margin-top: 18px; padding: 14px 0 20px; border-top: 1px solid var(--sw-line); color: var(--sw-mute); }

.kisomo-empty-orb {
	width: 64px; height: 64px; border-radius: 50%;
	display: grid; place-items: center;
	background: var(--sw-mist); color: var(--sw-sky);
}
.sw .btn-outline-primary { color: var(--sw-sky); border-color: var(--sw-sky); }

@media (max-width: 900px) {
	.sw-study-grid, .sw-tiles, .sw-news, .sw-albums, .sw-voice-grid,
	.sw-split, .sw-admit, .sw-terms, .sw-fee-grid, .sw-visit, .sw-profile,
	.sw-foot-grid, .sw-find-grid {
		grid-template-columns: 1fr;
	}
	.sw-study article + article { padding-left: 0; border-left: 0; border-top: 1px solid var(--sw-line); }
	.sw-events li, .sw-index a, .sw-fee-mast { grid-template-columns: 1fr; }
	.sw-index img { width: 100%; height: 180px; }
	.sw-menu a { font-size: 1.35rem; }
}
@media (max-width: 640px) {
	.sw-shell { width: min(1120px, calc(100% - 28px)); }
	.sw-mosaic, .sw-film { grid-template-columns: 1fr 1fr; }
	.sw-hero { min-height: 460px; }
}
