/*
Theme Name: Cam The Tank Man
Theme URI: https://example.com/cam-the-tank-man
Author: Cam The Tank Man
Description: A rugged, military-styled ecommerce theme for tank enthusiasts. Built for showcasing tank museum visits as "Field Reports", running a blog ("Dispatches"), and selling t-shirts and merch through WooCommerce. Olive drab, khaki and gunmetal palette with stencil typography, a custom Museum Visits post type, tank and country taxonomies, and a Customizer-driven homepage.
Version: 1.0.0
Requires at least: 6.2
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: camthetankman
Tags: e-commerce, blog, custom-colors, custom-logo, custom-menu, featured-images, footer-widgets, right-sidebar, threaded-comments, translation-ready, two-columns, three-columns

WC requires at least: 7.0
WC tested up to: 9.8
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
	--ctm-olive: #4b5320;          /* Olive drab */
	--ctm-olive-dark: #2f3517;     /* Deep olive */
	--ctm-olive-deeper: #1f2410;
	--ctm-khaki: #c3b091;          /* Khaki */
	--ctm-sand: #e9e1cc;           /* Desert sand (page) */
	--ctm-sand-light: #f4efe2;     /* Paper */
	--ctm-gunmetal: #23282b;       /* Gunmetal */
	--ctm-field-grey: #6b705c;     /* Field grey */
	--ctm-signal: #b5451b;         /* Signal orange / rust accent */
	--ctm-signal-dark: #8e3412;
	--ctm-brass: #c9a43a;          /* Brass */
	--ctm-ink: #1c1f14;            /* Body text */
	--ctm-muted: #5a5d4c;
	--ctm-line: rgba(47, 53, 23, 0.22);

	--ctm-font-stencil: "Black Ops One", "Impact", "Arial Black", sans-serif;
	--ctm-font-label: "Barlow Condensed", "Arial Narrow", sans-serif;
	--ctm-font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;

	--ctm-radius: 3px;
	--ctm-wrap: 1200px;
	--ctm-gutter: clamp(16px, 4vw, 32px);
	--ctm-shadow: 0 2px 0 rgba(31, 36, 16, 0.25), 0 10px 24px -12px rgba(31, 36, 16, 0.45);

	/* Camouflage pattern, used as a subtle overlay */
	--ctm-camo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cg fill-opacity='.55'%3E%3Cpath fill='%232f3517' d='M20 30c25-18 60-10 70 12s-8 40-35 44-52-6-55-24 0-22 20-32z'/%3E%3Cpath fill='%236b705c' d='M140 10c30-6 70 8 78 30s-20 36-48 34-55-14-52-34 2-24 22-30z'/%3E%3Cpath fill='%231f2410' d='M100 120c22-14 58-4 62 18s-24 38-50 32-40-18-36-32 6-12 24-18z'/%3E%3Cpath fill='%23806b3f' d='M10 160c20-10 48 0 52 18s-16 34-38 32-34-16-32-30 2-14 18-20z'/%3E%3Cpath fill='%236b705c' d='M180 150c24-8 52 8 54 30s-22 40-46 36-38-20-34-36 6-22 26-30z'/%3E%3Cpath fill='%23806b3f' d='M170 90c14-6 30 2 30 12s-12 18-26 16-20-8-18-16 4-8 14-12z'/%3E%3C/g%3E%3C/svg%3E");
}

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

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

body {
	margin: 0;
	background: var(--ctm-sand);
	color: var(--ctm-ink);
	font-family: var(--ctm-font-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

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

a { color: var(--ctm-olive); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover, a:focus { color: var(--ctm-signal); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--ctm-font-stencil);
	font-weight: 400;
	line-height: 1.15;
	color: var(--ctm-olive-deeper);
	margin: 0 0 0.6em;
	letter-spacing: 0.01em;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.35rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.55rem); }
h4 { font-size: 1.2rem; }
h5, h6 { font-family: var(--ctm-font-label); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }

p { margin: 0 0 1.2em; }

blockquote {
	margin: 1.5em 0;
	padding: 1em 1.5em;
	border-left: 6px solid var(--ctm-olive);
	background: var(--ctm-sand-light);
	font-size: 1.15em;
	font-style: italic;
}

hr { border: 0; height: 6px; margin: 2.5em 0; background: repeating-linear-gradient(-45deg, var(--ctm-olive) 0 10px, var(--ctm-khaki) 10px 20px); opacity: .6; }

table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; }
th, td { padding: .65em .8em; border-bottom: 1px solid var(--ctm-line); text-align: left; }
th { font-family: var(--ctm-font-label); text-transform: uppercase; letter-spacing: .06em; background: var(--ctm-olive-dark); color: var(--ctm-sand-light); }

