/*
 * Header from the federal-bar-lite theme (header.php, inc/lite/setup.php), and the tokens it and
 * css/annual-pass.css use. Copied from federal-bar-lite's assets/css/main.css; keep them in step.
 * Loaded after theme.min.css / custom-style.css.
 */

:root {
	--navy: #002868;
	--navy-dark: #001a45;
	--gold: #fcb514;
	--gold-dark: #e6a103;
	--gold-text: #8a6300; /* gold dark enough for text on white */
	--text: #3a3939;
	--muted: #6c757d;
	--line: #dee2e6;
	--surface: #f8f9fa;
	--white: #ffffff;
	--danger: #c0392b;
	--success: #2e7d32;
	--radius: 0.375rem;
	--shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
	--font: "Lora", Georgia, "Times New Roman", serif;
	--container: 1140px;
	--gutter: 16px;
}

/* Bootstrap underlines links on hover */
.site-header a:hover {
	text-decoration: none;
}

.site-header .container {
	max-width: calc(var(--container) + 2 * var(--gutter));
	padding-right: var(--gutter);
	padding-left: var(--gutter);
}

/* Header: the Federal Bar site's white bar with the colour seal logo */

.site-header {
	--header-line: var(--line);
	position: relative;
	z-index: 100;
	border-bottom: 1px solid var(--header-line);
	background: var(--white);
	box-shadow: var(--shadow);
	color: var(--navy);
	font-family: var(--font);
}

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

.site-header a:hover {
	color: var(--gold-text);
}

.site-header__inner {
	display: flex;
	align-items: stretch;
	min-height: 80px;
}

.site-header__brand {
	display: flex;
	flex: 1 1 50%;
	align-items: center;
	border-right: 1px solid var(--header-line);
}

.site-logo {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	margin-right: 24px;
	padding-right: 24px;
	border-right: 1px solid var(--header-line);
	line-height: 0;
}

.site-logo img {
	width: 160px;
	height: auto;
}

.site-footer .site-logo img {
	width: 140px;
}

.site-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 32px;
	font-size: 18px;
	line-height: 1.2;
}

.site-header__actions {
	display: flex;
	flex: 1 1 50%;
	align-items: stretch;
	justify-content: flex-end;
}

/* Cart, phone, account: icon links split by short dividers */
.site-header__icon {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 0 24px;
	white-space: nowrap;
}

.site-header__icon + .site-header__icon::before {
	position: absolute;
	top: 50%;
	left: 0;
	height: 28px;
	border-left: 1px solid var(--header-line);
	content: "";
	transform: translateY(-50%);
}

.site-header .icon {
	width: 20px;
	height: 20px;
}

.site-account__name {
	font-size: 16px;
	font-weight: 600;
}

.site-cart__count {
	position: absolute;
	top: 10px;
	left: 36px;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 999px;
	background: var(--gold);
	color: var(--navy);
	font-size: 11px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
}

/* Gold button, as on the Federal Bar site */
.site-header .site-subscribe {
	display: flex;
	align-items: center;
	align-self: center;
	gap: 8px;
	margin-left: 12px;
	padding: 0.5rem 1.25rem;
	border-radius: var(--radius);
	background: var(--gold);
	color: var(--navy);
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
}

.site-header .site-subscribe:hover {
	background: var(--gold-dark);
	color: var(--navy);
}

.site-subscribe .icon {
	width: 16px;
	height: 16px;
}

.icon {
	flex: 0 0 auto;
}

@media (max-width: 767px) {
	.site-header__inner {
		flex-wrap: wrap;
		min-height: 0;
	}

	/* Logo and icons on the first row, the nav below */
	.site-header__brand {
		display: contents;
	}

	.site-logo {
		min-height: 64px;
		margin-right: 0;
		padding-right: 0;
		border-right: 0;
	}

	.site-header__actions {
		flex: 1 1 auto;
	}

	.site-nav {
		order: 3;
		width: 100%;
		padding: 12px 0;
		border-top: 1px solid var(--header-line);
		font-size: 16px;
	}

	.site-header__icon {
		padding: 0 12px;
	}

	.site-cart__count {
		left: 24px;
	}

	.site-logo img {
		width: 130px;
	}

	.site-account__name,
	.site-subscribe {
		display: none;
	}
}
