.wss {
	--wss-ink: #1c1c1c;
	--wss-muted: #5c6570;
	--wss-line: #e4e7eb;
	--wss-soft: #f4f6f8;
	--wss-blue: #0b5cab;
	--wss-blue-dark: color-mix(in srgb, var(--wss-blue) 76%, #000);
	color: var(--wss-ink);
	font-family: "Leelawadee UI", "Sarabun", "Noto Sans Thai", Tahoma, sans-serif;
	line-height: 1.55;
	width: 100%;
	max-width: none;
}

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

.wss-form {
	margin: 0 0 18px;
}

.wss-label {
	display: block;
	margin: 0;
	font-size: 15px;
	font-weight: 700;
}

.wss-bar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: start;
	gap: 8px;
}

.wss-search-heading {
	grid-column: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.wss-search {
	grid-column: 1;
	min-width: 0;
	border: 1px solid #c5cdd6;
	border-radius: 8px;
	background: #fff;
}

.wss-search:focus-within {
	border-color: var(--wss-blue);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--wss-blue) 22%, transparent);
}

.wss-field {
	display: flex;
	align-items: center;
	min-width: 0;
	min-height: 48px;
}

.wss-search-icon {
	display: flex;
	flex: 0 0 auto;
	padding-left: 12px;
	color: #6b7280;
}

.wss-icon,
.wss-chevron {
	display: block;
	width: 18px;
	height: 18px;
}

.wss-chevron {
	width: 16px;
	height: 16px;
}

.wss input#wss-q.wss-input {
	flex: 1 1 auto;
	min-width: 0;
	height: 46px;
	margin: 0;
	padding: 0 10px;
	border: 0 !important;
	border-radius: 8px;
	outline: none;
	box-shadow: none !important;
	background: transparent;
	color: var(--wss-ink);
	font: inherit;
	font-size: 18px;
	-webkit-appearance: none !important;
	appearance: none !important;
}

.wss input#wss-q.wss-input:hover,
.wss input#wss-q.wss-input:focus,
.wss input#wss-q.wss-input:focus-visible,
.wss input#wss-q.wss-input:active {
	border: 0 !important;
	outline: none;
	box-shadow: none !important;
	background: transparent;
	-webkit-appearance: none !important;
	appearance: none !important;
}

.wss input#wss-q.wss-input:-webkit-autofill {
	-webkit-box-shadow: 0 0 0 100px #fff inset !important;
	-webkit-text-fill-color: var(--wss-ink);
}

.wss-drop-badge {
	min-width: 1.3em;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--wss-blue);
	color: #fff;
	font-size: 12px;
	line-height: 1.45;
	text-align: center;
}

.wss-filters {
	grid-column: 1;
	min-width: 0;
}

.wss-filter-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.wss-drop {
	position: relative;
	flex: 1 1 0;
	min-width: 108px;
}

