/*
Theme Name: travelspatial
Theme URI: https://travelspatial.com
Author: travelspatial
Description: A map-inspired travel blog theme with destination hubs, a Destinations mega menu, travel-style labels, a "Start here" block and a newsletter section.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
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: travelspatial
Tags: blog, travel, custom-menu, featured-images, custom-logo, threaded-comments, translation-ready
*/

/* ---------- Tokens ---------- */
:root {
	--ts-ink: #10282B;
	--ts-teal: #0F5C5A;
	--ts-sunset: #C2491D;
	--ts-sunset-dark: #A53C16;
	--ts-paper: #F2F4F1;
	--ts-white: #FFFFFF;
	--ts-line: #DCE3DF;
	--ts-line-strong: #B9C7C2;
	--ts-muted: #4A5D5F;
	--ts-body: #3F5457;
	--ts-soft: #E4EAE6;
	--ts-on-dark: #C9D6D3;
	--ts-peach: #F2B79E;

	--ts-font-display: "Bricolage Grotesque", "Helvetica Neue", sans-serif;
	--ts-font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
	--ts-font-mono: "IBM Plex Mono", ui-monospace, monospace;

	--ts-max: 1280px;
	--ts-gutter: 24px;
	--ts-radius: 16px;
	--ts-shadow: 0 18px 40px rgba(16, 40, 43, 0.12);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--ts-paper);
	color: var(--ts-ink);
	font-family: var(--ts-font-body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--ts-teal); }
a:hover { color: var(--ts-ink); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
	outline: 3px solid var(--ts-sunset);
	outline-offset: 2px;
}
h1, h2, h3, h4, h5, h6 {
	font-family: var(--ts-font-display);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.12;
	margin: 0 0 0.5em;
}
p { margin: 0 0 1.1em; }
button, input, select, textarea { font: inherit; color: inherit; }

.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: var(--ts-white); clip: auto !important; clip-path: none;
	color: var(--ts-ink); display: block; font-weight: 700; height: auto;
	left: 8px; padding: 14px 20px; top: 8px; width: auto; z-index: 100000;
	border-radius: 8px; box-shadow: var(--ts-shadow);
}

