/* Enhanced Knowledge Base — Public */

:root {
	--ekb-ink: #15241a;
	--ekb-muted: #5d6f63;
	--ekb-leaf: #2d6a3a;
	--ekb-leaf-deep: #1f4d2a;
	--ekb-leaf-soft: #e7f1ea;
	--ekb-mist: #f3f7f4;
	--ekb-sand: #f7faf7;
	--ekb-line: #d7e2da;
	--ekb-card: #ffffff;
	--ekb-radius: 12px;
	--ekb-radius-sm: 8px;
	--ekb-shadow: 0 10px 28px rgba(21, 36, 26, 0.08);
	--ekb-shadow-soft: 0 4px 14px rgba(21, 36, 26, 0.05);
	--ekb-font: "Fraunces", "Noto Sans Tamil", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
	--ekb-sans: "Manrope", "Noto Sans Tamil", "Segoe UI", "Helvetica Neue", sans-serif;
	--ekb-tamil: "Noto Sans Tamil", "Manrope", sans-serif;
	--ekb-max-entry: 760px;
	--ekb-max-flora: 1200px;
	--ekb-max-archive: 1180px;
	--ekb-max-search: 1100px;
	--ekb-gutter: clamp(1rem, 3vw, 1.75rem);
}

/* ---- Page width system (escape narrow theme content wells) ---- */
.ekb-page-wrap {
	box-sizing: border-box;
	width: 100%;
	max-width: var(--ekb-max-entry);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--ekb-gutter);
	padding-right: var(--ekb-gutter);
}

.ekb-page-wrap--flora {
	max-width: var(--ekb-max-flora);
}

.ekb-page-wrap--archive {
	max-width: var(--ekb-max-archive);
}

.ekb-page-wrap--search {
	max-width: var(--ekb-max-search);
}

.ekb-page-wrap *,
.ekb-page-wrap *::before,
.ekb-page-wrap *::after {
	box-sizing: border-box;
}

body.ekb-page .ekb-page-wrap,
body.ekb-page .ekb-single,
body.ekb-page .ekb-archive,
body.ekb-page .ekb-flora-article {
	max-width: none;
}

body.ekb-page .ekb-page-wrap {
	max-width: var(--ekb-max-entry);
}

body.ekb-page--flora .ekb-page-wrap,
body.ekb-page--flora .ekb-page-wrap--flora {
	max-width: var(--ekb-max-flora);
}

body.ekb-page--archive .ekb-page-wrap,
body.ekb-page--archive .ekb-page-wrap--archive {
	max-width: var(--ekb-max-archive);
}

body.ekb-page--search .ekb-page-wrap,
body.ekb-page--search .ekb-page-wrap--search {
	max-width: var(--ekb-max-search);
}

/* Widen common theme containers that nest our templates */
body.ekb-page #content,
body.ekb-page #primary,
body.ekb-page #main,
body.ekb-page .site-content,
body.ekb-page .site-main,
body.ekb-page .content-area,
body.ekb-page .entry-content,
body.ekb-page .wp-site-blocks > .wp-block-group,
body.ekb-page .wp-block-post-content,
body.ekb-page .wp-block-post-template,
body.ekb-page .ast-container,
body.ekb-page .container,
body.ekb-page .container-fluid,
body.ekb-page .alignwide,
body.ekb-page .is-layout-constrained > .ekb-page-wrap {
	max-width: none !important;
	width: 100% !important;
}

body.ekb-page .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
	max-width: none;
}

body.ekb-page .ekb-page-wrap {
	width: min(100%, var(--ekb-max-entry));
}

body.ekb-page--flora .ekb-page-wrap {
	width: min(100%, var(--ekb-max-flora));
}

body.ekb-page--archive .ekb-page-wrap {
	width: min(100%, var(--ekb-max-archive));
}

body.ekb-page--search .ekb-page-wrap {
	width: min(100%, var(--ekb-max-search));
}

