/*
Theme Name: Argent – ES DARU
Template: argent
Description: Saldus fotokluba "ES DARU" child theme uz Argent bāzes: gaišs, minimālistisks, foto orientēts izskats.
Version: 1.1.0
Text Domain: argent-esdaru
*/

/* ==========================================================================
   Krāsas, fonti, mērogi
   ========================================================================== */
:root {
	--esd-red: #c8142b;
	--esd-ink: #17191b;
	--esd-text: #2c2f31;
	--esd-muted: #5c6165; /* ≥ 4,5:1 arī uz gaišā fona (pieejamība) */
	--esd-bg: #f7f7f5;
	--esd-surface: #fff;
	--esd-soft: #efefec;
	--esd-line: rgba(23, 25, 27, .1);
	--esd-radius: 8px;
	--esd-font: "Manrope", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--esd-wide: 1200px;
	--esd-text-col: 720px;
	--esd-gutter: clamp(16px, 4vw, 40px);
	--esd-bar-h: 68px;
	--esd-solid: #17191b;      /* pilnās pogas/aktīvie stāvokļi */
	--esd-on-solid: #fff;
	--esd-solid-hover: #3a3f43; /* aktīvais izvēlnes punkts pie hover */
	--esd-press: #dcdcd8;       /* izvēlnes punkts klikšķa brīdī */
	--esd-bar-bg: rgba(255, 255, 255, .92);
	--esd-logo-filter: none;
	--esd-field-border: rgba(23, 25, 27, .22);
	color-scheme: light;
}

/* Tumšais skats: pēc ierīces iestatījuma, vai izvēlēts ar pogu (data-theme uz <html>) */
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--esd-red: #e8384f;
		--esd-ink: #f0efec;
		--esd-text: #d9d8d4;
		--esd-muted: #a4a8ab;
		--esd-bg: #111213;
		--esd-surface: #1b1d1f;
		--esd-soft: #2a2d30;
		--esd-line: rgba(255, 255, 255, .12);
		--esd-solid: #f0efec;
		--esd-on-solid: #111213;
		--esd-solid-hover: #d2d1cc;
		--esd-press: #3a3e42;
		--esd-bar-bg: rgba(27, 29, 31, .92);
		--esd-logo-filter: invert(1);
		--esd-field-border: rgba(255, 255, 255, .28);
		color-scheme: dark;
	}
}

:root[data-theme="dark"] {
	--esd-red: #e8384f;
	--esd-ink: #f0efec;
	--esd-text: #d9d8d4;
	--esd-muted: #a4a8ab;
	--esd-bg: #111213;
	--esd-surface: #1b1d1f;
	--esd-soft: #2a2d30;
	--esd-line: rgba(255, 255, 255, .12);
	--esd-solid: #f0efec;
	--esd-on-solid: #111213;
	--esd-solid-hover: #d2d1cc;
	--esd-press: #3a3e42;
	--esd-bar-bg: rgba(27, 29, 31, .92);
	--esd-logo-filter: invert(1);
	--esd-field-border: rgba(255, 255, 255, .28);
	color-scheme: dark;
}

html {
	scroll-padding-top: calc(var(--esd-bar-h) + 12px);
}

body,
button,
input,
select,
textarea,
.entry-title,
.page-title,
.site-title,
.widget-title,
.main-navigation a,
h1, h2, h3, h4, h5, h6,
.single .entry-title,
.page .entry-title,
.hentry .page-title {
	font-family: var(--esd-font);
}

body,
body.custom-background {
	background: var(--esd-bg);
	color: var(--esd-text);
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: var(--esd-ink);
}

/* ==========================================================================
   Galvenes josla: logo pa kreisi, izvēlne pa labi, pielīp pie augšas
   ========================================================================== */
.site-header {
	display: contents;
}

.esd-bar {
	align-items: center;
	backdrop-filter: saturate(1.4) blur(10px);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	background: var(--esd-bar-bg);
	border-bottom: 1px solid var(--esd-line);
	display: flex;
	gap: 24px;
	justify-content: space-between;
	min-height: var(--esd-bar-h);
	padding: 0 var(--esd-gutter);
	position: sticky;
	top: 0;
	z-index: 100;
}

.admin-bar .esd-bar {
	top: 32px;
}

@media screen and (max-width: 782px) {
	.admin-bar .esd-bar {
		top: 46px;
	}
}

.esd-brand {
	border: 0;
	display: block;
	flex: none;
	line-height: 0;
}

.esd-brand img {
	height: 40px;
	width: auto;
}

/* izvēlne – Argent stilus neitralizējam */
.esd-bar .main-navigation {
	background: transparent;
	clear: none;
	display: block;
	padding: 0;
	position: static;
	width: auto;
}

.esd-bar .main-navigation a {
	color: var(--esd-ink);
	font-size: 1.5rem;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1.4;
	text-transform: none;
}

.esd-bar .nav-menu > li > a:after {
	content: none;
}

/* Argent klikšķa/fokusa brīdī tekstu iekrāso baltu (.focus) – uz gaišā fona tas nav salasāms.
   Aktīvā punkta noteikumi zemāk to pārraksta. */
.esd-bar .main-navigation li.focus > a,
.esd-bar .main-navigation a:focus,
.esd-bar .main-navigation a:active {
	color: var(--esd-ink);
}

.menu-toggle {
	align-items: center;
	background: transparent;
	border: 1px solid var(--esd-line);
	border-radius: 999px;
	color: var(--esd-ink);
	font-size: 1.4rem;
	font-weight: 600;
	gap: 6px;
	letter-spacing: 0;
	margin: 0;
	padding: .55em 1.1em;
	text-transform: none;
}

.menu-toggle:hover,
.menu-toggle:focus,
.menu-toggle:active {
	border-color: var(--esd-ink);
	color: var(--esd-ink);
	opacity: 1;
}

/* pilna horizontālā izvēlne tikai no 1000px – šaurāk 5 punkti neietilpst vienā rindā */
@media screen and (min-width: 1000px) {
	.esd-bar .main-navigation ul {
		display: flex;
		flex-wrap: wrap;
		gap: 4px 6px;
		justify-content: flex-end;
		text-align: left;
	}
	.esd-bar .main-navigation ul li {
		padding: 0;
	}
	.esd-bar .main-navigation > div > ul > li > a {
		border-radius: 999px;
		padding: .5em .95em;
		transition: background .15s ease;
	}
	.esd-bar .main-navigation > div > ul > li > a:hover {
		background: var(--esd-soft);
	}
	.esd-bar .main-navigation > div > ul > li.current-menu-item > a,
	.esd-bar .main-navigation > div > ul > li.current_page_item > a,
	.esd-bar .main-navigation > div > ul > li.current-menu-ancestor > a,
	.esd-bar .main-navigation > div > ul > li.current_page_ancestor > a,
	.esd-bar .main-navigation > div > ul > li.current-page-ancestor > a {
		background: var(--esd-solid);
		color: var(--esd-on-solid);
	}
	/* aktīvais punkts pie hover – tas pats tumšais fons, nedaudz gaišāks */
	.esd-bar .main-navigation > div > ul > li.current-menu-item > a:hover,
	.esd-bar .main-navigation > div > ul > li.current_page_item > a:hover,
	.esd-bar .main-navigation > div > ul > li.current-menu-ancestor > a:hover,
	.esd-bar .main-navigation > div > ul > li.current_page_ancestor > a:hover,
	.esd-bar .main-navigation > div > ul > li.current-page-ancestor > a:hover {
		background: var(--esd-solid-hover);
	}
	/* "Kļūt par biedru" – aicinājums: sarkana kontūrpoga */
	.esd-bar .main-navigation > div > ul > li.esd-nav-cta > a {
		box-shadow: inset 0 0 0 1.5px var(--esd-red);
		color: var(--esd-red);
		margin-left: 6px;
	}
	.esd-bar .main-navigation > div > ul > li.esd-nav-cta > a:hover {
		background: var(--esd-red);
		color: #fff;
	}
	.esd-bar .main-navigation > div > ul > li.esd-nav-cta.current-menu-item > a,
	.esd-bar .main-navigation > div > ul > li.esd-nav-cta.current_page_item > a {
		background: var(--esd-red);
		box-shadow: none;
		color: #fff;
	}
	/* klikšķa brīdī (līdz jaunā lapa ielādējas) – tas pats pelēkais fons ar tumšu tekstu */
	.esd-bar .main-navigation > div > ul > li:not(.current-menu-item):not(.current_page_item):not(.current-menu-ancestor):not(.current_page_ancestor) > a:active {
		background: var(--esd-press);
	}
	/* apakšizvēlnes: bez spraugas zem punkta un ar nelielu aizkavi pirms aizvēršanās,
	   lai pele paspēj nokļūt līdz tai */
	.esd-bar .main-navigation ul li {
		padding-bottom: 8px;
		margin-bottom: -8px;
	}
	.esd-bar .main-navigation ul ul {
		background: var(--esd-surface);
		border: 1px solid var(--esd-line);
		border-radius: var(--esd-radius);
		box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
		display: block;
		left: 0;
		opacity: 0;
		padding: 6px;
		top: 100%;
		transition: opacity .15s ease, visibility 0s linear .25s;
		visibility: hidden;
	}
	.esd-bar .main-navigation ul li:hover > ul,
	.esd-bar .main-navigation ul li:focus-within > ul,
	.esd-bar .main-navigation ul li.focus > ul {
		left: 0;
		opacity: 1;
		transition-delay: 0s;
		visibility: visible;
	}
	.esd-bar .main-navigation ul ul a {
		border-radius: 6px;
		color: var(--esd-ink);
		font-size: 1.4rem;
		padding: .6em .9em;
		width: 220px;
	}
	.esd-bar .main-navigation ul ul a:hover {
		background: var(--esd-soft);
	}
	.esd-bar .main-navigation ul ul li {
		border: 0;
	}
	.esd-bar .main-navigation div > ul > li > ul::before {
		display: none;
	}
}

/* apakšizvēlņu bultiņas – tikai mobilajā izvēlnē */
@media screen and (min-width: 1000px) {
	.esd-sub-toggle {
		display: none !important;
	}
}

/* telefons/planšete (< 1000px): pilnekrāna panelis zem joslas (js/mobile-nav.js).
   Argent horizontālās izvēlnes stili (≥768px) šeit jāneitralizē. */
