/* Shared across all GCIS-123 pages: sticky pill nav + page header alignment. */

.pill-nav {
	position: sticky;
	top: 0;
	z-index: 100;
	background: #ffffff;
	border-bottom: 1px solid #e2e8f0;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
	padding: 10px 16px;
}

.pill-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0 auto;
	padding: 0;
	max-width: 1150px;
	background-color: transparent;
	height: auto;
}

.pill-nav li {
	margin: 0;
}

.pill-nav a {
	display: inline-block;
	padding: 6px 16px;
	border-radius: 999px;
	background: #f1f5f9;
	color: #334155;
	text-decoration: none;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 0.85rem;
	font-weight: 600;
	transition: background 0.15s ease, color 0.15s ease;
}

.pill-nav a:hover {
	background: #e2e8f0;
}

.pill-nav a.active {
	background: #0f172a;
	color: #f8fafc;
}

.page-shell {
	max-width: 1150px;
	margin: 0 auto;
	padding: 16px 16px;
}

.page-shell .header-link {
	display: flex;
	align-items: center;
	gap: 14px;
	text-decoration: none;
	color: inherit;
}

.page-shell .site-logo {
	height: 40px;
	width: auto;
	flex: none;
}

.page-shell h1 {
	margin: 0;
	font-size: 1.3rem;
	line-height: 1.35;
	font-weight: 700;
	color: #0f172a;
}

/* Secondary sticky sub-nav (table of contents / quick jump links). */

.sticky-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: #ffffff;
}

.toc-nav {
	background: #ffffff;
	border-bottom: 1px solid #e2e8f0;
}

.toc-nav-inner {
	max-width: 1150px;
	margin: 0 auto;
	padding: 8px 16px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
}

.toc-nav-inner a {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 0.8rem;
	font-weight: 500;
	color: #64748b;
	text-decoration: none;
	flex: 0 0 auto;
	padding-bottom: 2px;
	border-bottom: 2px solid transparent;
}

.toc-nav-inner a:hover {
	color: #1d4ed8;
	border-bottom-color: #93c5fd;
}
