/*
Theme Name: Tallahassee Reports
Theme URI: https://tallahasseereports.com
Description: Custom child theme for Tallahassee Reports — Local News, Community Updates, & Insights. Built on Astra.
Author: Capital Data Studio
Author URI: https://capitaldatastudio.com
Template: astra
Version: 1.7.5
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tallahassee-reports
*/

/* ==========================================================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ========================================================================== */

:root {
    /* Brand Colors - Richer palette */
    --tr-primary: #003547;
    --tr-primary-dark: #0d4a5f;
    --tr-primary-light: #2a7a99;
    --tr-primary-subtle: #e8f4f8;
    --tr-accent: #c9302c;
    --tr-accent-hover: #a82824;
    --tr-accent-light: #fdf2f2;
    
    /* Secondary accent for variety */
    --tr-gold: #d4a959;
    --tr-gold-light: #faf6ed;
    
    /* Neutrals - Warmer tones */
    --tr-text-primary: #1a1a1a;
    --tr-text-secondary: #4a4a4a;
    --tr-text-muted: #6b6b6b;
    --tr-border: #d4d4d4;
    --tr-border-light: #e8e8e8;
    --tr-bg-light: #f5f5f3;
    --tr-bg-white: #ffffff;
    --tr-bg-dark: #1a1a1a;
    
    /* 
     * Typography - Controlled by Astra Customizer
     * Go to: Customizer > Global > Typography
     * Fonts are NOT loaded by this theme - use Astra's font settings
     */
    
    /* Spacing Scale */
    --tr-space-xs: 0.25rem;
    --tr-space-sm: 0.5rem;
    --tr-space-md: 1rem;
    --tr-space-lg: 1.5rem;
    --tr-space-xl: 2rem;
    --tr-space-2xl: 3rem;
    --tr-space-3xl: 4rem;
    
    /* Layout - Allow Astra Customizer to control width */
    /* --tr-max-width is used as fallback, but Astra's container settings take precedence */
    --tr-max-width: 1300px;
    --tr-sidebar-width: 320px;
    
    /* Shadows - More depth */
    --tr-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --tr-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --tr-shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --tr-shadow-hover: 0 8px 25px rgba(26, 95, 122, 0.15);
    
    /* Transitions */
    --tr-transition-fast: 0.15s ease;
    --tr-transition-normal: 0.3s ease;
    --tr-transition-slow: 0.5s ease;
    
    /* Border Radius */
    --tr-radius-sm: 4px;
    --tr-radius-md: 8px;
    --tr-radius-lg: 12px;
}


/* ==========================================================================
   BASE STYLES & RESETS
   ========================================================================== */

/* 
 * GLOBAL: Remove all focus outlines/boxes on links
 * This applies to ALL links in ALL states
 */
a,
a:link,
a:visited,
a:hover,
a:active,
a:focus,
a:focus-visible,
button:focus,
button:focus-visible,
input:focus,
input:focus-visible,
[tabindex]:focus {
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

/* Remove Firefox's dotted outline */
a::-moz-focus-inner,
button::-moz-focus-inner {
    border: 0 !important;
}

body {
    /* Let Astra Customizer control fonts via Global > Typography */
    color: var(--tr-text-primary);
    line-height: 1.65;
    background-color: var(--tr-bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 
 * HEADINGS: Controlled by Astra Customizer
 * Go to: Customizer > Global > Typography > Headings
 * We do NOT set font-family here - let Astra handle it completely
 */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    color: var(--tr-text-primary);
}

a {
    color: var(--tr-primary);
    text-decoration: none;
    transition: color var(--tr-transition-fast);
}

a:hover {
    color: var(--tr-primary-dark);
}

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


/* ==========================================================================
   UTILITY BAR (Above Header)
   ========================================================================== */

/* ==========================================================================
   UTILITY BAR — deprecated v1.7.3
   Header is now managed via Astra Header Builder.
   These rules are retained only for any sites still using the old utility-bar
   template part; they have no effect when the bar is not rendered.
   ========================================================================== */

/* Weather widget — place via [tr_weather] shortcode in Astra HTML header element.
   Colors are driven by CSS variables set inline from the Customizer.
   Default color is dark (#1a1a1a) so it's visible on Astra's default light header.
   Change via Appearance → Customize → Weather Widget → Temperature text color. */
.tr-weather {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--tr-weather-color, #1a1a1a);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: color 0.15s ease;
    white-space: nowrap;
}

.tr-weather:hover {
    color: var(--tr-weather-color, #1a1a1a);
    filter: brightness(0.7);
    text-decoration: none;
}

.tr-weather__icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--tr-weather-icon-color, #f59e0b);
}

.tr-weather__temp {
    line-height: 1;
    color: var(--tr-weather-color, #1a1a1a);
}


/* ==========================================================================
   HEADER ENHANCEMENTS
   ========================================================================== */

.ast-primary-header-bar {
    border-bottom: none !important;
    box-shadow: var(--tr-shadow-sm);
}

/* Add accent line under header */
.ast-primary-header-bar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--tr-primary) 0%, var(--tr-primary-light) 50%, var(--tr-accent) 100%);
}

.site-title {
    font-size: 2rem;
    font-weight: 700;
}

.site-title a {
    color: var(--tr-primary) !important;
    transition: color var(--tr-transition-fast);
}

.site-title a:hover {
    color: var(--tr-primary-dark) !important;
}

/* Header Buttons */
.tr-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--tr-space-sm);
    padding: 10px 20px;
    border-radius: var(--tr-radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--tr-transition-fast);
    cursor: pointer;
    border: none;
    text-decoration: none;
    letter-spacing: 0.02em;
}

.tr-btn--primary {
    background: linear-gradient(135deg, var(--tr-accent) 0%, var(--tr-accent-hover) 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(201, 48, 44, 0.3);
}

.tr-btn--primary:hover {
    background: linear-gradient(135deg, var(--tr-accent-hover) 0%, #8a1f1c 100%);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(201, 48, 44, 0.4);
}

.tr-btn--outline {
    background-color: transparent;
    border: 2px solid var(--tr-primary);
    color: var(--tr-primary);
}

.tr-btn--outline:hover {
    background-color: var(--tr-primary);
    color: #ffffff;
    transform: translateY(-1px);
}


/* ==========================================================================
   NAVIGATION ENHANCEMENTS
   ========================================================================== */

.ast-nav-menu .menu-item > a {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--tr-text-secondary);
    padding: 12px 16px !important;
    position: relative;
}

.ast-nav-menu .menu-item > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: var(--tr-primary);
    transition: all var(--tr-transition-fast);
    transform: translateX(-50%);
}

.ast-nav-menu .menu-item > a:hover::after,
.ast-nav-menu .menu-item.current-menu-item > a::after {
    width: calc(100% - 32px);
}

.ast-nav-menu .menu-item > a:hover,
.ast-nav-menu .menu-item.current-menu-item > a {
    color: var(--tr-primary);
}


/* ==========================================================================
   HOMEPAGE LAYOUT
   ========================================================================== */

.tr-homepage {
    /* Use Astra's container width from Customizer > Global > Container */
    max-width: var(--ast-container-default-xlg-width, var(--tr-max-width));
    margin: 0 auto;
    padding: var(--tr-space-xl) var(--tr-space-md);
    display: grid;
    grid-template-columns: 1fr var(--tr-sidebar-width);
    gap: var(--tr-space-2xl);
}

.tr-homepage__main {
    min-width: 0;
}

.tr-homepage__sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--tr-space-xl);
}

@media (max-width: 1024px) {
    .tr-homepage {
        grid-template-columns: 1fr;
    }
    
    .tr-homepage__sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--tr-space-lg);
    }
}

@media (max-width: 600px) {
    .tr-homepage__sidebar {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================================
   SECTION HEADERS - More distinctive
   ========================================================================== */

.tr-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--tr-space-lg);
    padding-bottom: var(--tr-space-sm);
    border-bottom: 3px solid var(--tr-text-primary);
    position: relative;
}

.tr-section-header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--tr-accent);
}

.tr-section-header__title {
    font-size: 1.35rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--tr-space-sm);
}

.tr-section-header__link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--tr-primary);
    display: flex;
    align-items: center;
    gap: var(--tr-space-xs);
    padding: 6px 12px;
    background-color: var(--tr-primary-subtle);
    border-radius: var(--tr-radius-sm);
    transition: all var(--tr-transition-fast);
}

.tr-section-header__link:hover {
    background-color: var(--tr-primary);
    color: #ffffff;
    text-decoration: none;
}


/* ==========================================================================
   CATEGORY TAGS - More polished
   ========================================================================== */

.tr-category-tag {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, var(--tr-primary) 0%, var(--tr-primary-dark) 100%);
    color: #ffffff;
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: var(--tr-radius-sm);
    margin-bottom: 0;
    box-shadow: 0 2px 4px rgba(26, 95, 122, 0.2);
    white-space: nowrap;
}

/* Badge wrapper — used on all cards/lists to keep badges side by side */
.tr-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: var(--tr-space-sm);
}

/* Legacy: single badge not inside a wrapper still gets bottom margin */
.tr-article-card__content > .tr-category-tag,
.tr-article-list-item__content > .tr-category-tag,
.tr-hero__content > .tr-category-tag,
.tr-single-post__header > .tr-category-tag {
    margin-bottom: var(--tr-space-sm);
}
.tr-category-tag--accent {
    background: linear-gradient(135deg, var(--tr-accent) 0%, var(--tr-accent-hover) 100%);
    box-shadow: 0 2px 4px rgba(201, 48, 44, 0.2);
}

.tr-category-tag--exclusive {
    background: linear-gradient(135deg, var(--tr-gold) 0%, #c49a4a 100%);
    box-shadow: 0 2px 4px rgba(212, 169, 89, 0.3);
}

/* Force white text on the tag whether it's an <a> itself or contains one.
   Using !important here specifically because Astra's global link color
   rule wins the specificity battle otherwise. */
a.tr-category-tag,
a.tr-category-tag:link,
a.tr-category-tag:visited,
a.tr-category-tag:hover,
a.tr-category-tag:active,
.tr-category-tag a,
.tr-category-tag a:link,
.tr-category-tag a:visited,
.tr-category-tag a:hover,
.tr-category-tag a:active {
    color: #ffffff !important;
    text-decoration: none !important;
}


/* ==========================================================================
   HERO SECTION - FIXED & ENHANCED
   ========================================================================== */

.tr-hero {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--tr-space-xl);
    margin-bottom: var(--tr-space-2xl);
    background-color: var(--tr-bg-white);
    border-radius: var(--tr-radius-lg);
    padding: var(--tr-space-lg);
    box-shadow: var(--tr-shadow-md);
}

