/*
Theme Name: ThemeZone Premium
Theme URI: https://www.themezone.co/
Author: ThemeZone
Author URI: https://www.themezone.co/
Description: A fast, lightweight editorial theme for ThemeZone.co: technology, WordPress, AI tools and software guides. Clean white design, accessible navigation, a homepage built from your categories and posts, a reading-friendly single post layout that also respects posts written as full custom HTML, a secure contact form, automatic links to your legal pages and optional, clearly separated advertisement areas.
Version: 1.0.2
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: themezone-premium
Tags: blog, news, one-column, grid-layout, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, wide-blocks, editor-style

ThemeZone Premium is distributed under the terms of the GNU GPL v2 or later.
All front-end styles live in this one file: no web fonts, no CSS framework.

Contents
  1. Tokens and base
  2. Layout helpers
  3. Header, navigation and search
  4. Buttons, chips and forms
  5. Homepage
  6. Article cards and grids
  7. Archive, search and 404 headers
  8. Single articles and pages
  9. Comments
 10. Footer
 11. Advertisements
 12. Print and reduced motion
*/

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

.screen-reader-text:focus {
	background-color: #fff;
	border-radius: 8px;
	box-shadow: 0 0 0 3px #1d4ed8;
	clip: auto !important;
	clip-path: none;
	color: #0f172a;
	display: block;
	font-size: 1rem;
	font-weight: 700;
	height: auto;
	left: 12px;
	line-height: normal;
	padding: 14px 20px;
	text-decoration: none;
	top: 12px;
	width: auto;
	z-index: 100000;
}

/* WordPress core alignment and caption classes. */
.alignleft {
	float: left;
	margin: 0.4em 1.5em 1em 0;
}

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

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

.wp-caption {
	max-width: 100%;
	margin-bottom: 1.5em;
}

.wp-caption img[class*="wp-image-"] {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption-text,
.gallery-caption {
	color: #55627a;
	font-size: 0.875rem;
	line-height: 1.5;
	margin: 0.6em 0 0;
	text-align: center;
}

.sticky,
.bypostauthor {
	position: relative;
}

/* =========================================================================
   1. Tokens and base
   ========================================================================= */

:root {
	--tz-ink: #0f172a;
	--tz-ink-2: #334155;
	--tz-muted: #55627a;
	--tz-line: #e2e8f0;
	--tz-line-2: #cbd5e1;
	--tz-wash: #f8fafc;
	--tz-wash-2: #f1f5f9;
	--tz-blue: #1d4ed8;
	--tz-blue-dark: #1e40af;
	--tz-blue-soft: #eef3ff;
	--tz-blue-line: #c9d7fb;
	--tz-indigo: #4338ca;
	--tz-indigo-soft: #eef0ff;
	--tz-grid-line: rgba(29, 78, 216, 0.075);
	--tz-green: #15803d;
	--tz-green-bg: #ecfdf3;
	--tz-green-line: #bbf7d0;
	--tz-red: #b91c1c;
	--tz-red-bg: #fef2f2;
	--tz-red-line: #fecaca;
	--tz-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
	--tz-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
	--tz-gutter: clamp(16px, 4vw, 32px);
	--tz-max: 1200px;
	--tz-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 12px 32px -18px rgba(15, 23, 42, 0.28);
}

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

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

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	background: #fff;
	color: var(--tz-ink-2);
	font-family: var(--tz-sans);
	font-size: 1rem;
	line-height: 1.6;
	margin: 0;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img,
video,
iframe,
embed,
object {
	max-width: 100%;
}

img {
	height: auto;
}

a {
	color: var(--tz-blue);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--tz-blue-dark);
}

:focus-visible {
	outline: 3px solid var(--tz-blue);
	outline-offset: 2px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--tz-ink);
	font-weight: 700;
	line-height: 1.25;
	margin: 0 0 0.5em;
}

p {
	margin: 0 0 1em;
}

button,
input,
select,
textarea {
	font: inherit;
}

.site-main {
	display: block;
	min-height: 50vh;
	overflow-x: clip;
}

.site-main:focus {
	outline: none;
}

/* =========================================================================
   2. Layout helpers
   ========================================================================= */

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

.container--wide {
	max-width: calc(1040px + 2 * var(--tz-gutter));
}

.container--content {
	max-width: calc(880px + 2 * var(--tz-gutter));
}

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

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

.section {
	padding: clamp(48px, 7vw, 88px) 0;
}

.section--tight {
	padding: clamp(32px, 5vw, 56px) 0;
}

.section-head {
	margin-bottom: clamp(24px, 3vw, 36px);
	max-width: 720px;
}

.section-head--row {
	align-items: flex-end;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	justify-content: space-between;
	max-width: none;
}

.section-title {
	font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem);
	font-weight: 800;
	letter-spacing: -0.025em;
	line-height: 1.15;
	margin: 0;
}

.section-intro {
	color: var(--tz-muted);
	font-size: 1.0625rem;
	margin: 10px 0 0;
}

.section-link {
	font-weight: 700;
	text-decoration: none;
}

.section-link:hover {
	text-decoration: underline;
}

/* The faint blueprint grid that marks ThemeZone's headers and image placeholders. */
.hero::before,
.archive-header::before,
.not-found::before {
	background-image:
		linear-gradient(to right, var(--tz-grid-line) 1px, transparent 1px),
		linear-gradient(to bottom, var(--tz-grid-line) 1px, transparent 1px);
	background-position: -1px -1px;
	background-size: 32px 32px;
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
	z-index: -1;
}

/* =========================================================================
   3. Header, navigation and search
   ========================================================================= */

.site-header {
	background: #fff;
	border-bottom: 1px solid var(--tz-line);
	position: relative;
	z-index: 50;
}

.header-inner {
	align-items: center;
	display: flex;
	gap: 12px 20px;
	min-height: 72px;
}

.site-branding {
	flex: 0 0 auto;
	min-width: 0;
}

.site-logo {
	align-items: center;
	color: var(--tz-ink);
	display: inline-flex;
	gap: 10px;
	text-decoration: none;
}

.site-logo:hover {
	color: var(--tz-ink);
}

.site-logo-mark {
	background: var(--tz-blue);
	border-radius: 10px;
	color: #fff;
	display: inline-grid;
	flex: none;
	font-size: 0.8125rem;
	font-weight: 800;
	height: 36px;
	letter-spacing: 0.02em;
	place-items: center;
	width: 36px;
}

.site-logo-text {
	font-size: 1.375rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1;
	white-space: nowrap;
}

.site-logo-hi {
	color: var(--tz-blue);
}

.custom-logo-link {
	display: inline-block;
}

.custom-logo-link img {
	display: block;
	max-height: 48px;
	width: auto;
}

.main-nav {
	display: flex;
	flex: 1 1 auto;
	justify-content: flex-end;
	min-width: 0;
}

.main-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.main-nav .menu {
	align-items: center;
	display: flex;
	flex-wrap: nowrap;
	gap: 2px;
}

.main-nav .menu > li {
	align-items: center;
	display: flex;
	position: relative;
}

.main-nav .menu > li > a,
.menu-topics-button {
	align-items: center;
	background: none;
	border: 0;
	border-radius: 8px;
	color: var(--tz-ink-2);
	cursor: pointer;
	display: inline-flex;
	font-size: 0.9375rem;
	font-weight: 600;
	gap: 4px;
	line-height: 1.2;
	padding: 10px 12px;
	text-decoration: none;
	white-space: nowrap;
}

.main-nav .menu > li > a:hover,
.menu-topics-button:hover {
	background: var(--tz-wash-2);
	color: var(--tz-ink);
}

.main-nav .menu > li.current-menu-item > a,
.main-nav .menu > li.current_page_item > a,
.main-nav .menu > li.current-menu-ancestor > a,
.main-nav .menu > li.current-menu-parent > a {
	color: var(--tz-blue);
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 8px;
}

