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

html { scroll-behavior: auto; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: var(--font-size);
	line-height: 1.55;
}

img, video, iframe { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible { outline: var(--focus); outline-offset: 2px; }

h1, h2, h3, .lead-title, .card-title, .mast-name {
	font-family: var(--font-head);
	line-height: 1.15;
	font-weight: 700;
	color: var(--ink);
}
.lead-title a,
.card-title a,
.mast-name { color: inherit; }

h1, .lead-title { font-size: clamp(1.35rem, 2.2vw, 1.75rem); margin: 0 0 0.4em; }
h2 { font-size: clamp(1.2rem, 2.4vw, 1.6rem); }
.mast-name { font-size: 1.5rem; letter-spacing: -0.02em; color: inherit; text-decoration: none; }

.wrap {
	width: min(100% - 1.5rem, var(--wrap));
	margin-inline: auto;
}

.skip {
	position: absolute;
	left: 0.75rem;
	top: -3rem;
	background: var(--ink);
	color: var(--paper);
	padding: 0.6rem 0.9rem;
	z-index: 100;
}
.skip:focus { top: 0.75rem; }

.site-main { padding-block: 1.25rem 2rem; }
.crumbs, .wp-block-breadcrumbs { margin: 0 0 1rem; font-size: 0.8rem; color: var(--muted); min-width: 0; }
.crumbs ol, .wp-block-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.25rem 0.4rem;
	list-style: none;
	margin: 0;
	padding: 0;
	min-width: 0;
}
.crumbs li, .wp-block-breadcrumbs li { min-width: 0; max-width: 100%; }
.crumbs li:last-child, .wp-block-breadcrumbs li:last-child {
	overflow: hidden;
	flex: 1 1 8rem;
	min-width: 0;
}
.crumbs li:last-child span, .wp-block-breadcrumbs li:last-child span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	min-width: 0;
	display: block;
}
#content { scroll-margin-top: 5.75rem; }
body.admin-bar #content { scroll-margin-top: 7.75rem; }
body.admin-bar .site-head { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 782px) {
	body.admin-bar #content { scroll-margin-top: 8.75rem; }
}
@media (max-width: 600px) {
	body.admin-bar .site-head { top: 0; }
}

.breaking {
	background: var(--accent);
	color: var(--paper);
	font-size: 0.9rem;
	min-height: 44px;
}
.breaking-row {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	min-height: 44px;
}
.breaking strong { letter-spacing: 0.04em; flex: 0 0 auto; }
.breaking-view { flex: 1; overflow: hidden; min-width: 0; }
.breaking-text {
	display: inline-flex;
	margin: 0;
	white-space: nowrap;
	animation: mynews-marquee 48s linear infinite;
}
.breaking-track {
	display: inline-flex;
	gap: 2.5rem;
	padding-right: 2.5rem;
}
.breaking a {
	color: inherit;
	text-decoration: none;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
}
.breaking a:hover,
.breaking a:focus-visible { text-decoration: underline; }
.breaking.is-paused .breaking-text,
.breaking:hover .breaking-text,
.breaking:focus-within .breaking-text { animation-play-state: paused; }
@keyframes mynews-marquee {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

.site-head {
	border-bottom: 1px solid var(--line);
	padding: 0.7rem 0;
	position: sticky;
	top: 0;
	background: var(--paper);
	z-index: 20;
}

.head-row {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.brand { flex: 1; min-width: 8rem; }
.brand img { max-height: 2.5rem; width: auto; }

.nav-toggle {
	width: 44px;
	height: 44px;
	border: 1px solid var(--line);
	background: transparent;
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
	padding: 10px;
	cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); }

.head-panel {
	display: none;
	width: 100%;
	flex-direction: column;
	gap: 0.75rem;
	padding-top: 0.5rem;
}
.head-panel.is-open { display: flex; }
.head-tools {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 44px;
	align-items: center;
	gap: 0.5rem;
	width: 100%;
}

@media (min-width: 900px) {
	.nav-toggle { display: none; }
	.head-row { flex-wrap: nowrap; }
	.head-panel {
		display: flex;
		flex-direction: row;
		align-items: center;
		width: auto;
		flex: 1 1 auto;
		min-width: 0;
		padding: 0;
		gap: 0.75rem;
	}
	.head-tools {
		width: auto;
		flex: 0 0 auto;
		margin-inline-start: auto;
		grid-template-columns: auto 44px;
	}
}

.nav-primary ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0;
}
.nav-primary a {
	color: var(--ink);
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: 0 0.25rem;
	font-weight: 600;
}
@media (min-width: 900px) {
	.nav-primary { flex: 1; min-width: 0; }
	.nav-primary ul { flex-direction: row; flex-wrap: wrap; gap: 0.5rem; }
}

