/* Trading Card Nerd Elementor widgets — frontend styles */

/* Scope CSS vars globally so every widget has them, no matter where
   Elementor wraps them in its containers. */
:root,
body {
    /* Brand purple — #ba00ff (Trading Card Nerd logo). Red kept as secondary
       alert color only ("breaking" / "live" badges). */
    --tcn-primary: #ba00ff;        /* brand */
    --tcn-primary-dark: #9400cc;   /* hover / buttons */
    --tcn-primary-darker: #5c0080; /* text on light bg — passes WCAG AA */
    --tcn-accent: #ffb703;         /* warm yellow (HOT badges, ticker dot) */
    --tcn-alert: #dc2626;          /* red — reserved for breaking/alert */
    --tcn-secondary: #1d3557;
    --tcn-dark: #0f1419;
    --tcn-bg: #ffffff;
    --tcn-bg-alt: #f7f8fa;
    --tcn-border: #e5e7eb;
    --tcn-text: #1a1a1a;
    --tcn-text-muted: #6b7280;
}

/* Shared base for every TCN widget root — apply font + box-sizing
   regardless of Elementor column nesting. */
.tcn-top-bar,
.tcn-header,
.tcn-nav,
.tcn-ticker-bar,
.tcn-hero-section,
.tcn-section,
.tcn-trending-box,
.tcn-market-watch,
.tcn-newsletter,
.tcn-footer {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    box-sizing: border-box;
    line-height: 1.6;
}
.tcn-top-bar *, .tcn-header *, .tcn-nav *, .tcn-ticker-bar *,
.tcn-hero-section *, .tcn-section *, .tcn-trending-box *,
.tcn-market-watch *, .tcn-newsletter *, .tcn-footer * {
    box-sizing: border-box;
}
.tcn-top-bar a, .tcn-header a, .tcn-nav a, .tcn-ticker-bar a,
.tcn-hero-section a, .tcn-section a, .tcn-trending-box a,
.tcn-market-watch a, .tcn-newsletter a, .tcn-footer a {
    text-decoration: none;
    color: inherit;
}
.tcn-top-bar img, .tcn-header img, .tcn-hero-section img,
.tcn-section img, .tcn-footer img {
    max-width: 100%;
    display: block;
}

/* WordPress admin bar compatibility — when the user is logged in, push the
   sticky header below the admin bar so it doesn't cover it. */
.admin-bar .tcn-header-sticky { top: 32px; }
@media screen and (max-width: 782px) {
    .admin-bar .tcn-header-sticky { top: 46px; }
}

/* =========================================================================
   FULL-BLEED — scoped ONLY to the two combined widgets:
     .elementor-widget-tcn_complete_header
     .elementor-widget-tcn_complete_footer
   No other TCN widget is affected. These widgets render multiple bars in a
   single output, so they MUST span the full viewport width regardless of
   whatever Elementor section/column/container they're dropped into.
   Requires :has() (Chrome 105+, Safari 15.4+, Firefox 121+).
   ========================================================================= */

/* The widget and its Elementor wrapper fill the container fully. */
.elementor-widget.elementor-widget-tcn_complete_header,
.elementor-widget.elementor-widget-tcn_complete_footer,
.elementor-widget.elementor-widget-tcn_complete_header > .elementor-widget-container,
.elementor-widget.elementor-widget-tcn_complete_footer > .elementor-widget-container {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* The combined widget's root wrapper itself is full width. Also contain any
   child overflow (e.g. a slight-too-wide newsletter box on narrow phones)
   so it doesn't produce a horizontal page scrollbar. */
.tcn-complete-header,
.tcn-complete-footer {
    width: 100%;
    max-width: none;
    overflow-x: clip;
}
.tcn-complete-header,
.tcn-complete-footer,
.tcn-complete-header *,
.tcn-complete-footer * {
    box-sizing: border-box;
}

/* Any Elementor section / column / flex container that contains one of the
   two combined widgets: zero its padding, margin, gap, and width caps so the
   widget's bars actually reach the screen edges. */
.elementor-section:has(> .elementor-container > .elementor-row > .elementor-column .elementor-widget-tcn_complete_header),
.elementor-section:has(> .elementor-container > .elementor-row > .elementor-column .elementor-widget-tcn_complete_footer),
.elementor-section:has(.elementor-widget-tcn_complete_header),
.elementor-section:has(.elementor-widget-tcn_complete_footer),
.elementor-column:has(.elementor-widget-tcn_complete_header),
.elementor-column:has(.elementor-widget-tcn_complete_footer),
.e-con:has(.elementor-widget-tcn_complete_header),
.e-con:has(.elementor-widget-tcn_complete_footer),
.e-con-inner:has(.elementor-widget-tcn_complete_header),
.e-con-inner:has(.elementor-widget-tcn_complete_footer) {
    padding: 0 !important;
    margin: 0 !important;
    --padding-top: 0px;
    --padding-bottom: 0px;
    --padding-left: 0px;
    --padding-right: 0px;
    --margin-top: 0px;
    --margin-bottom: 0px;
    --gap: 0px;
    --row-gap: 0px;
    --column-gap: 0px;
    --widgets-spacing: 0px;
    max-width: none !important;
    width: 100% !important;
}

/* Elementor's inner flex wrapper inside columns holding the combined widgets. */
.elementor-column:has(.elementor-widget-tcn_complete_header) > .elementor-column-wrap,
.elementor-column:has(.elementor-widget-tcn_complete_footer) > .elementor-column-wrap,
.elementor-column:has(.elementor-widget-tcn_complete_header) > .elementor-column-wrap > .elementor-widget-wrap,
.elementor-column:has(.elementor-widget-tcn_complete_footer) > .elementor-column-wrap > .elementor-widget-wrap {
    padding: 0 !important;
}

/* Top Bar */
.tcn-top-bar {
    background: var(--tcn-dark);
    color: #fff;
    padding: 8px 0;
    font-size: 12px;
}
.tcn-top-bar-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.tcn-top-bar-left { display: flex; gap: 18px; opacity: 0.85; flex-wrap: wrap; }
.tcn-top-bar-right { display: flex; gap: 14px; flex-wrap: wrap; }
.tcn-top-bar-right a { opacity: 0.85; transition: opacity 0.2s, color 0.2s; }
.tcn-top-bar-right a:hover { opacity: 1; color: var(--tcn-accent); }

/* Header */
.tcn-header {
    background: #fff;
    border-bottom: 1px solid var(--tcn-border);
    padding: 18px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.tcn-header-sticky {
    position: sticky;
    top: 0;
    z-index: 100;
}
.tcn-header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.tcn-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.tcn-logo img { height: 48px; width: auto; }
.tcn-logo-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 24px;
    letter-spacing: 2px;
    color: var(--tcn-secondary);
}
.tcn-logo-text span { color: var(--tcn-primary); }

.tcn-search-box {
    flex: 1;
    max-width: 420px;
    position: relative;
    margin: 0;
}
.tcn-search-box input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border: 1px solid var(--tcn-border);
    border-radius: 50px;
    font-size: 14px;
    font-family: inherit;
    background: var(--tcn-bg-alt);
    transition: border-color 0.2s, background 0.2s;
}
.tcn-search-box input:focus {
    outline: none;
    border-color: var(--tcn-primary);
    background: #fff;
}
.tcn-search-box::before {
    font-family: 'dashicons';
    content: "\f179";
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    opacity: 0.6;
    pointer-events: none;
    line-height: 1;
}

.tcn-header-actions { display: flex; gap: 10px; }
.tcn-btn {
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.tcn-btn-primary { background: var(--tcn-primary-dark); color: #fff; }
.tcn-btn-primary:hover { background: var(--tcn-primary-darker); transform: translateY(-1px); color: #fff; }
.tcn-btn-outline { background: transparent; border: 1px solid var(--tcn-border); color: var(--tcn-text); }
.tcn-btn-outline:hover { border-color: var(--tcn-dark); }

/* ========== OVERLAP LOGO (logo extends down into nav) ==========
   Toggled via "Overlap Logo Into Nav" switch on the Complete Header /
   Header widget. Logo is absolute-positioned, sized large, and z-indexed
   above the nav. Header content + nav items shift right to clear it. */
.tcn-header.tcn-logo-overlap {
    position: relative;
    overflow: visible;
    z-index: 20;
}
.tcn-header.tcn-logo-overlap .tcn-header-content {
    padding-left: 200px;
    position: relative;
}
.tcn-header.tcn-logo-overlap .tcn-logo {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-35%);
    z-index: 30;
    margin: 0;
}
.tcn-header.tcn-logo-overlap .tcn-logo img {
    height: 140px;
    width: auto;
    display: block;
    max-width: none;
}
/* Ghost flex item reserves space for the logo overhang in the FIRST row only.
   When nav items wrap to a second row they start from the left edge again
   (instead of having a permanent 210px indent on every row). */
.tcn-complete-header.tcn-has-logo-overlap .tcn-nav .tcn-nav-content::before,
.tcn-header.tcn-logo-overlap + .tcn-nav .tcn-nav-content::before {
    content: "";
    flex: 0 0 200px;
    height: 1px;
}

/* On mobile the overlap would crowd everything — shrink logo and drop the
   ghost reservation so menu items can fill the full width. */
@media (max-width: 768px) {
    .tcn-header.tcn-logo-overlap .tcn-header-content {
        padding-left: 90px;
    }
    .tcn-header.tcn-logo-overlap .tcn-logo { left: 12px; }
    .tcn-header.tcn-logo-overlap .tcn-logo img { height: 72px; }
    .tcn-complete-header.tcn-has-logo-overlap .tcn-nav .tcn-nav-content::before,
    .tcn-header.tcn-logo-overlap + .tcn-nav .tcn-nav-content::before {
        display: none;
    }
}

/* Mobile hamburger toggle — hidden by default, shown <=768px via media query */
.tcn-mobile-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--tcn-border);
    border-radius: 6px;
    cursor: pointer;
    padding: 0;
    width: 42px;
    height: 42px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-shrink: 0;
}
.tcn-mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--tcn-text);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.2s;
    transform-origin: center;
}
body.tcn-menu-open .tcn-mobile-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.tcn-menu-open .tcn-mobile-toggle span:nth-child(2) { opacity: 0; }
body.tcn-menu-open .tcn-mobile-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav */
.tcn-nav {
    /* Fallback first, then CSS var. */
    background: #1d3557;
    background: var(--tcn-secondary, #1d3557);
    border-bottom: 3px solid #ba00ff;
    border-bottom-color: var(--tcn-primary, #ba00ff);
}
.tcn-nav-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-wrap: wrap;          /* wrap overflow items to a new row so they stay visible */
    gap: 2px 4px;
    align-items: center;
}
.tcn-nav-content a,
.tcn-nav-content li a {
    color: #fff !important;
    padding: 14px 18px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
    transition: background 0.2s;
    position: relative;
    display: inline-block;
    text-decoration: none;
}
.tcn-nav-content a:hover,
.tcn-nav-content a.active,
.tcn-nav-content .current-menu-item > a {
    background: #9400cc;
    background: var(--tcn-primary-dark, #9400cc);
    color: #fff !important;
}
.tcn-nav-content a.hot::after {
    content: "HOT";
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--tcn-accent);
    color: var(--tcn-dark);
    font-size: 8px;
    padding: 1px 4px;
    border-radius: 2px;
    font-weight: 800;
}
.tcn-nav-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 2px 4px;
}

/* ===== Nav Dropdowns ===== */
.tcn-nav-content .tcn-nav-item {
    position: relative;
    display: inline-block;
}
.tcn-nav-content .tcn-nav-caret {
    display: inline-block;
    font-size: 10px;
    margin-left: 4px;
    opacity: 0.7;
    transition: transform 0.2s;
}
.tcn-nav-content .tcn-nav-item.has-submenu:hover .tcn-nav-caret {
    transform: rotate(180deg);
}
.tcn-nav-content .tcn-nav-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #1d3557;
    background: var(--tcn-secondary, #1d3557);
    border-top: 3px solid #ba00ff;
    border-top-color: var(--tcn-primary, #ba00ff);
    padding: 4px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
    z-index: 200;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    gap: 0;
}
.tcn-nav-content .tcn-nav-item.has-submenu:hover .tcn-nav-submenu,
.tcn-nav-content .tcn-nav-item.has-submenu:focus-within .tcn-nav-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.tcn-nav-content .tcn-nav-submenu a {
    display: block !important;
    padding: 11px 20px !important;
    color: #fff !important;
    font-size: 12px !important;
    letter-spacing: 0.6px !important;
    background: transparent !important;
    border-left: 3px solid transparent !important;
    white-space: nowrap;
    text-transform: uppercase;
    font-weight: 700;
}
.tcn-nav-content .tcn-nav-submenu a:hover {
    background: rgba(186, 0, 255, 0.18) !important;
    border-left-color: var(--tcn-primary, #ba00ff) !important;
}

/* Dropdowns become inline expandable on mobile (no hover on touch) */
@media (max-width: 768px) {
    .tcn-nav-content .tcn-nav-item { display: block; width: 100%; }
    .tcn-nav-content .tcn-nav-submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-top: none;
        background: rgba(0, 0, 0, 0.25);
        padding-left: 14px;
        min-width: 0;
        width: 100%;
    }
    .tcn-nav-content .tcn-nav-submenu a {
        padding: 10px 18px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    }
    .tcn-nav-content .tcn-nav-caret { display: none; }
}

/* Ticker */
.tcn-ticker-bar {
    background: linear-gradient(90deg, var(--tcn-primary) 0%, var(--tcn-primary-dark) 100%);
    color: #fff;
    padding: 10px 0;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.tcn-ticker-label {
    background: var(--tcn-dark);
    padding: 6px 14px;
    margin-left: 24px;
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 1.5px;
    border-radius: 3px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}
.tcn-ticker-label::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--tcn-accent);
    border-radius: 50%;
    animation: tcn-pulse 1.5s infinite;
}
@keyframes tcn-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.tcn-ticker-wrapper { flex: 1; overflow: hidden; margin: 0 20px; }
.tcn-ticker {
    display: flex;
    gap: 48px;
    animation: tcn-scroll 45s linear infinite;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 500;
}
.tcn-ticker span { display: inline-flex; align-items: center; }
.tcn-ticker span::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--tcn-accent);
    border-radius: 50%;
    margin-right: 10px;
    vertical-align: middle;
}
.tcn-ticker a {
    color: inherit;
    cursor: pointer;
    transition: color 0.15s;
    text-decoration: none;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.25);
}
.tcn-ticker a:hover {
    color: var(--tcn-accent);
    border-bottom-color: var(--tcn-accent);
}
@keyframes tcn-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.tcn-ticker-wrapper:hover .tcn-ticker { animation-play-state: paused; }

