/*
Theme Name: GlobeRead
Theme URI: https://globeread.com
Author: globeread
Author URI: https://globeread.com
Description: Curated reads from across the web — globeread.com
Version: 1.9.8
License: GNU General Public License v2 or later
Text Domain: globeread
*/

@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;600;700&family=Inter:wght@400;500;600&display=swap');

/* ═══════════════════════════════════════
   CSS VARIABLES — Light & Dark mode
═══════════════════════════════════════ */
:root {
    --bg:         #F5F4F0;
    --surface:    #ffffff;
    --ink:        #1a1a1a;
    --muted:      #6b6b6b;
    --border:     #E8E4DC;
    --accent:     #c0392b;
    --accent-h:   #a93226;
    --header-bg:  #F5F4F0;
    --shadow:     0 1px 4px rgba(0,0,0,0.06);
    --radius:     10px;
    --font-body:  'Inter', -apple-system, sans-serif;
    --font-head:  'Lora', Georgia, serif;
}

body.dark-mode {
    --bg:        #1a1a1a;
    --surface:   #222222;
    --ink:       #e8e8f0;
    --muted:     #888899;
    --border:    #2a2a35;
    --header-bg: #13131a;
    --shadow:    0 2px 20px rgba(0,0,0,0.3);
}

/* ═══════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ═══════════════════════════════════════
   HEADER
═══════════════════════════════════════ */
.site-header {
    background: var(--header-bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    overflow: visible;
    transition: background 0.3s, border-color 0.3s;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    overflow: visible;
    position: relative;
}

.site-logo-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    flex-shrink: 0;
}

.site-logo-wrap::after {
    content: 'Human-curated · No algorithm · Always free';
    display: block;
    font-size: 10px;
    color: var(--subtle);
    font-family: var(--font-sans);
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1;
    margin-top: 2px;
}

.site-logo {
    font-family: var(--font-body);
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.5px;
    flex-shrink: 0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}
.site-logo span { color: var(--accent); }

.site-logo-icon {
    width: 9px;
    height: 9px;
    margin-left: 3px;
    vertical-align: middle;
    flex-shrink: 0;
    display: inline-block;
    position: relative;
    top: -4px;
}

.site-nav ul { display: flex; gap: 4px; align-items: center; }
.site-nav ul li a {
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    transition: color 0.15s, background 0.15s;
}
.site-nav ul li a:hover,
.site-nav ul li.current-menu-item a { color: var(--ink); background: var(--border); }

.header-controls { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.dark-toggle {
    width: 36px; height: 36px;
    border: none; background: transparent;
    cursor: pointer; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: var(--muted);
    transition: background 0.15s, color 0.15s;
    font-size: 18px;
}
.dark-toggle:hover { background: var(--border); color: var(--ink); }

.btn-subscribe {
    padding: 8px 20px;
    background: var(--accent);
    color: #fff !important;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.15s, transform 0.15s;
    white-space: nowrap;
}
.btn-subscribe:hover { background: var(--accent-h); transform: translateY(-1px); }

.menu-toggle {
    display: none;
    width: 36px; height: 36px;
    border: 1px solid var(--border);
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.menu-toggle span {
    display: block; width: 18px; height: 2px;
    background: var(--ink); border-radius: 2px; transition: all 0.2s;
}

/* ═══════════════════════════════════════
   MAIN & FOOTER
═══════════════════════════════════════ */

/* ═══════════════════════════════════════
   PROFILE DROPDOWN
═══════════════════════════════════════ */
.trn-profile {
    position: relative;
}
.trn-profile-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px 5px 5px;
    border: 1.5px solid var(--border);
    border-radius: 100px;
    background: var(--surface);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    transition: border-color 0.15s, box-shadow 0.15s;
    white-space: nowrap;
}
.trn-profile-btn:hover {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(192,57,43,0.08);
}
.trn-profile-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}
.trn-profile-dropdown {
    display: none;
    position: fixed;
    min-width: 210px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    z-index: 99999;
    overflow: hidden;
    animation: dropIn 0.15s ease;
}
@keyframes dropIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.trn-profile-dropdown.open {
    display: block;
}
.trn-profile-info {
    padding: 14px 16px 12px;
    border-bottom: 1px solid var(--border);
}
.trn-profile-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--ink);
    margin-bottom: 2px;
}
.trn-profile-email {
    font-size: 12px;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.trn-profile-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    font-size: 14px;
    color: var(--ink);
    text-decoration: none;
    transition: background 0.12s;
}
.trn-profile-dropdown a:hover { background: var(--bg); }
.trn-profile-dropdown a svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.6;
}
.trn-profile-dropdown a.trn-logout {
    border-top: 1px solid var(--border);
    color: var(--accent);
}
.trn-profile-dropdown a.trn-logout svg { opacity: 1; }

