/*
 * Terrifico front-end styles.
 *
 * Every color, size and font comes from a --tf-* custom property that the theme writes
 * from the Customizer options (inc/dynamic-css.php). Fallback values below match the
 * option defaults so the stylesheet also works on its own.
 */

/* ---------- Tokens (defaults; overridden inline) ---------- */

:root {
	--tf-color-accent: #2563eb;
	--tf-color-accent-hover: #1d4ed8;
	--tf-color-heading: #111827;
	--tf-color-text: #374151;
	--tf-color-background: #fff;
	--tf-color-surface: #f3f4f6;
	--tf-color-border: #e5e7eb;
	--tf-color-dark: #111827;
	--tf-color-light: #fff;
	--tf-color-link: var(--tf-color-accent);
	--tf-color-link-hover: var(--tf-color-accent-hover);
	--tf-site-background: #f3f4f6;
	--tf-font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--tf-font-heading: inherit;
	--tf-font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
	--tf-body-weight: 400;
	--tf-body-size: 16px;
	--tf-line-height: 1.7;
	--tf-paragraph-margin: 1.5em;
	--tf-heading-weight: 700;
	--tf-heading-line-height: 1.25;
	--tf-heading-tracking: 0;
	--tf-heading-transform: none;
	--tf-h1: 40px;
	--tf-h2: 32px;
	--tf-h3: 26px;
	--tf-h4: 22px;
	--tf-h5: 18px;
	--tf-h6: 16px;
	--tf-container: 1200px;
	--tf-narrow: 760px;
	--tf-boxed-width: 1320px;
	--tf-sidebar-width: 30%;
	--tf-gutter: clamp(16px, 4vw, 32px);
	--tf-gap: clamp(32px, 4vw, 56px);
	--tf-section: clamp(40px, 6vw, 80px);
	--tf-radius: 8px;
	--tf-radius-sm: 4px;
	--tf-shadow: 0 1px 2px rgb(17 24 39 / 6%), 0 8px 24px -12px rgb(17 24 39 / 15%);
	--tf-btn-bg: var(--tf-color-accent);
	--tf-btn-bg-hover: var(--tf-color-accent-hover);
	--tf-btn-color: #fff;
	--tf-btn-color-hover: #fff;
	--tf-btn-radius: 6px;
	--tf-btn-padding: 12px 28px;
	--tf-btn-border-width: 0;
	--tf-btn-border-color: transparent;
	--tf-btn-weight: 600;
	--tf-btn-transform: none;
	--tf-btn-size: 16px;
	--tf-header-bg: #fff;
	--tf-header-padding: 20px;
	--tf-header-border: var(--tf-color-border);
	--tf-logo-width: 180px;
	--tf-logo-width-mobile: 140px;
	--tf-site-title-color: var(--tf-color-heading);
	--tf-site-title-size: 24px;
	--tf-transparent-color: #fff;
	--tf-menu-color: var(--tf-color-heading);
	--tf-menu-hover: var(--tf-color-accent);
	--tf-menu-active: var(--tf-color-accent);
	--tf-menu-size: 15px;
	--tf-menu-weight: 500;
	--tf-menu-transform: none;
	--tf-menu-gap: 28px;
	--tf-submenu-bg: #fff;
	--tf-submenu-color: var(--tf-color-heading);
	--tf-submenu-hover-bg: var(--tf-color-surface);
	--tf-submenu-width: 240px;
	--tf-mobile-bg: var(--tf-header-bg);
	--tf-mobile-color: var(--tf-menu-color);
	--tf-topbar-bg: var(--tf-color-surface);
	--tf-topbar-color: var(--tf-color-text);
	--tf-topbar-size: 14px;
	--tf-title-bg: var(--tf-color-surface);
	--tf-title-color: var(--tf-color-heading);
	--tf-title-padding: 48px;
	--tf-footer-bg: var(--tf-color-surface);
	--tf-footer-color: var(--tf-color-text);
	--tf-footer-heading: var(--tf-color-heading);
	--tf-footer-link: var(--tf-color-heading);
	--tf-footer-link-hover: var(--tf-color-accent);
	--tf-footer-padding: 64px;
	--tf-bottom-bg: var(--tf-footer-bg);
	--tf-bottom-color: var(--tf-footer-color);
	--tf-bottom-size: 14px;
	--tf-stt-bg: var(--tf-color-accent);
	--tf-stt-color: #fff;
	--tf-stt-size: 44px;
	--tf-stt-radius: 50%;
	--tf-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--tf-duration: 200ms;
	--wp--style--global--content-size: var(--tf-container);
	--wp--style--global--wide-size: calc(var(--tf-container) + 160px);
}

@media (prefers-reduced-motion: reduce) {
	:root {
		--tf-duration: 0ms;
	}
}

/* ---------- Base ---------- */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

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

body {
	margin: 0;
	background: var(--tf-color-background);
	color: var(--tf-color-text);
	font-family: var(--tf-font-body);
	font-size: var(--tf-body-size);
	font-weight: var(--tf-body-weight);
	line-height: var(--tf-line-height);
	-webkit-font-smoothing: antialiased;
	word-wrap: break-word;
}

body.tf-site-boxed {
	background: var(--tf-site-background);
}

.tf-site-boxed .tf-site {
	max-width: var(--tf-boxed-width);
	margin-inline: auto;
	background: var(--tf-color-background);
	box-shadow: 0 0 40px rgb(0 0 0 / 6%);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.6em;
	color: var(--tf-color-heading);
	font-family: var(--tf-font-heading);
	font-weight: var(--tf-heading-weight);
	letter-spacing: var(--tf-heading-tracking);
	line-height: var(--tf-heading-line-height);
	text-transform: var(--tf-heading-transform);
	overflow-wrap: anywhere;
}

h1 { font-size: var(--tf-h1); }
h2 { font-size: var(--tf-h2); }
h3 { font-size: var(--tf-h3); }
h4 { font-size: var(--tf-h4); }
h5 { font-size: var(--tf-h5); }
h6 { font-size: var(--tf-h6); }

@media (max-width: 767px) {
	h1 { font-size: calc(var(--tf-h1) * 0.75); }
	h2 { font-size: calc(var(--tf-h2) * 0.8); }
	h3 { font-size: calc(var(--tf-h3) * 0.85); }
}

p {
	margin: 0 0 var(--tf-paragraph-margin);
}

a {
	color: var(--tf-color-link);
	text-decoration: none;
	transition: color var(--tf-duration) var(--tf-ease);
}

a:hover {
	color: var(--tf-color-link-hover);
}

