/*
Theme Name: ContentTrailHQ
Theme URI: https://contenttrailhq.com/
Author: Muhammad Aqib
Author URI: https://www.fiverr.com/aqibarif74
Description: An adventure-editorial blog theme for how-to, guide and discovery publishers — every article is a trail leading somewhere. ContentTrailHQ maps your content onto a journey: a topographic trailhead hero, trail-marker category cards with real difficulty ratings derived from reading time, "current expeditions" with progress indicators, mono trail stats (length, difficulty, terrain, travellers), waypoint navigation, points-of-interest callouts and a deep-forest dark mode. Bricolage Grotesque, Source Serif 4, Inter and IBM Plex Mono on a warm map canvas, across eleven purpose-built templates. All topographic patterns are pure CSS — nothing is fetched from a CDN at runtime.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: contenttrailhq
Tags: blog, news, custom-menu, custom-logo, featured-images, right-sidebar, two-columns, translation-ready, block-styles, wide-blocks, threaded-comments, footer-widgets, editorial
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */

:root {
	--cth-bg:           #f7f5f0;   /* canvas / map paper */
	--cth-surface:      #ffffff;
	--cth-surface-alt:  #efebe1;
	--cth-primary:      #1a2e1f;   /* forest deep */
	--cth-accent:       #d97706;   /* trail-marker orange */
	--cth-accent-soft:  #f59e0b;
	--cth-secondary:    #78716c;   /* stone */
	--cth-trail:        #365314;   /* trail green */
	--cth-text:         #292524;
	--cth-muted:        #78716c;
	--cth-border:       #ddd6c9;
	--cth-rule:         #e4dfd4;
	--cth-onaccent:     #ffffff;
	--cth-onprimary:    #f7f5f0;

	/* Topographic pattern inks — kept as tokens so dark mode re-tints them. */
	--cth-topo:         rgba(26, 46, 31, .085);
	--cth-topo-soft:    rgba(26, 46, 31, .05);
	--cth-grid:         rgba(26, 46, 31, .045);

	--cth-font-head: "Bricolage Grotesque", "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
	--cth-font-body: "Source Serif 4", Georgia, "Times New Roman", serif;
	--cth-font-ui:   "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
	--cth-font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

	--cth-radius:    6px;
	--cth-radius-lg: 14px;
	--cth-gutter:    32px;
	--cth-max:       1240px;
	--cth-content:   720px;

	--cth-shadow:    0 1px 2px rgba(26, 46, 31, .05), 0 14px 38px rgba(26, 46, 31, .09);
	--cth-shadow-sm: 0 1px 3px rgba(26, 46, 31, .08);
}

[data-theme="dark"] {
	--cth-bg:           #0c1810;   /* deep forest */
	--cth-surface:      #1a2e1f;
	--cth-surface-alt:  #142219;
	--cth-primary:      #f7f5f0;
	--cth-accent:       #fb923c;
	--cth-accent-soft:  #fdba74;
	--cth-secondary:    #a8a29e;
	--cth-trail:        #84cc16;
	--cth-text:         #e8e6e1;
	--cth-muted:        #a8a29e;
	--cth-border:       #26402c;
	--cth-rule:         #22392a;
	--cth-onaccent:     #0c1810;
	--cth-onprimary:    #0c1810;

	--cth-topo:         rgba(132, 204, 22, .10);
	--cth-topo-soft:    rgba(247, 245, 240, .05);
	--cth-grid:         rgba(247, 245, 240, .04);

	--cth-shadow:       0 1px 2px rgba(0, 0, 0, .45), 0 14px 38px rgba(0, 0, 0, .5);
	--cth-shadow-sm:    0 1px 3px rgba(0, 0, 0, .55);
}

/* ==========================================================================
   2. Reset & base
   ========================================================================== */

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

body {
	margin: 0;
	background: var(--cth-bg);
	color: var(--cth-text);
	font-family: var(--cth-font-body);
	font-size: 18px;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	transition: background .25s ease, color .25s ease;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--cth-font-head);
	color: var(--cth-primary);
	line-height: 1.12;
	margin: 0 0 .5em;
	font-weight: 700;
	letter-spacing: -.02em;
}

h1 { font-size: clamp(2.2rem, 4.8vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.42rem; }

a { color: var(--cth-accent); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; text-underline-offset: 3px; }

img { max-width: 100%; height: auto; display: block; }

figure { margin: 0; }

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

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

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 999;
	background: var(--cth-accent);
	color: var(--cth-onaccent);
	font-family: var(--cth-font-ui);
	font-weight: 600;
	padding: 12px 20px;
	border-radius: 0 0 var(--cth-radius) 0;
}
.skip-link:focus { left: 0; }

.cth-lower { text-transform: lowercase; }

/* ==========================================================================
   3. Topographic patterns — pure CSS, no images, no CDN
   ========================================================================== */

/*
 * Contour rings are built from repeating-radial-gradient: a transparent band
 * followed by a 1px ink band produces evenly spaced elevation lines. Two
 * offset origins give the irregular, surveyed feel of a real contour map, and
 * a faint square grid underneath reads as the map's reference grid.
 */
.cth-topo {
	position: relative;
	isolation: isolate;
	overflow: hidden;
}
.cth-topo::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		repeating-radial-gradient(circle at 16% 22%, transparent 0 26px, var(--cth-topo) 26px 27px),
		repeating-radial-gradient(circle at 84% 74%, transparent 0 34px, var(--cth-topo-soft) 34px 35px),
		repeating-linear-gradient(0deg,  transparent 0 47px, var(--cth-grid) 47px 48px),
		repeating-linear-gradient(90deg, transparent 0 47px, var(--cth-grid) 47px 48px);
	pointer-events: none;
}

/* A denser, tighter contour field for small panels. */
.cth-topo--tight::before {
	background-image:
		repeating-radial-gradient(circle at 78% 18%, transparent 0 14px, var(--cth-topo) 14px 15px),
		repeating-linear-gradient(90deg, transparent 0 31px, var(--cth-grid) 31px 32px);
}

/* A ridge band: diagonal contour lines, used behind section markers. */
.cth-topo--ridge::before {
	background-image:
		repeating-linear-gradient(58deg, transparent 0 11px, var(--cth-topo-soft) 11px 12px);
}

/* ==========================================================================
   4. Layout
   ========================================================================== */

.cth-container {
	width: 100%;
	max-width: var(--cth-max);
	margin-inline: auto;
	padding-inline: var(--cth-gutter);
}

.cth-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 330px;
	gap: 56px;
	align-items: start;
	padding-block: 56px;
}
.cth-layout--full { grid-template-columns: minmax(0, 1fr); }

@media (max-width: 1000px) {
	.cth-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}

.cth-section { margin-top: 72px; }
.cth-section:first-child { margin-top: 0; }

