/*
Theme Name: BSP
Description: A private, lightweight WordPress theme for Best Social Plan.
Author: Private/Custom
Version: 0.3.4
Requires at least: 7.1
Requires PHP: 8.3
Text Domain: bsp
License: Private
*/

:root {
	--bsp-color-background: #f4f4f2;
	--bsp-color-surface: #ffffff;
	--bsp-color-surface-soft: #eef1f2;
	--bsp-color-text: #30383d;
	--bsp-color-heading: #20282d;
	--bsp-color-muted: #667178;
	--bsp-color-border: #d8dddf;
	--bsp-color-border-strong: #c3cace;
	--bsp-color-accent: #2f6f91;
	--bsp-color-accent-hover: #22546f;
	--bsp-color-toolbar: #263740;
	--bsp-color-toolbar-text: #e5ecef;
	--bsp-color-header: #ffffff;
	--bsp-color-header-text: #20282d;
	--bsp-color-navigation: #38444b;
	--bsp-color-footer: #24343d;
	--bsp-color-footer-bottom: #19272e;
	--bsp-color-footer-text: #d3dcdf;
	--bsp-color-page-title: #f4f4f2;
	--bsp-color-page-title-text: #20282d;
	--bsp-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--bsp-font-heading: Georgia, "Times New Roman", serif;
	--bsp-base-font-size: 16px;
	--bsp-h1-min: 2rem;
	--bsp-h1-max: 2.875rem;
	--bsp-h2-min: 1.625rem;
	--bsp-h2-max: 2.25rem;
	--bsp-h3-min: 1.35rem;
	--bsp-h3-max: 1.75rem;
	--bsp-site-width: 61.25rem;
	--bsp-reading-width: 46.25rem;
	--bsp-narrow-width: 40rem;
	--bsp-logo-max-width: 240px;
	--bsp-logo-max-height: 76px;
	--bsp-header-spacing: 30px;
	--bsp-page-title-spacing: 18px;
	--bsp-content-spacing-top: 45px;
	--bsp-content-spacing-bottom: 72px;
	--bsp-radius-small: 0.1875rem;
	--bsp-radius: 0.375rem;
	--bsp-shadow-header: 0 0.25rem 1rem rgb(20 34 42 / 8%);
	--bsp-shadow-menu: 0 0.75rem 1.75rem rgb(20 34 42 / 16%);
	--bsp-space-1: 0.375rem;
	--bsp-space-2: 0.75rem;
	--bsp-space-3: 1.125rem;
	--bsp-space-4: 1.5rem;
	--bsp-space-5: 2.25rem;
	--bsp-space-6: 3rem;
	--bsp-admin-bar-offset: 0px;
}

.admin-bar {
	--bsp-admin-bar-offset: 46px;
}

@media (max-width: 37.5rem) {
	.admin-bar {
		--bsp-admin-bar-offset: 0px;
	}
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--bsp-color-background);
	color: var(--bsp-color-text);
	font-family: var(--bsp-font-sans);
	font-size: var(--bsp-base-font-size);
	line-height: 1.7;
	text-rendering: optimizeLegibility;
}

body,
button,
input,
select,
textarea {
	font-family: var(--bsp-font-sans);
}

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

figure {
	margin-inline: 0;
}

iframe,
object,
embed {
	max-width: 100%;
}

a {
	color: var(--bsp-color-accent);
	text-decoration-thickness: 0.0625em;
	text-underline-offset: 0.16em;
}

a:hover {
	color: var(--bsp-color-accent-hover);
}

:where(a, button, input, select, textarea):focus-visible {
	outline: 0.1875rem solid var(--bsp-color-accent);
	outline-offset: 0.1875rem;
}

button,
input,
select,
textarea {
	max-width: 100%;
	font-size: 1rem;
}

button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	min-height: 2.75rem;
	border: 0.0625rem solid var(--bsp-color-accent);
	border-radius: var(--bsp-radius-small);
	background: var(--bsp-color-accent);
	color: #ffffff;
	cursor: pointer;
	font-weight: 700;
	line-height: 1.25;
	padding: 0.7rem 1rem;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
	background: var(--bsp-color-accent-hover);
	border-color: var(--bsp-color-accent-hover);
}

input[type="email"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="text"],
input[type="url"],
select,
textarea {
	width: 100%;
	border: 0.0625rem solid var(--bsp-color-border-strong);
	border-radius: var(--bsp-radius-small);
	background: var(--bsp-color-surface);
	color: var(--bsp-color-text);
	padding: 0.65rem 0.75rem;
}

