/* ==========================================================================
   Layout: date strip, masthead, section bar, footer, page shells
   ========================================================================== */

/* --- Date strip ----------------------------------------------------------- */

.datebar {
	background: var(--ink);
	color: var(--on-dark);
	font-size: 13px;
}
.datebar__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0 16px;
	min-height: 40px;
}
.datebar__date { margin: 0; color: var(--white); }
.datebar__sep { margin-inline: 6px; color: var(--on-dark); }

.currency {
	display: flex;
	align-items: center;
	gap: 10px;
}
.currency__label { color: var(--on-dark); }
.currency__list {
	display: flex;
	margin: 0;
	padding: 0;
	list-style: none;
}
.currency__item {
	display: inline-flex;
	align-items: center;
	min-width: var(--tap);
	min-height: 40px;
	justify-content: center;
	color: var(--white);
	font-weight: 700;
	font-stretch: 85%;
	letter-spacing: 0.04em;
	text-decoration: none;
	border-bottom: 2px solid transparent;
}
.currency__item:hover { color: var(--red-on-dark); }
.currency__item.is-current { border-bottom-color: var(--red); }

/* --- Masthead ------------------------------------------------------------- */

/* Double rule under the masthead: 3px + 1px. */
.masthead {
	position: relative;
	z-index: 40;
	margin-bottom: 8px;
	border-bottom: 3px solid var(--ink);
	background: var(--white);
}
.masthead::after {
	position: absolute;
	left: 0;
	right: 0;
	bottom: -7px;
	height: 1px;
	background: var(--ink);
	content: "";
}
.masthead__inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 84px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand .logo-mark { flex: none; }
.brand__word { display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.brand__news {
	font-family: var(--sans);
	font-stretch: 75%;
	font-weight: 800;
	font-size: 24px;
	letter-spacing: 0.02em;
}
.brand__academy {
	font-family: var(--serif);
	font-style: italic;
	font-weight: 500;
	font-size: 24px;
	color: var(--red);
}
.brand--dark { color: var(--white); }
.brand--dark:hover { color: var(--white); }
.brand--dark .brand__academy { color: var(--red-on-dark); }

.masthead__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--tap);
	height: var(--tap);
	padding: 0;
	border: 1px solid var(--ink);
	border-radius: var(--radius);
	background: var(--white);
	cursor: pointer;
}
.masthead__toggle-bars,
.masthead__toggle-bars::before,
.masthead__toggle-bars::after {
	display: block;
	width: 18px;
	height: 2px;
	background: var(--ink);
	content: "";
}
.masthead__toggle-bars { position: relative; }
.masthead__toggle-bars::before { position: absolute; top: -6px; }
.masthead__toggle-bars::after { position: absolute; top: 6px; }

.masthead__panel {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 50;
	padding: 8px var(--gutter) 20px;
	border-top: 1px solid var(--rule);
	border-bottom: 3px solid var(--ink);
	background: var(--white);
}
.masthead__panel.is-open { display: block; }

.masthead__menu {
	margin: 0;
	padding: 0;
	list-style: none;
}
.masthead__menu a {
	display: flex;
	align-items: center;
	min-height: var(--tap);
	font-weight: 600;
	font-size: 16px;
	text-decoration: none;
	border-bottom: 1px solid var(--rule);
}
.masthead__menu .current-menu-item > a { color: var(--red); }

.masthead__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	margin-top: 16px;
}
.masthead__signin,
.masthead__cart {
	display: inline-flex;
	align-items: center;
	min-height: var(--tap);
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
}
.cart-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	margin-left: 6px;
	padding-inline: 6px;
	background: var(--ink);
	color: var(--white);
	font-size: 12px;
	font-variant-numeric: tabular-nums;
}

@media (min-width: 1100px) {
	.masthead__toggle { display: none; }
	.masthead__panel {
		position: static;
		display: flex;
		flex: 1;
		align-items: center;
		justify-content: space-between;
		gap: 24px;
		padding: 0;
		border: 0;
	}
	.masthead__nav { flex: 1; display: flex; justify-content: center; }
	.masthead__menu { display: flex; gap: 28px; }
	.masthead__menu a { border: 0; font-size: 15px; white-space: nowrap; }
	.masthead__actions { margin-top: 0; flex-wrap: nowrap; white-space: nowrap; }
}

