/* Sirruna - Editorial Design System */

:root {
    /* Palette - Triad Colors */
    --burgundy: #8A123C;
    --burgundy-dark: #6d0e2f;
    --teal: #12728A;
    --gold: #B8934C;
    --white: #FFFFFF;
    
    --paper: #FFF8F2;
    --paper-dark: #F5EDE5;
    --rule: #E8DFD5;
    
    --ink: #1a1a1a;
    --ink-secondary: #4a4a4a;
    --ink-tertiary: #7a7a7a;
    
    /* Typography - Clean System */
    /* Bodoni Moda: ONLY for S. logo mark */
    --font-logo: 'Bodoni Moda', Georgia, serif;
    /* Lora: Headlines, subtext, editorial voice */
    --font-editorial: 'Lora', Georgia, serif;
    /* DM Sans: Body, UI, data labels */
    --font-ui: 'DM Sans', -apple-system, sans-serif;
    
    /* Legacy aliases (for backward compatibility) */
    --serif-display: var(--font-logo);
    --serif: var(--font-editorial);
    --sans: var(--font-ui);
    
    /* Spacing */
    --xs: 0.25rem;
    --sm: 0.5rem;
    --md: 1rem;
    --lg: 1.5rem;
    --xl: 2rem;
    --2xl: 3rem;
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--sans);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.5;
}

/* DM Serif Display - breathing room for headers */
h1, h2, h3, h4, h5, h6,
.article-title,
.focus-headline,
.index-title,
.mood-title,
.section-title {
    letter-spacing: 0.02em;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Container */
.container {
    max-width: 1024px;
    margin: 0 auto;
    padding: var(--lg) 32px !important;
    width: 100%;
}

/* Fixed Header Container */
.header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--paper);
    z-index: 100;
    padding: var(--sm) var(--xl) 0 var(--xl);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    overflow: visible;
}

.header-fixed .masthead,
.header-fixed .section-nav {
    max-width: 1024px;
    margin: 0 auto;
    width: 100%;
}

/* Main content card - matches header-fixed padding */
.main-card {
    padding: 0 var(--xl);
}

.main-card > main {
    max-width: 1024px;
    margin: 0 auto;
}

/* Content offset for fixed header */
.container.content-offset {
    padding-top: 24px !important; /* Gap below fixed header */
    position: relative;
    z-index: 1; /* Below header and dropdowns */
}

/* Wide screens - expand container for editorial grid */
/* Wide screen overrides disabled - focusing on iPad width (1024px)
@media (min-width: 1500px) {
    .container {
        max-width: 1600px;
        padding: var(--lg) var(--xl);
    }
    
    .header-fixed {
        padding-left: calc((100vw - 1600px) / 2 + var(--xl));
        padding-right: calc((100vw - 1600px) / 2 + var(--xl));
    }
    
    .header-fixed .masthead,
    .header-fixed .section-nav {
        max-width: 1600px;
    }
}

@media (min-width: 1800px) {
    .container {
        max-width: 1800px;
    }
    
    .header-fixed {
        padding-left: calc((100vw - 1800px) / 2 + var(--xl));
        padding-right: calc((100vw - 1800px) / 2 + var(--xl));
    }
    
    .header-fixed .masthead,
    .header-fixed .section-nav {
        max-width: 1800px;
    }
}
*/

/* ========== MASTHEAD ========== */
.masthead {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--sm) 0 var(--md) 0;
    border-bottom: 1px solid var(--rule);
    position: relative;
}

/* ========== MASTHEAD - FT Style Three Column ========== */
.masthead {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: var(--sm) 0;
    border-bottom: 1px solid var(--rule);
    margin-bottom: var(--sm);
}

.masthead-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.masthead-center {
    display: flex;
    justify-content: center;
}

.masthead-brand {
    display: flex;
    align-items: center;
    gap: var(--md);
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.brand-name {
    font-family: var(--serif-display);
    font-weight: 400;
    font-size: 2rem;
    color: var(--ink);
    letter-spacing: 0.02em;
}

.brand-name strong {
    font-weight: 700;
}

.brand-dot {
    font-weight: 700;
    color: var(--gold);
}

/* Full SIRRUNA. masthead on daily page */
.brand-name.brand-full {
    font-family: var(--serif-display);
    font-weight: 400;
    font-size: 1.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* Page-specific brand second word colors */
.brand-name.brand-weekend .brand-word {
    color: var(--teal);
}

.brand-name.brand-personal .brand-word {
    color: var(--burgundy);
}

.brand-name.brand-media .brand-word {
    color: var(--ink-tertiary);
}

.masthead-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--sm);
}

/* Edition Picker */
.edition-picker {
    display: flex;
    gap: var(--xs);
}

.edition {
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 500;
    padding: var(--xs) var(--sm);
    background: transparent;
    border: 1px solid var(--rule);
    border-radius: 3px;
    color: var(--ink-tertiary);
    cursor: pointer;
    transition: all 0.15s;
}

.edition:hover {
    border-color: var(--ink-tertiary);
    color: var(--ink-secondary);
}

.edition.active {
    background: var(--burgundy);
    border-color: var(--burgundy);
    color: white;
}

/* Edition Badge (shown for logged-in users) */
.edition-badge {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
    cursor: pointer;
}

.edition-badge-text {
    font-family: var(--sans);
    font-size: 0.85rem;
    color: var(--burgundy);
    letter-spacing: 0.02em;
}

.region-name {
    display: block;
    font-weight: 600;
}

.region-city {
    display: block;
    font-weight: 400;
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Subscribe Button */
.subscribe-btn {
    font-family: var(--sans);
    font-size: 0.8rem;
    font-weight: 600;
    padding: var(--xs) var(--md);
    background: var(--ink);
    border: none;
    border-radius: 3px;
    color: white;
    cursor: pointer;
    transition: all 0.15s;
}

.subscribe-btn:hover:not(:disabled) {
    background: var(--burgundy);
}

.subscribe-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Sign In Button */
.signin-btn {
    font-family: var(--sans);
    font-size: 0.8rem;
    font-weight: 500;
    padding: var(--xs) var(--md);
    background: transparent;
    border: 1px solid var(--rule);
    border-radius: 3px;
    color: var(--ink-secondary);
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    gap: var(--xs);
}

.signin-btn:hover {
    border-color: var(--burgundy);
    color: var(--burgundy);
}

/* Auth Container */
.auth-container {
    position: relative;
}

.auth-hidden {
    display: none !important;
}

/* User Menu Button (when signed in) */
.user-menu-btn {
    display: flex;
    align-items: center;
    gap: var(--xs);
    padding: 4px 8px 4px 4px;
    background: transparent;
    border: 1px solid var(--rule);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.15s;
}

.user-menu-btn:hover {
    border-color: var(--burgundy);
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    font-family: var(--sans);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--ink-secondary);
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* User Dropdown */
.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 160px;
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    padding: var(--xs);
    z-index: 200;
    display: none;
}

.user-dropdown.open {
    display: block;
}

.dropdown-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: var(--sm);
    padding: var(--sm) var(--md);
    background: transparent;
    border: none;
    border-radius: 4px;
    font-family: var(--sans);
    font-size: 0.85rem;
    color: var(--ink-secondary);
    cursor: pointer;
    transition: all 0.15s;
}

.dropdown-item:hover {
    background: var(--paper-dark);
    color: var(--ink);
}

.dropdown-item svg {
    color: var(--ink-tertiary);
}

/* Sign In Modal */
.signin-modal {
    max-width: 400px;
}

.signin-body {
    text-align: center;
    padding: var(--xl) var(--lg);
}

.signin-subtitle {
    font-size: 0.95rem;
    color: var(--ink-secondary);
    margin-bottom: var(--xl);
}

.signin-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--md);
}

.signin-provider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--md);
    width: 100%;
    padding: var(--md) var(--lg);
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: 8px;
    font-family: var(--sans);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink);
    cursor: pointer;
    transition: all 0.15s;
}

.signin-provider:hover {
    border-color: var(--ink-secondary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

#apple-signin {
    background: var(--ink);
    border-color: var(--ink);
    color: white;
}

#apple-signin:hover {
    background: #1a1a1a;
}

.signin-terms {
    margin-top: var(--xl);
    font-size: 0.75rem;
    color: var(--ink-tertiary);
}

/* ========== MARKET STRIP ========== */
.market-strip {
    display: flex;
    gap: var(--xl);
    padding: var(--sm) 0;
    border-bottom: 1px solid var(--rule);
}

.ticker {
    display: flex;
    align-items: baseline;
    gap: var(--sm);
}

.ticker-label {
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink-tertiary);
}

.ticker-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink);
}

.ticker-change {
    font-size: 0.75rem;
    font-weight: 500;
}