.main-nav .menu > li.menu-item-has-children > a {
	padding-right: 4px;
}

.submenu-toggle {
	align-items: center;
	background: none;
	border: 0;
	border-radius: 8px;
	color: var(--tz-ink-2);
	cursor: pointer;
	display: inline-flex;
	height: 32px;
	justify-content: center;
	padding: 0;
	width: 28px;
}

.submenu-toggle:hover {
	background: var(--tz-wash-2);
	color: var(--tz-ink);
}

.submenu-toggle .tzp-icon,
.menu-topics-button .tzp-icon {
	transition: transform 0.15s ease;
}

[aria-expanded="true"] > .tzp-icon--chevron {
	transform: rotate(180deg);
}

.main-nav .sub-menu {
	background: #fff;
	border: 1px solid var(--tz-line);
	border-radius: 12px;
	box-shadow: var(--tz-shadow);
	display: none;
	left: 0;
	max-width: min(320px, calc(100vw - 32px));
	min-width: 240px;
	padding: 8px;
	position: absolute;
	top: calc(100% + 6px);
	width: max-content;
	z-index: 60;
}

/* Keeps the menu open while the pointer travels from the item to its submenu. */
.main-nav .sub-menu::before {
	content: "";
	height: 8px;
	left: 0;
	position: absolute;
	right: 0;
	top: -8px;
}

.main-nav .menu > li:nth-last-child(-n+2) > .sub-menu {
	left: auto;
	right: 0;
}

.main-nav .sub-menu li {
	break-inside: avoid;
}

.main-nav .sub-menu a {
	border-radius: 8px;
	color: var(--tz-ink-2);
	display: block;
	font-size: 0.9375rem;
	font-weight: 500;
	padding: 9px 12px;
	text-decoration: none;
}

.main-nav .sub-menu a:hover,
.main-nav .sub-menu .current-menu-item > a {
	background: var(--tz-blue-soft);
	color: var(--tz-blue);
}

.main-nav .menu-item-topics > .sub-menu:has(> li:nth-child(7)) {
	column-gap: 4px;
	columns: 2;
	max-width: calc(100vw - 32px);
	width: 460px;
}

.main-nav li.is-open > .sub-menu {
	display: block;
}

/* A third menu level is listed inside its parent's dropdown, slightly indented. */
.main-nav .sub-menu .sub-menu,
.js.nav-compact .main-nav .sub-menu .sub-menu {
	background: none;
	border: 0;
	border-left: 2px solid var(--tz-line);
	border-radius: 0;
	box-shadow: none;
	display: block;
	margin: 2px 0 4px 12px;
	max-width: none;
	min-width: 0;
	padding: 0 0 0 6px;
	position: static;
	width: auto;
}

.main-nav .sub-menu .sub-menu::before {
	display: none;
}

@media (hover: hover) and (pointer: fine) {
	html:not(.nav-compact) .main-nav li:not(.is-dismissed):hover > .sub-menu {
		display: block;
	}
}

.no-js .main-nav li:focus-within > .sub-menu {
	display: block;
}

.header-actions {
	align-items: center;
	display: flex;
	flex: 0 0 auto;
	gap: 8px;
	margin-left: auto;
}

.icon-button {
	align-items: center;
	background: #fff;
	border: 1px solid var(--tz-line);
	border-radius: 10px;
	color: var(--tz-ink);
	cursor: pointer;
	display: inline-flex;
	gap: 8px;
	height: 44px;
	justify-content: center;
	min-width: 44px;
	padding: 0 10px;
}

.icon-button:hover {
	background: var(--tz-wash-2);
	border-color: var(--tz-line-2);
}

.menu-toggle-icon {
	display: inline-flex;
}

.menu-toggle,
.menu-toggle-icon--close,
.menu-toggle[aria-expanded="true"] .menu-toggle-icon--open {
	display: none;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon--close {
	display: inline-flex;
}

.menu-toggle-label {
	font-size: 0.9375rem;
	font-weight: 600;
	padding-right: 2px;
}

/* Compact navigation: small screens, or a menu too long for one line (decided in main.js). */
.js.nav-compact .menu-toggle {
	display: inline-flex;
}

.js.nav-compact .main-nav {
	background: #fff;
	border-bottom: 1px solid var(--tz-line);
	box-shadow: 0 18px 30px -20px rgba(15, 23, 42, 0.3);
	display: none;
	left: 0;
	max-height: calc(100vh - 72px);
	overflow-y: auto;
	padding: 4px var(--tz-gutter) 20px;
	position: absolute;
	right: 0;
	top: 100%;
}

.js.nav-compact .site-header.is-menu-open .main-nav {
	display: block;
}

.js.nav-compact .main-nav .menu {
	align-items: stretch;
	flex-direction: column;
	gap: 0;
	margin: 0 auto;
	max-width: var(--tz-max);
}

.js.nav-compact .main-nav .menu > li {
	border-bottom: 1px solid var(--tz-line);
	flex-wrap: wrap;
}

.js.nav-compact .main-nav .menu > li > a,
.js.nav-compact .menu-topics-button {
	border-radius: 0;
	flex: 1 1 auto;
	font-size: 1rem;
	justify-content: space-between;
	min-height: 52px;
	padding: 14px 2px;
}

.js.nav-compact .main-nav .menu > li > a:hover,
.js.nav-compact .menu-topics-button:hover {
	background: none;
	color: var(--tz-blue);
}

.js.nav-compact .submenu-toggle {
	height: 44px;
	width: 44px;
}

.js.nav-compact .main-nav .sub-menu,
.js.nav-compact .main-nav .menu-item-topics > .sub-menu:has(> li:nth-child(7)) {
	border: 0;
	box-shadow: none;
	columns: auto;
	flex-basis: 100%;
	max-width: none;
	min-width: 0;
	padding: 0 0 12px 10px;
	position: static;
	width: 100%;
}

.js.nav-compact .main-nav .sub-menu::before {
	display: none;
}

.js.nav-compact .main-nav .sub-menu a {
	padding: 10px 12px;
}

@media (max-width: 959.98px) {
	.no-js .header-inner {
		flex-wrap: wrap;
		padding-bottom: 8px;
		padding-top: 8px;
	}

	.no-js .main-nav {
		flex-basis: 100%;
		justify-content: flex-start;
		order: 3;
	}

	.no-js .main-nav .menu {
		flex-wrap: wrap;
	}
}

@media (max-width: 479.98px) {
	/* Icon only on small phones; the word "Menu" stays available to screen readers. */
	.menu-toggle-label {
		clip: rect(1px, 1px, 1px, 1px);
		clip-path: inset(50%);
		height: 1px;
		margin: -1px;
		overflow: hidden;
		padding: 0;
		position: absolute;
		white-space: nowrap;
		width: 1px;
	}

	.site-logo-text {
		font-size: 1.25rem;
	}

	.header-inner {
		min-height: 64px;
	}
}

.header-search {
	background: var(--tz-wash);
	border-top: 1px solid var(--tz-line);
	padding: 16px 0;
}

.js .header-search {
	display: none;
}

.js .site-header.is-search-open .header-search {
	display: block;
}

.no-js .search-toggle {
	display: none;
}

.header-search .search-form {
	margin: 0 auto;
	max-width: 720px;
}

/* =========================================================================
   4. Buttons, chips and forms
   ========================================================================= */

.btn {
	align-items: center;
	border: 1.5px solid transparent;
	border-radius: 12px;
	cursor: pointer;
	display: inline-flex;
	font-size: 1rem;
	font-weight: 700;
	gap: 8px;
	justify-content: center;
	line-height: 1.2;
	min-height: 48px;
	padding: 12px 22px;
	text-decoration: none;
}

.btn-primary {
	background: var(--tz-blue);
	color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
	background: var(--tz-blue-dark);
	color: #fff;
}

.btn-secondary {
	background: #fff;
	border-color: var(--tz-line-2);
	color: var(--tz-ink);
}

.btn-secondary:hover {
	border-color: var(--tz-ink);
	color: var(--tz-ink);
}

.button-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 24px;
}

