/* ============================================
   QUANTUMJANE THEME - MAIN STYLESHEET
   ============================================ */

/* Import Inter font like Juniper */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --color-bg: #0a0a0a;
    --color-bg-secondary: #141414;
    --color-bg-sidebar: #0a0a0a;
    --color-text: #ffffff;
    --color-text-muted: #ffffff;
    --color-accent: #6D07FC;
    --color-accent-hover: #8B47FF;
    --color-border: #2a2a2a;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif: Georgia, 'Times New Roman', serif;
    --sidebar-width: 338px;
    --header-height: auto;
}

html { font-size: 18px; }

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 1.7;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--color-text); text-decoration: none; }
a:hover { color: var(--color-accent); }
img { max-width: 100%; height: auto; display: block; }

/* ============================================
   HEADER
   ============================================ */
.site-header {
    background-color: var(--color-bg);
    padding: 20px 0;
}

/* ============================================
   MAIN LAYOUT: Content + Sidebar
   ============================================ */
.site-wrapper {
    display: grid;
    grid-template-columns: 1fr var(--sidebar-width);
    gap: 0;
    max-width: 1400px;
    margin: 0 auto;
    min-height: calc(100vh - 200px);
}

.header-inner {
    display: grid;
    grid-template-columns: auto 1fr var(--sidebar-width);
    align-items: center;
    gap: 0;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

/* Right: Subscribe */
.header-right {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: var(--sidebar-width);
    padding: 0 20px;
    height: 100%;
    justify-content: center;
}

/* Logo */
.header-logo .site-logo,
.header-logo img {
    height: 120px !important;
    width: auto !important;
    max-height: none !important;
    max-width: none !important;
}

.header-logo .site-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text);
}

/* Center */
.header-center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.byline {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
}

.who-what-why {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 1px solid var(--color-text-muted);
    padding-bottom: 2px;
}

.who-what-why:hover { color: var(--color-text); border-color: var(--color-text); }

.social-icons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.social-icons a {
    color: var(--color-text-muted);
    transition: color 0.2s;
    display: flex;
    align-items: center;
}

.social-icons a:hover { color: var(--color-accent); }
.social-icons svg { width: 20px; height: 20px; }

/* subscribe btn below */

.header-sub-links {
    display: flex;
    gap: 16px;
    justify-content: center;
    width: 100%;
}

.header-sub-links a {
    font-size: 0.95rem;
    color: var(--color-text);
}

.header-sub-links a:hover { color: var(--color-accent); }

.subscribe-btn {
    background-color: var(--color-accent);
    color: white !important;
    padding: 10px 22px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: background-color 0.2s;
    display: inline-block;
}

.subscribe-btn:hover { background-color: var(--color-accent-hover); }

.subscribe-box {
    border: 1px solid var(--color-accent);
    padding: 12px 16px;
    border-radius: 4px;
    min-width: 200px;
}

.subscribe-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.subscribe-box ul { list-style: none; }
.subscribe-box ul li { padding: 3px 0; }
.subscribe-box ul li::before { content: "• "; color: var(--color-text-muted); }
.subscribe-box ul a { font-size: 0.85rem; color: var(--color-text-muted); }
.subscribe-box ul a:hover { color: var(--color-text); }

/* sidebar styles */

.site-main {
    padding: 30px 20px 30px 0;
    min-width: 0;
}

/* sidebar */
.site-sidebar {
    background-color: var(--color-bg-sidebar);
    padding: 20px 0;
    position: sticky;
    top: 0;
}

.sidebar-section {
    padding: 16px 20px 16px 20px;
}

.sidebar-sublabel {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-style: normal;
    color: var(--color-accent);
    margin-top: -2px;
    margin-bottom: 10px;
}