.ts-container { max-width: var(--ts-max); margin: 0 auto; padding: 0 var(--ts-gutter); }
.ts-eyebrow {
	font-family: var(--ts-font-mono);
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ts-teal);
	display: inline-block;
}
.ts-kicker {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--ts-teal);
	text-decoration: none;
}
.ts-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 0 24px;
	border: 0; border-radius: 999px;
	background: var(--ts-sunset); color: var(--ts-white);
	font-weight: 700; text-decoration: none; cursor: pointer;
	transition: background 0.15s ease;
}
.ts-btn:hover { background: var(--ts-sunset-dark); color: var(--ts-white); }
.ts-btn--ink { background: var(--ts-ink); }
.ts-btn--ink:hover { background: #000; }
.ts-icon-btn {
	width: 44px; height: 44px; border-radius: 50%;
	border: 1px solid var(--ts-line); background: var(--ts-white); color: var(--ts-ink);
	display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.ts-icon-btn:hover { background: var(--ts-soft); }
.ts-arrow-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; }
.ts-arrow-link svg { transition: transform 0.15s ease; }
.ts-arrow-link:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */
.ts-header { background: var(--ts-white); border-bottom: 1px solid var(--ts-line); position: sticky; top: 0; z-index: 50; }
.admin-bar .ts-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .ts-header { top: 0; position: relative; } }
.ts-header__inner { height: 76px; display: flex; align-items: center; gap: 24px; }
.ts-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ts-ink); flex: none; }
.ts-brand:hover { color: var(--ts-ink); }
.ts-brand__name { font-family: var(--ts-font-display); font-weight: 800; font-size: 23px; letter-spacing: -0.02em; }
.ts-brand .custom-logo { max-height: 44px; width: auto; }
.ts-header__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.ts-header__subscribe { min-height: 44px; padding: 0 20px; }
.ts-menu-toggle { display: none; background: var(--ts-ink); color: var(--ts-white); border-color: var(--ts-ink); }
.ts-menu-toggle:hover { background: #000; }

/* Primary nav (desktop) */
.ts-nav { margin-left: 8px; }
.ts-nav ul { list-style: none; margin: 0; padding: 0; }
.ts-nav > .menu { display: flex; align-items: center; gap: 2px; }
.ts-nav .menu > li { position: relative; }
.ts-nav .menu > li > a {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 10px 14px; border-radius: 8px;
	color: var(--ts-ink); font-weight: 600; text-decoration: none;
}
.ts-nav .menu > li > a:hover,
.ts-nav .menu > li:focus-within > a,
.ts-nav .menu > li.current-menu-item > a,
.ts-nav .menu > li.current-menu-ancestor > a { background: var(--ts-soft); }
.ts-nav .menu-item-has-children > a::after {
	content: ""; width: 7px; height: 7px; margin-left: 2px; margin-top: -3px;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
}

/* Standard dropdowns */
.ts-nav .sub-menu {
	position: absolute; left: 0; top: calc(100% + 8px); min-width: 240px;
	background: var(--ts-white); border: 1px solid var(--ts-line); border-radius: 14px;
	box-shadow: var(--ts-shadow); padding: 8px;
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
	z-index: 60;
}
.ts-nav .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.ts-nav li:hover > .sub-menu,
.ts-nav li:focus-within > .sub-menu,
.ts-nav li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.ts-nav .sub-menu a {
	display: block; padding: 10px 14px; border-radius: 8px;
	color: var(--ts-ink); text-decoration: none; font-weight: 500;
}
.ts-nav .sub-menu a:hover { background: var(--ts-paper); }
.ts-nav .sub-menu .sub-menu { left: 100%; top: -8px; }

/* Mega menu — add the CSS class "mega" to the top-level menu item */
.ts-nav .menu > li.mega { position: static; }
.ts-nav .menu > li.mega > .sub-menu {
	left: 50%; transform: translate(-50%, 6px);
	width: min(calc(100vw - 48px), calc(var(--ts-max) - 48px));
	padding: 28px 32px 32px;
	display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px 28px;
	border-radius: 0 0 20px 20px; top: 100%;
	border-top: 0;
}
.ts-nav .menu > li.mega:hover > .sub-menu,
.ts-nav .menu > li.mega:focus-within > .sub-menu,
.ts-nav .menu > li.mega.is-open > .sub-menu { transform: translate(-50%, 0); }
.ts-nav .mega > .sub-menu > li > a {
	font-family: var(--ts-font-display); font-weight: 700; font-size: 20px;
	padding: 4px 0 8px; border-bottom: 2px solid var(--ts-soft); border-radius: 0; margin-bottom: 6px;
}
.ts-nav .mega > .sub-menu > li > a:hover { background: none; color: var(--ts-teal); }
.ts-nav .mega > .sub-menu .sub-menu {
	position: static; opacity: 1; visibility: visible; transform: none;
	box-shadow: none; border: 0; padding: 0; min-width: 0; background: none;
}
.ts-nav .mega > .sub-menu .sub-menu a { padding: 5px 0; color: var(--ts-body); }
.ts-nav .mega > .sub-menu .sub-menu a:hover { background: none; color: var(--ts-teal); text-decoration: underline; text-underline-offset: 3px; }
.ts-nav .mega > .sub-menu .menu-item-has-children > a::after { display: none; }

/* Search overlay */
.ts-search-panel { background: var(--ts-white); border-bottom: 1px solid var(--ts-line); padding: 20px 0; }
.ts-search-panel[hidden] { display: none; }

/* Search form */
.ts-searchform { display: flex; flex-wrap: wrap; gap: 8px; max-width: 560px; }
.ts-searchform__field {
	flex: 1 1 260px; display: flex; align-items: center; gap: 10px;
	height: 56px; padding: 0 18px;
	background: var(--ts-white); border: 1.5px solid var(--ts-line-strong); border-radius: 999px;
}
.ts-searchform__field:focus-within { border-color: var(--ts-teal); }
.ts-searchform__field input {
	flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 17px;
}
.ts-searchform .ts-btn { height: 56px; }

/* ---------- Mobile nav ---------- */
@media (max-width: 1024px) {
	.ts-nav, .ts-header__subscribe { display: none; }
	.ts-menu-toggle { display: inline-flex; }
	.ts-header__inner { height: 64px; }
	body.ts-nav-open { overflow: hidden; }
	body.ts-nav-open .ts-nav {
		display: block; position: fixed; inset: 64px 0 0 0; margin: 0;
		background: var(--ts-white); overflow-y: auto; padding: 16px var(--ts-gutter) 40px; z-index: 70;
	}
	.admin-bar.ts-nav-open .ts-nav { top: 110px; }
	body.ts-nav-open .ts-nav > .menu { flex-direction: column; align-items: stretch; gap: 0; }
	body.ts-nav-open .ts-nav .menu > li { border-bottom: 1px solid var(--ts-line); }
	body.ts-nav-open .ts-nav .menu > li > a { padding: 16px 4px; font-size: 19px; background: none; }
	body.ts-nav-open .ts-nav .menu-item-has-children > a::after { display: none; }
	body.ts-nav-open .ts-nav .sub-menu,
	body.ts-nav-open .ts-nav .menu > li.mega > .sub-menu {
		position: static; opacity: 1; visibility: visible; transform: none;
		box-shadow: none; border: 0; padding: 0 0 12px 12px; width: auto; min-width: 0;
		display: none; grid-template-columns: 1fr; gap: 0;
	}
	body.ts-nav-open .ts-nav li.is-open > .sub-menu,
	body.ts-nav-open .ts-nav .menu > li.mega.is-open > .sub-menu { display: block; }
	body.ts-nav-open .ts-nav .mega > .sub-menu > li > a { font-size: 17px; border: 0; margin: 0; padding: 10px 0; }
	body.ts-nav-open .ts-nav .mega > .sub-menu .sub-menu { display: none; padding-left: 12px; }
	body.ts-nav-open .ts-nav .mega > .sub-menu li.is-open > .sub-menu { display: block; }
	.ts-nav li { position: relative; }
	.ts-submenu-toggle {
		position: absolute; right: 0; top: 9px;
		width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
		display: inline-flex; align-items: center; justify-content: center; color: var(--ts-ink);
	}
	.ts-nav .sub-menu .ts-submenu-toggle { top: 0; }
	.ts-submenu-toggle svg { transition: transform 0.15s ease; }
	li.is-open > .ts-submenu-toggle svg { transform: rotate(180deg); }
	.ts-nav__mobile-cta { display: flex; margin-top: 24px; }
}
@media (min-width: 1025px) {
	.ts-submenu-toggle, .ts-nav__mobile-cta { display: none; }
}

/* ---------- Hero ---------- */
.ts-hero { padding: 64px 0 56px; }
.ts-hero__inner { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.ts-hero__copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.ts-hero__title { margin: 0; font-size: clamp(40px, 5.4vw, 72px); line-height: 1.02; letter-spacing: -0.03em; }
.ts-hero__lede { margin: 0; max-width: 520px; font-size: 19px; color: var(--ts-body); }
.ts-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ts-chips__label { font-size: 14px; color: var(--ts-muted); margin-right: 4px; }
.ts-chip {
	padding: 8px 14px; border-radius: 999px;
	background: var(--ts-white); border: 1px solid var(--ts-line);
	color: var(--ts-ink); text-decoration: none; font-size: 14px; font-weight: 600;
	transition: background 0.15s ease, color 0.15s ease;
}
.ts-chip:hover { background: var(--ts-ink); color: var(--ts-white); }
.ts-hero__feature { flex: 1 1 440px; min-width: 0; }

/* ---------- Cards ---------- */
.ts-media {
	position: relative; overflow: hidden; background: #3E6F64;
	border-radius: var(--ts-radius);
}
.ts-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.ts-media__coord {
	position: absolute; left: 12px; bottom: 12px;
	padding: 4px 9px; border-radius: 6px;
	background: rgba(16, 40, 43, 0.85); color: var(--ts-white);
	font-family: var(--ts-font-mono); font-size: 12px; line-height: 1.4;
}
.ts-media__badge {
	position: absolute; left: 12px; top: 12px;
	padding: 5px 11px; border-radius: 999px;
	background: var(--ts-white); color: var(--ts-ink);
	font-size: 13px; font-weight: 700; line-height: 1.4;
}
.ts-media__badge--accent { background: var(--ts-sunset); color: var(--ts-white); }

.ts-feature-card {
	display: flex; flex-direction: column; text-decoration: none; color: var(--ts-ink);
	background: var(--ts-white); border-radius: 20px; overflow: hidden; box-shadow: var(--ts-shadow);
}
.ts-feature-card .ts-media { aspect-ratio: 4 / 3; border-radius: 0; max-height: 360px; }
.ts-feature-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; }
.ts-feature-card__title { font-family: var(--ts-font-display); font-weight: 700; font-size: 28px; line-height: 1.15; letter-spacing: -0.01em; }
.ts-feature-card:hover { color: var(--ts-ink); }
.ts-feature-card:hover .ts-feature-card__title { text-decoration: underline; text-underline-offset: 3px; }
.ts-feature-card:hover img, .ts-post-card:hover img, .ts-dest-card:hover img { transform: scale(1.03); }

.ts-meta { font-size: 14px; color: var(--ts-muted); }

.ts-post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 32px 20px; }
.ts-post-card { display: flex; flex-direction: column; gap: 12px; position: relative; }
.ts-post-card .ts-media { aspect-ratio: 3 / 2; }
.ts-post-card__title { font-family: var(--ts-font-display); font-weight: 700; font-size: 23px; line-height: 1.2; letter-spacing: -0.01em; margin: 0; }
.ts-post-card__title a { color: var(--ts-ink); text-decoration: none; }
.ts-post-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.ts-post-card:hover .ts-post-card__title a { text-decoration: underline; text-underline-offset: 3px; }
.ts-post-card .ts-kicker { position: relative; z-index: 2; }