@media screen and (max-width: 999px) {
	.esd-bar .menu-toggle {
		display: inline-flex;
		min-width: 112px;
		justify-content: center;
	}

	.esd-burger,
	.esd-burger::before,
	.esd-burger::after {
		background: currentColor;
		border-radius: 2px;
		display: block;
		height: 2px;
		position: relative;
		width: 16px;
	}

	.esd-burger::before,
	.esd-burger::after {
		content: "";
		position: absolute;
	}

	.esd-burger::before { top: -5px; }
	.esd-burger::after { top: 5px; }

	.menu-toggle::before {
		display: none;
	}

	.esd-bar .main-navigation ul {
		display: none;
		list-style: none;
		margin: 0;
		text-align: left;
	}

	/* panelis */
	.esd-bar .main-navigation.toggled > div > ul {
		background: var(--esd-surface);
		bottom: 0;
		box-shadow: none;
		display: flex;
		flex-direction: column;
		left: 0;
		overflow-y: auto;
		overscroll-behavior: contain;
		padding: 12px var(--esd-gutter) calc(28px + env(safe-area-inset-bottom, 0px));
		position: fixed;
		right: 0;
		top: var(--esd-bar-h);
		z-index: 99;
	}

	.admin-bar .esd-bar .main-navigation.toggled > div > ul {
		top: calc(var(--esd-bar-h) + 46px);
	}

	/* ritināšanu bloķējam tikai html līmenī – ja arī body ir overflow:hidden, tas kļūst par atsevišķu
	   ritināmo konteineru, un pielīpošā josla aizslīd prom, kad lapa ir paritināta */
	html.esd-nav-open {
		overflow: hidden;
	}

	/* backdrop-filter padara joslu par fiksētā paneļa konteineru (panelis būtu joslas augstumā) */
	html.esd-nav-open .esd-bar {
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
		background: var(--esd-surface);
	}

	.esd-bar .main-navigation ul li {
		border: 0;
		display: block;
		padding: 0;
		position: relative;
	}

	/* galvenie punkti */
	.esd-bar .main-navigation > div > ul > li {
		border-bottom: 1px solid var(--esd-line);
	}

	.esd-bar .main-navigation > div > ul > li > a {
		color: var(--esd-ink);
		display: block;
		font-size: 2rem;
		font-weight: 700;
		letter-spacing: -.01em;
		padding: 16px 56px 16px 0;
	}

	.esd-bar .main-navigation > div > ul > li.current-menu-item > a,
	.esd-bar .main-navigation > div > ul > li.current_page_item > a,
	.esd-bar .main-navigation > div > ul > li.current-menu-ancestor > a,
	.esd-bar .main-navigation > div > ul > li.current_page_ancestor > a,
	.esd-bar .main-navigation > div > ul > li.current-page-ancestor > a {
		background: none;
		box-shadow: inset 3px 0 0 var(--esd-red);
		color: var(--esd-red);
		padding-left: 14px;
	}

	/* apakšizvēlnes bultiņa */
	.esd-sub-toggle {
		align-items: center;
		background: var(--esd-soft);
		border: 0;
		border-radius: 50%;
		color: var(--esd-ink);
		cursor: pointer;
		display: flex;
		height: 40px;
		justify-content: center;
		padding: 0;
		position: absolute;
		right: 0;
		top: 12px;
		width: 40px;
	}

	.esd-sub-toggle::before {
		border-bottom: 2px solid currentColor;
		border-right: 2px solid currentColor;
		content: "";
		height: 8px;
		margin-top: -4px;
		transform: rotate(45deg);
		transition: transform .2s ease;
		width: 8px;
	}

	.esd-sub-toggle:hover,
	.esd-sub-toggle:focus,
	.esd-sub-toggle:active {
		background: var(--esd-soft);
		color: var(--esd-ink); /* Argent button:hover iekrāso melnu – tumšajā skatā nesalasāms */
	}

	.esd-sub-open > .esd-sub-toggle::before {
		margin-top: 4px;
		transform: rotate(-135deg);
	}

	.esd-bar .main-navigation.toggled ul ul {
		background: none;
		border: 0;
		box-shadow: none;
		display: none;
		float: none;
		left: auto;
		margin: -4px 0 12px;
		opacity: 1;
		padding: 0 0 0 14px;
		position: static;
		visibility: visible;
	}

	.esd-bar .main-navigation.toggled li.esd-sub-open > ul {
		display: block;
	}

	.esd-bar .main-navigation ul ul a {
		color: var(--esd-muted);
		display: block;
		font-size: 1.6rem;
		font-weight: 500;
		padding: 10px 0;
		width: auto;
	}

	.esd-bar .main-navigation ul ul .current-menu-item > a {
		color: var(--esd-red);
	}

	.esd-bar .main-navigation div > ul > li > ul::before {
		display: none;
	}

	/* "Kļūt par biedru" – poga paneļa apakšā */
	.esd-bar .main-navigation > div > ul > li.esd-nav-cta {
		border: 0;
		margin-top: auto;
		padding-top: 24px;
	}

	.esd-bar .main-navigation > div > ul > li.esd-nav-cta > a {
		background: var(--esd-red);
		border-radius: 999px;
		box-shadow: none;
		color: #fff;
		font-size: 1.7rem;
		padding: 15px 20px;
		text-align: center;
	}
}

/* vecā sticky spraudņa ietinums vairs nav vajadzīgs */
.sticky-wrapper {
	height: auto !important;
	margin: 0 !important;
}

/* ==========================================================================
   Foto josla (galvene)
   ========================================================================== */
.site-branding {
	box-shadow: none;
	height: clamp(140px, 22vw, 260px);
	padding: 0 !important;
}

/* galvenes bildes ir 2000×380 – augstāka josla tās stipri palielinātu (izplūst) */
.site-branding.esd-hero-home {
	align-items: center;
	display: flex;
	height: clamp(240px, 30vw, 440px);
	justify-content: center;
	padding: 0 var(--esd-gutter) !important;
}

.esd-hero-home::before {
	background: linear-gradient(180deg, rgba(0, 0, 0, .1) 0%, rgba(0, 0, 0, .05) 40%, rgba(0, 0, 0, .45) 100%);
	content: "";
	inset: 0;
	position: absolute;
}

.site-title {
	margin: 0 !important;
	position: relative;
	width: min(620px, 84vw);
}

.site-title .logo {
	display: block;
	filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .45));
	height: auto;
	width: 100%;
}

.site-description {
	display: none;
}

/* ==========================================================================
   Sadaļas virsraksts + ierakstu režģis
   ========================================================================== */
.blog .site-main,
.archive:not(.post-type-archive) .site-main,
.search .site-main {
	display: grid;
	gap: clamp(32px, 4vw, 48px) clamp(20px, 3vw, 32px);
	grid-template-columns: 1fr;
	margin: clamp(32px, 6vw, 72px) auto;
	max-width: var(--esd-wide);
	padding: 0 var(--esd-gutter);
}