.sidebar-label {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.sidebar-links { list-style: none; }
.sidebar-links li { padding: 4px 0; }
.sidebar-links a {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    transition: color 0.2s;
}
.sidebar-links a:hover { color: var(--color-accent); }

.sidebar-favorites-content {
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}
.sidebar-favorites-content p {
    margin: 0 0 10px 0;
}
.sidebar-favorites-content a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.sidebar-favorites-content a:hover {
    color: var(--color-accent);
}
/* Hide section entirely if user has not populated it */
.sidebar-favorites:not(.has-content) { display: none; }

.sidebar-stock-name {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 10px;
}

.sidebar-stocks .tradingview-widget-container {
    margin-top: 8px;
}

/* Search */
.search-btn {
    width: 100%;
    text-align: left;
    cursor: pointer;
    background: rgba(109, 7, 252, 0.08);
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    padding: 10px 16px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-family: var(--font-sans);
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: background 0.2s;
}
.search-btn:hover {
    background: rgba(109, 7, 252, 0.2);
}

.sidebar-search .search-input {
    width: 100%;
    background: rgba(109, 7, 252, 0.08);
    border: 1px solid var(--color-accent);
    color: var(--color-text);
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
}
.sidebar-search .search-input:focus {
    outline: none;
    border-color: var(--color-accent);
    background: rgba(109, 7, 252, 0.15);
}
.sidebar-search .search-input::placeholder {
    color: var(--color-accent);
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-size: 0.75rem;
}

/* Custom inline search — dropdown results, shared by desktop sidebar and mobile search bar */
.site-search {
    position: relative;
}

.site-search-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--color-bg);
    border: 1px solid var(--color-accent);
    border-radius: 4px;
    max-height: 360px;
    overflow-y: auto;
    z-index: 50;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.site-search-results[hidden] { display: none; }