/* Section heading */
.cth-sectionhead {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	margin: 0 0 32px;
	padding-bottom: 16px;
	border-bottom: 2px solid var(--cth-primary);
}
.cth-sectionhead__main { min-width: 0; }
.cth-sectionhead__code {
	display: inline-block;
	font-family: var(--cth-font-mono);
	font-size: .7rem;
	font-weight: 600;
	letter-spacing: .14em;
	color: var(--cth-accent);
	margin-bottom: 8px;
}
.cth-sectionhead__code::before { content: "/ "; color: var(--cth-muted); }
.cth-sectionhead__title {
	margin: 0;
	font-size: clamp(1.4rem, 2.7vw, 2rem);
	text-transform: uppercase;
	letter-spacing: -.01em;
}
.cth-sectionhead__sub {
	margin: 8px 0 0;
	color: var(--cth-muted);
	font-size: 1rem;
	max-width: 62ch;
}

/* Dashed trail divider */
.cth-divider {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 64px 0;
}
.cth-divider::before,
.cth-divider::after {
	content: "";
	flex: 1;
	height: 2px;
	background-image: repeating-linear-gradient(90deg, var(--cth-border) 0 10px, transparent 10px 18px);
}
.cth-divider__mark {
	width: 12px; height: 18px;
	flex: 0 0 auto;
	border-radius: 2px;
	background: var(--cth-accent);
}

/* Buttons */
.cth-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 26px;
	border-radius: var(--cth-radius);
	border: 1px solid var(--cth-accent);
	background: var(--cth-accent);
	color: var(--cth-onaccent);
	font-family: var(--cth-font-ui);
	font-weight: 600;
	font-size: .85rem;
	letter-spacing: .03em;
	cursor: pointer;
	transition: background .2s, color .2s, transform .2s;
}
.cth-btn:hover { background: transparent; color: var(--cth-accent); text-decoration: none; transform: translateY(-1px); }

.cth-btn--ghost {
	background: transparent;
	border-color: var(--cth-border);
	color: var(--cth-primary);
}
.cth-btn--ghost:hover { border-color: var(--cth-accent); color: var(--cth-accent); }

.cth-textlink {
	font-family: var(--cth-font-ui);
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--cth-accent);
	white-space: nowrap;
	border-bottom: 1px solid transparent;
	transition: border-color .2s;
}
.cth-textlink:hover { text-decoration: none; border-color: var(--cth-accent); }
.cth-textlink::after { content: " \2192"; }

/* ==========================================================================
   5. Trail markers, difficulty pips and the mono trail line
   ========================================================================== */

.cth-marker {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px 14px;
}

/* The blaze: a painted rectangle on a tree, the classic trail marker. */
.cth-marker__blaze {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--cth-font-ui);
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--cth-primary);
}
.cth-marker__blaze:hover { text-decoration: none; color: var(--cth-accent); }
.cth-marker__flash {
	width: 7px; height: 16px;
	border-radius: 1px;
	background: var(--cth-accent);
	flex: 0 0 auto;
}
.cth-marker__len {
	font-family: var(--cth-font-mono);
	font-size: .72rem;
	color: var(--cth-muted);
}

.cth-diff { display: inline-flex; align-items: center; gap: 7px; }
.cth-diff__pips { display: inline-flex; gap: 3px; }
.cth-diff__pips i {
	width: 6px; height: 6px;
	border-radius: 50%;
	border: 1px solid var(--cth-secondary);
	display: block;
}
.cth-diff__pips i.is-on { background: var(--cth-trail); border-color: var(--cth-trail); }
.cth-diff--moderate .cth-diff__pips i.is-on { background: var(--cth-accent); border-color: var(--cth-accent); }
.cth-diff--challenging .cth-diff__pips i.is-on { background: #b91c1c; border-color: #b91c1c; }
[data-theme="dark"] .cth-diff--challenging .cth-diff__pips i.is-on { background: #f87171; border-color: #f87171; }
.cth-diff__label {
	font-family: var(--cth-font-mono);
	font-size: .68rem;
	letter-spacing: .06em;
	text-transform: lowercase;
	color: var(--cth-muted);
}

/* The mono trail-info line on cards */
.cth-trailline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
	margin: 0;
	font-family: var(--cth-font-mono);
	font-size: .74rem;
	line-height: 1.6;
	color: var(--cth-muted);
}
.cth-trailline b { font-weight: 500; color: var(--cth-text); }
.cth-trailline__dot { color: var(--cth-accent); }

/* Byline meta row */
.cth-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	font-family: var(--cth-font-ui);
	font-size: .82rem;
	color: var(--cth-muted);
}
.cth-meta img { width: 34px; height: 34px; border-radius: 50%; }
.cth-meta__by { color: var(--cth-text); }
.cth-meta__by a { color: var(--cth-text); font-weight: 600; }
.cth-meta__by a:hover { color: var(--cth-accent); }
.cth-meta__sep { width: 12px; height: 2px; background: var(--cth-border); flex: 0 0 auto; }

/* ==========================================================================
   6. Header & navigation
   ========================================================================== */

.cth-topbar {
	background: var(--cth-primary);
	color: rgba(247, 245, 240, .78);
	font-family: var(--cth-font-mono);
	font-size: .7rem;
	letter-spacing: .06em;
}
[data-theme="dark"] .cth-topbar { background: #081008; color: rgba(247, 245, 240, .7); }

.cth-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 36px;
	padding-block: 6px;
}
.cth-topbar__coords { color: var(--cth-accent-soft); }
.cth-topbar__meta { display: flex; align-items: center; gap: 12px; }

@media (max-width: 640px) {
	.cth-topbar__tagline { display: none; }
}

.cth-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: color-mix(in srgb, var(--cth-bg) 90%, transparent);
	backdrop-filter: saturate(150%) blur(10px);
	border-bottom: 1px solid var(--cth-border);
}

.cth-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 82px;
}

.cth-brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-family: var(--cth-font-head);
	font-weight: 800;
	font-size: 1.5rem;
	color: var(--cth-primary);
	letter-spacing: -.03em;
}
.cth-brand:hover { text-decoration: none; }

.cth-brand__mark {
	width: 36px; height: 36px;
	flex: 0 0 auto;
	color: var(--cth-accent);
}
.cth-brand__mark svg { width: 100%; height: 100%; display: block; }

.cth-brand__tagline {
	display: block;
	font-family: var(--cth-font-mono);
	font-size: .62rem;
	font-weight: 400;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--cth-muted);
	margin-top: 3px;
}

/* Nav items are trail markers: a blaze appears beside the active route. */
.cth-nav ul {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
}

.cth-nav a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--cth-primary);
	font-family: var(--cth-font-ui);
	font-size: .78rem;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	padding: 9px 14px;
	border-radius: var(--cth-radius);
	position: relative;
	transition: background .2s, color .2s;
}
.cth-nav a::before {
	content: "";
	width: 5px;
	height: 13px;
	border-radius: 1px;
	background: var(--cth-accent);
	opacity: 0;
	transform: translateX(-3px);
	transition: opacity .2s, transform .2s;
}
.cth-nav a:hover { text-decoration: none; background: var(--cth-surface-alt); color: var(--cth-primary); }
.cth-nav a:hover::before { opacity: 1; transform: none; }

