/*
Theme Name: StructuralAid Modern
Theme URI: https://structuralaid.com
Author: StructuralAid, LLC
Description: Modernized legacy-feel theme for StructuralAid resources. Desktop-primary, mobile-first, accessible navigation and improved search UX.
Version: 1.0.0
Text Domain: structuralhelp-modern
*/
@font-face {
	font-family: "Merriweather Sans";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("assets/fonts/merriweather-sans/merriweather-sans-600.ttf") format("truetype");
}

@font-face {
	font-family: "Merriweather Sans";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("assets/fonts/merriweather-sans/merriweather-sans-700.ttf") format("truetype");
}

@font-face {
	font-family: "Merriweather Sans";
	font-style: normal;
	font-weight: 800;
	font-display: swap;
	src: url("assets/fonts/merriweather-sans/merriweather-sans-800.ttf") format("truetype");
}

:root {
	--sh-bg: #eef5fb;
	--sh-surface: #ffffff;
	--sh-surface-muted: #f6f9fc;
	--sh-text: #123f5c;
	--sh-text-strong: #052438;
	--sh-border: #d2ddea;
	--sh-primary: #1d4a91;
	--sh-primary-deep: #0c528a;
	--sh-accent: #fa921f;
	--sh-shadow: 0 10px 30px rgba(12, 43, 66, 0.08);
	--sh-radius: 12px;
	--sh-container: 1240px;
	--sh-content-max: 860px;
	--sh-content-inner-max: 820px;
	--sh-left-rail-max: 250px;
	--sh-layout-gap: 1.1rem;
	--sh-main-shell-max: calc(var(--sh-left-rail-max) + var(--sh-layout-gap) + var(--sh-content-max));
	--sh-header-offset: 72px;
	--sh-mobile-header-height: 64px;
	--sh-admin-offset: 0px;
}

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

html {
	font-size: 16px;
	overflow-y: scroll;
	scrollbar-gutter: stable;
}

body {
	margin: 0;
	display: flex;
	flex-direction: column;
	min-height: calc(100vh - var(--sh-admin-offset));
	min-height: calc(100dvh - var(--sh-admin-offset));
	font-family: "Cabin", "Segoe UI", Tahoma, sans-serif;
	line-height: 1.6;
	color: var(--sh-text);
	background: linear-gradient(180deg, #d8eafb 0%, var(--sh-bg) 140px, var(--sh-bg) 100%);
}

body.admin-bar {
	--sh-admin-offset: 32px;
}

@media (max-width: 782px) {
	body.admin-bar {
		--sh-admin-offset: 46px;
	}
}

a {
	color: var(--sh-primary);
	text-decoration: none;
}

a:hover,
a:focus-visible {
	color: var(--sh-primary-deep);
	text-decoration: underline;
}

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

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--sh-primary);
	color: #fff;
	padding: 0.65rem 1rem;
	border-radius: 0 0 6px 6px;
	z-index: 2000;
}

.skip-link:focus {
	left: 1rem;
}

.site-header {
	background: #123f65;
	border-bottom: 1px solid #356e99;
	box-shadow: 0 3px 12px rgba(10, 35, 55, 0.22);
	position: sticky;
	top: var(--sh-admin-offset);
	z-index: 1900;
}

.site-container {
	width: min(var(--sh-container), 100% - 1.75rem);
	margin-inline: auto;
}

.header-inner {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	justify-content: space-between;
	gap: 0.4rem;
	min-height: var(--sh-mobile-header-height);
	padding: 0.45rem 0;
}

.desktop-header-bar {
	display: none;
}

.mobile-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.2rem;
	justify-self: center;
	min-width: 0;
	color: #d8ebff;
	text-decoration: none;
}

.mobile-brand:hover,
.mobile-brand:focus-visible {
	color: #ffffff;
	text-decoration: none;
}

.mobile-brand-icon-wrap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 32px;
	border-radius: 0;
	background: transparent;
	border: 0;
	overflow: visible;
	flex: 0 0 auto;
}

.mobile-brand-icon {
	width: 28px;
	height: 32px;
	object-fit: contain;
}

