/*
Theme Name: TrackPro
Theme URI: https://tcs-tracking.com.pk/
Author: Hamza Ali
Description: A clean, fast blogging theme for parcel-tracking and courier guide sites. 3D depth header and footer, readable post layout, automatic table of contents, breadcrumbs, schema, and full Customizer settings for colors, fonts, header, footer and post options.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
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: trackpro
Tags: blog, news, two-columns, right-sidebar, left-sidebar, custom-colors, custom-logo, custom-menu, featured-images, sticky-post, threaded-comments, translation-ready, wide-blocks
*/

/* ==========================================================================
   1. Tokens (overridden by Customizer values printed in <head>)
   ========================================================================== */
:root {
	--tp-primary: #0E6E64;
	--tp-accent: #F2A93B;
	--tp-text: #1D2430;
	--tp-muted: #5B6575;
	--tp-bg: #F2F4F6;
	--tp-surface: #FFFFFF;
	--tp-header-bg: #FFFFFF;
	--tp-header-text: #1D2430;
	--tp-footer-bg: #12302C;
	--tp-footer-text: #CFE0DC;
	--tp-font-heading: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
	--tp-font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
	--tp-font-size: 18px;
	--tp-container: 1200px;
	--tp-radius: 14px;
	--tp-logo-width: 170px;

	/* Derived */
	--tp-primary-dark: color-mix(in srgb, var(--tp-primary) 68%, #000);
	--tp-primary-soft: color-mix(in srgb, var(--tp-primary) 9%, var(--tp-surface));
	--tp-accent-soft: color-mix(in srgb, var(--tp-accent) 18%, var(--tp-surface));
	--tp-accent-ink: color-mix(in srgb, var(--tp-accent) 35%, #3a2500);
	--tp-line: color-mix(in srgb, var(--tp-text) 11%, transparent);
	--tp-radius-sm: calc(var(--tp-radius) * 0.6);
	--tp-edge: color-mix(in srgb, var(--tp-primary) 16%, #d9e0e6);
	--tp-shadow-soft: 0 1px 2px rgb(16 32 40 / 6%), 0 8px 24px -14px rgb(16 32 40 / 22%);
	--tp-sticky-top: 0px;
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; }

body {
	margin: 0;
	background: var(--tp-bg);
	color: var(--tp-text);
	font-family: var(--tp-font-body);
	font-size: var(--tp-font-size);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
body.tp-no-scroll { overflow: hidden; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--tp-font-heading);
	color: var(--tp-text);
	line-height: 1.2;
	letter-spacing: -0.015em;
	margin: 1.6em 0 0.55em;
	font-weight: 700;
}
h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.75rem); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.85rem); }
h3 { font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem); }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.15em; }
img, svg, video, iframe { max-width: 100%; height: auto; }
img { display: block; }

a { color: var(--tp-primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--tp-primary-dark); }

:focus-visible { outline: 3px solid var(--tp-accent); outline-offset: 2px; border-radius: 4px; }

::selection { background: var(--tp-accent-soft); color: var(--tp-text); }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0;
	top: 10px; left: 10px; z-index: 1000; padding: 12px 18px;
	background: var(--tp-surface); color: var(--tp-text); border-radius: 8px;
	box-shadow: var(--tp-shadow-soft);
}

.tp-container {
	width: 100%;
	max-width: var(--tp-container);
	margin-inline: auto;
	padding-inline: clamp(16px, 4vw, 32px);
}

/* ==========================================================================
   3. Buttons — pressable 3D keys
   ========================================================================== */
