:root {
	--bg-color: #f7f7f4;
	--bg-elevated: #ffffff;
	--surface-soft: #eeeee9;
	--text-color: #171717;
	--muted-color: #6b6b65;
	--link-color: #315c4c;
	--card-bg: #ffffff;
	--card-bg-hover: #f0f3ed;
	--button-color: #315c4c;
	--border-color: #deded6;
	--shadow-soft: 0 18px 48px rgba(23, 23, 23, 0.08);
	--accent-grid: color-mix(in srgb, var(--link-color) 10%, transparent);
	--font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
	--font-scale: 100%;
	color-scheme: light;
}

html {
	font-size: var(--font-scale);
}

html[data-theme='dark'] {
	--bg-color: #111613;
	--bg-elevated: #18201b;
	--surface-soft: #1d2820;
	--text-color: #edf4ed;
	--muted-color: #b7c4b9;
	--link-color: #9ed7b5;
	--card-bg: #18201b;
	--card-bg-hover: #243229;
	--button-color: #5f9f78;
	--border-color: #344439;
	--shadow-soft: 0 18px 48px rgba(0, 0, 0, 0.24);
	color-scheme: dark;
}

/* GitHub-inspired palettes for a familiar, high-contrast reading mode. */
html[data-theme='github-light'] {
	--bg-color: #f6f8fa;
	--bg-elevated: #ffffff;
	--surface-soft: #eef1f4;
	--text-color: #1f2328;
	--muted-color: #656d76;
	--link-color: #0969da;
	--card-bg: #ffffff;
	--card-bg-hover: #f6f8fa;
	--button-color: #1f883d;
	--border-color: #d0d7de;
	--shadow-soft: 0 18px 48px rgba(31, 35, 40, 0.08);
	color-scheme: light;
}

html[data-theme='github-dark'] {
	--bg-color: #0d1117;
	--bg-elevated: #161b22;
	--surface-soft: #21262d;
	--text-color: #e6edf3;
	--muted-color: #8b949e;
	--link-color: #58a6ff;
	--card-bg: #161b22;
	--card-bg-hover: #21262d;
	--button-color: #238636;
	--border-color: #30363d;
	--shadow-soft: 0 18px 48px rgba(1, 4, 9, 0.4);
	color-scheme: dark;
}

*, *::before, *::after {
	box-sizing: border-box;
}

/* Hamburger button — hidden on desktop */
.hamburger {
	display: none;
	flex-direction: column;
	justify-content: space-between;
	width: 22px;
	height: 16px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	flex-shrink: 0;
}
.hamburger span {
	display: block;
	height: 2px;
	border-radius: 2px;
	background: var(--text-color);
	transition: transform 0.25s ease, opacity 0.2s ease;
	transform-origin: center;
}
.hamburger.nav-open span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
.hamburger.nav-open span:nth-child(2) {
	opacity: 0;
	transform: scaleX(0);
}
.hamburger.nav-open span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

.nav-item--mobile-only {
	display: none;
}

html,
body {
	margin: 0px;
	padding: 0px;
	background-color: var(--bg-color);
	overflow-x: hidden;
}

img, iframe, video, embed {
	max-width: 100%;
	height: auto;
}

.nav {
	top: 0px;
	z-index: 100;
	width: 100%;
	margin: 0px;
	padding: 0 16px;
	min-height: 56px;
	display: flex;
	align-items: center;
	justify-content: space-between;
		background-color: color-mix(in srgb, var(--bg-elevated) 94%, transparent);
		-webkit-backdrop-filter: blur(12px);
		backdrop-filter: blur(12px);
		border-bottom: 1px solid var(--border-color);
  position: sticky;
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 260ms ease, background-color 200ms ease;
  will-change: transform;
  /* needed so the mobile dropdown positions relative to the nav bar */
	isolation: isolate;
}

.nav.nav-hidden {
  transform: translateY(-110%);
  box-shadow: none;
}

.nav-list {
  display: inline-flex;
}

.nav-item {
	list-style: none;
	padding-left: 8px;
	padding-right: 4px;
}

@media (min-width: 1101px) {
	.nav-list .nav-item + .nav-item {
		border-left: 1px solid color-mix(in srgb, var(--border-color) 80%, transparent);
		margin-left: 4px;
		padding-left: 12px;
	}
}

	.nav-btn {
			background-color: var(--button-color);
			color: #ffffff;
			border: 1px solid var(--button-color);
			border-radius: 8px;
				display: inline-flex !important;
				align-items: center !important;
				justify-content: center !important;
				text-align: center;
			font-size: 0.82rem;
			font-weight: 700;
			line-height: 1;
			min-height: 36px;
			padding: 0 14px;
			text-decoration: none;
			transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
		}
		.nav-btn:hover,
		.nav-btn:focus-visible {
			background-color: color-mix(in srgb, var(--button-color) 82%, #000000);
			border-color: color-mix(in srgb, var(--button-color) 82%, #000000);
			color: #ffffff;
			transform: translateY(-1px);
		}


		.nav-actions {
			display: flex;
			align-items: center;
			justify-content: flex-end;
			gap: 8px;
			margin-left: auto;
			padding-right: 0;
		}

		.nav-actions .hamburger {
			margin-left: 0;
		}

		.display-settings {
			position: relative;
			margin-left: auto;
			margin-right: 12px;
		color: var(--text-color);
		font-size: 13px;
	}

	.display-settings summary {
		border: 1px solid var(--border-color);
		border-radius: 8px;
		cursor: pointer;
		list-style: none;
		padding: 6px 10px;
	}

	.display-settings summary::-webkit-details-marker { display: none; }
	.display-settings-panel {
		position: absolute;
		right: 0;
		top: calc(100% + 8px);
		z-index: 110;
		display: flex;
		flex-direction: column;
		gap: 6px;
		min-width: 150px;
		padding: 12px;
		background: var(--card-bg);
		border: 1px solid var(--border-color);
		border-radius: 10px;
		box-shadow: var(--shadow-soft);
	}

	.display-settings-panel label { color: var(--muted-color); font-size: 12px; }
	.display-settings-panel select {
		width: 100%;
		padding: 6px 8px;
		color: var(--text-color);
		background: var(--bg-color);
		border: 1px solid var(--border-color);
		border-radius: 6px;
	}

	.nav-link {
	text-decoration: none;
	color: var(--link-color);
}

.hero-section {
	background-color: #1e2127;
	background-image:
		radial-gradient(ellipse 80% 60% at 50% 100%, rgba(198, 120, 221, 0.12) 0%, transparent 100%),
		linear-gradient(rgba(61, 66, 77, 0.25) 1px, transparent 1px),
		linear-gradient(90deg, rgba(61, 66, 77, 0.25) 1px, transparent 1px);
	background-size: 100% 100%, 44px 44px, 44px 44px;
	width: 100%;
	height: 80%;
	padding: 60px 0;
	min-height: 400px;
	text-align: center;
	color: var(--text-color);
	margin-top: 0;
	margin-bottom: 0px;
	border-bottom: 1px solid var(--border-color);
}

.hero-copy {
	color: var(--muted-color);
	font-size: 1.1rem;
	line-height: 1.6;
	max-width: 680px;
	margin: 12px auto 0;
	padding: 0 20px;
}

.sidenav {
	margin-top: 0;
	width: 240px;
	min-width: 240px;
	position: sticky;
	top: 140px;
	left: 0px;
	z-index: 1;
	background-color: var(--bg-color);
	overflow-x: hidden;
	padding: 8px 12px;
	overflow-y: auto;
	flex-shrink: 0;
}

.projects-main {
	flex-direction: row;
	gap: 4px;
}

.projects-content {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.project-showcase-intro {
	width: 100%;
	max-width: 980px;
	margin: 0 auto 8px;
	padding: 0 20px;
}

.project-showcase-intro p {
	margin: 0;
	color: var(--muted-color);
	line-height: 1.7;
	font-size: 1rem;
}

.proof-link-strip {
	width: 100%;
	max-width: 980px;
	margin: 8px auto 0;
	padding: 16px 20px 4px;
}

.proof-link-strip h2 {
	margin: 0 0 8px;
	color: var(--text-color);
	font-size: 1.35rem;
	text-align: left;
}

.proof-link-strip p {
	margin: 0 0 14px;
	color: var(--muted-color);
	line-height: 1.6;
}

.proof-link-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 10px;
}

.proof-link {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 4px;
	min-height: 70px;
	padding: 10px 12px;
	border: 1px solid var(--border-color);
	border-radius: 8px;
	background: var(--card-bg);
	color: var(--text-color);
	text-decoration: none;
}

.proof-link:hover,
.proof-link:focus {
	border-color: var(--link-color);
	background: var(--card-bg-hover);
}

.proof-link span {
	color: var(--text-color);
	font-weight: 700;
	line-height: 1.25;
}

.proof-link small {
	color: var(--muted-color);
	line-height: 1.35;
}

/* Projects page "Skills, backed by proof" panel — filled in by skill-map.js */
.skill-map {
	width: 100%;
	max-width: 980px;
	margin: 8px auto 0;
	padding: 16px 20px 4px;
}

.skill-map h2 {
	margin: 0 0 8px;
	color: var(--text-color);
	font-size: 1.35rem;
	text-align: left;
}

.skill-map > p,
.skill-map-note {
	margin: 0 0 14px;
	color: var(--muted-color);
	line-height: 1.6;
}

.skill-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 10px;
	margin-bottom: 16px;
}

.skill-stat {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 10px 12px;
	border: 1px solid var(--border-color);
	border-radius: 8px;
	background: var(--card-bg);
}

.skill-stat-value {
	color: var(--text-color);
	font-size: 1.6rem;
	font-weight: 700;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
}

.skill-stat-label {
	color: var(--muted-color);
	font-size: 0.9rem;
}

.skill-group {
	margin-bottom: 12px;
}

.skill-group-title {
	margin: 0 0 6px;
	color: var(--muted-color);
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.skill-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.skill-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 36px;
	padding: 4px 6px 4px 12px;
	border: 1px solid var(--border-color);
	border-radius: 999px;
	background: var(--card-bg);
	color: var(--text-color);
	font: inherit;
	font-size: 0.92rem;
	cursor: pointer;
}

.skill-chip:hover,
.skill-chip:focus-visible {
	border-color: var(--link-color);
	background: var(--card-bg-hover);
}

/* The chip whose filter is on right now. Border + weight, not colour alone. */
.skill-chip[aria-pressed='true'] {
	border-color: var(--link-color);
	background: var(--card-bg-hover);
	font-weight: 700;
	box-shadow: inset 0 0 0 1px var(--link-color);
}

@media print {
	.skill-map,
	.filter-results {
		display: none !important;
	}
}

.skill-chip-count {
	min-width: 26px;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--border-color);
	color: var(--text-color);
	font-size: 0.82rem;
	font-weight: 700;
	text-align: center;
	font-variant-numeric: tabular-nums;
}

