/* =========================================
   POST DETAIL PAGE — single-post.css
   Place in: /assets/css/single-post.css
   Enqueue via functions.php
   ========================================= */

/* ──────────────────────────────────────────
   CATEGORY PAGE-LEVEL THEME TOKENS
   Applied via [data-theme] on <main>.
   Overrides local CSS custom properties only.
   ──────────────────────────────────────────
   Palette:
     --theme-bg-light   : lightest tint
     --theme-primary    : dark ink
     --theme-surface    : page background
     --theme-gradient   : gradient (progress bar + decorative lines)
     --theme-mid        : mid-tone for borders/accents
────────────────────────────────────────── */

/* Default (wildlife / green) */
.trp-post-detail {
    --theme-bg-light:   #E3EAE6;
    --theme-primary:    #175C52;
    --theme-primary-rgb: 23, 92, 82;
    --theme-mid:        #2E9E87;
    --theme-surface:    #FAFAF7;
    --theme-gradient:   linear-gradient(90deg, #175C52 0%, #2E9E87 100%);
    --theme-hero-grad:  linear-gradient(135deg, #0F3D36 0%, #175C52 60%, #1A6B5F 100%);
}

/* ── Guns — warm amber / burnt-orange */
.trp-post-detail[data-theme="guns"] {
    
--theme-bg-light:   #4A2C06;        /* mid tobacco — replaces cool light grey */
--theme-primary:    #FDF6EB;        /* cream text — replaces near-black */
--theme-primary-rgb: 253, 246, 235;
--theme-mid:        #C8881A;        /* amber-mid — replaces dark grey */
--theme-surface:    #fef8ef;        /* main tobacco bg — replaces white */

/* Tobacco → deep brown → amber accent sweep */
--theme-gradient:
    linear-gradient(90deg, #3A2004 0%, #5C3508 55%, #F0A830 100%);

/* Deep tobacco hero gradient with amber glow */
--theme-hero-grad:
    linear-gradient(
  135deg,
  #1A0A02 0%,
  #2C1500 25%,
  #3A2004 50%,
  #7A4A10 75%,
  #F0A830 100%
);
}

/* ── Readings — cool blue */
.trp-post-detail[data-theme="readings"] {
  /* ── CORE ── */
 /*--theme-bg-light:    #F2EDE5;
  --theme-primary:     #7A4040;
  --theme-primary-rgb: 122, 64, 64;
  --theme-mid:         #A07060;
  --theme-surface:     #F7F3EE;
  --theme-gradient:    linear-gradient(90deg,
                         #7A4040 0%,
                         #C4A882 100%);
  --theme-hero-grad:   linear-gradient(135deg,
                         #8C4848 0%,
                         #7A4040 55%,
                         #4A2828 100%);*/
        --theme-bg-light: #F0EEE7;
--theme-primary: #253850;
--theme-primary-rgb: 37, 56, 80;
--theme-mid: #F0EEE7;
--theme-surface: #FFFDF5;
--theme-gradient: linear-gradient(90deg, #253850 0%, #F0EEE7 100%);
--theme-hero-grad: linear-gradient(135deg, #182840 0%, #253850 60%, #2E4A6A 100%);
}

/* ── Wildlife — forest green */
.trp-post-detail[data-theme="wildlife"] {
    --theme-bg-light:   #E3EAE6;
    --theme-primary:    #175C52;
    --theme-primary-rgb: 23, 92, 82;
    --theme-mid:        #2E9E87;
    --theme-surface:    #F5FAF8;
    --theme-gradient:   linear-gradient(90deg, #175C52 0%, #2E9E87 100%);
    --theme-hero-grad:  linear-gradient(135deg, #0A3328 0%, #175C52 60%, #1A6B5F 100%);
}


/* ──────────────────────────────────────────
   HERO / HEADER BAND
────────────────────────────────────────── */

.post-hero-band {
    background: var(--theme-hero-grad);
    padding: 25px var(--section-pad-x) 0;
    position: relative;
    overflow: visible;
}

/* Subtle noise texture overlay */
.post-hero-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

/* Decorative radial glow — subtle depth */
/*.post-hero-band::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--theme-gradient);
    z-index: 2;
}*/

/* ── Inner two-column grid ── */
.post-hero-inner {
    max-width: var(--container-max);
    padding: 36px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 56px;
    align-items: end;
    max-height: 290px;
}

.post-hero__left {
    padding-bottom: 35px;
}

.post-hero__right {
    position: relative;
    align-self: end;
    margin-bottom: -88px;
    z-index: 10;
}

/* ── Category tags ── */
.post-hero__category-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.post-hero__cat-tag {
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.95) !important;
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    backdrop-filter: blur(8px);
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

.post-hero__cat-tag:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff !important;
}

/* ── Title ── */
.post-hero__title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.1rem);
    font-weight: 800;
    line-height: 1.12;
    color: #FFFFFF;
    max-width: 600px;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.post-hero__title em {
    font-style: italic;
    color: rgba(255, 255, 255, 0.75);
}

/* ── Subtitle ── */
.post-hero__subtitle {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.72);
    max-width: 520px;
    line-height: 1.75;
    margin-bottom: 36px;
}

/* ── Meta row ── */
.post-hero__meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.post-hero__meta-author,
.post-hero__meta-date,
.post-hero__meta-read {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-sans);
    font-size: 0.76rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.01em;
}

.post-hero__meta svg {
    color: rgba(255, 255, 255, 0.45);
    flex-shrink: 0;
}

.post-hero__meta-sep {
    color: rgba(255, 255, 255, 0.25);
    font-size: 1rem;
}


/* ──────────────────────────────────────────
   HERO MEDIA CARD
────────────────────────────────────────── */

.post-hero-media-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.04),
        0 8px 24px rgba(0, 0, 0, 0.10),
        0 32px 80px rgba(0, 0, 0, 0.22),
        0 0 0 1px rgba(255, 255, 255, 0.08);
    position: relative;
    animation: cardFloat 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.2s;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Themed top bar */
/*.post-hero-media-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--theme-gradient);
    z-index: 20;
}
*/
.post-hero-media-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.06),
        0 16px 40px rgba(0, 0, 0, 0.14),
        0 48px 96px rgba(0, 0, 0, 0.26),
        0 0 0 1px rgba(255, 255, 255, 0.08);
}