.search-form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 44px;
	align-items: stretch;
	gap: 0.35rem;
	min-width: 0;
}
@media (min-width: 900px) {
	.site-head .search-form { grid-template-columns: 10rem 44px; }
}
.site-main .search-form { max-width: 28rem; margin-bottom: 1rem; }
body.search .site-main .search-form { max-width: none; width: 100%; }
.search-form input[type="search"] {
	min-height: 44px;
	width: 100%;
	min-width: 0;
	border: 1px solid var(--line);
	background: var(--paper);
	color: var(--ink);
	padding: 0 0.7rem;
	border-radius: 2px;
	appearance: none;
}

.icon-btn {
	width: 44px;
	height: 44px;
	min-width: 44px;
	min-height: 44px;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--line);
	background: transparent;
	color: var(--ink);
	cursor: pointer;
	border-radius: 2px;
	flex: 0 0 44px;
}
.theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
a.icon-btn { color: inherit; text-decoration: none; }

.btn, .btn-ghost {
	min-height: 44px;
	min-width: 44px;
	padding: 0 0.9rem;
	border: 1px solid var(--line);
	background: transparent;
	color: var(--ink);
	cursor: pointer;
	font: inherit;
	border-radius: 2px;
}
.btn {
	background: var(--accent);
	color: var(--paper);
	border-color: var(--accent);
}
.btn-ghost { background: transparent; }

.kicker {
	color: var(--accent);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin: 0 0 0.35rem;
	font-family: var(--font-body);
}

.dek, .meta { color: var(--muted); margin: 0.35rem 0; }
.meta { font-size: 0.85rem; }
.more { font-size: 0.9rem; }

.card { display: grid; gap: 0.6rem; margin: 0 0 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.card-title { font-size: 0.95rem; margin: 0; }
.card-title a { color: inherit; }
.card-media { display: block; background: var(--line); }
.card-ph { aspect-ratio: 16/9; background: var(--line); }
.card-lead .card-title { font-size: 1.15rem; }
.card-list { grid-template-columns: 7rem minmax(0, 1fr); align-items: start; }
.card-list .card-media { overflow: hidden; min-width: 0; }
.card-list .card-ph { aspect-ratio: 3/2; }
.card-list img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3/2; }
.card-rail { border: 0; margin: 0; }

.lead { margin-bottom: 1.5rem; }
.lead .card-ph, .lead img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.home-lead-grid { margin-bottom: 1.5rem; }
.home-lead-grid .lead { margin-bottom: 0; }
.home-sec .card { margin: 0; padding: 0.55rem 0; }

.home-lead-grid, .split, .rail-grid, .page-split { display: grid; gap: var(--gap); }
.rail { margin: 1.75rem 0; }
.rail-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--ink); margin-bottom: 0.9rem; }
.rail-head h2 { margin: 0; }

.most-read ol { list-style: none; margin: 0; padding: 0; }
.most-read li { display: grid; grid-template-columns: 1.5rem 1fr; gap: 0.5rem; padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.most-read a { color: inherit; }

.mn-slot {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	margin: 1rem auto;
	overflow: hidden;
}
.mn-slot-link, .mn-slot-html { display: block; width: 100%; }
.mn-slot img { width: 100%; max-width: 100%; height: auto; }
.entry .mn-slot { margin-block: 1.25em; }
.mn-slot.mn-slot-card { margin: 0; overflow: hidden; }
.rail-grid .mn-slot.mn-slot-card { height: 100%; }
.mn-slot.mn-slot-card-rail .mn-slot-link { height: 100%; }
.mn-slot.mn-slot-card-rail img {
	width: 100%;
	height: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}
.mn-slot.mn-slot-card-list {
	margin: 0 0 1rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--line);
}
.mn-slot.mn-slot-card-list img {
	width: 100%;
	height: 7.5rem;
	object-fit: cover;
}
.home-sec .mn-slot-card { margin: 0; padding: 0.55rem 0; }
.page-split > *,
.split > *,
.archive-split > *,
.home-lead-grid > * { min-width: 0; }
.ident { padding-top: 0.75rem; border-top: 1px solid var(--line); }
.ident h2 { margin: 0 0 0.6rem; }
.ident a { min-height: 44px; display: inline-flex; align-items: center; }
.form-note { margin: 0 0 0.8rem; }
body.error404 .site-main .search-form { max-width: none; width: 100%; }
body.error404 .miss { margin-bottom: 1.5rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }

.well { max-width: 42rem; min-width: 0; }
.entry { font-size: 1.05rem; overflow-wrap: break-word; }
.entry table,
.entry pre,
.entry iframe,
.entry video { max-width: 100%; }
.entry p { margin: 0 0 1.1em; }
.hero-fig { margin: 0 0 1.2rem; }
.hero-fig figcaption, .wp-element-caption { color: var(--muted); font-size: 0.85rem; margin-top: 0.4rem; }
.video-frame { margin: 1rem 0; aspect-ratio: 16/9; background: #000; }
.video-frame iframe { width: 100%; height: 100%; }

.byline { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; justify-content: space-between; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 0.6rem 0; margin: 0 0 1.2rem; }
.share { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.share .icon { width: 22px; height: 22px; }

.site-foot {
	background: var(--accent);
	color: var(--paper);
	padding: 2rem 0 1.25rem;
	margin-top: 2rem;
}
.site-foot a,
.site-foot .mast-name,
.site-foot h2 { color: inherit; }
.site-foot a:focus-visible,
.site-foot button:focus-visible,
.site-foot input:focus-visible { outline-color: var(--paper); }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot a { min-height: 44px; display: inline-flex; align-items: center; }
.site-foot .custom-logo-link { display: inline-block; }
.site-foot .custom-logo { height: 40px; width: auto; max-width: min(12rem, 100%); }
.site-foot .mast-name { margin: 0; }
.site-foot .tagline { margin: 0.55rem 0 0; max-width: 28rem; opacity: 0.88; }
.site-foot h2 {
	font-family: var(--font-body);
	font-size: 0.72rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin: 0 0 0.55rem;
}
.foot-cols { display: grid; gap: 1.5rem var(--gap); }
.foot-cols > * { min-width: 0; }
.foot-nav ul { display: flex; flex-direction: column; }
.foot-contact p { margin: 0 0 0.45rem; }
.foot-label {
	display: block;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	opacity: 0.75;
}
.foot-base {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.25rem 1rem;
	margin-top: 1.5rem;
	padding-top: 1rem;
	border-top: 1px solid color-mix(in srgb, var(--paper) 32%, transparent);
}
.foot-social { display: flex; flex-wrap: wrap; gap: 0 0.8rem; margin: 0; }
.site-foot .subscribe form { display: flex; flex-direction: column; gap: 0.4rem; align-items: stretch; }
.site-foot .subscribe label { margin: 0; font-size: 0.8rem; }
.site-foot .subscribe input[type="email"] {
	width: 100%;
	min-width: 0;
	margin: 0;
	border-color: var(--paper);
}
.site-foot .subscribe .btn { width: 100%; }
.site-foot .btn {
	background: var(--paper);
	color: var(--accent);
	border-color: var(--paper);
}
.foot-copy {
	margin: 0;
	font-size: 0.85rem;
	opacity: 0.85;
}

.contact label, .subscribe label { display: block; margin-bottom: 0.25rem; }
.contact input, .contact textarea, .subscribe input[type="email"] {
	width: 100%;
	min-height: 44px;
	border: 1px solid var(--line);
	background: var(--paper);
	color: var(--ink);
	padding: 0.4rem 0.6rem;
	margin-bottom: 0.8rem;
	border-radius: 2px;
}
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.cookie {
	position: sticky;
	bottom: 0;
	background: var(--ink);
	color: var(--paper);
	padding: 0.8rem 1rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	align-items: center;
	z-index: 30;
}
.cookie[hidden],
.cookie.is-hidden { display: none; }
body.has-cookie { padding-bottom: var(--cookie-pad, 6.5rem); }
.cookie .btn { border-color: var(--accent); color: var(--paper); }
.cookie .btn-ghost { color: var(--paper); border-color: var(--paper); }

.nav-links, .page-numbers { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 1.5rem 0; }
.page-numbers { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); color: inherit; }
.page-numbers.current { border-color: var(--ink); }

.screen-reader-text,
h2.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	font-size: 1px;
	white-space: nowrap;
}