.project-page-nav {
	margin: 0 0 22px;
	text-align: center;
}

.filter-fieldset {
	border: 1px solid var(--border-color);
	border-radius: 10px;
	padding: 14px 12px;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.filter-fieldset legend {
	width: 100%;
	color: var(--text-color);
	font-weight: 700;
	padding: 0 4px;
	margin-bottom: 4px;
}

/* Chip-style filter toggles (replaces plain checkbox rows) */
.filter-selection-summary {
  margin: 0 0 10px;
  color: var(--muted-color);
  font-size: 0.82rem;
  line-height: 1.4;
}

.filter-option {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 7px 12px;
	color: var(--muted-color);
	line-height: 1.2;
	font-size: 0.85rem;
	border: 1px solid var(--border-color);
	border-radius: 999px;
	background: var(--card-bg);
	cursor: pointer;
	user-select: none;
	transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.filter-option:hover {
	border-color: var(--link-color);
	color: var(--text-color);
}

.filter-option .checkbox {
	appearance: none;
	-webkit-appearance: none;
	position: absolute;
	width: 0;
	height: 0;
	margin: 0;
	border: 0;
	opacity: 0;
}

.filter-option:has(.checkbox:checked) {
	border-color: var(--button-color);
	background: rgba(137, 87, 229, 0.18);
	color: var(--text-color);
	font-weight: 600;
}

.filter-option:has(.checkbox:focus-visible) {
	outline: 2px solid var(--link-color);
	outline-offset: 2px;
}

/* Collapsible filter trigger — only shown on mobile (see media query) */
.filter-toggle {
	display: none;
	width: 100%;
	align-items: center;
	gap: 10px;
	padding: 11px 14px;
	background: var(--card-bg);
	color: var(--text-color);
	border: 1px solid var(--border-color);
	border-radius: 10px;
	font-size: 0.95rem;
	font-weight: 700;
	cursor: pointer;
	text-align: left;
}

.filter-toggle:hover {
	border-color: var(--link-color);
}

.filter-toggle-icon {
	margin-left: auto;
	color: var(--muted-color);
	transition: transform 0.2s ease;
}

.filter-toggle[aria-expanded='true'] .filter-toggle-icon {
	transform: rotate(180deg);
}

.github-activity {
	margin-top: 8px;
	margin-bottom: 24px;
	padding: 0 20px;
}

.github-activity h2 {
	text-align: center;
	margin-bottom: 16px;
}

main {
	margin: 0px;
	padding-left: 20px;
	padding-right: 20px;
	padding-top: 20px;
	padding-bottom: 20px;
	display: flex;
	margin-top: 0;
	align-items: flex-start;
	flex-direction: column;
	color: var(--text-color);
	border-bottom: 1px solid var(--border-color);
}

.contact-me input {
	padding: 10px;
	margin: 10px 0px;
	border: 1px solid var(--border-color);
	border-radius: 6px;
	background-color: var(--card-bg);
	color: var(--text-color);
}

.contact-me label {
	display: block;
	margin-top: 10px;
}

.contact-me textarea {
	padding: 10px;
	margin: 10px 0px;
	border: 1px solid var(--border-color);
	border-radius: 6px;
	background-color: var(--card-bg);
	color: var(--text-color);
	width: 100%;
	height: 150px;
}

.contact-me button {
	padding: 10px 20px;
	background-color: var(--button-color);
	color: #fff;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	margin-top: 10px;
}

.menu {
	margin: 0px;
	padding: 0px;
	border: #0d1117 solid 1px;
	border-radius: 12px;
}

.menu-item {
	padding: 0px;
	list-style: none;
	line-height: 2;
}

.text-link {
	color: var(--link-color);
	text-decoration: underline;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 0.18em;
}

.text-link:hover,
.text-link:focus {
	text-decoration-thickness: 2px;
}

main article {
	margin: 0px;
	padding: 7px;
	line-height: 1.6;
	font-size: 1.1rem;
	font-family: 'Google Sans', sans-serif;
	font-optical-sizing: auto;
	font-weight: 400;
	font-style: normal;
	font-variation-settings: 'GRAD' 0;
	color: var(--muted-color);
}

.card-grid {
	padding: 20px;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 20px;
	flex: 1;
}

/* Flagship projects — slightly larger, more prominent */
.flagship-grid {
	grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
}
.card-container.flagship {
	padding: 28px;
}
.card-container.flagship .card-header h3 {
	font-size: 1.25rem;
}
.card-container.flagship p {
	font-size: 1rem;
	line-height: 1.7;
}
.card-meta {
	margin: 12px 0 8px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.card-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid var(--border-color);
}
.link-sep {
	color: var(--border-color);
}

/* Section styling */
section {
	width: 100%;
	max-width: 1100px;
	margin: 0 auto 48px;
	padding: 0 20px;
}
section h2 {
	color: var(--text-color);
	font-size: clamp(1.35rem, 2vw, 1.75rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
	margin: 0 0 8px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--border-color);
}
.section-subtitle {
	text-align: center;
	color: var(--muted-color);
	font-size: 1rem;
	margin: 0 auto 28px;
	max-width: 640px;
}
.section-cta {
	text-align: center;
	margin-top: 16px;
}
.hero-tagline {
	color: var(--button-color);
	font-size: 1.15rem;
	font-weight: 600;
	margin: 4px 0 16px;
	letter-spacing: 0.2px;
}
		.hero-links {
			display: flex;
			gap: 10px;
			justify-content: center;
			align-items: center;
			width: 100%;
		flex-wrap: wrap;
		margin: 24px 0 16px;
	}
	.hero-links .text-link {
		min-height: 36px;
		display: inline-flex;
		align-items: center;
		padding: 0 4px;
		font-size: 0.92rem;
		font-weight: 650;
	}
	.hero-links .nav-btn {
		min-height: 42px;
		padding-inline: 18px;
		font-size: 0.9rem;
	}

.hero-illustration {
	margin: 16px auto 8px;
	max-width: 100%;
	opacity: 0.9;
}
.hero-illustration img {
	width: 100%;
	max-width: 400px;
	height: auto;
	display: block;
}
@media (max-width: 600px) {
	.hero-illustration img {
		max-width: 320px;
	}
}

/* Work experience grid */
.work-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 20px;
	margin-top: 16px;
}
.work-card {
	background: var(--card-bg);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	padding: 24px;
	transition: border-color 0.2s, transform 0.2s;
}
.work-card:hover {
	border-color: var(--button-color);
	transform: translateY(-2px);
}
.work-card h3 {
	margin: 0 0 8px;
	color: var(--text-color);
	font-size: 1.1rem;
}
.work-meta {
	color: var(--muted-color);
	font-size: 0.85rem;
	margin: 0 0 12px;
}
.work-card p {
	color: var(--muted-color);
	line-height: 1.6;
	font-size: 0.95rem;
	margin: 0 0 16px;
}
.work-card .text-link {
	font-weight: 600;
}

/* Homepage skill map */
#homepage-skill-map {
	max-width: 980px;
	margin: 0 auto;
	padding: 16px 20px 4px;
}
#homepage-skill-map .skill-map-body {
	margin-top: 8px;
}