.cth-nav .current-menu-item > a,
.cth-nav .current_page_item > a { color: var(--cth-primary); background: var(--cth-surface-alt); }
.cth-nav .current-menu-item > a::before,
.cth-nav .current_page_item > a::before { opacity: 1; transform: none; }

/* Sub-menus */
.cth-nav ul ul {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	flex-direction: column;
	align-items: stretch;
	gap: 2px;
	background: var(--cth-surface);
	border: 1px solid var(--cth-border);
	border-radius: var(--cth-radius);
	box-shadow: var(--cth-shadow);
	padding: 8px;
	display: none;
	z-index: 20;
}
.cth-nav li { position: relative; }
.cth-nav li:hover > ul,
.cth-nav li:focus-within > ul { display: flex; }
.cth-nav ul ul a { display: flex; padding: 10px 12px; }

.cth-header__actions { display: flex; align-items: center; gap: 10px; }

.cth-iconbtn {
	width: 42px; height: 42px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--cth-border);
	border-radius: var(--cth-radius);
	background: var(--cth-surface);
	color: var(--cth-primary);
	cursor: pointer;
	padding: 0;
	transition: border-color .2s, color .2s, background .2s;
}
.cth-iconbtn:hover { border-color: var(--cth-accent); color: var(--cth-accent); text-decoration: none; }
.cth-iconbtn svg { width: 18px; height: 18px; fill: currentColor; }

[data-theme="dark"] .cth-iconbtn__sun  { display: block; }
[data-theme="dark"] .cth-iconbtn__moon { display: none; }
.cth-iconbtn__sun  { display: none; }
.cth-iconbtn__moon { display: block; }

.cth-menu-toggle { display: none; }

/* Header search drawer */
.cth-searchdrawer {
	display: none;
	padding: 0 0 22px;
	border-top: 1px solid var(--cth-border);
	margin-top: -1px;
	background: var(--cth-surface-alt);
}
.cth-searchdrawer.is-open { display: block; }
.cth-searchdrawer .cth-container { padding-top: 22px; }

@media (max-width: 980px) {
	.cth-menu-toggle { display: inline-flex; }
	.cth-nav {
		display: none;
		position: absolute;
		top: 100%; left: 0; right: 0;
		background: var(--cth-surface);
		border-bottom: 1px solid var(--cth-border);
		padding: 14px var(--cth-gutter) 22px;
	}
	.cth-nav.is-open { display: block; }
	.cth-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
	.cth-nav ul ul { position: static; display: flex; border: 0; box-shadow: none; padding-left: 18px; }
	.cth-nav a { padding: 12px 14px; }
	.cth-brand { font-size: 1.28rem; }
}

/* ==========================================================================
   7. Trailhead hero
   ========================================================================== */

.cth-hero {
	margin-top: 40px;
	border: 1px solid var(--cth-border);
	border-radius: var(--cth-radius-lg);
	background: var(--cth-surface-alt);
	padding: clamp(32px, 5vw, 64px);
}

.cth-hero__inner {
	display: grid;
	grid-template-columns: 1.05fr .95fr;
	gap: clamp(32px, 4vw, 56px);
	align-items: center;
}
@media (max-width: 900px) {
	.cth-hero__inner { grid-template-columns: 1fr; }
}

.cth-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--cth-font-mono);
	font-size: .72rem;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--cth-accent);
	margin: 0 0 20px;
}
.cth-hero__eyebrow::before {
	content: "";
	width: 8px; height: 18px;
	border-radius: 1px;
	background: var(--cth-accent);
}

.cth-hero__title {
	font-size: clamp(2.6rem, 6.4vw, 4.4rem);
	line-height: .98;
	margin: 0 0 20px;
	letter-spacing: -.035em;
}

.cth-hero__text {
	font-size: 1.18rem;
	line-height: 1.65;
	color: var(--cth-text);
	margin: 0 0 28px;
	max-width: 46ch;
}

.cth-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.cth-hero__scale {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 32px;
	font-family: var(--cth-font-mono);
	font-size: .68rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--cth-muted);
}
.cth-hero__scale::before {
	content: "";
	width: 68px; height: 8px;
	border: 1px solid var(--cth-secondary);
	border-top: 0;
	background-image: repeating-linear-gradient(90deg, var(--cth-secondary) 0 1px, transparent 1px 17px);
}

/* The lead trail card sitting inside the trailhead panel */
.cth-lead {
	background: var(--cth-surface);
	border: 1px solid var(--cth-border);
	border-radius: var(--cth-radius-lg);
	overflow: hidden;
	box-shadow: var(--cth-shadow);
	transition: transform .3s ease;
}
.cth-lead:hover { transform: translateY(-4px); }

.cth-lead__thumb {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--cth-surface-alt);
}
.cth-lead__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cth-lead:hover .cth-lead__thumb img { transform: scale(1.04); }

.cth-lead__body { padding: 26px 28px 28px; display: flex; flex-direction: column; gap: 14px; }
.cth-lead__tag {
	font-family: var(--cth-font-mono);
	font-size: .66rem;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--cth-accent);
}
.cth-lead__title { font-size: clamp(1.45rem, 2.6vw, 1.9rem); line-height: 1.15; margin: 0; }
.cth-lead__title a { color: var(--cth-primary); }
.cth-lead__title a:hover { color: var(--cth-accent); text-decoration: none; }
.cth-lead__excerpt { margin: 0; color: var(--cth-muted); font-size: 1rem; }

/* ==========================================================================
   8. Starting trails — trail-marker cards
   ========================================================================== */

.cth-trailgrid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}
@media (max-width: 1000px) { .cth-trailgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .cth-trailgrid { grid-template-columns: 1fr; } }

.cth-trailcard {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 26px 24px 24px 30px;
	background: var(--cth-surface);
	border: 1px solid var(--cth-border);
	border-radius: var(--cth-radius-lg);
	overflow: hidden;
	transition: border-color .25s, transform .25s, box-shadow .25s;
}
.cth-trailcard:hover {
	transform: translateY(-4px);
	border-color: var(--cth-accent);
	box-shadow: var(--cth-shadow);
}