/* --- Section bar ---------------------------------------------------------- */

.sections { border-bottom: 1px solid var(--rule); }
.sections__list {
	display: flex;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	list-style: none;
}
.sections__list li { display: flex; }
.sections__list li + li::before {
	align-self: center;
	width: 1px;
	height: 16px;
	background: var(--rule);
	content: "";
}
.sections__item {
	display: inline-flex;
	align-items: center;
	min-height: var(--tap);
	padding-inline: 12px;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
}
.sections__list li:first-child .sections__item { padding-left: 0; }
.sections__item.is-current { color: var(--red); font-weight: 700; }
/* Phones: the section bar moves into the menu panel (see .masthead__sections). */
@media (max-width: 1099px) {
	.sections { display: none; }
}
.masthead__sections { margin-top: 16px; }
.masthead__sections-head {
	margin: 0 0 4px;
	color: var(--red);
	font-stretch: 75%;
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.masthead__sections ul {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.masthead__sections a {
	display: flex;
	align-items: center;
	min-height: var(--tap);
	font-size: 15px;
	text-decoration: none;
	border-bottom: 1px solid var(--rule);
}
@media (min-width: 1100px) {
	.masthead__sections { display: none; }
}

/* --- Page shells ---------------------------------------------------------- */

.site-main { display: block; }

/* Scoped to .container: WordPress also puts a "page" class on <body>. */
.container.page { padding-block: 40px var(--space); max-width: calc(760px + 2 * var(--gutter)); }
.container.page--wide { max-width: calc(var(--max) + 2 * var(--gutter)); }
.container.page--narrow { max-width: calc(640px + 2 * var(--gutter)); }

.page__head {
	margin-bottom: 32px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--rule);
}
.page__title { font-size: clamp(38px, 6vw, 64px); }
.page__lead {
	margin: 16px 0 0;
	font-family: var(--serif);
	font-size: clamp(19px, 2.2vw, 22px);
	line-height: 1.4;
	color: var(--gray-dark);
}
.page__media { margin-bottom: 32px; }

/* --- Footer --------------------------------------------------------------- */

.site-footer {
	padding-top: 56px;
	border-top: 3px solid var(--ink);
	background: var(--paper);
}
.site-footer__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px 32px;
	padding-bottom: 48px;
}
@media (min-width: 600px) {
	.site-footer__grid { grid-template-columns: repeat(2, 1fr); }
	.site-footer__brand { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
	.site-footer__grid { grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr)); }
	.site-footer__brand { grid-column: auto; padding-right: 32px; }
}
.site-footer__brand p {
	max-width: 360px;
	margin: 20px 0 16px;
	color: var(--gray-dark);
	font-size: 15px;
}
.site-footer__parent {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-height: var(--tap);
	font-weight: 700;
	font-size: 15px;
	text-decoration: none;
	border-bottom: 1px solid var(--ink);
}
.site-footer__head {
	margin-bottom: 12px;
	padding-top: 10px;
	border-top: 1px solid var(--ink);
	font-family: var(--sans);
	font-stretch: 75%;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.site-footer__col ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
.site-footer__col a {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	color: var(--gray-dark);
	font-size: 15px;
	text-decoration: none;
}
.site-footer__col a:hover { color: var(--red); text-decoration: underline; }
@media (pointer: coarse) {
	.site-footer__col a { min-height: var(--tap); }
}
.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 4px 24px;
	padding-block: 20px;
	border-top: 1px solid var(--rule);
	color: var(--gray);
	font-size: 13px;
}
.site-footer__bottom p { margin: 0; }

.business {
	margin-top: 20px;
	padding-top: 12px;
	border-top: 1px solid var(--rule);
	color: var(--gray-dark);
	font-size: 14px;
	font-style: normal;
	line-height: 1.6;
}
.business strong { color: var(--ink); }
.business a { text-decoration: none; }
.business a:hover { color: var(--red); text-decoration: underline; }
.business__line { display: block; }
