/*
Theme Name: MWCNU KTS
Theme URI: https://mwcnukertosono.or.id/
Author: MWCNU Kertosono
Description: Tema WordPress responsif untuk MWC NU Kertosono dengan navigasi mobile dan warna identitas situs.
Version: 1.2.4
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: mwcnu-kts
*/

:root {
	--mwc-navy: #214b36;
	--mwc-red: #18834c;
	--mwc-blue: #23885a;
	--mwc-ink: #263b30;
	--mwc-muted: #68796d;
	--mwc-paper: #f4f8f3;
	--mwc-line: #e2ebe2;
	--mwc-white: #fff;
	--mwc-radius: 20px;
	--mwc-shadow: 0 16px 48px rgba(3, 20, 53, .09);
	color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 9.5rem; }
body {
	margin: 0;
	background: var(--mwc-white);
	color: var(--mwc-ink);
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}
img { display: block; height: auto; max-width: 100%; }
a { color: var(--mwc-blue); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--mwc-red); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--mwc-blue); outline-offset: 3px; }
.screen-reader-text {
	position: absolute;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	width: 1px;
	height: 1px;
	white-space: nowrap;
}
.screen-reader-text:focus {
	z-index: 10000;
	top: 1rem;
	left: 1rem;
	clip: auto;
	clip-path: none;
	width: auto;
	height: auto;
	padding: .75rem 1rem;
	background: var(--mwc-white);
	color: var(--mwc-navy);
}
.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: rgba(255,255,255,.96);
	border-bottom: 1px solid rgba(230,234,241,.8);
	box-shadow: 0 6px 20px rgba(33,75,54,.05);
}
.admin-bar .site-header { top: 32px; }
.header-inner, .content-wrap, .footer-inner {
	width: min(1160px, calc(100% - 48px));
	margin-inline: auto;
}
.header-inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: .35rem 1.5rem;
	padding-block: .85rem .65rem;
}
.brand { display: inline-flex; align-items: center; gap: .85rem; color: var(--mwc-navy); text-decoration: none; }
.custom-logo-link { display: inline-flex; }
.custom-logo { width: auto; max-height: 56px; }
.brand-mark {
	width: 46px;
	height: 46px;
	display: grid;
	place-items: center;
	border-radius: 15px;
	background: linear-gradient(145deg, #39a66c, #18834c);
	color: var(--mwc-white);
	font-size: 1rem;
	font-weight: 850;
	letter-spacing: -.06em;
	box-shadow: 0 8px 18px rgba(24,131,76,.2);
}
.brand-copy { display: grid; line-height: 1.25; }
.brand-title { color: var(--mwc-navy); font-weight: 800; letter-spacing: -.035em; text-decoration: none; white-space: nowrap; }
.brand-description { margin-top: .2rem; color: var(--mwc-muted); font-size: .73rem; }
.nav-toggle { display: none; }
.primary-navigation {
	grid-column: 1 / -1;
	grid-row: 2;
	min-width: 0;
	padding: .35rem .65rem;
	border: 1px solid #e8efe7;
	border-radius: 14px;
	background: #f7faf6;
}
.primary-navigation ul {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: .15rem clamp(.35rem, 1vw, .9rem);
	margin: 0;
	padding: 0;
	list-style: none;
}
.primary-navigation li { position: relative; }
.primary-navigation a {
	display: block;
	padding: .48rem .58rem;
	color: var(--mwc-ink);
	font-size: .84rem;
	font-weight: 650;
	text-decoration: none;
	white-space: nowrap;
	border-radius: 9px;
}
.primary-navigation a:hover,
.primary-navigation .current-menu-item > a {
	background: #eaf4e9;
	color: var(--mwc-red);
}
.primary-navigation .sub-menu,
.primary-navigation .children {
	position: absolute;
	z-index: 20;
	top: 100%;
	left: -.75rem;
	display: block;
	min-width: 210px;
	padding: .45rem;
	border: 1px solid var(--mwc-line);
	border-radius: 14px;
	background: var(--mwc-white);
	box-shadow: var(--mwc-shadow);
	visibility: hidden;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}
.primary-navigation .sub-menu a,
.primary-navigation .children a { padding: .6rem .7rem; border-radius: 8px; white-space: normal; }
.primary-navigation .sub-menu a:hover,
.primary-navigation .children a:hover { background: var(--mwc-paper); }
.primary-navigation > div > ul > li:nth-last-child(-n+2) > .sub-menu,
.primary-navigation > ul > li:nth-last-child(-n+2) > .sub-menu { right: -.45rem; left: auto; }
.primary-navigation li:hover > .sub-menu,
.primary-navigation li:focus-within > .sub-menu,
.primary-navigation li:hover > .children,
.primary-navigation li:focus-within > .children {
	visibility: visible;
	opacity: 1;
	transform: translateY(0);
}
.header-tools { grid-column: 2; grid-row: 1; display: flex; align-items: center; gap: .5rem; }
.header-search { display: flex; align-items: center; gap: .4rem; }
.header-search input {
	width: clamp(110px, 12vw, 150px);
	min-height: 42px;
	padding: .55rem .85rem;
	border: 1px solid var(--mwc-line);
	border-radius: 999px;
	background: var(--mwc-paper);
	color: var(--mwc-ink);
}
.header-search button, .button {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	padding: .65rem 1.1rem;
	border: 0;
	border-radius: 999px;
	background: var(--mwc-red);
	color: var(--mwc-white);
	font-size: .9rem;
	font-weight: 750;
	text-decoration: none;
	cursor: pointer;
	transition: transform .18s ease, background-color .18s ease;
}
.header-search button { min-height: 40px; padding-inline: .95rem; }
.color-mode-toggle {
	display: inline-flex;
	min-height: 40px;
	align-items: center;
	justify-content: center;
	gap: .4rem;
	padding: .45rem .7rem;
	border: 1px solid var(--mwc-line);
	border-radius: 999px;
	background: var(--mwc-paper);
	color: var(--mwc-navy);
	font-size: .76rem;
	font-weight: 750;
	white-space: nowrap;
	cursor: pointer;
}
.color-mode-toggle:hover { border-color: var(--mwc-blue); }
.color-mode-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.color-mode-icon-dark { display: none; }
html[data-color-mode="dark"] .color-mode-icon-light { display: none; }
html[data-color-mode="dark"] .color-mode-icon-dark { display: block; }
.button:hover, .header-search button:hover { transform: translateY(-2px); background: #12683c; color: var(--mwc-white); }
.button-secondary { background: var(--mwc-white); color: var(--mwc-navy); }
.button-secondary:hover { background: #e6f3e8; color: var(--mwc-navy); }

.latest-slider-section { padding: 1.5rem 0 2.25rem; background: #f7faf6; border-bottom: 1px solid var(--mwc-line); }
.latest-slider-inner { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.latest-slider-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.latest-slider-heading .eyebrow { margin-bottom: .2rem; }
.latest-slider-heading h2 { margin: 0; color: var(--mwc-navy); font-size: clamp(1.2rem, 2.5vw, 1.65rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.25; }
.latest-slider-controls { display: flex; flex: 0 0 auto; gap: .45rem; visibility: hidden; }
.has-latest-slider .latest-slider-controls { visibility: visible; }
.slider-control {
	display: grid;
	width: 40px;
	height: 40px;
	place-items: center;
	border: 1px solid #dce8dc;
	border-radius: 50%;
	background: var(--mwc-white);
	color: var(--mwc-navy);
	cursor: pointer;
	transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.slider-control:hover:not(:disabled) { border-color: var(--mwc-red); background: var(--mwc-red); color: var(--mwc-white); }
.slider-control:disabled { cursor: default; opacity: .42; }
.slider-control svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.slider-pause { width: auto; min-width: 40px; grid-auto-flow: column; gap: .35rem; padding-inline: .65rem; border-radius: 999px; font-size: .73rem; font-weight: 700; }
.slider-pause .slider-play-icon { display: none; }
.slider-pause[aria-pressed="true"] .slider-pause-icon { display: none; }
.slider-pause[aria-pressed="true"] .slider-play-icon { display: block; }
.latest-slider-track {
	display: grid;
	grid-auto-columns: 100%;
	grid-auto-flow: column;
	gap: .75rem;
	overflow-x: auto;
	padding: .15rem .1rem .7rem;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-color: #b7d2b7 transparent;
	scrollbar-width: thin;
}
.latest-slide {
	position: relative;
	min-width: 0;
	overflow: hidden;
	min-height: 210px;
	border-radius: 16px;
	background: #dcebd9;
	box-shadow: 0 8px 24px rgba(33,75,54,.08);
	scroll-snap-align: start;
}
.latest-slide-link { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; color: var(--mwc-white); text-decoration: none; }
.latest-slide-image, .latest-slide-placeholder, .latest-slide-overlay { position: absolute; inset: 0; }
.latest-slide-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.latest-slide-link:hover .latest-slide-image img { transform: scale(1.045); }
.latest-slide-placeholder { background: linear-gradient(135deg, #72ae79, #d5e8bd 58%, #b4d7c2); }
.latest-slide-overlay { background: linear-gradient(180deg, rgba(20,54,34,.02) 10%, rgba(20,54,34,.34) 48%, rgba(16,43,29,.88) 100%); }
.latest-slide-content { position: relative; z-index: 1; padding: 1rem; }
.latest-slide-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .65rem; margin-bottom: .45rem; color: rgba(255,255,255,.86); font-size: .7rem; font-weight: 650; }
.latest-slide-category { padding: .18rem .5rem; border-radius: 999px; background: rgba(255,255,255,.19); color: var(--mwc-white); }
.latest-slide-content h3 { display: -webkit-box; overflow: hidden; margin: 0; color: var(--mwc-white); font-size: clamp(.9rem, 1.2vw, 1.04rem); font-weight: 780; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.latest-slide-read { display: inline-block; margin-top: .55rem; color: #dcf2d5; font-size: .75rem; font-weight: 750; }

main { flex: 1; }
.hero {
	position: relative;
	overflow: hidden;
	padding: clamp(4.5rem, 9vw, 8rem) 0;
	background:
		radial-gradient(ellipse at 82% 12%, rgba(79,170,103,.17), transparent 36%),
		radial-gradient(ellipse at 98% 90%, rgba(182,218,139,.25), transparent 32%),
		linear-gradient(125deg, #f3f9f0, #eaf5e9 58%, #f5f8ee);
	color: var(--mwc-navy);
}
.hero::after {
	position: absolute;
	right: max(-8rem, calc((100vw - 1300px)/2));
	bottom: -18rem;
	width: 34rem;
	height: 34rem;
	border: 1px solid rgba(33,75,54,.1);
	border-radius: 50%;
	box-shadow: 0 0 0 38px rgba(33,75,54,.025), 0 0 0 78px rgba(33,75,54,.025);
	content: "";
	pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .55rem;
	margin: 0 0 1.1rem;
	color: #397953;
	font-size: .78rem;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
}
.eyebrow::before { width: 24px; height: 2px; background: var(--mwc-red); content: ""; }
.hero h1 {
	max-width: 760px;
	margin: 0;
	font-size: clamp(2.5rem, 6vw, 5rem);
	font-weight: 850;
	letter-spacing: -.065em;
	line-height: 1.04;
}
.hero h1 span { color: #23885a; }
.hero-copy { max-width: 650px; margin: 1.35rem 0 0; color: #5c7061; font-size: clamp(1rem, 1.7vw, 1.18rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-soft { background: var(--mwc-paper); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; }
.section-heading h2, .page-title {
	margin: 0;
	color: var(--mwc-navy);
	font-size: clamp(1.8rem, 3.5vw, 2.7rem);
	font-weight: 820;
	letter-spacing: -.05em;
	line-height: 1.15;
}
.section-heading p { max-width: 540px; margin: .55rem 0 0; color: var(--mwc-muted); }
.text-link { flex: 0 0 auto; font-size: .92rem; font-weight: 750; text-decoration: none; }
.category-index { display: flex; flex-wrap: wrap; gap: .55rem; margin: 0 0 2rem; }
.category-index a {
	padding: .45rem .85rem;
	border: 1px solid var(--mwc-line);
	border-radius: 999px;
	background: var(--mwc-white);
	color: var(--mwc-navy);
	font-size: .84rem;
	font-weight: 700;
	text-decoration: none;
	transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}
.category-index a:hover { border-color: #b8d7bd; background: #eaf4e9; color: var(--mwc-red); }
.category-group { padding: 1.5rem 0 2.25rem; border-top: 1px solid var(--mwc-line); scroll-margin-top: 1.5rem; }
.category-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.category-heading .eyebrow { margin-bottom: .35rem; }
.category-heading h3 { margin: 0; color: var(--mwc-navy); font-size: clamp(1.35rem, 2.4vw, 1.8rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.2; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.35rem; }
.post-card {
	overflow: hidden;
	border: 1px solid var(--mwc-line);
	border-radius: var(--mwc-radius);
	background: var(--mwc-white);
	box-shadow: 0 8px 28px rgba(3,20,53,.035);
	transition: transform .2s ease, box-shadow .2s ease;
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--mwc-shadow); }
.post-card-image { display: block; overflow: hidden; aspect-ratio: 16 / 10; background: #eaf4e9; }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.post-card:hover .post-card-image img { transform: scale(1.035); }
.post-card-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #dff0dc, #eef5df); }
.post-card-content { padding: 1.35rem; }
.post-meta { display: flex; flex-wrap: wrap; gap: .45rem .8rem; color: var(--mwc-muted); font-size: .78rem; }
.post-category { color: var(--mwc-red); font-weight: 750; }
.post-card h2, .post-card h3 { margin: .65rem 0 .45rem; color: var(--mwc-navy); font-size: 1.2rem; font-weight: 780; letter-spacing: -.025em; line-height: 1.35; }
.post-card h2 a, .post-card h3 a { color: inherit; text-decoration: none; }
.post-card h2 a:hover, .post-card h3 a:hover { color: var(--mwc-blue); }
.post-card p { margin: 0; color: var(--mwc-muted); font-size: .92rem; }
.about-panel {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(240px, .85fr);
	align-items: center;
	gap: clamp(2rem, 6vw, 5rem);
	padding: clamp(2rem, 5vw, 4rem);
	border-radius: 28px;
	background: linear-gradient(135deg, #edf6e9, #e5f2e8);
	color: var(--mwc-navy);
}
.about-panel h2 { margin: 0; font-size: clamp(1.8rem, 3.4vw, 2.65rem); letter-spacing: -.05em; line-height: 1.16; }
.about-panel p { margin: 1rem 0 0; color: var(--mwc-muted); }
.about-accent {
	min-height: 190px;
	display: grid;
	place-items: center;
	border: 1px solid rgba(33,75,54,.12);
	border-radius: 22px;
	background: linear-gradient(135deg, #d7edcf, #cce8d9);
	color: var(--mwc-navy);
	font-size: clamp(1.3rem, 3vw, 2rem);
	font-weight: 850;
	letter-spacing: .02em;
	text-align: center;
}

.page-content { padding: clamp(3rem, 7vw, 5rem) 0; }
.page-header { margin-bottom: 2rem; }
.page-header .post-meta { margin-top: .8rem; }
.entry-content { max-width: 790px; margin-inline: auto; }
.entry-content > * { margin-block: 0 1.35em; }
.entry-content h2, .entry-content h3 { color: var(--mwc-navy); letter-spacing: -.035em; line-height: 1.25; }
.entry-content img { border-radius: 14px; }
.entry-content blockquote { margin-inline: 0; padding: 1rem 1.4rem; border-left: 4px solid var(--mwc-red); background: var(--mwc-paper); }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: .7rem; border: 1px solid var(--mwc-line); text-align: left; }
.single-article { max-width: 100%; }
.single-article-header { max-width: 1040px; margin: 0 auto 2rem; }
.article-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; margin-bottom: 1.5rem; color: var(--mwc-muted); font-size: .82rem; }
.article-breadcrumb a { color: var(--mwc-muted); font-weight: 650; text-decoration: none; }
.article-breadcrumb a:hover { color: var(--mwc-blue); }
.article-categories { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1rem; }
.article-categories a { padding: .28rem .7rem; border: 1px solid #d6e8d7; border-radius: 999px; background: #f0f7ef; color: var(--mwc-navy); font-size: .76rem; font-weight: 750; line-height: 1.5; text-decoration: none; }
.article-categories a:hover { border-color: #b8d7bd; background: #e5f2e4; color: var(--mwc-blue); }
.single-article-title { max-width: 100%; margin: 0; color: var(--mwc-navy); font-size: clamp(2rem, 4.4vw, 3.45rem); font-weight: 850; letter-spacing: -.055em; line-height: 1.1; text-wrap: pretty; }
.article-byline { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .65rem; margin-top: 1.25rem; color: var(--mwc-muted); font-size: .88rem; }
.article-byline-divider { color: #a7b6aa; }
.single-featured-image { max-width: 1040px; margin: 0 auto 2.5rem; }
.single-featured-image img { width: 100%; max-height: 580px; border-radius: 22px; background: var(--mwc-paper); object-fit: cover; }
.single-featured-image figcaption { margin-top: .65rem; color: var(--mwc-muted); font-size: .82rem; text-align: center; }
.single-article-body { max-width: 1040px; color: #34483b; font-size: 1.08rem; line-height: 1.85; overflow-wrap: anywhere; }
.single-article-body > * { margin-block: 0 1.45em; }
.single-article-body > p:first-of-type { color: #31483a; font-size: 1.12em; }
.single-article-body h2 { margin-top: 2em; font-size: clamp(1.45rem, 3vw, 1.9rem); }
.single-article-body h3 { margin-top: 1.8em; font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
.single-article-body h4 { margin-top: 1.6em; color: var(--mwc-navy); font-size: 1.1rem; }
.single-article-body p { margin-block: 0 1.45em; }
.single-article-body a { font-weight: 650; }
.single-article-body ul, .single-article-body ol { padding-left: 1.5em; }
.single-article-body li + li { margin-top: .45em; }
.single-article-body figure { margin: 2rem 0; }
.single-article-body figure img { width: auto; max-width: 100%; height: auto; margin-inline: auto; }
.single-article-body figcaption { margin-top: .6rem; color: var(--mwc-muted); font-size: .82rem; text-align: center; }
.single-article-body blockquote { margin: 2rem 0; padding: 1rem 1.4rem; border-left: 4px solid var(--mwc-blue); border-radius: 0 14px 14px 0; background: var(--mwc-paper); color: var(--mwc-navy); font-size: 1.04em; }
.single-article-body blockquote > *:last-child { margin-bottom: 0; }
.single-article-body table { display: block; max-width: 100%; overflow-x: auto; }
.single-article-body iframe, .single-article-body video { max-width: 100%; }
.single-article-body .wp-block-embed { margin-block: 2rem; }
.post-navigation { max-width: 900px; margin: 3rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--mwc-line); }
.post-navigation .nav-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.post-navigation .nav-previous, .post-navigation .nav-next { min-width: 0; }
.post-navigation .nav-next { text-align: right; }
.post-navigation a { display: grid; gap: .35rem; height: 100%; padding: 1rem 1.1rem; border: 1px solid var(--mwc-line); border-radius: 16px; background: #fff; color: var(--mwc-navy); text-decoration: none; transition: border-color .18s ease, transform .18s ease; }
.post-navigation a:hover { transform: translateY(-2px); border-color: #b8d7bd; }
.article-nav-label { color: var(--mwc-muted); font-size: .75rem; font-weight: 700; }
.article-nav-title { overflow: hidden; font-size: .94rem; font-weight: 780; line-height: 1.4; text-overflow: ellipsis; }
.archive-heading { margin-bottom: 2rem; }
.pagination { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: 2.5rem; }
.pagination .page-numbers { min-width: 42px; padding: .5rem .85rem; border: 1px solid var(--mwc-line); border-radius: 999px; text-align: center; text-decoration: none; }
.pagination .current { border-color: var(--mwc-blue); background: var(--mwc-blue); color: var(--mwc-white); }
.empty-state { padding: 2rem; border-radius: var(--mwc-radius); background: var(--mwc-paper); }

.site-footer { padding: 3rem 0 2rem; background: #f2f7f1; color: var(--mwc-muted); }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(220px, .6fr); align-items: start; gap: 2rem; }
.footer-brand { color: var(--mwc-navy); font-size: 1.15rem; font-weight: 800; text-decoration: none; }
.footer-about p { max-width: 510px; margin: .55rem 0 0; font-size: .9rem; }
.footer-heading { margin: 0 0 .7rem; color: var(--mwc-navy); font-size: .9rem; font-weight: 800; }
.footer-navigation ul { display: flex; flex-wrap: wrap; gap: .55rem 1.1rem; margin: 0; padding: 0; list-style: none; }
.footer-navigation a { color: var(--mwc-navy); font-size: .88rem; text-decoration: none; }
.footer-navigation a:hover { color: var(--mwc-blue); }
.footer-bottom { display: flex; width: min(1160px, calc(100% - 48px)); justify-content: space-between; gap: 1rem; margin: 2rem auto 0; padding-top: 1rem; border-top: 1px solid var(--mwc-line); color: var(--mwc-muted); font-size: .78rem; }
.mobile-bottom-nav { display: none; }
.date-time-widget { position: fixed; z-index: 1100; right: 24px; bottom: 24px; display: grid; justify-items: end; gap: .65rem; }
.date-time-widget.is-footer-visible, .date-time-widget.is-article-visible { visibility: hidden; pointer-events: none; }
.date-time-panel {
	width: min(290px, calc(100vw - 32px));
	padding: 1.15rem 1.25rem;
	border: 1px solid rgba(33,75,54,.12);
	border-radius: 20px;
	background: rgba(255,255,255,.97);
	box-shadow: 0 18px 48px rgba(33,75,54,.18);
	backdrop-filter: blur(16px);
}
.date-time-panel[hidden] { display: none; }
.date-time-label { margin: 0; color: var(--mwc-muted); font-size: .73rem; font-weight: 700; letter-spacing: .04em; }
.digital-clock { display: block; margin-top: .2rem; color: var(--mwc-navy); font-size: 2rem; font-variant-numeric: tabular-nums; font-weight: 820; letter-spacing: -.045em; line-height: 1.25; }
.digital-clock-zone { margin: .35rem 0 0; color: var(--mwc-muted); font-size: .76rem; font-weight: 700; overflow-wrap: anywhere; }
.date-time-toggle {
	display: inline-flex;
	min-height: 46px;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	padding: .65rem 1rem;
	border: 1px solid rgba(255,255,255,.75);
	border-radius: 999px;
	background: var(--mwc-navy);
	color: var(--mwc-white);
	box-shadow: 0 8px 24px rgba(33,75,54,.2);
	font-size: .86rem;
	font-weight: 750;
	cursor: pointer;
}
.date-time-toggle:hover { background: var(--mwc-red); }
.date-time-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }

@media (max-width: 1240px) and (min-width: 681px) {
	.header-inner {
		gap: .35rem 1rem;
	}
	.primary-navigation { width: 100%; }
	.primary-navigation ul { column-gap: .35rem; }
	.header-search input { width: clamp(130px, 22vw, 210px); }
	.post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.latest-slider-track { grid-auto-columns: 100%; }
}
@media (max-width: 680px) {
	html { scroll-padding-top: 9.5rem; }
	.admin-bar .site-header { top: 46px; }
	body { font-size: 15px; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
	.header-inner, .content-wrap, .footer-inner, .footer-bottom { width: min(100% - 36px, 560px); }
	.header-inner { display: flex; min-height: 72px; flex-wrap: wrap; gap: .65rem; padding-block: .7rem; }
	.latest-slider-section { padding: 1rem 0 1.1rem; }
	.latest-slider-inner { width: min(100% - 36px, 560px); }
	.latest-slider-heading { margin-bottom: .75rem; }
	.latest-slider-controls { gap: .35rem; }
	.slider-control { width: 36px; height: 36px; }
	.slider-pause { width: 36px; min-width: 36px; padding: 0; }
	.slider-pause-label { display: none; }
	.latest-slider-track { grid-auto-columns: 100%; gap: .65rem; margin-right: 0; padding-right: .1rem; }
	.latest-slide { min-height: 170px; border-radius: 14px; }
	.latest-slide-content { padding: .9rem; }
	.latest-slide-content h3 { font-size: 1rem; }
	.brand-mark { width: 40px; height: 40px; border-radius: 13px; font-size: .9rem; }
	.brand { min-width: 0; gap: .55rem; }
	.brand-copy { min-width: 0; }
	.brand-title { font-size: .94rem; }
	.brand-description { display: none; }
	.nav-toggle {
		display: none;
		min-height: 42px;
		align-items: center;
		justify-content: center;
		gap: .45rem;
		margin-left: auto;
		padding: .45rem .8rem;
		border: 1px solid var(--mwc-line);
		border-radius: 12px;
		background: var(--mwc-white);
		color: var(--mwc-navy);
		font-size: .86rem;
		font-weight: 750;
		cursor: pointer;
	}
	.nav-toggle-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 2; }
	.has-menu-toggle .nav-toggle { display: inline-flex; }
	.has-menu-toggle .primary-navigation { display: none; }
	.has-menu-toggle .primary-navigation.is-open { display: block; }
	.primary-navigation {
		flex: 1 1 100%;
		order: 3;
		max-height: min(65vh, 480px);
		overflow-y: auto;
		padding: .5rem;
		border-radius: 14px;
	}
	.primary-navigation ul { align-items: stretch; flex-direction: column; gap: .15rem; }
	.primary-navigation li { width: 100%; }
	.primary-navigation a { padding: .65rem .75rem; white-space: normal; }
	.primary-navigation .sub-menu,
	.primary-navigation .children {
		position: static;
		display: none;
		min-width: 0;
		margin: .1rem 0 .4rem .8rem;
		padding: .2rem;
		border: 0;
		border-left: 2px solid #d5e8d4;
		border-radius: 0;
		box-shadow: none;
		visibility: visible;
		opacity: 1;
		transform: none;
		transition: none;
	}
	.primary-navigation li:hover > .sub-menu,
	.primary-navigation li:focus-within > .sub-menu,
	.primary-navigation li:hover > .children,
	.primary-navigation li:focus-within > .children,
	.primary-navigation .submenu-open > .sub-menu,
	.primary-navigation .submenu-open > .children { display: block; }
	.header-tools { flex: 1 1 100%; order: 3; }
	.header-search { min-width: 0; flex: 1; }
	.primary-navigation { order: 2; }
	.header-search input { width: auto; min-width: 0; flex: 1; }
	.color-mode-toggle { width: 42px; min-width: 42px; min-height: 42px; padding: 0; }
	.color-mode-toggle span { display: none; }
	.hero { padding: 3.2rem 0 3.5rem; }
	.hero-inner { width: min(100% - 36px, 560px); }
	.hero h1 { font-size: clamp(2.45rem, 12vw, 3.8rem); }
	.hero-copy { font-size: 1rem; }
	.single-page-content { padding: 2.25rem 0 3rem; }
	.article-breadcrumb { margin-bottom: 1.15rem; }
	.single-article-header { margin-bottom: 1.5rem; }
	.single-article-title { font-size: clamp(1.75rem, 7.2vw, 2.2rem); letter-spacing: -.045em; line-height: 1.13; }
	.article-byline { margin-top: 1rem; font-size: .82rem; }
	.single-featured-image { margin-bottom: 1.75rem; }
	.single-featured-image img { max-height: 360px; border-radius: 16px; }
	.single-article-body { font-size: 1rem; line-height: 1.8; }
	.single-article-body > p:first-of-type { font-size: 1.04em; }
	.single-article-body blockquote { margin-inline: 0; padding: .9rem 1rem; }
	.post-navigation { margin-top: 2.25rem; }
	.post-navigation .nav-links { gap: .65rem; }
	.post-navigation a { padding: .85rem; border-radius: 13px; }
	.article-nav-title { font-size: .84rem; }
	.hero-actions .button { flex: 1; }
	.section { padding: 3.25rem 0; }
	.section-heading { align-items: flex-start; flex-direction: column; margin-bottom: 1.4rem; }
	.category-heading { align-items: flex-start; }
	.category-index { gap: .45rem; margin-bottom: 1.25rem; }
	.post-grid { grid-template-columns: 1fr; gap: 1rem; }
	.post-card { display: grid; grid-template-columns: minmax(110px, .72fr) 1.28fr; align-items: stretch; }
	.post-card-image { min-height: 100%; aspect-ratio: auto; }
	.post-card-content { padding: 1rem; }
	.post-card h2, .post-card h3 { margin-top: .45rem; font-size: 1rem; }
	.post-card p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: .83rem; }
	.about-panel { grid-template-columns: 1fr; gap: 1.4rem; padding: 1.6rem; border-radius: 22px; }
	.about-accent { min-height: 120px; }
	.footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
	.footer-bottom { flex-direction: column; gap: .3rem; margin-top: 1.5rem; }
	.mobile-bottom-nav {
		position: fixed;
		z-index: 1000;
		right: 0;
		bottom: 0;
		left: 0;
		display: grid;
		grid-template-columns: repeat(4, 1fr);
		padding: .45rem .4rem calc(.45rem + env(safe-area-inset-bottom));
		border-top: 1px solid rgba(3,20,53,.1);
		background: rgba(255,255,255,.96);
		box-shadow: 0 -8px 24px rgba(3,20,53,.08);
		backdrop-filter: blur(16px);
	}
	.date-time-widget { right: 14px; bottom: calc(86px + env(safe-area-inset-bottom)); gap: .5rem; }
	.date-time-panel { width: min(270px, calc(100vw - 28px)); padding: 1rem 1.1rem; border-radius: 17px; }
	.digital-clock { font-size: 1.8rem; }
	.date-time-toggle { width: 42px; min-height: 42px; padding: 0; }
	.date-time-toggle span { display: none; }
	.mobile-bottom-nav a {
		display: grid;
		min-height: 54px;
		place-content: center;
		justify-items: center;
		gap: .15rem;
		border-radius: 12px;
		color: var(--mwc-muted);
		font-size: .67rem;
		font-weight: 700;
		line-height: 1.2;
		text-decoration: none;
	}
	.mobile-bottom-nav a:hover, .mobile-bottom-nav a:focus-visible { color: var(--mwc-blue); background: #eaf4e9; }
	.mobile-bottom-nav svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

html[data-color-mode="dark"] {
	color-scheme: dark;
	--mwc-navy: #d7eadb;
	--mwc-red: #69c98b;
	--mwc-blue: #83d6a0;
	--mwc-ink: #e3ece5;
	--mwc-muted: #aab8ad;
	--mwc-paper: #17211a;
	--mwc-line: #35443a;
	--mwc-white: #f1f6f2;
	--mwc-shadow: 0 16px 48px rgba(0, 0, 0, .35);
}
html[data-color-mode="dark"] body { background: #101713; }
html[data-color-mode="dark"] .site-header { background: rgba(16, 23, 19, .97); border-color: #29372e; }
html[data-color-mode="dark"] .primary-navigation { border-color: #35443a; background: #17211a; }
html[data-color-mode="dark"] .primary-navigation a:hover,
html[data-color-mode="dark"] .primary-navigation .current-menu-item > a,
html[data-color-mode="dark"] .primary-navigation .sub-menu a:hover,
html[data-color-mode="dark"] .primary-navigation .children a:hover { background: #26382c; }
html[data-color-mode="dark"] .primary-navigation .sub-menu,
html[data-color-mode="dark"] .primary-navigation .children { background: #17211a; }
html[data-color-mode="dark"] .header-search input,
html[data-color-mode="dark"] .color-mode-toggle,
html[data-color-mode="dark"] .nav-toggle { border-color: #35443a; background: #17211a; color: var(--mwc-ink); }
html[data-color-mode="dark"] .header-search button,
html[data-color-mode="dark"] .button { color: #102016; }
html[data-color-mode="dark"] .button:hover,
html[data-color-mode="dark"] .header-search button:hover { background: #52b779; color: #102016; }
html[data-color-mode="dark"] .button-secondary { background: #26382c; color: var(--mwc-navy); }
html[data-color-mode="dark"] .button-secondary:hover { background: #304737; color: var(--mwc-navy); }
html[data-color-mode="dark"] .latest-slider-section { background: #141d17; }
html[data-color-mode="dark"] .slider-control { border-color: #35443a; background: #1b271e; }
html[data-color-mode="dark"] .slider-control:hover:not(:disabled) { color: #102016; }
html[data-color-mode="dark"] .latest-slide { background: #26382c; }
html[data-color-mode="dark"] .hero {
	background:
		radial-gradient(ellipse at 82% 12%, rgba(79,170,103,.13), transparent 36%),
		radial-gradient(ellipse at 98% 90%, rgba(94,147,91,.12), transparent 32%),
		linear-gradient(125deg, #17231a, #1d2b20 58%, #18221b);
}
html[data-color-mode="dark"] .hero::after { border-color: rgba(190, 225, 195, .1); }
html[data-color-mode="dark"] .eyebrow { color: #a1d4a9; }
html[data-color-mode="dark"] .hero h1 span { color: #82d6a0; }
html[data-color-mode="dark"] .hero-copy { color: #bdcbbf; }
html[data-color-mode="dark"] .category-index a { border-color: var(--mwc-line); background: #17211a; color: var(--mwc-ink); }
html[data-color-mode="dark"] .category-index a:hover { border-color: #557b5b; background: #26382c; color: #a3e4b7; }
html[data-color-mode="dark"] .post-card { border-color: var(--mwc-line); background: #151e18; }
html[data-color-mode="dark"] .post-card-image,
html[data-color-mode="dark"] .post-card-placeholder { background: #26382c; }
html[data-color-mode="dark"] .about-panel { background: linear-gradient(135deg, #1b2a1e, #1d3024); }
html[data-color-mode="dark"] .about-accent { border-color: #354c3b; background: linear-gradient(135deg, #283c2b, #254233); }
html[data-color-mode="dark"] .post-card h2 a:hover,
html[data-color-mode="dark"] .post-card h3 a:hover,
html[data-color-mode="dark"] .text-link,
html[data-color-mode="dark"] .footer-navigation a { color: #9ce0ad; }
html[data-color-mode="dark"] .entry-content,
html[data-color-mode="dark"] .single-article-body,
html[data-color-mode="dark"] .single-article-body > p:first-of-type { color: #d1ddd3; }
html[data-color-mode="dark"] .article-categories a { border-color: #3a5540; background: #1b2a1e; color: #c9e6ce; }
html[data-color-mode="dark"] .article-categories a:hover { border-color: #52775b; background: #26382c; color: #a3e4b7; }
html[data-color-mode="dark"] .single-featured-image img { background: #17211a; }
html[data-color-mode="dark"] .single-article-body blockquote { background: #1b2a1e; color: var(--mwc-navy); }
html[data-color-mode="dark"] .post-navigation a { border-color: var(--mwc-line); background: #151e18; }
html[data-color-mode="dark"] .pagination .page-numbers { border-color: var(--mwc-line); }
html[data-color-mode="dark"] .pagination .current { color: #102016; }
html[data-color-mode="dark"] .empty-state { background: #17211a; }
html[data-color-mode="dark"] .site-footer { background: #141d17; }
html[data-color-mode="dark"] .footer-brand,
html[data-color-mode="dark"] .footer-heading { color: var(--mwc-navy); }
html[data-color-mode="dark"] .footer-bottom { border-color: var(--mwc-line); }
html[data-color-mode="dark"] .date-time-panel { border-color: #35443a; background: rgba(20, 29, 23, .98); }
html[data-color-mode="dark"] .date-time-toggle { border-color: #3d5745; background: #294b34; color: #f1f6f2; }
html[data-color-mode="dark"] .screen-reader-text:focus { background: #1b271e; color: #e3ece5; }
@media (max-width: 680px) {
	html[data-color-mode="dark"] .mobile-bottom-nav { border-color: #35443a; background: rgba(16, 23, 19, .97); }
	html[data-color-mode="dark"] .mobile-bottom-nav a:hover,
	html[data-color-mode="dark"] .mobile-bottom-nav a:focus-visible { background: #26382c; }
}