code, pre { font-family: "Courier New", monospace; background: var(--ctm-sand-light); }
pre { padding: 1em; overflow-x: auto; border: 1px solid var(--ctm-line); }

.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(--ctm-sand-light); clip: auto !important; clip-path: none; color: var(--ctm-ink);
	display: block; font-size: 1rem; height: auto; left: 8px; top: 8px; padding: 12px 20px; width: auto; z-index: 100000;
}

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

/* WordPress core alignment */
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide { margin-left: calc(-1 * min(8vw, 80px)); margin-right: calc(-1 * min(8vw, 80px)); max-width: none; }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
.wp-caption, figure { margin: 0 0 1.5em; max-width: 100%; }
.wp-caption-text, figcaption { font-size: .875rem; color: var(--ctm-muted); padding-top: .4em; font-family: var(--ctm-font-label); letter-spacing: .03em; }
.sticky, .bypostauthor, .gallery-caption { display: block; }

/* ==========================================================================
   3. Layout helpers
   ========================================================================== */
.ctm-wrap { width: 100%; max-width: var(--ctm-wrap); margin: 0 auto; padding: 0 var(--ctm-gutter); }
.ctm-main { padding: clamp(32px, 6vw, 64px) 0; }
.ctm-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
@media (min-width: 960px) {
	.ctm-layout.has-sidebar { grid-template-columns: minmax(0, 1fr) 300px; }
}

/* Section headings with "dispatch" style label */
.ctm-kicker {
	display: inline-flex; align-items: center; gap: .6em;
	font-family: var(--ctm-font-label); font-weight: 700; font-size: .9rem;
	letter-spacing: .22em; text-transform: uppercase; color: var(--ctm-signal);
	margin-bottom: .6em;
}
.ctm-kicker::before { content: ""; width: 28px; height: 3px; background: currentColor; }

.ctm-section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 32px; }
.ctm-section-head h2 { margin: 0; }
.ctm-section-head .ctm-link-arrow { white-space: nowrap; }

.ctm-link-arrow {
	font-family: var(--ctm-font-label); font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
	text-decoration: none; color: var(--ctm-olive-dark); border-bottom: 3px solid var(--ctm-signal); padding-bottom: 2px;
}
.ctm-link-arrow::after { content: " \2192"; }

/* ==========================================================================
   4. Buttons & forms
   ========================================================================== */
