/*
Theme Name:        MRC Station
Description:       Shared theme for the Radio Central stations. Large station banner with Listen Live and On Air Now, sticky menu, news cards, and one side column. Colors and logos are set in Appearance > Customize; schedules, shows, and sponsors come from the MRC Station Tools plugin.
Author:            Shay McLaughlin
Version:           2.2.0
Requires at least: 6.5
Tested up to:      7.1
Requires PHP:      7.4
License:           GNU General Public License v2 or later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       mrc-station
Tags:              two-columns, right-sidebar, custom-colors, custom-header, custom-logo, custom-menu, widgets, accessibility-ready
*/


/* ==========================================================================
   Fonts (self-hosted, SIL Open Font License; see fonts/)
   ========================================================================== */

@font-face {
	font-family: "Oswald";
	src: url("fonts/oswald-latin.woff2") format("woff2");
	font-weight: 500 600;
	font-display: swap;
}

@font-face {
	font-family: "Inter";
	src: url("fonts/inter-latin.woff2") format("woff2");
	font-weight: 400 800;
	font-display: swap;
}

/* ==========================================================================
   Tokens. Station colors (--mrc-primary, --mrc-accent, --mrc-header-bg and
   their text colors) are printed from the Customizer in inc/customizer.php.
   ========================================================================== */

:root {
	--mrc-primary: #1b1b1b;
	--mrc-on-primary: #ffffff;
	--mrc-accent: #ff6600;
	--mrc-on-accent: #000000;
	--mrc-accent-text: #b54700;
	--mrc-link: #b54700;
	--mrc-header-bg: #000000;
	--mrc-on-header: #ffffff;
	--mrc-footer-bg: #000000;
	--mrc-on-footer: #ffffff;
	--mrc-logo-blend: lighten;
	--mrc-live: #d0142c;
	--mrc-surface: #ffffff;
	--mrc-surface-alt: #f3f3f1;
	--mrc-bg: #f3f3f1;
	--mrc-line: #e3e3df;
	--mrc-text: #1b1b1b;
	--mrc-muted: #5c5c5c;
	--mrc-focus: #0a58ca;
	--mrc-radius: 12px;
	--mrc-max: 1240px;
	--mrc-rail: 340px;
	--mrc-gap: clamp(1rem, 2.5vw, 2rem);
	--mrc-display: "Oswald", "Arial Narrow", sans-serif;
	--mrc-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ==========================================================================
   Base
   ========================================================================== */

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

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--mrc-font);
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--mrc-text);
	background-color: var(--mrc-bg);
}

img,
video,
iframe {
	max-width: 100%;
}

img {
	height: auto;
}

a {
	color: var(--mrc-link);
	text-underline-offset: 0.15em;
}

a:hover {
	text-decoration-thickness: 3px;
}

/* Visible keyboard focus everywhere. Never remove this. */
:focus-visible {
	outline: 3px solid var(--mrc-focus);
	outline-offset: 2px;
	box-shadow: 0 0 0 6px #fff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--mrc-display);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: 0.01em;
	margin: 1.5em 0 0.5em;
}

h1 {
	font-size: clamp(2rem, 4vw, 2.75rem);
}

h2 {
	font-size: clamp(1.5rem, 2.6vw, 1.9rem);
}

h3 {
	font-size: 1.35rem;
}

h4 {
	font-size: 1.15rem;
}

blockquote {
	margin: 1.5em 0;
	padding: 0.75em 1.25em;
	border-left: 5px solid var(--mrc-accent);
	background: var(--mrc-surface-alt);
	border-radius: 0 var(--mrc-radius) var(--mrc-radius) 0;
}

pre {
	overflow-x: auto;
	white-space: pre-wrap;
	padding: 1em;
	background: var(--mrc-surface-alt);
	border-radius: 8px;
}

table {
	border-collapse: collapse;
	width: 100%;
}

th,
td {
	padding: 0.55em 0.7em;
	border: 1px solid var(--mrc-line);
	text-align: left;
}

hr {
	border: 0;
	border-top: 1px solid var(--mrc-line);
	margin: 2em 0;
}