.site-main { min-height: calc(100vh - 64px - 80px); }

.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 28px 24px;
    text-align: center;
    font-size: 13px;
    color: var(--muted);
    transition: background 0.3s;
}
.site-footer a { color: var(--accent); }
.site-footer a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════
   DARK MODE — COMPLETE
═══════════════════════════════════════ */
body.dark-mode,
body.dark-mode .trn-wrapper,
body.dark-mode .site-main {
    background-color: #1a1a1a !important;
}

/* Search */
body.dark-mode .trn-search-wrap {
    background-color: #222 !important;
    border-color: #2a2a35 !important;
}
body.dark-mode .trn-search {
    background-color: #222 !important;
    color: #e8e8f0 !important;
    border-color: #2a2a35 !important;
}
body.dark-mode .trn-search::placeholder { color: #555 !important; }
body.dark-mode .trn-search-icon { color: #555 !important; }

/* Category buttons */
body.dark-mode .trn-cat-btn {
    background-color: #222 !important;
    color: #888 !important;
    border-color: #2a2a35 !important;
}
body.dark-mode .trn-cat-btn.active {
    background-color: #e8e8f0 !important;
    color: #1a1a1a !important;
    border-color: #e8e8f0 !important;
}
body.dark-mode .trn-cat-btn:hover {
    background-color: #2a2a35 !important;
    color: #e8e8f0 !important;
}

/* Articles */
body.dark-mode .site-logo-wrap::after { color: #555; }
body.dark-mode .trn-article { border-color: #2a2a35 !important; }
body.dark-mode .trn-article-inner { background-color: #1a1a1a !important; }
body.dark-mode .trn-title a { color: #e8e8f0 !important; }
body.dark-mode .trn-title a:hover { color: #c0392b !important; }
body.dark-mode .trn-resume { color: #888899 !important; }
body.dark-mode .trn-date,
body.dark-mode .trn-author,
body.dark-mode .trn-source { color: #555 !important; }

/* Action buttons */
body.dark-mode .trn-action-btn {
    background: #222 !important;
    border-color: #2a2a35 !important;
    color: #555 !important;
}
body.dark-mode .trn-action-btn:hover {
    background: #2a2a35 !important;
    border-color: #444 !important;
    color: #aaa !important;
}
body.dark-mode .trn-save.active {
    border-color: #f5a623 !important;
    background: rgba(245,166,35,0.12) !important;
    color: #f5a623 !important;
}
body.dark-mode .trn-like.active {
    border-color: #e05a5a !important;
    background: rgba(224,90,90,0.12) !important;
    color: #e05a5a !important;
}

/* Read More & Load More */
body.dark-mode .trn-read-btn { background: #c0392b !important; color: #fff !important; }
body.dark-mode .trn-loadmore {
    background: #222 !important;
    border-color: #2a2a35 !important;
    color: #888 !important;
}
body.dark-mode .trn-loadmore:hover {
    background: #2a2a35 !important;
    color: #e8e8f0 !important;
}

/* Empty state */
body.dark-mode .trn-empty { color: #555 !important; }

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 768px) {
    .site-nav {
        display: none;
        position: absolute;
        top: 64px; left: 0; right: 0;
        background: var(--header-bg);
        border-bottom: 1px solid var(--border);
        padding: 12px 16px;
        z-index: 99;
    }
    .site-nav.open { display: block; }
    .site-nav ul { flex-direction: column; gap: 4px; }
    .site-nav ul li a { display: block; padding: 10px 14px; }
    .menu-toggle { display: flex; }
    .btn-subscribe {
        display: inline-block !important;
        padding: 7px 14px !important;
        font-size: 13px !important;
        border-radius: 8px !important;
        background: #c0392b !important;
        color: #fff !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
        pointer-events: auto !important;
        cursor: pointer !important;
        -webkit-tap-highlight-color: transparent !important;
    }
}

/* ═══════════════════════════════════════
   MOBILE IMPROVEMENTS
═══════════════════════════════════════ */
@media (max-width: 600px) {

    /* ── Header ── */
    .header-inner {
        padding: 0 16px;
        gap: 12px;
    }

    .site-logo {
        font-size: 18px;
    }

    /* Hide dark toggle label, keep button compact */
    .dark-toggle {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }

    /* ── Action buttons — single icon mode ── */
    .trn-actions-top {
        gap: 4px;
    }

    .trn-action-btn {
        padding: 4px 8px !important;
        font-size: 11px !important;
        gap: 3px !important;
    }

    /* Hide text labels, keep only icons */
    .trn-save::after   { content: '☆'; }
    .trn-share::after  { content: '↗'; }
    .trn-feedback::after { content: '✉'; }

    .trn-save,
    .trn-share,
    .trn-feedback {
        font-size: 0 !important;
        width: 30px !important;
        padding: 0 !important;
        justify-content: center !important;
    }

    .trn-save::after,
    .trn-share::after,
    .trn-feedback::after {
        font-size: 14px;
    }

    .trn-save.active::after   { content: '★'; color: #f5a623; }
    .trn-share.copied::after  { content: '✓'; color: #27ae60; }

    /* Like button — handle separately to keep count badge working */
    .trn-like {
        position: static !important;
        padding: 0 !important;
        justify-content: center !important;
        min-width: 30px !important;
        gap: 0 !important;
        overflow: visible !important;
    }

    .trn-like-label {
        position: relative !important;
        font-size: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 20px !important;
        height: 20px !important;
    }

    .trn-like-label::before {
        content: '♡';
        font-size: 15px;
        display: inline-block;
        line-height: 1;
    }

    .trn-like.active .trn-like-label::before {
        content: '♥';
        color: #c0392b;
    }

    .trn-like-count {
        position: absolute !important;
        top: -7px !important;
        right: -9px !important;
        left: auto !important;
        font-size: 9px !important;
        min-width: 14px !important;
        height: 14px !important;
        padding: 0 3px !important;
        line-height: 14px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 2 !important;
    }

    .trn-like-count:empty {
        display: none !important;
    }

    /* ── Meta row ── */
    .trn-meta-top {
        flex-wrap: nowrap;
        gap: 6px;
    }

    .trn-meta-left {
        flex-shrink: 0;
        gap: 6px;
    }

    /* ── Article ── */
    .trn-article-inner {
        padding: 16px !important;
    }

    .trn-title {
        font-size: 18px !important;
    }

    .trn-footer {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .trn-read-btn {
        width: 100%;
        justify-content: center;
    }

    /* ── Search ── */
    .trn-search {
        font-size: 14px !important;
    }

    /* ── Category buttons ── */
    .trn-categories-filter {
        gap: 6px !important;
    }

    .trn-cat-btn {
        padding: 5px 12px !important;
        font-size: 12px !important;
    }

    /* ── Profile dropdown ── */
    .trn-profile-dropdown {
        right: -10px;
        min-width: 180px;
    }

    .trn-profile-btn span:not(.trn-profile-avatar) {
        display: none;
    }

    .trn-profile-btn {
        padding: 4px 8px 4px 4px;
    }
}
/* ═══════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════ */
.gr-hero {
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a2e 50%, #0f0f0f 100%);
    padding: 72px 32px 64px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.gr-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 60% 80% at 50% 120%, rgba(192,57,43,0.22) 0%, transparent 70%);
    pointer-events: none;
}
.gr-hero-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.gr-hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.65); font-size: 12px; font-weight: 500;
    padding: 5px 14px; border-radius: 20px; margin-bottom: 24px;
}
.gr-hero-title {
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(28px, 4.5vw, 50px);
    font-weight: 700; color: #fff; line-height: 1.15;
    letter-spacing: -1px; margin-bottom: 18px;
}
.gr-hero-title em { font-style: normal; color: var(--accent); }
.gr-hero-sub {
    font-size: 16px; color: rgba(255,255,255,0.5);
    line-height: 1.65; margin-bottom: 32px;
}
.gr-hero-actions {
    display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 40px;
}
.gr-hero-cta {
    padding: 12px 26px; background: var(--accent); color: #fff;
    border-radius: 24px; font-size: 15px; font-weight: 600;
    box-shadow: 0 4px 20px rgba(192,57,43,0.4);
    transition: all 0.2s; display: inline-block;
}
.gr-hero-cta:hover { background: var(--accent-h); transform: translateY(-1px); }
.gr-hero-ghost {
    padding: 12px 22px; background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.75); border-radius: 24px; font-size: 15px; font-weight: 500;
    border: 1px solid rgba(255,255,255,0.15); transition: all 0.2s; display: inline-block;
}
.gr-hero-ghost:hover { background: rgba(255,255,255,0.14); color: #fff; }
.gr-hero-stats { display: flex; align-items: center; justify-content: center; gap: 36px; }
.gr-hero-stat { text-align: center; }
.gr-stat-n { font-size: 22px; font-weight: 800; color: #fff; letter-spacing: -0.5px; }
.gr-stat-l { font-size: 11px; color: rgba(255,255,255,0.35); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 2px; }

/* ═══════════════════════════════════════
   PAGE LAYOUT WITH SIDEBAR
═══════════════════════════════════════ */
.gr-page {
    max-width: 1200px; margin: 0 auto; padding: 0 24px 80px;
}
.gr-feed-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 32px;
    align-items: start;
    margin-top: 0;
}
.gr-main-col { min-width: 0; }

/* ═══════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════ */
.gr-sidebar {
    display: flex; flex-direction: column; gap: 18px;
    position: sticky; top: 84px;
}
.gr-sidebar-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 14px; padding: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.gr-sidebar-title {
    font-size: 13px; font-weight: 700; color: var(--ink);
    margin-bottom: 14px; display: flex; align-items: center; gap: 6px;
}
.gr-sidebar-cat {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 10px; border-radius: 8px; cursor: pointer;
    transition: background 0.15s; margin-bottom: 4px;
    border: 1px solid var(--border);
}
.gr-sidebar-cat:hover { background: var(--bg); }
.gr-sidebar-cat-name { font-size: 13px; color: var(--ink); font-weight: 500; }

/* Weekly digest sidebar widget */
.gr-sidebar-digest {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    border-radius: 14px; padding: 22px 20px; text-align: center;
}
.gr-digest-icon { font-size: 32px; margin-bottom: 10px; }
.gr-digest-title { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.gr-digest-text { font-size: 12px; color: rgba(255,255,255,0.5); line-height: 1.5; margin-bottom: 16px; }
.gr-digest-btn {
    display: block; padding: 10px 18px; background: var(--accent);
    color: #fff; border-radius: 20px; font-size: 13px; font-weight: 600;
    transition: background 0.15s;
}
.gr-digest-btn:hover { background: var(--accent-h); color: #fff; }

/* Dark mode sidebar */
body.dark-mode .gr-sidebar-card { background: #1e1e1e; border-color: #2a2a35; }
body.dark-mode .gr-sidebar-cat { border-color: #2a2a35; }
body.dark-mode .gr-sidebar-cat:hover { background: #2a2a35; }

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 900px) {
    .gr-feed-layout { grid-template-columns: 1fr; }
    .gr-sidebar { display: none; }
    .gr-hero { padding: 52px 20px 44px; }
    .gr-page { padding: 0 16px 60px; }
    .gr-hero-stats { gap: 20px; }
    .gr-hero-actions { flex-direction: column; align-items: center; }
}
@media (max-width: 520px) {
    .gr-hero-title { font-size: 26px; }
    .gr-hero-sub { font-size: 14px; }
    .gr-stat-n { font-size: 18px; }
}

/* ── SIDEBAR SURPRISE ME BUTTON ── */
.gr-sidebar-surprise {
    width: 100%;
    padding: 13px 16px;
    background: var(--ink);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.15s, transform 0.15s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.gr-sidebar-surprise:hover {
    background: #333;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}
.gr-surprise-sub {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    font-weight: 400;
}
body.dark-mode .gr-sidebar-surprise { background: #e8e4dc; color: #1a1a1a; }
body.dark-mode .gr-sidebar-surprise:hover { background: #ccc; }
body.dark-mode .gr-surprise-sub { color: rgba(0,0,0,0.4); }

/* Sidebar category active state */
.gr-sidebar-cat-active {
    background: var(--ink) !important;
    border-color: var(--ink) !important;
}
.gr-sidebar-cat-active .gr-sidebar-cat-name { color: #fff !important; }
body.dark-mode .gr-sidebar-cat-active { background: var(--accent) !important; border-color: var(--accent) !important; }

/* Sidebar category count + emoji fix */
.gr-sidebar-cat { justify-content: space-between; }
.gr-cat-icon { display: inline-block; width: 22px; text-align: center; font-style: normal; }
.gr-sidebar-cat-count {
    font-size: 11px; color: var(--subtle);
    background: var(--bg); border-radius: 10px;
    padding: 1px 7px; font-weight: 500; flex-shrink: 0;
}
.gr-sidebar-cat-active .gr-sidebar-cat-count { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.7); }

/* ═══════════════════════════════════════
   ARTICLE REDIRECT PAGE (/read?id=X)
═══════════════════════════════════════ */
.rd-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px 60px;
    background: var(--bg);
}
.rd-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px 40px 36px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 4px 32px rgba(0,0,0,.08);
}
.rd-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}
.rd-cat {
    display: inline-block;
    padding: 3px 11px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    font-family: var(--font-sans);
}
.rd-title {
    font-family: var(--font-body);
    font-size: 26px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.25;
    letter-spacing: -0.4px;
    margin-bottom: 10px;
}
.rd-meta {
    font-size: 13px;
    color: var(--subtle);
    margin-bottom: 16px;
}
.rd-meta strong { color: var(--ink); }
.rd-resume {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}
.rd-redirect-box {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 20px;
}
.rd-redirect-icon {
    font-size: 22px;
    margin-bottom: 8px;
}
.rd-redirect-text {
    font-size: 14px;
    color: var(--ink2);
    margin-bottom: 14px;
    line-height: 1.5;
}
.rd-redirect-text strong { color: var(--ink); }
#rd-countdown {
    font-weight: 700;
    color: var(--accent);
    font-size: 16px;
}
.rd-progress-bar {
    height: 4px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}
.rd-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--accent);
    border-radius: 4px;
}
.rd-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.rd-btn-primary {
    flex: 1;
    padding: 13px 20px;
    background: var(--accent);
    color: #fff;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    transition: background 0.15s;
    font-family: var(--font-sans);
}
.rd-btn-primary:hover { background: var(--accent-h); color: #fff; }
.rd-btn-secondary {
    padding: 13px 20px;
    background: var(--bg);
    color: var(--muted);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--border);
    transition: all 0.15s;
    font-family: var(--font-sans);
    white-space: nowrap;
}
.rd-btn-secondary:hover { background: var(--border); color: var(--ink); }
.rd-brand {
    margin-top: 28px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.rd-brand-link {
    font-family: Georgia, serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.3px;
}
.rd-brand-link span { color: var(--accent); }
.rd-brand-tag {
    font-size: 11px;
    color: var(--subtle);
}
@media (max-width: 520px) {
    .rd-card { padding: 28px 20px 24px; border-radius: 14px; }
    .rd-title { font-size: 20px; }
    .rd-actions { flex-direction: column; }
    .rd-btn-primary, .rd-btn-secondary { text-align: center; }
}
body.dark-mode .rd-card { background: #1e1e1e; border-color: #2a2a35; }
body.dark-mode .rd-redirect-box { background: #141414; border-color: #2a2a35; }
body.dark-mode .rd-btn-secondary { background: #2a2a35; border-color: #333; color: #aaa; }

/* ═══════════════════════════════════════
   SEO ARTICLE PAGE (/read/{slug})
═══════════════════════════════════════ */
.rd-seo-page { background: var(--bg); }

.rd-seo-header {
    background: rgba(249,249,247,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 100;
    padding: 0 24px;
}
.rd-seo-header-inner {
    max-width: 720px; margin: 0 auto;
    height: 56px; display: flex;
    align-items: center; justify-content: space-between;
}
.rd-seo-logo { text-decoration: none; }
.rd-seo-back {
    font-size: 13px; color: var(--muted);
    text-decoration: none; transition: color 0.15s;
}
.rd-seo-back:hover { color: var(--ink); }

.rd-seo-main {
    max-width: 720px; margin: 0 auto;
    padding: 40px 24px 80px;
}
.rd-seo-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 44px 48px 40px;
    box-shadow: 0 2px 16px rgba(0,0,0,.06);
}

/* Breadcrumb */
.rd-seo-breadcrumb {
    font-size: 12px; color: var(--subtle);
    display: flex; align-items: center; gap: 6px;
    margin-bottom: 20px; flex-wrap: wrap;
}
.rd-seo-breadcrumb a { color: var(--muted); text-decoration: none; }
.rd-seo-breadcrumb a:hover { color: var(--accent); }

/* Title */
.rd-seo-title {
    font-family: var(--font-body);
    font-size: 30px; font-weight: 700;
    color: var(--ink); line-height: 1.2;
    letter-spacing: -0.5px;
    margin: 16px 0 12px;
}

/* Meta */
.rd-seo-meta {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: var(--subtle);
    margin-bottom: 24px;
}
.rd-seo-author strong { color: var(--ink); }
.rd-seo-dot { color: var(--border2); }

/* Summary */
.rd-seo-summary {
    font-size: 16px; color: var(--ink2);
    line-height: 1.75;
    padding: 24px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 28px;
}

/* CTA */
.rd-seo-cta-wrap { margin-bottom: 28px; }
.rd-seo-cta-primary {
    display: block; width: 100%;
    padding: 16px 24px;
    background: var(--accent);
    color: #fff;
    border-radius: 12px;
    font-size: 16px; font-weight: 600;
    text-align: center;
    transition: background 0.15s;
    margin-bottom: 10px;
}
.rd-seo-cta-primary:hover { background: var(--accent-h); color: #fff; }
.rd-seo-cta-note {
    font-size: 12px; color: var(--subtle);
    text-align: center; line-height: 1.5;
}

.rd-seo-divider {
    border: none; border-top: 1px solid var(--border);
    margin: 28px 0;
}

/* Pitch block */
.rd-seo-pitch {
    display: flex; align-items: center;
    justify-content: space-between; gap: 20px;
    flex-wrap: wrap;
}
.rd-seo-pitch-text { font-size: 14px; color: var(--muted); line-height: 1.55; flex: 1; }
.rd-seo-pitch-text strong { color: var(--ink); }
.rd-seo-pitch-btn {
    padding: 10px 20px;
    background: var(--ink); color: #fff;
    border-radius: 20px; font-size: 13px;
    font-weight: 600; white-space: nowrap;
    transition: background 0.15s;
}
.rd-seo-pitch-btn:hover { background: #333; color: #fff; }

@media (max-width: 600px) {
    .rd-seo-card { padding: 28px 20px 28px; border-radius: 12px; }
    .rd-seo-title { font-size: 22px; }
    .rd-seo-summary { font-size: 15px; }
    .rd-seo-pitch { flex-direction: column; align-items: flex-start; }
    .rd-seo-pitch-btn { width: 100%; text-align: center; }
}

body.dark-mode .rd-seo-header { background: rgba(15,15,15,0.95); }
body.dark-mode .rd-seo-card { background: #1e1e1e; border-color: #2a2a35; }
body.dark-mode .rd-seo-summary { color: #b0b0b0; }

/* ── HIDE GUEST-ONLY ELEMENTS FOR LOGGED-IN USERS ── */
/* WordPress adds body.logged-in automatically — no JS, no caching issues */
body.logged-in .trn-promo-banner  { display: none !important; }
body.logged-in .gr-sidebar-digest { display: none !important; }

/* ── FOOTER ── */
.site-footer {
    background: #1a1a1a;
    border-top: none;
    padding: 40px 32px 32px;
    margin-top: 60px;
}
.site-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}
.site-footer-logo {
    font-family: Georgia, serif;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.3px;
}
.site-footer-logo span { color: #C0392B; }
.site-footer-tagline {
    font-size: 13px;
    color: rgba(255,255,255,0.35);
    margin-top: 4px;
    font-family: 'Inter', sans-serif;
}
.site-footer-social {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}
.site-footer-social-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.65);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.15s;
}
.site-footer-social-link:hover {
    background: rgba(255,255,255,0.14);
    color: #fff;
    border-color: rgba(255,255,255,0.2);
}
.site-footer-copy {
    font-size: 12px;
    color: rgba(255,255,255,0.25);
    font-family: 'Inter', sans-serif;
}
.site-footer-copy a {
    color: rgba(255,255,255,0.4);
    text-decoration: none;
}
.site-footer-copy a:hover { color: #fff; }
@media (max-width: 600px) {
    .site-footer { padding: 32px 20px 24px; }
    .site-footer-social-link span { display: none; }
    .site-footer-social-link { padding: 9px 12px; }
}

/* ── HEADER SOCIAL ICONS ── */
.site-header-social {
    display: flex;
    align-items: center;
    gap: 4px;
}
.site-header-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--muted);
    text-decoration: none;
    transition: all 0.15s;
}
.site-header-social-link:hover {
    background: var(--border);
    color: var(--ink);
}
body.dark-mode .site-header-social-link { color: #666; }
body.dark-mode .site-header-social-link:hover { background: #2a2a35; color: #ccc; }
@media (max-width: 600px) { .site-header-social { display: none; } }

/* ── SEO KEYWORD SECTION ── */
.gr-seo-section {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 48px 32px;
    margin-top: 0;
}
.gr-seo-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.gr-seo-block h2 {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
    letter-spacing: -0.2px;
}
.gr-seo-block p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.7;
}
body.dark-mode .gr-seo-section { border-color: #2a2a35; }
body.dark-mode .gr-seo-block h2 { color: #e8e4dc; }
@media (max-width: 768px) {
    .gr-seo-inner { grid-template-columns: 1fr; gap: 20px; }
    .gr-seo-section { padding: 32px 20px; }
}