@media screen and (min-width: 640px) {
	.blog .site-main,
	.archive:not(.post-type-archive) .site-main,
	.search .site-main {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media screen and (min-width: 1024px) {
	.blog .site-main,
	.archive:not(.post-type-archive) .site-main,
	.search .site-main {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* Jetpack infinite scroll ieliek ierakstus .infinite-wrap iekšā – lai tie paliek režģī */
.site-main .infinite-wrap {
	display: contents;
}

.site-main > .page-header,
.site-main > .posts-navigation,
.site-main > .navigation,
.site-main > #infinite-handle,
.site-main > .infinite-loader,
.site-main > .no-results {
	grid-column: 1 / -1;
	margin: 0;
	max-width: none;
	padding: 0;
	width: 100%;
}

/* sarakstu virsraksts: pa kreisi, ar līniju */
.site-main > .page-header {
	border-bottom: 1px solid var(--esd-line);
	margin-bottom: -8px;
	padding-bottom: 14px;
}

.site-main > .page-header .page-title {
	color: var(--esd-ink);
	font-size: clamp(2.2rem, 3vw, 2.8rem);
	font-style: normal;
	font-weight: 700;
	letter-spacing: -.01em;
	line-height: 1.2;
	margin: 0;
	text-align: left;
}

/* kartīte: bez rāmja, attēls ar noapaļotiem stūriem, teksts zem tā */
.blog .hentry.esd-card,
.archive .hentry.esd-card,
.search .hentry.esd-card {
	background: transparent;
	display: flex;
	flex-direction: column;
	margin: 0;
	position: relative;
	width: auto;
}

.esd-card .post-thumbnail {
	aspect-ratio: 3 / 2;
	background: var(--esd-soft);
	border-radius: var(--esd-radius);
	display: block;
	float: none;
	margin: 0 0 16px;
	overflow: hidden;
	width: auto;
}

.esd-card .post-thumbnail img {
	display: block;
	height: 100%;
	object-fit: cover;
	transition: transform .6s cubic-bezier(.2, .7, .2, 1);
	width: 100%;
}

.esd-card:hover .post-thumbnail img {
	transform: scale(1.035);
}

.esd-card-body {
	display: flex;
	flex-direction: column;
}

.esd-card .entry-header {
	display: flex;
	flex-direction: column-reverse;
	gap: 6px;
	margin: 0 0 8px;
}

.esd-card .entry-title {
	font-size: 2rem;
	font-weight: 700;
	letter-spacing: -.01em;
	line-height: 1.3;
	margin: 0;
	white-space: normal;
}

.esd-card .entry-title a {
	border: 0;
	color: var(--esd-ink);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	transition: color .15s ease;
}

.esd-card:hover .entry-title a {
	color: var(--esd-red);
}

/* visa kartīte ir klikšķināma caur virsraksta saiti */
.esd-card .entry-title a::after {
	content: "";
	inset: 0;
	position: absolute;
	z-index: 1;
}

.esd-card .entry-meta {
	color: var(--esd-muted);
	font-size: 1.2rem;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.esd-card .entry-content {
	color: var(--esd-muted);
	font-size: 1.5rem;
	line-height: 1.6;
	margin: 0;
	width: auto;
}

.esd-card .entry-content p {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	margin: 0;
	overflow: hidden;
}

.esd-card .entry-content .read-more {
	display: none;
}

/* ==========================================================================
   Pogas: "Rādīt vairāk" / vecāki ieraksti
   ========================================================================== */
.posts-navigation {
	text-align: center;
}

#infinite-handle {
	margin-top: 8px;
	text-align: center;
}

.posts-navigation .nav-links a,
#infinite-handle span {
	align-items: center;
	background: var(--esd-solid);
	border: 0;
	border-radius: 999px;
	color: var(--esd-on-solid);
	display: inline-flex;
	font-family: var(--esd-font);
	font-size: 1.5rem;
	font-weight: 600;
	height: auto;
	justify-content: center;
	letter-spacing: 0;
	line-height: 1.2;
	padding: 14px 28px;
	text-transform: none;
	transition: background .15s ease, transform .15s ease;
	width: auto;
}

#infinite-handle span button,
#infinite-handle span button:hover,
#infinite-handle span button:focus {
	background: transparent;
	border: 0;
	color: inherit;
	font: inherit;
	letter-spacing: 0;
	line-height: inherit;
	margin: 0;
	padding: 0;
	text-transform: none;
}

.posts-navigation .nav-links a:hover,
#infinite-handle span:hover {
	background: var(--esd-red);
	color: #fff;
}

/* ==========================================================================
   Raksts un lapas
   ========================================================================== */
.single-post .hentry,
.page:not(.home) .hentry,
.page-content,
.page-header,
.single-post .comments-area,
.single-post .post-navigation,
.comments-area {
	margin-left: auto;
	margin-right: auto;
	max-width: var(--esd-text-col);
	padding: 0 var(--esd-gutter);
	width: auto;
}

.hentry .page-content,
.hentry .page-header {
	padding: 0;
}

/* baltajā lapā saturs pilnā platumā – citādi tas ir nobīdīts pret virsrakstu */
.esd-sheet .page-content {
	margin-left: 0;
	margin-right: 0;
	max-width: none;
}

@media screen and (max-width: 767px) {
	.single-post .hentry,
	.page:not(.home) .hentry,
	.comments-area,
	.site-main .post-navigation {
		margin-left: auto;
		margin-right: auto;
	}
}

.single-post .site-main,
.page:not(.home) .site-main {
	margin: clamp(32px, 6vw, 64px) 0;
}

.entry-title.in-post,
.hentry .page-title {
	color: var(--esd-ink);
	font-size: clamp(3rem, 5vw, 4.4rem);
	font-style: normal;
	font-weight: 700;
	letter-spacing: -.02em;
	line-height: 1.15;
	margin: 0 0 clamp(16px, 3vw, 24px);
	text-align: left;
	text-wrap: balance;
	white-space: normal;
}

.hentry .page-header {
	margin-bottom: clamp(20px, 4vw, 36px);
}

/* meta rinda zem virsraksta */
.single:not(.single-jetpack-portfolio) .entry-meta {
	color: var(--esd-muted);
	display: flex;
	flex-wrap: wrap;
	float: none;
	font-size: 1.3rem;
	gap: 4px 18px;
	margin: 0 0 28px;
	padding: 0;
	text-align: left;
	text-transform: none;
	letter-spacing: 0;
	width: auto;
}

.single .entry-meta .posted-on,
.single .entry-meta .byline,
.single:not(.single-jetpack-portfolio) .cat-links,
.single:not(.single-jetpack-portfolio) .tags-links,
.single .post-edit-link {
	margin-top: 0;
}

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

.single-post .entry-content,
.page .entry-content,
.page-content {
	color: var(--esd-text);
	float: none;
	font-size: 1.75rem;
	line-height: 1.75;
	width: auto;
}

/* teksta saites: viena smalka sarkana pasvītra (Argent melno border-bottom pie hover noņemam) */
.entry-content a:not([class]),
.page-content a:not([class]),
.esd-fb-source a {
	border-bottom: 0 !important;
	color: var(--esd-ink);
	text-decoration: underline;
	text-decoration-color: rgba(200, 20, 43, .45);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color .15s ease, text-decoration-color .15s ease;
}

.entry-content a:not([class]):hover,
.page-content a:not([class]):hover,
.esd-fb-source a:hover {
	color: var(--esd-red);
	text-decoration-color: currentColor;
}

/* saites ap bildēm – bez pasvītras (tikai vienkāršās saites; kartītēm ar klasi ir savs rāmis) */
.entry-content a:not([class]):has(> img),
.page-content a:not([class]):has(> img) {
	border-bottom: 0 !important;
	text-decoration: none;
}

/* Argent melnā apakšlīnija citur (kājene, logrīki) */
.widget-area a,
.widget-area a:hover,
.page-content a:hover,
.entry-content a:hover {
	border-bottom-color: transparent;
}

.single-post .hentry > .wp-post-image {
	display: block;
	margin: 0 0 24px;
	width: 100%;
}

.single-post .hentry > .wp-post-image,
.entry-content .wp-block-image img,
.page-content .wp-block-image img {
	border-radius: var(--esd-radius);
}

/* galerijas un platie bloki baltajā lapā sniedzas līdz lapas malām */
.esd-sheet .entry-content .wp-block-gallery,
.esd-sheet .entry-content .alignwide,
.esd-sheet .entry-content .esd-carousel {
	margin-left: calc(-1 * var(--esd-sheet-pad));
	margin-right: calc(-1 * var(--esd-sheet-pad));
	max-width: none;
	width: auto;
}

.entry-content .wp-block-gallery {
	gap: 10px;
}

.entry-content .wp-block-gallery .wp-block-image img {
	border-radius: 6px;
}

/* dalīšanās pogas un "patīk" – mazāk uzkrītošas */
.sharedaddy .sd-title {
	color: var(--esd-muted);
	font-family: var(--esd-font);
	font-size: 1.3rem;
	font-weight: 600;
}

/* ==========================================================================
   "Kluba biedri" – biedru kartīšu režģis (bez foto – iniciāļi)
   ========================================================================== */
/* flex, nevis grid – nepilnā pēdējā rinda ir centrēta. Kolonnas: telefons 2, planšete 3, dators 4 */
.esd-members {
	--esd-cols: 2;
	--esd-gap: 10px;
	display: flex;
	flex-wrap: wrap;
	gap: var(--esd-gap);
	justify-content: center;
	margin: 8px 0 36px;
}

.esd-members > .esd-member {
	flex: 0 0 calc((100% - (var(--esd-cols) - 1) * var(--esd-gap)) / var(--esd-cols));
	min-width: 0;
}

@media screen and (min-width: 600px) {
	.esd-members {
		--esd-cols: 3;
		--esd-gap: 14px;
	}
}

@media screen and (min-width: 1000px) {
	.esd-members {
		--esd-cols: 4;
	}
}

.esd-sheet .page-content .esd-member {
	align-items: center;
	border: 1px solid var(--esd-line);
	border-radius: 12px;
	color: var(--esd-ink);
	display: flex;
	flex-direction: column;
	padding: 16px 12px 16px;
	text-align: center;
	text-decoration: none;
	transition: border-color .15s ease, box-shadow .2s ease, transform .2s ease;
}

.esd-sheet .page-content a.esd-member:hover {
	border-color: var(--esd-ink);
	box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
	color: var(--esd-ink);
	transform: translateY(-2px);
}

.esd-member img,
.esd-member-initials {
	aspect-ratio: 1;
	border-radius: 50% !important;
	margin-bottom: 14px;
	object-fit: cover;
	width: 92%;
}

.esd-member-initials {
	align-items: center;
	background: linear-gradient(135deg, #2b3033, #4a5156);
	color: #fff;
	display: flex;
	font-size: clamp(3.2rem, 5vw, 4.4rem);
	font-weight: 700;
	justify-content: center;
	letter-spacing: .02em;
}

.esd-member-name {
	font-size: 1.6rem;
	font-weight: 700;
	line-height: 1.3;
}

.esd-member-role {
	color: var(--esd-muted);
	font-size: 1.3rem;
	line-height: 1.4;
	margin-top: 4px;
}

.esd-member-link {
	color: var(--esd-red);
	font-size: 1.3rem;
	font-weight: 600;
	margin-top: auto; /* vienmēr kartītes apakšā, vienā līmenī visās kartītēs */
	padding-top: 10px;
}

/* ==========================================================================
   Kājene: kompakta – pa kreisi logo + apraksts + sociālie tīkli, pa labi kontakti
   ========================================================================== */
.footer-widget-area.esd-footer {
	background: var(--esd-surface);
	border-top: 1px solid var(--esd-line);
	padding: clamp(32px, 5vw, 48px) var(--esd-gutter) clamp(24px, 4vw, 32px);
}

.esd-footer .widget-wrapper {
	display: grid;
	gap: 28px clamp(32px, 6vw, 80px);
	grid-template-columns: 1fr;
	margin: 0 auto;
	max-width: var(--esd-wide);
	width: auto;
}

@media screen and (min-width: 768px) {
	.esd-footer .widget-wrapper {
		grid-template-columns: minmax(220px, 1fr) 2fr;
	}
}

/* Argent clearfix pseidoelementi režģī kļūtu par tukšām šūnām */
.esd-footer .widget-wrapper::before,
.esd-footer .widget-wrapper::after {
	display: none;
}

.esd-footer .widget-area {
	float: none !important;
	margin: 0 !important;
	width: auto !important;
}

.esd-footer .widget {
	margin: 0;
	overflow: visible; /* Argent .widget{overflow:hidden} apgrieza palielināto ikonu pie hover */
}

.esd-footer .widget:empty,
.esd-footer .widget:has(> p:only-child:empty) {
	display: none;
}

.esd-footer-logo {
	border: 0;
	display: inline-block;
	line-height: 0;
}

.esd-footer-logo img {
	height: 36px;
	width: auto;
}

.esd-footer-tagline {
	color: var(--esd-muted);
	font-size: 1.4rem;
	line-height: 1.6;
	margin: 12px 0 16px;
	max-width: 32ch;
}

/* sociālie tīkli – virsraksts nav vajadzīgs, ikonas runā pašas */
.esd-footer #widget-area-3 .widget-title {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	height: 1px;
	overflow: hidden;
	position: absolute;
	width: 1px;
}

.esd-footer .wp-block-social-links {
	gap: 8px;
	justify-content: flex-start !important;
	margin: 0;
}

.esd-footer .wp-block-social-link {
	background: var(--esd-soft) !important;
	border-radius: 50%;
	color: var(--esd-ink) !important;
}

.esd-footer .wp-block-social-link a {
	color: var(--esd-ink) !important;
	padding: 9px !important;
}

.esd-footer .wp-block-social-link:hover {
	background: var(--esd-solid) !important;
}

.esd-footer .wp-block-social-link:hover a {
	color: var(--esd-on-solid) !important;
}

.esd-footer .wp-block-social-link svg {
	height: 18px;
	width: 18px;
}

/* kontakti: virsraksts pāri visam, adrese un tālruņi blakus */
.esd-footer #widget-area-2 {
	align-content: start;
	display: grid;
	gap: 6px 40px;
	grid-template-columns: 1fr;
}

@media screen and (min-width: 560px) {
	.esd-footer #widget-area-2 {
		grid-template-columns: auto auto;
		justify-content: start;
	}
	.esd-footer #widget-area-2 > .widget:has(.wp-block-heading) {
		grid-column: 1 / -1;
	}
}

.esd-footer,
.esd-footer .widget-area,
.esd-footer .widget-area a {
	color: var(--esd-text);
	font-size: 1.45rem;
	line-height: 1.65;
	text-align: left;
}

.esd-footer .widget-area p {
	margin: 0;
}

.esd-footer .widget-area a:hover {
	color: var(--esd-red);
}

.esd-footer .wp-block-heading {
	color: var(--esd-ink);
	font-size: 1.25rem !important;
	font-weight: 700;
	letter-spacing: .08em;
	margin: 0 0 6px;
	text-align: left !important;
	text-transform: uppercase;
}

.site-footer {
	background: var(--esd-surface);
	border-top: 1px solid var(--esd-line);
	color: var(--esd-muted);
	padding: 16px var(--esd-gutter);
}

.esd-footer-info {
	display: flex;
	flex-wrap: wrap;
	font-size: 1.3rem;
	gap: 6px 24px;
	justify-content: space-between;
	margin: 0 auto;
	max-width: var(--esd-wide);
}

.esd-footer-info a {
	color: var(--esd-muted);
}

.esd-footer-info a:hover {
	color: var(--esd-red);
}

