/*
Theme Name: Mahila Shetkari Ledger
Theme URI: https://mahilashetkari.in/
Author: Vaibhav
Description: The Mahila Shetkari Praman Patra guide restyled to the Maharashtra government scheme-portal look of the official Mahila Shetkari Portal: a tricolour flag bar, a dark state-header band with a logo plate and helpline chip, a sticky white navbar with pill links and an EN / Marathi toggle, certificate-service boxes, white scheme panels and a dark gradient footer. The site keeps its own name, its own sprout mark and a plain independence note — it is a guide, not the portal. Devanagari-first type (Tiro Devanagari Marathi for display, Mukta for text) built for rural readers on slow phones. Registers the site's existing content types (mhg_update, mhg_notification, mhg_faq, mhg_resource, mhg_work_type) with their original slugs so all content and URLs carry over.
Version: 1.2.4
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mahila-shetkari-ledger
*/

/* ---------------------------------------------------------- tokens
   Palette and metrics follow the official portal's design system:
   Maharashtra green #0e7c66, mist background, 10px radii, soft
   portal shadows. Type stays Devanagari-first: Tiro Devanagari
   Marathi for display, Mukta for text, at the larger sizes this
   site's rural readers need. */

:root {
	--accent: #0e7c66;
	--accent-50: #e8f5f2;
	--accent-100: #e6f5f0;
	--accent-200: #c3e9de;
	--accent-300: #8fd3c0;
	--accent-700: #094f41;
	--accent-900: #052721;
	--text: #1a1a1a;
	--muted: #5f6b67;
	--bg: #f1f5f4;
	--surface: #ffffff;
	--divider: #e5e5e5;
	--neutral-100: #f4f4f4;
	--neutral-300: #d0d0d0;
	--saffron: #ff9933;
	--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.07), 0 1px 2px rgba(0, 0, 0, 0.04);
	--shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.05);
	--radius: 10px;
	--font-text: "Mukta", "Noto Sans Devanagari", sans-serif;
	--font-display: "Tiro Devanagari Marathi", "Mukta", serif;
}

/* ------------------------------------------------------------ base */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-text);
	font-size: 1.1875rem;
	line-height: 1.65;
}

.wrap {
	max-width: 1120px;
	margin-inline: auto;
	padding-inline: 32px;
}

@media (max-width: 680px) {
	.wrap {
		padding-inline: 16px;
	}
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--accent-700);
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--accent);
}

:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 2px;
	border-radius: 2px;
}

.skip-link {
	position: absolute;
	left: -999px;
	top: 0;
	background: var(--accent-900);
	color: #fff;
	padding: 0.75rem 1.25rem;
	z-index: 200;
}

.skip-link:focus {
	left: 0;
	color: #fff;
}

h1 {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: 2.3rem;
	line-height: 1.22;
	margin: 0 0 1rem;
}

h2 {
	font-family: var(--font-text);
	font-weight: 700;
	font-size: 1.65rem;
	line-height: 1.3;
	margin: 0 0 0.75rem;
}

h3 {
	font-family: var(--font-text);
	font-weight: 700;
	font-size: 1.25rem;
	line-height: 1.35;
	margin: 2rem 0 0.5rem;
}

p {
	margin: 0 0 1.1rem;
}

.site-main {
	padding-block: 2.5rem 3.5rem;
}

.site-main > section {
	margin-top: 3rem;
}

.site-main > section:first-child {
	margin-top: 0;
}

.section-intro {
	color: var(--muted);
	margin-bottom: 1.25rem;
	max-width: 42rem;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* --------------------------------------------------------- buttons */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: var(--accent);
	color: #fff;
	font-weight: 600;
	font-size: 1.05rem;
	line-height: 1.3;
	text-decoration: none;
	padding: 10px 20px;
	border: 2px solid var(--accent);
	border-radius: 8px;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
	background: var(--accent-700);
	border-color: var(--accent-700);
	color: #fff;
}

.btn-quiet {
	background: transparent;
	border-color: var(--text);
	color: var(--text);
}

.btn-quiet:hover {
	background: var(--neutral-100);
	border-color: var(--text);
	color: var(--text);
}