.post-hero-media-card figure {
    margin: 0;
}

.post-hero-media-card .post-media-single__img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.post-hero-media-card .post-media-single__video-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.post-hero-media-card .post-media-single__video-wrap iframe,
.post-hero-media-card .post-media-single__video-wrap video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.post-hero-media-card .post-media__caption {
    font-family: var(--font-sans);
    font-size: 0.73rem;
    color: var(--color-fg-muted);
    text-align: center;
    padding: 10px 16px;
    border-top: 1px solid var(--color-fg-subtle);
    font-style: italic;
    background: var(--theme-surface);
    line-height: 1.5;
}


/* ──────────────────────────────────────────
   HERO SLIDER
────────────────────────────────────────── */

.post-hero-slider {
    position: relative;
    overflow: hidden;
    border-radius: 0;
}

.post-hero-slider__track {
    display: flex;
    transition: transform 0.48s cubic-bezier(0.77, 0, 0.18, 1);
    will-change: transform;
}

.post-hero-slider__slide {
    flex: 0 0 100%;
    min-width: 100%;
}

.post-hero-slider__figure {
    margin: 0;
}

.post-hero-slider__img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.post-hero-slider__video-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.post-hero-slider__video-wrap iframe,
.post-hero-slider__video-wrap video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.post-hero-slider .post-media__caption {
    font-family: var(--font-sans);
    font-size: 0.73rem;
    color: var(--color-fg-muted);
    text-align: center;
    padding: 10px 16px;
    border-top: 1px solid var(--color-fg-subtle);
    font-style: italic;
    background: var(--theme-surface);
}

/* ── Prev / Next buttons — themed ── */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 15;
    color: var(--color-fg);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.16);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    padding: 0;
}

.slider-btn:hover {
    background-color: var(--theme-primary);
    color: #fff;
    border-color: var(--theme-primary);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 20px rgba(var(--theme-primary-rgb), 0.35);
}

.slider-btn--prev { left: 12px; }
.slider-btn--next { right: 12px; }

/* ── Dots ── */
.slider-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 15;
}

.slider-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    border: none;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.25s ease, width 0.25s ease;
    padding: 0;
}