.ctm-btn,
button,
input[type="submit"],
input[type="button"],
input[type="reset"],
.wp-block-button__link,
.wp-element-button {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	font-family: var(--ctm-font-label); font-weight: 700; font-size: 1rem;
	text-transform: uppercase; letter-spacing: .14em; text-decoration: none;
	padding: .85em 1.6em; border: 2px solid var(--ctm-olive-dark); border-radius: var(--ctm-radius);
	background: var(--ctm-olive); color: var(--ctm-sand-light); cursor: pointer;
	box-shadow: 0 3px 0 var(--ctm-olive-deeper);
	transition: transform .12s ease, background-color .15s ease, box-shadow .12s ease;
}
.ctm-btn:hover, button:hover, input[type="submit"]:hover, .wp-block-button__link:hover, .wp-element-button:hover,
.ctm-btn:focus, button:focus, input[type="submit"]:focus {
	background: var(--ctm-olive-dark); color: #fff; transform: translateY(1px); box-shadow: 0 2px 0 var(--ctm-olive-deeper);
}
.ctm-btn--signal { background: var(--ctm-signal); border-color: var(--ctm-signal-dark); box-shadow: 0 3px 0 #5e220b; }
.ctm-btn--signal:hover, .ctm-btn--signal:focus { background: var(--ctm-signal-dark); }
.ctm-btn--ghost { background: transparent; color: var(--ctm-sand-light); border-color: var(--ctm-khaki); box-shadow: none; }
.ctm-btn--ghost:hover, .ctm-btn--ghost:focus { background: rgba(195, 176, 145, .15); box-shadow: none; }

input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"],
input[type="number"], input[type="tel"], input[type="date"], select, textarea {
	width: 100%; font: inherit; color: var(--ctm-ink);
	padding: .7em .9em; border: 2px solid var(--ctm-field-grey); border-radius: var(--ctm-radius);
	background: var(--ctm-sand-light);
}
input:focus, select:focus, textarea:focus { border-color: var(--ctm-olive); outline: none; box-shadow: 0 0 0 3px rgba(201, 164, 58, .45); }
label { font-family: var(--ctm-font-label); font-weight: 600; letter-spacing: .04em; }

.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; }

/* ==========================================================================
   5. Header
   ========================================================================== */
.ctm-topbar {
	background: var(--ctm-gunmetal); color: var(--ctm-khaki);
	font-family: var(--ctm-font-label); font-size: .85rem; letter-spacing: .16em; text-transform: uppercase;
}
.ctm-topbar .ctm-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.ctm-topbar a { color: var(--ctm-khaki); text-decoration: none; }
.ctm-topbar a:hover { color: #fff; }
.ctm-topbar__msg { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ctm-topbar__msg::before { content: "\25CF"; color: var(--ctm-signal); margin-right: .6em; animation: ctm-blink 1.6s infinite; }
@keyframes ctm-blink { 50% { opacity: .25; } }
.ctm-social-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; }

.ctm-header {
	position: sticky; top: 0; z-index: 50;
	background: var(--ctm-olive-dark);
	background-image: linear-gradient(rgba(47, 53, 23, .92), rgba(47, 53, 23, .92)), var(--ctm-camo);
	background-size: auto, 240px;
	border-bottom: 4px solid var(--ctm-olive-deeper);
	box-shadow: 0 6px 18px -10px rgba(0, 0, 0, .6);
}
.admin-bar .ctm-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .ctm-header { top: 0; position: relative; } }

.ctm-header .ctm-wrap { display: flex; align-items: center; gap: 24px; min-height: 76px; }

.ctm-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; margin-right: auto; }
.ctm-brand .custom-logo { max-height: 56px; width: auto; }
.ctm-brand__badge {
	width: 48px; height: 48px; flex: none; display: grid; place-items: center;
	border: 2px solid var(--ctm-khaki); border-radius: 50%; color: var(--ctm-khaki);
	background: var(--ctm-olive-deeper);
}
.ctm-brand__badge svg { width: 30px; height: 30px; }
.ctm-brand__text { display: flex; flex-direction: column; line-height: 1; }
.ctm-brand__title { font-family: var(--ctm-font-stencil); font-size: clamp(1.25rem, 2.4vw, 1.7rem); color: var(--ctm-sand-light); margin: 0; }
.ctm-brand__title a { color: inherit; text-decoration: none; }
.ctm-brand__tagline { font-family: var(--ctm-font-label); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ctm-khaki); margin-top: 6px; }

