:root {
	--bg: #fafafa;
	--surface: #ffffff;
	--surface-inset: #f4f4f5;
	--surface-hover: #ebebed;
	--border: #e4e4e7;
	--section-border: #09090b;
	--text: #09090b;
	--text-secondary: #3f3f46;
	--text-muted: #71717a;
	--accent: #18181b;
	--accent-fg: #fff;
	--link: #2563eb;
	--ring: rgba(9, 9, 11, 0.1);
	--sidebar-w: 320px;
	--main-max: 860px;
	--radius-lg: 12px;
	--radius: 8px;
	--radius-sm: 6px;
	--section-gap: clamp(32px, 6vw, 48px);
	--scrollbar-track: #e4e4e7;
	--scrollbar-thumb: #a1a1aa;
	--scrollbar-thumb-hover: #71717a;
}

[data-theme="dark"] {
	--bg: #09090b;
	--surface: #111113;
	--surface-inset: #1a1a1e;
	--surface-hover: #27272a;
	--border: #27272a;
	--section-border: #fafafa;
	--text: #fafafa;
	--text-secondary: #d4d4d8;
	--text-muted: #a1a1aa;
	--accent: #fafafa;
	--accent-fg: #09090b;
	--link: #60a5fa;
	--ring: rgba(250, 250, 250, 0.08);
	--scrollbar-track: #1a1a1e;
	--scrollbar-thumb: #3f3f46;
	--scrollbar-thumb-hover: #52525b;
}

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

body.docs {
	font-family: "Work Sans", system-ui, -apple-system, sans-serif;
	background: var(--bg);
	color: var(--text);
	line-height: 1.6;
	min-height: 100vh;
	-webkit-font-smoothing: antialiased;
}