.slider-dot--active {
    background: #fff;
    transform: scale(1.4);
    width: 18px;
    border-radius: 3px;
}

/* ── Counter ── */
.slider-counter {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    z-index: 15;
}

@keyframes cardFloat {
    from { opacity: 0; transform: translateY(32px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* ──────────────────────────────────────────
   MAIN CONTENT + SIDEBAR LAYOUT
────────────────────────────────────────── */

.post-content-section {
    background-color: var(--theme-surface);
    padding: 80px var(--section-pad-x) 104px;
    position: relative;
}

/* Subtle top separator line — themed */
.post-content-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(var(--theme-primary-rgb), 0.15) 30%, rgba(var(--theme-primary-rgb), 0.15) 70%, transparent 100%);
}

.post-content-section--has-hero-media {
    padding-top: 128px;
}

.post-content-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 72px;
    align-items: start;
}

/* ── Left: Body Content ── */
.post-content-main {
    min-width: 0;
}

.post-body-content {
    font-family: var(--font-sans);
    font-size: 1.0rem;
    font-weight: 300;
    padding: 36px;
    line-height: 1.9;
    color: rgba(44, 44, 42, 0.88);
}

.post-body-content h2 {
    font-family: var(--font-serif);
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--color-fg);
    margin: 56px 0 18px;
    line-height: 1.22;
    letter-spacing: -0.01em;
}

.post-body-content h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-fg);
    margin: 40px 0 14px;
    letter-spacing: -0.005em;
}

/* First paragraph lead-in */
.post-body-content p{
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.8;
    color: var(--color-fg);
	margin-bottom: 26px;
}

/* Body links — themed */
.post-body-content a {
    color: var(--theme-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: opacity 0.2s ease;
}

.post-body-content a:hover {
    opacity: 0.7;
}

/* Blockquote — themed */
.post-body-content blockquote {
    border-left: 3px solid var(--theme-primary);
    background: var(--theme-bg-light);
    margin: 40px 0;
    padding: 22px 28px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--color-fg-muted);
    font-size: 1.05rem;
    line-height: 1.75;
    position: relative;
}

.post-body-content blockquote::before {
    content: '\201C';
    font-family: var(--font-serif);
    font-size: 3rem;
    color: var(--theme-primary);
    opacity: 0.25;
    position: absolute;
    top: -8px;
    left: 16px;
    line-height: 1;
}

.post-body-content ul,
.post-body-content ol {
    padding-left: 26px;
    margin-bottom: 26px;
}

.post-body-content li {
    margin-bottom: 10px;
    color: rgba(44, 44, 42, 0.85);
    padding-left: 4px;
}

.post-body-content ul li::marker {
    color: var(--theme-primary);
}

.post-body-content ol li::marker {
    color: var(--theme-primary);
    font-weight: 600;
}

.post-body-content img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 36px 0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
}

.post-body-content hr {
    border: none;
    border-top: 1px solid var(--color-fg-subtle);
    margin: 56px 0;
    position: relative;
}

.post-body-content hr::before {
    content: '◆';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.5rem;
    color: var(--theme-primary);
    background: var(--theme-surface);
    padding: 0 12px;
    opacity: 0.5;
}

/* Author Card — themed */
.post-author-card {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    margin-top: 72px;
    padding: 30px 34px;
    background: var(--theme-bg-light);
    border-radius: var(--radius-md);
    border: 1px solid rgba(var(--theme-primary-rgb), 0.15);
    position: relative;
    overflow: hidden;
}

.post-author-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px;
    height: 100%;
    background: var(--theme-gradient);
}

.post-author-card__avatar img,
.post-author-card__avatar .avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(var(--theme-primary-rgb), 0.25);
    flex-shrink: 0;
}

.post-author-card__info .eyebrow {
    display: block;
    margin-bottom: 6px;
}

.post-author-card__name {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--theme-primary);
    margin-bottom: 8px;
}

.post-author-card__bio {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 300;
    line-height: 1.65;
    color: var(--color-fg-muted);
    margin: 0;
}


/* ──────────────────────────────────────────
   SIDEBAR
────────────────────────────────────────── */

.post-sidebar {
    display: flex;
    flex-direction: column;
    gap: 28px;
    position: sticky;
    top: 100px;
}