/* Currently building section */
#currently .dev-notes {
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* CTA section */
#cta-section {
	text-align: center;
	padding: 40px 20px;
	background: linear-gradient(135deg, rgba(137, 87, 229, 0.08), transparent);
	border-radius: 16px;
	margin: 32px auto 0;
	max-width: 900px;
	border: 1px solid rgba(137, 87, 229, 0.2);
}

/* Responsive adjustments */
@media (max-width: 900px) {
	.flagship-grid {
		grid-template-columns: 1fr;
	}
	.card-container.flagship {
		padding: 24px;
	}
}

	.card-container {
	position: relative;
	isolation: isolate;
	transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.card-container:hover {
	transform: translateY(-4px);
	border-color: color-mix(in srgb, var(--link-color) 64%, var(--border-color));
	box-shadow: 0 18px 42px color-mix(in srgb, var(--text-color) 14%, transparent);
}
.card-container:focus-within {
	border-color: var(--link-color);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--link-color) 18%, transparent);
}
		padding: 24px;
		background-color: var(--card-bg);
		border: 1px solid var(--border-color);
		border-radius: 14px;
		box-shadow: 0 8px 24px rgba(23, 23, 23, 0.06);
		transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
	}


	.card-container:hover {
		transform: translateY(-4px);
		box-shadow: 0 14px 30px rgba(23, 23, 23, 0.1);
		border-color: color-mix(in srgb, var(--button-color) 55%, var(--border-color));
		background-color: var(--card-bg-hover);
	}

	.archived-features {
		max-width: 820px;
		padding-top: 44px;
	}
	.archived-features h1 {
		color: var(--text-color);
		font-size: clamp(2rem, 5vw, 3.5rem);
		letter-spacing: -0.04em;
		line-height: 1.05;
	}
	.archived-features h2 {
		margin-top: 32px;
	}
	.archived-features .feature {
		margin: 20px 0;
		padding: 24px;
		background: var(--card-bg);
		border: 1px solid var(--border-color);
		border-radius: 14px;
		box-shadow: var(--shadow-soft);
	}
	.archived-features .feature img {
		display: block;
		max-width: 100%;
		height: auto;
	}


.card-container a {
	text-decoration: none;
	color: var(--link-color);
}

.card-container h3 {
	margin: 10px 0;
	color: var(--text-color);
}

.card-container p {
	color: var(--muted-color);
	line-height: 1.6;
	font-size: 0.95rem;
}

	.tag {
		color: var(--link-color) !important;
		font-size: 0.72rem;

	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 0.75px;
}

	.boxes {
		padding: 5px 9px;
		display: inline-block;
		background: var(--surface-soft);
		border: 1px solid var(--border-color);
		border-radius: 999px;
		font-size: 0.76rem;
		margin-right: 0;
		color: var(--text-color);
	}


.ai-badge {
	display: inline-block;
	padding: 3px 9px;
	border-radius: 999px;
	font-size: 0.7rem;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #ffffff;
	background: linear-gradient(90deg, #8957e5, #58a6ff);
	border: 1px solid #a371f7;
	vertical-align: middle;
}

.used-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 0.65rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	color: #0d1117;
	background: #3fb950;
	border: 1px solid #2ea043;
	vertical-align: middle;
	margin-left: 8px;
}

.code-segment {
	padding: 15px;
	background-color: #21252b;
	color: #abb2bf;
	border-radius: 8px;
	border: 1px solid var(--border-color);
	box-sizing: border-box;
	align-self: stretch;
	overflow-x: auto;
}

/* Inline use (<span class="code-segment">core/</span> inside a sentence):
   the block padding above spilled over the neighbouring lines of text. */