.site-search-status {
    padding: 12px 14px;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.site-search-result {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 14px;
    text-decoration: none;
    border-bottom: 1px solid rgba(109, 7, 252, 0.15);
}
.site-search-result:last-child { border-bottom: none; }
.site-search-result:hover,
.site-search-result.is-active { background: rgba(109, 7, 252, 0.12); }

.site-search-result-thumb {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 4px;
    background-size: cover;
    background-position: center;
    background-color: var(--color-bg-sidebar);
}

.site-search-result-text { min-width: 0; }

.site-search-result-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-search-result-excerpt {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Sidebar subscribe */
.sidebar-subscribe { border: 1px solid var(--color-accent); margin: 16px; border-radius: 4px; }
.sidebar-subscribe ul { list-style: none; }
.sidebar-subscribe ul li { padding: 3px 0; }
.sidebar-subscribe ul li::before { content: "• "; color: var(--color-text-muted); }
.sidebar-subscribe ul a { font-size: 0.85rem; color: var(--color-text-muted); }
.sidebar-subscribe ul a:hover { color: var(--color-text); }

/* Mobile search bar — hidden on desktop, shown on mobile */
.mobile-search {
    display: none;
}

@media (max-width: 1024px) {
    /* Hide entire sidebar including its search on tablet/mobile */
    .site-sidebar { display: none !important; }

    .mobile-search {
        display: block;
        padding: 12px 16px;
        margin-top: 8px;
    }
    .mobile-search .search-input {
        width: 100%;
        box-sizing: border-box;
        background: rgba(109, 7, 252, 0.08);
        border: 1px solid var(--color-accent);
        color: var(--color-text);
        padding: 10px 16px;
        border-radius: 4px;
        font-size: 0.9rem;
        font-family: var(--font-sans);
    }
    .mobile-search .search-input::placeholder {
        color: var(--color-accent);
        font-weight: 700;
        letter-spacing: 0.15em;
        font-size: 0.8rem;
    }
    .mobile-search .search-input:focus {
        outline: none;
        background: rgba(109, 7, 252, 0.15);
    }
}

.main-search .search-input {
    width: 100%;
    background: rgba(109, 7, 252, 0.08);
    border: 1px solid var(--color-accent);
    color: var(--color-text);
    padding: 10px 16px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: var(--font-sans);
}

.main-search .search-input:focus {
    outline: none;
    border-color: var(--color-accent);
    background: rgba(109, 7, 252, 0.15);
}

.main-search .search-input::placeholder {
    color: var(--color-accent);
    font-weight: 700;
    letter-spacing: 0.15em;
    font-size: 0.8rem;
}

/* POST FEED */
.post-feed {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-width: 100%;
}

.post-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start;
    gap: 28px;
    padding: 36px 0;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.post-card:first-child { padding-top: 0; }

.post-card-image-link {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 6px;
    flex: 0 0 280px;
    width: 280px;
}

.post-card-image {
    width: 100%;
    height: 270px;
    object-fit: cover;
    transition: transform 0.3s;
}

.post-card-image-link:hover .post-card-image { transform: scale(1.03); }

.post-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 3px;
    color: white;
}

.post-card-badge-row {
    margin-bottom: 4px;
}

.post-badge-inline {
    position: static;
    display: inline-block;
}

.post-card-content {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start;
    gap: 12px;
    flex: 1 1 0% !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

.post-card-tags { display: none; }

.post-card-title { font-size: 1.5rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; text-align: justify; }
.post-card-title a { color: var(--color-text); }
.post-card-title a:hover { color: var(--color-accent); }

.post-card-excerpt { font-size: 1.05rem; color: var(--color-text-muted); line-height: 1.7; font-weight: 300; text-align: justify; }

.post-card-meta { font-size: 0.95rem; color: var(--color-text-muted); margin-top: 12px; font-weight: 400; }

/* ============================================
   SINGLE POST
   ============================================ */
.post { max-width: 780px; }

.post-header { margin-bottom: 24px; }
.post-title { font-size: 2rem; font-weight: 700; line-height: 1.2; margin: 12px 0; }
.post-meta { font-size: 0.85rem; color: var(--color-text-muted); display: flex; gap: 16px; }

.post-feature-image { margin-bottom: 30px; border-radius: 4px; overflow: hidden; }
.post-feature-image img { width: 100%; max-height: 480px; object-fit: cover; }

.post-content { font-size: 1rem; line-height: 1.8; color: var(--color-text); }
.post-content p { margin-bottom: 1.2em; }
.post-content h2 { font-size: 1.5rem; margin: 1.8em 0 0.8em; }
.post-content h3 { font-size: 1.2rem; margin: 1.5em 0 0.6em; }
.post-content img { border-radius: 4px; margin: 1.5em 0; }
.post-content a { color: var(--color-accent); text-decoration: underline; }

/* Full-width responsive video embeds (YouTube, Vimeo, etc.) */
.post-content .kg-embed-card,
.post-content figure.kg-embed-card {
    margin: 1.5em 0;
    width: 100%;
    max-width: 100%;
}

.post-content .kg-embed-card iframe,
.post-content iframe[src*="youtube.com"],
.post-content iframe[src*="youtu.be"],
.post-content iframe[src*="vimeo.com"] {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 400px;
    border: none;
    border-radius: 4px;
    display: block;
}

/* Post tags footer */
.post-tags-footer {
    margin-top: 40px;
    padding-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.post-tags-label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-weight: 600;
}

.post-tag-link {
    font-size: 0.85rem;
    background: rgba(109, 7, 252, 0.15);
    color: var(--color-accent);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid var(--color-accent);
    transition: background 0.2s;
}

.post-tag-link:hover {
    background: rgba(109, 7, 252, 0.3);
    color: var(--color-accent);
}

/* Paywall */
.paywall {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-accent);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    margin-top: 30px;
}
.paywall p { margin-bottom: 16px; color: var(--color-text-muted); }

/* ============================================
   GHOST EDITOR CARD WIDTHS (required)
   ============================================ */
.kg-width-wide {
    margin-left: -60px;
    margin-right: -60px;
}

.kg-width-full {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
}

.kg-image { max-width: 100%; }

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    justify-content: space-between;
    padding: 24px 0;
    margin-top: 10px;
}
.pagination a {
    color: var(--color-accent);
    font-size: 0.9rem;
    font-weight: 600;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    padding: 20px 30px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    background-color: var(--color-bg);
}

/* ============================================
   RESPONSIVE — TABLET (max 1024px)
   ============================================ */
@media (max-width: 1024px) {
    .site-wrapper { grid-template-columns: 1fr; }
    .site-sidebar { display: none !important; }
    .site-main { border-right: none; }
    .header-inner { grid-template-columns: auto 1fr auto; padding: 0 16px; }
}

/* Desktop-only left/right page buffer */
@media (min-width: 1025px) {
    .site-wrapper { padding: 0 40px; }
    .header-inner { padding: 0 40px; }
}

/* ============================================
   RESPONSIVE — MOBILE (max 768px)
   ============================================ */
