@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@500;600;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400;1,700&family=Inter:wght@400;500;600;700&display=swap');

/* ── Custom Properties ────────────────────────────────── */
:root {
    --forest:      #2d4a3e;
    --forest-mid:  #3d6454;
    --forest-dark: #1a2e26;
    --peach:       #e87d5a;
    --peach-dark:  #c8603e;
    --peach-bg:    rgba(232,125,90,0.1);
    --cream:       #faf8f4;
    --cream-mid:   #f3ede3;
    --cream-dark:  #ece4d8;
    --text:        #1c1c1c;
    --text-mid:    #4a4540;
    --text-light:  #888;
    --border:      #e3d9cc;
    --white:       #ffffff;

    --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --site-max:    1200px;
    --content-max: 720px;
    --gutter:      clamp(1.25rem, 4vw, 2.5rem);
    --gap:         clamp(0.75rem, 2vw, 1.25rem);

    --r:    8px;
    --r-lg: 14px;
    --sh-sm: 0 2px 8px rgba(0,0,0,0.06);
    --sh:    0 4px 18px rgba(0,0,0,0.09);
    --sh-lg: 0 8px 36px rgba(0,0,0,0.13);

    --ease: 220ms ease;
}

/* Map Astra theme color variables to peaches-trail palette so UAG blocks render correctly */
:root {
    --ast-global-color-0: var(--text);
    --ast-global-color-1: var(--white);
    --ast-global-color-2: var(--forest);
    --ast-global-color-3: var(--peach);
    --ast-global-color-4: var(--cream-mid);
    --ast-global-color-5: var(--text-mid);
    --ast-global-color-6: var(--border);
    --ast-global-color-7: var(--forest-mid);
    --ast-global-color-8: var(--cream-dark);
}

/* ── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.72;
    color: var(--text);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
button { cursor: pointer; }

h1,h2,h3,h4,h5,h6 {
    font-family: var(--serif);
    line-height: 1.2;
    color: var(--text);
}
h1 { font-size: clamp(2rem,   5.5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.05rem; }

p { margin-bottom: 1.3rem; }
p:last-child { margin-bottom: 0; }

/* ── Utilities ────────────────────────────────────────── */
.container {
    max-width: var(--site-max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.eyebrow {
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--peach);
    display: block;
    margin-bottom: 0.5rem;
}

.section { padding: clamp(3rem, 6vw, 5.5rem) 0; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 1.6rem;
    font-family: var(--sans);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 6px;
    letter-spacing: 0.02em;
    transition: all var(--ease);
    border: 2px solid transparent;
    text-decoration: none;
}
.btn-primary {
    background: var(--peach);
    color: var(--white);
    border-color: var(--peach);
}
.btn-primary:hover {
    background: var(--peach-dark);
    border-color: var(--peach-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(232,125,90,0.35);
}
.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.55);
}
.btn-outline-white:hover {
    border-color: var(--white);
    background: rgba(255,255,255,0.1);
}

/* ── Reading Progress ─────────────────────────────────── */
#tp-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0;
    background: var(--peach);
    z-index: 10000;
    transition: width 80ms linear;
    border-radius: 0 2px 2px 0;
}

/* ── HEADER ───────────────────────────────────────────── */
.site-header {
    background: var(--forest);
    position: sticky;
    top: 0;
    z-index: 900;
    transition: box-shadow var(--ease);
}
.site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.28); }

.header-inner {
    max-width: var(--site-max);
    margin: 0 auto;
    padding: 0 var(--gutter);
    height: 64px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Logo */
.site-branding {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-shrink: 0;
    text-decoration: none;
}
.site-branding-icon {
    font-size: 1.6rem;
    line-height: 1;
}
.site-branding-name {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--white);
    white-space: nowrap;
}

/* Primary nav */
.primary-nav {
    display: flex;
    align-items: center;
    margin-left: auto;
}
.primary-nav > ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
}
.primary-nav a {
    display: block;
    padding: 0.45rem 0.85rem;
    font-size: 0.84rem;
    font-weight: 500;
    color: rgba(255,255,255,0.78);
    letter-spacing: 0.02em;
    white-space: nowrap;
    transition: color var(--ease);
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a { color: var(--white); }
.primary-nav .current-menu-item > a { color: var(--peach); }

/* Dropdown */
.primary-nav .menu-item-has-children { position: relative; }
.primary-nav .sub-menu {
    position: absolute;
    top: 100%; left: 0;
    background: var(--forest-dark);
    min-width: 200px;
    border-radius: 0 0 var(--r) var(--r);
    box-shadow: var(--sh-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: all var(--ease);
    z-index: 50;
    padding: 0.3rem 0;
    list-style: none;
}
.primary-nav .menu-item-has-children:hover .sub-menu {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.primary-nav .sub-menu li { display: block; }
.primary-nav .sub-menu a {
    padding: 0.55rem 1.1rem;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.75);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.primary-nav .sub-menu a:hover {
    color: var(--white);
    background: rgba(255,255,255,0.05);
}

/* Search in nav */
.header-search {
    margin-left: 0.5rem;
    position: relative;
}
.header-search-form {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 0.25rem 0.8rem;
    gap: 0.4rem;
    transition: background var(--ease);
}
.header-search-form:focus-within { background: rgba(255,255,255,0.15); }
.header-search-input {
    background: none;
    border: none;
    outline: none;
    color: var(--white);
    font-size: 0.82rem;
    width: 130px;
}
.header-search-input::placeholder { color: rgba(255,255,255,0.45); }
.header-search-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.55);
    padding: 0;
    font-size: 0.9rem;
    transition: color var(--ease);
}
.header-search-btn:hover { color: var(--white); }

/* Hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    padding: 0.3rem;
    margin-left: auto;
}
.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    position: relative;
    transition: background var(--ease);
}
.nav-toggle-bar::before,
.nav-toggle-bar::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    transition: transform var(--ease);
}
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after  { bottom: -6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: rotate(45deg) translate(4px,4px); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after  { transform: rotate(-45deg) translate(4px,-4px); }

/* ── HERO — HOMEPAGE ──────────────────────────────────── */
.site-hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--forest-dark);
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 35%;
    background-repeat: no-repeat;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(16,28,20,0.55) 0%,
        rgba(16,28,20,0.65) 50%,
        rgba(16,28,20,0.82) 100%
    );
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: var(--site-max);
    margin: 0 auto;
    padding: 6rem var(--gutter) 5rem;
    color: var(--white);
    max-width: 820px;
}
.hero-eyebrow {
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--peach);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}
.hero-eyebrow::after {
    content: '';
    display: inline-block;
    width: 36px; height: 2px;
    background: var(--peach);
    flex-shrink: 0;
}
.hero-title {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(2.8rem, 8vw, 5.5rem);
    line-height: 1.05;
    color: var(--white);
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 24px rgba(0,0,0,0.25);
}
.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: rgba(255,255,255,0.78);
    max-width: 500px;
    line-height: 1.65;
    margin-bottom: 2.5rem;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-scroll {
    position: absolute;
    bottom: 2.5rem; left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255,255,255,0.4);
    font-family: var(--sans);
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    z-index: 1;
    animation: heroScroll 2.2s ease infinite;
}
.hero-scroll::after {
    content: '';
    display: block;
    width: 1px; height: 36px;
    background: rgba(255,255,255,0.25);
}
@keyframes heroScroll {
    0%,100% { transform: translateX(-50%) translateY(0); }
    55%      { transform: translateX(-50%) translateY(7px); }
}

