:root {
	--setekli-shadow: 0 0.2rem 1.2rem rgb(18 58 37 / 8%);
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
}

a {
	text-underline-offset: 0.16em;
	text-decoration-thickness: 0.08em;
}

:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 3px solid #9a5700;
	outline-offset: 3px;
}

.setekli-skip-link {
	position: fixed;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 100000;
	padding: 0.7rem 1rem;
	border-radius: 0.35rem;
	background: #fff;
	color: #204d3a;
	font-weight: 700;
	transform: translateY(-200%);
}

.setekli-skip-link:focus {
	transform: translateY(0);
}

.setekli-site-header {
	position: relative;
	z-index: 20;
	border-bottom: 1px solid #d8e2da;
	background: rgb(255 255 255 / 98%);
	box-shadow: 0 0.15rem 0.75rem rgb(18 58 37 / 5%);
}

.setekli-header-inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(12rem, 15rem);
	grid-template-areas:
		"brand search"
		"nav nav";
	gap: 0.65rem 2rem;
	align-items: center;
	min-height: 5rem;
}

.setekli-brand {
	grid-area: brand;
	flex-shrink: 0;
}

.setekli-brand-mark {
	width: 3.75rem;
	margin: 0;
}

.setekli-brand-mark img {
	display: block;
	width: 100%;
	height: auto;
}

.setekli-brand .wp-block-site-title {
	margin: 0;
	font-size: clamp(1rem, 2vw, 1.25rem);
	font-weight: 700;
	line-height: 1.15;
}

.setekli-brand .wp-block-site-title a {
	color: #204d3a;
	text-decoration: none;
}

.setekli-primary-nav {
	grid-area: nav;
	justify-self: end;
	font-size: 0.9rem;
	font-weight: 650;
	line-height: 1.3;
}

.setekli-primary-nav .wp-block-navigation-item__content {
	padding: 0.55rem 0.1rem;
	color: #204d3a;
	text-decoration: none;
}

.setekli-primary-nav .wp-block-navigation-item__content:hover {
	color: #285d44;
	text-decoration: underline;
}

.setekli-header-search {
	grid-area: search;
	justify-self: end;
	width: 100%;
	max-width: 15rem;
	font-size: 0.9rem;
}

.setekli-header-search .wp-block-search__inside-wrapper {
	border: 1px solid #aebdb3;
	border-radius: 0.4rem;
	background: #fff;
	padding: 0.15rem;
}

.setekli-header-search .wp-block-search__input {
	min-width: 6rem;
	border: 0;
	font: inherit;
}

.setekli-header-search .wp-block-search__button {
	min-height: 2.65rem;
	margin: 0;
	padding: 0.45rem 0.75rem;
}

.setekli-main {
	padding-top: clamp(2rem, 5vw, 4.5rem);
	padding-bottom: clamp(3rem, 7vw, 6rem);
}

.setekli-content {
	min-width: 0;
}

.setekli-content > :first-child {
	margin-top: 0;
}

.setekli-home > .setekli-content {
	margin-block-start: 3rem;
}

/* Match the introduction and portrait/news row to the article-card measure. */
.setekli-home > .setekli-content > :is(p, .setekli-home-intro) {
	max-width: var(--wp--style--global--wide-size);
}

.setekli-home-intro :is(.setekli-home-portrait, .setekli-home-news) {
	padding-inline: 0;
}

.setekli-home-intro :is(.setekli-home-portrait, .setekli-home-news) > * {
	max-width: none;
}

.setekli-content :where(p, li) {
	overflow-wrap: break-word;
}

.setekli-content :where(h2, h3, h4) {
	scroll-margin-top: 2rem;
}

.setekli-post-title {
	margin-top: 0;
	margin-bottom: 2rem;
	font-size: clamp(2rem, 5vw, 3.5rem);
	letter-spacing: -0.025em;
	overflow-wrap: anywhere;
}

.setekli-home > .setekli-post-title {
	max-width: var(--wp--style--global--wide-size);
	font-size: clamp(2rem, 4.3vw, 3.25rem);
}

.setekli-byline {
	margin-top: -1.25rem;
	margin-bottom: 2rem;
	color: #56615b;
	font-size: 0.9rem;
}

.setekli-section-layout,
.setekli-profile-layout {
	display: grid;
	width: calc(100% - 2rem);
	max-width: var(--wp--style--global--wide-size);
	margin-inline: auto;
	grid-template-columns: minmax(13rem, 17rem) minmax(0, var(--wp--style--global--content-size));
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: start;
	justify-content: center;
}