.sidebar-block {
    background: var(--color-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-fg-subtle);
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.sidebar-block:hover {
    box-shadow: 0 6px 32px rgba(0, 0, 0, 0.09);
    transform: translateY(-2px);
}

/* Themed top bar for both sidebar blocks */
.sidebar-block--tags::before,
.sidebar-block--categories::before {
    content: '';
    display: block;
    height: 3px;
    background: var(--theme-gradient);
}

.sidebar-block__header {
    padding: 22px 24px 16px;
    border-bottom: 1px solid var(--color-fg-subtle);
    background: var(--theme-surface);
}

.sidebar-block__header .eyebrow {
    display: block;
    margin-bottom: 5px;
}

.sidebar-block__title {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--color-fg);
    margin: 0;
}

/* Tags grid — themed */
.sidebar-tags-grid {
    padding: 18px 24px 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sidebar-tag {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.71rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--theme-primary);
    background: var(--theme-bg-light);
    border: 1px solid rgba(var(--theme-primary-rgb), 0.2);
    border-radius: var(--radius-pill);
    padding: 5px 13px;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.sidebar-tag:hover {
    background-color: var(--theme-primary);
    color: #fff;
    border-color: var(--theme-primary);
    transform: translateY(-1px);
}

/* Categories list */
.sidebar-cats-list {
    list-style: none;
    padding: 6px 0;
    margin: 0;
}

.sidebar-cat-item {
    border-bottom: 1px solid var(--color-fg-subtle);
}

.sidebar-cat-item:last-child {
    border-bottom: none;
}

.sidebar-cat-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 22px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.sidebar-cat-link:hover {
    background-color: var(--theme-bg-light);
}

.sidebar-cat-link:hover .sidebar-cat-link__arrow {
    transform: translateX(3px);
    color: var(--theme-primary);
}

.sidebar-cat-link__text {
    flex: 1;
    min-width: 0;
}

.sidebar-cat-link__name {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-fg);
    margin-bottom: 2px;
    transition: color 0.2s ease;
}

.sidebar-cat-link:hover .sidebar-cat-link__name {
    color: var(--theme-primary);
}

.sidebar-cat-link__desc {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.71rem;
    font-weight: 300;
    color: var(--color-fg-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-cat-link__arrow {
    color: var(--color-fg-muted);
    flex-shrink: 0;
    transition: transform 0.2s ease, color 0.2s ease;
}


/* ──────────────────────────────────────────
   CATEGORY COLOUR TOKENS (sidebar per-cat)
────────────────────────────────────────── */

.sidebar-cat-item--guns {
    --cat-bg:     #FAEEDA;
    --cat-text:   #854F0B;
    --cat-border: rgba(133, 79, 11, 0.22);
    --cat-dot:    #854F0B;
}

.sidebar-cat-item--readings {
    --cat-bg:     #E6F1FB;
    --cat-text:   #185FA5;
    --cat-border: rgba(24, 95, 165, 0.22);
    --cat-dot:    #185FA5;
}

.sidebar-cat-item--wildlife {
    --cat-bg:     #E3EAE6;
    --cat-text:   #175C52;
    --cat-border: rgba(23, 92, 82, 0.22);
    --cat-dot:    #175C52;
}

/* Per-category dot colours */
.sidebar-cat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--color-fg-subtle);
    transition: transform 0.2s ease;
}