/* Primary navigation */
.ctm-nav ul { list-style: none; margin: 0; padding: 0; }
.ctm-nav > div > ul, .ctm-nav > ul { display: flex; align-items: center; gap: 4px; }
.ctm-nav a {
	display: block; padding: 10px 14px; color: var(--ctm-sand-light); text-decoration: none;
	font-family: var(--ctm-font-label); font-weight: 600; font-size: 1.02rem; letter-spacing: .12em; text-transform: uppercase;
	border-bottom: 3px solid transparent;
}
.ctm-nav a:hover, .ctm-nav a:focus,
.ctm-nav .current-menu-item > a, .ctm-nav .current_page_item > a, .ctm-nav .current-menu-ancestor > a {
	color: #fff; border-bottom-color: var(--ctm-signal);
}
.ctm-nav li { position: relative; }
.ctm-nav .sub-menu, .ctm-nav .children {
	position: absolute; left: 0; top: 100%; min-width: 220px; z-index: 60;
	background: var(--ctm-olive-deeper); border-top: 3px solid var(--ctm-signal);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .15s ease;
}
.ctm-nav li:hover > .sub-menu, .ctm-nav li:focus-within > .sub-menu,
.ctm-nav li:hover > .children, .ctm-nav li:focus-within > .children { opacity: 1; visibility: visible; transform: none; }
.ctm-nav .sub-menu a { border-bottom: 1px solid rgba(195, 176, 145, .15); font-size: .95rem; }