textarea {
	min-height: 8rem;
	resize: vertical;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--bsp-color-heading);
	font-family: var(--bsp-font-heading);
	font-weight: 600;
	line-height: 1.22;
	text-wrap: balance;
}

h1 {
	font-size: clamp(var(--bsp-h1-min), 5vw, var(--bsp-h1-max));
}

h2 {
	font-size: clamp(var(--bsp-h2-min), 4vw, var(--bsp-h2-max));
}

h3 {
	font-size: clamp(var(--bsp-h3-min), 3vw, var(--bsp-h3-max));
}

h4 {
	font-size: 1.25rem;
}

p,
li {
	text-wrap: pretty;
}

hr {
	border: 0;
	border-top: 0.0625rem solid var(--bsp-color-border);
	margin-block: var(--bsp-space-5);
}

blockquote {
	margin: var(--bsp-space-4) 0;
	border-left: 0.25rem solid var(--bsp-color-accent);
	padding: 0.25rem 0 0.25rem var(--bsp-space-4);
	color: var(--bsp-color-muted);
	font-family: var(--bsp-font-heading);
	font-size: 1.125rem;
}

pre,
code,
kbd,
samp {
	font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

pre {
	max-width: 100%;
	overflow: auto;
	border: 0.0625rem solid var(--bsp-color-border);
	border-radius: var(--bsp-radius);
	background: var(--bsp-color-surface-soft);
	padding: var(--bsp-space-3);
}

table {
	width: 100%;
	border-collapse: collapse;
	font-variant-numeric: tabular-nums;
}

th,
td {
	border: 0.0625rem solid var(--bsp-color-border);
	padding: 0.65rem;
	text-align: left;
	vertical-align: top;
}

th {
	background: var(--bsp-color-surface-soft);
}

.screen-reader-text {
	position: absolute;
	width: 0.0625rem;
	height: 0.0625rem;
	margin: -0.0625rem;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	border: 0;
	white-space: nowrap;
}

.screen-reader-text:focus {
	top: var(--bsp-space-3);
	left: var(--bsp-space-3);
	z-index: 100000;
	width: auto;
	height: auto;
	margin: 0;
	padding: 0.75rem 1rem;
	overflow: visible;
	clip: auto;
	clip-path: none;
	background: var(--bsp-color-surface);
	color: var(--bsp-color-text);
	font-weight: 700;
	white-space: normal;
}

.site {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	overflow-wrap: break-word;
}

.site-header {
	z-index: 1000;
	width: 100%;
	background: var(--bsp-color-header);
	box-shadow: var(--bsp-shadow-header);
}

.site-header--sticky {
	position: sticky;
	top: var(--bsp-admin-bar-offset);
}

.site-toolbar {
	background: var(--bsp-color-toolbar);
	color: var(--bsp-color-toolbar-text);
	font-size: 0.75rem;
	line-height: 1.4;
}

.site-toolbar__inner,
.site-header__inner,
.site-footer__inner {
	width: min(100% - 2rem, var(--bsp-site-width));
	margin-inline: auto;
}

.site-toolbar__inner {
	min-height: 1.875rem;
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

.toolbar-menu,
.primary-menu,
.primary-menu .sub-menu,
.primary-menu .children,
.footer-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.toolbar-menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0.25rem 0.75rem;
}

.toolbar-menu a {
	display: block;
	min-height: 1.875rem;
	padding-block: 0.38rem;
	color: var(--bsp-color-toolbar-text);
	text-decoration: none;
}

.toolbar-menu a:hover,
.toolbar-menu a:focus-visible {
	color: #ffffff;
	text-decoration: underline;
}

.site-header__main {
	border-bottom: 0.0625rem solid var(--bsp-color-border);
	background: var(--bsp-color-header);
}

.site-header__inner {
	display: grid;
	gap: var(--bsp-space-3);
	padding-block: 1rem;
}

.site-branding {
	display: flex;
	align-items: center;
	min-width: 0;
}

.custom-logo-link {
	display: inline-block;
	flex: 0 0 auto;
}

.custom-logo {
	width: auto;
	max-width: var(--bsp-logo-max-width);
	max-height: var(--bsp-logo-max-height);
}

.site-branding__text {
	min-width: 0;
}

.site-title {
	margin: 0;
	font-family: var(--bsp-font-sans);
	font-size: clamp(1.5rem, 5vw, 2rem);
	font-weight: 750;
	letter-spacing: -0.025em;
	line-height: 1.1;
}

.site-title a {
	color: var(--bsp-color-header-text);
	text-decoration: none;
}

.site-description {
	margin: 0.35rem 0 0;
	color: var(--bsp-color-muted);
	font-size: 0.875rem;
	line-height: 1.4;
}

.primary-navigation {
	min-width: 0;
}

.primary-navigation__toggle {
	display: inline-flex;
	min-width: 5.5rem;
	align-items: center;
	justify-content: center;
}

.primary-navigation__panel {
	margin-top: var(--bsp-space-2);
	border-top: 0.0625rem solid var(--bsp-color-border);
	max-height: min(70vh, 32rem);
	overflow-y: auto;
}

.primary-navigation__panel[hidden],
.primary-navigation .sub-menu[hidden] {
	display: none;
}

.primary-navigation:not(.is-enhanced):focus-within .primary-navigation__panel[hidden],
.primary-navigation:not(.is-enhanced):focus-within .sub-menu[hidden] {
	display: block;
}

.primary-menu {
	display: grid;
}

.primary-menu li,
.primary-menu .page_item {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 2.75rem;
	border-bottom: 0.0625rem solid var(--bsp-color-border);
}

.primary-menu li:last-child {
	border-bottom: 0;
}

.primary-menu a {
	display: flex;
	min-height: 2.75rem;
	align-items: center;
	padding: 0.55rem 0.25rem;
	color: var(--bsp-color-navigation);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.025em;
	text-decoration: none;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a,
.primary-menu .current-menu-ancestor > a,
.primary-menu .current_page_item > a,
.primary-menu .current_page_ancestor > a {
	color: var(--bsp-color-accent);
}

.submenu-toggle {
	width: 2.75rem;
	min-width: 2.75rem;
	min-height: 2.75rem;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--bsp-color-navigation);
	padding: 0;
}

.submenu-toggle:hover {
	border: 0;
	background: var(--bsp-color-surface-soft);
	color: var(--bsp-color-accent);
}

.submenu-toggle__icon {
	display: inline-block;
	width: 0.55rem;
	height: 0.55rem;
	border-right: 0.125rem solid currentcolor;
	border-bottom: 0.125rem solid currentcolor;
	transform: translateY(-0.15rem) rotate(45deg);
}

.submenu-toggle[aria-expanded="true"] .submenu-toggle__icon {
	transform: translateY(0.15rem) rotate(225deg);
}

.primary-menu .sub-menu,
.primary-menu .children {
	grid-column: 1 / -1;
	background: var(--bsp-color-surface-soft);
}

.primary-menu .sub-menu li,
.primary-menu .children li {
	padding-left: var(--bsp-space-3);
}

.primary-menu .sub-menu a,
.primary-menu .children a {
	color: var(--bsp-color-text);
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0;
}

.primary-menu .sub-menu .submenu-toggle,
.primary-menu .children .submenu-toggle {
	color: var(--bsp-color-text);
}

.primary-menu .sub-menu .submenu-toggle:hover,
.primary-menu .sub-menu .submenu-toggle:focus-visible,
.primary-menu .children .submenu-toggle:hover,
.primary-menu .children .submenu-toggle:focus-visible {
	color: var(--bsp-color-accent);
}

.site-main {
	width: min(100% - 2rem, var(--bsp-site-width));
	margin-inline: auto;
	padding-block: clamp(min(2.25rem, var(--bsp-content-spacing-top)), 6vw, var(--bsp-content-spacing-top)) clamp(min(3rem, var(--bsp-content-spacing-bottom)), 8vw, var(--bsp-content-spacing-bottom));
	flex: 1 0 auto;
}

.site-main--page,
.site-main--single,
.site-main--utility {
	max-width: var(--bsp-reading-width);
}

.page-header {
	margin-bottom: clamp(2rem, 5vw, 2.8125rem);
	border-bottom: 0.0625rem solid var(--bsp-color-border);
	background: var(--bsp-color-page-title);
	padding-bottom: var(--bsp-page-title-spacing);
}

.page-title {
	margin: 0;
	color: var(--bsp-color-page-title-text);
}

.entry-header.page-header {
	margin-bottom: clamp(2rem, 5vw, 2.8125rem);
}

.bsp-page-title-bar-disabled .page-header {
	border-bottom-color: transparent;
	background: transparent;
	padding-bottom: 0;
}

.bsp-page-title-text-hidden .page-header .page-title {
	position: absolute;
	width: 0.0625rem;
	height: 0.0625rem;
	margin: -0.0625rem;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	border: 0;
	white-space: nowrap;
}

.archive-description {
	max-width: var(--bsp-reading-width);
	margin-top: var(--bsp-space-2);
	color: var(--bsp-color-muted);
}

.archive-description > :last-child {
	margin-bottom: 0;
}

.bsp-breadcrumbs {
	margin-top: var(--bsp-space-2);
	font-size: 0.8125rem;
}

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

.bsp-breadcrumbs li + li::before {
	content: "/";
	margin-right: 0.55rem;
	color: var(--bsp-color-muted);
}

.bsp-breadcrumbs [aria-current="page"] {
	color: var(--bsp-color-muted);
}

.posts-list {
	max-width: var(--bsp-reading-width);
}

.hentry {
	margin-bottom: var(--bsp-space-6);
}

.posts-list .hentry {
	border-bottom: 0.0625rem solid var(--bsp-color-border);
	padding-bottom: var(--bsp-space-6);
}

.posts-list .hentry:last-child {
	margin-bottom: var(--bsp-space-5);
}

.entry-header,
.entry-content,
.entry-summary,
.entry-footer {
	margin-bottom: var(--bsp-space-3);
}

.entry-title {
	margin: 0 0 var(--bsp-space-1);
	font-size: clamp(1.8rem, 5vw, 2.625rem);
}

.posts-list .entry-title {
	font-size: clamp(1.65rem, 4vw, 2.125rem);
}

.entry-title a {
	color: var(--bsp-color-heading);
	text-decoration: none;
}

.entry-title a:hover {
	color: var(--bsp-color-accent);
}

.entry-meta,
.entry-footer {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 0.75rem;
	color: var(--bsp-color-muted);
	font-size: 0.8125rem;
	line-height: 1.5;
}

.entry-meta a,
.entry-footer a {
	color: inherit;
}

.entry-meta a:hover,
.entry-footer a:hover {
	color: var(--bsp-color-accent);
}

.entry-meta > * + *::before {
	content: "•";
	margin-right: 0.75rem;
	color: var(--bsp-color-border-strong);
}

.entry-footer {
	border-top: 0.0625rem solid var(--bsp-color-border);
	padding-top: var(--bsp-space-2);
}

.entry-footer__label {
	color: var(--bsp-color-text);
	font-weight: 700;
}

.entry-image-link,
.entry-image {
	margin-bottom: var(--bsp-space-4);
}

.entry-image-link {
	display: block;
}

.entry-image-link .entry-image {
	margin-bottom: 0;
}

.entry-image {
	width: 100%;
	border: 0.0625rem solid var(--bsp-color-border);
	border-radius: var(--bsp-radius);
	background: var(--bsp-color-surface-soft);
}

.entry-content,
.entry-summary {
	font-size: 1rem;
}

.site-main--single .entry-content {
	font-size: clamp(1rem, 1.5vw, 1.0625rem);
}

.entry-content > :first-child,
.entry-summary > :first-child {
	margin-top: 0;
}

.entry-content > :last-child,
.entry-summary > :last-child {
	margin-bottom: 0;
}

.entry-content::after {
	display: table;
	clear: both;
	content: "";
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.4rem;
}

.entry-content li + li {
	margin-top: 0.3rem;
}

.entry-more {
	margin-top: var(--bsp-space-3);
}

.entry-more a {
	display: inline-flex;
	min-height: 2.75rem;
	align-items: center;
	border: 0.0625rem solid var(--bsp-color-border-strong);
	border-radius: var(--bsp-radius-small);
	padding: 0.55rem 0.85rem;
	background: var(--bsp-color-surface);
	font-size: 0.875rem;
	font-weight: 700;
	text-decoration: none;
}

.entry-more a:hover {
	border-color: var(--bsp-color-accent);
	background: var(--bsp-color-surface-soft);
}

.page-links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--bsp-space-1);
	margin-top: var(--bsp-space-4);
	font-weight: 700;
}

