/* Tek — institute theme for Kisomo Kenya
   Inspired by mit.edu (utility/spotlight split, Helvetica-like type, cardinal red), not a copy. */
:root {
	--tk-cardinal: #750014;
	--tk-signal: #e11d2e;
	--tk-black: #111;
	--tk-ink: #1a1a1a;
	--tk-silver: #8b959e;
	--tk-mist: #f2f3f5;
	--tk-paper: #fff;
	--tk-line: #d9dde1;
}

body.tk {
	font-family: "IBM Plex Sans", Helvetica, Arial, sans-serif;
	background: var(--tk-paper);
	color: var(--tk-ink);
	margin: 0;
	overflow-x: hidden;
}
img, iframe, video { max-width: 100%; }

.tk-shell {
	width: min(1120px, calc(100% - 48px));
	margin: 0 auto;
}

.tk-label {
	font-size: 0.7rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--tk-cardinal);
	margin-bottom: 8px;
}
.tk-label-light { color: #fff; }

.tk-head {
	background: #fff;
	border-bottom: 1px solid var(--tk-line);
	position: sticky;
	top: 0;
	z-index: 20;
}
.tk-head-inner {
	display: flex;
	align-items: center;
	gap: 20px;
	min-height: 64px;
	width: min(100%, calc(100% - 40px));
	margin: 0 auto;
	position: relative;
}
.tk-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 18px;
	flex: 1;
}
.tk-nav a {
	color: var(--tk-ink);
	text-decoration: none;
	font-size: 0.92rem;
	font-weight: 500;
	padding: 8px 0;
}
.tk-nav a:hover,
.tk-nav a.is-on {
	color: var(--tk-cardinal);
}
.tk-mark {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-left: auto;
	color: var(--tk-black);
	text-decoration: none;
	font-weight: 700;
	letter-spacing: -0.03em;
}
.tk-mark img {
	width: 42px;
	height: 42px;
	object-fit: contain;
}
.tk-burger {
	display: none;
	background: var(--tk-black);
	border: 0;
	color: #fff;
	width: 44px;
	height: 44px;
	min-width: 44px;
}

.tk-stage { min-height: 50vh; }

.tk-split {
	display: grid;
	grid-template-columns: minmax(280px, 38%) 1fr;
	min-height: calc(100vh - 64px);
}
.tk-utility {
	padding: 36px 32px 48px 40px;
	background: #fff;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.tk-utility h1 {
	font-size: clamp(1.7rem, 3vw, 2.4rem);
	font-weight: 700;
	letter-spacing: -0.04em;
	margin: 0 0 12px;
	line-height: 1.15;
}
.tk-blurb {
	color: #444;
	max-width: 22rem;
	margin-bottom: 22px;
}
.tk-find {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 32px;
}
.tk-find a {
	border: 1px solid var(--tk-black);
	color: var(--tk-black);
	text-decoration: none;
	padding: 8px 14px;
	font-size: 0.88rem;
	font-weight: 600;
}
.tk-find a:hover {
	background: var(--tk-cardinal);
	border-color: var(--tk-cardinal);
	color: #fff;
}
.tk-dirs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px 24px;
}
.tk-dirs a {
	display: block;
	color: var(--tk-ink);
	text-decoration: none;
	padding: 4px 0;
	font-size: 0.95rem;
}
.tk-dirs a:hover { color: var(--tk-cardinal); }

.tk-spot {
	position: relative;
	display: flex;
	align-items: flex-end;
	background: var(--tk-cardinal) center/cover no-repeat;
	min-height: 420px;
	text-decoration: none;
	color: #fff;
	overflow: hidden;
}
.tk-spot-veil {
	position: absolute;
	inset: 0;
	z-index: 2;
	background: linear-gradient(180deg, rgba(17,17,17,0.05) 30%, rgba(17,17,17,0.72) 100%);
	pointer-events: none;
}
.tk-spot-copy {
	position: relative;
	z-index: 3;
	padding: 36px 40px;
	max-width: 34rem;
	color: #fff;
	text-decoration: none;
}
.tk-spot-copy:hover {
	color: #fff;
}
.tk-spot-copy strong {
	display: block;
	font-size: clamp(1.6rem, 3.4vw, 2.6rem);
	font-weight: 700;
	letter-spacing: -0.04em;
	line-height: 1.15;
	margin: 6px 0 14px;
}
.tk-spot-go {
	display: inline-block;
	color: #fff;
	border-bottom: 2px solid var(--tk-signal);
	font-weight: 600;
	font-size: 0.95rem;
}