@media (max-width: 900px) {
    .tr-hero {
        grid-template-columns: 1fr;
        gap: var(--tr-space-lg);
    }
}

/* Hero Main (Featured Post) - FIXED */
.tr-hero__main {
    position: relative;
    display: flex;
    flex-direction: column;
}

.tr-hero__image {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: var(--tr-radius-md);
    margin-bottom: var(--tr-space-md);
    position: relative;
    flex-shrink: 0;
}

.tr-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--tr-transition-slow);
}

.tr-hero__main:hover .tr-hero__image img {
    transform: scale(1.03);
}

/* Gradient overlay on hero image */
.tr-hero__image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--tr-transition-normal);
}

.tr-hero__main:hover .tr-hero__image::after {
    opacity: 1;
}

.tr-hero__content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.tr-hero__title {
    font-size: 1.65rem;
    line-height: 1.3;
    margin-bottom: var(--tr-space-sm);
}

.tr-hero__title a {
    color: var(--tr-text-primary);
    background-image: linear-gradient(var(--tr-primary), var(--tr-primary));
    background-size: 0% 2px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size var(--tr-transition-normal), color var(--tr-transition-fast);
}

.tr-hero__title a:hover {
    color: var(--tr-primary);
    background-size: 100% 2px;
}

.tr-hero__excerpt {
    color: var(--tr-text-secondary);
    margin-bottom: var(--tr-space-sm);
    line-height: 1.6;
    flex-grow: 1;
}

.tr-hero__meta {
    font-size: 0.85rem;
    color: var(--tr-text-muted);
    padding-top: var(--tr-space-sm);
    border-top: 1px solid var(--tr-border-light);
}

.tr-hero__meta a {
    color: var(--tr-primary);
    font-weight: 600;
}

/* Hero Secondary (Stacked Posts) - FIXED */
.tr-hero__secondary {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-left: 1px solid var(--tr-border-light);
    padding-left: var(--tr-space-lg);
}

@media (max-width: 900px) {
    .tr-hero__secondary {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--tr-border-light);
        padding-top: var(--tr-space-lg);
    }
}

.tr-hero__secondary-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: var(--tr-space-md);
    padding: var(--tr-space-md) 0;
    border-bottom: 1px solid var(--tr-border-light);
    align-items: flex-start;
}

.tr-hero__secondary-item:first-child {
    padding-top: 0;
}

.tr-hero__secondary-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.tr-hero__secondary-image {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--tr-radius-sm);
    flex-shrink: 0;
}

.tr-hero__secondary-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--tr-transition-normal);
}

.tr-hero__secondary-item:hover .tr-hero__secondary-image img {
    transform: scale(1.08);
}

.tr-hero__secondary-content {
    min-width: 0;
}

.tr-hero__secondary-title {
    font-size: 1.05rem;
    line-height: 1.4;
    margin-bottom: var(--tr-space-xs);
    margin-top: 0;
}

.tr-hero__secondary-title a {
    color: var(--tr-text-primary);
}

.tr-hero__secondary-title a:hover {
    color: var(--tr-primary);
}

.tr-hero__secondary-meta {
    font-size: 0.75rem;
    color: var(--tr-text-muted);
}


/* ==========================================================================
   DAILY BRIEFS BANNER - Enhanced
   ========================================================================== */

.tr-briefs-banner {
    background: linear-gradient(135deg, var(--tr-bg-white) 0%, var(--tr-primary-subtle) 100%);
    border-left: 5px solid var(--tr-accent);
    padding: var(--tr-space-lg) var(--tr-space-xl);
    margin-bottom: var(--tr-space-2xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0 var(--tr-radius-md) var(--tr-radius-md) 0;
    box-shadow: var(--tr-shadow-md);
    gap: var(--tr-space-md);
    position: relative;
    overflow: hidden;
}

/* Decorative element */
.tr-briefs-banner::before {
    content: '📰';
    position: absolute;
    right: 20%;
    top: 50%;
    transform: translateY(-50%);
    font-size: 4rem;
    opacity: 0.08;
    pointer-events: none;
}

.tr-briefs-banner__content {
    position: relative;
    z-index: 1;
}

.tr-briefs-banner__title {
    font-size: 1.15rem;
    margin-bottom: var(--tr-space-xs);
    color: var(--tr-text-primary);
}

.tr-briefs-banner__desc {
    color: var(--tr-text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

@media (max-width: 600px) {
    .tr-briefs-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: var(--tr-space-lg);
    }
    
    .tr-briefs-banner::before {
        display: none;
    }
}


/* ==========================================================================
   ARTICLE GRID (3-Column Cards) - Enhanced
   ========================================================================== */

.tr-article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--tr-space-lg);
    margin-bottom: var(--tr-space-2xl);
}

@media (max-width: 900px) {
    .tr-article-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .tr-article-grid {
        grid-template-columns: 1fr;
    }
}

.tr-article-card {
    background-color: var(--tr-bg-white);
    border-radius: var(--tr-radius-md);
    overflow: hidden;
    box-shadow: var(--tr-shadow-sm);
    transition: all var(--tr-transition-normal);
    display: flex;
    flex-direction: column;
}

.tr-article-card:hover {
    box-shadow: var(--tr-shadow-hover);
    transform: translateY(-4px);
}

.tr-article-card__image {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    position: relative;
}

.tr-article-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--tr-transition-slow);
}

.tr-article-card:hover .tr-article-card__image img {
    transform: scale(1.08);
}

/* Overlay gradient */
.tr-article-card__image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.3) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--tr-transition-normal);
}

.tr-article-card:hover .tr-article-card__image::after {
    opacity: 1;
}

.tr-article-card__content {
    padding: var(--tr-space-md);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.tr-article-card__title {
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: var(--tr-space-sm);
    flex-grow: 1;
}

.tr-article-card__title a {
    color: var(--tr-text-primary);
}

.tr-article-card__title a:hover {
    color: var(--tr-primary);
}

.tr-article-card__meta {
    font-size: 0.8rem;
    color: var(--tr-text-muted);
    padding-top: var(--tr-space-sm);
    border-top: 1px solid var(--tr-border-light);
}

/* Comment count icon — used in all homepage article meta */
.tr-comment-count {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: var(--tr-text-muted);
    text-decoration: none;
    transition: color 0.15s ease;
    white-space: nowrap;
}
.tr-comment-count:hover {
    color: var(--tr-primary);
    text-decoration: none;
}
.tr-comment-count svg {
    flex-shrink: 0;
    opacity: 0.7;
}
.tr-comment-count span {
    font-size: 0.8rem;
    line-height: 1;
}

/* Meta links consistent colour in all homepage contexts */
.tr-hero__meta a,
.tr-hero__secondary-meta a,
.tr-article-card__meta a,
.tr-article-list-item__meta a {
    color: var(--tr-text-muted);
    text-decoration: none;
}
.tr-hero__meta a:hover,
.tr-hero__secondary-meta a:hover,
.tr-article-card__meta a:hover,
.tr-article-list-item__meta a:hover {
    color: var(--tr-primary);
    text-decoration: underline;
}


   ARTICLE LIST (Horizontal Layout) - Enhanced
   ========================================================================== */

.tr-article-list {
    margin-bottom: var(--tr-space-2xl);
}

.tr-article-list-item {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: var(--tr-space-lg);
    padding: var(--tr-space-lg);
    margin-bottom: var(--tr-space-md);
    background-color: var(--tr-bg-white);
    border-radius: var(--tr-radius-md);
    box-shadow: var(--tr-shadow-sm);
    transition: all var(--tr-transition-normal);
    align-items: flex-start;
}

.tr-article-list-item:hover {
    box-shadow: var(--tr-shadow-hover);
    transform: translateX(4px);
}

.tr-article-list-item:last-child {
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .tr-article-list-item {
        grid-template-columns: 100px 1fr;
        gap: var(--tr-space-md);
        padding: var(--tr-space-md);
    }
}

.tr-article-list-item__image {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--tr-radius-sm);
    flex-shrink: 0;
}

.tr-article-list-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--tr-transition-normal);
}

.tr-article-list-item:hover .tr-article-list-item__image img {
    transform: scale(1.05);
}

.tr-article-list-item__content {
    min-width: 0;
}

.tr-article-list-item__title {
    font-size: 1.1rem;
    line-height: 1.35;
    margin-bottom: var(--tr-space-sm);
    margin-top: 0;
}

.tr-article-list-item__title a {
    color: var(--tr-text-primary);
}

.tr-article-list-item__title a:hover {
    color: var(--tr-primary);
}

.tr-article-list-item__excerpt {
    color: var(--tr-text-secondary);
    font-size: 0.95rem;
    margin-bottom: var(--tr-space-sm);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.tr-article-list-item__meta {
    font-size: 0.85rem;
    color: var(--tr-text-muted);
}

.tr-article-list-item__meta a {
    color: var(--tr-primary);
    font-weight: 600;
}


/* ==========================================================================
   SIDEBAR - Enhanced
   ========================================================================== */

.tr-sidebar-section {
    background-color: var(--tr-bg-white);
    border-radius: var(--tr-radius-md);
    padding: var(--tr-space-lg);
    box-shadow: var(--tr-shadow-sm);
    transition: box-shadow var(--tr-transition-normal);
}

.tr-sidebar-section:hover {
    box-shadow: var(--tr-shadow-md);
}

.tr-sidebar-section__title {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: var(--tr-space-md);
    padding-bottom: var(--tr-space-sm);
    border-bottom: 2px solid var(--tr-text-primary);
    display: flex;
    align-items: center;
    gap: var(--tr-space-sm);
    position: relative;
}

.tr-sidebar-section__title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--tr-accent);
}