.wp-caption,
.gallery,
.wp-block-image {
	max-width: 100%;
}

.wp-caption-text,
.gallery-caption,
figcaption {
	margin-top: 0.4rem;
	color: var(--bsp-color-muted);
	font-size: 0.8125rem;
	line-height: 1.5;
}

.navigation.pagination,
.post-navigation,
.comments-area {
	margin-top: var(--bsp-space-5);
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--bsp-space-2);
}

.page-numbers {
	display: inline-flex;
	min-width: 2.75rem;
	min-height: 2.75rem;
	align-items: center;
	justify-content: center;
	border: 0.0625rem solid var(--bsp-color-border-strong);
	border-radius: var(--bsp-radius-small);
	background: var(--bsp-color-surface);
	padding: 0.35rem 0.7rem;
	text-decoration: none;
}

.page-numbers:hover,
.page-numbers.current {
	border-color: var(--bsp-color-accent);
	background: var(--bsp-color-surface-soft);
}

.page-numbers.current {
	font-weight: 700;
}

.post-navigation .nav-links {
	display: grid;
	grid-template-columns: 1fr;
	border-top: 0.0625rem solid var(--bsp-color-border);
	padding-top: var(--bsp-space-4);
}

.post-navigation a {
	display: block;
	font-family: var(--bsp-font-heading);
	font-size: 1.0625rem;
	font-weight: 600;
}

