/* --- Global Styles & Reset --- */
:root {
    --color-primary: #105cb6;
    --color-background: #f8f8f8;
    --color-text-main: #111;
    --color-pastel-green: #5cb85c; 
    --color-header-red: #b00; /* The specific "Top News" Red */
    --font-primary: "Candara", "Segoe UI", Arial, sans-serif;
    --font-headers: "Calibri", "Segoe UI", Helvetica, sans-serif;
    --font-logo: "Kermit", "Impact", "Arial Black", sans-serif;
    --yahoo-purple: #430297;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-background);
    color: var(--color-text-main);
    margin: 0;
    padding: 0;
    line-height: 1.3;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Header --- */
.header {
    background-color: #f8f8f8;
    border-bottom: 1px solid #ccc;
    padding: 15px 0;
    margin-bottom: 15px;
}

.header-content {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0 20px;
}

/* Logo Option 2 Logic */
.logo, .logo-opt2 {
    font-family: var(--font-logo);
    font-weight: 800; 
    font-size: 22px;
    color: var(--yahoo-purple);
    text-transform: none; 
    letter-spacing: -0.5px;
    line-height: 1;
    display: inline-block;
    background-color: transparent;
    padding: 4px 10px;
    border: 3px solid var(--yahoo-purple);
    border-radius: 0px; 
}

.nav a {
    font-family: var(--font-headers);
    font-weight: 700;
    font-size: 14px;
    color: #666;
    margin-left: 20px;
}
.nav .highlight-link { color: #444; }

.date-display {
    font-family: var(--font-primary);
    font-weight: 300;
    font-size: 12px;
    color: #666;
}

/* --- Layout --- */
.container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
    padding: 0 20px;
}

.main-column { flex: 2.5; }
.middle-column { flex: 1.2; max-width: 300px; }
.right-column { flex: 1.2; max-width: 300px; }

/* --- Category Jump Bar --- */
#category-jump-bar {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}
.jump-link {
    font-family: var(--font-headers);
    font-weight: 700;
    font-size: 12px;
    color: #105cb6;
    margin-right: 15px;
    cursor: pointer;
}

/* --- Section Headers --- */
.section-header {
    font-family: var(--font-headers);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-header-red); 
    border-bottom: 2px solid var(--color-header-red); 
    padding-bottom: 4px;
    margin-bottom: 15px;
    margin-top: 30px;
    text-transform: uppercase;
}
#top-news-section .section-header { margin-top: 0; } 

/* --- News Items --- */
.news-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}
.news-item:last-child { border-bottom: none; }

/* Headline Link (Inline) */
.headline-link {
    display: inline; 
    font-family: var(--font-primary); 
    font-weight: 700; 
    font-size: 16px;
    color: #000;
    line-height: 1.3;
}
.headline-link:visited { color: #333; }

/* Meta (Inline) */
.meta {
    display: inline; 
    font-family: var(--font-primary);
    font-weight: 300; 
    font-size: 12px; 
    color: #666;
    margin-left: 6px; 
}
.meta strong { font-weight: 600; }

/* --- Cluster Styling --- */
.cluster-content p {
    display: inline;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 700;
}

.cluster-list {
    list-style-type: none;
    padding-left: 0;
    margin-top: 14px;
}

.cluster-list li {
    margin-bottom: 6px;
    font-family: var(--font-primary);
    font-size: 12px;
    font-weight: 300;
    color: #333;
    padding-left: 0; 
}

.cluster-list li strong, 
.cluster-list li a {
    color: var(--color-pastel-green) !important;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}
.cluster-list li a:hover { text-decoration: underline; }

/* --- Sidebar Basics --- */
.sidebar-header {
    font-family: var(--font-headers);
    font-weight: 700;
    font-size: 16px; /* Matches new design */
    color: #444;
    margin-bottom: 15px;
    border-bottom: none;
}

/* --- SPONSORS (Column 2) --- */
.sidebar-block-sponsor {
    /* A very subtle grey to distinguish the column, but flat */
    background: #f9f9f9; 
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    border: 1px solid #eee;
}

.sidebar-header {
    font-family: var(--font-headers);
    font-weight: 700;
    font-size: 16px;
    color: #444;
    margin-bottom: 10px;
    border-bottom: 2px solid #ddd; /* Stronger header separation */
    padding-bottom: 5px;
}

.sponsor-item {
    /* Transparent background to blend in */
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 15px 0; /* Vertical breathing room */
    margin-bottom: 0;
    box-shadow: none;
    /* Simple line separator between ads */
    border-bottom: 1px solid #e0e0e0;
}

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

.sponsor-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    height: 35px; /* Fixed height for logo alignment */
}