@media (min-width: 600px) {
	.home-lead-grid { grid-template-columns: 1fr 1fr; }
	.rail-grid { grid-template-columns: 1fr 1fr; }
	.foot-cols { grid-template-columns: 1fr 1fr; }
	.foot-base { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
}

@media (min-width: 900px) {
	.home-lead-grid { grid-template-columns: 1.7fr 1fr; align-items: stretch; }
	.rail-grid { grid-template-columns: repeat(4, 1fr); }
	.archive-split .rail-grid { grid-template-columns: 1fr 1fr; }
	.split { grid-template-columns: 1.4fr 18.75rem; }
	.archive-split { grid-template-columns: 1fr 18.75rem; }
	.page-split { grid-template-columns: 1fr 1fr; }
	.ident { padding-top: 0; border-top: 0; padding-left: 1rem; border-left: 1px solid var(--line); }
	.ident a { min-height: 0; }
	.foot-cols { grid-template-columns: 1.15fr 0.85fr 1.2fr 1fr; }
	.foot-nav a { min-height: 1.7em; }
	.pin {
		position: sticky;
		top: 5.25rem;
		align-self: start;
		max-height: calc(100vh - 6rem);
		overflow: auto;
		overscroll-behavior: contain;
	}
	.pin-ad {
		overflow: visible;
		max-height: none;
	}
	body.admin-bar .pin {
		top: calc(5.25rem + var(--wp-admin--admin-bar--height, 32px));
		max-height: calc(100vh - 6rem - var(--wp-admin--admin-bar--height, 32px));
	}
	body.admin-bar .pin-ad { max-height: none; }
}

@media (min-width: 1100px) {
	.archive-split .rail-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1200px) {
	.archive-split .rail-grid { grid-template-columns: repeat(4, 1fr); }
}

.mn-slot.is-empty {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 50px;
	border: 1px dashed var(--line);
	background: var(--paper);
}
.mn-slot-empty { margin: 0; color: var(--muted); }
.mn-slot.mn-slot-card-rail.is-empty {
	min-height: 0;
	aspect-ratio: 16 / 9;
}
.mn-slot.mn-slot-card-list.is-empty {
	min-height: 7.5rem;
}

.js-slider { position: relative; }
.slider-viewport { position: relative; transition: opacity 0.2s ease; }
.js-slider.is-cross .slider-viewport { opacity: 0; }
.slide { display: none; }
.slide.is-active { display: block; }
.rail-slider .slider-viewport {
	display: grid;
	gap: var(--gap);
}
@media (min-width: 600px) {
	.rail-slider .slider-viewport { grid-template-columns: 1fr 1fr; }
	.rail-slider .slide.is-active + .slide.is-active { display: block; }
}
@media (min-width: 900px) {
	.rail-slider .slider-viewport { grid-template-columns: 1fr 1fr 1fr; }
}

.nav-primary { position: static; }
.menu-item-has-mega { position: static; }
.mega {
	display: none;
	padding: 0.75rem 0.6rem;
	background: var(--mega);
	border: 1px solid var(--line);
}
.mega-grid { display: grid; gap: var(--gap); }
.mega-all { display: inline-flex; min-height: 44px; align-items: center; font-weight: 600; }
@media (min-width: 600px) {
	.mega-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
	.menu-item-has-mega.is-open > .mega { display: block; }
	.mega {
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		z-index: 25;
		background: var(--mega);
		border: 0;
		border-top: 1px solid var(--line);
		border-bottom: 1px solid var(--line);
		padding: 1rem 0 1.25rem;
	}
	.mega-grid { grid-template-columns: repeat(4, 1fr); }
	.mega .wrap, .mega-grid, .mega-all { width: min(100% - 1.5rem, var(--wrap)); margin-inline: auto; }
	.mega-all { display: block; margin-top: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
	.breaking-text { animation: none; transform: none; }
	.slide { transition: none; }
}