.ekb-single,
.ekb-archive,
.ekb-entry-details,
.ekb-entries-list,
.ekb-category-list,
.ekb-flora-article {
	color: var(--ekb-ink);
	font-family: var(--ekb-sans);
	width: 100%;
}

.ekb-tamil,
.ekb-flora-names__row.is-tamil dd,
[lang="ta"] {
	font-family: var(--ekb-tamil);
}

.ekb-flora-names__row.is-tamil dd {
	font-size: 1.02rem;
	font-weight: 500;
}

.ekb-single {
	max-width: none;
	margin: 0;
	padding: 2rem 0 3rem;
}

.ekb-single--flora {
	max-width: none;
	padding: 1.35rem 0 2.75rem;
}

.ekb-single__header {
	margin-bottom: 1.75rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid var(--ekb-line);
}

.ekb-single__title {
	font-family: var(--ekb-font);
	font-size: clamp(1.85rem, 4vw, 2.6rem);
	line-height: 1.15;
	margin: 0 0 0.5rem;
	color: var(--ekb-ink);
}

.ekb-single__meta {
	color: var(--ekb-muted);
	font-size: 0.95rem;
}

.ekb-section-title {
	font-family: var(--ekb-font);
	font-size: 1.45rem;
	margin: 0 0 0.85rem;
	color: var(--ekb-leaf);
}

.ekb-flora-section,
.ekb-gallery-section,
.ekb-geo-section,
.ekb-video-section {
	margin: 2rem 0;
	padding: 1.35rem 1.4rem;
	background: linear-gradient(160deg, var(--ekb-sand), #fff 55%);
	border: 1px solid var(--ekb-line);
	border-radius: var(--ekb-radius);
}

.ekb-flora-meta {
	display: grid;
	gap: 0.65rem;
	margin: 0;
}

.ekb-dl-row {
	display: grid;
	grid-template-columns: minmax(120px, 180px) 1fr;
	gap: 0.5rem 1rem;
	padding: 0.55rem 0;
	border-bottom: 1px dashed var(--ekb-line);
}

.ekb-dl-row:last-child {
	border-bottom: 0;
}

.ekb-dl-row dt {
	font-weight: 600;
	color: var(--ekb-muted);
	margin: 0;
}

.ekb-dl-row dd {
	margin: 0;
}

.ekb-scientific {
	font-style: italic;
}

.ekb-flora-description {
	margin-top: 1.25rem;
}

.ekb-rich-content {
	line-height: 1.7;
}

.ekb-rich-content img {
	max-width: 100%;
	height: auto;
	border-radius: 6px;
}

.ekb-drive-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 1rem;
}

.ekb-gallery-item {
	margin: 0;
	background: var(--ekb-card);
	border: 1px solid var(--ekb-line);
	border-radius: 8px;
	overflow: hidden;
	box-shadow: var(--ekb-shadow);
	position: relative;
}

.ekb-gallery-type {
	position: absolute;
	top: 0.55rem;
	left: 0.55rem;
	z-index: 1;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--ekb-ink);
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid var(--ekb-line);
	border-radius: 4px;
	padding: 0.2rem 0.45rem;
}

.ekb-gallery-item img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	background: var(--ekb-leaf-soft);
}

.ekb-gallery-item figcaption {
	padding: 0.55rem 0.75rem;
	font-size: 0.875rem;
	color: var(--ekb-muted);
}

.ekb-map-embed {
	position: relative;
	overflow: hidden;
	border-radius: 8px;
	border: 1px solid var(--ekb-line);
	aspect-ratio: 16 / 9;
	background: var(--ekb-leaf-soft);
}

.ekb-map-embed iframe,
.ekb-youtube-wrap iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.ekb-youtube-wrap {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid var(--ekb-line);
	background: #111;
}

.ekb-geo-label {
	font-weight: 600;
	margin: 0 0 0.35rem;
}

.ekb-geo-coords,
.ekb-map-link {
	color: var(--ekb-muted);
	font-size: 0.9rem;
}

