﻿:root {
  --id-ink: #1d1d1f;
  --id-muted: #6e6e73;
  --id-accent: #0071e3;
  --id-container-w: min(calc(100% - 3rem), 1120px);
  --id-dock-h: 2.75rem;
  --id-dock-offset: 0.65rem;
  --id-radius-pill: 999px;
  --id-shadow-dock: 0 8px 28px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.06);
  --id-dur: 200ms;
  --id-ease: ease;
  --id-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
@media (max-width: 899px) { :root { --id-dock-h: 5.15rem; } }
@media (max-width: 767px) { :root { --id-dock-h: 5rem; } }
body { padding-bottom: calc(var(--id-dock-h) + var(--id-dock-offset) + 1.25rem); }
.id-icon { width: 1.125rem; height: 1.125rem; display: inline-block; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 2; }
.id-icon--sm { width: 0.875rem; height: 0.875rem; }
/* Bottom dock â€” thin pill chrome, white glass; desktop width = page content */
.id-dock,
.id-dock--pill {
	position: fixed;
	left: 50%;
	bottom: var(--id-dock-offset);
	transform: translateX(-50%);
	z-index: 200;
	/* Same measure as .id-container / header */
	width: var(--id-container-w);
	min-height: var(--id-dock-h);
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 0.5rem;
	padding: 0.2rem 0.35rem;
	background: rgba(255, 255, 255, 0.72);
	backdrop-filter: blur(20px) saturate(180%);
	-webkit-backdrop-filter: blur(20px) saturate(180%);
	border: 1px solid rgba(255, 255, 255, 0.65);
	border-radius: var(--id-radius-pill);
	box-shadow: var(--id-shadow-dock);
	color: var(--id-ink);
}

.id-dock__left,
.id-dock__right {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	min-width: 0;
	padding-inline: 0.15rem;
}

.id-dock__right {
	justify-content: flex-end;
}

.id-dock__nav {
	justify-self: center;
}

/* Dock center nav â€” no fill; hairline dividers; underline active */
.id-dock__nav--pill {
	display: flex;
	padding: 0;
	background: transparent;
	border-radius: 0;
}

.id-dock__nav--pill ul,
.id-dock__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 0;
}

.id-dock__list > li {
	display: flex;
	align-items: center;
}

.id-dock__list > li + li {
	border-left: 1px solid rgba(29, 29, 31, 0.14);
}

.id-dock__nav a {
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	gap: 0.35rem;
	padding: 0.35rem 0.85rem;
	border-radius: 0;
	color: rgba(29, 29, 31, 0.55);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1;
	background: transparent;
	transition: color var(--id-dur) var(--id-ease), opacity var(--id-dur) var(--id-ease);
}

.id-dock__nav a:hover,
.id-dock__nav a.is-active,
.id-dock__nav .current-menu-item > a {
	color: var(--id-accent);
	background: transparent;
	opacity: 1;
}

.id-dock__nav .id-icon {
	width: 0.875rem;
	height: 0.875rem;
}

.id-dock__back,
.id-dock__btn {
	appearance: none;
	border: 0;
	background: transparent;
	color: rgba(29, 29, 31, 0.72);
	font: inherit;
	font-size: 0.75rem;
	font-weight: 500;
	padding: 0.35rem 0.6rem;
	border-radius: var(--id-radius-pill);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	line-height: 1;
	transition: background var(--id-dur) var(--id-ease), color var(--id-dur) var(--id-ease);
}

.id-dock__back:hover,
.id-dock__btn:hover {
	background: rgba(0, 0, 0, 0.06);
	color: var(--id-ink);
	opacity: 1;
}

.id-dock__back .id-icon,
.id-dock__btn .id-icon {
	width: 0.875rem;
	height: 0.875rem;
}

.id-dock__project {
	color: var(--id-accent);
	font-size: 0.75rem;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 9rem;
	padding-inline: 0.15rem;
	min-width: 0;
}

.id-dock__lang {
	display: inline-flex;
	align-items: center;
	padding-inline: 0.15rem;
}

.id-dock__lang-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 0;
}

.id-dock__lang-list > li + li::before {
	content: "/";
	padding: 0 0.28rem;
	color: rgba(29, 29, 31, 0.28);
	font-size: 0.7rem;
	font-weight: 500;
}

.id-dock__lang a {
	display: inline-flex;
	align-items: center;
	color: rgba(29, 29, 31, 0.45);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 1;
	text-transform: uppercase;
	text-decoration: none;
	padding: 0.35rem 0.1rem;
}