html {
	scrollbar-width: thin;
	scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

html::-webkit-scrollbar {
	width: 10px;
	height: 10px;
}

html::-webkit-scrollbar-track {
	background: var(--scrollbar-track);
}

html::-webkit-scrollbar-thumb {
	background: var(--scrollbar-thumb);
	border-radius: 5px;
}

html::-webkit-scrollbar-thumb:hover {
	background: var(--scrollbar-thumb-hover);
}

.sidebar,
.sidebar-nav,
.search-overlay {
	scrollbar-width: thin;
	scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

.sidebar::-webkit-scrollbar,
.sidebar-nav::-webkit-scrollbar,
.search-overlay::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}

.sidebar::-webkit-scrollbar-track,
.sidebar-nav::-webkit-scrollbar-track,
.search-overlay::-webkit-scrollbar-track {
	background: var(--scrollbar-track);
}

.sidebar::-webkit-scrollbar-thumb,
.sidebar-nav::-webkit-scrollbar-thumb,
.search-overlay::-webkit-scrollbar-thumb {
	background: var(--scrollbar-thumb);
	border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb:hover,
.sidebar-nav::-webkit-scrollbar-thumb:hover,
.search-overlay::-webkit-scrollbar-thumb:hover {
	background: var(--scrollbar-thumb-hover);
}


body[data-page="accessibility"] .kicker { color: #2563eb; }
body[data-page="sustainability"] .kicker { color: #16a34a; }
body[data-page="tech-grants"] .kicker { color: #b45309; }

[data-theme="dark"] body[data-page="accessibility"] .kicker { color: #60a5fa; }
[data-theme="dark"] body[data-page="sustainability"] .kicker { color: #4ade80; }
[data-theme="dark"] body[data-page="tech-grants"] .kicker { color: #fbbf24; }

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

a:hover {
	text-decoration: none;
	opacity: 0.85;
}

a:focus-visible,
button:focus-visible {
	outline: 2px solid var(--link);
	outline-offset: 2px;
	border-radius: var(--radius-sm);
}



.sidebar {
	position: fixed;
	inset: 0 auto 0 0;
	width: var(--sidebar-w);
	z-index: 40;
	background: var(--surface);
	display: flex;
	flex-direction: column;
	transform: translateX(0);
	transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1),
		box-shadow 0.32s ease;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	will-change: transform;
	box-shadow: 1px 0 0 var(--border);
}

body.sidebar-collapsed .sidebar {
	transform: translateX(-100%);
	box-shadow: none;
}

.sidebar-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 16px 16px 12px;
	flex-shrink: 0;
	min-width: 0;
}

.logo {
	font-family: "Work Sans", system-ui, -apple-system, sans-serif;
	font-weight: 600;
	font-size: 1.05rem;
	color: var(--text);
	text-decoration: none;
	letter-spacing: -0.01em;
	flex: 1;
	min-width: 0;
	/* Keep title on one line now that sidebar is wider */
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.logo:hover {
	text-decoration: none;
	opacity: 1;
}

.sidebar-close .close-x {
	display: none;
}

.sidebar-close .close-panel {
	display: block;
}

@media (max-width: 860px) {
	.sidebar-close .close-x {
		display: block;
	}
	.sidebar-close .close-panel {
		display: none;
	}
}

@media (min-width: 861px) {
	#sidebar-open {
		opacity: 0;
		pointer-events: none;
		transition: background 0.12s, color 0.12s, border-color 0.12s,
			opacity 0.12s ease;
	}
	body.sidebar-collapsed #sidebar-open {
		opacity: 1;
		pointer-events: auto;
		transition: background 0.12s, color 0.12s, border-color 0.12s,
			opacity 0.15s ease 0.22s;
	}
}



.sidebar-search {
	padding: 10px 12px 6px;
	flex-shrink: 0;
	overflow: hidden;
}

.search-trigger {
	display: flex;
	align-items: center;
	gap: 6px;
	width: 100%;
	min-width: 0;
	padding: 9px 12px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--surface-inset);
	color: var(--text-muted);
	font-family: inherit;
	font-size: 0.8125rem;
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s, color 0.15s;
	overflow: hidden;
}

.search-trigger:hover {
	border-color: var(--surface-hover);
	background: var(--surface-hover);
	color: var(--text);
	opacity: 1;
}

.search-trigger:focus-visible {
	border-color: var(--link);
	outline: none;
}

body.search-open {
	overflow: hidden;
}

.search-trigger span {
	flex: 1;
	min-width: 0;
	text-align: left;
	overflow: hidden;
	text-overflow: ellipsis;
}

.search-trigger svg {
	flex-shrink: 0;
	color: var(--text-muted);
}

.search-trigger kbd {
	font-family: inherit;
	font-size: 0.65rem;
	font-weight: 500;
	letter-spacing: 0.02em;
	padding: 3px 5px;
	border: 1px solid var(--border);
	border-radius: 4px;
	background: var(--surface);
	color: var(--text-muted);
	line-height: 1;
	flex-shrink: 0;
	white-space: nowrap;
	box-sizing: border-box;
}



.search-overlay {
	position: fixed;
	inset: 0;
	z-index: 100;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: clamp(16px, 12vh, 140px) 16px 16px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.15s ease, visibility 0.15s ease;
	overflow-y: auto;
}

.search-overlay.open {
	opacity: 1;
	visibility: visible;
}

[data-theme="dark"] .search-overlay {
	background: rgba(0, 0, 0, 0.65);
}

.search-dialog {
	width: 100%;
	max-width: 540px;
	max-height: calc(100vh - clamp(16px, 12vh, 140px) - 16px);
	display: flex;
	flex-direction: column;
	background: var(--surface);
	border-radius: var(--radius-lg);
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.08);
	overflow: hidden;
	transform: scale(0.97) translateY(-8px);
	transition: transform 0.15s ease;
	flex-shrink: 0;
}

.search-overlay.open .search-dialog {
	transform: scale(1) translateY(0);
}

[data-theme="dark"] .search-dialog {
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
}

.search-dialog-header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 16px;
	flex-shrink: 0;
}

.search-dialog-header svg {
	flex-shrink: 0;
	color: var(--text-muted);
}

.search-dialog-input {
	flex: 1;
	border: none;
	background: none;
	color: var(--text);
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 400;
	outline: none;
	min-width: 0;
}

.search-dialog-input::placeholder {
	color: var(--text-muted);
}

.search-esc {
	font-family: inherit;
	font-size: 0.68rem;
	font-weight: 500;
	padding: 3px 6px;
	border-radius: 4px;
	background: var(--surface-inset);
	color: var(--text-muted);
	line-height: 1;
	flex-shrink: 0;
}

.search-dialog-body {
	flex: 1 1 auto;
	min-height: 0;
	max-height: min(400px, 50vh);
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

.search-dialog-body::-webkit-scrollbar {
	width: 8px;
}

.search-dialog-body::-webkit-scrollbar-track {
	background: var(--scrollbar-track);
}

.search-dialog-body::-webkit-scrollbar-thumb {
	background: var(--scrollbar-thumb);
	border-radius: 4px;
}

.search-dialog-body::-webkit-scrollbar-thumb:hover {
	background: var(--scrollbar-thumb-hover);
}

.search-dialog-body:empty {
	display: none;
}

.search-dialog-body:not(:empty) {
	padding-bottom: 6px;
}

.search-dialog-body a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 8px 16px;
	font-size: 0.88rem;
	color: var(--text-secondary);
	text-decoration: none;
	transition: background 0.08s;
	border-radius: 0;
}

.search-dialog-body a:hover,
.search-dialog-body a.active {
	background: var(--surface-inset);
	color: var(--text);
	opacity: 1;
}

.search-dialog-body a .search-title {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.search-dialog-body a .search-page {
	font-size: 0.7rem;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	flex-shrink: 0;
}

.search-dialog-body .search-group-label {
	padding: 10px 16px 4px;
	font-size: 0.68rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--text-muted);
	user-select: none;
}

.search-dialog-body .search-group-label:not(:first-child) {
	margin-top: 2px;
	padding-top: 12px;
}

.search-dialog-body a .search-arrow {
	flex-shrink: 0;
	color: var(--text-muted);
	opacity: 0;
	transition: opacity 0.1s;
}

.search-dialog-body a:hover .search-arrow,
.search-dialog-body a.active .search-arrow {
	opacity: 1;
}

.search-dialog-body .search-empty {
	padding: 24px 16px;
	font-size: 0.88rem;
	color: var(--text-muted);
	text-align: center;
}

.search-dialog-footer {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 8px 16px;
	background: var(--surface-inset);
	flex-shrink: 0;
}

.search-dialog-footer span {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 0.7rem;
	color: var(--text-muted);
}

.search-dialog-footer kbd {
	font-family: inherit;
	font-size: 0.62rem;
	font-weight: 600;
	padding: 2px 4px;
	border-radius: 3px;
	background: var(--surface);
	color: var(--text-muted);
	line-height: 1;
}



.sidebar-nav {
	flex: 1;
	padding: 8px 10px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	overflow-y: auto;
}

.nav-group {
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.nav-label {
	font-size: 0.82rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--text-muted);
	padding: 0 8px 6px;
}


.nav-group--tracks {
	margin-top: 4px;
}

.nav-group--tracks .nav-label {
	padding: 0 8px 8px;
}

.nav-group--tracks a {
	padding-left: 10px;
	margin-left: 0;
	border-left: none !important;
}

.nav-group a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 7px 10px;
	border-radius: var(--radius-sm);
	color: var(--text-muted);
	font-size: 0.84rem;
	font-weight: 450;
	text-decoration: none;
	transition: background 0.12s, color 0.12s;
	border-left: none;
}

.nav-group a:hover {
	background: var(--surface-inset);
	color: var(--text);
	text-decoration: none;
	opacity: 1;
}

.nav-group a.active {
	background: var(--surface-inset);
	color: var(--text);
	font-weight: 600;
	border-left: none !important;
}

.nav-group--tracks a.active {
	border-left: none !important;
}



.nav-sub {
	display: flex;
	flex-direction: column;
	gap: 0;
	padding-left: 14px;
	margin-top: 2px;
	margin-left: 18px;
	border-left: none !important;
}

.nav-sub a {
	font-size: 0.78rem;
	padding: 4px 10px;
	color: var(--text-muted);
	font-weight: 400;
	border-radius: var(--radius-sm);
	text-decoration: none;
	display: block;
	transition: color 0.12s, background 0.12s;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	border-left: none !important;
}

.nav-sub a:hover {
	color: var(--text);
	background: var(--surface-inset);
	opacity: 1;
}

.nav-sub a.active {
	color: var(--link);
	font-weight: 500;
	background: none;
	border-left: none !important;
}


.nav-sub.nav-sub-collapsed {
	display: none;
}


body[data-page="sustainability"] .nav-sub a.active { color: #16a34a; }
body[data-page="accessibility"] .nav-sub a.active { color: #2563eb; }
body[data-page="tech-grants"] .nav-sub a.active { color: #b45309; }

[data-theme="dark"] body[data-page="sustainability"] .nav-sub a.active { color: #4ade80; }
[data-theme="dark"] body[data-page="accessibility"] .nav-sub a.active { color: #60a5fa; }
[data-theme="dark"] body[data-page="tech-grants"] .nav-sub a.active { color: #fbbf24; }

.sidebar-bottom {
	margin-top: auto;
	padding: 10px 14px 14px;
	flex-shrink: 0;
	border-top: 1px solid var(--border);
}

.sidebar-footer-links {
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.sidebar-footer-link {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 0;
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--text-muted);
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.15s ease;
}

.sidebar-footer-link span {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sidebar-footer-link svg {
	flex-shrink: 0;
	opacity: 0.6;
}

.sidebar-footer-link:hover {
	color: var(--text);
}

.sidebar-footer-link:hover svg {
	opacity: 1;
}

.sidebar-footer-link--primary {
	color: var(--link);
}

.sidebar-footer-link--primary:hover {
	color: var(--link);
}

.sidebar-footer-link--primary svg {
	opacity: 0.9;
}

.sidebar-footer-link.active {
	color: var(--text-secondary);
	font-weight: 600;
}

.sidebar-footer-link.active svg {
	opacity: 1;
}



.backdrop {
	position: fixed;
	inset: 0;
	z-index: 35;
	background: rgba(0, 0, 0, 0.4);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.32s ease;
}

.backdrop.visible {
	opacity: 1;
	pointer-events: auto;
}

.tips-overlay {
	position: fixed;
	inset: 0;
	z-index: 100;
	background: rgba(0, 0, 0, 0.72);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.tips-overlay.visible {
	opacity: 1;
	pointer-events: auto;
}

.tips-dialog {
	background: var(--surface);
	border-radius: 14px;
	padding: 32px 36px;
	max-width: 440px;
	box-shadow: 0 32px 64px rgba(0, 0, 0, 0.4), 0 0 1px rgba(255, 255, 255, 0.08);
	border: 1px solid var(--border);
	animation: tips-enter 0.3s ease;
}

.onboarding-dialog {
	position: relative;
	max-width: 620px;
	padding: 36px 56px 36px 40px;
}

.onboarding-close-x {
	position: absolute;
	top: 16px;
	right: 16px;
	left: auto;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: none;
	background: var(--surface-inset);
	color: var(--text-muted);
	cursor: pointer;
	border-radius: 50%;
	transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.onboarding-close-x:hover {
	background: var(--surface-hover);
	color: var(--text);
	transform: scale(1.05);
}

.onboarding-intro {
	margin-bottom: 28px;
}

.onboarding-option {
	margin-bottom: 24px;
}

.onboarding-label {
	display: block;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--text-muted);
	margin-bottom: 10px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.onboarding-toggle {
	display: inline-flex;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface-inset);
	padding: 3px;
	gap: 2px;
}

.onboarding-option-btn {
	font-family: inherit;
	font-size: 0.875rem;
	font-weight: 500;
	padding: 8px 16px;
	border: none;
	border-radius: 6px;
	background: transparent;
	color: var(--text-muted);
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.onboarding-option-btn:hover {
	color: var(--text);
	background: var(--surface-hover);
}

.onboarding-option-btn[aria-pressed="true"] {
	background: var(--surface);
	color: var(--text);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.onboarding-edit-note {
	font-size: 0.875rem;
	color: var(--text-muted);
	margin: 0 0 28px;
	line-height: 1.5;
}

.onboarding-actions {
	display: flex;
	justify-content: center;
}

.onboarding-actions .tips-close {
	width: auto;
	min-width: 160px;
}

#tips-btn {
	position: relative;
}

#tips-btn.onboarding-highlight {
	border-radius: var(--radius);
	animation: onboarding-highlight-pulse 6s ease-out forwards;
}

.onboarding-tooltip {
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	margin-top: 8px;
	padding: 6px 12px;
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--text);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 6px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	white-space: nowrap;
	z-index: 100;
	pointer-events: none;
	animation: onboarding-tooltip-in 0.2s ease;
}

.onboarding-tooltip::before {
	content: "";
	position: absolute;
	top: -5px;
	left: 50%;
	margin-left: -5px;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-bottom: 5px solid var(--border);
}

.onboarding-tooltip::after {
	content: "";
	position: absolute;
	top: -4px;
	left: 50%;
	margin-left: -4px;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-bottom: 4px solid var(--surface);
}

[data-theme="dark"] .onboarding-tooltip {
	background: #26262c;
	border-color: #3f3f46;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .onboarding-tooltip::after {
	border-bottom-color: #26262c;
}

.onboarding-tooltip-fade {
	opacity: 0;
	transition: opacity 0.25s ease-out;
}

@keyframes onboarding-tooltip-in {
	from {
		opacity: 0;
		transform: translateX(-50%) translateY(-4px);
	}
	to {
		opacity: 1;
		transform: translateX(-50%) translateY(0);
	}
}

@keyframes onboarding-highlight-pulse {
	0% {
		box-shadow: 0 0 0 0 var(--accent);
	}
	15% {
		box-shadow: 0 0 0 4px var(--accent);
	}
	50% {
		box-shadow: 0 0 0 4px var(--accent);
	}
	100% {
		box-shadow: 0 0 0 0 transparent;
	}
}

@keyframes tips-enter {
	from {
		opacity: 0;
		transform: scale(0.96) translateY(-8px);
	}
	to {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}

.tips-dialog h2 {
	font-family: "Work Sans", system-ui, -apple-system, sans-serif;
	font-size: 1.35rem;
	font-weight: 600;
	margin: 0 0 8px;
	color: var(--text);
	letter-spacing: -0.02em;
}

.tips-dialog > p {
	font-size: 0.9375rem;
	color: var(--text-secondary);
	margin: 0 0 24px;
	line-height: 1.55;
}

.tips-list {
	margin: 0 0 28px;
	padding-left: 22px;
	font-size: 0.9125rem;
	line-height: 1.75;
	color: var(--text-secondary);
}

.tips-list li {
	margin-bottom: 12px;
}

.tips-list li:last-child {
	margin-bottom: 0;
}

.tips-list kbd {
	display: inline-block;
	padding: 3px 8px;
	font-size: 0.8em;
	font-family: inherit;
	background: var(--surface-inset);
	border: 1px solid var(--border);
	border-radius: 6px;
}

.tips-close {
	font-family: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	padding: 12px 24px;
	border: none;
	border-radius: 10px;
	background: var(--accent);
	color: var(--accent-fg);
	cursor: pointer;
	transition: opacity 0.15s ease, transform 0.15s ease;
}

.tips-close:hover {
	opacity: 0.92;
	transform: translateY(-1px);
}

.tips-btn {
	opacity: 1;
	color: var(--text-secondary);
}

.tips-btn:hover {
	color: var(--text);
}

.hub-features-callout {
	margin-bottom: var(--section-gap);
	padding: 24px 28px;
	background: var(--surface-inset);
	border-radius: var(--radius-lg);
	border: 1px solid var(--border);
}

.hub-features-callout h2 {
	font-family: "Work Sans", system-ui, -apple-system, sans-serif;
	font-size: 1.15rem;
	font-weight: 600;
	margin: 0 0 12px;
	color: var(--text);
}

.hub-features-callout p {
	margin: 0 0 16px;
	font-size: 0.9375rem;
	color: var(--text-secondary);
	line-height: 1.55;
}

.hub-features-callout p:last-of-type {
	margin-bottom: 0;
}

.hub-features-callout ul {
	margin: 0 0 20px;
	padding-left: 22px;
	font-size: 0.9125rem;
	line-height: 1.75;
	color: var(--text-secondary);
}

.hub-features-callout ul:last-child {
	margin-bottom: 0;
}

.hub-features-callout li {
	margin-bottom: 8px;
}

.hub-features-callout kbd {
	display: inline-block;
	padding: 2px 7px;
	font-size: 0.82em;
	font-family: inherit;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 5px;
}

.hub-features-callout .tips-trigger {
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--link);
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.hub-features-callout .tips-trigger:hover {
	opacity: 0.9;
}



.content-wrapper {
	margin-left: var(--sidebar-w);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	overflow-x: clip;
	transition: margin-left 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

body.sidebar-collapsed .content-wrapper {
	margin-left: 0;
}

body.sidebar-collapsed .main {
	padding-left: 40px;
	padding-right: 40px;
	margin-left: max(0px, calc((100vw - var(--main-max)) / 2));
	margin-right: max(0px, calc((100vw - var(--main-max)) / 2));
}



.topbar {
	position: sticky;
	top: 0;
	z-index: 30;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 24px;
	height: 52px;
	background: var(--surface);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	flex-shrink: 0;
}

.topbar-left {
	display: flex;
	align-items: center;
	gap: 12px;
}

.topbar-crumb {
	font-size: 0.82rem;
	color: var(--text-muted);
	font-weight: 500;
}

.topbar-right {
	display: flex;
	align-items: center;
	gap: 8px;
}



.mode-toggle {
	display: inline-flex;
	align-items: stretch;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface-inset);
	padding: 3px;
	gap: 2px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .mode-toggle {
	box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.2);
}

.mode-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: inherit;
	font-size: 0.8125rem;
	font-weight: 500;
	padding: 6px 12px;
	border: none;
	border-radius: 6px;
	background: transparent;
	color: var(--text-muted);
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.mode-btn svg {
	flex-shrink: 0;
	opacity: 0.8;
}

.mode-btn:hover {
	color: var(--text);
	background: var(--surface-hover);
}

.mode-btn[aria-pressed="true"] {
	background: var(--surface);
	color: var(--text);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.mode-btn[aria-pressed="true"] svg {
	opacity: 1;
}

[data-theme="dark"] .mode-btn[aria-pressed="true"] {
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.keyboard-toggle {
	display: inline-flex;
	align-items: stretch;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface-inset);
	padding: 3px;
	gap: 2px;
}

.keyboard-btn {
	font-family: inherit;
	font-size: 0.75rem;
	font-weight: 500;
	padding: 5px 10px;
	border: none;
	border-radius: 5px;
	background: transparent;
	color: var(--text-muted);
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.keyboard-btn:hover {
	color: var(--text);
	background: var(--surface-hover);
}

.keyboard-btn[aria-pressed="true"] {
	background: var(--surface);
	color: var(--text);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.keyboard-mac-only {
	display: none;
}

.keyboard-windows-only {
	display: inline;
}

[data-keyboard="mac"] .keyboard-mac-only {
	display: inline;
}

[data-keyboard="mac"] .keyboard-windows-only {
	display: none;
}


[data-keyboard="windows"] .keyboard-mac-only {
	display: none;
}

[data-keyboard="windows"] .keyboard-windows-only {
	display: inline;
}



.things-to-know {
	margin-bottom: var(--section-gap);
	padding: 24px 28px;
	background: var(--surface-inset);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
}

.things-to-know h2 {
	font-family: "Work Sans", system-ui, sans-serif;
	font-size: 1rem;
	font-weight: 600;
	margin-bottom: 8px;
	color: var(--text);
}

.things-to-know .things-intro {
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--text-muted);
	margin-bottom: 18px;
}

.things-to-know ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.things-to-know li {
	font-size: 0.9rem;
	line-height: 1.65;
	color: var(--text-secondary);
	padding: 12px 0;
	border-bottom: 1px solid var(--border);
}

.things-to-know li:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.things-to-know .tip-simple,
.things-to-know .tip-developer {
	display: none;
}

[data-mode="simple"] .things-to-know .tip-simple {
	display: block;
}

[data-mode="developer"] .things-to-know .tip-developer {
	display: block;
}



.icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: transparent;
	color: var(--text-muted);
	cursor: pointer;
	transition: background 0.12s, color 0.12s, border-color 0.12s;
	flex-shrink: 0;
}

.icon-btn:hover {
	background: var(--surface-inset);
	color: var(--text);
	border-color: var(--surface-hover);
	opacity: 1;
}

[data-theme="dark"] .icon-sun {
	display: none;
}

[data-theme="dark"] .icon-moon {
	display: block;
}

:root:not([data-theme="dark"]) .icon-sun,
[data-theme="light"] .icon-sun {
	display: block;
}

:root:not([data-theme="dark"]) .icon-moon,
[data-theme="light"] .icon-moon {
	display: none;
}



.main {
	flex: 1;
	min-width: 0;
	max-width: var(--main-max);
	padding: 32px 32px 48px;
	margin-left: 0;
	margin-right: 0;
	transition: padding 0.32s cubic-bezier(0.16, 1, 0.3, 1),
		margin-left 0.32s cubic-bezier(0.16, 1, 0.3, 1),
		margin-right 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

body[data-page="hub"] .main {
	max-width: var(--main-max);
}

body[data-page="hub"] {
	--main-max: 960px;
}

.kicker {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--text-muted);
	margin-bottom: 6px;
}

.main h1 {
	font-family: "Work Sans", system-ui, -apple-system, sans-serif;
	font-size: clamp(1.7rem, 3.6vw, 2.5rem);
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -0.025em;
	margin-bottom: 16px;
	overflow-wrap: break-word;
	word-wrap: break-word;
}

.lead {
	font-size: 0.95rem;
	color: var(--text-muted);
	max-width: 65ch;
	margin-bottom: 28px;
	line-height: 1.85;
}



.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 12px;
}

.card {
	background: var(--surface);
	border-radius: var(--radius);
	padding: 16px;
	transition: background 0.15s;
}

.card:hover {
	background: var(--surface-hover);
}

.card h2,
.card h3 {
	font-family: "Work Sans", system-ui, -apple-system, sans-serif;
	font-size: 1.05rem;
	font-weight: 600;
	margin-bottom: 6px;
}

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

.card ul {
	padding-left: 16px;
	margin-top: 8px;
}

.card li {
	font-size: 0.86rem;
	color: var(--text-muted);
	margin-bottom: 4px;
	line-height: 1.55;
}

.card-action {
	margin-top: 14px;
}



.track-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin-bottom: 24px;
}

@media (max-width: 1200px) {
	.track-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.track-card {
	display: block;
	position: relative;
	min-height: 220px;
	border-radius: var(--radius-lg);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.track-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
	opacity: 1;
}

[data-theme="dark"] .track-card:hover {
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.track-card-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
}

.track-card--accessibility .track-card-bg {
	background-image: linear-gradient(135deg, rgba(37, 99, 235, 0.85) 0%, rgba(59, 130, 246, 0.7) 50%, rgba(96, 165, 250, 0.6) 100%);
}

.track-card--sustainability .track-card-bg {
	background-image: linear-gradient(135deg, rgba(22, 163, 74, 0.85) 0%, rgba(34, 197, 94, 0.7) 50%, rgba(74, 222, 128, 0.6) 100%);
}

.track-card--grants .track-card-bg {
	background-image: linear-gradient(135deg, rgba(180, 83, 9, 0.85) 0%, rgba(217, 119, 6, 0.7) 50%, rgba(251, 191, 36, 0.6) 100%);
}

.track-card-content {
	position: relative;
	z-index: 1;
	height: 100%;
	min-height: 220px;
	padding: 28px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.35) 40%, transparent 100%);
}

.track-card-content h2 {
	font-family: "Work Sans", system-ui, -apple-system, sans-serif;
	font-size: 1.4rem;
	font-weight: 600;
	color: #fff;
	margin-bottom: 12px;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.track-card-content p {
	font-size: 0.9rem;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.95);
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}



.btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.84rem;
	font-weight: 600;
	text-decoration: none;
	padding: 7px 14px;
	border-radius: var(--radius-sm);
	background: var(--surface);
	color: var(--text);
	transition: background 0.12s;
	cursor: pointer;
}

.btn:hover {
	background: var(--surface-inset);
	text-decoration: none;
	opacity: 1;
}

.btn-primary {
	background: var(--accent);
	color: var(--accent-fg);
}

.btn-primary:hover {
	opacity: 0.92;
	background: var(--accent);
	text-decoration: none;
}



.toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}



.switcher {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 16px;
}

.switcher button {
	font-family: inherit;
	font-size: 0.84rem;
	font-weight: 500;
	padding: 7px 14px;
	border-radius: var(--radius-sm);
	background: var(--surface);
	color: var(--text-muted);
	cursor: pointer;
	transition: all 0.12s;
}

.switcher button:hover {
	color: var(--text);
	background: var(--surface-inset);
}

.switcher button[aria-selected="true"] {
	background: var(--accent);
	color: var(--accent-fg);
}



.panel {
	background: var(--surface);
	border-radius: var(--radius);
	padding: 20px;
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 16px;
}

.panel h2 {
	font-family: "Work Sans", system-ui, -apple-system, sans-serif;
	font-size: 1.15rem;
	font-weight: 600;
	margin-bottom: 8px;
}

.panel p {
	font-size: 0.88rem;
	color: var(--text-muted);
	line-height: 1.6;
}

.checklist {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.checklist li {
	font-size: 0.84rem;
	color: var(--text-secondary);
	padding: 10px 12px;
	background: var(--surface-inset);
	border-radius: var(--radius-sm);
}



.next-step-cta {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 24px 28px;
	margin-top: 28px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	color: inherit;
	text-decoration: none;
	transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.next-step-cta:hover {
	background: var(--surface-inset);
	border-color: var(--border);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
	opacity: 1;
}

[data-theme="dark"] .next-step-cta:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.next-step-cta:focus-visible {
	outline: 2px solid var(--link);
	outline-offset: 2px;
}

.next-step-body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.next-step-label {
	font-size: 0.72rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--link);
}

.next-step-title {
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--text);
}

.next-step-desc {
	font-size: 0.875rem;
	color: var(--text-muted);
	line-height: 1.65;
}

.next-step-arrow {
	flex-shrink: 0;
	color: var(--link);
	transition: transform 0.2s ease;
}

.next-step-cta:hover .next-step-arrow {
	transform: translateX(4px);
}

@media (max-width: 480px) {
	.next-step-cta {
		padding: 16px 20px;
		gap: 16px;
	}

	.next-step-title {
		font-size: 1rem;
	}

	.next-step-desc {
		font-size: 0.8125rem;
	}
}



.callout {
	margin-top: 20px;
	padding: 14px 16px;
	font-size: 0.88rem;
	color: var(--text-muted);
	background: var(--surface-inset);
	border-radius: var(--radius);
	line-height: 1.6;
}



.prose {
	max-width: 72ch;
}

.prose h2 {
	font-family: "Work Sans", system-ui, -apple-system, sans-serif;
	font-size: 1.45rem;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -0.015em;
	margin-top: 48px;
	margin-bottom: 12px;
	padding-top: 24px;
}

.prose h2:first-child {
	margin-top: 0;
	padding-top: 0;
}

.prose h3 {
	font-family: "Work Sans", system-ui, -apple-system, sans-serif;
	font-size: 1.1rem;
	font-weight: 600;
	line-height: 1.3;
	margin-top: 28px;
	margin-bottom: 8px;
}

.prose h4 {
	font-family: "Work Sans", system-ui, -apple-system, sans-serif;
	font-size: 0.95rem;
	font-weight: 600;
	margin-top: 20px;
	margin-bottom: 6px;
}

.prose p {
	font-size: 0.92rem;
	line-height: 1.75;
	color: var(--text-secondary);
	margin-bottom: 14px;
}

.prose > p:last-child {
	margin-bottom: 0;
}

.prose .prose-footer-note {
	margin-top: 48px;
	padding-top: 24px;
	border-top: 1px solid var(--border);
}

.prose strong {
	color: var(--text);
	font-weight: 600;
}

.prose a {
	text-decoration: underline;
	text-underline-offset: 2px;
	text-decoration-color: var(--border);
}

.prose a:hover {
	text-decoration-color: var(--link);
	opacity: 1;
}

.prose ul,
.prose ol {
	padding-left: 20px;
	margin-bottom: 14px;
}

.prose li {
	font-size: 0.92rem;
	line-height: 1.7;
	color: var(--text-secondary);
	margin-bottom: 6px;
}

.prose li strong {
	color: var(--text);
}

.prose blockquote {
	margin: 16px 0;
	padding: 14px 18px;
	background: var(--surface-inset);
	border-radius: var(--radius-sm);
}

.prose blockquote p {
	font-size: 0.88rem;
	color: var(--text-muted);
	margin-bottom: 8px;
}

.prose blockquote p:last-child {
	margin-bottom: 0;
}

.prose hr {
	border: none;
	margin: 32px 0;
}

.prose code {
	font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
	font-size: 0.84em;
	padding: 2px 6px;
	background: var(--surface-inset);
	border-radius: 4px;
	color: var(--text);
}

.prose table {
	width: 100%;
	border-collapse: collapse;
	margin: 16px 0;
	font-size: 0.88rem;
	border-radius: var(--radius);
	overflow: hidden;
}

.prose thead th {
	text-align: left;
	font-weight: 600;
	color: var(--text);
	padding: 10px 12px;
	background: var(--surface-inset);
}

.prose tbody td {
	padding: 10px 12px;
	color: var(--text-secondary);
	vertical-align: top;
}

.prose tbody tr:nth-child(even) {
	background: var(--surface-inset);
}

.prose tbody tr:last-child td {
	font-weight: 600;
	color: var(--text);
	background: var(--surface-inset);
}

.prose .tool-item {
	margin-bottom: 20px;
	padding: 16px;
	background: var(--surface);
	border-radius: var(--radius);
}

.prose .tool-item h3 {
	margin-top: 0;
}



.program-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin-bottom: 16px;
	padding: 14px 16px;
	background: var(--surface-inset);
	border-radius: var(--radius);
}

.program-value {
	font-family: "Work Sans", system-ui, -apple-system, sans-serif;
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--text);
	letter-spacing: -0.01em;
}

.program-value--new {
	background: rgba(22, 163, 74, 0.12);
	color: #16a34a;
	padding: 2px 10px;
	border-radius: 20px;
	font-size: 0.95rem;
}

[data-theme="dark"] .program-value--new {
	background: rgba(34, 197, 94, 0.15);
	color: #4ade80;
}

.program-value-detail {
	font-size: 0.84rem;
	color: var(--text-muted);
	flex: 1;
	min-width: 140px;
}

.program-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 0.82rem;
	font-weight: 500;
	color: var(--link);
	text-decoration: none;
	padding: 4px 10px;
	border-radius: var(--radius-sm);
	background: var(--surface);
	transition: background 0.15s;
	white-space: nowrap;
}

.program-link:hover {
	background: var(--surface-inset);
	text-decoration: none;
	opacity: 1;
}

.program-link svg {
	flex-shrink: 0;
}

.prose .highlight-box {
	padding: 18px 20px;
	background: var(--surface-inset);
	border-radius: var(--radius);
	margin: 16px 0;
}

.prose .highlight-box p {
	font-weight: 500;
	color: var(--text);
	margin-bottom: 0;
}

body[data-page="acknowledgments"] .prose {
	max-width: none;
}

body[data-page="acknowledgments"] .main h1 {
	font-size: clamp(2rem, 4vw, 2.75rem);
}

.acknowledgments-prose .acknowledgments-intro {
	margin-bottom: 32px;
	font-size: 1rem;
}

.acknowledgments-list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	margin-bottom: 48px;
}

@media (max-width: 680px) {
	.acknowledgments-list {
		grid-template-columns: 1fr;
	}
}

.acknowledgment-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 20px;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--surface);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
	transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.acknowledgment-card:hover {
	transform: translateY(-2px);
	border-color: color-mix(in srgb, var(--accent) 28%, var(--border));
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .acknowledgment-card {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
}

[data-theme="dark"] .acknowledgment-card:hover {
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.34);
}