/* ── TRAIL CARDS ──────────────────────────────────────── */
.trails-section {
    background: var(--forest);
    padding: clamp(3rem,6vw,5rem) 0;
}
.trails-section .eyebrow { color: rgba(255,255,255,0.55); }
.trails-section-title {
    font-family: var(--serif);
    font-style: italic;
    color: var(--white);
    margin-bottom: 0.4rem;
}
.trails-section-sub {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}
.trail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gap);
}
@media (min-width: 900px) {
    .trail-grid { grid-template-columns: repeat(5, 1fr); }
}
.trail-card {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    aspect-ratio: 3/4;
    background: var(--forest-dark);
    display: block;
    text-decoration: none;
}
.trail-card-img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.55s ease;
}
.trail-card:hover .trail-card-img { transform: scale(1.07); }
.trail-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.05) 60%);
    transition: background var(--ease);
}
.trail-card:hover .trail-card-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.15) 60%);
}
.trail-card-info {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 1rem;
    color: var(--white);
}
.trail-card-abbr {
    display: block;
    font-family: var(--sans);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--peach);
    margin-bottom: 0.2rem;
}
.trail-card-name {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(0.9rem, 1.8vw, 1.15rem);
    line-height: 1.2;
    color: var(--white);
}
.trail-card-region {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.55);
    margin-top: 0.2rem;
    font-family: var(--sans);
}
/* Colorado Trail gets a slightly different span on mobile */
.trail-card:last-of-type { grid-column: span 2; }
@media (min-width: 900px) { .trail-card:last-of-type { grid-column: span 1; } }

/* ── RECENT POSTS GRID ────────────────────────────────── */
.posts-section { background: var(--cream); }
.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 640px) { .posts-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 960px) { .posts-grid { grid-template-columns: repeat(3,1fr); } }

.post-card {
    background: var(--white);
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--sh-sm);
    display: flex;
    flex-direction: column;
    transition: transform var(--ease), box-shadow var(--ease);
    text-decoration: none;
    color: inherit;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }

.post-card-thumb-wrap { overflow: hidden; position: relative; flex-shrink: 0; }
.post-card-thumb {
    width: 100%; height: 210px;
    object-fit: cover;
    display: block;
    transition: transform 0.42s ease;
}
.post-card:hover .post-card-thumb { transform: scale(1.04); }
.post-card-no-thumb {
    width: 100%; height: 210px;
    background: linear-gradient(135deg, var(--forest) 0%, var(--forest-mid) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.post-card-body {
    padding: 1.1rem 1.25rem 1.4rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.post-card-cat {
    font-family: var(--sans);
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--peach);
    margin-bottom: 0.35rem;
    text-decoration: none;
}
.post-card-title {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.3;
    color: var(--text);
    margin-bottom: 0.65rem;
    transition: color var(--ease);
}
.post-card:hover .post-card-title { color: var(--peach-dark); }
.post-card-excerpt {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-mid);
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.9rem;
}
.post-card-meta {
    font-family: var(--sans);
    font-size: 0.73rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: auto;
}
.post-card-meta-sep { color: var(--border); }

.section-footer {
    text-align: center;
    margin-top: 2.5rem;
}

/* ── ABOUT STRIP ──────────────────────────────────────── */
.about-strip {
    background: var(--cream-mid);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.about-strip-inner {
    max-width: 860px;
    margin: 0 auto;
    padding: clamp(3rem,6vw,5rem) var(--gutter);
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}
@media (min-width: 600px) {
    .about-strip-inner { grid-template-columns: 130px 1fr; }
}
.about-avatar {
    width: 110px; height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--white);
    box-shadow: var(--sh);
    margin: 0 auto;
}
.about-avatar-placeholder {
    width: 110px; height: 110px;
    border-radius: 50%;
    background: var(--forest);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    border: 4px solid var(--white);
    box-shadow: var(--sh);
    margin: 0 auto;
}
.about-text h3 {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.5rem;
    margin-bottom: 0.65rem;
}
.about-text p {
    font-size: 0.92rem;
    color: var(--text-mid);
    line-height: 1.72;
    margin-bottom: 1rem;
}

/* ── SINGLE POST ──────────────────────────────────────── */
.post-hero {
    position: relative;
    height: clamp(280px, 48vh, 520px);
    background: var(--forest-dark);
    overflow: hidden;
}
.post-hero-img {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.88;
}
.post-hero-fade {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 45%;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.45));
}
.post-hero-none {
    height: 12px;
    background: linear-gradient(90deg, var(--forest), var(--forest-mid), var(--peach));
}

.post-wrap {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 2.5rem var(--gutter) 5rem;
}

.post-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1rem;
    font-family: var(--sans);
    font-size: 0.78rem;
    color: var(--text-light);
}
.post-cat-badge {
    background: var(--peach-bg);
    color: var(--peach-dark);
    padding: 0.18rem 0.65rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    transition: background var(--ease), color var(--ease);
}
.post-cat-badge:hover { background: var(--peach); color: var(--white); }
.post-meta-sep { color: var(--border); }
.post-reading-time { display: inline-flex; align-items: center; gap: 0.25rem; }

.post-title {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(1.8rem, 5.5vw, 2.7rem);
    line-height: 1.15;
    margin-bottom: 1.75rem;
    color: var(--text);
}

/* Series nav */
.series-nav-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    margin-bottom: 2.5rem;
    padding: 1.1rem;
    background: var(--cream-mid);
    border: 1px solid var(--border);
    border-radius: var(--r);
}
.series-nav-item { text-decoration: none; display: block; }
.series-nav-label {
    font-family: var(--sans);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 0.2rem;
}
.series-nav-title {
    font-family: var(--serif);
    font-style: italic;
    font-size: 0.9rem;
    line-height: 1.3;
    color: var(--forest);
    transition: color var(--ease);
}
.series-nav-item:hover .series-nav-title { color: var(--peach-dark); }
.series-nav-item.next { text-align: right; }
.series-nav-item.next .series-nav-label { justify-content: flex-end; }

/* Post content typography */
.post-content {
    font-family: Georgia, var(--serif);
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text);
}
.post-content > p:first-of-type {
    font-size: 1.12rem;
    line-height: 1.78;
    color: var(--text-mid);
}
.post-content p { margin-bottom: 1.55rem; }
.post-content h2 {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(1.3rem,3vw,1.75rem);
    color: var(--forest);
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--cream-dark);
}
.post-content h3 {
    font-family: var(--serif);
    font-size: clamp(1.1rem,2.5vw,1.35rem);
    margin: 2rem 0 0.75rem;
}
.post-content a {
    color: var(--peach-dark);
    text-decoration: underline;
    text-decoration-color: rgba(200,96,62,0.35);
    text-underline-offset: 3px;
    transition: color var(--ease), text-decoration-color var(--ease);
}
.post-content a:hover {
    color: var(--peach);
    text-decoration-color: var(--peach);
}
.post-content blockquote {
    border-left: 4px solid var(--peach);
    background: var(--cream-mid);
    margin: 2rem 0;
    padding: 1.2rem 1.5rem;
    border-radius: 0 var(--r) var(--r) 0;
    font-style: italic;
    font-size: 1.08rem;
    color: var(--text-mid);
    line-height: 1.65;
}
.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--r);
    margin: 1.5rem 0;
}
.post-content figure { margin: 2rem 0; }
.post-content figcaption {
    font-family: var(--sans);
    font-size: 0.78rem;
    color: var(--text-light);
    text-align: center;
    margin-top: 0.55rem;
    font-style: italic;
}
.post-content ul,
.post-content ol { margin: 0 0 1.5rem 1.5rem; line-height: 1.85; }
.post-content li { margin-bottom: 0.35rem; }
.post-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2.5rem 0;
}

