/*
Theme Name: Carrigan For Congress NewsMunch Child
Theme URI: https://www.carriganforcongress.com/
Description: Site-specific NewsMunch child theme for Carrigan For Congress featuring deep congressional navy, crimson, and gold accents, crisp masthead logo styling, full-width lead article plus 2-column editorial grid, right sidebar polish, 3-column dark navy footer, and clean copyright.
Author: Carrigan For Congress
Template: newsmunch
Version: 1.0.0
Text Domain: carrigan-newsmunch-child
*/

:root {
	--dt-main-rgb: 185, 28, 46;
	--dt-main-color: #b91c2e;
	--dt-secondary-color: #0f253e;
	--cfc-navy: #0f253e;
	--cfc-navy-deep: #091829;
	--cfc-crimson: #b91c2e;
	--cfc-crimson-dark: #931524;
	--cfc-gold: #c89b3c;
	--cfc-canvas: #f5f7fa;
	--cfc-surface: #ffffff;
	--cfc-ink: #141c27;
	--cfc-ink-muted: #526071;
	--cfc-border: #dce2ea;
	--cfc-radius: 10px;
}

body.wp-child-theme-carrigan-newsmunch-child {
	background-color: var(--cfc-canvas);
	color: var(--cfc-ink);
}

body.wp-child-theme-carrigan-newsmunch-child a:focus-visible,
body.wp-child-theme-carrigan-newsmunch-child button:focus-visible,
body.wp-child-theme-carrigan-newsmunch-child input:focus-visible {
	outline: 3px solid var(--cfc-crimson);
	outline-offset: 2px;
}

/* Topbar */
#dt_header .dt_header-topbar {
	background-color: var(--cfc-navy-deep);
	color: #e6ecf3;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#dt_header .dt_header-topbar a {
	color: #e6ecf3;
}

#dt_header .dt_header-topbar .dt-news-heading {
	background-color: var(--cfc-crimson);
	color: #ffffff;
}

/* Masthead / Logo */
#dt_header .dt_navbar-inner {
	background-color: var(--cfc-surface);
	border-bottom: 1px solid var(--cfc-border);
}

#dt_header .dt_navbar-inner .dt-py-5 {
	padding-top: 18px !important;
	padding-bottom: 18px !important;
}

#dt_header .site--logo img,
#dt_header .site--logo .custom-logo {
	max-width: 280px !important;
	max-height: 82px;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}

#dt_header .site--logo .site--title {
	color: var(--cfc-navy);
	font-size: clamp(1.5rem, 2.4vw, 2.1rem) !important;
	font-weight: 800;
	letter-spacing: -0.01em;
	margin: 0;
}

/* Primary Navigation Bar */
#dt_header .dt_navbar-menus {
	background-color: var(--cfc-navy) !important;
	border-bottom: 3px solid var(--cfc-crimson);
	box-shadow: 0 4px 16px rgba(15, 37, 62, 0.14);
}

#dt_header .dt_navbar-menus .dt_home-icon a,
#dt_header .dt_navbar-menus .dt_navbar-nav .dt_navbar-mainmenu > li > a,
#dt_header .dt_navbar-menus .dt_navbar-right button,
#dt_header .dt_navbar-menus .dt_navbar-right i {
	color: #ffffff !important;
}

#dt_header .dt_navbar-menus .dt_navbar-nav .dt_navbar-mainmenu > li > a:hover,
#dt_header .dt_navbar-menus .dt_navbar-nav .dt_navbar-mainmenu > li.current-menu-item > a,
#dt_header .dt_navbar-menus .dt_home-icon a:hover {
	color: #f6d379 !important;
}

#dt_header .dt_navbar-menus .dropdown-menu {
	background-color: var(--cfc-surface);
	border: 1px solid var(--cfc-border);
	box-shadow: 0 10px 24px rgba(15, 37, 62, 0.14);
}

#dt_header .dt_navbar-menus .dropdown-menu a {
	color: var(--cfc-ink) !important;
}

#dt_header .dt_navbar-menus .dropdown-menu a:hover {
	background-color: var(--cfc-canvas);
	color: var(--cfc-crimson) !important;
}

/* Main Content Spacing */
#content.site-content {
	padding-top: 28px;
	padding-bottom: 42px;
}

/* Homepage: Full-width Lead Post + 2-Column Editorial Grid */
.cfc-home .cfc-badge {
	display: inline-block;
	align-self: flex-start;
	background-color: var(--cfc-crimson);
	color: #ffffff;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	padding: 4px 10px;
	border-radius: 4px;
	margin-bottom: 10px;
}

.cfc-home .cfc-badge:hover {
	background-color: var(--cfc-navy);
	color: #ffffff;
}

.cfc-home .cfc-meta {
	color: var(--cfc-ink-muted);
	font-size: 0.85rem;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
}

.cfc-home .cfc-lead {
	background-color: var(--cfc-surface);
	border: 1px solid var(--cfc-border);
	border-top: 4px solid var(--cfc-crimson);
	border-radius: var(--cfc-radius);
	padding: 30px;
	margin-bottom: 32px;
	box-shadow: 0 3px 14px rgba(15, 37, 62, 0.05);
}

.cfc-home .cfc-lead__title {
	font-size: clamp(1.55rem, 2.8vw, 2.15rem);
	line-height: 1.25;
	margin: 0 0 10px;
	color: var(--cfc-navy);
}

.cfc-home .cfc-lead__title a {
	color: var(--cfc-navy);
	text-decoration: none;
}

.cfc-home .cfc-lead__title a:hover {
	color: var(--cfc-crimson);
}