.acknowledgment-role {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--accent);
	background: color-mix(in srgb, var(--accent) 14%, transparent);
	padding: 4px 10px;
	border-radius: 99px;
	width: fit-content;
}

.acknowledgment-title {
	font-family: "Work Sans", system-ui, -apple-system, sans-serif;
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--text);
	margin: 0;
	padding-top: 0;
	letter-spacing: -0.02em;
}

.acknowledgments-prose h2.acknowledgment-title {
	margin-top: 0;
	margin-bottom: 0;
	padding-top: 0;
}

.acknowledgments-logo-img {
	background: #ffffff;
	padding: 14px 18px;
	border-radius: var(--radius-sm);
	border: 1px solid #e8e8e8;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 98px;
	box-sizing: border-box;
}

.acknowledgments-logo-img img {
	height: 64px;
	width: auto;
	max-width: 240px;
	object-fit: contain;
	object-position: center;
	display: block;
}

.acknowledgment-desc {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.7;
	color: var(--text-secondary);
}

.acknowledgments-built-by {
	padding: 20px 24px;
	border-left: 3px solid var(--accent);
	margin-bottom: 40px;
}

.acknowledgments-built-by-label {
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--text-muted);
	margin: 0 0 4px;
}

.acknowledgments-built-by-name {
	font-size: 1.0625rem;
	font-weight: 600;
	color: var(--text);
	margin: 0 0 6px;
}

