:root {
	--boj-primary: #0b1f3a;
	--boj-navy-deep: #071528;
	--boj-accent: #c41e3a;
	--boj-accent-hover: #a81831;
	--boj-bg: #ffffff;
	--boj-gray: #f4f5f7;
	--boj-text: #1a1a1a;
	--boj-muted: #6b7280;
	--boj-radius: 4px;
	--boj-container: 1180px;
	--boj-font-heading: "Playfair Display", serif;
	--boj-font-body: "Open Sans", sans-serif;
	--boj-font-label: "Montserrat", sans-serif;
	--boj-font-heading-weight: 600;
	--boj-font-body-weight: 400;
	--boj-font-label-weight: 700;
	--boj-font-size: 16px;
}

html {
	font-size: var(--boj-font-size, 16px);
}

body {
	margin: 0;
	background: var(--boj-bg);
	color: var(--boj-text);
	font-family: var(--boj-font-body);
	font-weight: var(--boj-font-body-weight);
	line-height: 1.6;
}

h1, h2, h3, h4 {
	font-family: var(--boj-font-heading);
	font-weight: var(--boj-font-heading-weight);
	color: var(--boj-primary);
	line-height: 1.2;
}

p {
	margin-top: 0;
	margin-bottom: 1em;
}

p:last-child {
	margin-bottom: 0;
}

a {
	color: var(--boj-accent);
}

.boj-container {
	width: min(calc(100% - 2.4rem), var(--boj-container));
	margin-inline: auto;
}

.boj-skip {
	position: absolute;
	left: -999px;
}

.boj-svg-defs {
	position: absolute;
	width: 0;
	height: 0;
	overflow: hidden;
}

.boj-skip:focus {
	left: 1rem;
	top: 1rem;
	z-index: 100;
}

.boj-site-header {
	border-bottom: 1px solid #e6e8ec;
	background: #fff;
	position: sticky;
	top: 0;
	z-index: 40;
}

body.admin-bar .boj-site-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}

.boj-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 72px;
	gap: 1rem;
	position: relative;
}

.boj-brand {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.15rem;
	min-width: 0;
}

.boj-header-tagline {
	margin: 0;
	font-family: var(--boj-font-body);
	font-size: 0.75rem;
	font-weight: 400;
	color: var(--boj-muted);
	letter-spacing: 0;
	text-transform: none;
}

.boj-wordmark,
.boj-footer-brand,
.boj-footer-heading {
	font-family: var(--boj-font-label);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-weight: var(--boj-font-label-weight);
	color: var(--boj-primary);
	text-decoration: none;
}

.boj-wordmark {
	font-size: 1.2rem;
}

.boj-wordmark-accent {
	color: var(--boj-accent);
}

.boj-site-nav {
	display: flex;
	align-items: center;
	gap: 2rem;
}

.boj-menu {
	display: flex;
	align-items: center;
	gap: 2rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.boj-menu li {
	margin: 0;
	padding: 0;
}

.boj-site-nav .sub-menu {
	display: none;
}

.boj-site-nav a {
	font-family: var(--boj-font-label);
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--boj-primary);
}

.boj-site-nav .current-menu-item > a:not(.boj-btn),
.boj-site-nav .current_page_item > a:not(.boj-btn) {
	color: var(--boj-accent);
}

.boj-site-nav:not(.boj-nav-has-cta) .boj-menu > li:last-child > a {
	display: inline-block;
	background: var(--boj-accent);
	color: #fff !important;
	border: 0;
	border-radius: var(--boj-radius);
	padding: 0.7rem 1.1rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	font-size: 0.78rem;
}

.boj-site-nav:not(.boj-nav-has-cta) .boj-menu > li:last-child > a:hover {
	background: var(--boj-accent-hover);
}

.boj-btn {
	display: inline-block;
	background: var(--boj-accent);
	color: #fff !important;
	border: 0;
	border-radius: var(--boj-radius);
	padding: 0.65rem 1.1rem;
	font-family: var(--boj-font-label);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
}

.boj-btn:hover {
	background: var(--boj-accent-hover);
}

.boj-nav-overlay {
	display: none;
}

.boj-nav-toggle {
	display: none;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	z-index: 60;
	align-items: center;
	justify-content: center;
}

.boj-nav-bars {
	display: block;
	width: 22px;
	height: 14px;
	position: relative;
}

.boj-nav-bars span {
	position: absolute;
	left: 0;
	right: 0;
	height: 2px;
	background: var(--boj-primary);
	border-radius: 1px;
	transition: transform 0.28s ease, opacity 0.2s ease, top 0.28s ease;
}

.boj-nav-bars span:nth-child(1) {
	top: 0;
}

.boj-nav-bars span:nth-child(2) {
	top: 6px;
}

.boj-nav-bars span:nth-child(3) {
	top: 12px;
}