.mobile-brand-name {
	font-family: "Merriweather Sans", "Segoe UI", Tahoma, sans-serif;
	font-size: clamp(1rem, 4.5vw, 1.5rem);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.menu-toggle {
	min-height: 44px;
	font: inherit;
	font-size: 0.875rem;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	border: 1px solid rgba(173, 220, 255, 0.42);
	background: rgba(255, 255, 255, 0.96);
	color: #052438;
	border-radius: 999px;
	padding: 0.45rem 0.55rem;
	font-weight: 600;
	flex: 0 0 auto;
	box-shadow: 0 1px 0 rgba(3, 23, 40, 0.12);
}

.mobile-search-toggle {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1px solid rgba(173, 220, 255, 0.42);
	border-radius: 50%;
	background: transparent;
	color: #d8ebff;
	cursor: pointer;
}

.mobile-search-toggle:focus-visible,
.menu-toggle:focus-visible {
	outline: 2px solid #ffd338;
	outline-offset: 3px;
}

.search-form {
	display: flex;
	gap: 0.45rem;
}

.search-field {
	width: 100%;
	border: 1px solid var(--sh-border);
	border-radius: 999px;
	padding: 0.56rem 0.85rem;
	font: inherit;
	background: #fff;
}

.search-submit {
	border: 1px solid var(--sh-primary);
	background: var(--sh-primary);
	color: #fff;
	border-radius: 999px;
	padding: 0.52rem 0.9rem;
	font-weight: 700;
	font: inherit;
}

.search-submit:hover,
.search-submit:focus-visible {
	background: var(--sh-primary-deep);
	border-color: var(--sh-primary-deep);
}

.desktop-nav,
.desktop-sidebar {
	display: none;
}

.site-shell {
	flex: 1 0 auto;
	padding-block: 0.75rem 2rem;
}

body.mobile-drawer-open {
	position: fixed;
	top: var(--sh-locked-scroll-top, 0px);
	left: 0;
	right: 0;
	overflow: hidden;
}

html.mobile-drawer-open {
	overflow: hidden;
	overscroll-behavior: none;
}

body.mobile-drawer-open .site-header {
	position: fixed;
	top: var(--sh-admin-offset);
	left: 0;
	right: 0;
	touch-action: none;
}

body.mobile-drawer-open .site-shell {
	margin-top: var(--sh-mobile-header-height);
}

.layout-grid {
	display: grid;
	gap: 1rem;
}

.layout-left-rail,
.layout-right-rail {
	min-width: 0;
}

.layout-left-rail {
	display: none;
	gap: 0.95rem;
	align-content: start;
}

.layout-right-rail {
	display: none;
}

.layout-main-column {
	min-width: 0;
	width: 100%;
	max-width: var(--sh-content-max);
	margin-inline: auto;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	position: relative;
	z-index: 1;
}

.desktop-brand {
	display: none;
}

.desktop-brand-icon-wrap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 0;
	background: transparent;
	border: 0;
	overflow: visible;
	flex: 0 0 auto;
}

.desktop-brand-icon {
	width: 44px;
	height: 44px;
	object-fit: contain;
}

.desktop-brand-name {
	font-family: "Merriweather Sans", "Segoe UI", Tahoma, sans-serif;
	font-size: clamp(1.68rem, 1vw + 1.1rem, 2.02rem);
	font-weight: 800;
	letter-spacing: 0.01em;
	line-height: 1.12;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: #d8ebff;
	text-shadow: 0 1px 0 rgba(3, 23, 40, 0.45);
}

.desktop-topbar {
	display: none;
	background: transparent;
	border: 0;
	border-radius: 0;
	padding: 0;
	box-shadow: none;
}

.left-rail-brand {
	display: none;
	border-radius: 0;
	overflow: visible;
	background: transparent;
	border: 0;
	padding: 0;
	box-shadow: none;
}

.left-rail-brand:hover,
.left-rail-brand:focus-visible {
	text-decoration: none;
}

.left-rail-brand img {
	width: 100%;
	height: auto;
	max-height: 156px;
	object-fit: contain;
}