/* Related posts */
.related-section {
    margin-top: 4rem;
    padding-top: 2.5rem;
    border-top: 2px solid var(--cream-dark);
}
.related-section-title {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}
.related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 520px) {
    .related-grid { grid-template-columns: repeat(3, 1fr); }
}
.related-card {
    border-radius: var(--r);
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    text-decoration: none;
    display: block;
    transition: transform var(--ease), box-shadow var(--ease);
}
.related-card:hover { transform: translateY(-3px); box-shadow: var(--sh); }
.related-card-img { width: 100%; height: 130px; object-fit: cover; }
.related-card-bar { height: 4px; background: linear-gradient(90deg,var(--peach),#c8ae5a); }
.related-card-body { padding: 0.8rem 0.95rem 1rem; }
.related-card-cat {
    font-family: var(--sans);
    font-size: 0.63rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--peach);
    margin-bottom: 0.22rem;
}
.related-card-title {
    font-family: var(--serif);
    font-style: italic;
    font-size: 0.92rem;
    color: var(--text);
    line-height: 1.3;
    transition: color var(--ease);
}
.related-card:hover .related-card-title { color: var(--peach-dark); }
.related-card-date { font-family: var(--sans); font-size: 0.68rem; color: var(--text-light); margin-top: 0.28rem; }

/* ── ARCHIVE PAGE ─────────────────────────────────────── */
.archive-banner {
    background: var(--forest);
    color: var(--white);
    padding: clamp(3rem,6vw,4.5rem) 0 clamp(2rem,4vw,3rem);
}
.archive-banner .eyebrow { color: rgba(255,255,255,0.55); }
.archive-banner h1 {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(2rem,5vw,3rem);
    color: var(--white);
    margin-bottom: 0.5rem;
}
.archive-banner .description {
    color: rgba(255,255,255,0.6);
    font-size: 0.92rem;
    max-width: 520px;
    margin-top: 0.5rem;
}

.archive-body {
    padding: 3rem 0 5rem;
}

/* ── PAGINATION ───────────────────────────────────────── */
.pagination-wrap {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 3rem;
    font-family: var(--sans);
}
.pagination-wrap .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px; height: 40px;
    padding: 0 0.5rem;
    border-radius: var(--r);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text);
    transition: all var(--ease);
}
.pagination-wrap .page-numbers:hover,
.pagination-wrap .page-numbers.current {
    background: var(--peach);
    border-color: var(--peach);
    color: var(--white);
}

/* ── STATIC PAGE ──────────────────────────────────────── */
.page-banner {
    background: var(--forest);
    padding: 3.5rem 0 2.5rem;
}
.page-banner h1 {
    font-family: var(--serif);
    font-style: italic;
    color: var(--white);
    font-size: clamp(1.8rem,4.5vw,2.8rem);
}
.page-body {
    max-width: var(--site-max);
    margin: 0 auto;
    padding: 3rem var(--gutter) 6rem;
}

/* Page content resets (Gutenberg) */
.page-body .wp-block-cover {
    border-radius: var(--r-lg);
    overflow: hidden;
    margin: 1.5rem 0;
}
.page-body .wp-block-button__link {
    background: var(--peach) !important;
    border-color: var(--peach) !important;
    border-radius: 6px !important;
    font-family: var(--sans) !important;
    font-weight: 600 !important;
    transition: all var(--ease) !important;
}
.page-body .wp-block-button__link:hover {
    background: var(--peach-dark) !important;
    border-color: var(--peach-dark) !important;
}
.page-body h1,
.page-body h2,
.page-body h3 {
    font-family: var(--serif);
    font-style: italic;
}
.page-body h2 { color: var(--forest); }
.page-body p { font-size: 1rem; line-height: 1.78; color: var(--text-mid); }
.page-body a { color: var(--peach-dark); text-decoration: underline; }
.page-body .wp-block-image img { border-radius: var(--r); }

/* ── SEARCH ───────────────────────────────────────────── */
.search-banner { background: var(--forest); padding: 3.5rem 0 2.5rem; }
.search-banner h1 { font-family: var(--serif); font-style: italic; color: var(--white); }
.search-banner .search-count { color: rgba(255,255,255,0.55); font-size: 0.9rem; margin-top: 0.4rem; }
.search-body { padding: 3rem 0 5rem; }

/* ── 404 ──────────────────────────────────────────────── */
.not-found {
    text-align: center;
    padding: 7rem var(--gutter);
    max-width: 540px;
    margin: 0 auto;
}
.not-found-icon { font-size: 4rem; margin-bottom: 1.5rem; }
.not-found h1 { font-family: var(--serif); font-style: italic; margin-bottom: 0.8rem; }
.not-found p { color: var(--text-mid); margin-bottom: 2rem; }

/* ── FOOTER ───────────────────────────────────────────── */
.site-footer {
    background: var(--forest-dark);
    color: rgba(255,255,255,0.65);
    padding: 4rem 0 2rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}
@media (min-width: 640px) {
    .footer-grid { grid-template-columns: 1.8fr 1fr 1fr; }
}
.footer-brand .site-branding { margin-bottom: 0.9rem; }
.footer-brand-desc { font-size: 0.86rem; line-height: 1.68; color: rgba(255,255,255,0.5); max-width: 280px; }
.footer-col-title {
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    color: rgba(255,255,255,0.38);
    margin-bottom: 0.9rem;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.45rem; }
.footer-links a {
    font-size: 0.86rem;
    color: rgba(255,255,255,0.6);
    transition: color var(--ease);
}
.footer-links a:hover { color: var(--white); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-family: var(--sans);
    font-size: 0.76rem;
    color: rgba(255,255,255,0.32);
}
.footer-bottom a { color: rgba(255,255,255,0.45); transition: color var(--ease); }
.footer-bottom a:hover { color: var(--white); }

/* ── MOBILE BREAKPOINT ────────────────────────────────── */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .primary-nav {
        position: absolute;
        top: 64px; left: 0; right: 0;
        background: var(--forest-dark);
        box-shadow: var(--sh-lg);
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 0.75rem 0 1rem;
    }
    .primary-nav.open { display: flex; }
    .primary-nav > ul { flex-direction: column; align-items: stretch; }
    .primary-nav a { padding: 0.7rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.04); }
    .primary-nav .sub-menu {
        position: static;
        opacity: 1; visibility: visible; transform: none;
        box-shadow: none; border-radius: 0;
        background: rgba(0,0,0,0.18);
        padding: 0;
    }
    .primary-nav .sub-menu a { padding-left: 2.5rem; }
    .header-search { display: none; }

    .hero-content { padding-top: 4rem; }
    .trail-grid { grid-template-columns: repeat(2, 1fr); }
    .trail-card:last-of-type { grid-column: span 2; }
    .series-nav-box { grid-template-columns: 1fr; gap: 1rem; }
    .series-nav-item.next { text-align: left; }
    .series-nav-item.next .series-nav-label { justify-content: flex-start; }
}