.button-row--center {
	justify-content: center;
}

.chip-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.chip-list--center {
	justify-content: center;
}

.chip {
	align-items: center;
	background: #fff;
	border: 1px solid var(--tz-line-2);
	border-radius: 999px;
	color: var(--tz-ink-2);
	display: inline-flex;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.3;
	min-height: 36px;
	padding: 6px 14px;
	text-decoration: none;
}

.chip:hover {
	background: var(--tz-blue-soft);
	border-color: var(--tz-blue);
	color: var(--tz-blue);
}

/* Search form (header panel, homepage, search results, 404). */
.search-form {
	align-items: center;
	display: flex;
	gap: 8px;
	max-width: 640px;
	position: relative;
	width: 100%;
}

.search-form-icon {
	color: var(--tz-muted);
	display: flex;
	left: 16px;
	pointer-events: none;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
}

.search-field {
	-webkit-appearance: none;
	appearance: none;
	background: #fff;
	border: 1.5px solid var(--tz-line-2);
	border-radius: 12px;
	color: var(--tz-ink);
	flex: 1 1 auto;
	font-size: 1rem;
	height: 52px;
	min-width: 0;
	padding: 0 14px 0 46px;
}

.search-field::placeholder {
	color: #6b7489;
	opacity: 1;
}

.search-field:focus {
	border-color: var(--tz-blue);
	outline: 3px solid rgba(29, 78, 216, 0.25);
	outline-offset: 0;
}

.search-submit {
	background: var(--tz-blue);
	border: 0;
	border-radius: 12px;
	color: #fff;
	cursor: pointer;
	flex: none;
	font-size: 1rem;
	font-weight: 700;
	height: 52px;
	padding: 0 22px;
}

.search-submit:hover {
	background: var(--tz-blue-dark);
}

.search-form--hero {
	background: #fff;
	border: 1.5px solid #c3cee3;
	border-radius: 16px;
	box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04), 0 22px 44px -28px rgba(29, 78, 216, 0.55);
	max-width: 620px;
	padding: 6px;
}

.search-form--hero:focus-within {
	border-color: var(--tz-blue);
	outline: 3px solid rgba(29, 78, 216, 0.22);
}

.search-form--hero .search-form-icon {
	left: 20px;
}

.search-form--hero .search-field {
	border: 0;
	font-size: 1.0625rem;
	height: 54px;
	padding-left: 44px;
}

.search-form--hero .search-field:focus {
	outline: none;
}

.search-form--hero .search-submit {
	border-radius: 11px;
	height: 54px;
	padding: 0 26px;
}

@media (max-width: 379.98px) {
	.search-submit,
	.search-form--hero .search-submit {
		padding: 0 16px;
	}
}

/* Text fields in the contact and comment forms. */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	background: #fff;
	border: 1.5px solid var(--tz-line-2);
	border-radius: 10px;
	color: var(--tz-ink);
	display: block;
	font-size: 1rem;
	line-height: 1.5;
	padding: 11px 14px;
	width: 100%;
}

.contact-form textarea,
.comment-form textarea {
	min-height: 168px;
	resize: vertical;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus,
.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
	border-color: var(--tz-blue);
	outline: 3px solid rgba(29, 78, 216, 0.25);
	outline-offset: 0;
}

/*
 * Forms made with plugins (Contact Form 7, WPForms, Fluent Forms, Forminator, Gravity Forms,
 * Formidable, Ninja Forms, Jetpack). The plugin wrappers sit inside :where(), which adds no
 * specificity: labels and text areas count as one element, fields and buttons as one attribute
 * plus one element. Any class-based rule from the plugin or Elementor therefore still wins.
 */
:where(.wpcf7, .wpforms-container, .fluentform, .forminator-ui, .gform_wrapper, .frm_forms, .nf-form-cont, .wp-block-jetpack-contact-form) label {
	color: var(--tz-ink);
	display: block;
	font-size: 0.9375rem;
	font-weight: 600;
	margin-bottom: 6px;
}

:where(.wpcf7, .wpforms-container, .fluentform, .forminator-ui, .gform_wrapper, .frm_forms, .nf-form-cont, .wp-block-jetpack-contact-form) :is(input[type="text"], input[type="email"], input[type="url"], input[type="tel"], input[type="number"], input[type="password"], input[type="search"], input[type="date"], select, textarea) {
	background: #fff;
	border: 1.5px solid var(--tz-line-2);
	border-radius: 10px;
	box-sizing: border-box;
	color: var(--tz-ink);
	display: block;
	font: inherit;
	font-size: 1rem;
	line-height: 1.5;
	margin-top: 6px;
	max-width: 100%;
	padding: 11px 14px;
	width: 100%;
}

:where(.wpcf7, .wpforms-container, .fluentform, .forminator-ui, .gform_wrapper, .frm_forms, .nf-form-cont, .wp-block-jetpack-contact-form) textarea {
	min-height: 168px;
	resize: vertical;
}

:where(.wpcf7, .wpforms-container, .fluentform, .forminator-ui, .gform_wrapper, .frm_forms, .nf-form-cont, .wp-block-jetpack-contact-form) :is(input, select, textarea)::placeholder {
	color: #6b7489;
	opacity: 1;
}

:where(.wpcf7, .wpforms-container, .fluentform, .forminator-ui, .gform_wrapper, .frm_forms, .nf-form-cont, .wp-block-jetpack-contact-form) :is(input[type="text"], input[type="email"], input[type="url"], input[type="tel"], input[type="number"], input[type="password"], input[type="search"], input[type="date"], select, textarea):focus {
	border-color: var(--tz-blue);
	outline: 3px solid rgba(29, 78, 216, 0.25);
	outline-offset: 0;
}

:where(.wpcf7, .wpforms-container, .fluentform, .forminator-ui, .gform_wrapper, .frm_forms, .nf-form-cont, .wp-block-jetpack-contact-form) :is(input[type="submit"], button[type="submit"]) {
	background: var(--tz-blue);
	border: 0;
	border-radius: 12px;
	color: #fff;
	cursor: pointer;
	font: inherit;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	min-height: 48px;
	padding: 12px 24px;
}

:where(.wpcf7, .wpforms-container, .fluentform, .forminator-ui, .gform_wrapper, .frm_forms, .nf-form-cont, .wp-block-jetpack-contact-form) :is(input[type="submit"], button[type="submit"]):hover {
	background: var(--tz-blue-dark);
}

:where(.wpcf7, .wpforms-container, .fluentform, .forminator-ui, .gform_wrapper, .frm_forms, .nf-form-cont, .wp-block-jetpack-contact-form) :is(input[type="submit"], button[type="submit"]):focus-visible {
	outline: 3px solid var(--tz-blue);
	outline-offset: 2px;
}

/* Contact Form 7 details: spacing, error messages and the result box. */
:where(.wpcf7-form) {
	max-width: 720px;
}

.wpcf7-form p {
	margin: 0 0 18px;
}

.wpcf7-form .wpcf7-not-valid {
	border-color: var(--tz-red);
}

.wpcf7-not-valid-tip {
	color: var(--tz-red);
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
	margin-top: 6px;
}

.wpcf7-list-item {
	margin: 0 16px 0 0;
}

.wpcf7-spinner {
	margin: 0 0 0 12px;
	vertical-align: middle;
}

.wpcf7 form .wpcf7-response-output {
	border: 1px solid var(--tz-line-2);
	border-radius: 10px;
	font-size: 0.9375rem;
	margin: 18px 0 0;
	padding: 12px 16px;
}

.wpcf7 form.sent .wpcf7-response-output {
	background: var(--tz-green-bg);
	border-color: var(--tz-green-line);
	color: #14532d;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output {
	background: var(--tz-red-bg);
	border-color: var(--tz-red-line);
	color: #7f1d1d;
}

