/* Professional blue & white theme — loaded after all other stylesheets */
:root {
	--navy: #0a2540;
	--blue: #1d5fa8;
	--blue-dark: #134a89;
	--sky: #38a1e8;
	--ice: #eaf3fb;
	--soft: #f5f9fd;
	--line: #d6e4f2;
	--ink: #1f2d3d;
	--muted: #5b6b7d;
	--radius: 16px;
	--shadow: 0 6px 24px rgba(10, 37, 64, .08);
	--shadow-lg: 0 16px 40px rgba(10, 37, 64, .14);
	--site-navy: var(--navy);
	--site-blue: var(--blue);
	--site-gold: var(--sky);
	--site-ink: var(--ink);
	--site-mist: var(--soft);
	--site-line: var(--line);
}

body {
	--update-gold: var(--sky);
	--update-navy: var(--navy);
	--update-blue: var(--blue);
}

body:not(.home) {
	background: linear-gradient(180deg, #e6f0fa 0, #f5f9fd 520px, #f0f6fc 100%) fixed !important;
}

body.home {
	background: linear-gradient(180deg, #e6f0fa 0, #f5f9fd 520px, #f0f6fc 100%) fixed !important;
}

body {
	color: var(--ink);
	font-family: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

/* ---------- Header ---------- */
body #site-header {
	background: #fff;
	border-bottom: 3px solid var(--blue);
	box-shadow: 0 4px 20px rgba(10, 37, 64, .1);
	position: sticky;
	top: 0;
	z-index: 900;
}

body #site-header .header-inner {
	align-items: center;
	flex-direction: row;
	gap: 24px;
	justify-content: space-between;
	max-width: 1280px;
	padding-bottom: 10px;
	padding-top: 10px;
}

body #site-header .site-branding {
	margin: 0;
}

body #site-header .custom-logo {
	display: block;
	height: auto;
	max-height: 62px;
	width: auto;
}

body #site-header .site-navigation {
	margin: 0;
}

body #site-header .site-navigation ul {
	gap: 2px;
	justify-content: flex-end;
}

body #site-header .site-navigation a,
body #site-footer .site-navigation a {
	text-decoration: none;
}

body #site-header .site-navigation a {
	border-radius: 8px;
	color: var(--navy);
	font-size: .92rem !important;
	font-weight: 600;
	padding: 9px 13px;
	transition: background .2s ease, color .2s ease;
}

body #site-header .site-navigation a::after {
	display: none;
}

body #site-header .site-navigation a:hover {
	background: var(--ice);
	color: var(--blue);
}

body #site-header .site-navigation a.is-active {
	background: var(--blue);
	color: #fff;
}

/* ---------- Hero ---------- */
body.pro-ready .page-header {
	display: none;
}

.pro-hero {
	background:
		radial-gradient(circle at 85% 20%, rgba(56, 161, 232, .35), transparent 22rem),
		radial-gradient(circle at 8% 90%, rgba(56, 161, 232, .2), transparent 20rem),
		linear-gradient(135deg, var(--navy) 0%, var(--blue-dark) 60%, var(--blue) 100%);
	color: #fff;
	overflow: hidden;
	padding: clamp(44px, 7vw, 84px) 24px clamp(52px, 8vw, 96px);
	position: relative;
}

.pro-hero::after {
	background: var(--soft);
	bottom: -1px;
	clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 70%);
	content: "";
	height: 38px;
	left: 0;
	position: absolute;
	right: 0;
}

.pro-hero__inner {
	margin: 0 auto;
	max-width: 1200px;
	position: relative;
	z-index: 1;
}

.pro-hero__crumbs {
	color: rgba(255, 255, 255, .72);
	font-size: .88rem;
	margin-bottom: 14px;
}

.pro-hero__crumbs a {
	color: #cfe6fa;
	text-decoration: none;
}

.pro-hero__crumbs a:hover {
	color: #fff;
	text-decoration: underline;
}

.pro-hero__kicker {
	background: rgba(56, 161, 232, .22);
	border: 1px solid rgba(255, 255, 255, .28);
	border-radius: 999px;
	color: #d9ecfb;
	display: inline-block;
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .12em;
	margin-bottom: 16px;
	padding: 6px 14px;
	text-transform: uppercase;
}

body .pro-hero__title {
	color: #fff !important;
	font-size: clamp(2rem, 5vw, 3.4rem) !important;
	font-weight: 800;
	letter-spacing: -.02em;
	line-height: 1.12;
	margin: 0 0 14px;
	max-width: 900px;
}