/* ------------------------------------------------------- flag bar */

.flag-bar {
	height: 4px;
	background: linear-gradient(90deg, var(--saffron) 0 33.3%, var(--bg) 33.3% 66.6%, var(--accent) 66.6% 100%);
}

/* ------------------------------------------------- government band */

.govt-band {
	background: linear-gradient(115deg, #14232a 0%, #073b31 48%, #164569 100%);
	color: #fff;
	position: relative;
	overflow: hidden;
}

.govt-band-overlay {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 15% -20%, rgba(255, 255, 255, 0.12), transparent 45%),
		radial-gradient(circle at 90% 120%, rgba(255, 255, 255, 0.1), transparent 40%);
	pointer-events: none;
}

.govt-band-in {
	position: relative;
	display: flex;
	align-items: center;
	gap: 18px;
	padding-block: 14px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 14px;
	color: #fff;
	text-decoration: none;
}

.brand:hover {
	color: #fff;
}

.brand-plate {
	width: 55px;
	height: 55px;
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border-radius: 4px;
	padding: 4px;
}

.brand-plate svg {
	width: 100%;
	height: 100%;
	display: block;
}

.brand-plate-sm {
	width: 44px;
	height: 44px;
}

.brand-titles {
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.brand-mr {
	display: block;
	font-family: var(--font-display);
	font-size: 1.45rem;
	line-height: 1.2;
	color: #fff;
}

.brand-en {
	display: block;
	font-size: 0.85rem;
	font-weight: 600;
	line-height: 1.2;
	color: #fff;
	opacity: 0.8;
}

.govt-divider {
	width: 1px;
	height: 32px;
	background: rgba(255, 255, 255, 0.25);
	flex: none;
}

.govt-spacer {
	flex: 1;
}

.helpline-chip {
	display: flex;
	align-items: center;
	gap: 8px;
	background: rgba(255, 255, 255, 0.12);
	padding: 6px 12px;
	border-radius: 6px;
	color: #fff;
	font-size: 0.88rem;
	line-height: 1.3;
	text-decoration: none;
	white-space: nowrap;
}

.helpline-chip:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.2);
}

.helpline-chip strong {
	font-weight: 700;
}

@media (max-width: 680px) {
	.govt-band-in {
		gap: 10px;
	}

	.brand-plate {
		width: 40px;
		height: 40px;
	}

	.brand-mr {
		font-size: 1.15rem;
	}

	.govt-divider,
	.helpline-chip {
		display: none;
	}
}

/* ------------------------------------------------------------- nav */

.mainnav {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--surface);
	border-bottom: 1px solid var(--divider);
	box-shadow: var(--shadow-sm);
}

.nav-in {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 60px;
}

.navbox {
	flex: 1;
}

.navbox summary {
	cursor: pointer;
	padding: 0.8rem 0;
	font-weight: 600;
	color: var(--text);
	list-style: none;
}

.navbox summary::-webkit-details-marker {
	display: none;
}

.navbox summary::after {
	content: "+";
	float: right;
	font-weight: 700;
	color: var(--accent);
}

.navbox[open ] summary::after {
	content: "–";
}

.navbox .menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.navbox .menu a {
	display: block;
	padding: 10px 12px;
	border-radius: 6px;
	color: var(--text);
	text-decoration: none;
	font-weight: 600;
}

.navbox .menu a:hover,
.navbox .menu .current-menu-item > a {
	background: var(--accent-50);
	color: var(--accent-700);
}

@media (max-width: 55.99rem) {
	.navbox .menu {
		display: none;
	}

	.navbox[open ] .menu {
		display: flex;
		flex-direction: column;
		gap: 2px;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--surface);
		border-bottom: 1px solid var(--divider);
		box-shadow: var(--shadow-md);
		padding: 8px 20px 16px;
	}
}

@media (min-width: 56rem) {
	/* The desktop menu lives inside the (never-opened) <details>;
	   force its content box to render so the nav is always visible
	   at desktop widths. Mobile (below) keeps the native toggle. */
	.navbox::details-content {
		display: block;
		content-visibility: visible;
	}

	.navbox summary {
		display: none;
	}

	.navbox .menu {
		display: flex;
		flex-wrap: wrap;
		gap: 4px;
		align-items: center;
	}

	.navbox .menu a {
		padding: 6px 12px;
		font-size: 1rem;
	}
}