@media (max-width: 768px) {

    html { font-size: 16px; }

    /* Header */
    .site-header { padding: 12px 0; }

    .header-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding: 0 16px;
    }

    .header-logo { width: 100%; text-align: center; }

    .header-logo .site-logo {
        height: 50px !important;
        width: auto !important;
        display: inline-block;
    }

    .header-center {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 10px 16px;
        width: 100%;
    }

    .byline { font-size: 0.8rem; white-space: nowrap; }
    .who-what-why { font-size: 0.75rem; white-space: nowrap; }
    .social-icons { justify-content: center; gap: 10px; }
    .social-icons svg { width: 18px; height: 18px; }

    .header-right {
        width: 100%;
        border-left: none !important;
        padding: 8px 0 0;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 20px;
    }

    .subscribe-btn { padding: 9px 20px; font-size: 0.9rem; }
    .header-sub-links { justify-content: center; gap: 20px; }

    /* Site main */
    .site-main { padding: 20px 16px; }

    /* Post card */
    .post-card {
        flex-direction: column !important;
        gap: 14px;
        padding: 24px 0;
    }

    .post-card-image-link { flex: none !important; width: 100% !important; }
    .post-card-image { width: 100%; height: 220px; border-radius: 6px; }
    .post-card-content { width: 100% !important; }
    .post-card-title { font-size: 1.3rem; }
    .post-card-excerpt { font-size: 1rem; }

    /* Post page title — scale down to match card titles on mobile */
    .post-title { font-size: 1.4rem; margin: 8px 0; }

    /* Sidebar completely hidden */
    .site-sidebar { display: none !important; }

    /* Footer */
    .site-footer { padding: 16px; }
}

/* ============================================
   RESPONSIVE — SMALL MOBILE (max 480px)
   ============================================ */
@media (max-width: 480px) {
    .header-logo .site-logo { height: 60px !important; }
    .byline { font-size: 0.85rem; }
    .social-icons svg { width: 20px; height: 20px; }
    .post-card-title { font-size: 1.2rem; }
    .post-card-image { height: 180px; }
    .post-badge { font-size: 0.6rem; padding: 3px 7px; }
    .post-title { font-size: 1.25rem; }
}

/* Mobile search bar — inside site-feed so inherits show/hide */
.mobile-search {
    padding: 16px;
    margin-bottom: 8px;
}
.mobile-search .search-input {
    width: 100%;
    box-sizing: border-box;
    background: rgba(109, 7, 252, 0.08);
    border: 1px solid var(--color-accent);
    color: var(--color-text);
    padding: 10px 16px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: var(--font-sans);
}
.mobile-search .search-input::placeholder {
    color: var(--color-accent);
    font-weight: 700;
    letter-spacing: 0.15em;
    font-size: 0.8rem;
}
.mobile-search .search-input:focus {
    outline: none;
    background: rgba(109, 7, 252, 0.15);
}

/* ============================================
   MOBILE FEED & CAROUSELS
   ============================================ */

/* Homepage feed — Featured (static) + New (carousel) */
.site-feed { display: block; padding: 0 0 40px 0; }


/* Mobile section */
.mobile-section {
    padding: 20px 16px 0;
    margin-bottom: 4px;
}

/* Tighter section spacing on desktop */
@media (min-width: 769px) {
    .mobile-section { padding: 12px 0 0; margin-bottom: 0; }
}

.mobile-section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    text-transform: uppercase;
    background: #E4DEFB;
    border-radius: 4px;
    padding: 4px 10px;
    margin-bottom: 12px;
}

/* Carousel container */
.swipe-carousel {
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0;
    cursor: grab;
    margin: 0 -16px;
}

.swipe-carousel::-webkit-scrollbar { display: none; }
.swipe-carousel:active { cursor: grabbing; }

/* Individual card — base (mobile) */
.swipe-card {
    flex: 0 0 100%;
    width: 100%;
    scroll-snap-align: start;
    display: block;
    text-decoration: none;
    color: var(--color-text);
    padding: 0 16px 16px;
    box-sizing: border-box;
    user-select: none;
}

/* Card image — base (mobile) */
.swipe-card-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    position: relative;
    margin-bottom: 12px;
    background-color: var(--color-bg-sidebar);
}