.tp-btn,
.wp-block-button__link,
.wp-element-button,
input[type="submit"] {
	--b-bg: var(--tp-primary);
	--b-edge: var(--tp-primary-dark);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 20px;
	border: 0;
	border-radius: var(--tp-radius-sm);
	background: var(--b-bg);
	color: #fff;
	font-family: var(--tp-font-heading);
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: transform .12s ease, box-shadow .12s ease, background-color .15s ease;
}
.tp-btn:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover { color: #fff; background: color-mix(in srgb, var(--b-bg) 90%, #fff); }

.tp-depth .tp-btn,
.tp-depth .wp-block-button__link,
.tp-depth .wp-element-button,
.tp-depth input[type="submit"] {
	box-shadow: 0 4px 0 var(--b-edge), 0 12px 18px -10px color-mix(in srgb, var(--b-bg) 70%, transparent);
	transform: translateY(-2px);
}
.tp-depth .tp-btn:hover,
.tp-depth .wp-block-button__link:hover { transform: translateY(-3px); box-shadow: 0 5px 0 var(--b-edge), 0 14px 20px -10px color-mix(in srgb, var(--b-bg) 70%, transparent); }
.tp-depth .tp-btn:active,
.tp-depth .wp-block-button__link:active,
.tp-depth input[type="submit"]:active { transform: translateY(2px); box-shadow: 0 0 0 var(--b-edge); }

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

.tp-icon-btn {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--tp-line);
	border-radius: 12px;
	background: var(--tp-surface);
	color: var(--tp-header-text);
	cursor: pointer;
	transition: transform .12s ease, box-shadow .12s ease, color .15s ease;
}
.tp-icon-btn:hover { color: var(--tp-primary); }
.tp-depth .tp-icon-btn { box-shadow: 0 3px 0 var(--tp-edge); transform: translateY(-1px); }
.tp-depth .tp-icon-btn:active { transform: translateY(2px); box-shadow: 0 0 0 var(--tp-edge); }

/* ==========================================================================
   4. Header — floating 3D slab
   ========================================================================== */
.site-header {
	position: relative;
	z-index: 60;
	padding-top: 14px;
	padding-bottom: 10px;
}
.tp-sticky .site-header { position: sticky; top: var(--tp-sticky-top); }
.admin-bar.tp-sticky { --tp-sticky-top: 32px; }
@media (max-width: 782px) { .admin-bar.tp-sticky { --tp-sticky-top: 46px; } }
@media (max-width: 600px) { .admin-bar.tp-sticky { --tp-sticky-top: 0px; } }

.header-bar {
	position: relative;
	display: flex;
	align-items: center;
	gap: clamp(12px, 2vw, 28px);
	min-height: 70px;
	padding: 10px 12px 10px clamp(14px, 2vw, 22px);
	background: var(--tp-header-bg);
	color: var(--tp-header-text);
	border: 1px solid var(--tp-line);
	border-radius: var(--tp-radius);
	box-shadow: 0 1px 0 var(--tp-line);
	transition: box-shadow .25s ease, transform .25s ease, min-height .25s ease;
}
.tp-depth .header-bar {
	box-shadow:
		0 6px 0 var(--tp-edge),
		0 7px 0 color-mix(in srgb, var(--tp-edge) 70%, #000 8%),
		0 26px 40px -22px rgb(14 40 36 / 45%);
}
.tp-depth .site-header.is-scrolled .header-bar {
	min-height: 62px;
	box-shadow:
		0 4px 0 var(--tp-edge),
		0 18px 30px -18px rgb(14 40 36 / 50%);
}

/* Branding */
.site-branding { display: flex; align-items: center; flex-shrink: 0; }
.custom-logo-link { display: block; line-height: 0; }
.custom-logo { width: var(--tp-logo-width); height: auto; max-height: 64px; object-fit: contain; }
.tp-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--tp-header-text);
	text-decoration: none;
}
.tp-brand .tp-mark { transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.tp-brand:hover .tp-mark { transform: rotate(-8deg) translateY(-2px); }
.site-title {
	margin: 0;
	font-family: var(--tp-font-heading);
	font-size: 1.3rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1;
}

/* Primary menu */
.primary-nav { margin-inline-start: auto; }
.tp-menu,
.tp-menu ul { list-style: none; margin: 0; padding: 0; }
.tp-menu { display: flex; align-items: center; gap: 2px; }
.tp-menu > li { position: relative; }
.tp-menu a {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 10px 14px;
	border-radius: 10px;
	color: var(--tp-header-text);
	font-family: var(--tp-font-heading);
	font-size: 0.96rem;
	font-weight: 600;
	text-decoration: none;
	transition: background-color .15s ease, color .15s ease;
}
.tp-menu a:hover,
.tp-menu li:focus-within > a { background: var(--tp-primary-soft); color: var(--tp-primary); }
.tp-menu .current-menu-item > a,
.tp-menu .current_page_item > a,
.tp-menu .current-menu-ancestor > a { color: var(--tp-primary); background: var(--tp-primary-soft); }

.tp-menu .menu-item-has-children > a::after,
.tp-menu .page_item_has_children > a::after {
	content: "";
	width: 7px;
	height: 7px;
	margin-inline-start: 4px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-3px);
	opacity: .6;
}