.pro-hero__subtitle {
	color: #d4e7f8;
	font-size: clamp(1.02rem, 2vw, 1.25rem);
	line-height: 1.6;
	margin: 0;
	max-width: 760px;
}

/* ---------- Shell / layout ---------- */
.pro-shell {
	align-items: start;
	display: grid;
	gap: 32px;
	grid-template-columns: minmax(0, 1fr);
	margin: 0 auto;
	max-width: 1200px;
	padding: 36px 24px 72px;
}

.pro-shell--toc {
	grid-template-columns: 270px minmax(0, 1fr);
}

.pro-shell--toc .pro-main {
	grid-column: 2;
}

.pro-shell--toc .pro-toc {
	grid-column: 1;
	grid-row: 1;
}

.pro-main {
	min-width: 0;
}

body .site-main:not(.post-547) .page-content,
body .site-main:not(.post-547) .entry-content {
	max-width: none;
	padding: 0;
}

body .site-main .e-con.e-parent:hover {
	box-shadow: none;
	transform: none;
}

.pro-toc {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	max-height: calc(100vh - 130px);
	overflow: auto;
	padding: 20px 18px;
	position: sticky;
	top: 100px;
}

.pro-toc__label {
	color: var(--blue);
	font-size: .76rem;
	font-weight: 800;
	letter-spacing: .12em;
	margin: 0 0 12px;
	text-transform: uppercase;
}

.pro-toc ol {
	list-style: none;
	margin: 0;
	padding: 0;
}

.pro-toc li {
	margin: 0;
}

.pro-toc a {
	border-left: 3px solid transparent;
	border-radius: 0 8px 8px 0;
	color: var(--ink);
	display: block;
	font-size: .92rem;
	line-height: 1.4;
	padding: 8px 10px 8px 12px;
	text-decoration: none;
	transition: background .2s ease, border-color .2s ease;
}

.pro-toc a:hover {
	background: var(--ice);
}

.pro-toc a.is-current {
	background: var(--ice);
	border-left-color: var(--blue);
	color: var(--blue-dark);
	font-weight: 700;
}

/* ---------- Cards ---------- */
.pro-card,
body .site-main:not(.post-547) .pro-block {
	--tone: var(--blue);
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	border-top: 5px solid var(--tone);
	box-shadow: var(--shadow);
	margin: 0 0 28px;
	overflow: hidden;
	scroll-margin-top: 100px;
	transition: box-shadow .25s ease, transform .25s ease;
}

.pro-card:hover {
	box-shadow: var(--shadow-lg);
	transform: translateY(-2px);
}