.comments-area {
	border-top: 0.0625rem solid var(--bsp-color-border);
	padding-top: var(--bsp-space-4);
}

.comments-title,
.comment-reply-title {
	font-size: 1.5rem;
}

.comment-list {
	margin: 0;
	padding-left: var(--bsp-space-4);
}

.comment-list .children {
	padding-left: var(--bsp-space-4);
}

.comment-body {
	margin-bottom: var(--bsp-space-4);
	border-bottom: 0.0625rem solid var(--bsp-color-border);
	padding-bottom: var(--bsp-space-4);
}

.comment-meta {
	font-size: 0.8125rem;
}

.comment-form p {
	margin-bottom: var(--bsp-space-3);
}

.comment-form label {
	display: block;
	margin-bottom: 0.25rem;
	font-weight: 700;
}

.search-form {
	display: grid;
	gap: var(--bsp-space-2);
	align-items: end;
}

.search-form__field {
	min-width: 0;
}

.search-form label {
	display: block;
	margin-bottom: 0.25rem;
	font-weight: 700;
}

.site-main--utility {
	text-align: center;
}

.site-main--utility .search-form {
	max-width: 32rem;
	margin-inline: auto;
	text-align: left;
}

.site-footer {
	flex: 0 0 auto;
	background: var(--bsp-color-footer);
	color: var(--bsp-color-footer-text);
}