.tf-underline-links .entry-content a:not(.wp-block-button__link):not(.tf-btn):not(.wp-element-button),
.tf-underline-links .comment-content a {
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

:focus-visible {
	outline: 2px solid var(--tf-color-accent);
	outline-offset: 2px;
}

img,
video,
iframe,
embed,
object {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

figure {
	margin: 0 0 var(--tf-paragraph-margin);
}

hr {
	height: 1px;
	margin: 2em 0;
	border: 0;
	background: var(--tf-color-border);
}

blockquote {
	margin: 0 0 var(--tf-paragraph-margin);
	padding: 0.5em 0 0.5em 1.5em;
	border-inline-start: 4px solid var(--tf-color-accent);
	font-size: 1.125em;
}

blockquote cite {
	display: block;
	margin-top: 0.5em;
	font-size: 0.85em;
	font-style: normal;
	opacity: 0.8;
}

pre,
code,
kbd,
samp {
	font-family: var(--tf-font-mono);
	font-size: 0.9em;
}

pre {
	overflow: auto;
	padding: 1em 1.25em;
	border-radius: var(--tf-radius-sm);
	background: var(--tf-color-surface);
}

code {
	padding: 0.15em 0.4em;
	border-radius: var(--tf-radius-sm);
	background: var(--tf-color-surface);
}

pre code {
	padding: 0;
	background: none;
}

table {
	width: 100%;
	margin: 0 0 var(--tf-paragraph-margin);
	border-collapse: collapse;
}

th,
td {
	padding: 0.6em 0.8em;
	border: 1px solid var(--tf-color-border);
	text-align: start;
}

th {
	background: var(--tf-color-surface);
	color: var(--tf-color-heading);
}

ul,
ol {
	margin: 0 0 var(--tf-paragraph-margin);
	padding-inline-start: 1.5em;
}

li > ul,
li > ol {
	margin-bottom: 0;
}

dt {
	font-weight: 600;
	color: var(--tf-color-heading);
}

dd {
	margin: 0 0 1em;
}

abbr[title] {
	text-decoration: underline dotted;
}

mark,
ins {
	background: #fff3b0;
	text-decoration: none;
}

/* Accessibility */

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	border: 0;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	position: absolute !important;
	top: 5px;
	left: 5px;
	z-index: 100000;
	display: block;
	width: auto;
	height: auto;
	padding: 15px 23px 14px;
	clip: auto !important;
	clip-path: none;
	border-radius: 3px;
	background: var(--tf-color-background);
	box-shadow: 0 0 2px 2px rgb(0 0 0 / 60%);
	color: var(--tf-color-accent);
	font-size: 14px;
	font-weight: 700;
	line-height: normal;
	text-decoration: none;
}

.skip-link:focus {
	top: 8px;
	left: 8px;
}

/* ---------- Buttons and forms ---------- */

.tf-btn,
.wp-block-button__link,
.wp-element-button,
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	display: inline-flex;
	gap: 0.5em;
	align-items: center;
	justify-content: center;
	padding: var(--tf-btn-padding);
	border: var(--tf-btn-border-width) solid var(--tf-btn-border-color);
	border-radius: var(--tf-btn-radius);
	background: var(--tf-btn-bg);
	color: var(--tf-btn-color);
	font-family: inherit;
	font-size: var(--tf-btn-size);
	font-weight: var(--tf-btn-weight);
	line-height: 1.2;
	text-decoration: none;
	text-transform: var(--tf-btn-transform);
	cursor: pointer;
	transition:
		background-color var(--tf-duration) var(--tf-ease),
		border-color var(--tf-duration) var(--tf-ease),
		color var(--tf-duration) var(--tf-ease),
		transform var(--tf-duration) var(--tf-ease);
}

.tf-btn:hover,
.wp-block-button__link:hover,
.wp-element-button:hover,
button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
	background: var(--tf-btn-bg-hover);
	color: var(--tf-btn-color-hover);
}

.tf-btn:active {
	transform: translateY(1px);
}

.tf-btn--outline,
.is-style-tf-outline .wp-block-button__link,
.is-style-outline .wp-block-button__link {
	border: 2px solid var(--tf-btn-bg);
	background: transparent;
	color: var(--tf-btn-bg);
}

.tf-btn--outline:hover,
.is-style-tf-outline .wp-block-button__link:hover,
.is-style-outline .wp-block-button__link:hover {
	border-color: var(--tf-btn-bg-hover);
	background: var(--tf-btn-bg-hover);
	color: var(--tf-btn-color-hover);
}

.tf-btn--block {
	width: 100%;
}

.tf-icon-btn {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	cursor: pointer;
	transition: background-color var(--tf-duration) var(--tf-ease);
}

.tf-icon-btn:hover {
	background: var(--tf-color-surface);
	color: inherit;
}

.tf-icon {
	flex: none;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="date"],
select,
textarea {
	width: 100%;
	padding: 0.7em 0.9em;
	border: 1px solid var(--tf-color-border);
	border-radius: var(--tf-radius-sm);
	background: var(--tf-color-background);
	color: var(--tf-color-text);
	font: inherit;
	line-height: 1.4;
	transition: border-color var(--tf-duration) var(--tf-ease);
}

input:focus,
select:focus,
textarea:focus {
	border-color: var(--tf-color-accent);
	outline: 2px solid transparent;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--tf-color-accent) 20%, transparent);
}

textarea {
	min-height: 8em;
	resize: vertical;
}

label {
	display: inline-block;
	margin-bottom: 0.3em;
	font-weight: 500;
	color: var(--tf-color-heading);
}

select {
	appearance: none;
	padding-inline-end: 2.5em;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.8em center;
}

.tf-search-form {
	display: flex;
	gap: 0;
	align-items: stretch;
}

.tf-search-form__field {
	border-start-end-radius: 0;
	border-end-end-radius: 0;
}

.tf-search-form__submit {
	flex: none;
	padding-inline: 1em;
	border-start-start-radius: 0;
	border-end-start-radius: 0;
}

/* ---------- Layout ---------- */