.pro-card[data-tone="1"] { --tone: var(--sky); }
.pro-card[data-tone="2"] { --tone: var(--navy); }
.pro-card[data-tone="3"] { --tone: #2a8fbd; }

.pro-card__title {
	align-items: center;
	background: linear-gradient(90deg, var(--ice), #fff 75%);
	border-bottom: 1px solid var(--line);
	color: var(--navy);
	display: flex;
	gap: 14px;
	margin: 0;
	padding: 20px 32px;
}

.pro-card__title::before {
	background: var(--tone);
	border-radius: 4px;
	content: "";
	flex: 0 0 8px;
	height: 28px;
}

body .pro-card__title,
body .pro-card__title * {
	color: var(--navy) !important;
	font-size: clamp(1.25rem, 2.4vw, 1.65rem) !important;
	font-weight: 800;
	letter-spacing: -.01em;
	line-height: 1.3;
	text-decoration: none !important;
	text-transform: none;
}

.pro-card__body {
	padding: 28px 32px 20px;
}

.pro-card__body > :last-child {
	margin-bottom: 8px;
}

body .pro-card p,
body .pro-card li,
body .pro-card td,
body .pro-card th {
	color: var(--ink);
	font-size: 1.1rem !important;
	line-height: 1.8 !important;
	max-width: none;
}

body .pro-card p {
	margin: 0 0 1.15em;
}

body .pro-card span[style] {
	color: inherit !important;
	font-family: inherit !important;
	font-size: inherit !important;
}

.pro-main .e-con,
.pro-main .e-con-inner,
.pro-main .elementor-widget,
.pro-main .elementor-widget-container {
	max-width: none !important;
	width: 100%;
}

.pro-main .e-con:not(.pro-block),
.pro-main .e-con-inner {
	padding-left: 0;
	padding-right: 0;
}

.pro-card__body .e-con,
.pro-card__body .e-con-inner,
.pro-card__body .elementor-widget,
.pro-card__body .elementor-widget-container {
	background: none;
	border: 0;
	box-shadow: none;
	margin: 0;
	max-width: none;
	padding: 0;
	width: 100%;
}

body .pro-card a {
	color: var(--blue);
	font-weight: 600;
	text-decoration-color: rgba(29, 95, 168, .35);
}

body .pro-card a:hover {
	color: var(--navy);
	text-decoration-color: var(--sky);
}

body .pro-card .pro-subhead {
	background: var(--ice);
	border-left: 4px solid var(--tone);
	border-radius: 0 10px 10px 0;
	color: var(--navy);
	font-size: 1.12rem !important;
	font-weight: 800;
	margin: 1.6em 0 1em;
	padding: 10px 16px;
}

body .pro-card .pro-subhead * {
	color: var(--navy);
	font-weight: 800;
}

body .pro-card h5,
body .pro-card h6 {
	color: var(--navy);
	font-size: 1.1rem !important;
	margin: 1.4em 0 .6em;
}

body .pro-card .pro-lead,
body .pro-card h1 {
	background: linear-gradient(135deg, var(--ice), #fff);
	border-left: 5px solid var(--blue);
	border-radius: 0 12px 12px 0;
	color: var(--navy) !important;
	font-size: clamp(1.1rem, 2.2vw, 1.4rem) !important;
	font-style: normal;
	font-weight: 600;
	line-height: 1.6;
	margin: 0 0 1.4em;
	padding: 18px 24px;
}

body .pro-card .pro-lead *,
body .pro-card h1 * {
	color: inherit !important;
	font-family: inherit !important;
	font-size: inherit !important;
	font-style: normal;
}

.pro-card blockquote {
	background: var(--soft);
	border-left: 4px solid var(--sky);
	border-radius: 0 10px 10px 0;
	margin: 1.2em 0;
	padding: 14px 20px;
}

.pro-card table {
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid var(--line);
	border-radius: 12px;
	margin: 1.2em 0;
	overflow: hidden;
	width: 100%;
}

.pro-card th {
	background: var(--navy);
	color: #fff !important;
	font-weight: 700;
	padding: 12px 16px;
	text-align: left;
}

.pro-card td {
	border-top: 1px solid var(--line);
	padding: 12px 16px;
}

.pro-card tbody tr:nth-child(even) td {
	background: var(--soft);
}

.pro-card ul,
.pro-card ol {
	margin: 0 0 1.2em;
	padding-left: 1.4em;
}

.pro-card li::marker {
	color: var(--blue);
}

/* ---------- Images ---------- */
body .site-main img:not(.custom-logo):not(.emoji) {
	border: 1px solid var(--line);
	border-radius: 12px;
	box-shadow: var(--shadow);
	margin: 0;
}

.pro-gallery {
	align-items: stretch;
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	margin: 0 0 1.4em;
}

.pro-gallery img {
	aspect-ratio: 4 / 3;
	height: 100% !important;
	object-fit: cover;
	width: 100%;
}

.pro-figure {
	margin: 0 0 1.4em;
	text-align: center;
}

.pro-figure img {
	display: inline-block;
	max-height: 560px;
	width: auto;
}

.pro-card--feature .pro-card__body {
	align-items: center;
	display: grid;
	gap: 32px;
	grid-template-columns: minmax(200px, 300px) minmax(0, 1fr);
}

.pro-card--feature .pro-figure {
	margin: 0;
}

.pro-card--feature .pro-figure img {
	width: 100%;
}

.pro-card--feature .pro-card__text p:last-child {
	font-size: 1.2rem !important;
	font-weight: 600;
}

/* ---------- Document list (RCMP) ---------- */
.pro-doclist {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	list-style: none;
	margin: 0 !important;
	padding: 0 !important;
}

.pro-doclist li {
	margin: 0;
}

.pro-doclist h5 {
	margin: 0 !important;
}

body .pro-card .pro-doclist a {
	align-items: center;
	background: var(--soft);
	border: 1px solid var(--line);
	border-radius: 12px;
	color: var(--navy);
	display: flex;
	font-size: .98rem;
	gap: 12px;
	height: 100%;
	line-height: 1.4;
	padding: 12px 14px;
	text-decoration: none;
	transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

body .pro-card .pro-doclist a:hover {
	background: var(--ice);
	border-color: var(--sky);
	transform: translateY(-2px);
}

.pro-doclist a::before {
	background: var(--blue);
	border-radius: 8px;
	color: #fff;
	content: "FILE";
	flex: 0 0 auto;
	font-size: .7rem;
	font-weight: 800;
	letter-spacing: .04em;
	padding: 9px 8px;
	text-align: center;
	min-width: 46px;
}

.pro-doclist a[href*=".pdf"]::before { background: #c0392b; content: "PDF"; }
.pro-doclist a[href*=".doc"]::before { background: var(--blue); content: "DOC"; }
.pro-doclist a[href*=".xls"]::before { background: #1e8a5a; content: "XLS"; }
.pro-doclist a[href$=".jpg"]::before { background: #6b52b3; content: "IMG"; }

/* ---------- Blog list ---------- */
.pro-card .wpspw-post-list {
	margin: 0 0 12px;
}

body .wpspw-pro-widget-wrp .wpspw-post-list-content {
	background: var(--soft);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 14px 18px;
	transition: border-color .2s ease, transform .2s ease;
}

body .wpspw-pro-widget-wrp .wpspw-post-list-content:hover {
	border-color: var(--sky);
	transform: translateX(4px);
}

body .wpspw-post-title a {
	color: var(--navy) !important;
	font-size: 1.1rem;
	font-weight: 700;
	text-decoration: none;
}

body .wpspw-post-categories a {
	background: var(--ice);
	border-radius: 999px;
	color: var(--blue) !important;
	font-size: .72rem;
	font-weight: 800;
	letter-spacing: .08em;
	padding: 3px 10px;
	text-transform: uppercase;
}

body .wpspw-post-left-img {
	display: none;
}

body .wpspw-post-right-content {
	padding: 0;
	width: 100%;
}

/* ---------- Eyebrow ---------- */
body .elementor-widget-heading div.elementor-heading-title {
	color: var(--blue);
	font-size: .85rem !important;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
}

/* ---------- Home page ---------- */
body.home .elementor-547 {
	max-width: 1000px !important;
}

body .latest-update-article h3,
body.home h3 {
	border-left-color: var(--sky) !important;
}

/* ---------- Footer ---------- */
body #site-footer {
	background: linear-gradient(135deg, var(--navy), var(--blue-dark));
	border-top: 4px solid var(--sky);
	color: #d4e7f8;
	padding: 44px 0 24px;
}

body #site-footer .footer-inner {
	align-items: center;
	display: flex;
	flex-direction: column;
	gap: 22px;
	max-width: 1200px;
	text-align: center;
}

body #site-footer .site-logo a {
	background: #fff;
	border-radius: 12px;
	display: inline-block;
	padding: 8px 14px;
}

body #site-footer .custom-logo {
	display: block;
	max-height: 54px;
	width: auto;
}

body #site-footer .site-navigation ul {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 6px;
	justify-content: center;
}

body #site-footer .site-navigation a {
	border-radius: 8px;
	color: #d4e7f8;
	font-size: .95rem;
	padding: 6px 12px;
}

body #site-footer .site-navigation a:hover {
	background: rgba(255, 255, 255, .12);
	color: #fff;
}