.content-panel {
	background: var(--sh-surface);
	border: 1px solid var(--sh-border);
	border-radius: var(--sh-radius);
	padding: 1rem;
	box-shadow: var(--sh-shadow);
	min-width: 0;
	width: 100%;
	max-width: none;
	margin-inline: 0;
}

.entry-content {
	max-width: var(--sh-content-inner-max);
	margin-inline: auto;
}

.entry-content .alignwide,
.entry-content .alignfull {
	max-width: 100%;
}

.ad-widget-zone {
	background: #fff;
	border: 1px solid var(--sh-border);
	border-radius: var(--sh-radius);
	padding: 0.75rem;
	box-shadow: var(--sh-shadow);
}

.ad-widget-zone .widget {
	margin: 0 0 0.8rem;
}

.ad-widget-zone .widget:last-child {
	margin-bottom: 0;
}

.ad-widget-zone .widget-title {
	margin: 0 0 0.5rem;
	font-size: 0.92rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	color: #22455f;
}

.ad-widget-zone img,
.ad-widget-zone iframe,
.ad-widget-zone script,
.ad-widget-zone ins {
	max-width: 100%;
}

.ad-widget-zone-left {
	display: none;
}

.ad-widget-zone-right {
	min-height: 220px;
}

.ad-slot-inline {
	margin: 0 0 1rem;
}

.ad-slot-inline--mid {
	margin: 0.2rem 0;
}

.ad-slot-inline .ad-widget-zone {
	min-height: 170px;
}

.entry-title,
.archive-title,
.search-title,
.page-title {
	margin: 0 0 0.8rem;
	line-height: 1.25;
	color: var(--sh-text-strong);
}

.entry-content p,
.entry-content ul,
.entry-content ol {
	margin: 0 0 1rem;
}

.entry-content .contact-disclaimer {
	margin-top: 2.25rem;
	padding: 1rem 0.25rem 0;
	border-top: 1px solid var(--sh-border);
	font-size: 0.875rem;
	line-height: 1.5;
	color: #49677d;
}

.entry-content .contact-disclaimer p {
	margin-bottom: 0.7rem;
}

.entry-content .contact-disclaimer p:last-child {
	margin-bottom: 0;
}

.home-intro .entry-title {
	text-align: center;
}

.topic-section {
	max-width: var(--sh-content-inner-max);
	margin-top: 0.25rem;
	margin-inline: auto;
	margin-bottom: 0.15rem;
}

.topic-grid {
	display: grid;
	gap: 0.6rem;
	grid-template-columns: repeat(1, minmax(0, 1fr));
}

#home-topic-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	max-width: none;
	margin-inline: 0;
}

.home-topic-card {
	position: relative;
	aspect-ratio: 1 / 1;
	display: block;
	border: 1px solid var(--sh-border);
	border-radius: 6px;
	overflow: hidden;
	background: #1f5f94;
	color: inherit;
	box-shadow: var(--sh-shadow);
}

.home-topic-card:hover,
.home-topic-card:focus-visible {
	text-decoration: none;
	border-color: #96b6d6;
}

.home-topic-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity 280ms ease;
}

.home-topic-image.is-fading {
	opacity: 0.14;
}

.home-topic-card::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(5, 28, 45, 0) 52%, rgba(5, 28, 45, 0.75) 100%);
	pointer-events: none;
}

.home-topic-label {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	margin: 0;
	padding: 0.5rem 0.55rem;
	font-size: 0.86rem;
	font-weight: 700;
	line-height: 1.3;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #fff;
	z-index: 2;
}

@media (max-width: 767px) {
	.entry-content {
		font-size: 1rem;
		line-height: 1.65;
	}

	.home-intro .entry-title {
		font-size: clamp(1.5rem, 6vw, 2rem);
		line-height: 1.25;
	}

	.home-topic-label {
		font-size: clamp(0.75rem, 2.8vw, 0.9rem);
		letter-spacing: 0.01em;
	}

	.home-topic-card::after {
		background: linear-gradient(180deg, transparent 25%, rgba(5, 28, 45, 0.9) 100%);
	}
}