.tf-container {
	width: 100%;
	max-width: calc(var(--tf-container) + var(--tf-gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--tf-gutter);
}

.tf-container--full {
	max-width: none;
}

.tf-container--narrow {
	max-width: calc(var(--tf-narrow) + var(--tf-gutter) * 2);
}

.tf-content {
	padding-block: var(--tf-section);
}

/* Full-width (stretched) layouts are built edge to edge with blocks: no gap under the header or above the footer. */
.tf-container-full .tf-content {
	padding-block: 0;
}

.tf-layout {
	display: grid;
	gap: var(--tf-gap);
	grid-template-columns: minmax(0, 1fr);
}

.tf-main {
	min-width: 0;
}

@media (min-width: 992px) {
	.tf-layout--sidebar-right {
		grid-template-columns: minmax(0, 1fr) var(--tf-sidebar-width);
	}

	.tf-layout--sidebar-left {
		grid-template-columns: var(--tf-sidebar-width) minmax(0, 1fr);
	}

	.tf-layout--sidebar-left .tf-main {
		order: 2;
	}

	.tf-layout--sidebar-left .tf-sidebar {
		order: 1;
	}
}

/* Narrow layout with a sidebar: keep the content column readable. */
.tf-layout--narrow.tf-layout--sidebar-none .tf-main {
	max-width: var(--tf-narrow);
	margin-inline: auto;
}

/* Boxed content style */
.tf-content-boxed {
	background: var(--tf-color-surface);
}

.tf-content-boxed .tf-main,
.tf-content-boxed .tf-sidebar__inner {
	padding: clamp(24px, 4vw, 48px);
	border-radius: var(--tf-radius);
	background: var(--tf-color-background);
	box-shadow: var(--tf-shadow);
}

.tf-content-boxed .tf-posts--card .tf-card,
.tf-content-boxed .tf-sidebar--boxed .tf-widget {
	box-shadow: none;
	border: 1px solid var(--tf-color-border);
}

.tf-content-boxed .tf-header,
.tf-content-boxed .tf-footer {
	background: var(--tf-color-background);
}

/* ---------- Header ---------- */

.tf-header {
	position: relative;
	z-index: 50;
	background: var(--tf-header-bg);
	color: var(--tf-menu-color);
}

.tf-header--border {
	border-bottom: 1px solid var(--tf-header-border);
}

.tf-header--shadow {
	box-shadow: 0 2px 12px rgb(0 0 0 / 6%);
}

.tf-header__main {
	padding-block: var(--tf-header-padding);
}

.tf-header__row {
	display: flex;
	gap: 24px;
	align-items: center;
}

.tf-header__row--menu {
	justify-content: center;
	padding-top: calc(var(--tf-header-padding) * 0.75);
}

.tf-header__actions {
	display: flex;
	gap: 8px;
	align-items: center;
	margin-inline-start: auto;
}

/* Brand */

.tf-brand {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.tf-brand .custom-logo-link {
	display: inline-block;
	line-height: 0;
}

.tf-brand .custom-logo {
	width: var(--tf-logo-width);
	max-width: 100%;
	height: auto;
}

@media (max-width: 767px) {
	.tf-brand .custom-logo {
		width: var(--tf-logo-width-mobile);
	}
}

.site-title {
	margin: 0;
	font-family: var(--tf-font-heading);
	font-size: var(--tf-site-title-size);
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.1;
}

.site-title a {
	color: var(--tf-site-title-color);
}

.site-title a:hover {
	color: var(--tf-menu-hover);
}

.site-description {
	margin: 0;
	font-size: 0.875rem;
	opacity: 0.75;
}

/* Layout: logo center */

.tf-header--center .tf-header__row {
	flex-wrap: wrap;
	justify-content: center;
}

.tf-header--center .tf-brand {
	flex-basis: 100%;
	align-items: center;
	text-align: center;
}

.tf-header--center .tf-header__actions {
	margin-inline-start: 0;
}

@media (min-width: 992px) {
	.tf-header--center .tf-header__row {
		display: grid;
		grid-template-columns: 1fr auto 1fr;
		align-items: center;
	}

	.tf-header--center .tf-brand {
		grid-column: 2;
		grid-row: 1;
	}

	.tf-header--center .tf-nav {
		grid-column: 1 / -1;
		grid-row: 2;
		justify-content: center;
		margin-top: calc(var(--tf-header-padding) * 0.6);
	}

	.tf-header--center .tf-header__actions {
		grid-column: 3;
		grid-row: 1;
		justify-self: end;
	}
}

/* Layout: menu below */

.tf-header--below .tf-header__row:not(.tf-header__row--menu) .tf-brand {
	flex: 1;
}

/* Navigation */

.tf-nav {
	display: flex;
	margin-inline-start: auto;
	font-size: var(--tf-menu-size);
	font-weight: var(--tf-menu-weight);
	text-transform: var(--tf-menu-transform);
}

.tf-header--left .tf-nav {
	margin-inline-start: auto;
}

.tf-header--left .tf-header__actions {
	margin-inline-start: 0;
}

.tf-header--left .tf-header__actions:has(> :not(.tf-menu-toggle)) {
	margin-inline-start: 0;
}

.tf-menu,
.tf-menu ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tf-menu {
	display: flex;
	gap: var(--tf-menu-gap);
	align-items: center;
}

.tf-menu li {
	position: relative;
}

.tf-menu > li > a {
	position: relative;
	display: inline-flex;
	gap: 4px;
	align-items: center;
	padding: 6px 0;
	color: var(--tf-menu-color);
}

.tf-menu > li > a:hover,
.tf-menu > li.current-menu-ancestor > a,
.tf-menu > li.current-menu-item > a,
.tf-menu > li:focus-within > a {
	color: var(--tf-menu-hover);
}

.tf-menu > li.current-menu-item > a {
	color: var(--tf-menu-active);
}

/* Hover styles */

.tf-nav--underline .tf-menu > li > a::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	height: 2px;
	background: currentcolor;
	transform: scaleX(0);
	transform-origin: start;
	transition: transform var(--tf-duration) var(--tf-ease);
}

.tf-nav--underline .tf-menu > li > a:hover::after,
.tf-nav--underline .tf-menu > li.current-menu-item > a::after {
	transform: scaleX(1);
}

.tf-nav--pill .tf-menu > li > a {
	padding: 8px 14px;
	border-radius: 999px;
	transition: background-color var(--tf-duration) var(--tf-ease), color var(--tf-duration) var(--tf-ease);
}

.tf-nav--pill .tf-menu > li > a:hover,
.tf-nav--pill .tf-menu > li.current-menu-item > a {
	background: color-mix(in srgb, var(--tf-menu-hover) 12%, transparent);
}

/* Submenu toggle (added by JS) */

.tf-submenu-toggle {
	display: inline-grid;
	place-items: center;
	width: 24px;
	height: 24px;
	margin-inline-start: 2px;
	padding: 0;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: inherit;
	cursor: pointer;
}

.tf-submenu-toggle:hover {
	background: transparent;
	color: var(--tf-menu-hover);
}

.tf-submenu-toggle .tf-icon {
	transition: transform var(--tf-duration) var(--tf-ease);
}

.is-open > .tf-submenu-toggle .tf-icon,
li:hover > .tf-submenu-toggle .tf-icon {
	transform: rotate(180deg);
}

/* Dropdowns (desktop) */

.tf-nav .sub-menu {
	position: absolute;
	top: 100%;
	inset-inline-start: 0;
	z-index: 60;
	min-width: var(--tf-submenu-width);
	padding: 8px 0;
	border: 1px solid var(--tf-color-border);
	border-radius: var(--tf-radius-sm);
	background: var(--tf-submenu-bg);
	box-shadow: 0 12px 32px -8px rgb(0 0 0 / 15%);
	font-size: 0.95em;
	font-weight: 500;
	text-transform: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition:
		opacity var(--tf-duration) var(--tf-ease),
		transform var(--tf-duration) var(--tf-ease),
		visibility 0s linear var(--tf-duration);
}

.tf-nav .sub-menu .sub-menu {
	top: -9px;
	inset-inline-start: 100%;
}

.tf-nav li:hover > .sub-menu,
.tf-nav li:focus-within > .sub-menu,
.tf-nav li.is-open > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition-delay: 0s;
}