body #site-footer .copyright {
	border-top: 1px solid rgba(255, 255, 255, .18);
	color: #a9c9e8;
	font-size: .9rem;
	padding-top: 18px;
	width: 100%;
}

/* ---------- Tools ---------- */
.site-reading-progress {
	background: linear-gradient(90deg, var(--sky), var(--blue));
}

.site-back-to-top,
.site-back-to-top:focus {
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	background: rgba(234, 243, 251, .78);
	border: 1px solid rgba(56, 161, 232, .45);
	border-radius: 50%;
	box-shadow: 0 6px 18px rgba(29, 95, 168, .18);
	color: var(--blue);
	font-weight: 700;
	line-height: 1;
}

.site-back-to-top:hover {
	background: rgba(56, 161, 232, .9);
	border-color: rgba(255, 255, 255, .8);
	color: #fff;
}

/* ---------- Document viewer ---------- */
.document-page__open {
	background: var(--blue);
	color: #fff;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.pro-shell--toc {
		grid-template-columns: minmax(0, 1fr);
	}

	.pro-shell--toc .pro-main,
	.pro-shell--toc .pro-toc {
		grid-column: 1;
		grid-row: auto;
	}

	.pro-toc {
		max-height: none;
		position: static;
	}

	.pro-toc ol {
		display: flex;
		flex-wrap: wrap;
		gap: 6px;
	}

	.pro-toc a {
		background: var(--soft);
		border: 1px solid var(--line);
		border-radius: 999px;
		padding: 6px 12px;
	}
}

@media (max-width: 767px) {
	body #site-header .header-inner {
		flex-wrap: wrap;
		padding: 10px 16px;
	}

	.pro-shell {
		padding: 24px 14px 48px;
	}

	.pro-card__title,
	.pro-card__body {
		padding-left: 18px;
		padding-right: 18px;
	}

	.pro-card--feature .pro-card__body {
		grid-template-columns: minmax(0, 1fr);
	}

	.pro-doclist {
		grid-template-columns: minmax(0, 1fr);
	}
}