.id-dock__lang a:hover,
.id-dock__lang a.is-active {
	color: var(--id-accent);
	opacity: 1;
}

.id-dock__lang img {
	display: block;
	width: 1rem;
	height: auto;
	border-radius: 2px;
}

.id-dock__live {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.35rem 0.7rem 0.35rem 0.55rem;
	border-radius: var(--id-radius-pill);
	font-size: 0.75rem;
	font-weight: 500;
	color: rgba(29, 29, 31, 0.92);
	text-decoration: none;
	line-height: 1;
}

.id-dock__live:hover {
	opacity: 1;
	background: rgba(0, 0, 0, 0.05);
}

.id-dock__live-dot {
	position: relative;
	flex-shrink: 0;
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: #30d158;
	box-shadow:
		0 0 0 2.5px rgba(48, 209, 88, 0.38),
		0 0 0 5px rgba(48, 209, 88, 0.16),
		0 0 10px 1px rgba(48, 209, 88, 0.45);
	animation: id-live-glow 2.4s ease-in-out infinite;
}

.id-dock__live-dot::before,
.id-dock__live-dot::after {
	content: "";
	position: absolute;
	inset: 50% auto auto 50%;
	width: 0.5rem;
	height: 0.5rem;
	margin: -0.25rem 0 0 -0.25rem;
	border-radius: 50%;
	border: 1.5px solid rgba(48, 209, 88, 0.55);
	pointer-events: none;
	animation: id-live-ring 2.4s ease-out infinite;
}

.id-dock__live-dot::after {
	animation-delay: 1.2s;
	border-color: rgba(48, 209, 88, 0.4);
}

.id-dock__live.is-offline .id-dock__live-dot {
	background: rgba(29, 29, 31, 0.28);
	box-shadow: none;
	animation: none;
}

.id-dock__live.is-offline .id-dock__live-dot::before,
.id-dock__live.is-offline .id-dock__live-dot::after {
	display: none;
}

@keyframes id-live-glow {
	0%,
	100% {
		box-shadow:
			0 0 0 2.5px rgba(48, 209, 88, 0.34),
			0 0 0 5px rgba(48, 209, 88, 0.14),
			0 0 8px 1px rgba(48, 209, 88, 0.35);
	}
	50% {
		box-shadow:
			0 0 0 3px rgba(48, 209, 88, 0.45),
			0 0 0 6px rgba(48, 209, 88, 0.2),
			0 0 12px 2px rgba(48, 209, 88, 0.55);
	}
}

@keyframes id-live-ring {
	0% {
		transform: scale(1);
		opacity: 0.7;
	}
	100% {
		transform: scale(2.75);
		opacity: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.id-dock__live-dot {
		animation: none;
	}

	.id-dock__live-dot::before,
	.id-dock__live-dot::after {
		animation: none;
		opacity: 0.35;
		transform: scale(1.85);
	}
}

/* Content menu — black glass; anchored to dock list button via JS */
.id-toc {
	position: fixed;
	inset: auto;
	z-index: 300;
	display: none;
	width: min(17.5rem, calc(100% - 2rem));
	pointer-events: none;
}

.id-toc[hidden] {
	display: none !important;
}

.id-toc.is-open {
	display: block !important;
	pointer-events: auto;
}

.id-toc__panel {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-height: min(70vh, var(--id-toc-max, 70vh));
	overflow: hidden;
	background: rgba(17, 18, 20, 0.78);
	backdrop-filter: blur(24px) saturate(160%);
	-webkit-backdrop-filter: blur(24px) saturate(160%);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 14px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28), 0 1px 2px rgba(0, 0, 0, 0.12);
	padding: 0.45rem 0.35rem 0.45rem 0.4rem;
	color: #f5f5f7;
}

@media (min-height: 800px) {
	.id-toc__panel {
		max-height: min(74vh, var(--id-toc-max, 74vh));
	}
}

@media (min-height: 1000px) {
	.id-toc__panel {
		max-height: min(78vh, var(--id-toc-max, 78vh));
	}
}

.id-toc__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.35rem;
	padding: 0.15rem 0.2rem 0.4rem;
	margin: 0;
	flex-shrink: 0;
	position: sticky;
	top: 0;
	z-index: 2;
	background: rgba(17, 18, 20, 0.92);
}

.id-toc__title {
	font-size: 0.625rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba(245, 245, 247, 0.48);
	margin: 0;
	padding-inline: 0.35rem;
	line-height: 1.1;
}