.tf-nav .sub-menu a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 9px 18px;
	color: var(--tf-submenu-color);
}

.tf-nav .sub-menu a:hover,
.tf-nav .sub-menu .current-menu-item > a {
	background: var(--tf-submenu-hover-bg);
	color: var(--tf-menu-hover);
}

.tf-nav--dividers .sub-menu li + li {
	border-top: 1px solid var(--tf-color-border);
}

.tf-nav .sub-menu .tf-submenu-toggle {
	position: absolute;
	inset-inline-end: 8px;
	top: 50%;
	transform: translateY(-50%);
}

.tf-nav .sub-menu .tf-submenu-toggle .tf-icon {
	transform: rotate(-90deg);
}

[dir="rtl"] .tf-nav .sub-menu .tf-submenu-toggle .tf-icon {
	transform: rotate(90deg);
}

/* Header button and toggle */

.tf-header__button {
	font-size: calc(var(--tf-btn-size) - 1px);
	padding: calc(var(--tf-btn-padding) * 0.8);
	padding: 10px 20px;
}

.tf-menu-toggle {
	display: none;
	gap: 8px;
	align-items: center;
	padding: 8px;
	border: 0;
	border-radius: var(--tf-radius-sm);
	background: transparent;
	color: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.tf-menu-toggle:hover {
	background: var(--tf-color-surface);
	color: inherit;
}

.tf-menu-toggle--outline {
	padding: 8px 12px;
	border: 1px solid currentcolor;
}

/* Header search panel */

.tf-header-search {
	position: absolute;
	inset-inline: 0;
	top: 100%;
	z-index: 55;
	padding-block: 16px;
	border-bottom: 1px solid var(--tf-color-border);
	background: var(--tf-header-bg);
	box-shadow: 0 12px 32px -8px rgb(0 0 0 / 15%);
}

.tf-header-search__row {
	display: flex;
	gap: 8px;
	align-items: center;
}

.tf-header-search .tf-search-form {
	flex: 1;
}

/* Sticky */

.tf-has-sticky-header .tf-header {
	position: sticky;
	top: 0;
}

.admin-bar.tf-has-sticky-header .tf-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar.tf-has-sticky-header .tf-header {
		top: 46px;
	}
}

.tf-header.is-stuck {
	box-shadow: 0 2px 12px rgb(0 0 0 / 8%);
}

/* Transparent */

.tf-transparent-header .tf-header--transparent {
	position: absolute;
	inset-inline: 0;
	top: 0;
	border-bottom: 0;
	background: transparent;
	box-shadow: none;
	color: var(--tf-transparent-color);
	--tf-menu-color: var(--tf-transparent-color);
	--tf-site-title-color: var(--tf-transparent-color);
	--tf-menu-hover: var(--tf-transparent-color);
	--tf-menu-active: var(--tf-transparent-color);
	--tf-topbar-bg: transparent;
	--tf-topbar-color: var(--tf-transparent-color);
}

.tf-transparent-header.tf-has-sticky-header .tf-header--transparent {
	position: fixed;
}

.tf-transparent-header .tf-header--transparent.is-stuck {
	background: var(--tf-header-bg);
	color: var(--tf-menu-color);
	--tf-menu-color: initial;
	--tf-site-title-color: initial;
	--tf-menu-hover: initial;
	--tf-menu-active: initial;
}

.tf-transparent-header .tf-header--transparent-border {
	border-bottom: 1px solid color-mix(in srgb, var(--tf-transparent-color) 25%, transparent);
}

.tf-transparent-header .tf-header--transparent .tf-menu > li > a:hover {
	opacity: 0.75;
}

.tf-transparent-header .tf-header--transparent .tf-icon-btn:hover,
.tf-transparent-header .tf-header--transparent .tf-menu-toggle:hover {
	background: color-mix(in srgb, var(--tf-transparent-color) 15%, transparent);
}

/* Top bar */

.tf-topbar {
	background: var(--tf-topbar-bg);
	color: var(--tf-topbar-color);
	font-size: var(--tf-topbar-size);
	border-bottom: 1px solid color-mix(in srgb, currentcolor 12%, transparent);
}

.tf-topbar__row {
	display: flex;
	gap: 16px;
	align-items: center;
	justify-content: space-between;
	min-height: 40px;
	padding-block: 6px;
}

.tf-topbar__left p,
.tf-topbar__right p {
	margin: 0;
}

.tf-topbar a {
	color: inherit;
}

.tf-topbar a:hover {
	color: var(--tf-menu-hover);
}

.tf-topbar__menu {
	display: flex;
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Social icons */

.tf-social {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tf-social__link {
	display: inline-grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	color: inherit;
	transition: background-color var(--tf-duration) var(--tf-ease), color var(--tf-duration) var(--tf-ease);
}

.tf-social__link:hover {
	background: color-mix(in srgb, currentcolor 12%, transparent);
	color: var(--tf-color-accent);
}

/* Mobile navigation */

.tf-mobile-nav {
	z-index: 100;
	color: var(--tf-mobile-color);
	font-size: var(--tf-menu-size);
	font-weight: var(--tf-menu-weight);
	text-transform: var(--tf-menu-transform);
}

.tf-mobile-nav[hidden] {
	display: none;
}

.tf-mobile-nav .tf-menu {
	flex-direction: column;
	gap: 0;
	align-items: stretch;
}

.tf-mobile-nav .tf-menu li {
	border-bottom: 1px solid color-mix(in srgb, currentcolor 12%, transparent);
}

.tf-mobile-nav .tf-menu a {
	display: flex;
	flex: 1;
	align-items: center;
	padding: 14px 4px;
	color: inherit;
}

.tf-mobile-nav .tf-menu > li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}

.tf-mobile-nav .tf-menu > li > a {
	padding: 14px 4px;
}

.tf-mobile-nav .tf-submenu-toggle {
	width: 44px;
	height: 44px;
}

.tf-mobile-nav .sub-menu {
	display: none;
	flex-basis: 100%;
	padding-inline-start: 16px;
	font-size: 0.95em;
}

.tf-mobile-nav .is-open > .sub-menu {
	display: block;
}

.tf-mobile-nav .sub-menu li:last-child {
	border-bottom: 0;
}

.tf-mobile-nav .current-menu-item > a {
	color: var(--tf-menu-active);
}

.tf-mobile-nav__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
}

.tf-mobile-nav__foot {
	display: grid;
	gap: 16px;
	margin-top: 24px;
}

/* Dropdown style */

.tf-mobile-nav--dropdown {
	position: absolute;
	inset-inline: 0;
	z-index: 49;
	background: var(--tf-mobile-bg);
	border-bottom: 1px solid var(--tf-color-border);
	box-shadow: 0 16px 32px -12px rgb(0 0 0 / 20%);
}

.tf-mobile-nav--dropdown .tf-mobile-nav__panel {
	max-width: calc(var(--tf-container) + var(--tf-gutter) * 2);
	margin-inline: auto;
	padding: 8px var(--tf-gutter) 24px;
}