.ticker-change.up { color: #0a7c42; }
.ticker-change.down { color: var(--burgundy); }

/* Market Activity indicator */
.ticker-activity {
    font-weight: 600;
}
.ticker-activity.frenzied { color: var(--burgundy); }
.ticker-activity.active { color: #0a7c42; }
.ticker-activity.moderate { color: var(--teal); }
.ticker-activity.quiet { color: var(--ink-tertiary); }

.ticker-meta {
    margin-left: auto;
    opacity: 0.6;
}

.ticker-timestamp {
    font-size: 0.75rem;
    color: var(--ink-tertiary);
}

/* ========== SECTION NAV ========== */
.section-nav {
    display: flex;
    justify-content: flex-end;
    gap: var(--lg);
    padding: var(--sm) 0;
    border-bottom: 1px solid var(--rule);
}

/* Phone nav hidden on desktop */
.phone-nav {
    display: none;
}

/* Phone-only overlays hidden on desktop */
.phone-mood-detail,
.phone-week-view,
.phone-week-reading {
    display: none;
}

.section-link {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--ink-tertiary);
    transition: color 0.15s;
}

.section-link:hover,
.section-link.active {
    color: var(--ink);
}

/* ========== TOAST NOTIFICATION ========== */
.toast-notification {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: var(--ink);
    color: white;
    padding: var(--sm) var(--lg);
    border-radius: 6px;
    font-family: var(--sans);
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 3000;
}

.toast-notification.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ========== LOGIN POPUP ========== */
.login-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.login-overlay.active {
    display: flex;
}

.login-popup {
    background: var(--paper);
    border-radius: 8px;
    padding: var(--xl);
    max-width: 380px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.login-close {
    position: absolute;
    top: var(--md);
    right: var(--md);
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--ink-tertiary);
    cursor: pointer;
    line-height: 1;
    padding: var(--xs);
}

.login-close:hover {
    color: var(--ink);
}

.login-title {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: var(--xs);
    text-align: center;
}

.login-subtitle {
    font-family: var(--sans);
    font-size: 0.9rem;
    color: var(--ink-secondary);
    text-align: center;
    margin-bottom: var(--lg);
}

.login-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--sm);
}

.login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sm);
    padding: var(--md) var(--lg);
    border-radius: 6px;
    font-family: var(--sans);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.login-google {
    background: white;
    border: 1px solid var(--rule);
    color: var(--ink);
}

.login-google:hover {
    background: var(--paper-dark);
    border-color: var(--ink-tertiary);
}

.login-apple {
    background: var(--ink);
    border: 1px solid var(--ink);
    color: white;
}

.login-apple:hover {
    background: #333;
}

.login-footer {
    font-family: var(--sans);
    font-size: 0.75rem;
    color: var(--ink-tertiary);
    text-align: center;
    margin-top: var(--lg);
}

.login-footer a {
    color: var(--burgundy);
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* ========== STICKY HEADER ========== */
/* Hidden on Daily Edition (using fixed header instead) */
/* Weekend Magazine uses .weekend-sticky class */
.sticky-header:not(.weekend-sticky) {
    display: none;
}

.sticky-header.weekend-sticky {
    position: fixed;
    top: -60px;
    left: 0;
    right: 0;
    height: 48px;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--xl);
    z-index: 1000;
    transition: top 0.25s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.sticky-header.weekend-sticky.visible {
    top: 0;
}

.sticky-left {
    display: flex;
    align-items: center;
    gap: var(--lg);
}

.sticky-ticker {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sticky-label {
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--ink-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.sticky-value {
    font-family: var(--sans);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ink);
}

.sticky-change {
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 500;
}

.sticky-change.up {
    color: var(--positive);
}

.sticky-change.down {
    color: var(--negative);
}

.sticky-activity {
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--positive);
    padding: 3px 8px;
    background: rgba(16, 124, 65, 0.1);
    border-radius: 4px;
}

.sticky-activity.frenzied {
    color: var(--burgundy);
    background: rgba(138, 18, 60, 0.1);
}

.sticky-activity.moderate {
    color: var(--teal);
    background: rgba(0, 128, 128, 0.1);
}

.sticky-activity.quiet {
    color: var(--ink-tertiary);
    background: rgba(0, 0, 0, 0.05);
}

.sticky-right {
    display: flex;
    align-items: center;
    gap: var(--lg);
}

.sticky-nav {
    display: flex;
    gap: var(--md);
}

.sticky-link {
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--ink-tertiary);
    text-decoration: none;
    transition: color 0.15s;
}

.sticky-link:hover,
.sticky-link.active {
    color: var(--ink);
}

.sticky-region {
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--white);
    background: var(--ink);
    padding: 5px 12px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ========== EDITORIAL GRID ========== */
.editorial-grid {
    display: grid;
    grid-template-columns: 340px 1fr 340px;
    gap: var(--lg);
    margin-top: var(--sm);
    height: calc(100vh - 240px); /* Viewport minus header - tighter */
}

/* ========== ARTICLE INDEX (Left) ========== */
.article-index {
    border-right: 1px solid var(--rule);
    padding-right: var(--xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Scrollable content wrapper for index list */
.index-content {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--rule) transparent;
}

.index-content::-webkit-scrollbar {
    width: 6px;
}

.index-content::-webkit-scrollbar-track {
    background: transparent;
}

.index-content::-webkit-scrollbar-thumb {
    background: var(--rule);
    border-radius: 3px;
}

/* ========== READING PANE (Center) ========== */
.reading-pane {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--rule) transparent;
    padding-right: var(--md);
}

/* Mobile back button - hidden on desktop */
.mobile-back-btn {
    display: none;
}

.reading-pane::-webkit-scrollbar {
    width: 6px;
}

.reading-pane::-webkit-scrollbar-track {
    background: transparent;
}

.reading-pane::-webkit-scrollbar-thumb {
    background: var(--rule);
    border-radius: 3px;
}

/* ========== CONTEXT SIDEBAR (Right) ========== */
.context-sidebar {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--rule) transparent;
    padding-left: var(--md);
    border-left: 1px solid var(--rule);
}

.context-sidebar::-webkit-scrollbar {
    width: 6px;
}

.context-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.context-sidebar::-webkit-scrollbar-thumb {
    background: var(--rule);
    border-radius: 3px;
}

.index-header {
    padding-bottom: var(--md);
    border-bottom: 2px solid var(--burgundy);
    margin-bottom: var(--lg);
}

.index-header-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: var(--sm);
}

.index-title {
    font-family: var(--sans);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--burgundy);
}

.index-date {
    font-size: 0.7rem;
    color: var(--ink-tertiary);
}

/* Brief Selector Tabs */
.brief-selector {
    display: flex;
    gap: 0;
    background: var(--paper-dark);
    border-radius: 6px;
    padding: 3px;
}

.brief-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 12px;
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
}

.brief-tab:hover {
    background: rgba(255,255,255,0.5);
}

.brief-tab.active {
    background: var(--white);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.brief-tab-label {
    font-family: var(--sans);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink-tertiary);
}

.brief-tab.active .brief-tab-label {
    color: var(--burgundy);
}

.brief-tab-time {
    font-family: var(--sans);
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--ink-tertiary);
}

.brief-tab.active .brief-tab-time {
    color: var(--ink-secondary);
}

/* Brief unavailable state */
.brief-tab.unavailable {
    opacity: 0.45;
    cursor: not-allowed;
}

.brief-tab.unavailable:hover {
    background: transparent;
}

.index-list {
    display: flex;
    flex-direction: column;
}

/* Index Cards */
.index-card {
    padding: var(--md) 0;
    border-bottom: 1px solid var(--rule);
    cursor: pointer;
    transition: background 0.15s;
}

.index-card:hover {
    background: var(--paper-dark);
}

.index-card.active {
    background: var(--paper-dark);
    border-left: 3px solid var(--burgundy);
    padding-left: var(--md);
}

.index-card.active .card-label {
    color: var(--burgundy);
}

/* Phone-only elements hidden on desktop */
.phone-market-mood {
    display: none;
}

.card-image {
    display: none;
}

.card-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--burgundy);
    display: block;
    margin-bottom: var(--sm);
}

.card-headline {
    font-family: var(--serif);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--ink);
    margin-bottom: var(--xs);
}

/* Excerpt shown only for THE LEAD via JS */
.card-excerpt {
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--ink-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: var(--xs);
}

/* ========== THE TAKEAWAY - Rory-style Quote Box ========== */
.takeaway-quote {
    margin-top: var(--lg);
    padding: var(--lg) var(--lg) var(--md);
    padding-left: 50px;
    background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-dark) 100%);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.takeaway-quote::before {
    content: '"';
    position: absolute;
    top: 8px;
    left: 10px;
    font-family: var(--font-editorial);
    font-size: 5rem;
    line-height: 1;
    color: rgba(255,255,255,0.25);
    pointer-events: none;
}

.takeaway-label {
    font-family: var(--sans);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.7);
    display: block;
    margin-bottom: var(--sm);
}

.takeaway-text {
    font-family: var(--serif);
    font-size: 0.95rem;
    font-style: italic;
    line-height: 1.55;
    color: var(--white);
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Audio Card - Matching iOS Design */
.audio-card {
    display: flex;
    align-items: stretch;
    background: var(--white);
    border-radius: 12px;
    margin-top: 40px;
    margin-bottom: var(--xl);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    overflow: hidden;
    max-width: 720px;
}

.audio-card-content {
    flex: 1;
    padding: 16px;
}

.audio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.audio-label {
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--teal);
}

.audio-duration {
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--ink-tertiary);
}

.audio-episode {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.audio-artwork {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.audio-artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.audio-title {
    font-family: var(--sans);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.3;
    color: var(--ink);
    text-transform: uppercase;
    padding-top: 4px;
}

.audio-source {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.audio-show-name {
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--burgundy);
}

.audio-dot {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--ink-tertiary);
}

.audio-recency {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ink-tertiary);
}