.acknowledgments-built-by-desc {
	font-size: 0.9rem;
	color: var(--text-secondary);
	line-height: 1.6;
	margin: 0;
}

.acknowledgments-disclaimer-block {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 16px 20px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
}

.acknowledgments-disclaimer-icon {
	flex-shrink: 0;
	margin-top: 2px;
	color: var(--text-muted);
}

.acknowledgments-disclaimer {
	margin: 0 0 8px;
	font-size: 0.875rem;
	color: var(--text-muted);
	line-height: 1.6;
}

.acknowledgments-disclaimer-link {
	margin: 0;
	font-size: 0.875rem;
	color: var(--text-muted);
}

.prose .prose-fig {
	margin: 28px 0;
}

.prose .prose-fig img {
	width: 100%;
	max-width: 640px;
	height: auto;
	border-radius: var(--radius-sm);
	display: block;
}

.prose .carbon-fig {
	text-align: center;
	margin-left: auto;
	margin-right: auto;
	max-width: 680px;
}

.prose .carbon-fig img {
	margin: 0 auto;
	border-radius: 12px;
}

.prose .carbon-fig-trigger {
	display: block;
	width: 100%;
	padding: 0;
	margin: 0;
	border: none;
	background: none;
	cursor: pointer;
}

.prose .carbon-fig-trigger img {
	transition: opacity 0.2s ease;
}