span.code-segment {
	display: inline;
	padding: clamp(0px, 0.08vw, 1px) clamp(3px, 0.35vw, 5px);
	border-radius: 3px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: clamp(0.58rem, 0.68em, 0.72rem);
	line-height: 1.15;
	overflow-wrap: anywhere;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

.code-segment pre {
	counter-reset: line-number;
	margin: 0;
	padding: 0;
}

.code-segment pre code {
	display: block;
	padding: 0;
}

.code-segment pre .line {
	display: block;
	counter-increment: line-number;
	position: relative;
	padding-left: 3.5em;
	white-space: pre-wrap;
	word-break: break-word;
}

.code-segment pre .line::before {
	content: counter(line-number);
	position: absolute;
	left: 0;
	top: 0;
	width: 2.5em;
	text-align: right;
	color: #495162;
	user-select: none;
	pointer-events: none;
	border-right: 1px solid #3e4451;
	padding-right: 0.5em;
	font-size: inherit;
}

.ascii-diagram {
	font-family: 'Consolas', 'Courier New', monospace;
	font-size: 0.85rem;
	line-height: 1.6;
	background-color: #282c34;
	color: #abb2bf;
	border: 1px solid var(--border-color);
	border-left: 3px solid var(--button-color);
	border-radius: 8px;
	padding: 20px 24px;
	overflow-x: auto;
	white-space: pre;
	margin: 8px 0;
	width: 100%;
	box-sizing: border-box;
	align-self: stretch;
}

.ascii-diagram .diagram-caption {
	display: block;
	font-size: 0.75rem;
	color: var(--muted-color);
	font-style: italic;
	margin-top: 14px;
	white-space: normal;
	font-family: 'Google Sans', sans-serif;
}

.foot {
	margin: 0px;
	padding: 32px 20px 24px;
}

.foot p {
	color: var(--muted-color);
	font-size: 0.9rem;
	line-height: 1.4;
	text-align: center;
}

.foot-cols {
	display: flex;
	flex-wrap: wrap;
	gap: 28px 56px;
	justify-content: center;
	max-width: 760px;
	margin: 0 auto 24px;
}

.foot-col {
	display: flex;
	flex-direction: column;
	gap: 9px;
	min-width: 140px;
}

.foot-col h4 {
	margin: 0 0 4px;
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.7px;
	color: var(--text-color);
}

.foot-col a {
	color: var(--muted-color);
	text-decoration: none;
	font-size: 0.92rem;
	line-height: 1.3;
}

.foot-col a:hover,
.foot-col a:focus {
	color: var(--link-color);
}

.foot .foot-copy {
	border-top: 1px solid var(--border-color);
	padding-top: 18px;
	margin: 0;
}

.foot .foot-copy a {
	color: inherit;
	text-decoration: none;
}

.foot .foot-copy a:hover,
.foot .foot-copy a:focus {
	color: var(--link-color);
}

.article-stuff {
	color: var(--muted-color);
	font-size: 0.85rem;
	font-style: italic;
}

.screenshot-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 16px;
	width: 100%;
	margin: 8px 0;
}

.screenshot {
	margin: 0;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid var(--border-color);
	background-color: var(--card-bg);
}

.screenshot img {
	width: 100%;
	display: block;
}

.screenshot-placeholder {
	width: 100%;
	height: 200px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #3e4451;
	font-size: 0.85rem;
	font-style: italic;
	border-bottom: 1px solid var(--border-color);
	box-sizing: border-box;
}

.proof-panel {
	min-height: 200px;
	padding: 20px;
	border-bottom: 1px solid var(--border-color);
	box-sizing: border-box;
	color: var(--text-color);
	background: linear-gradient(135deg, rgba(13, 17, 23, 0.98), rgba(22, 27, 34, 0.98));
}

.proof-panel h3 {
	margin: 0 0 12px;
	color: var(--text-color);
	font-size: 1rem;
}

.proof-panel ul {
	margin: 0;
	padding-left: 20px;
	color: var(--muted-color);
	line-height: 1.55;
}

.proof-panel li + li {
	margin-top: 8px;
}

.screenshot figcaption {
	padding: 8px 14px;
	font-size: 0.85rem;
	color: var(--muted-color);
}

.dev-notes {
	display: grid;
	/* auto-fit (not auto-fill) so a section with a single note fills the row
	   instead of leaving empty 260px tracks beside it */
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 16px;
	width: 100%;
	margin: 8px 0;
}

.dev-note {
	padding: 20px 20px 16px;
	background-color: var(--card-bg);
	border-radius: 10px;
	border-left: 3px solid var(--button-color);
}

.dev-note h3 {
	margin: 0 0 10px 0;
	color: var(--text-color);
	font-size: 0.8rem;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 0.7px;
}

.dev-note p {
	color: var(--muted-color);
	line-height: 1.6;
	font-size: 0.95rem;
	margin: 0;
}

.blog-body {
	width: 100%;
	max-width: 760px;
	margin: 0 auto;
	box-sizing: border-box;
	padding-top: 8px;
}

.blog-body h2 {
	color: var(--text-color);
	font-size: 1.35rem;
	font-weight: 600;
	margin-top: 2.5rem;
	margin-bottom: 0.75rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid var(--border-color);
}

.blog-body p {
	color: var(--muted-color);
	line-height: 1.85;
	font-size: 1.05rem;
	margin: 0 0 1.25rem 0;
	font-family: 'Google Sans', sans-serif;
}

.blog-body ol,
.blog-body ul:not(.nav-list) {
	color: var(--muted-color);
	line-height: 1.8;
	font-size: 1.05rem;
	padding-left: 1.75rem;
	margin: 0 0 1.25rem 0;
}

.blog-body li {
	margin-bottom: 0.35rem;
}

.blog-body .menu {
	margin: 1.75rem 0;
}

.blog-body .article-stuff {
	display: block;
	margin-bottom: 1.5rem;
}

/* PDF download button */
.pdf-btn {
	background: transparent;
	border: 1px solid var(--button-color);
	color: var(--button-color);
	border-radius: 12px;
	font-weight: bold;
	padding: 5px 12px;
	cursor: pointer;
	font-size: 0.8rem;
	transition: background 0.15s, color 0.15s;
	white-space: nowrap;
}
.pdf-btn:hover {
	background: var(--button-color);
	color: #fff;
}

/* ───────────────────────────────────────────────
   Responsive overrides — kept after the base rules
   on purpose so they win the cascade at equal
   specificity (media queries do not add specificity).
   ─────────────────────────────────────────────── */

@media (min-width: 1101px) {
	.nav-list {
		display: inline-flex;
	}
	.nav-btn {
		display: inline-block;
	}
}

@media (min-width: 481px) and (max-width: 1024px) {
	/* Keep cards readable on tablets while the filter occupies its own row. */
	.card-grid {
		grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	}
}

/* Tablet / mobile nav becomes a hamburger dropdown */
@media (max-width: 1100px) {
	.hamburger {
		display: flex;
	}
		.nav > .nav-actions > .nav-btn {
			display: none;
		}
		.nav-item--mobile-only {
		display: list-item;
	}

	.nav-list {
		display: flex;
		flex-direction: column;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--bg-elevated) !important;
		border-bottom: 1px solid var(--border-color);
		padding: 4px 0 8px;
		margin: 0;
		z-index: 99;
		transform: translateY(-6px);
		opacity: 0;
		pointer-events: none;
		transition: transform 0.25s ease, opacity 0.2s ease;
	}
	.nav-list.nav-open {
		transform: translateY(0);
		opacity: 1;
		pointer-events: all;
	}
	.nav-item {
		padding: 0;
		border-bottom: 1px solid color-mix(in srgb, var(--border-color) 72%, transparent);
	}
	.nav-item:last-child {
		border-bottom: 0;
	}
	.nav-link {
		display: block;
		padding: 11px 20px;
	}
}

/* Stack the projects/hackathons sidebar + grid on tablets and phones */
/* Stacked layout. Raised from 768px to 900px: between those widths the 240px
   filter sidebar left under ~560px for cards, which forced a single ~700px
   card per row. Stacking the filter into its collapsible bar frees the full
   width and lets that range show two cards like every other size does. */
@media (max-width: 1024px) {
	main[style*="flex-direction: row"] {
		flex-direction: column !important;
	}

	.projects-main {
		flex-direction: column;
	}

		.filter-controls {
			width: 100%;
			margin-bottom: 12px;
		}

		.filter-controls .filter-fieldset {
			width: 100%;
		}


	.sidenav + .card-grid,
	.card-grid[style*="margin-left"] {
		margin-left: 0 !important;
	}

	.card-grid {
		padding: 16px 0;
	}
}

/* Unified portfolio system: one surface language across every page. */
body {
	font-family: var(--font-sans);
	color: var(--text-color);
	background: var(--bg-color);
}

.nav,
.foot,
footer {
  background: var(--bg-elevated) !important;
  color: var(--text-color) !important;
  border-color: var(--border-color) !important;
}