/* Newsletter CTA - Enhanced */
.tr-newsletter-cta {
    background: linear-gradient(145deg, var(--tr-primary) 0%, var(--tr-primary-dark) 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.tr-newsletter-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    pointer-events: none;
}

.tr-newsletter-cta .tr-sidebar-section__title {
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.tr-newsletter-cta .tr-sidebar-section__title::after {
    background-color: rgba(255, 255, 255, 0.5);
}

.tr-newsletter-cta__desc {
    font-size: 0.95rem;
    margin-bottom: var(--tr-space-md);
    opacity: 0.9;
    line-height: 1.5;
}

.tr-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: var(--tr-space-sm);
    position: relative;
    z-index: 1;
}

.tr-newsletter-form input[type="email"] {
    padding: 12px var(--tr-space-md);
    border: none;
    border-radius: var(--tr-radius-sm);
    font-size: 0.95rem;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.tr-newsletter-form input[type="email"]:focus {
    outline: none;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1), 0 0 0 3px rgba(255,255,255,0.3);
}

.tr-newsletter-form button {
    padding: 12px var(--tr-space-md);
    background: linear-gradient(135deg, var(--tr-accent) 0%, var(--tr-accent-hover) 100%);
    color: #ffffff;
    border: none;
    border-radius: var(--tr-radius-sm);
    font-weight: 700;
    cursor: pointer;
    transition: all var(--tr-transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
}

.tr-newsletter-form button:hover {
    background: linear-gradient(135deg, var(--tr-accent-hover) 0%, #8a1f1c 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Trending List - Enhanced */
.tr-trending-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tr-trending-list li {
    padding: var(--tr-space-sm) 0;
    border-bottom: 1px solid var(--tr-border-light);
    display: flex;
    gap: var(--tr-space-md);
    align-items: flex-start;
    transition: all var(--tr-transition-fast);
}

.tr-trending-list li:hover {
    padding-left: var(--tr-space-sm);
}

.tr-trending-list li:last-child {
    border-bottom: none;
}

.tr-trending-list__number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--tr-primary);
    line-height: 1;
    min-width: 28px;
    opacity: 0.6;
}

.tr-trending-list li:hover .tr-trending-list__number {
    opacity: 1;
    color: var(--tr-accent);
}

.tr-trending-list a {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--tr-text-primary);
}

.tr-trending-list a:hover {
    color: var(--tr-primary);
}

/* Opinion Items - Enhanced */
.tr-opinion-item {
    padding: var(--tr-space-sm) 0;
    border-bottom: 1px solid var(--tr-border-light);
    transition: all var(--tr-transition-fast);
}

.tr-opinion-item:hover {
    padding-left: var(--tr-space-sm);
    border-left: 3px solid var(--tr-accent);
    margin-left: -3px;
}

.tr-opinion-item:last-child {
    border-bottom: none;
}

.tr-opinion-item__title {
    font-size: 0.9rem;
    font-weight: 400;
    font-style: italic;
    line-height: 1.45;
    margin-bottom: var(--tr-space-xs);
    margin-top: 0;
}

.tr-opinion-item__title a {
    color: var(--tr-text-primary);
}

.tr-opinion-item__title a:hover {
    color: var(--tr-primary);
}

.tr-opinion-item__meta {
    font-size: 0.75rem;
    color: var(--tr-text-muted);
}

/* Ad Placeholder */
.tr-ad-placeholder {
    background: linear-gradient(135deg, #e8e8e8 0%, #d4d4d4 100%);
    aspect-ratio: 300 / 250;
    border-radius: var(--tr-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888888;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    border: 1px dashed var(--tr-border);
}


/* ==========================================================================
   FOOTER - Enhanced
   ========================================================================== */

.tr-footer {
    background: linear-gradient(180deg, var(--tr-bg-dark) 0%, #111111 100%);
    color: #ffffff;
    margin-top: var(--tr-space-3xl);
    position: relative;
}

/* Decorative top border */
.tr-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--tr-primary) 0%, var(--tr-primary-light) 50%, var(--tr-accent) 100%);
}

.tr-footer__main {
    /* Use Astra's container width from Customizer */
    max-width: var(--ast-container-default-xlg-width, var(--tr-max-width));
    margin: 0 auto;
    padding: var(--tr-space-3xl) var(--tr-space-md) var(--tr-space-2xl);
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--tr-space-2xl);
}

@media (max-width: 900px) {
    .tr-footer__main {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .tr-footer__main {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.tr-footer__brand-logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: var(--tr-space-md);
}

.tr-footer__brand-logo span {
    color: var(--tr-accent);
}

.tr-footer__brand-desc {
    opacity: 0.65;
    font-size: 0.95rem;
    line-height: 1.7;
}

.tr-footer__section-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--tr-space-lg);
    color: var(--tr-primary-light);
    font-weight: 700;
}

.tr-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tr-footer__links li {
    margin-bottom: var(--tr-space-sm);
}

.tr-footer__links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: all var(--tr-transition-fast);
    display: inline-block;
}

.tr-footer__links a:hover {
    color: #ffffff;
    transform: translateX(4px);
}

.tr-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--tr-space-lg) var(--tr-space-md);
}

.tr-footer__bottom-inner {
    /* Use Astra's container width from Customizer */
    max-width: var(--ast-container-default-xlg-width, var(--tr-max-width));
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.tr-footer__bottom-inner a {
    color: rgba(255, 255, 255, 0.6);
}

.tr-footer__bottom-inner a:hover {
    color: #ffffff;
}

@media (max-width: 600px) {
    .tr-footer__bottom-inner {
        flex-direction: column;
        gap: var(--tr-space-sm);
        text-align: center;
    }
}


/* ==========================================================================
   ASTRA OVERRIDES & FIXES
   ========================================================================== */



/* Fix for Astra container 
.site-content > .ast-container {
    max-width: 100%;
    padding: 0;
}

*/

/* Override Astra's default link colors in content */
.entry-content a:not(.wp-block-button__link) {
    color: var(--tr-primary);
}

.entry-content a:not(.wp-block-button__link):hover {
    color: var(--tr-primary-dark);
    text-decoration: underline;
}


/* ==========================================================================
   CATEGORY BADGES — MULTI-BADGE & PER-CATEGORY COLOURS
   ========================================================================== */

/* When multiple badges appear side by side */
.tr-category-tag + .tr-category-tag {
    margin-left: 4px;
}

/* ── Per-category colour overrides ──────────────────────────────────────────
   Add or edit entries here to give specific categories a distinct badge colour.
   The class name is always:  tr-category-tag--{category-slug}
   Replace hyphens in multi-word slugs (e.g. "florida-news" → --florida-news).
   ─────────────────────────────────────────────────────────────────────────── */

/* Exclusive — gold */
.tr-category-tag--exclusive {
    background: linear-gradient(135deg, var(--tr-gold) 0%, #c49a4a 100%);
    box-shadow: 0 2px 4px rgba(212, 169, 89, 0.3);
}

/* Opinion — accent red */
.tr-category-tag--opinion {
    background: linear-gradient(135deg, var(--tr-accent) 0%, var(--tr-accent-hover) 100%);
    box-shadow: 0 2px 4px rgba(201, 48, 44, 0.2);
}

/*
 * Examples — uncomment and customise as needed:
 *
 * .tr-category-tag--county          { background: #2e6da4; }
 * .tr-category-tag--city-hall       { background: #5a3e85; }
 * .tr-category-tag--schools         { background: #2a7a4b; }
 * .tr-category-tag--florida-news    { background: #c95c1a; }
 * .tr-category-tag--business        { background: #1a6b4a; }
 * .tr-category-tag--sports          { background: #1a3a6b; }
 * .tr-category-tag--local-sports    { background: #1a3a6b; }
 * .tr-category-tag--development     { background: #7a5c1a; }
 */

/* ==========================================================================
   ARCHIVE TEMPLATE
   ========================================================================== */

.tr-archive {
    width: 100%;
    background-color: var(--tr-bg-light);
    padding: var(--tr-space-xl) 0 var(--tr-space-3xl);
}

.tr-archive__container {
    max-width: var(--tr-max-width);
    margin: 0 auto;
    padding: 0 var(--tr-space-lg);
    display: grid;
    grid-template-columns: 1fr var(--tr-sidebar-width);
    gap: var(--tr-space-xl);
    align-items: start;
}

/* Archive header */
.tr-archive__header {
    margin-bottom: var(--tr-space-xl);
    padding-bottom: var(--tr-space-md);
    border-bottom: 3px solid var(--tr-accent);
}

.tr-archive__title {
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--tr-text-primary);
    margin: 0 0 var(--tr-space-xs);
}

.tr-archive__description {
    font-size: 0.95rem;
    color: var(--tr-text-muted);
    margin: 0;
}

/* Archive grid — 2 columns on desktop, 1 on mobile */
.tr-archive__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--tr-space-lg);
}

/* Archive card */
.tr-archive-card {
    background: var(--tr-bg-white);
    border-radius: var(--tr-radius-md);
    box-shadow: var(--tr-shadow-sm);
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
}

.tr-archive-card:hover {
    box-shadow: var(--tr-shadow-hover);
    transform: translateY(-2px);
}

/* Archive card image — position:relative container + absolute fill img
   guarantees full width regardless of WP's inline width/height attributes
   and the global img { height: auto } rule */
.tr-archive-card__image {
    display: block;
    width: 100%;
    position: relative;
    padding-top: 62.5%; /* 16:10 ratio = 10/16 = 62.5% */
    overflow: hidden;
    background: var(--tr-border-light);
    flex-shrink: 0;
}

.tr-archive-card__image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.4s ease;
}

.tr-archive-card:hover .tr-archive-card__image img {
    transform: scale(1.04);
}

/* Archive card content */
.tr-archive-card__content {
    padding: var(--tr-space-md);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}


.tr-archive-card__title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 var(--tr-space-sm);
    flex-grow: 1;
}

.tr-archive-card__title a {
    color: var(--tr-text-primary);
    text-decoration: none;
}

.tr-archive-card__title a:hover {
    color: var(--tr-primary);
    text-decoration: underline;
}

.tr-archive-card__excerpt {
    font-size: 0.875rem;
    color: var(--tr-text-secondary);
    line-height: 1.5;
    margin: 0 0 var(--tr-space-sm);
}

.tr-archive-card__meta {
    font-size: 0.8rem;
    color: var(--tr-text-muted);
    padding-top: var(--tr-space-sm);
    border-top: 1px solid var(--tr-border-light);
    margin-top: auto;
}

.tr-archive-card__meta a {
    color: var(--tr-text-muted);
    text-decoration: none;
}

.tr-archive-card__meta a:hover {
    color: var(--tr-primary);
    text-decoration: underline;
}

/* Archive sidebar */
.tr-archive__sidebar {
    position: sticky;
    top: var(--tr-space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--tr-space-md);
}

/* Archive empty state */
.tr-archive__empty {
    padding: var(--tr-space-2xl);
    text-align: center;
    color: var(--tr-text-muted);
    background: var(--tr-bg-white);
    border-radius: var(--tr-radius-md);
}

/* Archive pagination */
.tr-archive__pagination {
    margin-top: var(--tr-space-xl);
}