.ctm-header__actions { display: flex; align-items: center; gap: 8px; }
.ctm-icon-btn {
	position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px;
	color: var(--ctm-sand-light); background: transparent; border: 2px solid rgba(195, 176, 145, .45);
	border-radius: var(--ctm-radius); padding: 0; box-shadow: none; text-decoration: none;
}
.ctm-icon-btn:hover, .ctm-icon-btn:focus { background: rgba(195, 176, 145, .12); color: #fff; transform: none; box-shadow: none; }
.ctm-icon-btn svg { width: 22px; height: 22px; }
.ctm-cart-count {
	position: absolute; top: -8px; right: -8px; min-width: 22px; height: 22px; padding: 0 5px;
	display: grid; place-items: center; border-radius: 11px;
	background: var(--ctm-signal); color: #fff; font-family: var(--ctm-font-label); font-weight: 700; font-size: .78rem;
}
.ctm-cart-count[hidden] { display: none; }
.ctm-menu-toggle { display: none; }

/* Header search drawer */
.ctm-search-drawer { background: var(--ctm-olive-deeper); padding: 16px 0; border-bottom: 3px solid var(--ctm-signal); }
.ctm-search-drawer[hidden] { display: none; }

@media (max-width: 959px) {
	.ctm-menu-toggle { display: inline-grid; }
	.ctm-nav {
		position: absolute; left: 0; right: 0; top: 100%;
		background: var(--ctm-olive-deeper); border-bottom: 4px solid var(--ctm-signal);
		max-height: 0; overflow: hidden; transition: max-height .25s ease;
	}
	.ctm-nav.is-open { max-height: 80vh; overflow-y: auto; }
	.ctm-nav > div > ul, .ctm-nav > ul { flex-direction: column; align-items: stretch; padding: 8px var(--ctm-gutter) 16px; }
	.ctm-nav a { border-bottom: 1px solid rgba(195, 176, 145, .15); }
	.ctm-nav .sub-menu, .ctm-nav .children { position: static; opacity: 1; visibility: visible; transform: none; border: 0; padding-left: 16px; background: transparent; }
	.ctm-brand__tagline { display: none; }
}
@media (max-width: 600px) {
	.ctm-header .ctm-wrap { gap: 10px; min-height: 64px; }
	.ctm-brand { gap: 10px; min-width: 0; }
	.ctm-brand__badge { width: 38px; height: 38px; }
	.ctm-brand__badge svg { width: 24px; height: 24px; }
	.ctm-brand .custom-logo { max-height: 42px; }
	.ctm-brand__text { min-width: 0; }
	.ctm-brand__title { font-size: 1.05rem; line-height: 1.05; }
	.ctm-header__actions { gap: 6px; }
	.ctm-icon-btn { width: 40px; height: 40px; }
	.ctm-account-link { display: none; }
	.ctm-topbar .ctm-social-menu { display: none; }
}

/* ==========================================================================
   6. Hero
   ========================================================================== */
.ctm-hero {
	position: relative; overflow: hidden; color: var(--ctm-sand-light);
	background-color: var(--ctm-olive-deeper);
	background-size: cover; background-position: center;
	border-bottom: 6px solid var(--ctm-olive-deeper);
}
.ctm-hero::before {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(100deg, rgba(31, 36, 16, .96) 0%, rgba(47, 53, 23, .85) 45%, rgba(47, 53, 23, .35) 100%);
}
.ctm-hero::after {
	content: ""; position: absolute; inset: 0; background-image: var(--ctm-camo); background-size: 320px; opacity: .18; mix-blend-mode: overlay;
}
.ctm-hero.no-image::before { background: linear-gradient(100deg, var(--ctm-olive-deeper) 0%, var(--ctm-olive-dark) 60%, var(--ctm-olive) 100%); }
.ctm-hero.no-image::after { opacity: .35; mix-blend-mode: normal; }
.ctm-hero .ctm-wrap { position: relative; z-index: 2; padding-top: clamp(64px, 12vw, 140px); padding-bottom: clamp(64px, 10vw, 120px); }
.ctm-hero__inner { max-width: 680px; }
.ctm-hero .ctm-kicker { color: var(--ctm-brass); }
.ctm-hero h1, .ctm-hero__title { color: #fff; font-size: clamp(2.5rem, 7vw, 4.6rem); text-shadow: 0 3px 0 rgba(0, 0, 0, .35); margin-bottom: .3em; }
.ctm-hero__text { font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: var(--ctm-sand); max-width: 560px; }
.ctm-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.ctm-stencil-stamp {
	position: absolute; right: var(--ctm-gutter); bottom: 32px; z-index: 2;
	font-family: var(--ctm-font-stencil); font-size: clamp(1rem, 2vw, 1.35rem); letter-spacing: .08em;
	color: var(--ctm-signal); border: 3px solid var(--ctm-signal); padding: 6px 14px; transform: rotate(-6deg);
	opacity: .9; text-transform: uppercase;
}
@media (max-width: 700px) { .ctm-stencil-stamp { display: none; } }

/* Stats strip */
.ctm-stats { background: var(--ctm-gunmetal); color: var(--ctm-khaki); border-bottom: 4px solid var(--ctm-olive); }
.ctm-stats ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.ctm-stats li { padding: 22px 16px; text-align: center; border-right: 1px dashed rgba(195, 176, 145, .25); }
.ctm-stats li:last-child { border-right: 0; }
.ctm-stats strong { display: block; font-family: var(--ctm-font-stencil); font-size: 2.2rem; line-height: 1; color: var(--ctm-sand-light); font-weight: 400; }
.ctm-stats span { font-family: var(--ctm-font-label); font-size: .82rem; letter-spacing: .2em; text-transform: uppercase; }

/* Front page sections */
.ctm-section { padding: clamp(48px, 8vw, 96px) 0; }
.ctm-section--dark {
	background: var(--ctm-olive-dark); color: var(--ctm-sand);
	background-image: linear-gradient(rgba(47, 53, 23, .94), rgba(47, 53, 23, .94)), var(--ctm-camo); background-size: auto, 300px;
}
.ctm-section--dark h2, .ctm-section--dark h3 { color: var(--ctm-sand-light); }
.ctm-section--dark .ctm-link-arrow { color: var(--ctm-sand-light); }
.ctm-section--paper { background: var(--ctm-sand-light); border-top: 1px solid var(--ctm-line); border-bottom: 1px solid var(--ctm-line); }

/* ==========================================================================
   7. Cards (posts, visits)
   ========================================================================== */
.ctm-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.ctm-grid--2 { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }

.ctm-card {
	position: relative; display: flex; flex-direction: column;
	background: var(--ctm-sand-light); border: 2px solid var(--ctm-olive-dark); border-radius: var(--ctm-radius);
	box-shadow: var(--ctm-shadow); overflow: hidden; transition: transform .15s ease, box-shadow .15s ease;
}
.ctm-card:hover { transform: translateY(-3px); box-shadow: 0 2px 0 rgba(31, 36, 16, .3), 0 18px 30px -14px rgba(31, 36, 16, .6); }
.ctm-card__media { position: relative; aspect-ratio: 16 / 10; background: var(--ctm-olive); overflow: hidden; }
.ctm-card__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) contrast(1.05); transition: transform .4s ease; }
.ctm-card:hover .ctm-card__media img { transform: scale(1.04); }
.ctm-card__media--placeholder { display: grid; place-items: center; background-image: var(--ctm-camo); background-size: 200px; }
.ctm-card__media--placeholder svg { width: 72px; height: 72px; color: var(--ctm-sand); opacity: .8; }
.ctm-card__tag {
	position: absolute; top: 12px; left: 12px; z-index: 2;
	font-family: var(--ctm-font-label); font-weight: 700; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
	background: var(--ctm-olive-deeper); color: var(--ctm-khaki); padding: 5px 10px; border-left: 4px solid var(--ctm-signal);
}
.ctm-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.ctm-card__meta { font-family: var(--ctm-font-label); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ctm-muted); margin-bottom: 8px; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.ctm-card__title { font-size: 1.35rem; margin: 0 0 10px; }
.ctm-card__title a { color: var(--ctm-olive-deeper); text-decoration: none; }
.ctm-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* whole-card link */
.ctm-card__title a:hover { color: var(--ctm-signal); }
.ctm-card__excerpt { color: var(--ctm-muted); font-size: 1rem; }
.ctm-card__excerpt p { margin: 0; }
.ctm-card__foot { margin-top: auto; padding-top: 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px dashed var(--ctm-line); font-family: var(--ctm-font-label); letter-spacing: .08em; text-transform: uppercase; font-size: .88rem; }