/* ── GUTENBERG BLOCK STYLES ───────────────────────────── */
/* Latest Posts block */
.wp-block-latest-posts {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 640px) {
    .wp-block-latest-posts.is-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 960px) {
    .wp-block-latest-posts.is-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
.wp-block-latest-posts > li {
    background: var(--white);
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--sh-sm);
    transition: transform var(--ease), box-shadow var(--ease);
}
.wp-block-latest-posts > li:hover {
    transform: translateY(-4px);
    box-shadow: var(--sh-lg);
}
.wp-block-latest-posts__featured-image a {
    display: block;
    overflow: hidden;
}
.wp-block-latest-posts__featured-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.42s ease;
}
.wp-block-latest-posts > li:hover .wp-block-latest-posts__featured-image img {
    transform: scale(1.04);
}
.wp-block-latest-posts__post-title {
    font-family: var(--serif) !important;
    font-style: italic;
    font-size: 1.05rem !important;
    line-height: 1.3 !important;
    color: var(--text);
    padding: 0.9rem 1.1rem 0.3rem;
    display: block;
    text-decoration: none;
    transition: color var(--ease);
}
.wp-block-latest-posts > li:hover .wp-block-latest-posts__post-title {
    color: var(--peach-dark);
}
.wp-block-latest-posts__post-date,
.wp-block-latest-posts__post-author {
    font-family: var(--sans);
    font-size: 0.73rem;
    color: var(--text-light);
    padding: 0 1.1rem 0.5rem;
    display: block;
}
.wp-block-latest-posts__post-excerpt {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-mid);
    padding: 0 1.1rem 1.1rem;
    display: block;
}

/* Categories block */
.wp-block-categories {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.wp-block-categories a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--peach-bg);
    color: var(--peach-dark);
    border-radius: 20px;
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: background var(--ease), color var(--ease);
    border: 1px solid rgba(200,96,62,0.2);
}
.wp-block-categories a:hover {
    background: var(--peach);
    color: var(--white);
}

/* Cover blocks on static pages */
.page-body .wp-block-cover {
    border-radius: var(--r-lg);
    overflow: hidden;
}
.page-body .wp-block-cover__image-background,
.page-body .wp-block-cover__video-background {
    border-radius: var(--r-lg);
}

/* ── MISC WORDPRESS ───────────────────────────────────── */
.wp-caption, .wp-caption-text { max-width: 100%; }
.alignnone, .alignleft, .alignright, .aligncenter { max-width: 100%; height: auto; }
.aligncenter { display: block; margin: 0 auto; }
.alignleft { float: left; margin: 0.5rem 1.5rem 1rem 0; }
.alignright { float: right; margin: 0.5rem 0 1rem 1.5rem; }
.sticky { /* WordPress sticky posts */ }
.screen-reader-text {
    clip: rect(1px,1px,1px,1px);
    position: absolute;
    height: 1px; width: 1px;
    overflow: hidden;
}

/* ═══════════════════════════════════════════════════════
   HOMEPAGE v2 — gear-first, routing-focused
   ═══════════════════════════════════════════════════════ */

.home-hero {
    position: relative;
    min-height: 62vh;
    display: flex;
    align-items: center;
    background: var(--forest-dark);
    overflow: hidden;
}
.home-hero-bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center 40%;
}
.home-hero-scrim {
    position: absolute; inset: 0;
    background: linear-gradient(105deg, rgba(16,28,20,0.88) 0%, rgba(16,28,20,0.72) 48%, rgba(16,28,20,0.45) 100%);
}
.home-hero-inner {
    position: relative;
    z-index: 1;
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
    max-width: 780px;
    margin-inline: auto;
    width: 100%;
}
.home-hero-title {
    font-family: var(--sans);
    font-weight: 700;
    letter-spacing: -0.025em;
    font-size: clamp(2rem, 5.2vw, 3.4rem);
    line-height: 1.08;
    color: #fff;
    margin-bottom: 1rem;
}
.home-hero-sub {
    font-size: clamp(0.98rem, 1.9vw, 1.12rem);
    line-height: 1.7;
    color: rgba(255,255,255,0.82);
    max-width: 580px;
    margin-bottom: 2rem;
}
.home-hero-ctas { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.btn-ghost {
    background: rgba(255,255,255,0.09);
    color: #fff;
    border-color: rgba(255,255,255,0.35);
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.16);
    border-color: rgba(255,255,255,0.6);
    transform: translateY(-2px);
}
.btn-sm { padding: 0.55rem 1.15rem; font-size: 0.82rem; white-space: nowrap; }

/* ── Credibility strip ─────────────────────────────────── */
.cred-strip {
    background: var(--forest-dark);
    border-top: 1px solid rgba(255,255,255,0.07);
}
.cred-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    padding-block: 0;
}
@media (min-width: 720px) { .cred-grid { grid-template-columns: repeat(4, 1fr); } }
.cred-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    padding: 1.4rem 0.75rem;
    text-align: center;
}
.cred-num {
    font-family: var(--sans);
    font-weight: 700;
    font-size: clamp(1.15rem, 2.6vw, 1.6rem);
    color: var(--peach);
    letter-spacing: -0.02em;
}
.cred-label {
    font-size: 0.72rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
}

/* ── Section scaffolding ───────────────────────────────── */
.section-alt { background: var(--cream-mid); }

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.section-title {
    font-family: var(--sans);
    font-weight: 700;
    letter-spacing: -0.02em;
    font-size: clamp(1.5rem, 3.2vw, 2rem);
    color: var(--text);
    margin-bottom: 0.35rem;
}
.section-sub {
    font-size: 0.92rem;
    color: var(--text-mid);
    max-width: 46ch;
}
.section-link {
    font-family: var(--sans);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--peach-dark);
    white-space: nowrap;
    transition: color var(--ease);
}
.section-link:hover { color: var(--peach); }

/* ── Cards ─────────────────────────────────────────────── */
.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.35rem;
}
@media (min-width: 620px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

.card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--sh);
    border-color: rgba(232,125,90,0.42);
}
.card-media { overflow: hidden; background: var(--cream-dark); }
.card-media img {
    width: 100%; height: 190px;
    object-fit: cover;
    transition: transform 0.45s ease;
}
.card:hover .card-media img { transform: scale(1.045); }
.card-media-fallback {
    height: 190px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.2rem;
    background: linear-gradient(135deg, var(--forest) 0%, var(--forest-mid) 100%);
}
.card-body {
    padding: 1rem 1.15rem 1.25rem;
    display: flex; flex-direction: column; flex: 1;
}
.card-kicker {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--peach);
    margin-bottom: 0.4rem;
}
.card-title {
    font-family: var(--sans);
    font-weight: 650;
    font-size: 1.02rem;
    line-height: 1.32;
    letter-spacing: -0.012em;
    margin-bottom: 0.5rem;
    transition: color var(--ease);
}
.card:hover .card-title { color: var(--peach-dark); }
.card-excerpt {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-mid);
    flex: 1;
    margin-bottom: 0.85rem;
}
.card-meta { font-size: 0.74rem; color: var(--text-light); margin-top: auto; }

/* ── Callout ───────────────────────────────────────────── */
.callout {
    margin-top: 2rem;
    padding: 1.15rem 1.4rem;
    background: var(--peach-bg);
    border: 1px solid rgba(232,125,90,0.28);
    border-radius: var(--r-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
    font-size: 0.92rem;
    color: var(--text-mid);
    line-height: 1.6;
}
.callout strong { color: var(--text); }

/* ── Guide grid ────────────────────────────────────────── */
.guide-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}
@media (min-width: 560px) { .guide-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .guide-grid { grid-template-columns: repeat(4, 1fr); } }

