/* MARKET PULSE UK - Data-Driven Financial News */

:root {
    --primary: #0066cc;
    --primary-dark: #0052a3;
    --primary-light: #3385d6;
    --secondary: #00a86b;
    --accent: #ff6b35;
    
    --text: #1a1a1a;
    --text-medium: #4d4d4d;
    --text-light: #737373;
    --text-muted: #999999;
    
    --bg: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --card-bg: #ffffff;
    
    --border: #dee2e6;
    --border-light: #e9ecef;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.08);
    
    --gradient-primary: linear-gradient(135deg, #0066cc 0%, #0099ff 100%);
    --gradient-success: linear-gradient(135deg, #00a86b 0%, #00d17d 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg-secondary);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Top Bar with Market Ticker */
.top-bar {
    background: var(--primary);
    color: white;
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.market-ticker {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ticker-item {
    font-weight: 600;
}

.ticker-separator {
    opacity: 0.5;
}

/* Main Header */
.main-header {
    background: white;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 1.25rem 0 0;
}

.brand h1 {
    font-size: 1.875rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.02em;
}

.brand h1 a {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: opacity 0.2s;
}

.brand h1 a:hover {
    opacity: 0.8;
}

.tagline {
    font-size: 0.8125rem;
    color: var(--text-light);
    margin-top: 0.25rem;
    font-weight: 500;
}

.nav {
    display: flex;
    gap: 2rem;
    border-bottom: 2px solid var(--border-light);
}

.nav-link {
    padding: 0.75rem 0;
    color: var(--text-medium);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.2s;
    position: relative;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.nav-link.active {
    color: var(--primary);
    font-weight: 700;
}

.nav-link.active::after {
    transform: scaleX(1);
}

/* Main Content */
main {
    padding: 2rem 0 4rem;
    min-height: calc(100vh - 250px);
}

/* Market Dashboard - Split Layout Design */
.market-dashboard {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    margin: 3rem 0;
}

/* Main Featured Article */
.dashboard-main {
    background: white;
    border: 2px solid var(--border);
    border-radius: 0;
}

.main-label {
    padding: 0.75rem 1.5rem;
    background: var(--text);
    color: white;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    border-bottom: 2px solid var(--primary);
}

.main-article {
    padding: 2.5rem;
}

.main-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 0.8125rem;
}

.meta-category {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    background: rgba(0, 102, 204, 0.1);
    border-radius: 3px;
}

.meta-dot {
    color: var(--border);
}

.meta-date {
    color: var(--text-light);
    font-weight: 600;
}

.main-headline {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: var(--text);
    letter-spacing: -0.03em;
}

.main-headline a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.main-headline a:hover {
    color: var(--primary);
}

.main-excerpt {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-medium);
    margin-bottom: 2rem;
}

.main-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-left: 4px solid var(--primary);
}

.stat-box {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.stat-label {
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--text-light);
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text);
    font-family: 'Courier New', monospace;
}

.main-read-btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9375rem;
    border-radius: 0;
    transition: all 0.2s;
    border: 2px solid var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.main-read-btn:hover {
    background: white;
    color: var(--primary);
}

/* Sidebar: Quick Reads */
.dashboard-sidebar {
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: var(--text);
    color: white;
    border: 2px solid var(--text);
}

.sidebar-title {
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    margin: 0;
}

.sidebar-count {
    font-size: 0.875rem;
    font-weight: 700;
    background: var(--primary);
    padding: 0.25rem 0.625rem;
    border-radius: 3px;
}

.sidebar-articles {
    background: white;
    border: 2px solid var(--border);
    border-top: none;
    flex: 1;
}

.sidebar-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.2s;
}

.sidebar-item:last-child {
    border-bottom: none;
}

.sidebar-item:hover {
    background: var(--bg-secondary);
}

.sidebar-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    font-weight: 800;
    font-size: 0.875rem;
    border-radius: 0;
}

.sidebar-content {
    flex: 1;
    min-width: 0;
}

.sidebar-headline {
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.sidebar-headline a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
}

.sidebar-headline a:hover {
    color: var(--primary);
}

.sidebar-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 600;
}

/* More Analysis - List Style */
.more-analysis {
    margin-top: 3rem;
}