/* Off-canvas and full screen */

.tf-mobile-nav--offcanvas,
.tf-mobile-nav--fullscreen {
	position: fixed;
	inset: 0;
}

.tf-mobile-nav__backdrop {
	position: absolute;
	inset: 0;
	background: rgb(0 0 0 / 45%);
	opacity: 0;
	transition: opacity 280ms var(--tf-ease);
}

.tf-mobile-nav--offcanvas .tf-mobile-nav__panel {
	position: absolute;
	inset-block: 0;
	inset-inline-end: 0;
	width: min(360px, 88vw);
	padding: 20px 24px 32px;
	overflow-y: auto;
	background: var(--tf-mobile-bg);
	box-shadow: -8px 0 32px rgb(0 0 0 / 15%);
	transform: translateX(100%);
	transition: transform 280ms var(--tf-ease);
}

[dir="rtl"] .tf-mobile-nav--offcanvas .tf-mobile-nav__panel {
	transform: translateX(-100%);
}

.tf-mobile-nav--fullscreen .tf-mobile-nav__panel {
	position: absolute;
	inset: 0;
	padding: 20px var(--tf-gutter) 32px;
	overflow-y: auto;
	background: var(--tf-mobile-bg);
	opacity: 0;
	transition: opacity 280ms var(--tf-ease);
}

.tf-mobile-nav--fullscreen .tf-menu {
	max-width: 480px;
	margin: 24px auto 0;
	font-size: 1.25em;
}

.tf-mobile-nav--fullscreen .tf-mobile-nav__foot {
	max-width: 480px;
	margin-inline: auto;
}

.tf-mobile-nav.is-open .tf-mobile-nav__backdrop,
.tf-mobile-nav.is-open .tf-mobile-nav__panel {
	opacity: 1;
	transform: none;
}

.tf-nav-open {
	overflow: hidden;
}

/* ---------- Page title bar and breadcrumbs ---------- */

.tf-page-title--bar {
	padding-block: var(--tf-title-padding);
	background: var(--tf-title-bg);
	border-bottom: 1px solid var(--tf-color-border);
}

.tf-page-title--inline {
	padding-top: var(--tf-section);
	margin-bottom: calc(var(--tf-section) * -0.5);
}

.tf-page-title--center {
	text-align: center;
}

.tf-page-title--center .tf-breadcrumbs__list {
	justify-content: center;
}

.tf-page-title__heading {
	margin: 0;
	color: var(--tf-title-color);
}

.tf-page-title__description,
.tf-archive-description {
	max-width: 65ch;
	margin-top: 0.75em;
}

.tf-page-title--center .tf-page-title__description {
	margin-inline: auto;
}

.tf-archive-header {
	margin-bottom: var(--tf-gap);
}

.tf-archive-header .page-title {
	margin-bottom: 0.25em;
}

.tf-breadcrumbs {
	margin-bottom: 1em;
	font-size: 0.875rem;
}

.tf-breadcrumbs-row {
	padding-top: 16px;
}

.tf-breadcrumbs-row .tf-breadcrumbs {
	margin-bottom: 0;
}

.tf-page-title .tf-breadcrumbs {
	margin-bottom: 0.75em;
}

.tf-breadcrumbs__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0 0.5em;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tf-breadcrumbs__sep {
	margin-inline-end: 0.5em;
	opacity: 0.5;
}

.tf-breadcrumbs a {
	color: inherit;
}

.tf-breadcrumbs a:hover {
	color: var(--tf-color-link-hover);
}

.tf-breadcrumbs [aria-current] {
	color: var(--tf-color-heading);
	font-weight: 500;
}

/* ---------- Posts: cards and lists ---------- */

.tf-posts {
	display: grid;
	gap: var(--tf-gap);
}

.tf-posts--grid {
	gap: clamp(24px, 3vw, 40px);
}

@media (min-width: 600px) {
	.tf-posts--cols-2,
	.tf-posts--cols-3,
	.tf-posts--cols-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 992px) {
	.tf-posts--cols-3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.tf-posts--cols-4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.tf-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.tf-card__image {
	margin: 0 0 20px;
	overflow: hidden;
	border-radius: var(--tf-radius);
}

.tf-card__image img {
	display: block;
	width: 100%;
	height: auto;
	transition: transform 500ms var(--tf-ease);
}

.tf-posts--ratio-16-9 .tf-card__image img { aspect-ratio: 16 / 9; object-fit: cover; }
.tf-posts--ratio-4-3 .tf-card__image img { aspect-ratio: 4 / 3; object-fit: cover; }
.tf-posts--ratio-1-1 .tf-card__image img { aspect-ratio: 1; object-fit: cover; }

.tf-posts--zoom .tf-card:hover .tf-card__image img {
	transform: scale(1.04);
}

.tf-card__header {
	margin-bottom: 8px;
}

.tf-card .entry-title {
	margin: 0;
	font-size: var(--tf-h3);
}

.tf-posts--grid .tf-card .entry-title {
	font-size: var(--tf-h4);
}

.tf-card .entry-title a {
	color: var(--tf-color-heading);
}

.tf-card .entry-title a:hover {
	color: var(--tf-color-accent);
}

.tf-card .tf-meta {
	margin-bottom: 12px;
}

.tf-card__excerpt p:last-child {
	margin-bottom: 0;
}

.tf-entry__more {
	margin: 16px 0 0;
}

.tf-more-link {
	display: inline-flex;
	gap: 6px;
	align-items: center;
	font-weight: 600;
}

.tf-more-link .tf-icon {
	transition: transform var(--tf-duration) var(--tf-ease);
}

.tf-more-link:hover .tf-icon {
	transform: translateX(3px);
}

/* Card style */

.tf-posts--card .tf-card {
	border-radius: var(--tf-radius);
	background: var(--tf-color-background);
	box-shadow: var(--tf-shadow);
	overflow: hidden;
}

.tf-posts--card .tf-card__image {
	margin: 0;
	border-radius: 0;
}

.tf-posts--card .tf-card > :not(.tf-card__image) {
	margin-inline: 24px;
}

.tf-posts--card .tf-card > .tf-card__image + * {
	margin-top: 24px;
}

.tf-posts--card .tf-card > :first-child:not(.tf-card__image) {
	margin-top: 24px;
}

.tf-posts--card .tf-card > :last-child {
	margin-bottom: 24px;
}

/* List layout: image beside text on wide screens */

@media (min-width: 768px) {
	.tf-posts--list .tf-card:has(.tf-card__image) {
		display: grid;
		grid-template-columns: 40% minmax(0, 1fr);
		column-gap: 32px;
		align-items: start;
	}

	.tf-posts--list .tf-card .tf-card__image {
		grid-column: 1;
		grid-row: 1 / span 10;
		margin: 0;
	}

	.tf-posts--list .tf-card > :not(.tf-card__image) {
		grid-column: 2;
	}

	.tf-posts--list.tf-posts--card .tf-card > :not(.tf-card__image) {
		margin-inline: 0 24px;
	}

	.tf-posts--list.tf-posts--card .tf-card > .tf-card__image + *,
	.tf-posts--list.tf-posts--card .tf-card > :first-child:not(.tf-card__image) {
		margin-top: 24px;
	}

	.tf-posts--list.tf-posts--card .tf-card__image img {
		height: 100%;
	}
}

/* Meta */

.tf-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0 8px;
	align-items: center;
	font-size: 0.875rem;
	color: color-mix(in srgb, var(--tf-color-text) 80%, transparent);
}