/* Hero Grid */
.tcn-hero-section {
    max-width: 1400px;
    margin: 28px auto;
    padding: 0 24px;
}
/* Inside an Elementor column, let the column own the width + padding. */
.tcn-hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 340px 340px;
    gap: 14px;
}
.tcn-news-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: var(--tcn-dark);
    border-radius: 8px;
    transition: transform 0.3s;
    display: block;
    color: #fff;
}
.tcn-news-card:hover { transform: translateY(-3px); }
.tcn-news-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.3s ease;
    filter: brightness(1.05) saturate(1.1);
}
.tcn-news-card:hover img { transform: scale(1.06); filter: brightness(1.1) saturate(1.15); }
.tcn-card-overlay {
    position: absolute;
    inset: 0;
    padding: 22px;
    /* Lighter gradient — only the bottom ~55% dims, top stays bright so the
       image is actually visible. Title area still gets enough contrast. */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.45) 35%, rgba(0, 0, 0, 0) 60%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.tcn-card-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--tcn-primary-dark);
    color: #fff;
    padding: 5px 11px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 3px;
    margin-bottom: 10px;
    width: fit-content;
}
.tcn-card-category.wwe,
.tcn-card-category.wrestling,
.tcn-card-category.wrestling-cards { background: #b91c1c; }
.tcn-card-category.breaking { background: #991b1b; }
.tcn-card-category.pokemon { background: #b45309; color: #fff; }
.tcn-card-category.sports,
.tcn-card-category.nba,
.tcn-card-category.nfl { background: #047857; }
.tcn-card-category.review { background: #6d28d9; }
.tcn-card-category.news { background: #1e3a8a; }
.tcn-card-category.release { background: #be185d; }
.tcn-card-category.checklist { background: #0e7490; }

.tcn-card-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 6px;
    color: #fff;
}
.tcn-card-meta {
    font-size: 11px;
    opacity: 0.85;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.tcn-card-featured { grid-column: 1 / 2; grid-row: 1 / 3; }
.tcn-card-featured .tcn-card-title {
    font-size: 32px;
    line-height: 1.15;
    margin-bottom: 10px;
    font-weight: 800;
}
.tcn-card-featured .tcn-card-excerpt {
    font-size: 14px;
    opacity: 0.92;
    line-height: 1.5;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #fff;
}
.tcn-card-featured .tcn-card-overlay { padding: 28px; }

.tcn-price-tag {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--tcn-accent);
    color: var(--tcn-dark);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

/* Section */
.tcn-section {
    max-width: 1400px;
    margin: 0 auto 40px;
    padding: 0 24px;
}
.tcn-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--tcn-dark);
}
.tcn-section-heading h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--tcn-text);
}
.tcn-section-heading h2::before {
    content: "";
    width: 4px;
    height: 24px;
    background: var(--tcn-primary);
    border-radius: 2px;
}
.tcn-view-all {
    font-size: 12px;
    color: var(--tcn-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: gap 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}
.tcn-view-all:hover { gap: 8px; }

/* Latest Posts grid */
.tcn-latest-grid {
    display: grid;
    gap: 22px;
}
.tcn-latest-grid.tcn-cols-1 { grid-template-columns: 1fr; }
.tcn-latest-grid.tcn-cols-2 { grid-template-columns: 1fr 1fr; }
.tcn-latest-grid.tcn-cols-3 { grid-template-columns: repeat(3, 1fr); }
.tcn-latest-item {
    display: flex;
    gap: 14px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--tcn-border);
    cursor: pointer;
    color: inherit;
    min-width: 0;
}
.tcn-latest-item:hover h4 { color: var(--tcn-primary); }
.tcn-latest-item img {
    width: 120px;
    height: 90px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 6px;
}
.tcn-latest-item-content {
    min-width: 0;
    flex: 1;
    overflow: hidden;
}
.tcn-latest-item-content .tcn-category-tag {
    color: var(--tcn-primary-dark);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 6px;
    display: block;
}
.tcn-latest-item-content h3,
.tcn-latest-item-content h4 {
    font-size: 15px;
    line-height: 1.35;
    margin: 0 0 6px;
    font-weight: 700;
    transition: color 0.2s;
    color: var(--tcn-text);
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-family: 'Inter', sans-serif;
    letter-spacing: normal;
}
.tcn-latest-item-content .tcn-meta {
    font-size: 11px;
    color: var(--tcn-text-muted);
    display: flex;
    gap: 6px 10px;
    flex-wrap: wrap;
    align-items: center;
}
.tcn-latest-item-content .tcn-meta > span {
    white-space: nowrap;
}

/* Trending — explicit colors (no vars) + !important so nothing overrides. */
.tcn-trending-box {
    background: #0f1419 !important;
    color: #fff !important;
    border-radius: 8px;
    padding: 24px;
    height: fit-content;
}
.tcn-trending-box *,
.tcn-trending-box a { color: inherit; }
.tcn-trending-box .tcn-section-heading {
    border-bottom: 2px solid #ba00ff !important;
    border-bottom-color: var(--tcn-primary, #ba00ff) !important;
    margin-bottom: 16px;
    padding-bottom: 12px;
}
.tcn-trending-box .tcn-section-heading h2 { color: #fff !important; font-size: 22px; }
.tcn-trending-item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #222;
    cursor: pointer;
    color: inherit;
}
.tcn-trending-item:last-child { border-bottom: none; }
.tcn-trending-item:hover h5 { color: var(--tcn-accent); }
.tcn-trending-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 34px;
    color: #ba00ff !important;
    color: var(--tcn-primary, #ba00ff) !important;
    line-height: 1;
    flex-shrink: 0;
    min-width: 32px;
}
.tcn-trending-content h3,
.tcn-trending-content h5 {
    font-size: 13px;
    line-height: 1.35;
    margin: 0 0 4px;
    font-weight: 600;
    transition: color 0.2s;
    color: #fff !important;
    font-family: 'Inter', sans-serif !important;
    letter-spacing: normal !important;
    padding: 0 !important;
    border: none !important;
}
.tcn-trending-content .tcn-meta {
    font-size: 11px;
    color: #999 !important;
    display: flex;
    gap: 8px;
}

/* ============== SOCIAL FOLLOW (Follow Us panel) ============== */
.tcn-social-follow {
    background: linear-gradient(135deg, #1d3557 0%, #0a1929 100%);
    color: #fff;
    border-radius: 10px;
    padding: 22px;
    box-sizing: border-box;
}
.tcn-social-follow h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 20px;
    letter-spacing: 1.5px;
    margin: 0 0 4px;
    color: #fff;
}
.tcn-social-follow .tcn-social-desc {
    margin: 0 0 16px;
    font-size: 13px;
    opacity: 0.75;
    line-height: 1.5;
}
.tcn-social-grid {
    display: grid;
    gap: 10px;
}
.tcn-social-follow.tcn-social-grid > .tcn-social-grid { grid-template-columns: 1fr 1fr; }
.tcn-social-follow.tcn-social-list > .tcn-social-grid { grid-template-columns: 1fr; }

.tcn-social-tile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #fff !important;
    text-decoration: none !important;
    transition: transform 0.15s, background 0.15s, border-color 0.15s;
    min-width: 0;
}
.tcn-social-tile:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
}
.tcn-social-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}
.tcn-social-icon svg { width: 18px; height: 18px; display: block; }
.tcn-social-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.2;
    min-width: 0;
    flex: 1;
}
.tcn-social-name {
    font-weight: 700;
    font-size: 13px;
    color: #fff;
}
.tcn-social-label {
    font-size: 11px;
    opacity: 0.65;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* CTA pill — only visible in list layout (more room) */
.tcn-social-cta {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 10px;
    background: var(--tcn-primary-dark);
    border-radius: 50px;
    color: #fff;
    flex-shrink: 0;
}
.tcn-social-follow.tcn-social-grid .tcn-social-cta { display: none; }

/* Brand-colored icon tiles on hover */
.tcn-social-follow.tcn-social-brand .tcn-social-tile.tcn-social-twitter:hover   .tcn-social-icon { background: #000; }
.tcn-social-follow.tcn-social-brand .tcn-social-tile.tcn-social-facebook:hover  .tcn-social-icon { background: #1877f2; }
.tcn-social-follow.tcn-social-brand .tcn-social-tile.tcn-social-instagram:hover .tcn-social-icon { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.tcn-social-follow.tcn-social-brand .tcn-social-tile.tcn-social-youtube:hover   .tcn-social-icon { background: #ff0000; }
.tcn-social-follow.tcn-social-brand .tcn-social-tile.tcn-social-tiktok:hover    .tcn-social-icon { background: #000; box-shadow: 0 0 0 1px #25f4ee; }
.tcn-social-follow.tcn-social-brand .tcn-social-tile.tcn-social-linkedin:hover  .tcn-social-icon { background: #0a66c2; }
.tcn-social-follow.tcn-social-brand .tcn-social-tile.tcn-social-reddit:hover    .tcn-social-icon { background: #ff4500; }
.tcn-social-follow.tcn-social-brand .tcn-social-tile.tcn-social-discord:hover   .tcn-social-icon { background: #5865f2; }
.tcn-social-follow.tcn-social-brand .tcn-social-tile.tcn-social-whatnot:hover   .tcn-social-icon { background: #ffde00; color: #000; }
.tcn-social-follow.tcn-social-brand .tcn-social-tile.tcn-social-ebay:hover      .tcn-social-icon { background: #e53238; }

/* Tile border also shifts to brand color on hover */
.tcn-social-follow.tcn-social-brand .tcn-social-tile:hover { border-color: rgba(255, 255, 255, 0.2); }

@media (max-width: 480px) {
    .tcn-social-follow.tcn-social-grid > .tcn-social-grid { grid-template-columns: 1fr; }
    .tcn-social-follow { padding: 18px; }
}

/* Market Watch — explicit colors + !important */
.tcn-market-watch {
    background: linear-gradient(135deg, #1d3557 0%, #0a1929 100%) !important;
    color: #fff !important;
    border-radius: 8px;
    padding: 20px;
}
.tcn-market-watch *,
.tcn-market-watch a { color: inherit; }
.tcn-market-watch h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 18px;
    letter-spacing: 1px;
    margin: 0 0 14px;
    color: #ffb703 !important;
}
.tcn-market-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
    gap: 12px;
    color: #fff !important;
}
.tcn-market-item:last-child { border-bottom: none; }
.tcn-market-item .tcn-card-name { font-weight: 500; color: #fff !important; }
.tcn-market-item .tcn-card-price { font-weight: 700; color: #ffb703 !important; }
.tcn-market-item .tcn-change.up { color: #10b981 !important; font-size: 11px; margin-left: 8px; }
.tcn-market-item .tcn-change.down { color: #ef4444 !important; font-size: 11px; margin-left: 8px; }

/* Reviews grid */
.tcn-reviews-grid {
    display: grid;
    gap: 16px;
}
.tcn-reviews-grid.tcn-cols-2 { grid-template-columns: repeat(2, 1fr); }
.tcn-reviews-grid.tcn-cols-3 { grid-template-columns: repeat(3, 1fr); }
.tcn-reviews-grid.tcn-cols-4 { grid-template-columns: repeat(4, 1fr); }
.tcn-review-card {
    background: #fff;
    border: 1px solid var(--tcn-border);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    color: inherit;
    display: block;
}
.tcn-review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}
.tcn-review-card-img {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}
.tcn-review-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tcn-rating-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: var(--tcn-accent);
    color: var(--tcn-dark);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 4px;
}
.tcn-review-card-body { padding: 16px; }
.tcn-review-card-body .tcn-category-tag {
    color: var(--tcn-primary-dark);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}
.tcn-review-card-body h3,
.tcn-review-card-body h4 {
    font-size: 15px;
    line-height: 1.35;
    margin: 0 0 10px;
    font-weight: 700;
    color: var(--tcn-text);
    font-family: 'Inter', sans-serif;
    letter-spacing: normal;
    padding: 0;
    border: none;
}
.tcn-review-card-body .tcn-meta {
    font-size: 11px;
    color: var(--tcn-text-muted);
    display: flex;
    justify-content: space-between;
}

/* Categories Strip */
.tcn-categories-strip {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}
.tcn-cat-tile {
    background: var(--tcn-bg-alt);
    border: 1px solid var(--tcn-border);
    padding: 20px 12px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    color: inherit;
    display: block;
}
.tcn-cat-tile:hover {
    background: var(--tcn-primary);
    color: #fff;
    border-color: var(--tcn-primary);
    transform: translateY(-2px);
}
.tcn-cat-icon {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    color: var(--tcn-primary);
    transition: color 0.2s;
}
.tcn-cat-icon i,
.tcn-cat-icon svg {
    width: 32px;
    height: 32px;
    font-size: 32px;
    line-height: 1;
    fill: currentColor;
}
.tcn-cat-tile:hover .tcn-cat-icon { color: #fff; }
.tcn-cat-name { font-weight: 700; font-size: 13px; letter-spacing: 0.5px; }
.tcn-cat-count {
    font-size: 11px;
    color: var(--tcn-text-muted);
    margin-top: 2px;
}
.tcn-cat-tile:hover .tcn-cat-count { color: rgba(255, 255, 255, 0.8); }

/* Newsletter AJAX status */
.tcn-newsletter-status {
    margin: 10px 0 0;
    font-size: 13px;
    min-height: 18px;
    width: 100%;
    flex-basis: 100%;
    text-align: center;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.2s;
}
.tcn-newsletter-status.is-success,
.tcn-newsletter-status.is-error {
    opacity: 1;
}
.tcn-newsletter-status.is-success { color: #10b981; }
.tcn-newsletter-status.is-error   { color: #fca5a5; }
.tcn-newsletter-mini .tcn-newsletter-status.is-success { color: #fff; background: rgba(255,255,255,0.15); padding: 6px; border-radius: 6px; }
.tcn-newsletter-mini .tcn-newsletter-status.is-error   { color: #fff; background: rgba(0,0,0,0.2); padding: 6px; border-radius: 6px; }

/* Newsletter */
.tcn-newsletter {
    background: linear-gradient(135deg, var(--tcn-primary) 0%, var(--tcn-primary-dark) 100%);
    color: #fff;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    margin: 40px auto;
    max-width: 1400px;
    box-sizing: border-box;
    overflow-x: clip;
}
.tcn-newsletter * { box-sizing: border-box; }
.tcn-newsletter h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 36px;
    letter-spacing: 2px;
    margin: 0 0 8px;
    color: #fff;
}
.tcn-newsletter p {
    opacity: 0.92;
    margin: 0 0 20px;
    font-size: 15px;
}
.tcn-newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 480px;
    margin: 0 auto;
}
.tcn-newsletter-form {
    flex-wrap: wrap;
}
.tcn-newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-family: inherit;
    min-width: 0;
    background: #fff;
    color: var(--tcn-text);
}
.tcn-newsletter-form input::placeholder {
    color: var(--tcn-text-muted);
    opacity: 1;
}
.tcn-newsletter-form input:focus { outline: none; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4); }
.tcn-newsletter-form button {
    background: var(--tcn-dark);
    color: #fff;
    padding: 14px 28px;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
}
.tcn-newsletter-form button:hover { background: #000; }

/* Footer */
.tcn-footer {
    background: var(--tcn-dark);
    color: #fff;
    padding: 40px 0 20px;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
    box-sizing: border-box;
}
.tcn-footer *,
.tcn-footer-content *,
.tcn-footer-bottom * { box-sizing: border-box; }
.tcn-footer-about {
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.tcn-footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}
.tcn-footer h3,
.tcn-footer h4 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 18px;
    letter-spacing: 1.5px;
    margin: 0 0 14px;
    color: var(--tcn-accent);
}
.tcn-footer a {
    display: block;
    padding: 4px 0;
    opacity: 0.75;
    font-size: 13px;
    transition: opacity 0.2s, color 0.2s;
    color: #fff;
}
.tcn-footer a:hover { opacity: 1; color: var(--tcn-accent); }
.tcn-footer-bottom {
    max-width: 1400px;
    margin: 30px auto 0;
    padding: 20px 24px 0;
    border-top: 1px solid #222;
    text-align: center;
    font-size: 12px;
    opacity: 0.6;
}
.tcn-footer-logo { margin-bottom: 14px; }
.tcn-footer-logo img { height: 44px; filter: brightness(0) invert(1); }
.tcn-footer-about { opacity: 0.75; font-size: 13px; line-height: 1.7; margin: 0; color: #fff; }

/* Helper: two-column wrapper users build with Elementor columns,
   but we also provide a simple .tcn-two-col grid if needed in shortcodes */
.tcn-two-col {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 28px;
}

/* Inline dashicons sizing (used instead of emojis in widget meta) */
.tcn-card-meta .dashicons,
.tcn-meta .dashicons,
.tcn-rating-badge .dashicons,
.tcn-change .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    line-height: 1;
    vertical-align: -2px;
}
.tcn-trending-box .tcn-section-heading h2 .tcn-heading-icon,
.tcn-market-watch h3 .tcn-heading-icon {
    display: inline-flex;
    align-items: center;
    color: var(--tcn-primary);
    margin-right: 6px;
}
.tcn-market-watch h3 .tcn-heading-icon { color: var(--tcn-accent); }
.tcn-heading-icon i,
.tcn-heading-icon svg { width: 20px; height: 20px; font-size: 20px; fill: currentColor; }

.tcn-change {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    white-space: nowrap;
}
.tcn-change .dashicons { font-size: 12px; width: 12px; height: 12px; }
.tcn-rating-badge .dashicons { color: var(--tcn-dark); }

/* Prevent the market item's "name | price+change" row from wrapping on narrow columns. */
.tcn-market-item {
    flex-wrap: nowrap;
    gap: 8px;
}
.tcn-market-item > span:last-child {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}
.tcn-market-item .tcn-card-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* When the Trending and Market Watch widgets are placed directly inside an
   Elementor column (no outer .tcn-section), remove the column's own padding
   reset so the dark panels hug the column edges properly. */
.elementor-widget-tcn_trending > .elementor-widget-container,
.elementor-widget-tcn_market_watch > .elementor-widget-container {
    padding: 0 !important;
}

/* High-specificity background fallbacks — Elementor's per-post generated CSS
   can out-specify our single-class selectors, so re-assert trending/market
   backgrounds via the widget-class chain. */
.elementor-widget.elementor-widget-tcn_trending .tcn-trending-box {
    background: #0f1419 !important;
    background-color: #0f1419 !important;
    color: #fff !important;
}
.elementor-widget.elementor-widget-tcn_market_watch .tcn-market-watch {
    background: linear-gradient(135deg, #1d3557 0%, #0a1929 100%) !important;
    background-color: #1d3557 !important;
    color: #fff !important;
}
.elementor-widget.elementor-widget-tcn_trending .tcn-trending-box *,
.elementor-widget.elementor-widget-tcn_market_watch .tcn-market-watch * {
    color: inherit;
}

/* Make every TCN widget a full-width block in its Elementor container. */
.elementor-widget-tcn_hero_grid,
.elementor-widget-tcn_categories_strip,
.elementor-widget-tcn_latest_posts,
.elementor-widget-tcn_trending,
.elementor-widget-tcn_market_watch,
.elementor-widget-tcn_reviews_grid,
.elementor-widget-tcn_newsletter {
    width: 100%;
}

/* Trending and Market Watch have no outer .tcn-section wrapper. Cap their
   width at 1400px centered for full-width layouts, but otherwise let them
   fill their parent (Elementor column) so they match the Follow Us widget
   when placed side-by-side in a sidebar. NO extra horizontal padding on
   the widget-container — the Elementor column's own padding provides the
   breathing room, and all TCN widgets then line up at the same width. */
.elementor-widget-tcn_trending .tcn-trending-box,
.elementor-widget-tcn_market_watch .tcn-market-watch {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    width: 100%;
}

/* ============================= RESPONSIVE ============================= */

/* Latest posts — if the containing column is narrow (< ~380px), stack the
   thumbnail on top and content below so nothing breaks in a 33% sidebar. */
@container (max-width: 380px) {
    .tcn-latest-item {
        flex-direction: column;
        gap: 10px;
    }
    .tcn-latest-item img {
        width: 100%;
        height: 160px;
    }
}
/* Container queries only work if the parent has `container-type`; set that on
   the grid so the stacking above kicks in per-column. */
.tcn-latest-grid > * {
    container-type: inline-size;
}

/* --- Tablet / narrow desktop --- */
@media (max-width: 1024px) {
    .tcn-hero-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 300px 260px 260px;
    }
    .tcn-card-featured { grid-column: 1 / 3; grid-row: 1 / 2; }
    .tcn-card-featured .tcn-card-title { font-size: 24px; }
    .tcn-two-col { grid-template-columns: 1fr; }
    .tcn-reviews-grid.tcn-cols-4 { grid-template-columns: repeat(2, 1fr); }
    .tcn-reviews-grid.tcn-cols-3 { grid-template-columns: repeat(2, 1fr); }
    .tcn-latest-grid.tcn-cols-3 { grid-template-columns: 1fr 1fr; }
    .tcn-categories-strip { grid-template-columns: repeat(3, 1fr); }
    .tcn-footer-content { grid-template-columns: 1fr 1fr; }

    /* Header reflow — search below logo+actions, full-width. */
    .tcn-header-content {
        gap: 12px;
        flex-wrap: wrap;
    }
    .tcn-search-box {
        order: 3;
        flex: 1 0 100%;
        max-width: none;
    }
}

/* --- Mobile --- */
@media (max-width: 768px) {
    .tcn-hero-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(5, 240px);
    }
    .tcn-card-featured { grid-column: 1 / 2; grid-row: 1 / 2; }
    .tcn-card-featured .tcn-card-title { font-size: 20px; }
    .tcn-latest-grid.tcn-cols-2,
    .tcn-latest-grid.tcn-cols-3 { grid-template-columns: 1fr; }
    .tcn-reviews-grid.tcn-cols-2,
    .tcn-reviews-grid.tcn-cols-3,
    .tcn-reviews-grid.tcn-cols-4 { grid-template-columns: 1fr; }
    .tcn-categories-strip { grid-template-columns: repeat(2, 1fr); }
    .tcn-footer-content { grid-template-columns: 1fr; gap: 24px; }

    /* Header: logo left, hamburger right, search hidden. Hamburger replaces
       the "Sign In" + "Subscribe" buttons so the row stays clean. */
    .tcn-header-content { flex-wrap: wrap; gap: 10px; }
    .tcn-search-box { display: none; }
    .tcn-header-actions .tcn-btn-outline,
    .tcn-header-actions .tcn-btn-primary { display: none; }
    .tcn-mobile-toggle { display: flex; }

    /* Nav collapses into a slide-down dropdown; hidden by default. */
    .tcn-nav {
        display: none;
        border-bottom: none;
    }
    body.tcn-menu-open .tcn-nav {
        display: block;
        animation: tcn-nav-slide 0.2s ease-out;
    }
    @keyframes tcn-nav-slide {
        from { opacity: 0; transform: translateY(-8px); }
        to   { opacity: 1; transform: translateY(0); }
    }
    .tcn-nav-content {
        flex-direction: column;
        overflow-x: visible;
        gap: 0;
        padding: 8px 0;
    }
    .tcn-nav-content ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    .tcn-nav-content a,
    .tcn-nav-content li a {
        padding: 14px 24px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        white-space: normal;
    }
    .tcn-nav-content li:last-child a,
    .tcn-nav-content > a:last-child {
        border-bottom: none;
    }

    /* Top bar — only keep the date; hide supplementary announcements. */
    .tcn-top-bar-left span:not(:first-child) { display: none; }
    .tcn-top-bar-content { justify-content: center; }
    .tcn-top-bar-right { justify-content: center; }

    .tcn-newsletter {
        padding: 28px 20px;
        margin: 24px 12px;
        max-width: calc(100% - 24px);
        border-radius: 10px;
    }
    .tcn-newsletter h2 { font-size: 26px; }
    .tcn-newsletter-form { flex-direction: column; max-width: 100%; }
    .tcn-footer { padding: 32px 0 20px; }
    .tcn-footer-content { padding: 0 20px; }
    .tcn-logo-text { display: none; }
    .tcn-section-heading h2 { font-size: 22px; }

    /* Ticker label less aggressive on small screens */
    .tcn-ticker-label { margin-left: 14px; }

    /* Trending + market-watch panels: tighter padding */
    .tcn-trending-box { padding: 20px; }
    .tcn-market-watch { padding: 16px; }

    /* Market items stack on mobile so long card names don't truncate awkwardly. */
    .tcn-market-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .tcn-market-item > span:last-child { gap: 6px; }
}

/* --- Small phones --- */
@media (max-width: 480px) {
    .tcn-top-bar { font-size: 11px; }
    .tcn-top-bar-content { padding: 0 16px; gap: 6px; }
    .tcn-top-bar-right { gap: 10px; }
    .tcn-header { padding: 14px 0; }
    .tcn-header-content { padding: 0 16px; gap: 8px; }
    .tcn-logo img { height: 34px; }
    .tcn-btn { padding: 8px 14px; font-size: 12px; }
    .tcn-nav-content { padding: 0 12px; }
    .tcn-nav-content a, .tcn-nav-content li a { padding: 12px 12px; font-size: 12px; }
    .tcn-ticker-label { margin-left: 10px; padding: 4px 10px; font-size: 10px; }
    .tcn-ticker-wrapper { margin: 0 12px; }
    .tcn-hero-section,
    .tcn-section { padding: 0 16px; }
    .tcn-nav-content,
    .tcn-footer-content { padding: 0 16px; }
    .tcn-card-featured .tcn-card-overlay { padding: 18px; }
    .tcn-card-overlay { padding: 16px; }
    .tcn-trending-box,
    .tcn-market-watch { padding: 18px; }
    .tcn-latest-item img { width: 90px; height: 70px; }
    .tcn-latest-item-content h3,
    .tcn-latest-item-content h4 { font-size: 14px; }
    .tcn-newsletter { padding: 24px 16px; border-radius: 8px; }
    .tcn-newsletter h2 { font-size: 22px; letter-spacing: 1px; }
    .tcn-categories-strip { gap: 8px; }
    .tcn-cat-tile { padding: 16px 8px; }
}

/* ==========================================================================
   SINGLE POST + SINGLE tcn_news TYPOGRAPHY
   Scoped to body.single-post, body.single-tcn_news, body.single-news,
   body.post-type-tcn_news (theme variations). Uses article[class*="post-"]
   which matches WordPress's post_class() output on any theme.
   ========================================================================== */

body.single-post,
body.tcn-single,
body.single-news,
body.single-tcn_news,
body.single-news,
body.post-type-tcn_news {
    background: var(--tcn-bg-alt);
}

body.single-post .entry-content,
body.tcn-single .entry-content,
body.single-news .entry-content,
body.single-tcn_news .entry-content,
body.single-news .entry-content,
body.post-type-tcn_news .entry-content {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Center the article column. Default width = 1100px (no sidebar).
   When JS injects the sidebar, .tcn-has-sidebar grows it to 1320px. */
body.single-post article[class*="post-"],
body.tcn-single article[class*="post-"],
body.single-news article[class*="post-"],
body.single-tcn_news article[class*="post-"],
body.single-news article[class*="post-"],
body.post-type-tcn_news article[class*="post-"] {
    max-width: 1100px;
    margin: 32px auto 60px;
    background: #fff;
    padding: 44px 56px;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(15, 20, 25, 0.08);
    box-sizing: border-box;
    --tcn-article-pad: 56px;
}

/* Wider card once sidebar is injected. */
body.single-post article.tcn-has-sidebar,
body.tcn-single article.tcn-has-sidebar,
body.single-news article.tcn-has-sidebar,
body.single-tcn_news article.tcn-has-sidebar,
body.single-news article.tcn-has-sidebar,
body.post-type-tcn_news article.tcn-has-sidebar {
    max-width: 1320px;
}

/* If the theme wraps the article in its own narrow container, force the
   container to be full width so our article card can breathe. */
body.single-post .site-main,
body.tcn-single .site-main,
body.single-news .site-main,
body.single-post .content-area,
body.tcn-single .content-area,
body.single-news .content-area,
body.single-post #primary,
body.tcn-single #primary,
body.single-news #primary,
body.single-post main,
body.tcn-single main,
body.single-news main,
body.single-tcn_news .site-main,
body.single-tcn_news .content-area,
body.single-tcn_news #primary,
body.single-tcn_news main,
body.single-news .site-main,
body.single-news .content-area,
body.single-news #primary,
body.single-news main,
body.post-type-tcn_news .site-main,
body.post-type-tcn_news .content-area,
body.post-type-tcn_news #primary,
body.post-type-tcn_news main,
body.tcn-single .tcn-default-content,
body.single-post .tcn-default-content,
body.single-tcn_news .tcn-default-content,
body.single-news .tcn-default-content {
    max-width: none !important;
    width: 100% !important;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

/* #comments wrapper on single pages — let the .comments-area inside it use
   its own max-width to match the article card. */
body.tcn-single #comments,
body.single-post #comments,
body.single-tcn_news #comments,
body.single-news #comments {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}

/* Body-row grid: content on left, sidebar on right. */
.tcn-post-body-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    column-gap: 48px;
    align-items: start;
}

/* Sidebar sticks as you scroll past it on desktop. */
.tcn-single-sidebar {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* --- Meta strip at top of article --- */
.tcn-post-meta-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 16px 0 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--tcn-border);
    flex-wrap: wrap;
}
.tcn-post-author {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
    color: var(--tcn-text) !important;
}
.tcn-post-avatar {
    border-radius: 50%;
    width: 36px;
    height: 36px;
}
.tcn-post-author span {
    display: flex;
    flex-direction: column;
    gap: 0;
    line-height: 1.2;
}
.tcn-post-author strong {
    font-size: 13px;
    font-weight: 700;
    color: var(--tcn-dark);
}
.tcn-post-author small {
    font-size: 11px;
    color: var(--tcn-text-muted);
    letter-spacing: 0.4px;
}
.tcn-post-cats {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.tcn-post-cats a {
    background: var(--tcn-primary);
    color: #fff !important;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    text-decoration: none !important;
    transition: background 0.15s;
}
.tcn-post-cats a:hover {
    background: var(--tcn-primary-dark);
}

/* ========== AUTHOR CARD (bottom of post, reference-style) ==========
   Layout: [avatar] [name + tagline + bio] ............... [More/View on X]
   Stacks on mobile. Matches the bet365-style reference the client shared. */
.tcn-post-author-card {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 36px 0 24px;
    padding: 22px 26px;
    background: var(--tcn-bg-alt);
    border-radius: 12px;
    border: 1px solid var(--tcn-border);
    box-shadow: 0 2px 10px rgba(15, 20, 25, 0.04);
}

/* Avatar wrapper + image — FORCE square, round, cover-fit so the image
   never stretches regardless of the avatar source size. */
.tcn-post-author-avatar-wrap {
    flex-shrink: 0;
    width: 88px;
    height: 88px;
}
.tcn-post-author-avatar,
.tcn-post-author-card img.avatar {
    width: 88px !important;
    height: 88px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(15, 20, 25, 0.1);
}

/* Main text column */
.tcn-post-author-main {
    flex: 1;
    min-width: 0;
}
.tcn-post-author-name {
    font-size: 20px !important;
    font-weight: 800 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    line-height: 1.2 !important;
    font-family: 'Inter', sans-serif !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}
.tcn-post-author-name a {
    color: var(--tcn-dark) !important;
    text-decoration: none !important;
}
.tcn-post-author-name a:hover { color: var(--tcn-primary) !important; }
.tcn-post-author-tagline {
    font-size: 13px;
    color: var(--tcn-text-muted);
    margin: 2px 0 10px;
    font-weight: 500;
    font-style: italic;
}
.tcn-post-author-bio {
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
    color: var(--tcn-text) !important;
    max-width: 720px;
}
.tcn-post-author-edit {
    display: inline-block;
    margin-top: 8px;
    font-size: 12px;
    color: var(--tcn-primary) !important;
    text-decoration: none !important;
    font-weight: 600;
}
.tcn-post-author-edit:hover { color: var(--tcn-primary-dark) !important; }

/* Action buttons on the right */
.tcn-post-author-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}
.tcn-post-author-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-decoration: none !important;
    white-space: nowrap;
    transition: transform 0.15s, background 0.15s, color 0.15s;
    border: none;
    cursor: pointer;
}
.tcn-post-author-btn-primary {
    background: var(--tcn-primary-dark);
    color: #fff !important;
}
.tcn-post-author-btn-primary:hover {
    background: var(--tcn-primary-darker);
    transform: translateY(-1px);
}
.tcn-post-author-btn-ghost {
    background: #fff;
    color: var(--tcn-dark) !important;
    border: 1px solid var(--tcn-border);
}
.tcn-post-author-btn-ghost:hover {
    background: var(--tcn-dark);
    color: #fff !important;
    border-color: var(--tcn-dark);
}

/* Mobile: stack avatar on top, text centered, buttons full-width row */
@media (max-width: 640px) {
    .tcn-post-author-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 20px;
    }
    .tcn-post-author-avatar-wrap,
    .tcn-post-author-avatar,
    .tcn-post-author-card img.avatar {
        width: 72px !important;
        height: 72px !important;
    }
    .tcn-post-author-name { font-size: 18px !important; }
    .tcn-post-author-actions {
        flex-direction: row;
        width: 100%;
    }
    .tcn-post-author-btn {
        flex: 1;
        padding: 10px 14px;
    }
}

/* --- Tags chip row --- */
.tcn-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--tcn-border);
}
.tcn-post-tags a {
    background: var(--tcn-bg-alt);
    border: 1px solid var(--tcn-border);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: var(--tcn-text) !important;
    text-decoration: none !important;
    transition: all 0.15s;
}
.tcn-post-tags a:hover {
    background: var(--tcn-dark);
    color: #fff !important;
    border-color: var(--tcn-dark);
}

/* ============= SIDEBAR BLOCKS ============= */
.tcn-sidebar-block {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--tcn-border);
}
.tcn-sidebar-block h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 18px;
    letter-spacing: 1.5px;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--tcn-primary);
    color: var(--tcn-dark);
}

/* Share grid */
.tcn-share-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.tcn-share-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    background: var(--tcn-bg-alt);
    color: var(--tcn-text) !important;
    border: 1px solid var(--tcn-border);
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}
.tcn-share-btn:hover { transform: translateY(-1px); }
.tcn-share-btn .dashicons { font-size: 16px; width: 16px; height: 16px; }
.tcn-share-btn.tcn-share-twitter:hover { background: #1da1f2; color: #fff !important; border-color: #1da1f2; }
.tcn-share-btn.tcn-share-fb:hover      { background: #1877f2; color: #fff !important; border-color: #1877f2; }
.tcn-share-btn.tcn-share-ln:hover      { background: #0a66c2; color: #fff !important; border-color: #0a66c2; }
.tcn-share-btn.tcn-share-email:hover   { background: var(--tcn-dark); color: #fff !important; border-color: var(--tcn-dark); }
.tcn-share-btn.tcn-share-copy:hover    { background: var(--tcn-primary); color: #fff !important; border-color: var(--tcn-primary); }
/* Copy link sits in its own grid slot alongside TikTok so the bottom row
   of the share grid fills cleanly — no awkward half-empty row. */

/* Related list */
.tcn-related-list { display: flex; flex-direction: column; gap: 12px; }
.tcn-related-item {
    display: flex;
    gap: 10px;
    text-decoration: none !important;
    color: inherit !important;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--tcn-border);
}
.tcn-related-item:last-child { border-bottom: none; padding-bottom: 0; }
.tcn-related-item img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}
.tcn-related-item h4 {
    margin: 0 0 4px !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    font-weight: 700;
    color: var(--tcn-dark) !important;
    border: none !important;
    padding: 0 !important;
    font-family: 'Inter', sans-serif !important;
    letter-spacing: normal !important;
}
.tcn-related-item:hover h4 { color: var(--tcn-primary) !important; }
.tcn-related-item small {
    font-size: 10px;
    color: var(--tcn-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

/* Newsletter mini — gradient box */
.tcn-sidebar-block.tcn-newsletter-mini {
    background: linear-gradient(135deg, var(--tcn-primary) 0%, var(--tcn-primary-dark) 100%);
    color: #fff;
    border: none;
}
.tcn-newsletter-mini h3 { color: #fff; border-bottom-color: rgba(255,255,255,0.3); }
.tcn-newsletter-mini p { margin: 0 0 14px; font-size: 13px; opacity: 0.92; line-height: 1.5; }
.tcn-newsletter-mini .tcn-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: none;
}
.tcn-newsletter-mini .tcn-newsletter-form input {
    padding: 10px 14px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
    background: #fff;
    color: var(--tcn-text);
}
.tcn-newsletter-mini .tcn-newsletter-form input::placeholder {
    color: var(--tcn-text-muted);
    opacity: 1;
}
.tcn-newsletter-mini .tcn-newsletter-form button {
    padding: 10px 14px;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    background: var(--tcn-dark);
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
}
.tcn-newsletter-mini .tcn-newsletter-form button:hover { background: #000; }

/* Hide the sidebar + drop to single column on tablet/mobile */
@media (max-width: 1024px) {
    body.single-post article.tcn-has-sidebar,
    body.tcn-single article.tcn-has-sidebar,
    body.single-news article.tcn-has-sidebar,
    body.single-tcn_news article.tcn-has-sidebar {
        max-width: 820px;
    }
    .tcn-post-body-row {
        grid-template-columns: 1fr;
    }
    .tcn-single-sidebar {
        position: static;
        margin-top: 32px;
    }
}

/* Hide the theme's native entry header + featured image (anywhere in the
   article, any nesting level) — we replace them with our own hero. Guard
   against hiding anything inside our .tcn-post-hero. */
body.tcn-single article .entry-header,
body.tcn-single article .entry-title:not(.tcn-post-hero-title),
body.tcn-single article .post-thumbnail,
body.tcn-single article .wp-post-image,
body.tcn-single article .entry-meta,
body.tcn-single article .byline,
body.tcn-single article .posted-on,
body.tcn-single article header.entry-header,
body.tcn-single article header.post-header,
body.single-post article .entry-header,
body.single-post article .entry-title:not(.tcn-post-hero-title),
body.single-post article .post-thumbnail,
body.single-tcn_news article .entry-header,
body.single-tcn_news article .entry-title:not(.tcn-post-hero-title),
body.single-tcn_news article .post-thumbnail,
body.single-news article .entry-header,
body.single-news article .entry-title:not(.tcn-post-hero-title),
body.single-news article .post-thumbnail {
    display: none !important;
}

/* (Old `display: revert` rule removed — it was clobbering the flex layout on
   .tcn-post-hero-overlay. Our hide rules already use `:not(.tcn-post-hero-title)`
   so the hero's own elements are never hidden.) */

/* ========== POST HERO ==========
   Narrower image, centered. "Review" category pill overlays top-left;
   title + "By X · date · N min read" overlay bottom-left on dark scrim. */
.tcn-post-hero {
    margin: 0 0 32px;
}
.tcn-post-hero-media {
    position: relative;
    width: 100%;
    margin: 0 auto;
    aspect-ratio: 21 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--tcn-secondary) 0%, var(--tcn-dark) 100%);
    box-shadow: 0 8px 28px rgba(15, 20, 25, 0.12);
}
.tcn-post-hero.no-image .tcn-post-hero-media {
    aspect-ratio: 24 / 7;
}
.tcn-post-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 1;
}
.tcn-post-hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.85) 100%);
    z-index: 2;
}

/* Category pill — top-left overlay */
.tcn-post-hero-cats {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.tcn-post-hero-cats a {
    background: var(--tcn-primary);
    color: #fff !important;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 50px;
    text-decoration: none !important;
    transition: background 0.15s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.tcn-post-hero-cats a:hover { background: var(--tcn-primary-dark); }

/* Title-only overlay at the bottom of the hero image. */
.tcn-post-hero-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    padding: 28px 32px 32px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* --- Breadcrumbs (below the hero image) --- */
.tcn-post-breadcrumbs {
    font-size: 12px;
    color: var(--tcn-text-muted);
    letter-spacing: 0.3px;
    margin: 20px 0 14px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.tcn-post-breadcrumbs a {
    color: var(--tcn-text-muted) !important;
    text-decoration: none !important;
    transition: color 0.15s;
}
.tcn-post-breadcrumbs a:hover { color: var(--tcn-primary) !important; }
.tcn-post-breadcrumbs [aria-current="page"] {
    color: var(--tcn-dark);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 340px;
}
.tcn-post-crumb-sep { color: var(--tcn-border); font-size: 14px; line-height: 1; }

/* --- Byline row (author + date + read-time, below the image) --- */
.tcn-post-byline {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0 20px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--tcn-border);
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--tcn-text-muted);
    line-height: 1.2;
}
.tcn-post-byline a { color: var(--tcn-text) !important; text-decoration: none !important; border: none !important; }
.tcn-post-byline-author {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.tcn-post-byline-avatar {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    border: 2px solid var(--tcn-border);
    display: block !important;
    flex-shrink: 0;
    object-fit: cover;
    margin: 0 !important;
    padding: 0 !important;
}
.tcn-post-byline-text {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    line-height: 1;
}
.tcn-post-byline-by {
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--tcn-text-muted);
    font-weight: 600;
}
.tcn-post-byline-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--tcn-dark);
}
.tcn-post-byline-sep {
    color: var(--tcn-border);
    font-size: 14px;
    line-height: 1;
}
.tcn-post-byline-date,
.tcn-post-byline-read {
    color: var(--tcn-text-muted);
}
.tcn-post-hero-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    flex-wrap: wrap;
    line-height: 1;
}
.tcn-post-hero-meta a {
    color: #fff !important;
    text-decoration: none !important;
    border: none !important;
}
.tcn-post-hero-author {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.tcn-post-hero-avatar {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    border: 2px solid rgba(255, 255, 255, 0.35);
    display: block !important;
    flex-shrink: 0;
    object-fit: cover;
    margin: 0 !important;
    padding: 0 !important;
}
.tcn-post-hero-byline {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    line-height: 1;
}
.tcn-post-hero-by-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.65;
}
.tcn-post-hero-author-name {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.2px;
}
/* Separator — visible bullet, centered */
.tcn-post-hero-sep {
    display: inline-block;
    font-size: 14px;
    opacity: 0.55;
    line-height: 1;
    user-select: none;
    flex-shrink: 0;
}
.tcn-post-hero-date,
.tcn-post-hero-read {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.tcn-post-hero-title {
    font-family: 'Bebas Neue', sans-serif !important;
    font-size: 36px !important;
    line-height: 1.1 !important;
    letter-spacing: 1px !important;
    color: #fff !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    font-weight: 400;
    max-width: 720px;
}

/* Meta (author, date, etc.) — light grey, uppercase, spaced. */
body.single-post .entry-meta,
body.tcn-single .entry-meta,
body.single-news .entry-meta,
body.single-tcn_news .entry-meta,
body.single-post .posted-on,
body.tcn-single .posted-on,
body.single-news .posted-on,
body.single-post .byline,
body.tcn-single .byline,
body.single-news .byline,
body.single-tcn_news .posted-on,
body.single-tcn_news .byline {
    font-size: 11px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--tcn-text-muted);
    margin-bottom: 24px;
}
body.single-post .entry-meta a,
body.tcn-single .entry-meta a,
body.single-news .entry-meta a,
body.single-tcn_news .entry-meta a {
    color: var(--tcn-primary);
    font-weight: 700;
}
body.single-post .entry-meta a:hover,
body.tcn-single .entry-meta a:hover,
body.single-news .entry-meta a:hover,
body.single-tcn_news .entry-meta a:hover {
    color: var(--tcn-primary-dark);
}

/* Featured image — full bleed across the article card, rounded on top. */
body.single-post .post-thumbnail,
body.tcn-single .post-thumbnail,
body.single-news .post-thumbnail,
body.single-tcn_news .post-thumbnail,
body.single-post .wp-post-image,
body.tcn-single .wp-post-image,
body.single-news .wp-post-image,
body.single-tcn_news .wp-post-image {
    /* Theme's native featured image is hidden via the display:none rule
       at the top of this section — our hero replaces it. */
}

/* Body copy */
body.single-post .entry-content p,
body.tcn-single .entry-content p,
body.single-news .entry-content p,
body.single-tcn_news .entry-content p {
    font-size: 17px;
    line-height: 1.75;
    color: #222;
    margin: 0 0 20px;
}
/* First paragraph used to get a "lead paragraph" bump (19px). Client asked
   for it to match the rest of the body copy (17px). */
body.single-post .entry-content > p:first-child,
body.tcn-single .entry-content > p:first-child,
body.single-news .entry-content > p:first-child,
body.single-tcn_news .entry-content > p:first-child {
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    font-weight: inherit;
}

/* Headings inside article — H2 keeps the red-style left accent, H3-H6 just
   get uppercase treatment with no left line (client request). */
body.tcn-single .entry-content h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 32px;
    letter-spacing: 1.2px;
    color: var(--tcn-dark);
    margin: 40px 0 16px;
    padding-left: 14px;
    border-left: 4px solid var(--tcn-primary);
    line-height: 1.15;
    text-transform: uppercase;
}
body.tcn-single .entry-content h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 26px;
    letter-spacing: 1px;
    font-weight: 400;
    color: var(--tcn-dark);
    margin: 32px 0 12px;
    text-transform: uppercase;
    line-height: 1.2;
}
body.tcn-single .entry-content h4 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    letter-spacing: 1px;
    font-weight: 400;
    margin: 26px 0 10px;
    color: var(--tcn-dark);
    text-transform: uppercase;
    line-height: 1.2;
}
body.tcn-single .entry-content h5 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 18px;
    letter-spacing: 0.8px;
    font-weight: 400;
    margin: 22px 0 8px;
    color: var(--tcn-dark);
    text-transform: uppercase;
    line-height: 1.25;
}
body.tcn-single .entry-content h6 {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    letter-spacing: 1.5px;
    font-weight: 800;
    margin: 20px 0 6px;
    color: var(--tcn-text-muted);
    text-transform: uppercase;
}