/* Dropdown */
.tp-menu ul {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	min-width: 230px;
	padding: 8px;
	background: var(--tp-surface);
	border: 1px solid var(--tp-line);
	border-radius: var(--tp-radius);
	box-shadow: 0 4px 0 var(--tp-edge), 0 24px 40px -20px rgb(14 40 36 / 40%);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.tp-menu ul::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.tp-menu li:hover > ul,
.tp-menu li:focus-within > ul { opacity: 1; visibility: visible; transform: translateY(0); }
.tp-menu ul a { padding: 9px 12px; font-weight: 600; font-size: 0.93rem; }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.tp-menu-toggle { display: none; }

/* Center header layout */
.tp-header-center .header-bar {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	grid-template-areas: ". brand actions" "nav nav nav";
	row-gap: 6px;
	padding-top: 14px;
}
.tp-header-center .site-branding { grid-area: brand; justify-content: center; }
.tp-header-center .header-actions { grid-area: actions; justify-self: end; }
.tp-header-center .primary-nav {
	grid-area: nav;
	margin: 0;
	padding-top: 8px;
	border-top: 1px dashed var(--tp-line);
}
.tp-header-center .tp-menu { justify-content: center; flex-wrap: wrap; }

/* Search panel */
.tp-search-panel { position: absolute; left: 0; right: 0; top: calc(100% - 2px); }
.tp-search-card {
	padding: 14px;
	background: var(--tp-surface);
	border: 1px solid var(--tp-line);
	border-radius: var(--tp-radius);
	box-shadow: 0 4px 0 var(--tp-edge), 0 26px 44px -24px rgb(14 40 36 / 45%);
	animation: tp-drop .2s ease;
}
@keyframes tp-drop { from { opacity: 0; transform: translateY(-8px); } }

.search-form {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 6px 6px 14px;
	background: var(--tp-bg);
	border: 1px solid var(--tp-line);
	border-radius: var(--tp-radius-sm);
}
.search-form .tp-icon { color: var(--tp-muted); flex-shrink: 0; }
.search-form .search-field {
	flex: 1;
	min-width: 0;
	border: 0;
	background: transparent;
	font: inherit;
	color: var(--tp-text);
	padding: 8px 4px;
}
.search-form .search-field:focus { outline: none; }
.search-form:focus-within { border-color: var(--tp-primary); box-shadow: 0 0 0 3px var(--tp-primary-soft); }
.tp-depth .search-form .tp-btn { transform: none; box-shadow: 0 3px 0 var(--b-edge); }

/* Mobile drawer */
.tp-drawer { position: fixed; inset: 0; z-index: 200; visibility: hidden; }
.tp-drawer.is-open { visibility: visible; }
.tp-drawer-backdrop {
	position: absolute; inset: 0;
	background: rgb(10 22 20 / 45%);
	opacity: 0;
	transition: opacity .25s ease;
}
.tp-drawer.is-open .tp-drawer-backdrop { opacity: 1; }
.tp-drawer-panel {
	position: absolute;
	top: 0; right: 0; bottom: 0;
	width: min(88vw, 360px);
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 18px;
	overflow-y: auto;
	background: var(--tp-surface);
	box-shadow: -20px 0 50px -20px rgb(0 0 0 / 35%);
	transform: translateX(100%);
	transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
.tp-drawer.is-open .tp-drawer-panel { transform: translateX(0); }
.tp-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tp-mobile-menu, .tp-mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.tp-mobile-menu li { position: relative; border-bottom: 1px solid var(--tp-line); }
.tp-mobile-menu a {
	display: block;
	padding: 14px 44px 14px 4px;
	color: var(--tp-text);
	font-family: var(--tp-font-heading);
	font-weight: 600;
	text-decoration: none;
}
.tp-mobile-menu .current-menu-item > a { color: var(--tp-primary); }
.tp-mobile-menu ul { display: none; padding-inline-start: 14px; }
.tp-mobile-menu ul li:last-child { border-bottom: 0; }
.tp-mobile-menu li.is-open > ul { display: block; }
.tp-sub-toggle {
	position: absolute; right: 0; top: 6px;
	width: 38px; height: 38px;
	display: grid; place-items: center;
	border: 0; border-radius: 10px;
	background: var(--tp-primary-soft); color: var(--tp-primary);
	cursor: pointer;
}
.tp-mobile-menu li.is-open > .tp-sub-toggle svg { transform: rotate(180deg); }

/* Progress bar */
.tp-progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 300; pointer-events: none; }
.admin-bar .tp-progress { top: 32px; }
@media (max-width: 782px) { .admin-bar .tp-progress { top: 46px; } }
.tp-progress span {
	display: block; height: 100%;
	background: var(--tp-accent);
	transform: scaleX(0);
	transform-origin: left;
}

@media (max-width: 1024px) {
	.primary-nav { display: none; }
	.tp-menu-toggle { display: inline-grid; }
	.header-actions { margin-inline-start: auto; }
	.tp-header-center .header-bar { display: flex; padding-top: 10px; }
}
@media (max-width: 560px) {
	.tp-header-cta { display: none; }
	.header-bar { min-height: 62px; }
	.site-header { padding-top: 10px; }
}

/* ==========================================================================
   5. Layout
   ========================================================================== */
.tp-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 36px;
	padding-top: 24px;
	padding-bottom: 24px;
}
@media (min-width: 1000px) {
	.tp-sidebar-right .tp-layout { grid-template-columns: minmax(0, 1fr) 320px; }
	.tp-sidebar-left .tp-layout { grid-template-columns: 320px minmax(0, 1fr); }
	.tp-sidebar-left .tp-layout .site-main { order: 2; }
}
.tp-sidebar-none.single .site-main,
.tp-sidebar-none.page .site-main { max-width: 820px; width: 100%; margin-inline: auto; }

