/* ==========================================================================
   TheCoinsPost UI v3 ("Signal") — Hybrid Institutional Terminal + Editorial
   Visual reference: design-reference/concept-d-signal.html
   ========================================================================== */

:root {
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-display: 'Space Grotesk', var(--font-body);
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

    /* Light Mode ("Tinted Alabaster") */
    --v3-bg: #eef2f9;
    --v3-s1: #ffffff;
    --v3-s2: #f6f8fc;
    --v3-s3: #edf1f8;
    --v3-line: rgba(15, 23, 42, 0.09);
    --v3-line-hi: rgba(79, 124, 255, 0.50);
    --v3-t1: #0b1222;
    --v3-t2: #4a5670;
    --v3-t3: #6b7790;
    --v3-brand: #4f7cff;
    --v3-brand-2: #7c5cff;
    --v3-btc: #f7931a;
    --v3-up: #0a9f63;
    --v3-up-bg: rgba(10, 159, 99, 0.10);
    --v3-down: #d6303a;
    --v3-down-bg: rgba(214, 48, 58, 0.10);
    --v3-warn: #c27c0e;
    --v3-r: 14px;
    --v3-r-lg: 18px;
    --v3-glow: 0 0 0 1px var(--v3-line-hi), 0 12px 32px -14px rgba(79, 124, 255, 0.35);

    /* Legacy semantic token mappings */
    --surface-page: var(--v3-bg);
    --surface-raised: var(--v3-s1);
    --surface-card: var(--v3-s1);
    --surface-chip: var(--v3-s3);
    --text-primary: var(--v3-t1);
    --text-secondary: var(--v3-t2);
    --color-text: var(--v3-t1);
    --color-text-secondary: var(--v3-t2);
    --color-text-muted: var(--v3-t3);
    --color-bg: var(--v3-s1);
    --color-bg-secondary: var(--v3-bg);
    --color-bg-tertiary: var(--v3-s3);
    --brand-primary: var(--v3-brand);
    --signal-positive: var(--v3-up);
    --signal-negative: var(--v3-down);
    --color-border: var(--v3-line);
    --color-border-light: var(--v3-line);
}

html.dark-mode,
.dark-mode {
    --v3-bg: #070b16;
    --v3-s1: #0d1324;
    --v3-s2: #121a30;
    --v3-s3: #182340;
    --v3-line: rgba(148, 163, 184, 0.13);
    --v3-line-hi: rgba(99, 140, 255, 0.45);
    --v3-t1: #eef2f8;
    --v3-t2: #9aa7bd;
    --v3-t3: #66748c;
    --v3-up: #16c784;
    --v3-up-bg: rgba(22, 199, 132, 0.12);
    --v3-down: #ea3943;
    --v3-down-bg: rgba(234, 57, 67, 0.12);
    --v3-warn: #f5a524;
    --v3-glow: 0 0 0 1px var(--v3-line-hi), 0 12px 40px -12px rgba(79, 124, 255, 0.45);

    --surface-page: var(--v3-bg);
    --surface-raised: var(--v3-s1);
    --surface-card: var(--v3-s1);
    --surface-chip: var(--v3-s3);
    --text-primary: var(--v3-t1);
    --text-secondary: var(--v3-t2);
    --color-text: var(--v3-t1);
    --color-text-secondary: var(--v3-t2);
    --color-text-muted: var(--v3-t3);
    --color-bg: var(--v3-s1);
    --color-bg-secondary: var(--v3-bg);
    --color-bg-tertiary: var(--v3-s3);
    --brand-primary: var(--v3-brand);
    --signal-positive: var(--v3-up);
    --signal-negative: var(--v3-down);
    --color-border: var(--v3-line);
    --color-border-light: var(--v3-line);
}

html,
body {
    overflow-x: hidden;
    max-width: 100%;
}

html.tcp-theme-switching,
html.tcp-theme-switching body {
    transition: background-color 0.25s ease, color 0.25s ease;
}