.tk-band {
	background: var(--tk-mist);
	padding: 48px 0;
	border-top: 1px solid var(--tk-line);
}
.tk-idea {
	font-size: clamp(1.35rem, 2.6vw, 2rem);
	font-weight: 600;
	letter-spacing: -0.03em;
	line-height: 1.3;
	margin: 0;
	max-width: 42rem;
}

.tk-block { padding: 56px 0; }
.tk-block-gray { background: var(--tk-mist); }
.tk-block h1,
.tk-block h2,
.tk-page h1 {
	font-weight: 700;
	letter-spacing: -0.03em;
}
.tk-block-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 16px;
	margin-bottom: 24px;
}
.tk-block-head h2 { margin: 0; font-size: 1.6rem; }
.tk-quiet { color: var(--tk-silver); }

.tk-text {
	color: var(--tk-cardinal);
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid var(--tk-signal);
}
.tk-text:hover { color: var(--tk-signal); }
.tk-btn {
	display: inline-flex;
	align-items: center;
	background: var(--tk-cardinal);
	color: #fff;
	padding: 10px 16px;
	text-decoration: none;
	font-weight: 600;
}
.tk-btn:hover { color: #fff; background: #5c0010; }

.tk-more {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}
.tk-more a { color: inherit; text-decoration: none; }
.tk-more img,
.tk-gap {
	width: 100%;
	height: 160px;
	object-fit: cover;
	background: #d7dce2;
	margin-bottom: 10px;
}
.tk-more p {
	color: var(--tk-cardinal);
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin: 0 0 4px;
	font-weight: 600;
}
.tk-more h3 {
	font-size: 1.05rem;
	font-weight: 600;
	margin: 0;
	letter-spacing: -0.02em;
}

.tk-people {
	list-style: none;
	padding: 0;
	margin: 0;
	border-top: 1px solid var(--tk-line);
}
.tk-people li { border-bottom: 1px solid var(--tk-line); }
.tk-people a {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 0;
	color: inherit;
	text-decoration: none;
}
.tk-people a:hover strong { color: var(--tk-cardinal); }
.tk-people span { color: var(--tk-silver); }

#map {
	width: 100%;
	height: 380px;
	background: #d7dce2;
}

.tk-page { padding: 40px 0 64px; }
.tk-page h1 {
	font-size: clamp(1.8rem, 4vw, 2.8rem);
	margin: 0 0 16px;
}
.tk-prose {
	font-size: 1.05rem;
	line-height: 1.8;
	max-width: 44rem;
}
.tk-two {
	display: grid;
	grid-template-columns: 1.45fr 0.9fr;
	gap: 36px;
	align-items: start;
}
.tk-two img { width: 100%; object-fit: cover; }

.tk-news {
	list-style: none;
	padding: 0;
	margin: 0;
}
.tk-news li {
	padding: 16px 0;
	border-bottom: 1px solid var(--tk-line);
}
.tk-news a {
	color: var(--tk-black);
	font-weight: 600;
	font-size: 1.15rem;
	text-decoration: none;
	letter-spacing: -0.02em;
}
.tk-news a:hover { color: var(--tk-cardinal); }
.tk-news p { margin: 4px 0 0; color: var(--tk-silver); }

.tk-story-hero img {
	width: 100%;
	max-height: 440px;
	object-fit: cover;
	margin: 16px 0 28px;
}
.tk-side a {
	display: block;
	color: var(--tk-cardinal);
	font-weight: 600;
	margin-bottom: 8px;
	text-decoration: none;
}

.tk-albums {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 22px;
	list-style: none;
	padding: 0;
}
.tk-albums a { color: inherit; text-decoration: none; }
.tk-albums img,
.tk-prints img {
	width: 100%;
	height: 180px;
	object-fit: cover;
	display: block;
}
.tk-albums h3 { font-weight: 600; margin: 10px 0 4px; }
.tk-prints {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 8px;
}
.tk-prints button { border: 0; padding: 0; background: none; cursor: pointer; }

.tk-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(17, 17, 17, 0.94);
	z-index: 50;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}
.tk-lightbox[hidden] { display: none !important; }
.tk-lightbox img { max-width: 92vw; max-height: 78vh; }
.tk-lightbox-close,
.tk-lightbox-nav {
	position: absolute;
	background: transparent;
	border: 0;
	color: #fff;
	font-size: 2rem;
	cursor: pointer;
	width: 48px;
	height: 48px;
}
.tk-lightbox-close { top: 12px; right: 12px; z-index: 3; }
.tk-lightbox-prev,
.tk-lightbox-next { top: 50%; transform: translateY(-50%); z-index: 2; }
.tk-lightbox-prev { left: 8px; }
.tk-lightbox-next { right: 8px; }
body.tk-lightbox-open { overflow: hidden; }