.prose .carbon-fig-trigger:hover img {
	opacity: 0.92;
}



.lightbox {
	position: fixed;
	inset: 0;
	z-index: 110;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(40px, 8vh, 80px) 24px 24px;
	background: rgba(0, 0, 0, 0.92);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox:not(.open) {
	pointer-events: none;
}

.lightbox.open {
	opacity: 1;
	visibility: visible;
}

.lightbox-backdrop {
	position: absolute;
	inset: 0;
	cursor: pointer;
}

.lightbox-panel {
	position: relative;
	max-width: 90vw;
	max-height: 90vh;
	padding: 32px 24px 0;
	background: var(--surface);
	border-radius: var(--radius-lg);
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
	overflow: auto;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.lightbox-close {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 2;
	width: 36px;
	height: 36px;
	padding: 0;
	border: none;
	background: var(--surface-inset);
	color: var(--text-muted);
	cursor: pointer;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.lightbox-close:hover {
	background: var(--surface-hover);
	color: var(--text);
	transform: scale(1.05);
}

.lightbox-img {
	width: 100%;
	max-width: 640px;
	height: auto;
	display: block;
	border-radius: var(--radius) var(--radius) 0 0;
}

.lightbox-caption {
	padding: 20px 24px 24px;
	text-align: center;
}

.lightbox-caption h2 {
	font-size: 1.15rem;
	font-weight: 600;
	color: var(--text);
	margin: 0 0 8px;
}

.lightbox-caption p {
	font-size: 0.9rem;
	color: var(--text-secondary);
	line-height: 1.5;
	margin: 0;
}

/* Wider lightbox for dense screenshots (e.g. Google Ad Grants) — uses more viewport so embedded text stays readable */
.lightbox.lightbox--wide {
	padding: clamp(12px, 3vh, 40px) clamp(8px, 2vw, 16px) clamp(8px, 2vh, 16px);
}

.lightbox.lightbox--wide .lightbox-panel {
	max-width: min(98vw, 1440px);
	max-height: 96vh;
	width: min(98vw, 1440px);
	padding: 40px 12px 0;
}

.lightbox.lightbox--wide .lightbox-img {
	max-width: none;
	width: 100%;
	height: auto;
	/* Leave room for caption + close button; keeps dense UI screenshots legible */
	max-height: min(82vh, 1100px);
	object-fit: contain;
}

.lightbox.lightbox--wide .lightbox-caption {
	padding: 18px 16px 22px;
	max-width: 48rem;
	margin: 0 auto;
}

.lightbox.lightbox--wide .lightbox-caption h2 {
	font-size: clamp(1.1rem, 2.5vw, 1.35rem);
}

.lightbox.lightbox--wide .lightbox-caption p {
	font-size: clamp(0.95rem, 2vw, 1.05rem);
}

.prose .checklist-todo {
	list-style: none;
	padding-left: 0;
}

.prose .checklist-todo li {
	position: relative;
	padding: 10px 12px 10px 36px;
	background: var(--surface);
	border-radius: var(--radius-sm);
	margin-bottom: 6px;
}

.prose .checklist-todo li::before {
	content: "";
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	width: 16px;
	height: 16px;
	background: var(--surface-inset);
	border-radius: 3px;
}

.footnotes {
	margin-top: 40px;
	padding-top: 20px;
}

.footnotes h2 {
	font-size: 1.1rem;
	margin-top: 0;
	padding-top: 0;
}

.footnotes p {
	font-size: 0.78rem;
	line-height: 1.6;
	color: var(--text-muted);
	margin-bottom: 6px;
	padding: 6px 8px;
	margin-left: -8px;
	margin-right: -8px;
	border-radius: var(--radius-sm);
	transition: background 0.3s ease, color 0.3s ease;
}

.footnotes p:target,
.footnotes p.fn-highlight {
	background: rgba(37, 99, 235, 0.1);
	color: var(--text-secondary);
}

[data-theme="dark"] .footnotes p:target,
[data-theme="dark"] .footnotes p.fn-highlight {
	background: rgba(96, 165, 250, 0.12);
}

.footnotes p.fn-highlight {
	animation: fn-flash 2.5s ease-out forwards;
}

@keyframes fn-flash {
	0% { background: rgba(37, 99, 235, 0.18); }
	70% { background: rgba(37, 99, 235, 0.1); }
	100% { background: transparent; color: var(--text-muted); }
}

[data-theme="dark"] .footnotes p.fn-highlight {
	animation: fn-flash-dark 2.5s ease-out forwards;
}

@keyframes fn-flash-dark {
	0% { background: rgba(96, 165, 250, 0.22); }
	70% { background: rgba(96, 165, 250, 0.12); }
	100% { background: transparent; color: var(--text-muted); }
}

.footnotes p a {
	word-break: break-all;
}

.disclaimer {
	margin-top: 32px;
	padding: 18px 20px;
	background: var(--surface-inset);
	border-radius: var(--radius);
}

.disclaimer p {
	font-size: 0.82rem;
	color: var(--text-muted);
	line-height: 1.65;
}

.last-updated {
	margin-top: 20px;
	font-size: 0.82rem;
	color: var(--text-muted);
	font-style: italic;
}



.prose sup a {
	font-size: 0.72em;
	font-weight: 600;
	color: var(--link);
	text-decoration: none;
	vertical-align: super;
	line-height: 0;
	padding: 0 1px;
}

.prose sup a:hover {
	text-decoration: underline;
	opacity: 1;
}



.section-nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 16px;
	margin-top: 48px;
	padding-top: 24px;
	border-top: 1px solid var(--border);
}

.section-nav a {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 12px 20px;
	min-width: 180px;
	border-radius: var(--radius);
	text-decoration: none;
	color: var(--text);
	background: var(--surface);
	transition: background 0.15s;
	text-align: left;
}

.section-nav a:hover {
	background: var(--surface-inset);
	opacity: 1;
}

.section-nav a.next {
	text-align: right;
}

.section-nav .nav-direction {
	font-size: 0.72rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--text-muted);
}

.section-nav .nav-title {
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--text);
}