.tr-archive__pagination .nav-links {
    display: flex;
    gap: var(--tr-space-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.tr-archive__pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 var(--tr-space-sm);
    border-radius: var(--tr-radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    background: var(--tr-bg-white);
    color: var(--tr-text-secondary);
    border: 1px solid var(--tr-border);
    transition: all 0.15s ease;
}

.tr-archive__pagination .page-numbers:hover,
.tr-archive__pagination .page-numbers.current {
    background: var(--tr-primary);
    color: #ffffff;
    border-color: var(--tr-primary);
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .tr-archive__container {
        grid-template-columns: 1fr;
    }
    .tr-archive__sidebar {
        position: static;
    }
}

@media (max-width: 640px) {
    .tr-archive__grid {
        grid-template-columns: 1fr;
    }
    .tr-archive__title {
        font-size: 1.4rem;
    }
}

/* ==========================================================================
   SINGLE POST TEMPLATE - FINAL ALIGNMENT FIX
   ========================================================================== */

.tr-single-post {
    width: 100%; /* Ensures the section spans the full screen width */
    background-color: var(--tr-bg-light);
    display: block;
}

.tr-single-post__container {
    display: grid;
    /* minmax(0, 920px) limits the content width for readability */
    grid-template-columns: minmax(0, 920px) 320px; 
    gap: 40px;
    
    /* Centering Logic */
    max-width: 1300px;
    margin: 0 auto !important; /* Centers the container block */
    justify-content: center;   /* Centers the two columns within the 1200px space */
    
    padding: 40px 20px;
    box-sizing: border-box;
}

@media (max-width: 1024px) {
    .tr-single-post__container {
        grid-template-columns: 1fr;
        max-width: 820px !important;
    }
}

/* Responsive adjustment for tablets and phones */
@media (max-width: 1024px) {
    .tr-single-post__container {
        grid-template-columns: 1fr;
        max-width: 800px !important;
    }
}

/* Main Content Area */
.tr-single-post__main {
    min-width: 0;
}

.tr-single-post__article {
    background-color: var(--tr-bg-white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

/* Article Header */
.tr-single-post__header {
    padding: var(--tr-space-xl) var(--tr-space-xl) var(--tr-space-lg);
}

.tr-single-post__header .tr-category-tag {
    margin-bottom: var(--tr-space-md);
}

.tr-single-post__title {
    font-size: 2.25rem;
    line-height: 1.2;
    margin-bottom: var(--tr-space-lg);
    color: var(--tr-text-primary);
}

@media (max-width: 600px) {
    .tr-single-post__title {
        font-size: 1.75rem;
    }
    
    .tr-single-post__header {
        padding: var(--tr-space-lg);
    }
}

.tr-single-post__meta {
    display: flex;
    align-items: center;
    gap: var(--tr-space-md);
    padding-top: var(--tr-space-md);
    border-top: 1px solid var(--tr-border-light);
}

.tr-single-post__author-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.tr-single-post__meta-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tr-single-post__author {
    font-weight: 600;
    color: var(--tr-text-primary);
}

.tr-single-post__author a {
    color: var(--tr-primary);
}

.tr-single-post__author a:hover {
    text-decoration: underline;
}

.tr-single-post__date {
    font-size: 0.9rem;
    color: var(--tr-text-muted);
}

.tr-single-post__updated {
    font-style: italic;
}

/* Featured Image */
.tr-single-post__featured-image {
    margin: 0;
    line-height: 0;
}

.tr-single-post__featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.tr-single-post__image-caption {
    padding: var(--tr-space-sm) var(--tr-space-xl);
    background-color: var(--tr-bg-light);
    font-size: 0.85rem;
    color: var(--tr-text-muted);
    font-style: italic;
    line-height: 1.5;
}

/* Article Content */
.tr-single-post__content {
    padding: var(--tr-space-xl);
    line-height: 1.6;
    color: var(--tr-text-secondary);
    max-width: 820px; /* Optimal readability width */
    margin: 0 auto;
}

.tr-single-post__content p {
    margin-bottom: var(--tr-space-lg);
}

.tr-single-post__content h2 {
    font-size: 1.5rem;
    margin-top: var(--tr-space-2xl);
    margin-bottom: var(--tr-space-md);
    color: var(--tr-text-primary);
}

.tr-single-post__content h3 {
    font-size: 1.25rem;
    margin-top: var(--tr-space-xl);
    margin-bottom: var(--tr-space-md);
    color: var(--tr-text-primary);
}

.tr-single-post__content blockquote {
    margin: var(--tr-space-xl) 0;
    padding: var(--tr-space-lg) var(--tr-space-xl);
    border-left: 4px solid var(--tr-primary);
    background-color: var(--tr-bg-light);
    font-style: italic;
    color: var(--tr-text-secondary);
}

.tr-single-post__content blockquote p:last-child {
    margin-bottom: 0;
}

.tr-single-post__content ul,
.tr-single-post__content ol {
    margin-bottom: var(--tr-space-lg);
    padding-left: var(--tr-space-xl);
}

.tr-single-post__content li {
    margin-bottom: var(--tr-space-sm);
}

.tr-single-post__content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--tr-radius-sm);
    margin: var(--tr-space-lg) 0;
}

.tr-single-post__content figure {
    margin: var(--tr-space-xl) 0;
}

.tr-single-post__content figcaption {
    font-size: 0.85rem;
    color: var(--tr-text-muted);
    font-style: italic;
    margin-top: var(--tr-space-sm);
}

/* Article Footer - Tags */
.tr-single-post__footer {
    padding: var(--tr-space-lg) var(--tr-space-xl);
    border-top: 1px solid var(--tr-border-light);
}

.tr-single-post__tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--tr-space-sm);
}

.tr-single-post__tags-label {
    font-weight: 600;
    color: var(--tr-text-secondary);
}

.tr-single-post__tag {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--tr-bg-light);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--tr-text-secondary);
    transition: all var(--tr-transition-fast);
}

.tr-single-post__tag:hover {
    background-color: var(--tr-primary);
    color: #ffffff;
}

/* Share Buttons */
.tr-single-post__share {
    display: flex;
    align-items: center;
    gap: var(--tr-space-md);
    padding: var(--tr-space-lg) var(--tr-space-xl);
    border-top: 1px solid var(--tr-border-light);
    background-color: var(--tr-bg-light);
}

.tr-single-post__share-label {
    font-weight: 600;
    color: var(--tr-text-secondary);
}

.tr-single-post__share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #ffffff;
    transition: all var(--tr-transition-fast);
    border: none;
    cursor: pointer;
}

.tr-single-post__share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--tr-shadow-md);
}

.tr-single-post__share-btn--facebook {
    background-color: #1877f2;
}

.tr-single-post__share-btn--twitter {
    background-color: #000000;
}

.tr-single-post__share-btn--email {
    background-color: var(--tr-primary);
}

.tr-single-post__share-btn--copy {
    background-color: var(--tr-text-muted);
    font-size: 0.7rem;
}

/* Author Box */
.tr-author-box {
    display: flex;
    gap: var(--tr-space-lg);
    padding: var(--tr-space-xl);
    border-top: 1px solid var(--tr-border-light);
    background-color: var(--tr-bg-white);
}

@media (max-width: 600px) {
    .tr-author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

.tr-author-box__avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.tr-author-box__info {
    flex: 1;
}

.tr-author-box__name {
    font-size: 1.1rem;
    margin-bottom: var(--tr-space-xs);
}

.tr-author-box__name a {
    color: var(--tr-text-primary);
}

.tr-author-box__name a:hover {
    color: var(--tr-primary);
}

.tr-author-box__bio {
    color: var(--tr-text-secondary);
    margin-bottom: var(--tr-space-sm);
    line-height: 1.6;
}

.tr-author-box__link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--tr-primary);
}

.tr-author-box__link:hover {
    text-decoration: underline;
}

/* Related Posts */
.tr-related-posts {
    margin-top: var(--tr-space-2xl);
    background-color: var(--tr-bg-white);
    border-radius: var(--tr-radius-lg);
    padding: var(--tr-space-xl);
    box-shadow: var(--tr-shadow-sm);
}

.tr-related-posts__title {
    font-size: 1.25rem;
    margin-bottom: var(--tr-space-lg);
    padding-bottom: var(--tr-space-sm);
    border-bottom: 2px solid var(--tr-text-primary);
    position: relative;
}

.tr-related-posts__title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--tr-accent);
}

.tr-related-posts__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--tr-space-lg);
}

@media (max-width: 768px) {
    .tr-related-posts__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .tr-related-posts__grid {
        grid-template-columns: 1fr;
    }
}

.tr-related-posts__item {
    display: flex;
    flex-direction: column;
}

.tr-related-posts__image {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: var(--tr-radius-sm);
    margin-bottom: var(--tr-space-sm);
}

.tr-related-posts__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--tr-transition-normal);
}

.tr-related-posts__item:hover .tr-related-posts__image img {
    transform: scale(1.05);
}

.tr-related-posts__item-title {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: var(--tr-space-xs);
}

.tr-related-posts__item-title a {
    color: var(--tr-text-primary);
}

.tr-related-posts__item-title a:hover {
    color: var(--tr-primary);
}

.tr-related-posts__date {
    font-size: 0.8rem;
    color: var(--tr-text-muted);
}

/* ==========================================================================
   COMMENTS SECTION - JAZZED UP VERSION
   ========================================================================== */

.tr-comments-section {
    margin-top: var(--tr-space-3xl);
    padding: var(--tr-space-xl);
    background-color: var(--tr-bg-white);
    border-radius: var(--tr-radius-lg);
    box-shadow: var(--tr-shadow-sm);
}

/* Section Title with Brand Accent */
.tr-comments-section .comments-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--tr-space-xl);
    padding-bottom: var(--tr-space-sm);
    border-bottom: 3px solid var(--tr-text-primary);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.tr-comments-section .comments-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--tr-accent);
}

.tr-comments-section .comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tr-comments-section .comment-list .comment {
    border-bottom: none !important; /* Removes the standard bottom line */
    background: var(--tr-bg-white); /* Keeps it clean */
    padding: var(--tr-space-lg);
    margin-bottom: var(--tr-space-md); /* Uses spacing instead of lines */
    border: 1px solid var(--tr-border-light); /* Single subtle border card */
    border-radius: var(--tr-radius-md);
}

/* 2. Add a very subtle separator only if cards aren't used */
.tr-comments-section .comment-list > li:last-child .comment {
    margin-bottom: 0;
}

.tr-comments-section .comment:last-child {
    border-bottom: none;
}

.tr-comments-section .comment-author {
    font-weight: 600;
}

