:root {
	--bg: #f7f4ed;
	--surface: #ffffff;
	--surface-alt: #eee8da;
	--ink: #333333;
	--muted: #6c665d;
	--line: #ded6c6;
	--brand: #183153;
	--brand-dark: #10243f;
	--accent: #d4a017;
	--gold: #d4a017;
	--radius: 8px;
	--shadow: 0 18px 45px rgba(24, 49, 83, 0.1);
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: "Sarabun", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.7;
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand strong,
.primary-navigation a,
.button,
.header-cta {
	font-family: "Kanit", "Sarabun", system-ui, sans-serif;
}

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

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

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

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

.skip-link:focus {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 1000;
	width: auto;
	height: auto;
	padding: 10px 14px;
	background: var(--ink);
	color: #fff;
	clip: auto;
}

.site-shell {
	width: min(1260px, calc(100% - 32px));
	margin: 0 auto;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	display: grid;
	grid-template-columns: minmax(210px, 260px) minmax(0, 1fr) minmax(240px, 330px);
	gap: 18px;
	align-items: center;
	padding: 14px 0;
	background: rgba(247, 244, 237, 0.94);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--line);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
}

.brand-logo img,
.brand-mark {
	width: 48px;
	height: 48px;
	border-radius: 8px;
}

.brand-mark {
	display: grid;
	place-items: center;
	background: var(--brand);
	color: #fff;
	font-weight: 800;
	letter-spacing: 0;
	text-decoration: none;
}

.brand strong,
.brand small {
	display: block;
}

.brand-name {
	text-decoration: none;
}

.brand strong {
	font-size: 1.2rem;
	line-height: 1.15;
}

.brand small {
	color: var(--muted);
	font-size: 0.86rem;
}

.primary-navigation {
	justify-self: center;
}

.primary-navigation ul,
.site-footer ul {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-navigation a {
	display: block;
	padding: 7px 10px;
	border-radius: 6px;
	font-weight: 700;
	font-size: 0.92rem;
	text-decoration: none;
}

.primary-navigation a:hover,
.primary-navigation .current-menu-item > a {
	background: var(--surface-alt);
	color: var(--brand);
}

.menu-toggle {
	display: none;
	width: 42px;
	height: 42px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--surface);
}

.menu-toggle span:not(.screen-reader-text) {
	display: block;
	width: 18px;
	height: 2px;
	margin: 4px auto;
	background: var(--ink);
}

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

.header-tools .search-form {
	width: min(170px, 100%);
}

.header-tools .search-field {
	min-height: 38px;
	padding: 6px 10px;
}

.header-tools .search-form button {
	display: none;
}

.header-cta,
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 8px 14px;
	border-radius: 6px;
	font-weight: 900;
	text-decoration: none;
}

.header-cta,
.button-primary {
	background: var(--gold);
	color: var(--brand-dark);
}

.button-light {
	background: var(--surface);
	color: var(--brand-dark);
	border: 1px solid var(--line);
}

.front-layout,
.content-layout {
	padding: 28px 0 56px;
}

.magazine-front {
	display: grid;
	gap: 34px;
}

.platform-intro {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 24px;
	align-items: end;
	padding: clamp(36px, 6vw, 78px) 0 16px;
	border-bottom: 3px solid var(--ink);
}

.intro-kicker,
.section-kicker {
	margin: 0 0 8px;
	color: var(--gold);
	font-size: 0.84rem;
	font-weight: 900;
	letter-spacing: 0;
	text-transform: uppercase;
}

.platform-intro h1 {
	max-width: 920px;
	margin: 0;
	font-size: clamp(2.4rem, 6vw, 6.5rem);
	line-height: 0.98;
}

.intro-actions {
	display: grid;
	gap: 10px;
	min-width: 190px;
}

.question-strip {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1px;
	background: var(--line);
	border: 1px solid var(--line);
}

.question-strip article {
	min-height: 150px;
	padding: 22px;
	background: var(--surface);
}

.question-strip span {
	color: var(--gold);
	font-weight: 900;
}

.question-strip h2 {
	margin: 16px 0 0;
	font-size: clamp(1.25rem, 2.5vw, 2rem);
	line-height: 1.15;
}

.content-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 310px;
	gap: 32px;
	align-items: start;
}

.lead-story {
	margin-bottom: 32px;
}