.content-list {
	display: grid;
	gap: 0.85rem;
}

.breadcrumbs {
	margin: 0 0 0.85rem;
	font-size: 0.88rem;
	color: #4a6d84;
}

.breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.breadcrumbs li {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.breadcrumbs li + li::before {
	content: "/";
	color: #7b98ad;
}

.breadcrumbs a {
	font-weight: 700;
}

.related-pages {
	margin-top: 1.25rem;
	padding-top: 1rem;
	border-top: 1px solid var(--sh-border);
}

.related-pages h2 {
	margin: 0 0 0.65rem;
	font-size: 1.15rem;
	color: var(--sh-text-strong);
}

.related-pages ul {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.related-pages a {
	display: block;
	border: 1px solid var(--sh-border);
	border-radius: 8px;
	background: #f8fbff;
	padding: 0.55rem 0.7rem;
	font-weight: 700;
}

.related-pages a:hover,
.related-pages a:focus-visible {
	background: #eef6fd;
	border-color: #a9c9e6;
	text-decoration: none;
}

.content-card {
	border: 1px solid var(--sh-border);
	border-radius: 10px;
	background: #fff;
	padding: 0.85rem 0.95rem;
}

.search-result-card {
	position: relative;
	transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.search-result-card:hover,
.search-result-card:focus-within {
	background: #f7fbff;
	border-color: #9fc2e3;
	box-shadow: 0 5px 18px rgba(12, 43, 66, 0.08);
}

.search-result-card h2 a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 10px;
	z-index: 1;
}

.content-card h2,
.content-card h3 {
	margin: 0 0 0.3rem;
	font-size: 1.14rem;
}

.content-meta {
	margin: 0 0 0.5rem;
	font-size: 0.85rem;
	color: #486a82;
}

.content-excerpt {
	margin: 0;
}

.search-summary {
	margin: -0.1rem 0 0.85rem;
	color: #315d78;
	font-size: 0.95rem;
}

.search-summary p {
	margin: 0.15rem 0;
}

.search-highlight {
	background: #fff1df;
	color: #6a3500;
	padding: 0 0.1rem;
	border-radius: 3px;
}

.search-empty {
	border: 1px dashed var(--sh-border);
	background: var(--sh-surface-muted);
	padding: 1rem;
	border-radius: 10px;
}

.search-suggestions {
	margin-top: 0.9rem;
}

.search-suggestions p {
	margin: 0 0 0.4rem;
	font-weight: 700;
	color: var(--sh-text-strong);
}

.search-suggestions ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.search-suggestions a {
	display: inline-block;
	border: 1px solid var(--sh-border);
	border-radius: 999px;
	background: #fff;
	padding: 0.28rem 0.68rem;
	font-weight: 700;
}

.pagination-wrap {
	margin-top: 1rem;
}

.pagination-wrap .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
}

.pagination-wrap ul.page-numbers {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.45rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.pagination-wrap ul.page-numbers li {
	list-style: none;
	margin: 0;
	padding: 0;
}

.pagination-wrap a.page-numbers,
.pagination-wrap span.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.2rem;
	border: 1px solid var(--sh-border);
	background: #fff;
	padding: 0.35rem 0.65rem;
	border-radius: 999px;
	line-height: 1;
	text-decoration: none;
}

.pagination-wrap span.page-numbers.current {
	background: var(--sh-primary);
	color: #fff;
	border-color: var(--sh-primary);
}

.site-footer {
	border-top: 1px solid var(--sh-border);
	background: #f4f9fe;
	color: #214e6b;
}

.footer-inner {
	padding: 1rem 0 2rem;
	font-size: 0.9rem;
}

.footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 0.9rem;
	margin-top: 0.35rem;
}

.footer-links a {
	color: #1d4a91;
	font-weight: 600;
}

.mobile-drawer {
	touch-action: none;
	position: fixed;
	inset: calc(var(--sh-admin-offset) + var(--sh-mobile-header-height)) 0 0 0;
	background: rgba(8, 38, 57, 0.22);
	z-index: 1500;
	display: grid;
	grid-template-columns: minmax(280px, min(92vw, 430px)) 1fr;
}