.audio-links {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.audio-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-tertiary);
    transition: color 0.15s;
}

.audio-link:hover {
    color: var(--burgundy);
}

/* Audio Player Controls - Right Side */
.audio-player {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: var(--teal);
    min-width: 160px;
}

.audio-play-btn {
    width: 48px;
    height: 48px;
    background: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.15s;
}

.audio-play-btn:hover {
    transform: scale(1.08);
}

.audio-play-btn:active {
    transform: scale(0.95);
}

.audio-play-btn svg {
    width: 22px;
    height: 22px;
    fill: var(--teal);
    display: block;
}

.audio-play-btn .play-icon {
    margin-left: 3px;
}

.audio-play-btn .pause-icon {
    display: none;
}

.audio-play-btn.playing .play-icon {
    display: none;
}

.audio-play-btn.playing .pause-icon {
    display: block;
}

.hidden {
    display: none !important;
}

.audio-progress-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.audio-progress-bar {
    height: 6px;
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
}

.audio-progress {
    height: 100%;
    width: 0%;
    background: var(--white);
    border-radius: 3px;
    transition: width 0.1s linear;
}

.audio-times {
    display: flex;
    justify-content: space-between;
}

.audio-current-time,
.audio-total-time {
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--paper);
}

#audio-element {
    display: none;
}

/* Responsive audio card */
@media (max-width: 600px) {
    .audio-card {
        flex-direction: column;
    }
    
    .audio-player {
        flex-direction: row;
        min-width: auto;
        padding: 12px 16px;
    }
    
    .audio-progress-container {
        flex: 1;
    }
}

/* Article Content */
.article-content {
    max-width: 720px;
}

/* Article Lead Image - FT Style with Gradient Overlay */
.article-image {
    position: relative;
    width: 100%;
    max-width: 720px;
    height: 250px;
    margin-bottom: var(--lg);
    border-radius: 0;
    overflow: hidden;
    background: var(--ink);
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.article-image img.loading {
    opacity: 0;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 28px 24px 28px;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.3) 40%,
        rgba(0, 0, 0, 0.85) 100%
    );
}

.image-label {
    font-family: var(--sans);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--white);
    background: var(--burgundy);
    padding: 5px 12px;
    border-radius: 2px;
    display: inline-block;
    margin-bottom: var(--md);
}

.image-headline {
    font-family: var(--serif);
    font-size: 1.85rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--white);
    margin: 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    max-width: 85%;
}

@media (max-width: 768px) {
    .article-image {
        height: 280px;
    }
    
    .image-headline {
        font-size: 1.4rem;
    }
}

.article-header {
    margin-bottom: var(--xl);
    padding-bottom: var(--lg);
    border-bottom: 1px solid var(--rule);
    max-width: 720px;
}

/* When image is shown, reduce header styling */
.article-header.with-image {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: var(--md);
}

.article-label {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--burgundy);
    display: block;
    margin-bottom: var(--sm);
}

.article-headline {
    font-family: var(--serif);
    font-size: 2.25rem;
    font-weight: 600;
    line-height: 1.15;
    color: var(--ink);
    margin-bottom: var(--md);
}

.article-meta {
    display: flex;
    gap: var(--md);
    font-size: 0.8rem;
    color: var(--ink-tertiary);
}

.article-byline {
    color: var(--burgundy);
    font-weight: 500;
}

/* Article Body */
.article-body {
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ink-secondary);
    max-width: 720px;
}

.article-body p {
    margin-bottom: var(--lg);
}

.article-body p:last-child {
    margin-bottom: 0;
}

/* Sub-region headers (Evening Edition - The Region) */
.sub-region-header {
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--teal);
    margin-top: var(--xl);
    margin-bottom: var(--md);
    padding-bottom: var(--xs);
    border-bottom: 1px solid var(--rule);
}

.sub-region-header:first-child {
    margin-top: 0;
}

/* Editorial bullet points (The Driver, The Signal, etc.) */
.editorial-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
}

.editorial-bullets li {
    position: relative;
    padding-left: 1.5em;
    margin-bottom: var(--lg);
    line-height: 1.75;
}

.editorial-bullets li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--burgundy);
    font-weight: 600;
}

.editorial-bullets li:last-child {
    margin-bottom: 0;
}

/* ========== CONTEXT SIDEBAR (Right) ========== */
.context-sidebar {
    padding-left: var(--xl);
    border-left: 1px solid var(--rule);
}

/* ========== MARKET MOOD 9-BOX ========== */
.market-mood {
    margin-bottom: var(--lg);
    overflow: hidden;
}

.mood-header {
    margin-bottom: var(--md);
}

.mood-label {
    display: block;
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--burgundy);
    margin-bottom: var(--xs);
}

.mood-title {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--ink);
}

/* 9-Box Container */
.nine-box-container {
    display: flex;
    gap: 8px;
    margin-bottom: var(--md);
    max-width: 100%;
    justify-content: center;
}

.nine-box-y-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    min-width: 24px;
}

.nine-box-y-axis span {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-size: 0.6rem;
    color: var(--ink-tertiary);
    white-space: nowrap;
}

.nine-box-y-axis .y-label-mid {
    font-weight: 600;
    color: var(--ink-secondary);
}

.nine-box-y-axis .y-label-top,
.nine-box-y-axis .y-label-bottom {
    font-size: 0.55rem;
}

.nine-box-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}

.nine-box-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 2px;
    aspect-ratio: 1 / 1;
    width: 100%;
    max-width: 280px;
    position: relative;
    background: var(--white);
    border-radius: 4px;
    overflow: hidden;
}

.nine-box-x-axis {
    display: flex;
    justify-content: space-between;
    font-size: 0.6rem;
    color: var(--ink-tertiary);
    padding-top: 4px;
    width: 100%;
    max-width: 280px;
}

.nine-box-x-axis span:nth-child(2) {
    font-weight: 600;
    color: var(--ink-secondary);
}

/* Individual Boxes - Triad Color System */
.box {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--sans);
    font-size: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-align: center;
    padding: 2px;
    overflow: hidden;
    min-width: 0;
    line-height: 1.2;
}

/* Gold diagonal (boxes 1, 5, 9) - Neutral/Transition states */
.box-gold {
    background: rgba(138, 128, 18, 0.15);
    color: var(--gold);
}

.box-gold-strong {
    background: rgba(138, 128, 18, 0.25);
    color: var(--gold);
}

/* Teal gradient (positive states) */
.box-positive {
    background: rgba(18, 114, 138, 0.12);
    color: var(--teal);
}

.box-positive-strong {
    background: rgba(18, 114, 138, 0.22);
    color: var(--teal);
}

/* Burgundy gradient (negative states) */
.box-negative {
    background: rgba(138, 18, 60, 0.12);
    color: var(--burgundy);
}

.box-negative-strong {
    background: rgba(138, 18, 60, 0.22);
    color: var(--burgundy);
}

/* Trail SVG */
.mood-trail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.trail-line {
    fill: none;
    stroke: url(#trailGradient);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Dots */
.mood-dot {
    position: absolute;
    border-radius: 50%;
    z-index: 3;
    transform: translate(-50%, -50%);
}

.mood-dot-teal {
    width: 16px;
    height: 16px;
    background: var(--teal);
    border: 2px solid var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.mood-dot-burgundy {
    width: 14px;
    height: 14px;
    background: var(--burgundy);
    border: 2px solid var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.mood-dot-start {
    width: 10px;
    height: 10px;
    background: var(--teal);
    opacity: 0.3;
}

/* Description */
.mood-description {
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--ink-secondary);
    margin-bottom: var(--md);
}

/* Legend */
.mood-legend {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    color: var(--ink-tertiary);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.legend-dot-teal {
    background: var(--teal);
}

.legend-dot-burgundy {
    background: var(--burgundy);
}

/* Active zone highlight */
.box.active-zone {
    outline: 2px solid var(--ink);
    outline-offset: -2px;
    z-index: 1;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: var(--sm);
    border-bottom: 2px solid var(--teal);
    margin-bottom: var(--lg);
}

.sidebar-title {
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--teal);
}

.sidebar-date {
    font-size: 0.7rem;
    color: var(--ink-tertiary);
}

/* Week Ahead Cards */
.week-ahead-list {
    display: flex;
    flex-direction: column;
    gap: var(--sm);
}

.week-card {
    padding: var(--md);
    background: var(--white);
    border-left: 3px solid var(--teal);
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: all 0.15s;
}

.week-card:hover {
    background: var(--paper-dark);
    transform: translateX(2px);
}

.week-card.active {
    background: var(--paper-dark);
    border-left-color: var(--burgundy);
}

.week-label {
    display: block;
    font-family: var(--sans);
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--teal);
    margin-bottom: var(--xs);
}

.week-card.active .week-label {
    color: var(--burgundy);
}

.week-headline {
    font-family: var(--serif);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--ink);
    margin-bottom: var(--xs);
}

.week-excerpt {
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--ink-tertiary);
}

/* Context Items */
.context-list {
    display: flex;
    flex-direction: column;
}