.ts-dest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.ts-dest-card {
	display: flex; flex-direction: column; text-decoration: none; color: var(--ts-ink);
	background: var(--ts-white); border: 1px solid var(--ts-line); border-radius: var(--ts-radius); overflow: hidden;
}
.ts-dest-card .ts-media { height: 180px; border-radius: 0; }
.ts-dest-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 4px; }
.ts-dest-card__name { font-family: var(--ts-font-display); font-weight: 700; font-size: 26px; letter-spacing: -0.01em; }
.ts-dest-card__sub { font-size: 15px; color: var(--ts-muted); }
.ts-dest-card:hover { color: var(--ts-ink); }
.ts-dest-card:hover .ts-dest-card__name { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Sections ---------- */
.ts-section { padding: 56px 0; }
.ts-section--white { background: var(--ts-white); border-top: 1px solid var(--ts-line); border-bottom: 1px solid var(--ts-line); }
.ts-section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.ts-section__title { margin: 6px 0 0; font-size: clamp(30px, 3.4vw, 42px); }

.ts-style-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.ts-style-card {
	display: flex; align-items: center; gap: 18px; padding: 20px 22px;
	border-radius: 14px; background: var(--ts-paper); border: 1px solid var(--ts-line);
	text-decoration: none; color: var(--ts-ink);
	transition: border-color 0.15s ease, transform 0.15s ease;
}
.ts-style-card:hover { color: var(--ts-ink); border-color: var(--ts-teal); transform: translateY(-2px); }
.ts-style-card__num {
	flex: none; width: 52px; height: 52px; border-radius: 50%;
	background: var(--ts-ink); color: var(--ts-white);
	display: inline-flex; align-items: center; justify-content: center;
	font-family: var(--ts-font-mono); font-size: 15px;
}
.ts-style-card__name { display: block; font-weight: 700; font-size: 19px; }
.ts-style-card__desc { display: block; font-size: 15px; color: var(--ts-muted); }

.ts-start {
	background: var(--ts-ink); color: var(--ts-white); border-radius: 24px;
	padding: 44px 40px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center;
}
.ts-start__copy { flex: 1 1 320px; min-width: 0; }
.ts-start .ts-eyebrow { color: var(--ts-peach); }
.ts-start h2 { margin: 6px 0 10px; font-size: 38px; }
.ts-start p { margin: 0; color: var(--ts-on-dark); font-size: 17px; }
.ts-start__list { flex: 1 1 480px; min-width: 0; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ts-start__list a {
	display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 12px;
	background: rgba(255, 255, 255, 0.08); color: var(--ts-white); text-decoration: none; font-weight: 600; font-size: 18px;
	transition: background 0.15s ease;
}
.ts-start__list a:hover { background: rgba(255, 255, 255, 0.16); color: var(--ts-white); }
.ts-start__list .num { font-family: var(--ts-font-mono); color: var(--ts-peach); }
.ts-start__list svg { margin-left: auto; flex: none; }

.ts-duo { display: flex; flex-wrap: wrap; gap: 20px; }
.ts-about-card {
	flex: 1 1 380px; min-width: 0; background: var(--ts-white); border: 1px solid var(--ts-line);
	border-radius: 20px; padding: 32px; display: flex; gap: 22px; align-items: flex-start;
}
.ts-about-card__photo { flex: none; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: var(--ts-on-dark); }
.ts-about-card h2 { font-size: 26px; font-weight: 700; margin: 0 0 8px; }
.ts-about-card p { color: var(--ts-body); margin: 0 0 8px; }

.ts-newsletter {
	flex: 1.4 1 480px; min-width: 0; background: var(--ts-teal); color: var(--ts-white);
	border-radius: 20px; padding: 32px 36px; display: flex; flex-direction: column; gap: 14px;
}
.ts-newsletter h2 { margin: 0; font-size: 32px; }
.ts-newsletter p { margin: 0; color: #D6E6E2; }
.ts-newsletter__form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.ts-newsletter__form input[type="email"] {
	flex: 1 1 240px; min-width: 0; height: 52px; padding: 0 18px;
	border: 0; border-radius: 999px; color: var(--ts-ink); background: var(--ts-white);
}
.ts-newsletter__form .ts-btn { height: 52px; }
.ts-newsletter__note { font-size: 13px; color: #C9DDD8; }
.ts-newsletter input, .ts-newsletter select, .ts-newsletter textarea { color: var(--ts-ink); }

/* ---------- Archive / hub ---------- */
.ts-hub-head { padding: 48px 0 32px; }
.ts-breadcrumbs { font-size: 14px; color: var(--ts-muted); margin-bottom: 14px; }
.ts-breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ts-breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--ts-line-strong); }
.ts-breadcrumbs a { color: var(--ts-muted); }
.ts-hub-head h1 { font-size: clamp(40px, 5vw, 64px); letter-spacing: -0.03em; margin: 6px 0 12px; }
.ts-hub-head__desc { max-width: 720px; font-size: 19px; color: var(--ts-body); }
.ts-hub-head__desc p:last-child { margin-bottom: 0; }
.ts-subcats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }

.ts-pagination { margin-top: 48px; }
.ts-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.ts-pagination .page-numbers {
	min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--ts-white); border: 1px solid var(--ts-line); color: var(--ts-ink); text-decoration: none; font-weight: 600;
}
.ts-pagination .page-numbers.current { background: var(--ts-ink); color: var(--ts-white); border-color: var(--ts-ink); }
.ts-pagination a.page-numbers:hover { border-color: var(--ts-teal); }