/* ------------------------------------------------- language toggle */

.lang-seg {
	display: flex;
	align-items: center;
	background: rgba(0, 0, 0, 0.05);
	border: 1px solid var(--divider);
	border-radius: 6px;
	padding: 2px;
	gap: 2px;
	flex: none;
}

.lang-opt {
	padding: 3px 10px;
	font-size: 0.82rem;
	font-weight: 700;
	line-height: 1.5;
	color: var(--muted);
	text-decoration: none;
	border-radius: 4px;
}

.lang-opt:hover {
	color: var(--text);
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* -------------------------------------------------------- home hero */

.hero-home {
	background: var(--bg);
	border-bottom: 1px solid var(--divider);
}

.hero-home-grid {
	max-width: 1120px;
	margin-inline: auto;
	padding: 56px 32px 48px;
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 48px;
	align-items: start;
}

@media (max-width: 860px) {
	.hero-home-grid {
		grid-template-columns: 1fr;
		padding: 32px 20px 28px;
		gap: 28px;
	}
}

.tag-outline {
	display: inline-block;
	font-size: 0.82rem;
	font-weight: 600;
	padding: 4px 12px;
	border-radius: 4px;
	border: 1.5px solid var(--accent);
	color: var(--accent-700);
	letter-spacing: 0.01em;
	margin: 0 0 14px;
}

.hero-home h1 {
	font-size: 2.6rem;
	line-height: 1.15;
	margin: 0 0 12px;
}

@media (max-width: 860px) {
	.hero-home h1 {
		font-size: 1.8rem;
	}
}

.hero-home-sub {
	font-size: 1.15rem;
	color: var(--muted);
	max-width: 34rem;
	margin-bottom: 6px;
}

.hero-first {
	display: inline-block;
	font-weight: 700;
	font-size: 1.02rem;
	color: var(--accent-700);
	background: var(--accent-50);
	border: 1px solid var(--accent-200);
	border-radius: 6px;
	padding: 6px 14px;
	margin: 10px 0 0;
}

.hero-home-ctas {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	align-items: center;
	margin: 20px 0 14px;
}

.hero-home-trust {
	font-size: 0.88rem;
	color: var(--muted);
	opacity: 0.85;
	margin-bottom: 0.75rem;
}

.opening-marathi {
	font-size: 1.08rem;
	margin-bottom: 0;
}

/* ---------------------------------------------- certificate services */

.service-panel {
	background: var(--surface);
	border-radius: var(--radius);
	border-top: 3px solid var(--accent);
	box-shadow: var(--shadow-md);
	padding: 24px;
}

.service-panel-title {
	font-size: 1.1rem;
	margin: 0 0 6px;
}

.service-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.service-list li {
	border-top: 1px solid var(--divider);
}

.service-list li:first-child {
	border-top: none;
}

.service-list a {
	display: block;
	padding: 12px 2px;
	text-decoration: none;
}

.service-name {
	display: block;
	font-weight: 700;
	font-size: 1.08rem;
	line-height: 1.35;
	color: var(--text);
}

.service-list a:hover .service-name {
	color: var(--accent-700);
}

.service-desc {
	display: block;
	color: var(--muted);
	font-size: 0.95rem;
	line-height: 1.45;
	margin-top: 2px;
}

.service-helpline {
	margin: 14px 0 0;
	padding-top: 14px;
	border-top: 1px solid var(--divider);
	font-size: 0.95rem;
	color: var(--muted);
}

.service-helpline a {
	font-weight: 700;
	color: var(--accent-700);
	white-space: nowrap;
}

/* ---------------------------------------------------- service boxes */

.task-ledger {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

@media (max-width: 56rem) {
	.task-ledger {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 34rem) {
	.task-ledger {
		grid-template-columns: 1fr;
	}
}

.task-ledger li {
	background: var(--surface);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	border-top: 3px solid var(--accent);
	overflow: hidden;
}

.task-ledger a {
	display: block;
	height: 100%;
	padding: 24px;
	text-decoration: none;
	color: var(--text);
	transition: background 0.15s ease;
}

.task-ledger a:hover {
	background: var(--accent-50);
	color: var(--text);
}

.task-name {
	display: block;
	font-weight: 700;
	font-size: 1.18rem;
	line-height: 1.35;
	color: var(--text);
}

.task-desc {
	display: block;
	color: var(--muted);
	font-size: 0.98rem;
	line-height: 1.5;
	margin-top: 6px;
}

/* ------------------------------------------------- key facts ledger
   The 7/12-style ledger, kept exactly as it was — same rows, same
   label/fact reading — now recorded on a white scheme panel. */

.ledger {
	background: var(--surface);
	border: 1px solid var(--divider);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	padding: 6px 24px;
}

.ledger-row {
	display: grid;
	grid-template-columns: 1fr;
	padding: 0.85rem 0;
	border-top: 1px solid var(--divider);
}

.ledger-row:first-child {
	border-top: none;
}

.ledger-label {
	font-weight: 700;
	color: var(--accent-700);
	font-size: 1rem;
}

.ledger-value {
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.4;
}

@media (min-width: 34rem) {
	.ledger-row {
		grid-template-columns: 38% 62%;
		column-gap: 1rem;
		align-items: baseline;
	}

	.ledger-label {
		font-size: 1.05rem;
	}
}

/* -------------------------------------------------------- explainer */

.portal-quote {
	margin: 1.75rem 0;
	padding: 24px 28px;
	background: var(--accent-50);
	border-left: 4px solid var(--accent);
	border-radius: 0 var(--radius) var(--radius) 0;
}

.portal-quote p {
	font-family: var(--font-display);
	font-size: 1.45rem;
	line-height: 1.45;
	color: var(--accent-900);
	margin-bottom: 0.4rem;
}

.portal-quote cite {
	font-style: normal;
	color: var(--muted);
	font-size: 1rem;
}

/* The message quote as a full band under the hero, the way the
   official portal places its cabinet message. */

.portal-quote-band {
	margin: 0;
	text-align: center;
	border-left: none;
	border-top: 3px solid var(--accent);
	border-radius: var(--radius);
	padding: 30px 36px;
}

.portal-quote-band p {
	font-size: 1.6rem;
	max-width: 46rem;
	margin-inline: auto;
}

/* ------------------------------------------------------ eligibility
   The portal's "Are you eligible?" panel: a white scheme panel with
   three ticked criteria and one clear action. */

.eligibility-panel {
	background: var(--surface);
	border: 1px solid var(--divider);
	border-top: 3px solid var(--accent);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	padding: 28px;
}

.eligibility-list {
	list-style: none;
	margin: 0 0 1.25rem;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px 24px;
}

@media (max-width: 56rem) {
	.eligibility-list {
		grid-template-columns: 1fr;
	}
}

.eligibility-list li {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	font-size: 1.08rem;
	line-height: 1.45;
}

.eligibility-list li::before {
	content: "✓";
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	margin-top: 2px;
	border-radius: 50%;
	background: var(--accent);
	color: #fff;
	font-weight: 700;
	font-size: 0.95rem;
	line-height: 1;
}

.eligibility-action {
	margin-bottom: 0;
}

/* --------------------------------------------------------- benefits
   The portal's "what the certificate opens up" grid: six white
   scheme cards with a green tick badge. */

.benefit-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

@media (max-width: 56rem) {
	.benefit-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 34rem) {
	.benefit-grid {
		grid-template-columns: 1fr;
	}
}

.benefit-grid li {
	background: var(--surface);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	border-top: 3px solid var(--accent);
	overflow: hidden;
}

.benefit-grid a {
	display: block;
	height: 100%;
	padding: 24px;
	text-decoration: none;
	color: var(--text);
	transition: background 0.15s ease;
}

.benefit-grid a:hover {
	background: var(--accent-50);
	color: var(--text);
}

.benefit-name {
	display: block;
	font-weight: 700;
	font-size: 1.18rem;
	line-height: 1.35;
	color: var(--text);
}

.benefit-desc {
	display: block;
	color: var(--muted);
	font-size: 0.98rem;
	line-height: 1.5;
	margin-top: 6px;
}

/* ------------------------------------------------------ officer band
   The portal's Sahayya Adhikari block: a dark green band with the
   officer note and one large call action. */

.officer-band {
	background: linear-gradient(115deg, #073b31 0%, #094f41 55%, #052721 100%);
	border-radius: var(--radius);
	padding: 2rem;
	color: #fff;
}

.officer-in {
	display: flex;
	align-items: center;
	gap: 24px;
	flex-wrap: wrap;
	justify-content: space-between;
}

.officer-text {
	max-width: 38rem;
}

.officer-band h2 {
	color: #fff;
	margin-top: 0;
}

.officer-band p {
	margin-bottom: 0;
	opacity: 0.9;
}

.btn-call {
	background: #fff;
	border-color: #fff;
	color: var(--accent-700);
	font-size: 1.15rem;
	padding: 12px 24px;
	flex: none;
}

.btn-call:hover {
	background: var(--accent-50);
	border-color: var(--accent-50);
	color: var(--accent-700);
}

/* ---------------------------------------------------------- process */

.process-steps {
	list-style: none;
	counter-reset: ms-step;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 16px;
}

@media (max-width: 64rem) {
	.process-steps {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 40rem) {
	.process-steps {
		grid-template-columns: 1fr;
	}
}

.process-steps li {
	counter-increment: ms-step;
	background: var(--surface);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	padding: 24px 20px;
	text-align: center;
}

.process-steps li::before {
	content: counter(ms-step);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin: 0 auto 12px;
	border-radius: 50%;
	background: var(--accent);
	color: #fff;
	font-family: var(--font-text);
	font-weight: 700;
	font-size: 1rem;
	line-height: 1;
}

.step-name {
	display: block;
	font-weight: 700;
	font-size: 1.1rem;
	line-height: 1.35;
}

.step-desc {
	display: block;
	color: var(--muted);
	font-size: 0.95rem;
	line-height: 1.5;
	margin-top: 4px;
}

/* ------------------------------------------------------- work types */

.work-list {
	list-style: none;
	counter-reset: ms-work;
	margin: 0 0 1rem;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}

@media (max-width: 56rem) {
	.work-list {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 34rem) {
	.work-list {
		grid-template-columns: 1fr;
	}
}

.work-list li {
	counter-increment: ms-work;
	background: var(--surface);
	border: 1px solid var(--divider);
	border-top: 3px solid var(--accent);
	border-radius: var(--radius);
	padding: 18px 20px;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.work-list li:hover {
	box-shadow: var(--shadow-md);
	transform: translateY(-2px);
}

.work-list li::before {
	content: counter(ms-work, decimal-leading-zero);
	display: block;
	font-weight: 800;
	font-size: 1.6rem;
	line-height: 1;
	color: var(--accent-300);
	margin-bottom: 8px;
}

.work-list a {
	font-weight: 600;
	color: var(--text);
	text-decoration: none;
	line-height: 1.35;
}

.work-list a:hover {
	color: var(--accent-700);
}

/* ----------------------------------------------------- marathi band */

.marathi-band {
	background: var(--accent);
	color: #fff;
	border-radius: var(--radius);
	padding: 2rem;
}

.marathi-band h2 {
	color: #fff;
	margin-top: 0;
}

.marathi-band a {
	color: #fff;
}

.marathi-band .btn {
	background: #fff;
	border-color: #fff;
	color: var(--accent-700);
}

.marathi-band .btn:hover {
	background: var(--accent-50);
	border-color: var(--accent-50);
	color: var(--accent-700);
}

.band-list {
	list-style: none;
	margin: 1.25rem 0 0;
	padding: 0;
}

.band-list li {
	border-top: 1px solid rgba(255, 255, 255, 0.25);
	padding: 0.6rem 0;
}

.band-list a {
	text-decoration: none;
	font-weight: 600;
}

.band-list a:hover {
	text-decoration: underline;
}

/* ----------------------------------------------------- notice lists */

.notice-list,
.article-list {
	list-style: none;
	margin: 0;
	padding: 6px 24px;
	background: var(--surface);
	border: 1px solid var(--divider);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
}

.notice-list li,
.article-list li {
	border-top: 1px solid var(--divider);
	padding: 1rem 0;
}

.notice-list li:first-child,
.article-list li:first-child {
	border-top: none;
}

.notice-date {
	display: block;
	color: var(--muted);
	font-size: 0.9rem;
	font-weight: 600;
}

.notice-title,
.article-title {
	display: block;
	font-weight: 700;
	font-size: 1.18rem;
	line-height: 1.4;
	color: var(--text);
	text-decoration: none;
	margin: 0.15rem 0;
}

a.notice-title:hover,
a.article-title:hover {
	color: var(--accent-700);
}

.notice-excerpt,
.article-excerpt {
	display: block;
	color: var(--muted);
	font-size: 1rem;
}

/* -------------------------------------------------------------- faq */

.faq-list {
	border-top: 1px solid var(--divider);
}

.faq-item {
	border-bottom: 1px solid var(--divider);
}

.faq-item summary {
	cursor: pointer;
	font-weight: 600;
	font-size: 1.12rem;
	line-height: 1.4;
	padding: 14px 2rem 14px 2px;
	list-style: none;
	position: relative;
}

.faq-item summary::-webkit-details-marker {
	display: none;
}

.faq-item summary::after {
	content: "+";
	position: absolute;
	right: 0.25rem;
	top: 14px;
	font-weight: 700;
	color: var(--accent);
}

.faq-item[open ] summary::after {
	content: "–";
}

.faq-answer {
	padding: 0 2px 1.1rem;
}

.faq-answer p:last-child {
	margin-bottom: 0;
}

/* ------------------------------------------------------------ sources */

.sources {
	background: var(--surface);
	border: 1px solid var(--divider);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	padding: 28px;
}

.sources-actions {
	display: flex;
	align-items: center;
	gap: 12px 20px;
	flex-wrap: wrap;
	margin-bottom: 0;
}

/* ------------------------------------------------------------ entry */

.page-head,
.entry-head {
	background: var(--accent-50);
	border: 1px solid var(--accent-100);
	border-radius: var(--radius);
	padding: 2rem;
	margin-bottom: 2rem;
}

.page-head h1,
.entry-head h1 {
	font-size: 2rem;
	margin-bottom: 0.5rem;
}

.page-head > :last-child,
.entry-head > :last-child {
	margin-bottom: 0;
}

.page-intro {
	font-size: 1.1rem;
	color: var(--muted);
	max-width: 42rem;
	margin-bottom: 0;
}

.entry-kicker {
	display: inline-block;
	font-size: 0.82rem;
	font-weight: 600;
	padding: 4px 12px;
	border-radius: 4px;
	border: 1.5px solid var(--accent);
	background: #fff;
	color: var(--accent-700);
	margin-bottom: 0.9rem;
}

.entry-meta {
	color: var(--muted);
	font-size: 1rem;
	margin: 0;
}

.entry-meta a {
	color: var(--muted);
}

.entry-image {
	margin: 0 0 1.5rem;
}

.entry-image img {
	border-radius: var(--radius);
}

.entry-content {
	max-width: 46rem;
}

.entry-content a,
.wp-block-paragraph a,
main p a {
	overflow-wrap: anywhere;
}

.entry-content h2 {
	margin-top: 2.5rem;
}

.entry-content ul,
.entry-content ol {
	margin: 0 0 1.1rem;
	padding-left: 1.4rem;
}

.entry-content li {
	margin-bottom: 0.4rem;
}

.entry-content blockquote {
	margin: 1.5rem 0;
	padding: 20px 24px;
	background: var(--accent-50);
	border-left: 4px solid var(--accent);
	border-radius: 0 var(--radius) var(--radius) 0;
}

.entry-content blockquote p:last-child {
	margin-bottom: 0;
}

.entry-content img {
	border-radius: var(--radius);
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 1.5rem;
	font-size: 1.05rem;
	background: var(--surface);
}

.entry-content th,
.entry-content td {
	border-bottom: 1px solid var(--divider);
	padding: 0.6rem 0.5rem;
	text-align: left;
	vertical-align: top;
}

.entry-content th {
	font-weight: 700;
	background: var(--accent-50);
	border-bottom: 2px solid var(--accent);
}

.entry-content table {
	display: block;
	overflow-x: auto;
}

.entry-foot {
	margin-top: 2.5rem;
	border-top: 1px solid var(--divider);
	padding-top: 1.25rem;
}

.entry-nav {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
}

.entry-nav a {
	font-weight: 600;
}

.page-links {
	margin: 1.5rem 0;
	font-weight: 600;
}

.child-pages {
	margin-top: 2.5rem;
}

.child-pages ul {
	list-style: none;
	margin: 0;
	padding: 6px 24px;
	background: var(--surface);
	border: 1px solid var(--divider);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
}

.child-pages li {
	border-top: 1px solid var(--divider);
	padding: 0.7rem 0;
	font-weight: 600;
}

.child-pages li:first-child {
	border-top: none;
}

/* -------------------------------------------------------- pagination */

.pagination {
	margin-top: 2rem;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
}

.pagination .page-numbers {
	padding: 0.45rem 0.85rem;
	background: var(--surface);
	border: 1px solid var(--neutral-300);
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
	color: var(--text);
}

.pagination .page-numbers:hover {
	border-color: var(--accent);
	color: var(--accent-700);
}

.pagination .page-numbers.current {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

/* ------------------------------------------------------------ search */

.search-form {
	display: flex;
	gap: 0.5rem;
	max-width: 32rem;
}

.search-form label {
	flex: 1;
}

.search-field {
	width: 100%;
	font: inherit;
	font-size: 1.05rem;
	padding: 10px 12px;
	border: 1.5px solid var(--neutral-300);
	border-radius: 7px;
	background: var(--surface);
	color: var(--text);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-field:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px rgba(14, 124, 102, 0.12);
}

.search-submit {
	font: inherit;
	font-weight: 600;
	padding: 10px 20px;
	background: var(--accent);
	border: 2px solid var(--accent);
	border-radius: 8px;
	color: #fff;
	cursor: pointer;
}

.search-submit:hover {
	background: var(--accent-700);
	border-color: var(--accent-700);
}

/* ------------------------------------------------------------ footer */

.site-footer {
	background: linear-gradient(115deg, #081925 0%, #14232a 50%, #052721 100%);
	color: #f1f5f4;
	position: relative;
	overflow: hidden;
	margin-top: 1rem;
}

.footer-overlay {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 85% -10%, rgba(255, 255, 255, 0.1), transparent 45%),
		radial-gradient(circle at 5% 110%, rgba(255, 255, 255, 0.08), transparent 40%);
	pointer-events: none;
}

.footer-in {
	position: relative;
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
	gap: 32px;
	align-items: start;
	padding-block: 40px 8px;
}

@media (max-width: 56rem) {
	.footer-in {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 40rem) {
	.footer-in {
		grid-template-columns: 1fr;
		padding-block: 28px 4px;
	}
}

.footer-brandline {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 14px;
	font-size: 1.05rem;
	color: #fff;
}

.footer-note {
	font-size: 0.95rem;
	line-height: 1.6;
	max-width: 26rem;
	margin: 0;
	opacity: 0.85;
}

.footer-col h2 {
	font-family: var(--font-text);
	font-weight: 700;
	font-size: 0.8rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #f1f5f4;
	opacity: 0.6;
	margin: 0 0 14px;
}

.footer-col ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-col li {
	padding: 0.3rem 0;
}

.footer-col a {
	font-size: 0.98rem;
	color: #f1f5f4;
	opacity: 0.85;
	text-decoration: none;
}

.footer-col a:hover {
	opacity: 1;
	text-decoration: underline;
}

.footer-search {
	margin-top: 1.75rem;
}

.footer-search .search-field {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.35);
	color: #fff;
}

.footer-search .search-field::placeholder {
	color: rgba(255, 255, 255, 0.6);
}

.footer-base {
	position: relative;
	margin: 1.75rem 0 0;
	padding: 1.25rem 0 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 0.92rem;
	color: #f1f5f4;
	opacity: 0.75;
}

/* ------------------------------------------------------ reduced motion */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
		scroll-behavior: auto !important;
	}
}