.ekb-archive {
	max-width: none;
	margin: 0;
	padding: 2rem 0 3rem;
	width: 100%;
}

.ekb-archive__title {
	font-family: var(--ekb-font);
	font-size: clamp(1.75rem, 3.5vw, 2.35rem);
	margin: 0 0 0.35rem;
}

.ekb-archive__intro {
	color: var(--ekb-muted);
	margin-bottom: 1.75rem;
}

.ekb-entries-grid,
.ekb-entries-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1.25rem;
}

.ekb-card {
	display: flex;
	flex-direction: column;
	background: var(--ekb-card);
	border: 1px solid var(--ekb-line);
	border-radius: var(--ekb-radius);
	overflow: hidden;
	box-shadow: var(--ekb-shadow);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	text-decoration: none;
	color: inherit;
}

.ekb-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 28px rgba(26, 46, 31, 0.12);
}

.ekb-card__media {
	aspect-ratio: 16 / 10;
	background: linear-gradient(135deg, var(--ekb-leaf-soft), #cfe3d3);
	overflow: hidden;
}

.ekb-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ekb-card__body {
	padding: 1rem 1.1rem 1.2rem;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.ekb-card__title {
	font-family: var(--ekb-font);
	font-size: 1.2rem;
	margin: 0;
	line-height: 1.3;
}

.ekb-card__meta {
	font-size: 0.85rem;
	color: var(--ekb-muted);
}

.ekb-card__excerpt {
	font-size: 0.92rem;
	line-height: 1.5;
	color: var(--ekb-ink);
	margin: 0.25rem 0 0;
}

.ekb-category-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.5rem;
}

.ekb-category-list a {
	color: var(--ekb-leaf);
	font-weight: 600;
	text-decoration: none;
}

.ekb-category-list a:hover {
	text-decoration: underline;
}

.ekb-count {
	color: var(--ekb-muted);
	font-size: 0.9rem;
}

.ekb-empty {
	color: var(--ekb-muted);
}

.ekb-tax-row {
	margin-bottom: 1rem;
}

.ekb-pagination {
	margin-top: 2rem;
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
}

/* =========================================================
   Flora article — compact editorial layout
   ========================================================= */

.ekb-flora-shell {
	background:
		radial-gradient(1200px 420px at 8% -10%, rgba(45, 106, 58, 0.08), transparent 60%),
		linear-gradient(180deg, #fbfdfb 0%, #ffffff 40%);
	border: 1px solid var(--ekb-line);
	border-radius: 16px;
	box-shadow: var(--ekb-shadow-soft);
	padding: clamp(1rem, 2.2vw, 1.65rem);
	overflow: hidden;
}

.ekb-flora-topbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 1rem;
	margin-bottom: 1rem;
}

.ekb-flora-eyebrow {
	display: inline-flex;
	align-items: center;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ekb-leaf-deep);
	background: var(--ekb-leaf-soft);
	border: 1px solid #cfe0d3;
	border-radius: 999px;
	padding: 0.28rem 0.7rem;
}

.ekb-flora-topbar__tax {
	font-size: 0.84rem;
	color: var(--ekb-muted);
}

.ekb-flora-topbar__tax a {
	color: var(--ekb-leaf);
	text-decoration: none;
	font-weight: 600;
}

.ekb-flora-topbar__tax a:hover {
	text-decoration: underline;
}

.ekb-flora-hero {
	display: grid;
	grid-template-columns: minmax(220px, 38%) minmax(0, 1fr);
	gap: 1.15rem 1.5rem;
	align-items: stretch;
}

.ekb-flora-habitat {
	position: relative;
	margin: 0;
	border-radius: var(--ekb-radius);
	overflow: hidden;
	background: var(--ekb-mist);
	border: 1px solid var(--ekb-line);
	box-shadow: var(--ekb-shadow-soft);
	min-height: 240px;
}

.ekb-drive-media {
	display: block;
	position: relative;
	width: 100%;
	height: 100%;
	min-height: inherit;
	background: var(--ekb-leaf-soft);
	overflow: hidden;
}