.nav-link,
.text-link,
footer a {
	color: var(--link-color);
}

.nav-link:hover,
.nav-link:focus-visible,
.text-link:hover,
.text-link:focus-visible,
footer a:hover,
footer a:focus-visible {
	color: var(--text-color);
}

.nav-btn,
.audience-link--primary,
.demo-btn,
#mnist-predict {
	background: var(--button-color);
	border-color: var(--button-color);
	border-radius: 8px;
}

	.hero-section {
		background: var(--surface-soft);
		background-image: linear-gradient(var(--accent-grid) 1px, transparent 1px), linear-gradient(90deg, var(--accent-grid) 1px, transparent 1px);
		background-size: 44px 44px;
	}
.hero-section h1 {
	font-family: var(--font-sans);
	font-size: clamp(2.5rem, 7vw, 5.25rem);
	font-weight: 800;
	letter-spacing: -0.06em;
	line-height: 0.98;
	margin: 0 auto 18px;
}
.hero-section .hero-tagline,
.hero-section .hero-copy {
	font-family: var(--font-sans);
}
.hero-section .hero-tagline {
	font-size: clamp(1rem, 2vw, 1.25rem);
}
  .hero-section .hero-copy {
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  }
  }

/* Shared chrome: the navigation and hero intentionally use the same surface,
   border, type family, and responsive spacing so the page feels continuous. */
.nav,
.hero-section {
  background-color: var(--surface-soft);
  color: var(--text-color);
  border-color: var(--border-color);
  font-family: var(--font-sans);
}

.audience-trigger {
  display: inline;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  background: transparent;
  color: var(--link-color);
  box-shadow: none;
}

.audience-modal[hidden] { display: none; }
.audience-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
}
.audience-modal-backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--bg-color) 76%, transparent);
  backdrop-filter: blur(8px);
}
.audience-modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 620px);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  background: var(--bg-elevated);
  color: var(--text-color);
  box-shadow: 0 28px 80px color-mix(in srgb, var(--text-color) 28%, transparent);
  animation: audience-modal-in 220ms cubic-bezier(.22,1,.36,1);
}
.audience-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  border: 0;
  background: transparent;
  color: var(--muted-color);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.audience-modal-card h2 { max-width: 480px; margin: 8px 0 12px; }
.audience-modal-card > p:not(.eyebrow) { color: var(--muted-color); line-height: 1.7; }
.audience-modal-sections { display: grid; gap: 12px; margin: 24px 0 28px; }
.audience-modal-sections article { padding: 16px 18px; border: 1px solid var(--border-color); border-radius: 14px; background: var(--surface-soft); }
.audience-modal-sections h3 { margin: 0 0 6px; font-size: 15px; }
.audience-modal-sections p { margin: 0; color: var(--muted-color); line-height: 1.55; }
.audience-modal-sections a { color: var(--link-color); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.audience-modal-sections a:hover { color: var(--text-color); }
.audience-modal-contact { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; text-align: center; }
body.modal-open { overflow: hidden; }
@keyframes audience-modal-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (prefers-reduced-motion: reduce) { .audience-modal-card { animation: none; } }

.lab-catalog-source .ai-project-row { display: none; }
.lab-catalog-notice { width: min(100% - 32px, 960px); margin: 0 auto 24px; padding: 14px 18px; border: 1px solid var(--border-color); border-radius: 12px; background: var(--surface-soft); color: var(--muted-color); text-align: center; }
.lab-registry-card { border-top: 3px solid var(--link-color); }

/* React pages share this chrome; keep its surface tied to the active theme. */
.nav {
  background-color: var(--bg-elevated) !important;
  color: var(--text-color) !important;
  border-color: var(--border-color) !important;
}

footer {
  background-color: var(--bg-elevated) !important;
  color: var(--muted-color) !important;
}

.nav {
  min-height: clamp(56px, 6vw, 68px);
  padding-inline: clamp(16px, 4vw, 48px);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--border-color) 70%, transparent);
}

.nav-link {
  color: var(--text-color);
  font-size: clamp(0.78rem, 1.1vw, 0.92rem);
  font-weight: 650;
  letter-spacing: -0.01em;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--link-color);
}

.hero-section {
  min-height: clamp(360px, 54vh, 560px);
  padding: clamp(64px, 9vw, 112px) clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--border-color);
	background: var(--surface-soft);
	background-image: linear-gradient(var(--accent-grid) 1px, transparent 1px), linear-gradient(90deg, var(--accent-grid) 1px, transparent 1px);
	background-size: 44px 44px;
}

.hero-section h1,
.hero-section .hero-tagline,
.hero-section .hero-copy {
  color: var(--text-color);
}

.hero-section .hero-tagline {
  color: var(--link-color);
}

.hero-section .hero-copy {
  color: var(--muted-color);
}

@media (max-width: 760px) {
  .nav {
    padding-inline: 16px;
  }

  .hero-section {
    min-height: 420px;
    padding-block: 72px;
  }
}


.card-container,
.work-card,
.dev-note,
.demo-section,
.ai-project-card,
.download-card,
.model-roadmap li,
.proof-link,
.audience-modal {
	background: var(--card-bg);
	border: 1px solid var(--border-color);
	border-radius: 10px;
	box-shadow: var(--shadow-soft);
}

.card-container:hover,
.work-card:hover,
.ai-project-card:hover,
.proof-link:hover {
	border-color: var(--button-color);
	box-shadow: 0 16px 32px rgba(23, 23, 23, 0.12);
}

.tag,
.boxes,
.stack-pill {
	background: var(--surface-soft);
	border: 1px solid var(--border-color);
	border-radius: 999px;
	color: var(--text-color) !important;
}

.audience-overlay { background: rgba(23, 23, 23, 0.42); }
.audience-link,
.audience-ask-btn { background: var(--surface-soft); color: var(--text-color); }