.id-toc__close {
	appearance: none;
	border: 0;
	background: rgba(255, 255, 255, 0.1);
	color: rgba(245, 245, 247, 0.8);
	width: 1.35rem;
	height: 1.35rem;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	flex-shrink: 0;
	transition: background var(--id-dur) var(--id-ease), color var(--id-dur) var(--id-ease);
}

.id-toc__close:hover {
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
}

.id-toc__close .id-icon {
	width: 0.8rem;
	height: 0.8rem;
}

.id-toc__list {
	list-style: none;
	margin: 0;
	padding: 0 0.15rem 0.15rem 0;
	display: flex;
	flex-direction: column;
	gap: 0;
	flex: 1 1 auto;
	min-height: 0;
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scrollbar-color: rgba(245, 245, 247, 0.32) transparent;
}

.id-toc__list::-webkit-scrollbar {
	width: 6px;
}

.id-toc__list::-webkit-scrollbar-track {
	background: transparent;
	margin: 0.2rem 0;
}

.id-toc__list::-webkit-scrollbar-thumb {
	background: rgba(245, 245, 247, 0.28);
	border-radius: 999px;
}

.id-toc__list::-webkit-scrollbar-thumb:hover {
	background: rgba(245, 245, 247, 0.46);
}

.id-toc__list a {
	display: block;
	padding: 0.28rem 0.45rem;
	border-radius: 8px;
	color: rgba(245, 245, 247, 0.78);
	font-size: 0.75rem;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0;
}

.id-toc__list a:hover,
.id-toc__list a:focus-visible {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	opacity: 1;
}

.id-toc__empty {
	padding: 0.35rem 0.45rem;
	font-size: 0.75rem;
	color: rgba(245, 245, 247, 0.45);
	line-height: 1.2;
}

/* Page summary panel (Phase 12B) â€” TOC twin, slightly wider for prose */
.id-summary {
	position: fixed;
	inset: auto;
	z-index: 300;
	display: none;
	width: min(20rem, calc(100% - 2rem));
	pointer-events: none;
}

.id-summary[hidden] {
	display: none !important;
}

.id-summary.is-open {
	display: block !important;
	pointer-events: auto;
}

.id-summary__panel {
	position: relative;
	width: 100%;
	max-height: min(24rem, 55vh);
	overflow: auto;
	background: rgba(17, 18, 20, 0.78);
	backdrop-filter: blur(24px) saturate(160%);
	-webkit-backdrop-filter: blur(24px) saturate(160%);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 14px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28), 0 1px 2px rgba(0, 0, 0, 0.12);
	padding: 0.45rem 0.55rem 0.65rem;
	color: #f5f5f7;
}

.id-summary__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.35rem;
	padding: 0.15rem 0.1rem 0.35rem;
	margin-bottom: 0.15rem;
}

.id-summary__title {
	font-size: 0.625rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba(245, 245, 247, 0.48);
	margin: 0;
}

.id-summary__close {
	appearance: none;
	border: 0;
	background: rgba(255, 255, 255, 0.1);
	color: rgba(245, 245, 247, 0.8);
	width: 1.35rem;
	height: 1.35rem;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	flex-shrink: 0;
	transition: background var(--id-dur) var(--id-ease), color var(--id-dur) var(--id-ease);
}

.id-summary__close:hover {
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
}

.id-summary__close .id-icon {
	width: 0.8rem;
	height: 0.8rem;
}

.id-summary__body {
	padding: 0 0.1rem;
}

.id-summary__prose {
	margin: 0 0 0.65rem;
	font-size: 0.8125rem;
	font-weight: 400;
	line-height: 1.45;
	letter-spacing: -0.01em;
	color: rgba(245, 245, 247, 0.88);
}

.id-summary__prose:last-child {
	margin-bottom: 0;
}