/* ==========================================================================
   6. Breadcrumbs & archive header
   ========================================================================== */
.tp-breadcrumbs { margin-bottom: 16px; font-size: 0.88rem; color: var(--tp-muted); }
.tp-breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 0; }
.tp-breadcrumbs li { display: inline-flex; align-items: center; }
.tp-breadcrumbs li + li::before { content: "/"; margin: 0 9px; opacity: .45; }
.tp-breadcrumbs a { color: var(--tp-muted); text-decoration: none; }
.tp-breadcrumbs a:hover { color: var(--tp-primary); text-decoration: underline; }
.tp-breadcrumbs [aria-current] span {
	color: var(--tp-text);
	display: inline-block;
	max-width: 42ch;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	vertical-align: bottom;
}

.tp-archive-header { margin-bottom: 26px; }
.tp-archive-title { margin: 0 0 6px; }
.tp-archive-desc { color: var(--tp-muted); max-width: 65ch; }
.tp-archive-desc p:last-child { margin-bottom: 0; }

/* ==========================================================================
   7. Post cards
   ========================================================================== */
.tp-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.tp-grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }

.tp-card {
	display: flex;
	flex-direction: column;
	background: var(--tp-surface);
	border: 1px solid var(--tp-line);
	border-radius: var(--tp-radius);
	overflow: hidden;
	transition: transform .2s ease, box-shadow .2s ease;
}
.tp-depth .tp-card:hover { transform: translateY(-3px); box-shadow: 0 5px 0 var(--tp-edge), 0 22px 30px -22px rgb(14 40 36 / 40%); }
.tp-card-media { display: block; aspect-ratio: 16 / 9; background: var(--tp-primary-soft); overflow: hidden; }
.tp-card-media img { width: 100%; height: 100%; object-fit: cover; }
.tp-card-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; flex: 1; }
.tp-card-title { margin: 0; font-size: 1.18rem; line-height: 1.3; }
.tp-card-title a { color: var(--tp-text); text-decoration: none; }
.tp-card-title a:hover { color: var(--tp-primary); }
.tp-card-excerpt { margin: 0; color: var(--tp-muted); font-size: 0.95rem; line-height: 1.55; }
.tp-card .tp-meta { margin-top: auto; padding-top: 4px; }

/* List layout */
@media (min-width: 700px) {
	.tp-archive-list .tp-posts { grid-template-columns: 1fr; }
	.tp-archive-list .tp-card { flex-direction: row; }
	.tp-archive-list .tp-card-media { flex: 0 0 38%; aspect-ratio: auto; min-height: 200px; }
}