.context-item {
    display: flex;
    gap: var(--sm);
    padding: var(--md) 0;
    border-bottom: 1px solid var(--rule);
}

.context-rank {
    font-family: var(--serif);
    font-size: 1.25rem;
    color: var(--rule);
    flex-shrink: 0;
    width: 28px;
}

.context-headline {
    font-family: var(--serif);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--ink);
    margin-bottom: var(--xs);
}

.context-excerpt {
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--ink-tertiary);
}

/* ===== ETF Flows Section ===== */
.etf-flows {
    margin-top: var(--lg);
    padding-top: var(--lg);
    border-top: 1px solid var(--rule);
}

.etf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--sm);
}

.etf-label {
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--burgundy);
}

.etf-date {
    font-family: var(--sans);
    font-size: 0.7rem;
    color: var(--ink-tertiary);
}

.etf-main {
    display: flex;
    align-items: center;
    gap: var(--sm);
    margin-bottom: var(--sm);
}

.etf-bar-container {
    flex: 1;
    height: 20px;
    background: var(--surface);
    border-radius: 3px;
    overflow: hidden;
}

.etf-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.4s ease;
}

.etf-bar.etf-inflow {
    background: var(--teal);
}

.etf-bar.etf-outflow {
    background: var(--burgundy);
}

.etf-amount {
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 700;
    min-width: 70px;
    text-align: right;
}

.etf-amount.positive {
    color: var(--teal);
}

.etf-amount.negative {
    color: var(--burgundy);
}

.etf-week {
    display: flex;
    gap: 4px;
    margin-bottom: var(--xs);
}

.etf-day {
    flex: 1;
    height: 6px;
    border-radius: 2px;
    background: var(--surface);
    cursor: help;
    transition: transform 0.15s;
}

.etf-day:hover {
    transform: scaleY(1.5);
}

.etf-day.inflow {
    background: var(--teal);
    opacity: 0.6;
}

.etf-day.inflow.strong {
    opacity: 1;
}

.etf-day.outflow {
    background: var(--burgundy);
    opacity: 0.6;
}

.etf-day.outflow.strong {
    opacity: 1;
}

.etf-insight {
    font-family: var(--serif);
    font-size: 0.8rem;
    font-style: italic;
    color: var(--ink-secondary);
    margin: 0;
    line-height: 1.4;
}

/* ===== The Number Section ===== */
.the-number {
    margin-bottom: var(--lg);
    padding-bottom: var(--lg);
    border-bottom: 1px solid var(--rule);
    text-align: center;
}

.number-header {
    margin-bottom: var(--sm);
}

.number-label {
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--burgundy);
}

.number-value {
    font-family: var(--serif);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.1;
    margin-bottom: var(--xs);
}

.number-suffix {
    font-size: 1rem;
    font-weight: 400;
    color: var(--ink-tertiary);
    margin-left: 2px;
}

/* Metric name label (e.g., "BTC DOMINANCE", "FEAR & GREED") */
.number-metric {
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--teal);
    margin-bottom: var(--xs);
}

/* Change/delta display (e.g., "+5 vs last week") */
.number-change {
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--ink-tertiary);
    margin-bottom: var(--sm);
}

.number-change.positive {
    color: var(--positive);
}

.number-change.negative {
    color: var(--negative);
}

.number-context {
    font-family: var(--serif);
    font-size: 0.85rem;
    color: var(--ink-secondary);
    line-height: 1.4;
    margin: 0;
}

/* Sidebar Divider */
.sidebar-divider {
    height: 1px;
    background: var(--rule);
    margin: var(--xl) 0;
}

/* Newsletter */
.newsletter {
    background: var(--paper-dark);
    padding: var(--md);
    border-radius: 4px;
}

.newsletter-title {
    font-family: var(--serif);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--xs);
}

.newsletter-desc {
    font-size: 0.75rem;
    color: var(--ink-tertiary);
    margin-bottom: var(--md);
}

.newsletter-form {
    display: flex;
}

.newsletter-input {
    flex: 1;
    padding: var(--sm);
    border: 1px solid var(--rule);
    border-right: none;
    border-radius: 3px 0 0 3px;
    font-size: 0.8rem;
    outline: none;
}

.newsletter-input:focus {
    border-color: var(--burgundy);
}

.newsletter-submit {
    padding: var(--sm) var(--md);
    background: var(--burgundy);
    border: 1px solid var(--burgundy);
    border-radius: 0 3px 3px 0;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.15s;
}

.newsletter-submit:hover {
    background: var(--burgundy-dark);
}

/* ========== FOOTER ========== */
.footer {
    margin-top: var(--2xl);
    padding-top: var(--lg);
    border-top: 1px solid var(--rule);
    text-align: center;
}

.footer-tagline {
    font-family: var(--serif);
    font-style: italic;
    color: var(--ink-secondary);
    margin-bottom: var(--xs);
}

.footer-legal {
    font-size: 0.7rem;
    color: var(--ink-tertiary);
}

/* ========== RESPONSIVE: 3-COLUMN LAYOUT SYSTEM ========== */

/*
BREAKPOINTS:
- Wide (>1200px): [Left | Reader | Right] - 3 columns
- Tablet (768-1200px): [Left+Right stacked | Reader] - 2 columns  
- Phone (<768px): [Left+Right stacked] - 1 column, reader as overlay
*/

/* Wide screens: 3 columns side by side */
@media (min-width: 1201px) {
    .editorial-grid {
        display: grid;
        grid-template-columns: 340px 1fr 340px;
        grid-template-areas: "left center right";
        gap: var(--xl);
    }
    
    .article-index { grid-area: left; }
    .reading-pane { grid-area: center; }
    .context-sidebar { grid-area: right; }
    
    .mobile-back-btn {
        display: none;
    }
}

/* ============================================
   TABLET / iPAD OPTIMIZATION (768px - 1200px)
   ============================================ */