/* Bigger H1 on the hero */
.tcn-post-hero-title { font-size: 56px !important; }
@media (max-width: 1024px) { .tcn-post-hero-title { font-size: 42px !important; } }
@media (max-width: 768px)  { .tcn-post-hero-title { font-size: 30px !important; } }
@media (max-width: 480px)  { .tcn-post-hero-title { font-size: 24px !important; } }

/* Inline links */
body.single-post .entry-content a,
body.tcn-single .entry-content a,
body.single-news .entry-content a,
body.single-tcn_news .entry-content a {
    color: var(--tcn-primary);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 0.15s;
}
body.single-post .entry-content a:hover,
body.tcn-single .entry-content a:hover,
body.single-news .entry-content a:hover,
body.single-tcn_news .entry-content a:hover {
    color: var(--tcn-primary-dark);
}

/* Lists */
body.single-post .entry-content ul,
body.tcn-single .entry-content ul,
body.single-news .entry-content ul,
body.single-post .entry-content ol,
body.tcn-single .entry-content ol,
body.single-news .entry-content ol,
body.single-tcn_news .entry-content ul,
body.single-tcn_news .entry-content ol {
    margin: 0 0 20px;
    padding-left: 22px;
}
body.single-post .entry-content li,
body.tcn-single .entry-content li,
body.single-news .entry-content li,
body.single-tcn_news .entry-content li {
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 8px;
    color: #222;
}
body.single-post .entry-content ul li::marker,
body.tcn-single .entry-content ul li::marker,
body.single-news .entry-content ul li::marker,
body.single-tcn_news .entry-content ul li::marker {
    color: var(--tcn-primary);
}