@media (max-width: 560px) {
	.audience-buttons {
	display: flex;
	gap: 16px;
	justify-content: center;
	flex-wrap: wrap;
}

.audience-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	flex: 1 1 260px;
	max-width: 330px;
	padding: 18px 22px 16px;
	font-family: inherit;
	text-align: center;
	cursor: pointer;
	color: var(--text-color);
	background: linear-gradient(180deg, #21262d 0%, #171c23 100%);
	border: 1px solid #3d444d;
	border-radius: 12px;
	/* the "physical" part: a raised lip that compresses on press */
	box-shadow:
		0 4px 0 0 #2b3038,
		0 6px 14px rgba(0, 0, 0, 0.45);
	transition:
		transform 0.08s ease,
		box-shadow 0.08s ease,
		border-color 0.15s ease;
}

.audience-btn:hover {
	border-color: var(--button-color);
	background: linear-gradient(180deg, #262c34 0%, #1b212a 100%);
}

.audience-btn:active {
	transform: translateY(4px);
	box-shadow:
		0 0 0 0 #2b3038,
		0 2px 6px rgba(0, 0, 0, 0.4);
}

.audience-btn:focus-visible {
	outline: 2px solid var(--link-color);
	outline-offset: 3px;
}

.audience-btn-icon {
	font-size: 1.5rem;
	line-height: 1;
}

.audience-btn-title {
	font-size: 1.02rem;
	font-weight: 700;
}

.audience-btn-sub {
	font-size: 0.83rem;
	color: var(--muted-color);
	font-weight: 400;
}

/* ── Modal ── */

.audience-overlay {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(1, 4, 9, 0.78);
	backdrop-filter: blur(3px);
}

.audience-overlay[hidden] {
	display: none;
}

.audience-modal {
	position: relative;
	width: 100%;
	max-width: 680px;
	max-height: 86vh;
	overflow-y: auto;
	padding: 32px 34px 28px;
	text-align: left;
	background: var(--card-bg);
	border: 1px solid var(--border-color);
	border-radius: 14px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
}

.audience-close {
	position: absolute;
	top: 14px;
	right: 16px;
	width: 32px;
	height: 32px;
	font-size: 15px;
	line-height: 1;
	cursor: pointer;
	color: var(--muted-color);
	background: transparent;
	border: 1px solid transparent;
	border-radius: 8px;
}

.audience-close:hover {
	color: var(--text-color);
	border-color: var(--border-color);
}

.audience-modal h2 {
	margin: 0 0 10px;
	font-size: 1.5rem;
	color: var(--text-color);
	padding-right: 40px;
}

.audience-modal h3 {
	margin: 22px 0 8px;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.9px;
	text-transform: uppercase;
	color: var(--button-color);
}

.audience-lede {
	margin: 0;
	color: #adbac7;
	font-size: 0.98rem;
	line-height: 1.65;
}

.audience-list {
	margin: 0;
	padding-left: 20px;
	color: #adbac7;
	font-size: 0.95rem;
	line-height: 1.7;
}

.audience-list li {
	margin-bottom: 5px;
}

.audience-list strong {
	color: var(--text-color);
}

.audience-links {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	margin-top: 26px;
	padding-top: 22px;
	border-top: 1px solid var(--border-color);
}

.audience-link {
	padding: 8px 15px;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	color: var(--text-color);
	background: #21262d;
	border: 1px solid var(--border-color);
	border-radius: 8px;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.audience-link:hover {
	background: var(--card-bg-hover);
	border-color: var(--button-color);
}

.audience-link--primary {
	color: #fff;
	background: var(--button-color);
	border-color: var(--button-color);
}

.audience-link--primary:hover {
	background: #7c4bd6;
	border-color: #7c4bd6;
}

.audience-ask {
	margin-top: 22px;
	padding-top: 20px;
	border-top: 1px solid var(--border-color);
}

.audience-ask-label {
	margin: 0 0 10px;
	font-size: 0.87rem;
	color: var(--muted-color);
}

.audience-ask-btn {
	display: block;
	width: 100%;
	margin-bottom: 8px;
	padding: 10px 14px;
	font-family: inherit;
	font-size: 0.9rem;
	text-align: left;
	cursor: pointer;
	color: var(--link-color);
	background: #0d1117;
	border: 1px solid var(--border-color);
	border-radius: 8px;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.audience-ask-btn::before {
	content: '\1F4AC\00a0\00a0';
}

.audience-ask-btn:hover {
	background: #161b22;
	border-color: var(--link-color);
}

@media (max-width: 560px) {
	.audience-buttons {
		flex-direction: column;
	}

	.audience-btn {
		max-width: none;
		/* the column switch turns flex-basis into a HEIGHT — without this the
		   260px basis makes each button 260px tall on a phone */
		flex: 0 0 auto;
	}

	.audience-modal {
		padding: 26px 20px 22px;
		max-height: 90vh;
	}
}

@media (prefers-reduced-motion: reduce) {
	.audience-btn {
		transition: none;
	}

	.audience-btn:active {
		transform: none;
	}
}

/* ==========================================================================
   College Application Tracker (pages/college-tracker.html)
   Vanilla JS single-page app. Matches the site theme via CSS variables.
   ========================================================================== */
#college-tracker {
	width: 100%;
	max-width: 1100px;
	margin: 0 auto 30px;
}

.ct-meta {
	width: 100%;
	padding: 10px 14px;
	margin-bottom: 16px;
	border-left: 3px solid var(--button-color);
	background: var(--card-bg);
	color: #adbac7;
	border-radius: 8px;
	font-size: 0.9rem;
	line-height: 1.5;
}

.ct-submit-count {
	color: var(--text-color);
}

.ct-tabs {
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 18px;
}

.ct-tab {
	padding: 9px 16px;
	font-size: 0.9rem;
	font-weight: 600;
	color: #adbac7;
	background: var(--card-bg);
	border: 1px solid var(--border-color);
	border-radius: 999px;
	cursor: pointer;
	transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.ct-tab:hover {
	border-color: var(--link-color);
	color: var(--text-color);
}

.ct-tab-active {
	background: var(--button-color);
	border-color: var(--button-color);
	color: #fff;
}

.ct-tab-active:hover {
	color: #fff;
}

/* Dashboard */
.ct-dash {
	display: grid;
	gap: 18px;
}

.ct-summary {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	align-items: baseline;
	padding: 12px 14px;
	background: var(--card-bg);
	border: 1px solid var(--border-color);
	border-radius: 10px;
	color: var(--text-color);
	font-size: 0.95rem;
}

.ct-summary strong {
	color: var(--link-color);
}

.ct-card {
	width: 100%;
	padding: 20px;
	background: var(--card-bg);
	border: 1px solid var(--border-color);
	border-left: 4px solid var(--border-color);
	border-radius: 12px;
}

.ct-card-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 12px;
	justify-content: space-between;
}

.ct-card-title h3 {
	margin: 0 0 2px;
	color: var(--text-color);
	font-size: 1.2rem;
}

.ct-card-fullname {
	font-size: 0.82rem;
}

.ct-card-controls {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.ct-select {
	padding: 6px 10px;
	color: var(--text-color);
	background: #0d1117;
	border: 1px solid var(--border-color);
	border-radius: 8px;
	font-size: 0.88rem;
}

.ct-input {
	padding: 7px 10px;
	color: var(--text-color);
	background: #0d1117;
	border: 1px solid var(--border-color);
	border-radius: 8px;
	font-size: 0.88rem;
	width: 100%;
}

.ct-input:focus,
.ct-select:focus {
	outline: none;
	border-color: var(--link-color);
}

.ct-muted {
	color: var(--muted-color);
	font-size: 0.85rem;
	line-height: 1.5;
}

.ct-label {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	color: var(--button-color);
}

.ct-tier-row {
	margin: 12px 0 4px;
}

.ct-tier {
	display: inline-block;
	padding: 3px 10px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.5px;
	border-radius: 999px;
	border: 1px solid transparent;
}

.ct-tier-todo {
	color: var(--muted-color);
	background: #21262d;
	border-color: var(--border-color);
}

.ct-tier-safety {
	color: #0d1117;
	background: #3fb950;
}

.ct-tier-target {
	color: #0d1117;
	background: #58a6ff;
}

.ct-tier-reach {
	color: #0d1117;
	background: #d29922;
}

.ct-tier-lottery {
	color: #0d1117;
	background: #a371f7;
}

/* deadline chips */
.ct-deadlines {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 14px 0 4px;
}

.ct-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 11px;
	border: 1px solid var(--border-color);
	background: #21262d;
	border-radius: 999px;
	font-size: 0.82rem;
	color: var(--text-color);
}

.ct-chip .ct-chip-label {
	color: var(--muted-color);
	text-transform: none;
	letter-spacing: 0;
}

.ct-chip .ct-chip-val {
	font-weight: 600;
}

.ct-chip.urgent-red {
	border-color: #f85149;
	background: rgba(248, 81, 73, 0.18);
	color: #ffb4ac;
}

.ct-chip.urgent-yellow {
	border-color: #bb8009;
	background: rgba(187, 128, 9, 0.18);
	color: #eac54f;
}

.ct-chip.urgent-cool {
	border-color: #58a6ff;
	background: rgba(88, 166, 255, 0.12);
	color: #9ecbff;
}

.ct-chip.overdue {
	border-color: #f85149;
	background: rgba(248, 81, 73, 0.28);
	color: #fff;
}

.ct-chip-todo {
	opacity: 0.75;
}

.ct-chip-datewrap {
	position: relative;
	cursor: pointer;
}

.ct-date-edit {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
}

.ct-css-note {
	margin: 10px 0 0;
	font-size: 0.8rem;
	color: #d29922;
}

/* portal block */
.ct-portal-block {
	display: grid;
	gap: 8px;
	margin-top: 10px;
}

.ct-portal-line {
	font-size: 0.9rem;
}

/* materials checklist */
.ct-materials-head {
	margin: 16px 0 6px;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: var(--button-color);
}

.ct-materials {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 4px 12px;
}

.ct-material {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--text-color);
	font-size: 0.88rem;
}

.ct-check {
	accent-color: var(--button-color);
	width: 16px;
	height: 16px;
	cursor: pointer;
}

/* --- read-only mode (visitors) vs edit mode (?edit=1) --- */
.ct-mode {
	margin: 10px 0 14px;
	padding: 9px 14px;
	border-left: 3px solid var(--border-color);
	background: #161b22;
	border-radius: 0 6px 6px 0;
	color: var(--muted-color);
	font-size: 0.85rem;
	line-height: 1.5;
}

.ct-mode-edit {
	border-left-color: var(--button-color);
	background: rgba(137, 87, 229, 0.12);
	color: var(--text-color);
}

.ct-mark {
	display: inline-block;
	width: 16px;
	text-align: center;
	color: var(--muted-color);
}

.ct-material-done .ct-mark {
	color: #3fb950;
}

.ct-notes-static {
	margin-top: 8px;
	padding-left: 10px;
	border-left: 2px solid var(--border-color);
	font-style: italic;
}

.ct-essaylist {
	list-style: none;
	margin: 8px 0 0;
	padding: 0;
}

.ct-essaylist li {
	padding-left: 14px;
	position: relative;
}

.ct-essaylist li::before {
	content: '\2022';
	position: absolute;
	left: 0;
	color: var(--button-color);
}

.ct-notes-input {
	margin-top: 12px;
	width: 100%;
}

/* This Week */
.ct-week {
	display: grid;
	gap: 12px;
}

.ct-week-header {
	font-size: 1rem;
	font-weight: 700;
	color: var(--text-color);
	margin-top: 6px;
}

.ct-week-list {
	display: grid;
	gap: 8px;
}

.ct-day {
	padding: 10px 14px;
	background: var(--card-bg);
	border: 1px solid var(--border-color);
	border-radius: 10px;
}

.ct-day-today {
	border-color: var(--button-color);
}

.ct-day-head {
	font-weight: 600;
	color: var(--text-color);
	margin-bottom: 4px;
}

.ct-task {
	color: var(--text-color);
	font-size: 0.9rem;
	padding: 3px 0;
	border-left: 2px solid var(--button-color);
	padding-left: 10px;
}

.ct-task-pending {
	border-left-color: #d29922;
}

/* table views (honors + essays) */
.ct-table {
	width: 100%;
	border-collapse: collapse;
	background: var(--card-bg);
	border: 1px solid var(--border-color);
	border-radius: 10px;
	overflow: hidden;
}

.ct-table th {
	text-align: left;
	padding: 10px 12px;
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--muted-color);
	background: #1c2128;
	border-bottom: 1px solid var(--border-color);
}

.ct-table td {
	padding: 9px 12px;
	color: var(--text-color);
	font-size: 0.88rem;
	border-bottom: 1px solid rgba(48, 54, 61, 0.5);
	vertical-align: top;
}

.ct-table tr:last-child td {
	border-bottom: none;
}

.ct-table thead {
	display: table-header-group;
}

.ct-overlap {
	color: #f0883e;
}

.ct-textarea {
	width: 100%;
	padding: 7px 10px;
	color: var(--text-color);
	background: #0d1117;
	border: 1px solid var(--border-color);
	border-radius: 8px;
	font-family: inherit;
	font-size: 0.85rem;
	resize: vertical;
}

.ct-wordcount {
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

/* Export */
.ct-export {
	display: grid;
	gap: 14px;
}

.ct-export-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 14px;
}

.ct-export-card {
	padding: 18px;
	background: var(--card-bg);
	border: 1px solid var(--border-color);
	border-radius: 10px;
}

.ct-export-card h3 {
	margin: 0 0 4px;
	color: var(--text-color);
}

.ct-export-card p {
	color: var(--muted-color);
	font-size: 0.88rem;
	line-height: 1.5;
}

.ct-btn {
	padding: 9px 16px;
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--text-color);
	background: #21262d;
	border: 1px solid var(--border-color);
	border-radius: 8px;
	cursor: pointer;
	transition: border-color 0.15s ease;
}