/* iPad Portrait (768px - 1024px) */
/* iPad Portrait - includes iPad Mini (720px - 1024px) */
@media (min-width: 720px) and (max-width: 1024px) {
    /* Prevent horizontal overflow */
    html, body {
        overflow-x: hidden !important;
    }
    
    /* Tighter container */
    .container {
        padding: var(--sm) var(--md) !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    /* Content offset for fixed header on iPad - MUST come after .container */
    .container.content-offset {
        padding-top: 130px !important;
    }
    
    /* Compact header - reduce height */
    .header-fixed {
        padding: var(--xs) var(--md) 0 var(--md) !important;
        overflow-x: hidden !important;
    }
    
    .masthead {
        padding: var(--xs) 0 !important;
        margin-bottom: 0 !important;
    }
    
    .brand-name {
        font-size: 1.4rem !important;
    }
    
    .brand-name.brand-full {
        font-size: 1.2rem !important;
        letter-spacing: 0.1em !important;
    }
    
    /* Market strip - prevent overflow */
    .market-strip {
        gap: var(--sm) !important;
        padding: var(--xs) 0 !important;
        flex-wrap: wrap !important;
        overflow-x: hidden !important;
    }
    
    .ticker {
        gap: 4px !important;
    }
    
    .ticker-label {
        font-size: 0.5rem !important;
    }
    
    .ticker-value {
        font-size: 0.75rem !important;
    }
    
    .ticker-change {
        font-size: 0.6rem !important;
    }
    
    /* Compact nav */
    .section-nav {
        gap: var(--md) !important;
        padding: var(--xs) 0 !important;
        margin-bottom: 0 !important;
    }
    
    .section-link {
        font-size: 0.7rem !important;
        padding: 2px 0 !important;
    }
    
    /* WEEK FOCUS - 2x2 grid, compact, minimal top margin */
    .week-focus {
        margin-top: var(--xs) !important;
        margin-bottom: var(--sm) !important;
        padding-top: 0 !important;
    }
    
    .week-focus-header {
        margin-bottom: var(--xs) !important;
    }
    
    .week-focus-title {
        font-size: 0.6rem !important;
    }
    
    .week-focus-cards {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: var(--xs) !important;
    }
    
    .focus-card {
        padding: var(--xs) var(--sm) !important;
    }
    
    .focus-label {
        font-size: 0.5rem !important;
        margin-bottom: 2px !important;
    }
    
    .focus-headline {
        font-size: 0.75rem !important;
        line-height: 1.25 !important;
        margin-bottom: 2px !important;
    }
    
    .focus-excerpt {
        font-size: 0.65rem !important;
        -webkit-line-clamp: 2 !important;
        line-height: 1.3 !important;
    }
    
    /* MAIN GRID - 2 columns, fixed widths to prevent wiggle */
    .editorial-grid {
        display: grid !important;
        grid-template-columns: 220px 1fr !important;
        grid-template-rows: 1fr auto !important;
        grid-template-areas: 
            "index reading"
            "sidebar sidebar" !important;
        gap: var(--sm) !important;
        height: auto !important;
        min-height: calc(100vh - 280px) !important;
        margin-top: var(--xs) !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }
    
    .article-index {
        grid-area: index !important;
        border-right: 1px solid var(--rule) !important;
        padding-right: var(--sm) !important;
        padding-left: 0 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        max-height: calc(100vh - 300px) !important;
        min-width: 0 !important;
        width: 100% !important;
    }
    
    .reading-pane {
        grid-area: reading !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        padding-right: var(--sm) !important;
        max-height: calc(100vh - 300px) !important;
        min-width: 0 !important;
    }
    
    /* Show sidebar below main content */
    .context-sidebar {
        grid-area: sidebar !important;
        display: block !important;
        border-left: none !important;
        border-top: 1px solid var(--rule) !important;
        padding-left: 0 !important;
        padding-top: var(--md) !important;
        margin-top: var(--md) !important;
    }
    
    /* Compact index */
    .index-header {
        padding-bottom: var(--xs) !important;
        margin-bottom: var(--xs) !important;
    }
    
    .index-header-top {
        flex-wrap: wrap !important;
        gap: 2px !important;
    }
    
    .index-title {
        font-size: 0.6rem !important;
    }
    
    .index-date {
        font-size: 0.55rem !important;
    }
    
    .brief-selector {
        margin-bottom: var(--xs) !important;
    }
    
    .brief-tab {
        padding: var(--xs) var(--sm) !important;
        min-height: 36px !important;
    }
    
    .brief-tab-label {
        font-size: 0.65rem !important;
    }
    
    .brief-tab-time {
        font-size: 0.55rem !important;
    }
    
    .index-card {
        padding: var(--xs) var(--sm) !important;
        margin-bottom: var(--xs) !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .index-card.active,
    .article-index .index-card.active {
        margin: 0 0 var(--xs) 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: var(--xs) var(--sm) var(--xs) var(--md) !important;
        box-sizing: border-box !important;
    }
    
    .index-label {
        font-size: 0.45rem !important;
        margin-bottom: 2px !important;
    }
    
    .index-headline {
        font-size: 0.75rem !important;
        line-height: 1.25 !important;
        margin-bottom: 2px !important;
    }
    
    .index-excerpt {
        font-size: 0.65rem !important;
        -webkit-line-clamp: 2 !important;
        line-height: 1.3 !important;
    }
    
    /* Reading pane */
    .article-title {
        font-size: 1.4rem !important;
        line-height: 1.2 !important;
    }
    
    .article-body {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
    }
    
    .article-body p {
        margin-bottom: var(--sm) !important;
    }
    
    .reading-byline {
        font-size: 0.7rem !important;
        margin-bottom: var(--sm) !important;
    }
    
    .mobile-back-btn {
        display: none !important;
    }
}

/* iPad Landscape & Large Tablets (1025px - 1200px) */
@media (min-width: 1025px) and (max-width: 1200px) {
    .container {
        padding: var(--sm) var(--md) !important;
    }
    
    /* Content offset for fixed header - tighter */
    .container.content-offset {
        padding-top: 120px !important;
    }
    
    .header-fixed {
        padding: var(--xs) var(--md) 0 var(--md) !important;
    }
    
    .masthead {
        padding: var(--xs) 0 !important;
        margin-bottom: 0 !important;
    }
    
    .brand-name {
        font-size: 1.5rem !important;
    }
    
    .brand-name.brand-full {
        font-size: 1.3rem !important;
        letter-spacing: 0.12em !important;
    }
    
    /* Compact ticker */
    .market-strip {
        gap: var(--sm) !important;
        padding: var(--xs) 0 !important;
    }
    
    .ticker-label {
        font-size: 0.55rem !important;
    }
    
    .ticker-value {
        font-size: 0.85rem !important;
    }
    
    /* Compact nav */
    .section-nav {
        gap: var(--md) !important;
        padding: var(--xs) 0 !important;
    }
    
    .section-link {
        font-size: 0.8rem !important;
    }
    
    /* Week Focus - 4 columns, compact top, breathing room below */
    .week-focus {
        margin-top: 0 !important;
        margin-bottom: var(--md) !important;
        padding-top: 0 !important;
    }
    
    .week-focus-header {
        margin-bottom: var(--xs) !important;
    }
    
    .week-focus-title {
        font-size: 0.65rem !important;
    }
    
    .week-focus-cards {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: var(--xs) !important;
    }
    
    .focus-card {
        padding: var(--xs) var(--sm) !important;
    }
    
    .focus-label {
        font-size: 0.5rem !important;
    }
    
    .focus-headline {
        font-size: 0.75rem !important;
        line-height: 1.25 !important;
    }
    
    .focus-excerpt {
        font-size: 0.65rem !important;
        -webkit-line-clamp: 2 !important;
    }
    
    /* Main grid - 3 columns, balanced sidebars */
    .editorial-grid {
        display: grid !important;
        grid-template-columns: 240px 1fr 240px !important;
        gap: var(--sm) !important;
        height: calc(100vh - 240px) !important;
        margin-top: 0 !important;
        overflow: hidden !important;
    }
    
    .article-index {
        border-right: 1px solid var(--rule) !important;
        padding-right: var(--sm) !important;
        padding-left: var(--xs) !important;
    }
    
    .context-sidebar {
        display: block !important;
        border-left: 1px solid var(--rule) !important;
        padding-left: var(--sm) !important;
        overflow-y: auto !important;
    }
    
    /* Compact sidebar */
    .number-block {
        margin-bottom: var(--sm) !important;
    }
    
    .number-value {
        font-size: 2.2rem !important;
    }
    
    .number-metric {
        font-size: 0.6rem !important;
    }
    
    .mood-title {
        font-size: 1.1rem !important;
    }
    
    .nine-box-container {
        transform: scale(0.8) !important;
        transform-origin: top center !important;
    }
    
    /* Compact index */
    .index-card {
        padding: var(--xs) var(--sm) !important;
        margin-bottom: var(--xs) !important;
    }
    
    .index-headline {
        font-size: 0.8rem !important;
    }
    
    .index-excerpt {
        font-size: 0.7rem !important;
        -webkit-line-clamp: 2 !important;
    }
    
    .mobile-back-btn {
        display: none !important;
    }
}


/* Small laptops (13" MacBook ~1280-1440px) - tighter layout */
@media (min-width: 1201px) and (max-width: 1440px) {
    .container {
        max-width: 100%;
        padding: var(--lg) var(--xl);
    }
    
    .header-fixed {
        padding: var(--md) var(--xl) 0 var(--xl);
    }
    
    .header-fixed .masthead,
    .header-fixed .section-nav {
        max-width: calc(100% - var(--xl));
        margin: 0 auto;
    }
    
    .editorial-grid {
        grid-template-columns: 280px 1fr 280px;
        gap: var(--lg);
    }
}

/* Phone: Single column with fullscreen reader overlay */
@media (max-width: 719px) {
    /* ============================================
       PHONE LAYOUT - Card-based check-in experience
       ============================================ */
    
    /* Reset body/html for phone */
    html, body {
        overflow-x: hidden;
    }
    
    .container {
        padding: var(--sm) var(--md);
        padding-top: 0;
    }
    
    .container.content-offset {
        padding-top: var(--sm);
    }
    
    /* ========== PHONE HEADER ========== */
    .header-fixed {
        position: sticky;
        top: 0;
        background: var(--paper);
        z-index: 100;
        padding: var(--sm) var(--md) 0 var(--md);
        border-bottom: none;
    }
    
    .masthead {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: var(--sm) 0;
        margin-bottom: 0;
    }
    
    .masthead-left {
        display: block;
        width: auto;
        order: 1;
    }
    
    /* Hide edition picker buttons, show badge instead */
    .edition-picker {
        display: none !important;
    }
    
    .edition-badge {
        display: flex !important;
        flex-direction: column;
        line-height: 1.2;
    }
    
    .edition-badge-text {
        font-size: 0.7rem;
        font-weight: 500;
    }
    
    /* Style for two-line region display */
    .region-name {
        display: block;
        font-weight: 600;
        color: var(--burgundy);
    }
    
    .region-city {
        display: block;
        font-weight: 400;
        color: var(--burgundy);
        opacity: 0.7;
    }
    
    .masthead-center {
        order: 2;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .brand-name {
        font-size: 1.3rem;
    }
    
    .brand-name.brand-full {
        font-size: 1.2rem;
        letter-spacing: 0.1em;
    }
    
    .masthead-right {
        order: 3;
        display: flex;
        align-items: center;
        gap: var(--sm);
    }
    
    .publication-date {
        display: none;
    }
    
    .auth-button {
        width: 36px;
        height: 36px;
    }
    
    /* ========== PHONE TICKER ========== */
    .market-strip {
        display: flex;
        flex-wrap: nowrap;
        align-items: baseline;
        gap: var(--md);
        padding: var(--sm) 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-bottom: 1px solid var(--rule);
    }
    
    .ticker {
        flex-shrink: 0;
        gap: 4px;
    }
    
    .ticker-label {
        display: none; /* Hide labels on phone */
    }
    
    .ticker-value {
        font-size: 0.85rem;
        font-weight: 600;
    }
    
    .ticker-change {
        font-size: 0.75rem;
    }
    
    /* Show abbreviated labels inline */
    .ticker::before {
        font-size: 0.65rem;
        font-weight: 500;
        color: var(--ink-tertiary);
        margin-right: 4px;
    }
    
    .ticker:nth-child(1)::before { content: "BTC"; }
    .ticker:nth-child(2)::before { content: "ETH"; }
    .ticker:nth-child(3)::before { content: "MKT"; }
    
    /* Hide Total Market label, just show value */
    .ticker:nth-child(3) .ticker-change {
        display: none;
    }
    
    /* Market Activity - just show the word */
    .ticker:nth-child(4) {
        margin-left: auto;
    }
    
    .ticker:nth-child(4)::before {
        display: none;
    }
    
    .ticker-meta {
        display: none;
    }
    
    /* ========== PHONE NAVIGATION ========== */
    .section-nav {
        display: none; /* Hide desktop nav on phone */
    }
    
    /* Phone-specific nav */
    .phone-nav {
        display: flex;
        gap: 0;
        padding: 0;
        border-bottom: 1px solid var(--rule);
    }
    
    .phone-nav-link {
        flex: 1;
        text-align: center;
        padding: var(--sm) var(--xs);
        font-family: var(--sans);
        font-size: 0.8rem;
        font-weight: 500;
        color: var(--ink-secondary);
        text-decoration: none;
        white-space: nowrap;
        border-bottom: 2px solid transparent;
        margin-bottom: -1px;
        background: none;
        border-left: none;
        border-right: none;
        border-top: none;
        cursor: pointer;
    }
    
    .phone-nav-link.active {
        border-bottom-color: var(--burgundy);
        color: var(--burgundy);
    }
    
    .phone-nav-link.disabled {
        opacity: 0.4;
        cursor: default;
    }
    
    /* ========== HIDE WEEK FOCUS ON PHONE ========== */
    .week-focus {
        display: none;
    }
    
    /* ========== HIDE BRIEF SELECTOR ON PHONE - Nav handles it ========== */
    .brief-selector {
        display: none;
    }
    
    .index-header {
        display: none;
    }
    
    /* ========== PHONE CONTENT GRID ========== */
    .editorial-grid {
        display: block;
        height: auto;
        margin-top: 0;
    }
    
    /* Remove top padding from container on phone */
    .container.content-offset {
        padding-top: 0 !important;
    }
    
    /* ========== PHONE INDEX (Main Content) ========== */
    .article-index {
        display: block;
        border-right: none;
        padding: 0;
        overflow: visible;
        height: auto;
    }
    
    .index-content {
        padding-top: var(--sm);
    }
    
    /* ========== PHONE CONTENT GRID ========== */
    .editorial-grid {
        display: block;
        height: auto;
        margin-top: 0;
    }
    
    /* ========== PHONE INDEX (Main Content) ========== */
    .article-index {
        display: block;
        border-right: none;
        padding: 0;
        overflow: visible;
        height: auto;
    }
    
    .index-header {
        padding: var(--md) 0 var(--sm) 0;
        margin-bottom: 0;
        border-bottom: none;
    }
    
    .index-header-top {
        display: none; /* Hide "Intelligence" title + date on phone */
    }
    
    .brief-selector {
        display: flex;
        gap: 0;
        background: var(--paper-dark);
        border-radius: 8px;
        padding: 4px;
        margin-bottom: var(--sm);
    }
    
    .brief-tab {
        flex: 1;
        padding: var(--sm);
        border-radius: 6px;
        text-align: center;
        background: transparent;
        border: none;
        min-height: auto;
    }
    
    .brief-tab.active {
        background: var(--paper);
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }
    
    .brief-tab-label {
        font-size: 0.8rem;
        font-weight: 600;
    }
    
    .brief-tab-time {
        font-size: 0.65rem;
        display: block;
        margin-top: 2px;
    }
    
    .brief-tab.unavailable {
        opacity: 0.4;
    }
    
    /* ========== PHONE INDEX CARDS ========== */
    .index-list {
        display: block;
    }
    
    .index-card {
        padding: var(--md);
        margin: 0;
        margin-bottom: 0;
        border-bottom: 1px solid var(--rule);
        border-left: none;
        background: var(--paper);
        position: relative;
    }
    
    /* THE LEAD card - label & headline full width, then image left + excerpt right */
    .index-card:first-child {
        display: grid;
        grid-template-columns: 90px 1fr;
        grid-template-rows: auto auto auto;
        gap: var(--xs) var(--md);
        background: var(--paper-dark);
        padding: var(--md);
    }
    
    .index-card:first-child .card-label {
        grid-column: 1 / -1;
        grid-row: 1;
    }
    
    .index-card:first-child .card-headline {
        grid-column: 1 / -1;
        grid-row: 2;
        margin-bottom: var(--sm);
    }
    
    .index-card:first-child .card-image {
        grid-column: 1;
        grid-row: 3;
        display: block !important;
        align-self: start;
    }
    
    .index-card:first-child .card-excerpt {
        grid-column: 2;
        grid-row: 3;
        align-self: start;
        -webkit-line-clamp: 4 !important;
        display: -webkit-box !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }
    
    .index-card:first-child::after {
        display: none;
    }
    
    .index-card.active {
        background: var(--paper-dark);
        border-left: none;
        margin: 0;
    }
    
    .card-label {
        font-size: 0.6rem;
        margin-bottom: var(--xs);
    }
    
    .card-headline {
        font-size: 1rem;
        line-height: 1.3;
        margin-bottom: var(--xs);
    }
    
    .card-excerpt {
        font-size: 0.8rem;
        line-height: 1.4;
        color: var(--ink-secondary);
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    /* Card image (for THE LEAD on phone) */
    .card-image {
        display: none;
        width: 90px;
        height: 75px;
        border-radius: 6px;
        overflow: hidden;
    }
    
    .card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    /* Arrow indicator for expandable cards (not LEAD) */
    .index-card:not(:first-child)::after {
        content: "›";
        position: absolute;
        right: var(--md);
        top: 50%;
        transform: translateY(-50%);
        color: var(--ink-tertiary);
        font-size: 1.5rem;
        font-weight: 300;
    }
    
    .index-card:not(:first-child) {
        padding-right: calc(var(--md) + 24px);
    }
    
    /* ========== PHONE MARKET MOOD (after THE LEAD) ========== */
    .phone-market-mood {
        display: block;
        padding: var(--md);
        background: var(--paper);
        border-bottom: 1px solid var(--rule);
        cursor: pointer;
    }
    
    .phone-mood-label {
        font-size: 0.6rem;
        font-weight: 600;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--teal);
        margin-bottom: var(--xs);
    }
    
    .phone-mood-title {
        font-family: var(--serif);
        font-size: 1rem;
        font-weight: 600;
        color: var(--ink);
        margin-bottom: var(--xs);
    }
    
    .phone-mood-text {
        font-family: var(--sans);
        font-size: 0.85rem;
        line-height: 1.5;
        color: var(--ink-secondary);
    }
    
    .phone-mood-arrow {
        float: right;
        color: var(--ink-tertiary);
        margin-top: -2em;
        font-size: 1.5rem;
        font-weight: 300;
    }
    
    /* ========== PHONE MARKET MOOD DETAIL VIEW ========== */
    .phone-mood-detail {
        display: none;
        position: fixed;
        top: 140px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--paper);
        z-index: 50;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .phone-mood-detail.active {
        display: block;
    }
    
    .phone-mood-back {
        display: flex;
        align-items: center;
        gap: var(--xs);
        position: sticky;
        top: 0;
        left: 0;
        right: 0;
        z-index: 10;
        background: var(--paper);
        border: none;
        padding: var(--md);
        font-family: var(--sans);
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--burgundy);
        cursor: pointer;
        width: 100%;
        justify-content: flex-start;
    }
    
    .phone-mood-back::before {
        content: "‹";
        font-size: 1.4rem;
        font-weight: 300;
        line-height: 1;
        margin-right: var(--xs);
    }
    
    .phone-mood-back svg {
        display: none;
    }
    
    .phone-mood-content {
        padding: var(--md);
    }
    
    /* Clone the mood widget styles for phone */
    .phone-mood-content .mood-section {
        display: block;
    }
    
    .phone-mood-content .mood-header {
        margin-bottom: var(--md);
    }
    
    .phone-mood-content .mood-label {
        font-size: 0.7rem;
        color: var(--burgundy);
    }
    
    .phone-mood-content .mood-title {
        font-size: 1.75rem;
        margin-bottom: var(--sm);
    }
    
    .phone-mood-content .mood-grid-container {
        margin-bottom: var(--md);
    }
    
    .phone-mood-content .mood-description {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: var(--md);
    }
    
    /* ========== PHONE THE WEEK VIEW ========== */
    .phone-week-view {
        display: none;
        position: fixed;
        top: 140px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--paper);
        z-index: 50;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: var(--md);
    }
    
    .phone-week-view.active {
        display: block;
    }
    
    .phone-week-header {
        margin-bottom: var(--md);
        padding-bottom: var(--sm);
        border-bottom: 2px solid var(--teal);
    }
    
    .phone-week-title {
        font-family: var(--sans);
        font-size: 0.7rem;
        font-weight: 600;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--teal);
    }
    
    .phone-week-cards {
        display: flex;
        flex-direction: column;
        gap: var(--sm);
    }
    
    .phone-week-card {
        background: var(--paper);
        border: 1px solid var(--rule);
        border-left: 3px solid var(--teal);
        border-radius: 4px;
        padding: var(--md);
        padding-right: calc(var(--md) + 24px);
        cursor: pointer;
        position: relative;
    }
    
    .phone-week-card.active {
        background: var(--paper-dark);
    }
    
    .phone-week-label {
        font-family: var(--sans);
        font-size: 0.6rem;
        font-weight: 600;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--teal);
        margin-bottom: var(--xs);
    }
    
    .phone-week-headline {
        font-family: var(--serif);
        font-size: 1rem;
        font-weight: 600;
        line-height: 1.3;
        color: var(--ink);
        margin-bottom: var(--xs);
    }
    
    .phone-week-excerpt {
        font-family: var(--sans);
        font-size: 0.85rem;
        line-height: 1.5;
        color: var(--ink-secondary);
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .phone-week-card::after {
        content: "›";
        position: absolute;
        right: var(--md);
        top: var(--md);
        color: var(--ink-tertiary);
        font-size: 1.5rem;
        font-weight: 300;
        line-height: 1;
    }
    
    /* Phone Week Reading Pane */
    .phone-week-reading {
        display: none;
        position: fixed;
        top: 140px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--paper);
        z-index: 60;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .phone-week-reading.active {
        display: block;
    }
    
    .phone-week-back {
        display: flex;
        align-items: center;
        gap: var(--xs);
        position: sticky;
        top: 0;
        background: var(--paper);
        border: none;
        padding: var(--md);
        font-family: var(--sans);
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--burgundy);
        cursor: pointer;
        width: 100%;
    }
    
    .phone-week-back::before {
        content: "‹";
        font-size: 1.4rem;
        font-weight: 300;
        line-height: 1;
        margin-right: var(--xs);
    }
    
    .phone-week-back svg {
        display: none;
    }
    
    .phone-week-content {
        padding: var(--md);
    }
    
    .phone-week-content .week-label {
        font-size: 0.65rem;
        color: var(--teal);
        margin-bottom: var(--xs);
    }
    
    .phone-week-content .week-headline {
        font-family: var(--serif);
        font-size: 1.5rem;
        font-weight: 600;
        line-height: 1.25;
        margin-bottom: var(--md);
    }
    
    .phone-week-content .week-body {
        font-family: var(--sans);
        font-size: 1rem;
        line-height: 1.7;
        color: var(--ink);
    }
    
    /* ========== PHONE TAKEAWAY ========== */
    .takeaway-quote {
        margin: var(--md) calc(var(--md) * -1);
        padding: var(--lg) var(--md);
        background: var(--burgundy);
        border-left: none;
    }
    
    .takeaway-label {
        color: rgba(255,255,255,0.7);
    }
    
    .takeaway-text {
        font-size: 1.1rem;
        color: var(--white);
    }
    
    /* ========== PHONE YOUR COINS ========== */
    .relative-performance {
        margin: var(--md) calc(var(--md) * -1);
        padding: var(--md);
        background: var(--paper-dark);
        border-top: 1px solid var(--rule);
    }
    
    .relative-header {
        margin-bottom: var(--sm);
    }
    
    .relative-label {
        font-size: 0.65rem;
    }
    
    .relative-row {
        padding: var(--sm) 0;
    }
    
    .rel-name {
        font-size: 0.8rem;
    }
    
    .rel-change {
        font-size: 0.8rem;
    }
    
    /* ========== HIDE SIDEBAR ON PHONE ========== */
    .context-sidebar {
        display: none;
    }
    
    /* ========== PHONE READING PANE (Below Header) ========== */
    .reading-pane {
        display: none;
        position: fixed;
        top: 140px; /* Below header + ticker + nav */
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--paper);
        z-index: 50;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0;
    }
    
    .reading-pane.active {
        display: block;
    }
    
    .mobile-back-btn {
        display: flex !important;
        align-items: center;
        gap: var(--xs);
        position: sticky;
        top: 0;
        left: 0;
        right: 0;
        z-index: 10;
        background: var(--paper);
        border: none;
        padding: var(--md);
        font-family: var(--sans);
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--burgundy);
        cursor: pointer;
        width: 100%;
        justify-content: flex-start;
    }
    
    .mobile-back-btn::before {
        content: "‹";
        font-size: 1.4rem;
        font-weight: 300;
        line-height: 1;
        margin-right: var(--xs);
    }
    
    .mobile-back-btn svg {
        display: none;
    }
    
    .mobile-back-btn:hover {
        background: var(--paper-dark);
    }
    
    /* Reading pane content */
    .article-content {
        padding: 0 var(--md) var(--xl) var(--md);
    }
    
    .article-image {
        margin: 0 calc(var(--md) * -1);
        margin-bottom: var(--md);
        margin-top: 0; /* Don't overlap back button */
    }
    
    .article-label {
        font-size: 0.65rem;
    }
    
    .article-headline {
        font-size: 1.5rem;
        line-height: 1.25;
    }
    
    .article-body {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .article-body p {
        margin-bottom: var(--md);
    }
    
    /* Hide article ending extras on phone */
    .article-ending {
        display: none;
    }
    
    /* Prevent body scroll when reader is open */
    body.reader-open {
        overflow: hidden;
    }
}