.boj-nav-toggle[aria-expanded="true"] .boj-nav-bars span:nth-child(1) {
	top: 6px;
	transform: rotate(45deg);
}

.boj-nav-toggle[aria-expanded="true"] .boj-nav-bars span:nth-child(2) {
	opacity: 0;
}

.boj-nav-toggle[aria-expanded="true"] .boj-nav-bars span:nth-child(3) {
	top: 6px;
	transform: rotate(-45deg);
}

body.boj-nav-open {
	overflow: hidden;
}

.boj-main {
	min-height: 50vh;
}

body.elementor-page .boj-main,
body.elementor-template-full-width .boj-main {
	width: 100%;
	max-width: none;
	padding: 0;
	margin: 0;
}

body.elementor-page .boj-main > .elementor {
	width: 100%;
	max-width: none;
}

.boj-content,
.boj-loop {
	padding: 2.4rem 0 3.5rem;
}

.boj-card {
	margin-bottom: 1.6rem;
}

.boj-card img,
.boj-feature-img img {
	width: 100%;
	height: auto;
	border-radius: var(--boj-radius);
}

.boj-meta {
	color: var(--boj-muted);
	font-size: 0.9rem;
}

.boj-site-footer {
	background: var(--boj-primary);
	color: #c9d2de;
	padding: 3.2rem 0 1.4rem;
}

.boj-footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 0.8fr 1fr 0.85fr;
	gap: 2rem;
	align-items: start;
}

.boj-footer-grid.is-no-quote {
	grid-template-columns: 1.4fr 0.8fr 1fr;
}

.boj-site-footer p {
	color: #c9d2de;
	margin: 0;
}

.boj-footer-brand,
.boj-footer-heading {
	color: #fff;
	margin: 0 0 0.75rem;
}

.boj-footer-blurb {
	max-width: 22rem;
	font-size: 0.92rem;
	line-height: 1.55;
}

.boj-footer-nav {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}

.boj-footer-nav li {
	margin: 0;
	padding: 0;
}

.boj-footer-nav a,
.boj-footer-mail {
	color: #c9d2de;
	font-family: var(--boj-font-label);
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
}

.boj-footer-mail {
	text-transform: none;
	letter-spacing: 0;
	font-family: var(--boj-font-body);
	font-weight: 400;
	font-size: inherit;
}

.boj-footer-nav a:hover,
.boj-footer-mail:hover,
.boj-site-footer a:hover {
	color: var(--boj-accent);
}

.boj-footer-quote {
	margin: 0;
	font-family: var(--boj-font-heading);
	font-style: italic;
	font-size: 1.12rem;
	line-height: 1.55;
	color: #c9d2de;
	text-align: left;
}

.boj-legal {
	margin-top: 2.4rem;
	padding-top: 0.95rem;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	text-align: center;
	font-size: 0.82rem;
}

.boj-legal a {
	color: #c9d2de;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.boj-search {
	display: flex;
	gap: 0.5rem;
	margin: 1rem 0;
}

.boj-search input {
	flex: 1;
	padding: 0.55rem 0.7rem;
	border: 1px solid #e6e8ec;
	border-radius: var(--boj-radius);
}

.boj-journal.boj-404-page {
	background: var(--boj-gray);
	padding: 0 0 clamp(2.5rem, 6vw, 4rem);
}

.boj-404 {
	width: min(100%, 36rem);
	margin: 0 auto;
	text-align: center;
	padding: 0 0 2rem;
}

.boj-404 .boj-kicker {
	margin: 0 0 0.35rem;
}

.boj-404-code {
	font-family: var(--boj-font-heading);
	font-size: clamp(4rem, 16vw, 7.25rem);
	font-weight: 600;
	line-height: 0.9;
	letter-spacing: -0.04em;
	color: var(--boj-primary);
	margin: 0 0 1rem;
}

.boj-404-lead {
	margin: 0 0 1.4rem;
	color: var(--boj-muted);
	font-size: clamp(0.95rem, 2.2vw, 1.08rem);
	line-height: 1.7;
}

.boj-404-search {
	width: 100%;
	margin: 0;
	background: #fff;
	border-radius: var(--boj-radius);
	padding: 0.35rem 0.45rem 0.35rem 0.15rem;
}

.boj-404-search input[type="search"] {
	flex: 1;
	min-width: 0;
	width: auto;
	border: 0;
	background: transparent;
	border-radius: var(--boj-radius);
	padding: 0.75rem 1rem;
	font-family: var(--boj-font-body);
	font-size: 1rem;
}

.boj-404-search input[type="search"]:focus {
	outline: 2px solid var(--boj-primary);
	outline-offset: 1px;
}

.boj-404-actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.9rem;
	margin: 1.5rem 0 0;
}

