/* ==========================================================================
   Rocky Mountain Journal theme
   Tokens come from the approved mockup: dark #2C3340, green #2a4a1a, white.
   ========================================================================== */

@font-face {
	font-family: 'Inter';
	src: url('../fonts/inter-var-latin.woff') format('woff');
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Libre Baskerville';
	src: url('../fonts/librebaskerville-var-latin.woff') format('woff');
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}

:root {
	--rmj-dark: #2C3340;
	--rmj-green: #2a4a1a;
	--rmj-white: #ffffff;
	--rmj-ink: #1a1a1a;
	--rmj-mist: #f4f4f2;
	--rmj-slate: #6b7280;
	--rmj-rule: #d9d9d5;
	--rmj-line-on-dark: rgba(255, 255, 255, 0.18);
	--rmj-max: 1240px;
	--rmj-text: 760px;
	--rmj-gutter: 24px;
	--rmj-serif: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
	--rmj-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

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

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

body {
	margin: 0;
	font-family: var(--rmj-sans);
	font-size: 16px;
	line-height: 1.5;
	color: var(--rmj-ink);
	background: var(--rmj-white);
	-webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
button, input { font: inherit; }
h1, h2, h3, h4 { text-wrap: balance; }

:focus-visible { outline: 2px solid var(--rmj-green); outline-offset: 2px; }
.rmj-utility :focus-visible,
.rmj-header :focus-visible,
.rmj-snowband :focus-visible,
.rmj-newsletter :focus-visible,
.rmj-footer :focus-visible { outline-color: #ffffff; }

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

.rmj-skip {
	position: absolute; left: 8px; top: -60px; z-index: 100;
	background: var(--rmj-green); color: #fff; padding: 12px 18px; font-weight: 600;
}
.rmj-skip:focus { top: 8px; }

.rmj-main { display: block; outline: none; }

.rmj-wrap {
	width: 100%;
	max-width: var(--rmj-max);
	margin-inline: auto;
	padding-inline: var(--rmj-gutter);
}
.rmj-wrap--text { max-width: calc(var(--rmj-text) + var(--rmj-gutter) * 2); }
.rmj-wrap--results { max-width: calc(900px + var(--rmj-gutter) * 2); }

.rmj-stack { display: flex; flex-direction: column; gap: 56px; }
.rmj-stack--md { gap: 32px; }

.rmj-band--top { padding-block: 32px 56px; }

.rmj-empty { color: var(--rmj-ink); font-size: 17px; }

/* --------------------------------------------------------------------------
   Buttons and forms
   -------------------------------------------------------------------------- */
.rmj-btn {
	display: inline-flex; align-items: center; justify-content: center;
	height: 48px; padding: 0 24px;
	border: 2px solid #ffffff;
	background: var(--rmj-green); color: #ffffff;
	font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
	cursor: pointer; text-decoration: none;
}
.rmj-btn:hover { text-decoration: none; background: #1f3714; }
.rmj-btn--dark { background: var(--rmj-dark); }
.rmj-btn--dark:hover { background: #20252e; }
.rmj-btn--ghost { background: transparent; height: auto; padding: 10px 16px; font-size: 13px; }
.rmj-btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }

.rmj-searchform { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; }
.rmj-searchform__input,
.rmj-newsletter__input {
	flex: 1 1 240px; min-width: 0;
	height: 48px; padding: 0 14px;
	border: 0; border-radius: 0;
	font-size: 15px; color: var(--rmj-ink); background: #ffffff;
}
.rmj-searchwrap { max-width: 640px; margin-top: 8px; }
.rmj-searchwrap .rmj-searchform__input { border: 1px solid var(--rmj-dark); }
.rmj-searchwrap .rmj-btn { border-color: var(--rmj-green); }

/* --------------------------------------------------------------------------
   Utility strip
   -------------------------------------------------------------------------- */
.rmj-utility { background: var(--rmj-green); color: #ffffff; font-size: 12px; letter-spacing: 0.04em; }
.rmj-utility__inner {
	max-width: var(--rmj-max); margin-inline: auto; padding: 8px var(--rmj-gutter);
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px;
}
.rmj-utility__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.rmj-utility__nav { display: block; }

/* --------------------------------------------------------------------------
   Header and navigation
   -------------------------------------------------------------------------- */
.rmj-header { position: relative; z-index: 50; background: var(--rmj-dark); color: #ffffff; }
.rmj-header__inner {
	max-width: var(--rmj-max); margin-inline: auto; padding: 14px var(--rmj-gutter);
	display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px;
}

.rmj-brand { display: flex; align-items: center; gap: 12px; color: #ffffff; flex: 0 1 auto; min-width: 0; }
.rmj-brand:hover { text-decoration: none; }
.rmj-brand__mark { width: 76px; height: auto; flex: 0 0 auto; }
.rmj-brand__name {
	font-family: var(--rmj-serif); font-weight: 700; font-size: 20px; line-height: 1.05;
	letter-spacing: 0.02em; text-transform: uppercase;
}

.rmj-nav { flex: 1 1 auto; min-width: 0; }
.rmj-nav__list {
	list-style: none; margin: 0; padding: 0;
	display: flex; justify-content: flex-end; gap: 2px;
	font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
}
.rmj-nav__item { position: relative; display: flex; align-items: stretch; }
.rmj-nav__link { display: flex; align-items: center; padding: 10px 10px; color: #ffffff; }
.rmj-nav__link:hover { text-decoration: none; background: rgba(255, 255, 255, 0.1); }
.rmj-nav__item.menu-item-has-children > .rmj-nav__link { padding-right: 4px; }

.rmj-nav__list > .current-menu-item,
.rmj-nav__list > .current-menu-ancestor,
.rmj-nav__list > .current-menu-parent,
.rmj-nav__list > .current-category-ancestor { background: var(--rmj-green); }

.rmj-subtoggle {
	display: flex; align-items: center; justify-content: center;
	width: 26px; padding: 0; border: 0; background: transparent; color: #ffffff; cursor: pointer;
}
.rmj-subtoggle:hover { background: rgba(255, 255, 255, 0.1); }
.rmj-subtoggle svg { transition: transform 0.15s ease; }
.rmj-nav__item.is-open > .rmj-subtoggle svg { transform: rotate(180deg); }

.rmj-submenu {
	display: none; position: absolute; top: 100%; left: 0; z-index: 40;
	min-width: 240px; margin: 0; padding: 6px 0; list-style: none;
	background: var(--rmj-dark); border-top: 3px solid var(--rmj-green);
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}
.rmj-submenu .rmj-nav__item { display: block; }
.rmj-submenu .rmj-nav__link { display: block; padding: 12px 18px; }
.rmj-submenu .rmj-nav__link:hover { background: var(--rmj-green); }
.rmj-nav__item:hover > .rmj-submenu,
.rmj-nav__item:focus-within > .rmj-submenu,
.rmj-nav__item.is-open > .rmj-submenu { display: block; }

.rmj-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.rmj-iconbtn {
	display: flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: #ffffff; cursor: pointer;
}
.rmj-iconbtn:hover { background: rgba(255, 255, 255, 0.1); }
.rmj-burger { display: none; }

.rmj-search-panel { border-top: 1px solid var(--rmj-line-on-dark); }
.rmj-search-panel__inner { max-width: var(--rmj-max); margin-inline: auto; padding: 16px var(--rmj-gutter) 20px; }

/* Slightly tighter menu on narrow desktops so all seven sections stay on one row */
@media (min-width: 1181px) and (max-width: 1239px) {
	.rmj-nav__list { gap: 0; font-size: 12px; letter-spacing: 0.04em; }
	.rmj-nav__link { padding: 10px 7px; }
	.rmj-subtoggle { width: 22px; }
}

/* Collapse to the hamburger below 1180px */
@media (max-width: 1180px) {
	.rmj-burger { display: flex; }
	.rmj-nav {
		display: none; order: 3; flex: 0 0 100%;
		margin-top: 12px; padding: 6px 0 14px; border-top: 1px solid var(--rmj-line-on-dark);
	}
	.rmj-header.is-menu-open .rmj-nav { display: block; }
	.rmj-nav__list {
		flex-direction: column; justify-content: flex-start; gap: 0;
		font-size: 15px; font-weight: 600; letter-spacing: 0.08em; white-space: normal;
	}
	.rmj-nav__item { flex-wrap: wrap; border-bottom: 1px solid var(--rmj-line-on-dark); }
	.rmj-nav__item .rmj-nav__link,
	.rmj-nav__item.menu-item-has-children > .rmj-nav__link { flex: 1 1 auto; padding: 14px 0; }
	.rmj-nav__link:hover { background: transparent; text-decoration: underline; }
	.rmj-subtoggle { width: 44px; flex: 0 0 44px; }
	.rmj-nav__list > .current-menu-item,
	.rmj-nav__list > .current-menu-ancestor,
	.rmj-nav__list > .current-menu-parent,
	.rmj-nav__list > .current-category-ancestor { background: transparent; box-shadow: inset 3px 0 0 #ffffff; padding-left: 12px; }

	.rmj-submenu {
		position: static; display: none; flex: 0 0 100%; width: 100%;
		min-width: 0; padding: 2px 0 6px 16px; border-top: 0; box-shadow: none;
		background: rgba(255, 255, 255, 0.07);
	}
	.rmj-submenu .rmj-nav__item { border-bottom: 0; }
	.rmj-submenu .rmj-nav__link { padding: 12px 0; font-size: 14px; font-weight: 500; }
	.rmj-nav__item:hover > .rmj-submenu,
	.rmj-nav__item:focus-within > .rmj-submenu { display: none; }
	.rmj-nav__item.is-open > .rmj-submenu { display: block; }
}
@media (max-width: 520px) {
	.rmj-header__inner { gap: 0 8px; padding-block: 10px; }
	.rmj-brand { gap: 8px; }
	.rmj-brand__mark { width: 52px; }
	.rmj-brand__name { font-size: 14px; }
	.rmj-actions { gap: 0; }
	.rmj-iconbtn { width: 42px; }
}
@media (max-width: 340px) {
	.rmj-brand__mark { width: 42px; }
	.rmj-brand__name { font-size: 12px; }
}

/* --------------------------------------------------------------------------
   Media (images and placeholders)
   -------------------------------------------------------------------------- */
.rmj-media { display: block; position: relative; overflow: hidden; background: var(--rmj-dark); aspect-ratio: 3 / 2; }
.rmj-media--16x9 { aspect-ratio: 16 / 9; }
.rmj-media--3x2 { aspect-ratio: 3 / 2; }
.rmj-media--4x3 { aspect-ratio: 4 / 3; }
.rmj-media--2x1 { aspect-ratio: 2 / 1; }
.rmj-media--1x1 { aspect-ratio: 1 / 1; }
.rmj-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

.rmj-ph { position: absolute; inset: 0; display: block; }
.rmj-ph svg { display: block; width: 100%; height: 100%; }
.rmj-ph--dark { background: var(--rmj-dark); }
.rmj-ph--dark path { fill: var(--rmj-green); }
.rmj-ph--green { background: var(--rmj-green); }
.rmj-ph--green path { fill: var(--rmj-dark); }

/* --------------------------------------------------------------------------
   Type bits shared by cards
   -------------------------------------------------------------------------- */
.rmj-cat {
	align-self: flex-start;
	font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rmj-green);
}
.rmj-cat--sm { font-size: 11px; }
.rmj-cat--lg { font-size: 13px; }
.rmj-meta { font-size: 13px; color: var(--rmj-slate); }
.rmj-meta--sm { font-size: 12px; }

.rmj-sechead { display: flex; align-items: center; gap: 16px; }
.rmj-sechead__tab {
	margin: 0; padding: 8px 16px; background: var(--rmj-green); color: #ffffff;
	font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap;
}
.rmj-sechead__rule { flex: 1 1 auto; height: 1px; background: var(--rmj-dark); }
.rmj-sechead__all { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }

/* --------------------------------------------------------------------------
   Homepage: lead and rail
   -------------------------------------------------------------------------- */
.rmj-top { display: flex; flex-wrap: wrap; gap: 32px; }
.rmj-latest { display: flex; flex-direction: column; gap: 20px; }

.rmj-hero { flex: 2 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.rmj-hero__body { display: flex; flex-direction: column; gap: 10px; }
.rmj-hero__title {
	margin: 0; font-family: var(--rmj-serif); font-size: 38px; line-height: 1.18; font-weight: 700;
}
.rmj-hero__dek { margin: 0; max-width: 62ch; font-size: 17px; line-height: 1.55; }

.rmj-rail { flex: 1 1 320px; min-width: 0; border-top: 3px solid var(--rmj-dark); }
.rmj-side { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--rmj-rule); }
.rmj-side__media { flex: 0 0 112px; align-self: flex-start; }
.rmj-side__body { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.rmj-side__title { margin: 0; font-family: var(--rmj-serif); font-size: 17px; line-height: 1.3; font-weight: 700; }

/* Grid of cards (Latest Stories, related, archives) */
.rmj-grid { display: grid; gap: 28px; }
.rmj-grid--4 { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.rmj-grid--3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.rmj-card { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.rmj-card__title { margin: 0; font-family: var(--rmj-serif); font-size: 18px; line-height: 1.3; font-weight: 700; }

/* --------------------------------------------------------------------------
   Snow Report band
   -------------------------------------------------------------------------- */
.rmj-snowband { background: var(--rmj-dark); color: #ffffff; padding: 48px var(--rmj-gutter); }
.rmj-snowband__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.rmj-snowband__season { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.85; }
.rmj-snowband__title { margin: 0; font-family: var(--rmj-serif); font-size: 30px; font-weight: 700; }
.rmj-snowband__note { margin: 0; font-size: 12px; opacity: 0.85; }
.rmj-snowgrid { display: flex; flex-wrap: wrap; gap: 20px; }
.rmj-snowcard { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: 20px; background: #ffffff; color: var(--rmj-ink); }
.rmj-snowcard__name { margin: 0; font-size: 17px; font-weight: 600; }
.rmj-snowcard__sub { font-size: 12px; color: var(--rmj-slate); }
.rmj-snowcard__stats { display: flex; gap: 20px; margin: 0; }
.rmj-snowcard__stats > div { display: flex; flex-direction: column-reverse; }
.rmj-snowcard__stats dt { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rmj-slate); }
.rmj-snowcard__stats dd { margin: 0; font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rmj-snowcard.is-fresh .rmj-snowcard__stats > div:nth-child(2) dd { color: var(--rmj-green); }

/* --------------------------------------------------------------------------
   Section fronts
   -------------------------------------------------------------------------- */
.rmj-fronts { background: var(--rmj-mist); padding: 56px var(--rmj-gutter); }
.rmj-fronts__grid { display: flex; flex-wrap: wrap; gap: 48px 40px; padding-inline: 0; }
.rmj-front { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.rmj-front--full { flex: 1 1 100%; }

.rmj-lead { display: flex; flex-direction: column; background: #ffffff; }
.rmj-lead__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; }
.rmj-lead__title { margin: 0; font-family: var(--rmj-serif); font-size: 21px; line-height: 1.28; font-weight: 700; }
.rmj-brief { display: flex; flex-direction: column; gap: 6px; padding: 16px 20px; background: #ffffff; }
.rmj-brief__title { margin: 0; font-family: var(--rmj-serif); font-size: 16px; line-height: 1.3; font-weight: 700; }

.rmj-tiles { display: flex; flex-wrap: wrap; gap: 20px; }
.rmj-tile { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; background: #ffffff; }
.rmj-tile__body { display: flex; flex-direction: column; gap: 8px; padding: 16px 20px 20px; }
.rmj-tile__title { margin: 0; font-family: var(--rmj-serif); font-size: 18px; line-height: 1.3; font-weight: 700; }

/* --------------------------------------------------------------------------
   Ad slots
   -------------------------------------------------------------------------- */
.rmj-ad { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.rmj-ad--full { flex: 1 1 100%; }
.rmj-ad__label { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rmj-ink); }
.rmj-ad__box { display: flex; justify-content: center; align-items: center; width: 100%; max-width: 970px; min-width: 0; overflow: hidden; text-align: center; }
.rmj-ad__box--empty { min-height: 120px; padding: 16px; border: 1px dashed var(--rmj-slate); background: #ffffff; font-size: 13px; color: var(--rmj-ink); }
.rmj-ad__widget { width: 100%; }
.rmj-ad--inline { margin: 32px 0; }

/* --------------------------------------------------------------------------
   Newsletter and footer
   -------------------------------------------------------------------------- */
.rmj-newsletter { background: var(--rmj-green); color: #ffffff; padding: 48px var(--rmj-gutter); }
.rmj-newsletter__inner { max-width: var(--rmj-max); margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.rmj-newsletter__copy { flex: 1 1 380px; min-width: 0; }
.rmj-newsletter__title { margin: 0 0 8px; font-family: var(--rmj-serif); font-size: 28px; line-height: 1.2; font-weight: 700; }
.rmj-newsletter__copy p { margin: 0; max-width: 52ch; font-size: 15px; line-height: 1.5; }
.rmj-newsletter__form { flex: 1 1 380px; min-width: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.rmj-newsletter__note { flex: 1 1 380px; margin: 0; font-size: 13px; }
.rmj-newsletter__note a { text-decoration: underline; }

.rmj-footer { background: var(--rmj-dark); color: #ffffff; padding: 48px var(--rmj-gutter) 32px; }
.rmj-footer__inner { max-width: var(--rmj-max); margin-inline: auto; display: flex; flex-direction: column; gap: 32px; }
.rmj-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px 48px; }
.rmj-footer__about { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.rmj-footer__about p { margin: 0; max-width: 44ch; font-size: 14px; line-height: 1.55; opacity: 0.9; }
.rmj-footer__brand { display: flex; align-items: center; gap: 12px; font-family: var(--rmj-serif); font-weight: 700; font-size: 18px; letter-spacing: 0.02em; text-transform: uppercase; }
.rmj-footer__brand:hover { text-decoration: none; }
.rmj-footer__mark { width: 72px; height: auto; flex: 0 0 auto; }
.rmj-footer__col { flex: 0 1 160px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.rmj-footer__head { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.85; }
.rmj-footer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rmj-footer__bottom { padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.35); font-size: 12px; }

/* --------------------------------------------------------------------------
   Article
   -------------------------------------------------------------------------- */
.rmj-article__head { display: flex; flex-direction: column; gap: 14px; padding-top: 32px; padding-bottom: 24px; }
.rmj-article__title { margin: 0; font-family: var(--rmj-serif); font-size: 42px; line-height: 1.15; font-weight: 700; }
.rmj-article__dek { margin: 0; font-size: 20px; line-height: 1.5; }
.rmj-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 14px; color: var(--rmj-slate); }
.rmj-byline a { color: var(--rmj-ink); font-weight: 600; }

.rmj-breadcrumbs { font-size: 13px; color: var(--rmj-slate); }
.rmj-breadcrumbs a { color: var(--rmj-ink); }
.rmj-breadcrumbs .breadcrumb_last { color: var(--rmj-slate); }

.rmj-article__figure { margin-block: 8px 32px; }
.rmj-article__figure figcaption { padding-top: 10px; font-size: 13px; color: var(--rmj-slate); }

.rmj-prose { font-size: 18px; line-height: 1.7; overflow-wrap: break-word; }
.rmj-prose > * { max-width: 100%; }
.rmj-prose p { margin: 0 0 1.25em; }
.rmj-prose h2 { margin: 1.8em 0 0.6em; font-family: var(--rmj-serif); font-size: 26px; line-height: 1.25; }
.rmj-prose h3 { margin: 1.6em 0 0.5em; font-family: var(--rmj-serif); font-size: 21px; line-height: 1.3; }
.rmj-prose h4 { margin: 1.4em 0 0.4em; font-size: 18px; }
.rmj-prose a:not([class]) { color: var(--rmj-green); text-decoration: underline; text-underline-offset: 2px; }
.rmj-prose ul, .rmj-prose ol { margin: 0 0 1.25em; padding-left: 1.4em; }
.rmj-prose li { margin-bottom: 0.4em; }
.rmj-prose blockquote {
	margin: 2em 0; padding: 1em 0; border-block: 1px solid var(--rmj-dark);
	font-family: var(--rmj-serif); font-size: 22px; line-height: 1.45;
}
.rmj-prose blockquote p { margin: 0; }
.rmj-prose blockquote cite { display: block; margin-top: 0.8em; font-family: var(--rmj-sans); font-size: 14px; font-style: normal; color: var(--rmj-slate); }
.rmj-prose figure { margin: 2em 0; }
.rmj-prose figcaption, .rmj-prose .wp-element-caption { margin-top: 8px; font-size: 13px; line-height: 1.4; color: var(--rmj-slate); }
.rmj-prose img { display: block; }
.rmj-prose .alignleft { float: left; margin: 0.3em 1.5em 1em 0; }
.rmj-prose .alignright { float: right; margin: 0.3em 0 1em 1.5em; }
.rmj-prose .aligncenter { margin-inline: auto; }
.rmj-prose .alignwide, .rmj-prose .alignfull { max-width: 100%; }
/* Article tables only; leave the Snow Report plugin's own table styling alone. */
.rmj-prose table:not(.rmj-sb-table) { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.rmj-prose table:not(.rmj-sb-table) th, .rmj-prose table:not(.rmj-sb-table) td { padding: 8px 10px; border-bottom: 1px solid var(--rmj-rule); text-align: left; }
.rmj-prose table:not(.rmj-sb-table) th { background: var(--rmj-mist); }
.rmj-prose pre { overflow-x: auto; padding: 16px; background: var(--rmj-mist); font-size: 14px; line-height: 1.5; }
.rmj-prose iframe, .rmj-prose video { max-width: 100%; }
.rmj-prose hr { margin: 2.5em 0; border: 0; border-top: 1px solid var(--rmj-rule); }
.rmj-prose::after { content: ''; display: block; clear: both; }
.rmj-prose--wide { max-width: none; }
.rmj-prose .rmj-ad { font-size: 16px; line-height: 1.4; }
.rmj-pagelinks { display: flex; gap: 8px; margin: 24px 0; font-size: 15px; }

.rmj-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 32px 0 0; padding: 0; }
.rmj-tags a, .rmj-pills a {
	display: inline-block; padding: 6px 14px; border: 1px solid var(--rmj-dark);
	font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
}
.rmj-tags a:hover, .rmj-pills a:hover { background: var(--rmj-dark); color: #ffffff; text-decoration: none; }
.rmj-pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 8px 0 0; padding: 0; }

.rmj-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--rmj-rule); font-size: 13px; font-weight: 600; }
.rmj-share__label { letter-spacing: 0.1em; text-transform: uppercase; }
.rmj-share a, .rmj-share__copy {
	padding: 6px 12px; border: 1px solid var(--rmj-dark); background: transparent; color: var(--rmj-ink);
	font-size: 13px; font-weight: 600; cursor: pointer;
}
.rmj-share a:hover, .rmj-share__copy:hover { background: var(--rmj-dark); color: #ffffff; text-decoration: none; }

.rmj-author { display: flex; gap: 16px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--rmj-rule); }
.rmj-author__avatar { width: 72px; height: 72px; border-radius: 50%; flex: 0 0 auto; }
.rmj-author__name { font-family: var(--rmj-serif); font-size: 18px; font-weight: 700; }
.rmj-author p { margin: 6px 0 0; font-size: 15px; line-height: 1.55; }

.rmj-related { margin-top: 56px; padding: 48px var(--rmj-gutter) 56px; border-top: 1px solid var(--rmj-rule); }

/* Comments */
.rmj-comments-wrap { margin-top: 48px; padding-bottom: 56px; }
.rmj-comments__title { font-family: var(--rmj-serif); font-size: 24px; }
.rmj-comments__list { list-style: none; margin: 0; padding: 0; }
.rmj-comments__list .comment-body { padding: 18px 0; border-bottom: 1px solid var(--rmj-rule); font-size: 15px; }
.rmj-comments__list .children { list-style: none; padding-left: 28px; }
.rmj-comments__list .avatar { border-radius: 50%; margin-right: 10px; vertical-align: middle; }
.rmj-comments .comment-form { display: grid; gap: 14px; margin-top: 24px; }
.rmj-comments .comment-form input[type='text'],
.rmj-comments .comment-form input[type='email'],
.rmj-comments .comment-form input[type='url'],
.rmj-comments .comment-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--rmj-dark); font-size: 15px; }
.rmj-comments .form-submit input[type='submit'] {
	height: 48px; padding: 0 24px; border: 2px solid var(--rmj-green); background: var(--rmj-green); color: #ffffff;
	font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer;
}

/* --------------------------------------------------------------------------
   Pages, archives, search
   -------------------------------------------------------------------------- */
.rmj-page__head { display: flex; flex-direction: column; gap: 14px; padding-top: 32px; padding-bottom: 24px; }
.rmj-page__title { margin: 0; font-family: var(--rmj-serif); font-size: 40px; line-height: 1.15; font-weight: 700; }
.rmj-page .rmj-wrap:last-child { padding-bottom: 56px; }
.rmj-page--wide .rmj-prose { font-size: 16px; }

.rmj-archive__head { display: flex; flex-direction: column; gap: 14px; }
.rmj-archive__title { margin: 0; font-family: var(--rmj-serif); font-size: 42px; line-height: 1.1; font-weight: 700; }
.rmj-archive__title span::before { content: ''; display: block; width: 56px; height: 5px; margin-bottom: 16px; background: var(--rmj-green); }
.rmj-archive__desc { margin: 0; max-width: 62ch; font-size: 18px; line-height: 1.55; }
.rmj-archive__desc p { margin: 0; }

.rmj-rows { display: flex; flex-direction: column; }
.rmj-row { display: flex; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--rmj-rule); }
.rmj-row__media { flex: 0 0 260px; align-self: flex-start; }
.rmj-row__body { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.rmj-row__title { margin: 0; font-family: var(--rmj-serif); font-size: 22px; line-height: 1.25; font-weight: 700; }
.rmj-row__dek { margin: 0; font-size: 16px; line-height: 1.55; }

.pagination { margin-top: 8px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--rmj-dark); font-size: 14px; font-weight: 600; }
.pagination a.page-numbers:hover { background: var(--rmj-dark); color: #ffffff; text-decoration: none; }
.pagination .page-numbers.current { background: var(--rmj-dark); color: #ffffff; }
.pagination .page-numbers.dots { border-color: transparent; }

/* --------------------------------------------------------------------------
   Small screens
   -------------------------------------------------------------------------- */
@media (max-width: 760px) {
	:root { --rmj-gutter: 16px; }
	.rmj-band--top { padding-block: 24px 40px; }
	.rmj-stack { gap: 40px; }
	.rmj-hero__title { font-size: 30px; }
	.rmj-article__title { font-size: 32px; }
	.rmj-article__dek { font-size: 18px; }
	.rmj-archive__title, .rmj-page__title { font-size: 34px; }
	.rmj-prose { font-size: 17px; }
	.rmj-row { flex-direction: column; gap: 14px; }
	.rmj-row__media { flex: 0 0 auto; width: 100%; }
	.rmj-front { flex-basis: 100%; }
	.rmj-fronts { padding-block: 40px; }
	.rmj-snowband, .rmj-newsletter { padding-block: 40px; }
	.rmj-sechead__rule { display: none; }
	.rmj-sechead { justify-content: space-between; }
	.rmj-grid--3, .rmj-grid--4 { grid-template-columns: 1fr; }
	.rmj-grid { gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}


/* ---------- Support / donate button ---------- */
.rmj-donate {
	display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 2px solid transparent;
	font: 700 13px/1 var(--rmj-sans); letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
	transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.rmj-donate svg { flex: 0 0 auto; }
/* On dark surfaces (header, footer, mobile panel): white button, green text. */
.rmj-donate--utility, .rmj-donate--footer, .rmj-donate--panel { background: #ffffff; color: var(--rmj-green); }
.rmj-donate--utility:hover, .rmj-donate--footer:hover, .rmj-donate--panel:hover { background: var(--rmj-mist); color: var(--rmj-green); }
.rmj-donate--utility { height: 26px; padding: 0 12px; font-size: 11px; letter-spacing: 0.08em; margin-left: auto; margin-right: 16px; border-width: 0; }
.rmj-donate--utility svg { width: 13px; height: 13px; }
.rmj-donate--footer { margin-top: 16px; }
/* On light surfaces (end of article): green button. */
.rmj-donate--box { background: var(--rmj-green); color: #ffffff; height: 46px; padding: 0 22px; }
.rmj-donate--box:hover { background: var(--rmj-dark); color: #ffffff; }
.rmj-donate-icon { display: none; color: #ffffff; }
.rmj-donate-icon:hover { color: #ffffff; }
.rmj-donate--panel { display: none; }

.rmj-support {
	display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 40px 0 0; padding: 24px 28px;
	background: var(--rmj-mist); border-left: 5px solid var(--rmj-green);
}
.rmj-support__title { margin: 0 0 6px; font: 700 20px/1.25 var(--rmj-serif); }
.rmj-support p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--rmj-ink); }

/* Utility-bar button shows on desktop only; smaller screens use the heart in the masthead. */
@media (max-width: 1180px) {
	.rmj-donate--utility { display: none; }
	.rmj-donate-icon { display: inline-flex; }
	.rmj-header.is-menu-open .rmj-donate--panel { display: flex; justify-content: center; margin: 12px var(--rmj-gutter) 16px; height: 46px; }
}
@media (max-width: 640px) {
	.rmj-support { flex-direction: column; align-items: stretch; padding: 20px; }
	.rmj-donate--box { justify-content: center; }
}
@media (max-width: 375px) {
	.rmj-donate-icon { display: none; }
	.rmj-utility__date, .rmj-utility__nav, .rmj-utility__inner > .rmj-utility__list { display: none; }
	.rmj-donate--utility { display: inline-flex; margin: 0 auto; }
}