/* "uz augšu" poga (Smooth Scroll Up spraudnis) – apaļa poga ar bultiņu; spraudņa ikonu nerādām */
#scrollUp {
	background: var(--esd-solid);
	border-radius: 50%;
	bottom: calc(20px + env(safe-area-inset-bottom, 0px)) !important;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
	color: var(--esd-on-solid);
	height: 46px;
	line-height: 1;
	right: calc(20px + env(safe-area-inset-right, 0px)) !important;
	transition: background .15s ease, transform .15s ease, opacity .2s ease;
	width: 46px;
}

#scrollUp > * {
	display: none;
}

/* bultiņa – centrēta absolūti (display paliek spraudņa ziņā: tas pogu slēpj lapas augšā) */
#scrollUp::before {
	border-left: 2px solid currentColor;
	border-top: 2px solid currentColor;
	content: "";
	height: 11px;
	left: 50%;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -25%) rotate(45deg);
	width: 11px;
}

#scrollUp:hover,
#scrollUp:focus-visible {
	background: var(--esd-red);
	color: #fff;
	transform: translateY(-2px);
}

/* ==========================================================================
   Klasiskās [gallery] galerijas – vienmērīgs kvadrātu režģis
   ========================================================================== */
.gallery {
	display: grid;
	gap: 8px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 24px 0;
}

.gallery-columns-1 { grid-template-columns: 1fr; }
.gallery-columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery-columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gallery-columns-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.gallery-columns-6,
.gallery-columns-7,
.gallery-columns-8,
.gallery-columns-9 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

@media screen and (max-width: 600px) {
	.gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.gallery-columns-1 {
		grid-template-columns: 1fr;
	}
}

.gallery br {
	display: none;
}

.gallery .gallery-item {
	float: none;
	margin: 0;
	max-width: none;
	text-align: left;
	width: auto;
}

.gallery .gallery-icon a {
	border: 0;
	display: block;
}

.gallery .gallery-icon img {
	aspect-ratio: 1;
	border: 0;
	border-radius: 6px;
	display: block;
	height: auto;
	object-fit: cover;
	transition: opacity .2s ease;
	width: 100%;
}

.gallery .gallery-icon a:hover img {
	opacity: .88;
}

.gallery .gallery-caption {
	color: var(--esd-muted);
	font-size: 1.3rem;
	margin-top: 4px;
}

/* ==========================================================================
   Rakstu galerija kā foto lente (js/gallery-carousel.js, 4+ attēli)
   ========================================================================== */
.esd-carousel {
	margin: 28px 0;
	position: relative;
}

/* karuselis – sk. "galerijas baltajā lapā" (līdz lapas malām) */

.entry-content .esd-carousel .esd-carousel-track.wp-block-gallery {
	display: flex !important;
	flex-wrap: nowrap !important;
	gap: 10px !important;
	margin: 0 !important;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	padding: 0;
	position: relative;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.esd-carousel-track::-webkit-scrollbar {
	display: none;
}

.esd-carousel-track:focus-visible {
	outline: 2px solid var(--esd-red);
	outline-offset: 4px;
}

.entry-content .esd-carousel-track > figure.wp-block-image {
	flex: 0 0 auto !important;
	height: clamp(240px, 62vh, 600px);
	margin: 0 !important;
	scroll-snap-align: center;
	width: auto !important;
}

.entry-content .esd-carousel-track > figure.wp-block-image img {
	border-radius: 6px;
	cursor: zoom-in;
	display: block;
	height: 100% !important;
	max-width: min(86vw, 1000px);
	object-fit: cover;
	width: auto !important;
}

@media screen and (max-width: 600px) {
	.entry-content .esd-carousel-track > figure.wp-block-image {
		height: min(62vh, 72vw);
	}
}

.esd-carousel-btn {
	align-items: center;
	background: var(--esd-bar-bg);
	border: 0;
	border-radius: 50%;
	box-shadow: 0 4px 16px rgba(0, 0, 0, .18);
	color: var(--esd-ink);
	cursor: pointer;
	display: flex;
	font-size: 28px;
	height: 46px;
	justify-content: center;
	line-height: 1;
	padding: 0 0 3px;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	transition: opacity .15s ease, background .15s ease;
	width: 46px;
	z-index: 2;
}

.esd-carousel-btn:hover {
	background: #fff;
}

.esd-carousel-btn:disabled {
	opacity: 0;
	pointer-events: none;
}

.esd-carousel-prev {
	left: 12px;
}

.esd-carousel-next {
	right: 12px;
}

.esd-carousel-count {
	background: rgba(0, 0, 0, .62);
	border-radius: 999px;
	bottom: 12px;
	color: #fff;
	font-size: 1.3rem;
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	padding: 4px 10px;
	pointer-events: none;
	position: absolute;
	right: 12px;
	z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
	.entry-content .esd-carousel .esd-carousel-track.wp-block-gallery {
		scroll-behavior: auto;
	}
}

/* ==========================================================================
   Raksta lapa: foto josla ar nosaukumu, saturs baltā lapā, tēmturi, navigācija
   ========================================================================== */
/* galvenā bilde zem nosaukuma – visa bilde, neapgriezta (afišas!), uz neitrāla fona */
.esd-sheet > .esd-post-image {
	background: var(--esd-soft);
	border-radius: 0;
	display: block;
	height: auto;
	margin: 0 calc(-1 * var(--esd-sheet-pad)) 28px;
	max-height: 80vh;
	max-width: none;
	object-fit: contain;
	width: calc(100% + 2 * var(--esd-sheet-pad));
}

.single-post .esd-sheet .entry-content {
	font-size: 1.75rem;
	line-height: 1.75;
}

.single-post .esd-sheet .entry-content > :first-child {
	margin-top: 0;
}

.esd-post-footer {
	border-top: 1px solid var(--esd-line);
	margin-top: 32px;
	padding-top: 20px;
}

.esd-post-footer:not(:has(*)) {
	display: none;
}

.esd-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.esd-tags a {
	background: var(--esd-soft);
	border-radius: 999px;
	color: var(--esd-text);
	font-size: 1.3rem;
	font-weight: 500;
	padding: .4em .9em;
	text-decoration: none;
}

.esd-tags a::before {
	color: var(--esd-muted);
	content: "#";
	margin-right: 1px;
}

.esd-tags a:hover {
	background: var(--esd-solid);
	color: var(--esd-on-solid);
}

.esd-tags a:hover::before {
	color: var(--esd-on-solid);
	opacity: .6;
}

/* iepriekšējais / nākamais raksts */
.esd-post-nav {
	display: grid;
	gap: 16px;
	grid-template-columns: 1fr;
	margin: clamp(24px, 4vw, 40px) auto 0;
	max-width: var(--esd-sheet-w);
	padding: 0 12px;
}

@media screen and (min-width: 700px) {
	.esd-post-nav {
		grid-template-columns: 1fr 1fr;
		padding: 0;
	}
}

.esd-post-nav a {
	align-items: center;
	background: var(--esd-surface);
	border-radius: 12px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .06);
	color: var(--esd-ink);
	display: flex;
	gap: 14px;
	min-height: 96px;
	overflow: hidden;
	padding: 12px;
	text-decoration: none;
	transition: box-shadow .2s ease, transform .2s ease;
}

.esd-post-nav a:hover {
	box-shadow: 0 2px 4px rgba(0, 0, 0, .06), 0 14px 32px rgba(0, 0, 0, .12);
	transform: translateY(-2px);
}

.esd-post-nav-next {
	flex-direction: row-reverse;
	text-align: right;
}

.esd-post-nav img {
	aspect-ratio: 1;
	border-radius: 8px;
	flex: none;
	height: 72px;
	object-fit: cover;
	width: 72px;
}

.esd-post-nav-text {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.esd-post-nav-label {
	color: var(--esd-muted);
	font-size: 1.2rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.esd-post-nav-prev .esd-post-nav-label::before {
	content: "← ";
}

.esd-post-nav-next .esd-post-nav-label::after {
	content: " →";
}

.esd-post-nav-title {
	display: -webkit-box;
	font-size: 1.6rem;
	font-weight: 600;
	line-height: 1.35;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

/* Jetpack "Saistītie raksti" – kartīšu režģis */
.esd-sheet #jp-relatedposts {
	border-top: 1px solid var(--esd-line);
	margin: 32px 0 0;
	padding-top: 24px;
}

.esd-sheet #jp-relatedposts h3.jp-relatedposts-headline {
	font-family: var(--esd-font);
	font-size: 1.3rem;
	font-weight: 700;
	letter-spacing: .08em;
	margin-bottom: 14px;
	text-transform: uppercase;
}

.esd-sheet #jp-relatedposts h3.jp-relatedposts-headline em::before {
	display: none;
}

.esd-sheet #jp-relatedposts .jp-relatedposts-items {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media screen and (max-width: 600px) {
	.esd-sheet #jp-relatedposts .jp-relatedposts-items {
		grid-template-columns: 1fr;
	}
}

.esd-sheet #jp-relatedposts .jp-relatedposts-items .jp-relatedposts-post {
	float: none;
	margin: 0;
	opacity: 1;
	padding: 0;
	width: auto;
}

.esd-sheet #jp-relatedposts .jp-relatedposts-post-img {
	aspect-ratio: 3 / 2;
	border-radius: 8px;
	height: auto;
	margin-bottom: 8px;
	object-fit: cover;
	width: 100%;
}

.esd-sheet #jp-relatedposts .jp-relatedposts-post-title,
.esd-sheet #jp-relatedposts .jp-relatedposts-post-title a {
	color: var(--esd-ink);
	font-family: var(--esd-font);
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
}

.esd-sheet #jp-relatedposts .jp-relatedposts-post-date,
.esd-sheet #jp-relatedposts .jp-relatedposts-post-context {
	color: var(--esd-muted);
	font-size: 1.25rem;
	opacity: 1;
}

.esd-sheet #jp-relatedposts .jp-relatedposts-post-excerpt {
	display: none;
}

/* dalīšanās pogas raksta beigās */
.esd-sheet .sharedaddy {
	margin-top: 28px;
}

/* ==========================================================================
   Sadaļu lapas: nosaukums foto joslā, saturs baltā "lapā", kas to pārklāj
   ========================================================================== */
:root {
	--esd-sheet-overlap: clamp(32px, 6vw, 72px);
	--esd-sheet-w: 880px;
	--esd-sheet-pad: clamp(24px, 5vw, 56px);
}

.site-branding.esd-hero-page {
	/* dekoratīva josla – nosaukums ir baltajā lapā */
	height: clamp(150px, 20vw, 280px);
	padding: 0 !important;
}

.esd-hero-page::before {
	background: linear-gradient(180deg, rgba(0, 0, 0, .08) 0%, rgba(0, 0, 0, .22) 100%);
	content: "";
	inset: 0;
	position: absolute;
}

.page:not(.home) .site-main,
.single-post .site-main {
	margin: 0 0 clamp(40px, 6vw, 80px);
}