.tf-meta a {
	color: inherit;
}

.tf-meta a:hover {
	color: var(--tf-color-accent);
}

.tf-meta__sep {
	opacity: 0.5;
}

.tf-badge {
	display: inline-block;
	margin-bottom: 8px;
	padding: 2px 10px;
	border-radius: 999px;
	background: var(--tf-color-accent);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

/* Pagination */

.tf-main .navigation.pagination,
.tf-main .posts-navigation {
	margin-top: var(--tf-gap);
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.pagination .nav-links {
	justify-content: center;
}

.page-numbers {
	display: inline-flex;
	gap: 6px;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border: 1px solid var(--tf-color-border);
	border-radius: var(--tf-radius-sm);
	color: var(--tf-color-heading);
	font-weight: 600;
}

a.page-numbers:hover {
	border-color: var(--tf-color-accent);
	color: var(--tf-color-accent);
}

.page-numbers.current {
	border-color: var(--tf-color-accent);
	background: var(--tf-color-accent);
	color: #fff;
}

.page-numbers.dots {
	border: 0;
}

.posts-navigation .nav-links,
.post-navigation .nav-links {
	justify-content: space-between;
}

.posts-navigation .nav-previous a,
.posts-navigation .nav-next a {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	font-weight: 600;
}

/* ---------- Single posts and pages ---------- */

.tf-entry--single .tf-entry__header,
.tf-entry--page .tf-entry__header {
	margin-bottom: var(--tf-gap);
}

.tf-entry--single .entry-title,
.tf-entry--page .entry-title {
	margin-bottom: 0.4em;
}

.tf-entry__header .tf-meta {
	margin-bottom: 24px;
}

.tf-entry__header .tf-meta + .tf-entry__image {
	margin-top: 8px;
}

.tf-entry__image {
	margin: 0 0 24px;
	border-radius: var(--tf-radius);
	overflow: hidden;
}

.tf-entry__image img {
	display: block;
	width: 100%;
}

.tf-entry__header .tf-entry__image {
	margin-top: 24px;
	margin-bottom: 0;
}

.tf-entry__image--wide {
	width: calc(100% + 160px);
	max-width: calc(100vw - var(--tf-gutter) * 2);
	margin-inline: calc(-80px);
}

@media (max-width: 1400px) {
	.tf-entry__image--wide {
		width: 100%;
		margin-inline: 0;
	}
}

.tf-entry__footer {
	margin-top: var(--tf-gap);
}

.tf-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 0.875rem;
}

.tf-tags a {
	padding: 4px 12px;
	border: 1px solid var(--tf-color-border);
	border-radius: 999px;
	color: var(--tf-color-text);
}

.tf-tags a:hover {
	border-color: var(--tf-color-accent);
	color: var(--tf-color-accent);
}

.tf-author-box {
	display: flex;
	gap: 24px;
	margin-top: var(--tf-gap);
	padding: 24px;
	border-radius: var(--tf-radius);
	background: var(--tf-color-surface);
}

.tf-author-box__avatar {
	flex: none;
	border-radius: 50%;
}

.tf-author-box__name {
	margin-bottom: 0.4em;
	font-size: var(--tf-h5);
}

.tf-author-box p:last-child {
	margin-bottom: 0;
}

.post-navigation {
	margin-top: var(--tf-gap);
	padding-top: 24px;
	border-top: 1px solid var(--tf-color-border);
}

.post-navigation .nav-links {
	display: grid;
	gap: 24px;
}

@media (min-width: 600px) {
	.post-navigation .nav-links {
		grid-template-columns: 1fr 1fr;
	}

	.post-navigation .nav-next {
		text-align: end;
	}

	.post-navigation .nav-next .tf-post-nav__label {
		justify-content: flex-end;
	}
}

.post-navigation a {
	display: block;
	color: var(--tf-color-heading);
}

.tf-post-nav__label {
	display: flex;
	gap: 6px;
	align-items: center;
	margin-bottom: 4px;
	font-size: 0.8125rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--tf-color-text);
}

.tf-post-nav__title {
	font-weight: 600;
}

.post-navigation a:hover .tf-post-nav__title {
	color: var(--tf-color-accent);
}

.tf-page-links {
	margin-top: 1.5em;
	font-weight: 600;
}

.tf-page-links .post-page-numbers {
	display: inline-block;
	min-width: 2em;
	margin-inline-start: 4px;
	padding: 2px 8px;
	border: 1px solid var(--tf-color-border);
	border-radius: var(--tf-radius-sm);
	text-align: center;
}

.tf-page-links .current {
	background: var(--tf-color-accent);
	border-color: var(--tf-color-accent);
	color: #fff;
}

.sticky {
	position: relative;
}

.bypostauthor {
	position: relative;
}

.edit-link {
	font-size: 0.875rem;
}

/* ---------- Entry content: blocks and classic markup ---------- */

.entry-content > * {
	margin-left: auto;
	margin-right: auto;
}

.entry-content > *:last-child {
	margin-bottom: 0;
}

.entry-content .alignwide {
	max-width: var(--wp--style--global--wide-size);
	width: calc(100% + 160px);
	margin-inline: -80px;
}

@media (max-width: 1400px) {
	.entry-content .alignwide {
		width: 100%;
		margin-inline: 0;
	}
}

.tf-layout--full .entry-content .alignfull,
.tf-entry--full .entry-content .alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-inline: calc(50% - 50vw);
}

.tf-layout--full .entry-content .alignwide,
.tf-entry--full .entry-content .alignwide {
	width: 100%;
	max-width: var(--wp--style--global--wide-size);
	margin-inline: auto;
}

.tf-layout--full .entry-content > :not(.alignfull):not(.alignwide) {
	max-width: var(--tf-container);
}

.tf-entry--full .entry-content > :not(.alignfull):not(.alignwide) {
	max-width: var(--tf-container);
}

.tf-site-boxed .entry-content .alignfull {
	width: 100%;
	max-width: none;
	margin-inline: 0;
}

.alignleft {
	float: left;
	margin: 0.5em 1.5em 1em 0;
}

.alignright {
	float: right;
	margin: 0.5em 0 1em 1.5em;
}

.aligncenter {
	display: block;
	margin-inline: auto;
	clear: both;
}

.wp-caption {
	max-width: 100%;
}

.wp-caption-text,
.wp-element-caption,
figcaption {
	margin-top: 0.5em;
	font-size: 0.875rem;
	text-align: center;
	opacity: 0.8;
}