/* Title and body share one reading column, without a second padded container. */
:is(.setekli-section-layout, .setekli-profile-layout) > .setekli-content {
	width: 100%;
	max-width: var(--wp--style--global--content-size);
	margin-block-start: 0;
	justify-self: center;
}

:is(.setekli-section-layout, .setekli-profile-layout) > .setekli-content > .wp-block-post-content {
	padding-inline: 0;
}

.setekli-section-sidebar {
	position: sticky;
	top: 1.5rem;
	min-width: 0;
}

.setekli-section-nav {
	border: 1px solid #d8e2da;
	border-radius: 0.6rem;
	background: #edf3ee;
	overflow: hidden;
}

.setekli-section-nav > summary {
	cursor: pointer;
	padding: 1rem 1.1rem;
	color: #204d3a;
	font-size: 1rem;
	font-weight: 700;
}

.setekli-section-nav[open] > summary {
	border-bottom: 1px solid #d8e2da;
}

.setekli-section-nav .bellows {
	margin: 0;
	background: transparent;
}

.setekli-section-nav .bellows-nav {
	padding: 0.5rem;
}

.setekli-section-nav .bellows a {
	color: #204d3a;
	font-size: 0.9rem;
	line-height: 1.35;
}

.setekli-full-width {
	width: 100%;
}

.setekli-topic-section {
	margin-top: clamp(2.5rem, 6vw, 5rem);
	padding-top: clamp(2rem, 5vw, 4rem);
	border-top: 1px solid #d8e2da;
}

.setekli-topic-section > h2 {
	margin-bottom: 1.5rem;
}

.setekli-topic-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
}

.setekli-topic-card {
	min-height: 100%;
	margin: 0;
	padding: 1.35rem;
	border: 1px solid #d8e2da;
	border-radius: 0.65rem;
	background: #fff;
	box-shadow: var(--setekli-shadow);
}

.setekli-topic-grid > .setekli-topic-card,
.setekli-footer-badges > .wp-block-image {
	margin-block-start: 0;
}

.setekli-topic-card h3 {
	margin: 0;
	font-size: 1.15rem;
}

.setekli-topic-card a {
	display: inline-block;
	color: #204d3a;
	text-decoration-thickness: 0.1em;
}

.setekli-listing .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem;
	padding: 0;
}

.setekli-listing .wp-block-post {
	min-width: 0;
	margin: 0;
	padding: 1.5rem;
	border: 1px solid #d8e2da;
	border-radius: 0.65rem;
	background: #fff;
	box-shadow: var(--setekli-shadow);
}

.setekli-listing .wp-block-post-title {
	margin-top: 0;
	font-size: clamp(1.25rem, 3vw, 1.6rem);
}

.setekli-listing .wp-block-post-title a {
	color: #204d3a;
}

.setekli-listing .wp-block-post-date {
	color: #56615b;
	font-size: 0.875rem;
}

.setekli-listing .wp-block-post-excerpt {
	font-size: 1rem;
}

.setekli-listing .wp-block-query-pagination {
	margin-top: 2rem;
}

.setekli-content .wp-block-table,
.setekli-content .tablepress-scroll-wrapper,
.setekli-content .dt-container {
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.setekli-content :where(.wp-block-table, .tablepress-scroll-wrapper, .dt-container):focus-visible {
	outline: 3px solid #9a5700;
	outline-offset: 3px;
}

.setekli-content :where(.wp-block-table table, .tablepress) {
	border-collapse: collapse;
}

.setekli-content :where(.wp-block-table th, .wp-block-table td, .tablepress th, .tablepress td) {
	padding: 0.65rem;
	border: 1px solid #cbd7ce;
	vertical-align: top;
}

.setekli-site-footer {
	border-top: 1px solid #cbd7ce;
	background: #204d3a;
	color: #fff;
}

.setekli-site-footer .wp-block-site-title a {
	color: #fff;
	text-decoration: none;
}

.setekli-site-footer :where(a, button, input):focus-visible {
	outline-color: #f6c453;
}

.setekli-footer-badges {
	display: grid;
	grid-template-columns: repeat(4, minmax(7rem, 1fr));
	gap: 1.25rem;
	align-items: center;
	margin-top: 1.5rem;
}

.setekli-footer-badge {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 10rem;
	margin: 0;
	padding: 0.75rem;
	border-radius: 0.45rem;
	background: #fff;
}

.setekli-footer-badge img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 9rem;
	object-fit: contain;
}