.completion-section {
	margin-top: 48px;
	padding: 32px;
	background: var(--surface-inset);
	border-radius: var(--radius-lg);
	text-align: center;
}

.completion-section h2 {
	font-family: "Work Sans", system-ui, -apple-system, sans-serif;
	font-size: 1.5rem;
	font-weight: 600;
	margin-bottom: 8px;
	margin-top: 0;
	padding-top: 0;
}

.completion-section p {
	font-size: 0.92rem;
	color: var(--text-muted);
	line-height: 1.7;
	max-width: 50ch;
	margin: 0 auto 16px;
}

.completion-section .btn {
	margin-top: 8px;
}



body[data-page="eligibility"] .kicker { color: #16a34a; }

.eligibility-main .lead {
	margin-bottom: 32px;
}

.eligibility-quiz {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 28px 24px 32px;
	margin-bottom: 40px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

[data-theme="dark"] .eligibility-quiz {
	box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.quiz-progress {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 24px;
}

.quiz-progress-dots {
	display: flex;
	gap: 8px;
}

.quiz-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--surface-inset);
	transition: background 0.25s ease, transform 0.25s ease;
}

.quiz-dot.is-done {
	background: var(--link);
}

.quiz-dot.is-current {
	background: var(--link);
	transform: scale(1.2);
}

.quiz-progress-text {
	font-size: 0.875rem;
	color: var(--text-muted);
}

.quiz-step {
	display: none;
}

.quiz-step.is-active {
	display: block;
	animation: quiz-fade 0.3s ease;
}

@keyframes quiz-fade {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: translateY(0); }
}

