/*
Theme Name: Newsroom (Twenty Twenty-Five Child)
Theme URI: https://mayor.town/
Description: A magazine-style child theme for Twenty Twenty-Five: masthead, mission hero, front page built from your real topics and pages, article and archive templates.
Author: Mayor Town
Template: twentytwentyfive
Version: 1.4.0
Requires at least: 6.7
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: newsroom
*/

:root { --mt-navy: #0F2559; }

/* ---------- Layout ---------- */
.news-section { padding-block: var(--wp--preset--spacing--50); }
.news-section-title {
	border-top: 3px solid var(--mt-navy);
	padding-top: .6rem;
	margin: 0 0 var(--wp--preset--spacing--30);
	font-size: var(--wp--preset--font-size--large);
}
.news-sidebar > * + * { margin-top: var(--wp--preset--spacing--40); }
.news-sidebar ul { list-style: none; padding: 0; margin: 0; }
.news-sidebar li { padding-block: .55rem; border-bottom: 1px solid var(--wp--preset--color--accent-6); font-weight: 600; }
.news-sidebar li a { text-decoration: none; }
.news-sidebar li a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Masthead: logo left, navigation and search right ---------- */
.news-masthead { border-top: 6px solid var(--wp--preset--color--accent-2); border-bottom: 1px solid var(--wp--preset--color--accent-6); padding-block: .75rem; }
.news-masthead-row { align-items: center; gap: 1rem 2rem; }
.news-masthead-tools { align-items: center; gap: 1rem; margin-left: auto; }
.news-site-title { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.news-site-title a { text-decoration: none; color: var(--wp--preset--color--accent-1); }
.news-nav { font-size: var(--wp--preset--font-size--small); font-weight: 600; gap: 1.5rem; }
.news-nav .wp-block-navigation-item__content { text-decoration: none; padding-block: .35rem; }
.news-nav .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--accent-2); }
.news-masthead .wp-block-search__button { background: transparent; color: var(--wp--preset--color--contrast); border: 0; padding: .4rem; }
.news-masthead .wp-block-search__button:hover { color: var(--wp--preset--color--accent-2); background: transparent; }

/* ---------- Mission hero ---------- */
.mt-hero { min-height: clamp(420px, 55vh, 560px); padding-block: 4rem; align-items: center; justify-content: flex-start; }
.mt-hero .wp-block-cover__inner-container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--wp--preset--spacing--40, 1.5rem); text-align: left; }
.mt-hero-title { color: #fff; font-size: clamp(2.25rem, 5vw, 3.75rem); line-height: 1.08; letter-spacing: -0.015em; max-width: 18em; margin: 0 0 1.75rem; text-wrap: balance; }
.mt-hero-actions { justify-content: flex-start; gap: .75rem; }
.mt-hero .wp-block-button__link { background: #fff; color: var(--mt-navy); border: 2px solid #fff; border-radius: 2px; font-weight: 600; }
.mt-hero .is-style-outline .wp-block-button__link { background: transparent; color: #fff; }
.mt-hero .wp-block-button__link:hover { background: var(--wp--preset--color--accent-5); color: var(--mt-navy); }

/* ---------- Stories ---------- */
.news-kicker, .news-kicker a { font-weight: 700; font-size: var(--wp--preset--font-size--small); text-decoration: none; color: var(--wp--preset--color--accent-1); margin-block: .75rem .25rem; }
.news-hero-title, .news-hero-title a { line-height: 1.1; margin-block: .25rem .75rem; }
.news-lead-title, .news-lead-title a { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.news-card-title, .news-card-title a { font-size: var(--wp--preset--font-size--large); line-height: 1.2; margin-block: .25rem .4rem; }
.news-card-title-lg, .news-card-title-lg a { font-size: var(--wp--preset--font-size--x-large); }
.news-card-title a, .news-hero-title a, .news-list-item a { text-decoration: none; }
.news-card-title a:hover, .news-hero-title a:hover, .news-list-item a:hover { text-decoration: underline; text-underline-offset: 3px; }
.news-meta { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--accent-4); }
.news-list-item { border-bottom: 1px solid var(--wp--preset--color--accent-6); padding-block: .85rem; }
.news-list-item:first-child { padding-top: 0; }
.news-list-item .wp-block-post-title { margin-block: 0 .25rem; }
.news-list-row { border-bottom: 1px solid var(--wp--preset--color--accent-6); padding-block: 1.25rem; align-items: flex-start; }
.news-more { font-weight: 700; margin-top: var(--wp--preset--spacing--30); }
.news-dek { font-size: var(--wp--preset--font-size--large); color: var(--wp--preset--color--accent-4); line-height: 1.4; }
.news-article-title { font-size: clamp(2.25rem, 5vw, 3.75rem); line-height: 1.05; }

/* Placeholder image used when a post has no picture at all */
.news-image-fallback { margin: 0; overflow: hidden; border-radius: 2px; background: var(--wp--preset--color--accent-3); }
.news-image-fallback img { display: block; width: 100%; height: auto; object-fit: cover; }

/* ---------- Alert bar: hidden unless a post exists in the "Breaking" category ---------- */
.news-breaking { background: var(--wp--preset--color--accent-2); color: #fff; padding-block: .6rem; font-size: var(--wp--preset--font-size--small); }
.news-breaking:not(:has(.wp-block-post-title)) { display: none; }
.news-breaking a { color: #fff; text-decoration: none; font-weight: 600; }
.news-breaking a:hover { text-decoration: underline; }
.news-breaking-label { background: #fff; color: var(--wp--preset--color--accent-2); font-weight: 800; padding: .1rem .6rem; border-radius: 2px; margin: 0; }
.news-breaking .wp-block-post-title { margin: 0; font-size: inherit; font-family: inherit; }

/* ---------- Bands ---------- */
.mt-section { padding-block: clamp(3rem, 6vw, 5rem); }
.mt-band-light { background: var(--wp--preset--color--accent-5); }
.mt-band-dark { background: var(--mt-navy); color: #fff; }
.mt-band-dark a { color: inherit; }
.mt-band-dark .wp-block-button__link { background: #fff; color: var(--mt-navy); border-radius: 2px; font-weight: 600; }
.news-ad-slot { border: 1px dashed var(--wp--preset--color--accent-4); background: var(--wp--preset--color--accent-5); min-height: 120px; display: grid; place-content: center; text-align: center; color: var(--wp--preset--color--accent-4); font-size: var(--wp--preset--font-size--small); }

/* ---------- Footer ---------- */
.news-footer { background: var(--wp--preset--color--accent-5); padding-block: var(--wp--preset--spacing--50) var(--wp--preset--spacing--30); border-top: 3px solid var(--mt-navy); }
.news-footer ul { list-style: none; padding: 0; margin: 0; }
.news-footer li { margin-block: .35rem; }
.news-footer a { text-decoration: none; }
.news-footer a:hover { text-decoration: underline; }

/* ---------- Accessibility ---------- */
:where(a, button, input, .wp-block-button__link):focus-visible { outline: 3px solid var(--wp--preset--color--accent-1); outline-offset: 2px; }