/* Scoped transfer of the editor-owned Tiimi directory cards. */
.setekli-team-intro { max-width: 46rem; margin: 0 0 2.5rem; }
.setekli-team-intro h1 { color: #204d3a; font-size: clamp(2.25rem, 4vw, 3.5rem); line-height: 1.12; margin: 0 0 1rem; padding: 0; letter-spacing: -.025em; }
.setekli-team-intro p { color: #4f5954; font-size: 1.125rem; line-height: 1.65; padding: 0; }
.setekli-experts { --team-accent: #285d44; --team-border: #dce5de; }
.setekli-experts > .wp-block-post-template { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; list-style: none; padding: 0; margin: 0; }
.setekli-experts > .wp-block-post-template > .wp-block-post { display: flex; min-width: 0; margin: 0; padding: 0; list-style: none; }
.setekli-experts .setekli-expert-card { display: flex; flex-direction: column; width: 100%; height: 100%; overflow: hidden; border: 1px solid var(--team-border); border-radius: 12px; background: #fff; box-shadow: 0 3px 12px #123a2510; }
.setekli-experts .wp-block-post-featured-image { width: 100%; margin: 0; padding: 0; background: #edf1ed; aspect-ratio: 1; overflow: hidden; }
.setekli-experts .wp-block-post-featured-image a { display: block; width: 100%; height: 100%; }
.setekli-experts .wp-block-post-featured-image img { display: block; width: 100%; height: 100%; margin: 0; object-fit: contain; object-position: center; border-radius: 0; }
.setekli-expert-card:not(:has(.wp-block-post-featured-image))::before { content: ""; display: block; aspect-ratio: 1; background-color: #edf1ed; background-position: center; background-size: contain; background-repeat: no-repeat; }
.setekli-experts .setekli-expert-info { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 1.5rem; gap: 0; }
.setekli-experts .wp-block-post-title { margin: 0 0 .8rem; padding: 0; font-size: 1.375rem; line-height: 1.3; letter-spacing: -.015em; overflow-wrap: anywhere; }
.setekli-experts .wp-block-post-title a { color: #213c2c; text-decoration: none; }
.setekli-experts .wp-block-post-title a:hover { color: var(--team-accent); text-decoration: underline; text-underline-offset: .15em; }
.setekli-experts .wp-block-post-excerpt { margin: 0 0 1.5rem; color: #4c5550; font-size: .9375rem; line-height: 1.65; }
.setekli-experts .wp-block-post-excerpt p { margin: 0; padding: 0; }
.setekli-experts .wp-block-read-more { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin-top: auto; padding: .65rem 1rem; border: 1px solid var(--team-accent); border-radius: 6px; color: var(--team-accent); background: #fff; font-size: .9375rem; font-weight: 600; line-height: 1.4; text-decoration: none; }
.setekli-experts .wp-block-read-more:hover { background: var(--team-accent); color: #fff; }
.setekli-experts a:focus-visible { outline: 3px solid #9a5700; outline-offset: 4px; }
.setekli-experts .wp-block-query-pagination { margin-top: 2rem; }

/* Scoped transfer of the static employee cards. */
.setekli-staff-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1.5rem 0 0; }
.setekli-staff-grid > .setekli-staff-card { display: flex; flex-direction: column; min-width: 0; margin: 0; overflow: hidden; border: 1px solid #dce5de; border-radius: 12px; background: #fff; box-shadow: 0 3px 12px #123a2510; }
.setekli-staff-grid .setekli-staff-portrait { width: 100%; margin: 0; padding: 0; aspect-ratio: 3 / 4; background: #edf1ed; overflow: hidden; }
.setekli-staff-grid .setekli-staff-portrait img { display: block; width: 100%; height: 100%; margin: 0; object-fit: contain; border-radius: 0; }
.setekli-staff-grid .setekli-staff-info { display: flex; flex: 1; flex-direction: column; align-items: flex-start; margin: 0; padding: 1.125rem; }
.setekli-staff-grid h2 { margin: 0 0 .8rem; padding: 0; font-size: 1.25rem; line-height: 1.35; color: #213c2c; overflow-wrap: anywhere; }
.setekli-staff-grid ul { margin: 0 0 1.25rem; padding: 0 0 0 1.1em; color: #4c5550; font-size: .9375rem; line-height: 1.6; overflow-wrap: anywhere; hyphens: auto; }
.setekli-staff-grid li { margin: 0 0 .35rem; padding: 0; }
.setekli-staff-grid .wp-block-buttons { width: 100%; margin-top: auto; }
.setekli-staff-grid .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin: 0; padding: .65rem .8rem; border: 1px solid #285d44; border-radius: 6px; background-color: #fff; color: #285d44; font-size: .875rem; font-weight: 600; line-height: 1.4; text-decoration: none; }
.setekli-staff-grid .wp-block-button__link:hover { background-color: #285d44; color: #fff; }
.setekli-staff-grid a:focus-visible { outline: 3px solid #9a5700; outline-offset: 3px; }

/* Migrated homepage and call-to-action blocks use the wider layout measure. */
.setekli-home .setekli-feature-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
	width: 100%;
	max-width: var(--wp--style--global--wide-size) !important;
}

.setekli-feature-cards > .wp-block-column {
	display: flex;
}

.setekli-feature-card,
.setekli-cta-card,
.setekli-home-cta,
.setekli-cta {
	border: 1px solid #d8e2da;
	border-radius: 0.65rem;
	background: #fff;
	box-shadow: var(--setekli-shadow);
}

.setekli-home .setekli-feature-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	padding: 1.25rem;
}

.setekli-feature-card > :where(h2, h3),
.setekli-cta-card > :where(h2, h3),
.setekli-home-cta > :where(h2, h3),
.setekli-cta > :where(h2, h3) {
	color: #204d3a;
}

.setekli-feature-card > .wp-block-image {
	width: 100%;
	margin-top: 0;
}

.setekli-feature-card > .wp-block-image img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.setekli-home .setekli-feature-card > :where(h2, h3, p, .wp-block-buttons) {
	max-width: none;
	margin-inline: 0 !important;
}

.setekli-home .setekli-feature-card > .wp-block-buttons {
	align-self: flex-start;
	margin-top: auto;
}

.setekli-content .setekli-home-cta,
.setekli-content .setekli-cta {
	padding: clamp(1.25rem, 4vw, 2rem);
}

.setekli-landing-ctas {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem;
}

.setekli-landing-ctas > .wp-block-column {
	display: flex;
}

.setekli-landing-ctas .setekli-cta-card {
	width: 100%;
	padding: 1.5rem;
}

.setekli-main .wp-block-button__link:hover {
	border-color: #204d3a;
	background-color: #204d3a;
	color: #fff;
}

.setekli-portrait img,
.setekli-home-portrait img {
	object-fit: contain;
}

@media (max-width: 1080px) {
	.setekli-primary-nav .wp-block-navigation__responsive-container-open {
		display: flex;
	}

	.setekli-primary-nav .wp-block-navigation__responsive-container:not(.is-menu-open) {
		display: none;
	}

	.setekli-staff-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 980px) {
	.setekli-section-layout,
	.setekli-profile-layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 1.5rem;
	}

	.setekli-section-sidebar {
		position: static;
	}

	.setekli-section-nav:not([open]) .bellows {
		display: none;
	}

	.setekli-topic-grid,
	.setekli-experts > .wp-block-post-template,
	.setekli-home .setekli-feature-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.25rem;
	}
}

@media (max-width: 700px) {
	.setekli-header-inner {
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas:
			"brand nav"
			"search search";
		gap: 0.65rem 1rem;
		min-height: 4.5rem;
		padding-top: 0.65rem !important;
		padding-bottom: 0.65rem !important;
	}

	.setekli-brand-mark {
		width: 3rem;
	}

	.setekli-brand .wp-block-site-title {
		max-width: 12rem;
		font-size: 0.95rem;
	}

	.setekli-header-search {
		justify-self: stretch;
		max-width: none;
		width: 100%;
	}

	.setekli-primary-nav {
		justify-self: end;
	}

	.setekli-topic-grid,
	.setekli-listing .wp-block-post-template,
	.setekli-experts > .wp-block-post-template,
	.setekli-staff-grid,
	.setekli-home .setekli-feature-cards,
	.setekli-landing-ctas,
	.setekli-footer-badges {
		grid-template-columns: minmax(0, 1fr);
	}

	.setekli-team-intro {
		margin-bottom: 1.75rem;
	}

	.setekli-experts .setekli-expert-info,
	.setekli-staff-grid .setekli-staff-info {
		padding: 1.25rem;
	}

	.setekli-footer-badges {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}