/* Blockquote — magazine pull-quote style */
body.single-post .entry-content blockquote,
body.tcn-single .entry-content blockquote,
body.single-news .entry-content blockquote,
body.single-tcn_news .entry-content blockquote {
    margin: 28px 0;
    padding: 20px 24px;
    border-left: 4px solid var(--tcn-primary);
    background: var(--tcn-bg-alt);
    font-size: 20px;
    line-height: 1.55;
    font-style: italic;
    color: var(--tcn-dark);
    font-weight: 500;
    border-radius: 0 8px 8px 0;
}
body.single-post .entry-content blockquote p,
body.tcn-single .entry-content blockquote p,
body.single-news .entry-content blockquote p,
body.single-tcn_news .entry-content blockquote p {
    font-size: inherit;
    line-height: inherit;
    margin: 0 0 10px;
}
body.single-post .entry-content blockquote cite,
body.tcn-single .entry-content blockquote cite,
body.single-news .entry-content blockquote cite,
body.single-tcn_news .entry-content blockquote cite {
    font-size: 13px;
    font-style: normal;
    color: var(--tcn-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-top: 8px;
}

/* ============== TABLE OF CONTENTS (collapsible, auto-generated) ==============
   Sits inline at the top of the post content as a compact card spanning the
   full reading width. Click the header row to expand/collapse (native <details>,
   no JS). Open by default on desktop, collapsed on mobile. */
body.tcn-single .entry-content .tcn-toc {
    background: var(--tcn-bg-alt);
    border: 1px solid var(--tcn-border);
    border-left: 4px solid var(--tcn-primary);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(15, 20, 25, 0.04);
    margin: 0 0 28px;
    padding: 0;
    box-sizing: border-box;
    font-size: 14px;
    line-height: 1.45;
    overflow: hidden;
    max-width: 100%;
}

/* Header row — click target to toggle. list-style:none + webkit + generic
   ::marker suppression + appearance:none kills the native disclosure
   triangle so only our custom +/- toggle is shown. */
body.tcn-single .entry-content .tcn-toc > summary,
body.tcn-single .entry-content .tcn-toc-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 18px;
    letter-spacing: 1px;
    color: var(--tcn-dark);
    text-transform: uppercase;
    cursor: pointer;
    list-style: none !important;
    list-style-type: none !important;
    user-select: none;
    transition: background 0.15s;
    -webkit-appearance: none;
    appearance: none;
}
body.tcn-single .entry-content .tcn-toc > summary:hover { background: rgba(186, 0, 255, 0.04); }
body.tcn-single .entry-content .tcn-toc > summary::-webkit-details-marker { display: none !important; }
body.tcn-single .entry-content .tcn-toc > summary::marker { display: none !important; content: none !important; }
body.tcn-single .entry-content .tcn-toc > summary::before { display: none !important; content: none !important; }
body.tcn-single .entry-content .tcn-toc-head strong { font-weight: 400; color: inherit; flex: 1; }
body.tcn-single .entry-content .tcn-toc-icon {
    color: var(--tcn-primary);
    font-size: 16px;
    line-height: 1;
}
body.tcn-single .entry-content .tcn-toc-toggle {
    margin-left: auto;
    font-family: 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 300;
    color: var(--tcn-primary);
    line-height: 1;
    transition: transform 0.2s;
}
body.tcn-single .entry-content .tcn-toc-toggle::before { content: "+"; }
body.tcn-single .entry-content .tcn-toc[open] .tcn-toc-toggle::before { content: "−"; }