.cfc-home .cfc-lead__media {
	margin: 20px 0;
}

.cfc-home .cfc-lead__media img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 480px;
	object-fit: cover;
	border-radius: 8px;
}

.cfc-home .cfc-lead__content {
	margin-top: 18px;
	font-size: 1.03rem;
	line-height: 1.75;
	color: var(--cfc-ink);
}

.cfc-home .cfc-lead__content h2,
.cfc-home .cfc-lead__content h3 {
	color: var(--cfc-navy);
	margin-top: 1.4em;
	margin-bottom: 0.55em;
}

.cfc-home .cfc-lead__content a {
	color: var(--cfc-crimson-dark);
	text-decoration: underline;
}

.cfc-home .cfc-lead__content img {
	max-width: 100%;
	height: auto;
	border-radius: 6px;
}

.cfc-home .cfc-grid-heading {
	color: var(--cfc-navy);
	font-size: 1.3rem;
	font-weight: 700;
	margin: 0 0 18px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--cfc-border);
	position: relative;
}

.cfc-home .cfc-grid-heading::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 60px;
	height: 2px;
	background-color: var(--cfc-crimson);
}

.cfc-home .cfc-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px;
	margin-bottom: 28px;
}

.cfc-home .cfc-card {
	display: flex;
	flex-direction: column;
	background-color: var(--cfc-surface);
	border: 1px solid var(--cfc-border);
	border-top: 3px solid var(--cfc-navy);
	border-radius: var(--cfc-radius);
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(15, 37, 62, 0.04);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-top-color 0.2s ease;
}

.cfc-home .cfc-card:hover,
.cfc-home .cfc-card:focus-within {
	transform: translateY(-2px);
	border-top-color: var(--cfc-crimson);
	box-shadow: 0 8px 22px rgba(15, 37, 62, 0.09);
}

.cfc-home .cfc-card__media {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background-color: var(--cfc-navy);
}

.cfc-home .cfc-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cfc-home .cfc-card__body {
	padding: 20px 22px 22px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

.cfc-home .cfc-card__title {
	font-size: 1.08rem;
	line-height: 1.38;
	margin: 0;
}

.cfc-home .cfc-card__title a {
	color: var(--cfc-navy);
	text-decoration: none;
}

.cfc-home .cfc-card__title a:hover {
	color: var(--cfc-crimson);
	text-decoration: underline;
}

.cfc-home .cfc-card__excerpt {
	color: var(--cfc-ink-muted);
	font-size: 0.93rem;
	line-height: 1.6;
	margin: 4px 0 0;
}

.cfc-home .cfc-card__more {
	margin-top: auto;
	padding-top: 10px;
	font-size: 0.86rem;
	font-weight: 700;
	color: var(--cfc-crimson);
	text-decoration: none;
}

.cfc-home .cfc-card__more:hover {
	color: var(--cfc-navy);
	text-decoration: underline;
}

/* Right Sidebar Polish */
#dt-sidebar .widget {
	background-color: var(--cfc-surface);
	border: 1px solid var(--cfc-border);
	border-radius: var(--cfc-radius);
	padding: 22px;
	margin-bottom: 22px;
	box-shadow: 0 2px 10px rgba(15, 37, 62, 0.04);
}

#dt-sidebar .widget-title,
#dt-sidebar .widget-header .widget-title {
	color: var(--cfc-navy) !important;
	font-size: 1.08rem !important;
	font-weight: 700;
	margin: 0 0 14px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--cfc-border);
	position: relative;
}

#dt-sidebar .widget-title::after,
#dt-sidebar .widget-header .widget-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 46px;
	height: 2px;
	background-color: var(--cfc-crimson);
}

#dt-sidebar .widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

#dt-sidebar .widget ul li {
	padding: 8px 0;
	border-bottom: 1px solid var(--cfc-border);
}

#dt-sidebar .widget ul li:last-child {
	border-bottom: none;
}

#dt-sidebar .widget a {
	color: var(--cfc-ink);
	text-decoration: none;
}

#dt-sidebar .widget a:hover {
	color: var(--cfc-crimson);
	text-decoration: underline;
}

/* Dark Congressional Navy 3-Column Footer */
.dt_footer.footer-dark {
	background-color: var(--cfc-navy) !important;
	color: #dce4ee;
	border-top: 4px solid var(--cfc-crimson);
}

.dt_footer.footer-dark .dt_footer-widgets {
	padding: 44px 0 28px;
}

.dt_footer.footer-dark .widget-title,
.dt_footer.footer-dark .widget-header .widget-title {
	background: transparent !important;
	color: #ffffff !important;
	font-size: 1.06rem !important;
	font-weight: 700;
	border-bottom: 1px solid rgba(255, 255, 255, 0.16);
	padding-bottom: 8px;
	margin: 0 0 14px;
}

.dt_footer.footer-dark p,
.dt_footer.footer-dark li,
.dt_footer.footer-dark a {
	color: #dce4ee !important;
}

.dt_footer.footer-dark a:hover {
	color: #f6d379 !important;
	text-decoration: underline;
}

.dt_footer.footer-dark .dt_footer-inner {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding: 18px 0;
}

.dt_footer.footer-dark .copyright {
	color: #cbd5e1 !important;
	font-size: 0.92rem;
}

@media screen and (max-width: 767px) {
	.cfc-home .cfc-lead {
		padding: 20px;
	}

	.cfc-home .cfc-grid {
		grid-template-columns: 1fr;
		gap: 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.wp-child-theme-carrigan-newsmunch-child * {
		transition: none !important;
		animation: none !important;
	}
}
