body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    background: #f7fafc;
}

.container {
    background: white;
    padding: 2rem;
}

@media (max-width: 768px) {
    body {
        padding: 0.5rem;
        font-size: 14px;
    }
    
    .container {
        padding: 1rem;
    }

    .header {
        padding: 0.5rem;
    }

    .header h1 {
        font-size: 1.2rem;
    }

    .paper {
        padding: 0.3rem;
        margin-bottom: 0.5rem;
    }

    .paper-title {
        font-size: 0.8rem;
        margin-bottom: 0.3rem;
    }

    .paper-meta {
        font-size: 0.75rem;
        margin-bottom: 0.3rem;
    }

    .abstract-preview, 
    .abstract-content,
    .reasoning-content {
        font-size: 0.75rem;
        background: none;
        border: none;
        box-shadow: none;
    }

    .analysis-section h4 {
        font-size: 0.75rem;
        display: block !important;
    }

    .date-header {
        margin: 1.5rem -0.3rem 0.5rem -0.3rem;
        padding: 0.2rem 0.3rem;
        font-size: 0.75rem;
    }
}

.header {
    background-color: #4299e1;
    padding: 0.5rem;
    margin: -2rem -2rem 2rem -2rem;
}

.header h1 {
    color: white;
    font-size: 1.8rem;
    margin: 0;
    padding: 0.5rem;
}

.header h1 a {
    color: inherit;
    text-decoration: none;
}

.header h1 a:hover {
    color: inherit;
    text-decoration: none;
}

.nav {
    margin-top: 0.5rem;
    padding-left: 0.5rem;
}

.nav a {
    color: #ebf8ff;
    margin-right: 1rem;
}

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

/* Paper specific styles */
.paper {
    margin-bottom: 1rem;
    padding: 0.5rem;
}

.paper-odd {
    background-color: #f8fafc;
}

.paper-title {
    font-weight: 500;
    color: #2d3748;
    display: block;
    margin-bottom: 0.5rem;
}

.paper-meta {
    color: #718096;
    margin-bottom: 0.5rem;
}

.paper-category {
    color: #4a5568;
}

/* Abstract styles */
.abstract-preview {
    color: #4a5568;
}

.abstract-toggle {
    background: none;
    border: none;
    color: #4299e1;
    padding: 0;
    cursor: pointer;
    margin-top: 0.5rem;
}

.abstract-toggle:hover {
    text-decoration: underline;
}

.hidden {
    display: none;
}

.abstract-content {
    margin: 0.5rem 0;
    background: none;
    border: none;
    box-shadow: none;
}

.reasoning-content {
    font-size: inherit;
    background-color: #f3faff;
    padding: 0 0 0 0.5em;
}

.impact-hint {
    color: #e2e8f0;
    font-weight: normal;
    font-size: 0.8em;
    margin-left: 0.5em;
}

/* About page specific styles */
.content {
    max-width: 800px;
    margin: 0 auto;
}

.acknowledgments {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
    font-size: 0.9rem;
    color: #4a5568;
}


.date-header {
    background-color: #4299e1;
    color: white;
    margin: 2rem -0.5rem 1rem -0.5rem;
    padding: 0.3rem 0.5rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Keep analysis section distinct */
.analysis-section {
    margin-top: 1rem;
}

.analysis-section h4 {
    display: block !important;
    color: #4a5568;
    margin: 0.5rem 0 0.3rem 0;
    font-weight: 500;
}

/* Make all other text the same size */
.paper-title{  /* Added abstract-toggle */
    font-size: 1.15rem;
}

.paper-meta,
.paper-category,
.abstract-preview,
.abstract-content,
.reasoning-content,
.analysis-section h4,
.date-header,
.abstract-toggle {  /* Added abstract-toggle */
    font-size: 0.95rem;
}

/* ... other styles ... */

@media (max-width: 768px) {
    .header h1 {
        font-size: 1.2rem;
        padding: 0.3rem;
    }

    /* Make all mobile text the same size */
    .paper-title {  /* Added abstract-toggle */
        font-size: 0.95rem;
    }
    .paper-meta,
    .paper-category,
    .abstract-preview,
    .abstract-content,
    .reasoning-content,
    .analysis-section h4,
    .date-header,
    .abstract-toggle {  /* Added abstract-toggle */
        font-size: 0.75rem;
    }
}

.controls {
    margin: 1em 0;
    text-align: center;
}

.controls select {
    padding: 0.5em;
    border-radius: 4px;
    border: 1px solid #ccc;
    background-color: white;
    font-size: 1em;
}

.controls label {
    margin-right: 0.5em;
}

.date-header.previous-week {
    background-color: #4299e1;
    opacity: 0.7;
}


.paper.previous-week.paper-odd {
    background-color: #f0f0f0;
}

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

.header-left {
    flex: 1;
}

.header-right {
    margin-left: 20px;
}

.header-right iframe {
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
    }
    
    .header-right {
        margin-left: 0;
        margin-top: 20px;
        width: 100%;
        display: flex;
        justify-content: center;
    }
}
