/*
Theme Name: TerraSift
Theme URI: https://terrasift.com
Author: TerraSift
Author URI: https://terrasift.com
Description: The official block theme for TerraSift — the evidence platform for climate and nature claims. Strata-led design: a four-tier sediment column that mirrors how the product weighs evidence. Fully editable from Appearance → Editor, no page builder or plugin required.
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: terrasift
Tags: block-theme, full-site-editing, one-column, two-columns, wide-blocks, block-patterns, custom-colors, custom-logo, custom-menu, editor-style, featured-images, threaded-comments, translation-ready
*/

/* --------------------------------------------------------------------------
   TerraSift — custom styles
   Everything else (colour, type scale, spacing) lives in theme.json so it
   stays editable from Appearance → Editor → Styles.
   -------------------------------------------------------------------------- */

:root {
	--ts-rule: 1px solid rgba(12, 34, 32, 0.12);
	--ts-rule-light: 1px solid rgba(255, 255, 255, 0.16);
	--ts-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

::selection {
	background: var(--wp--preset--color--ochre);
	color: var(--wp--preset--color--ink);
}

/* Visible keyboard focus everywhere. */
:where(a, button, input, textarea, select, summary, .wp-block-button__link):focus-visible {
	outline: 2px solid var(--wp--preset--color--ochre);
	outline-offset: 3px;
	border-radius: 2px;
}

.ts-skip-link:not(:focus) {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.ts-skip-link:focus {
	position: fixed;
	z-index: 100;
	inset: 0.75rem auto auto 0.75rem;
	padding: 0.7rem 1.1rem;
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--chalk);
	font-family: var(--wp--preset--font-family--utility);
	font-size: 0.8125rem;
	text-decoration: none;
}

/* --------------------------------------------------------------------------
   1. Type utilities
   -------------------------------------------------------------------------- */

/* Small mono label that sits above a heading. */
.ts-eyebrow {
	font-family: var(--wp--preset--font-family--utility);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--moss);
	margin-bottom: 0.9rem;
}

.ts-eyebrow::before {
	content: "";
	display: inline-block;
	width: 1.6rem;
	height: 1px;
	margin-right: 0.7rem;
	vertical-align: 0.28em;
	background: currentColor;
}

.ts-lede {
	font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.3125rem);
	line-height: 1.55;
	color: var(--wp--preset--color--slate);
	max-width: 46ch;
}

.ts-mono {
	font-family: var(--wp--preset--font-family--utility);
	font-size: 0.8125rem;
	letter-spacing: 0.02em;
	color: var(--wp--preset--color--slate);
}

/* Headline emphasis: the one place the italic serif is allowed out. */
.ts-em {
	font-style: italic;
	color: var(--wp--preset--color--pine);
}

/* --------------------------------------------------------------------------
   2. Sections and rules
   -------------------------------------------------------------------------- */

.ts-section {
	padding-top: var(--wp--preset--spacing--60);
	padding-bottom: var(--wp--preset--spacing--60);
}

.ts-section--tight {
	padding-top: var(--wp--preset--spacing--50);
	padding-bottom: var(--wp--preset--spacing--50);
}

.ts-section--hairline {
	border-top: var(--ts-rule);
}

/* Dark sections: force readable colours regardless of block defaults. */
.ts-dark.ts-dark,
.ts-dark.ts-dark :where(h1, h2, h3, h4, h5, p, li, td, th, strong, summary) {
	color: var(--wp--preset--color--chalk);
}

.ts-dark.ts-dark .ts-eyebrow,
.ts-dark.ts-dark .ts-card__meta {
	color: var(--wp--preset--color--ochre);
}

.ts-dark.ts-dark .ts-lede,
.ts-dark.ts-dark .ts-mono,
.ts-dark.ts-dark h6 {
	color: rgba(243, 245, 240, 0.72);
}

.ts-dark.ts-dark a:not(.wp-block-button__link) {
	color: var(--wp--preset--color--ochre);
}

