/*
Theme Name: Clearwater Ledger
Author: Northline Editorial
Description: A classic PHP WordPress theme with a poolside editorial layout, dynamic category links, Customizer controls, bundled image assets, and mobile-first responsive styling.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: ehd-theme
Domain Path: /languages
*/

:root {
	--ehd-navy: #001c58;
	--ehd-blue: #48b6f1;
	--ehd-bg: #f4f6f7;
	--ehd-soft: #fafafa;
	--ehd-text: rgba(0, 28, 88, 0.72);
	--ehd-border: rgba(0, 28, 88, 0.14);
	--ehd-border-strong: rgba(0, 28, 88, 0.22);
	--ehd-white: #ffffff;
	--ehd-lime: #e4ff4a;
	--ehd-shadow: 0 24px 60px rgba(0, 28, 88, 0.12);
	--ehd-radius-lg: 28px;
	--ehd-radius-md: 20px;
	--ehd-radius-sm: 12px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body.ehd-body {
	background: var(--ehd-bg);
	color: var(--ehd-text);
	font-family: Poppins, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.65;
	margin: 0;
	letter-spacing: 0;
}

.ehd-body img {
	display: block;
	height: auto;
	max-width: 100%;
}

.ehd-body a {
	color: inherit;
	text-decoration: none;
}

.ehd-body a:hover,
.ehd-body a:focus {
	color: var(--ehd-blue);
}

.ehd-body button,
.ehd-body input,
.ehd-body textarea,
.ehd-body select {
	font: inherit;
}

.ehd-sr-text,
.ehd-skip-link {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.ehd-skip-link:focus {
	background: var(--ehd-navy);
	border-radius: 999px;
	clip: auto;
	clip-path: none;
	color: var(--ehd-white);
	height: auto;
	left: 16px;
	padding: 10px 16px;
	top: 16px;
	width: auto;
	z-index: 9999;
}

.ehd-site-header {
	left: 0;
	padding: 14px 12px 0;
	position: sticky;
	right: 0;
	top: 0;
	z-index: 100;
}

.ehd-header-shell {
	align-items: center;
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid rgba(0, 28, 88, 0.08);
	border-radius: 24px;
	box-shadow: 0 16px 45px rgba(0, 28, 88, 0.08);
	display: grid;
	gap: 12px;
	grid-template-columns: 1fr auto;
	margin: 0 auto;
	max-width: 1580px;
	padding: 12px;
	position: relative;
	backdrop-filter: blur(16px);
}

.ehd-brand {
	align-items: center;
	color: var(--ehd-navy);
	display: inline-flex;
	gap: 12px;
	min-width: 0;
}

.ehd-brand-mark {
	align-items: center;
	background: var(--ehd-navy);
	border-radius: 999px;
	display: inline-flex;
	flex: 0 0 44px;
	flex-direction: column;
	gap: 4px;
	height: 44px;
	justify-content: center;
	width: 44px;
}

.ehd-brand-mark span {
	background: var(--ehd-white);
	border-radius: 999px;
	display: block;
	height: 2px;
	width: 20px;
}

.ehd-brand-copy {
	display: flex;
	flex-direction: column;
	line-height: 1.1;
	min-width: 0;
}

.ehd-brand-name {
	color: var(--ehd-navy);
	font-size: 18px;
	font-weight: 800;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ehd-brand-tagline {
	color: rgba(0, 28, 88, 0.55);
	font-size: 10px;
	font-weight: 700;
	margin-top: 4px;
	text-transform: uppercase;
}

.ehd-logo-wrap img {
	max-height: 58px;
	width: auto;
}

.ehd-menu-toggle {
	align-items: center;
	background: var(--ehd-navy);
	border: 0;
	border-radius: 999px;
	color: var(--ehd-white);
	cursor: pointer;
	display: inline-flex;
	gap: 8px;
	justify-content: center;
	min-height: 44px;
	padding: 10px 14px;
}

.ehd-menu-toggle-lines {
	display: inline-flex;
	flex-direction: column;
	gap: 4px;
}

.ehd-menu-toggle-lines span {
	background: currentColor;
	border-radius: 999px;
	display: block;
	height: 2px;
	width: 17px;
}

.ehd-primary-nav {
	background: var(--ehd-white);
	border: 1px solid var(--ehd-border);
	border-radius: 20px;
	box-shadow: var(--ehd-shadow);
	display: none;
	grid-column: 1 / -1;
	padding: 10px;
}

.ehd-menu-open .ehd-primary-nav {
	display: block;
}

.ehd-menu,
.ehd-footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ehd-menu {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.ehd-sub-menu {
	background: rgba(0, 28, 88, 0.04);
	border-radius: 16px;
	display: grid;
	gap: 2px;
	list-style: none;
	margin: 4px 0 0;
	padding: 6px;
}

.ehd-menu a {
	border-radius: 999px;
	color: var(--ehd-navy);
	display: block;
	font-size: 15px;
	font-weight: 700;
	padding: 10px 14px;
}

.ehd-menu a:hover,
.ehd-menu a:focus,
.ehd-menu a[aria-current] {
	background: var(--ehd-navy);
	color: var(--ehd-white);
}

.ehd-header-actions {
	display: none;
}

.ehd-search-toggle,
.ehd-header-cta,
.ehd-button,
.ehd-search-submit {
	align-items: center;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	display: inline-flex;
	font-weight: 800;
	gap: 10px;
	justify-content: center;
	min-height: 46px;
	padding: 12px 18px;
	transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.ehd-search-toggle {
	background: var(--ehd-white);
	border: 1px solid var(--ehd-border);
	color: var(--ehd-navy);
	min-width: 46px;
	padding: 12px;
}

.ehd-search-icon {
	border: 2px solid currentColor;
	border-radius: 999px;
	display: inline-block;
	height: 15px;
	position: relative;
	width: 15px;
}

.ehd-search-icon::after {
	background: currentColor;
	border-radius: 999px;
	content: "";
	height: 2px;
	position: absolute;
	right: -7px;
	top: 11px;
	transform: rotate(45deg);
	width: 8px;
}

.ehd-search-label {
	display: none;
}

.ehd-header-cta,
.ehd-button-primary,
.ehd-search-submit {
	background: var(--ehd-blue);
	color: var(--ehd-white);
}

.ehd-header-cta:hover,
.ehd-button-primary:hover,
.ehd-search-submit:hover,
.ehd-header-cta:focus,
.ehd-button-primary:focus,
.ehd-search-submit:focus {
	background: var(--ehd-navy);
	color: var(--ehd-white);
	transform: translateY(-1px);
}

.ehd-header-search {
	margin: 10px auto 0;
	max-width: 1580px;
}

.ehd-header-search-inner {
	background: var(--ehd-white);
	border: 1px solid var(--ehd-border);
	border-radius: 22px;
	box-shadow: var(--ehd-shadow);
	padding: 12px;
}

.ehd-search-form {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ehd-search-label-field {
	display: block;
	width: 100%;
}

.ehd-search-field {
	background: var(--ehd-bg);
	border: 1px solid var(--ehd-border);
	border-radius: 999px;
	color: var(--ehd-navy);
	min-height: 50px;
	padding: 12px 18px;
	width: 100%;
}

.ehd-search-field:focus {
	border-color: var(--ehd-blue);
	outline: 3px solid rgba(72, 182, 241, 0.24);
}

.ehd-site-main {
	margin-top: -76px;
}

.ehd-hero-section {
	padding: 96px 12px 18px;
}

.ehd-hero-shell {
	background: var(--ehd-navy);
	border-radius: var(--ehd-radius-lg);
	box-shadow: var(--ehd-shadow);
	isolation: isolate;
	margin: 0 auto;
	max-width: 1580px;
	min-height: 560px;
	overflow: hidden;
	position: relative;
}

.ehd-hero-image,
.ehd-hero-overlay {
	inset: 0;
	position: absolute;
}

.ehd-hero-image {
	height: 100%;
	object-fit: cover;
	width: 100%;
	z-index: -2;
}

.ehd-hero-overlay {
	background: linear-gradient(90deg, rgba(0, 28, 88, 0.96) 0%, rgba(0, 28, 88, 0.72) 42%, rgba(0, 28, 88, 0.18) 100%);
	z-index: -1;
}

.ehd-hero-content {
	display: flex;
	flex-direction: column;
	gap: 24px;
	min-height: 560px;
	padding: 104px 18px 22px;
}

.ehd-hero-copy {
	max-width: 720px;
}

.ehd-chip-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 18px;
}

.ehd-chip {
	align-items: center;
	border-radius: 999px;
	display: inline-flex;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.1;
	min-height: 32px;
	padding: 7px 13px;
}

.ehd-chip-glass {
	background: rgba(255, 255, 255, 0.2);
	border: 1px solid rgba(255, 255, 255, 0.36);
	color: var(--ehd-white);
}

.ehd-chip-blue {
	background: rgba(72, 182, 241, 0.15);
	color: #0066b8;
}

.ehd-hero-copy h1,
.ehd-section-heading h2,
.ehd-intro-grid h2,
.ehd-archive-hero h1,
.ehd-single-shell h1 {
	color: var(--ehd-navy);
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 800;
	letter-spacing: 0;
	line-height: 0.98;
	margin: 0;
}

.ehd-hero-copy h1 {
	color: var(--ehd-white);
	font-size: clamp(40px, 9vw, 76px);
	max-width: 760px;
}

.ehd-hero-copy p {
	color: rgba(255, 255, 255, 0.88);
	font-size: clamp(16px, 2vw, 20px);
	margin: 18px 0 22px;
	max-width: 600px;
}

.ehd-button-primary {
	box-shadow: 0 18px 38px rgba(72, 182, 241, 0.25);
}

.ehd-hero-mosaic {
	align-self: stretch;
}

.ehd-mosaic-grid {
	display: grid;
	gap: 10px;
	grid-template-columns: 1fr 1fr;
	margin-left: auto;
	max-width: 530px;
}

.ehd-mosaic-grid img,
.ehd-stat-card {
	border: 2px solid rgba(255, 255, 255, 0.78);
	border-radius: 18px;
	min-height: 118px;
	overflow: hidden;
}

.ehd-mosaic-grid img {
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.ehd-mosaic-wide {
	grid-column: span 2;
}

.ehd-stat-card {
	align-items: center;
	background: var(--ehd-lime);
	color: var(--ehd-navy);
	display: flex;
	flex-direction: column;
	grid-column: span 2;
	justify-content: center;
	padding: 18px;
	text-align: center;
}

.ehd-stat-card strong {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(42px, 10vw, 68px);
	line-height: 0.9;
}

.ehd-stat-card span {
	font-weight: 800;
}

.ehd-stat-mark {
	border: 2px solid var(--ehd-navy);
	border-radius: 999px;
	height: 24px;
	margin-bottom: 10px;
	position: relative;
	width: 42px;
}

.ehd-stat-mark::before,
.ehd-stat-mark::after {
	background: var(--ehd-lime);
	border: 2px solid var(--ehd-navy);
	border-bottom: 0;
	border-radius: 999px 999px 0 0;
	content: "";
	height: 16px;
	position: absolute;
	top: -12px;
	width: 16px;
}

.ehd-stat-mark::before {
	left: 4px;
}

.ehd-stat-mark::after {
	right: 4px;
}

.ehd-section {
	padding: 22px 12px;
}

.ehd-section-shell {
	margin: 0 auto;
	max-width: 1340px;
	width: 100%;
}

.ehd-intro-section {
	padding-top: 8px;
}

.ehd-intro-grid {
	display: grid;
	gap: 18px;
}

.ehd-kicker {
	color: var(--ehd-blue);
	display: inline-flex;
	font-size: 13px;
	font-weight: 900;
	margin-bottom: 10px;
	text-transform: uppercase;
}

.ehd-intro-grid h2,
.ehd-section-heading h2 {
	font-size: clamp(32px, 6vw, 52px);
}

.ehd-lime-card {
	background: var(--ehd-lime);
	border: 1px solid rgba(0, 28, 88, 0.16);
	border-radius: var(--ehd-radius-md);
	color: var(--ehd-navy);
	padding: 22px;
}

.ehd-lime-card strong {
	display: block;
	font-size: 22px;
	margin-bottom: 8px;
}

.ehd-lime-card p {
	margin: 0;
}

.ehd-section-heading {
	align-items: end;
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-bottom: 20px;
}

.ehd-section-heading > div {
	width: 100%;
}

.ehd-text-link,
.ehd-read-link {
	align-items: center;
	color: #0066b8;
	display: inline-flex;
	font-weight: 900;
	gap: 8px;
}

.ehd-card-grid {
	display: grid;
	gap: 16px;
	grid-template-columns: 1fr;
}

.ehd-post-card {
	background: var(--ehd-white);
	border: 1px solid var(--ehd-border-strong);
	border-radius: var(--ehd-radius-md);
	box-shadow: 0 18px 42px rgba(0, 28, 88, 0.08);
	overflow: hidden;
}

.ehd-card-image-link {
	aspect-ratio: 16 / 10;
	background: rgba(72, 182, 241, 0.12);
	display: block;
	overflow: hidden;
}

.ehd-card-image-link img {
	height: 100%;
	object-fit: cover;
	transition: transform 260ms ease;
	width: 100%;
}

.ehd-post-card:hover .ehd-card-image-link img {
	transform: scale(1.03);
}

.ehd-card-body {
	padding: 16px 16px 18px;
}

.ehd-card-meta {
	align-items: center;
	color: rgba(0, 28, 88, 0.62);
	display: flex;
	flex-wrap: wrap;
	font-size: 13px;
	font-weight: 700;
	gap: 9px;
	margin-bottom: 12px;
}

.ehd-card-body h2,
.ehd-card-body h3 {
	color: var(--ehd-navy);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(23px, 4vw, 29px);
	line-height: 1.12;
	margin: 0 0 10px;
}

.ehd-card-body p {
	margin: 0 0 14px;
}

.ehd-archive-hero {
	background: var(--ehd-white);
	border-bottom: 1px solid var(--ehd-border);
	margin-top: -76px;
	padding: 150px 12px 54px;
}

.ehd-archive-hero h1 {
	font-size: clamp(38px, 8vw, 76px);
}

.ehd-archive-description {
	color: var(--ehd-text);
	max-width: 760px;
}

.ehd-single-section {
	padding: 138px 0 70px;
}

.ehd-single-shell {
	background: var(--ehd-white);
	border: 1px solid var(--ehd-border-strong);
	border-radius: var(--ehd-radius-lg);
	box-shadow: var(--ehd-shadow);
	margin: 0 auto;
	padding: clamp(22px, 5vw, 64px);
	width: 80vw;
}

.ehd-single-meta {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 22px;
}

.ehd-single-shell h1 {
	font-size: clamp(38px, 8vw, 82px);
	margin-bottom: 28px;
}

.ehd-single-content {
	color: rgba(0, 28, 88, 0.78);
	font-size: clamp(17px, 2vw, 20px);
}

.ehd-single-content > *:first-child {
	margin-top: 0;
}

.ehd-single-content a {
	color: #0066b8;
	font-weight: 800;
	text-decoration: underline;
}

.ehd-single-content blockquote {
	background: var(--ehd-blue);
	border-radius: var(--ehd-radius-md);
	color: var(--ehd-white);
	margin: 34px 0;
	padding: 24px;
}

.ehd-single-content img {
	border-radius: var(--ehd-radius-md);
}

.ehd-page-links,
.ehd-post-nav,
.ehd-pagination {
	margin-top: 34px;
}

.ehd-post-nav {
	border-top: 1px solid var(--ehd-border);
	display: grid;
	gap: 12px;
	padding-top: 24px;
}

.ehd-post-nav a,
.ehd-pagination a,
.ehd-pagination span {
	background: var(--ehd-white);
	border: 1px solid var(--ehd-border);
	border-radius: 999px;
	color: var(--ehd-navy);
	display: inline-flex;
	font-weight: 800;
	margin: 3px;
	padding: 10px 14px;
}

.ehd-pagination [aria-current] {
	background: var(--ehd-navy);
	color: var(--ehd-white);
}

.ehd-empty-state {
	background: var(--ehd-white);
	border: 1px solid var(--ehd-border);
	border-radius: var(--ehd-radius-md);
	padding: 28px;
}

.ehd-empty-state h1,
.ehd-empty-state h2 {
	color: var(--ehd-navy);
	font-family: Georgia, "Times New Roman", serif;
	margin-top: 0;
}

.ehd-site-footer {
	padding: 34px 12px 18px;
}

.ehd-footer-shell {
	background: var(--ehd-white);
	border: 1px solid var(--ehd-border);
	border-radius: var(--ehd-radius-lg);
	box-shadow: var(--ehd-shadow);
	margin: 0 auto;
	max-width: 1580px;
	padding: 24px;
}

.ehd-footer-main {
	display: grid;
	gap: 28px;
}

.ehd-footer-brand p {
	max-width: 520px;
}

.ehd-footer-widgets {
	display: grid;
	gap: 20px;
}

.ehd-widget-title {
	color: var(--ehd-navy);
	font-size: 18px;
	margin: 0 0 12px;
}

.ehd-footer-menu {
	display: grid;
	gap: 8px;
}

.ehd-footer-menu a {
	color: var(--ehd-text);
	font-weight: 800;
}

.ehd-footer-bottom {
	border-top: 1px solid var(--ehd-border);
	font-size: 14px;
	margin-top: 24px;
	padding-top: 18px;
}

.ehd-footer-bottom p {
	margin: 0;
}

@media (min-width: 640px) {
	.ehd-search-form {
		align-items: center;
		flex-direction: row;
	}

	.ehd-section-heading {
		align-items: end;
		flex-direction: row;
		justify-content: space-between;
	}

	.ehd-section-heading > div {
		width: auto;
	}

	.ehd-card-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ehd-post-nav {
		grid-template-columns: 1fr 1fr;
	}

	.ehd-post-nav div:last-child {
		text-align: right;
	}
}

@media (min-width: 900px) {
	.ehd-site-header {
		padding-left: 24px;
		padding-right: 24px;
	}

	.ehd-header-shell {
		grid-template-columns: minmax(210px, 1fr) auto minmax(210px, 1fr);
		padding: 14px 18px;
	}

	.ehd-menu-toggle {
		display: none;
	}

	.ehd-primary-nav {
		background: transparent;
		border: 0;
		box-shadow: none;
		display: block;
		grid-column: auto;
		padding: 0;
	}

	.ehd-menu {
		align-items: center;
		background: var(--ehd-white);
		border: 1px solid var(--ehd-border);
		border-radius: 999px;
		flex-direction: row;
		gap: 4px;
		justify-content: center;
		padding: 4px;
	}

	.ehd-menu a {
		padding: 11px 18px;
	}

	.ehd-menu-item-has-children {
		position: relative;
	}

	.ehd-sub-menu {
		background: var(--ehd-white);
		border: 1px solid var(--ehd-border);
		box-shadow: var(--ehd-shadow);
		left: 0;
		min-width: 220px;
		opacity: 0;
		padding: 8px;
		pointer-events: none;
		position: absolute;
		top: calc(100% + 10px);
		transform: translateY(8px);
		transition: opacity 180ms ease, transform 180ms ease;
	}

	.ehd-menu-item-has-children:hover > .ehd-sub-menu,
	.ehd-menu-item-has-children:focus-within > .ehd-sub-menu {
		opacity: 1;
		pointer-events: auto;
		transform: translateY(0);
	}

	.ehd-header-actions {
		align-items: center;
		display: flex;
		gap: 10px;
		justify-content: flex-end;
	}

	.ehd-hero-section {
		padding-left: 24px;
		padding-right: 24px;
	}

	.ehd-hero-content {
		align-items: end;
		display: grid;
		gap: 30px;
		grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
		padding: 124px 54px 44px;
	}

	.ehd-mosaic-grid {
		grid-template-columns: 1fr 1fr;
	}

	.ehd-mosaic-wide {
		grid-column: span 2;
	}

	.ehd-stat-card {
		grid-column: span 2;
	}

	.ehd-section {
		padding-left: 24px;
		padding-right: 24px;
	}

	.ehd-intro-grid {
		align-items: end;
		grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
	}

	.ehd-card-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.ehd-footer-main {
		grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
	}

	.ehd-footer-widgets {
		grid-template-columns: 1fr 1fr;
	}
}

@media (min-width: 1200px) {
	.ehd-hero-shell,
	.ehd-hero-content {
		min-height: 620px;
	}

	.ehd-mosaic-grid {
		gap: 12px;
		max-width: 580px;
	}

	.ehd-mosaic-grid img,
	.ehd-stat-card {
		min-height: 128px;
	}
}