.wss-drop-btn {
	display: inline-flex;
	width: 100%;
	align-items: center;
	gap: 6px;
	height: 38px;
	padding: 0 12px;
	border: 1px solid #d5dbe3;
	border-radius: 8px;
	background: #fff;
	color: var(--wss-ink);
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

.wss .wss-drop-btn:hover,
.wss .wss-drop-btn:focus,
.wss .wss-drop.is-open .wss-drop-btn,
.wss .wss-drop-btn.is-set {
	border-color: #d5dbe3;
	background: #fff;
}

.wss-drop-btn:focus-visible {
	outline: 2px solid var(--wss-blue);
	outline-offset: 2px;
}

.wss-date-summary,
.wss-filter-summary {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wss-drop-btn .wss-chevron {
	flex-shrink: 0;
}

.wss-drop-btn .wss-chevron {
	margin-inline-start: auto;
}

.wss-drop.is-open .wss-chevron {
	transform: rotate(180deg);
}

.wss-drop-panel {
	position: absolute;
	z-index: 30;
	top: calc(100% + 6px);
	left: 0;
	min-width: 220px;
	padding: 8px;
	border: 1px solid #d5dbe3;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 12px 28px rgba(16, 24, 40, 0.12);
}

.wss-drop:last-child .wss-drop-panel {
	left: auto;
	right: 0;
}

.wss-drop-dates,
.wss-drop-keywords {
	min-width: 260px;
}

.wss-drop-years {
	max-height: 280px;
	overflow: auto;
}

.wss-check {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 7px 8px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.wss-check:hover {
	background: var(--wss-soft);
}

.wss-check:has(input:checked) {
	background: var(--wss-soft);
}

.wss-check input {
	width: 16px;
	height: 16px;
	margin: 0;
	accent-color: var(--wss-blue);
}

.wss-date {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 700;
}

.wss-date input {
	width: 100%;
	height: 38px;
	padding: 0 10px;
	border: 1px solid #c5cdd6;
	border-radius: 8px;
	background: #fff;
	color: var(--wss-ink);
	font: inherit;
	font-size: 14px;
	font-weight: 500;
}

.wss-drop-keywords .wss-filter-note {
	margin: 0 4px 4px;
}

.wss-filter-note {
	margin: 8px 0 0;
	color: var(--wss-muted);
	font-size: 13px;
}

.wss-filter-clear {
	white-space: nowrap;
	color: var(--wss-blue);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.wss-filter-clear:hover,
.wss-filter-clear:focus {
	text-decoration: underline;
}

.wss-active {
	margin: -6px 0 14px;
	color: var(--wss-muted);
	font-size: 14px;
}

.wss-submit {
	height: 48px;
	padding: 0 22px;
	border: 0;
	border-radius: 8px;
	background: var(--wss-blue);
	color: #fff;
	font: inherit;
	font-size: 17px;
	font-weight: 700;
	cursor: pointer;
}

.wss-submit:hover,
.wss-submit:focus {
	background: var(--wss-blue-dark);
}

.wss-ready,
.wss-meta,
.wss-note {
	color: var(--wss-muted);
	font-size: 14px;
}

.wss-ready {
	margin: 0 0 14px;
	color: var(--wss-ink);
	font-size: 16px;
}

.wss-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.wss-card {
	margin: 0;
	padding: 14px 16px;
	border: 1px solid var(--wss-line);
	border-radius: 10px;
	background: #fff;
}

.wss-card-head {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.wss-badge {
	flex: 0 0 auto;
	margin-top: 3px;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--wss-soft);
	color: #243042;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.wss-badge-pdf {
	background: #fde8e6;
	color: #9b1c1c;
}

.wss-badge-word {
	background: var(--wss-soft);
	color: #184f9b;
}

.wss-badge-excel {
	background: #e5f6ec;
	color: #0d6b3d;
}

.wss-badge-ppt {
	background: #fff1e6;
	color: #9a4d0f;
}

.wss-badge-csv {
	background: #e7f7f6;
	color: #0b5f5a;
}

.wss-badge-page {
	background: #eef2ff;
	color: #3730a3;
}

.wss-badge-post {
	background: #f3e8ff;
	color: #6b21a8;
}

.wss-badge-album {
	background: #e0f2fe;
	color: #075985;
}

.wss-badge-video {
	background: #fce7f3;
	color: #9d174d;
}

.wss-badge-office {
	background: #ecfccb;
	color: #3f6212;
}

.wss-title {
	margin: 0;
	font-size: 18px;
	line-height: 1.4;
	font-weight: 700;
}

.wss-title a {
	color: var(--wss-ink);
	text-decoration: none;
}

.wss-title a:hover,
.wss-title a:focus {
	color: var(--wss-blue);
	text-decoration: underline;
}

.wss-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 6px 0 0;
}

.wss-snippets {
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
}

.wss-snippets li {
	margin: 0 0 6px;
	padding: 8px 10px;
	border-radius: 6px;
	background: var(--wss-soft);
	color: var(--wss-ink);
	font-size: 15px;
}

.wss-snippets li::before {
	content: "… ";
	color: var(--wss-muted);
}

.wss-note {
	margin: 8px 0 0;
}

.wss mark {
	padding: 0 0.15em;
	border-radius: 3px;
	background: #ffe08a;
	color: inherit;
	font-weight: 700;
}

body .main-content:has(> .wss) > .meta-bar {
	display: none !important;
}

.wss-empty {
	margin: 0 0 1rem;
	padding: 28px 20px 24px;
	border: 1px solid color-mix(in srgb, var(--wss-blue) 18%, white);
	border-radius: 8px;
	background: color-mix(in srgb, var(--wss-blue) 5%, white);
	color: #3e4c59;
	text-align: center;
}

.wss-empty-icon {
	display: grid;
	place-items: center;
	width: 96px;
	height: 96px;
	margin: 0 auto 12px;
	border-radius: 16px;
	background: #fff;
	color: var(--wss-blue);
}

.wss-empty-icon .wss-icon {
	width: 36px;
	height: 36px;
}

.wss-empty p {
	margin: 0;
	font-size: .95rem;
	font-weight: 500;
}

.wss-empty .wss-empty-help {
	margin-top: 6px;
	font-size: .85rem;
	font-weight: 400;
}

/* Match the press release archive controls. */
.wss .wss-pager {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: .15rem;
	margin-top: 1.25rem;
}

.wss .wss-pager .wss-page,
.wss .wss-pager .wss-page-gap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.625rem;
	height: 1.625rem;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #3e4c59;
	font-size: .8125rem;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
}

.wss .wss-pager .is-arrow {
	width: 1.375rem;
	height: 1.375rem;
	font-size: 1rem;
}

.wss .wss-pager a:hover {
	background: #f5f7fa;
	color: #101828;
}

.wss .wss-pager .is-current {
	background: #f05223;
	color: #fff;
}

.wss .wss-pager button:disabled {
	opacity: .28;
	cursor: default;
}

.wss-snippets .wss-hit {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.wss-snippets .wss-hit:hover,
.wss-snippets .wss-hit:focus-visible {
	color: var(--wss-blue);
}

.wss-file-card {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: clamp(10px, 2vw, 24px);
	padding: 20px 0;
	border: 0;
	border-bottom: 1px solid var(--wss-line);
	border-radius: 0;
	background: transparent;
}

.wss-file-card .wss-card-body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	overflow-wrap: anywhere;
}

.wss-file-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: start;
	min-width: 3.5rem;
	height: 3.25rem;
	padding: 0 0.4rem;
	border: 1px solid #f8c7b6;
	border-color: color-mix(in srgb, var(--dga-primary, #f05223) 28%, #fff);
	border-radius: 8px;
	background: var(--dga-primary-soft, #fff3ef);
	color: var(--dga-primary, #f05223);
	font-size: var(--font-size-card-desc, 14px);
	font-weight: var(--font-weight-btn, 600);
	letter-spacing: 0.01em;
	line-height: 1;
}

.wss-file-card .wss-card-head {
	flex-direction: column;
	gap: 5px;
}

.wss-file-card .wss-snippet-group {
	order: 1;
	margin: 0;
}

.wss-file-card .wss-snippets li {
	padding: 0;
	background: transparent;
}

.wss-file-card .wss-meta {
	order: 2;
	margin: 0;
}

.wss-file-source,
.wss-file-actions {
	order: 3;
	margin: 0;
	font-size: 14px;
}

.wss-file-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.wss-file-actions a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 36px;
	padding: 7px 12px;
	border: 1px solid var(--wss-blue);
	border-radius: 8px;
	color: var(--wss-blue);
	font-weight: 600;
}

.wss-file-actions a:first-child {
	background: var(--wss-blue);
	color: #fff;
}

@media (max-width: 640px) {
	.wss-bar {
		grid-template-columns: minmax(0, 1fr);
	}

	.wss-search,
	.wss-submit {
		width: 100%;
	}

	.wss-filter-row,
	.wss-drop,
	.wss-drop-btn {
		width: 100%;
	}

	.wss-drop {
		flex-basis: calc(50% - 4px);
	}

	.wss-drop-panel {
		position: static;
		min-width: 0;
		margin-top: 6px;
	}
}

/* Site typography, migrated from WordPress Additional CSS. */
body .wss {
  font-family: var(--e-global-typography-text-font-family, "Prompt"), "Noto Sans Thai", sans-serif;
}

.wss .wss-snippet-group [hidden],
.wss .wss-drop-badge[hidden] {
	display: none;
}

.wss .wss-load-more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	margin-top: 6px;
	padding: 6px 12px;
	border: 1px solid var(--wss-blue);
	border-radius: 8px;
	background: transparent;
	color: var(--wss-blue);
	font: inherit;
	font-size: 14px;
	cursor: pointer;
}

.wss .wss-load-more:hover {
	background: color-mix(in srgb, var(--wss-blue) 5%, white);
}

.wss-card {
	min-width: 0;
	overflow-wrap: anywhere;
}

.wss :is(a, button, input):focus-visible {
	outline: 2px solid var(--wss-blue);
	outline-offset: 2px;
	scroll-margin-block: 10rem 1rem;
}

.wss input#wss-q.wss-input:focus-visible {
	outline: none;
}

@media (max-width: 640px) {
	.wss .wss-drop-btn,
	.wss .wss-file-actions a {
		min-height: 44px;
	}

	.wss .wss-pager .wss-page {
		min-width: 32px;
		min-height: 32px;
	}
}