.site-footer__main {
	border-top: 0.25rem solid rgb(255 255 255 / 10%);
}

.site-footer__inner--main {
	display: grid;
	gap: var(--bsp-space-5);
	padding-block: clamp(2.5rem, 7vw, 4.375rem);
}

.footer-branding__name {
	color: #ffffff;
	font-family: var(--bsp-font-heading);
	font-size: 1.5rem;
	font-weight: 600;
	text-decoration: none;
}

.footer-branding__description {
	max-width: 32rem;
	margin: 0.5rem 0 0;
	color: var(--bsp-color-footer-text);
	font-size: 0.875rem;
}

.footer-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem var(--bsp-space-3);
}

.footer-menu a {
	display: inline-flex;
	min-height: 2.75rem;
	align-items: center;
	color: var(--bsp-color-footer-text);
	font-size: 0.875rem;
	text-decoration: none;
}

.footer-menu a:hover,
.footer-menu .current-menu-item > a {
	color: #ffffff;
	text-decoration: underline;
}

.site-footer__bottom {
	background: var(--bsp-color-footer-bottom);
}

.site-footer__inner--bottom {
	display: flex;
	flex-wrap: wrap;
	gap: var(--bsp-space-2) var(--bsp-space-4);
	align-items: center;
	justify-content: space-between;
	padding-block: var(--bsp-space-3);
	font-size: 0.75rem;
}

.site-info {
	margin: 0;
}

.back-to-top {
	color: var(--bsp-color-footer-text);
}

.bsp-header-no-shadow .site-header {
	box-shadow: none;
}

.bsp-menu-normal-case .primary-menu > li > a,
.bsp-menu-normal-case .primary-menu > .page_item > a {
	letter-spacing: 0.025em;
	text-transform: none;
}

.bsp-content-separators-disabled .page-header,
.bsp-content-separators-disabled .posts-list .hentry,
.bsp-content-separators-disabled .entry-footer,
.bsp-content-separators-disabled .post-navigation .nav-links,
.bsp-content-separators-disabled .comments-area,
.bsp-content-separators-disabled .comment-body {
	border-color: transparent;
}