.more-title {
    font-size: 0.875rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--text);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--text);
}

.analysis-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.list-item {
    display: grid;
    grid-template-columns: 40px 1fr 200px;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
    align-items: start;
    transition: background 0.2s;
}

.list-item:hover {
    background: var(--bg-secondary);
    margin: 0 -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.list-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    color: var(--text);
    font-weight: 800;
    font-size: 1rem;
    border: 2px solid var(--border);
}

.list-content {
    min-width: 0;
}

.list-headline {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.list-headline a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
}

.list-headline a:hover {
    color: var(--primary);
}

.list-excerpt {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-medium);
}

.list-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: right;
    font-size: 0.8125rem;
}

.list-date {
    color: var(--text-light);
    font-weight: 600;
}

.list-read {
    color: var(--text-muted);
    font-weight: 500;
}

/* Featured Analysis Hero - Premium Design */
.hero-featured {
    background: linear-gradient(135deg, #001a33 0%, #003d7a 100%);
    border-radius: 16px;
    padding: 0;
    margin: 3rem 0;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 102, 204, 0.3), 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
}

.hero-featured::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 168, 107, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-featured::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
}

.hero-eyebrow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.eyebrow-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.eyebrow-badge {
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #FFD700;
    background: rgba(255, 215, 0, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.eyebrow-live {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.05em;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 0 0 rgba(0, 168, 107, 0.7);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 168, 107, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 168, 107, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 168, 107, 0);
    }
}

.eyebrow-stats {
    display: flex;
    gap: 0.75rem;
}

.stat-pill {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-icon {
    font-size: 0.875rem;
}

.hero-main {
    padding: 3rem 2.5rem 3.5rem;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-title a {
    color: white;
    text-decoration: none;
    transition: opacity 0.2s;
}

.hero-title a:hover {
    opacity: 0.9;
}

.hero-lede {
    font-size: 1.375rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    max-width: 90%;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--secondary) 0%, #00d17d 100%);
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.0625rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 168, 107, 0.4);
}

.hero-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 168, 107, 0.5);
}

.cta-arrow {
    font-size: 1.25rem;
    transition: transform 0.3s;
}

.hero-cta-primary:hover .cta-arrow {
    transform: translateX(4px);
}

.hero-meta-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.75);
}

.meta-label {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
}

.meta-value {
    font-weight: 500;
}

.meta-divider {
    opacity: 0.4;
}

/* Legacy Hero Styles (keep for backward compatibility) */
.hero-analysis {
    background: linear-gradient(135deg, var(--primary) 0%, #0080e6 100%);
    color: white;
    padding: 3rem 2.5rem;
    border-radius: 12px;
    margin-bottom: 3rem;
    margin-top: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.25);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--secondary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
    opacity: 0.95;
}

.hero-category {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-date,
.hero-time {
    font-weight: 500;
}

.hero-headline {
    font-size: 2.75rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    letter-spacing: -0.03em;
}

.hero-headline a {
    color: white;
    text-decoration: none;
    transition: opacity 0.2s;
}

.hero-headline a:hover {
    opacity: 0.9;
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.6;
    opacity: 0.95;
    max-width: 90%;
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 2px solid var(--border);
}

.section-title-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text);
    margin: 0;
}

.section-subtitle {
    font-size: 0.9375rem;
    color: var(--text-light);
    font-weight: 500;
    margin: 0;
}

.section-meta {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 600;
}

.article-count {
    padding: 0.5rem 1rem;
    background: var(--bg-tertiary);
    border-radius: 20px;
    border: 1px solid var(--border);
}

/* Market Grid */
.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 1.5rem;
}

.analysis-card {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.analysis-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.card-category {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.625rem;
    background: var(--bg-tertiary);
    color: var(--primary);
    border-radius: 4px;
}

.card-date {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-weight: 500;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.875rem;
    letter-spacing: -0.01em;
}

.card-title a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
}

.card-title a:hover {
    color: var(--primary);
}

.card-excerpt {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-medium);
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.card-meta {
    display: flex;
    gap: 1rem;
}

.meta-item {
    font-size: 0.8125rem;
    color: var(--text-light);
    font-weight: 600;
}

.card-link {
    font-size: 0.875rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
}