.sidebar-cat-item--guns     .sidebar-cat-dot { background: #854F0B; }
.sidebar-cat-item--readings .sidebar-cat-dot { background: #185FA5; }
.sidebar-cat-item--wildlife .sidebar-cat-dot { background: #175C52; }

.sidebar-cat-link:hover .sidebar-cat-dot {
    transform: scale(1.3);
}

/* Per-category hover + active states */
.sidebar-cat-item--guns .sidebar-cat-link:hover,
.sidebar-cat-item--readings .sidebar-cat-link:hover,
.sidebar-cat-item--wildlife .sidebar-cat-link:hover {
    background-color: var(--cat-bg, var(--theme-bg-light));
}

.sidebar-cat-item--guns .sidebar-cat-link:hover .sidebar-cat-link__name,
.sidebar-cat-item--readings .sidebar-cat-link:hover .sidebar-cat-link__name,
.sidebar-cat-item--wildlife .sidebar-cat-link:hover .sidebar-cat-link__name {
    color: var(--cat-text, var(--theme-primary));
}

.sidebar-cat-item--guns .sidebar-cat-link:hover .sidebar-cat-link__arrow,
.sidebar-cat-item--readings .sidebar-cat-link:hover .sidebar-cat-link__arrow,
.sidebar-cat-item--wildlife .sidebar-cat-link:hover .sidebar-cat-link__arrow {
    color: var(--cat-text, var(--theme-primary));
}

/* Count badge */
.sidebar-cat-link__count {
    font-family: var(--font-sans);
    font-size: 0.67rem;
    font-weight: 500;
    color: var(--color-fg-muted);
    background: var(--color-bg-alt);
    border: 1px solid var(--color-fg-subtle);
    border-radius: var(--radius-pill);
    padding: 2px 9px;
    flex-shrink: 0;
    min-width: 28px;
    text-align: center;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Per-category count badge on hover */
.sidebar-cat-item--guns .sidebar-cat-link:hover .sidebar-cat-link__count,
.sidebar-cat-item--readings .sidebar-cat-link:hover .sidebar-cat-link__count,
.sidebar-cat-item--wildlife .sidebar-cat-link:hover .sidebar-cat-link__count {
    background-color: var(--cat-bg);
    color: var(--cat-text);
    border-color: var(--cat-border);
}


/* ──────────────────────────────────────────
   ACTIVE / CURRENT STATES — themed
────────────────────────────────────────── */

.sidebar-cat-item--active .sidebar-cat-link {
    background-color: var(--theme-bg-light);
}

.sidebar-cat-item--active .sidebar-cat-link__name {
    color: var(--theme-primary);
    font-weight: 600;
}

.sidebar-cat-item--active .sidebar-cat-link__count {
    background-color: var(--theme-primary);
    color: #fff;
    border-color: var(--theme-primary);
}

.sidebar-cat-item--active .sidebar-cat-link__arrow {
    color: var(--theme-primary);
    transform: translateX(2px);
}

/* Per-category active state */
.sidebar-cat-item--guns.sidebar-cat-item--active .sidebar-cat-link {
    background-color: #FAEEDA;
}
.sidebar-cat-item--guns.sidebar-cat-item--active .sidebar-cat-link__name { color: #854F0B; }
.sidebar-cat-item--guns.sidebar-cat-item--active .sidebar-cat-link__count {
    background-color: #854F0B; color: #fff; border-color: #854F0B;
}
.sidebar-cat-item--guns.sidebar-cat-item--active .sidebar-cat-link__arrow { color: #854F0B; }

.sidebar-cat-item--readings.sidebar-cat-item--active .sidebar-cat-link {
    background-color: #E6F1FB;
}
.sidebar-cat-item--readings.sidebar-cat-item--active .sidebar-cat-link__name { color: #185FA5; }
.sidebar-cat-item--readings.sidebar-cat-item--active .sidebar-cat-link__count {
    background-color: #185FA5; color: #fff; border-color: #185FA5;
}
.sidebar-cat-item--readings.sidebar-cat-item--active .sidebar-cat-link__arrow { color: #185FA5; }

.sidebar-cat-item--wildlife.sidebar-cat-item--active .sidebar-cat-link {
    background-color: #E3EAE6;
}
.sidebar-cat-item--wildlife.sidebar-cat-item--active .sidebar-cat-link__name { color: #175C52; }
.sidebar-cat-item--wildlife.sidebar-cat-item--active .sidebar-cat-link__count {
    background-color: #175C52; color: #fff; border-color: #175C52;
}
.sidebar-cat-item--wildlife.sidebar-cat-item--active .sidebar-cat-link__arrow { color: #175C52; }

/* Current badge */
.sidebar-cat-link__current-badge {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--theme-primary);
    background: var(--theme-bg-light);
    border: 1px solid rgba(var(--theme-primary-rgb), 0.22);
    border-radius: var(--radius-pill);
    padding: 1px 7px;
    margin-left: 7px;
    vertical-align: middle;
    line-height: 1.6;
}


/* ──────────────────────────────────────────
   RESPONSIVE
────────────────────────────────────────── */

@media (max-width: 1100px) {
    .post-hero-inner {
        grid-template-columns: 1fr 360px;
        gap: 36px;
        max-height: none; /* lift the 290px cap so card isn't clipped */
        align-items: end;
    }
 
    .post-hero__right {
        margin-bottom: -60px; /* reduce the overlap so it doesn't go too far */
    }
 
    .post-content-section--has-hero-media {
        padding-top: 96px; /* compensate for the smaller overlap */
    }
 
    .post-content-inner {
        grid-template-columns: 1fr 300px;
        gap: 48px;
    }
}

@media (max-width: 900px) {
    /* Hero band — allow full height */
    .post-hero-band {
        padding: 40px 24px 0;
        overflow: visible;
    }
 
    /* Hero grid → single column */
    .post-hero-inner {
        grid-template-columns: 1fr;
        gap: 28px;
        max-height: none;       /* remove fixed height restriction */
        align-items: stretch;
        padding: 28px 20px 0;
    }
 
    /* Text block — remove bottom padding that was spacing for the card */
    .post-hero__left {
        padding-bottom: 0;
    }
 
    /* Media card — controlled pop-out: card dips below hero band */
    .post-hero__right {
        position: relative;
        align-self: auto;
        margin-bottom: -48px;   /* pop-out: card floats 48px below the hero band */
        z-index: 10;
        padding-bottom: 0;
    }
 
    /* Ensure hero band doesn't clip the popped card */
    .post-hero-band {
        overflow: visible;
    }
 
    /* Content section — padding-top must absorb the pop-out offset */
    .post-content-section {
        padding: 40px 24px 72px;
    }
 
    .post-content-section--has-hero-media {
        padding-top: 80px;      /* 48px pop-out + ~32px breathing room */
    }
 
    /* Content layout → single column */
    .post-content-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
 
    /* Sidebar: un-stick, let it flow naturally */
    .post-sidebar {
        position: static;
        top: auto;
    }
 
    /* Hero images — slightly shorter on tablet */
    .post-hero-slider__img,
    .post-hero-media-card .post-media-single__img {
        height: 260px;
        object-fit: cover;
    }
 
    /* Keep media card rounded and properly shadowed */
    .post-hero-media-card {
        border-radius: 12px;
        margin: 0 0 0 0;
    }
 
    /* Disable the float animation that can misplace the card on mobile */
    .post-hero-media-card {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 600px) {
    .post-hero-band {
        padding: 32px 16px 0;
    }
 
    /* Tighter pop-out on small phones */
    .post-hero__right {
        margin-bottom: -36px;
    }
 
    .post-hero-inner {
        padding: 20px 16px 0;
        gap: 20px;
    }
 
    .post-hero__title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: 14px;
    }
 
    .post-hero__subtitle {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
 
    .post-hero__meta {
        gap: 8px;
    }
 
    /* Full-bleed image on small screens */
    .post-hero-slider__img,
    .post-hero-media-card .post-media-single__img {
        height: 210px;
    }
 
    .post-content-section {
        padding: 32px 16px 56px;
    }
 
    .post-content-section--has-hero-media {
        padding-top: 68px;      /* 36px pop-out + 32px breathing room */
    }
 
    .post-body-content {
        padding: 20px 0;
        font-size: 0.95rem;
    }
 
    /* Author card — stack vertically */
    .post-author-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 24px 16px;
        gap: 16px;
    }
 
    .post-author-card::before {
        width: 100%;
        height: 3px;
        top: 0;
        left: 0;
    }
 
    /* Slider buttons smaller */
    .slider-btn {
        width: 32px;
        height: 32px;
    }
 
    /* Tags wrap cleanly */
    .post-hero__category-row {
        margin-bottom: 16px;
    }
 
    /* Sidebar blocks full-width readable */
    .sidebar-block {
        border-radius: 10px;
    }
 
    .sidebar-tags-grid {
        padding: 14px 16px 18px;
    }
 
    .sidebar-cat-link {
        padding: 12px 16px;
    }
}

@media (max-width: 380px) {
    .post-hero__title {
        font-size: 1.4rem;
    }
 
    .post-hero-slider__img,
    .post-hero-media-card .post-media-single__img {
        height: 185px;
    }
 
    .post-body-content {
        font-size: 0.9rem;
    }
}