/* List body — shown when open */
body.tcn-single .entry-content .tcn-toc-list,
body.tcn-single .entry-content .tcn-toc-sublist {
    list-style: none;
    padding: 0;
    margin: 0;
}
body.tcn-single .entry-content .tcn-toc-list {
    counter-reset: toc-counter;
    padding: 4px 22px 18px;
    border-top: 1px solid var(--tcn-border);
}
body.tcn-single .entry-content .tcn-toc-list > li {
    counter-increment: toc-counter;
    position: relative;
    padding: 6px 0 6px 32px;
    font-size: 14px;
    line-height: 1.4;
}
body.tcn-single .entry-content .tcn-toc-list > li::before {
    content: counter(toc-counter);
    position: absolute;
    left: 0;
    top: 6px;
    width: 22px;
    height: 22px;
    background: var(--tcn-primary);
    color: #fff;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0;
}
body.tcn-single .entry-content .tcn-toc-list > li > a {
    color: var(--tcn-dark) !important;
    text-decoration: none !important;
    font-weight: 600;
    border: none !important;
    transition: color 0.15s;
}
body.tcn-single .entry-content .tcn-toc-list > li > a:hover {
    color: var(--tcn-primary) !important;
}
body.tcn-single .entry-content .tcn-toc-sublist {
    margin-top: 4px;
    padding-left: 12px;
    border-left: 2px solid var(--tcn-border);
    margin-left: 4px;
}
body.tcn-single .entry-content .tcn-toc-sublist > li {
    padding: 3px 0;
    font-size: 13px;
}
body.tcn-single .entry-content .tcn-toc-sublist > li > a {
    color: var(--tcn-text-muted) !important;
    text-decoration: none !important;
    font-weight: 500;
    border: none !important;
    transition: color 0.15s;
}
body.tcn-single .entry-content .tcn-toc-sublist > li > a:hover {
    color: var(--tcn-primary) !important;
}

/* Smooth scroll + offset for the sticky header when jumping to an anchor. */
html { scroll-behavior: smooth; }
body.tcn-single .entry-content [id] { scroll-margin-top: 90px; }

/* Mobile: tighter padding. ToC already collapsed by default (no `open`
   attribute). User taps the header row to expand. */
@media (max-width: 768px) {
    body.tcn-single .entry-content .tcn-toc > summary {
        padding: 12px 16px;
        font-size: 15px;
    }
    body.tcn-single .entry-content .tcn-toc-list {
        padding: 4px 16px 14px;
    }
    body.tcn-single .entry-content .tcn-toc-list > li { font-size: 13.5px; }
    body.tcn-single .entry-content .tcn-toc-sublist > li { font-size: 12.5px; }
}

/* ============== GUTENBERG IMAGES / ALIGNMENT ==============
   Handles all WP image block alignment classes (alignleft, alignright,
   aligncenter, alignwide, alignfull) PLUS legacy classic-editor alignments.
   Floated images sit against the first line of surrounding text (like in the
   Gutenberg editor). Generous gap between image and text. Stacks on mobile. */

/* Default image — rounded, block, small vertical rhythm */
body.tcn-single .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}
body.tcn-single .entry-content p img {
    display: inline-block;
    vertical-align: middle;
}

/* Figures */
body.tcn-single .entry-content figure,
body.tcn-single .entry-content .wp-block-image {
    margin: 24px 0;
    max-width: 100%;
}
body.tcn-single .entry-content figure img,
body.tcn-single .entry-content .wp-block-image img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Captions — italic, centered on desktop, forced centered on mobile +
   inside accordions (where they were previously inheriting a narrow
   container width and stacking one word per line on the left). */
