.ff-site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	height: 68px;
	background: var(--ff-color-white);
	border-bottom: 1px solid var(--ff-border-default);
}

body.admin-bar .ff-site-header {
	top: 32px;
}

.ff-site-header__inner {
	min-height: 68px;
	display: flex;
	align-items: center;
	gap: var(--ff-space-10);
	justify-content: flex-start;
}

.ff-brand {
	display: inline-flex;
	align-items: center;
	flex: none;
	gap: var(--ff-space-2-5);
	color: var(--ff-text-primary);
	font-weight: 900;
	text-decoration: none;
}

.ff-brand:hover {
	color: var(--ff-text-primary);
}

.ff-site-header .ff-brand,
.ff-site-header .ff-brand:hover {
	color: var(--ff-action-primary);
}

.ff-brand__mark {
	position: relative;
	display: block;
	width: 34px;
	height: 34px;
	flex: none;
	border-radius: var(--ff-radius-md);
	background: var(--ff-action-primary);
}

.ff-brand__line {
	position: absolute;
	top: 17px;
	right: 6px;
	left: 6px;
	height: 1px;
	background: rgb(var(--ff-rgb-white) / .35);
}

.ff-brand__circle {
	position: absolute;
	top: 17px;
	left: 50%;
	width: 10px;
	height: 10px;
	border: 1px solid rgb(var(--ff-rgb-white) / .55);
	border-radius: 50%;
	transform: translate(-50%, -50%);
}

.ff-brand__dot {
	position: absolute;
	top: 8px;
	left: 7px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--ff-action-safe);
}

.ff-brand__pin {
	position: absolute;
	right: 6px;
	bottom: 6px;
	width: 8px;
	height: 8px;
	border-radius: 50% 50% 50% 0;
	background: var(--ff-action-warning);
	transform: rotate(-45deg);
}

.ff-brand__name {
	display: block;
	color: var(--ff-action-primary);
	font-size: 18px;
	font-weight: 800;
	line-height: 1;
}

.ff-brand__tagline {
	display: block;
	margin-top: var(--ff-space-0-5);
	color: var(--ff-text-muted);
	font-size: 9px;
	font-weight: 700;
	line-height: 1.2;
}

.ff-site-nav {
	display: flex;
	align-items: center;
	flex: 1;
	gap: var(--ff-space-7-5);
}

.ff-site-nav__link {
	display: block;
	min-height: auto;
	padding: 0;
	border-radius: 0;
	color: var(--ff-text-body);
	font-size: var(--ff-font-body);
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	transition: color var(--ff-transition), background var(--ff-transition);
}

.ff-site-nav__link {
	color: var(--ff-text-body);
}

.ff-site-nav__link:hover,
.ff-site-nav__link[aria-current="page"] {
	background: transparent;
	color: var(--ff-action-primary);
}

.ff-site-nav__link:hover,
.ff-site-nav__link[aria-current="page"] {
	color: var(--ff-action-primary);
}

.ff-site-header__actions {
	display: flex;
	align-items: center;
	flex: none;
	gap: var(--ff-space-4-5);
}

.ff-site-header__search {
	position: relative;
	display: block;
	width: 18px;
	height: 18px;
	border: 2px solid var(--ff-text-muted);
	border-radius: 50%;
	color: var(--ff-text-muted);
	text-decoration: none;
}

.ff-site-header__search::after {
	position: absolute;
	right: -6px;
	bottom: -6px;
	width: 7px;
	height: 2px;
	background: var(--ff-text-muted);
	content: "";
	transform: rotate(45deg);
}

.ff-site-header__guide {
	display: block;
	padding: var(--ff-space-2-75) var(--ff-space-5);
	border: 0;
	border-radius: var(--ff-radius-md);
	background: var(--ff-action-primary);
	color: var(--ff-color-white);
	font-size: var(--ff-font-small);
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
}

