/*
Theme Name: MM Blocks
Theme URI: https://markmunger.com
Author: Mark Munger (website seat)
Author URI: https://markmunger.com
Description: Block-theme child of Twenty Twenty-Five that replaces the Elementor Pro theme-builder frame of
  markmunger.com with WordPress core blocks, styled to look like the live site (header, footer, cards, sections).
Template: twentytwentyfive
Requires at least: 6.6
Requires PHP: 7.2
Version: 0.3.3
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mm-blocks
*/

/* Values below come from the live Elementor kit (post-9.css) and page CSS (post-13, 45, 50, 840). */
body { -webkit-font-smoothing: antialiased; }
body :where(.wp-site-blocks) > * { margin-block-start: 0; }
body .wp-site-blocks { padding-top: 0; }

/* ---------- Header (post-45.css): navy band 80px, logo left, centred menu, search icon, divider, subscribe ---------- */
body .mm-header { position: relative; z-index: 50; }
body .mm-header-inner { max-width: 1140px; margin: 0 auto; }
body .mm-header .wp-block-site-logo img { display: block; }
body .mm-nav { flex: 1 1 auto; }
body .mm-nav .wp-block-navigation-item__content { color: #fff; font-size: 16px; padding: 4px 0; }
body .mm-nav .wp-block-navigation__submenu-icon { width: 10px; height: 10px; margin-left: 8px; }
body .mm-nav .wp-block-navigation__submenu-container { background: #fff !important; color: #002a38 !important; border: 0 !important;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .15); padding: 8px 0 !important; min-width: 240px !important; }
body .mm-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { color: #002a38; padding: 8px 20px; }
body .mm-nav .current-menu-item > .wp-block-navigation-item__content::after { content: ""; display: block; width: 5px; height: 5px;
	background: #fff; transform: rotate(45deg); margin: 6px auto 0; }

body .mm-header-actions { align-items: center; }
body .mm-search { margin: 0 !important; }
body .mm-search .wp-block-search__inside-wrapper { border: 0 !important; padding: 0 !important; background: transparent; }
body .mm-search .wp-block-search__button { background: transparent !important; color: #fff !important; border: 0 !important;
	padding: 6px !important; margin: 0 !important; border-radius: 0 !important; }
body .mm-search .wp-block-search__button svg { width: 26px; height: 26px; fill: currentColor; }
body .mm-search .wp-block-search__input { background: #fff; color: #002a38; border-radius: 20px; padding: 6px 14px; height: 36px; }
body .mm-search.wp-block-search__searchfield-hidden .wp-block-search__input { width: 0; padding: 0; }
body .mm-subscribe { margin: 0 0 0 18px !important; padding-left: 28px; border-left: 1px solid #0882aa; height: 40px; align-items: center; }
body .mm-subscribe-btn .wp-block-button__link { background: transparent !important; border: 0 !important; color: #fff !important;
	padding: 0 !important; font-size: 16px; font-weight: 400; text-transform: none; display: inline-flex; align-items: center; gap: 10px; }
body .mm-subscribe-btn .wp-block-button__link::before { content: ""; width: 42px; height: 42px; border-radius: 50%; flex: 0 0 42px;
	background: #b91f28 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M22 2 11 13'/%3E%3Cpath d='M22 2 15 22l-4-9-9-4 20-7z'/%3E%3C/svg%3E") center / 18px no-repeat; }

/* ---------- Section title (post-13.css divider widget): pink bar, uppercase blue 40px, red rule ---------- */
body .mm-sec { gap: 20px !important; align-items: center; }
body .mm-sec > h2, body .mm-sec > .wp-block-heading { border-left: 7px solid #f0a6a6; padding-left: 18px; margin: 0; font-size: 40px; line-height: 1;
	color: #0882aa; text-transform: uppercase; white-space: nowrap; flex: 0 0 auto; }
body .mm-sec > hr, body .mm-sec > .wp-block-separator { flex: 1 1 auto; border: 0 !important; border-top: 2px solid #b91f28 !important;
	height: 0 !important; margin: 0 !important; opacity: 1; background: none !important; }
body .mm-sec.mm-light > h2 { color: #fff; }
body .mm-sec > .wp-block-buttons { flex: 0 0 auto; margin: 0; }

/* ---------- Buttons: live pill outline with a red long arrow ---------- */
body .mm-arrow .wp-block-button__link::after { content: ""; display: inline-block; width: 30px; height: 10px; margin-left: 14px; vertical-align: middle;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 10'%3E%3Cpath d='M0 5h28M24 1l4 4-4 4' fill='none' stroke='%23b91f28' stroke-width='1.3'/%3E%3C/svg%3E") center / contain no-repeat; }
body .mm-pill-light .wp-block-button__link { color: #fff !important; border-color: #fff !important; }
body .mm-pill-light.mm-arrow .wp-block-button__link::after { filter: brightness(0) invert(1); }
body .mm-btn-sm .wp-block-button__link { font-size: 14px; padding: 12px 18px 12px 16px; }

/* ---------- Image cards (loop item 216): portrait, rounded, navy gradient, white text at the bottom ---------- */
body .mm-card { border-radius: 10px; overflow: hidden; min-height: 516px !important; padding: 24px 22px !important; align-items: flex-end !important; }
body .mm-card .wp-block-cover__background { background: linear-gradient(180deg, rgba(0, 42, 56, 0) 35%, rgba(0, 42, 56, .92) 100%) !important; opacity: 1 !important; }
body .mm-card .wp-block-cover__image-background { transition: transform .4s; }
body .mm-card:hover .wp-block-cover__image-background { transform: scale(1.04); }
body .mm-card .wp-block-cover__inner-container { width: 100%; }
body .mm-card a, body .mm-hero a, body .mm-featured a, body .mm-cats a { color: #fff; text-decoration: none; }
body .mm-card .wp-block-post-terms { font-size: 13px; margin: 0 0 10px; color: #e6e6e6; }
body .mm-card .wp-block-post-terms a { color: #e6e6e6; }
body .mm-card .wp-block-post-title { font-size: 20px; line-height: 1.5; font-weight: 700; margin: 0 0 14px; color: #fff; }
body .mm-date { font-size: 13px; color: #e6e6e6; margin: 0; }
body .mm-date::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -1px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23e6e6e6' stroke-width='1.2'%3E%3Crect x='1.5' y='3' width='13' height='11.5' rx='1.5'/%3E%3Cpath d='M1.5 7h13M5 1v3M11 1v3'/%3E%3C/svg%3E") center / contain no-repeat; }

/* ---------- Carousel look without JavaScript: one row of fixed-size cards that scrolls sideways ---------- */
body .mm-row { padding-left: max(16px, calc((100vw - 1140px) / 2)); }
body .mm-row .wp-block-post-template, body .mm-row.mm-static { display: flex !important; flex-wrap: nowrap !important; gap: 10px !important;
	overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0; padding: 0 16px 0 0; list-style: none; }
body .mm-row .wp-block-post-template::-webkit-scrollbar { display: none; }
body .mm-row .wp-block-post-template > li, body .mm-row.mm-static > * { flex: 0 0 356px; scroll-snap-align: start; margin: 0 !important; }

/* ---------- Home hero: latest post card and the Resources panel side by side ---------- */
body .mm-hero { gap: 30px !important; padding: 32px 32px 0; }
body .mm-hero .wp-block-cover { border-radius: 30px; overflow: hidden; min-height: 640px !important; }
body .mm-hero-post { padding: 50px 50px 50px !important; }
body .mm-hero-post .wp-block-cover__background { background: linear-gradient(180deg, rgba(0, 42, 56, .15) 0%, rgba(0, 42, 56, .85) 100%) !important; opacity: 1 !important; }
body .mm-hero-post .wp-block-post-terms, body .mm-hero-post .mm-date { font-size: 14px; color: #fff; display: inline; }
body .mm-hero-post .wp-block-post-title { font-size: 40px; line-height: 1.3; color: #fff; margin: 14px 0 26px; }
body .mm-hero-res { padding: 50px !important; }
body .mm-hero-res h2 { font-size: 40px; text-transform: none; color: #fff; margin: 0 0 18px; }
body .mm-hero-res p { font-size: 15px; line-height: 1.6; color: #fff; }
body .mm-reslist { margin-top: 30px !important; }
body .mm-reslist p { border-bottom: 1px solid rgba(255, 255, 255, .45); padding: 18px 0; margin: 0 !important; font-size: 20px; font-weight: 700; }
body .mm-reslist a { display: flex; justify-content: space-between; align-items: center; }
body .mm-reslist a::after { content: ""; width: 24px; height: 24px; border: 1px solid #fff; border-radius: 50%;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 7l5 5-5 5' fill='none' stroke='white' stroke-width='1.5'/%3E%3C/svg%3E") center / 16px no-repeat; }

/* ---------- Featured post: red band, large card overlapping its top, three thumbnail rows ---------- */
body .mm-featured { background: #b91f28; border-radius: 10px; margin: 130px auto 0 !important; max-width: 1300px; padding: 0 40px 40px 60px !important; }
body .mm-featured .mm-feat-card { border-radius: 20px; overflow: hidden; min-height: 530px !important; margin-top: -60px !important; padding: 26px !important; align-items: flex-end !important; }
body .mm-featured .mm-feat-card .wp-block-cover__background { background: linear-gradient(180deg, rgba(0, 42, 56, .1) 30%, rgba(0, 42, 56, .9) 100%) !important; opacity: 1 !important; }
body .mm-featured .mm-feat-card h3 { font-size: 20px; color: #fff; margin: 8px 0 22px; }
body .mm-feat-list { padding-top: 40px; }
body .mm-feat-row { gap: 30px !important; margin-bottom: 26px !important; align-items: center; }
body .mm-feat-row figure { flex: 0 0 194px; margin: 0 !important; }
body .mm-feat-row img { width: 194px !important; height: 128px !important; object-fit: cover; border-radius: 10px; }
body .mm-feat-row h3 { font-size: 20px; line-height: 1.3; margin: 0 0 4px; color: #fff; }
body .mm-feat-row p { font-size: 13px; color: #fff; margin: 0; }

/* ---------- About ---------- */
body .mm-about img { border-radius: 10px; }
body .mm-about p { font-size: 15px; line-height: 1.6; }

/* ---------- Categories: cyan band from the left edge, cards row overlapping its right end ---------- */
body .mm-cats { position: relative; padding: 60px 0 !important; }
body .mm-cats::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 74%; background: #0097c8; border-radius: 0 10px 10px 0; z-index: 0; }
body .mm-cats > * { position: relative; z-index: 1; }
body .mm-cats-text { padding-left: max(16px, calc((100vw - 1140px) / 2)) !important; }
body .mm-cats-text p { color: #fff; }
body .mm-cat { border-radius: 10px; overflow: hidden; min-height: 400px !important; flex: 0 0 240px !important; align-items: flex-end !important; justify-content: center !important; }
body .mm-cat .wp-block-cover__background { background: linear-gradient(180deg, rgba(0, 42, 56, 0) 40%, rgba(0, 42, 56, .92) 100%) !important; opacity: 1 !important; }
body .mm-cat p { font-size: 22px; font-weight: 700; text-align: center; margin: 0 0 14px; }
body .mm-cats .mm-row.mm-static > * { flex: 0 0 240px; }
body .mm-cats .mm-row { padding-left: 0; }

/* ---------- Resources tiles ---------- */
body .mm-tiles { gap: 15px !important; }
body .mm-tiles figure img { width: 100%; height: 240px; object-fit: cover; border-radius: 10px; }
body .mm-tiles h3 { text-align: center; font-size: 22px; margin: 18px 0 0; }
body .mm-tiles h3 a { color: #003e52; }

/* ---------- Subscribe panel ---------- */
body .mm-subpanel { border-radius: 10px; overflow: hidden; padding: 60px 40px 24px !important; }
body .mm-subpanel .wp-block-cover__background { background: linear-gradient(90deg, #1d5f78 0%, rgba(29, 95, 120, .92) 45%, rgba(29, 95, 120, .2) 75%, rgba(29, 95, 120, 0) 100%) !important; opacity: 1 !important; }
body .mm-subpanel h2 { color: #fff; font-size: 36px; text-transform: uppercase; }
body .mm-subpanel p { color: #fff; max-width: 520px; }
body .mm-subpanel .gform_wrapper { max-width: 520px; }

/* ---------- Page banner (the rounded title image at the top of inner pages) ---------- */
body .mm-banner { border-radius: 30px; overflow: hidden; min-height: 320px !important; margin: 32px 32px 0 !important; padding: 50px !important; }
body .mm-banner h1 { color: #fff; font-size: 50px; text-transform: capitalize; }

/* ---------- Footer (post-50.css): navy with two wave patterns, centred logo and menu between rules ---------- */
body .mm-footer { background-color: #002a38; background-image: url("/wp-content/uploads/2024/04/Mask-group-1.png"), url("/wp-content/uploads/2024/04/Mask-group.png");
	background-position: top right, bottom left; background-repeat: no-repeat; }
body .mm-footer .wp-block-separator { border-top: 1px solid #006d90 !important; opacity: 1; margin: 40px 0 0 !important; }
body .mm-footer .wp-block-separator + .wp-block-navigation { margin: 0 auto !important; padding: 26px 0; }
body .mm-footer-nav .wp-block-navigation-item + .wp-block-navigation-item::before { content: "|"; color: #006d90; margin: 0 40px; font-size: 12px; }
body .mm-footer-nav .wp-block-navigation-item__content { color: #fff; }
body .mm-footer-nav + .wp-block-separator { margin-top: 0 !important; }
body .mm-footer-copyright { color: rgba(255, 255, 255, .6); margin-top: 40px !important; }
body .mm-footer-copyright a { color: inherit; text-decoration: none; }

/* ---------- Narrow screens ---------- */
@media (max-width: 1024px) {
	body .mm-hero { padding: 16px 16px 0; }
	body .mm-hero .wp-block-cover { min-height: 480px !important; }
	body .mm-cats::before { width: 100%; border-radius: 0; }
	body .mm-featured { margin-top: 90px !important; padding: 0 20px 30px !important; }
	body .mm-sec > h2 { font-size: 30px; white-space: normal; }
	body .mm-banner { margin: 16px 16px 0 !important; padding: 30px !important; }
	body .mm-subscribe { display: none; }
}
@media (max-width: 600px) {
	body .mm-row .wp-block-post-template > li, body .mm-row.mm-static > * { flex-basis: 280px; }
	body .mm-hero-post .wp-block-post-title { font-size: 28px; }
}

/* Hero "Read The Article": white pill with the long arrow (core read-more block) */
body .wp-block-read-more.mm-hero-read { display: inline-flex; align-items: center; border: 1px solid #fff; border-radius: 40px; color: #fff;
	padding: 13px 22px 13px 20px; font-size: 14px; font-weight: 700; text-transform: uppercase; }
body .wp-block-read-more.mm-hero-read::after { content: ""; display: inline-block; width: 30px; height: 10px; margin-left: 14px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 10'%3E%3Cpath d='M0 5h28M24 1l4 4-4 4' fill='none' stroke='white' stroke-width='1.3'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Parity pass 1 fixes */
body .mm-nav { justify-content: flex-end !important; margin-right: 24px; }
body .mm-nav .wp-block-navigation__submenu-icon svg { display: none; }
body .mm-nav .wp-block-navigation__submenu-icon::after { content: ""; display: block; border: 5px solid transparent; border-top: 6px solid #fff; border-bottom: 0; margin-top: 2px; }
body .mm-nav .wp-block-navigation__submenu-icon { width: 10px; height: 10px; margin-left: 14px; display: inline-flex; align-items: center; }
body .mm-search .wp-block-search__button svg { display: none; }
body .mm-search .wp-block-search__button::before { content: ""; display: block; width: 20px; height: 20px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='white' d='M505 442.7 405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z'/%3E%3C/svg%3E") center / contain no-repeat; }
body .mm-hero-post .wp-block-post-title { text-transform: none; }
body .mm-hero-post .wp-block-post-terms { font-weight: 400; }
body .mm-hero-post .wp-block-post-terms::after { content: "\2022"; margin-left: 12px; }
body .mm-card .wp-block-post-terms { font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: clip; max-width: 70%; }
body .mm-card .wp-block-post-title { text-transform: none; }
body .mm-featured > .wp-block-column:first-child { flex-basis: 54% !important; }
body .mm-feat-list { padding-left: 60px; }
/* dotted decorations of the live page (white dots on the featured band, pink dots beside the about photo) */
body .mm-featured { position: relative; }
body .mm-featured::before { content: ""; position: absolute; left: 58px; bottom: 20px; width: 306px; height: 340px; z-index: 0;
	background-image: radial-gradient(circle, rgba(255, 255, 255, .9) 1.6px, transparent 2px); background-size: 15px 15px; }
body .mm-featured > * { position: relative; z-index: 1; }
body .mm-about .wp-block-column:last-child { position: relative; }
body .mm-about .wp-block-column:last-child::before { content: ""; position: absolute; right: -10px; top: -12px; width: 180px; height: 170px;
	background-image: radial-gradient(circle, #f0a6a6 1.6px, transparent 2px); background-size: 15px 15px; z-index: -1; }
body .mm-subpanel .wp-block-cover__background { background: linear-gradient(90deg, #17506a 0%, rgba(23, 80, 106, .93) 38%, rgba(23, 80, 106, .45) 62%, rgba(23, 80, 106, .1) 100%) !important; }
body .mm-subpanel .wp-block-cover__image-background { object-position: bottom center !important; }
body .mm-footer .wp-block-separator { max-width: 1140px !important; width: 100% !important; margin-left: auto !important; margin-right: auto !important; }
body .mm-footer-nav, body .mm-footer-nav .wp-block-navigation__container { justify-content: center !important; width: 100%; }
body .mm-cats .mm-row.mm-static { position: relative; }
body .mm-cats > .wp-block-column:last-child { position: relative; }
body .mm-cats > .wp-block-column:last-child::before { content: ""; position: absolute; left: -28px; top: 60px; width: 160px; height: 340px; z-index: 0;
	background-image: radial-gradient(circle, rgba(255, 255, 255, .85) 1.6px, transparent 2px); background-size: 15px 15px; }
body .mm-cats > .wp-block-column:last-child > * { position: relative; z-index: 1; }
body .mm-arrows { display: flex; gap: 12px; margin-top: 24px; }
body .mm-arrows button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid #fff; background: transparent center / 26px no-repeat; cursor: pointer; }
body .mm-prev { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 10'%3E%3Cpath d='M30 5H2M6 1 2 5l4 4' fill='none' stroke='white' stroke-width='1.2'/%3E%3C/svg%3E") !important; }
body .mm-next { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 10'%3E%3Cpath d='M0 5h28M24 1l4 4-4 4' fill='none' stroke='white' stroke-width='1.2'/%3E%3C/svg%3E") !important; }

/* ---------- Inner pages ---------- */
body .mm-grid, body .mm-postgrid .wp-block-post-template { gap: 30px !important; }
body .mm-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
body .mm-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
body .mm-grid { margin-top: 30px !important; }
body .mm-card-text { min-height: 400px !important; padding: 22px 20px !important; }
body .mm-card-text h3 { font-size: 20px; line-height: 1.4; color: #fff; margin: 0 0 14px; }
body .mm-card-text p { font-size: 15px; line-height: 1.6; color: #fff; margin: 0; }
body .mm-photo img { border-radius: 10px; width: 100%; }
body .mm-photo-tall img { height: 500px; object-fit: cover; }
body .mm-twocol p { font-size: 15px; line-height: 1.6; }
body .mm-h3 { font-size: 28px; color: #002a38; }
body .mm-grey { background: rgba(108, 108, 108, .1); }

/* Recommendations: pills next to the section title, book tiles */
body .mm-sec .mm-pills { gap: 20px; }
body .mm-pills .wp-block-button__link { border-radius: 40px; padding: 13px 34px !important; font-size: 16px; border: 0 !important; }
body .mm-pill-on .wp-block-button__link { background: #b91f28 !important; color: #fff !important; }
body .mm-pill-grey .wp-block-button__link { background: #e8e8e8 !important; color: #003e52 !important; }
body .mm-books { row-gap: 40px !important; }
body .mm-book { text-align: center; }
body .mm-book figure { margin: 0 0 14px !important; }
body .mm-book img { width: 100%; height: 404px; object-fit: cover; border-radius: 8px; }
body .mm-book h3 { font-size: 20px; line-height: 1.4; margin: 0 0 8px; }
body .mm-book h3 a { color: #003e52; }
body .mm-book p { font-family: Roboto, Arial, sans-serif; font-size: 16px; color: #3b3b3b; margin: 0; }

/* Quote heading with red rules on both sides (examples, first principles) */
body .mm-quote { gap: 20px !important; align-items: center; }
body .mm-quote > hr { flex: 1 1 60px; border: 0 !important; border-top: 2px solid #b91f28 !important; margin: 0 !important; background: none !important; }
body .mm-quote > h2 { flex: 0 1 auto; max-width: 780px; font-style: italic; font-size: 40px; color: #0882aa; line-height: 1.15; margin: 0; }
body .mm-quote-by { margin-top: 14px !important; margin-bottom: 40px !important; }

/* Accordion (core Details) styled like the live accordion */
body .mm-acc { border-bottom: 1px solid #d9d9d9; padding: 16px 0; }
body .mm-acc summary { font-family: Lato, sans-serif; font-weight: 700; font-size: 20px; color: #002a38; cursor: pointer; list-style: none;
	display: flex; justify-content: space-between; align-items: center; }
body .mm-acc summary::-webkit-details-marker { display: none; }
body .mm-acc summary::after { content: ""; width: 24px; height: 24px; border: 1px solid #002a38; border-radius: 50%; flex: 0 0 24px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5' fill='none' stroke='%23002a38' stroke-width='1.5'/%3E%3C/svg%3E") center / 16px no-repeat; }
body .mm-acc[open] summary::after { transform: rotate(180deg); }
body .mm-acc p { margin: 12px 0 0; font-size: 15px; }

/* Single post (live single template): meta row, featured image, Roboto body, categories sidebar */
body .mm-single .mm-banner h1 { font-size: 50px; color: #fff; }
body .mm-meta { margin-bottom: 20px !important; font-family: Roboto, Arial, sans-serif; font-size: 20px; color: #002a38; }
body .mm-meta a { color: #002a38; }
body .mm-meta-terms::before, body .mm-meta-date::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 8px; vertical-align: -1px; background: center / contain no-repeat; }
body .mm-meta-terms::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23002a38' d='M0 1v6l8 8 7-7-8-8H1zm4 2a1.5 1.5 0 110 3 1.5 1.5 0 010-3z'/%3E%3C/svg%3E"); }
body .mm-meta-date::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23002a38' d='M3 0h2v2h6V0h2v2h3v14H0V2h3zM1.5 6v8.5h13V6z'/%3E%3C/svg%3E"); }
body .mm-feat-img img { width: 100%; height: auto; }
body .mm-content { font-family: Roboto, Arial, sans-serif; font-size: 16px; color: #3b3b3b; }
body .mm-content h3 { font-family: Lato, sans-serif; font-size: 24px; color: #002a38; text-transform: none; }
body .mm-content blockquote { border: 0; padding: 0; margin: 10px 0 20px; font-style: normal; }
body .mm-content blockquote cite { font-style: italic; }
body .mm-side-title { font-family: Roboto, Arial, sans-serif !important; font-size: 20px !important; text-transform: none !important; color: #3b3b3b !important; margin: 10px 0 18px; }
body .mm-side-cats { padding-left: 18px; font-family: Lato, sans-serif; font-size: 18px; line-height: 1.5; }
body .mm-side-cats a { color: #003e52; }

/* Search results (live search template): image, blue title, green read more */
body .mm-results .wp-block-post-template { gap: 40px 30px !important; }
body .mm-res-img img { height: 173px !important; width: 100%; object-fit: cover; }
body .mm-res-title { font-family: Roboto, Arial, sans-serif; font-size: 20px; line-height: 1.4; margin: 18px 0 4px; text-transform: none; }
body .mm-res-title a { color: #0097c8; }
body .mm-res-more { font-family: Roboto, Arial, sans-serif; font-size: 15px; color: #61ce70; }
body .mm-search-title { color: #fff; font-family: Roboto, Arial, sans-serif; font-size: 40px; text-transform: capitalize; }

/* Pagination: circles, red current page */
body .mm-pager { margin-top: 30px !important; gap: 14px; align-items: center; font-family: Roboto Slab, Georgia, serif; }
body .mm-pager .page-numbers { display: inline-flex; width: 42px; height: 42px; border-radius: 50%; border: 1px solid #003e52; align-items: center; justify-content: center; color: #003e52; margin: 0 6px; }
body .mm-pager .page-numbers.current { background: #b91f28; border-color: #b91f28; color: #fff; }
body .mm-pager .page-numbers.dots { border: 0; }
body .mm-pager a { color: #003e52; }

@media (max-width: 900px) {
	body .mm-grid-3, body .mm-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
	body .mm-quote > h2 { font-size: 28px; }
}
@media (max-width: 600px) {
	body .mm-grid-3, body .mm-grid-4 { grid-template-columns: 1fr !important; }
}
body .mm-meta .wp-block-post-terms, body .mm-meta .wp-block-post-date { font-size: 20px; font-weight: 400; font-family: Roboto, Arial, sans-serif; }
body .mm-nav .wp-block-navigation__submenu-icon svg { display: none !important; }

/* Parity pass 2 (reviewer findings) */
body .mm-card .wp-block-post-terms { white-space: nowrap !important; overflow: hidden; max-width: 185px; display: block; }
body .mm-card .wp-block-post-title, body .mm-card-text h3, body .mm-book h3, body .mm-res-title, body .mm-feat-row h3, body .mm-featured .mm-feat-card h3 { text-transform: capitalize; }
body .mm-photo-tall img { height: auto; object-fit: contain; }
body .mm-featured > .wp-block-column:first-child { flex: 0 0 657px !important; max-width: 657px; }
body .mm-nav { margin-right: 6px; }
body .mm-card .wp-block-post-terms__separator { white-space: pre !important; }

/* Theme sections keep their own type on pages that also load Elementor's site-wide styles */
body .mm-cats p, body .mm-subpanel p, body .mm-about p, body .mm-hero-res p { font-size: 16px; line-height: 1.6; }
body .mm-cats .mm-cat p { font-size: 22px; line-height: 1.3; }
body .mm-header .wp-block-navigation-item__content, body .mm-footer-nav .wp-block-navigation-item__content { font-size: 16px; }
body .wp-block-button:not(.mm-pill-light):not(.mm-pill-on):not(.mm-pill-grey):not(.mm-subscribe-btn) > .wp-block-button__link { color: #003e52; }
body .wp-block-button:not(.mm-pill-light):not(.mm-pill-on):not(.mm-pill-grey):not(.mm-subscribe-btn) > .wp-block-button__link:hover { color: #fff; }

/* Newsletter form (Gravity Forms form 1) inside the subscribe panel, as on live */
body .mm-subpanel .gform_wrapper .gfield_label, body .mm-subpanel .gform_wrapper .gform-field-label { color: #fff; }
body .mm-subpanel .gform_wrapper input[type=text], body .mm-subpanel .gform_wrapper input[type=email] { background: transparent; border: 1px solid #fff; border-radius: 6px; color: #fff; height: 52px; padding: 0 10px; }
body .mm-subpanel .gform_wrapper input::placeholder { color: #fff; opacity: 1; }
body .mm-subpanel .gform_wrapper .gform_button, body .mm-subpanel .gform_wrapper input[type=submit] { background: transparent; border: 1px solid #b91f28; color: #b91f28; border-radius: 3px; padding: 10px 16px; font-family: Roboto, sans-serif; font-size: 16px; }
body .wp-block-group:has(> .mm-tiles) > p, body .wp-block-group:has(> .mm-sec) > p { font-size: 16px; line-height: 1.6; }
body .mm-hero-res .mm-reslist p { font-size: 20px; font-weight: 700; line-height: 1.3; }

/* News & Current Events (live news loop): grey cards, image, blue categories and date, title, excerpt, read more */
body .mm-newsgrid .wp-block-post-template { gap: 30px !important; }
body .mm-news-card { background: #f0f0f0; padding: 15px 15px 22px; height: 100%; }
body .mm-news-img img { width: 100%; height: 250px; object-fit: cover; }
body .mm-news-meta { gap: 16px !important; margin: 18px 0 8px !important; font-family: Roboto, Arial, sans-serif; font-size: 16px; }
body .mm-news-meta a, body .mm-news-date { color: #0097c8; }
body .mm-news-date::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -1px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23002a38' d='M3 0h2v2h6V0h2v2h3v14H0V2h3zM1.5 6v8.5h13V6z'/%3E%3C/svg%3E") center / contain no-repeat; }
body .mm-news-title { font-size: 22px; line-height: 1.15; margin: 0 0 10px; text-transform: capitalize; }
body .mm-news-title a { color: #002a38; }
body .mm-news-excerpt { font-family: Roboto, Arial, sans-serif; font-size: 16px; line-height: 1.5; color: #3b3b3b; margin: 0 0 14px; }
body .mm-news-excerpt .wp-block-post-excerpt__more-text { display: none; }
body .mm-news-more { font-family: Roboto, Arial, sans-serif; font-weight: 700; font-size: 18px; color: #002a38; }
body .mm-news-meta .wp-block-post-terms, body .mm-news-meta .wp-block-post-terms a { font-weight: 400; }