.quiz-question {
	font-size: 1.125rem;
	line-height: 1.6;
	margin-bottom: 20px;
	color: var(--text);
}

.quiz-options {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.quiz-btn {
	font-family: inherit;
	font-size: 1rem;
	font-weight: 500;
	padding: 12px 24px;
	border-radius: var(--radius);
	border: 2px solid var(--border);
	background: var(--surface);
	color: var(--text);
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.quiz-btn:hover {
	background: var(--surface-hover);
	border-color: var(--text-muted);
}

.quiz-btn:focus {
	outline: none;
	box-shadow: 0 0 0 3px var(--ring);
}

.quiz-result {
	margin-top: 8px;
}

.quiz-result-inner {
	margin-bottom: 16px;
}

.quiz-result-card {
	padding: 24px;
	border-radius: var(--radius);
	border: 2px solid;
	animation: quiz-fade 0.35s ease;
}

.quiz-result-card--yes {
	background: rgba(22, 163, 74, 0.08);
	border-color: #16a34a;
}

.quiz-result-card--no {
	background: rgba(185, 28, 28, 0.06);
	border-color: #b91c1c;
}

[data-theme="dark"] .quiz-result-card--yes {
	background: rgba(22, 163, 74, 0.15);
}

[data-theme="dark"] .quiz-result-card--no {
	background: rgba(185, 28, 28, 0.12);
}

.quiz-result-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	font-size: 1.25rem;
	font-weight: 700;
	margin-bottom: 12px;
}

.quiz-result-card--yes .quiz-result-icon {
	background: #16a34a;
	color: #fff;
}

.quiz-result-card--no .quiz-result-icon {
	background: #b91c1c;
	color: #fff;
}

.quiz-result-card h3 {
	font-size: 1.25rem;
	margin: 0 0 8px;
}

.quiz-result-card p {
	margin: 0;
	line-height: 1.6;
}

.quiz-result-card a {
	font-weight: 600;
}

.quiz-restart {
	font-family: inherit;
	font-size: 0.875rem;
	color: var(--text-muted);
	background: none;
	border: none;
	cursor: pointer;
	text-decoration: underline;
	padding: 0;
}

.quiz-restart:hover {
	color: var(--link);
}

.quiz-result-note {
	margin: 0 0 16px;
	font-size: 0.9375rem;
	color: var(--text-secondary);
	line-height: 1.6;
}

.eligibility-detail {
	margin-top: 48px;
}

.eligibility-cards {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin: 20px 0 28px;
}

@media (max-width: 640px) {
	.eligibility-cards {
		grid-template-columns: 1fr;
	}
}

.eligibility-card {
	padding: 20px;
	border-radius: var(--radius);
	border: 1px solid var(--border);
	background: var(--surface);
}

.eligibility-card--yes {
	background: var(--surface);
	border-top: 4px solid #16a34a;
}

.eligibility-card--no {
	background: var(--surface);
	border-top: 4px solid #b91c1c;
}

[data-theme="dark"] .eligibility-card--yes {
	border-top-color: #22c55e;
}

[data-theme="dark"] .eligibility-card--no {
	border-top-color: #ef4444;
}

.eligibility-card h3 {
	font-size: 1.1rem;
	margin: 0 0 12px;
}

.eligibility-card p,
.eligibility-card ul {
	margin: 0 0 10px;
	font-size: 0.9375rem;
}

.eligibility-card ul:last-child {
	margin-bottom: 0;
}

.eligibility-cta {
	margin-top: 32px;
}

.eligibility-cta .btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}