.ekb-drive-media__img,
.ekb-drive-media__iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.ekb-drive-media__img.is-active {
	object-fit: cover;
}

.ekb-drive-media.is-iframe {
	background: #111;
}

.ekb-drive-media.is-iframe .ekb-drive-media__iframe {
	position: absolute;
	inset: -14% 0 -2% 0;
	width: 100%;
	height: 118%;
	border: 0;
	pointer-events: none;
}

.ekb-drive-media.is-thumb .ekb-drive-media__img {
	position: relative;
	z-index: 1;
}

.ekb-drive-media__fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 140px;
	height: 100%;
	padding: 1rem;
	text-align: center;
	color: var(--ekb-muted);
	background: var(--ekb-leaf-soft);
	font-size: 0.9rem;
}

.ekb-flora-habitat__link {
	display: block;
	height: 100%;
	min-height: 260px;
}

.ekb-flora-habitat__media {
	min-height: 260px;
}

.ekb-flora-habitat__media .ekb-drive-media__img,
.ekb-flora-habitat img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 260px;
	object-fit: cover;
	transition: transform 0.45s ease;
}

.ekb-flora-habitat:hover .ekb-drive-media__img {
	transform: scale(1.03);
}

.ekb-flora-gallery__media,
.ekb-gallery-item .ekb-drive-media {
	aspect-ratio: 1 / 1;
}

.ekb-gallery-item .ekb-drive-media {
	aspect-ratio: 4 / 3;
}

.ekb-flora-gallery__media .ekb-drive-media__img,
.ekb-gallery-item .ekb-drive-media__img {
	aspect-ratio: inherit;
	width: 100%;
	object-fit: cover;
	background: var(--ekb-leaf-soft);
}

.ekb-flora-habitat__placeholder {
	display: grid;
	place-items: center;
	min-height: 260px;
	background:
		linear-gradient(145deg, var(--ekb-leaf-soft), #d9eadc 55%, #f4f8f5);
	color: var(--ekb-muted);
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	font-size: 0.8rem;
}

.ekb-flora-habitat__tag {
	position: absolute;
	top: 0.7rem;
	left: 0.7rem;
	z-index: 1;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ekb-ink);
	background: rgba(255, 255, 255, 0.94);
	border: 1px solid rgba(215, 226, 218, 0.95);
	border-radius: 6px;
	padding: 0.22rem 0.5rem;
	backdrop-filter: blur(4px);
}

.ekb-flora-habitat figcaption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	margin: 0;
	padding: 0.55rem 0.75rem;
	font-size: 0.8rem;
	color: #f4faf5;
	background: linear-gradient(transparent, rgba(18, 32, 22, 0.72));
}

.ekb-flora-identity {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.55rem;
	min-width: 0;
	padding: 0.15rem 0.1rem 0.15rem 0;
}

.ekb-flora-identity__title {
	font-family: var(--ekb-font);
	font-size: clamp(1.55rem, 3vw, 2.15rem);
	font-weight: 650;
	line-height: 1.15;
	margin: 0;
	color: var(--ekb-ink);
	letter-spacing: -0.02em;
}

.ekb-flora-identity__sci {
	margin: 0;
	color: var(--ekb-muted);
	font-size: 1rem;
}

.ekb-flora-names {
	margin: 0.35rem 0 0;
	display: grid;
	gap: 0;
	border: 1px solid var(--ekb-line);
	border-radius: var(--ekb-radius-sm);
	background: #fff;
	overflow: hidden;
}

.ekb-flora-names__row {
	display: grid;
	grid-template-columns: minmax(110px, 34%) 1fr;
	gap: 0.65rem;
	padding: 0.55rem 0.8rem;
	border-bottom: 1px solid var(--ekb-line);
	align-items: baseline;
}

.ekb-flora-names__row:last-child {
	border-bottom: 0;
}

.ekb-flora-names__row dt {
	margin: 0;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--ekb-muted);
}

.ekb-flora-names__row dd {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--ekb-ink);
}