.ff-site-header__guide:hover {
	color: var(--ff-color-white);
	background: var(--ff-color-navy-750);
}

.ff-site-header__guide,
.ff-site-header__guide:hover {
	color: var(--ff-color-white);
	text-decoration: none;
}

.ff-site-header__search,
.ff-site-header__search:hover {
	color: var(--ff-text-muted);
	text-decoration: none;
}

.ff-mobile-menu {
	position: relative;
	display: none;
}

.ff-mobile-menu summary {
	display: flex;
	flex-direction: column;
	gap: var(--ff-space-1);
	padding: var(--ff-space-1-5) 0;
	cursor: pointer;
	list-style: none;
}

.ff-mobile-menu summary::-webkit-details-marker {
	display: none;
}

.ff-mobile-menu summary span {
	display: block;
	width: 20px;
	height: 2px;
	border-radius: 2px;
	background: var(--ff-text-primary);
}

.ff-mobile-menu__panel {
	position: absolute;
	top: calc(100% + 1px);
	right: -16px;
	z-index: 10;
	display: none;
	box-sizing: border-box;
	width: 100vw;
	border-bottom: 1px solid var(--ff-border-default);
	background: var(--ff-color-white);
	box-shadow: 0 12px 24px rgb(var(--ff-rgb-black) / .1);
}

.ff-mobile-menu[open] .ff-mobile-menu__panel {
	display: block;
}

.ff-mobile-menu__title-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 56px;
	padding: 0 var(--ff-space-4);
	border-bottom: 1px solid var(--ff-border-default);
}

.ff-mobile-menu__title {
	color: var(--ff-action-primary);
	font-size: var(--ff-font-card-title);
	font-weight: 800;
	line-height: 1;
}

.ff-mobile-menu__close {
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--ff-text-muted);
	font-size: 20px;
	font-weight: 400;
	line-height: 1;
}

.ff-mobile-menu__links {
	display: flex;
	flex-direction: column;
}

.ff-mobile-menu__links a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 44px;
	padding: 0 var(--ff-space-4);
	border-bottom: 1px solid var(--ff-color-gray-100);
	color: var(--ff-text-primary);
	font-size: var(--ff-font-body);
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
}

.ff-mobile-menu__links a {
	color: var(--ff-text-primary);
}

.ff-mobile-menu__chevron {
	color: var(--ff-text-muted);
	font-size: 20px;
	font-weight: 400;
}

.ff-mobile-menu__cta {
	padding: var(--ff-space-3) var(--ff-space-4) var(--ff-space-4);
}

.ff-mobile-menu__cta .ff-button {
	display: flex;
	width: 100%;
	min-height: 44px;
	font-size: var(--ff-font-body);
}

.ff-article-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--ff-sidebar);
	gap: var(--ff-space-8);
	align-items: start;
}

.ff-article-sidebar {
	position: sticky;
	top: calc(var(--ff-header-height) + var(--ff-space-4));
	display: grid;
	gap: var(--ff-space-4);
}

.ff-site-footer {
	margin-top: var(--ff-space-19);
	background: var(--ff-action-primary);
}

.ff-footer__inner {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: var(--ff-space-8);
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: var(--ff-space-14) var(--ff-space-10) var(--ff-space-7);
	box-sizing: border-box;
}

.ff-footer__brand {
	display: block;
	margin-bottom: var(--ff-space-2-5);
	color: var(--ff-color-white);
	font-size: 18px;
	font-weight: 800;
	line-height: 1;
	text-decoration: none;
}

.ff-footer__brand:hover {
	color: var(--ff-color-white);
}

.ff-footer__brand,
.ff-footer__brand:hover {
	color: var(--ff-color-white);
}

.ff-footer__lead {
	margin: 0;
	color: var(--ff-color-slate-400);
	font-size: var(--ff-font-small);
	font-weight: 400;
	line-height: var(--ff-line-reading);
}