button,
input,
select,
textarea {
	font: inherit;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
textarea,
select {
	max-width: 100%;
	padding: 0.6em 0.75em;
	border: 1px solid #8a8a8a;
	border-radius: 8px;
	background: #fff;
	color: var(--mrc-text);
}

button,
input[type="submit"],
.wp-block-button__link,
.wp-element-button {
	cursor: pointer;
	padding: 0.65em 1.3em;
	border: 0;
	border-radius: 999px;
	background: var(--mrc-primary);
	color: var(--mrc-on-primary);
	font-weight: 700;
	text-decoration: none;
}

/* ==========================================================================
   Accessibility helpers
   ========================================================================== */

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link:focus {
	clip-path: none;
	height: auto;
	width: auto;
	margin: 0;
	z-index: 100000;
	top: 0.5rem;
	left: 0.5rem;
	padding: 1rem 1.5rem;
	background: #fff;
	color: #000;
	font-weight: 700;
	text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ==========================================================================
   Layout
   ========================================================================== */

.mrc-container {
	width: 100%;
	max-width: var(--mrc-max);
	margin: 0 auto;
	padding: 0 var(--mrc-gap);
}

.site-content {
	padding-bottom: calc(var(--mrc-gap) * 1.5);
}

.layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--mrc-rail);
	gap: clamp(1.5rem, 3vw, 2.5rem);
	align-items: start;
	padding-top: calc(var(--mrc-gap) * 1.25);
}

/* No side column widgets, or the Full width template: one column. */
.layout--full,
.layout:not(:has(> .rail)) {
	grid-template-columns: minmax(0, 1fr);
}

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

@media (max-width: 960px) {
	.layout {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ==========================================================================
   Announcement bar
   ========================================================================== */

.mrc-announcement {
	background: var(--mrc-accent);
	color: var(--mrc-on-accent);
	text-align: center;
	font-weight: 600;
	padding: 0.5rem 0;
}

.mrc-announcement p {
	margin: 0;
}

.mrc-announcement a {
	color: inherit;
}

/* ==========================================================================
   Station banner (masthead)
   ========================================================================== */

.masthead {
	background-color: var(--mrc-header-bg);
	background-image: radial-gradient(900px 300px at 90% 0%, color-mix(in srgb, var(--mrc-accent) 28%, transparent), transparent 65%);
	background-size: cover;
	background-position: center;
	color: var(--mrc-on-header);
}

.masthead__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	padding-top: 1.25rem;
	padding-bottom: 1.25rem;
}

.site-branding {
	margin: 0;
	line-height: 0;
	font-size: inherit;
}

.site-branding .custom-logo {
	display: block;
	height: clamp(96px, 13vw, 190px);
	width: auto;
	max-width: 100%;
	/* A JPEG logo's black box blends into a dark banner (white into a light one). */
	mix-blend-mode: var(--mrc-logo-blend);
}

.site-title {
	font-family: var(--mrc-display);
	font-size: clamp(2.25rem, 6vw, 4rem);
	font-weight: 600;
	line-height: 1;
	text-transform: uppercase;
	color: inherit;
	text-decoration: none;
}

.masthead__side {
	display: grid;
	justify-items: end;
	gap: 0.75rem;
	text-align: right;
}

.banner-now {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0;
}

.banner-now__img {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	object-position: top;
	border: 2px solid var(--mrc-accent);
}

.banner-now__label {
	display: block;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--mrc-accent);
}

.banner-tagline {
	margin: 0;
	font-family: var(--mrc-display);
	letter-spacing: 0.04em;
	opacity: 0.8;
}

/* Listen Live button (banner, menu bar) */
.btn-live {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.7rem 1.25rem;
	border-radius: 999px;
	background: var(--mrc-accent);
	color: var(--mrc-on-accent);
	font-weight: 800;
	text-decoration: none;
	white-space: nowrap;
}

.btn-live:hover {
	color: var(--mrc-on-accent);
	filter: brightness(1.08);
	text-decoration: none;
}

.btn-live--big {
	font-size: 1.2rem;
	padding: 0.95rem 1.8rem;
}

.btn-live__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: currentColor;
	flex: none;
	animation: mrc-pulse 1.8s infinite;
}

@keyframes mrc-pulse {
	50% {
		opacity: 0.35;
	}
}

@media (max-width: 960px) {
	.masthead__inner {
		flex-direction: column;
		text-align: center;
		gap: 1rem;
	}

	.masthead__side {
		justify-items: center;
		text-align: center;
	}

	.site-branding .custom-logo {
		height: auto;
		width: min(100%, 460px);
	}
}

/* ==========================================================================
   Menu bar (sticky)
   ========================================================================== */