/* The signature divider: four segments, surface → bedrock. Used instead of a
   plain hairline so every section break restates the tier model. */
.ts-rule-strata {
	display: flex;
	gap: 3px;
	height: 3px;
	margin: 0;
	border: 0;
	list-style: none;
	padding: 0;
}

.ts-rule-strata span {
	display: block;
	height: 100%;
}

.ts-rule-strata span:nth-child(1) { flex: 4; background: var(--wp--preset--color--ink); }
.ts-rule-strata span:nth-child(2) { flex: 3; background: var(--wp--preset--color--pine); }
.ts-rule-strata span:nth-child(3) { flex: 2; background: var(--wp--preset--color--moss); }
.ts-rule-strata span:nth-child(4) { flex: 1; background: var(--wp--preset--color--ochre); }

/* --------------------------------------------------------------------------
   3. Header and footer
   -------------------------------------------------------------------------- */

.ts-header {
	position: sticky;
	top: 0;
	z-index: 20;
	background: rgba(243, 245, 240, 0.92);
	backdrop-filter: saturate(140%) blur(8px);
	border-bottom: var(--ts-rule);
}

.ts-header .wp-block-navigation__responsive-container-open,
.ts-header .wp-block-navigation__responsive-container-close {
	color: var(--wp--preset--color--ink);
}

.ts-header .wp-block-navigation a:hover {
	color: var(--wp--preset--color--pine);
	text-decoration: underline;
	text-underline-offset: 0.35em;
	text-decoration-thickness: 1px;
}

/* Wordmark mark: a four-band glyph in front of the site title. */
.ts-mark {
	display: inline-flex;
	flex-direction: column;
	gap: 2px;
	width: 18px;
	flex: 0 0 18px;
}

.ts-mark i {
	display: block;
	height: 3px;
	background: var(--wp--preset--color--ochre);
}

.ts-mark i:nth-child(2) { background: var(--wp--preset--color--moss); width: 85%; }
.ts-mark i:nth-child(3) { background: var(--wp--preset--color--pine); width: 68%; }
.ts-mark i:nth-child(4) { background: var(--wp--preset--color--ink); width: 50%; }

.ts-footer a {
	text-decoration: none;
}

.ts-footer a:hover {
	text-decoration: underline;
	text-underline-offset: 0.3em;
}

/* --------------------------------------------------------------------------
   4. Cards
   -------------------------------------------------------------------------- */

.ts-card {
	background: var(--wp--preset--color--white);
	border: var(--ts-rule);
	border-radius: 3px;
	padding: clamp(1.4rem, 2.5vw, 2rem);
	height: 100%;
	transition: transform 0.35s var(--ts-ease), box-shadow 0.35s var(--ts-ease);
}

.ts-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 2px 4px rgba(12, 34, 32, 0.05), 0 18px 40px -20px rgba(12, 34, 32, 0.35);
}

.ts-card h3,
.ts-card h4 {
	margin-top: 0.4rem;
	margin-bottom: 0.6rem;
}

.ts-card p:last-child {
	margin-bottom: 0;
}

.ts-dark .ts-card {
	background: rgba(255, 255, 255, 0.045);
	border-color: rgba(255, 255, 255, 0.14);
}

/* Card with a service/module index in the corner. */
.ts-card--service {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}

.ts-card__meta {
	font-family: var(--wp--preset--font-family--utility);
	font-size: 0.6875rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--ochre);
}

/* Numbered process step — used only where order genuinely matters. */
.ts-step {
	position: relative;
	padding-left: 3.25rem;
	padding-top: 0.1rem;
}

.ts-step__n {
	position: absolute;
	left: 0;
	top: 0;
	width: 2.25rem;
	height: 2.25rem;
	display: grid;
	place-items: center;
	border: 1px solid var(--wp--preset--color--pine);
	border-radius: 50%;
	font-family: var(--wp--preset--font-family--utility);
	font-size: 0.8125rem;
	color: var(--wp--preset--color--pine);
}

.ts-dark .ts-step__n {
	border-color: var(--wp--preset--color--ochre);
	color: var(--wp--preset--color--ochre);
}