.boj-404-actions .boj-btn {
	width: 100%;
	text-align: center;
	box-sizing: border-box;
}

.boj-404-actions .boj-text-link {
	text-align: center;
}

@media (min-width: 640px) {
	.boj-404-actions {
		flex-direction: row;
		justify-content: center;
		align-items: center;
		gap: 1rem 1.5rem;
	}

	.boj-404-actions .boj-btn {
		width: auto;
	}
}

@media (min-width: 980px) {
	.boj-journal.boj-404-page {
		display: flex;
		flex-direction: column;
		min-height: calc(100svh - 72px - var(--wp-admin--admin-bar--height, 0px) - 14rem);
	}

	.boj-404-page > .boj-container {
		flex: 1;
		display: flex;
		flex-direction: column;
	}

	.boj-404 {
		flex: 1;
		display: flex;
		flex-direction: column;
		justify-content: center;
	}
}

.boj-journal {
	background: var(--boj-gray);
	padding: 0 0 4rem;
}

.boj-journal .boj-titlebar {
	padding: 1.8rem 0;
	margin-bottom: 2.4rem;
}

.boj-titlebar h1,
.boj-journal .boj-el-title {
	margin: 0;
	font-family: var(--boj-font-heading);
	font-size: clamp(2rem, 4vw, 3.1rem);
	font-weight: 600;
	text-transform: none;
	color: var(--boj-primary);
	overflow-wrap: anywhere;
}

.boj-titlebar-inner:not(:has(h1)) {
	justify-content: flex-end;
}

.boj-crumb span {
	margin: 0 0.45rem;
}

.boj-crumb a {
	color: inherit;
	text-decoration: none;
}

.boj-crumb a:hover {
	color: var(--boj-accent);
}

.boj-journal-layout {
	display: grid;
	grid-template-columns: minmax(0, 0.32fr) minmax(0, 0.68fr);
	gap: 2.4rem;
	align-items: start;
}

.boj-journal-layout.is-full {
	grid-template-columns: 1fr;
}

.boj-journal-sidebar .boj-side-widget {
	margin-bottom: 1.35rem;
}

.boj-journal-sidebar a.is-active,
.boj-journal-sidebar .current-cat > a {
	color: var(--boj-accent);
}

.boj-journal-empty {
	color: var(--boj-muted);
	background: #fff;
	padding: 1.4rem 1.2rem;
	border-radius: var(--boj-radius);
}

.boj-article {
	padding: 0 0 1rem;
}

.boj-article p {
	font-family: var(--boj-font-body);
	font-weight: var(--boj-font-body-weight);
	line-height: 1.7;
	color: var(--boj-text);
}

.boj-article h2,
.boj-article h3,
.boj-article h4 {
	font-family: var(--boj-font-heading);
	font-weight: var(--boj-font-heading-weight);
	color: var(--boj-primary);
	text-transform: none;
}

.boj-article .boj-article-feature {
	width: 100%;
	height: auto;
	object-fit: contain;
	margin-bottom: 1.5rem;
	border-radius: var(--boj-radius);
}

.boj-article img:not(.boj-article-feature),
.boj-article figure,
.boj-article .wp-block-image {
	max-width: 100%;
	height: auto;
	border-radius: var(--boj-radius);
}

.boj-article .alignfull,
.boj-article .alignwide {
	max-width: 100%;
	margin-left: 0;
	margin-right: 0;
}

.boj-article figure {
	margin: 0 0 1.4rem;
}

.boj-article h1 {
	text-transform: none;
	margin: 0 0 0.6rem;
}

.boj-article .boj-meta {
	margin-bottom: 1.4rem;
}

.boj-article .boj-meta a {
	color: var(--boj-accent);
	text-decoration: none;
}

.boj-article .boj-meta span {
	margin: 0 0.35rem;
}

.nav-links,
.boj-journal .navigation {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin-top: 2.2rem;
}

.boj-journal .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.2rem;
	height: 2.2rem;
	padding: 0 0.4rem;
	background: #fff;
	color: var(--boj-primary);
	font-family: var(--boj-font-label);
	font-size: 0.82rem;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 4px 12px rgba(11, 31, 58, 0.06);
	border-radius: var(--boj-radius);
}

.boj-journal .page-numbers.current {
	background: var(--boj-primary);
	color: #fff;
}

.boj-comments {
	background: #fff;
	border-radius: var(--boj-radius);
	box-shadow: 0 8px 24px rgba(11, 31, 58, 0.06);
	padding: 1.4rem 1.35rem 1.6rem;
	margin: 0 0 1.5rem;
}

.boj-comments h2,
.boj-comments .comment-reply-title {
	font-family: var(--boj-font-heading);
	font-size: 1.35rem;
	font-weight: 600;
	margin: 0 0 1rem;
	text-transform: none;
	color: var(--boj-primary);
}