.id-summary__bullets {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.id-summary__bullets li {
	position: relative;
	padding-left: 0.85rem;
	font-size: 0.75rem;
	font-weight: 500;
	line-height: 1.35;
	color: rgba(245, 245, 247, 0.72);
}

.id-summary__bullets li::before {
	content: "";
	position: absolute;
	left: 0.1rem;
	top: 0.45em;
	width: 0.28rem;
	height: 0.28rem;
	border-radius: 50%;
	background: rgba(245, 245, 247, 0.4);
}

.id-summary__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem;
	margin-top: 0.75rem;
	padding-top: 0.55rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.id-summary__actions[hidden] {
	display: none !important;
}

.id-summary__tts-btn {
	appearance: none;
	border: 0;
	background: rgba(255, 255, 255, 0.1);
	color: rgba(245, 245, 247, 0.9);
	font: inherit;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1;
	padding: 0.4rem 0.65rem;
	border-radius: 999px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	transition: background var(--id-dur) var(--id-ease), color var(--id-dur) var(--id-ease);
}

.id-summary__tts-btn:hover {
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
}

.id-summary__tts-btn .id-icon {
	width: 0.75rem;
	height: 0.75rem;
}

.id-summary__tts-btn[hidden] {
	display: none !important;
}

.id-summary.is-speaking .id-summary__tts-btn[data-id-summary-listen] {
	background: rgba(0, 113, 227, 0.35);
}

.id-summary__tts-btn:focus-visible {
	outline: 2px solid var(--id-accent);
	outline-offset: 1px;
}

.id-footer-colophon {
	padding: var(--id-space-6) var(--id-gutter) var(--id-space-3);
	text-align: center;
	font-size: 0.6875rem;
	letter-spacing: 0.02em;
	color: var(--id-muted);
	opacity: 0.75;
}

.id-dock__back:focus-visible,
.id-dock__btn:focus-visible,
.id-dock__nav a:focus-visible,
.id-dock__live:focus-visible,
.id-dock__lang a:focus-visible {
	outline: 2px solid var(--id-accent);
	outline-offset: 2px;
}

.id-toc__list a:focus-visible,
.id-toc__close:focus-visible,
.id-summary__close:focus-visible {
	outline: 2px solid var(--id-accent);
	outline-offset: 1px;
}

.id-nav a:focus-visible {
	outline: 2px solid var(--id-accent);
	outline-offset: 2px;
	opacity: 1;
}

.id-nav a:hover:focus-visible,
.id-nav .current-menu-item > a:focus-visible,
.id-nav .current_page_item > a:focus-visible,
.id-nav a[aria-current="page"]:focus-visible {
	outline-color: rgba(245, 245, 247, 0.85);
}

@media (max-width: 899px) {
	.id-header__inner {
		grid-template-columns: 1fr auto;
	}

	.id-nav--pill {
		display: none;
	}

	.id-nav-toggle {
		display: inline-flex;
	}

	.id-nav--mobile {
		display: none;
		position: fixed;
		left: 0;
		right: 0;
		top: var(--id-header-h);
		z-index: 99;
		background: rgba(245, 245, 247, 0.96);
		backdrop-filter: blur(16px);
		-webkit-backdrop-filter: blur(16px);
		border-bottom: 0;
		padding: var(--id-space-3) var(--id-gutter) var(--id-space-4);
	}

	.id-nav--mobile.is-open {
		display: block;
	}

	.id-nav--mobile ul {
		flex-direction: column;
		align-items: stretch;
		gap: 0.2rem;
	}

	.id-nav--mobile a {
		padding: 0.7rem 0.85rem;
	}

	/*
	 * Stacked dock: utilities on top, primary nav full-width below.
	 * Avoids clipping the center nav between left/right chrome.
	 */
	.id-dock,
	.id-dock--pill {
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas:
			"left right"
			"nav nav";
		width: calc(100% - 1rem);
		padding: 0.2rem 0.35rem 0.15rem;
		gap: 0.1rem 0.35rem;
		border-radius: 1.15rem;
		min-height: 0;
	}

	.id-dock__left {
		grid-area: left;
	}

	.id-dock__right {
		grid-area: right;
	}

	.id-dock__nav {
		grid-area: nav;
		justify-self: stretch;
		width: 100%;
		min-width: 0;
		border-top: 1px solid rgba(29, 29, 31, 0.1);
		padding-top: 0.1rem;
		margin-top: 0.05rem;
	}

	.id-dock__nav--pill ul,
	.id-dock__list {
		width: 100%;
		justify-content: space-between;
	}

	.id-dock__list > li {
		flex: 1 1 0;
		min-width: 0;
		justify-content: center;
	}

	.id-dock__list > li + li {
		border-left: 0;
	}

	.id-dock__nav a {
		width: 100%;
		justify-content: center;
		padding: 0.5rem 0.35rem;
	}

	.id-dock__nav a span {
		display: none;
	}

	.id-dock__nav .id-icon {
		width: 1rem;
		height: 1rem;
	}

	.id-dock__project {
		max-width: 9rem;
	}

	.id-dock__back span {
		display: none;
	}

	.id-dock__live {
		padding: 0.35rem 0.55rem;
	}
}

@media (max-width: 479px) {
	.id-dock__project {
		max-width: 4.75rem;
	}

	.id-dock__live {
		padding: 0.35rem 0.45rem;
		gap: 0;
		font-size: 0;
		line-height: 0;
	}

	.id-dock__live-dot {
		margin: 0;
	}
}