.guide-card {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1.05rem 1.15rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 3px solid var(--forest);
    border-radius: var(--r);
    text-decoration: none;
    transition: all var(--ease);
}
.guide-card:hover {
    border-left-color: var(--peach);
    transform: translateX(3px);
    box-shadow: var(--sh-sm);
}
.guide-name {
    font-family: var(--sans);
    font-weight: 650;
    font-size: 0.94rem;
    color: var(--text);
    line-height: 1.3;
}
.guide-meta { font-size: 0.76rem; color: var(--text-light); }

/* ── Tools ─────────────────────────────────────────────── */
.tool-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.1rem;
}
@media (min-width: 760px) { .tool-grid { grid-template-columns: repeat(3, 1fr); } }

.tool-card {
    display: block;
    padding: 1.5rem 1.4rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    text-decoration: none;
    transition: all var(--ease);
}
.tool-card:hover {
    border-color: rgba(232,125,90,0.45);
    box-shadow: var(--sh);
    transform: translateY(-3px);
}
.tool-icon { font-size: 1.7rem; display: block; margin-bottom: 0.65rem; }
.tool-title {
    font-family: var(--sans);
    font-weight: 650;
    font-size: 1rem;
    margin-bottom: 0.4rem;
    color: var(--text);
}
.tool-desc { font-size: 0.85rem; line-height: 1.6; color: var(--text-mid); }

/* ── Dispatch list ─────────────────────────────────────── */
.dispatch-list {
    border-top: 1px solid var(--border);
}
.dispatch {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.2rem;
    padding: 0.95rem 0.25rem;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    transition: background var(--ease), padding-left var(--ease);
}
@media (min-width: 700px) {
    .dispatch {
        grid-template-columns: 110px 1fr auto;
        align-items: center;
        gap: 1.25rem;
    }
}
.dispatch:hover { background: rgba(232,125,90,0.05); padding-left: 0.65rem; }
.dispatch-date { font-size: 0.78rem; color: var(--text-light); }
.dispatch-title {
    font-family: var(--sans);
    font-weight: 550;
    font-size: 0.96rem;
    color: var(--text);
    line-height: 1.4;
    transition: color var(--ease);
}
.dispatch:hover .dispatch-title { color: var(--peach-dark); }
.dispatch-cat {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--peach);
}

/* ═══════════════════════════════════════════════════════
   GEAR ARTICLE COMPONENTS — comparison tables + affiliate
   Use these in the pants / solar / future gear posts.
   ═══════════════════════════════════════════════════════ */

/* Affiliate disclosure */
.tp-disclosure {
    font-size: 0.82rem;
    line-height: 1.6;
    color: var(--text-light);
    background: var(--cream-mid);
    border-left: 3px solid var(--border);
    padding: 0.75rem 1rem;
    border-radius: 0 var(--r) var(--r) 0;
    margin-bottom: 1.75rem;
    font-style: italic;
}

/* Comparison table — the top-of-page answer box */
.tp-compare-wrap {
    overflow-x: auto;
    margin: 1.75rem 0 2.25rem;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    background: var(--white);
}
.tp-compare {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--sans);
    font-size: 0.88rem;
    min-width: 620px;
}
.tp-compare thead th {
    background: var(--forest);
    color: #fff;
    font-weight: 600;
    font-size: 0.74rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    text-align: left;
    padding: 0.75rem 0.9rem;
    white-space: nowrap;
}
.tp-compare tbody td {
    padding: 0.85rem 0.9rem;
    border-top: 1px solid var(--border);
    vertical-align: middle;
    color: var(--text-mid);
}
.tp-compare tbody tr:nth-child(odd) { background: rgba(0,0,0,0.015); }
.tp-compare tbody tr:hover { background: var(--peach-bg); }
.tp-compare .tp-product {
    font-weight: 650;
    color: var(--text);
    font-size: 0.92rem;
}
.tp-compare .tp-pick {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    background: var(--forest);
    color: #fff;
    padding: 0.12rem 0.45rem;
    border-radius: 3px;
    margin-left: 0.4rem;
    vertical-align: middle;
}

/* Buy button */
.tp-buy {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--peach);
    color: #fff !important;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.48rem 0.95rem;
    border-radius: 5px;
    text-decoration: none !important;
    white-space: nowrap;
    transition: all var(--ease);
    border: none;
}
.tp-buy:hover {
    background: var(--peach-dark);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(232,125,90,0.35);
    color: #fff !important;
}

/* Inline price-check CTA after each product section */
.tp-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1.5rem 0 2.25rem;
    padding: 1rem 1.25rem;
    background: var(--cream-mid);
    border: 1px solid var(--border);
    border-radius: var(--r);
}
.tp-cta-text {
    font-family: var(--sans);
    font-size: 0.88rem;
    color: var(--text-mid);
    line-height: 1.5;
}
.tp-cta-text strong { color: var(--text); }

/* Verdict box — the "what I'd buy" summary */
.tp-verdict {
    margin: 2rem 0;
    padding: 1.35rem 1.5rem;
    background: var(--peach-bg);
    border: 1px solid rgba(232,125,90,0.3);
    border-radius: var(--r-lg);
}
.tp-verdict-label {
    font-family: var(--sans);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--peach-dark);
    display: block;
    margin-bottom: 0.5rem;
}
.tp-verdict p { font-size: 0.98rem; line-height: 1.7; margin-bottom: 0.75rem; }
.tp-verdict p:last-child { margin-bottom: 0; }

/* Spec list for build/kit posts */
.tp-specs {
    list-style: none;
    margin: 1.5rem 0;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--r);
    overflow: hidden;
    background: var(--white);
}
.tp-specs li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    font-family: var(--sans);
    font-size: 0.88rem;
    margin: 0;
}
.tp-specs li:last-child { border-bottom: none; }
.tp-spec-name { font-weight: 600; color: var(--text); }
.tp-spec-weight { color: var(--text-light); font-size: 0.82rem; }

/* ═══════════════════════════════════════════════════════
   TRAILS MAP — stylized, reduced-form, no map library
   ═══════════════════════════════════════════════════════ */

.trails-map-section { background: var(--cream-mid); }

.trails-map-wrap {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: center;
}
@media (min-width: 900px) {
    .trails-map-wrap { grid-template-columns: minmax(0,1.55fr) minmax(240px,0.85fr); gap: 2.5rem; }
}

.trails-map-figure {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 0.5rem;
    overflow: hidden;
}
.trails-map-svg { width: 100%; height: auto; display: block; }

/* Land silhouette */
.tm-land {
    fill: #eee7db;
    stroke: #ddd2c0;
    stroke-width: 2;
    stroke-linejoin: round;
}

/* Trails */
.tm-trail { cursor: pointer; outline: none; }
.tm-hit {
    fill: none;
    stroke: transparent;
    stroke-width: 26;          /* generous hover target */
    stroke-linecap: round;
    stroke-linejoin: round;
}
.tm-line {
    fill: none;
    stroke-width: 6;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke-width 180ms ease, opacity 180ms ease;
    pointer-events: none;
}

/* Dim siblings when the map is being explored */
.trails-map-svg:hover .tm-line { opacity: 0.22; stroke-width: 5; }
.tm-trail:hover .tm-line,
.tm-trail:focus-visible .tm-line { opacity: 1; stroke-width: 9; }
.tm-trail:focus-visible .tm-hit { stroke: rgba(0,0,0,0.18); }