.boj-comments .comment-list {
	list-style: none;
	margin: 0 0 1.6rem;
	padding: 0;
}

.boj-comments .comment-list .children {
	list-style: none;
	margin: 0.8rem 0 0;
	padding: 0 0 0 1.2rem;
}

.boj-comments .comment-body {
	margin: 0 0 1.2rem;
	overflow: hidden;
}

.boj-comments .avatar {
	float: left;
	margin: 0 0.85rem 0.4rem 0;
	border-radius: 50%;
}

.boj-comments .comment-author,
.boj-comments .comment-metadata,
.boj-comments .logged-in-as,
.boj-comments .comment-notes,
.boj-comments .comment-form-cookies-consent {
	font-size: 0.88rem;
	color: var(--boj-muted);
}

.boj-comments .comment-metadata {
	margin: 0 0 0.6rem;
}

.boj-comments .comment-metadata a {
	color: var(--boj-muted);
	text-decoration: none;
}

.boj-comment-form label {
	display: block;
	font-family: var(--boj-font-label);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--boj-primary);
	margin: 0 0 0.4rem;
}

.boj-comment-form p {
	margin: 0 0 1rem;
}

.boj-comment-form input[type="text"],
.boj-comment-form input[type="email"],
.boj-comment-form input[type="url"],
.boj-comment-form textarea {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	padding: 0.85rem 0.9rem;
	border: 1px solid #e6e8ec;
	border-radius: var(--boj-radius);
	font-family: var(--boj-font-body);
	font-size: 1rem;
	color: var(--boj-text);
	background: #fff;
}

.boj-comment-form textarea {
	min-height: 140px;
	resize: vertical;
}

.boj-comment-form .comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
}

.boj-comment-form .comment-form-cookies-consent input {
	width: auto;
	margin-top: 0.2rem;
}

.boj-comment-form .comment-form-cookies-consent label {
	text-transform: none;
	letter-spacing: 0;
	font-weight: 400;
	font-family: var(--boj-font-body);
	font-size: 0.88rem;
	color: var(--boj-muted);
	margin: 0;
}

.boj-comment-form .form-submit {
	margin: 0;
}

@media (max-width: 800px) {
	.boj-nav-toggle {
		display: flex;
	}

	.boj-nav-overlay {
		display: block;
		position: fixed;
		inset: 0;
		background: rgba(11, 31, 58, 0.48);
		opacity: 0;
		pointer-events: none;
		transition: opacity 0.3s ease;
		z-index: 50;
	}

	.boj-nav-overlay.is-visible {
		opacity: 1;
		pointer-events: auto;
	}

	.boj-site-nav {
		position: fixed;
		top: 0;
		right: 0;
		width: min(86vw, 380px);
		height: 100%;
		height: 100dvh;
		margin: 0;
		background: #fff;
		z-index: 55;
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 0.35rem;
		padding: 5.2rem 1.6rem 2rem;
		transform: translateX(100%);
		transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
		box-shadow: -16px 0 40px rgba(11, 31, 58, 0.14);
	}

	body.admin-bar .boj-site-nav {
		top: var(--wp-admin--admin-bar--height, 32px);
		height: calc(100dvh - var(--wp-admin--admin-bar--height, 32px));
	}

	.boj-site-nav.is-open {
		transform: translateX(0);
	}

	.boj-site-nav .boj-menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.boj-site-nav a {
		display: block;
		padding: 0.85rem 0;
		font-size: 0.92rem;
		letter-spacing: 0.1em;
		border-bottom: 1px solid #eef0f3;
		opacity: 0;
		transform: translateX(14px);
		transition: opacity 0.35s ease, transform 0.35s ease, color 0.2s ease;
		transition-delay: calc(var(--boj-nav-i, 0) * 45ms);
	}

	.boj-site-nav.is-open a {
		opacity: 1;
		transform: none;
	}

	.boj-site-nav .boj-btn,
	.boj-site-nav:not(.boj-nav-has-cta) .boj-menu > li:last-child > a {
		margin-top: 1.4rem;
		text-align: center;
		border-bottom: 0;
		opacity: 0;
		transform: translateY(8px);
		transition: opacity 0.35s ease, transform 0.35s ease, background 0.2s ease;
		transition-delay: 0.18s;
	}

	.boj-site-nav.is-open .boj-btn,
	.boj-site-nav.is-open:not(.boj-nav-has-cta) .boj-menu > li:last-child > a {
		opacity: 1;
		transform: none;
	}

	.boj-footer-grid {
		grid-template-columns: 1fr;
	}

	.boj-journal .boj-titlebar-inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.4rem;
	}

	.boj-journal-layout {
		grid-template-columns: 1fr;
	}

	.boj-journal-sidebar {
		order: 2;
	}

	.boj-journal-main {
		order: 1;
	}
}
