/*
 * duumew — "Lagoon Daylight" layer (v2), loaded AFTER dm-theme.css by mu-plugins/dm-theme.php (body gets dm-lagoon + dm-daylight).
 * v1 was a white flower on an ivory page: right idea, too plain. v2 puts the page under the water: the whole background is the
 * lagoon at noon (turquoise #0A6F6D, white text reaches 6:1), the cards stay white like the flower, and one frangipani-coral
 * spark (#FF7B54, always with dark ink) runs through it. Signature: sunlit water caustics in the masthead, a wave-edged lagoon
 * menu, coral wave strokes under section titles, droplet labels with a coral bead, cards that catch a coral waterline on hover.
 * Every rule is scoped to body.dm-daylight; drop the class (or this file) and v1 is back untouched.
 */

body.dm-daylight {
	--dmd-water: #0A6F6D;
	--dmd-water-hi: #0E8A86;
	--dmd-deep: #063F44;
	--dmd-abyss: #04302F;
	--dmd-foam: #CDEDE6;
	--dmd-coral: #FF7B54;
	--dmd-coral-deep: #F2603A;
	--dmd-ink: #0E2224;
	--dmd-wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='8' viewBox='0 0 24 8'%3E%3Cpath d='M0 4 Q6 0 12 4 T24 4' fill='none' stroke='%23FF7B54' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
	--dmd-wave-foam: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='8' viewBox='0 0 24 8'%3E%3Cpath d='M0 4 Q6 0 12 4 T24 4' fill='none' stroke='%23CDEDE6' stroke-opacity='.55' stroke-width='1.6'/%3E%3C/svg%3E");
	background:
		radial-gradient(1200px 420px at 50% -160px, rgba(158, 216, 203, .14), rgba(158, 216, 203, 0) 70%),
		linear-gradient(180deg, #0B7672 0, var(--dmd-water) 520px, var(--dmd-water) 70%, #086261 100%) !important;
	scrollbar-color: var(--dmd-foam) var(--dmd-water);
}
body.dm-daylight #loader-wrapper { background: var(--dmd-water); }

/* ---------- Masthead: noon sun through the water (two ripple fields that cross into caustics; pure CSS, no image) ---------- */
body.dm-daylight .site-header,
body.dm-daylight .top-masthead { background: #0B7672; }
body.dm-daylight .masthead-banner {
	background:
		repeating-radial-gradient(circle at 18% 120%, rgba(255, 255, 255, 0) 0 22px, rgba(255, 255, 255, .10) 24px 25px, rgba(255, 255, 255, 0) 27px 44px),
		repeating-radial-gradient(circle at 82% -40%, rgba(255, 255, 255, 0) 0 26px, rgba(255, 255, 255, .09) 28px 29px, rgba(255, 255, 255, 0) 31px 52px),
		radial-gradient(38% 120% at 12% 40%, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0) 70%),
		radial-gradient(30% 90% at 88% 10%, rgba(255, 123, 84, .16), rgba(255, 123, 84, 0) 70%),
		linear-gradient(180deg, #0B7672, #0A6F6D 60%, #096866);
	border-bottom: 0;
	box-shadow: none;
}
body.dm-daylight .site-header .site-branding .site-title a,
body.dm-daylight .site-header .site-branding .site-title a:visited,
body.dm-daylight .site-title a { color: #fff !important; text-shadow: 0 2px 12px rgba(4, 48, 47, .45); }
body.dm-daylight .site-header .site-branding .site-title a:hover { color: var(--dmd-foam) !important; }
body.dm-daylight .site-description { color: #fff !important; text-shadow: 0 1px 3px rgba(4, 48, 47, .55); }
/* Logo: a white flower floating on the water: white disc, a coral bead ring, then a soft shadow on the water */
body.dm-daylight .custom-logo {
	background: #fff;
	box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--dmd-coral), 0 0 0 12px rgba(255, 255, 255, .18), 0 18px 34px -10px rgba(4, 48, 47, .6);
}

/* ---------- Menu: deep lagoon bar whose bottom edge is a coral wave ---------- */
body.dm-daylight nav.main-navigation {
	background: var(--dmd-wave) left bottom / 24px 8px repeat-x, linear-gradient(180deg, #0A4C51, var(--dmd-deep));
	padding-bottom: 6px;
	box-shadow: inset 0 1px 0 rgba(205, 237, 230, .28), 0 10px 22px -12px rgba(4, 48, 47, .7);
}
body.dm-daylight .main-navigation .menu ul li a:hover,
body.dm-daylight .main-navigation .menu ul li.current-menu-item > a,
body.dm-daylight .main-navigation .menu ul li.current_page_item > a { color: #fff; }
body.dm-daylight .main-navigation .menu > ul > li.current-menu-item > a::after,
body.dm-daylight .main-navigation .menu ul > li.current_page_item > a::after { background-color: var(--dmd-coral) !important; height: 3px; border-radius: 3px; }
body.dm-daylight .main-navigation .menu ul ul { background: var(--dmd-abyss); }

/* ---------- Flash Story: white pill, a coral plate with dark ink ---------- */
body.dm-daylight .exclusive-posts { border-color: rgba(255, 255, 255, .6); box-shadow: 0 12px 26px -16px rgba(4, 48, 47, .65); }
body.dm-daylight .exclusive-posts .exclusive-now { background: var(--dmd-coral) !important; }
body.dm-daylight .exclusive-posts .exclusive-now,
body.dm-daylight .exclusive-posts .exclusive-now * { color: var(--dmd-ink) !important; }
body.dm-daylight .exclusive-posts .exclusive-now .double-bounce1,
body.dm-daylight .exclusive-posts .exclusive-now .double-bounce2 { background-color: #fff !important; }

/* ---------- Section titles on the water: white Mitr, a coral wave under the words, a foam wave to the end ---------- */
body.dm-daylight #primary h2.widget-title,
body.dm-daylight .covernews-heading-style,
body.dm-daylight .header-after { border-bottom: 0 !important; }
body.dm-daylight #primary .widget-title,
body.dm-daylight #primary h2.widget-title span,
body.dm-daylight #primary .header-after,
body.dm-daylight #primary span.header-after { color: #fff !important; text-shadow: 0 1px 10px rgba(4, 48, 47, .35); }
body.dm-daylight #primary h2.widget-title { background: var(--dmd-wave-foam) left bottom / 24px 8px repeat-x; padding-bottom: 2px; }
body.dm-daylight #primary h2.widget-title span::before,
body.dm-daylight #primary h2.widget-title span::after,
body.dm-daylight #primary .covernews-heading-style::before,
body.dm-daylight #primary span.header-after::after,
body.dm-daylight #primary span.border-after,
body.dm-daylight .main-story-wrapper span.border-after {
	background: var(--dmd-wave) left center / 24px 8px repeat-x !important;
	height: 8px !important;
	width: 72px;
	bottom: -6px;
	border-radius: 0;
}

/* Every heading that sits on the water (banner columns, latest posts, related stories) is white; sidebar ones live in white cards */
body.dm-daylight .widget-title,
body.dm-daylight .widget-title span,
body.dm-daylight .header-after,
body.dm-daylight .em-reated-posts .related-title,
body.dm-daylight h3.related-title { color: #fff !important; text-shadow: 0 1px 10px rgba(4, 48, 47, .35); }
body.dm-daylight #secondary .widget-title,
body.dm-daylight #secondary .widget-title span,
body.dm-daylight #secondary .header-after,
body.dm-daylight #secondary .wp-block-search__label { color: var(--dml-lagoon) !important; text-shadow: none; }

/* Breadcrumbs and archive headings on the water */
body.dm-daylight .em-breadcrumbs,
body.dm-daylight .em-breadcrumbs a,
body.dm-daylight .em-breadcrumbs span,
body.dm-daylight .yoast-breadcrumbs,
body.dm-daylight .yoast-breadcrumbs a { color: #EEF9F6 !important; }
body.dm-daylight .em-breadcrumbs .breadcrumb_last,
body.dm-daylight span.breadcrumb_last { color: #fff !important; font-weight: 500; }
body.dm-daylight .em-breadcrumbs a:hover { color: #fff !important; text-decoration: underline; text-decoration-color: var(--dmd-coral); text-underline-offset: 3px; }

body.dm-daylight .header-title-wrapper1 .page-title,
body.dm-daylight .header-title-wrapper .page-title { color: #fff !important; text-shadow: 0 1px 10px rgba(4, 48, 47, .35); }
body.dm-daylight .header-title-wrapper1 .page-title::after,
body.dm-daylight .header-title-wrapper .page-title::after { content: ""; display: block; width: 72px; height: 8px; margin-top: 10px; background: var(--dmd-wave) left center / 24px 8px repeat-x; }
body.dm-daylight .archive-description,
body.dm-daylight .archive-description p,
body.dm-daylight .taxonomy-description { color: #EEF9F6 !important; }
body.dm-daylight .archive-description a { color: #fff !important; text-decoration: underline; text-decoration-color: var(--dmd-coral); }

/* ---------- Cards: still white paper; on hover they catch a coral waterline ---------- */
body.dm-daylight .spotlight-post,
body.dm-daylight .single-column-posts,
body.dm-daylight .archive-layout-list,
body.dm-daylight .aft-full-title-first,
body.dm-daylight .af-main-banner .tabbed-container ul.article-tabbed-list .base-border,
body.dm-daylight #primary ul.article-item.article-list-item.article-tabbed-list.article-item-left li.full-item,
body.dm-daylight #secondary .widget,
body.dm-daylight article .entry-content-wrap,
body.dm-daylight article .comments-area {
	border-color: rgba(255, 255, 255, .55);
	box-shadow: 0 1px 2px rgba(4, 48, 47, .12), 0 14px 30px -16px rgba(4, 48, 47, .55);
}
body.dm-daylight .spotlight-post:hover {
	border-color: rgba(255, 255, 255, .9);
	box-shadow: inset 0 -3px 0 var(--dmd-coral), 0 2px 4px rgba(4, 48, 47, .14), 0 24px 40px -18px rgba(4, 48, 47, .7);
}

/* ---------- Category labels: lagoon droplets (three round corners, one sharp) with a coral bead ---------- */
body.dm-daylight .figure-categories .cat-links a,
body.dm-daylight .figure-categories .cat-links a.covernews-categories,
body.dm-daylight a.covernews-categories,
body.dm-daylight .aft-main-banner-slider-grid .trending-story .figure-categories .cat-links a.covernews-categories,
body.dm-daylight .full-plus-list .spotlight-post:first-of-type .figure-categories .cat-links a.covernews-categories {
	background: radial-gradient(circle at 10px 50%, var(--dmd-coral) 0 3px, rgba(255, 123, 84, 0) 3.6px), var(--dmd-deep) !important;
	border-radius: 999px 999px 999px 3px;
	padding-left: 19px !important;
	box-shadow: inset 0 0 0 1px rgba(205, 237, 230, .35);
}
body.dm-daylight .figure-categories .cat-links a:hover,
body.dm-daylight a.covernews-categories:hover { background: radial-gradient(circle at 10px 50%, var(--dmd-ink) 0 3px, rgba(14, 34, 36, 0) 3.6px), var(--dmd-coral) !important; color: var(--dmd-ink) !important; }
/* Trending list prints labels as words, as the theme does */
body.dm-daylight .banner-trending-posts-wrapper .figure-categories .cat-links a.covernews-categories,
body.dm-daylight .banner-trending-posts-wrapper .figure-categories .cat-links a.covernews-categories:hover { background: transparent !important; box-shadow: none; padding-left: 0 !important; }

/* Trending numbers: a coral droplet */
body.dm-daylight span.trending-no { background: var(--dmd-coral); color: var(--dmd-ink); border-radius: 999px 999px 999px 3px; }

/* ---------- Buttons, pagination, back-to-top: lagoon at rest, coral with dark ink when touched ---------- */
body.dm-daylight button:hover,
body.dm-daylight input[type="submit"]:hover,
body.dm-daylight .wp-block-search__button:hover,
body.dm-daylight .search-form .search-submit:hover,
body.dm-daylight #scroll-up:hover { background: var(--dmd-coral) !important; color: var(--dmd-ink) !important; }
body.dm-daylight .main-navigation button:hover,
body.dm-daylight .toggle-menu button:hover,
body.dm-daylight .search-overlay button:hover { background: transparent !important; }
body.dm-daylight .nav-links .page-numbers.current { background: var(--dmd-coral); color: var(--dmd-ink); border-color: var(--dmd-coral); }
body.dm-daylight .nav-links .page-numbers,
body.dm-daylight .nav-links a.page-numbers { border-color: rgba(255, 255, 255, .6); }
body.dm-daylight #scroll-up { background: var(--dmd-deep) !important; box-shadow: 0 0 0 2px rgba(255, 255, 255, .7); }

/* ---------- Single post: a coral wave under the title ---------- */
body.dm-daylight .entry-header-details h1.entry-title::after,
body.dm-daylight header.entry-header h1.entry-title::after {
	content: "";
	display: block;
	width: 72px;
	height: 8px;
	margin-top: 12px;
	background: var(--dmd-wave) left center / 24px 8px repeat-x;
}
body.dm-daylight .entry-content h2 { background: var(--dmd-wave) 0 100% / 24px 8px no-repeat, var(--dmd-wave) 24px 100% / 24px 8px no-repeat; padding-bottom: 14px; }

/* ---------- Footer: the deep water under the lagoon, a foam wave on top ---------- */
body.dm-daylight .site-footer {
	background: var(--dmd-wave-foam) left top / 24px 8px repeat-x, radial-gradient(50% 80% at 85% 0%, rgba(255, 123, 84, .14), rgba(6, 63, 68, 0) 70%), var(--dmd-deep) !important;
	box-shadow: none;
	padding-top: 8px;
}
body.dm-daylight .site-footer .site-info { background: var(--dmd-abyss) !important; }
body.dm-daylight .site-footer a:hover,
body.dm-daylight .site-footer .site-info a:hover { color: var(--dmd-coral); }
body.dm-daylight .site-footer .widget-title span::before,
body.dm-daylight .site-footer .widget-title span::after { background: var(--dmd-coral) !important; }

/* ---------- Phones/touch: the painted 26px label keeps the droplet and the bead ---------- */
@media (max-width: 767px), (pointer: coarse) {
	body.dm-daylight li.meta-category a.covernews-categories,
	body.dm-daylight .figure-categories .cat-links li.meta-category a.covernews-categories { background: transparent !important; padding-left: 19px !important; }
	body.dm-daylight li.meta-category a.covernews-categories::before,
	body.dm-daylight .figure-categories .cat-links li.meta-category a.covernews-categories::before {
		background: radial-gradient(circle at 10px 50%, var(--dmd-coral) 0 3px, rgba(255, 123, 84, 0) 3.6px), var(--dmd-deep);
		border-radius: 999px 999px 999px 3px;
	}
	body.dm-daylight .figure-categories .cat-links li.meta-category a.covernews-categories:hover { color: #fff !important; background: transparent !important; }
	body.dm-daylight .figure-categories .cat-links li.meta-category a.covernews-categories:hover::before { background: radial-gradient(circle at 10px 50%, #fff 0 3px, rgba(255, 255, 255, 0) 3.6px), #0A4C51; }
	/* trending labels stay plain deep pills on phones (as v1), white words, no bead */
	body.dm-daylight .banner-trending-posts-wrapper .figure-categories .cat-links li.meta-category a.covernews-categories::before { background: var(--dmd-deep); border-radius: 999px; }
}

@media (prefers-reduced-motion: reduce) {
	body.dm-daylight .spotlight-post:hover { transform: none; }
}