.ekb-flora-names__row.is-scientific dd {
	font-family: var(--ekb-font);
	font-size: 0.98rem;
}

.ekb-flora-classification {
	margin-top: 0.35rem;
	padding: 0.75rem 0.85rem;
	border-radius: var(--ekb-radius-sm);
	background: var(--ekb-mist);
	border: 1px solid var(--ekb-line);
}

.ekb-flora-classification__label {
	display: block;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--ekb-muted);
	margin-bottom: 0.35rem;
}

.ekb-classification-editor {
	margin-top: 0.75rem;
}

.ekb-classification-editor .wp-editor-wrap {
	margin-top: 0.35rem;
}

.ekb-flora-classification__body {
	font-size: 0.92rem;
	line-height: 1.55;
	color: var(--ekb-ink);
}

.ekb-flora-classification__body p {
	margin: 0 0 0.55rem;
}

.ekb-flora-classification__body p:last-child {
	margin-bottom: 0;
}

.ekb-flora-classification__body ul,
.ekb-flora-classification__body ol {
	margin: 0.35rem 0 0.55rem 1.15rem;
	padding: 0;
}

.ekb-flora-classification__body li {
	margin: 0.15rem 0;
}

.ekb-flora-rule {
	border: 0;
	height: 1px;
	margin: 1.25rem 0 1.35rem;
	background: linear-gradient(90deg, transparent, var(--ekb-line) 8%, var(--ekb-line) 92%, transparent);
}

.ekb-flora-body {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.35rem;
	align-items: start;
}

.ekb-flora-body.has-sidebar {
	grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
	gap: 1.5rem;
}

.ekb-flora-main {
	min-width: 0;
	display: grid;
	gap: 1.35rem;
}

.ekb-flora-section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 0.7rem;
}

.ekb-flora-section-head h2 {
	font-family: var(--ekb-font);
	font-size: 1.2rem;
	font-weight: 650;
	margin: 0;
	color: var(--ekb-leaf-deep);
	letter-spacing: -0.01em;
}

.ekb-flora-gallery__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
	gap: 0.75rem;
}

.ekb-flora-gallery__item {
	position: relative;
	margin: 0;
	border-radius: var(--ekb-radius-sm);
	overflow: hidden;
	background: var(--ekb-card);
	border: 1px solid var(--ekb-line);
	box-shadow: var(--ekb-shadow-soft);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ekb-flora-gallery__item:hover {
	transform: translateY(-2px);
	box-shadow: var(--ekb-shadow);
}

.ekb-flora-gallery__type {
	position: absolute;
	top: 0.45rem;
	left: 0.45rem;
	z-index: 1;
	font-size: 0.64rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--ekb-ink);
	background: rgba(255, 255, 255, 0.94);
	border: 1px solid var(--ekb-line);
	border-radius: 5px;
	padding: 0.16rem 0.4rem;
}

.ekb-flora-gallery__item img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	background: var(--ekb-leaf-soft);
}

.ekb-flora-gallery__item figcaption {
	padding: 0.4rem 0.55rem 0.55rem;
	font-size: 0.78rem;
	color: var(--ekb-muted);
	line-height: 1.35;
}

.ekb-flora-desc,
.ekb-flora-entry-content {
	padding: 1rem 1.05rem 1.1rem;
	background: #fff;
	border: 1px solid var(--ekb-line);
	border-radius: var(--ekb-radius);
}

.ekb-flora-desc__content,
.ekb-flora-entry-content {
	font-size: 0.98rem;
	line-height: 1.72;
	color: var(--ekb-ink);
}

.ekb-flora-desc__content > *:first-child,
.ekb-flora-entry-content > *:first-child {
	margin-top: 0;
}

.ekb-flora-desc__content > *:last-child,
.ekb-flora-entry-content > *:last-child {
	margin-bottom: 0;
}

.ekb-flora-sidebar {
	display: grid;
	gap: 0.9rem;
	position: sticky;
	top: 1.25rem;
}