.page .hentry.esd-sheet,
.single-post .hentry.esd-sheet {
	background: var(--esd-surface);
	border-radius: 14px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 24px 60px rgba(0, 0, 0, .08);
	margin: calc(-1 * var(--esd-sheet-overlap)) auto 0;
	max-width: var(--esd-sheet-w);
	padding: var(--esd-sheet-pad);
	position: relative;
	z-index: 2;
}

@media screen and (max-width: 920px) {
	.page .hentry.esd-sheet,
	.single-post .hentry.esd-sheet {
		margin-left: 12px;
		margin-right: 12px;
	}
}

/* nosaukums baltās lapas augšā – tumšs teksts uz balta, vienmēr salasāms */
.esd-sheet-header {
	margin: 0 0 clamp(20px, 3vw, 28px);
}

.esd-sheet-eyebrow {
	color: var(--esd-red);
	display: inline-block;
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: .1em;
	margin-bottom: 10px;
	text-decoration: none;
	text-transform: uppercase;
}

.esd-sheet-eyebrow:hover {
	color: var(--esd-ink);
}

/* apakšlapās – atpakaļ uz vecāko lapu: bultiņa (SVG maska – vienmēr centrā ar tekstu) */
.esd-sheet-back {
	align-items: center;
	display: inline-flex;
	gap: 8px;
}

.esd-sheet-back::before {
	background: currentColor;
	content: "";
	flex: none;
	height: 16px;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5M11 6l-6 6 6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5M11 6l-6 6 6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform .15s ease;
	width: 16px;
}

.esd-sheet-back:hover::before {
	transform: translateX(-3px);
}

.esd-sheet .esd-sheet-title {
	color: var(--esd-ink);
	font-family: var(--esd-font);
	font-size: clamp(2.8rem, 4.6vw, 4.2rem);
	font-style: normal;
	font-weight: 700;
	letter-spacing: -.02em;
	line-height: 1.15;
	margin: 0;
	text-align: left;
	text-wrap: balance;
}

.esd-sheet-meta {
	color: var(--esd-muted);
	display: flex;
	flex-wrap: wrap;
	font-size: 1.4rem;
	gap: 4px 10px;
	margin: 12px 0 0;
}

/* apakšsadaļu navigācija */
.esd-subnav {
	border-bottom: 1px solid var(--esd-line);
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 clamp(24px, 4vw, 36px);
	padding-bottom: clamp(20px, 3vw, 28px);
}

.esd-subnav a {
	border: 1px solid var(--esd-line);
	border-radius: 999px;
	color: var(--esd-ink);
	font-size: 1.4rem;
	font-weight: 600;
	line-height: 1.3;
	padding: .55em 1.05em;
	text-decoration: none;
	transition: border-color .15s ease, background .15s ease;
}

.esd-subnav a:hover {
	border-color: var(--esd-ink);
	color: var(--esd-ink);
}

.esd-subnav a[aria-current] {
	background: var(--esd-solid);
	border-color: var(--esd-solid);
	color: var(--esd-on-solid);
}

/* satura tipogrāfija lapās */
.esd-sheet .page-content > :first-child {
	margin-top: 0;
}

.esd-sheet .page-content h2,
.esd-sheet .page-content h3,
.esd-sheet .page-content h4 {
	color: var(--esd-ink);
	font-weight: 700;
	letter-spacing: -.01em;
	line-height: 1.25;
	margin: 1.6em 0 .6em;
}

.esd-sheet .page-content h2 {
	font-size: clamp(2.2rem, 3vw, 2.8rem);
}

.esd-sheet .page-content h3 {
	font-size: 2rem;
}

.esd-sheet .page-content p {
	margin: 0 0 1.1em;
}

.esd-sheet .page-content img {
	border-radius: var(--esd-radius);
}

.esd-sheet .page-content > ul {
	list-style: none;
	margin: 0 0 1.4em;
	padding-left: 0;
}

.esd-sheet .page-content > ul > li {
	margin-bottom: .5em;
	padding-left: 22px;
	position: relative;
}

.esd-sheet .page-content > ul > li::before {
	background: var(--esd-red);
	border-radius: 50%;
	content: "";
	height: 7px;
	left: 4px;
	position: absolute;
	top: .72em;
	width: 7px;
}

/* Satura bloku stili lapām (Par mums u.c.): ievads, fakti, kontaktu kartītes, pogas, rekvizīti */
.esd-sheet .esd-about-photo {
	margin: 0 0 24px;
}

.esd-sheet .esd-about-photo img {
	display: block;
	width: 100%;
}

.esd-sheet .esd-about-photo figcaption {
	color: var(--esd-muted);
	font-size: 1.3rem;
	margin-top: 8px;
	text-align: left;
}

.esd-sheet .page-content .esd-lead {
	color: var(--esd-ink);
	font-size: clamp(1.8rem, 2.4vw, 2.1rem);
	line-height: 1.6;
	margin-bottom: 28px;
	text-align: left !important;
}

.esd-sheet .esd-facts {
	border-bottom: 1px solid var(--esd-line);
	border-top: 1px solid var(--esd-line);
	display: grid !important;
	gap: 16px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 0 0 40px;
	padding: 20px 0;
}

.esd-sheet .esd-facts > .wp-block-column {
	margin: 0 !important;
}

.esd-sheet .esd-facts p {
	color: var(--esd-muted);
	font-size: 1.35rem;
	line-height: 1.4;
	margin: 0;
}

.esd-sheet .esd-facts strong {
	color: var(--esd-ink);
	display: block;
	font-size: clamp(2.4rem, 4vw, 3.2rem);
	font-weight: 700;
	letter-spacing: -.02em;
	line-height: 1.1;
	margin-bottom: 4px;
}

.esd-sheet .esd-contacts {
	display: grid !important;
	gap: 12px;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	margin: 0 0 24px;
}

.esd-sheet .esd-contacts > .wp-block-column {
	border: 1px solid var(--esd-line);
	border-radius: 10px;
	margin: 0 !important;
	padding: 14px 16px;
	transition: border-color .15s ease;
}

.esd-sheet .esd-contacts > .wp-block-column:hover {
	border-color: var(--esd-ink);
}

.esd-sheet .esd-contacts p {
	color: var(--esd-muted);
	display: flex;
	flex-direction: column;
	font-size: 1.2rem;
	font-weight: 700;
	gap: 4px;
	letter-spacing: .08em;
	line-height: 1.4;
	margin: 0;
	text-transform: uppercase;
}

.esd-sheet .esd-contacts p a {
	color: var(--esd-ink);
	font-size: 1.6rem;
	font-weight: 600;
	letter-spacing: 0;
	overflow-wrap: anywhere;
	text-decoration: none;
	text-transform: none;
}

.esd-sheet .esd-contacts p a:hover {
	color: var(--esd-red);
}

.esd-sheet .esd-contacts p span {
	color: var(--esd-muted);
	font-size: 1.4rem;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
}

.esd-sheet .esd-actions {
	gap: 10px;
	margin: 0 0 40px;
}

.esd-sheet .esd-actions .wp-block-button__link {
	background: var(--esd-solid);
	border: 2px solid var(--esd-ink);
	border-radius: 999px;
	color: var(--esd-on-solid);
	font-size: 1.5rem;
	font-weight: 600;
	padding: 12px 24px;
	text-decoration: none;
	transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.esd-sheet .esd-actions .wp-block-button__link:hover {
	background: var(--esd-red);
	border-color: var(--esd-red);
	color: #fff;
}

.esd-sheet .esd-actions .is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--esd-ink);
}

.esd-sheet .esd-actions .is-style-outline .wp-block-button__link:hover {
	background: var(--esd-solid);
	border-color: var(--esd-solid);
	color: var(--esd-on-solid);
}

.esd-sheet .esd-reqs {
	margin: 0;
}

.esd-sheet .esd-reqs table {
	border-collapse: collapse;
	font-size: 1.5rem;
	width: 100%;
}

.esd-sheet .esd-reqs td {
	border: 0;
	border-bottom: 1px solid var(--esd-line);
	padding: 10px 0;
	vertical-align: top;
}

.esd-sheet .esd-reqs tr:last-child td {
	border-bottom: 0;
}

.esd-sheet .esd-reqs td:first-child {
	color: var(--esd-muted);
	padding-right: 16px;
	white-space: nowrap;
	width: 32%;
}

.esd-sheet .esd-reqs td:last-child {
	color: var(--esd-ink);
	font-variant-numeric: tabular-nums;
	overflow-wrap: anywhere;
}

@media screen and (max-width: 600px) {
	.esd-sheet .esd-facts {
		grid-template-columns: 1fr 1fr;
	}
	.esd-sheet .esd-facts > .wp-block-column:last-child {
		grid-column: 1 / -1;
	}
}

/* "Kļūt par biedru": ieguvumu kartītes un pieteikuma forma (Kali Forms) */
.esd-sheet .page-content .esd-muted {
	color: var(--esd-muted);
	font-size: 1.5rem;
}

.esd-sheet .esd-benefits {
	display: grid !important;
	gap: 12px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 0 0 36px;
}

@media screen and (max-width: 700px) {
	.esd-sheet .esd-benefits {
		grid-template-columns: 1fr;
	}
}

.esd-sheet .esd-benefits > .wp-block-column {
	background: var(--esd-soft);
	border-radius: 10px;
	margin: 0 !important;
	padding: 16px 18px;
}

.esd-sheet .esd-benefits p {
	color: var(--esd-text);
	font-size: 1.45rem;
	line-height: 1.55;
	margin: 0;
}

.esd-sheet .esd-benefits strong {
	color: var(--esd-ink);
	display: block;
	font-size: 1.6rem;
	margin-bottom: 4px;
}

.esd-sheet .kaliforms-form-container {
	margin-top: 8px;
}

.esd-sheet .kaliforms-form-container #greetings:empty,
.esd-sheet .kaliforms-form-container .kali-form-field-row:has(#greetings:empty) {
	display: none;
}

.esd-sheet .kaliforms-form-container .kali-form-field-row {
	margin-bottom: 16px;
}

.esd-sheet .kaliforms-form-container label {
	color: var(--esd-ink);
	font-size: 1.4rem;
	font-weight: 600;
	margin-bottom: 6px;
}

.esd-sheet .kaliforms-form-container .kali-required-mark {
	color: var(--esd-red);
}

.esd-sheet .kaliforms-form-container input[type="text"],
.esd-sheet .kaliforms-form-container input[type="tel"],
.esd-sheet .kaliforms-form-container input[type="email"],
.esd-sheet .kaliforms-form-container textarea {
	background: var(--esd-surface);
	border: 1px solid var(--esd-field-border) !important;
	border-radius: 8px !important;
	box-shadow: none;
	color: var(--esd-ink);
	font-family: var(--esd-font);
	font-size: 1.6rem;
	padding: 12px 14px !important;
	transition: border-color .15s ease, box-shadow .15s ease;
	width: 100%;
}

.esd-sheet .kaliforms-form-container input:focus,
.esd-sheet .kaliforms-form-container textarea:focus {
	border-color: var(--esd-ink) !important;
	box-shadow: 0 0 0 3px rgba(23, 25, 27, .1);
	outline: none;
}

