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

/* ═══════════════════════════════════════
   TRN Articles — New Editorial Theme
   Warm paper bg · White cards · Serif titles
═══════════════════════════════════════ */

:root {
    --trn-bg:       #F5F4F0;
    --trn-white:    #ffffff;
    --trn-ink:      #1a1a1a;
    --trn-muted:    #6b6b6b;
    --trn-subtle:   #999;
    --trn-border:   #E8E4DC;
    --trn-border2:  #D5D0C8;
    --trn-accent:   #6B42D8;
    --trn-accent-h: #5832B9;
    --trn-radius:   14px;
}

/* ── HOMEPAGE HERO ── */
.home .gr-hero { display: none; }

.trn-home-hero {
    position: relative;
    width: min(calc(100% - 48px), 1440px);
    min-height: 470px;
    margin: 24px auto 78px;
    overflow: visible;
    background: transparent;
    color: #171713;
    isolation: isolate;
}

.trn-home-hero::before {
    content: '';
    position: absolute;
    z-index: -2;
    inset: 0;
    border: 1px solid #e8e2ef;
    border-radius: 24px;
    background-image: url('globeread-books-flowers-hero.webp');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center bottom;
    box-shadow: 0 18px 50px rgba(65, 45, 90, .09);
}

.trn-home-hero::after {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0;
    border-radius: 24px;
    background: linear-gradient(90deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.82) 31%, rgba(255,255,255,.38) 46%, rgba(255,255,255,0) 62%);
    pointer-events: none;
}

.trn-home-hero-inner {
    width: min(calc(100% - 96px), 1240px);
    min-height: 470px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.trn-home-hero-copy {
    width: min(590px, 48vw);
    padding: 50px 0 66px;
}

.trn-home-hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: #6640cf;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.trn-home-hero-eyebrow span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #7044dc;
    box-shadow: 0 0 0 5px rgba(112,68,220,.1);
}

.trn-home-hero h1 {
    margin: 19px 0 16px;
    color: #141219;
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(50px, 4.5vw, 72px);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -.045em;
}

.trn-home-hero-subtitle {
    margin: 0;
    max-width: 520px;
    color: #5d5965;
    font-size: 17px;
    line-height: 1.55;
}

.trn-home-hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 27px 0 0;
}