body.tcn-single .entry-content figcaption,
body.tcn-single .entry-content .wp-element-caption {
    font-size: 12px;
    color: var(--tcn-text-muted);
    text-align: center;
    margin-top: 8px;
    font-style: italic;
    line-height: 1.4;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

/* Inside ANY accordion body — force caption to the full accordion width
   and keep centered, regardless of a narrow parent figure. */
body.tcn-single .entry-content [class*="accordion"] figcaption,
body.tcn-single .entry-content [class*="accordion"] .wp-element-caption,
body.tcn-single .entry-content .aagb__accordion_body figcaption,
body.tcn-single .entry-content .aagb__accordion_body .wp-element-caption {
    text-align: center !important;
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Mobile — same forced centering so a floated figure with a tiny width
   doesn't stack the caption letters vertically. */
@media (max-width: 768px) {
    body.tcn-single .entry-content figcaption,
    body.tcn-single .entry-content .wp-element-caption {
        text-align: center !important;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    /* Figure parent also forced full-width on mobile so the caption has
       room to read. */
    body.tcn-single .entry-content figure,
    body.tcn-single .entry-content .wp-block-image {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* ---- alignleft : floats left, text wraps right ---- */
body.tcn-single .entry-content .alignleft,
body.tcn-single .entry-content figure.alignleft,
body.tcn-single .entry-content .wp-block-image.alignleft {
    float: left;
    margin: 6px 28px 16px 0;  /* generous right gutter between image and text */
    max-width: 50%;
    clear: left;
}

/* ---- alignright ---- */
body.tcn-single .entry-content .alignright,
body.tcn-single .entry-content figure.alignright,
body.tcn-single .entry-content .wp-block-image.alignright {
    float: right;
    margin: 6px 0 16px 28px;
    max-width: 50%;
    clear: right;
}

/* ---- aligncenter ---- */
body.tcn-single .entry-content .aligncenter,
body.tcn-single .entry-content figure.aligncenter,
body.tcn-single .entry-content .wp-block-image.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    float: none;
    clear: both;
    text-align: center;
}
body.tcn-single .entry-content .aligncenter img,
body.tcn-single .entry-content figure.aligncenter img,
body.tcn-single .entry-content .wp-block-image.aligncenter img {
    margin-left: auto;
    margin-right: auto;
    display: block;
}

/* ---- alignwide : breaks out of reading column by ~100px each side ---- */
body.tcn-single .entry-content .alignwide,
body.tcn-single .entry-content .wp-block-image.alignwide {
    margin-left: -60px;
    margin-right: -60px;
    max-width: calc(100% + 120px);
    float: none;
    clear: both;
}

/* ---- alignfull : edge-to-edge of the article card ---- */
body.tcn-single .entry-content .alignfull,
body.tcn-single .entry-content .wp-block-image.alignfull {
    margin-left: calc(-1 * var(--tcn-article-pad, 56px));
    margin-right: calc(-1 * var(--tcn-article-pad, 56px));
    max-width: calc(100% + (2 * var(--tcn-article-pad, 56px)));
    float: none;
    clear: both;
}
body.tcn-single .entry-content .alignfull img,
body.tcn-single .entry-content .alignwide img {
    width: 100%;
}

/* Headings do NOT force-clear — let content keep wrapping around a floated
   image through the entire section. Use an explicit .clear-float class or
   the .wp-block-separator block if you need to force a break. */
body.tcn-single .entry-content .clear-float,
body.tcn-single .entry-content .wp-block-separator,
body.tcn-single .entry-content hr {
    clear: both;
}

/* ============== MOBILE: all images center + full-width ==============
   On narrow screens, floated images with text wrapping look terrible. Stack
   everything centered full-width instead. !important to beat the plugin's
   or theme's float rules. */
@media (max-width: 768px) {
    body.tcn-single .entry-content .alignleft,
    body.tcn-single .entry-content .alignright,
    body.tcn-single .entry-content .aligncenter,
    body.tcn-single .entry-content figure.alignleft,
    body.tcn-single .entry-content figure.alignright,
    body.tcn-single .entry-content figure.aligncenter,
    body.tcn-single .entry-content .wp-block-image.alignleft,
    body.tcn-single .entry-content .wp-block-image.alignright,
    body.tcn-single .entry-content .wp-block-image.aligncenter,
    body.tcn-single .entry-content .wp-block-image,
    body.tcn-single .entry-content .alignwide,
    body.tcn-single .entry-content .wp-block-image.alignwide,
    body.tcn-single .entry-content .alignfull,
    body.tcn-single .entry-content .wp-block-image.alignfull,
    body.tcn-single .entry-content figure:not(.wp-block-pullquote),
    body.tcn-single .entry-content img {
        float: none !important;
        clear: both !important;
        display: block !important;
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center !important;
    }
    body.tcn-single .entry-content figure:not(.wp-block-pullquote),
    body.tcn-single .entry-content .wp-block-image {
        max-width: 100% !important;
        width: 100% !important;
    }
    body.tcn-single .entry-content .alignwide,
    body.tcn-single .entry-content .alignfull,
    body.tcn-single .entry-content .wp-block-image.alignwide,
    body.tcn-single .entry-content .wp-block-image.alignfull {
        margin-left: auto !important;
        margin-right: auto !important;
    }
    body.tcn-single .entry-content .alignwide img,
    body.tcn-single .entry-content .alignfull img,
    body.tcn-single .entry-content img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* ============== ADVANCED ACCORDION BLOCK (PickPlugins / advgb / advgb-accordions)
   The client is using an accordion plugin that wraps content differently from
   the native Gutenberg Details block. These rules make images inside those
   accordions respect aligncenter / center themselves on mobile, match the
   site's visual style, and ensure the accordion looks consistent. */

body.tcn-single .entry-content .advgb-accordion-wrapper,
body.tcn-single .entry-content .wp-block-advgb-accordions,
body.tcn-single .entry-content .wp-block-advgb-accordion-item,
body.tcn-single .entry-content .advgb-accordion-item,
body.tcn-single .entry-content .pp-accordion-item,
body.tcn-single .entry-content .wp-block-ultimate-addon-gb-accordion,
body.tcn-single .entry-content .uagb-accordion-wrap,
body.tcn-single .entry-content [class*="accordion-item"] {
    margin: 14px 0;
}

/* Center any image inside an accordion content area — these plugins wrap
   content in .accordion-content / .advgb-accordion-body / .pp-accordion-content
   etc. Image with aligncenter or plain image both center. */
body.tcn-single .entry-content .advgb-accordion-body img,
body.tcn-single .entry-content .advgb-accordion-body figure,
body.tcn-single .entry-content .advgb-accordion-body .wp-block-image,
body.tcn-single .entry-content .pp-accordion-content img,
body.tcn-single .entry-content .pp-accordion-content figure,
body.tcn-single .entry-content .pp-accordion-content .wp-block-image,
body.tcn-single .entry-content .accordion-content img,
body.tcn-single .entry-content .accordion-body img,
body.tcn-single .entry-content [class*="accordion"] img.aligncenter,
body.tcn-single .entry-content [class*="accordion"] figure.aligncenter,
body.tcn-single .entry-content [class*="accordion"] .wp-block-image.aligncenter {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
    text-align: center !important;
}
body.tcn-single .entry-content [class*="accordion"] figure.aligncenter img,
body.tcn-single .entry-content [class*="accordion"] .wp-block-image.aligncenter img {
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
}

/* ==========================================================================
   ADVANCED ACCORDION BLOCK (aab) by WPExperts — TCN-themed styling
   Selectors used by the plugin: .wp-block-aab-accordion-item
   Head (title bar)   → .aagb__accordion_head
   Body (content area) → .aagb__accordion_body
   ========================================================================== */

body.tcn-single .entry-content .wp-block-aab-accordion-item {
    margin: 14px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(15, 20, 25, 0.04);
}
body.tcn-single .entry-content .wp-block-aab-accordion-item .aagb__accordion_head {
    background: #1d3557 !important;
    background: var(--tcn-secondary, #1d3557) !important;
    color: #fff !important;
    padding: 16px 24px !important;
    border: none !important;
    border-radius: 8px 8px 0 0 !important;
    transition: background 0.2s !important;
    font-weight: 700;
}
body.tcn-single .entry-content .wp-block-aab-accordion-item .aagb__accordion_head:hover {
    background: #152842 !important;
}
/* Text elements only — title, headings, paragraphs. EXCLUDES icon spans so
   the dashicons font isn't clobbered and the +/− icon stays visible. */
body.tcn-single .entry-content .wp-block-aab-accordion-item .aagb__accordion_head .aagb__accordion_title,
body.tcn-single .entry-content .wp-block-aab-accordion-item .aagb__accordion_head .title_wrapper,
body.tcn-single .entry-content .wp-block-aab-accordion-item .aagb__accordion_head .aagb__accordion_heading,
body.tcn-single .entry-content .wp-block-aab-accordion-item .aagb__accordion_head p,
body.tcn-single .entry-content .wp-block-aab-accordion-item .aagb__accordion_head h1,
body.tcn-single .entry-content .wp-block-aab-accordion-item .aagb__accordion_head h2,
body.tcn-single .entry-content .wp-block-aab-accordion-item .aagb__accordion_head h3,
body.tcn-single .entry-content .wp-block-aab-accordion-item .aagb__accordion_head h4,
body.tcn-single .entry-content .wp-block-aab-accordion-item .aagb__accordion_head h5,
body.tcn-single .entry-content .wp-block-aab-accordion-item .aagb__accordion_head h6 {
    color: #fff !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 16px !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    line-height: 1.4 !important;
    background: transparent !important;
}
/* Icon container + dashicon span — keep dashicons font, just recolor white
   and size it visibly. DO NOT override font-family. */
body.tcn-single .entry-content .wp-block-aab-accordion-item .aagb__accordion_head .aagb__accordion_icon,
body.tcn-single .entry-content .wp-block-aab-accordion-item .aagb__accordion_head .aagb__icon_dashicons_box,
body.tcn-single .entry-content .wp-block-aab-accordion-item .aagb__accordion_head .aagb__icon,
body.tcn-single .entry-content .wp-block-aab-accordion-item .aagb__accordion_head .dashicons {
    color: #fff !important;
    fill: #fff !important;
    flex-shrink: 0;
}
body.tcn-single .entry-content .wp-block-aab-accordion-item .aagb__accordion_head .dashicons {
    font-size: 22px !important;
    width: 22px !important;
    height: 22px !important;
    line-height: 1 !important;
    display: inline-block !important;
}
body.tcn-single .entry-content .wp-block-aab-accordion-item .aagb__accordion_head svg {
    width: 18px;
    height: 18px;
    fill: #fff !important;
}
/* Override any plugin-specific unique-class overrides like
   .aagb_accordion_XXXXXXXX_0 (each block has a random hash). */
body.tcn-single .entry-content [class*="aagb_accordion_"] .wp-block-aab-accordion-item .aagb__accordion_head,
body.tcn-single .entry-content [class*="aagb_accordion_"] .aagb__accordion_container.wp-block-aab-accordion-item .aagb__accordion_head {
    background-color: #1d3557 !important;
    background-color: var(--tcn-secondary, #1d3557) !important;
    color: #fff !important;
}

/* Body (content area) */
body.tcn-single .entry-content .wp-block-aab-accordion-item .aagb__accordion_body {
    background: #fff;
    padding: 20px 24px !important;
    border: 1px solid var(--tcn-border);
    border-top: none;
    border-radius: 0 0 8px 8px;
}

/* Images inside AAB body — always center with proper margins */
body.tcn-single .entry-content .wp-block-aab-accordion-item .aagb__accordion_body img,
body.tcn-single .entry-content .wp-block-aab-accordion-item .aagb__accordion_body figure,
body.tcn-single .entry-content .wp-block-aab-accordion-item .aagb__accordion_body .wp-block-image {
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 100%;
}
body.tcn-single .entry-content .wp-block-aab-accordion-item .aagb__accordion_body .aligncenter,
body.tcn-single .entry-content .wp-block-aab-accordion-item .aagb__accordion_body figure.aligncenter,
body.tcn-single .entry-content .wp-block-aab-accordion-item .aagb__accordion_body .wp-block-image.aligncenter {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    float: none !important;
}
body.tcn-single .entry-content .wp-block-aab-accordion-item .aagb__accordion_body figure.aligncenter img,
body.tcn-single .entry-content .wp-block-aab-accordion-item .aagb__accordion_body .wp-block-image.aligncenter img {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Mobile: make accordion head padding a bit tighter */
@media (max-width: 640px) {
    body.tcn-single .entry-content .wp-block-aab-accordion-item .aagb__accordion_head {
        padding: 14px 16px !important;
    }
    body.tcn-single .entry-content .wp-block-aab-accordion-item .aagb__accordion_body {
        padding: 16px !important;
    }
}

/* Inside <li>: images with alignleft/alignright sit against the first line of
   the list-item text. */
body.tcn-single .entry-content li .alignleft,
body.tcn-single .entry-content li figure.alignleft,
body.tcn-single .entry-content li .wp-block-image.alignleft {
    margin: 2px 20px 10px 0;
    max-width: 40%;
}
body.tcn-single .entry-content li .alignright,
body.tcn-single .entry-content li figure.alignright,
body.tcn-single .entry-content li .wp-block-image.alignright {
    margin: 2px 0 10px 20px;
    max-width: 40%;
}

/* Let text + lists keep wrapping around floated images — only clear at real
   section boundaries (H2/H3/H4, already set above). Do NOT clear on <li>
   or <ul>/<ol> (that was making lists drop below the image). */
body.tcn-single .entry-content ul,
body.tcn-single .entry-content ol {
    overflow: visible;
}

/* Code + preformatted */
body.single-post .entry-content code,
body.tcn-single .entry-content code,
body.single-news .entry-content code,
body.single-tcn_news .entry-content code {
    background: var(--tcn-bg-alt);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--tcn-primary-dark);
    border: 1px solid var(--tcn-border);
}
body.single-post .entry-content pre,
body.tcn-single .entry-content pre,
body.single-news .entry-content pre,
body.single-tcn_news .entry-content pre {
    background: var(--tcn-dark);
    color: #f5f5f5;
    padding: 18px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
    font-size: 14px;
    line-height: 1.55;
}

/* Tables */
body.single-post .entry-content table,
body.tcn-single .entry-content table,
body.single-news .entry-content table,
body.single-tcn_news .entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 14px;
}
body.single-post .entry-content th,
body.tcn-single .entry-content th,
body.single-news .entry-content th,
body.single-tcn_news .entry-content th {
    background: var(--tcn-dark);
    color: #fff;
    text-align: left;
    padding: 10px 14px;
    font-weight: 700;
}
body.single-post .entry-content td,
body.tcn-single .entry-content td,
body.single-news .entry-content td,
body.single-tcn_news .entry-content td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--tcn-border);
}
body.single-post .entry-content tr:nth-child(even) td,
body.tcn-single .entry-content tr:nth-child(even) td,
body.single-news .entry-content tr:nth-child(even) td,
body.single-tcn_news .entry-content tr:nth-child(even) td {
    background: var(--tcn-bg-alt);
}

/* Horizontal rule */
body.single-post .entry-content hr,
body.tcn-single .entry-content hr,
body.single-news .entry-content hr,
body.single-tcn_news .entry-content hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--tcn-primary), transparent);
    margin: 32px 0;
}

/* Category / tag pills below the article */
body.single-post .cat-links,
body.tcn-single .cat-links,
body.single-news .cat-links,
body.single-post .tags-links,
body.tcn-single .tags-links,
body.single-news .tags-links,
body.single-tcn_news .cat-links,
body.single-tcn_news .tags-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--tcn-border);
    font-size: 12px;
}
body.single-post .cat-links a,
body.tcn-single .cat-links a,
body.single-news .cat-links a,
body.single-post .tags-links a,
body.tcn-single .tags-links a,
body.single-news .tags-links a,
body.single-tcn_news .cat-links a,
body.single-tcn_news .tags-links a {
    background: var(--tcn-bg-alt);
    border: 1px solid var(--tcn-border);
    padding: 4px 10px;
    border-radius: 50px;
    color: var(--tcn-text);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.15s;
}
body.single-post .cat-links a:hover,
body.tcn-single .cat-links a:hover,
body.single-news .cat-links a:hover,
body.single-post .tags-links a:hover,
body.tcn-single .tags-links a:hover,
body.single-news .tags-links a:hover,
body.single-tcn_news .cat-links a:hover,
body.single-tcn_news .tags-links a:hover {
    background: var(--tcn-primary);
    color: #fff;
    border-color: var(--tcn-primary);
}

/* Comments area — same width as the article card (with sidebar). */
body.single-post .comments-area,
body.tcn-single .comments-area,
body.single-news .comments-area,
body.single-tcn_news .comments-area {
    max-width: 1320px;
    margin: 0 auto 60px;
    background: #fff;
    padding: 32px 48px;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(15, 20, 25, 0.08);
    box-sizing: border-box;
}
body.single-post .comments-title,
body.tcn-single .comments-title,
body.single-news .comments-title,
body.single-tcn_news .comments-title,
body.tcn-single #reply-title,
body.tcn-single .comment-reply-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    letter-spacing: 1.2px;
    margin: 0 0 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--tcn-dark);
    color: var(--tcn-dark);
}
body.tcn-single .comment-reply-title small { font-size: 13px; font-weight: 500; margin-left: 10px; }
body.tcn-single .comment-reply-title small a { color: var(--tcn-primary); text-decoration: none; }

/* "Logged in as X. Edit your profile. Log out?" line */
body.tcn-single .logged-in-as {
    display: block;
    font-size: 13px;
    color: var(--tcn-text-muted);
    margin-bottom: 16px;
    padding: 10px 14px;
    background: var(--tcn-bg-alt);
    border-radius: 6px;
    border-left: 3px solid var(--tcn-primary);
}
body.tcn-single .logged-in-as a {
    color: var(--tcn-primary);
    text-decoration: none;
    font-weight: 600;
}
body.tcn-single .logged-in-as a:hover { text-decoration: underline; }

/* The "Required fields are marked *" notice */
body.tcn-single .comment-notes,
body.tcn-single .comment-form-cookies-consent {
    font-size: 12px;
    color: var(--tcn-text-muted);
    margin-bottom: 14px;
}
body.tcn-single .required,
body.tcn-single .required-field-message { color: var(--tcn-primary); }

/* Form rows */
body.tcn-single .comment-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
body.tcn-single .comment-form p {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
body.tcn-single .comment-form label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--tcn-text);
}

/* Inputs + textarea */
body.tcn-single .comment-form input[type="text"],
body.tcn-single .comment-form input[type="email"],
body.tcn-single .comment-form input[type="url"],
body.tcn-single .comment-form textarea {
    width: 100%;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 14px;
    border: 1px solid var(--tcn-border);
    border-radius: 8px;
    background: #fff;
    color: var(--tcn-text);
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}
body.tcn-single .comment-form textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.6;
}
body.tcn-single .comment-form input:focus,
body.tcn-single .comment-form textarea:focus {
    outline: none;
    border-color: var(--tcn-primary);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.15);
}

/* Cookie consent checkbox row */
body.tcn-single .comment-form-cookies-consent {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}
body.tcn-single .comment-form-cookies-consent input { margin: 0; }

/* Submit button */
body.tcn-single .form-submit {
    margin-top: 4px;
}
body.tcn-single .form-submit input[type="submit"],
body.tcn-single .form-submit .submit {
    background: var(--tcn-primary);
    color: #fff;
    padding: 12px 28px;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, transform 0.15s;
    letter-spacing: 0.5px;
}
body.tcn-single .form-submit input[type="submit"]:hover,
body.tcn-single .form-submit .submit:hover {
    background: var(--tcn-primary-dark);
    transform: translateY(-1px);
}