.card-link:hover {
    color: var(--primary-dark);
    transform: translateX(4px);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    background: var(--card-bg);
    border-radius: 12px;
    border: 2px dashed var(--border);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.empty-hint {
    font-size: 1rem;
    color: var(--text-medium);
    margin-bottom: 2rem;
}

.api-info {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid var(--border);
}

.api-info strong {
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-medium);
    font-weight: 700;
}

.api-info code {
    display: block;
    padding: 1rem;
    background: white;
    border-radius: 6px;
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    overflow-x: auto;
    border: 1px solid var(--border);
    font-family: 'Courier New', monospace;
}

/* Full Story Page */
.story-full {
    margin-top: 50px;
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.breadcrumb {
    font-size: 0.875rem;
    margin-bottom: 2rem;
    color: var(--text-light);
    font-weight: 500;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .separator {
    margin: 0 0.5rem;
    color: var(--text-muted);
}

.story-category {
    margin-bottom: 1.5rem;
}

.category-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: var(--bg-tertiary);
    color: var(--text);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
}

.story-headline {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: var(--text);
    letter-spacing: -0.025em;
}

.story-meta {
    display: flex;
    gap: 2rem;
    padding: 1.25rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    border-left: 4px solid var(--primary);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: var(--text-medium);
    font-weight: 600;
}

.meta-icon {
    font-size: 1.125rem;
}

.story-content {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text);
    max-width: 720px;
}

.story-content p {
    margin-bottom: 1.75rem;
}

.story-content p:first-of-type {
    font-size: 1.1875rem;
    line-height: 1.7;
    color: var(--text-medium);
    font-weight: 500;
}

/* Inline links - styled as underline with hover */
.story-content .inline-link,
.featured-content .inline-link {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
    font-weight: 600;
    transition: all 0.2s;
}

.story-content .inline-link:hover,
.featured-content .inline-link:hover {
    color: var(--primary-dark);
    text-decoration-thickness: 3px;
}

.story-content .inline-link::after,
.featured-content .inline-link::after {
    content: ' ↗';
    font-size: 0.875em;
    opacity: 0.6;
}

.story-actions {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-light);
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: 6px;
    transition: all 0.3s;
}

.back-button:hover {
    background: var(--primary-dark);
    gap: 0.75rem;
}

/* About Page - Terminal Style */
.about-terminal {
    max-width: 1100px;
    margin: 3rem auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.terminal-block {
    background: white;
    border: 2px solid var(--border);
}

.terminal-header {
    padding: 0.75rem 1.5rem;
    background: var(--text);
    color: white;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.terminal-content {
    padding: 2rem;
}

.terminal-lead {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.terminal-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-medium);
}

.terminal-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* Coverage List */
.coverage-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.coverage-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border-light);
}

.coverage-row:last-child {
    border-bottom: none;
}

.coverage-num {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    font-weight: 800;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.coverage-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.coverage-text strong {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

.coverage-text span {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Audience Grid */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.audience-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
}

.stat-num {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--text);
    color: white;
    font-weight: 800;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-family: 'Courier New', monospace;
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 700;
    text-align: center;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Principles Grid */
.principles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.principle-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.principle-label {
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--primary);
    padding: 0.5rem 0.75rem;
    background: rgba(0, 102, 204, 0.1);
    text-align: center;
}

.principle-item p {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-medium);
    margin: 0;
    text-align: center;
}

/* Locations */
.locations-flex {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.location-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    text-align: center;
}

.location-name {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.location-desc {
    font-size: 0.8125rem;
    color: var(--text-light);
}

/* Terminal CTA */
.terminal-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2.5rem;
    background: white;
    border: 2px solid var(--text);
}

.terminal-btn {
    display: inline-block;
    padding: 1rem 3rem;
    background: var(--text);
    color: white;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    transition: all 0.2s;
    border: 2px solid var(--text);
}

.terminal-btn:hover {
    background: white;
    color: var(--text);
}

.terminal-disclaimer {
    font-size: 0.8125rem;
    color: var(--text-light);
    font-style: italic;
    margin: 0;
}

/* Legacy About Page */
.about-page {
    max-width: 900px;
    margin: 0 auto;
    margin-top: 50px;
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.about-hero {
    text-align: center;
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 3px solid var(--primary);
}

.about-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
}