@media (max-width: 860px) {
	.sidebar {
		transform: translateX(-100%);
	}

	body:not(.sidebar-collapsed) .sidebar {
		transform: translateX(-100%);
	}

	body.sidebar-open .sidebar {
		transform: translateX(0);
	}

	.content-wrapper {
		margin-left: 0;
	}

	body:not(.sidebar-collapsed) .content-wrapper {
		margin-left: 0;
	}

	body.sidebar-collapsed .main {
		padding-left: 20px;
		padding-right: 20px;
	}

	.main {
		padding: 24px 20px 40px;
	}

	.topbar {
		padding: 0 16px;
		height: 48px;
	}

	.topbar-left {
		gap: 10px;
		min-width: 0;
	}

	.topbar-crumb {
		font-size: 0.8rem;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.topbar-right {
		gap: 6px;
		flex-shrink: 0;
	}

	.keyboard-btn {
		font-size: 0.7rem;
		padding: 5px 8px;
	}

	.hub-features-callout {
		padding: 20px 20px;
	}

	.track-cards {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.track-card {
		min-height: 200px;
	}

	.track-card-content {
		padding: 24px;
	}

	.panel {
		grid-template-columns: 1fr;
	}

	.section-nav {
		flex-direction: column;
		gap: 10px;
	}

	.section-nav a {
		min-width: 0;
	}

	.section-nav a.next {
		text-align: left;
	}

	.prose table {
		display: block;
		overflow-x: auto;
	}

	.search-overlay {
		padding: 12px 10px;
		align-items: flex-start;
	}

	.search-dialog {
		max-height: calc(100vh - 24px);
		max-height: calc(100dvh - 24px);
		border-radius: var(--radius);
	}

	.search-dialog-body {
		max-height: none;
	}

	.search-dialog-footer {
		gap: 10px;
		padding: 8px 12px;
		flex-wrap: wrap;
	}
}

@media (max-width: 480px) {
	.sidebar {
		width: min(var(--sidebar-w), calc(100vw - 48px));
	}

	.main {
		padding: 20px 16px 36px;
	}

	body.sidebar-collapsed .main {
		padding-left: 16px;
		padding-right: 16px;
	}

	.topbar {
		padding: 0 12px;
		height: 48px;
	}

	.topbar-left {
		gap: 8px;
	}

	.main h1 {
		font-size: clamp(1.4rem, 6vw, 2rem);
		word-wrap: break-word;
		overflow-wrap: break-word;
	}

	.lead {
		font-size: 0.9rem;
		margin-bottom: 24px;
	}

	.hub-features-callout {
		padding: 16px 16px;
	}

	.hub-features-callout h2 {
		font-size: 1.05rem;
	}

	.hub-features-callout p,
	.hub-features-callout ul {
		font-size: 0.875rem;
	}

	.prose h2 {
		font-size: 1.25rem;
		margin-top: 36px;
		padding-top: 20px;
	}

	.prose h3 {
		font-size: 1rem;
		margin-top: 24px;
	}

	.prose p,
	.prose li {
		font-size: 0.875rem;
	}

	.card-grid {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.tips-dialog {
		padding: 24px 20px;
		max-width: calc(100vw - 32px);
	}

	.onboarding-dialog {
		padding: 28px 20px 28px 20px;
		max-width: calc(100vw - 32px);
	}

	.eligibility-quiz {
		padding: 20px 16px 24px;
	}

	.quiz-btn {
		padding: 10px 18px;
		font-size: 0.9375rem;
	}

	.completion-section {
		padding: 24px 20px;
	}

	.section-nav a {
		min-width: 0;
		width: 100%;
	}
}

@media (min-width: 861px) {
	.backdrop {
		display: none;
	}
}