/* Avatar Styling */
.tr-comments-section .vcard img {
    border-radius: 50%;
    border: 2px solid var(--tr-bg-white);
    box-shadow: var(--tr-shadow-sm);
    margin-right: var(--tr-space-md);
}

.tr-comments-section .comment-author b {
    font-size: 1.1rem;
    color: var(--tr-primary);
}

.tr-comments-section .comment-metadata a {
    font-size: 0.8rem;
    color: var(--tr-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tr-comments-section .comment-content {
    color: var(--tr-text-secondary);
    line-height: 1.6;
	font-size:14px;
}

.tr-comments-section .reply a,
.tr-comments-section .comment-edit-link {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--tr-primary);
    background: var(--tr-primary-subtle);
    padding: 4px 10px;
    border-radius: 4px;
    transition: all var(--tr-transition-fast);
}

.tr-comments-section .reply a:hover {
    background: var(--tr-primary);
    color: #ffffff;
    text-decoration: none;
}

/* Comment Form */
.tr-comments-section .comment-form {
    margin-top: var(--tr-space-xl);
}

.tr-comments-section .comment-form label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--tr-space-xs);
    color: var(--tr-text-secondary);
}

.tr-comments-section .comment-form input[type="text"],
.tr-comments-section .comment-form input[type="email"],
.tr-comments-section .comment-form input[type="url"],
.tr-comments-section .comment-form textarea {
    width: 100%;
    padding: var(--tr-space-sm) var(--tr-space-md);
    border: 1px solid var(--tr-border);
    border-radius: var(--tr-radius-sm);
    font-size: 1rem;
    margin-bottom: var(--tr-space-md);
}

/* Comment Form Premium Look */
.tr-comments-section .comment-form-comment textarea {
    border: 2px solid var(--tr-border-light);
    border-radius: var(--tr-radius-sm);
    padding: var(--tr-space-md);
    transition: border-color var(--tr-transition-fast);
}

.tr-comments-section .comment-form-comment textarea:focus {
    border-color: var(--tr-primary);
    outline: none;
}

/* Brand-Matching Submit Button */
.tr-comments-section .form-submit input[type="submit"] {
    background: linear-gradient(135deg, var(--tr-accent) 0%, var(--tr-accent-hover) 100%) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 14px 30px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    border-radius: var(--tr-radius-sm) !important;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(201, 48, 44, 0.3) !important;
    transition: all var(--tr-transition-fast) !important;
}

.tr-comments-section .form-submit input[type="submit"]:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px rgba(201, 48, 44, 0.4) !important;
}

/* Single Post Sidebar */
.tr-single-post__sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--tr-space-xl);
}

@media (max-width: 1024px) {
    .tr-single-post__sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .tr-single-post__sidebar {
        grid-template-columns: 1fr;
    }
}

/* Category List in Sidebar */
.tr-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tr-category-list li {
    border-bottom: 1px solid var(--tr-border-light);
}

.tr-category-list li:last-child {
    border-bottom: none;
}

.tr-category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--tr-space-sm) 0;
    color: var(--tr-text-primary);
    font-weight: 500;
    transition: all var(--tr-transition-fast);
}

.tr-category-list a:hover {
    color: var(--tr-primary);
    padding-left: var(--tr-space-sm);
}

.tr-category-list__count {
    background-color: var(--tr-bg-light);
    color: var(--tr-text-muted);
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 10px;
}


/* ==========================================================================
   ANIMATIONS & MICRO-INTERACTIONS
   ========================================================================== */

