/*
Theme Name: MODM Messages
Description: Lightweight theme for the Mission of Divine Mercy translations site, styled after missionofdivinemercy.org (The7). Navy #19175a, gold #e8bf69, Merriweather headings, Source Serif Pro body.
Version: 1.0
Author: Mission of Divine Mercy
Text Domain: modm-messages
*/

:root {
	--modm-navy: #19175a;
	--modm-gold: #e8bf69;
	--modm-cream: #f3e7c3;
	--modm-text: #333333;
	--modm-serif: 'Merriweather', Georgia, serif;
	--modm-body: 'Source Serif Pro', Georgia, serif;
	--modm-sans: 'Source Sans Pro', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
body {
	margin: 0;
	font-family: var(--modm-body);
	font-size: 17px;
	line-height: 1.7;
	color: var(--modm-text);
	background: #ffffff;
}

/* ---------- Header ---------- */
.modm-header {
	background: var(--modm-navy);
	padding: 14px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
}
.modm-header a.modm-logo { display: block; line-height: 0; }
.modm-header img { max-height: 62px; width: auto; }
.modm-header .modm-sitetitle {
	color: #f5efdc;
	font-family: var(--modm-serif);
	font-size: 22px;
	letter-spacing: 2px;
	text-transform: uppercase;
	text-decoration: none;
}
.modm-nav {
	display: flex;
	align-items: center;
	gap: 22px;
	font-family: var(--modm-sans);
}
.modm-nav a {
	color: #f5efdc;
	text-decoration: none;
	font-size: 15px;
	letter-spacing: 1px;
	text-transform: uppercase;
}
.modm-nav a:hover { color: var(--modm-gold); }

/* Language switcher */
.modm-lang { display: flex; align-items: center; gap: 10px; }
.modm-lang ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; }
.modm-lang li { display: inline; }
.modm-lang a {
	color: var(--modm-navy);
	background: var(--modm-gold);
	font-family: var(--modm-sans);
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 1px;
	text-transform: uppercase;
	padding: 5px 12px;
	border-radius: 2px;
	text-decoration: none;
}
.modm-lang .current-lang a { background: #f5efdc; }

/* Flag variant of the switcher */
.modm-lang-flags ul { gap: 8px; align-items: center; }
.modm-lang-flags a {
	background: none;
	padding: 2px;
	line-height: 0;
	border-radius: 2px;
	opacity: 0.55;
	transition: opacity 0.15s ease;
}
.modm-lang-flags a:hover { opacity: 1; }
.modm-lang-flags .current-lang a {
	opacity: 1;
	background: none;
	outline: 2px solid var(--modm-gold);
	outline-offset: 1px;
}
.modm-lang-flags img {
	width: 22px;
	height: auto;
	display: inline-block;
	border-radius: 2px;
}

/* Flag + name variant */
.modm-lang-flagnames ul { gap: 14px; align-items: center; }
.modm-lang-flagnames a {
	background: none;
	padding: 2px 0;
	color: #f5efdc;
	font-family: var(--modm-sans);
	font-size: 13px;
	letter-spacing: 1px;
	text-transform: uppercase;
	opacity: 0.7;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.modm-lang-flagnames a:hover { opacity: 1; color: var(--modm-gold); }
.modm-lang.modm-lang-flagnames .current-lang a {
	opacity: 1;
	background: none;
	color: var(--modm-gold);
	border-bottom: 2px solid var(--modm-gold);
	border-radius: 0;
}
.modm-lang-flagnames img { width: 18px; height: auto; border-radius: 2px; }

/* Two-letter code variant */
.modm-lang-codes ul { gap: 6px; align-items: center; }
.modm-lang-codes a {
	background: none;
	color: #f5efdc;
	font-family: var(--modm-sans);
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 1px;
	text-transform: uppercase;
	padding: 3px 7px;
	border-radius: 2px;
	opacity: 0.7;
}
.modm-lang-codes a:hover { opacity: 1; color: var(--modm-gold); }
.modm-lang-codes .current-lang a {
	opacity: 1;
	background: var(--modm-gold);
	color: var(--modm-navy);
}

/* Gold band under header, like the original */
.modm-band {
	height: 56px;
	background: linear-gradient(180deg, var(--modm-cream) 0%, #ffffff 100%);
}

/* ---------- Content ---------- */
.modm-content {
	max-width: 760px;
	margin: 0 auto;
	padding: 0 24px 64px;
}
h1, h2, h3, h4 {
	font-family: var(--modm-serif);
	color: var(--modm-navy);
	line-height: 1.35;
}
.modm-page-title, h1.entry-title {
	text-align: center;
	font-size: 34px;
	margin: 18px 0 6px;
}
.entry-meta {
	text-align: center;
	font-family: var(--modm-sans);
	font-size: 14px;
	color: #777;
	margin-bottom: 34px;
}
.entry-content a { color: #2222aa; }
.entry-content hr { border: 0; border-top: 1px solid #ddd; margin: 34px 0; }
.entry-content sup { font-size: 12px; color: var(--modm-navy); font-weight: 700; }
.entry-content h4 { margin-top: 0; }
.entry-content ol li { margin-bottom: 8px; font-size: 15px; }
.modm-ai-note {
	border-left: 3px solid var(--modm-gold);
	background: #faf6e8;
	padding: 14px 20px;
	margin: 0 0 32px;
	font-family: var(--modm-sans);
	font-size: 15px;
	line-height: 1.55;
	color: #555;
}
.modm-ai-note p { margin: 0; }

/* ---------- Post list ---------- */
.modm-list article {
	border-bottom: 1px solid #e5e0cf;
	padding: 18px 0;
}
.modm-list h2 { font-size: 24px; margin: 0 0 6px; }
.modm-list h2 a { color: var(--modm-navy); text-decoration: none; }
.modm-list h2 a:hover { color: #55519c; }
.modm-list .entry-meta { text-align: left; margin-bottom: 10px; }
.modm-more {
	font-family: var(--modm-sans);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--modm-navy);
	text-decoration: none;
	border-bottom: 2px solid var(--modm-gold);
	padding-bottom: 2px;
}

/* Media embeds */
.modm-video {
	position: relative;
	padding-top: 56.25%;
	margin: 24px 0;
	background: #000;
}
.modm-video iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
.entry-content iframe { max-width: 100%; }
.modm-transcript { margin-top: 10px; }
.btn-align-center { text-align: center; margin: 20px 0; }
a.default-btn-shortcode {
	display: inline-block;
	background: var(--modm-gold);
	color: var(--modm-navy);
	font-family: var(--modm-sans);
	font-weight: 600;
	font-size: 14px;
	letter-spacing: 1px;
	text-transform: uppercase;
	padding: 10px 22px;
	border-radius: 2px;
	text-decoration: none;
}
a.default-btn-shortcode:hover { background: #d9ae52; }

/* Coming soon (empty language) */
.modm-coming-soon {
	text-align: center;
	padding: 70px 0 40px;
}
.modm-coming-title {
	font-family: var(--modm-serif);
	font-size: 30px;
	font-weight: 700;
	color: var(--modm-navy);
	margin: 0 0 10px;
}
.modm-coming-title::after {
	content: "";
	display: block;
	width: 70px;
	height: 3px;
	background: var(--modm-gold);
	margin: 16px auto 0;
}
.modm-coming-text {
	font-size: 17px;
	color: #666;
}

/* Pagination + post navigation */
.modm-pagination, .post-navigation {
	font-family: var(--modm-sans);
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin-top: 36px;
}
.modm-pagination a, .post-navigation a {
	color: var(--modm-navy);
	text-decoration: none;
	font-weight: 600;
}

/* ---------- Footer ---------- */
.modm-footer {
	background: var(--modm-navy);
	color: #cfcbe8;
	font-family: var(--modm-sans);
	text-align: center;
	padding: 30px 24px;
	font-size: 14px;
	margin-top: 60px;
}
.modm-footer a { color: var(--modm-gold); text-decoration: none; }

@media (max-width: 640px) {
	.modm-header { justify-content: center; }
	.modm-nav { flex-wrap: wrap; justify-content: center; row-gap: 10px; column-gap: 18px; }
	.modm-lang ul { flex-wrap: wrap; justify-content: center; }
	.modm-lang-flagnames ul { row-gap: 10px; column-gap: 12px; }
	.modm-page-title, h1.entry-title { font-size: 26px; }
	body { font-size: 16px; }
}