.ct-btn:hover {
	border-color: var(--link-color);
}

.ct-btn-primary {
	background: var(--button-color);
	border-color: var(--button-color);
	color: #fff;
}

.ct-btn-primary:hover {
	background: #7c4bd6;
	border-color: #7c4bd6;
}

.ct-btn-danger {
	border-color: #f85149;
	color: #ffb4ac;
	background: rgba(248, 81, 73, 0.12);
}

.ct-btn-danger:hover {
	border-color: #f85149;
	background: rgba(248, 81, 73, 0.25);
}

@media (max-width: 560px) {
	.ct-card-head {
		flex-direction: column;
	}

	.ct-table thead {
		display: none;
	}

	.ct-table,
	.ct-table tbody,
	.ct-table tr,
	.ct-table td {
		display: block;
		width: 100%;
	}

	.ct-table tr {
		padding: 10px 0;
		border-bottom: 1px solid var(--border-color);
	}

	.ct-table td {
		border: none;
		padding: 4px 12px;
	}

	.ct-table td::before {
		content: attr(data-label);
		display: block;
		font-size: 0.72rem;
		text-transform: uppercase;
		letter-spacing: 0.5px;
		color: var(--muted-color);
	}
}

/* ==========================================================================
   GitHub activity feed (pages/projects.html, github-activity.js)
   ========================================================================== */