.menubar {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--mrc-primary);
	color: var(--mrc-on-primary);
	border-bottom: 3px solid var(--mrc-accent);
}

.admin-bar .menubar {
	top: var(--wp-admin--admin-bar--height, 32px);
}

.menubar__inner {
	display: flex;
	align-items: center;
	gap: 1rem;
	min-height: 58px;
}

.menubar-sentinel {
	height: 1px;
	margin-top: -1px;
}

/* Small logo and Listen Live appear only once the banner has scrolled away. */
.menubar__logo,
.menubar__live {
	display: none;
}

.menubar.is-stuck .menubar__logo {
	display: block;
	line-height: 0;
}

.menubar.is-stuck .menubar__logo img {
	height: 40px;
	width: auto;
	mix-blend-mode: lighten;
}

.menubar__name {
	font-family: var(--mrc-display);
	font-size: 1.3rem;
	color: var(--mrc-on-primary);
	line-height: 1;
}

.menubar.is-stuck .menubar__live {
	display: inline-flex;
	margin-left: auto;
	padding: 0.5rem 1rem;
	font-size: 0.9rem;
}

.menubar ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.menubar .menu {
	flex: 1;
}

.menubar .menu a {
	display: block;
	padding: 0.55rem 0.85rem;
	border-radius: 6px;
	color: var(--mrc-on-primary);
	font-weight: 600;
	font-size: 0.97rem;
	text-decoration: none;
}

.menubar .menu a:hover,
.menubar .menu a:focus-visible {
	background: color-mix(in srgb, var(--mrc-on-primary) 12%, transparent);
}

.menubar .current-menu-item > a,
.menubar .current-menu-ancestor > a {
	box-shadow: inset 0 -3px 0 var(--mrc-accent);
	border-radius: 6px 6px 0 0;
}

.menu-toggle {
	display: none;
	align-items: center;
	gap: 0.6rem;
	margin: 0.5rem 0;
	padding: 0.5rem 0.9rem;
	border: 2px solid currentColor;
	border-radius: 8px;
	background: transparent;
	color: var(--mrc-on-primary);
}

.menu-toggle__icon,
.menu-toggle__icon::before,
.menu-toggle__icon::after {
	display: block;
	width: 1.3rem;
	height: 2px;
	background: currentColor;
	position: relative;
}

.menu-toggle__icon::before,
.menu-toggle__icon::after {
	content: "";
	position: absolute;
	left: 0;
}

.menu-toggle__icon::before {
	top: -6px;
}

.menu-toggle__icon::after {
	top: 6px;
}

@media (min-width: 961px) {
	.menubar .menu {
		display: flex;
		flex-wrap: wrap;
		gap: 0.15rem;
	}

	.menubar .menu li {
		position: relative;
	}

	.menubar .sub-menu {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		min-width: 15rem;
		padding: 0.4rem;
		background: var(--mrc-primary);
		border-top: 3px solid var(--mrc-accent);
		border-radius: 0 0 8px 8px;
		box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
	}

	/* Hover for mouse users; focus-within so keyboard users get the same menu. */
	.menubar li:hover > .sub-menu,
	.menubar li:focus-within > .sub-menu {
		display: block;
	}

	.menubar .sub-menu .sub-menu {
		top: 0;
		left: 100%;
	}
}

@media (max-width: 960px) {
	.menubar__inner {
		flex-wrap: wrap;
		justify-content: space-between;
	}

	.menu-toggle {
		display: inline-flex;
	}

	.menubar .menu {
		display: none;
		flex-basis: 100%;
		padding-bottom: 0.75rem;
	}

	.menubar.is-open .menu {
		display: block;
	}

	.menubar .sub-menu a {
		padding-left: 2rem;
	}

	/* Keep the stuck bar compact on phones: logo and name only when closed. */
	.menubar.is-stuck .menubar__logo img {
		height: 32px;
	}
}

/* ==========================================================================
   Section headings (page sections, widgets)
   ========================================================================== */

.section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.1rem;
}

.section-title,
.top-box .widget-title,
.top-box .mrc-block-title,
.top-box h2.wp-block-heading,
.above-footer .widget-title,
.above-footer .mrc-block-title,
.above-footer h2.wp-block-heading {
	position: relative;
	margin: 0 0 1rem;
	padding-bottom: 0.45rem;
	font-size: clamp(1.5rem, 2.6vw, 1.9rem);
	text-transform: uppercase;
}