/* The waymarking post down the left edge of the card. */
.cth-trailcard__post {
	position: absolute;
	left: 0; top: 0; bottom: 0;
	width: 6px;
	background: var(--cth-trail);
}
.cth-trailcard--moderate .cth-trailcard__post { background: var(--cth-accent); }
.cth-trailcard--challenging .cth-trailcard__post { background: #b91c1c; }
[data-theme="dark"] .cth-trailcard--challenging .cth-trailcard__post { background: #f87171; }

.cth-trailcard__title { font-size: 1.18rem; line-height: 1.24; margin: 0; }
.cth-trailcard__title a { color: var(--cth-primary); }
.cth-trailcard__title a:hover { color: var(--cth-accent); text-decoration: none; }
.cth-trailcard__excerpt { margin: 0; color: var(--cth-muted); font-size: .93rem; flex: 1; }
.cth-trailcard__len {
	font-family: var(--cth-font-mono);
	font-size: .72rem;
	letter-spacing: .04em;
	color: var(--cth-accent);
	padding-top: 12px;
	border-top: 1px dashed var(--cth-border);
}

/* ==========================================================================
   9. Current expeditions
   ========================================================================== */

.cth-expeds { display: flex; flex-direction: column; }

.cth-exped {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) 220px;
	gap: 28px;
	align-items: start;
	padding: 30px 0;
	border-top: 1px solid var(--cth-rule);
}
.cth-exped:first-child { border-top: 0; padding-top: 6px; }
@media (max-width: 820px) {
	.cth-exped { grid-template-columns: auto minmax(0, 1fr); }
	.cth-exped__thumb { display: none; }
}

.cth-exped__num {
	font-family: var(--cth-font-mono);
	font-size: .82rem;
	font-weight: 600;
	color: var(--cth-accent);
	padding-top: 4px;
}

.cth-exped__body { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cth-exped__title { font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.18; margin: 0; }
.cth-exped__title a { color: var(--cth-primary); }
.cth-exped__title a:hover { color: var(--cth-accent); text-decoration: none; }
.cth-exped__excerpt { margin: 0; color: var(--cth-muted); font-size: 1rem; }

.cth-exped__thumb {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: var(--cth-radius);
	background: var(--cth-surface-alt);
	border: 1px solid var(--cth-border);
}
.cth-exped__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cth-exped:hover .cth-exped__thumb img { transform: scale(1.05); }

.cth-progressbar { display: flex; align-items: center; gap: 12px; margin-top: 2px; }
.cth-progressbar__track {
	flex: 1;
	height: 6px;
	max-width: 320px;
	border-radius: 3px;
	background: var(--cth-surface-alt);
	border: 1px solid var(--cth-border);
	overflow: hidden;
}
.cth-progressbar__fill {
	display: block;
	height: 100%;
	background-image: repeating-linear-gradient(90deg, var(--cth-accent) 0 7px, var(--cth-accent-soft) 7px 12px);
}
.cth-progressbar__label {
	font-family: var(--cth-font-mono);
	font-size: .7rem;
	color: var(--cth-muted);
	white-space: nowrap;
}

/* ==========================================================================
   10. Cards, grids and lists
   ========================================================================== */

.cth-card {
	display: flex;
	flex-direction: column;
	background: var(--cth-surface);
	border: 1px solid var(--cth-border);
	border-radius: var(--cth-radius-lg);
	overflow: hidden;
	transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.cth-card:hover {
	box-shadow: var(--cth-shadow);
	transform: translateY(-4px);
	border-color: var(--cth-accent);
}

.cth-card__thumb {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--cth-surface-alt);
}
.cth-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cth-card:hover .cth-card__thumb img { transform: scale(1.04); }

.cth-card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.cth-card__title { font-size: 1.24rem; line-height: 1.22; margin: 0; }
.cth-card__title a { color: var(--cth-primary); }
.cth-card__title a:hover { color: var(--cth-accent); text-decoration: none; }
.cth-card__excerpt { color: var(--cth-muted); font-size: .96rem; margin: 0; flex: 1; }
.cth-card .cth-trailline {
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px dashed var(--cth-border);
}

.cth-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 28px;
}

/* Typographic list — search results and author trails */
.cth-list { display: flex; flex-direction: column; }
.cth-listitem {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 10px 28px;
	padding: 28px 0;
	border-top: 1px solid var(--cth-rule);
}
.cth-listitem:first-child { border-top: 0; padding-top: 6px; }
.cth-listitem__thumb {
	grid-row: span 4;
	width: 168px;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	border-radius: var(--cth-radius);
	border: 1px solid var(--cth-border);
	background: var(--cth-surface-alt);
}
.cth-listitem__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.cth-listitem:hover .cth-listitem__thumb img { transform: scale(1.05); }
.cth-listitem__title { grid-column: 1; font-size: 1.5rem; line-height: 1.18; margin: 0; }
.cth-listitem__title a { color: var(--cth-primary); }
.cth-listitem__title a:hover { color: var(--cth-accent); text-decoration: none; }
.cth-listitem__excerpt { grid-column: 1; color: var(--cth-muted); font-size: 1rem; margin: 0; }
.cth-listitem .cth-marker,
.cth-listitem .cth-trailline { grid-column: 1; }
@media (max-width: 600px) {
	.cth-listitem { grid-template-columns: 1fr; }
	.cth-listitem__thumb { grid-row: auto; width: 100%; }
}

/* ==========================================================================
   11. Trail network — the topo map feature block
   ========================================================================== */

.cth-network {
	border: 1px solid var(--cth-border);
	border-radius: var(--cth-radius-lg);
	background: var(--cth-surface);
	padding: clamp(28px, 4vw, 52px);
}

.cth-network__head { max-width: 56ch; margin-bottom: 34px; }
.cth-network__head h2 { margin: 0 0 10px; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cth-network__head p { margin: 0; color: var(--cth-muted); }

.cth-network__map {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 16px;
}

.cth-node {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 22px 20px;
	border: 1px solid var(--cth-border);
	border-radius: var(--cth-radius);
	background: var(--cth-surface-alt);
	color: var(--cth-primary);
	transition: border-color .2s, transform .2s;
}
.cth-node:hover { border-color: var(--cth-accent); transform: translateY(-3px); text-decoration: none; }
.cth-node__code {
	font-family: var(--cth-font-mono);
	font-size: .66rem;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--cth-accent);
}
.cth-node__name {
	font-family: var(--cth-font-head);
	font-size: 1.16rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -.01em;
}
.cth-node__count {
	font-family: var(--cth-font-mono);
	font-size: .7rem;
	color: var(--cth-muted);
}
.cth-node__peak {
	position: absolute;
	top: 16px; right: 16px;
	width: 18px; height: 18px;
	border-radius: 50%;
	border: 1px solid var(--cth-secondary);
	background:
		radial-gradient(circle, var(--cth-accent) 0 3px, transparent 3px),
		radial-gradient(circle, transparent 0 7px, var(--cth-secondary) 7px 8px, transparent 8px);
	opacity: .65;
}

/* ==========================================================================
   12. Seasonal trails — the numbered trail log
   ========================================================================== */

.cth-log { display: flex; flex-direction: column; }
.cth-logitem {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 8px 22px;
	align-items: center;
	padding: 20px 0;
	border-top: 1px dashed var(--cth-border);
}
.cth-logitem:first-child { border-top: 0; padding-top: 4px; }
.cth-logitem__num {
	font-family: var(--cth-font-mono);
	font-size: .78rem;
	font-weight: 600;
	color: var(--cth-accent);
}
.cth-logitem__title { margin: 0; font-size: 1.22rem; line-height: 1.25; }
.cth-logitem__title a { color: var(--cth-primary); }
.cth-logitem__title a:hover { color: var(--cth-accent); text-decoration: none; }
.cth-logitem__stat {
	font-family: var(--cth-font-mono);
	font-size: .72rem;
	color: var(--cth-muted);
	white-space: nowrap;
}
@media (max-width: 640px) {
	.cth-logitem { grid-template-columns: auto minmax(0, 1fr); }
	.cth-logitem__stat { grid-column: 2; }
}

/* ==========================================================================
   13. Trail guides — the how-to legend panel
   ========================================================================== */

.cth-guides {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 20px;
}

.cth-guide {
	padding: 26px 24px;
	border: 1px solid var(--cth-border);
	border-radius: var(--cth-radius-lg);
	background: var(--cth-surface);
}
.cth-guide__step {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px; height: 32px;
	border-radius: var(--cth-radius);
	background: var(--cth-primary);
	color: var(--cth-onprimary);
	font-family: var(--cth-font-mono);
	font-size: .78rem;
	font-weight: 600;
	margin-bottom: 16px;
}
.cth-guide h3 { font-size: 1.1rem; margin: 0 0 8px; }
.cth-guide p { margin: 0; color: var(--cth-muted); font-size: .95rem; }

.cth-legend {
	margin-top: 20px;
	padding: 22px 24px;
	border: 1px dashed var(--cth-border);
	border-radius: var(--cth-radius-lg);
	display: flex;
	flex-wrap: wrap;
	gap: 14px 32px;
	align-items: center;
}
.cth-legend__title {
	font-family: var(--cth-font-mono);
	font-size: .68rem;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--cth-muted);
	margin: 0;
}