.ff-footer__column {
	display: flex;
	flex-direction: column;
	gap: var(--ff-space-2-5);
}

.ff-footer__column a {
	color: var(--ff-text-inverse-muted);
	font-size: var(--ff-font-small);
	font-weight: 400;
	line-height: 1;
	text-decoration: none;
}

.ff-footer__column a:hover {
	color: var(--ff-color-white);
}

.ff-footer__column a {
	color: var(--ff-text-inverse-muted);
}

.ff-footer__column a:hover {
	color: var(--ff-color-white);
}

.ff-footer__bottom {
	margin: 0;
	padding: var(--ff-space-4-5) var(--ff-space-10);
	border-top: 1px solid rgb(var(--ff-rgb-white) / .08);
	text-align: center;
}

.ff-footer__bottom span {
	color: var(--ff-text-muted);
	font-size: var(--ff-font-meta);
	font-weight: 400;
	line-height: 1;
}

@media (max-width: 980px) {
	.ff-site-nav {
		display: none;
	}

	.ff-site-header__guide {
		display: none;
	}

	.ff-mobile-menu {
		display: block;
	}

	.ff-article-sidebar {
		position: static;
	}
}

@media (max-width: 640px) {

	.ff-site-header {
		height: 56px;
	}

	.ff-site-header__inner {
		width: 100%;
		min-height: 56px;
		padding: 0 var(--ff-space-4);
		gap: var(--ff-space-3-5);
		justify-content: space-between;
	}

	.ff-brand__tagline {
		display: none;
	}

	.ff-brand {
		gap: var(--ff-space-2);
	}

	.ff-brand__mark {
		width: 28px;
		height: 28px;
		border-radius: 7px;
	}

	.ff-brand__line {
		top: 14px;
		right: 5px;
		left: 5px;
	}

	.ff-brand__circle {
		top: 14px;
		width: 8px;
		height: 8px;
	}

	.ff-brand__dot {
		top: 6px;
		left: 5px;
		width: 5px;
		height: 5px;
	}

	.ff-brand__pin {
		display: none;
	}

	.ff-brand__name {
		font-size: var(--ff-font-card-title);
	}

	.ff-site-header__actions {
		display: flex;
		gap: var(--ff-space-3-5);
	}

	.ff-site-header__search {
		width: 17px;
		height: 17px;
	}

	.ff-site-header__search::after {
		right: -5px;
		bottom: -5px;
		width: 6px;
	}

	.ff-site-footer {
		margin-top: var(--ff-space-8);
		padding: var(--ff-space-8) var(--ff-space-5) var(--ff-space-5);
	}

	.ff-footer__inner {
		display: block;
		width: 100%;
		padding: 0;
	}

	.ff-footer__brand {
		margin-bottom: var(--ff-space-2);
		font-size: 16px;
	}

	.ff-footer__lead {
		margin-bottom: var(--ff-space-5);
		font-size: var(--ff-font-meta);
		line-height: var(--ff-line-relaxed);
	}

	.ff-footer__column {
		gap: var(--ff-space-2-25);
	}

	.ff-footer__column--1,
	.ff-footer__column--2 {
		float: left;
		width: calc(50% - 8px);
		margin-bottom: var(--ff-space-5);
	}

	.ff-footer__column--1 {
		margin-right: var(--ff-space-4);
	}

	.ff-footer__column--3 {
		clear: both;
		margin-bottom: var(--ff-space-5);
	}

	.ff-footer__column a {
		font-size: var(--ff-font-meta);
	}

	.ff-footer__bottom {
		clear: both;
		padding: var(--ff-space-3-5) 0 0;
	}

	.ff-footer__bottom span {
		font-size: var(--ff-font-caption);
	}
}

@media screen and (max-width: 782px) {
	body.admin-bar .ff-site-header {
		top: 46px;
	}
}

@media screen and (max-width: 600px) {
	body.admin-bar .ff-site-header {
		top: 0;
	}
}