body .pro-form {
	display: grid;
	gap: 8px;
	margin-top: 8px;
}

body .pro-form label {
	font-weight: 700;
	color: var(--navy);
	margin-top: 10px;
}

body .pro-form input[type="text"],
body .pro-form input[type="email"],
body .pro-form input[type="url"],
body .pro-form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	border: 1.5px solid var(--line);
	border-radius: 10px;
	background: #f7fbff;
	font: inherit;
	color: var(--ink);
}

body .pro-form input:focus,
body .pro-form textarea:focus {
	outline: none;
	border-color: var(--sky);
	box-shadow: 0 0 0 3px rgba(56, 161, 232, 0.25);
	background: #fff;
}

body .pro-form button {
	justify-self: start;
	margin-top: 14px;
	padding: 12px 28px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--blue), var(--sky));
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

body .pro-form button:disabled {
	opacity: 0.6;
	cursor: wait;
}

body .pro-form .pro-form__status.is-ok { color: #1a7f4b; font-weight: 700; }
body .pro-form .pro-form__status.is-error { color: #b42318; font-weight: 700; }

/* Blog posts */
body .blog-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 22px;
	margin-top: 22px;
}

body .blog-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--line);
	border-top: 4px solid var(--sky);
	border-radius: 14px;
	overflow: hidden;
	text-decoration: none;
	box-shadow: 0 8px 24px rgba(10, 37, 64, 0.08);
	transition: transform 0.2s, box-shadow 0.2s;
}

body .blog-card:nth-child(3n+2) { border-top-color: var(--blue); }
body .blog-card:nth-child(3n) { border-top-color: var(--navy); }

body .blog-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 32px rgba(10, 37, 64, 0.16);
}

body .blog-card[hidden] { display: none; }

body .blog-card__thumb {
	display: block;
	height: 170px;
	background: var(--ice, #eaf3fc);
}

body .blog-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

body .blog-card__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 18px 20px 20px;
	flex: 1;
}

body .blog-card__title {
	font-size: 1.15rem;
	font-weight: 800;
	line-height: 1.35;
	color: var(--navy);
}

body .blog-card__excerpt {
	color: var(--ink);
	font-size: 0.95rem;
	line-height: 1.6;
}

body .blog-card__more {
	margin-top: auto;
	color: var(--blue);
	font-weight: 700;
}

body .blog-tools input[type="search"] {
	width: 100%;
	box-sizing: border-box;
	padding: 14px 16px;
	border: 1.5px solid var(--line);
	border-radius: 999px;
	background: #f7fbff;
	font: inherit;
}

body .blog-tools input[type="search"]:focus {
	outline: none;
	border-color: var(--sky);
	box-shadow: 0 0 0 3px rgba(56, 161, 232, 0.25);
}

body .blog-count,
body .blog-empty {
	margin: 10px 4px 0;
	color: var(--blue);
	font-weight: 700;
}

body .post-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 14px;
}

body .post-date {
	color: var(--blue);
	font-weight: 700;
	font-size: 0.9rem;
}

body .post-chip {
	background: #eaf3fc;
	color: var(--blue);
	border-radius: 999px;
	padding: 3px 12px;
	font-size: 0.78rem;
	font-weight: 700;
}

body .post-body img {
	max-width: 100%;
	height: auto;
	border-radius: 10px;
}

body .post-body .video-embed {
	position: relative;
	aspect-ratio: 16 / 9;
	margin: 22px 0;
	border-radius: 12px;
	overflow: hidden;
	background: #000;
}

body .post-body .video-embed iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

body .post-body .table-wrap {
	overflow-x: auto;
	margin: 18px 0;
}

body .post-body a {
	color: var(--blue);
	text-decoration: underline;
	overflow-wrap: anywhere;
}

body .post-nav {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 14px;
	align-items: stretch;
	margin-top: 22px;
}

body .post-nav a {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 14px 18px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 12px;
	text-decoration: none;
	color: var(--navy);
	font-weight: 700;
	line-height: 1.35;
}

body .post-nav a small { color: var(--blue); }
body .post-nav a:hover { border-color: var(--sky); }
body .post-nav__next { text-align: right; }
body .post-nav__all { justify-content: center; background: var(--navy); color: #fff !important; }

@media (max-width: 700px) {
	body .post-nav { grid-template-columns: 1fr; }
	body .post-nav__next { text-align: left; }
	body .blog-grid { grid-template-columns: 1fr; }
}
