/**
 * Newsroom Masthead — front-end styles.
 *
 * Deliberately neutral: inherits the active theme's fonts and colors so it
 * looks at home in any paper's site. Only structural rules and a single accent
 * variable are defined here. Override --nmh-accent per instance or in the theme.
 */

.nmh-masthead {
	--nmh-accent: var(--wp--preset--color--primary, #1a1a1a);
	--nmh-heading: inherit;
	--nmh-font: inherit;
	--nmh-rule: rgba(0, 0, 0, 0.14);
	box-sizing: border-box;
	width: 100%;
	font-size: 0.875rem;
	line-height: 1.45;
	color: inherit;
}

/* Custom appearance mode: opt-in font + size. In default (inherit) mode none
   of this applies, so the box matches the surrounding theme content. */
.nmh-styled { font-family: var(--nmh-font); }
.nmh-styled.nmh-size-small  { font-size: 0.8rem; }
.nmh-styled.nmh-size-medium { font-size: 0.875rem; }
.nmh-styled.nmh-size-large  { font-size: 1rem; }
.nmh-styled .nmh-dept-name,
.nmh-styled .nmh-wordmark-text { color: var(--nmh-heading); }
.nmh-masthead *,
.nmh-masthead *::before,
.nmh-masthead *::after { box-sizing: border-box; }

/* ── Head ─────────────────────────────────────────────── */
.nmh-head {
	text-align: center;
	padding-bottom: 0.75rem;
	margin-bottom: 0.75rem;
	border-bottom: 2px solid currentColor;
}
.nmh-wordmark { max-width: 100%; height: auto; display: block; margin: 0 auto; }
.nmh-wordmark-text {
	margin: 0;
	font-weight: 700;
	font-size: 1.5rem;
	line-height: 1.1;
	letter-spacing: 0.01em;
}
.nmh-tagline {
	margin: 0.35rem 0 0;
	font-style: italic;
	font-size: 0.85em;
	opacity: 0.85;
}
.nmh-address {
	margin: 0.5rem 0 0;
	font-style: normal;
	font-size: 0.9em;
}
.nmh-usps { display: block; font-size: 0.85em; opacity: 0.8; }

/* ── Body / departments ───────────────────────────────── */
.nmh-dept { margin: 0 0 0.9rem; }
.nmh-dept-name {
	margin: 0 0 0.25rem;
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}
.nmh-people { list-style: none; margin: 0; padding: 0; }
.nmh-person { margin: 0 0 0.4rem; }
.nmh-name { font-weight: 700; }
.nmh-sep { opacity: 0.6; }
.nmh-title { }
.nmh-line-label { font-weight: 600; }
.nmh-contact { display: block; }
.nmh-note { display: block; font-size: 0.85em; opacity: 0.8; }

.nmh-masthead a { color: var(--nmh-accent); text-decoration: none; word-break: break-word; }
.nmh-masthead a:hover,
.nmh-masthead a:focus { text-decoration: underline; }
.nmh-masthead a:focus-visible { outline: 2px solid var(--nmh-accent); outline-offset: 2px; }

/* ── Subscriber services + rates ──────────────────────── */
.nmh-subscribe-line, .nmh-hours, .nmh-rates-heading, .nmh-rates-note { margin: 0 0 0.35rem; }
.nmh-rates-heading { font-weight: 700; margin-top: 0.4rem; }
.nmh-rates-note { font-size: 0.85em; opacity: 0.8; }
.nmh-rates { margin: 0; }
.nmh-rate {
	display: flex;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.15rem 0;
	border-bottom: 1px dotted var(--nmh-rule);
}
.nmh-rate-label { margin: 0; font-weight: 600; }
.nmh-rate-note { display: block; font-weight: 400; font-size: 0.82em; opacity: 0.8; }
.nmh-rate-price { margin: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Tiered rate rows (in-county / out-of-county / online, etc.) */
.nmh-rate-group { padding: 0.2rem 0; border-bottom: 1px dotted var(--nmh-rule); }
.nmh-rate-group:last-child { border-bottom: 0; }
.nmh-rate-term { margin: 0 0 0.1rem; font-weight: 700; }
.nmh-rate-group .nmh-rate { border-bottom: 0; padding: 0.05rem 0 0.05rem 0.75rem; }
.nmh-rate-tier-label { font-weight: 400; }
.nmh-rate-tier-price { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ── Legal colophon ───────────────────────────────────── */
.nmh-legal {
	margin-top: 0.9rem;
	padding-top: 0.75rem;
	border-top: 1px solid var(--nmh-rule);
	font-size: 0.72rem;
	line-height: 1.4;
	opacity: 0.85;
}
.nmh-legal p { margin: 0 0 0.5rem; }

/* ── Discrete attribution ─────────────────────────────── */
.nmh-credit {
	margin: 0.9rem 0 0;
	text-align: center;
	font-size: 10px;
	letter-spacing: 0.02em;
	opacity: 0.45;
}

/* ── Badge ────────────────────────────────────────────── */
.nmh-badge { margin-top: 0.9rem; display: flex; align-items: center; gap: 12px; text-align: left; }
.nmh-badge-img { max-width: 64px; height: auto; flex-shrink: 0; }
.nmh-badge-caption { margin: 0; font-size: 0.72rem; opacity: 0.85; }

/* Masthead images are brand/decorative — neutralize any site-wide default
   image border/padding/hover a theme adds so the wordmark and badge sit clean
   and don't look clickable (the wordmark isn't a link; the badge's link styling
   lives on its <a>, not the image). */
.nmh-masthead .nmh-wordmark,
.nmh-masthead .nmh-badge-img,
.nmh-masthead .nmh-wordmark:hover,
.nmh-masthead .nmh-badge-img:hover,
.nmh-masthead .nmh-wordmark:focus,
.nmh-masthead .nmh-badge-img:focus { border: 0; padding: 0; background: none; box-shadow: none; }
.nmh-masthead .nmh-wordmark { cursor: default; }
.nmh-masthead .nmh-badge-link { display: inline-block; line-height: 0; }

/* ── Two-column layout (wide placements only) ─────────── */
@media (min-width: 700px) {
	.nmh-cols-2 .nmh-body {
		column-count: 2;
		column-gap: 2rem;
	}
	.nmh-cols-2 .nmh-dept { break-inside: avoid; }
}