/* Existing comments list */
body.tcn-single .comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
}
body.tcn-single .comment-list li {
    padding: 18px 0;
    border-bottom: 1px solid var(--tcn-border);
}
body.tcn-single .comment-list li:last-child { border-bottom: none; }
body.tcn-single .comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
body.tcn-single .comment-author .avatar {
    border-radius: 50%;
    width: 40px;
    height: 40px;
}
body.tcn-single .comment-author .fn {
    font-weight: 700;
    font-size: 14px;
    color: var(--tcn-dark);
    font-style: normal;
}
body.tcn-single .comment-meta, body.tcn-single .comment-metadata {
    font-size: 11px;
    color: var(--tcn-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
body.tcn-single .comment-meta a, body.tcn-single .comment-metadata a {
    color: inherit;
    text-decoration: none;
}
body.tcn-single .comment-content {
    font-size: 15px;
    line-height: 1.65;
    color: var(--tcn-text);
}
body.tcn-single .reply a {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--tcn-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    margin-top: 6px;
}
body.tcn-single .reply a:hover { color: var(--tcn-primary-dark); }

/* Nested replies */
body.tcn-single .comment-list .children {
    list-style: none;
    margin-left: 24px;
    padding-left: 16px;
    border-left: 2px solid var(--tcn-border);
}

/* Post navigation (prev/next) */
body.single-post .post-navigation,
body.tcn-single .post-navigation,
body.single-news .post-navigation,
body.single-tcn_news .post-navigation {
    max-width: 780px;
    margin: 0 auto 40px;
    display: flex;
    gap: 12px;
}
body.single-post .post-navigation .nav-previous,
body.tcn-single .post-navigation .nav-previous,
body.single-news .post-navigation .nav-previous,
body.single-post .post-navigation .nav-next,
body.tcn-single .post-navigation .nav-next,
body.single-news .post-navigation .nav-next,
body.single-tcn_news .post-navigation .nav-previous,
body.single-tcn_news .post-navigation .nav-next {
    flex: 1;
    background: #fff;
    padding: 16px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
body.single-post .post-navigation a,
body.tcn-single .post-navigation a,
body.single-news .post-navigation a,
body.single-tcn_news .post-navigation a {
    text-decoration: none;
    color: var(--tcn-dark);
    font-weight: 600;
    font-size: 14px;
}

/* ==========================================================================
   GUTENBERG BLOCKS — polish the native WP blocks the blog editor uses.
   ========================================================================== */

/* --- Details block (accordion / FAQ) --- */
body.tcn-single .entry-content details,
body.tcn-single .entry-content .wp-block-details {
    background: var(--tcn-bg-alt);
    border: 1px solid var(--tcn-border);
    border-left: 4px solid var(--tcn-primary);
    border-radius: 8px;
    padding: 16px 22px;
    margin: 16px 0;
    transition: box-shadow 0.2s;
}
body.tcn-single .entry-content details[open],
body.tcn-single .entry-content .wp-block-details[open] {
    background: #fff;
    box-shadow: 0 4px 16px rgba(15, 20, 25, 0.06);
}
body.tcn-single .entry-content details > summary,
body.tcn-single .entry-content .wp-block-details > summary {
    font-weight: 700;
    font-size: 17px;
    color: var(--tcn-dark);
    cursor: pointer;
    list-style: none;
    padding-right: 28px;
    position: relative;
    line-height: 1.4;
}
body.tcn-single .entry-content details > summary::-webkit-details-marker,
body.tcn-single .entry-content .wp-block-details > summary::-webkit-details-marker { display: none; }
body.tcn-single .entry-content details > summary::after,
body.tcn-single .entry-content .wp-block-details > summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: var(--tcn-primary);
    font-weight: 700;
    transition: transform 0.2s;
}
body.tcn-single .entry-content details[open] > summary::after,
body.tcn-single .entry-content .wp-block-details[open] > summary::after {
    content: "−";
}

/* Center images inside accordion when marked aligncenter (was staying left) */
body.tcn-single .entry-content details .aligncenter,
body.tcn-single .entry-content details figure.aligncenter,
body.tcn-single .entry-content details .wp-block-image.aligncenter,
body.tcn-single .entry-content details img.aligncenter,
body.tcn-single .entry-content .wp-block-details .aligncenter,
body.tcn-single .entry-content .wp-block-details figure.aligncenter,
body.tcn-single .entry-content .wp-block-details .wp-block-image.aligncenter,
body.tcn-single .entry-content .wp-block-details img.aligncenter {
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
    float: none !important;
    text-align: center !important;
}

/* --- Tables --- */
body.tcn-single .entry-content .wp-block-table,
body.tcn-single .entry-content table {
    margin: 24px 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--tcn-border);
    box-shadow: 0 2px 10px rgba(15, 20, 25, 0.04);
}
body.tcn-single .entry-content .wp-block-table table,
body.tcn-single .entry-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.5;
    background: #fff;
}
body.tcn-single .entry-content th {
    background: var(--tcn-dark);
    color: #fff;
    text-align: left;
    padding: 14px 16px;
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border: none;
}
/* FIRST ROW with <strong> acts as header even without <thead>/<th>
   (Gutenberg tables often use <td><strong>LABEL</strong></td>). */
body.tcn-single .entry-content table > tbody > tr:first-child > td,
body.tcn-single .entry-content .wp-block-table table > tbody > tr:first-child > td {
    background: var(--tcn-dark) !important;
    color: #fff !important;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 14px 16px;
    border: none;
}
body.tcn-single .entry-content table > tbody > tr:first-child > td strong,
body.tcn-single .entry-content .wp-block-table table > tbody > tr:first-child > td strong {
    color: #fff !important;
    font-weight: 800;
}
body.tcn-single .entry-content td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--tcn-border);
    vertical-align: middle;
}
body.tcn-single .entry-content tr:last-child td { border-bottom: none; }
body.tcn-single .entry-content tbody tr:not(:first-child):nth-child(even) td {
    background: var(--tcn-bg-alt);
}
body.tcn-single .entry-content tbody tr:not(:first-child):hover td {
    background: rgba(186, 0, 255, 0.06);
}
/* First column of the BODY rows — often a card number / SKU. Mono font so
   it visually groups like code and helps scanning the column. */
body.tcn-single .entry-content table > tbody > tr:not(:first-child) > td:first-child,
body.tcn-single .entry-content .wp-block-table table > tbody > tr:not(:first-child) > td:first-child {
    font-family: 'SF Mono', Menlo, Consolas, monospace;
    font-weight: 700;
    font-size: 12.5px;
    color: var(--tcn-primary-darker);
    letter-spacing: 0.3px;
}
/* Images inside table cells — center + contain */
body.tcn-single .entry-content td img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}
/* Header row never wraps — keeps column labels on one line. Body cells stay
   wrappable. On very narrow screens the table scrolls horizontally (see
   below). */
body.tcn-single .entry-content th,
body.tcn-single .entry-content table > tbody > tr:first-child > td,
body.tcn-single .entry-content .wp-block-table table > tbody > tr:first-child > td {
    white-space: nowrap;
}

/* Mobile tables — force table-layout:fixed so columns stay within the
   container width (accordion body, article card, etc.) no matter how long
   the content is. Body text wraps; header stays on one line with compact
   font. Table never pushes past its parent. */
@media (max-width: 640px) {
    body.tcn-single .entry-content .wp-block-table,
    body.tcn-single .entry-content table {
        display: table;
        width: 100% !important;
        max-width: 100%;
        overflow: hidden;
        table-layout: fixed !important;
    }
    body.tcn-single .entry-content th,
    body.tcn-single .entry-content td {
        padding: 9px 8px;
        font-size: 12.5px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
        line-height: 1.35;
    }
    /* Header row — smaller compact font + tight padding so 3+ columns fit
       comfortably on narrow phones without overlapping. !important to beat
       Gutenberg + theme inherited font-size on the <table> element. */
    body.tcn-single .entry-content th,
    body.tcn-single .entry-content table > tbody > tr:first-child > td,
    body.tcn-single .entry-content .wp-block-table table > tbody > tr:first-child > td,
    body.tcn-single .entry-content table > tbody > tr:first-child > td > strong {
        font-size: 9.5px !important;
        padding: 8px 4px !important;
        letter-spacing: 0.15px !important;
        white-space: normal !important;
        word-break: break-word !important;
        line-height: 1.15 !important;
        min-width: 0 !important;
    }
    /* Mono first column — shrink font so card IDs don't blow out the column */
    body.tcn-single .entry-content table > tbody > tr:not(:first-child) > td:first-child {
        font-size: 10.5px !important;
        letter-spacing: 0 !important;
    }
}

/* Even tighter at very-small phone widths (≤380px) where long tables get
   real narrow columns. */
@media (max-width: 380px) {
    body.tcn-single .entry-content th,
    body.tcn-single .entry-content table > tbody > tr:first-child > td,
    body.tcn-single .entry-content table > tbody > tr:first-child > td > strong {
        font-size: 8.5px !important;
        padding: 7px 3px !important;
        letter-spacing: 0 !important;
    }
    body.tcn-single .entry-content td {
        padding: 7px 4px !important;
        font-size: 11px !important;
    }
}

/* Tables inside accordions: prevent them from expanding the accordion box.
   The body has overflow:hidden so any table overflow is clipped, and the
   table itself is constrained to 100% width with fixed layout. */
body.tcn-single .entry-content .wp-block-aab-accordion-item .aagb__accordion_body {
    max-width: 100%;
    overflow-x: hidden;
}
body.tcn-single .entry-content .wp-block-aab-accordion-item .aagb__accordion_body table,
body.tcn-single .entry-content .wp-block-aab-accordion-item .aagb__accordion_body .wp-block-table,
body.tcn-single .entry-content .wp-block-aab-accordion-item .aagb__accordion_body .wp-block-table table {
    width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed !important;
    box-sizing: border-box;
}
body.tcn-single .entry-content .wp-block-aab-accordion-item .aagb__accordion_body th,
body.tcn-single .entry-content .wp-block-aab-accordion-item .aagb__accordion_body td {
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

/* --- Columns block (2-column lists etc.) --- */
body.tcn-single .entry-content .wp-block-columns {
    gap: 24px;
    margin: 24px 0;
}
body.tcn-single .entry-content .wp-block-column {
    min-width: 0;
}
body.tcn-single .entry-content .wp-block-column > ul,
body.tcn-single .entry-content .wp-block-column > ol {
    margin-top: 0;
}
body.tcn-single .entry-content .wp-block-columns ul li,
body.tcn-single .entry-content .wp-block-columns ol li {
    margin-bottom: 6px;
}

/* Polished directory-style list — overrides the inline has-background colors
   (grey / lavender etc.) the author added manually. Gives a clean zebra
   list with a purple top accent, so long 2-column A–Z lists read nicely. */
body.tcn-single .entry-content .wp-block-columns .wp-block-list,
body.tcn-single .entry-content .wp-block-columns ul.has-background,
body.tcn-single .entry-content .wp-block-columns > .wp-block-column > ul {
    background: #fff !important;
    background-color: #fff !important;
    border: 1px solid var(--tcn-border);
    border-top: 3px solid var(--tcn-primary);
    border-radius: 10px;
    padding: 4px 0 !important;
    list-style: none !important;
    margin: 0;
    box-shadow: 0 2px 10px rgba(15, 20, 25, 0.04);
    overflow: hidden;
}
body.tcn-single .entry-content .wp-block-columns .wp-block-list li,
body.tcn-single .entry-content .wp-block-columns ul.has-background li,
body.tcn-single .entry-content .wp-block-columns > .wp-block-column > ul > li {
    padding: 9px 16px !important;
    border-bottom: 1px solid var(--tcn-border);
    font-size: 13.5px;
    line-height: 1.35;
    margin: 0 !important;
    font-family: 'Inter', sans-serif;
    color: var(--tcn-text);
    list-style: none;
    position: relative;
}
body.tcn-single .entry-content .wp-block-columns .wp-block-list li:last-child,
body.tcn-single .entry-content .wp-block-columns ul.has-background li:last-child,
body.tcn-single .entry-content .wp-block-columns > .wp-block-column > ul > li:last-child {
    border-bottom: none;
}
body.tcn-single .entry-content .wp-block-columns .wp-block-list li:nth-child(even),
body.tcn-single .entry-content .wp-block-columns ul.has-background li:nth-child(even),
body.tcn-single .entry-content .wp-block-columns > .wp-block-column > ul > li:nth-child(even) {
    background: rgba(186, 0, 255, 0.028);
}
body.tcn-single .entry-content .wp-block-columns .wp-block-list li::marker,
body.tcn-single .entry-content .wp-block-columns ul.has-background li::marker { display: none; content: ""; }

/* Nice two-col list layout on mobile — stack below 640px */
@media (max-width: 640px) {
    body.tcn-single .entry-content .wp-block-columns {
        flex-wrap: wrap !important;
        gap: 14px !important;
    }
    body.tcn-single .entry-content .wp-block-column {
        flex-basis: 100% !important;
    }
    body.tcn-single .entry-content .wp-block-columns .wp-block-list li,
    body.tcn-single .entry-content .wp-block-columns ul.has-background li,
    body.tcn-single .entry-content .wp-block-columns > .wp-block-column > ul > li {
        padding: 10px 14px !important;
        font-size: 14px;
    }
}

/* --- FAQ blocks (Rank Math / schema-faq-section markup) ---
   HTML: <div class="schema-faq-section">
           <strong class="schema-faq-question">Q?</strong>
           <p class="schema-faq-answer">A...</p>
         </div>
   Rendered as individual cards with a Q badge + clean answer block. */
body.tcn-single .entry-content .schema-faq-section {
    background: #fff;
    border: 1px solid var(--tcn-border);
    border-left: 4px solid var(--tcn-primary);
    border-radius: 10px;
    padding: 20px 24px;
    margin: 14px 0;
    transition: box-shadow 0.2s, transform 0.15s;
    box-shadow: 0 2px 8px rgba(15, 20, 25, 0.04);
    position: relative;
}
body.tcn-single .entry-content .schema-faq-section:hover {
    box-shadow: 0 8px 20px rgba(15, 20, 25, 0.08);
    transform: translateY(-1px);
}
body.tcn-single .entry-content .schema-faq-question {
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: var(--tcn-dark);
    line-height: 1.4;
    margin: 0 0 10px;
    padding-left: 40px;
    position: relative;
    font-family: 'Inter', sans-serif;
}
body.tcn-single .entry-content .schema-faq-question::before {
    content: "Q";
    position: absolute;
    left: 0;
    top: -2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--tcn-primary);
    color: #fff;
    border-radius: 6px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 20px;
    line-height: 1;
    font-weight: 400;
    letter-spacing: 0;
}
body.tcn-single .entry-content .schema-faq-answer {
    font-size: 15px;
    line-height: 1.7;
    color: var(--tcn-text);
    margin: 0 0 0 40px;
    padding: 0;
}