/* Fade in on load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tr-hero,
.tr-briefs-banner,
.tr-section {
    animation: fadeInUp 0.6s ease-out forwards;
}

.tr-section:nth-child(2) { animation-delay: 0.1s; }
.tr-section:nth-child(3) { animation-delay: 0.2s; }
.tr-section:nth-child(4) { animation-delay: 0.3s; }

/* Smooth scroll for anchor links */
html {
    scroll-behavior: smooth;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

    .tr-share-buttons {margin:10px 0px!important}
	.tr-share-buttons a {padding-right:10px!important; text-decoration:none!important; }


/* ==========================================================================
   LEADERBOARD AD BAR (Below Header)
   ========================================================================== */

.tr-leaderboard-bar {
    background-color: var(--tr-bg-white);
    border-bottom: 1px solid var(--tr-border-light);
    padding: var(--tr-space-sm) 0;
}

.tr-leaderboard-bar__inner {
    max-width: var(--ast-container-default-xlg-width, var(--tr-max-width));
    margin: 0 auto;
    padding: 0 var(--tr-space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px; /* Reserves space even before ad loads */
}

/* When no widget assigned — keeps layout stable */
.tr-leaderboard-bar__inner:empty {
    display: none;
}


/* ==========================================================================
   AD ZONES — General
   ========================================================================== */

.tr-ad-zone {
    width: 100%;
}

/* Sidebar ad zone — center the ad unit */
.tr-ad-zone--sidebar {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px; /* 300×250 + breathing room */
}

/* Inline mid-article ad zone */
.tr-ad-zone--inline-content {
    margin: var(--tr-space-xl) auto;
    display: flex;
    align-items: center;
    justify-content: center;
    clear: both;
}

/* Leaderboard zone */
.tr-ad-zone--leaderboard {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    width: 100%;
}

/* Placeholder shown when no ad is assigned */
.tr-ad-placeholder {
    background: linear-gradient(135deg, #e8e8e8 0%, #d4d4d4 100%);
    border-radius: var(--tr-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888888;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    border: 1px dashed var(--tr-border);
    width: 100%;
}

/* Size variants for placeholders */
.tr-ad-zone--sidebar .tr-ad-placeholder {
    aspect-ratio: 300 / 250;
    max-width: 300px;
}

.tr-ad-zone--leaderboard .tr-ad-placeholder,
.tr-leaderboard-bar__inner .tr-ad-placeholder {
    aspect-ratio: 728 / 90;
    max-width: 728px;
}

.tr-ad-zone--inline-content .tr-ad-placeholder {
    aspect-ratio: 300 / 250;
    max-width: 300px;
}


/* ==========================================================================
   MC4WP NEWSLETTER FORM — Theme Override
   Matches the existing .tr-newsletter-form styling exactly.
   MC4WP renders a <form class="mc4wp-form"> — we restyle it to match.
   ========================================================================== */

.tr-newsletter-cta .mc4wp-form {
    display: flex;
    flex-direction: column;
    gap: var(--tr-space-sm);
    position: relative;
    z-index: 1;
}

.tr-newsletter-cta .mc4wp-form input[type="email"] {
    padding: 12px var(--tr-space-md);
    border: none;
    border-radius: var(--tr-radius-sm);
    font-size: 0.95rem;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
    width: 100%;
    box-sizing: border-box;
}

.tr-newsletter-cta .mc4wp-form input[type="email"]:focus {
    outline: none;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1), 0 0 0 3px rgba(255,255,255,0.3);
}

.tr-newsletter-cta .mc4wp-form input[type="submit"] {
    padding: 12px var(--tr-space-md);
    background: linear-gradient(135deg, var(--tr-accent) 0%, var(--tr-accent-hover) 100%);
    color: #ffffff;
    border: none;
    border-radius: var(--tr-radius-sm);
    font-weight: 700;
    cursor: pointer;
    transition: all var(--tr-transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
    width: 100%;
}

.tr-newsletter-cta .mc4wp-form input[type="submit"]:hover {
    background: linear-gradient(135deg, var(--tr-accent-hover) 0%, #8a1f1c 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Success / error response messages */
.tr-newsletter-cta .mc4wp-response p {
    font-size: 0.9rem;
    margin-top: var(--tr-space-sm);
    padding: var(--tr-space-sm) var(--tr-space-md);
    border-radius: var(--tr-radius-sm);
}

.tr-newsletter-cta .mc4wp-success p {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.tr-newsletter-cta .mc4wp-error p {
    background-color: rgba(201, 48, 44, 0.2);
    color: #ffffff;
    border: 1px solid rgba(201, 48, 44, 0.4);
}

/* ==========================================================================


/* ==========================================================================
   ADVANCED SEARCH — Complete Ruleset
   All rules scoped to .tr-search-wrap for maximum specificity over Astra.
   ========================================================================== */

/* ------------------------------------------------------------------
   Results wrap & count
   ------------------------------------------------------------------ */
.tr-search-results-wrap {
    margin-top: 2rem;
}

.tr-search-results-count {
    font-size: 0.95rem;
    color: var(--tr-text-muted);
    margin: 0 0 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--tr-border-light);
}

/* ------------------------------------------------------------------
   Page header (search.php template context)
   ------------------------------------------------------------------ */
.tr-search-page-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--tr-text-primary);
    position: relative;
}
.tr-search-page-header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--tr-accent);
}
.tr-search-page-header__title {
    font-size: 1.75rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.tr-search-page-header__count {
    font-size: 0.95rem;
    color: var(--tr-text-muted);
    margin: 0;
}
.tr-search-page-form {
    margin-bottom: 2rem;
}

/* ------------------------------------------------------------------
   Outer wrapper
   ------------------------------------------------------------------ */
.tr-search-wrap {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.10);
    transition: box-shadow 0.3s ease;
    box-sizing: border-box;
    width: 100%;
}
.tr-search-wrap--widget {
    padding: 1rem;
    box-shadow: none;
    background: transparent;
}
.tr-search-wrap__title {
    font-size: 1.35rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ------------------------------------------------------------------
   Active filter pills
   ------------------------------------------------------------------ */
.tr-search-wrap .tr-search-active-filters {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 1rem !important;
    padding: 8px 12px !important;
    background-color: var(--tr-primary-subtle) !important;
    border-radius: 8px !important;
    border-left: 3px solid var(--tr-primary) !important;
}
.tr-search-active-filters__label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--tr-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.tr-search-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background-color: var(--tr-primary);
    color: #ffffff;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}
.tr-search-pill__remove {
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    line-height: 1;
    text-decoration: none;
    margin-left: 2px;
    transition: color 0.15s ease;
}
.tr-search-pill__remove:hover { color: #fff; }
.tr-search-clear-all {
    margin-left: auto;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--tr-accent);
    text-decoration: underline;
}
.tr-search-clear-all:hover { color: var(--tr-accent-hover); }

/* ------------------------------------------------------------------
   Primary row (keyword + submit button)
   ------------------------------------------------------------------ */
.tr-search-wrap .tr-search-form__primary {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    gap: 10px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}
@media (max-width: 600px) {
    .tr-search-wrap .tr-search-form__primary {
        flex-direction: column !important;
    }
}

/* Keyword wrapper */
.tr-search-wrap .tr-search-form__keyword-wrap {
    position: relative !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Search icon */
.tr-search-wrap .tr-search-form__icon {
    position: absolute !important;
    left: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 20px !important;
    height: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: none !important;
    color: var(--tr-text-muted) !important;
    transition: color 0.15s ease, transform 0.3s ease !important;
    z-index: 2 !important;
}
.tr-search-wrap .tr-search-form__icon svg {
    width: 20px !important;
    height: 20px !important;
    display: block !important;
    flex-shrink: 0 !important;
}
/* Icon active state (JS adds this class on focus) */
.tr-search-wrap .tr-search-form__icon--active {
    color: var(--tr-primary) !important;
    transform: translateY(-50%) rotate(-15deg) scale(1.15) !important;
}

/* Keyword input */
.tr-search-wrap .tr-search-form__keyword {
    display: block !important;
    width: 100% !important;
    height: 52px !important;
    padding: 0 40px 0 2.75rem !important;
    border: 2px solid var(--tr-border) !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    color: var(--tr-text-primary) !important;
    background-color: #ffffff !important;
    box-sizing: border-box !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
    margin: 0 !important;
    outline: none !important;
}
.tr-search-wrap .tr-search-form__keyword-wrap:not(.tr-search-form__keyword-wrap--icon) .tr-search-form__keyword {
    padding-left: 1rem !important;
}
/* Focus glow effect */
.tr-search-wrap .tr-search-form__keyword:focus {
    border-color: var(--tr-primary) !important;
    box-shadow: 0 0 0 3px rgba(0, 53, 71, 0.12) !important;
    outline: none !important;
}

/* Clear (×) button */
.tr-search-wrap .tr-search-form__clear-keyword {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: none !important;
    border: none !important;
    font-size: 1.2rem !important;
    color: var(--tr-text-muted) !important;
    cursor: pointer !important;
    padding: 4px !important;
    line-height: 1 !important;
    transition: color 0.15s ease !important;
    z-index: 2 !important;
}
.tr-search-wrap .tr-search-form__clear-keyword:hover {
    color: var(--tr-accent) !important;
}

/* Submit button */
.tr-search-wrap .tr-search-form__submit {
    flex: 0 0 auto !important;
    height: 52px !important;
    padding: 0 1.5rem !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    min-width: 100px !important;
    margin: 0 !important;
    background: linear-gradient(135deg, var(--tr-accent) 0%, var(--tr-accent-hover) 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    box-shadow: 0 2px 8px rgba(201, 48, 44, 0.3) !important;
}
.tr-search-wrap .tr-search-form__submit:hover {
    background: linear-gradient(135deg, var(--tr-accent-hover) 0%, #8a1f1c 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(201, 48, 44, 0.4) !important;
}
.tr-search-wrap .tr-search-form__submit-spinner {
    display: none !important;
    width: 18px !important;
    height: 18px !important;
    border: 2px solid rgba(255,255,255,0.4) !important;
    border-top-color: #ffffff !important;
    border-radius: 50% !important;
    animation: tr-spin 0.7s linear infinite !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
}
.tr-search-wrap .tr-search-form__submit--loading .tr-search-form__submit-text {
    visibility: hidden !important;
}
.tr-search-wrap .tr-search-form__submit--loading .tr-search-form__submit-spinner {
    display: block !important;
}
@keyframes tr-spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ------------------------------------------------------------------
   Advanced filters toggle button
   ------------------------------------------------------------------ */
.tr-search-wrap .tr-search-form__toggle-row {
    margin-top: 12px !important;
}
.tr-search-wrap .tr-search-form__toggle {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: none !important;
    border: 1px solid var(--tr-border) !important;
    border-radius: 6px !important;
    padding: 8px 14px !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: var(--tr-text-secondary) !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    box-shadow: none !important;
}
.tr-search-wrap .tr-search-form__toggle:hover,
.tr-search-wrap .tr-search-form__toggle--active {
    background-color: var(--tr-primary-subtle) !important;
    border-color: var(--tr-primary) !important;
    color: var(--tr-primary) !important;
}
.tr-search-wrap .tr-search-form__toggle-icon {
    width: 16px !important;
    height: 16px !important;
    display: block !important;
    flex-shrink: 0 !important;
}
.tr-search-wrap .tr-search-form__toggle-chevron {
    width: 14px !important;
    height: 14px !important;
    display: block !important;
    flex-shrink: 0 !important;
    transition: transform 0.3s ease !important;
    margin-left: 4px !important;
}
.tr-search-wrap .tr-search-form__toggle[aria-expanded="true"] .tr-search-form__toggle-chevron {
    transform: rotate(180deg) !important;
}
.tr-search-form__filter-count {
    background-color: var(--tr-accent);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ------------------------------------------------------------------
   Filter panel slide
   ------------------------------------------------------------------ */
.tr-search-wrap .tr-search-form__filters {
    overflow: hidden !important;
    height: 0 !important;
    transition: height 0.3s ease !important;
}
.tr-search-wrap .tr-search-form__filters--open {
    height: auto !important;
}

/* 2-col grid */
.tr-search-wrap .tr-search-form__filters-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
    padding-top: 1.25rem !important;
}
@media (max-width: 700px) {
    .tr-search-wrap .tr-search-form__filters-grid {
        grid-template-columns: 1fr !important;
    }
}
.tr-search-wrap .tr-search-form__field {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}
.tr-search-wrap .tr-search-form__field--full {
    grid-column: 1 / -1 !important;
}
.tr-search-wrap .tr-search-form__label {
    display: block !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: var(--tr-text-secondary) !important;
    margin-bottom: 4px !important;
}
.tr-search-wrap .tr-search-form__input {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 10px 1rem !important;
    border: 2px solid var(--tr-border) !important;
    border-radius: 6px !important;
    font-size: 0.95rem !important;
    color: var(--tr-text-primary) !important;
    background-color: #ffffff !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
    margin: 0 !important;
}
.tr-search-wrap .tr-search-form__input:focus {
    outline: none !important;
    border-color: var(--tr-primary) !important;
    box-shadow: 0 0 0 3px rgba(0, 53, 71, 0.1) !important;
}
.tr-search-wrap .tr-search-form__select {
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b6b6b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    padding-right: 2.5rem !important;
    cursor: pointer !important;
}

/* ------------------------------------------------------------------
   Tag cloud
   ------------------------------------------------------------------ */
.tr-search-wrap .tr-search-form__tag-cloud {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    padding: 8px 0 !important;
}
.tr-search-wrap .tr-search-tag-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 5px 12px !important;
    background-color: var(--tr-bg-light) !important;
    border: 1px solid var(--tr-border) !important;
    border-radius: 20px !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    color: var(--tr-text-secondary) !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}
.tr-search-wrap .tr-search-tag-btn:hover {
    background-color: var(--tr-primary-subtle) !important;
    border-color: var(--tr-primary) !important;
    color: var(--tr-primary) !important;
    transform: translateY(-1px) !important;
}
.tr-search-wrap .tr-search-tag-btn--active {
    background-color: var(--tr-primary) !important;
    border-color: var(--tr-primary) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(0, 53, 71, 0.25) !important;
}
.tr-search-tag-btn__count {
    font-size: 0.7rem;
    opacity: 0.65;
}

/* ------------------------------------------------------------------
   Filter actions row
   ------------------------------------------------------------------ */
.tr-search-wrap .tr-search-form__filter-actions {
    display: flex !important;
    justify-content: flex-end !important;
    padding-top: 12px !important;
    border-top: 1px solid var(--tr-border-light) !important;
    margin-top: 12px !important;
}
.tr-search-wrap .tr-search-form__reset {
    background: none !important;
    border: 1px solid var(--tr-border) !important;
    border-radius: 6px !important;
    padding: 7px 16px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: var(--tr-text-muted) !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}
.tr-search-wrap .tr-search-form__reset:hover {
    border-color: var(--tr-accent) !important;
    color: var(--tr-accent) !important;
}
.tr-search-wrap .tr-search-form__reset--done {
    border-color: var(--tr-primary) !important;
    color: var(--tr-primary) !important;
}

/* ------------------------------------------------------------------
   Search results — article list cards
   Reuse tr-article-list-item but tighten up specifics
   ------------------------------------------------------------------ */
.tr-search-results .tr-article-list-item {
    animation: tr-fadeup 0.35s ease both;
}
.tr-search-results .tr-article-list-item:nth-child(2)  { animation-delay: 0.05s; }
.tr-search-results .tr-article-list-item:nth-child(3)  { animation-delay: 0.10s; }
.tr-search-results .tr-article-list-item:nth-child(4)  { animation-delay: 0.15s; }
.tr-search-results .tr-article-list-item:nth-child(5)  { animation-delay: 0.20s; }
.tr-search-results .tr-article-list-item:nth-child(6)  { animation-delay: 0.25s; }
.tr-search-results .tr-article-list-item:nth-child(7)  { animation-delay: 0.30s; }
.tr-search-results .tr-article-list-item:nth-child(8)  { animation-delay: 0.35s; }
.tr-search-results .tr-article-list-item:nth-child(9)  { animation-delay: 0.40s; }
.tr-search-results .tr-article-list-item:nth-child(10) { animation-delay: 0.45s; }

@keyframes tr-fadeup {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* No-image placeholder */
.tr-article-list-item__image--placeholder {
    background-color: var(--tr-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}
.tr-article-list-item__image--placeholder span {
    font-size: 0.75rem;
    color: var(--tr-text-muted);
}

/* Keyword highlight */
.tr-search-highlight {
    background-color: #fff3cd;
    color: var(--tr-text-primary);
    padding: 0 2px;
    border-radius: 2px;
    font-weight: 600;
}

/* Result tags */
.tr-search-result-tags {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
.tr-search-result-tag {
    font-size: 0.78rem;
    color: var(--tr-primary);
    background-color: var(--tr-primary-subtle);
    padding: 2px 8px;
    border-radius: 10px;
    transition: all 0.15s ease;
}
.tr-search-result-tag:hover {
    background-color: var(--tr-primary);
    color: #ffffff;
}
.tr-search-result-tag--active {
    background-color: var(--tr-primary);
    color: #ffffff;
}

/* ------------------------------------------------------------------
   Pagination
   ------------------------------------------------------------------ */
.tr-search-pagination {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    justify-content: center !important;
    padding: 2rem 0 1rem !important;
    list-style: none !important;
    margin: 0 !important;
}
.tr-search-pagination__btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 40px !important;
    height: 40px !important;
    padding: 0 10px !important;
    border-radius: 6px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: var(--tr-text-secondary) !important;
    background-color: #ffffff !important;
    border: 1px solid var(--tr-border) !important;
    transition: all 0.15s ease !important;
    text-decoration: none !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06) !important;
}
.tr-search-pagination__btn:hover {
    background-color: var(--tr-primary-subtle) !important;
    border-color: var(--tr-primary) !important;
    color: var(--tr-primary) !important;
    transform: translateY(-1px) !important;
}
.tr-search-pagination__btn--active {
    background-color: var(--tr-primary) !important;
    border-color: var(--tr-primary) !important;
    color: #ffffff !important;
    pointer-events: none !important;
    box-shadow: 0 2px 8px rgba(0, 53, 71, 0.25) !important;
}

/* ------------------------------------------------------------------
   No results / empty states
   ------------------------------------------------------------------ */
.tr-search-no-results,
.tr-search-empty-state {
    text-align: center;
    padding: 3rem 2rem;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    animation: tr-fadeup 0.4s ease both;
}
.tr-search-no-results__icon,
.tr-search-empty-state__icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
}
.tr-search-no-results__title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.tr-search-no-results__desc {
    color: var(--tr-text-secondary);
    margin-bottom: 1.5rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}
.tr-search-empty-state__text {
    color: var(--tr-text-secondary);
    font-size: 1.05rem;
    max-width: 480px;
    margin: 0 auto;
}


/* ------------------------------------------------------------------
   Dropdown fix — prevent text cutoff
   ------------------------------------------------------------------ */
.tr-search-wrap .tr-search-form__select {
    height: auto !important;
    min-height: 44px !important;
    line-height: 1.4 !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    overflow: visible !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

/* ------------------------------------------------------------------
   Search scope — Title Only / Title & Content
   ------------------------------------------------------------------ */
.tr-search-wrap .tr-search-form__scope {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-top: 10px !important;
    flex-wrap: wrap !important;
}
.tr-search-wrap .tr-search-form__scope-label {
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: var(--tr-text-secondary) !important;
    white-space: nowrap !important;
}
.tr-search-wrap .tr-search-form__scope-options {
    display: flex !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}
.tr-search-wrap .tr-search-form__scope-option {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 5px 14px !important;
    border: 1px solid var(--tr-border) !important;
    border-radius: 20px !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    color: var(--tr-text-secondary) !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    user-select: none !important;
}
.tr-search-wrap .tr-search-form__scope-option:hover {
    border-color: var(--tr-primary) !important;
    color: var(--tr-primary) !important;
    background-color: var(--tr-primary-subtle) !important;
}
/* Hide native radio, style the label as the pill */
.tr-search-wrap .tr-search-form__scope-option input[type="radio"] {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}
/* Active pill when radio is checked */
.tr-search-wrap .tr-search-form__scope-option:has(input[type="radio"]:checked) {
    background-color: var(--tr-primary) !important;
    border-color: var(--tr-primary) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
}


/* ==========================================================================
   PAID MEMBERSHIPS PRO — Paywall Gate & Premium Badges
   ========================================================================== */

/* ------------------------------------------------------------------
   Premium badge — shown on cards/list items for non-members
   ------------------------------------------------------------------ */
.tr-premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #c9a227 0%, #a07d1a 100%);
    color: #ffffff;
    padding: 3px 8px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: var(--tr-radius-sm);
    margin-bottom: var(--tr-space-sm);
    margin-left: 4px;
    vertical-align: middle;
    box-shadow: 0 1px 4px rgba(192, 155, 45, 0.35);
    white-space: nowrap;
}

/* Standalone on its own line in the article header */
.tr-single-post__header .tr-premium-badge {
    display: inline-flex;
    margin-left: 0;
    margin-bottom: var(--tr-space-sm);
    font-size: 0.75rem;
    padding: 4px 12px;
}

/* ------------------------------------------------------------------
   Paywall preview fade-out
   ------------------------------------------------------------------ */
.tr-paywall-preview {
    position: relative;
    overflow: hidden;
    max-height: 220px;
}

.tr-paywall-preview::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(255, 255, 255, 0.6) 40%,
        rgba(255, 255, 255, 0.97) 100%
    );
    pointer-events: none;
}

.tr-paywall-preview p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--tr-text-primary);
}

/* ------------------------------------------------------------------
   Paywall gate box
   ------------------------------------------------------------------ */
.tr-paywall-gate {
    position: relative;
    margin: 0 0 var(--tr-space-2xl);
    clear: both;
}

.tr-paywall-gate__box {
    background: #ffffff;
    border: 1px solid var(--tr-border-light);
    border-top: 4px solid var(--tr-primary);
    border-radius: var(--tr-radius-lg);
    padding: var(--tr-space-2xl) var(--tr-space-xl);
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
    max-width: 580px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Lock icon */
.tr-paywall-gate__icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--tr-primary) 0%, var(--tr-primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--tr-space-lg);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 53, 71, 0.25);
}