.tk-profile {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 32px;
}
.tk-profile img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }

.tk-foot {
	background: #1a1a1a;
	color: #c5c9ce;
	padding: 48px 0 16px;
}
.tk-foot-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}
.tk-foot-name {
	color: #fff;
	font-weight: 700;
	font-size: 1.15rem;
	letter-spacing: -0.02em;
}
.tk-foot a { color: #fff; text-decoration: none; }
.tk-foot a:hover { color: var(--tk-signal); }
.tk-foot-copy {
	border-top: 1px solid rgba(255,255,255,0.12);
	margin-top: 28px;
	padding-top: 12px;
	font-size: 0.82rem;
}

.kisomo-empty-state { max-width: 36rem; margin: 0 auto; text-align: center; }
.kisomo-empty-title { font-weight: 700; letter-spacing: -0.02em; }
.kisomo-empty-copy { color: var(--tk-silver); }
.kisomo-empty-orb {
	width: 88px;
	height: 88px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(117, 0, 20, 0.1);
	color: var(--tk-cardinal);
	font-size: 1.6rem;
}

.tk-toggle {
	background: #fff;
	border: 1px solid var(--tk-line);
	color: var(--tk-ink);
	font-weight: 600;
}
.btn-check:checked + .tk-toggle {
	background: var(--tk-cardinal);
	border-color: var(--tk-cardinal);
	color: #fff;
}
.fee-table-view .table thead th,
.fee-govt-view .table thead th,
.fee-mobile-view .table thead th {
	background: var(--tk-black);
	color: #fff;
	border: none;
}
.fee-pdf-iframe { width: 100%; height: 75vh; min-height: 600px; border: 0; }

.tk-year {
	display: grid;
	grid-template-columns: minmax(260px, 36%) 1fr;
	min-height: 50vh;
}
.tk-year-dir {
	padding: 36px 32px 48px 40px;
	border-right: 1px solid var(--tk-line);
}
.tk-year-dir nav { margin-top: 24px; }
.tk-year-dir nav div {
	padding: 14px 0;
	border-top: 1px solid var(--tk-line);
}
.tk-year-dir strong { display: block; font-weight: 700; }
.tk-year-dir span { display: block; color: var(--tk-silver); font-size: 0.92rem; }
.tk-year-dir em { display: block; font-style: normal; color: var(--tk-cardinal); font-size: 0.82rem; }
.tk-year-feed { padding: 36px 40px 48px; }
.tk-year-feed ul { list-style: none; padding: 0; margin: 12px 0 0; }
.tk-year-feed li {
	display: grid;
	grid-template-columns: 170px 1fr;
	gap: 16px;
	padding: 14px 0;
	border-bottom: 1px solid var(--tk-line);
}
.tk-year-feed span { color: var(--tk-cardinal); font-weight: 600; font-size: 0.88rem; }
.tk-year-empty { grid-template-columns: 1fr; color: var(--tk-silver); }
.tk-year-off {
	grid-template-columns: 1fr;
	color: var(--tk-silver);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-size: 0.78rem;
}

@media (max-width: 991px) {
	.tk-burger { display: inline-flex; align-items: center; justify-content: center; }
	.tk-nav {
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		background: #fff;
		flex-direction: column;
		padding: 12px 20px 20px;
		border-bottom: 1px solid var(--tk-line);
	}
	body.tk-open .tk-nav { display: flex; }
	.tk-nav a { min-height: 44px; display: flex; align-items: center; }
	.tk-split,
	.tk-dirs,
	.tk-more,
	.tk-two,
	.tk-profile,
	.tk-foot-grid,
	.tk-year,
	.tk-year-feed li { grid-template-columns: 1fr; }
	.tk-split { min-height: 0; }
	.tk-utility { padding: 24px 16px; }
	.tk-year-dir, .tk-year-feed { padding: 24px 16px; }
	.tk-spot { min-height: 220px; }
	.tk-mark span { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	#map { height: 260px; }
	.fee-pdf-iframe { height: 55vh; min-height: 320px; }
}
@media (max-width: 575px) {
	.tk-shell { width: min(1120px, calc(100% - 24px)); }
	.tk-lightbox { padding: 56px 8px 12px; }
	.tk-year-dir, .tk-year-feed { padding: 20px 16px; }
}