.gallery {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(var(--tf-gallery-cols, 3), 1fr);
	margin-bottom: var(--tf-paragraph-margin);
}

.gallery-columns-1 { --tf-gallery-cols: 1; }
.gallery-columns-2 { --tf-gallery-cols: 2; }
.gallery-columns-4 { --tf-gallery-cols: 4; }
.gallery-columns-5 { --tf-gallery-cols: 5; }
.gallery-columns-6 { --tf-gallery-cols: 6; }

.gallery-item {
	margin: 0;
}

.gallery-caption {
	font-size: 0.8125rem;
}

.wp-block-quote,
.wp-block-pullquote {
	border-color: var(--tf-color-accent);
}

.wp-block-pullquote {
	padding: 2em 0;
	border-top: 3px solid var(--tf-color-accent);
	border-bottom: 3px solid var(--tf-color-accent);
	text-align: center;
}

.wp-block-pullquote blockquote {
	border: 0;
	padding: 0;
}

.wp-block-quote.is-style-tf-testimonial {
	padding: 32px;
	border: 0;
	border-radius: var(--tf-radius);
	background: var(--tf-color-surface);
	font-size: 1.0625em;
}

.wp-block-quote.is-style-tf-testimonial cite {
	color: var(--tf-color-heading);
	font-weight: 600;
}

.wp-block-group.is-style-tf-card {
	padding: 32px;
	border-radius: var(--tf-radius);
	background: var(--tf-color-background);
	box-shadow: var(--tf-shadow);
}

.wp-block-image.is-style-tf-rounded img {
	border-radius: var(--tf-radius);
}

.wp-block-separator {
	max-width: 100px;
	border: 0;
	height: 2px;
	background: var(--tf-color-border);
}

.wp-block-separator.is-style-wide {
	max-width: none;
}

.wp-block-table td,
.wp-block-table th {
	border-color: var(--tf-color-border);
}

.wp-block-cover,
.wp-block-cover-image {
	border-radius: var(--tf-radius);
}

.wp-block-cover.alignfull {
	border-radius: 0;
}

.wp-block-button__link {
	line-height: 1.2;
}

.wp-block-search__button {
	padding-inline: 1em;
}

.wp-block-search .wp-block-search__input {
	border: 1px solid var(--tf-color-border);
}

.has-text-align-center {
	text-align: center;
}

.has-small-font-size { font-size: 0.875em; }
.has-medium-font-size { font-size: 1.125em; }
.has-large-font-size { font-size: 1.5em; }
.has-x-large-font-size { font-size: 2em; }

/* Theme palette classes (match theme.json slugs) */

.has-tf-accent-color { color: var(--tf-color-accent) !important; }
.has-tf-accent-background-color { background-color: var(--tf-color-accent) !important; }
.has-tf-accent-hover-color { color: var(--tf-color-accent-hover) !important; }
.has-tf-accent-hover-background-color { background-color: var(--tf-color-accent-hover) !important; }
.has-tf-heading-color { color: var(--tf-color-heading) !important; }
.has-tf-heading-background-color { background-color: var(--tf-color-heading) !important; }
.has-tf-text-color { color: var(--tf-color-text) !important; }
.has-tf-text-background-color { background-color: var(--tf-color-text) !important; }
.has-tf-background-color { color: var(--tf-color-background) !important; }
.has-tf-background-background-color { background-color: var(--tf-color-background) !important; }
.has-tf-surface-color { color: var(--tf-color-surface) !important; }
.has-tf-surface-background-color { background-color: var(--tf-color-surface) !important; }
.has-tf-border-color { color: var(--tf-color-border) !important; }
.has-tf-border-background-color { background-color: var(--tf-color-border) !important; }
.has-tf-dark-color { color: var(--tf-color-dark) !important; }
.has-tf-dark-background-color { background-color: var(--tf-color-dark) !important; }
.has-tf-light-color { color: var(--tf-color-light) !important; }
.has-tf-light-background-color { background-color: var(--tf-color-light) !important; }

.has-tf-dark-background-color,
.has-tf-dark-background-color h1,
.has-tf-dark-background-color h2,
.has-tf-dark-background-color h3,
.has-tf-dark-background-color h4,
.has-tf-dark-background-color h5,
.has-tf-dark-background-color h6 {
	color: var(--tf-color-light);
}

/* ---------- Comments ---------- */

.tf-comments {
	margin-top: var(--tf-gap);
	padding-top: var(--tf-gap);
	border-top: 1px solid var(--tf-color-border);
}

.tf-comments__title,
.tf-comments__reply-title {
	font-size: var(--tf-h4);
}