.ctm-rating { color: var(--ctm-brass); letter-spacing: 2px; font-size: 1.05rem; white-space: nowrap; }
.ctm-rating .is-empty { color: rgba(107, 112, 92, .45); }

/* ==========================================================================
   8. Posts / entries
   ========================================================================== */
.ctm-page-header {
	background: var(--ctm-olive-dark); color: var(--ctm-sand);
	background-image: linear-gradient(rgba(47, 53, 23, .93), rgba(47, 53, 23, .93)), var(--ctm-camo); background-size: auto, 260px;
	padding: clamp(40px, 7vw, 72px) 0; border-bottom: 6px solid var(--ctm-olive-deeper);
}
.ctm-page-header h1 { color: #fff; margin: 0; }
.ctm-page-header .ctm-kicker { color: var(--ctm-brass); }
.ctm-page-header .archive-description, .ctm-page-header p { color: var(--ctm-khaki); max-width: 680px; margin: 12px 0 0; }

.ctm-entry { background: var(--ctm-sand-light); border: 2px solid var(--ctm-olive-dark); border-radius: var(--ctm-radius); box-shadow: var(--ctm-shadow); }
.ctm-entry__thumb img { width: 100%; max-height: 520px; object-fit: cover; }
.ctm-entry__inner { padding: clamp(22px, 4vw, 48px); }
.ctm-entry__meta { font-family: var(--ctm-font-label); letter-spacing: .1em; text-transform: uppercase; color: var(--ctm-muted); font-size: .9rem; display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 18px; }
.ctm-entry__meta a { color: var(--ctm-olive); text-decoration: none; }
.entry-content > * { max-width: 100%; }
.entry-content h2, .entry-content h3 { margin-top: 1.6em; }
.entry-content > :first-child { margin-top: 0; }
.entry-content img { border-radius: var(--ctm-radius); }
.ctm-entry__footer { margin-top: 32px; padding-top: 20px; border-top: 2px dashed var(--ctm-line); font-family: var(--ctm-font-label); letter-spacing: .06em; }

.ctm-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.ctm-chips a, .ctm-chip {
	display: inline-block; padding: 5px 12px; text-decoration: none;
	font-family: var(--ctm-font-label); font-weight: 600; font-size: .88rem; letter-spacing: .1em; text-transform: uppercase;
	background: var(--ctm-olive); color: var(--ctm-sand-light); border-radius: 2px; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
	padding-left: 16px; padding-right: 16px;
}
.ctm-chips a:hover { background: var(--ctm-signal); color: #fff; }

/* Post navigation / pagination */
.post-navigation, .posts-navigation { margin-top: 40px; }
.nav-links { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.nav-links a { text-decoration: none; font-family: var(--ctm-font-label); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.nav-links .meta-nav { display: block; color: var(--ctm-muted); font-size: .8rem; letter-spacing: .2em; }
.pagination .nav-links { justify-content: center; gap: 6px; }
.pagination .page-numbers {
	display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px;
	border: 2px solid var(--ctm-olive-dark); background: var(--ctm-sand-light); color: var(--ctm-olive-dark);
	font-family: var(--ctm-font-label); font-weight: 700; text-decoration: none;
}
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: var(--ctm-olive-dark); color: var(--ctm-sand-light); }

/* ==========================================================================
   9. Museum Visit (Field Report)
   ========================================================================== */
.ctm-visit-hero { position: relative; min-height: 380px; display: flex; align-items: flex-end; background: var(--ctm-olive-deeper); color: #fff; overflow: hidden; }
.ctm-visit-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.8); }
.ctm-visit-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(31, 36, 16, .95) 0%, rgba(31, 36, 16, .25) 70%); }
.ctm-visit-hero .ctm-wrap { position: relative; z-index: 2; padding-top: 80px; padding-bottom: 40px; }
.ctm-visit-hero h1 { color: #fff; margin-bottom: .2em; }
.ctm-visit-hero .ctm-kicker { color: var(--ctm-brass); }
.ctm-visit-hero__loc { font-family: var(--ctm-font-label); letter-spacing: .14em; text-transform: uppercase; color: var(--ctm-khaki); font-size: 1.05rem; }

.ctm-visit-layout { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .ctm-visit-layout { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } }

/* Dog-tag style field report card */
.ctm-dossier {
	position: sticky; top: 110px;
	background: linear-gradient(145deg, #d9d6cc, #a9aa9f); color: var(--ctm-gunmetal);
	border: 2px solid #7d7f74; border-radius: 22px; padding: 30px 26px 26px;
	box-shadow: inset 0 2px 0 rgba(255, 255, 255, .6), inset 0 -3px 0 rgba(0, 0, 0, .15), var(--ctm-shadow);
}
.ctm-dossier::before {
	content: ""; position: absolute; top: 14px; left: 50%; width: 18px; height: 18px; margin-left: -9px;
	border-radius: 50%; background: var(--ctm-sand); box-shadow: inset 0 2px 3px rgba(0, 0, 0, .45);
}
.ctm-dossier h2 { font-size: 1.3rem; text-align: center; color: var(--ctm-gunmetal); margin: 14px 0 18px; letter-spacing: .06em; }
.ctm-dossier dl { margin: 0; font-family: "Courier New", monospace; font-size: .95rem; }
.ctm-dossier dt { font-family: var(--ctm-font-label); font-size: .74rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: #4a4d44; margin-top: 12px; }
.ctm-dossier dd { margin: 2px 0 0; font-weight: 700; word-break: break-word; }
.ctm-dossier .ctm-btn { width: 100%; margin-top: 20px; }
@media (max-width: 959px) { .ctm-dossier { position: static; } }

.ctm-verdict { margin: 32px 0; padding: 22px 26px; border: 3px solid var(--ctm-signal); background: #fbf3e8; position: relative; }
.ctm-verdict h3 { color: var(--ctm-signal); margin: 0 0 8px; font-size: 1.2rem; }
.ctm-verdict p:last-child { margin-bottom: 0; }

/* ==========================================================================
   10. Sidebar & widgets
   ========================================================================== */
.widget-area .widget { background: var(--ctm-sand-light); border: 2px solid var(--ctm-olive-dark); padding: 22px; margin-bottom: 28px; border-radius: var(--ctm-radius); }
.widget-title, .widget .wp-block-heading {
	font-family: var(--ctm-font-label); font-weight: 700; font-size: 1rem; letter-spacing: .2em; text-transform: uppercase;
	color: var(--ctm-sand-light); background: var(--ctm-olive-dark); margin: -22px -22px 18px; padding: 10px 22px; border-bottom: 3px solid var(--ctm-signal);
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 7px 0; border-bottom: 1px dashed var(--ctm-line); }
.widget li:last-child { border-bottom: 0; }
.widget a { text-decoration: none; }

/* ==========================================================================
   11. CTA band & footer
   ========================================================================== */
.ctm-cta {
	background: var(--ctm-signal); color: #fff; position: relative; overflow: hidden;
	background-image: repeating-linear-gradient(-45deg, rgba(0, 0, 0, .06) 0 14px, transparent 14px 28px);
}
.ctm-cta .ctm-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 48px; padding-bottom: 48px; }
.ctm-cta h2 { color: #fff; margin: 0 0 6px; }
.ctm-cta p { margin: 0; color: #fbe9dc; max-width: 620px; }
.ctm-cta .ctm-btn { background: var(--ctm-olive-deeper); border-color: var(--ctm-olive-deeper); box-shadow: 0 3px 0 #000; }

.ctm-footer {
	background: var(--ctm-olive-deeper); color: var(--ctm-khaki);
	background-image: linear-gradient(rgba(31, 36, 16, .95), rgba(31, 36, 16, .95)), var(--ctm-camo); background-size: auto, 280px;
	border-top: 6px solid var(--ctm-olive);
}
.ctm-footer a { color: var(--ctm-sand); text-decoration: none; }
.ctm-footer a:hover { color: var(--ctm-brass); }
.ctm-footer__widgets { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); padding: 64px 0 40px; }
.ctm-footer .widget { background: transparent; border: 0; padding: 0; margin: 0 0 24px; }
.ctm-footer .widget-title, .ctm-footer .widget .wp-block-heading { background: transparent; margin: 0 0 16px; padding: 0 0 10px; color: var(--ctm-sand-light); border-bottom: 2px solid var(--ctm-olive); }
.ctm-footer .widget li { border-bottom-color: rgba(195, 176, 145, .15); }
.ctm-footer__about p { color: var(--ctm-khaki); }
.ctm-footer__bottom { border-top: 1px dashed rgba(195, 176, 145, .25); padding: 20px 0; font-family: var(--ctm-font-label); letter-spacing: .12em; text-transform: uppercase; font-size: .82rem; }
.ctm-footer__bottom .ctm-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.ctm-footer-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 18px; }

/* ==========================================================================
   12. Comments
   ========================================================================== */
.comments-area { margin-top: 48px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 32px; }
.comment-list .children { list-style: none; padding-left: clamp(16px, 4vw, 40px); }
.comment-body { background: var(--ctm-sand-light); border-left: 4px solid var(--ctm-olive); padding: 18px 20px; margin-bottom: 16px; }
.comment-meta { font-family: var(--ctm-font-label); letter-spacing: .06em; font-size: .9rem; margin-bottom: 8px; }
.comment-author .avatar { float: left; margin-right: 12px; border-radius: 50%; }
.comment-metadata a { color: var(--ctm-muted); text-decoration: none; }
.reply a { font-family: var(--ctm-font-label); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; }
.comment-form p { margin-bottom: 1em; }

/* ==========================================================================
   13. 404 / empty states
   ========================================================================== */
.ctm-empty { text-align: center; padding: 48px 0; max-width: 640px; margin: 0 auto; }
.ctm-empty__code { font-family: var(--ctm-font-stencil); font-size: clamp(4rem, 16vw, 9rem); color: var(--ctm-olive); line-height: 1; opacity: .9; }
.ctm-empty .search-form { max-width: 460px; margin: 24px auto 0; }

/* ==========================================================================
   14. Utilities
   ========================================================================== */
.ctm-center { text-align: center; }
.ctm-mt { margin-top: 40px; }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Mid-size screens: keep the primary nav on one line */
.ctm-nav a { white-space: nowrap; }
@media (min-width: 960px) and (max-width: 1180px) {
	.ctm-header .ctm-wrap { gap: 14px; }
	.ctm-nav a { padding: 10px 9px; font-size: .95rem; letter-spacing: .08em; }
	.ctm-brand__tagline { display: none; }
}

/* Wide/full blocks inside the boxed page card stay inside the card */
.ctm-entry .alignwide,
.ctm-entry .alignfull { margin-left: 0; margin-right: 0; width: auto; max-width: 100%; }