.ts-step h4 {
	margin: 0 0 0.35rem;
}

.ts-step p {
	margin: 0;
	color: var(--wp--preset--color--slate);
	font-size: var(--wp--preset--font-size--small);
}

.ts-dark .ts-step p {
	color: rgba(243, 245, 240, 0.72);
}

/* --------------------------------------------------------------------------
   5. Tier badges and verdicts — the product's own vocabulary
   -------------------------------------------------------------------------- */

.ts-tier {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-family: var(--wp--preset--font-family--utility);
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	padding: 0.3rem 0.6rem;
	border-radius: 2px;
	border: 1px solid currentColor;
}

.ts-tier::before {
	content: "";
	width: 7px;
	height: 7px;
	background: currentColor;
	border-radius: 1px;
}

.ts-tier--1 { color: var(--wp--preset--color--ink); }
.ts-tier--2 { color: var(--wp--preset--color--pine); }
.ts-tier--3 { color: var(--wp--preset--color--moss); }
.ts-tier--4 { color: var(--wp--preset--color--ochre); }

.ts-dark .ts-tier--1,
.ts-dark .ts-tier--2 { color: rgba(243, 245, 240, 0.85); }

.ts-verdict {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--wp--preset--font-family--utility);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 0.35rem 0.7rem;
	border-radius: 2px;
	color: var(--wp--preset--color--white);
	background: var(--wp--preset--color--pine);
}

.ts-verdict--contested { background: var(--wp--preset--color--ochre); color: var(--wp--preset--color--ink); }
.ts-verdict--unsupported { background: var(--wp--preset--color--clay); }
.ts-verdict--insufficient { background: var(--wp--preset--color--slate); }

/* --------------------------------------------------------------------------
   6. The sift — hero signature element
   -------------------------------------------------------------------------- */

.ts-sift {
	--ts-sift-band: 4.25rem;
	position: relative;
	background: var(--wp--preset--color--white);
	border: var(--ts-rule);
	border-radius: 3px;
	padding: 1.15rem;
	box-shadow: 0 2px 4px rgba(12, 34, 32, 0.05), 0 24px 50px -28px rgba(12, 34, 32, 0.4);
}

.ts-sift__head,
.ts-sift__foot {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	font-family: var(--wp--preset--font-family--utility);
	font-size: 0.6875rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--slate);
}

.ts-sift__claim {
	margin: 0.6rem 0 1rem;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.2rem;
	line-height: 1.3;
	color: var(--wp--preset--color--ink);
	border-left: 3px solid var(--wp--preset--color--ochre);
	padding-left: 0.85rem;
}

.ts-sift__col {
	display: grid;
	gap: 4px;
	position: relative;
}

.ts-sift__band {
	position: relative;
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 0.5rem 1rem;
	min-height: var(--ts-sift-band);
	padding: 0.7rem 0.9rem;
	border-radius: 2px;
	color: var(--wp--preset--color--chalk);
	overflow: hidden;
}

.ts-sift__band--1 { background: var(--wp--preset--color--ink); }
.ts-sift__band--2 { background: var(--wp--preset--color--pine); }
.ts-sift__band--3 { background: var(--wp--preset--color--moss); }
.ts-sift__band--4 { background: var(--wp--preset--color--ochre); color: var(--wp--preset--color--ink); }

/* Sediment texture: fine horizontal grain, cheap and non-decorative-feeling. */
.ts-sift__band::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: repeating-linear-gradient(
		180deg,
		rgba(255, 255, 255, 0.07) 0 1px,
		transparent 1px 5px
	);
	pointer-events: none;
}

.ts-sift__label {
	font-family: var(--wp--preset--font-family--utility);
	font-size: 0.6875rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	opacity: 0.78;
	display: block;
	margin-bottom: 0.2rem;
}

.ts-sift__src {
	font-size: 0.875rem;
	line-height: 1.35;
	display: block;
}