/* ==========================================================================
   14. Newsletter — join the expedition
   ========================================================================== */

.cth-newsletter {
	border: 1px solid var(--cth-primary);
	border-radius: var(--cth-radius-lg);
	background: var(--cth-primary);
	color: var(--cth-onprimary);
	padding: clamp(36px, 5vw, 64px);
	text-align: center;
}
[data-theme="dark"] .cth-newsletter { background: var(--cth-surface); border-color: var(--cth-border); color: var(--cth-text); }

.cth-newsletter .cth-topo::before { --cth-topo: rgba(247, 245, 240, .09); --cth-grid: rgba(247, 245, 240, .04); }

.cth-newsletter__eyebrow {
	font-family: var(--cth-font-mono);
	font-size: .7rem;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--cth-accent-soft);
	margin: 0 0 14px;
}
.cth-newsletter h2 {
	margin: 0 0 14px;
	font-size: clamp(1.8rem, 3.6vw, 2.6rem);
	color: var(--cth-onprimary);
}
[data-theme="dark"] .cth-newsletter h2 { color: var(--cth-primary); }
.cth-newsletter p {
	margin: 0 auto 30px;
	max-width: 54ch;
	color: rgba(247, 245, 240, .78);
}
[data-theme="dark"] .cth-newsletter p { color: var(--cth-muted); }

.cth-newsletter__form {
	display: flex;
	gap: 12px;
	max-width: 500px;
	margin: 0 auto;
	flex-wrap: wrap;
	justify-content: center;
}
.cth-newsletter input[type="email"] {
	flex: 1;
	min-width: 250px;
	padding: 14px 18px;
	border-radius: var(--cth-radius);
	border: 1px solid var(--cth-border);
	background: var(--cth-surface);
	color: var(--cth-text);
	font-family: var(--cth-font-body);
	font-size: 1rem;
}
.cth-newsletter input[type="email"]:focus { outline: none; border-color: var(--cth-accent); }
.cth-newsletter__note {
	font-family: var(--cth-font-mono);
	font-size: .68rem;
	letter-spacing: .08em;
	color: rgba(247, 245, 240, .55);
	margin: 20px 0 0;
}
[data-theme="dark"] .cth-newsletter__note { color: var(--cth-muted); }

/* ==========================================================================
   15. Single trail
   ========================================================================== */

.cth-progress {
	position: fixed;
	top: 0; left: 0;
	height: 3px;
	width: 0;
	background: var(--cth-accent);
	z-index: 200;
	transition: width .1s linear;
}

.cth-breadcrumb {
	font-family: var(--cth-font-mono);
	font-size: .72rem;
	letter-spacing: .04em;
	color: var(--cth-muted);
	padding: 24px 0 0;
}
.cth-breadcrumb a { color: var(--cth-muted); }
.cth-breadcrumb a:hover { color: var(--cth-accent); }
.cth-breadcrumb span { margin: 0 8px; color: var(--cth-accent); }

.cth-trailhead {
	max-width: 860px;
	margin: 0 auto;
	padding: 30px 0 0;
}
.cth-trailhead .cth-marker { margin-bottom: 20px; }
.cth-trailhead h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); margin: 0 0 20px; letter-spacing: -.032em; }
.cth-trailhead .cth-dek {
	font-size: 1.28rem;
	line-height: 1.55;
	color: var(--cth-muted);
	margin: 0 0 26px;
	max-width: 52ch;
}

.cth-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	margin: 26px 0 0;
	padding: 0;
	border: 1px solid var(--cth-border);
	border-radius: var(--cth-radius);
	background: var(--cth-surface);
	overflow: hidden;
}
.cth-stats__item {
	flex: 1 1 150px;
	padding: 14px 18px;
	border-left: 1px solid var(--cth-border);
}
.cth-stats__item:first-child { border-left: 0; }
.cth-stats dt {
	font-family: var(--cth-font-mono);
	font-size: .64rem;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--cth-muted);
	margin: 0 0 4px;
}
.cth-stats dd {
	font-family: var(--cth-font-mono);
	font-size: .88rem;
	color: var(--cth-primary);
	margin: 0;
}

.cth-hero-figure {
	margin: 44px auto 0;
	max-width: 1040px;
}
.cth-hero-figure img { width: 100%; border-radius: var(--cth-radius-lg); }
.cth-hero-figure figcaption {
	font-family: var(--cth-font-mono);
	font-size: .74rem;
	color: var(--cth-muted);
	text-align: center;
	margin-top: 14px;
}

.cth-article { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 32px; }
@media (max-width: 860px) { .cth-article { grid-template-columns: minmax(0, 1fr); } }

.cth-share {
	position: sticky;
	top: 110px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-self: start;
}
@media (max-width: 860px) {
	.cth-share { position: static; flex-direction: row; margin-bottom: 20px; }
}
.cth-share .cth-iconbtn { font-family: var(--cth-font-mono); font-weight: 600; font-size: .82rem; }

/* Serif body with generous spacing */
.cth-entry {
	max-width: var(--cth-content);
	font-size: 1.16rem;
	line-height: 1.9;
}
.cth-entry > * + * { margin-top: 1.6em; }
.cth-entry img, .cth-entry figure { border-radius: var(--cth-radius); overflow: hidden; }
.cth-entry figcaption {
	font-family: var(--cth-font-mono);
	font-size: .76rem;
	color: var(--cth-muted);
	text-align: center;
	margin-top: 12px;
}
.cth-entry > p:first-of-type { font-size: 1.24rem; line-height: 1.72; color: var(--cth-text); }