.tf-comments__list,
.tf-comments__list .children {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tf-comments__list .children {
	margin-inline-start: 24px;
}

@media (min-width: 600px) {
	.tf-comments__list .children {
		margin-inline-start: 64px;
	}
}

.comment-body {
	position: relative;
	margin-bottom: 24px;
	padding: 20px 20px 20px 72px;
	border: 1px solid var(--tf-color-border);
	border-radius: var(--tf-radius);
}

.comment-body .avatar {
	position: absolute;
	top: 20px;
	inset-inline-start: 16px;
	border-radius: 50%;
}

.comment-meta {
	margin-bottom: 8px;
}

.comment-author {
	font-weight: 600;
	color: var(--tf-color-heading);
}

.comment-author .fn {
	font-style: normal;
}

.comment-author .says {
	display: none;
}

.comment-metadata {
	font-size: 0.8125rem;
}

.comment-metadata a {
	color: var(--tf-color-text);
	opacity: 0.8;
}

.comment-content p:last-child {
	margin-bottom: 0;
}

.comment-reply-link {
	display: inline-block;
	margin-top: 8px;
	font-size: 0.875rem;
	font-weight: 600;
}

.comment-respond {
	margin-top: var(--tf-gap);
}

.comment-form-comment textarea {
	width: 100%;
}

.comment-form p {
	margin-bottom: 1em;
}

.comment-form-cookies-consent {
	display: flex;
	gap: 8px;
	align-items: flex-start;
}

.comment-form-cookies-consent label {
	margin: 0;
	font-weight: 400;
	color: inherit;
}

.comment-notes,
.logged-in-as {
	font-size: 0.875rem;
}

.comment-navigation .nav-links {
	justify-content: space-between;
	margin-bottom: 24px;
}

.pingback .comment-body,
.trackback .comment-body {
	padding-inline-start: 20px;
}

/* ---------- Widgets ---------- */

.tf-widget {
	margin-bottom: 40px;
}

.tf-widget:last-child {
	margin-bottom: 0;
}

.tf-widget__title {
	margin-bottom: 16px;
	font-size: var(--tf-h5);
}

.tf-widget ul,
.tf-widget ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tf-widget li {
	padding: 6px 0;
}

.tf-widget li + li {
	border-top: 1px solid var(--tf-color-border);
}

.tf-widget li ul {
	margin-top: 6px;
	padding-inline-start: 16px;
}

.tf-widget li ul li:first-child {
	border-top: 1px solid var(--tf-color-border);
}

.tf-widget a {
	color: var(--tf-color-text);
}

.tf-widget a:hover {
	color: var(--tf-color-accent);
}

.tf-widget select {
	width: 100%;
}

.tf-widget .wp-block-group > * {
	margin-bottom: 1em;
}

.tf-sidebar--boxed .tf-widget {
	padding: 24px;
	border-radius: var(--tf-radius);
	background: var(--tf-color-background);
	box-shadow: var(--tf-shadow);
}

.tf-sidebar--boxed .tf-widget + .tf-widget {
	margin-top: 24px;
}

@media (min-width: 992px) {
	.tf-sidebar--sticky .tf-sidebar__inner {
		position: sticky;
		top: 24px;
	}

	.tf-has-sticky-header .tf-sidebar--sticky .tf-sidebar__inner {
		top: 120px;
	}
}

.wp-block-tag-cloud a,
.tagcloud a {
	display: inline-block;
	margin: 0 4px 8px 0;
	padding: 4px 12px;
	border: 1px solid var(--tf-color-border);
	border-radius: 999px;
	font-size: 0.875rem !important;
}

.wp-block-tag-cloud a:hover,
.tagcloud a:hover {
	border-color: var(--tf-color-accent);
}

.wp-block-calendar table,
.widget_calendar table {
	margin: 0;
	text-align: center;
}

.wp-block-calendar td,
.wp-block-calendar th,
.widget_calendar td,
.widget_calendar th {
	padding: 4px;
	border: 0;
}

.wp-block-calendar th,
.widget_calendar th {
	background: none;
}

.wp-block-calendar tfoot td,
.widget_calendar tfoot td {
	text-align: start;
}

.widget_recent_comments li,
.wp-block-latest-comments li {
	line-height: 1.5;
}

.wp-block-latest-posts__post-date,
.wp-block-latest-comments__comment-date {
	font-size: 0.8125rem;
	opacity: 0.8;
}

/* ---------- Footer ---------- */

.tf-footer {
	color: var(--tf-footer-color);
}

.tf-footer a {
	color: var(--tf-footer-link);
}

.tf-footer a:hover {
	color: var(--tf-footer-link-hover);
}

.tf-footer__widgets {
	padding-block: var(--tf-footer-padding);
	background: var(--tf-footer-bg);
}

.tf-footer__widgets--border {
	border-top: 1px solid var(--tf-color-border);
}

.tf-footer__grid {
	display: grid;
	gap: 40px;
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 600px) {
	.tf-footer__widgets--2 .tf-footer__grid,
	.tf-footer__widgets--3 .tf-footer__grid,
	.tf-footer__widgets--4 .tf-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 992px) {
	.tf-footer__widgets--3 .tf-footer__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.tf-footer__widgets--4 .tf-footer__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.tf-footer .tf-widget__title,
.tf-footer h1,
.tf-footer h2,
.tf-footer h3,
.tf-footer h4 {
	color: var(--tf-footer-heading);
}

.tf-footer .tf-widget a {
	color: var(--tf-footer-link);
}

.tf-footer .tf-widget a:hover {
	color: var(--tf-footer-link-hover);
}

.tf-footer .tf-widget li + li,
.tf-footer .tf-widget li ul li:first-child {
	border-top-color: color-mix(in srgb, currentcolor 12%, transparent);
}

.tf-footer__placeholder {
	padding: 24px;
	border: 1px dashed var(--tf-color-border);
	border-radius: var(--tf-radius);
	font-size: 0.875rem;
	opacity: 0.7;
}

.tf-footer__bottom {
	padding-block: 20px;
	background: var(--tf-bottom-bg);
	color: var(--tf-bottom-color);
	font-size: var(--tf-bottom-size);
}

.tf-footer__bottom--border {
	border-top: 1px solid color-mix(in srgb, currentcolor 12%, transparent);
}

.tf-footer__bottom-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 32px;
	align-items: center;
	justify-content: space-between;
}

.tf-footer__bottom--1 .tf-footer__bottom-row {
	justify-content: center;
	text-align: center;
}

.tf-footer__bottom-section {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 24px;
	align-items: center;
}

.tf-footer__bottom a {
	color: inherit;
}

.tf-footer__bottom a:hover {
	color: var(--tf-footer-link-hover);
}

.tf-copyright p {
	margin: 0;
}

.tf-footer-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (max-width: 599px) {
	.tf-footer__bottom-row,
	.tf-footer__bottom-section {
		justify-content: center;
		text-align: center;
	}
}

/* ---------- Scroll to top ---------- */

.tf-scroll-top {
	position: fixed;
	bottom: 24px;
	z-index: 90;
	display: inline-grid;
	place-items: center;
	width: var(--tf-stt-size);
	height: var(--tf-stt-size);
	padding: 0;
	border: 0;
	border-radius: var(--tf-stt-radius);
	background: var(--tf-stt-bg);
	color: var(--tf-stt-color);
	box-shadow: 0 6px 20px -6px rgb(0 0 0 / 30%);
	cursor: pointer;
	opacity: 0;
	transform: translateY(12px);
	transition: opacity var(--tf-duration) var(--tf-ease), transform var(--tf-duration) var(--tf-ease), background-color var(--tf-duration) var(--tf-ease);
}

.tf-scroll-top--right {
	inset-inline-end: 24px;
}

.tf-scroll-top--left {
	inset-inline-start: 24px;
}

.tf-scroll-top.is-visible {
	opacity: 1;
	transform: none;
}

.tf-scroll-top:hover {
	background: var(--tf-color-accent-hover);
	color: var(--tf-stt-color);
}

/* ---------- 404 and empty states ---------- */

.tf-404 {
	max-width: 560px;
	margin-inline: auto;
	text-align: center;
}

.tf-404__code {
	margin: 0;
	font-family: var(--tf-font-heading);
	font-size: clamp(80px, 15vw, 140px);
	font-weight: 800;
	line-height: 1;
	color: var(--tf-color-border);
}

.tf-404__search {
	max-width: 400px;
	margin: 24px auto;
}

.tf-no-results .tf-search-form {
	max-width: 480px;
}

/* ---------- Utilities ---------- */

.tf-site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.tf-content {
	flex: 1;
}

.tf-transparent-header .tf-content {
	padding-top: 0;
}

.tf-transparent-header .tf-page-title--bar {
	padding-top: calc(var(--tf-title-padding) + 100px);
}

.tf-transparent-header .tf-page-title--inline,
.tf-transparent-header .tf-layout {
	padding-top: 120px;
}

.tf-transparent-header .tf-page-title ~ .tf-content .tf-layout {
	padding-top: var(--tf-section);
}

.tf-transparent-header .tf-entry--full {
	margin-top: -120px;
}

@media print {
	.tf-header,
	.tf-footer,
	.tf-scroll-top,
	.tf-sidebar,
	.post-navigation,
	.comment-respond {
		display: none !important;
	}
}