.section-title::after,
.top-box .widget-title::after,
.top-box .mrc-block-title::after,
.top-box h2.wp-block-heading::after,
.above-footer .widget-title::after,
.above-footer .mrc-block-title::after,
.above-footer h2.wp-block-heading::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 48px;
	height: 4px;
	border-radius: 2px;
	background: var(--mrc-accent);
}

.top-box h2.has-text-align-center::after,
.above-footer h2.has-text-align-center::after {
	left: calc(50% - 24px);
}

/* A widget whose only block has nothing to show right now (e.g. no games). */
.widget:has(> [data-mrc-live][hidden]:only-child) {
	display: none;
}

/* Empty headings left over from old widgets would otherwise show as bars. */
.widget-title:empty,
.widget .wp-block-heading:empty {
	display: none;
}

/* ==========================================================================
   Front Page Top and Above Footer bands
   ========================================================================== */

.top-box {
	padding-top: calc(var(--mrc-gap) * 1.25);
}

.top-box .widget + .widget {
	margin-top: var(--mrc-gap);
}

.above-footer {
	background: var(--mrc-surface);
	border-top: 1px solid var(--mrc-line);
	padding: calc(var(--mrc-gap) * 1.25) 0;
}

.above-footer .widget + .widget {
	margin-top: var(--mrc-gap);
}

/* ==========================================================================
   Side column
   ========================================================================== */

.rail {
	display: grid;
	gap: 1.75rem;
	min-width: 0;
}

.rail .widget {
	min-width: 0;
	overflow-wrap: anywhere;
}

.rail .widget-title,
.rail .mrc-block-title,
.rail h2.wp-block-heading {
	margin: 0 0 0.75rem;
	padding-bottom: 0.4rem;
	border-bottom: 3px solid var(--mrc-accent);
	font-size: 1.2rem;
	text-transform: uppercase;
	text-align: left;
}

.rail ul {
	padding-left: 1.1rem;
}

/* A missing image inside a linked image block would otherwise widen the page. */
.rail .wp-block-image a {
	max-width: 100%;
}

.rail img {
	display: block;
	/* Keep oversized widget images (logos saved at full size) in proportion. */
	max-height: 220px;
	width: auto;
	object-fit: contain;
	margin-left: auto;
	margin-right: auto;
	border-radius: 8px;
}

.rail .wp-block-image,
.rail figure {
	margin: 0 0 0.75rem;
}

@media (max-width: 960px) {
	.rail {
		grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
		align-items: start;
	}
}

/* ==========================================================================
   Post cards
   ========================================================================== */

.cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
}

.card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--mrc-surface);
	border: 1px solid var(--mrc-line);
	border-radius: var(--mrc-radius);
}

.card__media {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #fff;
	display: grid;
	place-items: center;
}

.card__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* No image: the station logo on the banner color. */
.card__media--empty {
	background: var(--mrc-header-bg);
}

.card__media--empty img {
	width: 70%;
	height: 70%;
	mix-blend-mode: var(--mrc-logo-blend);
}

.card__placeholder {
	padding: 1rem;
	font-family: var(--mrc-display);
	font-size: clamp(1.5rem, 3vw, 2.25rem);
	text-transform: uppercase;
	text-align: center;
	color: var(--mrc-on-header);
}

.card__body {
	display: grid;
	gap: 0.4rem;
	align-content: start;
	padding: 1rem 1.15rem 1.25rem;
}

.card__kicker {
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--mrc-accent-text);
}

.card__title {
	margin: 0;
	font-size: 1.35rem;
}

.card__title a {
	color: var(--mrc-text);
	text-decoration: none;
}

.card__title a:hover {
	text-decoration: underline;
}

.card__excerpt {
	margin: 0;
	overflow-wrap: anywhere;
	color: var(--mrc-muted);
	font-size: 0.95rem;
}

.card time,
.entry-meta {
	font-size: 0.82rem;
	color: var(--mrc-muted);
}

.card--feature {
	grid-column: 1 / -1;
	flex-direction: row;
}

.card--feature .card__media {
	flex: 1.2;
	aspect-ratio: auto;
	min-height: 280px;
	max-height: 380px;
	background: var(--mrc-header-bg);
}

.card--feature .card__body {
	flex: 1;
	align-content: center;
	padding: 1.75rem;
}

.card--feature .card__title {
	font-size: clamp(1.6rem, 3vw, 2.1rem);
}