/* Small phones */
@media (max-width: 400px) {
    .brand-name {
        font-size: 1.1rem;
    }
    
    .brand-name.brand-full {
        font-size: 1rem;
        letter-spacing: 0.08em;
    }
    
    .ticker {
        gap: 2px;
    }
    
    .ticker-label {
        font-size: 0.55rem;
    }
    
    .ticker-value {
        font-size: 0.75rem;
    }
    
    .section-link {
        font-size: 0.7rem;
        padding: var(--sm) var(--xs);
    }
    
    .card-headline {
        font-size: 1rem;
    }
    
    .article-headline {
        font-size: 1.3rem;
    }
}

/* ========== UTILITIES ========== */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

.hidden {
    display: none;
}

/* ========== SETTINGS MODAL ========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--paper);
    border-radius: 16px;
    width: 90%;
    max-width: 480px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.2s;
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--lg);
    border-bottom: 1px solid var(--rule);
}

.modal-title {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--ink);
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--ink-tertiary);
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.15s;
}

.modal-close:hover {
    background: var(--paper-dark);
    color: var(--ink);
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: var(--lg);
}

.modal-footer {
    padding: var(--md) var(--lg);
    border-top: 1px solid var(--rule);
    display: flex;
    justify-content: flex-end;
}

/* Settings Section */
.settings-section {
    margin-bottom: var(--xl);
}