/* piekrišanas rindiņa: tukšo "*" etiķeti paslēpjam, zvaigznīti pievienojam tekstam */
.esd-sheet .kaliforms-form-container label.checkbox-label:not(:has(input)) {
	display: none !important;
}

.esd-sheet .kaliforms-form-container .checkbox-label {
	align-items: center;
	display: flex;
	float: none;
	font-size: 1.45rem;
	font-weight: 400;
	gap: 10px;
}

.esd-sheet .kaliforms-form-container .checkbox-label::after {
	color: var(--esd-red);
	content: "*";
	margin-left: -6px;
}

.esd-sheet .kaliforms-form-container input[type="checkbox"] {
	accent-color: var(--esd-ink);
	height: 18px;
	margin: 0;
	width: 18px;
}

.esd-sheet .kaliforms-form-container input[type="submit"] {
	background: var(--esd-solid) !important;
	border: 0 !important;
	border-radius: 999px !important;
	color: var(--esd-on-solid) !important;
	cursor: pointer;
	font-family: var(--esd-font);
	font-size: 1.6rem;
	font-weight: 600;
	height: auto !important;
	letter-spacing: 0;
	line-height: 1.2 !important;
	padding: 14px 32px !important;
	text-transform: none;
	transition: background .15s ease;
	width: auto;
}

.esd-sheet .kaliforms-form-container input[type="submit"]:hover {
	background: var(--esd-red) !important;
}

/* "Padarīts" – CV kā laika līnija */
.page-id-120 .esd-sheet .page-content > ul {
	border-left: 2px solid var(--esd-soft);
	margin-left: 6px;
}

.page-id-120 .esd-sheet .page-content > ul > li {
	margin-bottom: .9em;
	padding-left: 24px;
}

.page-id-120 .esd-sheet .page-content > ul > li::before {
	background: var(--esd-surface);
	border: 2px solid var(--esd-red);
	height: 10px;
	left: -6px;
	top: .55em;
	width: 10px;
}