.magazine-hero {
	margin-bottom: 0;
}

.section-label {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 16px;
	font-size: clamp(1.4rem, 3vw, 2.6rem);
	font-weight: 900;
}

.section-label::before,
.section-label::after {
	content: "";
	height: 2px;
	background: var(--ink);
	flex: 1;
}

.hero-card {
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.75fr);
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
}

.hero-media {
	min-height: min(66vh, 640px);
	background: var(--surface-alt);
}

.hero-media img,
.card-media img,
.fallback-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero-copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(24px, 4vw, 44px);
}

.hero-copy h1,
.hero-copy h2 {
	margin: 10px 0 14px;
	font-size: clamp(2rem, 4.2vw, 4.2rem);
	line-height: 1.08;
}

.hero-copy h1 a,
.hero-copy h2 a,
.post-card h2 a {
	text-decoration: none;
}

.read-more {
	margin-top: 10px;
	color: var(--brand);
	font-weight: 900;
	text-decoration: none;
}

.eyebrow {
	align-self: flex-start;
	display: inline-flex;
	padding: 4px 9px;
	background: #efe4c5;
	color: var(--brand-dark);
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 800;
	text-decoration: none;
}

.meta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	color: var(--muted);
	font-size: 0.88rem;
}

.section-heading,
.archive-header {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
	border-bottom: 2px solid var(--ink);
}

.section-heading.compact {
	margin-bottom: 14px;
}

.section-heading h2,
.archive-header h1 {
	margin: 0;
	padding-bottom: 10px;
	font-size: 1.8rem;
	line-height: 1.2;
}

.section-heading .section-kicker {
	margin-bottom: 2px;
}

.section-heading a {
	padding-bottom: 12px;
	color: var(--brand-dark);
	font-weight: 700;
	text-decoration: none;
}