.settings-label {
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--burgundy);
    margin-bottom: var(--sm);
}

.settings-help {
    font-size: 0.85rem;
    color: var(--ink-secondary);
    margin-bottom: var(--xs);
}

.settings-selected {
    font-size: 0.85rem;
    color: var(--ink-secondary);
    margin-bottom: var(--md);
}

/* Settings Divider */
.settings-divider {
    border: none;
    border-top: 1px solid var(--rule);
    margin: var(--lg) 0;
}

/* Region Options */
.region-options {
    display: flex;
    gap: var(--sm);
}

.region-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--xs);
    padding: var(--md);
    border: 1px solid var(--rule);
    border-radius: 8px;
    background: var(--paper);
    cursor: pointer;
    transition: all 0.2s ease;
}

.region-btn:hover {
    border-color: var(--teal);
    background: rgba(26, 95, 90, 0.05);
}

.region-btn.active {
    border-color: var(--teal);
    background: rgba(26, 95, 90, 0.1);
}

.region-btn .region-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.region-btn .region-name {
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--ink);
    text-align: center;
}

.region-btn.active .region-name {
    color: var(--teal);
    font-weight: 600;
}

/* Modal footer buttons */
.btn-secondary {
    padding: var(--sm) var(--md);
    background: transparent;
    border: 1px solid var(--rule);
    border-radius: 6px;
    font-family: var(--sans);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ink-secondary);
    cursor: pointer;
    margin-right: var(--sm);
    transition: all 0.15s;
}

.btn-secondary:hover {
    border-color: var(--ink-tertiary);
    color: var(--ink);
}

@media (max-width: 480px) {
    .region-options {
        flex-direction: column;
    }
    
    .region-btn {
        flex-direction: row;
        justify-content: flex-start;
        padding: var(--sm) var(--md);
    }
    
    .region-btn .region-icon {
        width: 24px;
        height: 24px;
    }
}

/* Coin Search */
.coin-search {
    display: flex;
    align-items: center;
    gap: var(--sm);
    padding: var(--sm) var(--md);
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: 8px;
    margin-bottom: var(--md);
}

.coin-search svg {
    color: var(--ink-tertiary);
    flex-shrink: 0;
}

.coin-search input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 0.9rem;
    color: var(--ink);
    outline: none;
}

.coin-search input::placeholder {
    color: var(--ink-tertiary);
}

/* Coin List */
.coin-list {
    max-height: 320px;
    overflow-y: auto;
}

.coin-item {
    display: flex;
    align-items: center;
    padding: var(--sm) 0;
    border-bottom: 1px solid var(--rule);
    cursor: pointer;
    transition: background 0.1s;
}

.coin-item:hover {
    background: var(--paper-dark);
    margin: 0 calc(var(--sm) * -1);
    padding-left: var(--sm);
    padding-right: var(--sm);
}

.coin-item.locked {
    opacity: 0.5;
    cursor: default;
}

.coin-item.locked:hover {
    background: transparent;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
}

.coin-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-right: var(--sm);
    object-fit: cover;
}

.coin-info {
    flex: 1;
}