/* "PDF žurnāls" – numuri kā kartīšu režģis (rindā var būt vairākas saites, tāpēc kartīte ir li) */
.page-id-149 .esd-sheet .page-content > ul {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.page-id-149 .esd-sheet .page-content > ul > li {
	align-items: center;
	border: 1px solid var(--esd-line);
	border-radius: 10px;
	display: flex;
	flex-wrap: wrap;
	font-size: 1.4rem;
	font-weight: 600;
	gap: 4px 8px;
	line-height: 1.3;
	margin: 0;
	padding: 14px 16px;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.page-id-149 .esd-sheet .page-content > ul > li::before {
	background: var(--esd-red);
	border-radius: 4px;
	color: #fff;
	content: "PDF";
	flex: none;
	font-size: 1.1rem;
	font-weight: 800;
	height: auto;
	letter-spacing: .04em;
	padding: 3px 6px;
	position: static;
	width: auto;
}

.page-id-149 .esd-sheet .page-content > ul > li a {
	color: var(--esd-ink);
	text-decoration: none;
}

.page-id-149 .esd-sheet .page-content > ul > li:hover {
	border-color: var(--esd-ink);
	box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
}

/* telefonā teksts, kas saturā izlīdzināts abās malās, rada lielas atstarpes */
@media screen and (max-width: 600px) {
	.esd-sheet .page-content p,
	.esd-sheet .page-content .align-justify,
	.single-post .entry-content p {
		text-align: left !important;
	}
}

/* ==========================================================================
   Sākumlapa: ievada josla, biedru darbi, kategoriju filtri, izceltais ieraksts
   ========================================================================== */
.esd-intro {
	background: var(--esd-surface);
	border-bottom: 1px solid var(--esd-line);
	padding: clamp(24px, 4vw, 36px) var(--esd-gutter);
}

.esd-intro-inner {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 16px 40px;
	justify-content: space-between;
	margin: 0 auto;
	max-width: var(--esd-wide);
}

.esd-intro-text {
	color: var(--esd-ink);
	flex: 1 1 420px;
	font-size: clamp(1.7rem, 2vw, 2rem);
	font-weight: 500;
	line-height: 1.5;
	margin: 0;
	max-width: 62ch;
}

.esd-intro-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.esd-btn {
	border: 2px solid var(--esd-ink);
	border-radius: 999px;
	display: inline-block;
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1.2;
	padding: 12px 22px;
	text-decoration: none;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.esd-btn-primary {
	background: var(--esd-red);
	border-color: var(--esd-red);
	color: #fff;
}

.esd-btn-primary:hover {
	background: var(--esd-solid);
	border-color: var(--esd-solid);
	color: var(--esd-on-solid);
}

.esd-btn-ghost {
	color: var(--esd-ink);
}

.esd-btn-ghost:hover {
	background: var(--esd-solid);
	color: var(--esd-on-solid);
}

@media screen and (max-width: 560px) {
	.esd-intro-actions,
	.esd-intro-actions .esd-btn {
		width: 100%;
	}
	.esd-intro-actions .esd-btn {
		text-align: center;
	}
}

/* biedru darbi (aktīvs tikai, ja izvēlētas bildes) */
.esd-works {
	margin: clamp(32px, 5vw, 56px) auto 0;
	max-width: var(--esd-wide);
	padding: 0 var(--esd-gutter);
}

.esd-works-head h2 {
	font-size: clamp(2.2rem, 3vw, 2.8rem);
	font-weight: 700;
	margin: 0 0 16px;
}

.esd-works-grid {
	display: grid;
	gap: 8px;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.esd-work {
	margin: 0;
	position: relative;
}

.esd-work img {
	aspect-ratio: 1;
	border-radius: 6px;
	display: block;
	object-fit: cover;
	width: 100%;
}

.esd-work figcaption {
	background: linear-gradient(0deg, rgba(0, 0, 0, .7), transparent);
	border-radius: 0 0 6px 6px;
	bottom: 0;
	color: #fff;
	font-size: 1.25rem;
	left: 0;
	padding: 18px 10px 8px;
	position: absolute;
	right: 0;
}

/* kategoriju filtri */
.esd-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}

.esd-filters a {
	border: 1px solid var(--esd-line);
	border-radius: 999px;
	color: var(--esd-ink);
	font-size: 1.4rem;
	font-weight: 600;
	padding: .45em 1em;
	text-decoration: none;
	transition: border-color .15s ease, background .15s ease;
}

.esd-filters a span {
	color: var(--esd-muted);
	font-weight: 500;
	margin-left: 2px;
}

.esd-filters a:hover {
	border-color: var(--esd-ink);
}

.esd-filters a[aria-current] {
	background: var(--esd-solid);
	border-color: var(--esd-solid);
	color: var(--esd-on-solid);
}

.esd-filters a[aria-current] span {
	color: var(--esd-on-solid);
	opacity: .7;
}

/* izceltais pirmais ieraksts – datorā liela kartīte 2×2 šūnās (blakus divi parastie ieraksti),
   lai 6 ieraksti piepildītu 3 pilnas rindas. Planšetē/telefonā – parasta kartīte. */
@media screen and (min-width: 1024px) {
	.blog .hentry.esd-card.esd-card-featured {
		grid-column: span 2;
		grid-row: span 2;
	}
	.esd-card-featured .post-thumbnail {
		aspect-ratio: auto;
		flex: 1 1 auto;
		min-height: 320px;
	}
	.esd-card-featured .post-thumbnail img {
		height: 100%;
		position: absolute;
		inset: 0;
	}
	.esd-card-featured .post-thumbnail {
		position: relative;
	}
	.esd-card-featured .entry-title {
		font-size: clamp(2.4rem, 2.4vw, 3rem);
		letter-spacing: -.02em;
	}
	.esd-card-featured .entry-title a {
		-webkit-line-clamp: 3;
	}
	.esd-card-featured .entry-content {
		font-size: 1.6rem;
	}
	.esd-card-featured .entry-content p {
		-webkit-line-clamp: 3;
	}
}

/* ==========================================================================
   Meklēšana
   ========================================================================== */
.esd-search-toggle {
	align-items: center;
	background: transparent;
	border: 0;
	border-radius: 50%;
	color: var(--esd-ink);
	cursor: pointer;
	display: flex;
	flex: none;
	height: 42px;
	justify-content: center;
	margin-left: auto;
	order: 2;
	padding: 0;
	width: 42px;
}

.esd-search-toggle svg {
	fill: currentColor;
	height: 21px;
	width: 21px;
}

.esd-search-toggle:hover,
.esd-search-toggle:focus,
.esd-search-toggle:active,
.esd-search-toggle.is-open {
	background: var(--esd-soft);
	color: var(--esd-ink); /* Argent button:hover iekrāso melnu – tumšajā skatā nesalasāms */
}

.esd-bar .main-navigation {
	order: 3;
}

@media screen and (min-width: 1000px) {
	.esd-bar .main-navigation {
		order: 1;
		margin-left: auto;
	}
	.esd-search-toggle {
		margin-left: 0;
		order: 2;
	}
}

.esd-search {
	background: var(--esd-surface);
	border-bottom: 1px solid var(--esd-line);
	box-shadow: 0 12px 24px rgba(0, 0, 0, .08);
	left: 0;
	padding: 14px var(--esd-gutter);
	position: absolute;
	right: 0;
	top: 100%;
}

.esd-search[hidden] {
	display: none;
}

.esd-search form {
	display: flex;
	gap: 8px;
	margin: 0 auto;
	max-width: 720px;
}

.esd-search input[type="search"] {
	border: 1px solid var(--esd-field-border);
	border-radius: 999px;
	color: var(--esd-ink);
	flex: 1;
	font-family: var(--esd-font);
	font-size: 1.6rem;
	min-width: 0;
	padding: 11px 18px;
}

.esd-search input[type="search"]:focus {
	border-color: var(--esd-ink);
	box-shadow: 0 0 0 3px rgba(23, 25, 27, .1);
	outline: none;
}

.esd-search button {
	background: var(--esd-solid);
	border: 0;
	border-radius: 999px;
	color: var(--esd-on-solid);
	cursor: pointer;
	font-family: var(--esd-font);
	font-size: 1.5rem;
	font-weight: 600;
	padding: 0 20px;
}

.esd-search button:hover {
	background: var(--esd-red);
}

/* ==========================================================================
   Raksts: lasīšanas laiks, dalīšanās pogas augšā
   ========================================================================== */
.esd-share {
	align-items: center;
	display: flex;
	gap: 8px;
	margin-top: 14px;
}

.esd-share a,
.esd-share button {
	align-items: center;
	background: var(--esd-soft);
	border: 0;
	border-radius: 50%;
	color: var(--esd-ink);
	cursor: pointer;
	display: inline-flex;
	height: 36px;
	justify-content: center;
	padding: 0;
	position: relative;
	transition: background .15s ease, color .15s ease;
	width: 36px;
}

.esd-share svg {
	fill: currentColor;
	height: 17px;
	width: 17px;
}

.esd-share a:hover,
.esd-share button:hover,
.esd-share button.is-done {
	background: var(--esd-solid);
	color: var(--esd-on-solid);
}

.esd-share-msg:not(:empty) {
	background: var(--esd-solid);
	border-radius: 6px;
	color: var(--esd-on-solid);
	font-size: 1.2rem;
	left: 50%;
	padding: 4px 8px;
	position: absolute;
	top: calc(100% + 6px);
	transform: translateX(-50%);
	white-space: nowrap;
}

/* ==========================================================================
   Galerijas pilnekrāna skats (Jetpack Carousel): bultas arī telefonā, poga "uz augšu" zem tā
   ========================================================================== */
#scrollUp {
	z-index: 1000 !important;
}

/* Jetpack telefonā bultas paslēpj ar ".swiper .swiper-button-* {display:none !important}" – pārrakstām */
.jp-carousel-overlay .swiper .jp-swiper-button-prev.swiper-button-prev,
.jp-carousel-overlay .swiper .jp-swiper-button-next.swiper-button-next,
.jp-carousel-overlay .jp-swiper-button-prev,
.jp-carousel-overlay .jp-swiper-button-next {
	align-items: center;
	background: rgba(255, 255, 255, .14) !important;
	border-radius: 50%;
	display: flex !important;
	height: 48px !important;
	justify-content: center;
	width: 48px !important;
}

.jp-carousel-overlay .swiper .jp-swiper-button-prev.swiper-button-prev,
.jp-carousel-overlay .swiper .jp-swiper-button-next.swiper-button-next {
	opacity: .9;
	padding: 0 !important;
}

.jp-carousel-overlay .jp-swiper-button-prev svg,
.jp-carousel-overlay .jp-swiper-button-next svg {
	background: transparent !important;
	fill: #fff;
	height: 26px !important;
	width: 26px !important;
}

.jp-carousel-overlay .jp-swiper-button-prev svg path,
.jp-carousel-overlay .jp-swiper-button-next svg path {
	fill: #fff;
}

.jp-carousel-overlay .jp-swiper-button-prev:hover,
.jp-carousel-overlay .jp-swiper-button-next:hover {
	background: rgba(255, 255, 255, .28) !important;
	opacity: 1;
}

@media screen and (max-width: 760px) {
	.jp-carousel-overlay .swiper .jp-swiper-button-prev.swiper-button-prev,
	.jp-carousel-overlay .swiper .jp-swiper-button-next.swiper-button-next {
		bottom: 72px;
		top: auto !important;
	}
	.jp-carousel-overlay .swiper .jp-swiper-button-prev.swiper-button-prev {
		left: 16px !important;
	}
	.jp-carousel-overlay .swiper .jp-swiper-button-next.swiper-button-next {
		right: 16px !important;
	}
}

.jp-carousel-overlay .jp-carousel-info-footer .jp-carousel-photo-count,
.jp-carousel-overlay .jp-swiper-pagination {
	font-family: var(--esd-font);
	font-variant-numeric: tabular-nums;
	font-weight: 600;
}

/* ==========================================================================
   Pieejamība
   ========================================================================== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
	outline: 3px solid var(--esd-red);
	outline-offset: 3px;
}

/* kartītēm ar "pārklājošu" saiti fokuss redzams uz visas kartītes */
.esd-card:has(.entry-title a:focus-visible) {
	outline: 3px solid var(--esd-red);
	outline-offset: 4px;
	border-radius: var(--esd-radius);
}

.esd-card .entry-title a:focus-visible {
	outline: none;
}

@media (prefers-reduced-motion: reduce) {
	.esd-card .post-thumbnail img,
	.page-content .rem-underline img {
		transition: none;
	}
	.esd-card:hover .post-thumbnail img,
	.page-content .rem-underline a:hover img {
		transform: none;
	}
}

/* "Kopēt saiti" ikona – līniju zīmējums */
.esd-share svg.esd-icon-stroke {
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2;
}


/* ==========================================================================
   Tumšais skats: logo, pārslēgšanas poga, sīkumi
   ========================================================================== */
.esd-brand img,
.esd-footer-logo img {
	filter: var(--esd-logo-filter);
}

.esd-theme-toggle {
	align-items: center;
	background: transparent;
	border: 0;
	border-radius: 50%;
	color: var(--esd-ink);
	cursor: pointer;
	display: flex;
	flex: none;
	height: 42px;
	justify-content: center;
	order: 2;
	padding: 0;
	width: 42px;
}

.esd-theme-toggle:hover,
.esd-theme-toggle:focus,
.esd-theme-toggle:active {
	background: var(--esd-soft);
	color: var(--esd-ink); /* Argent button:hover iekrāso melnu – tumšajā skatā nesalasāms */
}

.esd-theme-toggle svg {
	fill: none;
	height: 20px;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2;
	width: 20px;
}

.esd-theme-toggle .esd-sun {
	display: none;
}

html[data-theme="dark"] .esd-theme-toggle .esd-sun {
	display: block;
}

html[data-theme="dark"] .esd-theme-toggle .esd-moon {
	display: none;
}

@media (prefers-color-scheme: dark) {
	html:not([data-theme="light"]) .esd-theme-toggle .esd-sun {
		display: block;
	}
	html:not([data-theme="light"]) .esd-theme-toggle .esd-moon {
		display: none;
	}
}

@media screen and (min-width: 1000px) {
	.esd-theme-toggle {
		order: 3;
	}
}

/* fotogrāfijas tumšajā skatā – neliels apmales kontrasts */
html[data-theme="dark"] .esd-card .post-thumbnail,
html[data-theme="dark"] .esd-video-thumb {
	box-shadow: 0 0 0 1px rgba(255, 255, 255, .06);
}

/* WordPress "Fona krāsa" (customizer) iespiež body.custom-background{background-color:#f0f0f0} vēlāk
   nekā šis fails – augstāka specifiskums, lai fonu nosaka tēmas krāsas (arī tumšajā skatā) */
html body.custom-background,
html body {
	background-color: var(--esd-bg);
}

/* telefonā joslā: logo + meklēšana + tumšais skats + izvēlne – mazākas atstarpes, lai viss ietilpst */
@media screen and (max-width: 600px) {
	.esd-bar {
		gap: 4px;
	}
	.esd-bar .esd-brand {
		margin-right: auto;
	}
	.esd-search-toggle,
	.esd-theme-toggle {
		height: 40px;
		width: 40px;
	}
	.esd-search-toggle {
		margin-left: 0;
	}
	.esd-bar .menu-toggle {
		margin-left: 4px;
		min-width: 0;
		padding: .55em .7em;
		width: 100px; /* "Izvēlne" un "Aizvērt" – vienāds platums, lai poga nelēkā */
	}
}

@media screen and (max-width: 360px) {
	.esd-brand img {
		height: 28px;
	}
}

/* meklēšana un tumšā skata poga – cieši kopā (joslas atstarpe 24px ir domāta starp logo/izvēlni) */
@media screen and (min-width: 601px) {
	.esd-theme-toggle {
		margin-left: -20px;
	}
}

/* ==========================================================================
   Pakalpojumi: ko fotografējam, fotogrāfu kartītes ar kontaktiem, aicinājums
   ========================================================================== */
.esd-sheet .page-content .esd-svc-h {
	font-size: clamp(2.1rem, 2.6vw, 2.5rem);
	margin: 36px 0 16px;
}

.esd-sheet .page-content > .esd-svc-list {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.esd-sheet .page-content > .esd-svc-list > li {
	background: var(--esd-soft);
	border-radius: 10px;
	margin: 0;
	padding: 14px 16px;
}

.esd-sheet .page-content > .esd-svc-list > li::before {
	display: none;
}

.esd-svc-list strong {
	color: var(--esd-ink);
	display: block;
	font-size: 1.6rem;
	margin-bottom: 2px;
}

.esd-svc-list span {
	color: var(--esd-text);
	display: block;
	font-size: 1.4rem;
	line-height: 1.5;
}

.esd-pros {
	display: grid;
	gap: 12px;
}

.esd-pro {
	align-items: center;
	border: 1px solid var(--esd-line);
	border-radius: 12px;
	display: flex;
	gap: 18px;
	padding: 16px;
}

.esd-sheet .page-content .esd-pro img {
	aspect-ratio: 1;
	border-radius: 50%;
	flex: none;
	height: auto;
	object-fit: cover;
	width: 96px;
}

.esd-pro-body {
	min-width: 0;
}

.esd-sheet .page-content .esd-pro h3 {
	font-size: 1.9rem;
	margin: 0 0 4px;
}

.esd-sheet .page-content .esd-pro h3 a {
	color: var(--esd-ink);
	text-decoration: none;
}

.esd-sheet .page-content .esd-pro h3 a:hover {
	color: var(--esd-red);
}

.esd-sheet .page-content .esd-pro-tags {
	color: var(--esd-muted);
	font-size: 1.4rem;
	line-height: 1.5;
	margin: 0 0 10px;
}

.esd-sheet .page-content .esd-pro-contacts {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
}

.esd-sheet .page-content a.esd-pro-btn {
	border: 1px solid var(--esd-line);
	border-radius: 999px;
	color: var(--esd-ink);
	font-size: 1.35rem;
	font-weight: 600;
	padding: 6px 14px;
	text-decoration: none;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.esd-sheet .page-content a.esd-pro-btn:hover {
	background: var(--esd-solid);
	border-color: var(--esd-solid);
	color: var(--esd-on-solid);
}

@media screen and (max-width: 520px) {
	.esd-pro {
		align-items: flex-start;
		gap: 14px;
	}
	.esd-sheet .page-content .esd-pro img {
		width: 72px;
	}
}

.esd-svc-cta {
	align-items: center;
	background: var(--esd-soft);
	border-radius: 12px;
	display: flex;
	flex-wrap: wrap;
	gap: 14px 24px;
	justify-content: space-between;
	margin-top: 36px;
	padding: 22px 24px;
}

.esd-sheet .page-content .esd-svc-cta h2 {
	font-size: 2rem;
	margin: 0 0 4px;
}

.esd-sheet .page-content .esd-svc-cta p {
	color: var(--esd-text);
	font-size: 1.5rem;
	margin: 0;
}

.esd-sheet .page-content .esd-svc-cta a.esd-btn {
	color: #fff;
	text-decoration: none;
	overflow-wrap: anywhere;
}

/* ==========================================================================
   Aktuāli: notiekošās/gaidāmās izstādes (kājenē un sākumlapā)
   ========================================================================== */
.esd-events ul {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.esd-events li {
	margin: 0;
}

.esd-events-title {
	color: var(--esd-muted);
	font-size: 1.2rem;
	font-weight: 700;
	letter-spacing: .08em;
	margin: 0 0 10px;
	text-transform: uppercase;
}

.esd-events a,
.esd-footer .widget-wrapper .esd-events a {
	background: var(--esd-soft);
	border: 1px solid var(--esd-line);
	border-radius: 12px;
	color: var(--esd-ink);
	display: grid;
	gap: 2px;
	height: 100%;
	justify-items: start;
	padding: 14px 16px;
	text-decoration: none;
	transition: border-color .15s ease;
}

.esd-events a:hover {
	border-color: var(--esd-red);
}

.esd-events-badge {
	background: var(--esd-red);
	border-radius: 999px;
	color: #fff;
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1.4;
	margin-bottom: 6px;
	padding: 2px 10px;
}

.esd-events-badge.is-soon {
	background: var(--esd-solid);
	color: var(--esd-on-solid);
}

.esd-events-name {
	font-size: 1.6rem;
	font-weight: 700;
	line-height: 1.35;
}

.esd-events-meta {
	color: var(--esd-muted);
	font-size: 1.35rem;
	line-height: 1.5;
}

.esd-footer .esd-events {
	grid-column: 1 / -1;
	border-bottom: 1px solid var(--esd-line);
	padding-bottom: 28px;
}

.esd-events-home {
	margin: 0 auto;
	max-width: var(--esd-wide);
	padding: 24px var(--esd-gutter) 0;
}

.esd-pro .esd-member-initials {
	flex: none;
	font-size: 2.4rem;
	width: 96px;
}

@media screen and (max-width: 520px) {
	.esd-pro .esd-member-initials {
		font-size: 2rem;
		width: 72px;
	}
}

/* Biedra profils: galva (foto, loma, ko fotografē, kontakti) – no admin → Kluba biedri */
.esd-profile {
	align-items: center;
	display: grid;
	gap: 20px 32px;
	grid-template-columns: 200px 1fr;
	margin: 0 0 28px;
	padding-bottom: 28px;
	border-bottom: 1px solid var(--esd-line);
}

.esd-sheet .page-content .esd-profile-photo {
	margin: 0;
}

.esd-sheet .page-content .esd-profile-photo img,
.esd-profile-photo .esd-member-initials {
	aspect-ratio: 1;
	border-radius: 50%;
	display: block;
	height: auto;
	object-fit: cover;
	width: 100%;
}

.esd-profile-photo .esd-member-initials {
	display: grid;
	font-size: 4.8rem;
}

.esd-sheet .page-content .esd-profile-role {
	color: var(--esd-muted);
	font-size: 1.5rem;
	margin: 0 0 12px;
}

.esd-sheet .page-content .esd-profile-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
}

.esd-sheet .page-content .esd-profile-tags li {
	background: var(--esd-soft);
	border-radius: 999px;
	color: var(--esd-ink);
	font-size: 1.35rem;
	font-weight: 600;
	margin: 0;
	padding: 5px 12px;
}

.esd-sheet .page-content .esd-profile-tags li::before {
	display: none;
}

@media screen and (max-width: 600px) {
	.esd-profile {
		grid-template-columns: 1fr;
		justify-items: center;
		text-align: center;
	}
	.esd-sheet .page-content .esd-profile-photo {
		width: 170px;
	}
	.esd-sheet .page-content .esd-profile-tags,
	.esd-sheet .page-content .esd-profile .esd-pro-contacts {
		justify-content: center;
	}
}

/* profila beigās: citi biedri */
.esd-profile-more {
	border-top: 1px solid var(--esd-line);
	margin-top: 40px;
	padding-top: 28px;
}

.esd-sheet .page-content .esd-profile-more h2 {
	font-size: 2rem;
	margin: 0 0 14px;
}

.esd-members.esd-members-small {
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.esd-sheet .page-content .esd-profile-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	justify-content: space-between;
	margin: 22px 0 0;
}

.esd-sheet .page-content .esd-profile-links a {
	font-weight: 600;
	text-decoration: none;
}

/* profila augšā: ātrā navigācija starp biedriem – viena rinda, telefonā ritinās uz sāniem */
.esd-profile-nav {
	margin: -8px -4px 20px;
}

.esd-sheet .page-content .esd-profile-nav ul {
	display: flex;
	gap: 6px;
	list-style: none;
	margin: 0;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	padding: 4px;
	scroll-padding-inline: var(--esd-sheet-pad);
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.esd-sheet .page-content .esd-profile-nav ul::-webkit-scrollbar {
	display: none;
}

.esd-sheet .page-content .esd-profile-nav li {
	flex: none;
	margin: 0;
}

.esd-sheet .page-content .esd-profile-nav li::before {
	display: none;
}

.esd-sheet .page-content .esd-profile-nav li a,
.esd-sheet .page-content .esd-profile-nav li span {
	border: 1px solid var(--esd-line);
	border-radius: 999px;
	color: var(--esd-ink);
	display: block;
	font-size: 1.35rem;
	font-weight: 600;
	line-height: 1.4;
	padding: 6px 13px;
	text-decoration: none;
	white-space: nowrap;
}

.esd-sheet .page-content .esd-profile-nav li a:hover {
	border-color: var(--esd-ink);
}

.esd-sheet .page-content .esd-profile-nav li a.esd-profile-nav-all {
	border-color: transparent;
	color: var(--esd-muted);
	padding-left: 0;
}

.esd-sheet .page-content .esd-profile-nav li a.esd-profile-nav-all:hover {
	color: var(--esd-red);
}

.esd-sheet .page-content .esd-profile-nav li span {
	background: var(--esd-solid);
	border-color: var(--esd-solid);
	color: var(--esd-on-solid);
}

/* telefonā rinda sniedzas līdz baltās lapas malām – pogas "pazūd" aiz malas, nevis tiek apgrieztas teksta vidū */
@media screen and (max-width: 600px) {
	.esd-profile-nav {
		margin-left: calc(-1 * var(--esd-sheet-pad));
		margin-right: calc(-1 * var(--esd-sheet-pad));
	}
	.esd-sheet .page-content .esd-profile-nav ul {
		padding: 4px var(--esd-sheet-pad);
	}
	.esd-sheet .page-content .esd-profile-nav ul::after {
		content: "";
		flex: none;
		width: 1px;
	}
}

/* profila apakšā – saites */
.esd-sheet .page-content .esd-profile-links a {
	font-size: 1.5rem;
}

/* sīkdatņu josla – lapas krāsās (arī tumšajā skatā) */
#cookie-law-info-bar {
	background: var(--esd-surface) !important;
	border-top: 1px solid var(--esd-line);
	box-shadow: 0 -6px 24px rgba(0, 0, 0, .12) !important;
	color: var(--esd-text) !important;
	font-size: 1.4rem !important;
}

#cookie-law-info-bar .cli-plugin-button {
	border-radius: 999px !important;
	font-weight: 600 !important;
	padding: 8px 16px !important;
}

#cookie-law-info-bar .cli-plugin-button.wt-cli-accept-all-btn {
	background: var(--esd-solid) !important;
	color: var(--esd-on-solid) !important;
}

#cookie-law-info-bar .cli-plugin-button.cli_settings_button {
	background: transparent !important;
	border: 1px solid var(--esd-line) !important;
	color: var(--esd-ink) !important;
}

/* Publikācijas: preses izgriezumi kā kartītes (galerijas bloks ar klasi esd-press) */
.esd-sheet .wp-block-gallery.esd-press {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	margin: 8px 0 28px;
}

.esd-sheet .wp-block-gallery.esd-press > figure.wp-block-image {
	background: var(--esd-surface);
	border: 1px solid var(--esd-line);
	border-radius: 12px;
	display: flex;
	flex-direction: column;
	margin: 0;
	overflow: hidden;
	transition: border-color .15s ease, transform .15s ease;
	width: auto !important;
}

.esd-sheet .wp-block-gallery.esd-press > figure.wp-block-image:hover {
	border-color: var(--esd-ink);
	transform: translateY(-2px);
}

.esd-sheet .wp-block-gallery.esd-press > figure.wp-block-image a {
	display: block;
	flex: none;
}

/* izgriezuma augšdaļa (virsraksts) – vienāds kartīšu augstums */
.esd-sheet .wp-block-gallery.esd-press > figure.wp-block-image img {
	aspect-ratio: 4 / 3;
	background: #fff;
	height: auto !important;
	object-fit: cover;
	object-position: left top;
	width: 100% !important;
}

.esd-sheet .wp-block-gallery.esd-press > figure.wp-block-image figcaption br {
	display: none;
}

.esd-sheet .wp-block-gallery.esd-press > figure.wp-block-image figcaption {
	background: none;
	bottom: auto;
	color: var(--esd-muted);
	font-size: 1.35rem;
	line-height: 1.45;
	margin: 0;
	max-height: none;
	overflow: visible;
	padding: 12px 14px 14px;
	position: static;
	text-align: left;
	text-shadow: none;
}

.esd-sheet .wp-block-gallery.esd-press > figure.wp-block-image figcaption strong {
	color: var(--esd-ink);
	display: block;
	font-size: 1.55rem;
	line-height: 1.35;
	margin-bottom: 4px;
}

.esd-sheet .wp-block-gallery.esd-press > figure.wp-block-image figcaption::before {
	display: none;
}

/* Padarīts: hronika pa gadiem (virsraksts esd-tl-year + saraksts esd-timeline), gadu ātrā navigācija */
.esd-sheet .page-content .esd-tl-years {
	display: grid;
	gap: 6px;
	grid-template-columns: repeat(8, minmax(0, 1fr));
	margin: 0 0 8px;
}

@media (max-width: 600px) {
	.esd-sheet .page-content .esd-tl-years {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.esd-sheet .page-content .esd-tl-years a {
	border: 1px solid var(--esd-line) !important;
	border-radius: 999px;
	color: var(--esd-ink);
	font-size: 1.3rem;
	font-weight: 600;
	line-height: 1;
	padding: 8px 4px;
	text-align: center;
	text-decoration: none;
	transition: border-color .15s ease, background-color .15s ease;
}

.esd-sheet .page-content .esd-tl-years a:hover,
.esd-sheet .page-content .esd-tl-years a:focus-visible {
	background: var(--esd-soft);
	border-color: var(--esd-ink) !important;
}

.esd-sheet .page-content h2.esd-tl-year {
	align-items: center;
	display: flex;
	font-size: clamp(2.4rem, 3.2vw, 3rem);
	gap: 14px;
	margin: 40px 0 14px;
	scroll-margin-top: 90px;
}

.esd-sheet .page-content h2.esd-tl-year::after {
	background: var(--esd-line);
	content: "";
	flex: 1;
	height: 1px;
}

.esd-sheet .page-content > ul.esd-timeline {
	border-left: 2px solid var(--esd-line);
	margin: 0 0 8px 5px;
	padding-left: 0;
}

.esd-sheet .page-content > ul.esd-timeline > li {
	line-height: 1.6;
	margin: 0;
	padding: 0 0 16px 24px;
}

.esd-sheet .page-content > ul.esd-timeline > li:last-child {
	padding-bottom: 4px;
}

.esd-sheet .page-content > ul.esd-timeline > li::before {
	background: var(--esd-surface);
	border: 2px solid var(--esd-red);
	height: 10px;
	left: -6px;
	top: .5em;
	width: 10px;
}

.esd-sheet .page-content > ul.esd-timeline > li > em:first-child {
	color: var(--esd-muted);
	display: block;
	font-size: 1.25rem;
	font-style: normal;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
}