@media (max-width: 640px) {
    body.tcn-single .entry-content .schema-faq-section {
        padding: 16px 18px;
    }
    body.tcn-single .entry-content .schema-faq-question {
        font-size: 15px;
        padding-left: 34px;
    }
    body.tcn-single .entry-content .schema-faq-question::before {
        width: 24px;
        height: 24px;
        font-size: 17px;
    }
    body.tcn-single .entry-content .schema-faq-answer {
        font-size: 14px;
        margin-left: 34px;
    }
}

/* --- Pullquote / quote blocks (purple accent) --- */
body.tcn-single .entry-content .wp-block-pullquote {
    border-top: 3px solid var(--tcn-primary);
    border-bottom: 3px solid var(--tcn-primary);
    padding: 24px 0;
    margin: 28px 0;
    text-align: center;
}
body.tcn-single .entry-content .wp-block-pullquote p {
    font-size: 22px;
    font-style: italic;
    line-height: 1.4;
    color: var(--tcn-dark);
    margin: 0 0 10px;
}
body.tcn-single .entry-content .wp-block-pullquote cite {
    font-size: 12px;
    color: var(--tcn-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-style: normal;
}

/* --- Separator --- */
body.tcn-single .entry-content .wp-block-separator,
body.tcn-single .entry-content hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--tcn-primary), transparent);
    margin: 32px 0;
    max-width: 120px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Button block --- */
body.tcn-single .entry-content .wp-block-button__link {
    background: var(--tcn-primary-dark);
    color: #fff !important;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.15s, transform 0.15s;
    display: inline-block;
}
body.tcn-single .entry-content .wp-block-button__link:hover {
    background: var(--tcn-primary-darker);
    transform: translateY(-1px);
}

/* ==========================================================================
   SIDEBAR SHARE — colored brand backgrounds on hover (X, FB, IG, TT, Copy)
   ========================================================================== */
.tcn-share-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.tcn-share-btn.tcn-share-x:hover      { background: #000; color: #fff !important; border-color: #000; }
.tcn-share-btn.tcn-share-fb:hover     { background: #1877f2; color: #fff !important; border-color: #1877f2; }
.tcn-share-btn.tcn-share-ig:hover     {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #fff !important;
    border-color: transparent;
}
.tcn-share-btn.tcn-share-yt:hover     { background: #ff0000; color: #fff !important; border-color: #ff0000; }
.tcn-share-btn.tcn-share-tt:hover     { background: #000; color: #fff !important; border-color: #000; box-shadow: 0 0 0 1px #25f4ee inset; }
.tcn-share-btn.tcn-share-copy:hover   { background: var(--tcn-primary); color: #fff !important; border-color: var(--tcn-primary); }

/* Responsive — mobile */
@media (max-width: 768px) {
    body.single-post .site-main > article,
    body.tcn-single .site-main > article,
    body.single-news .site-main > article,
    body.single-post .content-area > article,
    body.tcn-single .content-area > article,
    body.single-news .content-area > article,
    body.single-post .post.type-post,
    body.tcn-single .post.type-post,
    body.single-news .post.type-post,
    body.single-tcn_news .site-main > article,
    body.single-tcn_news .content-area > article,
    body.single-tcn_news .post.type-tcn_news {
        margin: 20px 12px 40px;
        padding: 24px 20px;
        border-radius: 10px;
    }
    body.single-post .entry-title,
    body.tcn-single .entry-title,
    body.single-news .entry-title,
    body.single-tcn_news .entry-title { font-size: 30px; }
    body.single-post .entry-content p,
    body.tcn-single .entry-content p,
    body.single-news .entry-content p,
    body.single-tcn_news .entry-content p { font-size: 16px; }
    body.single-post .entry-content h2,
    body.tcn-single .entry-content h2,
    body.single-news .entry-content h2,
    body.single-tcn_news .entry-content h2 { font-size: 24px; }
    body.single-post .post-thumbnail,
    body.tcn-single .post-thumbnail,
    body.single-news .post-thumbnail,
    body.single-tcn_news .post-thumbnail,
    body.single-post .wp-post-image,
    body.tcn-single .wp-post-image,
    body.single-news .wp-post-image,
    body.single-tcn_news .wp-post-image {
        margin: -24px -20px 20px;
        width: calc(100% + 40px);
        border-radius: 10px 10px 0 0;
    }
    body.single-post .comments-area,
    body.tcn-single .comments-area,
    body.single-news .comments-area,
    body.single-tcn_news .comments-area {
        margin: 0 12px 40px;
        padding: 20px;
    }
    body.single-post .post-navigation,
    body.tcn-single .post-navigation,
    body.single-news .post-navigation,
    body.single-tcn_news .post-navigation {
        margin: 0 12px 30px;
        flex-direction: column;
    }

    /* Hero on mobile — shorter aspect, title-only overlay. */
    .tcn-post-hero { margin: 0 0 16px; }
    .tcn-post-hero-media { border-radius: 10px; aspect-ratio: 3 / 2; min-height: 240px; }
    .tcn-post-hero-overlay { padding: 16px 18px 20px; }
    .tcn-post-hero-cats { top: 12px; left: 12px; }
    .tcn-post-hero-cats a { font-size: 10px; padding: 4px 10px; }
    .tcn-post-hero-title { font-size: 22px !important; letter-spacing: 0.6px !important; }
    .tcn-post-breadcrumbs { font-size: 11px; margin: 14px 0 10px; }
    .tcn-post-breadcrumbs [aria-current="page"] { max-width: 180px; }
    .tcn-post-byline { padding: 12px 0 14px; margin-bottom: 18px; gap: 10px; font-size: 12px; }
    .tcn-post-byline-avatar { width: 32px !important; height: 32px !important; }
    .tcn-post-byline-name { font-size: 13px; }
    .tcn-post-byline-by { font-size: 10px; }
}

/* Small phones — 480px and below. Hide the "BY" label to save space, shrink
   title further, hide read-time dot on narrowest screens. */
@media (max-width: 480px) {
    body.single-post .site-main > article,
    body.tcn-single .site-main > article,
    body.single-news .site-main > article,
    body.single-post .content-area > article,
    body.tcn-single .content-area > article,
    body.single-news .content-area > article,
    body.single-post .post.type-post,
    body.tcn-single .post.type-post,
    body.single-news .post.type-post,
    body.single-tcn_news .site-main > article,
    body.single-tcn_news .content-area > article,
    body.single-tcn_news .post.type-tcn_news {
        margin: 12px 8px 32px;
        padding: 16px 14px;
        border-radius: 8px;
    }
    .tcn-post-hero-media { aspect-ratio: 16 / 10; min-height: 200px; }
    .tcn-post-hero-overlay { padding: 14px 14px 16px; }
    .tcn-post-hero-title { font-size: 18px !important; line-height: 1.15 !important; }
    .tcn-post-hero-cats { top: 10px; left: 10px; }
    .tcn-post-hero-cats a { font-size: 9px; padding: 3px 8px; letter-spacing: 1px; }
    .tcn-post-breadcrumbs { font-size: 10px; }
    .tcn-post-breadcrumbs [aria-current="page"] { max-width: 140px; }
    .tcn-post-byline { font-size: 11px; gap: 8px; padding: 10px 0 12px; }
    .tcn-post-byline-avatar { width: 28px !important; height: 28px !important; }
    .tcn-post-byline-name { font-size: 12px; }
    .tcn-post-byline-by { display: none; }

    /* Article body typography shrinks a bit */
    body.single-post .entry-content p,
    body.tcn-single .entry-content p,
    body.single-news .entry-content p,
    body.single-tcn_news .entry-content p { font-size: 15px; line-height: 1.65; }
    body.single-post .entry-content h2,
    body.tcn-single .entry-content h2,
    body.single-news .entry-content h2,
    body.single-tcn_news .entry-content h2 { font-size: 22px; }
    body.single-post .entry-content h3,
    body.tcn-single .entry-content h3,
    body.single-news .entry-content h3,
    body.single-tcn_news .entry-content h3 { font-size: 18px; }

    /* Meta strip / author card / tags */
    .tcn-post-author-card { padding: 16px; gap: 12px; }
    .tcn-post-author-avatar { width: 56px; height: 56px; }
    .tcn-post-author-card h4 { font-size: 16px; }

    /* Sidebar blocks stack tighter */
    .tcn-single-sidebar { gap: 14px; }
    .tcn-sidebar-block { padding: 16px; }
    .tcn-share-grid { gap: 6px; }
    .tcn-share-btn { font-size: 11px; padding: 8px; gap: 5px; }
    .tcn-share-btn .dashicons { font-size: 14px; width: 14px; height: 14px; }

    /* Comments */
    body.single-post .comments-area,
    body.tcn-single .comments-area,
    body.single-news .comments-area,
    body.single-tcn_news .comments-area {
        margin: 0 8px 32px;
        padding: 16px;
        border-radius: 10px;
    }
    body.tcn-single #reply-title,
    body.tcn-single .comment-reply-title,
    body.tcn-single .comments-title { font-size: 22px; }
    body.tcn-single .comment-form input[type="text"],
    body.tcn-single .comment-form input[type="email"],
    body.tcn-single .comment-form input[type="url"],
    body.tcn-single .comment-form textarea { font-size: 14px; padding: 10px 12px; }
    body.tcn-single .logged-in-as { font-size: 12px; padding: 8px 10px; }
}

/* ==========================================================================
   ARCHIVE PAGES — News archive, Post archive, category / tag / search / date
   Structure comes from the theme's default template:
     <body class="archive post-type-archive post-type-archive-tcn_news">
       <div class="tcn-default-content">
         <header><h1>Archives: <span>News</span></h1></header>
         <div class="tcn-archive-list">
           <article class="tcn-archive-item post-XX ...">
             <a><img class="wp-post-image"></a>
             <div>
               <h2><a>Title</a></h2>
               <div class="entry-meta">author · date</div>
               <p>excerpt</p>
             </div>
           </article>
         </div>
       </div>
   ========================================================================== */

body.archive,
body.search-results,
body.blog {
    background: var(--tcn-bg-alt);
}

/* Theme content wrapper — widen it so the grid can breathe. */
body.archive .tcn-default-content,
body.search-results .tcn-default-content,
body.blog .tcn-default-content {
    max-width: 1320px;
    margin: 0 auto;
    padding: 32px 24px 60px;
    box-sizing: border-box;
}

/* Archive header */
body.archive .tcn-default-content > header,
body.search-results .tcn-default-content > header,
body.blog .tcn-default-content > header {
    text-align: center;
    margin-bottom: 36px;
    padding: 28px 24px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(15, 20, 25, 0.05);
}
body.archive .tcn-default-content > header h1,
body.search-results .tcn-default-content > header h1,
body.blog .tcn-default-content > header h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 42px;
    letter-spacing: 2px;
    margin: 0;
    color: var(--tcn-primary);
    text-transform: uppercase;
    line-height: 1.1;
}
body.archive .tcn-default-content > header h1 span,
body.search-results .tcn-default-content > header h1 span,
body.blog .tcn-default-content > header h1 span {
    color: var(--tcn-primary);
}
body.archive .tcn-default-content > header .archive-description,
body.search-results .tcn-default-content > header .archive-description {
    margin-top: 10px;
    color: var(--tcn-text-muted);
    font-size: 15px;
    max-width: 640px;
    margin-inline: auto;
}

/* Grid of cards */
.tcn-archive-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

/* Card */
.tcn-archive-item {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(15, 20, 25, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--tcn-border);
    position: relative;
}
.tcn-archive-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(15, 20, 25, 0.12);
    border-color: rgba(230, 57, 70, 0.2);
}

/* Featured image link — first child <a> containing the image */
.tcn-archive-item > a:first-child {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--tcn-bg-alt);
    position: relative;
}
.tcn-archive-item > a:first-child img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s;
    display: block;
}
.tcn-archive-item:hover > a:first-child img { transform: scale(1.05); }

/* Fallback when no featured image — show a branded gradient placeholder */
.tcn-archive-item:not(.has-post-thumbnail) > a:first-child {
    background: linear-gradient(135deg, var(--tcn-secondary) 0%, var(--tcn-dark) 100%);
}
.tcn-archive-item:not(.has-post-thumbnail) > a:first-child::after {
    content: "TRADING CARD NERD";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.25);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    letter-spacing: 3px;
}

/* Content side of the card */
.tcn-archive-item > div {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.tcn-archive-item h2 {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
    margin: 0;
    color: var(--tcn-dark);
    letter-spacing: 0.2px;
}
.tcn-archive-item h2 a {
    color: inherit !important;
    text-decoration: none !important;
    transition: color 0.15s;
}
.tcn-archive-item:hover h2 a { color: var(--tcn-primary) !important; }

.tcn-archive-item .entry-meta {
    font-size: 11px;
    color: var(--tcn-text-muted);
    letter-spacing: 0.6px;
    text-transform: uppercase;
    font-weight: 600;
}

.tcn-archive-item p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--tcn-text);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Category tag — derive from the tcn_news_category-* body class on the
   article. Inject a red pill via ::before on h2 is too fragile, so we
   instead render the category name in the entry-meta via theme. For visual
   polish, we add a small colored dot before the meta. */
.tcn-archive-item .entry-meta::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--tcn-primary);
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}

/* Pagination (WordPress default .page-numbers + theme .nav-links) */
.tcn-default-content .pagination,
.tcn-default-content .nav-links,
.tcn-default-content nav.navigation {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 32px 0 0;
    flex-wrap: wrap;
}
.tcn-default-content .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid var(--tcn-border);
    border-radius: 8px;
    color: var(--tcn-text);
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    transition: all 0.15s;
}
.tcn-default-content .page-numbers:hover {
    background: var(--tcn-primary);
    color: #fff;
    border-color: var(--tcn-primary);
}
.tcn-default-content .page-numbers.current {
    background: var(--tcn-dark);
    color: #fff;
    border-color: var(--tcn-dark);
}

/* Responsive */
@media (max-width: 1024px) {
    .tcn-archive-list { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    body.archive .tcn-default-content > header h1,
    body.search-results .tcn-default-content > header h1,
    body.blog .tcn-default-content > header h1 { font-size: 34px; }
}
@media (max-width: 640px) {
    .tcn-archive-list { grid-template-columns: 1fr; gap: 16px; }
    body.archive .tcn-default-content,
    body.search-results .tcn-default-content,
    body.blog .tcn-default-content { padding: 20px 12px 48px; }
    body.archive .tcn-default-content > header,
    body.search-results .tcn-default-content > header,
    body.blog .tcn-default-content > header {
        padding: 22px 18px;
        margin-bottom: 24px;
    }
    body.archive .tcn-default-content > header h1,
    body.search-results .tcn-default-content > header h1,
    body.blog .tcn-default-content > header h1 { font-size: 28px; }
    .tcn-archive-item h2 { font-size: 17px; }
    .tcn-archive-item > div { padding: 16px; }
}