.ts-sift__hits {
	font-family: var(--wp--preset--font-family--utility);
	font-size: 0.75rem;
	white-space: nowrap;
	opacity: 0.9;
	text-align: right;
}

.ts-sift__result {
	margin-top: 0.9rem;
	padding-top: 0.9rem;
	border-top: var(--ts-rule);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem 0.9rem;
}

.ts-sift__cite {
	font-family: var(--wp--preset--font-family--utility);
	font-size: 0.75rem;
	color: var(--wp--preset--color--slate);
	line-height: 1.5;
}

/* Orchestrated load: bands settle from the surface down, then the verdict. */
@media (prefers-reduced-motion: no-preference) {
	.ts-sift__band,
	.ts-sift__result,
	.ts-sift__claim {
		animation: ts-settle 0.7s var(--ts-ease) backwards;
	}

	.ts-sift__claim { animation-delay: 0.05s; }
	.ts-sift__band--4 { animation-delay: 0.25s; }
	.ts-sift__band--3 { animation-delay: 0.4s; }
	.ts-sift__band--2 { animation-delay: 0.55s; }
	.ts-sift__band--1 { animation-delay: 0.7s; }
	.ts-sift__result { animation-delay: 0.95s; }

	@keyframes ts-settle {
		from { opacity: 0; transform: translateY(-10px); }
		to { opacity: 1; transform: none; }
	}
}

/* --------------------------------------------------------------------------
   7. Evidence-tier table (the weighting model, stated plainly)
   -------------------------------------------------------------------------- */

.ts-tiers {
	display: grid;
	gap: 0;
	border: var(--ts-rule);
	border-radius: 3px;
	overflow: hidden;
	background: var(--wp--preset--color--white);
}

.ts-tiers__row {
	display: grid;
	grid-template-columns: minmax(9rem, 1fr) 2.2fr minmax(6rem, 0.9fr);
	gap: 0.4rem 1.5rem;
	padding: 1.15rem clamp(1rem, 2vw, 1.6rem);
	border-top: var(--ts-rule);
	align-items: start;
}

.ts-tiers__row:first-child {
	border-top: 0;
}

.ts-tiers__row > :last-child {
	text-align: right;
}

.ts-tiers__row strong {
	display: block;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.05rem;
	font-weight: 600;
	margin-bottom: 0.15rem;
}

.ts-tiers__sources {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--slate);
}

.ts-tiers__weight {
	font-family: var(--wp--preset--font-family--utility);
	font-size: 0.8125rem;
	color: var(--wp--preset--color--slate);
	white-space: nowrap;
}

@media (max-width: 700px) {
	.ts-tiers__row {
		grid-template-columns: 1fr;
	}

	.ts-tiers__row > :last-child {
		text-align: left;
	}
}

/* --------------------------------------------------------------------------
   8. Comparison table
   -------------------------------------------------------------------------- */

.ts-compare {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--wp--preset--font-size--small);
}

.ts-compare th,
.ts-compare td {
	text-align: left;
	padding: 0.85rem 1rem;
	border-bottom: var(--ts-rule);
	vertical-align: top;
}

.ts-compare thead th {
	font-family: var(--wp--preset--font-family--utility);
	font-size: 0.6875rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--slate);
	border-bottom: 2px solid var(--wp--preset--color--ink);
}

.ts-compare tbody th {
	font-weight: 600;
	width: 34%;
}

.ts-compare .ts-yes { color: var(--wp--preset--color--pine); font-weight: 600; }
.ts-compare .ts-no { color: var(--wp--preset--color--clay); }

@media (max-width: 700px) {
	.ts-compare,
	.ts-compare tbody,
	.ts-compare tr,
	.ts-compare th,
	.ts-compare td {
		display: block;
		width: auto;
	}

	.ts-compare thead {
		display: none;
	}

	.ts-compare tr {
		border-bottom: var(--ts-rule);
		padding: 0.5rem 0;
	}

	.ts-compare td::before {
		content: attr(data-label) " — ";
		font-family: var(--wp--preset--font-family--utility);
		font-size: 0.6875rem;
		text-transform: uppercase;
		letter-spacing: 0.1em;
		color: var(--wp--preset--color--slate);
	}

	.ts-compare th,
	.ts-compare td {
		border: 0;
		padding: 0.3rem 0;
	}
}