body {
    font-family: var(--font-body);
    background: var(--v3-bg);
    color: var(--v3-t1);
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

.tcp-disp {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}

.tcp-mono,
.tcp-num {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
}

.is-up { color: var(--v3-up); }
.is-down { color: var(--v3-down); }
.is-warn { color: var(--v3-warn); }
.is-neutral { color: var(--v3-t2); }

/* Focus ring */
.tcp-v3-container a:focus-visible,
.tcp-v3-container button:focus-visible,
.site-header a:focus-visible,
.site-header button:focus-visible,
.tcp-mobile-bottom-nav a:focus-visible,
.tcp-mobile-bottom-nav button:focus-visible {
    outline: 2px solid var(--v3-btc);
    outline-offset: 2px;
}

/* ==========================================================================
   Live Ticker Marquee (scrolls above sticky header)
   ========================================================================== */
.tcp-ticker.crypto-ticker {
    background: #04070f;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    position: relative;
    overflow: hidden;
    padding: 0;
}

html:not(.dark-mode) .tcp-ticker.crypto-ticker {
    background: #0b1222;
}

.tcp-ticker__viewport {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.tcp-ticker__viewport::before,
.tcp-ticker__viewport::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 54px;
    z-index: 2;
    pointer-events: none;
}

.tcp-ticker__viewport::before {
    left: 0;
    background: linear-gradient(90deg, #04070f, transparent);
}

.tcp-ticker__viewport::after {
    right: 0;
    background: linear-gradient(-90deg, #04070f, transparent);
}

html:not(.dark-mode) .tcp-ticker__viewport::before {
    background: linear-gradient(90deg, #0b1222, transparent);
}

html:not(.dark-mode) .tcp-ticker__viewport::after {
    background: linear-gradient(-90deg, #0b1222, transparent);
}

.tcp-ticker__track {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 8px 16px;
    width: max-content;
    animation: tcpMarquee var(--tcp-ticker-dur, 48s) linear infinite;
    will-change: transform;
}

.tcp-ticker:hover .tcp-ticker__track,
.tcp-ticker:focus-within .tcp-ticker__track,
.tcp-ticker.is-paused .tcp-ticker__track {
    animation-play-state: paused;
}

@keyframes tcpMarquee {
    to { transform: translateX(-50%); }
}

.tcp-ticker__item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 12.5px;
    color: #dfe6f2;
    text-decoration: none;
    transition: background 0.35s ease;
}

.tcp-ticker__item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.tcp-ticker__item b {
    color: #ffffff;
    font-weight: 700;
}

.tcp-ticker__item .is-up { color: #16c784; font-weight: 600; }
.tcp-ticker__item .is-down { color: #ff5b65; font-weight: 600; }

.tcp-ticker__item.is-flash-up { background: rgba(22, 199, 132, 0.24); }
.tcp-ticker__item.is-flash-down { background: rgba(234, 57, 67, 0.24); }

.tcp-ticker__icon {
    display: inline-flex;
    align-items: center;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.tcp-ticker__icon img {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    object-fit: cover;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: color-mix(in srgb, var(--v3-bg) 84%, transparent);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid var(--v3-line);
    transition: transform 0.22s ease;
}

@supports not (background: color-mix(in srgb, red 50%, blue)) {
    .site-header {
        background: var(--v3-bg);
    }
}

.site-header .container {
    max-width: 1480px;
}

.header-main {
    position: relative;
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 10px 0;
    min-height: 56px;
}

.tcp-logo-wordmark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 19px;
    color: var(--v3-t1);
    text-decoration: none;
    white-space: nowrap;
}

.tcp-logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: conic-gradient(from 210deg, var(--v3-btc), var(--v3-brand-2), var(--v3-brand), var(--v3-btc));
    box-shadow: 0 0 20px rgba(124, 92, 255, 0.40);
    color: #ffffff;
    font-weight: 800;
    font-size: 16px;
    flex-shrink: 0;
}

.tcp-logo-wordmark em {
    font-style: normal;
    background: linear-gradient(90deg, var(--v3-btc), #ffb75e);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.primary-nav .nav-menu {
    display: flex;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.primary-nav .nav-menu > li > a {
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--v3-t2);
    transition: background 0.15s ease, color 0.15s ease;
}

.primary-nav .nav-menu > li > a:hover {
    color: var(--v3-t1);
    background: var(--v3-s2);
}

.primary-nav .nav-menu > li.current-menu-item > a,
.primary-nav .nav-menu > li.current_page_item > a {
    color: var(--v3-t1);
    background: var(--v3-s2);
    box-shadow: inset 0 -2px 0 var(--v3-brand);
}

.tcp-search-pill {
    flex: 1;
    max-width: 320px;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    background: var(--v3-s1);
    border: 1px solid var(--v3-line);
    color: var(--v3-t3);
    font-size: 13px;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.tcp-search-pill:hover {
    border-color: var(--v3-line-hi);
    color: var(--v3-t2);
}

.tcp-kbd {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 5px;
    border: 1px solid var(--v3-line);
    color: var(--v3-t3);
}

.header-actions {
    position: relative;
    z-index: 1002;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tcp-ibtn,
button.tcp-dark-mode-toggle.tcp-ibtn,
button.search-toggle.tcp-ibtn {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: transparent !important;
    border: 1px solid transparent !important;
    box-shadow: none !important;
    color: var(--v3-t2) !important;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.tcp-ibtn:hover,
button.tcp-dark-mode-toggle.tcp-ibtn:hover,
button.search-toggle.tcp-ibtn:hover {
    background: var(--v3-s2) !important;
    color: var(--v3-t1) !important;
}

/* Sun shown in dark mode (click for light), Moon shown in light mode (click for dark) */
.tcp-dark-mode-icon { display: inline-flex; align-items: center; justify-content: center; }
html.dark-mode .tcp-dark-mode-icon--dark { display: none !important; }
html:not(.dark-mode) .tcp-dark-mode-icon--light { display: none !important; }

/* Hide mobile search icon on desktop where .tcp-search-pill is shown */
@media (min-width: 1081px) {
    .header-search .search-toggle {
        display: none;
    }
}

@media (max-width: 1080px) {
    .tcp-search-pill {
        display: none;
    }
    .header-actions {
        margin-left: auto;
    }
}

.tcp-btn {
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    padding: 8px 15px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.tcp-btn:active {
    transform: scale(0.97);
}

.tcp-btn--brand {
    background: linear-gradient(135deg, var(--v3-brand), var(--v3-brand-2)) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px -6px rgba(79, 124, 255, 0.70);
}

.tcp-btn--btc {
    background: var(--v3-btc) !important;
    color: #120a00 !important;
    font-weight: 700;
}

.tcp-btn--ghost {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* ==========================================================================
   Macro Market Strip & Pills Bar
   ========================================================================== */
.tcp-mstrip.tcp-market-mood-bar {
    border-top: 1px solid var(--v3-line);
    border-bottom: 1px solid var(--v3-line);
    background: var(--v3-s1);
    padding: 0;
}

.tcp-mstrip .container {
    max-width: 1480px;
}

.tcp-mstrip__in {
    display: flex;
    align-items: stretch;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 0;
}

.tcp-mstrip__in::-webkit-scrollbar { display: none; }

.tcp-mstat {
    padding: 8px 18px;
    border-right: 1px solid var(--v3-line);
    white-space: nowrap;
    font-size: 11px;
    color: var(--v3-t3);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tcp-mstat:first-child { padding-left: 0; }
.tcp-mstat:last-child { border-right: none; }

.tcp-mstat strong {
    display: block;
    font-size: 13px;
    color: var(--v3-t1);
    font-weight: 600;
}

.tcp-mstat__sub {
    font-size: 11px !important;
    color: var(--v3-t3) !important;
    font-weight: 500 !important;
}

.tcp-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--v3-up);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.06em;
}

.tcp-live::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--v3-up);
    animation: tcpPing 1.8s infinite;
}

.tcp-live.is-delayed {
    color: var(--v3-warn);
}

.tcp-live.is-delayed::before {
    background: var(--v3-warn);
    animation: none;
}

@keyframes tcpPing {
    0% { box-shadow: 0 0 0 0 rgba(22, 199, 132, 0.60); }
    100% { box-shadow: 0 0 0 8px rgba(22, 199, 132, 0); }
}

.tcp-fg-mini {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
}

.tcp-fg-track {
    width: 84px;
    height: 6px;
    border-radius: 9px;
    background: linear-gradient(90deg, #ea3943, #f5a524 50%, #16c784);
    position: relative;
    display: inline-block;
}

.tcp-fg-track i {
    position: absolute;
    top: -4px;
    width: 4px;
    height: 14px;
    border-radius: 2px;
    background: #ffffff;
    box-shadow: 0 0 0 2px var(--v3-t1);
    transform: translateX(-50%);
}

/* Pills Bar */
.tcp-pills-bar {
    background: var(--v3-bg);
    border-bottom: 1px solid var(--v3-line);
    padding: 8px 0;
}

.tcp-pills-bar .container {
    max-width: 1480px;
}

.tcp-pills-track {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 94%, transparent);
    mask-image: linear-gradient(90deg, #000 94%, transparent);
}

.tcp-pills-track::-webkit-scrollbar { display: none; }

.tcp-pill-link {
    display: inline-flex;
    align-items: center;
    min-height: 0;
    height: auto;
    padding: 6px 13px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 500;
    background: var(--v3-s1);
    border: 1px solid var(--v3-line);
    color: var(--v3-t2);
    white-space: nowrap;
    text-decoration: none;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.tcp-pill-link:hover {
    color: var(--v3-t1);
    border-color: var(--v3-line-hi);
}

.tcp-pill-link.is-active {
    background: var(--v3-t1) !important;
    color: var(--v3-bg) !important;
    border-color: var(--v3-t1) !important;
    font-weight: 600;
}

/* ==========================================================================
   Main Grid Layout (2-col <=1599px, 3-col >=1600px, 1-col <=1080px)
   ========================================================================== */
.tcp-v3-container {
    max-width: 1480px;
    padding-top: 20px;
    padding-bottom: 72px;
}

.tcp-v3-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: start;
}

.tcp-lrail {
    display: none;
    flex-direction: column;
    gap: 14px;
    position: sticky;
    top: 146px;
    align-self: start;
}

@media (min-width: 1600px) {
    .tcp-v3-container {
        max-width: 1580px;
    }
    .tcp-v3-layout {
        grid-template-columns: 230px minmax(0, 1fr) 340px;
    }
    .tcp-lrail {
        display: flex;
    }
}

@media (max-width: 1080px) {
    .tcp-v3-layout {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   "Since Your Last Visit" Digest Banner
   ========================================================================== */
.tcp-digest {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: var(--v3-r);
    margin-bottom: 18px;
    background: linear-gradient(90deg, rgba(79, 124, 255, 0.14), rgba(124, 92, 255, 0.08) 60%, transparent);
    border: 1px solid var(--v3-line-hi);
    font-size: 13px;
    color: var(--v3-t2);
}

.tcp-digest[hidden] { display: none !important; }
.tcp-digest b { color: var(--v3-t1); }

.tcp-digest__icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(79, 124, 255, 0.20);
    color: var(--v3-brand);
    flex-shrink: 0;
}

.tcp-digest__close {
    margin-left: auto;
    color: var(--v3-t3);
    cursor: pointer;
    background: none;
    border: none;
    font-size: 18px;
    line-height: 1;
    padding: 4px 6px;
}

/* ==========================================================================
   Tags & Coin Chips
   ========================================================================== */
.tcp-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 6px;
}

.tcp-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    min-height: 0;
    height: auto;
    line-height: 1.4;
}

.tcp-tag--break { background: var(--v3-down); color: #ffffff; animation: tcpBlink 2s infinite; }
@keyframes tcpBlink { 50% { opacity: 0.72; } }
.tcp-tag--bear { background: var(--v3-down-bg); color: var(--v3-down); }
.tcp-tag--bull { background: var(--v3-up-bg); color: var(--v3-up); }
.tcp-tag--macro,
.tcp-tag--etf { background: rgba(79, 124, 255, 0.15); color: #7d9dff; }
html:not(.dark-mode) .tcp-tag--macro,
html:not(.dark-mode) .tcp-tag--etf { color: #3557d6; }
.tcp-tag--reg { background: rgba(124, 92, 255, 0.15); color: #a78bfa; }
html:not(.dark-mode) .tcp-tag--reg { color: #6d28d9; }
.tcp-tag--sec { background: rgba(245, 165, 36, 0.16); color: var(--v3-warn); }
.tcp-tag--pr { background: var(--v3-s3); color: var(--v3-t3); }

.tcp-coin-chip,
a.tcp-impact-chip.tcp-coin-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 600;
    background: var(--v3-s2);
    border: 1px solid var(--v3-line);
    color: var(--v3-t1);
    text-decoration: none;
    min-height: 0;
    height: auto;
    position: relative;
    z-index: 2;
}

.tcp-coin-chip.is-up .tcp-coin-chip__chg { color: var(--v3-up); }
.tcp-coin-chip.is-down .tcp-coin-chip__chg { color: var(--v3-down); }
.tcp-coin-chip.is-flat { color: var(--v3-t2); }

/* ==========================================================================
   Hero Bento Mosaic (1 Lead + 2 Stacked Side Stories)
   ========================================================================== */
.tcp-bento {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.tcp-bento__lead {
    position: relative;
    border-radius: var(--v3-r-lg);
    overflow: hidden;
    min-height: 330px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    isolation: isolate;
    cursor: pointer;
    border: 1px solid var(--v3-line);
    background: #0a0f20;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.tcp-bento__lead:hover {
    box-shadow: var(--v3-glow);
    transform: translateY(-2px);
}

.tcp-bento__art {
    position: absolute;
    inset: 0;
    z-index: -3;
    background:
        radial-gradient(circle at 78% 22%, rgba(247, 147, 26, 0.50), transparent 40%),
        radial-gradient(circle at 20% 30%, rgba(124, 92, 255, 0.48), transparent 46%),
        linear-gradient(160deg, #1a1440, #0a0f20);
}

.tcp-bento__media {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
}

.tcp-bento__blur-bg {
    display: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(24px) saturate(1.2);
    transform: scale(1.2);
    opacity: 0.7;
}

.tcp-bento__img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.52;
}

.tcp-bento__media.is-odd-ratio .tcp-bento__blur-bg { display: block; }
.tcp-bento__media.is-odd-ratio .tcp-bento__img { object-fit: contain; opacity: 0.92; }

.tcp-bento__lead::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(5, 8, 18, 0.15) 18%, rgba(5, 8, 18, 0.92) 90%);
}

.tcp-bento__chart {
    position: absolute;
    right: 0;
    top: 24px;
    width: 68%;
    height: 145px;
    z-index: -1;
    opacity: 0.85;
    pointer-events: none;
}

.tcp-bento__lead .tcp-coin-chip {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.tcp-bento__title {
    font-size: clamp(20px, 2.2vw, 27px);
    line-height: 1.22;
    color: #ffffff;
    margin: 8px 0;
}

.tcp-bento__title a {
    color: #ffffff;
    text-decoration: none;
}

.tcp-bento__title a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.tcp-bento__excerpt {
    color: #cbd5e1;
    font-size: 13.5px;
    line-height: 1.48;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}

.tcp-bento__lead .tcp-meta,
.tcp-bento__lead .tcp-meta b {
    color: #b5c0d4;
}

.tcp-bento__sources {
    position: relative;
    z-index: 2;
    color: #dfe6f2;
    text-decoration: underline;
}

.tcp-bento__sides {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
}

.tcp-bento__side {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    padding: 16px 16px 16px 19px;
    background: var(--v3-s1);
    border: 1px solid var(--v3-line);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.tcp-bento__side:hover {
    box-shadow: var(--v3-glow);
    transform: translateY(-2px);
}

.tcp-bento__accent {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--v3-brand);
}

.tcp-bento__side--bull .tcp-bento__accent { background: var(--v3-up); }
.tcp-bento__side--bear .tcp-bento__accent { background: var(--v3-down); }
.tcp-bento__side--sec .tcp-bento__accent { background: var(--v3-warn); }

.tcp-bento__side-title {
    font-size: 15.5px;
    line-height: 1.35;
    margin: 6px 0 8px;
}

.tcp-bento__side-title a {
    color: var(--v3-t1);
    text-decoration: none;
}

.tcp-bento__side-title a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* Mobile Bento Snap */
@media (max-width: 720px) {
    .tcp-bento {
        grid-template-columns: 1fr;
    }
    .tcp-bento__lead {
        min-height: 250px;
    }
    .tcp-bento__sides {
        display: grid;
        grid-template-rows: none;
        grid-auto-flow: column;
        grid-auto-columns: 82%;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
        padding-bottom: 2px;
    }
    .tcp-bento__sides::-webkit-scrollbar { display: none; }
    .tcp-bento__side { scroll-snap-align: start; }
}

/* ==========================================================================
   Mobile Quick Snapshot Strip (<=1080px)
   ========================================================================== */
.tcp-mob-snap {
    display: none;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    margin-bottom: 16px;
}

.tcp-mob-snap::-webkit-scrollbar { display: none; }

.tcp-mob-snap__card {
    flex: 1 0 155px;
    background: var(--v3-s1);
    border: 1px solid var(--v3-line);
    border-radius: 12px;
    padding: 10px 12px;
    text-decoration: none;
}

.tcp-mob-snap__card small {
    display: block;
    font-size: 10.5px;
    color: var(--v3-t3);
    font-family: var(--font-body);
    margin-bottom: 2px;
}

.tcp-mob-snap__card strong {
    font-size: 13px;
    color: var(--v3-t1);
}

@media (max-width: 1080px) {
    .tcp-mob-snap {
        display: flex;
    }
}

/* ==========================================================================
   Live Wire Controls & Feed Cards
   ========================================================================== */
.tcp-fbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.tcp-fbar__title {
    font-size: 18px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tcp-fbar__controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tcp-seg {
    display: inline-flex;
    padding: 3px;
    border-radius: 10px;
    background: var(--v3-s1);
    border: 1px solid var(--v3-line);
}

.tcp-seg button {
    border: none;
    background: none;
    padding: 5px 10px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    color: var(--v3-t3);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.tcp-seg button.is-active,
.tcp-seg button[aria-pressed="true"] {
    background: var(--v3-s3);
    color: var(--v3-t1);
}

.tcp-new-stories-pill {
    display: block;
    position: sticky;
    top: 72px;
    z-index: 150;
    margin: 0 auto 12px;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--v3-brand);
    color: #ffffff;
    border: none;
    font-weight: 600;
    font-size: 12.5px;
    cursor: pointer;
    box-shadow: 0 8px 24px -8px rgba(79, 124, 255, 0.80);
}

.tcp-new-stories-pill[hidden] { display: none !important; }

.tcp-news-feed {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tcp-news-feed.tcp-feed--hide-pr .is-pr {
    display: none !important;
}

.tcp-wire-card {
    display: grid;
    grid-template-columns: 112px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 12px;
    border-radius: var(--v3-r);
    background: var(--v3-s1);
    border: 1px solid var(--v3-line);
    cursor: pointer;
    position: relative;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.tcp-wire-card:hover {
    border-color: var(--v3-line-hi);
    background: var(--v3-s2);
}

.tcp-wire-card.is-pr {
    opacity: 0.74;
}

.tcp-wire-card.is-read .tcp-news-card__title a {
    color: var(--v3-t3);
}

.tcp-wire-card__thumb {
    width: 112px;
    height: 76px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: var(--v3-s2);
    flex-shrink: 0;
}

.tcp-wire-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tcp-wire-card__fallback {
    display: none;
    position: absolute;
    inset: 0;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, hsl(var(--h, 220) 70% 22%), hsl(var(--h, 220) 80% 48%));
}

.tcp-wire-card__thumb.is-fallback .tcp-wire-card__fallback {
    display: grid;
}

.tcp-wire-card__body {
    min-width: 0;
}

.tcp-wire-card .tcp-news-card__title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.38;
    margin: 4px 0 5px;
}

.tcp-wire-card .tcp-news-card__title a {
    color: var(--v3-t1);
    text-decoration: none;
}

.tcp-wire-card .tcp-news-card__title a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.tcp-wire-card .tcp-news-card__excerpt {
    font-size: 13px;
    color: var(--v3-t2);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 6px;
}

.tcp-meta {
    font-size: 12px;
    color: var(--v3-t3);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.tcp-meta b {
    color: var(--v3-t2);
    font-weight: 600;
}

.tcp-src-badge {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    display: inline-grid;
    place-items: center;
    font-size: 9px;
    font-weight: 800;
    color: #ffffff;
    background: hsl(var(--h, 220) 65% 45%);
    flex-shrink: 0;
}

.tcp-pr-submit-link,
.tcp-cluster-pill {
    position: relative;
    z-index: 2;
    font-size: 11px;
    font-weight: 600;
    color: var(--v3-brand);
    text-decoration: none;
}

.tcp-wire-card__acts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    position: relative;
    z-index: 2;
}

.tcp-toolcta {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--v3-brand);
    padding: 4px 9px;
    border-radius: 7px;
    background: rgba(79, 124, 255, 0.10);
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.15s ease;
}

.tcp-toolcta:hover {
    background: rgba(79, 124, 255, 0.22);
}

.tcp-bookmark-btn {
    background: none;
    border: none;
    color: var(--v3-t3);
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tcp-bookmark-btn:hover,
.tcp-bookmark-btn.is-saved {
    color: var(--v3-btc);
}

.tcp-bookmark-btn.is-saved svg {
    fill: var(--v3-btc);
}

/* Compact Terminal Mode */
html.tcp-density-compact .tcp-wire-card,
.tcp-news-feed.is-compact .tcp-wire-card {
    grid-template-columns: 54px 1fr auto;
    padding: 8px 12px;
    gap: 12px;
}

html.tcp-density-compact .tcp-wire-card__thumb,
.tcp-news-feed.is-compact .tcp-wire-card__thumb {
    width: 54px;
    height: 24px;
    border-radius: 6px;
    background: var(--v3-s2) !important;
}

html.tcp-density-compact .tcp-wire-card__thumb img,
.tcp-news-feed.is-compact .tcp-wire-card__thumb img {
    display: none;
}

html.tcp-density-compact .tcp-wire-card__fallback,
.tcp-news-feed.is-compact .tcp-wire-card__fallback {
    display: grid !important;
    background: none !important;
    font-size: 11px;
    color: var(--v3-t3);
    text-shadow: none;
    font-family: var(--font-mono);
}

html.tcp-density-compact .tcp-wire-card .tcp-news-card__excerpt,
html.tcp-density-compact .tcp-wire-card .tcp-toolcta,
html.tcp-density-compact .tcp-wire-card .tcp-readtime,
.tcp-news-feed.is-compact .tcp-wire-card .tcp-news-card__excerpt,
.tcp-news-feed.is-compact .tcp-wire-card .tcp-toolcta,
.tcp-news-feed.is-compact .tcp-wire-card .tcp-readtime {
    display: none;
}

html.tcp-density-compact .tcp-wire-card .tcp-news-card__title,
.tcp-news-feed.is-compact .tcp-wire-card .tcp-news-card__title {
    font-size: 13.5px;
    margin: 2px 0;
}

html.tcp-density-compact .tcp-wire-card__acts,
.tcp-news-feed.is-compact .tcp-wire-card__acts {
    flex-direction: row;
}

@media (max-width: 720px) {
    .tcp-wire-card {
        grid-template-columns: 84px 1fr;
        gap: 12px;
        padding-right: 40px;
    }
    .tcp-wire-card__thumb {
        width: 84px;
        height: 64px;
    }
    .tcp-wire-card__acts {
        position: absolute;
        top: 8px;
        right: 8px;
    }
    .tcp-wire-card__acts .tcp-toolcta {
        display: none;
    }
}

@media (max-width: 420px) {
    .tcp-wire-card .tcp-news-card__excerpt {
        display: none;
    }
}

/* Inline Daily Brief Newsletter */
.tcp-nl-inline {
    padding: 20px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(120deg, #1b2a6b, #2b1a5e 55%, #3a1f12);
    border: 1px solid rgba(124, 92, 255, 0.40);
    color: #ffffff;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
}

.tcp-nl-inline__title {
    font-size: 18px;
    color: #ffffff;
}

.tcp-nl-inline p {
    color: #cfd6ff;
    font-size: 13px;
    margin: 4px 0 0;
}

.tcp-nl-inline__proof {
    font-size: 11.5px;
    color: #aab4e8;
    margin-top: 8px;
}

.tcp-nl-inline__form {
    display: flex;
    gap: 8px;
}

.tcp-nl-inline__form input {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.20);
    background: rgba(0, 0, 0, 0.25);
    color: #ffffff;
    width: 210px;
    font-size: 16px;
}

.tcp-nl-inline__form input::placeholder {
    color: rgba(255, 255, 255, 0.65);
}

@media (max-width: 720px) {
    .tcp-nl-inline {
        grid-template-columns: 1fr;
    }
    .tcp-nl-inline__form {
        flex-direction: column;
    }
    .tcp-nl-inline__form input {
        width: 100%;
    }
}

/* Skeleton Loader */
.tcp-skel {
    height: 98px;
    border-radius: var(--v3-r);
    background: linear-gradient(90deg, var(--v3-s1) 25%, var(--v3-s2) 50%, var(--v3-s1) 75%);
    background-size: 200% 100%;
    animation: tcpShimmer 1.2s infinite;
    border: 1px solid var(--v3-line);
    margin-top: 10px;
}

@keyframes tcpShimmer {
    to { background-position: -200% 0; }
}

/* ==========================================================================
   Right & Left Rail Panels
   ========================================================================== */
.tcp-v3-rail {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tcp-v3-panel {
    background: var(--v3-s1);
    border: 1px solid var(--v3-line);
    border-radius: 16px;
    padding: 16px;
}

.tcp-v3-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.tcp-v3-panel__head h2,
.tcp-v3-panel__head h4 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--v3-t2);
    margin: 0;
}

.tcp-v3-panel__head a,
.tcp-wl-edit-btn {
    font-size: 12px;
    color: var(--v3-brand);
    font-weight: 600;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
}

.tcp-tabs {
    display: inline-flex;
    padding: 3px;
    border-radius: 8px;
    background: var(--v3-bg);
}

.tcp-tabs button {
    border: none;
    background: none;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--v3-t3);
    cursor: pointer;
}

.tcp-tabs button.is-active {
    background: var(--v3-s3);
    color: var(--v3-t1);
}

/* Movers Rows */
.tcp-mover-row {
    display: grid;
    grid-template-columns: 22px 1fr auto 60px;
    align-items: center;
    gap: 10px;
    padding: 8px 4px;
    border-radius: 8px;
    font-size: 13px;
    text-decoration: none;
    transition: background 0.15s ease;
}

.tcp-mover-row:hover {
    background: var(--v3-s2);
}

.tcp-cdot,
.tcp-cdot-img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
}

.tcp-cdot {
    display: grid;
    place-items: center;
    font-size: 10px;
    font-weight: 800;
    color: #ffffff;
}

.tcp-mover-row__nm {
    min-width: 0;
    font-family: var(--font-body);
}

.tcp-mover-row__nm b {
    display: block;
    font-weight: 600;
    color: var(--v3-t1);
}

.tcp-mover-row__nm small {
    color: var(--v3-t3);
    font-size: 11px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tcp-mover-row__px {
    text-align: right;
    color: var(--v3-t1);
}

.tcp-mover-row__px small {
    display: block;
    font-size: 11.5px;
}

/* Heatmap */
.tcp-heat {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 48px;
    gap: 4px;
}

.tcp-heat__cell {
    border-radius: 8px;
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    transition: transform 0.15s ease;
}

.tcp-heat__cell:hover {
    transform: scale(1.03);
}

.tcp-heat__cell small {
    font-size: 10.5px;
    font-weight: 600;
    opacity: 0.92;
}

.tcp-heat__cell.is-big {
    grid-column: span 2;
    grid-row: span 2;
    font-size: 16px;
}

.tcp-heat__cell.is-big small { font-size: 13px; }
.tcp-heat__cell.is-wide { grid-column: span 2; }

/* Fear & Greed Gauge */
.tcp-fng-gauge {
    display: flex;
    align-items: center;
    gap: 16px;
}

.tcp-fng-gauge__txt strong {
    font-size: 30px;
    line-height: 1;
    display: block;
    margin-bottom: 4px;
}

.tcp-fng-gauge__txt small {
    font-size: 12px;
    color: var(--v3-t2);
    line-height: 1.35;
    display: block;
}

.tcp-fng-hist {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-top: 12px;
}

.tcp-fng-hist div {
    padding: 6px;
    border-radius: 8px;
    background: var(--v3-s2);
    text-align: center;
    font-size: 10.5px;
    color: var(--v3-t3);
}

.tcp-fng-hist b {
    display: block;
    font-size: 13px;
    color: var(--v3-t1);
}

/* Unlocks */
.tcp-unlock-row {
    display: block;
    padding: 9px 0;
    border-bottom: 1px solid var(--v3-line);
    font-size: 12.5px;
    text-decoration: none;
    color: var(--v3-t1);
}

.tcp-unlock-row:last-child { border-bottom: none; padding-bottom: 0; }

.tcp-unlock-row__top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.tcp-unlock-bar {
    height: 4px;
    border-radius: 9px;
    background: var(--v3-s3);
    overflow: hidden;
}

.tcp-unlock-bar i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--v3-warn), var(--v3-down));
}

/* Rail CTA Card */
.tcp-cta-box {
    background: linear-gradient(140deg, #2546d9, #5b3bd6 60%, #7a2fb8) !important;
    border: none !important;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.tcp-cta-box::after {
    content: "";
    position: absolute;
    right: -40px;
    top: -40px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(247, 147, 26, 0.50), transparent 70%);
    pointer-events: none;
}

.tcp-cta-box__title {
    font-size: 17px;
    color: #ffffff;
    position: relative;
    z-index: 1;
}

.tcp-cta-box p {
    font-size: 13px;
    color: #dce3ff;
    margin: 6px 0 14px;
    position: relative;
    z-index: 1;
}

.tcp-cta-actions {
    display: flex;
    gap: 8px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.tcp-rail-sticky-ad {
    position: sticky;
    top: 146px;
}

/* Watchlist & Quick Tools */
.tcp-wl-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 6px;
    border-radius: 8px;
    font-size: 12.5px;
    text-decoration: none;
    color: var(--v3-t1);
}

.tcp-wl-item:hover { background: var(--v3-s2); }
.tcp-wl-item small { display: block; color: var(--v3-t3); font-size: 10.5px; }
.tcp-wl-item__px { text-align: right; }

.tcp-wl-rm {
    border: none;
    background: var(--v3-s3);
    color: var(--v3-t2);
    width: 22px;
    height: 22px;
    border-radius: 6px;
    cursor: pointer;
    margin-left: 6px;
}

.tcp-wl-add {
    width: 100%;
    margin-top: 8px;
    padding: 8px;
    border-radius: 9px;
    border: 1px dashed var(--v3-line-hi);
    background: none;
    color: var(--v3-brand);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.tcp-wl-search {
    margin-top: 8px;
}

.tcp-wl-search input {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid var(--v3-line);
    background: var(--v3-s2);
    color: var(--v3-t1);
    font-size: 16px;
}

.tcp-wl-results button {
    width: 100%;
    text-align: left;
    padding: 7px 8px;
    border: none;
    background: none;
    color: var(--v3-t1);
    font-size: 12.5px;
    border-radius: 6px;
    cursor: pointer;
}

.tcp-wl-results button:hover { background: var(--v3-s2); }

.tcp-qtool {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--v3-t2);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.tcp-qtool:hover {
    background: var(--v3-s2);
    color: var(--v3-t1);
}

.tcp-qtool i {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--c, #4f7cff) 16%, transparent);
    color: var(--c, #4f7cff);
    flex-shrink: 0;
}

.tcp-streak {
    padding: 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(247, 147, 26, 0.18), rgba(247, 147, 26, 0.04));
    border: 1px solid rgba(247, 147, 26, 0.35);
    font-size: 12px;
    color: var(--v3-t2);
}

.tcp-streak[hidden] { display: none !important; }
.tcp-streak b { color: var(--v3-btc); font-size: 18px; display: block; margin-bottom: 2px; }

/* ==========================================================================
   Editorial & Tools Spotlight
   ========================================================================== */
.tcp-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 26px 0 12px;
}

.tcp-section-head h2 {
    font-size: 18px;
    margin: 0;
}

.tcp-section-head a {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--v3-brand);
    text-decoration: none;
}

.tcp-tools-spotlight {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.tcp-tool-mini-card {
    background: var(--v3-s1);
    border: 1px solid var(--v3-line);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-decoration: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.tcp-tool-mini-card:hover {
    border-color: var(--v3-line-hi);
    box-shadow: var(--v3-glow);
}

.tcp-tool-mini-card__ico {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--c, #4f7cff) 16%, transparent);
    color: var(--c, #4f7cff);
}

.tcp-tool-mini-card strong { color: var(--v3-t1); font-size: 14px; }
.tcp-tool-mini-card span:last-child { color: var(--v3-t2); font-size: 12.5px; }

@media (max-width: 720px) {
    .tcp-tools-spotlight {
        grid-auto-flow: column;
        grid-template-columns: none;
        grid-auto-columns: 78%;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }
    .tcp-tools-spotlight::-webkit-scrollbar { display: none; }
    .tcp-tool-mini-card { scroll-snap-align: start; }
}

/* ==========================================================================
   Ads System (CLS-safe, native card blend, dark-mode variants)
   ========================================================================== */
.tcp-ad-slot {
    margin: 14px 0;
}

.tcp-ad-slot__label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--v3-t3);
    margin-bottom: 4px;
}

.tcp-ad-slot--home_top { min-height: 90px; }
@media (max-width: 720px) {
    .tcp-ad-slot--home_top { min-height: 100px; }
}

.tcp-ad-slot--feed_inline {
    background: var(--v3-s1);
    border: 1px solid var(--v3-line);
    border-radius: var(--v3-r);
    padding: 12px;
    min-height: 110px;
}

.tcp-ad-slot--sidebar_top { min-height: 250px; }
.tcp-ad-slot--sidebar_sticky { min-height: 250px; }

.tcp-house-banner img {
    border-radius: 10px;
    max-width: 100%;
    height: auto;
    display: block;
}

.tcp-house-banner__dark { display: none !important; }
html.dark-mode .tcp-house-banner.has-dark-variant .tcp-house-banner__light { display: none !important; }
html.dark-mode .tcp-house-banner.has-dark-variant .tcp-house-banner__dark { display: block !important; }

/* Mobile Sticky Anchor Ad (z-index: 290) */
.tcp-sticky-anchor-ad {
    display: none;
}

@media (max-width: 768px) {
    .tcp-sticky-anchor-ad {
        position: fixed;
        left: 0;
        right: 0;
        bottom: calc(var(--bottom-nav-h, 60px) + env(safe-area-inset-bottom, 0px));
        z-index: 290;
        background: var(--v3-s1);
        border-top: 1px solid var(--v3-line);
        padding: 4px 36px 4px 8px;
        min-height: 54px;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }
    .tcp-sticky-anchor-ad.is-visible { display: flex; }
    .tcp-sticky-anchor-ad[hidden] { display: none !important; }
    .tcp-sticky-anchor-ad__close {
        position: absolute;
        top: 50%;
        right: 4px;
        transform: translateY(-50%);
        width: 32px;
        height: 32px;
        border: none;
        background: transparent;
        color: var(--v3-t2);
        font-size: 18px;
        cursor: pointer;
        display: grid;
        place-items: center;
    }
    body.has-anchor-ad {
        padding-bottom: calc(var(--bottom-nav-h, 60px) + 56px + env(safe-area-inset-bottom, 0px));
    }
}

/* ==========================================================================
   Mobile Bottom Nav (z-index: 300) & Bottom Sheets
   ========================================================================== */
.tcp-mobile-bottom-nav {
    z-index: 300;
    background: color-mix(in srgb, var(--v3-s1) 92%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--v3-line);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-sizing: border-box;
}

.tcp-bottom-nav-btn {
    border: none;
    background: none;
    font: inherit;
    cursor: pointer;
}

.tcp-bottom-nav-item.is-active {
    color: var(--v3-brand) !important;
}

.tcp-pwa-install-sheet {
    z-index: 900;
    background: var(--v3-s1);
    border: 1px solid var(--v3-line-hi);
    color: var(--v3-t1);
    box-shadow: var(--v3-glow);
}

@media (max-width: 768px) {
    .tcp-pwa-install-sheet {
        bottom: calc(var(--bottom-nav-h, 60px) + 8px + env(safe-area-inset-bottom, 0px));
    }
    .site-header.is-hidden-mobile {
        transform: translateY(-100%);
    }
    .tcp-sheet-drawer {
        top: auto !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        max-height: 85vh;
        border-radius: 18px 18px 0 0;
        transform: translateY(105%);
    }
    .tcp-sheet-drawer.is-open {
        transform: translateY(0);
    }
}

@media (max-width: 360px) {
    .tcp-logo-wordmark .site-title {
        display: none;
    }
}

/* ==========================================================================
   Accessibility: Reduced Motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    .tcp-ticker__track {
        animation: none !important;
    }
    .tcp-ticker__viewport {
        overflow-x: auto;
    }
    .tcp-live::before,
    .tcp-tag--break,
    .tcp-skel {
        animation: none !important;
    }
    .tcp-bento__lead,
    .tcp-bento__side,
    .tcp-wire-card,
    .tcp-heat__cell,
    .site-header {
        transition: none !important;
        transform: none !important;
    }
}