.about-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.about-lead {
    font-size: 1.375rem;
    color: var(--text-medium);
    font-weight: 500;
}

.about-content {
    margin-bottom: 4rem;
}

.about-section {
    margin-bottom: 3.5rem;
}

.about-section h2 {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-light);
}

.about-section p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 1.25rem;
}

.coverage-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.coverage-item {
    padding: 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    border-left: 4px solid var(--secondary);
}

.coverage-item h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.coverage-item p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-medium);
    margin: 0;
}

.audience-list {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.audience-list li {
    font-size: 1.0625rem;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--border-light);
}

.audience-list li strong {
    color: var(--primary);
}

.values-section {
    background: var(--bg-secondary);
    padding: 2.5rem;
    margin: 3rem -3rem;
    border-radius: 8px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.value-item h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.value-item p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-medium);
    margin: 0;
}

.about-cta {
    text-align: center;
    padding: 2.5rem;
    background: var(--gradient-primary);
    border-radius: 12px;
    color: white;
}

.about-cta h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
}

.about-cta p {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    opacity: 0.95;
}

.cta-disclaimer {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-bottom: 2rem !important;
}

.cta-button {
    display: inline-block;
    padding: 0.875rem 2.5rem;
    background: white;
    color: var(--primary);
    text-decoration: none;
    font-weight: 800;
    font-size: 1rem;
    border-radius: 8px;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Footer */
footer {
    background: var(--text);
    color: white;
    padding: 3rem 0 0;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2.5fr;
    gap: 4rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-brand h3 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.footer-tagline {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.footer-location {
    font-size: 0.9375rem;
    opacity: 0.75;
}

.footer-sections {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-col h4 {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col li {
    font-size: 0.9375rem;
    margin-bottom: 0.625rem;
    opacity: 0.75;
}

.footer-col a {
    color: white;
    text-decoration: none;
    transition: opacity 0.2s;
}

.footer-col a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-bottom {
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    opacity: 0.65;
    margin-bottom: 0.375rem;
}

.disclaimer {
    font-size: 0.8125rem !important;
    opacity: 0.5 !important;
    font-style: italic;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-logo {
    width: 75px;
    height: 75px;
}

/* Responsive */
@media (max-width: 1200px) {
    .market-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

@media (max-width: 1024px) {
    .coverage-grid,
    .values-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-sections {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .market-dashboard {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .dashboard-sidebar {
        order: 2;
    }

    .main-article {
        padding: 1.5rem;
    }

    .main-headline {
        font-size: 1.875rem;
    }

    .main-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .list-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .list-number {
        display: none;
    }

    .list-meta {
        text-align: left;
        flex-direction: row;
        gap: 1rem;
    }

    .hero-featured {
        margin: 2rem 0;
    }

    .hero-eyebrow {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.25rem 1.5rem;
    }

    .eyebrow-stats {
        width: 100%;
        justify-content: flex-start;
    }

    .hero-main {
        padding: 2rem 1.5rem;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-lede {
        font-size: 1.125rem;
        max-width: 100%;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .hero-meta-info {
        flex-wrap: wrap;
    }

    .hero-analysis {
        padding: 2rem 1.5rem;
    }

    .hero-headline {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1.0625rem;
        max-width: 100%;
    }

    .market-grid {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .story-full {
        padding: 2rem 1.5rem;
    }

    .story-headline {
        font-size: 2.25rem;
    }

    .about-terminal {
        margin: 2rem 0;
    }

    .terminal-split {
        grid-template-columns: 1fr;
    }

    .terminal-content {
        padding: 1.5rem;
    }

    .audience-grid {
        grid-template-columns: 1fr;
    }

    .principles-grid {
        grid-template-columns: 1fr;
    }

    .locations-flex {
        grid-template-columns: 1fr;
    }

    .about-page {
        padding: 2rem 1.5rem;
    }

    .about-title {
        font-size: 2.25rem;
    }

    .values-section {
        margin: 2rem -1.5rem;
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 15px;
    }

    .hero-headline {
        font-size: 1.75rem;
    }

    .story-headline {
        font-size: 1.875rem;
    }

    .about-title {
        font-size: 2rem;
    }
}