/* Section headings as trail markers with topographic accents */
.cth-entry h2,
.cth-entry h3 {
	position: relative;
	padding-left: 26px;
	margin-top: 2.2em;
	scroll-margin-top: 110px;
}
.cth-entry h3 { padding-left: 22px; margin-top: 1.9em; }
.cth-entry h2::before,
.cth-entry h3::before {
	content: "";
	position: absolute;
	left: 0;
	top: .28em;
	width: 8px;
	height: .82em;
	border-radius: 1px;
	background: var(--cth-accent);
}
.cth-entry h3::before { background: var(--cth-trail); width: 6px; }
.cth-entry h2::after {
	content: "";
	position: absolute;
	left: 26px;
	right: 0;
	bottom: -12px;
	height: 6px;
	background-image: repeating-linear-gradient(58deg, var(--cth-topo) 0 1px, transparent 1px 7px);
}

/* Points of interest — key insight callouts */
.cth-poi,
.cth-entry .cth-poi {
	position: relative;
	margin: 2.2em 0;
	padding: 26px 28px 26px 30px;
	border: 1px solid var(--cth-border);
	border-left: 5px solid var(--cth-accent);
	border-radius: var(--cth-radius);
	background: var(--cth-surface-alt);
	font-size: 1.04rem;
	line-height: 1.7;
}
.cth-poi::before {
	content: attr(data-poi);
	display: block;
	font-family: var(--cth-font-mono);
	font-size: .64rem;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--cth-accent);
	margin-bottom: 10px;
}
.cth-poi > *:first-child { margin-top: 0; }
.cth-poi > *:last-child { margin-bottom: 0; }

.cth-entry blockquote,
.cth-entry .wp-block-quote {
	margin: 2em 0;
	padding: 6px 0 6px 28px;
	border-left: 4px solid var(--cth-trail);
	font-family: var(--cth-font-head);
	font-size: 1.42rem;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: -.015em;
	color: var(--cth-primary);
}
.cth-entry .wp-block-pullquote {
	border-left: 4px solid var(--cth-accent);
	border-top: 0; border-bottom: 0;
	padding: 6px 0 6px 28px;
	text-align: left;
}

.cth-entry pre {
	background: var(--cth-primary);
	color: var(--cth-onprimary);
	padding: 22px;
	border-radius: var(--cth-radius);
	overflow-x: auto;
	font-size: .88rem;
	line-height: 1.7;
	font-family: var(--cth-font-mono);
}
.cth-entry code { font-family: var(--cth-font-mono); font-size: .88em; }
.cth-entry :not(pre) > code {
	background: var(--cth-surface-alt);
	padding: 2px 7px;
	border-radius: 4px;
}

.cth-entry table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.cth-entry th, .cth-entry td { border: 1px solid var(--cth-border); padding: 12px 14px; text-align: left; }
.cth-entry th { font-family: var(--cth-font-ui); background: var(--cth-surface-alt); }

.cth-entry ul, .cth-entry ol { padding-left: 1.4em; }
.cth-entry li + li { margin-top: .5em; }

/* Tags */
.cth-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 40px auto 0; max-width: var(--cth-content); }
.cth-tag {
	font-family: var(--cth-font-mono);
	font-size: .74rem;
	padding: 6px 14px;
	border-radius: var(--cth-radius);
	border: 1px solid var(--cth-border);
	color: var(--cth-muted);
}
.cth-tag:hover { border-color: var(--cth-accent); color: var(--cth-accent); text-decoration: none; }

/* Guide (author) card with their other trails */
.cth-guidecard {
	margin: 52px auto 0;
	max-width: var(--cth-content);
	border: 1px solid var(--cth-border);
	border-radius: var(--cth-radius-lg);
	background: var(--cth-surface);
	padding: 30px;
}
.cth-guidecard__top { display: flex; gap: 20px; align-items: flex-start; }
.cth-guidecard img { width: 76px; height: 76px; border-radius: var(--cth-radius); flex: 0 0 auto; }
.cth-guidecard__eyebrow {
	font-family: var(--cth-font-mono);
	font-size: .64rem;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--cth-accent);
	margin: 0 0 6px;
}
.cth-guidecard h3 { margin: 0 0 8px; font-size: 1.22rem; }
.cth-guidecard p { margin: 0; color: var(--cth-muted); font-size: .98rem; }
.cth-guidecard__trails {
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px dashed var(--cth-border);
}
.cth-guidecard__trails h4 {
	font-family: var(--cth-font-mono);
	font-size: .66rem;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--cth-muted);
	margin: 0 0 12px;
}
.cth-guidecard__trails ul { list-style: none; margin: 0; padding: 0; }
.cth-guidecard__trails li + li { margin-top: 10px; }
.cth-guidecard__trails a { color: var(--cth-primary); font-family: var(--cth-font-head); font-weight: 600; font-size: 1.02rem; }
.cth-guidecard__trails a:hover { color: var(--cth-accent); text-decoration: none; }
.cth-guidecard__trails span { font-family: var(--cth-font-mono); font-size: .7rem; color: var(--cth-muted); margin-left: 8px; }

/* Continue your journey */
.cth-postnav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
	margin: 48px auto 0;
	max-width: var(--cth-content);
}
@media (max-width: 620px) { .cth-postnav { grid-template-columns: 1fr; } }
.cth-postnav a {
	display: block;
	padding: 20px 22px;
	border: 1px solid var(--cth-border);
	border-radius: var(--cth-radius);
	background: var(--cth-surface);
	color: var(--cth-primary);
	font-family: var(--cth-font-head);
	font-size: 1.04rem;
	font-weight: 600;
	line-height: 1.3;
	transition: border-color .2s;
}
.cth-postnav a:hover { border-color: var(--cth-accent); text-decoration: none; }
.cth-postnav span {
	display: block;
	font-family: var(--cth-font-mono);
	font-size: .64rem;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--cth-accent);
	margin-bottom: 10px;
}
.cth-postnav .is-next { text-align: right; }

/* Waypoints TOC (injected into the sidebar) */
.cth-toc ol { margin: 0; padding-left: 20px; font-family: var(--cth-font-ui); font-size: .92rem; }
.cth-toc li { margin-bottom: 9px; line-height: 1.45; }
.cth-toc a { color: var(--cth-text); }
.cth-toc a:hover { color: var(--cth-accent); }
.cth-toc li.is-current > a { color: var(--cth-accent); font-weight: 600; }

/* ==========================================================================
   16. Page headers (archive / search / author / 404)
   ========================================================================== */

.cth-pagehead {
	border-bottom: 2px solid var(--cth-primary);
	padding: 56px 0 30px;
}
.cth-pagehead__eyebrow {
	font-family: var(--cth-font-mono);
	font-size: .7rem;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--cth-accent);
	margin: 0 0 14px;
}
.cth-pagehead h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); margin: 0 0 14px; letter-spacing: -.03em; }
.cth-pagehead p { margin: 0; color: var(--cth-muted); font-size: 1.1rem; max-width: 62ch; }