.swipe-card-no-image {
    background: linear-gradient(135deg, #1a0a2e 0%, #2d1054 100%);
}

/* Reading-row cards only: image and title are separate links, so real links inside the excerpt content aren't nested inside another link */
.swipe-card-image-link,
.swipe-card-title-link {
    display: block;
    text-decoration: none;
}
.swipe-card-title-link:hover .swipe-card-title { color: var(--color-accent); }

.swipe-card-richtext a {
    color: var(--color-accent);
    text-decoration: underline;
}
.swipe-card-richtext a:hover { color: var(--color-accent-hover); }
.swipe-card-richtext p { margin: 0 0 8px; }
.swipe-card-richtext p:last-child { margin-bottom: 0; }

.swipe-badge-new {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 3px;
    background: var(--color-accent);
    color: #fff;
    width: fit-content;
    max-width: calc(100% - 20px);
}

.swipe-card-image .post-badge {
    position: absolute;
    top: 10px;
    left: 10px;
}

/* Card text */
.swipe-card-content {
    padding: 0 2px;
}

.swipe-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 8px;
    color: var(--color-text);
}

.swipe-card-excerpt {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 8px;
}

.swipe-card-date {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* Dots */
.swipe-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 12px 0 20px;
}

/* Featured row — same card look as the carousel, but stacked, no swipe */
.pinned-list {
    display: flex;
    flex-direction: column;
}

/* Swipe hint — sits centered below the carousel */
.swipe-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent);
    padding-top: 12px;
}
.swipe-hint svg {
    animation: swipeHintNudge 1.4s ease-in-out infinite;
}
@keyframes swipeHintNudge {
    0%, 100% { transform: translateX(0); opacity: 0.6; }
    50% { transform: translateX(-5px); opacity: 1; }
}
@media (min-width: 769px) {
    .pinned-list .swipe-card { padding: 20px 0; }
}

/* -----------------------------------------------
   Desktop overrides — must come AFTER base rules
   ----------------------------------------------- */
@media (min-width: 769px) {
    /* Remove negative margin used to bleed to edges on mobile */
    .swipe-carousel { margin: 0; }

    /* Horizontal layout: image left (25%), content right (75%) */
    .swipe-card {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 20px;
        padding: 20px 0;
    }

    .swipe-card-image {
        flex: 0 0 37.5%;
        width: 37.5%;
        height: 195px;
        margin-bottom: 0;
        border-radius: 6px;
    }

    /* Reading-row cards: image sits inside a link wrapper instead of being the direct flex child */
    .swipe-card-image-link {
        flex: 0 0 37.5%;
        width: 37.5%;
    }
    .swipe-card-image-link .swipe-card-image {
        flex: none;
        width: 100%;
        height: 195px;
    }

    .swipe-card-content {
        flex: 1 1 0%;
        padding: 0;
    }

    .swipe-card-title { font-size: 1.3rem; }
    .swipe-dots { padding: 8px 0 10px; }
}

.swipe-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-border);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.swipe-dot.active {
    background: var(--color-accent);
    transform: scale(1.3);
}

/* Mobile sidebar sections */
.mobile-sidebar {
    padding: 0;
}

/* Hide mobile sidebar on desktop (desktop sidebar is already rendered in default.hbs) */
@media (min-width: 769px) {
    .mobile-sidebar,
    .mobile-search { display: none !important; }
}

.mobile-sidebar-section {
    padding: 20px 16px;
}

.mobile-sidebar-section .sidebar-label {
    font-size: 0.955rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    text-transform: uppercase;
    margin-bottom: 14px;
}

.mobile-sidebar-section .search-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    background: transparent;
    border: 1px solid var(--color-accent);
    border-radius: 4px;
    color: var(--color-text);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
}

.mobile-sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-sidebar-link {
    display: block;
    padding: 12px 0;
    font-size: 1rem;
    color: var(--color-text);
    text-decoration: none;
}

.mobile-sidebar-link:hover { color: var(--color-accent); }

/* Remove iOS Safari bubble/pill styling on links */
.mobile-sidebar-link,
.mobile-sidebar-links a {
    -webkit-appearance: none;
    appearance: none;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.sidebar-stock-name {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 10px;
}