@media (max-width: 47.999rem) {
	.bsp-compact-mobile-header .site-header__inner {
		gap: var(--bsp-space-2);
		padding-block: 0.65rem;
	}

	.bsp-compact-mobile-header .custom-logo {
		max-height: min(var(--bsp-logo-max-height), 3.5rem);
	}
}

.alignwide {
	width: min(var(--bsp-site-width), calc(100vw - 2rem));
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}

.alignfull {
	width: 100vw;
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}

@media (min-width: 36rem) {
	.search-form {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.post-navigation .nav-links {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.post-navigation .nav-next {
		text-align: right;
	}
}

@media (min-width: 48rem) {
	.site-header__inner {
		grid-template-columns: minmax(11rem, auto) minmax(0, 1fr);
		align-items: center;
		gap: var(--bsp-space-5);
		padding-block: var(--bsp-header-spacing);
	}

	.primary-navigation {
		justify-self: end;
	}

	.primary-navigation__toggle {
		display: none;
	}

	.primary-navigation__panel,
	.primary-navigation__panel[hidden] {
		display: block;
		max-height: none;
		margin-top: 0;
		overflow: visible;
		border-top: 0;
	}

	.primary-menu {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: flex-end;
		gap: 0.15rem;
	}

	.primary-menu > li,
	.primary-menu > .page_item {
		display: grid;
		grid-template-columns: minmax(0, auto) 2rem;
		align-items: center;
		border-bottom: 0;
		border-left: 0.0625rem solid var(--bsp-color-border);
	}

	.primary-menu > li:first-child,
	.primary-menu > .page_item:first-child {
		border-left: 0;
	}

	.primary-menu > li > a,
	.primary-menu > .page_item > a {
		min-height: 2.75rem;
		padding: 0.55rem 0.45rem 0.55rem 0.75rem;
		font-size: 0.8125rem;
		letter-spacing: 0.045em;
		text-transform: uppercase;
	}

	.primary-menu > li:not(.menu-item-has-children),
	.primary-menu > .page_item:not(.page_item_has_children) {
		grid-template-columns: auto;
	}

	.submenu-toggle {
		width: 2rem;
		min-width: 2rem;
		min-height: 2.75rem;
	}

	.primary-menu .sub-menu {
		position: absolute;
		top: 100%;
		inset-inline-end: 0;
		z-index: 20;
		width: max-content;
		min-width: 14rem;
		max-width: min(20rem, 90vw);
		border: 0.0625rem solid var(--bsp-color-border);
		border-top: 0.1875rem solid var(--bsp-color-accent);
		border-radius: 0 0 var(--bsp-radius) var(--bsp-radius);
		background: var(--bsp-color-surface);
		box-shadow: var(--bsp-shadow-menu);
	}

	.primary-navigation:not(.is-enhanced) .primary-menu li:hover > .sub-menu[hidden],
	.primary-navigation:not(.is-enhanced) .primary-menu li:focus-within > .sub-menu[hidden] {
		display: block;
	}

	.primary-menu .sub-menu li {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 2.75rem;
		border-bottom: 0.0625rem solid var(--bsp-color-border);
		padding-left: 0;
	}

	.primary-menu .sub-menu li:last-child {
		border-bottom: 0;
	}

	.primary-menu .sub-menu a {
		padding-inline: var(--bsp-space-3);
	}

	.primary-menu .sub-menu .sub-menu {
		position: static;
		width: auto;
		min-width: 0;
		max-width: none;
		border: 0;
		border-top: 0.0625rem solid var(--bsp-color-border);
		border-radius: 0;
		box-shadow: none;
		grid-column: 1 / -1;
	}

	.primary-menu .sub-menu .sub-menu a {
		padding-left: var(--bsp-space-5);
	}

	.site-footer__inner--main {
		grid-template-columns: minmax(15rem, 1fr) auto;
		align-items: start;
	}

	.footer-navigation {
		justify-self: end;
	}

	.footer-menu {
		justify-content: flex-end;
	}

	.alignleft {
		float: left;
		margin: 0 var(--bsp-space-4) var(--bsp-space-3) 0;
	}

	.alignright {
		float: right;
		margin: 0 0 var(--bsp-space-3) var(--bsp-space-4);
	}
}

@media (min-width: 48.9375rem) {
	.admin-bar {
		--bsp-admin-bar-offset: 32px;
	}
}

@media (min-width: 64rem) {
	.site-toolbar__inner,
	.site-header__inner,
	.site-main,
	.site-footer__inner {
		width: min(100% - 3rem, var(--bsp-site-width));
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