.cth-filterbar {
	display: flex;
	gap: 10px 18px;
	flex-wrap: wrap;
	align-items: center;
	margin: 28px 0 0;
	font-family: var(--cth-font-ui);
}
.cth-filterbar__label {
	font-family: var(--cth-font-mono);
	font-size: .66rem;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--cth-muted);
}
.cth-filter {
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: .04em;
	color: var(--cth-muted);
	padding: 7px 14px;
	border: 1px solid var(--cth-border);
	border-radius: var(--cth-radius);
}
.cth-filter:hover { color: var(--cth-accent); border-color: var(--cth-accent); text-decoration: none; }
.cth-filter.is-active {
	color: var(--cth-onaccent);
	background: var(--cth-accent);
	border-color: var(--cth-accent);
}

/* Guide profile hero */
.cth-guidehero { display: flex; gap: 28px; align-items: flex-start; flex-wrap: wrap; }
.cth-guidehero img {
	width: 116px; height: 116px;
	border-radius: var(--cth-radius-lg);
	border: 1px solid var(--cth-border);
	flex: 0 0 auto;
}
.cth-guidehero__body { flex: 1; min-width: 260px; }
.cth-expertise { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.cth-expertise li {
	font-family: var(--cth-font-mono);
	font-size: .7rem;
	letter-spacing: .06em;
	padding: 6px 13px;
	border: 1px dashed var(--cth-border);
	border-radius: var(--cth-radius);
	color: var(--cth-muted);
}
.cth-social { display: flex; gap: 10px; margin-top: 18px; }

/* Our guides (about page) */
.cth-team {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 20px;
}
.cth-teammate {
	display: flex;
	gap: 16px;
	padding: 22px;
	border: 1px solid var(--cth-border);
	border-radius: var(--cth-radius-lg);
	background: var(--cth-surface);
}
.cth-teammate img { width: 60px; height: 60px; border-radius: var(--cth-radius); flex: 0 0 auto; }
.cth-teammate h3 { font-size: 1.08rem; margin: 0 0 4px; }
.cth-teammate p { margin: 0; font-size: .92rem; color: var(--cth-muted); }
.cth-teammate .cth-trailline { margin-top: 10px; }

/* Trail principles */
.cth-principles {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 20px;
}
.cth-principle {
	padding: 26px 24px 26px 28px;
	border: 1px solid var(--cth-border);
	border-left: 5px solid var(--cth-trail);
	border-radius: var(--cth-radius);
	background: var(--cth-surface);
}
.cth-principle span {
	font-family: var(--cth-font-mono);
	font-size: .66rem;
	letter-spacing: .16em;
	color: var(--cth-accent);
}
.cth-principle h3 { font-size: 1.12rem; margin: 10px 0 8px; }
.cth-principle p { margin: 0; color: var(--cth-muted); font-size: .95rem; }

/* 404 — the lost trail marker */
.cth-404 { text-align: center; padding: 90px 0; }
.cth-404__marker {
	width: 92px; height: 132px;
	margin: 0 auto 34px;
	border-radius: 4px;
	background: var(--cth-surface);
	border: 2px solid var(--cth-border);
	display: flex;
	align-items: center;
	justify-content: center;
	transform: rotate(-7deg);
	/* Torn-map edge: a hard-stop conic wedge chews the lower right corner. */
	clip-path: polygon(0 0, 100% 0, 100% 62%, 74% 70%, 88% 82%, 58% 88%, 70% 100%, 0 100%);
	box-shadow: var(--cth-shadow-sm);
}
.cth-404__blaze {
	width: 26px; height: 62px;
	border-radius: 2px;
	background: var(--cth-secondary);
	opacity: .5;
}
.cth-404__code {
	font-family: var(--cth-font-mono);
	font-size: .82rem;
	letter-spacing: .3em;
	color: var(--cth-accent);
	margin: 0 0 12px;
}
.cth-404 h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 18px; }
.cth-404 p { color: var(--cth-muted); max-width: 52ch; margin: 0 auto 30px; }

/* ==========================================================================
   17. Sidebar & widgets
   ========================================================================== */

.cth-sidebar { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 110px; }
@media (max-width: 1000px) { .cth-sidebar { position: static; } }

.cth-widget {
	background: var(--cth-surface);
	border: 1px solid var(--cth-border);
	border-radius: var(--cth-radius-lg);
	padding: 24px 26px;
}
.cth-widget__title,
.cth-widget .widget-title,
.cth-widget > h2,
.cth-widget > h3,
.cth-widget .wp-block-heading {
	font-family: var(--cth-font-mono);
	font-size: .68rem;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--cth-muted);
	margin: 0 0 16px;
	font-weight: 600;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--cth-rule);
	line-height: 1.4;
}
.cth-widget .wp-block-search__label {
	display: block;
	font-family: var(--cth-font-mono);
	font-size: .68rem;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--cth-muted);
	font-weight: 600;
	margin-bottom: 12px;
}

.cth-widget ul { list-style: none; margin: 0; padding: 0; }
.cth-widget li + li { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--cth-rule); }
.cth-widget a { color: var(--cth-text); font-size: 1rem; }
.cth-widget a:hover { color: var(--cth-accent); text-decoration: none; }
.cth-widget select,
.cth-widget input[type="text"],
.cth-widget input[type="search"] { width: 100%; }
.cth-widget p { font-size: .96rem; color: var(--cth-muted); }

/* Difficulty legend widget */
.cth-legendlist { display: flex; flex-direction: column; gap: 12px; }
.cth-legendlist > div { display: flex; align-items: center; gap: 10px; }
.cth-legendlist small {
	font-family: var(--cth-font-mono);
	font-size: .68rem;
	color: var(--cth-muted);
}

/* Search form */
.cth-searchform { display: flex; gap: 10px; }
.cth-searchform input[type="search"] {
	flex: 1;
	min-width: 0;
	padding: 12px 16px;
	border-radius: var(--cth-radius);
	border: 1px solid var(--cth-border);
	background: var(--cth-surface);
	color: var(--cth-text);
	font-family: var(--cth-font-body);
	font-size: 1rem;
}
.cth-searchform input[type="search"]:focus { outline: none; border-color: var(--cth-accent); }

/* Tag cloud */
.cth-widget .tagcloud { display: flex; flex-wrap: wrap; gap: 8px; }
.cth-widget .tagcloud a {
	font-family: var(--cth-font-mono);
	font-size: .74rem !important;
	padding: 5px 12px;
	border-radius: var(--cth-radius);
	border: 1px solid var(--cth-border);
	color: var(--cth-muted);
}
.cth-widget .tagcloud a:hover { border-color: var(--cth-accent); color: var(--cth-accent); }

/* ==========================================================================
   18. Comments — the trail log
   ========================================================================== */