.mobile-drawer[hidden] {
	display: none;
}

.mobile-drawer-panel {
	overscroll-behavior-y: contain;
	touch-action: pan-y;
	-webkit-overflow-scrolling: touch;
	background: #f8fbff;
	padding: 1rem;
	overflow-y: auto;
	box-shadow: 14px 0 30px rgba(0, 0, 0, 0.18);
}

.drawer-section-title {
	font-size: 0.9rem;
	font-weight: 700;
	margin: 0.85rem 0 0.45rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #4f6a7f;
}

.mobile-drawer .menu,
.mobile-drawer .sub-menu {
	list-style: none;
	padding: 0;
	margin: 0;
}

.mobile-drawer .menu > li,
.mobile-drawer .sub-menu > li {
	border-bottom: 1px solid #dfe8f2;
}

.mobile-drawer .menu-item-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.4rem;
}

.mobile-drawer .menu a {
	display: block;
	padding: 0.62rem 0.2rem;
	font-weight: 600;
	color: #16384f;
}

.mobile-drawer .current-menu-item > .menu-item-row > a,
.mobile-drawer .current-menu-ancestor > .menu-item-row > a,
.mobile-drawer .current-menu-parent > .menu-item-row > a,
.mobile-drawer .current_page_item > .menu-item-row > a,
.mobile-drawer .current_page_ancestor > .menu-item-row > a,
.mobile-drawer .current_page_parent > .menu-item-row > a,
.mobile-drawer .current-menu-item > a,
.mobile-drawer .current-menu-ancestor > a,
.mobile-drawer .current-menu-parent > a,
.mobile-drawer .current_page_item > a,
.mobile-drawer .current_page_ancestor > a,
.mobile-drawer .current_page_parent > a {
	color: #0d4f82;
	font-weight: 800;
}

.submenu-toggle {
	min-width: 46px;
	min-height: 34px;
	flex-shrink: 0;
	border: 1px solid #cad8e7;
	background: #fff;
	border-radius: 6px;
	padding: 0.2rem 0.65rem;
	font-size: 1rem;
}

.mobile-drawer .sub-menu {
	padding-left: 0.65rem;
	max-height: 0;
	overflow: hidden;
	transition: max-height 220ms ease;
}

.mobile-drawer .menu-item-expanded > .sub-menu {
	max-height: 900px;
}

.mobile-drawer-search {
	margin-top: 0.9rem;
}

.desktop-topbar-nav .menu,
.desktop-topbar-nav .sub-menu,
.desktop-sidebar .menu,
.desktop-sidebar .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.desktop-topbar-nav .menu {
	display: flex;
	flex-wrap: wrap;
	gap: 0.2rem;
	margin-left: 0.7rem;
}

.desktop-topbar-nav .menu > li {
	position: relative;
}

.desktop-topbar-nav .menu > li > a {
	display: block;
	padding: 0.48rem 0.62rem;
	border-radius: 7px;
	font-weight: 700;
	color: #f2f7ff;
}

.desktop-topbar {
	align-items: center;
	gap: 0.52rem;
	padding-right: clamp(1.5rem, 3vw, 4.5rem);
}

.desktop-topbar-nav {
	flex: 1 1 auto;
	min-width: 0;
}

.desktop-topbar-search {
	flex: 0 0 min(100%, 300px);
	max-width: 300px;
}

.desktop-topbar-search .search-form {
	gap: 0.35rem;
}

.desktop-topbar-search .search-field {
	padding: 0.45rem 0.72rem;
}

.desktop-topbar-nav .menu > li > a:hover,
.desktop-topbar-nav .menu > li > a:focus-visible,
.desktop-topbar-nav .menu > .current-menu-item > a {
	background: rgba(255, 255, 255, 0.12);
	text-decoration: none;
}

.desktop-topbar-nav .sub-menu,
.desktop-sidebar .sub-menu {
	position: absolute;
	left: 0;
	top: calc(100% + 0.2rem);
	background: #fff;
	border: 1px solid var(--sh-border);
	border-radius: 10px;
	box-shadow: var(--sh-shadow);
	min-width: 230px;
	display: none;
	z-index: 2600;
}