/* --------------------------------------------------------------------------
   9. Stats strip
   -------------------------------------------------------------------------- */

.ts-stat__figure {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(2rem, 1.4rem + 2vw, 3rem);
	line-height: 1;
	font-weight: 500;
	letter-spacing: -0.02em;
	display: block;
	margin-bottom: 0.4rem;
}

.ts-stat__label {
	font-family: var(--wp--preset--font-family--utility);
	font-size: 0.75rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--slate);
	display: block;
}

.ts-dark .ts-stat__label {
	color: rgba(243, 245, 240, 0.7);
}

/* --------------------------------------------------------------------------
   10. FAQ
   -------------------------------------------------------------------------- */

.ts-faq {
	border-top: var(--ts-rule);
}

.ts-faq details {
	border-bottom: var(--ts-rule);
}

.ts-faq summary {
	cursor: pointer;
	list-style: none;
	padding: 1.15rem 2.5rem 1.15rem 0;
	position: relative;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.125rem;
	font-weight: 500;
	color: var(--wp--preset--color--ink);
}

.ts-faq summary::-webkit-details-marker {
	display: none;
}

.ts-faq summary::after {
	content: "+";
	position: absolute;
	right: 0.25rem;
	top: 50%;
	transform: translateY(-50%);
	font-family: var(--wp--preset--font-family--utility);
	font-size: 1.1rem;
	color: var(--wp--preset--color--moss);
}

.ts-faq details[open] summary::after {
	content: "−";
}

.ts-faq details p {
	margin: 0 0 1.15rem;
	max-width: 62ch;
	color: var(--wp--preset--color--slate);
	font-size: var(--wp--preset--font-size--small);
}

/* --------------------------------------------------------------------------
   11. Layout helpers
   -------------------------------------------------------------------------- */

/* Two-column split where the left column holds the section heading. */
.ts-split {
	display: grid;
	grid-template-columns: minmax(16rem, 1fr) minmax(0, 1.6fr);
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: start;
}

@media (max-width: 860px) {
	.ts-split {
		grid-template-columns: 1fr;
	}
}

.ts-sticky {
	position: sticky;
	top: 6rem;
}

@media (max-width: 860px) {
	.ts-sticky {
		position: static;
	}
}

/* Equal-height columns for card grids built from core/columns. */
.ts-cards .wp-block-column {
	display: flex;
}

.ts-cards .wp-block-column > * {
	width: 100%;
}

/* Post/blog listing */
.ts-post-card {
	border-top: var(--ts-rule);
	padding-top: 1.5rem;
}

.ts-post-card .wp-block-post-title {
	font-size: var(--wp--preset--font-size--large);
	margin: 0.35rem 0 0.5rem;
}

.ts-post-card .wp-block-post-date,
.ts-post-card .wp-block-post-terms {
	font-family: var(--wp--preset--font-family--utility);
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--slate);
}

/* Long-form article measure and rhythm */
.ts-article :where(p, ul, ol) {
	max-width: 68ch;
}

.ts-article :where(h2, h3) {
	margin-top: 2.5rem;
}

/* Forms — styled so a Contact Form 7 / Forminator / native form inherits. */
.ts-form input[type="text"],
.ts-form input[type="email"],
.ts-form input[type="tel"],
.ts-form input[type="url"],
.ts-form select,
.ts-form textarea,
.wp-block-post-comments-form input:not([type="submit"]),
.wp-block-post-comments-form textarea {
	width: 100%;
	padding: 0.75rem 0.85rem;
	border: 1px solid rgba(12, 34, 32, 0.22);
	border-radius: 2px;
	background: var(--wp--preset--color--white);
	font-family: inherit;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--ink);
}

.ts-form label,
.wp-block-post-comments-form label {
	display: block;
	font-family: var(--wp--preset--font-family--utility);
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--slate);
	margin-bottom: 0.35rem;
}