.cth-comments { max-width: var(--cth-content); margin: 60px auto 0; }
.cth-comments ol { list-style: none; margin: 0; padding: 0; }
.cth-comments .children { list-style: none; padding-left: 28px; margin-top: 18px; }
.cth-comments .comment-body {
	background: var(--cth-surface);
	border: 1px solid var(--cth-border);
	border-radius: var(--cth-radius);
	padding: 22px 24px;
	margin-bottom: 18px;
}
.cth-comments .comment-author { display: flex; align-items: center; gap: 12px; }
.cth-comments .comment-author img { width: 44px; height: 44px; border-radius: var(--cth-radius); }
.cth-comments .comment-author .fn { font-family: var(--cth-font-ui); font-weight: 700; font-style: normal; }
.cth-comments .comment-metadata { font-family: var(--cth-font-mono); font-size: .72rem; color: var(--cth-muted); margin-top: 8px; }
.cth-comments .comment-metadata a { color: var(--cth-muted); }
.cth-comments .reply { font-family: var(--cth-font-ui); font-size: .82rem; margin-top: 10px; }

.comment-form label { display: block; font-family: var(--cth-font-ui); font-size: .84rem; font-weight: 600; margin-bottom: 6px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid var(--cth-border);
	border-radius: var(--cth-radius);
	background: var(--cth-surface);
	color: var(--cth-text);
	font-family: var(--cth-font-body);
	font-size: 1rem;
}
.comment-form textarea { min-height: 160px; }
.comment-form input[type="submit"] {
	background: var(--cth-accent);
	color: var(--cth-onaccent);
	border: 1px solid var(--cth-accent);
	padding: 13px 30px;
	border-radius: var(--cth-radius);
	font-family: var(--cth-font-ui);
	font-weight: 600;
	letter-spacing: .03em;
	width: auto;
	cursor: pointer;
	transition: background .2s, color .2s;
}
.comment-form input[type="submit"]:hover { background: transparent; color: var(--cth-accent); }

/* ==========================================================================
   19. Pagination
   ========================================================================== */

.cth-pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin: 56px 0 0;
	flex-wrap: wrap;
	font-family: var(--cth-font-mono);
}
.cth-pagination .page-numbers {
	min-width: 44px;
	height: 44px;
	padding: 0 15px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--cth-border);
	border-radius: var(--cth-radius);
	color: var(--cth-text);
	font-size: .85rem;
}
.cth-pagination .page-numbers:hover { border-color: var(--cth-accent); color: var(--cth-accent); text-decoration: none; }
.cth-pagination .page-numbers.current {
	background: var(--cth-accent);
	border-color: var(--cth-accent);
	color: var(--cth-onaccent);
}

/* ==========================================================================
   20. Footer — base camp
   ========================================================================== */

.cth-footer {
	margin-top: 96px;
	background: var(--cth-primary);
	color: rgba(247, 245, 240, .72);
	padding: 68px 0 0;
}
[data-theme="dark"] .cth-footer { background: #081008; }

.cth-footer .cth-topo::before { --cth-topo: rgba(247, 245, 240, .07); --cth-topo-soft: rgba(247, 245, 240, .04); --cth-grid: rgba(247, 245, 240, .03); }

.cth-footer__cols {
	display: grid;
	grid-template-columns: 1.7fr repeat(3, 1fr);
	gap: 44px;
	padding-bottom: 48px;
	border-bottom: 1px solid rgba(247, 245, 240, .13);
}
@media (max-width: 900px) { .cth-footer__cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .cth-footer__cols { grid-template-columns: 1fr; } }

.cth-footer h2, .cth-footer h3, .cth-footer .cth-widget__title { color: rgba(247, 245, 240, .95); border-color: rgba(247, 245, 240, .16); }
.cth-footer .cth-brand { color: var(--cth-onprimary); }
.cth-footer .cth-brand__mark { color: var(--cth-accent); }
.cth-footer .cth-brand__tagline { color: rgba(247, 245, 240, .55); }
.cth-footer a { color: rgba(247, 245, 240, .72); }
.cth-footer a:hover { color: var(--cth-onprimary); }
.cth-footer ul { list-style: none; margin: 0; padding: 0; }
.cth-footer li + li { margin-top: 12px; border: 0; padding: 0; }
.cth-footer .cth-widget { background: transparent; border: 0; padding: 0; }
.cth-footer__about { margin: 18px 0 22px; max-width: 40ch; color: rgba(247, 245, 240, .66); }

/* Trail-marker style social icons */
.cth-footer__social { display: flex; gap: 10px; }
.cth-footer__social a {
	width: 40px; height: 46px;
	border-radius: 3px;
	border: 1px solid rgba(247, 245, 240, .22);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--cth-onprimary);
	font-family: var(--cth-font-mono);
	font-size: .78rem;
	font-weight: 600;
	transition: background .2s, border-color .2s, color .2s;
}
.cth-footer__social a:hover { background: var(--cth-accent); border-color: var(--cth-accent); color: var(--cth-onaccent); }

/* Trail rules */
.cth-rules {
	padding: 30px 0;
	border-bottom: 1px solid rgba(247, 245, 240, .13);
}
.cth-rules__title {
	font-family: var(--cth-font-mono);
	font-size: .68rem;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--cth-accent);
	margin: 0 0 18px;
}
.cth-rules ul {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 32px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.cth-rules li { display: flex; align-items: center; gap: 10px; margin: 0; }
.cth-rules li::before {
	content: "";
	width: 5px; height: 14px;
	border-radius: 1px;
	background: var(--cth-accent);
	flex: 0 0 auto;
}
.cth-rules a { font-family: var(--cth-font-ui); font-size: .85rem; }
.cth-rules__note {
	margin: 18px 0 0;
	font-family: var(--cth-font-mono);
	font-size: .7rem;
	color: rgba(247, 245, 240, .5);
	max-width: 70ch;
}

.cth-footer__bottom {
	padding: 24px 0;
	font-family: var(--cth-font-mono);
	font-size: .72rem;
	display: flex;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	color: rgba(247, 245, 240, .55);
}

/* ==========================================================================
   21. WordPress core classes
   ========================================================================== */

.alignleft   { float: left;  margin: .4em 1.6em 1em 0; }
.alignright  { float: right; margin: .4em 0 1em 1.6em; }
.aligncenter { display: block; margin-inline: auto; }
.alignwide   { max-width: 1040px; margin-inline: auto; }
.alignfull   { max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }

.wp-caption { max-width: 100%; }
.wp-caption-text { font-family: var(--cth-font-mono); font-size: .76rem; color: var(--cth-muted); text-align: center; }
.sticky .cth-card { border-color: var(--cth-accent); }
.bypostauthor > .comment-body { border-color: var(--cth-accent); }
.gallery-caption { font-size: .88rem; }

.cth-entry .wp-block-image { margin-block: 2em; }
.cth-entry .wp-block-button__link { background: var(--cth-accent); color: var(--cth-onaccent); border-radius: var(--cth-radius); }
.cth-entry .wp-block-separator { border: 0; height: 2px; background-image: repeating-linear-gradient(90deg, var(--cth-border) 0 10px, transparent 10px 18px); }

/* Admin bar offset for the sticky header */
.admin-bar .cth-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .cth-header { top: 46px; } }

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