:root {
	--portal-page-background: #ffffff;
	--portal-canvas-background: #f5f5f5;
	--portal-panel-background: #f3f3f3;
	--portal-border: #ececec;
	--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;
}

*,
*::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: linear-gradient(180deg, #ffffff 0%, #f6f8fb 100%);
}

.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: 0 18px 42px rgba(34, 46, 62, 0.08);
}

.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: #ffffff;
	border-right: 1px solid #f0f0f0;
}

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

.portal-brand__logo-link,
.portal-brand__title {
	display: inline-flex;
	align-items: center;
	color: #111111;
}

.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-svg {
	display: block;
	width: auto;
	max-width: min(100%, var(--portal-logo-size));
	height: auto;
}

.portal-logo-svg.is-monochrome [fill]:not([fill="none"]) {
	fill: currentColor !important;
}

.portal-logo-svg.is-monochrome [stroke]:not([stroke="none"]) {
	stroke: 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: #2f3b4d;
	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: #fff4ef;
	color: #ff5a2f;
	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: #ffffff;
}

.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-main {
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: #ffffff;
}

.portal-topbar {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	min-height: 40px;
	padding: 0.45rem 1.25rem;
	background: #ffffff;
}

.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: #ffffff;
}

.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;
	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: #2c5db6;
	color: #ffffff;
	font-size: 0.62rem;
	font-weight: 800;
	text-transform: uppercase;
}

.portal-topbar__social:nth-child(2) {
	background: #58b9ef;
}

.portal-topbar__social:nth-child(3) {
	background: #2578b5;
}

.portal-stage {
	flex: 1;
	padding: 0 1.2rem 1.2rem;
	background: #ffffff;
}

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

.portal-bottom-bar {
	height: 26px;
	background: #ffffff;
}

.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 rgba(0, 0, 0, 0.04);
	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-canvas--dashboard .portal-page-header {
	margin-bottom: 1.8rem;
}

.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 #d9d9d9;
	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 #5ea2ec;
	background: #edf4fe;
}

.portal-bill__eyebrow {
	margin: 0 0 0.55rem;
	font-size: 0.78rem;
	font-weight: 700;
	color: #48586e;
}

.portal-bill__description,
.portal-bill__link,
.portal-metric__meta {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.55;
	color: #4b5970;
}

.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: #7a8797;
	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: #ff5a2f;
	border-color: #ffb39a;
	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: 0 18px 42px rgba(34, 46, 62, 0.12);
	}

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

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

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

	.portal-canvas {
		padding: 1.25rem;
	}

	.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;
	}
}