@media (max-width: 1100px) {
	.cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.cards {
		grid-template-columns: minmax(0, 1fr);
	}

	.card--feature {
		flex-direction: column;
	}

	.card--feature .card__media {
		min-height: 0;
		aspect-ratio: 16 / 9;
	}
}

/* ==========================================================================
   Single posts and pages
   ========================================================================== */

.entry {
	background: var(--mrc-surface);
	border: 1px solid var(--mrc-line);
	border-radius: var(--mrc-radius);
	padding: clamp(1.25rem, 3vw, 2.5rem);
}

.entry-header {
	margin-bottom: 1.5rem;
}

.entry-title {
	margin: 0.25rem 0 0.5rem;
}

.entry-thumbnail {
	margin: 0 0 1.5rem;
}

.entry-thumbnail img {
	display: block;
	width: 100%;
	border-radius: 8px;
}

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

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

.entry-content img {
	border-radius: 6px;
}

.entry-footer {
	margin-top: 2rem;
	padding-top: 1rem;
	border-top: 1px solid var(--mrc-line);
	font-size: 0.9rem;
	color: var(--mrc-muted);
}

.archive-description {
	margin-bottom: 1.25rem;
}

/* WordPress core alignment + captions */
.alignleft {
	float: left;
	margin: 0.3em 1.5em 1em 0;
}

.alignright {
	float: right;
	margin: 0.3em 0 1em 1.5em;
}

.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption,
figcaption {
	font-size: 0.88rem;
	color: var(--mrc-muted);
}

.sticky .card__title a::before {
	content: "\2605\FE0E\00a0";
	color: var(--mrc-accent-text);
}

.bypostauthor,
.gallery-caption {
	display: block;
}

/* Pagination */
.navigation .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-top: 1.5rem;
}

.navigation .page-numbers {
	display: inline-block;
	padding: 0.4rem 0.85rem;
	border: 1px solid var(--mrc-line);
	border-radius: 8px;
	background: var(--mrc-surface);
	text-decoration: none;
}

.navigation .page-numbers.current {
	background: var(--mrc-primary);
	color: var(--mrc-on-primary);
	border-color: var(--mrc-primary);
}

/* Search form */
.search-form {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 1.25rem;
}

.search-form label {
	flex: 1;
}

.search-form .search-field {
	width: 100%;
}

/* ==========================================================================
   Comments
   ========================================================================== */

.comments-area {
	margin-top: var(--mrc-gap);
}

.comment-list {
	list-style: none;
	padding: 0;
}

.comment-list .children {
	list-style: none;
}

.comment-body {
	padding: 1rem 0;
	border-bottom: 1px solid var(--mrc-line);
}

.comment-form label {
	display: block;
	font-weight: 600;
}

.comment-form input:not([type="checkbox"]):not([type="submit"]),
.comment-form textarea {
	width: 100%;
}

/* ==========================================================================
   Slideshow (Gallery block, "Slideshow" style)
   ========================================================================== */

.is-style-mrc-slideshow.is-enhanced {
	display: block !important;
	position: relative;
}

.is-style-mrc-slideshow.is-enhanced > figure {
	width: 100% !important;
	margin: 0 !important;
}

.is-style-mrc-slideshow.is-enhanced > figure:not(.is-current) {
	display: none !important;
}

.is-style-mrc-slideshow.is-enhanced img {
	width: 100%;
	height: auto !important;
	border-radius: var(--mrc-radius);
}

.mrc-slideshow-controls {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	margin: 0.6rem 0 0;
}

.mrc-slideshow-controls button {
	min-width: 2.75rem;
	min-height: 2.75rem;
	padding: 0.4em 0.9em;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
	background: var(--mrc-footer-bg);
	color: color-mix(in srgb, var(--mrc-on-footer) 82%, transparent);
	padding: 3rem 0 1.5rem;
	font-size: 0.95rem;
}

.site-footer a {
	color: var(--mrc-on-footer);
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr));
	gap: 2rem;
}

.footer-logo {
	display: block;
	height: 56px;
	width: auto;
	margin-bottom: 0.75rem;
}

.footer-brand p {
	margin: 0 0 0.5rem;
}

.site-footer .widget-title,
.site-footer h2 {
	margin: 0 0 0.75rem;
	font-family: var(--mrc-font);
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--mrc-on-footer);
}

/* Old footer content used h5/h6 for plain lines; keep them body-sized. */
.site-footer h3,
.site-footer h4,
.site-footer h5,
.site-footer h6 {
	margin: 0 0 0.35rem;
	font-family: var(--mrc-font);
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0;
	text-align: left !important;
}

