/* Page shell (c002). Tokens only. */
.rz-page {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.rz-skip-link {
	z-index: var(--rz-z-skip-link);
	padding: var(--rz-space-3) var(--rz-space-4);
	background: var(--rz-color-accent);
	color: var(--rz-color-on-accent);
	font-weight: var(--rz-font-weight-medium);
}

.rz-skip-link:focus,
.rz-skip-link:focus-visible {
	position: fixed;
	top: var(--rz-space-2);
	left: var(--rz-space-2);
}

.rz-site-header {
	position: relative;
	z-index: var(--rz-z-header);
	border-bottom: var(--rz-border-width) solid var(--rz-color-border-subtle);
	background: var(--rz-color-bg);
}

.rz-site-header__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--rz-space-2) var(--rz-space-5);
	max-width: calc(var(--rz-container-wide) + 2 * var(--rz-gutter));
	margin-inline: auto;
	padding: var(--rz-space-3) var(--rz-gutter);
}

.rz-site-header__brand {
	display: flex;
	flex-direction: column;
	min-height: var(--rz-target-min);
	justify-content: center;
	color: var(--rz-color-heading);
	text-decoration: none;
}

.rz-site-header__brand:hover {
	color: var(--rz-color-heading);
}

.rz-site-header__name {
	font-family: var(--rz-font-display);
	font-size: var(--rz-font-size-xl);
	line-height: var(--rz-line-height-tight);
}

.rz-site-header__tagline {
	color: var(--rz-color-text-muted);
	font-size: var(--rz-font-size-xs);
	letter-spacing: var(--rz-letter-spacing-wide);
}

/* Narrow screens: the nav wraps to its own row under the name (D-8), no JS. */
.rz-nav {
	display: flex;
	flex: 1 1 100%;
	align-items: center;
	justify-content: space-between;
	gap: var(--rz-space-4);
}

.rz-nav__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0 var(--rz-space-4);
	margin: 0;
	padding: 0;
	list-style: none;
}

.rz-nav__link {
	display: inline-flex;
	align-items: center;
	min-height: var(--rz-target-min);
	padding-inline: var(--rz-space-1);
	border-bottom: var(--rz-border-width-strong) solid transparent;
	color: var(--rz-color-text);
	font-size: var(--rz-font-size-sm);
	font-weight: var(--rz-font-weight-medium);
	text-decoration: none;
	transition: color var(--rz-duration-fast) var(--rz-ease-standard),
		border-color var(--rz-duration-fast) var(--rz-ease-standard);
}

.rz-nav__link:hover {
	color: var(--rz-color-heading);
	border-bottom-color: var(--rz-color-border);
}

.rz-nav__link:active {
	color: var(--rz-color-accent-hover);
}

.rz-nav__link--current {
	color: var(--rz-color-heading);
	border-bottom-color: var(--rz-color-accent);
}

@media (width >= 40rem) {
	.rz-nav {
		flex: 0 1 auto;
		justify-content: flex-end;
	}
}

.rz-theme-toggle {
	display: none;
}

.rz-js .rz-theme-toggle {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	inline-size: var(--rz-target-min);
	block-size: var(--rz-target-min);
	padding: 0;
	border: var(--rz-border-width) solid var(--rz-color-border-subtle);
	border-radius: var(--rz-radius-pill);
	background: transparent;
	color: var(--rz-color-text);
	font: inherit;
	font-size: var(--rz-font-size-lg);
	line-height: 1;
	cursor: pointer;
	transition: color var(--rz-duration-fast) var(--rz-ease-standard),
		border-color var(--rz-duration-fast) var(--rz-ease-standard);
}

.rz-js .rz-theme-toggle:hover {
	color: var(--rz-color-heading);
	border-color: var(--rz-color-border);
}

/* f004 c005: the moon/sun icons are SVG; `hidden` sits on the span wrapper (it does nothing on svg). */
.rz-theme-toggle__icon svg {
	display: block;
	inline-size: 1em;
	block-size: 1em;
}

.rz-theme-toggle__icon[hidden] {
	display: none;
}

.rz-main {
	flex: 1 0 auto;
}

.rz-main:focus {
	outline: none;
}

.rz-site-footer {
	border-top: var(--rz-border-width) solid var(--rz-color-border-subtle);
	background: var(--rz-color-bg);
	color: var(--rz-color-text-muted);
	font-size: var(--rz-font-size-sm);
}

.rz-site-footer__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--rz-space-3) var(--rz-space-5);
	max-width: calc(var(--rz-container-wide) + 2 * var(--rz-gutter));
	margin-inline: auto;
	padding: var(--rz-space-6) var(--rz-gutter);
}

.rz-site-footer__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0 var(--rz-space-5);
	margin: 0;
	padding: 0;
	list-style: none;
}

.rz-site-footer__links a {
	display: inline-flex;
	align-items: center;
	min-height: var(--rz-target-min);
}