.coin-name {
    font-weight: 600;
    color: var(--ink);
    font-size: 0.95rem;
}

.coin-symbol {
    font-size: 0.75rem;
    color: var(--ink-tertiary);
    text-transform: uppercase;
}

.coin-check {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.coin-check.selected {
    background: var(--teal);
    color: white;
}

.coin-check.unselected {
    border: 2px dashed var(--ink-tertiary);
}

.coin-check.locked {
    background: var(--teal);
    color: white;
}

/* Button */
.btn-primary {
    font-family: var(--sans);
    font-size: 0.85rem;
    font-weight: 600;
    padding: var(--sm) var(--lg);
    background: var(--burgundy);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-primary:hover {
    background: #6d0f30;
}

/* ========== YOUR COINS SECTION ========== */
/* ===== Relative Performance Section ===== */
.relative-performance {
    margin-top: var(--lg);
    padding-top: var(--lg);
    border-top: 1px solid var(--rule);
}

.relative-header {
    margin-bottom: var(--md);
}

.relative-label {
    display: block;
    font-family: var(--sans);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--burgundy);
    margin-bottom: var(--xs);
}

.relative-chart {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.relative-row {
    display: grid;
    grid-template-columns: 50px 48px 1fr 52px;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
}

.relative-row.market-row {
    border-bottom: 1px solid var(--rule);
    padding-bottom: 10px;
    margin-bottom: 4px;
}

.rel-name {
    font-family: var(--sans);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ink);
}

.market-row .rel-name {
    color: var(--ink-secondary);
}

.rel-change {
    font-family: var(--sans);
    font-size: 0.8rem;
    font-weight: 500;
    text-align: right;
    color: var(--ink-secondary);
}

.rel-bar-container {
    position: relative;
    height: 16px;
    background: var(--surface);
    border-radius: 2px;
}

.rel-baseline {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--ink-tertiary);
}

.rel-bar {
    position: absolute;
    top: 3px;
    height: 10px;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.rel-bar.outperform {
    left: 50%;
    background: var(--teal);
}

.rel-bar.underperform {
    right: 50%;
    background: #c9a87c; /* Muted gold/tan - neutral underperform */
}

.rel-vs {
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 500;
    text-align: right;
}

.rel-vs.positive {
    color: var(--teal);
}

.rel-vs.negative {
    color: var(--ink-tertiary);
}

.rel-vs.baseline {
    color: var(--ink-tertiary);
    font-style: italic;
}

.no-coins {
    font-size: 0.8rem;
    color: var(--ink-tertiary);
    padding: var(--sm) 0;
}

.no-coins a {
    color: var(--teal);
    text-decoration: none;
}

.no-coins a:hover {
    text-decoration: underline;
}

.coin-error {
    font-size: 0.8rem;
    color: var(--burgundy);
    padding: var(--sm) 0;
}

/* ============================================
   THIS WEEK'S FOCUS - Top Context Cards (Teal)
   ============================================ */

.week-focus {
    margin-top: var(--sm); /* Small margin, offset handled by container */
    margin-bottom: var(--lg); /* More breathing room before editorial grid */
    padding: var(--xs) 0;
}

.week-focus-header {
    margin-bottom: var(--xs);
}

.week-focus-title {
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--teal);
}

.week-focus-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sm);
}

.focus-card {
    background: var(--white);
    border: 1px solid var(--rule);
    border-left: 3px solid var(--teal);
    padding: var(--sm) var(--md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.focus-card:hover {
    border-left-color: var(--teal);
    background: var(--paper-dark);
    transform: translateY(-1px);
}

.focus-card.active {
    background: var(--teal);
    border-color: var(--teal);
}

.focus-card.active .focus-label,
.focus-card.active .focus-headline {
    color: var(--white);
}

.focus-card.active .focus-excerpt {
    color: rgba(255, 255, 255, 0.8);
}

.focus-label {
    font-family: var(--sans);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--teal);
    display: block;
    margin-bottom: var(--xs);
}

.focus-headline {
    font-family: var(--serif);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.3;
    margin-bottom: var(--xs);
}

.focus-excerpt {
    font-family: var(--sans);
    font-size: 0.85rem;
    color: var(--ink-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Tablet: 2x2 grid */
@media (max-width: 1024px) {
    .week-focus-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small mobile: single column */
@media (max-width: 480px) {
    .week-focus-cards {
        grid-template-columns: 1fr;
    }
    
    .focus-card {
        padding: var(--sm);
    }
}

/* ============================================
   ARTICLE ENDING - Editorial Signature
   ============================================ */

.article-ending {
    margin-top: var(--2xl);
    padding-top: var(--lg);
}

.ending-divider {
    width: 60px;
    height: 3px;
    background: var(--burgundy);
    margin-bottom: var(--xl);
}

/* Pull Quote */
.ending-quote {
    position: relative;
    margin-bottom: var(--xl);
    padding-left: var(--xl);
}

.quote-mark {
    position: absolute;
    left: 0;
    top: -10px;
    font-family: var(--serif);
    font-size: 4rem;
    font-weight: 700;
    color: var(--burgundy);
    opacity: 0.3;
    line-height: 1;
}

.quote-text {
    font-family: var(--serif);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--ink);
    line-height: 1.5;
    margin: 0;
}

/* Analyst Byline */
.analyst-byline {
    display: flex;
    align-items: center;
    gap: var(--md);
    margin-bottom: var(--xl);
    padding: var(--md);
    background: var(--paper-dark);
    border-radius: 4px;
}

.analyst-avatar {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
}

.analyst-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.analyst-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.analyst-name {
    font-family: var(--sans);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink);
}

.analyst-role {
    font-family: var(--sans);
    font-size: 0.75rem;
    color: var(--ink-tertiary);
    margin-top: 2px;
}

.analyst-brand {
    margin-left: auto;
}

.brand-mark {
    font-family: var(--serif-display);
    font-size: 1.5rem;
    color: var(--ink);
}

.brand-mark strong {
    font-weight: 700;
}

.brand-mark .brand-dot {
    color: var(--gold);
}

/* Related Reading */
.related-reading {
    border-top: 1px solid var(--rule);
    padding-top: var(--lg);
}

.related-label {
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink-tertiary);
    display: block;
    margin-bottom: var(--md);
}

.related-links {
    display: flex;
    flex-direction: column;
    gap: var(--sm);
}

.related-link {
    font-family: var(--serif);
    font-size: 0.95rem;
    color: var(--ink);
    text-decoration: none;
    padding: var(--sm) 0;
    border-bottom: 1px solid var(--rule);
    transition: color 0.2s ease;
}

.related-link:hover {
    color: var(--burgundy);
}

.related-link:last-child {
    border-bottom: none;
}

/* =====================
   TODAY BANNER - Calendar Event
   ===================== */

/* Lead deck - italic serif for distinction */
.lead-deck {
    font-family: var(--serif) !important;
    font-style: italic !important;
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--ink-secondary);
}

.today-banner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--lg);
    margin-bottom: var(--lg);
}

.today-banner .banner-inner {
    background: var(--white);
    border: 1px solid var(--rule);
    border-left: 3px solid var(--burgundy);
    padding: 16px 20px;
}

.today-banner.happened .banner-inner {
    border-left-color: var(--teal);
    background: var(--paper);
}

.today-banner .banner-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.today-banner .banner-time {
    display: flex;
    align-items: center;
    gap: 8px;
}

.today-banner .banner-icon {
    font-size: 14px;
}

.today-banner .banner-status {
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--burgundy);
}

.today-banner.happened .banner-status {
    color: var(--teal);
}

.today-banner .banner-countdown {
    font-family: var(--sans);
    font-size: 12px;
    color: var(--ink-tertiary);
}

.today-banner .banner-title {
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 4px;
}

.today-banner .banner-context {
    font-family: var(--sans);
    font-size: 14px;
    color: var(--ink-secondary);
    margin: 0;
}

.today-banner .banner-context a {
    color: var(--teal);
    text-decoration: none;
}

.today-banner .banner-context a:hover {
    text-decoration: underline;
}

/* Importance indicator */
.today-banner .banner-importance {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--burgundy);
    background: rgba(138, 18, 60, 0.1);
    padding: 3px 8px;
    border-radius: 3px;
    margin-left: 12px;
}

.today-banner .banner-importance.medium {
    color: var(--gold);
    background: rgba(138, 128, 18, 0.1);
}

/* Mobile responsive */
@media (max-width: 600px) {
    .today-banner {
        padding: 0 var(--md);
    }
    
    .today-banner .banner-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .today-banner .banner-countdown {
        margin-left: 22px;
    }
    
    .today-banner .banner-title {
        font-size: 18px;
    }
}

/* =====================
   FLOATING BACK TO TOP - FT Style
   ===================== */
.back-to-top-float {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    background: var(--burgundy);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top-float:hover {
    background: var(--ink);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.back-to-top-float:hover svg {
    stroke: var(--white);
}

.back-to-top-float.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top-float svg {
    width: 20px;
    height: 20px;
    stroke: var(--white);
    stroke-width: 2.5;
    transition: stroke 0.2s ease;
}

/* Mobile positioning */
@media (max-width: 600px) {
    .back-to-top-float {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
    
    .back-to-top-float svg {
        width: 18px;
        height: 18px;
    }
}