.site-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.35rem;
}

.site-footer li {
	text-align: left !important;
}

.footer-menu {
	display: flex !important;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	margin-top: 2rem !important;
}

.site-info {
	margin-top: 2.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid color-mix(in srgb, var(--mrc-on-footer) 18%, transparent);
	font-size: 0.82rem;
}

.site-info p {
	margin: 0;
}

@media (max-width: 1100px) {
	.footer-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.footer-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Nothing found, and the front-page welcome while there are no posts. */
.no-results {
	padding: clamp(1.25rem, 3vw, 2rem);
	background: var(--mrc-surface);
	border: 1px solid var(--mrc-line);
	border-radius: var(--mrc-radius);
}

.no-results > :first-child {
	margin-top: 0;
}

.no-results > :last-child {
	margin-bottom: 0;
}

.no-results__title {
	margin: 0 0 0.5rem;
	font-family: var(--mrc-display);
	font-size: clamp(1.5rem, 3.5vw, 2rem);
	font-weight: 600;
	line-height: 1.15;
	text-transform: uppercase;
}

.no-results--welcome {
	position: relative;
	overflow: hidden;
	padding: clamp(1.75rem, 5vw, 3rem);
	text-align: center;
	color: var(--mrc-on-primary);
	background: var(--mrc-primary);
	background-image: radial-gradient(ellipse at top, rgba(255, 255, 255, 0.12), transparent 70%);
	border: 0;
	border-top: 4px solid var(--mrc-accent);
}

.no-results__icon {
	display: block;
	margin: 0 auto 0.75rem;
	color: var(--mrc-accent);
}

.no-results__eyebrow {
	margin: 0 0 0.5rem;
	color: var(--mrc-accent);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.no-results--welcome .no-results__title {
	font-size: clamp(1.9rem, 5vw, 2.75rem);
}

.no-results__text {
	max-width: 34em;
	margin: 0 auto 1.5rem;
	opacity: 0.85;
}

.no-results--welcome a:not(.btn-live) {
	color: inherit;
}

/* Front Page Welcome: widgets shown in place of the welcome card. */
.front-feature > .widget + .widget {
	margin-top: 1.25rem;
}

.front-feature .widget-title,
.front-feature .mrc-block-title {
	margin: 0 0 0.75rem;
	font-size: 1.2rem;
	text-transform: uppercase;
}

/* Front Page Grid: two columns of widgets under the welcome card. */
.front-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.25rem;
	align-items: start;
	margin-top: 1.25rem;
}

.front-grid .widget {
	min-width: 0;
	overflow-wrap: anywhere;
}

.front-grid .widget-title,
.front-grid .mrc-block-title,
.front-grid h2.wp-block-heading {
	margin: 0 0 0.75rem;
	padding-bottom: 0.4rem;
	border-bottom: 3px solid var(--mrc-accent);
	font-size: 1.2rem;
	text-transform: uppercase;
	text-align: left;
}

.front-grid img {
	display: block;
	max-width: 100%;
	height: auto;
	margin-right: auto;
	margin-left: auto;
	border-radius: 8px;
}

.front-grid .wp-block-image,
.front-grid figure {
	margin: 0 0 0.75rem;
}

.section-head--after {
	margin-top: calc(var(--mrc-gap) * 1.5);
}

@media (max-width: 600px) {
	.front-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ==========================================================================
   Printing: just the page content, black on white.
   ========================================================================== */

@media print {
	@page {
		margin: 1.5cm;
	}

	.skip-link,
	.mrc-announcement,
	.masthead,
	.menubar,
	.menubar-sentinel,
	.top-box,
	.rail,
	.above-footer,
	.site-footer,
	.entry-footer,
	.comments-area,
	.btn-live,
	#wpadminbar {
		display: none !important;
	}

	html,
	body {
		margin: 0 !important;
		background: #fff !important;
		color: #000 !important;
		font-size: 11pt;
	}

	.mrc-container,
	.layout {
		display: block;
		max-width: none;
		margin: 0;
		padding: 0;
	}

	.site-content {
		padding: 0;
	}

	.entry {
		padding: 0;
		border: 0;
		box-shadow: none;
		background: none;
	}

	.entry-title {
		margin-top: 0;
		font-size: 20pt;
	}

	a {
		color: #000;
		text-decoration: none;
	}
}