.ekb-flora-sidebar__card {
	padding: 0.9rem;
	background: #fff;
	border: 1px solid var(--ekb-line);
	border-radius: var(--ekb-radius);
	box-shadow: var(--ekb-shadow-soft);
}

.ekb-flora-video__frame {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: var(--ekb-radius-sm);
	overflow: hidden;
	background: #101811;
	border: 1px solid var(--ekb-line);
}

.ekb-flora-video__frame iframe,
.ekb-flora-location__map iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.ekb-flora-location__label {
	margin: 0 0 0.35rem;
	font-weight: 600;
	font-size: 0.92rem;
}

.ekb-flora-location__coords {
	margin: 0 0 0.65rem;
	font-size: 0.8rem;
	color: var(--ekb-muted);
}

.ekb-flora-location__map {
	position: relative;
	aspect-ratio: 4 / 3;
	border-radius: var(--ekb-radius-sm);
	overflow: hidden;
	border: 1px solid var(--ekb-line);
	background: var(--ekb-leaf-soft);
}

.ekb-flora-location__link {
	margin: 0.55rem 0 0;
	font-size: 0.84rem;
}

.ekb-flora-location__link a {
	color: var(--ekb-leaf);
	font-weight: 600;
	text-decoration: none;
}

.ekb-flora-location__link a:hover {
	text-decoration: underline;
}

@media (max-width: 900px) {
	.ekb-flora-hero {
		grid-template-columns: 1fr;
	}

	.ekb-flora-habitat img,
	.ekb-flora-habitat__placeholder {
		min-height: 220px;
	}

	.ekb-flora-body.has-sidebar {
		grid-template-columns: 1fr;
	}

	.ekb-flora-sidebar {
		position: static;
		grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	}
}

@media (max-width: 640px) {
	.ekb-dl-row,
	.ekb-flora-names__row {
		grid-template-columns: 1fr;
		gap: 0.2rem;
	}

	.ekb-flora-gallery__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ekb-flora-shell {
		padding: 0.9rem;
		border-radius: 12px;
	}
}

/* =========================================================
   Search & Identify page
   ========================================================= */

.ekb-search {
	padding: 1.5rem 0 2.75rem;
}

.ekb-search__header {
	margin-bottom: 1.35rem;
}

.ekb-search__eyebrow {
	margin: 0 0 0.4rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ekb-leaf-deep);
}

.ekb-search__title {
	font-family: var(--ekb-font);
	font-size: clamp(1.7rem, 3.4vw, 2.3rem);
	margin: 0 0 0.45rem;
	letter-spacing: -0.02em;
	color: var(--ekb-ink);
}

.ekb-search__intro {
	margin: 0;
	max-width: 46rem;
	color: var(--ekb-muted);
	line-height: 1.55;
}

.ekb-search__form {
	display: grid;
	gap: 0.9rem;
	padding: 1rem 1.05rem 1.1rem;
	background: linear-gradient(180deg, #fbfdfb, #fff);
	border: 1px solid var(--ekb-line);
	border-radius: 14px;
	box-shadow: var(--ekb-shadow-soft);
}

.ekb-search__row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 0.85rem;
	align-items: end;
}

.ekb-search__row--location {
	align-items: center;
	padding-top: 0.35rem;
	border-top: 1px dashed var(--ekb-line);
}

.ekb-search__field {
	display: grid;
	gap: 0.35rem;
	min-width: 150px;
}

.ekb-search__field--grow {
	flex: 1 1 220px;
}

.ekb-search__label {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--ekb-muted);
}

.ekb-search__input,
.ekb-search__select {
	width: 100%;
	min-height: 42px;
	border: 1px solid var(--ekb-line);
	border-radius: 8px;
	padding: 0.55rem 0.75rem;
	font: inherit;
	background: #fff;
	color: var(--ekb-ink);
}

.ekb-search__input:focus,
.ekb-search__select:focus {
	outline: 2px solid rgba(45, 106, 58, 0.25);
	border-color: var(--ekb-leaf);
}