.desktop-topbar-nav .sub-menu a,
.desktop-sidebar .sub-menu a {
	display: block;
	padding: 0.52rem 0.7rem;
	color: #143b56;
	font-weight: 600;
	border-radius: 7px;
}

.desktop-topbar-nav li:hover > .sub-menu,
.desktop-topbar-nav li:focus-within > .sub-menu,
.desktop-sidebar li:hover > .sub-menu,
.desktop-sidebar li:focus-within > .sub-menu {
	display: block;
}

.desktop-topbar-nav .sub-menu li,
.desktop-sidebar .sub-menu li {
	position: relative;
}

.desktop-topbar-nav .sub-menu .sub-menu,
.desktop-sidebar .sub-menu .sub-menu {
	left: 100%;
	top: 0;
}

.desktop-sidebar {
	background: transparent;
	border: 0;
	border-radius: 0;
	padding: 0;
	box-shadow: none;
	position: static;
	top: auto;
	height: auto;
}

.desktop-sidebar .menu {
	display: grid;
	gap: 0.6rem;
}

.desktop-sidebar .menu > li > a {
	display: block;
	padding: 0.68rem 0.8rem;
	color: #f2f8ff;
	font-weight: 700;
	border-radius: 6px;
	border: 1px solid rgba(157, 211, 255, 0.35);
	background: #1d5f96;
}

.desktop-sidebar .menu > li > a:hover,
.desktop-sidebar .menu > li > a:focus-visible,
.desktop-sidebar .menu > li:hover > a,
.desktop-sidebar .menu > li:focus-within > a {
	background: #2b70ab;
	text-decoration: none;
}

.desktop-sidebar .menu > li.current-menu-item > a,
.desktop-sidebar .menu > li.current-menu-ancestor > a,
.desktop-sidebar .menu > li.current-menu-parent > a,
.desktop-sidebar .menu > li.current_page_item > a,
.desktop-sidebar .menu > li.current_page_ancestor > a,
.desktop-sidebar .menu > li.current_page_parent > a {
	background: linear-gradient(180deg, #3a83bc 0%, #2d73ad 100%);
	border-color: rgba(216, 235, 255, 0.78);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.22),
		0 0 0 1px rgba(255, 255, 255, 0.08),
		0 6px 16px rgba(3, 26, 45, 0.22);
	color: #ffffff;
	text-decoration: none;
}

.desktop-sidebar .menu > li {
	position: relative;
}

.desktop-sidebar .menu > li:hover,
.desktop-sidebar .menu > li:focus-within {
	z-index: 2700;
}

.desktop-sidebar .sub-menu {
	left: 100%;
	top: 0;
	z-index: 2701;
}

.desktop-sidebar .sub-menu li:hover > a,
.desktop-sidebar .sub-menu li:focus-within > a {
	background: #e7f0f8;
	color: #082f49;
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.18em;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

@media (min-width: 768px) {
	#home-topic-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.home-topic-card {
		aspect-ratio: 3 / 2;
	}
}