.gh-activity-dropdown {
	margin-top: 14px;
	border: 1px solid var(--border-color);
	border-radius: 16px;
	background: var(--card-bg);
	overflow: hidden;
}
.gh-activity-summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 15px 18px;
	cursor: pointer;
	font-weight: 750;
	color: var(--text-color);
	list-style: none;
}
.gh-activity-summary::-webkit-details-marker { display: none; }
.gh-activity-summary::after { content: '▾'; color: var(--muted-color); transition: transform 160ms ease; }
.gh-activity-dropdown[open] .gh-activity-summary::after { transform: rotate(180deg); }
.gh-activity-label { color: var(--text-color); }
.gh-activity-count { margin-left: auto; color: var(--muted-color); font-size: 0.82rem; font-weight: 500; }
.gh-table-wrap { overflow-x: auto; border-top: 1px solid var(--border-color); }
.gh-repo-table { width: 100%; min-width: 760px; table-layout: fixed; border-collapse: collapse; }
.gh-repo-table th:nth-child(1), .gh-repo-table td:nth-child(1) { width: 38%; }
.gh-repo-table th:nth-child(2), .gh-repo-table td:nth-child(2) { width: 22%; }
.gh-repo-table th:nth-child(3), .gh-repo-table td:nth-child(3) { width: 25%; }
.gh-repo-table th:nth-child(4), .gh-repo-table td:nth-child(4) { width: 15%; }
.gh-repo-table th,
.gh-repo-table td { padding: 14px 16px; border-bottom: 1px solid color-mix(in srgb, var(--link-color) 18%, var(--border-color)); border-right: 1px solid color-mix(in srgb, var(--link-color) 12%, transparent); text-align: left; vertical-align: middle; }
.gh-repo-table th:last-child,
.gh-repo-table td:last-child { border-right: 0; }
.gh-repo-table tbody tr + tr td { border-top: 1px solid color-mix(in srgb, var(--link-color) 10%, var(--border-color)); }
.gh-repo-table th { background: var(--surface-soft); color: var(--muted-color); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.gh-repo-table tbody tr:last-child td { border-bottom: 0; }
.gh-repo-row:hover td { background: color-mix(in srgb, var(--surface-soft) 55%, transparent); }
.gh-repo-cell-name { min-width: 220px; }
.gh-repo-name { display: block; font-size: 1rem; font-weight: 750; color: var(--link-color); text-decoration: none; }
.gh-repo-name:hover { text-decoration: underline; }
.gh-repo-desc { display: block; max-width: 420px; padding-top: 5px; line-height: 1.45; font-size: 0.82rem; }
.gh-repo-action, .gh-repo-submeta { display: block; white-space: nowrap; }
.gh-repo-action { font-size: 0.86rem; }
.gh-repo-browse { white-space: nowrap; }
.gh-repo-submeta { margin-top: 4px; color: var(--muted-color); font-size: 0.76rem; }
.gh-repo-tags { min-width: 150px; }
.gh-repo-tags .boxes { margin: 2px 4px 2px 0; }
.gh-repo-browse { text-align: right !important; white-space: nowrap; }
.gh-tree-toggle { min-height: 34px; padding: 6px 11px; border-radius: 8px; font-size: 0.78rem; }
.gh-tree-row[hidden] { display: none; }
.gh-tree-cell { background: var(--surface-soft); }
.gh-tree { max-height: 320px; margin: 0; overflow: auto; border-radius: 8px; font-size: 0.78rem; line-height: 1.5; }

.github-activity h2 {
	text-align: center;
	margin-bottom: 10px;
}

/* ==========================================================================
   Projects search  (assets/js/filter-mechanics.js)
   Search box + clear + live result count, living inside the existing .sidenav.
   ========================================================================== */

.filter-search {
	width: 100%;
	margin: 0 0 18px;
}

.filter-search-label {
	display: block;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--text-color);
	margin-bottom: 8px;
}

.filter-search-row {
	width: 100%;
}

.filter-search-input {
	display: block;
	width: 100%;
	min-height: 46px;
	box-sizing: border-box;
	background: var(--card-bg);
	color: var(--text-color);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	padding: 11px 14px;
	font: inherit;
	font-size: 0.98rem;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.filter-search-input:focus-visible {
	outline: 2px solid var(--link-color);
	outline-offset: 1px;
	border-color: var(--link-color);
}

.filter-search-input::placeholder {
	color: var(--muted-color);
	opacity: 0.9;
}

.filter-clear {
	margin-top: 8px;
	background: #21262d;
	color: var(--text-color);
	border: 1px solid #30363d;
	border-radius: 6px;
	padding: 6px 10px;
	font: inherit;
	font-size: 0.85rem;
	cursor: pointer;
}

.filter-clear:hover {
	border-color: var(--link-color);
	color: var(--link-color);
}

.filter-status {
	margin: 8px 0 0;
	font-size: 0.82rem;
	color: var(--muted-color);
	line-height: 1.4;
}

/* Empty state: sits above the (now empty) grid rather than inside it, so the
   grid's auto-fill columns can't stretch it into a full-width card. */
.filter-empty {
	margin: 0 20px 8px;
	padding: 16px 18px;
	background: var(--card-bg);
	border: 1px solid #30363d;
	border-radius: 10px;
	color: var(--muted-color);
	line-height: 1.6;
}

/* "Showing 11 of 32 projects using React" bar just above the cards, so the
   active filter stays visible after a skill chip scrolls the page down. */
.filter-results {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	margin: 0 20px 8px;
	padding: 10px 14px;
	background: var(--card-bg);
	border: 1px solid var(--border-color);
	border-left: 3px solid var(--link-color);
	border-radius: 8px;
	color: var(--text-color);
	scroll-margin-top: 16px;
}

.filter-results[hidden] {
	display: none;
}

.filter-results-clear {
	appearance: none;
	border: 1px solid var(--border-color);
	border-radius: 999px;
	padding: 9px 16px;
	background: var(--button-color);
	color: #fff;
	font: inherit;
	font-size: 0.88rem;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 6px 18px color-mix(in srgb, var(--button-color) 22%, transparent);
	transition: transform 160ms ease, filter 160ms ease;
}
.filter-results-clear:hover { filter: brightness(1.08); transform: translateY(-1px); }
.filter-results-clear:focus-visible { outline: 2px solid var(--link-color); outline-offset: 3px; }
.filter-empty-clear {
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	color: var(--link-color);
	text-decoration: underline;
	cursor: pointer;
}

/* ---------------------------------------------------------------------------
   Commits & files panel on project cards (assets/js/repo-explorer.js).
   Collapsed by default; the body is built from the GitHub API on first open.
   --------------------------------------------------------------------------- */
.repo-explorer {
	margin-top: 14px;
	border-top: 1px solid var(--border-color);
	padding-top: 10px;
	font-size: 0.85rem;
}

.repo-explorer > summary {
	cursor: pointer;
	color: var(--link-color);
	font-weight: 600;
	list-style-position: inside;
}

.repo-explorer-body {
	margin-top: 10px;
	max-height: 360px;
	overflow: auto;
	overscroll-behavior: contain;
	padding-right: 4px;
}

.repo-explorer-head {
	margin: 8px 0 6px;
	color: var(--text-color) !important;
	font-weight: 600;
	font-size: 0.8rem !important;
	text-transform: uppercase;
	letter-spacing: 0.75px;
}

.repo-explorer-note,
.repo-explorer-foot {
	font-size: 0.82rem !important;
	margin: 6px 0;
}

.repo-commits,
.repo-tree {
	list-style: none;
	margin: 0;
	padding: 0;
}

.repo-commits li {
	display: flex;
	gap: 8px;
	align-items: baseline;
	padding: 3px 0;
	min-width: 0;
}

.repo-sha {
	font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
	flex-shrink: 0;
}

.repo-msg {
	color: #c9d1d9;
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.repo-when {
	color: var(--muted-color);
	flex-shrink: 0;
	font-size: 0.78rem;
}

.repo-tree .repo-tree {
	padding-left: 14px;
	border-left: 1px solid var(--border-color);
	margin-left: 4px;
}

.repo-tree li {
	padding: 1px 0;
	overflow-wrap: anywhere;
}

.repo-dir {
	cursor: pointer;
	color: #c9d1d9;
}

.repo-file {
	font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
	font-size: 0.8rem;
}

@media print {
	.repo-explorer {
		display: none;
	}
}

/* Live GitHub Actions badge on project cards that have automated tests/CI.
   The badge image is served by GitHub, so pass/fail is always current. */
.ci-proof {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	margin: 12px 0 0;
	font-size: 0.85rem;
	color: var(--muted-color);
}

.ci-proof img {
	display: block;
	height: 20px;
	width: auto;
}

/* About Me "What I'm Learning Now": each skill paired with its proof project */
.learning-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
}

.learning-list li {
	padding: 12px 14px;
	border: 1px solid var(--border-color);
	border-radius: 8px;
	background: var(--card-bg);
}

.learning-list strong {
	color: var(--text-color);
}

.learning-list p {
	margin: 6px 0 0;
	color: var(--muted-color);
	line-height: 1.6;
}

.learning-status {
	margin-left: 8px;
	padding: 2px 8px;
	border: 1px solid #58a6ff;
	border-radius: 999px;
	color: #58a6ff;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	vertical-align: 2px;
}

.learning-status--next {
	border-color: var(--border-color);
	color: var(--muted-color);
}