.ekb-search__actions {
	display: flex;
	align-items: end;
}

.ekb-search__submit {
	min-height: 42px;
	padding: 0.55rem 1.15rem;
	border: 0;
	border-radius: 8px;
	background: var(--ekb-leaf);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

.ekb-search__submit:hover {
	background: var(--ekb-leaf-deep);
}

.ekb-search__check {
	display: flex;
	gap: 0.65rem;
	align-items: flex-start;
	flex: 1 1 280px;
	cursor: pointer;
}

.ekb-search__check input {
	margin-top: 0.25rem;
	width: 1.05rem;
	height: 1.05rem;
	accent-color: var(--ekb-leaf);
}

.ekb-search__check strong {
	display: block;
	font-size: 0.95rem;
	color: var(--ekb-ink);
}

.ekb-search__check-hint {
	display: block;
	margin-top: 0.15rem;
	font-size: 0.84rem;
	color: var(--ekb-muted);
	line-height: 1.4;
}

.ekb-search__radius-field {
	min-width: 110px;
}

.ekb-search__status {
	min-height: 1.35rem;
	margin: 0.85rem 0 0.35rem;
	font-size: 0.9rem;
	color: var(--ekb-muted);
}

.ekb-search__status.is-pending {
	color: #8a6a00;
}

.ekb-search__status.is-success {
	color: var(--ekb-leaf-deep);
}

.ekb-search__status.is-warn {
	color: #8a6a00;
}

.ekb-search__status.is-error {
	color: #b32d2e;
}

.ekb-search__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin-bottom: 0.85rem;
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--ekb-ink);
}

.ekb-search__coords {
	font-weight: 500;
	color: var(--ekb-muted);
}

.ekb-search__results {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 1rem;
}

.ekb-search__empty {
	grid-column: 1 / -1;
	margin: 0;
	padding: 1.25rem;
	border: 1px dashed var(--ekb-line);
	border-radius: 10px;
	color: var(--ekb-muted);
	background: var(--ekb-mist);
}

.ekb-search-card {
	margin: 0;
}

.ekb-search-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: inherit;
	background: #fff;
	border: 1px solid var(--ekb-line);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: var(--ekb-shadow-soft);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ekb-search-card__link:hover {
	transform: translateY(-2px);
	box-shadow: var(--ekb-shadow);
}

.ekb-search-card__media {
	aspect-ratio: 16 / 10;
	background: linear-gradient(135deg, var(--ekb-leaf-soft), #d5e7d9);
	overflow: hidden;
}

.ekb-search-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ekb-search-card__body {
	display: grid;
	gap: 0.35rem;
	padding: 0.9rem 1rem 1.05rem;
}

.ekb-search-card__tax,
.ekb-search-card__names,
.ekb-search-card__geo,
.ekb-search-card__distance {
	font-size: 0.8rem;
	color: var(--ekb-muted);
}

.ekb-search-card__title {
	font-family: var(--ekb-font);
	font-size: 1.12rem;
	margin: 0;
	line-height: 1.25;
	color: var(--ekb-ink);
}

.ekb-search-card__names [lang="ta"] {
	font-family: var(--ekb-tamil);
}

.ekb-search-card__distance {
	font-weight: 700;
	color: var(--ekb-leaf-deep);
}

.ekb-search-card__excerpt {
	margin: 0.15rem 0 0;
	font-size: 0.88rem;
	line-height: 1.45;
	color: var(--ekb-ink);
}

.ekb-search.is-location-mode .ekb-search__form {
	border-color: #b9d4c0;
	box-shadow: 0 0 0 3px rgba(45, 106, 58, 0.08);
}

body.ekb-page--search .entry-header,
body.ekb-page--search .wp-block-post-title,
body.ekb-page--search .page-title {
	display: none;
}

@media (max-width: 720px) {
	.ekb-search__row--primary .ekb-search__actions {
		width: 100%;
	}

	.ekb-search__submit {
		width: 100%;
	}
}