/* Driven from the legend too */
.trails-map-svg.tm-external .tm-line { opacity: 0.22; stroke-width: 5; }
.trails-map-svg.tm-external .tm-trail.is-active .tm-line { opacity: 1; stroke-width: 9; }


.tm-info-num {
    display: block;
    font-family: var(--sans);
    font-weight: 700;
    font-size: 2.1rem;
    letter-spacing: -0.03em;
    color: var(--peach);
    line-height: 1;
}
.tm-info-cap {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--text-light);
    margin: 0.35rem 0 0.9rem;
}
.trails-map-info p {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--text-mid);
}

.tm-detail-abbr {
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    background: var(--forest);
    padding: 0.18rem 0.5rem;
    border-radius: 3px;
    margin-bottom: 0.6rem;
}
.tm-detail-name {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 0.35rem;
    color: var(--text);
}
.tm-detail-meta {
    font-size: 0.78rem;
    color: var(--text-light);
    margin-bottom: 0.7rem;
}
.tm-detail-cta {
    display: inline-block;
    margin-top: 0.9rem;
    font-family: var(--sans);
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--peach-dark);
}

/* Legend */
.trails-legend {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.4rem;
}
@media (min-width: 560px) { .trails-legend { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 900px) { .trails-legend { grid-template-columns: repeat(4,1fr); } }

.tm-legend-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.6rem 0.75rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    text-decoration: none;
    transition: all var(--ease);
}
.tm-legend-item:hover {
    border-color: rgba(232,125,90,0.5);
    transform: translateY(-2px);
    box-shadow: var(--sh-sm);
}
.tm-swatch {
    width: 14px; height: 4px;
    border-radius: 2px;
    flex-shrink: 0;
}
.tm-legend-name {
    font-family: var(--sans);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.25;
    flex: 1;
}
.tm-legend-miles {
    font-size: 0.72rem;
    color: var(--text-light);
    white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
    .tm-line, .tm-legend-item { transition: none; }
}

/* Trail terminus dots */
.tm-dot {
    transition: opacity 180ms ease, r 180ms ease;
    pointer-events: none;
    stroke: #fff;
    stroke-width: 1.5;
}
.trails-map-svg:hover .tm-dot { opacity: 0.22; }
.tm-trail:hover .tm-dot,
.tm-trail:focus-visible .tm-dot { opacity: 1; r: 7; }
.trails-map-svg.tm-external .tm-dot { opacity: 0.22; }
.trails-map-svg.tm-external .tm-trail.is-active .tm-dot { opacity: 1; r: 7; }
.tm-land { filter: drop-shadow(0 2px 6px rgba(0,0,0,0.06)); }

/* ═══════════════════════════════════════════════════════
   HAND-ILLUSTRATED MAP — overrides for the drawn style
   ═══════════════════════════════════════════════════════ */

.trails-map-wrap { display: block; }          /* map is full width now */
.trails-map-figure {
    position: relative;
    padding: 0;
    background: #e9eff0;
    border: 1px solid #ddd2c0;
    box-shadow: inset 0 0 40px rgba(138,127,107,0.12);
}

/* Land */
.tm-land {
    fill: #f2e9d8;
    stroke: #a8967c;
    stroke-width: 2.4;
    stroke-linejoin: round;
    filter: none;
}
.tm-land-shadow { fill: rgba(138,127,107,0.16); stroke: none; }

.tm-features { opacity: 0.92; }

/* Hand-lettered labels */
.tm-labels text {
    font-family: 'Caveat', 'Bradley Hand', cursive;
    font-size: 19px;
    font-weight: 600;
    fill: #8a7f6b;
    text-anchor: middle;
    letter-spacing: 0.02em;
    user-select: none;
}
.tm-compass-n {
    font-family: 'Caveat', cursive;
    font-size: 15px;
    font-weight: 700;
    fill: #8a7f6b;
}
.tm-compass { opacity: 0.75; }

/* Trails — drawn look: cream underlay so lines read over terrain */
.tm-line-under {
    fill: none;
    stroke: #fbf7ef;
    stroke-width: 9;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.75;
    pointer-events: none;
    transition: opacity 180ms ease;
}
.tm-line { stroke-width: 4.6; }
.trails-map-svg:hover .tm-line-under { opacity: 0.2; }
.tm-trail:hover .tm-line-under,
.tm-trail:focus-visible .tm-line-under { opacity: 0.9; }
.trails-map-svg.tm-external .tm-line-under { opacity: 0.2; }
.trails-map-svg.tm-external .tm-trail.is-active .tm-line-under { opacity: 0.9; }

.tm-trail:hover .tm-line,
.tm-trail:focus-visible .tm-line { stroke-width: 7.5; }
.trails-map-svg.tm-external .tm-trail.is-active .tm-line { stroke-width: 7.5; }

/* Info card floats over the empty plains, top-right */
.trails-map-info {
    background: rgba(251,247,239,0.96);
    border: 1px solid #cbbfa6;
    border-radius: var(--r);
    box-shadow: 0 6px 22px rgba(90,78,58,0.16);
    padding: 1.15rem 1.25rem;
    min-height: 0;
    display: grid;
    align-items: start;
    margin: 0.9rem;
}
.trails-map-info > div { grid-area: 1 / 1; width: 100%; }
.trails-map-info > div[hidden] {
    display: block !important;
    visibility: hidden;
    pointer-events: none;
    user-select: none;
}
@media (min-width: 860px) {
    .trails-map-info {
        position: absolute;
        top: 8%;
        right: 3.5%;
        width: 30%;
        max-width: 280px;
        margin: 0;
    }
}
.tm-info-num { font-size: 1.8rem; }
.trails-map-info p { font-size: 0.85rem; }
.tm-detail-name { font-size: 1.1rem; }

/* Per-trail labels — only visible while that trail is active */
.tm-trail-label {
    font-family: 'Caveat', 'Bradley Hand', cursive;
    font-size: 22px;
    font-weight: 700;
    text-anchor: middle;
    letter-spacing: 0.01em;
    pointer-events: none;
    user-select: none;
    opacity: 0;
    transition: opacity 160ms ease;
    /* cream halo so the name reads over terrain and trail lines */
    paint-order: stroke fill;
    stroke: #fbf7ef;
    stroke-width: 5px;
    stroke-linejoin: round;
}
.tm-trail:hover .tm-trail-label,
.tm-trail:focus-visible .tm-trail-label,
.trails-map-svg.tm-external .tm-trail.is-active .tm-trail-label { opacity: 1; }

/* Dim the static terrain labels while a trail is being read */
.trails-map-svg:hover .tm-labels,
.trails-map-svg.tm-external .tm-labels { opacity: 0.35; transition: opacity 160ms ease; }
.tm-labels { transition: opacity 160ms ease; }

@media (prefers-reduced-motion: reduce) {
    .tm-trail-label, .tm-labels { transition: none; }
}

/* Dim the drawn terrain (icons too, not just labels) while reading a trail */
.trails-map-svg:hover .tm-features,
.trails-map-svg.tm-external .tm-features { opacity: 0.4; }
.tm-features { transition: opacity 160ms ease; }
@media (prefers-reduced-motion: reduce) { .tm-features { transition: none; } }