.tr-paywall-gate__title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--tr-text-primary);
    margin: 0 0 var(--tr-space-md);
    line-height: 1.3;
    text-transform: none;
    letter-spacing: 0;
}

.tr-paywall-gate__desc {
    font-size: 1rem;
    color: var(--tr-text-secondary);
    line-height: 1.7;
    margin: 0 0 var(--tr-space-xl);
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA buttons */
.tr-paywall-gate__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--tr-space-md);
    margin-bottom: var(--tr-space-xl);
}

.tr-paywall-gate__subscribe-btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, var(--tr-accent) 0%, var(--tr-accent-hover) 100%);
    color: #ffffff;
    border: none;
    border-radius: var(--tr-radius-md);
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 14px rgba(201, 48, 44, 0.35);
    transition: all 0.2s ease;
}

.tr-paywall-gate__subscribe-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 48, 44, 0.45);
    color: #ffffff;
    text-decoration: none;
}

.tr-paywall-gate__login-link {
    font-size: 0.9rem;
    color: var(--tr-primary);
    font-weight: 600;
    text-decoration: underline;
    transition: color 0.15s ease;
}

.tr-paywall-gate__login-link:hover {
    color: var(--tr-primary-dark);
}

/* Feature bullet list */
.tr-paywall-gate__features {
    border-top: 1px solid var(--tr-border-light);
    padding-top: var(--tr-space-lg);
}

.tr-paywall-gate__features ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--tr-space-sm);
}

.tr-paywall-gate__features li {
    font-size: 0.875rem;
    color: var(--tr-text-secondary);
    font-weight: 500;
}

/* ------------------------------------------------------------------
   Admin bar premium toggle colours
   ------------------------------------------------------------------ */
#wpadminbar .tr-adminbar-premium-on > .ab-item {
    background-color: #1a5f7a !important;
    color: #ffffff !important;
}
#wpadminbar .tr-adminbar-premium-off > .ab-item {
    color: #f0c040 !important;
}

/* ------------------------------------------------------------------
   Member welcome box (PMPro account page)
   ------------------------------------------------------------------ */
.tr-member-welcome {
    background: linear-gradient(135deg, var(--tr-primary) 0%, var(--tr-primary-dark) 100%);
    border-radius: var(--tr-radius-lg);
    padding: var(--tr-space-xl);
    margin-bottom: var(--tr-space-xl);
    color: #ffffff;
}

.tr-member-welcome__inner {
    display: flex;
    align-items: center;
    gap: var(--tr-space-lg);
}

.tr-member-welcome__avatar img {
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.4);
    display: block;
}

.tr-member-welcome__name {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 4px;
    color: #ffffff;
}

.tr-member-welcome__level {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.tr-member-welcome__expiry {
    font-size: 0.85rem;
    opacity: 0.75;
}

/* ------------------------------------------------------------------
   PMPro global form style overrides — match TR design language
   ------------------------------------------------------------------ */
.pmpro_checkout h3,
.pmpro_account h3 {
    font-family: var(--tr-font-heading);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--tr-primary);
    padding-bottom: var(--tr-space-sm);
    margin-bottom: var(--tr-space-lg);
}

.pmpro_checkout .pmpro_btn,
.pmpro_account .pmpro_btn,
#pmpro_form input[type="submit"],
#pmpro_checkout_button {
    background: linear-gradient(135deg, var(--tr-accent) 0%, var(--tr-accent-hover) 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: var(--tr-radius-md) !important;
    padding: 12px 28px !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    box-shadow: 0 3px 12px rgba(201, 48, 44, 0.3) !important;
    transition: all 0.2s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
}

#pmpro_form input[type="submit"]:hover,
#pmpro_checkout_button:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 5px 16px rgba(201, 48, 44, 0.4) !important;
}

/* Membership levels table */
.pmpro_levels_table {
    border-collapse: collapse;
    width: 100%;
}

.pmpro_levels_table th {
    background-color: var(--tr-primary);
    color: #ffffff;
    padding: var(--tr-space-md);
    text-align: left;
    font-family: var(--tr-font-heading);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
}

.pmpro_levels_table td {
    padding: var(--tr-space-md);
    border-bottom: 1px solid var(--tr-border-light);
    vertical-align: middle;
}

.pmpro_levels_table tr:hover td {
    background-color: var(--tr-primary-subtle);
}

/* Login / account forms */
.pmpro_login_wrap input[type="text"],
.pmpro_login_wrap input[type="email"],
.pmpro_login_wrap input[type="password"],
#pmpro_form input[type="text"],
#pmpro_form input[type="email"],
#pmpro_form input[type="password"] {
    border: 2px solid var(--tr-border) !important;
    border-radius: var(--tr-radius-sm) !important;
    padding: 10px 14px !important;
    font-size: 1rem !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.pmpro_login_wrap input:focus,
#pmpro_form input[type="text"]:focus,
#pmpro_form input[type="email"]:focus,
#pmpro_form input[type="password"]:focus {
    outline: none !important;
    border-color: var(--tr-primary) !important;
    box-shadow: 0 0 0 3px rgba(0, 53, 71, 0.1) !important;
}

/* PMPro notices */
.pmpro_message {
    border-left: 4px solid var(--tr-primary) !important;
    background-color: var(--tr-primary-subtle) !important;
    padding: var(--tr-space-md) var(--tr-space-lg) !important;
    border-radius: 0 var(--tr-radius-sm) var(--tr-radius-sm) 0 !important;
    color: var(--tr-text-primary) !important;
}

.pmpro_error {
    border-left-color: var(--tr-accent) !important;
    background-color: rgba(201, 48, 44, 0.05) !important;
}


/* ==========================================================================
   e-EDITION ARCHIVE — Archive grid, viewer, paywall gate
   ========================================================================== */

/* ------------------------------------------------------------------
   Year filter tabs
   ------------------------------------------------------------------ */