@media (min-width: 1024px) {
	.site-header {
		display: block;
		position: fixed;
		left: 0;
		right: 0;
		top: var(--sh-admin-offset);
		width: 100%;
		background: #123f65;
		border-bottom: 1px solid #356e99;
		box-shadow: 0 4px 14px rgba(10, 35, 55, 0.24);
		z-index: 1800;
	}

	.header-inner {
		display: none;
	}

	.desktop-header-bar {
		display: flex;
		align-items: center;
		gap: 0.8rem;
		min-height: var(--sh-header-offset);
		padding: 0.48rem 0;
	}

	.desktop-brand {
		display: inline-flex;
		align-items: center;
		gap: 0.5rem;
		flex: 0 0 auto;
		max-width: min(38vw, 460px);
		min-width: 0;
	}

	.desktop-brand:hover,
	.desktop-brand:focus-visible {
		text-decoration: none;
	}

	.desktop-topbar {
		display: flex;
		flex: 1 1 auto;
		min-width: 0;
		justify-content: space-between;
	}

	.site-shell {
		padding-top: calc(var(--sh-header-offset) + 0.55rem);
	}

	.layout-grid {
		grid-template-columns: minmax(220px, 250px) minmax(0, 1fr);
		align-items: start;
		gap: 1.1rem;
	}

	.layout-grid.layout-grid-no-left {
		grid-template-columns: minmax(0, 1fr);
	}

	.layout-left-rail {
		display: grid;
		position: sticky;
		top: calc(var(--sh-admin-offset) + var(--sh-header-offset) + 0.6rem);
		height: fit-content;
		padding: 0.8rem;
		border-radius: 12px;
		border: 1px solid #23587f;
		background: #145180;
		box-shadow: var(--sh-shadow);
		z-index: 1400;
		overflow: visible;
	}

	.left-rail-brand {
		display: block;
	}

	.layout-main-column {
		gap: 0;
	}

	.desktop-sidebar {
		display: block;
	}

	.content-panel {
		padding: 1.1rem 1.25rem;
	}

	#home-topic-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 0.55rem;
	}

	.home-topic-card {
		aspect-ratio: 3 / 2;
	}
}

@media (min-width: 1280px) {
	.desktop-header-bar {
		padding-left: 1.5rem;
	}

	.layout-grid {
		grid-template-columns: minmax(220px, 250px) minmax(0, var(--sh-content-max)) minmax(240px, 285px);
		justify-content: center;
	}

	.layout-grid.layout-grid-no-left {
		grid-template-columns: minmax(0, var(--sh-content-max)) minmax(240px, 285px);
	}

	.layout-grid.layout-grid-no-right {
		grid-template-columns: minmax(220px, 250px) minmax(0, var(--sh-content-max));
	}

	.layout-grid.layout-grid-no-left.layout-grid-no-right {
		grid-template-columns: minmax(0, var(--sh-content-max));
	}

	.layout-right-rail {
		display: block;
		position: sticky;
		top: calc(var(--sh-admin-offset) + var(--sh-header-offset) + 0.6rem);
		height: fit-content;
	}

	.ad-widget-zone-left {
		display: block;
	}

	.ad-slot-inline {
		display: none;
	}

	#home-topic-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.content-panel {
		padding: 1.2rem 1.35rem;
	}
}

@media print {
	@page {
		margin: 0.7in;
	}

	*,
	*::before,
	*::after {
		box-shadow: none !important;
		text-shadow: none !important;
	}

	html {
		font-size: 11pt;
	}

	body {
		color: #000;
		background: #fff !important;
		line-height: 1.45;
	}

	a {
		color: #000;
		text-decoration: underline;
	}

	.site-header,
	.mobile-drawer,
	.skip-link,
	.layout-left-rail,
	.layout-right-rail,
	.site-footer,
	.topic-section,
	.breadcrumbs,
	.related-pages,
	.search-form,
	.ad-slot-inline,
	.ad-widget-zone,
	.pagination-wrap,
	#wpadminbar {
		display: none !important;
	}

	.site-shell,
	.content-panel,
	.layout-main-column,
	.layout-grid,
	.site-container {
		display: block !important;
		width: auto !important;
		max-width: none !important;
		margin: 0 !important;
		padding: 0 !important;
		border: 0 !important;
		background: transparent !important;
	}

	.entry-title,
	.search-title,
	.archive-title {
		margin: 0 0 0.25in;
		color: #000;
		font-size: 22pt;
		line-height: 1.18;
		page-break-after: avoid;
	}

	.entry-content,
	.content-list,
	.content-card {
		color: #000;
		border: 0 !important;
		background: transparent !important;
		padding: 0 !important;
	}

	.entry-content p,
	.entry-content ul,
	.entry-content ol,
	.entry-content table,
	.content-excerpt {
		page-break-inside: avoid;
	}

	img {
		max-width: 100% !important;
		page-break-inside: avoid;
	}

	h2,
	h3,
	h4 {
		color: #000;
		page-break-after: avoid;
	}
}