.sticky.tp-card { border-color: color-mix(in srgb, var(--tp-accent) 60%, transparent); }

/* Chips */
.tp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tp-chip {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 6px;
	background: var(--tp-accent-soft);
	color: var(--tp-accent-ink);
	font-family: var(--tp-font-heading);
	font-size: 0.8rem;
	font-weight: 700;
	text-decoration: none;
}
.tp-chip:hover { background: var(--tp-accent); color: #2a1a00; }

/* Meta */
.tp-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 18px;
	color: var(--tp-muted);
	font-size: 0.88rem;
}
.tp-meta-item { display: inline-flex; align-items: center; gap: 6px; }
.tp-meta-item .tp-icon { opacity: .75; }
.tp-meta-author { display: inline-flex; align-items: center; gap: 9px; color: var(--tp-text); font-weight: 600; text-decoration: none; }
.tp-meta-author:hover { color: var(--tp-primary); }
.tp-avatar { border-radius: 50%; }

/* Pagination */
.pagination { margin-top: 36px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border: 1px solid var(--tp-line);
	border-radius: 12px;
	background: var(--tp-surface);
	color: var(--tp-text);
	font-weight: 700;
	text-decoration: none;
}
.tp-depth .pagination .page-numbers { box-shadow: 0 3px 0 var(--tp-edge); }
.pagination .page-numbers.current { background: var(--tp-primary); border-color: var(--tp-primary); color: #fff; }
.tp-depth .pagination .page-numbers.current { box-shadow: 0 3px 0 var(--tp-primary-dark); }
.pagination .dots { border: 0; background: none; box-shadow: none !important; }

/* ==========================================================================
   8. Single post
   ========================================================================== */
.tp-article {
	background: var(--tp-surface);
	border: 1px solid var(--tp-line);
	border-radius: var(--tp-radius);
	padding: clamp(20px, 4.5vw, 52px);
	box-shadow: var(--tp-shadow-soft);
}
.entry-header { margin-bottom: 26px; }
.entry-header .tp-chips { margin-bottom: 14px; }
.entry-title { margin: 0 0 18px; max-width: 26ch; text-wrap: balance; }
.page .entry-title { margin-bottom: 0; }

.entry-thumb { margin: 0 0 30px; }
.entry-thumb img { width: 100%; border-radius: var(--tp-radius-sm); aspect-ratio: 16 / 9; object-fit: cover; }
.entry-thumb figcaption { margin-top: 8px; font-size: 0.85rem; color: var(--tp-muted); text-align: center; }

/* Readable content */
.entry-content { line-height: 1.75; overflow-wrap: break-word; }
.entry-content > * { max-width: 72ch; }
.entry-content > :first-child { margin-top: 0; }
.entry-content h2 { margin-top: 1.9em; padding-top: .2em; }
.entry-content h3 { margin-top: 1.6em; }
.entry-content ul,
.entry-content ol { padding-inline-start: 1.3em; margin: 0 0 1.3em; }
.entry-content li { margin-bottom: .45em; }
.entry-content li::marker { color: var(--tp-primary); font-weight: 700; }
.entry-content a { font-weight: 600; text-decoration-color: color-mix(in srgb, var(--tp-primary) 45%, transparent); }
.entry-content a:hover { text-decoration-color: currentColor; }
.entry-content img { border-radius: var(--tp-radius-sm); }
.entry-content figure { margin: 1.8em 0; }
.entry-content figcaption { font-size: 0.86rem; color: var(--tp-muted); text-align: center; margin-top: 8px; }
.entry-content hr { border: 0; height: 1px; background: var(--tp-line); margin: 2.4em 0; }

.entry-content blockquote,
.wp-block-quote {
	margin: 1.8em 0;
	padding: 18px 22px;
	background: var(--tp-accent-soft);
	border-inline-start: 5px solid var(--tp-accent);
	border-radius: 0 var(--tp-radius-sm) var(--tp-radius-sm) 0;
	font-size: 1.04em;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content blockquote cite { display: block; margin-top: 8px; font-size: .85em; font-style: normal; color: var(--tp-muted); }

.entry-content table,
.wp-block-table table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.wp-block-table { overflow-x: auto; margin: 1.8em 0; }
.entry-content th,
.entry-content td { padding: 11px 14px; border: 1px solid var(--tp-line); text-align: start; vertical-align: top; }
.entry-content thead th { background: var(--tp-primary); color: #fff; border-color: var(--tp-primary); font-family: var(--tp-font-heading); }
.entry-content tbody tr:nth-child(even) { background: color-mix(in srgb, var(--tp-primary) 4%, transparent); }

.entry-content code { padding: 2px 6px; border-radius: 5px; background: var(--tp-primary-soft); font-size: .88em; }
.entry-content pre { padding: 18px; border-radius: var(--tp-radius-sm); background: #14211f; color: #e5efec; overflow-x: auto; font-size: .9rem; }
.entry-content pre code { background: none; padding: 0; }

.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }
.entry-content > .alignwide { max-width: 100%; }
.entry-content > .alignfull { max-width: none; margin-inline: calc(-1 * clamp(20px, 4.5vw, 52px)); }

/* Table of contents */
.tp-toc {
	margin: 0 0 2em;
	background: var(--tp-primary-soft);
	border: 1px solid color-mix(in srgb, var(--tp-primary) 18%, transparent);
	border-radius: var(--tp-radius-sm);
}
.tp-toc summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 18px;
	cursor: pointer;
	list-style: none;
	font-family: var(--tp-font-heading);
	font-weight: 700;
}
.tp-toc summary::-webkit-details-marker { display: none; }
.tp-toc summary .tp-icon { transition: transform .2s ease; }
.tp-toc[open] summary .tp-icon { transform: rotate(180deg); }
.tp-toc ol { list-style: none; counter-reset: tp-toc; margin: 0; padding: 0 18px 16px; font-size: .95rem; line-height: 1.5; }
.tp-toc li { display: flex; gap: 8px; margin: 0 0 7px; }
.tp-toc .tp-toc-l2 { counter-increment: tp-toc; }
.tp-toc .tp-toc-l2::before { content: counter(tp-toc) "."; min-width: 1.4em; color: var(--tp-primary); font-weight: 700; }
.tp-toc .tp-toc-l3 { padding-inline-start: 2.2em; font-size: .92rem; }
.tp-toc .tp-toc-l3::before { content: ""; flex-shrink: 0; width: 6px; height: 6px; margin-top: .55em; border-radius: 50%; background: var(--tp-accent); }
.tp-toc a { color: var(--tp-text); font-weight: 500; text-decoration: none; }
.tp-toc a:hover,
.tp-toc a.is-active { color: var(--tp-primary); text-decoration: underline; }

/* Entry footer */
.entry-footer { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--tp-line); display: grid; gap: 20px; }
.tp-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.tp-tags a {
	display: inline-block; padding: 5px 12px;
	border: 1px solid var(--tp-line); border-radius: 999px;
	color: var(--tp-muted); font-size: .86rem; text-decoration: none;
}
.tp-tags a:hover { border-color: var(--tp-primary); color: var(--tp-primary); }

.tp-share { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.tp-share-label { font-family: var(--tp-font-heading); font-weight: 700; }
.tp-share-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.tp-share-btn {
	display: inline-flex; align-items: center; gap: 7px;
	min-height: 40px; padding: 8px 14px;
	border: 1px solid var(--tp-line); border-radius: 10px;
	background: var(--tp-surface); color: var(--tp-text);
	font: inherit; font-size: .9rem; font-weight: 600;
	text-decoration: none; cursor: pointer;
	transition: transform .12s ease, box-shadow .12s ease;
}
.tp-depth .tp-share-btn { box-shadow: 0 3px 0 var(--tp-edge); }
.tp-depth .tp-share-btn:active { transform: translateY(3px); box-shadow: none; }
.tp-share-whatsapp { color: #128C4A; }
.tp-share-facebook { color: #1F5FD1; }

/* Author box */
.tp-author-box {
	display: flex;
	gap: 18px;
	align-items: flex-start;
	margin-top: 28px;
	padding: 24px;
	background: var(--tp-surface);
	border: 1px solid var(--tp-line);
	border-radius: var(--tp-radius);
}
.tp-author-box .tp-avatar { flex-shrink: 0; }
.tp-author-label { margin: 0; font-size: .84rem; color: var(--tp-muted); }
.tp-author-name { margin: 0 0 6px; font-family: var(--tp-font-heading); font-size: 1.15rem; font-weight: 700; }
.tp-author-name a { color: var(--tp-text); text-decoration: none; }
.tp-author-bio { margin: 0; color: var(--tp-muted); font-size: .95rem; }

/* Post navigation */
.post-navigation { margin-top: 28px; }
.post-navigation .nav-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.post-navigation a {
	display: flex; flex-direction: column; gap: 4px; height: 100%;
	padding: 18px 20px;
	background: var(--tp-surface);
	border: 1px solid var(--tp-line);
	border-radius: var(--tp-radius);
	text-decoration: none;
}
.post-navigation .nav-next a { text-align: end; }
.tp-nav-label { font-size: .82rem; color: var(--tp-muted); }
.tp-nav-title { font-family: var(--tp-font-heading); font-weight: 700; color: var(--tp-text); line-height: 1.35; }
.post-navigation a:hover .tp-nav-title { color: var(--tp-primary); }

.tp-section-title { margin: 0 0 18px; font-size: 1.4rem; }
.tp-related { margin-top: 44px; }

/* Comments */
.tp-comments {
	margin-top: 44px;
	padding: clamp(20px, 4vw, 36px);
	background: var(--tp-surface);
	border: 1px solid var(--tp-line);
	border-radius: var(--tp-radius);
}
.comment-list { list-style: none; margin: 0 0 30px; padding: 0; }
.comment-list .children { list-style: none; padding-inline-start: clamp(14px, 4vw, 40px); }
.comment-body { padding: 18px 0; border-bottom: 1px solid var(--tp-line); }
.comment-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: .9rem; }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.comment-author img { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata a { color: var(--tp-muted); text-decoration: none; }
.comment-content { margin-top: 8px; }
.reply a { font-size: .88rem; font-weight: 700; }

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
input[type="number"],
textarea,
select {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid color-mix(in srgb, var(--tp-text) 18%, transparent);
	border-radius: var(--tp-radius-sm);
	background: var(--tp-surface);
	color: var(--tp-text);
	font: inherit;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--tp-primary); box-shadow: 0 0 0 3px var(--tp-primary-soft); }
.comment-form p { margin-bottom: 14px; }
.comment-form label { display: block; margin-bottom: 4px; font-weight: 600; font-size: .92rem; }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form-cookies-consent label { font-weight: 400; }

/* ==========================================================================
   9. Sidebar widgets
   ========================================================================== */
.tp-sidebar { display: flex; flex-direction: column; gap: 22px; }
@media (min-width: 1000px) {
	.tp-sidebar { position: sticky; top: calc(var(--tp-sticky-top) + 110px); align-self: start; }
	body:not(.tp-sticky) .tp-sidebar { top: 24px; }
}
.tp-sidebar .widget {
	padding: 22px;
	background: var(--tp-surface);
	border: 1px solid var(--tp-line);
	border-radius: var(--tp-radius);
}
.widget-title {
	position: relative;
	margin: 0 0 14px;
	padding-bottom: 10px;
	font-size: 1.05rem;
}
.widget-title::after {
	content: "";
	position: absolute; left: 0; bottom: 0;
	width: 34px; height: 4px;
	border-radius: 2px;
	background: var(--tp-accent);
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 8px 0; border-bottom: 1px solid var(--tp-line); }
.widget li:last-child { border-bottom: 0; }
.widget a { color: var(--tp-text); text-decoration: none; font-weight: 600; }
.widget a:hover { color: var(--tp-primary); }
.widget .search-form { background: var(--tp-surface); }

/* ==========================================================================
   10. Footer — the lid and the raised panel
   ========================================================================== */
.site-footer {
	position: relative;
	margin-top: clamp(56px, 8vw, 96px);
	padding: clamp(70px, 9vw, 110px) 0 28px;
	background: var(--tp-footer-bg);
	color: var(--tp-footer-text);
	font-size: .95rem;
}
.tp-depth .site-footer { clip-path: polygon(0 clamp(24px, 4vw, 48px), 100% 0, 100% 100%, 0 100%); }
.site-footer::before {
	/* Parcel-tape line along the slanted top edge */
	content: "";
	position: absolute;
	left: 0; right: 0; top: 0;
	height: clamp(24px, 4vw, 48px);
	background: linear-gradient(to bottom right, transparent 50%, var(--tp-accent) 50%, var(--tp-accent) calc(50% + 6px), transparent calc(50% + 6px));
	pointer-events: none;
}
body:not(.tp-depth) .site-footer::before { display: none; }

.footer-panel {
	margin-bottom: 30px;
	padding: clamp(22px, 4vw, 40px);
	background: color-mix(in srgb, var(--tp-footer-bg) 86%, #fff);
	border: 1px solid color-mix(in srgb, var(--tp-footer-text) 12%, transparent);
	border-radius: var(--tp-radius);
}
.tp-depth .footer-panel {
	box-shadow:
		0 7px 0 color-mix(in srgb, var(--tp-footer-bg) 72%, #000),
		0 30px 50px -24px rgb(0 0 0 / 55%);
}
.footer-widgets { display: grid; gap: 30px; grid-template-columns: 1fr; }
@media (min-width: 700px) {
	.footer-widgets.tp-cols-2,
	.footer-widgets.tp-cols-3,
	.footer-widgets.tp-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
	.footer-widgets.tp-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.footer-widgets.tp-cols-4 { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.site-footer .widget-title { color: #fff; }
.site-footer .widget a,
.site-footer a { color: var(--tp-footer-text); }
.site-footer a:hover { color: #fff; }
.site-footer .widget li { border-color: color-mix(in srgb, var(--tp-footer-text) 14%, transparent); }
.site-footer .widget p { color: var(--tp-footer-text); }
.site-footer .search-form { background: color-mix(in srgb, var(--tp-footer-bg) 70%, #000); border-color: transparent; }
.site-footer .search-field { color: #fff; }

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	padding-top: 8px;
}
.footer-copy { opacity: .85; }
.footer-copy p { margin: 0; }
.tp-footer-menu { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding: 0; }
.tp-footer-menu a { text-decoration: none; font-weight: 600; }

.tp-social { list-style: none; display: flex; gap: 10px; margin: 0; padding: 0; }
.tp-social a {
	display: grid; place-items: center;
	width: 42px; height: 42px;
	border-radius: 12px;
	background: color-mix(in srgb, var(--tp-footer-bg) 82%, #fff);
	color: #fff;
	transition: transform .12s ease, box-shadow .12s ease, background-color .15s ease;
}
.tp-depth .tp-social a { box-shadow: 0 4px 0 color-mix(in srgb, var(--tp-footer-bg) 65%, #000); transform: translateY(-2px); }
.tp-social a:hover { background: var(--tp-accent); color: #2a1a00; }
.tp-depth .tp-social a:active { transform: translateY(2px); box-shadow: none; }

/* Back to top */
.tp-back-top {
	position: fixed;
	right: clamp(14px, 3vw, 28px);
	bottom: clamp(14px, 3vw, 28px);
	z-index: 90;
	display: grid; place-items: center;
	width: 48px; height: 48px;
	border-radius: 14px;
	background: var(--tp-primary);
	color: #fff;
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.tp-back-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.tp-depth .tp-back-top { box-shadow: 0 4px 0 var(--tp-primary-dark), 0 14px 24px -10px rgb(0 0 0 / 40%); }
.tp-back-top:hover { color: #fff; }

/* ==========================================================================
   11. Misc pages
   ========================================================================== */
.tp-404,
.tp-empty {
	max-width: 620px;
	margin: 30px auto;
	padding: clamp(28px, 6vw, 56px);
	text-align: center;
	background: var(--tp-surface);
	border: 1px solid var(--tp-line);
	border-radius: var(--tp-radius);
	box-shadow: var(--tp-shadow-soft);
}
.tp-404 .tp-mark { width: 96px; height: 96px; margin: 0 auto 10px; }
.tp-404-title { margin-top: 0; font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.2rem); }
.tp-404 p, .tp-empty p { color: var(--tp-muted); }
.tp-404 .search-form, .tp-empty .search-form { margin: 22px 0; text-align: start; }

.tp-fullwidth { padding-block: 24px; }
.tp-fullwidth .entry-content > * { max-width: none; }

.page-links { margin-top: 24px; display: flex; gap: 8px; align-items: center; font-weight: 700; }

/* ==========================================================================
   12. Motion & print
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media print {
	.site-header, .site-footer, .tp-sidebar, .tp-share, .tp-related, .tp-back-top, .tp-progress, .post-navigation, .tp-comments { display: none !important; }
	.tp-article { border: 0; box-shadow: none; padding: 0; }
}