.ts-form .ts-field {
	margin-bottom: 1.1rem;
}

/* Editor parity: give the canvas the same sticky offset behaviour. */
.editor-styles-wrapper .ts-header {
	position: static;
}

/* --------------------------------------------------------------------------
   12. Measure utilities
   -------------------------------------------------------------------------- */

.ts-measure { max-width: 62ch; }
.ts-measure-tight { max-width: 20ch; }

.ts-tiers__row .ts-tier {
	margin-bottom: 0.55rem;
}

/* --------------------------------------------------------------------------
   13. Registered block styles
   -------------------------------------------------------------------------- */

.wp-block-group.is-style-ts-card {
	background: var(--wp--preset--color--white);
	border: var(--ts-rule);
	border-radius: 3px;
	padding: clamp(1.4rem, 2.5vw, 2rem);
}

.ts-dark .wp-block-group.is-style-ts-card {
	background: rgba(255, 255, 255, 0.045);
	border-color: rgba(255, 255, 255, 0.14);
}

.wp-block-list.is-style-ts-checked {
	list-style: none;
	padding-left: 0;
}

.wp-block-list.is-style-ts-checked li {
	position: relative;
	padding-left: 1.75rem;
	margin-bottom: 0.6rem;
}

.wp-block-list.is-style-ts-checked li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 0.7rem;
	height: 0.7rem;
	border-radius: 1px;
	background: var(--wp--preset--color--ochre);
}

.wp-block-separator.is-style-ts-strata {
	height: 3px;
	border: 0;
	opacity: 1;
	background: linear-gradient(
		90deg,
		var(--wp--preset--color--ink) 0 40%,
		var(--wp--preset--color--pine) 40% 70%,
		var(--wp--preset--color--moss) 70% 90%,
		var(--wp--preset--color--ochre) 90% 100%
	);
	max-width: none;
}

.wp-block-heading.is-style-ts-eyebrow-style {
	font-family: var(--wp--preset--font-family--utility);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--moss);
}

/* --------------------------------------------------------------------------
   14. Core block refinements
   -------------------------------------------------------------------------- */

.wp-block-details {
	border: 0;
}

.wp-block-details > summary {
	font-weight: 500;
}

.wp-block-search__input {
	border: 1px solid rgba(12, 34, 32, 0.22);
	border-radius: 2px 0 0 2px;
	padding: 0.75rem 0.85rem;
	background: var(--wp--preset--color--white);
	font-family: inherit;
}

.wp-block-search__button {
	border-radius: 0 2px 2px 0;
	border: 0;
	background: var(--wp--preset--color--pine);
	color: var(--wp--preset--color--chalk);
	padding: 0.75rem 1.25rem;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
}

.wp-block-button.is-style-outline .wp-block-button__link {
	border: 1px solid currentColor;
	background: transparent;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: rgba(12, 34, 32, 0.06);
}

.ts-dark .wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: rgba(255, 255, 255, 0.1);
}

.wp-block-post-navigation-link,
.wp-block-query-pagination {
	font-family: var(--wp--preset--font-family--utility);
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--chalk);
	padding-top: 4.5rem;
}

.wp-block-navigation__responsive-container.is-menu-open a {
	color: var(--wp--preset--color--chalk);
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.5rem;
}

.wp-block-post-excerpt__excerpt {
	color: var(--wp--preset--color--slate);
}

/* Wide media inside articles keeps a hairline instead of a shadow. */
.ts-article .wp-block-image img,
.wp-block-post-featured-image img {
	border-radius: 3px;
}

/* Hero needs a little more air above than a standard section. */
.ts-hero {
	padding-top: clamp(3rem, 6vw, 5.5rem);
	padding-bottom: clamp(3.5rem, 7vw, 6rem);
}

@media (max-width: 781px) {
	.ts-hero .wp-block-column {
		flex-basis: 100% !important;
	}

	.ts-sift {
		margin-top: 2.5rem;
	}
}
