/* Special Elite Font */
.special-elite-regular {
  font-family: "Special Elite", serif;
  font-weight: 400;
  font-style: normal;
}

/* Base styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: #ffffff;
    color: #333333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header styles */
header {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.header-top {
    margin-bottom: 20px;
}

.header-top .current-date {
    float: right;
    background-color: #e0e0e0; /* Match the color of daily dividers */
    padding: 5px 10px; /* Added padding for better visual appearance */
}

.site-title {
    font-size: 26px;
    font-weight: 700;
    margin: 0;
    color: #000;
    text-decoration: none;
}

.info-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.tagline {
    font-size: 14px;
    color: #666;
    font-family: 'Roboto Mono', monospace;
    font-style: italic;
}

.current-date {
    font-size: 13px;
    color: #444;
    font-weight: 500;
    letter-spacing: 0.5px;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.date-label, .date-value {
    display: inline-block;
    text-align: center;
}

.date-value {
    margin-left: 5px;
}

@media (max-width: 768px) {
    .current-date {
        flex-direction: column;
        align-items: center;
        line-height: 1.3;
    }

    .date-value {
        margin-left: 0;
    }
}

/* Navigation styles */
.main-nav {
    background: #e0e0e0;
    padding: 10px 0;
    width: 100%;
}

.main-nav ul {
    list-style: none;
    padding: 0 20px;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-nav a {
    color: #444;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.main-nav a:hover {
    color: #000;
}

/* Story styles */
.story {
    padding: 15px 0;
    margin: 0;
    border-bottom: 1px solid #eee;
}

.story:last-child {
    border-bottom: none;
}

/* Hide headline separators for days with 0 or 1 headlines */
.date-separator + .story:only-of-type {
    border-bottom: none;
}

/* Also hide headline separators for empty days */
.story:empty {
    display: none;
    border-bottom: none;
}

/* Hide headline separator for the last story in a group */
.date-separator + .story:last-of-type {
    border-bottom: none;
}

/* Hide today's date-separator completely when there are no stories */
.today-date-separator {
    display: none !important;
}

.story h3 {
    margin: 0;
    font-size: 16px;
    line-height: 20px;
    font-weight: bold;
    font-family: "Optima", "Optima Bold", sans-serif;
}

.story h3 .source-info,
#stories .story h3 .source-info,
div.story h3 .source-info {
    font-weight: normal !important;
    font-size: 14px !important;
    display: inline !important;
    font-family: "Optima", sans-serif !important;
    color: #666 !important;
}

.story p {
    font-family: "Optima", sans-serif;
    font-size: 14px;
    color: #666;
    margin: 4px 0;
}

.story h3 a {
    color: #0044bb;
    text-decoration: none;
}

.story h3 a:hover {
    text-decoration: underline;
}

/* No special styling for sponsored posts as requested */

.show-more {
    display: block;
    text-align: center;
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #0044bb;
    color: #ffffff;
    font-family: "Helvetica Neue", helvetica, arial, sans-serif;
    cursor: pointer;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    width: fit-content;
}

.show-more:hover {
    background-color: #0033aa;
}

.story a:hover {
    color: #444;
}

/* Footer styles */
footer {
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid #eee;
}

.privacy-policy {
    color: #666;
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.copyright {
    color: #888;
    text-align: center;
    font-size: 12px;
    margin: 10px 0;
}

.admin-link {
    display: block;
    text-align: center;
    color: #aaa;
    text-decoration: none;
    font-size: 11px;
    margin-top: 10px;
}

.admin-link:hover {
    color: #666;
}

.contact-links {
    text-align: center;
    margin-bottom: 20px;
}

.contact-links a {
    color: #444;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin: 0 15px;
}

.contact-links a:hover {
    color: #000;
}

.sources-table {
    table-layout: fixed;
    width: 100%;
    border-collapse: collapse;
}

.sources-table td, .sources-table th {
    padding: 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.name-col { width: 20%; }
.url-col { width: 25%; }
.score-col { width: 10%; }
.keywords-col { width: 30%; }
.actions-col { width: 15%; }

.url-cell {
    font-size: 0.9em;
}

/* Mobile responsive design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .site-title {
        font-size: 22px;
    }

    .current-date {
        font-size: 13px;
    }

    .main-nav ul {
        padding: 0 15px;
    }

    .story h3 {
        font-size: 14px;
    }
}

/* Shared components */
.site-title {
    font-size: 26px;
    margin: 0;
    padding: 0;
    line-height: 1.2;
}

.date-separator {
    margin: 0.75rem 0 0.25rem 0; /* 50% reduction of original 1.5rem margin */
    background: #e0e0e0; /* Single shade of grey as requested */
    padding: 5px 0; /* 50% reduction of original 10px padding */
    text-align: center;
    width: 100%;
    /* Removed border-bottom that was creating darker single-pixel line */
}

.date-header {
    color: #444;
    font-weight: 500;
    letter-spacing: 0.5px;
    font-size: 13px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    display: inline-block;
}

/* Remove the bottom border for stories that are directly before date separators */
.story + .date-separator {
    margin-top: -1px; /* Compensate for the story's border */
}