.post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.magazine-section {
	padding: clamp(22px, 4vw, 38px);
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.topic-row,
.pill-list,
.support-options,
.footer-social {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.topic-row {
	margin-bottom: 22px;
}

.topic-row a,
.pill-list a {
	padding: 8px 12px;
	background: var(--surface-alt);
	border: 1px solid var(--line);
	border-radius: 999px;
	font-weight: 800;
	text-decoration: none;
}

.feature-lanes {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	border: 1px solid var(--line);
}

.feature-lanes a {
	display: grid;
	gap: 42px;
	min-height: 210px;
	padding: 18px;
	background: #fbfaf6;
	border-right: 1px solid var(--line);
	text-decoration: none;
}

.feature-lanes a:last-child {
	border-right: 0;
}

.feature-lanes span {
	color: var(--gold);
	font-weight: 900;
}

.feature-lanes strong {
	align-self: end;
	font-size: 1.35rem;
	line-height: 1.2;
}

.community-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.community-grid > article:not(.post-card) {
	min-height: 210px;
	padding: 20px;
	background: var(--surface-alt);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.community-grid strong {
	display: block;
	font-family: "Kanit", "Sarabun", system-ui, sans-serif;
	font-size: 1.4rem;
	line-height: 1.25;
}

.community-grid p {
	margin-bottom: 0;
	color: var(--muted);
}

.post-card {
	display: flex;
	flex-direction: column;
	min-height: 100%;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
}

.card-media {
	aspect-ratio: 16 / 9;
	background: var(--surface-alt);
}

.card-copy {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 8px;
	padding: 18px;
}

.card-copy h2 {
	margin: 0;
	font-size: 1.18rem;
	line-height: 1.35;
}

.card-copy p {
	margin: 0;
	color: var(--muted);
}

.fallback-thumb {
	display: grid;
	place-items: center;
	min-height: 180px;
	background:
		linear-gradient(135deg, rgba(24, 49, 83, 0.94), rgba(16, 36, 63, 0.94)),
		linear-gradient(45deg, #d4a017, #fff);
	color: #fff;
	font-weight: 900;
	font-size: 1.2rem;
}

.site-sidebar {
	position: sticky;
	top: 98px;
	display: grid;
	gap: 18px;
}

.side-panel,
.widget,
.home-widget,
.phayaotv-poll {
	padding: 20px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.side-panel h2,
.widget-title,
.section-title {
	margin: 0 0 12px;
	font-size: 1.16rem;
	line-height: 1.25;
}

.social-panel {
	background: var(--brand-dark);
	color: #fff;
}

.social-panel p,
.social-panel span {
	color: rgba(255, 255, 255, 0.82);
}

.follower-count {
	margin: 0;
	color: #fff !important;
	font-size: 2.4rem;
	font-weight: 900;
	line-height: 1;
}

.social-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 16px;
}

.social-links a,
.social-links span {
	display: inline-flex;
	padding: 6px 10px;
	background: rgba(255, 255, 255, 0.12);
	border-radius: 6px;
	color: #fff;
	text-decoration: none;
}

.compact-list {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.compact-list a {
	font-weight: 700;
	text-decoration: none;
}

.home-poll-area {
	margin-top: 28px;
}

.voice-section {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
	gap: 20px;
	align-items: stretch;
}

.voice-callout,
.voice-stats {
	padding: clamp(26px, 4vw, 48px);
	border-radius: var(--radius);
}

.voice-callout {
	background: var(--brand-dark);
	color: #fff;
}

.voice-callout p {
	max-width: 680px;
	color: rgba(255, 255, 255, 0.84);
}

.voice-callout h2 {
	max-width: 760px;
	margin: 0 0 12px;
	font-size: clamp(2.2rem, 5vw, 5rem);
	line-height: 1;
}

.voice-stats {
	background: var(--surface);
	border: 1px solid var(--line);
}

.voice-stats span {
	color: var(--muted);
	font-weight: 800;
}

.voice-stats strong {
	display: block;
	margin-top: 10px;
	color: var(--gold);
	font-size: clamp(3rem, 7vw, 6rem);
	line-height: 0.95;
}

.latest-voices {
	margin-top: 24px;
	padding-top: 18px;
	border-top: 1px solid var(--line);
}

.latest-voices h3 {
	margin: 0 0 10px;
	font-size: 1.05rem;
}

.latest-voices ul {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.latest-voices a {
	font-weight: 800;
	text-decoration: none;
}

.voice-archive-link {
	display: inline-flex;
	margin-top: 14px;
	color: var(--brand);
	font-weight: 900;
	text-decoration: none;
}

.map-section {
	padding: clamp(22px, 4vw, 38px);
	background: var(--brand-dark);
	border-radius: var(--radius);
	color: #fff;
}

.map-section .section-heading {
	border-bottom-color: rgba(255, 255, 255, 0.25);
}

.district-grid {
	display: grid;
	grid-template-columns: repeat(9, minmax(0, 1fr));
	gap: 8px;
}

.district-grid a {
	display: grid;
	place-items: center;
	min-height: 96px;
	padding: 12px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 6px;
	color: #fff;
	font-weight: 900;
	text-align: center;
	text-decoration: none;
}

.dashboard-grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 12px;
}

.dashboard-grid a {
	display: grid;
	min-height: 130px;
	padding: 16px;
	background: #fbfaf6;
	border: 1px solid var(--line);
	border-radius: 6px;
	text-decoration: none;
}

.dashboard-grid span {
	font-size: 1.2rem;
	font-weight: 900;
}

.dashboard-grid small {
	align-self: end;
	color: var(--muted);
	font-weight: 700;
}

.split-sections {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.plain-language-section {
	display: grid;
	grid-template-columns: minmax(260px, 0.55fr) minmax(0, 1fr);
	gap: 24px;
	align-items: center;
	padding: clamp(24px, 5vw, 52px);
	background: #fff8e6;
	border: 1px solid #ead39a;
	border-radius: var(--radius);
}

.plain-language-section h2 {
	margin: 0;
	font-size: clamp(2rem, 4.6vw, 4.6rem);
	line-height: 1;
}

.translation-card {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	gap: 18px;
	align-items: center;
	color: inherit;
	text-decoration: none;
}

.translation-card div {
	min-height: 170px;
	padding: 20px;
	background: var(--surface);
	border: 1px solid #ead39a;
	border-radius: var(--radius);
}

.translation-card span {
	color: var(--muted);
	font-weight: 900;
}

.translation-card p {
	margin: 18px 0 0;
	font-size: clamp(1.3rem, 2.8vw, 2.5rem);
	font-weight: 900;
	line-height: 1.2;
}

.translation-card strong {
	color: var(--brand);
	font-size: 2rem;
}

.support-section {
	padding: clamp(26px, 4vw, 42px);
	background: var(--brand);
	border-radius: var(--radius);
	color: #fff;
}

.support-section h2 {
	margin: 0 0 8px;
	font-size: clamp(1.8rem, 3.2vw, 3rem);
	line-height: 1.1;
}

.support-options a {
	padding: 10px 14px;
	background: rgba(255, 255, 255, 0.15);
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 6px;
	color: #fff;
	font-weight: 900;
	text-decoration: none;
}

.phayaotv-poll {
	border-left: 5px solid var(--gold);
}

.single-article {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: clamp(22px, 4vw, 42px);
}

.single-header h1 {
	margin: 10px 0 12px;
	font-size: clamp(2rem, 4vw, 3.3rem);
	line-height: 1.14;
}

.single-featured {
	margin: 28px 0;
}

.single-featured img {
	width: 100%;
	border-radius: var(--radius);
}

.entry-content {
	font-size: 1.05rem;
}

.entry-content > * {
	margin-top: 0;
	margin-bottom: 1.25em;
}

.entry-content a {
	color: var(--brand-dark);
}

.entry-content blockquote {
	margin-left: 0;
	padding-left: 18px;
	border-left: 4px solid var(--brand);
	color: var(--muted);
}

.tag-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 28px;
}

.tag-list a {
	padding: 5px 9px;
	background: var(--surface-alt);
	border-radius: 999px;
	text-decoration: none;
}

.search-form {
	display: flex;
	gap: 8px;
}

.search-field {
	width: 100%;
	min-height: 42px;
	padding: 8px 12px;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: #fff;
	font: inherit;
}

.search-form label {
	flex: 1;
}

button,
.search-form button,
.wp-block-button__link,
input[type="submit"] {
	min-height: 42px;
	padding: 8px 14px;
	border: 0;
	border-radius: 6px;
	background: var(--brand);
	color: #fff;
	font: inherit;
	font-weight: 800;
	cursor: pointer;
}

.nav-links {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin-top: 24px;
}

.page-numbers,
.nav-links a {
	display: inline-flex;
	padding: 7px 10px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 6px;
	text-decoration: none;
}

.site-footer {
	display: grid;
	grid-template-columns: minmax(240px, 1fr) auto minmax(180px, auto) auto;
	gap: 24px;
	align-items: center;
	padding: 28px 0 42px;
	border-top: 1px solid var(--line);
	color: var(--muted);
}

.site-footer strong {
	color: var(--ink);
}

.site-footer p {
	margin: 0;
}

.site-footer a {
	color: var(--muted);
	text-decoration: none;
}

.footer-social span,
.footer-social a {
	color: var(--muted);
	font-weight: 700;
	text-decoration: none;
}

.comments-area {
	margin-top: 28px;
	padding: 24px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

@media (max-width: 900px) {
	.site-header,
	.content-layout,
	.hero-card,
	.site-footer,
	.platform-intro,
	.question-strip,
	.voice-section,
	.plain-language-section,
	.split-sections {
		grid-template-columns: 1fr;
	}

	.site-header {
		gap: 12px;
	}

	.brand-row {
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	.menu-toggle {
		display: inline-block;
	}

	.primary-navigation {
		display: none;
		justify-self: stretch;
	}

	.header-tools {
		display: none;
		justify-content: stretch;
	}

	.menu-open .primary-navigation {
		display: block;
	}

	.menu-open .header-tools {
		display: grid;
	}

	.primary-navigation ul {
		display: grid;
	}

	.header-tools .search-form {
		width: 100%;
	}

	.hero-media {
		min-height: 260px;
	}

	.site-sidebar {
		position: static;
	}

	.feature-lanes,
	.dashboard-grid,
	.district-grid,
	.community-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 680px) {
	.site-shell {
		width: min(100% - 24px, 1180px);
	}

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

	.hero-copy h1,
	.hero-copy h2,
	.single-header h1 {
		font-size: 2rem;
	}

	.section-heading,
	.archive-header {
		align-items: start;
		flex-direction: column;
	}

	.search-form {
		flex-direction: column;
	}

	.feature-lanes,
	.dashboard-grid,
	.district-grid,
	.community-grid,
	.translation-card {
		grid-template-columns: 1fr;
	}

	.translation-card strong {
		justify-self: center;
	}
}