/* A plugin form on the Contact page sits in a card, like the theme's own form. */
.entry--contact .entry-content :is(.wpcf7, .wpforms-container, .fluentform, .forminator-ui, .gform_wrapper, .frm_forms, .nf-form-cont) {
	background: #fff;
	border: 1px solid var(--tz-line);
	border-radius: 18px;
	box-shadow: var(--tz-shadow);
	margin: 8px 0 0;
	max-width: 760px;
	padding: clamp(20px, 3vw, 32px);
}

/* =========================================================================
   5. Homepage
   ========================================================================= */

.hero {
	border-bottom: 1px solid var(--tz-line);
	isolation: isolate;
	overflow: hidden;
	padding: clamp(40px, 7vw, 92px) 0 clamp(40px, 6vw, 76px);
	position: relative;
}

.hero::before {
	-webkit-mask-image: radial-gradient(ellipse 85% 75% at 25% 0%, #000 35%, transparent 78%);
	mask-image: radial-gradient(ellipse 85% 75% at 25% 0%, #000 35%, transparent 78%);
}

.hero-inner {
	align-items: center;
	display: grid;
	gap: clamp(32px, 5vw, 56px);
	grid-template-columns: minmax(0, 1fr);
}

.hero-main,
.hero-feature {
	min-width: 0;
}

.hero-title {
	color: var(--tz-ink);
	font-size: clamp(2.125rem, 1.3rem + 3.4vw, 3.5rem);
	font-weight: 800;
	letter-spacing: -0.035em;
	line-height: 1.05;
	margin: 0 0 18px;
	max-width: 17ch;
	text-wrap: balance;
}

.hero-text {
	color: var(--tz-ink-2);
	font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
	line-height: 1.6;
	margin: 0 0 28px;
	max-width: 54ch;
}

.hero-topics {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 12px;
	margin-top: 24px;
}

.hero-topics-title {
	color: var(--tz-muted);
	font-size: 0.875rem;
	font-weight: 600;
	margin: 0;
}

.hero-feature-title {
	color: var(--tz-muted);
	font-size: 0.875rem;
	font-weight: 700;
	margin: 0 0 12px;
}

.feature-card {
	background: #fff;
	border: 1px solid var(--tz-line);
	border-radius: 18px;
	box-shadow: var(--tz-shadow);
	overflow: hidden;
}

.feature-card .card-media {
	border-radius: 0;
	margin: 0;
}

.feature-card-body {
	padding: 20px 22px 22px;
}

.feature-card-title {
	font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.4375rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.25;
	margin: 0 0 10px;
}

.feature-card-title a {
	color: var(--tz-ink);
	text-decoration: none;
}

.feature-card-title a:hover {
	color: var(--tz-blue);
	text-decoration: underline;
	text-decoration-thickness: 2px;
}

@media (min-width: 1024px) {
	.hero--split .hero-inner {
		grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
	}
}

@media (min-width: 680px) and (max-width: 1023.98px) {
	.hero-feature {
		max-width: 640px;
	}
}

.home-topics {
	background: var(--tz-wash);
	border-bottom: 1px solid var(--tz-line);
}

.topic-grid {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.topic-card {
	background: #fff;
	border: 1px solid var(--tz-line);
	border-radius: 14px;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	position: relative;
	transition: border-color 0.15s ease;
}

.topic-card:hover {
	border-color: #9fb5f3;
}

.topic-card-media {
	aspect-ratio: 16 / 9;
	background: var(--tz-wash-2);
	overflow: hidden;
}

.topic-card-img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.topic-card-tile,
.card-fallback {
	background-color: var(--tz-blue-soft);
	background-image:
		linear-gradient(to right, var(--tz-grid-line) 1px, transparent 1px),
		linear-gradient(to bottom, var(--tz-grid-line) 1px, transparent 1px);
	background-size: 24px 24px;
	color: var(--tz-blue);
	display: grid;
	font-size: 2.5rem;
	font-weight: 800;
	height: 100%;
	place-items: center;
	width: 100%;
}

.topic-card-tile--2 {
	background-color: var(--tz-indigo-soft);
	color: var(--tz-indigo);
}

.topic-card-tile--3 {
	background-color: #e8f4fb;
	color: #0b5f8a;
}

.topic-card-tile--4 {
	background-color: var(--tz-wash-2);
	color: var(--tz-ink-2);
}

.topic-card-body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 6px;
	padding: 16px 18px 18px;
}

.topic-card-name {
	font-size: 1.0625rem;
	font-weight: 800;
	letter-spacing: -0.01em;
	line-height: 1.3;
	margin: 0;
}

.topic-card-name a {
	color: var(--tz-ink);
	text-decoration: none;
}

/* The whole card is clickable; the link text stays just the category name. */
.topic-card-name a::after {
	border-radius: 14px;
	content: "";
	inset: 0;
	position: absolute;
	z-index: 1;
}

.topic-card-name a:focus-visible {
	outline: none;
}

.topic-card-name a:focus-visible::after {
	outline: 3px solid var(--tz-blue);
	outline-offset: 2px;
}

.topic-card:hover .topic-card-name a {
	color: var(--tz-blue);
}

.topic-card-desc {
	color: var(--tz-muted);
	font-size: 0.9375rem;
	line-height: 1.5;
	margin: 0;
}

.topic-card-count {
	color: var(--tz-ink-2);
	font-size: 0.8125rem;
	font-weight: 600;
	margin: auto 0 0;
	padding-top: 6px;
}

@media (max-width: 1023.98px) {
	.topic-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 599.98px) {
	.topic-grid {
		gap: 12px;
		grid-template-columns: minmax(0, 1fr);
	}

	.topic-card {
		flex-direction: row;
	}

	.topic-card-media {
		aspect-ratio: auto;
		flex: 0 0 96px;
		min-height: 104px;
	}

	.topic-card-tile {
		font-size: 1.75rem;
	}

	.topic-card-body {
		padding: 12px 14px;
	}

	.topic-card-desc {
		-webkit-box-orient: vertical;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		line-clamp: 2;
		overflow: hidden;
	}
}

.home-page-content {
	border-bottom: 1px solid var(--tz-line);
}

.home-about {
	background: var(--tz-wash);
	border-top: 1px solid var(--tz-line);
}

.home-about-inner {
	display: grid;
	gap: clamp(28px, 4vw, 56px);
}

.home-about-main p {
	color: var(--tz-ink-2);
	font-size: 1.0625rem;
	margin: 16px 0 0;
	max-width: 60ch;
}

@media (min-width: 1024px) {
	.home-about-inner.has-index {
		align-items: start;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	}
}

/* An index of every topic, set like the index at the back of a book. */
.topic-index {
	background: #fff;
	border: 1px solid var(--tz-line);
	border-radius: 18px;
	padding: 22px 26px 18px;
}

.topic-index-title {
	font-size: 1.0625rem;
	font-weight: 800;
	margin: 0 0 8px;
}

.topic-index ul {
	column-gap: 36px;
	columns: 2;
	list-style: none;
	margin: 0;
	padding: 0;
}

.topic-index li {
	break-inside: avoid;
}

.topic-index a {
	align-items: baseline;
	color: var(--tz-ink-2);
	display: flex;
	gap: 8px;
	padding: 7px 0;
	text-decoration: none;
}

.topic-index a::before {
	border-bottom: 1.5px dotted var(--tz-line-2);
	content: "";
	flex: 1 1 auto;
	min-width: 16px;
	order: 2;
	transform: translateY(-4px);
}

.topic-index-name {
	order: 1;
}

.topic-index-count {
	color: var(--tz-muted);
	font-size: 0.875rem;
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	order: 3;
}

.topic-index a:hover .topic-index-name {
	color: var(--tz-blue);
	text-decoration: underline;
}

@media (max-width: 599.98px) {
	.topic-index {
		padding: 18px 18px 14px;
	}

	.topic-index ul {
		columns: 1;
	}
}

/* =========================================================================
   6. Article cards and grids
   ========================================================================= */

/*
 * Six-column grid, three cards per row. When the last row is not full, its cards widen
 * (two cards share the row; a single card becomes a wide, horizontal card), so a grid
 * never ends with a lonely gap whatever "posts per page" is set to.
 */
.post-grid {
	display: grid;
	gap: clamp(32px, 3.4vw, 44px) clamp(20px, 2.4vw, 32px);
	grid-template-columns: repeat(6, minmax(0, 1fr));
}

.post-grid > * {
	grid-column: span 2;
}

.post-grid > :nth-last-child(2):nth-child(3n+1),
.post-grid > :last-child:nth-child(3n+2) {
	grid-column: span 3;
}

.post-grid > :last-child:nth-child(3n+1) {
	grid-column: 1 / -1;
}

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

.card-media {
	aspect-ratio: 16 / 9;
	text-decoration: none;
	background: var(--tz-wash-2);
	border-radius: 14px;
	display: block;
	margin-bottom: 16px;
	overflow: hidden;
	position: relative;
}

.card-media img,
.card-img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.card-fallback {
	font-size: 3rem;
}

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

.cat-label {
	align-self: flex-start;
	color: var(--tz-blue);
	display: inline-block;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	margin-bottom: 8px;
	text-decoration: none;
}

.cat-label:hover {
	text-decoration: underline;
}

.card-title {
	font-size: 1.1875rem;
	font-weight: 800;
	letter-spacing: -0.015em;
	line-height: 1.3;
	margin: 0 0 8px;
}

.card-title a {
	color: var(--tz-ink);
	text-decoration: none;
}

.card-title a:hover {
	color: var(--tz-blue);
	text-decoration: underline;
	text-decoration-thickness: 2px;
}

.card-excerpt {
	color: var(--tz-muted);
	font-size: 0.96875rem;
	line-height: 1.6;
	margin: 0 0 16px;
}

.card-foot {
	align-items: center;
	border-top: 1px solid var(--tz-line);
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	justify-content: space-between;
	margin-top: auto;
	padding-top: 12px;
}

.card-meta {
	align-items: center;
	color: var(--tz-muted);
	display: flex;
	flex-wrap: wrap;
	font-size: 0.8125rem;
	gap: 4px 14px;
}

.card-read {
	align-items: center;
	display: inline-flex;
	gap: 5px;
}

.card-more {
	font-size: 0.875rem;
	font-weight: 700;
	text-decoration: none;
}

.card-more:hover {
	text-decoration: underline;
}

@media (min-width: 1024px) {
	.post-grid > .card:last-child:nth-child(3n+1) {
		align-items: center;
		display: grid;
		gap: 36px;
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	}

	.post-grid > .card:last-child:nth-child(3n+1) .card-media {
		margin-bottom: 0;
	}

	.post-grid > .card:last-child:nth-child(3n+1) .card-title {
		font-size: 1.5rem;
	}
}

@media (max-width: 1023.98px) {
	.post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.post-grid > *,
	.post-grid > :nth-last-child(2):nth-child(3n+1),
	.post-grid > :last-child:nth-child(3n+2),
	.post-grid > :last-child:nth-child(3n+1) {
		grid-column: auto;
	}

	.post-grid > :last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}
}

@media (min-width: 680px) and (max-width: 1023.98px) {
	.post-grid > .card:last-child:nth-child(odd) {
		align-items: center;
		display: grid;
		gap: 28px;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.post-grid > .card:last-child:nth-child(odd) .card-media {
		margin-bottom: 0;
	}
}

@media (max-width: 679.98px) {
	.post-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.post-grid > :last-child:nth-child(odd) {
		grid-column: auto;
	}
}

/* Pagination. */
.pagination {
	margin-top: clamp(40px, 5vw, 56px);
}

.pagination .nav-links,
.page-links {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}

.pagination .page-numbers,
.page-links .post-page-numbers {
	align-items: center;
	background: #fff;
	border: 1px solid var(--tz-line);
	border-radius: 10px;
	color: var(--tz-ink-2);
	display: inline-flex;
	font-weight: 600;
	gap: 6px;
	height: 44px;
	justify-content: center;
	min-width: 44px;
	padding: 0 14px;
	text-decoration: none;
}

.pagination a.page-numbers:hover,
.page-links a.post-page-numbers:hover {
	border-color: var(--tz-blue);
	color: var(--tz-blue);
}

.pagination .page-numbers.current,
.page-links .post-page-numbers.current {
	background: var(--tz-ink);
	border-color: var(--tz-ink);
	color: #fff;
}

.pagination .page-numbers.dots {
	border-color: transparent;
	min-width: 20px;
	padding: 0 4px;
}

.page-links {
	justify-content: flex-start;
	margin: 28px 0 0;
}

.page-links-title {
	font-weight: 700;
	margin-right: 4px;
}

/* =========================================================================
   7. Archive, search and 404 headers
   ========================================================================= */

.archive-header {
	background: var(--tz-wash);
	border-bottom: 1px solid var(--tz-line);
	isolation: isolate;
	overflow: hidden;
	padding: clamp(28px, 4vw, 52px) 0 clamp(26px, 3.4vw, 40px);
	position: relative;
}

.archive-header::before {
	-webkit-mask-image: linear-gradient(to right, #000, transparent 70%);
	mask-image: linear-gradient(to right, #000, transparent 70%);
}

.archive-header-row {
	align-items: center;
	display: flex;
	gap: 18px;
}

.archive-header-img img {
	border-radius: 16px;
	display: block;
	height: 72px;
	object-fit: cover;
	width: 72px;
}

.eyebrow {
	color: var(--tz-blue);
	font-size: 0.875rem;
	font-weight: 700;
	margin: 0 0 4px;
}

.archive-title {
	font-size: clamp(1.875rem, 1.3rem + 2.2vw, 2.75rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.1;
	margin: 0;
	overflow-wrap: anywhere;
}

.archive-desc {
	color: var(--tz-ink-2);
	font-size: 1.0625rem;
	margin-top: 14px;
	max-width: 720px;
}

.archive-desc p:last-child {
	margin-bottom: 0;
}

.archive-count {
	color: var(--tz-muted);
	font-size: 0.875rem;
	font-weight: 600;
	margin: 12px 0 0;
}

.archive-header .search-form {
	margin-top: 22px;
}

.archive-body {
	padding-bottom: clamp(56px, 7vw, 96px);
	padding-top: clamp(28px, 4vw, 48px);
}

.subtopics {
	margin-bottom: clamp(24px, 3vw, 36px);
}

.breadcrumbs {
	color: var(--tz-muted);
	font-size: 0.875rem;
	margin: 0 0 14px;
}

.breadcrumbs ol {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	margin: 0;
	padding: 0;
	row-gap: 4px;
}

.breadcrumbs li {
	align-items: center;
	display: inline-flex;
	min-width: 0;
}

.breadcrumbs li + li::before {
	color: #94a3b8;
	content: "/";
	margin: 0 8px;
}

.breadcrumbs a {
	color: var(--tz-muted);
	text-decoration: none;
}

.breadcrumbs a:hover {
	color: var(--tz-blue);
	text-decoration: underline;
}

.breadcrumbs [aria-current="page"] {
	color: var(--tz-ink-2);
	display: inline-block;
	max-width: min(42ch, 70vw);
	overflow: hidden;
	text-overflow: ellipsis;
	vertical-align: bottom;
	white-space: nowrap;
}

.breadcrumbs--plugin a {
	color: var(--tz-muted);
}

.empty-state {
	margin: 0 auto;
	max-width: 640px;
	padding: clamp(16px, 3vw, 40px) 0;
	text-align: center;
}

.empty-state-title {
	font-size: 1.5rem;
	letter-spacing: -0.02em;
	margin: 0 0 8px;
}

.empty-state p {
	color: var(--tz-muted);
}

.empty-state .search-form {
	margin: 22px auto 8px;
}

.empty-state-subtitle {
	font-size: 1rem;
	margin: 28px 0 12px;
}

.empty-state .chip-list {
	justify-content: center;
}

.not-found {
	isolation: isolate;
	overflow: hidden;
	padding: clamp(48px, 8vw, 104px) 0 clamp(32px, 5vw, 56px);
	position: relative;
	text-align: center;
}

.not-found::before {
	-webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 20%, #000 30%, transparent 75%);
	mask-image: radial-gradient(ellipse 60% 70% at 50% 20%, #000 30%, transparent 75%);
}

.not-found-inner {
	max-width: calc(720px + 2 * var(--tz-gutter));
}

.not-found-code {
	color: #d5def5;
	font-size: clamp(4.5rem, 3rem + 8vw, 8rem);
	font-weight: 800;
	letter-spacing: -0.05em;
	line-height: 1;
	margin: 0 0 8px;
}

.not-found-title {
	font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	margin: 0 0 12px;
}

.not-found-text {
	color: var(--tz-ink-2);
	font-size: 1.0625rem;
	margin: 0 auto 24px;
	max-width: 54ch;
}

.not-found .search-form {
	margin: 0 auto;
}

.not-found-subtitle {
	font-size: 1rem;
	margin: 36px 0 12px;
}

.not-found-recent {
	border-top: 1px solid var(--tz-line);
}

.not-found-recent .section-title {
	margin-bottom: 28px;
}

/* =========================================================================
   8. Single articles and pages
   ========================================================================= */

.entry-header {
	padding: clamp(28px, 4vw, 52px) 0 clamp(20px, 3vw, 32px);
}

.entry-cat {
	margin-bottom: 12px;
}

.entry-title {
	font-size: clamp(1.875rem, 1.25rem + 2.6vw, 2.875rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.12;
	margin: 0 0 16px;
	overflow-wrap: break-word;
	text-wrap: balance;
}

.entry-dek {
	color: var(--tz-ink-2);
	font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
	line-height: 1.55;
	margin: 0 0 20px;
}

.entry-meta,
.entry-byline {
	align-items: center;
	color: var(--tz-muted);
	display: flex;
	flex-wrap: wrap;
	font-size: 0.90625rem;
	gap: 10px 22px;
}

.entry-meta {
	border-top: 1px solid var(--tz-line);
	padding-top: 16px;
}

.entry-byline {
	border-bottom: 1px solid var(--tz-line);
	border-top: 1px solid var(--tz-line);
	margin-top: 8px;
	padding: 18px 0;
}

.meta-item {
	align-items: center;
	display: inline-flex;
	gap: 8px;
}

.meta-item .tzp-icon {
	color: var(--tz-muted);
	flex: none;
}

.meta-item a {
	color: var(--tz-ink);
	font-weight: 600;
	text-decoration: none;
}

.meta-item a:hover {
	color: var(--tz-blue);
	text-decoration: underline;
}

.meta-avatar {
	border-radius: 50%;
	display: block;
	height: 28px;
	width: 28px;
}

.entry-updated {
	color: var(--tz-muted);
	font-size: 0.90625rem;
	font-weight: 600;
	margin: 0;
}

/* Featured image. Its width is set inline to match the column below it. */
.entry-hero {
	margin: 0 auto clamp(28px, 4vw, 44px);
}

.entry-hero--top {
	margin-bottom: 0;
	margin-top: clamp(16px, 3vw, 32px);
}

.entry-hero--top + .entry-header {
	padding-top: clamp(22px, 3.5vw, 40px);
}

.entry-hero--top + .entry-crumbs {
	padding-top: clamp(18px, 3vw, 28px);
}

.entry-hero-img {
	background: var(--tz-wash-2);
	border-radius: 18px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 22px 44px -28px rgba(15, 23, 42, 0.45);
	display: block;
	height: auto;
	margin: 0 auto;
	width: 100%;
}

@media (max-width: 599.98px) {
	.entry-hero-img {
		border-radius: 12px;
	}
}

.entry-hero figcaption {
	color: var(--tz-muted);
	font-size: 0.875rem;
	margin-top: 10px;
	text-align: center;
}

.entry-crumbs {
	padding-top: 20px;
}

.entry-crumbs .breadcrumbs {
	margin: 0;
}

.entry-body {
	padding-bottom: clamp(32px, 5vw, 56px);
}

.entry--canvas .entry-body {
	padding-top: 16px;
}

.entry-hero--top + .entry-body {
	padding-top: clamp(24px, 3.5vw, 40px);
}

.entry-content--html {
	overflow-wrap: break-word;
}

.entry-content--html::after {
	clear: both;
	content: "";
	display: table;
}

/* Table of contents. */
.toc {
	background: var(--tz-wash);
	border: 1px solid var(--tz-line);
	border-radius: 14px;
	margin: 0 0 36px;
}

.toc-summary {
	align-items: center;
	color: var(--tz-ink);
	cursor: pointer;
	display: flex;
	font-weight: 700;
	gap: 10px;
	list-style: none;
	padding: 14px 18px;
}

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

.toc-summary::after {
	border-bottom: 2px solid currentColor;
	border-right: 2px solid currentColor;
	content: "";
	height: 8px;
	margin: 0 4px 4px auto;
	transform: rotate(45deg);
	transition: transform 0.15s ease;
	width: 8px;
}

.toc[open] .toc-summary::after {
	margin-bottom: 0;
	margin-top: 4px;
	transform: rotate(-135deg);
}

.toc-summary .tzp-icon {
	color: var(--tz-blue);
}

.toc-list {
	margin: 0;
	padding: 2px 22px 12px 42px;
}

.toc-list li {
	break-inside: avoid;
	margin: 0;
	padding: 0 0 8px;
}

.toc-list li::marker {
	color: var(--tz-muted);
	font-size: 0.875em;
}

.toc-list a {
	color: var(--tz-ink-2);
	text-decoration: none;
}

.toc-list a:hover {
	color: var(--tz-blue);
	text-decoration: underline;
}

@media (min-width: 760px) {
	.toc-list:has(> li:nth-child(7)) {
		column-gap: 36px;
		columns: 2;
	}
}

/* Reading typography for articles written in the block editor. */
.prose {
	color: var(--tz-ink-2);
	font-size: 1.125rem;
	line-height: 1.78;
	overflow-wrap: break-word;
}

.prose::after {
	clear: both;
	content: "";
	display: table;
}

.prose p,
.prose ul,
.prose ol,
.prose dl,
.prose blockquote,
.prose figure,
.prose pre,
.prose table,
.prose details {
	margin: 0 0 1.35em;
}

.prose h2 {
	font-size: clamp(1.5rem, 1.25rem + 1vw, 1.875rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.25;
	margin: 2.1em 0 0.7em;
	scroll-margin-top: 24px;
}

.prose h3 {
	font-size: clamp(1.25rem, 1.15rem + 0.5vw, 1.4375rem);
	font-weight: 700;
	letter-spacing: -0.01em;
	margin: 1.8em 0 0.6em;
	scroll-margin-top: 24px;
}

.prose h4,
.prose h5,
.prose h6 {
	font-size: 1.125rem;
	margin: 1.6em 0 0.5em;
}

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

.prose a {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

.prose a:hover {
	text-decoration-thickness: 2px;
}

.prose ul,
.prose ol {
	padding-left: 1.4em;
}

.prose li {
	margin: 0.35em 0;
}

.prose li::marker {
	color: var(--tz-blue);
}

.prose blockquote {
	border-left: 4px solid var(--tz-blue);
	color: var(--tz-ink);
	margin-left: 0;
	margin-right: 0;
	padding: 0.2em 0 0.2em 1.2em;
}

.prose blockquote p:last-child {
	margin-bottom: 0;
}

.prose blockquote cite {
	color: var(--tz-muted);
	display: block;
	font-size: 0.875rem;
	font-style: normal;
	margin-top: 0.5em;
}

.prose code,
.prose kbd {
	background: var(--tz-wash-2);
	border: 1px solid var(--tz-line);
	border-radius: 6px;
	color: var(--tz-ink);
	font-family: var(--tz-mono);
	font-size: 0.86em;
	overflow-wrap: anywhere;
	padding: 0.1em 0.35em;
}

.prose pre {
	background: var(--tz-ink);
	border-radius: 12px;
	color: #e2e8f0;
	font-family: var(--tz-mono);
	font-size: 0.9rem;
	line-height: 1.65;
	overflow-x: auto;
	padding: 18px 20px;
}

.prose pre code {
	background: none;
	border: 0;
	color: inherit;
	font-size: inherit;
	overflow-wrap: normal;
	padding: 0;
}

.prose img {
	border-radius: 12px;
}

.prose figure {
	margin-left: 0;
	margin-right: 0;
}

.prose figcaption,
.prose .wp-element-caption {
	color: var(--tz-muted);
	font-size: 0.875rem;
	line-height: 1.5;
	margin-top: 0.6em;
	text-align: center;
}

.prose table {
	border-collapse: collapse;
	font-size: 0.9375rem;
	width: 100%;
}

.prose th,
.prose td {
	border: 1px solid var(--tz-line);
	padding: 10px 12px;
	text-align: left;
	vertical-align: top;
}

.prose th {
	background: var(--tz-wash);
	color: var(--tz-ink);
	font-weight: 700;
}

.prose .wp-block-table {
	overflow-x: auto;
}

.prose hr {
	border: 0;
	border-top: 1px solid var(--tz-line);
	margin: 2.5em 0;
}

.prose .alignwide {
	margin-left: calc(50% - min(520px, 50vw - var(--tz-gutter)));
	margin-right: calc(50% - min(520px, 50vw - var(--tz-gutter)));
	max-width: none;
}

.prose .alignfull {
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	max-width: 100vw;
}

.prose .alignleft,
.prose .alignright {
	max-width: 50%;
}

@media (max-width: 599.98px) {
	.prose {
		font-size: 1.0625rem;
		line-height: 1.72;
	}

	.prose .alignleft,
	.prose .alignright {
		float: none;
		margin: 0 0 1.35em;
		max-width: 100%;
	}
}

.prose--legal h2 {
	font-size: 1.375rem;
}

.entry-footer {
	padding-bottom: 28px;
}

.entry-tags {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 14px;
	margin-top: 22px;
}

.entry-tags-title {
	font-size: 0.9375rem;
	margin: 0;
}

.after-entry {
	padding-bottom: 8px;
}

.after-article-widgets {
	margin-bottom: 32px;
}

.after-article-widgets .widget {
	margin-bottom: 24px;
}

.widget-title {
	font-size: 1.125rem;
}

.author-box {
	background: var(--tz-wash);
	border: 1px solid var(--tz-line);
	border-radius: 16px;
	display: flex;
	gap: 18px;
	margin: 4px 0 32px;
	padding: 22px;
}

.author-box-avatar {
	border-radius: 50%;
	flex: none;
	height: 72px;
	width: 72px;
}

.author-box-name {
	color: var(--tz-ink);
	font-size: 1.0625rem;
	font-weight: 800;
	margin: 0 0 4px;
}

.author-box-bio {
	color: var(--tz-ink-2);
	font-size: 0.96875rem;
	margin: 0 0 8px;
}

.author-box-link {
	font-size: 0.90625rem;
	font-weight: 700;
	text-decoration: none;
}

.author-box-link:hover {
	text-decoration: underline;
}

.post-nav {
	margin: 4px 0 44px;
}

.post-nav .nav-links {
	display: grid;
	gap: 16px;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.post-nav a {
	border: 1px solid var(--tz-line);
	border-radius: 14px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	height: 100%;
	padding: 18px 20px;
	text-decoration: none;
}

.post-nav a:hover {
	background: var(--tz-wash);
	border-color: #9fb5f3;
}

.post-nav .nav-next {
	grid-column: 2;
	text-align: right;
}

.post-nav .nav-next a {
	align-items: flex-end;
}

.post-nav-label {
	align-items: center;
	color: var(--tz-blue);
	display: inline-flex;
	font-size: 0.8125rem;
	font-weight: 700;
	gap: 6px;
}

.post-nav-title {
	color: var(--tz-ink);
	font-weight: 700;
	line-height: 1.35;
}

@media (max-width: 599.98px) {
	.post-nav .nav-links {
		grid-template-columns: minmax(0, 1fr);
	}

	.post-nav .nav-next {
		grid-column: auto;
	}

	.author-box {
		flex-direction: column;
	}
}

.related {
	background: var(--tz-wash);
	border-top: 1px solid var(--tz-line);
	padding: clamp(44px, 6vw, 76px) 0;
}

.related .section-title {
	margin-bottom: 28px;
}

/* Contact page. */
.contact-layout {
	display: grid;
	gap: clamp(28px, 4vw, 56px);
}

@media (min-width: 900px) {
	.contact-layout--split {
		align-items: start;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	}
}

.contact-layout:not(.contact-layout--split) .contact-card {
	margin-left: auto;
	margin-right: auto;
	max-width: 720px;
	width: 100%;
}

.contact-card {
	background: #fff;
	border: 1px solid var(--tz-line);
	border-radius: 18px;
	box-shadow: var(--tz-shadow);
	padding: clamp(20px, 3vw, 32px);
}

.contact-card-title {
	font-size: 1.375rem;
	font-weight: 800;
	letter-spacing: -0.015em;
	margin: 0 0 6px;
}

.contact-card-intro {
	color: var(--tz-muted);
	font-size: 0.96875rem;
	margin: 0 0 20px;
}

.form-grid {
	display: grid;
	gap: 16px;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.form-field {
	margin: 0;
	min-width: 0;
}

.form-field--subject,
.form-field--message {
	grid-column: 1 / -1;
}

.form-field label {
	color: var(--tz-ink);
	display: block;
	font-size: 0.9375rem;
	font-weight: 600;
	margin-bottom: 6px;
}

.form-field .required {
	color: var(--tz-red);
}

.form-field.has-error input,
.form-field.has-error textarea {
	border-color: var(--tz-red);
}

.field-error {
	color: var(--tz-red);
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
	margin-top: 6px;
}

.form-field--hp {
	height: 1px;
	left: -9999px;
	overflow: hidden;
	position: absolute !important;
	width: 1px;
}

.form-privacy {
	color: var(--tz-muted);
	font-size: 0.875rem;
	margin: 18px 0;
}

.form-alert {
	border: 1px solid;
	border-radius: 12px;
	margin-bottom: 20px;
	padding: 16px 18px;
}

.form-alert--success {
	align-items: flex-start;
	background: var(--tz-green-bg);
	border-color: var(--tz-green-line);
	color: #14532d;
	display: flex;
	gap: 12px;
}

.form-alert--success .tzp-icon {
	flex: none;
	margin-top: 2px;
}

.form-alert--error {
	background: var(--tz-red-bg);
	border-color: var(--tz-red-line);
	color: #7f1d1d;
}

.form-alert p {
	margin: 0;
}

.form-alert-title {
	font-weight: 700;
}

.form-alert ul {
	margin: 8px 0 0;
	padding-left: 20px;
}

.form-alert a {
	color: inherit;
	font-weight: 600;
}

.form-alert:focus {
	outline: 3px solid currentColor;
	outline-offset: 2px;
}

/* Note for administrators on a homepage that a page builder template renders (see inc/template-tags.php). */
.admin-front-note {
	background: #fffbeb;
	border-bottom: 1px solid #fcd34d;
	color: #713f12;
	font-size: 0.9375rem;
	padding: 14px 0;
}

.admin-front-note p {
	margin: 0 0 6px;
}

.admin-front-note-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 20px;
}

.admin-front-note p:last-child {
	margin: 0;
}

.admin-front-note a {
	color: #713f12;
	font-weight: 700;
	text-decoration: underline;
}

.form-admin-note {
	background: var(--tz-wash);
	border: 1px dashed var(--tz-line-2);
	border-radius: 10px;
	color: var(--tz-muted);
	font-size: 0.8125rem;
	margin: 0 0 18px;
	padding: 10px 12px;
}

@media (max-width: 599.98px) {
	.form-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.contact-form .btn {
		width: 100%;
	}
}

/* About page. */
.about-next {
	display: grid;
	gap: 20px;
	margin: 0 0 clamp(48px, 6vw, 80px);
}

@media (min-width: 760px) {
	.about-next {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.about-next > :only-child {
		grid-column: 1 / -1;
	}
}

.about-next-block {
	background: var(--tz-wash);
	border: 1px solid var(--tz-line);
	border-radius: 16px;
	padding: 24px;
}

.about-next-title {
	font-size: 1.25rem;
	font-weight: 800;
	letter-spacing: -0.015em;
	margin: 0 0 14px;
}

/* Legal pages. */
.legal-others {
	border-top: 1px solid var(--tz-line);
	margin-top: 44px;
	padding-top: 24px;
}

.legal-others-title {
	font-size: 1.0625rem;
	margin: 0 0 10px;
}

.legal-others ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.legal-others a {
	font-weight: 600;
}

/* =========================================================================
   9. Comments
   ========================================================================= */

.comments-area {
	border-top: 1px solid var(--tz-line);
	margin-top: 8px;
	padding: clamp(32px, 5vw, 56px) 0;
}

.comments-title,
.comment-reply-title {
	font-size: 1.5rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	margin: 0 0 20px;
}

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

.comment-list .children {
	margin-left: clamp(16px, 4vw, 48px);
}

.comment-body {
	border-bottom: 1px solid var(--tz-line);
	padding: 18px 0;
}

.comment-meta {
	align-items: center;
	color: var(--tz-muted);
	display: flex;
	flex-wrap: wrap;
	font-size: 0.875rem;
	gap: 4px 14px;
	margin-bottom: 8px;
}

.comment-author {
	align-items: center;
	color: var(--tz-ink);
	display: flex;
	font-weight: 700;
	gap: 10px;
}

.comment-author .avatar {
	border-radius: 50%;
}

.comment-author .fn a {
	color: inherit;
}

.comment-author .says {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	width: 1px;
}

.comment-metadata a {
	color: var(--tz-muted);
	text-decoration: none;
}

.comment-metadata a:hover {
	text-decoration: underline;
}

.comment-content {
	color: var(--tz-ink-2);
	overflow-wrap: break-word;
}

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

.reply {
	margin-top: 8px;
}

.reply a {
	font-size: 0.875rem;
	font-weight: 700;
	text-decoration: none;
}

.comment-awaiting-moderation {
	color: var(--tz-muted);
	font-size: 0.875rem;
}

.comment-respond {
	background: var(--tz-wash);
	border: 1px solid var(--tz-line);
	border-radius: 16px;
	margin-top: 32px;
	padding: clamp(20px, 3vw, 28px);
}

.comment-list .comment-respond {
	margin: 16px 0;
}

.comment-reply-title small {
	font-size: 0.875rem;
	margin-left: 8px;
}

.comment-form p {
	margin: 0 0 16px;
}

.comment-form label {
	color: var(--tz-ink);
	display: block;
	font-size: 0.9375rem;
	font-weight: 600;
	margin-bottom: 6px;
}

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

.comment-form-cookies-consent label {
	display: inline;
	font-weight: 400;
}

.comment-form-cookies-consent input {
	margin-top: 5px;
}

.comment-notes,
.logged-in-as {
	color: var(--tz-muted);
	font-size: 0.875rem;
}

.comment-navigation .nav-links {
	display: flex;
	justify-content: space-between;
	margin: 16px 0;
}

.no-comments {
	color: var(--tz-muted);
	margin-top: 16px;
}

/* =========================================================================
   10. Footer
   ========================================================================= */

.site-footer {
	background: var(--tz-ink);
	color: #cbd5e1;
}

.footer-main {
	padding: clamp(48px, 6vw, 72px) 0 clamp(32px, 4vw, 48px);
}

.footer-grid {
	display: grid;
	gap: 36px 32px;
	grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
}

.site-footer .site-logo {
	color: #fff;
}

.site-footer .site-logo-hi {
	color: #9db8ff;
}

.footer-about {
	color: #cbd5e1;
	font-size: 0.9375rem;
	line-height: 1.65;
	margin: 18px 0 20px;
	max-width: 42ch;
}

.footer-title {
	color: #fff;
	font-size: 1rem;
	font-weight: 700;
	margin: 0 0 16px;
}

.footer-links,
.footer-posts {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-links li {
	margin: 0 0 10px;
}

.site-footer a {
	color: #e2e8f0;
	text-decoration: none;
}

.site-footer a:hover {
	color: #fff;
	text-decoration: underline;
}

.site-footer :focus-visible {
	outline-color: #9db8ff;
}

.footer-posts li {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0 0 14px;
}

.footer-posts a {
	font-weight: 600;
	line-height: 1.4;
}

.footer-posts time {
	color: #94a3b8;
	font-size: 0.8125rem;
}

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

.social-links a {
	align-items: center;
	border: 1px solid rgba(255, 255, 255, 0.24);
	border-radius: 999px;
	color: #e2e8f0;
	display: inline-flex;
	font-size: 0.875rem;
	font-weight: 600;
	min-height: 36px;
	padding: 6px 14px;
}

.social-links a:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	text-decoration: none;
}

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	color: #94a3b8;
	font-size: 0.875rem;
	padding: 18px 0;
}

.footer-bottom-inner {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 24px;
	justify-content: space-between;
}

.copyright {
	margin: 0;
}

.copyright a {
	text-decoration: underline;
}

.back-to-top {
	align-items: center;
	display: inline-flex;
	font-weight: 600;
	gap: 6px;
}

@media (max-width: 1023.98px) {
	.footer-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.footer-brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 599.98px) {
	.footer-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* =========================================================================
   11. Advertisements (empty and hidden until code is added in the Customizer)
   ========================================================================= */

.ad-slot {
	clear: both;
	margin: 32px auto;
	max-width: calc(var(--tz-max) + 2 * var(--tz-gutter));
	padding-left: var(--tz-gutter);
	padding-right: var(--tz-gutter);
	text-align: center;
}

.ad-label {
	color: var(--tz-muted);
	display: block;
	font-size: 0.75rem;
	letter-spacing: 0.02em;
	margin-bottom: 6px;
}

.ad-slot--below-header {
	margin-bottom: 8px;
	margin-top: 28px;
}

.prose .ad-slot,
.grid-ad .ad-slot,
.after-entry .ad-slot {
	padding-left: 0;
	padding-right: 0;
}

.prose .ad-slot {
	margin: 2em 0;
}

.grid-ad .ad-slot {
	margin: clamp(32px, 3.4vw, 44px) 0;
}

.after-entry .ad-slot {
	margin: 0 0 32px;
}

.ad-slot-preview {
	align-items: center;
	background: var(--tz-wash);
	border: 2px dashed var(--tz-line-2);
	border-radius: 10px;
	color: var(--tz-muted);
	display: flex;
	font-size: 0.875rem;
	justify-content: center;
	min-height: 90px;
	padding: 12px;
}

/* =========================================================================
   12. Print and reduced motion
   ========================================================================= */

@media print {
	.site-header,
	.site-footer,
	.ad-slot,
	.toc,
	.after-entry,
	.related,
	.comments-area,
	.breadcrumbs,
	.skip-link {
		display: none !important;
	}

	body {
		color: #000;
	}

	.prose a {
		color: #000;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