.sponsor-company {
    font-family: var(--font-headers);
    font-weight: 700;
    color: #666;
    font-size: 11px;
    text-transform: uppercase;
    padding-top: 4px;
}

.sponsor-logo {
    height: 35px; /* Slightly smaller to fit the tighter spacing */
    width: auto;
    max-width: 100px;
    object-fit: contain;
}

.sponsor-headline {
    display: block;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 15px;
    color: #105cb6;
    text-decoration: none;
    line-height: 1.3;
    margin-bottom: 4px;
}
.sponsor-headline:hover { text-decoration: underline; }

.sponsor-summary {
    font-family: var(--font-primary);
    font-size: 13px;
    color: #222;
    line-height: 1.4;
    display: block;
}

/* --- FEATURED PODCASTS (Techmeme Style) --- */
.sidebar-block-podcast {
    background: #f0f6fc; /* Very light blue background */
    border: 1px solid #d0d7de;
    padding: 15px;
    margin-top: 20px;
}

.podcast-item {
    background: #fff;
    border: 1px solid #e1e4e8;
    border-radius: 6px; /* Card look */
    padding: 12px;
    margin-bottom: 15px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.podcast-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.podcast-text {
    flex: 1;
}

/* Show Name (Top Line) */
.podcast-show {
    font-family: var(--font-primary);
    font-size: 11px;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 2px;
}

/* Episode Headline */
.podcast-title {
    font-family: var(--font-primary);
    font-size: 16px; /* Larger */
    font-weight: 700;
    color: #b00; /* Techmeme Dark Red style */
    line-height: 1.2;
    display: block;
    margin-bottom: 6px;
    text-decoration: none;
}
.podcast-title:hover { text-decoration: underline; }

/* Description */
.podcast-desc {
    font-family: var(--font-primary);
    font-size: 13px;
    color: #111;
    line-height: 1.4;
}

/* Cover Image (Techmeme Size) */
.podcast-img {
    width: 100px; /* Increased size */
    height: 100px;
    border-radius: 2px;
    object-fit: cover;
    border: 1px solid #eee;
    flex-shrink: 0; /* Prevents squishing */
    
    /* Fallback styling */
    background-color: #ddd;
    color: #666;
    font-size: 10px;
    text-align: center;
    line-height: 100px;
    overflow: hidden;
}

/* "Fake" Player Bar */
.podcast-player-bar {
    display: flex;
    align-items: center;
    background-color: #444; /* Dark player background */
    color: white;
    height: 32px;
    padding: 0 10px;
    border-radius: 3px;
    text-decoration: none;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
    transition: background-color 0.2s;
}

.podcast-player-bar:hover {
    background-color: #222;
}

.play-icon {
    margin-right: 8px;
    font-size: 10px;
}

.subscribe-link {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    color: #105cb6;
    font-weight: 700;
    text-decoration: none;
}

/* --- TWEETS (Column 3) --- */
.sidebar-block-newest {
    background: var(--color-background); 
    border-left: 4px solid var(--color-primary);
    padding-left: 15px;
}
.tweet-item {
    margin-bottom: 10px;
    border-bottom: 1px solid #ccc; 
    padding-bottom: 10px;
}
.tweet-content {
    font-family: var(--font-primary);
    font-size: 13px;
    color: #333 !important; 
    text-decoration: none;
}
a.tweet-content:hover { text-decoration: underline; }
.tweet-meta { font-size: 10px; color: #999; }
.tweet-image-container {
    margin-top: 8px;
    margin-bottom: 5px;
}
.tweet-image-container img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    border: 1px solid #eee;
    display: block;
}

/* --- Archives --- */
.archive-group { margin-bottom: 15px; border: 1px solid #ddd; background: #fff; }
.archive-header {
    background: #eee;
    padding: 10px 15px;
    cursor: pointer;
    font-family: var(--font-headers);
    font-weight: 700;
    display: flex;
    justify-content: space-between;
}
.archive-content { display: none; padding: 15px; }
.archive-content.open { display: block; }

/* --- Footer --- */
.footer {
    text-align: center;
    padding: 30px;
    border-top: 1px solid #ccc;
    margin-top: 40px;
    font-family: var(--font-headers);
    font-size: 12px;
    color: #888;
}

/* Mobile Responsive */
@media (max-width: 800px) {
    .container { flex-direction: column; }
    .main-column, .middle-column, .right-column { width: 100%; max-width: 100%; }
}