/* ═══════════════════════════════════════════════════════
   STATIC PAGE CONTENT — vertical rhythm
   The global reset zeroes all margins; .post-content got them
   back but .page-body never did, which crushed headings/lists
   together on every static page.
   ═══════════════════════════════════════════════════════ */

.page-body {
    max-width: var(--content-max);
    font-size: 1.05rem;
    line-height: 1.8;
}
.page-body > article { max-width: 100%; }

.page-body h1,
.page-body h2,
.page-body h3,
.page-body h4,
.page-body h5,
.page-body h6 { line-height: 1.25; }

.page-body h1 {
    font-size: clamp(1.7rem, 4vw, 2.3rem);
    margin: 2.75rem 0 1rem;
}
.page-body h2 {
    font-size: clamp(1.35rem, 3vw, 1.8rem);
    color: var(--forest);
    margin: 2.5rem 0 0.9rem;
    padding-bottom: 0.45rem;
    border-bottom: 2px solid var(--cream-dark);
}
.page-body h3 {
    font-size: clamp(1.1rem, 2.4vw, 1.35rem);
    margin: 2rem 0 0.65rem;
}
.page-body h4 {
    font-size: 1.05rem;
    font-family: var(--sans);
    font-weight: 700;
    font-style: normal;
    letter-spacing: -0.01em;
    margin: 1.6rem 0 0.5rem;
}
.page-body h1:first-child,
.page-body h2:first-child,
.page-body h3:first-child { margin-top: 0; }

.page-body p { margin: 0 0 1.35rem; }
.page-body ul,
.page-body ol { margin: 0 0 1.5rem 1.5rem; }
.page-body li { margin-bottom: 0.45rem; line-height: 1.7; }
.page-body li > ul,
.page-body li > ol { margin-top: 0.45rem; margin-bottom: 0.5rem; }

.page-body figure { margin: 2rem 0; }
.page-body figcaption {
    font-family: var(--sans);
    font-size: 0.8rem;
    color: var(--text-light);
    text-align: center;
    margin-top: 0.55rem;
    font-style: italic;
}
.page-body hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2.5rem 0;
}
.page-body blockquote {
    border-left: 4px solid var(--peach);
    background: var(--cream-mid);
    margin: 2rem 0;
    padding: 1.1rem 1.4rem;
    border-radius: 0 var(--r) var(--r) 0;
    font-style: italic;
}
.page-body table { margin: 1.75rem 0; }

/* ── BUTTONS — text was inheriting the rust link colour on a
      peach background, so the label vanished into the button ── */
.page-body .wp-block-button { margin: 0.4rem 0.5rem 0.4rem 0; }
.page-body .wp-block-buttons { margin: 1.75rem 0; }

.page-body .wp-block-button__link,
.page-body .wp-element-button {
    background: var(--peach) !important;
    border-color: var(--peach) !important;
    color: #fff !important;
    text-decoration: none !important;
    font-family: var(--sans) !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    padding: 0.7rem 1.6rem !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    transition: all var(--ease) !important;
}
.page-body .wp-block-button__link:hover,
.page-body .wp-element-button:hover {
    background: var(--peach-dark) !important;
    border-color: var(--peach-dark) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(232,125,90,0.35) !important;
}
/* Outline variant keeps peach text on a transparent field */
.page-body .is-style-outline .wp-block-button__link,
.page-body .wp-block-button__link.is-style-outline {
    background: transparent !important;
    color: var(--peach-dark) !important;
    border: 2px solid var(--peach) !important;
}
.page-body .is-style-outline .wp-block-button__link:hover,
.page-body .wp-block-button__link.is-style-outline:hover {
    background: var(--peach) !important;
    color: #fff !important;
}

/* ── SPECTRA / UAGB BLOCKS ────────────────────────────── */
.page-body .wp-block-uagb-advanced-heading { margin: 2.25rem 0 1.25rem; }
.page-body .uagb-heading-text {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    line-height: 1.2;
    color: var(--text);
    margin: 0 0 0.6rem;
}
.page-body .uagb-desc-text {
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-mid);
    margin: 0;
}
.page-body .wp-block-uagb-container { margin: 2rem 0; }

/* Table of contents */
.page-body .wp-block-uagb-table-of-contents {
    background: var(--cream-mid);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1.25rem 1.5rem;
    margin: 2rem 0 2.75rem;
}
.page-body .uagb-toc__title {
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 0.85rem;
}
.page-body .uagb-toc__list-wrap ol,
.page-body .uagb-toc__list-wrap ul { margin: 0 0 0 1.15rem; }
.page-body .uagb-toc__list-wrap li { margin-bottom: 0.3rem; line-height: 1.55; }
.page-body .uagb-toc__list-wrap a {
    color: var(--forest);
    text-decoration: none;
    font-size: 0.92rem;
    transition: color var(--ease);
}
.page-body .uagb-toc__list-wrap a:hover { color: var(--peach-dark); }
/* Hide TOC rows generated from empty headings */
.page-body .uagb-toc__list-wrap li:not(:has(a)),
.page-body .uagb-toc__list-wrap li > a:empty { display: none; }

.page-body .wp-block-uagb-info-box {
    background: var(--cream-mid);
    border: 1px solid var(--border);
    border-left: 4px solid var(--peach);
    border-radius: 0 var(--r) var(--r) 0;
    padding: 1.35rem 1.5rem;
    margin: 2rem 0;
}

/* ═══════════════════════════════════════════════════════
   TRAILS MAP — size + mobile behaviour
   Was dominating the viewport on desktop and unusable on
   touch (hover-only interaction). Cap it, put the info card
   beside it rather than floating over it, and make the
   legend the primary control on small screens.
   ═══════════════════════════════════════════════════════ */

.trails-map-section .container { max-width: 1060px; }

.trails-map-wrap {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.15rem;
    align-items: center;
}
@media (min-width: 900px) {
    .trails-map-wrap { grid-template-columns: minmax(0, 1.65fr) minmax(210px, 0.85fr); gap: 1.75rem; }
}

/* Cap height so the map never dominates the screen */
.trails-map-figure { max-width: 100%; }
.trails-map-svg { max-height: 460px; width: 100%; height: auto; }
@media (min-width: 900px) { .trails-map-svg { max-height: 520px; } }

/* Info card sits beside the map again, not floating over it */
.trails-map-info {
    position: static;
    top: auto; right: auto;
    width: auto;
    max-width: none;
    margin: 0;
    box-shadow: none;
    background: rgba(251,247,239,0.9);
}

/* ── Mobile ───────────────────────────────────────────── */
@media (max-width: 700px) {
    /* Hover doesn't exist on touch — don't dim on "hover" */
    .trails-map-svg:hover .tm-line,
    .trails-map-svg:hover .tm-dot,
    .trails-map-svg:hover .tm-line-under { opacity: 1; }
    .trails-map-svg:hover .tm-labels,
    .trails-map-svg:hover .tm-features { opacity: 1; }

    /* Thicker strokes so trails stay legible when scaled down */
    .tm-line { stroke-width: 7; }
    .tm-line-under { stroke-width: 12; }
    .tm-dot { r: 7; }

    /* Drop the fine detail that turns to mush at small sizes */
    .tm-features { opacity: 0.5; }
    .tm-labels text { font-size: 26px; }
    .tm-compass { display: none; }
    .tm-trail-label { font-size: 30px; stroke-width: 7px; }

    .trails-map-svg { max-height: 340px; }
    .trails-map-info { padding: 1rem 1.1rem; }
    .tm-info-num { font-size: 1.5rem; }

    /* Legend becomes the primary way in */
    .trails-legend { grid-template-columns: 1fr 1fr; gap: 0.45rem; margin-top: 1.1rem; }
    .tm-legend-item { padding: 0.55rem 0.6rem; flex-wrap: wrap; }
    .tm-legend-name { font-size: 0.76rem; }
    .tm-legend-miles { font-size: 0.66rem; }
}