.tr-eedition-archive {
    width: 100%;
}

.tr-eedition-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--tr-border-light);
}

.tr-eedition-filter__tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border: 1px solid var(--tr-border);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--tr-text-secondary);
    text-decoration: none;
    transition: all 0.15s ease;
    background: #ffffff;
}

.tr-eedition-filter__tab:hover {
    border-color: var(--tr-primary);
    color: var(--tr-primary);
    background: var(--tr-primary-subtle);
    text-decoration: none;
}

.tr-eedition-filter__tab--active {
    background: var(--tr-primary) !important;
    border-color: var(--tr-primary) !important;
    color: #ffffff !important;
}

.tr-eedition-filter__count {
    background: rgba(255,255,255,0.25);
    font-size: 0.7rem;
    padding: 1px 6px;
    border-radius: 10px;
    font-weight: 700;
}

.tr-eedition-filter__tab--active .tr-eedition-filter__count {
    background: rgba(255,255,255,0.3);
    color: #ffffff;
}

.tr-eedition-archive__count {
    font-size: 0.9rem;
    color: var(--tr-text-muted);
    margin-bottom: 1.25rem;
}

/* ------------------------------------------------------------------
   Edition grid
   ------------------------------------------------------------------ */
.tr-eedition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 600px) {
    .tr-eedition-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* ------------------------------------------------------------------
   Edition card
   ------------------------------------------------------------------ */
.tr-eedition-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tr-eedition-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.14);
}

/* Cover image area */
.tr-eedition-card__cover-link {
    display: block;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.tr-eedition-card__cover {
    position: relative;
    aspect-ratio: 3 / 4;
    background: var(--tr-bg-light);
    overflow: hidden;
}

.tr-eedition-card__cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.tr-eedition-card:hover .tr-eedition-card__cover-img {
    transform: scale(1.03);
}

.tr-eedition-card__cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8ecef 0%, #d4dde4 100%);
    font-size: 3rem;
}

/* Lock overlay */
.tr-eedition-card__lock-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #ffffff;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.tr-eedition-card:hover .tr-eedition-card__lock-overlay {
    opacity: 1;
}

.tr-eedition-card__lock-overlay span {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Card info */
.tr-eedition-card__info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.tr-eedition-card__date {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--tr-accent);
    display: block;
}

.tr-eedition-card__title {
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.tr-eedition-card__title a {
    color: var(--tr-text-primary);
    text-decoration: none;
}

.tr-eedition-card__title a:hover {
    color: var(--tr-primary);
}

.tr-eedition-card__issue {
    font-size: 0.75rem;
    color: var(--tr-text-muted);
    margin: 0;
}

/* Card action buttons */
.tr-eedition-card__actions {
    margin-top: auto;
    padding-top: 10px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tr-eedition-card__btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.tr-eedition-card__btn--preview {
    background: var(--tr-bg-light);
    color: var(--tr-text-secondary);
    border: 1px solid var(--tr-border);
}

.tr-eedition-card__btn--preview:hover {
    background: var(--tr-primary-subtle);
    color: var(--tr-primary);
    border-color: var(--tr-primary);
    text-decoration: none;
}

.tr-eedition-card__btn--subscribe {
    background: linear-gradient(135deg, var(--tr-accent) 0%, var(--tr-accent-hover) 100%);
    color: #ffffff;
    border: none;
}

.tr-eedition-card__btn--subscribe:hover {
    transform: translateY(-1px);
    color: #ffffff;
    text-decoration: none;
}

/* ------------------------------------------------------------------
   Archive pagination
   ------------------------------------------------------------------ */
.tr-eedition-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    padding: 1.5rem 0;
}

.tr-eedition-pagination__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--tr-text-secondary);
    background: #ffffff;
    border: 1px solid var(--tr-border);
    transition: all 0.15s ease;
    text-decoration: none;
}

.tr-eedition-pagination__btn:hover {
    background: var(--tr-primary-subtle);
    border-color: var(--tr-primary);
    color: var(--tr-primary);
    text-decoration: none;
}

.tr-eedition-pagination__btn--active {
    background: var(--tr-primary);
    border-color: var(--tr-primary);
    color: #ffffff;
    pointer-events: none;
}

/* Empty state */
.tr-eedition-empty {
    text-align: center;
    padding: 3rem;
    color: var(--tr-text-muted);
}

.tr-eedition-empty span {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

/* ------------------------------------------------------------------
   e-Edition single viewer
   ------------------------------------------------------------------ */
.tr-eedition-viewer-wrap {
    width: 100%;
}

.tr-eedition-viewer-header {
    padding-bottom: 1.25rem;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--tr-text-primary);
    position: relative;
}

.tr-eedition-viewer-header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--tr-accent);
}

.tr-eedition-viewer-header__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.tr-eedition-viewer-header__date {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--tr-accent);
}

.tr-eedition-viewer-header__issue {
    font-size: 0.8rem;
    color: var(--tr-text-muted);
    font-weight: 500;
}

.tr-eedition-viewer-header__title {
    font-size: 1.75rem;
    margin: 0 0 1rem;
    line-height: 1.2;
}

.tr-eedition-viewer-header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tr-eedition-viewer-header__back {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--tr-primary);
    text-decoration: none;
    margin-left: auto;
    transition: color 0.15s ease;
}

.tr-eedition-viewer-header__back:hover {
    color: var(--tr-primary-dark);
}

/* PDF iframe viewer */
.tr-eedition-pdf-viewer {
    width: 100%;
    background: var(--tr-bg-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    margin-bottom: 1.5rem;
}

.tr-eedition-pdf-iframe {
    display: block;
    width: 100%;
    height: 80vh;
    min-height: 600px;
    border: none;
    background: #525659;
}

.tr-eedition-pdf-fallback {
    padding: 16px;
    text-align: center;
    background: #f9f9f9;
    border-top: 1px solid var(--tr-border-light);
    font-size: 0.875rem;
    color: var(--tr-text-muted);
}

.tr-eedition-pdf-fallback p {
    margin: 0 0 8px;
}

/* ------------------------------------------------------------------
   e-Edition paywall gate (viewer context)
   ------------------------------------------------------------------ */
.tr-eedition-paywall {
    position: relative;
    margin-bottom: 2rem;
}

.tr-eedition-paywall__cover {
    position: relative;
    max-width: 300px;
    margin: 0 auto 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.tr-eedition-paywall__cover-img {
    display: block;
    width: 100%;
    height: auto;
    filter: blur(4px);
    transform: scale(1.05);
}

.tr-eedition-paywall__cover-blur {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 30%, rgba(0,0,0,0.6) 100%);
}

.tr-eedition-paywall__box {
    background: #ffffff;
    border: 1px solid var(--tr-border-light);
    border-top: 4px solid var(--tr-primary);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    max-width: 520px;
    margin: 0 auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.tr-eedition-paywall__icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--tr-primary) 0%, var(--tr-primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(0,53,71,0.25);
}

.tr-eedition-paywall__title {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 0 1rem;
    color: var(--tr-text-primary);
}

.tr-eedition-paywall__desc {
    font-size: 1rem;
    color: var(--tr-text-secondary);
    line-height: 1.7;
    margin: 0 0 1.75rem;
}

.tr-eedition-paywall__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.tr-eedition-paywall__subscribe-btn {
    width: 100%;
    max-width: 260px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
}

.tr-eedition-paywall__login {
    font-size: 0.9rem;
    color: var(--tr-primary);
    font-weight: 600;
    text-decoration: underline;
}

.tr-eedition-paywall__login:hover {
    color: var(--tr-primary-dark);
}

.tr-eedition-paywall__features {
    list-style: none;
    margin: 0;
    padding: 1.25rem 0 0;
    border-top: 1px solid var(--tr-border-light);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tr-eedition-paywall__features li {
    font-size: 0.875rem;
    color: var(--tr-text-secondary);
    font-weight: 500;
}

/* ------------------------------------------------------------------
   Adjacent edition navigation
   ------------------------------------------------------------------ */
.tr-eedition-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 1.25rem 0;
    border-top: 1px solid var(--tr-border-light);
    margin-top: 1.5rem;
}

.tr-eedition-nav__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #ffffff;
    border: 1px solid var(--tr-border);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--tr-text-secondary);
    text-decoration: none;
    transition: all 0.15s ease;
    max-width: 48%;
}

.tr-eedition-nav__btn:hover {
    background: var(--tr-primary-subtle);
    border-color: var(--tr-primary);
    color: var(--tr-primary);
    text-decoration: none;
}

.tr-eedition-nav__btn--next {
    margin-left: auto;
    text-align: right;
}

/* ------------------------------------------------------------------
   Sidebar recent editions list
   ------------------------------------------------------------------ */
.tr-eedition-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tr-eedition-sidebar-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.tr-eedition-sidebar-item__thumb {
    flex-shrink: 0;
}

.tr-eedition-sidebar-item__info {
    flex: 1;
    min-width: 0;
}

.tr-eedition-sidebar-item__title {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--tr-text-primary);
    text-decoration: none;
    line-height: 1.3;
    margin-bottom: 2px;
}

.tr-eedition-sidebar-item__title:hover {
    color: var(--tr-primary);
}

.tr-eedition-sidebar-item__date {
    font-size: 0.75rem;
    color: var(--tr-text-muted);
    display: block;
}

/* Error state */
.tr-eedition-error {
    color: var(--tr-accent);
    font-weight: 600;
    padding: 1rem;
    background: rgba(201,48,44,0.06);
    border-left: 3px solid var(--tr-accent);
    border-radius: 0 6px 6px 0;
}


/* ==========================================================================
   e-EDITION ADMIN — PDF source tabs & storage guide (v1.6.2)
   ========================================================================== */

.tr-source-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 12px;
    border-bottom: 2px solid #e0e0e0;
}

.tr-source-tab {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    color: #666;
    transition: all 0.15s ease;
}

.tr-source-tab:hover {
    color: #2271b1;
}

.tr-source-tab--active {
    color: #2271b1;
    border-bottom-color: #2271b1;
}

.tr-source-panel {
    padding-top: 12px;
}

.tr-storage-guide {
    background: #f0f6fc;
    border: 1px solid #c5d9ed;
    border-radius: 6px;
    padding: 12px 14px;
    font-size: 12px;
    color: #444;
    line-height: 1.6;
}

.tr-storage-guide ol {
    margin: 6px 0 0 16px;
    padding: 0;
}

.tr-storage-guide li {
    margin-bottom: 4px;
}

.tr-storage-guide code {
    background: #dce8f5;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 11px;
}