.ts-empty { padding: 48px; text-align: center; background: var(--ts-white); border: 1px dashed var(--ts-line-strong); border-radius: var(--ts-radius); color: var(--ts-muted); }

/* ---------- Single post ---------- */
.ts-single-head { padding: 48px 0 28px; }
.ts-single-head__inner { max-width: 820px; }
.ts-single-head h1 { font-size: clamp(36px, 4.6vw, 58px); letter-spacing: -0.03em; margin: 10px 0 16px; }
.ts-single-head .ts-chips { margin-top: 18px; }
.ts-byline { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--ts-muted); }
.ts-byline img { border-radius: 50%; }
.ts-byline strong { color: var(--ts-ink); }
.ts-single-hero { margin: 0 auto 40px; max-width: var(--ts-max); padding: 0 var(--ts-gutter); }
.ts-single-hero .ts-media { aspect-ratio: 16 / 8; border-radius: 20px; }
.ts-single-hero figcaption { font-size: 14px; color: var(--ts-muted); margin-top: 8px; }

.ts-content { max-width: 720px; margin: 0 auto; font-size: 18px; line-height: 1.75; color: #1D3538; }
.ts-content > * { margin-top: 0; margin-bottom: 1.3em; }
.ts-content h2 { font-size: 32px; margin-top: 1.8em; }
.ts-content h3 { font-size: 24px; margin-top: 1.6em; font-weight: 700; }
.ts-content a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ts-content img { border-radius: 12px; }
.ts-content figure { margin-left: 0; margin-right: 0; }
.ts-content figcaption { font-size: 14px; color: var(--ts-muted); margin-top: 8px; text-align: center; }
.ts-content blockquote {
	margin-left: 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--ts-sunset);
	font-family: var(--ts-font-display); font-size: 24px; line-height: 1.35; color: var(--ts-ink);
}
.ts-content ul, .ts-content ol { padding-left: 1.3em; }
.ts-content li { margin-bottom: 0.4em; }
.ts-content table { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.ts-content th, .ts-content td { padding: 10px 12px; border-bottom: 1px solid var(--ts-line); text-align: left; }
.ts-content th { background: var(--ts-soft); }
.ts-content .alignwide { max-width: 1040px; margin-left: 50%; transform: translateX(-50%); width: min(1040px, calc(100vw - 48px)); }
.ts-content .alignfull { width: 100vw; max-width: 100vw; margin-left: 50%; transform: translateX(-50%); }
.ts-content .wp-block-image img { height: auto; }
.ts-content pre { background: var(--ts-ink); color: var(--ts-white); padding: 18px; border-radius: 12px; overflow-x: auto; font-size: 15px; }
.ts-content .wp-block-button__link { background: var(--ts-sunset); border-radius: 999px; font-weight: 700; }

.ts-post-foot { max-width: 720px; margin: 40px auto 0; padding-top: 28px; border-top: 1px solid var(--ts-line); }
.ts-author-box { display: flex; gap: 18px; align-items: flex-start; background: var(--ts-white); border: 1px solid var(--ts-line); border-radius: var(--ts-radius); padding: 24px; margin-top: 28px; }
.ts-author-box img { border-radius: 50%; flex: none; }
.ts-author-box h2 { font-size: 20px; margin: 0 0 6px; }
.ts-author-box p { margin: 0; color: var(--ts-body); font-size: 16px; }

.ts-related { padding: 64px 0; margin-top: 56px; background: var(--ts-white); border-top: 1px solid var(--ts-line); }

/* Comments */
.ts-comments { max-width: 720px; margin: 56px auto 0; }
.ts-comments ol { list-style: none; padding: 0; }
.ts-comments .children { padding-left: 24px; }
.ts-comments .comment-body { background: var(--ts-white); border: 1px solid var(--ts-line); border-radius: 14px; padding: 18px 20px; margin-bottom: 14px; }
.ts-comments .comment-meta { font-size: 14px; color: var(--ts-muted); margin-bottom: 8px; }
.ts-comments .avatar { border-radius: 50%; float: left; margin-right: 12px; }
.ts-comments input[type="text"], .ts-comments input[type="email"], .ts-comments input[type="url"], .ts-comments textarea {
	width: 100%; padding: 12px 14px; border: 1.5px solid var(--ts-line-strong); border-radius: 10px; background: var(--ts-white);
}
.ts-comments .submit { background: var(--ts-sunset); color: var(--ts-white); border: 0; border-radius: 999px; padding: 14px 26px; font-weight: 700; cursor: pointer; }

/* Pages */
.ts-page { padding: 48px 0 72px; }
.ts-page h1 { font-size: clamp(36px, 4.6vw, 58px); max-width: 720px; margin: 0 auto 28px; letter-spacing: -0.03em; }

/* 404 */
.ts-404 { padding: 96px 0; text-align: center; }
.ts-404 h1 { font-size: clamp(48px, 7vw, 96px); letter-spacing: -0.04em; }
.ts-404 .ts-searchform { margin: 28px auto 0; }

/* ---------- Footer ---------- */
.ts-footer { background: var(--ts-ink); color: var(--ts-on-dark); margin-top: 0; }
.ts-footer__inner { padding: 56px var(--ts-gutter) 28px; display: flex; flex-direction: column; gap: 40px; }
.ts-footer__cols { display: flex; flex-wrap: wrap; gap: 40px; }
.ts-footer__brand { flex: 1.4 1 260px; min-width: 0; }
.ts-footer__brand .ts-brand__name { color: var(--ts-white); font-size: 26px; }
.ts-footer__brand p { margin: 12px 0 0; max-width: 300px; }
.ts-footer__col { flex: 1 1 150px; }
.ts-footer__col h2 { color: var(--ts-white); font-family: var(--ts-font-body); font-weight: 700; font-size: 16px; letter-spacing: 0; margin: 0 0 12px; }
.ts-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ts-footer a { color: var(--ts-on-dark); text-decoration: none; }
.ts-footer a:hover { color: var(--ts-white); text-decoration: underline; }
.ts-footer__bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.15); font-size: 14px; }
.ts-footer__bottom ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.ts-footer__bottom a { text-decoration: underline; }

/* ---------- WordPress core classes ---------- */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { font-size: 14px; color: var(--ts-muted); }
.sticky, .bypostauthor { }

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
	:root { --ts-gutter: 16px; }
	body { font-size: 16px; }
	.ts-hero { padding: 32px 0 28px; }
	.ts-section { padding: 40px 0; }
	.ts-post-grid, .ts-dest-grid { grid-template-columns: 1fr; }
	.ts-style-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.ts-style-card { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; }
	.ts-style-card__num { width: auto; height: auto; background: none; color: var(--ts-teal); font-size: 12px; }
	.ts-style-card__desc { display: none; }
	.ts-start { padding: 28px 20px; border-radius: 18px; }
	.ts-start h2 { font-size: 28px; }
	.ts-about-card { flex-direction: column; padding: 24px; }
	.ts-newsletter { padding: 24px 20px; }
	.ts-newsletter h2 { font-size: 26px; }
	.ts-content { font-size: 17px; }
	.ts-dest-scroll { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--ts-gutter) * -1); padding: 0 var(--ts-gutter) 4px; }
	.ts-dest-scroll > * { flex: 0 0 78%; scroll-snap-align: start; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