.trn-home-hero-primary,
.trn-home-hero-secondary {
    min-width: 154px;
    min-height: 46px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: 1px solid #6b42d8;
    border-radius: 7px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.trn-home-hero-primary {
    border-color: #6b42d8;
    background: #6b42d8;
    color: #fff;
    box-shadow: 0 9px 24px rgba(107,66,216,.2);
}

.trn-home-hero-secondary { background: rgba(255,255,255,.62); color: #653dcb; }
.trn-home-hero-primary:hover,
.trn-home-hero-secondary:hover { transform: translateY(-2px); box-shadow: 0 7px 18px rgba(40,36,30,.12); }
.trn-home-hero-primary:hover { background: #5b34c3; color: #fff; }

.trn-home-discovery {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: -34px;
    width: min(calc(100% - 120px), 1180px);
    min-height: 68px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 11px 14px 11px 20px;
    border: 1px solid #e8e1ef;
    border-radius: 18px;
    background: rgba(255,255,255,.97);
    box-shadow: 0 16px 34px rgba(53,39,75,.13);
    transform: translateX(-50%);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.trn-home-search-wrap {
    position: relative;
    flex: 1 1 440px;
    min-width: 240px;
}

.trn-home-search-wrap > svg {
    position: absolute;
    z-index: 2;
    left: 14px;
    top: 50%;
    width: 20px;
    height: 20px;
    color: #77717f;
    transform: translateY(-50%);
    pointer-events: none;
}

.trn-home-search {
    height: 46px;
    padding: 0 18px 0 44px;
    border-color: #e4deea;
    border-radius: 12px;
    background: #fff;
    font-size: 14px;
}

.trn-home-search:focus {
    border-color: #8a68df;
    box-shadow: 0 0 0 3px rgba(107,66,216,.1);
}

.trn-home-sort-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.trn-home-sort {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 16px;
    border: 1px solid #e3ddea;
    border-radius: 999px;
    background: #fff;
    color: #39343f;
    font: 600 13px/1 'Inter', sans-serif;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.trn-home-sort > svg { width: 17px; height: 17px; flex: 0 0 auto; }
.trn-home-sort:hover { border-color: #a78ce9; color: #6540c8; transform: translateY(-1px); }
.trn-home-sort.active {
    border-color: #6b42d8;
    background: #6b42d8;
    color: #fff;
    box-shadow: 0 8px 20px rgba(107,66,216,.22);
}

.trn-home-topics { position: relative; }
.trn-home-topic-arrow { width: 13px !important; height: 13px !important; transition: transform .18s ease; }
.trn-home-topics.is-open .trn-home-topic-arrow { transform: rotate(180deg); }
.trn-home-topics-menu {
    position: absolute;
    z-index: 30;
    top: calc(100% + 10px);
    right: 0;
    width: 250px;
    max-height: 330px;
    overflow-y: auto;
    padding: 9px;
    border: 1px solid #e5deed;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 16px 38px rgba(42,29,61,.16);
}

.trn-home-topics-menu .trn-cat-btn {
    width: 100%;
    min-height: 40px;
    justify-content: flex-start;
    margin: 0;
    padding: 9px 12px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #4c4652;
    text-align: left;
}

.trn-home-topics-menu .trn-cat-btn:hover { background: #f5f1fc; color: #643dcc; }
.trn-home-topics-menu .trn-cat-btn.active { background: #ede6fb; color: #5d35c6; }

body.dark-mode .trn-home-hero { color: #e8e4dc; }
body.dark-mode .trn-home-hero::before { border-color: #3a3540; opacity: .48; }
body.dark-mode .trn-home-hero::after { background: linear-gradient(90deg, rgba(23,22,26,.98) 0%, rgba(23,22,26,.94) 34%, rgba(23,22,26,.64) 52%, rgba(23,22,26,.14) 72%); }
body.dark-mode .trn-home-hero h1 { color: #f4f0e8; }
body.dark-mode .trn-home-hero-eyebrow,
body.dark-mode .trn-home-hero-subtitle,
body.dark-mode .trn-home-hero-trust { color: #c5c2b9; }
body.dark-mode .trn-home-hero-secondary { border-color: #77756f; background: rgba(20,20,18,.45); color: #f1eee7; }
body.dark-mode .trn-home-discovery,
body.dark-mode .trn-home-topics-menu { border-color: #3c3841; background: rgba(28,27,31,.98); }
body.dark-mode .trn-home-search,
body.dark-mode .trn-home-sort { border-color: #47424d; background: #242329; color: #e8e4ed; }
body.dark-mode .trn-home-sort.active { border-color: #7c55df; background: #6b42d8; color: #fff; }
body.dark-mode .trn-home-topics-menu .trn-cat-btn { color: #d2ccd8; }
body.dark-mode .trn-home-topics-menu .trn-cat-btn:hover,
body.dark-mode .trn-home-topics-menu .trn-cat-btn.active { background: #392f4d; color: #fff; }

@media (max-width: 1120px) {
    .trn-home-discovery { width: min(calc(100% - 56px), 980px); gap: 10px; }
    .trn-home-sort { padding: 9px 12px; }
    .trn-home-sort > span { display: none; }
    .trn-home-sort:last-child > span,
    #trn-home-topics-btn > span { display: inline; }
}

@media (max-width: 780px) {
    .trn-home-hero,
    .trn-home-hero-inner { min-height: 520px; }
    .trn-home-hero { width: calc(100% - 24px); margin-top: 12px; margin-bottom: 154px; }
    .trn-home-hero::before { inset: 0; background-position: 66% bottom; opacity: .38; }
    .trn-home-hero::after { background: linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.91) 61%, rgba(255,255,255,.57) 100%); }
    .trn-home-hero-inner { width: min(100% - 36px, 720px); }
    .trn-home-hero-copy { width: min(520px, 100%); padding: 46px 0 42px; }
    .trn-home-hero h1 { font-size: clamp(43px, 12vw, 58px); }
    .trn-home-discovery {
        bottom: -130px;
        width: calc(100% - 28px);
        min-height: 146px;
        display: block;
        padding: 12px;
    }
    .trn-home-search-wrap { min-width: 0; }
    .trn-home-sort-actions {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 7px;
        margin-top: 9px;
    }
    .trn-home-sort { width: 100%; min-width: 0; padding: 9px 5px; }
    .trn-home-sort > span,
    #trn-home-topics-btn > span { display: none; }
    .trn-home-topics-menu { right: 0; width: min(250px, 86vw); }
    body.dark-mode .trn-home-hero::after { background: linear-gradient(90deg, rgba(23,24,22,.98) 0%, rgba(23,24,22,.9) 55%, rgba(23,24,22,.5) 100%); }
}

@media (max-width: 520px) {
    .trn-home-hero,
    .trn-home-hero-inner { min-height: 500px; }
    .trn-home-hero-copy { padding: 37px 0 34px; }
    .trn-home-hero-eyebrow { font-size: 10px; gap: 8px; }
    .trn-home-hero h1 { margin: 19px 0 15px; font-size: 42px; }
    .trn-home-hero-subtitle { font-size: 16px; line-height: 1.5; }
    .trn-home-hero-break { display: none; }
    .trn-home-hero-actions { gap: 9px; margin: 24px 0 0; }
    .trn-home-hero-primary,
    .trn-home-hero-secondary { min-width: 0; flex: 1; min-height: 46px; padding: 11px 14px; font-size: 15px; }
    .trn-home-search { font-size: 13px; }
}

/* ── WRAPPER ── */
.trn-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 36px 20px 80px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--trn-bg);
    min-height: 100vh;
}

/* ── CONTROLS ── */
.trn-controls {
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Search */
.trn-search-wrap { position: relative; }

.trn-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #bbb;
    pointer-events: none;
}

.trn-search {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border: 1px solid var(--trn-border);
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    background: var(--trn-white);
    color: var(--trn-ink);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.trn-search:focus {
    border-color: var(--trn-border2);
    box-shadow: 0 0 0 3px rgba(26,26,26,0.05);
}

.trn-search::placeholder { color: #bbb; }

/* Category filter */
.trn-categories-filter {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.trn-cat-row1 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.trn-cat-btn {
    padding: 5px 14px;
    border: 1px solid var(--trn-border2);
    border-radius: 20px;
    background: var(--trn-white);
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.trn-cat-btn:hover {
    border-color: var(--trn-accent);
    color: var(--trn-accent);
}

.trn-cat-btn.active {
    background: var(--trn-accent);
    border-color: var(--trn-accent);
    color: #fff;
}

.trn-cat-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    padding: 5px 14px;
    border: 1px dashed var(--trn-border2);
    border-radius: 20px;
    background: transparent;
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: #888;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
}

.trn-cat-more-btn:hover {
    border-color: var(--trn-accent);
    color: var(--trn-accent);
    border-style: solid;
}

.trn-more-arrow {
    font-size: 10px;
    transition: transform 0.2s;
    display: inline-block;
}

.trn-cat-filter-expanded .trn-more-arrow { transform: rotate(180deg); }
.trn-cat-filter-expanded .trn-cat-more-btn {
    border-style: solid;
    color: var(--trn-accent);
    border-color: var(--trn-accent);
}

.trn-cat-row2 {
    display: flex;
    flex-direction: column;
    background: var(--trn-white);
    border: 1px solid var(--trn-border);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
    padding: 6px;
    min-width: 180px;
    gap: 2px;
}

.trn-cat-row2 .trn-cat-btn {
    border-radius: 8px;
    border: none;
    text-align: left;
    justify-content: flex-start;
    font-size: 13px;
    padding: 8px 14px;
    color: var(--trn-ink);
    background: transparent;
}

.trn-cat-row2 .trn-cat-btn:hover { background: var(--trn-bg); border: none; color: var(--trn-ink); }
.trn-cat-row2 .trn-cat-btn.active { background: var(--trn-accent); color: #fff; border: none; }

/* ── ARTICLE LIST ── */
.trn-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    min-height: 200px;
    width: 100%;
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
}

.trn-list.trn-loading { opacity: 0.4; pointer-events: none; }

/* ── ARTICLE CARD ── */
.trn-article {
    background: var(--trn-white);
    border: 1px solid var(--trn-border);
    border-radius: var(--trn-radius);
    padding: 18px 24px;
    animation: trnFadeIn 0.4s ease both;
    width: 100%;
    min-height: 250px;
    box-sizing: border-box;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.trn-article:hover {
    border-color: rgba(107, 66, 216, 0.68);
    box-shadow: 0 8px 24px rgba(76, 46, 145, 0.08);
    transform: translateY(-1px);
}

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

.trn-article.trn-visible { opacity: 1; }

.trn-article-inner {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    min-height: 214px;
}

/* ── SOURCE + TOPICS — one compact top row ── */
.trn-card-head {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-bottom: 12px;
    min-width: 0;
}

.trn-card-source-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex-shrink: 0;
}

.trn-source-meta {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    min-width: 200px;
    flex-shrink: 0;
}

.trn-source-identity {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
}

.trn-source-meta-name {
    appearance: none;
    border: 0;
    padding: 0;
    background: none;
    font-size: 13px;
    line-height: 1.25;
    font-weight: 700;
    color: var(--trn-ink);
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    text-align: left;
    white-space: nowrap;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trn-source-meta-name:hover {
    color: var(--trn-accent);
}

.trn-source-domain {
    display: block;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font: 400 11px/1.25 'Inter', sans-serif;
    color: var(--trn-muted);
}

.trn-source-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #f0e9ff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 500;
    color: #5936a9;
    flex-shrink: 0;
    overflow: hidden;
}

/* ── CEFR ENGLISH LEVEL ── */
.trn-level-wrap {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
    margin-left: auto;
    font-family: 'Inter', sans-serif;
}

.trn-level-badge {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 26px;
    padding: 4px 9px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: #f2ecff;
    color: #5832b9;
    font: 700 10px/1 'Inter', sans-serif;
    letter-spacing: .035em;
    white-space: nowrap;
    box-sizing: border-box;
}

button.trn-level-badge {
    cursor: help;
}

.trn-level-badge:focus-visible {
    outline: 2px solid #6b42d8;
    outline-offset: 2px;
}

.trn-level-badge svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.trn-reading-time-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 26px;
    padding: 4px 9px;
    border: 1px solid #e4dff0;
    border-radius: 999px;
    background: #f8f6fb;
    color: #685d78;
    font: 650 10px/1 'Inter', sans-serif;
    letter-spacing: .01em;
    white-space: nowrap;
    box-sizing: border-box;
    flex-shrink: 0;
}

.trn-reading-time-badge svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.trn-level-a1 .trn-level-badge { background:#eaf4ff; color:#245f9b; border-color:#d5e8fb; }
.trn-level-a2 .trn-level-badge { background:#e8f7f7; color:#216d71; border-color:#d2ecec; }
.trn-level-b1 .trn-level-badge { background:#edf6ed; color:#356b3b; border-color:#dbeadb; }
.trn-level-b2 .trn-level-badge { background:#f2ecff; color:#5832b9; border-color:#e4d8ff; }
.trn-level-c1 .trn-level-badge { background:#fff3dc; color:#8a5a12; border-color:#f3dfb9; }
.trn-level-c2 .trn-level-badge { background:#faeaf0; color:#94415f; border-color:#efd5df; }

.trn-level-tooltip {
    position: absolute;
    z-index: 30;
    top: calc(100% + 9px);
    right: 0;
    width: 238px;
    padding: 11px 12px;
    border: 1px solid #e5ded6;
    border-radius: 10px;
    background: #fff;
    color: #4d4741;
    box-shadow: 0 10px 28px rgba(48, 36, 28, .13);
    font: 400 12px/1.45 'Inter', sans-serif;
    letter-spacing: 0;
    white-space: normal;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-3px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
    pointer-events: none;
}

.trn-level-tooltip::before {
    content: '';
    position: absolute;
    top: -5px;
    right: 22px;
    width: 8px;
    height: 8px;
    border-left: 1px solid #e5ded6;
    border-top: 1px solid #e5ded6;
    background: #fff;
    transform: rotate(45deg);
}

.trn-level-tooltip strong {
    display: block;
    margin-bottom: 2px;
    color: #241f1a;
    font-weight: 700;
}

.trn-level-wrap:hover .trn-level-tooltip,
.trn-level-wrap:focus-within .trn-level-tooltip,
.trn-level-wrap.is-open .trn-level-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ── TOPIC PILLS ── */
.trn-meta-top {
    display: flex;
    align-items: center;
    margin: 0;
    gap: 0;
    min-width: 0;
    flex: 1;
}

.trn-meta-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
}

/* category pills — restrained GlobeRead lavender */
.trn-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    border: none;
    color: #4b356f;
    background: #f2ecff;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.trn-date { display: none; }

/* ── TITLE — large serif bold ── */
.trn-title {
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(20px, 2.4vw, 26px);
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 5px;
    color: var(--trn-ink);
    letter-spacing: -0.02em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.trn-title a {
    color: inherit;
    text-decoration: none;
}

.trn-title a:hover { color: var(--trn-accent); }

/* ── BYLINE under title ── */
.trn-byline-sub {
    font-size: 13px;
    color: var(--trn-muted);
    margin-bottom: 9px;
    line-height: 1.35;
    font-family: 'Inter', sans-serif;
}

.trn-byline-sub span { color: #444; font-weight: 500; }

/* ── RESUME ── */
.trn-resume {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin: 0 0 12px;
    font-family: 'Inter', sans-serif;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── FOOTER: divider + actions left + Continue Reading right ── */
.trn-footer {
    border-top: 1px solid #e5ded6;
    padding-top: 11px;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

/* byline row hidden — we use trn-byline-sub above title */
.trn-byline { display: none; }

/* Continue Reading link */
.trn-read-btn {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    color: var(--trn-accent);
    text-decoration: none;
    background: none;
    border: none;
    padding: 5px 2px;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.16s ease, transform 0.16s ease;
    flex-shrink: 0;
}

.trn-read-btn svg { display: none; }
.trn-read-btn::after { content: none; }
.trn-read-btn:hover { color: var(--trn-accent-h); transform: translateX(2px); }

/* ── ACTION BUTTONS — compact grouped controls ── */
.trn-actions-row {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 0 1 auto;
}

.trn-actions-row .trn-save { margin-left: 0; }

.trn-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    flex: none;
    padding: 5px 0;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: #4f4f4f;
    transition: color 0.15s;
    white-space: nowrap;
    line-height: 1.4;
}

.trn-action-btn:last-child { border-right: none; }
.trn-action-btn > * { flex-shrink: 0; }
.trn-action-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.trn-action-btn:hover { color: var(--trn-ink); }

.trn-action-btn::before {
    content: '';
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    background: currentColor;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
}

.trn-save::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h12v18l-6-4-6 4V3z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h12v18l-6-4-6 4V3z'/%3E%3C/svg%3E");
}

.trn-like::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.8 4.6a5.5 5.5 0 0 0-7.8 0L12 5.6l-1-1a5.5 5.5 0 0 0-7.8 7.8l1 1L12 21l7.8-7.6 1-1a5.5 5.5 0 0 0 0-7.8z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.8 4.6a5.5 5.5 0 0 0-7.8 0L12 5.6l-1-1a5.5 5.5 0 0 0-7.8 7.8l1 1L12 21l7.8-7.6 1-1a5.5 5.5 0 0 0 0-7.8z'/%3E%3C/svg%3E");
}

.trn-feedback::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-8 8H7l-4 2 1.4-4.2A8 8 0 1 1 21 12z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-8 8H7l-4 2 1.4-4.2A8 8 0 1 1 21 12z'/%3E%3C/svg%3E");
}

/* Save active */
.trn-save.active { color: var(--trn-accent); font-weight: 500; }
.trn-save:hover  { color: var(--trn-accent); }

/* Like active */
.trn-like.active { color: #991b1b; font-weight: 500; }
.trn-like:hover  { color: var(--trn-accent); }

/* Share */
.trn-share:hover  { color: #16a34a; }
.trn-share.copied { color: #166534; font-weight: 500; }

/* Feedback */
.trn-feedback:hover { color: var(--trn-accent); }
.trn-feedback.sent  { color: var(--trn-accent); font-weight: 500; }

/* Like count badge */
.trn-like-label {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.trn-like-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--trn-accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 10px;
    padding: 1px 5px;
    min-width: 16px;
    line-height: 1.5;
    flex-shrink: 0;
}
.trn-like-count:empty { display: none; }
.trn-like.active .trn-like-count { background: var(--trn-accent); color: #fff; }

/* Read badge */
.trn-read-badge {
    display: none !important;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    font-weight: 600;
    color: #16a34a;
    background: #dcfce7;
    border-radius: 100px;
    padding: 2px 8px;
    white-space: nowrap;
}
.trn-article.trn-read .trn-read-badge { display: inline-flex !important; }

/* Read article muted */
.trn-article.trn-read { opacity: 0.72; }
.trn-article.trn-read .trn-title a { color: var(--trn-muted); }
.trn-article.trn-read .trn-title a::after {
    content: '';
    display: inline-block;
    width: 7px; height: 7px;
    background: #22c55e;
    border-radius: 50%;
    margin-left: 7px;
    vertical-align: middle;
}

/* ── EMPTY STATE ── */
.trn-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--trn-muted);
    font-size: 15px;
    font-family: 'Lora', serif;
    font-style: italic;
}

/* ── SPINNER ── */
.trn-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 60px 0;
}

.trn-spinner span {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--trn-accent);
    animation: trn-bounce 1s infinite ease-in-out;
}
.trn-spinner span:nth-child(2) { animation-delay: 0.15s; }
.trn-spinner span:nth-child(3) { animation-delay: 0.3s; }

@keyframes trn-bounce {
    0%,80%,100% { transform: scale(0.6); opacity: 0.4; }
    40%         { transform: scale(1);   opacity: 1; }
}

/* ── LOAD MORE ── */
.trn-loadmore-wrap { text-align: center; margin-top: 32px; }

.trn-loadmore {
    padding: 11px 36px;
    border: 1px solid var(--trn-border2);
    border-radius: 8px;
    background: var(--trn-white);
    font-size: 13px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    color: #555;
    cursor: pointer;
    transition: all 0.15s;
}

.trn-loadmore:hover { background: var(--trn-accent); color: #fff; border-color: var(--trn-accent); }
.trn-loadmore.loading { opacity: 0.5; pointer-events: none; }

/* ── SIGNIN POPUP ── */
.trn-popup-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 9999; align-items: center; justify-content: center; backdrop-filter: blur(3px); }
.trn-popup-overlay.open { display: flex; }
.trn-popup { background: #fff; border-radius: 16px; padding: 36px 32px; max-width: 360px; width: 90%; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,0.2); position: relative; animation: popIn 0.2s ease; }
@keyframes popIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.trn-popup-icon { font-size: 36px; margin-bottom: 12px; display: block; }
.trn-popup h3 { font-size: 20px; font-weight: 700; margin: 0 0 8px; color: #222; }
.trn-popup p  { font-size: 14px; color: #666; margin: 0 0 24px; line-height: 1.5; }
.trn-popup-btns { display: flex; flex-direction: column; gap: 10px; }
.trn-popup-btn { padding: 12px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; border: none; font-family: inherit; text-decoration: none; display: block; transition: opacity 0.15s; text-align: center; }
.trn-popup-btn:hover { opacity: 0.85; }
.trn-popup-btn.primary { background: var(--trn-accent); color: #fff; }
.trn-popup-btn.secondary { background: #f0f0f0; color: #333; }
.trn-google-btn { background: #fff; color: #3c4043; border: 1px solid #dadce0 !important; display: flex !important; align-items: center; justify-content: center; gap: 10px; font-weight: 500; }
.trn-google-btn:hover { background: #f8f9fa !important; opacity: 1 !important; }
.trn-popup-divider { display: flex; align-items: center; gap: 10px; color: #aaa; font-size: 12px; }
.trn-popup-divider::before, .trn-popup-divider::after { content: ''; flex: 1; height: 1px; background: #e0e0e0; }
.trn-popup-close { position: absolute; top: 12px; right: 16px; background: none; border: none; font-size: 18px; cursor: pointer; color: #999; }

/* ── SHARE POPUP ── */
.trn-share { position: relative; }
.trn-share-popup { display: none; position: fixed; background: #fff; border: 1px solid #e8e5e0; border-radius: 12px; padding: 6px; box-shadow: 0 8px 32px rgba(0,0,0,0.14); z-index: 9998; min-width: 190px; white-space: nowrap; animation: trn-popup-in 0.15s ease; }
.trn-share-popup.open { display: block; }
@keyframes trn-popup-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.trn-share-option { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: none; border-radius: 8px; background: none; font-size: 13px; font-family: inherit; color: #333; cursor: pointer; text-align: left; transition: background 0.1s; }
.trn-share-option:hover { background: var(--trn-bg); }
.trn-share-icon { width: 24px; height: 24px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; background: #f0f0f0; }
.trn-icon-x  { background: #000; color: #fff; font-style: normal; font-weight: 700; font-size: 12px; }
.trn-icon-wa { background: #25d366; font-size: 14px; }
.trn-icon-fb { background: #1877f2; color: #fff; font-weight: 700; font-size: 14px; font-style: normal; }

/* ── FEEDBACK POPUP ── */
.trn-feedback-popup { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 9999; align-items: center; justify-content: center; backdrop-filter: blur(3px); }
.trn-feedback-popup.open { display: flex; }
.trn-feedback-box { background: #fff; border-radius: 16px; padding: 28px; max-width: 420px; width: 90%; box-shadow: 0 20px 60px rgba(0,0,0,0.2); position: relative; animation: popIn 0.2s ease; }
.trn-feedback-box h3 { margin: 0 0 16px; font-size: 17px; color: #222; }
.trn-feedback-types { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.trn-feedback-type { padding: 5px 13px; border-radius: 20px; border: 1px solid #e0e0e0; background: none; font-size: 12px; cursor: pointer; font-family: inherit; color: #555; transition: all 0.15s; }
.trn-feedback-type.active, .trn-feedback-type:hover { border-color: var(--trn-accent); color: var(--trn-accent); background: rgba(107,66,216,0.07); }
.trn-feedback-box textarea { width: 100%; border: 1px solid #e0e0e0; border-radius: 10px; padding: 10px 12px; font-size: 13px; font-family: inherit; resize: vertical; min-height: 90px; outline: none; box-sizing: border-box; color: #222; transition: border-color 0.2s; }
.trn-feedback-box textarea:focus { border-color: var(--trn-accent); }
.trn-feedback-submit { margin-top: 12px; width: 100%; padding: 12px; background: var(--trn-accent); color: #fff; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; transition: background 0.15s; }
.trn-feedback-submit:hover { background: var(--trn-accent-h); }

/* ── FAVORITES PAGE ── */
.trn-favorites-wrap { max-width: 780px; margin: 0 auto; padding: 40px 20px; }
.trn-favorites-header { margin-bottom: 20px; }
.trn-favorites-empty { text-align: center; padding: 60px 20px; }
.trn-empty-icon { font-size: 44px; display: block; margin-bottom: 12px; color: #ccc; }
.trn-favorites-empty h2 { font-size: 20px; color: var(--trn-ink); margin: 0 0 8px; }
.trn-favorites-empty p  { font-size: 14px; color: var(--trn-muted); margin: 0 0 20px; }
.trn-back-btn { display: inline-block; padding: 10px 24px; background: var(--trn-accent); color: #fff; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 14px; }
.trn-back-btn:hover { background: var(--trn-accent-h); }

/* ── DARK MODE ── */
body.dark-mode .trn-wrapper     { background: #141414; }
body.dark-mode .trn-article     { background: #1e1e1e; border-color: #2a2a2a; }
body.dark-mode .trn-search      { background: #1e1e1e; border-color: #333; color: #ddd; }
body.dark-mode .trn-cat-btn     { background: #1e1e1e; border-color: #333; color: #aaa; }
body.dark-mode .trn-cat-btn.active { background: #6B42D8; color: #fff; border-color: #7C55DF; }
body.dark-mode .trn-cat-more-btn { border-color: #444; color: #888; }
body.dark-mode .trn-title a     { color: #e8e4dc; }
body.dark-mode .trn-resume      { color: #999; }
body.dark-mode .trn-byline-sub  { color: #666; }
body.dark-mode .trn-action-btn  { color: #888; }
body.dark-mode .trn-action-btn:hover { color: #ccc; }
body.dark-mode .trn-footer      { border-top-color: #2a2a2a; }
body.dark-mode .trn-read-btn    { color: #ccc; text-decoration-color: #555; }
body.dark-mode .trn-read-btn:hover { color: #A88CF0; }
body.dark-mode .trn-loadmore    { background: #1e1e1e; border-color: #333; color: #aaa; }
body.dark-mode .trn-loadmore:hover { background: #6B42D8; color: #fff; border-color: #7C55DF; }
body.dark-mode .trn-popup       { background: #1e1e1e; }
body.dark-mode .trn-popup h3    { color: #e8e4dc; }
body.dark-mode .trn-popup p     { color: #888; }
body.dark-mode .trn-share-popup { background: #1e1e1e; border-color: #333; }
body.dark-mode .trn-share-option { color: #ccc; }
body.dark-mode .trn-share-option:hover { background: #2a2a2a; }
body.dark-mode .trn-feedback-box { background: #1e1e1e; }
body.dark-mode .trn-feedback-box h3 { color: #e8e4dc; }
body.dark-mode .trn-feedback-box textarea { background: #141414; border-color: #333; color: #ddd; }
body.dark-mode .trn-save.active  { color: #f5a623; }
body.dark-mode .trn-like.active  { color: #e05a5a; }
body.dark-mode .trn-share.copied { color: #22c55e; }
body.dark-mode .trn-feedback.sent { color: #3b82f6; }
body.dark-mode .trn-read-badge  { background: rgba(34,197,94,0.15); color: #4ade80; }
body.dark-mode .trn-article.trn-read .trn-title a { color: #666; }
body.dark-mode .trn-source-avatar { background: rgba(107,66,216,0.22); color: #c7b5f5; }
body.dark-mode .trn-source-meta-name { color: #e8e4dc; }
body.dark-mode .trn-source-domain { color: #777; }
body.dark-mode .trn-badge { background: rgba(107,66,216,0.22); color: #d8ccf5; }
body.dark-mode .trn-level-tooltip { background:#27252b; color:#cbc6d0; border-color:#46414c; }
body.dark-mode .trn-level-tooltip::before { background:#27252b; border-color:#46414c; }
body.dark-mode .trn-level-tooltip strong { color:#f0edf4; }
body.dark-mode .trn-reading-time-badge { background:#29262f; color:#c8bdd9; border-color:#433d4c; }

/* ── RESPONSIVE ── */
@media (max-width: 520px) {
    .trn-wrapper { padding: 24px 14px 60px; }
    .trn-article { padding: 18px 16px; min-height: 0; }
    .trn-article-inner { min-height: 0; }
    .trn-card-head {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 10px;
    }
    .trn-source-meta { min-width: 100%; }
    .trn-card-source-row { width: 100%; }
    .trn-card-source-row .trn-source-meta { min-width: 0; flex: 1; }
    .trn-source-avatar { width: 36px; height: 36px; font-size: 13px; }
    .trn-meta-top { width: 100%; flex-basis: 100%; }
    .trn-title { font-size: 21px; }
    .trn-footer  {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .trn-actions-row { width: 100%; gap: 18px; }
    .trn-read-btn    { align-self: flex-end; }
}

/* ── RECO STYLES (kept for compatibility) ── */
.trn-reco-loading { text-align: center; padding: 48px 20px; color: var(--trn-muted); font-size: 14px; }
.trn-reco-empty   { text-align: center; padding: 60px 20px; }
.trn-reco-empty h3 { font-size: 18px; color: var(--trn-ink); margin: 0 0 8px; }
.trn-reco-empty p  { font-size: 14px; color: var(--trn-muted); margin: 0 0 20px; }
.trn-reco-empty a  { display: inline-block; padding: 10px 22px; background: var(--trn-accent); color: #fff; border-radius: 100px; font-size: 13px; font-weight: 600; text-decoration: none; }

/* ── NEW BADGE ── */
.trn-new-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    background: var(--trn-accent);
    color: #fff;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    flex-shrink: 0;
    animation: none;
}
@keyframes trn-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.65; }
}

/* ── BACK TO TOP ── */
.trn-back-top {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 18px;
    z-index: 999;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--trn-accent);
    color: #fff;
    border: none;
    outline: none;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.25s, transform 0.25s;
    pointer-events: none;
}
.trn-back-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.trn-back-top:hover { background: var(--trn-accent-h); }
body.dark-mode .trn-back-top { background: #6B42D8; color: #fff; }
body.dark-mode .trn-back-top:hover { background: #7C55DF; color: #fff; }

@media (max-width: 520px) {
    .trn-back-top { display: inline-flex; }
}

/* ── PICK A PATH ── */
.trn-path-wrap {
    margin-top: 32px;
    margin-bottom: 14px;
}
.trn-path-header { margin-bottom: 14px; }
.trn-path-title {
    display: block;
    font-family: 'Lora', Georgia, serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--trn-ink);
    line-height: 1.2;
}
.trn-path-sub {
    display: block;
    font-size: 12px;
    color: var(--trn-subtle);
    margin-top: 4px;
}
.trn-path-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}
.trn-path-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: var(--trn-white);
    border: 1px solid var(--trn-border);
    border-radius: 14px;
    padding: 14px 10px 10px;
    min-height: 154px;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s, border-color .2s;
    gap: 6px;
}
.trn-path-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,.08);
    border-color: var(--trn-accent);
}
.trn-path-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--trn-path-color);
    background: var(--trn-path-bg);
    margin-bottom: 1px;
}
.trn-path-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.trn-path-intent {
    font-size: 12px;
    font-weight: 700;
    color: var(--trn-ink);
    text-align: center;
    line-height: 1.25;
    font-family: 'Inter', sans-serif;
}
.trn-path-cat {
    font-size: 10px;
    color: var(--trn-subtle);
    text-align: center;
    font-family: 'Inter', sans-serif;
}
.trn-path-divider {
    width: 82%;
    height: 1px;
    background: var(--trn-border);
    margin-top: auto;
}
.trn-path-explore {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--trn-subtle);
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    line-height: 1;
    padding-top: 2px;
}
.trn-path-card:hover .trn-path-explore { color: var(--trn-accent); }
.trn-path-explore span { transition: transform .2s; }
.trn-path-card:hover .trn-path-explore span { transform: translateX(3px); }
@media (max-width: 640px) {
    .trn-path-cards { grid-template-columns: repeat(2, 1fr); }
    .trn-path-cards .trn-path-card:last-child { grid-column: 1 / -1; }
    .trn-path-card { min-height: 148px; }
}

/* ── SURPRISE ME ── */
.trn-surprise-wrap {
    margin: 14px 0 6px;
}
.trn-surprise-btn {
    width: 100%;
    padding: 14px 20px;
    background: var(--trn-accent);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.15s;
}
.trn-surprise-btn:hover { background: var(--trn-accent-h); }
.trn-surprise-sub {
    font-size: 11px;
    font-weight: 400;
    color: rgba(255,255,255,0.45);
}

/* Surprise popup */
.trn-surprise-popup {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
}
.trn-surprise-popup.open { display: flex; }
.trn-surprise-box {
    background: #fff;
    border-radius: 18px;
    padding: 28px 28px 24px;
    max-width: 420px;
    width: 90%;
    position: relative;
    animation: popIn 0.2s ease;
}
.trn-surprise-box .trn-popup-close {
    position: absolute;
    top: 12px; right: 16px;
    background: none; border: none;
    font-size: 18px; cursor: pointer; color: #999;
}
.trn-surprise-cats { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.trn-surprise-title {
    font-family: 'Lora', Georgia, serif;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.25;
    margin-bottom: 8px;
}
.trn-surprise-author { font-size: 12px; color: #999; margin-bottom: 10px; }
.trn-surprise-resume {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.trn-surprise-actions {
    display: flex;
    gap: 10px;
}
.trn-surprise-read {
    flex: 1;
    padding: 11px;
    background: var(--trn-accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: block;
    transition: background 0.15s;
}
.trn-surprise-read:hover { background: var(--trn-accent-h); }
.trn-surprise-again {
    padding: 11px 16px;
    background: #f0f0f0;
    color: #333;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}
.trn-surprise-again:hover { background: #e0e0e0; }

/* dark mode */
body.dark-mode .trn-trending-card { background: #1e1e1e; border-color: #2a2a2a; }
body.dark-mode .trn-trending-ttl  { color: #e8e4dc; }
body.dark-mode .trn-surprise-btn  { background: #6B42D8; color: #fff; }
body.dark-mode .trn-surprise-btn:hover { background: #7C55DF; }
body.dark-mode .trn-surprise-box  { background: #1e1e1e; }
body.dark-mode .trn-surprise-title { color: #e8e4dc; }
body.dark-mode .trn-surprise-author { color: #666; }
body.dark-mode .trn-surprise-resume { color: #999; }
body.dark-mode .trn-surprise-again { background: #2a2a2a; color: #ccc; }

@media (max-width: 520px) {
    .trn-trending-cards { gap: 8px; }
    .trn-trending-card  { padding: 10px 11px; }
    .trn-trending-ttl   { font-size: 11px; }
}

/* ── PROMO BANNER — shown to logged-out users only ── */
.trn-promo-banner {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 12px;
    margin-bottom: 20px;
    padding: 14px 18px;
    animation: trn-slide-down 0.4s ease;
}
@keyframes trn-slide-down {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.trn-promo-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}
.trn-promo-icon {
    font-size: 20px;
    flex-shrink: 0;
}
.trn-promo-text {
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    font-family: 'Inter', sans-serif;
    line-height: 1.4;
    flex: 1;
    min-width: 0;
}
.trn-promo-text strong {
    color: #fff;
    font-weight: 600;
}
.trn-promo-btn {
    display: inline-block;
    padding: 8px 20px;
    background: var(--trn-accent);
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.15s;
}
.trn-promo-btn:hover { background: var(--trn-accent-h); color: #fff; }
.trn-promo-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.35);
    font-size: 14px;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0 0 0 4px;
    line-height: 1;
    transition: color 0.15s;
}
.trn-promo-close:hover { color: rgba(255,255,255,0.75); }

/* Mobile: stack text and button */
@media (max-width: 520px) {
    .trn-promo-inner { flex-wrap: wrap; gap: 8px; }
    .trn-promo-icon  { display: none; }
    .trn-promo-text  { font-size: 12px; width: 100%; }
    .trn-promo-btn   { font-size: 12px; padding: 7px 16px; }
}

/* Dark mode — already dark banner, just adjust slightly */
body.dark-mode .trn-promo-banner { background: linear-gradient(135deg, #111 0%, #222 100%); }

/* ── SUBSCRIBE TOOLTIP ── */
.trn-sub-tooltip-wrap {
    position: relative;
    display: inline-block;
}
.trn-sub-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    right: 0;
    background: #1a1a1a;
    color: #fff;
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    padding: 9px 14px;
    border-radius: 8px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s, transform 0.2s;
    z-index: 9999;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.trn-sub-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 20px;
    border: 6px solid transparent;
    border-top-color: #1a1a1a;
}
.trn-sub-tooltip-wrap:hover .trn-sub-tooltip,
.trn-sub-tooltip-wrap:focus-within .trn-sub-tooltip {
    opacity: 1;
    transform: translateY(0);
}
body.dark-mode .trn-sub-tooltip { background: #e8e4dc; color: #1a1a1a; }
body.dark-mode .trn-sub-tooltip::after { border-top-color: #e8e4dc; }

/* ── SURPRISE ME: desktop hidden, mobile visible ── */
@media (min-width: 901px) {
    .trn-surprise-mobile { display: none !important; }
}

/* ── AUTHOR FILTER ── */
.trn-author-filter {
    background: none; border: none; padding: 0;
    font-size: 12px; color: var(--trn-subtle);
    font-family: 'Inter', sans-serif; cursor: pointer;
    transition: color 0.15s; text-align: left;
}
.trn-author-filter:hover {
    color: var(--trn-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.trn-author-bar {
    display: none; /* hidden by default — JS shows it via style="display:flex" */
    align-items: center; justify-content: space-between;
    background: #F7F3FF; border: 1px solid rgba(107,66,216,0.2);
    border-radius: 10px; padding: 10px 16px; margin-bottom: 16px;
    animation: trn-slide-down 0.25s ease;
}
.trn-author-bar.visible {
    display: flex;
}
.trn-author-bar-label {
    display: flex; align-items: center; gap: 7px;
    font-size: 13px; color: var(--trn-ink);
    font-family: 'Inter', sans-serif;
}
.trn-author-bar-label strong { color: var(--trn-accent); }
.trn-author-bar-clear {
    background: none; border: 1px solid rgba(107,66,216,0.35);
    border-radius: 20px; padding: 4px 12px; font-size: 12px;
    color: var(--trn-accent); cursor: pointer;
    font-family: 'Inter', sans-serif; transition: all 0.15s;
}
.trn-author-bar-clear:hover { background: var(--trn-accent); color: #fff; border-color: var(--trn-accent); }
body.dark-mode .trn-author-bar { background: rgba(107,66,216,0.1); border-color: rgba(107,66,216,0.25); }
body.dark-mode .trn-author-filter { color: #666; }
body.dark-mode .trn-author-filter:hover { color: var(--trn-accent); }

/* ── GUEST LIBRARY TOAST ── */
#trn-library-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    background: #1a1a1a;
    color: rgba(255,255,255,0.85);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    line-height: 1.5;
    padding: 14px 18px 14px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 99999;
    max-width: 420px;
    width: calc(100% - 40px);
    animation: trn-toast-in 0.3s ease;
    transition: opacity 0.3s, transform 0.3s;
}
@keyframes trn-toast-in {
    from { opacity: 0; transform: translateX(-50%) translateY(12px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
#trn-library-toast strong { color: #fff; }
#trn-library-toast a {
    color: #A88CF0;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}
#trn-library-toast a:hover { color: #C6B6F5; }
#trn-library-toast button {
    background: none;
    border: none;
    color: rgba(255,255,255,0.35);
    font-size: 14px;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    line-height: 1;
    transition: color 0.15s;
}
#trn-library-toast button:hover { color: rgba(255,255,255,0.7); }
@media (max-width: 520px) {
    #trn-library-toast { font-size: 12px; padding: 12px 14px; border-radius: 10px; }
}

/* ── FRESHNESS SIGNAL BAR ── */
.trn-freshness-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--trn-white);
    border: 1px solid rgba(22,163,74,0.2);
    border-radius: 20px;
    margin-bottom: 14px;
    width: fit-content;
}
.trn-freshness-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #16a34a;
    flex-shrink: 0;
    animation: trn-pulse-green 2s ease-in-out infinite;
}
@keyframes trn-pulse-green {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(22,163,74,0.4); }
    50%       { opacity: 0.8; box-shadow: 0 0 0 5px rgba(22,163,74,0); }
}
.trn-freshness-text {
    font-size: 12px;
    font-weight: 600;
    color: #16a34a;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}
.trn-freshness-latest {
    background: none;
    border: none;
    font-size: 11px;
    color: #16a34a;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    padding: 0;
    font-weight: 500;
    opacity: 0.7;
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
    transition: opacity 0.15s;
}
.trn-freshness-latest:hover { opacity: 1; }
body.dark-mode .trn-freshness-bar { background: rgba(22,163,74,0.08); border-color: rgba(22,163,74,0.2); }

/* ── HUMAN CURATION TRUST NOTE ── */
.trn-curation-note {
    font-size: 11px;
    color: var(--trn-subtle);
    font-family: 'Inter', sans-serif;
    font-style: italic;
    margin-bottom: 16px;
    letter-spacing: 0.01em;
    opacity: 0.7;
}
body.dark-mode .trn-curation-note { color: #555; }

/* ── LATEST SORT ACTIVE BAR ── */
.trn-latest-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #F5F1FC;
    border: 1px solid rgba(107,66,216,0.2);
    border-radius: 10px;
    padding: 10px 16px;
    margin-bottom: 16px;
    animation: trn-slide-down 0.25s ease;
}
.trn-latest-bar-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: #5E3ABA;
    font-family: 'Inter', sans-serif;
}
.trn-latest-bar-label strong { color: var(--trn-accent); }
.trn-latest-bar-clear {
    background: none;
    border: 1px solid rgba(107,66,216,0.3);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    color: var(--trn-accent);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.15s;
    white-space: nowrap;
}
.trn-latest-bar-clear:hover { background: var(--trn-accent); color: #fff; border-color: var(--trn-accent); }
body.dark-mode .trn-latest-bar { background: rgba(107,66,216,0.1); border-color: rgba(124,85,223,0.3); }
body.dark-mode .trn-latest-bar-label { color: #C6B6F5; }
body.dark-mode .trn-latest-bar-label strong { color: #E0D7FA; }
body.dark-mode .trn-latest-bar-clear { color: #C6B6F5; border-color: rgba(124,85,223,0.4); }

/* ── READ HISTORY REMINDER TOAST ── */
#trn-read-reminder {
    position: fixed;
    bottom: 24px;
    right: 24px;
    left: auto;
    max-width: 380px;
    width: calc(100% - 48px);
    background: #fff;
    border: 1px solid #E8E4DC;
    border-radius: 16px;
    padding: 18px 18px 16px 18px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.14);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}
#trn-read-reminder.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}
.trn-read-reminder-icon {
    font-size: 28px;
    line-height: 1;
}
.trn-read-reminder-text {
    font-size: 13px;
    color: #3a3a3a;
    line-height: 1.55;
    font-family: 'Inter', sans-serif;
}
.trn-read-reminder-text strong { color: #1a1a1a; }
.trn-read-reminder-text a {
    color: var(--trn-accent);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.trn-read-reminder-cta {
    display: block;
    padding: 10px 16px;
    background: var(--trn-accent);
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    text-align: center;
    text-decoration: none;
    transition: background 0.15s;
}
.trn-read-reminder-cta:hover { background: var(--trn-accent-h); color: #fff; }
.trn-read-reminder-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 14px;
    color: #bbb;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.15s;
}
.trn-read-reminder-close:hover { color: #666; }
/* Progress bar showing time left */
#trn-read-reminder::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: var(--trn-accent);
    border-radius: 0 0 16px 16px;
    animation: trn-reminder-timer 10s linear forwards;
    transform-origin: left;
}
@keyframes trn-reminder-timer {
    from { transform: scaleX(1); }
    to   { transform: scaleX(0); }
}
body.dark-mode #trn-read-reminder {
    background: #1e1e1e;
    border-color: #2a2a35;
}
body.dark-mode .trn-read-reminder-text { color: #ccc; }
body.dark-mode .trn-read-reminder-text strong { color: #eee; }
@media (max-width: 480px) {
    #trn-read-reminder { right: 12px; left: 12px; width: auto; bottom: 16px; }
}

/* ── ALL READ NOTICE ── */
.trn-all-read-notice {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 14px;
    font-size: 13px;
    color: #0369a1;
    font-family: 'Inter', sans-serif;
    text-align: center;
}
body.dark-mode .trn-all-read-notice {
    background: rgba(3,105,161,0.1);
    border-color: rgba(3,105,161,0.2);
    color: #7dd3fc;
}

/* ── READ DIVIDER ── */
.trn-read-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0 16px;
    color: var(--trn-subtle);
    font-size: 11px;
    font-family: 'Inter', sans-serif;
    font-style: italic;
}
.trn-read-divider::before,
.trn-read-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--trn-border);
}

/* ── HIDE LIKE COUNT ON TRENDING CARDS ── */
.trn-trending-likes { display: none; }

/* ── READING TIME ── */
.trn-read-time {
    color: var(--trn-subtle);
    font-size: 12px;
}

/* ── BECAUSE YOU LIKED X — PERSONALIZED SECTION ── */
.trn-pers-section {
    margin-bottom: 24px;
    background: var(--trn-white);
    border: 1px solid var(--trn-border);
    border-radius: 14px;
    padding: 20px 20px 16px;
}
.trn-pers-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}
.trn-pers-label {
    font-size: 13px;
    color: var(--trn-subtle);
    font-family: 'Inter', sans-serif;
}
.trn-pers-label strong { color: var(--trn-ink); }
.trn-pers-more {
    font-size: 12px;
    color: var(--trn-accent);
    text-decoration: none;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}
.trn-pers-more:hover { text-decoration: underline; }
.trn-pers-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.trn-pers-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    background: var(--trn-bg);
    border-radius: 10px;
    border: 1px solid var(--trn-border);
    text-decoration: none;
    transition: all 0.15s;
}
.trn-pers-card:hover {
    border-color: var(--trn-accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,0,.07);
}
.trn-pers-pills { display: flex; flex-wrap: wrap; gap: 4px; }
.trn-pers-pill {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 3px;
    font-family: 'Inter', sans-serif;
}
.trn-pers-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--trn-ink);
    line-height: 1.35;
    font-family: Georgia, serif;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.trn-pers-meta {
    font-size: 11px;
    color: var(--trn-subtle);
    font-family: 'Inter', sans-serif;
    margin-top: auto;
}
@media (max-width: 600px) {
    .trn-pers-cards { grid-template-columns: 1fr; }
}
body.dark-mode .trn-pers-section { background: #1e1e1e; border-color: #2a2a35; }
body.dark-mode .trn-pers-card { background: #141414; border-color: #2a2a35; }
body.dark-mode .trn-pers-title { color: #e8e4dc; }

/* ── AUTHOR PAGE LINK IN BYLINE ── */
.trn-author-link {
    color: var(--trn-ink);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s;
}
.trn-author-link:hover {
    color: var(--trn-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ── SEO PAGE RELATED ARTICLES ── */
.rd-seo-related { margin-bottom: 24px; }
.rd-seo-related-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.rd-seo-related-label {
    font-size: 12px;
    font-weight: 700;
    color: #888;
    font-family: 'Inter', sans-serif;
    letter-spacing: .02em;
}
.rd-seo-related-all {
    font-size: 12px;
    color: var(--trn-accent);
    text-decoration: none;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}
.rd-seo-related-all:hover { text-decoration: underline; }
.rd-seo-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.rd-seo-rel-card {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 14px;
    background: #F5F4F0;
    border-radius: 10px;
    border: 1px solid #E8E4DC;
    text-decoration: none;
    transition: all 0.15s;
}
.rd-seo-rel-card:hover {
    border-color: var(--trn-accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0,0,0,.07);
}
.rd-seo-rel-pills { display: flex; flex-wrap: wrap; gap: 3px; }
.rd-seo-rel-pill {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 999px;
    color: #5832B9 !important;
    background: #F1EBFF !important;
    font-family: 'Inter', sans-serif;
}
.rd-seo-rel-title {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.35;
    font-family: Georgia, serif;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rd-seo-rel-card:hover .rd-seo-rel-title { color: var(--trn-accent); }
.rd-seo-rel-meta {
    font-size: 11px;
    color: #aaa;
    font-family: 'Inter', sans-serif;
    margin-top: auto;
}
@media (max-width: 580px) {
    .rd-seo-related-grid { grid-template-columns: 1fr; }
}

/* ── CATEGORY PAGE: sidebar permanently replaced by header Topics menu ── */
body .cp-sidebar {
    display: none !important;
}
body .cp-main {
    grid-template-columns: minmax(0, 1fr) !important;
}

/* ─────────────────────────────────────────
   PUBLIC IMAGE-CARD GRID
   The legacy scope class is retained for upgrade compatibility.
───────────────────────────────────────── */
.trn-wrapper.trn-image-preview-mode {
    max-width: 1240px;
}

.trn-image-preview-mode .trn-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 20px;
    max-width: 1200px;
}

.trn-image-preview-mode .trn-article {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    padding: 0;
    overflow: hidden;
}

.trn-image-preview-mode .trn-card-image-link,
.trn-image-preview-mode .trn-card-image-placeholder {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #efede8;
    border-bottom: 1px solid #e5ded6;
}

.trn-image-preview-mode .trn-card-image-link {
    position: relative;
    text-decoration: none;
}

.trn-image-preview-mode .trn-card-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.trn-image-preview-mode .trn-article:hover .trn-card-image {
    transform: scale(1.025);
}

.trn-image-preview-mode .trn-card-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #766f68;
    background:
        linear-gradient(135deg, rgba(107, 66, 216, 0.06), rgba(255, 255, 255, 0.35)),
        #efede8;
    font: 600 12px/1.3 'Inter', sans-serif;
}

.trn-image-preview-mode .trn-card-image-placeholder small {
    color: #9b948c;
    font-size: 10px;
    font-weight: 500;
}

.trn-image-preview-mode .trn-article-inner {
    flex: 1;
    min-height: 326px;
    padding: 16px 18px 17px;
    box-sizing: border-box;
}

.trn-image-preview-mode .trn-card-head {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 11px;
}

.trn-image-preview-mode .trn-card-source-row {
    width: 100%;
}

.trn-image-preview-mode .trn-source-meta {
    min-width: 0;
    width: auto;
    flex: 1 1 auto;
}

.trn-image-preview-mode .trn-source-identity {
    flex: 1 1 auto;
    min-width: 0;
}

.trn-image-preview-mode .trn-source-avatar {
    width: 36px;
    height: 36px;
    font-size: 13px;
}

.trn-image-preview-mode .trn-source-meta-name,
.trn-image-preview-mode .trn-source-domain {
    max-width: 100%;
}

.trn-image-preview-mode .trn-meta-top {
    width: 100%;
}

.trn-image-preview-mode .trn-meta-left {
    gap: 6px;
    min-height: 23px;
}

.trn-image-preview-mode .trn-badge {
    padding: 3px 8px;
    font-size: 10px;
}

.trn-image-preview-mode .trn-title {
    min-height: 50px;
    font-size: 20px;
    line-height: 1.25;
    margin-bottom: 5px;
}

.trn-image-preview-mode .trn-byline-sub {
    margin: 0 0 8px;
    font-size: 12px;
}

.trn-image-preview-mode .trn-resume {
    min-height: 58px;
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 1.48;
    -webkit-line-clamp: 3;
}

.trn-image-preview-mode .trn-footer {
    flex-wrap: nowrap;
    gap: 8px;
    padding-top: 10px;
}

.trn-image-preview-mode .trn-actions-row {
    gap: 13px;
}

.trn-image-preview-mode .trn-action-btn,
.trn-image-preview-mode .trn-read-btn {
    gap: 4px;
    font-size: 12px;
}

.trn-image-preview-mode .trn-all-read-notice,
.trn-image-preview-mode .trn-empty {
    grid-column: 1 / -1;
}

body.dark-mode .trn-image-preview-mode .trn-card-image-link,
body.dark-mode .trn-image-preview-mode .trn-card-image-placeholder {
    border-bottom-color: #2a2a2a;
    background: #202020;
}

@media (max-width: 1050px) {
    .trn-image-preview-mode .trn-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .trn-image-preview-mode .trn-list {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .trn-image-preview-mode .trn-article-inner {
        min-height: 0;
    }
}

@media (max-width: 420px) {
    .trn-image-preview-mode .trn-footer {
        flex-wrap: wrap;
    }

    .trn-image-preview-mode .trn-actions-row {
        width: 100%;
        justify-content: space-between;
    }

    .trn-image-preview-mode .trn-read-btn {
        margin-left: auto;
    }
}