@media (max-width: 400px) {
    .trails-legend { grid-template-columns: 1fr; }
}
.tm-hint-touch { display: none; }
@media (hover: none), (max-width: 700px) {
    .tm-hint-desktop { display: none; }
    .tm-hint-touch { display: inline; }
}

/* ═══════════════════════════════════════════════════════
   CONTENT WIDTH SYSTEM
   Earlier I capped .page-body at a 720px reading measure,
   which also squeezed tables, galleries and alignfull blocks.
   Correct model: the container is wide, prose is centred at a
   readable measure, and wide things are allowed to break out.
   ═══════════════════════════════════════════════════════ */

.page-body {
    max-width: var(--site-max);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Prose sits at a readable measure, centred */
.page-content-wrap > *,
.page-body > article > * {
    max-width: 46rem;
    margin-left: auto;
    margin-right: auto;
}

/* Things that need room break out of the measure */
.page-content-wrap > .alignwide,
.page-content-wrap > .wp-block-table,
.page-content-wrap > figure.wp-block-table,
.page-content-wrap > .wp-block-gallery,
.page-content-wrap > .wp-block-uagb-container,
.page-content-wrap > .wp-block-columns,
.page-content-wrap > .wp-block-group,
.page-content-wrap > .wp-block-html {
    max-width: min(100%, 62rem);
}

.page-content-wrap > .alignfull,
.page-content-wrap > .wp-block-cover.alignfull {
    max-width: none;
    width: 100%;
}

/* Tables: full available width, scroll rather than crush */
.page-body .wp-block-table,
.post-content .wp-block-table { overflow-x: auto; }

/* LighterPack embed: prevent item rows from overflowing the widget box */
.page-content-wrap .wp-block-html,
.page-body .wp-block-html,
.post-content .wp-block-html { overflow-x: auto; }
.lpEmbed { max-width: 100%; overflow-x: auto; }
.lpEmbedBody { max-width: 100%; }

/* UAG hero overlay: Hayduke Trail page — increase contrast for white text legibility */
.uagb-block-fdcmigco .uagb-container__overlay,
.uagb-block-fdcmigco::before {
    opacity: 0.65 !important;
    background-color: rgba(0,0,0,0.65) !important;
}

/* Nav icon hover-wrapper: properly stack normal+hover imgs so they overlay not sit side-by-side */
.primary-nav .menu-image-hover-wrapper {
    position: relative;
    display: inline-block;
    vertical-align: middle;
}
.primary-nav .menu-image-hover-wrapper img.hovered-image {
    position: absolute;
    top: 0; left: 0;
    /* no width/height: render at natural pixel size (25×36) same as the base image,
       not 100% of the wrapper which is wider and causes the "fat icon" expansion */
    margin-left: 0 !important;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.primary-nav .menu-image-hover-wrapper img.menu-image {
    transition: opacity 0.2s ease;
}
.primary-nav .menu-item:hover .menu-image-hover-wrapper img.menu-image { opacity: 0; }
.primary-nav .menu-item:hover .menu-image-hover-wrapper img.hovered-image { opacity: 1; }

/* Instagram nav icon — hide the plugin PNGs, use clean SVG via ::before */
.primary-nav a[href*="instagram.com"] {
    font-size: 0;
    width: 2.2rem;
    padding: 0.35rem 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.primary-nav a[href*="instagram.com"] .menu-image-hover-wrapper { display: none; }
.primary-nav a[href*="instagram.com"]::before {
    content: '';
    width: 1.2rem;
    height: 1.2rem;
    display: block;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.75)' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='2' width='20' height='20' rx='5'/%3E%3Cpath d='M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z'/%3E%3Ccircle cx='17.5' cy='6.5' r='0.6' fill='rgba(255,255,255,0.75)' stroke='none'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.primary-nav a[href*="instagram.com"]:hover::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='2' width='20' height='20' rx='5'/%3E%3Cpath d='M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z'/%3E%3Ccircle cx='17.5' cy='6.5' r='0.6' fill='white' stroke='none'/%3E%3C/svg%3E");
}

.page-body .wp-block-table table,
.post-content .wp-block-table table {
    width: 100%;
    min-width: 34rem;
    border-collapse: collapse;
    font-family: var(--sans);
    font-size: 0.88rem;
    line-height: 1.5;
    background: var(--white);
}
.page-body .wp-block-table th,
.page-body .wp-block-table td,
.post-content .wp-block-table th,
.post-content .wp-block-table td {
    border: 1px solid var(--border);
    padding: 0.55rem 0.7rem;
    vertical-align: top;
    text-align: left;
}
.page-body .wp-block-table thead th,
.post-content .wp-block-table thead th {
    background: var(--forest);
    color: #fff;
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
}
/* First row = header row. Bold the full cell regardless of <strong> placement. */
.page-body .wp-block-table tbody tr:first-child td,
.post-content .wp-block-table tbody tr:first-child td {
    font-weight: 700;
    color: var(--forest);
    background: rgba(45, 74, 62, 0.04);
}
.page-body .wp-block-table tbody tr:first-child td strong,
.post-content .wp-block-table tbody tr:first-child td strong { color: inherit; font-weight: inherit; }
.page-body .wp-block-table tbody tr:nth-child(even),
.post-content .wp-block-table tbody tr:nth-child(even) { background: rgba(0,0,0,0.015); }

/* Single posts: same treatment, wider container so tables can breathe */
.post-wrap { max-width: var(--site-max); }
.post-wrap > article > *,
.post-content > * {
    max-width: 46rem;
    margin-left: auto;
    margin-right: auto;
}
.post-content > .wp-block-table,
.post-content > figure.wp-block-table,
.post-content > .alignwide,
.post-content > .wp-block-gallery,
.post-content > .wp-block-group,
.post-content > .wp-block-html,
.post-content > .wp-block-columns,
.post-content > .tp-compare-wrap { max-width: min(100%, 62rem); }
.post-content > .alignfull { max-width: none; width: 100%; }
.post-hero-img, .post-hero { max-width: none; }

/* Keep the post furniture aligned with the prose measure */
.post-meta-bar, .post-title, .series-nav-box, .related-section,
.tp-disclosure, .tp-cta, .tp-verdict {
    max-width: 46rem;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 780px) {
    .page-content-wrap > *,
    .page-body > article > *,
    .post-wrap > article > *,
    .post-content > * { max-width: 100%; }
    .page-body .wp-block-table table,
    .post-content .wp-block-table table { min-width: 28rem; font-size: 0.82rem; }
}

.trails-footnote {
    margin-top: 1.1rem;
    font-size: 0.87rem;
    line-height: 1.6;
    color: var(--text-mid);
    text-align: center;
}
.trails-footnote a { color: var(--peach-dark); font-weight: 600; }
.trails-footnote a:hover { color: var(--peach); }

/* The content wrapper must stay full width; only its children get the
   reading measure. Otherwise the wrapper caps everything inside it. */
.page-content-wrap { max-width: none !important; }
.page-body > article { max-width: none; }
