:root {
	--portal-page-background: #ffffff;
	--portal-canvas-background: #f5f5f5;
	--portal-panel-background: #f3f3f3;
	--portal-border: #ececec;
	--portal-panel-border: rgba(0, 0, 0, 0.04);
	--portal-text: #273244;
	--portal-text-muted: #6f7b8d;
	--portal-link: #2a5fb8;
	--portal-panel-radius: 22px;
	--portal-sidebar-width: 248px;
	--portal-content-max-width: 1680px;
	--portal-menu-font: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
	--portal-logo-size: 118px;
	--portal-logo-color: #111111;
	--orange-contrast: #ff6a45;
	--portal-nav-text: #2f3b4d;
	--portal-nav-hover-bg: #fff4ef;
	--portal-nav-hover-text: #ff5a2f;
	--portal-nav-active-text: #ffffff;
	--portal-shell-surface: #ffffff;
	--portal-brand-text: #111111;
	--portal-shell-gradient: linear-gradient(180deg, #ffffff 0%, #f6f8fb 100%);
	--portal-shadow: 0 18px 42px rgba(34, 46, 62, 0.08);
	--portal-mobile-shadow: 0 18px 42px rgba(34, 46, 62, 0.12);
	--portal-social-facebook: #2c5db6;
	--portal-social-x: #58b9ef;
	--portal-social-linkedin: #2578b5;
	--portal-theme-toggle-surface: #ffffff;
	--portal-theme-toggle-hover: #f4f7fb;
	--portal-theme-toggle-icon: #314055;
	--portal-bill-border: #5ea2ec;
	--portal-bill-background: #edf4fe;
	--portal-bill-eyebrow: #48586e;
	--portal-bill-copy: #4b5970;
	--portal-metric-label: #7a8797;
	--portal-quicklink-hover-text: #ff5a2f;
	--portal-quicklink-hover-border: #ffb39a;
}

html[data-portal-theme="dark"] {
	--portal-page-background: #0e141b;
	--portal-canvas-background: #171d26;
	--portal-panel-background: #1c2430;
	--portal-border: #2b3544;
	--portal-panel-border: rgba(255, 255, 255, 0.06);
	--portal-text: #edf3fb;
	--portal-text-muted: #9aa9bc;
	--portal-link: #8db8ff;
	--portal-logo-color: #f5f7fb;
	--portal-nav-text: #d9e2ef;
	--portal-nav-hover-bg: #263140;
	--portal-nav-hover-text: #ffffff;
	--portal-shell-surface: #101720;
	--portal-brand-text: #f5f7fb;
	--portal-shell-gradient: linear-gradient(180deg, #101720 0%, #141c26 100%);
	--portal-shadow: 0 22px 52px rgba(0, 0, 0, 0.35);
	--portal-mobile-shadow: 0 22px 52px rgba(0, 0, 0, 0.45);
	--portal-social-facebook: #355ea7;
	--portal-social-x: #2d7ea5;
	--portal-social-linkedin: #255d86;
	--portal-theme-toggle-surface: #1b2430;
	--portal-theme-toggle-hover: #243041;
	--portal-theme-toggle-icon: #f7c95b;
	--portal-bill-border: #355f8f;
	--portal-bill-background: #1b2838;
	--portal-bill-eyebrow: #a6bad0;
	--portal-bill-copy: #d5deea;
	--portal-metric-label: #9eacc0;
	--portal-quicklink-hover-text: #ffb496;
	--portal-quicklink-hover-border: #7b4d39;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	color: var(--portal-text);
	background: var(--portal-page-background);
	font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
}

a {
	color: inherit;
	text-decoration: none;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.site-shell {
	min-height: 100vh;
	padding: 4rem 1.5rem;
	background: var(--portal-shell-gradient);
}

.site-shell__inner {
	max-width: 980px;
	margin: 0 auto;
}

.site-article {
	padding: 2rem;
	border: 1px solid var(--portal-border);
	border-radius: var(--portal-panel-radius);
	background: var(--portal-panel-background);
	box-shadow: var(--portal-shadow);
}

.site-article__title {
	margin: 0 0 1rem;
	font-size: clamp(2rem, 5vw, 3rem);
	letter-spacing: -0.04em;
}

.site-article__content {
	line-height: 1.75;
}

.site-article__content > *:first-child {
	margin-top: 0;
}

.portal-app {
	display: grid;
	grid-template-columns: var(--portal-sidebar-width) minmax(0, 1fr);
	min-height: 100vh;
	background: var(--portal-page-background);
}

.portal-sidebar {
	position: sticky;
	top: 0;
	display: flex;
	flex-direction: column;
	height: 100vh;
	padding: 0.8rem 0.8rem 1.6rem;
	background: var(--portal-shell-surface);
}

.portal-sidebar__brand {
	padding: 0.1rem 0 1.75rem;
}

.portal-brand__logo-link,
.portal-brand__title {
	display: inline-flex;
	align-items: center;
	color: var(--portal-brand-text);
}

.portal-brand__title {
	font-size: clamp(1.6rem, 4vw, 2.25rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.06em;
}

.portal-brand__logo-mark {
	display: inline-flex;
	align-items: center;
	color: var(--portal-logo-color);
}

.portal-logo-image {
	display: block;
	width: auto;
	height: auto;
	max-width: min(100%, var(--portal-logo-size));
}

.portal-logo-svg {
	display: block;
	width: auto;
	max-width: min(100%, var(--portal-logo-size));
	height: auto;
}

.portal-logo-svg.is-monochrome .a {
	fill: currentColor !important;
}

.portal-nav {
	flex: 1;
	overflow-y: auto;
}

.portal-nav__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.portal-nav__item {
	margin-bottom: 0.55rem;
	border-radius: 6px;
}

.portal-nav__link {
	display: flex;
	align-items: center;
	gap: 0.95rem;
	min-height: 44px;
	padding: 0.78rem 0.95rem;
	border-radius: 6px;
	color: var(--portal-nav-text);
	font-family: var(--portal-menu-font);
	font-size: 0.94rem;
	font-weight: 500;
}

.portal-nav__item:hover .portal-nav__link,
.portal-nav__link:focus-visible {
	background: var(--portal-nav-hover-bg);
	color: var(--portal-nav-hover-text);
	outline: none;
}

li.current-menu-item {
	background: linear-gradient(
		200deg,
		color-mix(in srgb, var(--orange-contrast) 85%, white 15%) 10%,
		var(--orange-contrast) 55%,
		color-mix(in srgb, var(--orange-contrast) 85%, black 15%) 120%
	);
}

li.current-menu-item .portal-nav__link {
	color: var(--portal-nav-active-text);
}

li.current-menu-item:hover .portal-nav__link,
li.current-menu-item .portal-nav__link:focus-visible {
	background: transparent;
	color: var(--portal-nav-active-text);
}

.portal-nav__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	flex: 0 0 20px;
}

.portal-menu-icon-svg {
	width: 18px;
	height: 18px;
}

.portal-menu-icon-svg:not(.is-custom) {
	stroke: currentColor;
	fill: none;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.portal-menu-icon-svg.is-custom [fill]:not([fill="none"]) {
	fill: currentColor;
}

.portal-menu-icon-svg.is-custom [stroke]:not([stroke="none"]) {
	stroke: currentColor;
}

.portal-menu-icon-svg.is-custom path,
.portal-menu-icon-svg.is-custom circle,
.portal-menu-icon-svg.is-custom rect,
.portal-menu-icon-svg.is-custom polygon,
.portal-menu-icon-svg.is-custom ellipse {
	fill: currentColor;
}

.portal-main {
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: var(--portal-shell-surface);
}

.portal-topbar {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	min-height: 40px;
	padding: 0.45rem 1.25rem;
	background: var(--portal-shell-surface);
}

.portal-topbar__toggle {
	display: none;
	position: relative;
	width: 42px;
	height: 42px;
	padding: 0;
	margin-right: auto;
	border: 1px solid var(--portal-border);
	border-radius: 10px;
	background: var(--portal-theme-toggle-surface);
}

.portal-topbar__toggle span:not(.screen-reader-text) {
	position: absolute;
	left: 11px;
	right: 11px;
	height: 2px;
	background: var(--portal-text);
}

.portal-topbar__toggle span:nth-child(2) {
	top: 14px;
}

.portal-topbar__toggle span:nth-child(3) {
	top: 20px;
}

.portal-topbar__toggle span:nth-child(4) {
	top: 26px;
}

.portal-topbar__actions {
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

.portal-topbar__social {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.55rem;
	height: 1.55rem;
	border-radius: 999px;
	background: var(--portal-social-facebook);
	color: #ffffff;
	font-size: 0.62rem;
	font-weight: 800;
	text-transform: uppercase;
}

.portal-topbar__social:nth-child(2) {
	background: var(--portal-social-x);
}

.portal-topbar__social:nth-child(3) {
	background: var(--portal-social-linkedin);
}

.portal-theme-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: relative;
	width: 2.4rem;
	height: 2.4rem;
	padding: 0;
	border: 1px solid var(--portal-border);
	border-radius: 999px;
	background: var(--portal-theme-toggle-surface);
	color: var(--portal-theme-toggle-icon);
	cursor: pointer;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.portal-theme-toggle:hover,
.portal-theme-toggle:focus-visible {
	background: var(--portal-theme-toggle-hover);
	outline: none;
	transform: translateY(-1px);
}

.portal-theme-toggle__fallback,
.portal-theme-toggle__lottie {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.8rem;
	height: 1.8rem;
}

.portal-theme-toggle__lottie {
	position: absolute;
	inset: 50% auto auto 50%;
	width: 2rem;
	height: 2rem;
	transform: translate(-50%, -50%);
	opacity: 0;
	pointer-events: none;
}

.portal-theme-toggle__lottie dotlottie-wc {
	display: block;
	width: 100%;
	height: 100%;
}

.portal-theme-toggle.is-lottie-ready .portal-theme-toggle__lottie {
	opacity: 1;
}

.portal-theme-toggle.has-lottie.is-lottie-ready .portal-theme-toggle__fallback {
	opacity: 0;
}

.portal-theme-toggle__fallback {
	position: relative;
	width: 1.25rem;
	height: 1.25rem;
	transition: opacity 140ms ease;
}

.portal-theme-toggle__icon {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: opacity 160ms ease, transform 200ms ease;
}

.portal-theme-toggle__icon--moon {
	opacity: 0;
	transform: scale(0.65) rotate(-18deg);
}

.portal-theme-toggle[data-theme="dark"] .portal-theme-toggle__icon--sun {
	opacity: 0;
	transform: scale(0.65) rotate(18deg);
}

.portal-theme-toggle[data-theme="dark"] .portal-theme-toggle__icon--moon {
	opacity: 1;
	transform: scale(1) rotate(0deg);
}

.portal-stage {
	flex: 1;
	padding: 0 0 1.2rem 0;
	background: var(--portal-shell-surface);
}

.portal-canvas {
	max-width: none;
	min-height: calc(100vh - 74px);
	margin: 0;
	padding: 2rem 2.5rem 2.25rem;
	background: var(--portal-canvas-background);
	border-radius: var(--portal-panel-radius) 0 0 var(--portal-panel-radius);
}

.portal-bottom-bar {
	height: 26px;
	background: var(--portal-shell-surface);
}

.portal-page-header {
	margin-bottom: 1.1rem;
}

.portal-page-header__title {
	margin: 0;
	font-size: clamp(2rem, 4vw, 3.5rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.05em;
}

.portal-page-header__description {
	margin: 0.7rem 0 0;
	color: var(--portal-text-muted);
	line-height: 1.6;
}

.portal-panel {
	border: 1px solid var(--portal-panel-border);
	background: var(--portal-panel-background);
}

.portal-panel--section {
	padding: 0;
	border: 0;
	background: transparent;
}

.portal-wysiwyg {
	line-height: 1.75;
}

.portal-wysiwyg > *:first-child {
	margin-top: 0;
}

.portal-wysiwyg > *:last-child {
	margin-bottom: 0;
}

.portal-dashboard-stream {
	margin-bottom: 1.8rem;
}

.portal-section-block {
	margin-bottom: 2rem;
}

.portal-section-block__title {
	margin: 0 0 0.85rem;
	font-size: 1.05rem;
	font-weight: 500;
}

.portal-bullet-list,
.portal-service-list {
	margin: 0;
	padding-left: 1.3rem;
}

.portal-bullet-list__item,
.portal-service-list__item {
	margin-bottom: 0.5rem;
}

.portal-bullet-list__lead,
.portal-service-list__title {
	font-weight: 800;
}

.portal-service-list__line,
.portal-service-list__status {
	margin: 0;
	line-height: 1.45;
}

.portal-service-list__status,
.portal-bullet-list__trail,
.portal-service-list__meta,
.portal-empty-state {
	color: var(--portal-text-muted);
}

.portal-finance-panel {
	padding: 1rem;
	border: 1px solid var(--portal-border);
	background: var(--portal-panel-background);
}

.portal-finance-panel__header h2 {
	margin: 0 0 0.85rem;
	font-size: 1.15rem;
	font-weight: 800;
}

.portal-finance-panel__bills {
	display: grid;
	gap: 0.45rem;
	margin-bottom: 1rem;
}

.portal-bill {
	padding: 0.95rem 0.8rem;
	border: 1px solid var(--portal-bill-border);
	background: var(--portal-bill-background);
}

.portal-bill__eyebrow {
	margin: 0 0 0.55rem;
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--portal-bill-eyebrow);
}

.portal-bill__description,
.portal-bill__link,
.portal-metric__meta {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.55;
	color: var(--portal-bill-copy);
}

.portal-bill__link {
	display: inline-flex;
	margin-top: 0.55rem;
	color: var(--portal-link);
}

.portal-metrics {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.7rem;
}

.portal-metric {
	min-height: 112px;
	padding: 0.95rem 0.9rem;
	border: 1px solid var(--portal-border);
	background: var(--portal-panel-background);
}

.portal-metric__label {
	margin: 0 0 0.55rem;
	font-size: 0.7rem;
	font-weight: 600;
	color: var(--portal-metric-label);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.portal-metric__value {
	margin: 0 0 0.45rem;
	font-size: 1.05rem;
	font-weight: 800;
}

.portal-links-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
	margin-top: 1rem;
}

.portal-quick-links__item {
	display: inline-flex;
	align-items: center;
	padding: 0.68rem 0.95rem;
	border: 1px solid var(--portal-border);
	border-radius: 999px;
	background: var(--portal-panel-background);
	font-size: 0.88rem;
	font-weight: 600;
}

.portal-quick-links__item:hover,
.portal-quick-links__item:focus-visible {
	color: var(--portal-quicklink-hover-text);
	border-color: var(--portal-quicklink-hover-border);
	outline: none;
}

@media (max-width: 1024px) {
	.portal-canvas {
		padding: 1.5rem;
	}
}

@media (max-width: 920px) {
	.portal-app {
		grid-template-columns: 1fr;
	}

	.portal-sidebar {
		position: fixed;
		z-index: 25;
		width: var(--portal-sidebar-width);
		transform: translateX(-100%);
		transition: transform 180ms ease;
		box-shadow: var(--portal-mobile-shadow);
	}

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

	.portal-topbar__toggle {
		display: inline-flex;
	}

	.portal-stage {
		padding: 0 0 1rem 0;
	}

	.portal-canvas {
		padding: 1.25rem;
		border-radius: 0;
	}

	.portal-metrics {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.site-shell {
		padding: 2rem 0.85rem;
	}

	.site-article,
	.portal-canvas {
		padding: 1.1rem;
	}

	.portal-page-header__title,
	.site-article__title {
		font-size: 2rem;
	}
}
