/* Newspaper Interior Page Styles */

.newspaper-interior-wrapper {
    background-color: #f8f8f0;
    padding: 30px 0;
    min-height: 100vh;
}

.newspaper-interior {
    background-color: #fffef7;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
    font-family: 'Georgia', 'Times New Roman', serif;
}

/* Page header */
.page-header {
    border-top: 3px solid #000;
    border-bottom: 3px solid #000;
    padding: 15px 0;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-title {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 2rem;
    font-weight: 900;
    margin: 0;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.page-number {
    font-size: 0.9rem;
    font-weight: 700;
    color: #666;
}

/* Breadcrumb styled as newspaper kicker */
.newspaper-kicker {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #999;
    margin-bottom: 5px;
    font-weight: 600;
    font-family: 'Arial', sans-serif;
}

.newspaper-kicker a {
    color: #666;
    text-decoration: none;
    border-bottom: 1px dotted #666;
}

.newspaper-kicker a:hover {
    color: #000;
    border-bottom-color: #000;
}

/* Section dividers */
.section-divider {
    border: 0;
    border-top: 2px solid #000;
    margin: 30px 0;
}

.section-header {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 1.8rem;
    font-weight: 900;
    text-transform: uppercase;
    border-bottom: 3px solid #000;
    padding-bottom: 10px;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

/* Original story callout box */
.origin-story {
    border: 3px double #000;
    padding: 20px;
    background-color: #f9f9f4;
    margin-bottom: 30px;
}

.origin-label {
    font-family: 'Arial', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #666;
    margin-bottom: 10px;
}

.origin-headline {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 10px;
    color: #000;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: none;
}

.origin-byline {
    font-size: 0.9rem;
    font-style: italic;
    color: #666;
}

.story-content {
    margin-top: 20px;
}

.interior-article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #222;
    text-align: justify;
    columns: 2;
    column-gap: 40px;
    column-rule: 1px solid #ddd;
    text-indent: 2em;
    margin-bottom: 20px;
}

.interior-article-body p {
    break-inside: avoid;
    margin-bottom: 1em;
}

.interior-article-body p:first-child::first-letter {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 4rem;
    font-weight: 900;
    float: left;
    line-height: 1;
    margin: 0.1em 0.1em 0 0;
    color: #000;
}

/* Related articles */
.related-article {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #ddd;
}

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

.article-headline {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 1.6rem;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 8px;
    color: #000;
    text-decoration: none;
    display: block;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: none;
}

.article-headline:hover {
    color: #333;
}

.article-meta {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 12px;
    font-style: italic;
}

.similarity-badge {
    display: inline-block;
    background-color: #000;
    color: #fff;
    padding: 2px 8px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Arial', sans-serif;
    font-style: normal;
}

.article-preview {
    font-size: 1rem;
    line-height: 1.7;
    color: #222;
    text-align: justify;
    margin-bottom: 10px;
    columns: 2;
    column-gap: 30px;
}

.article-preview p {
    break-inside: avoid;
}

.read-more {
    font-size: 0.9rem;
    font-weight: 600;
    color: #000;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Arial', sans-serif;
}

.read-more:hover {
    color: #666;
}

/* Search query display */
.search-query-box {
    border: 3px double #000;
    padding: 20px;
    background-color: #f9f9f4;
    margin-bottom: 30px;
    text-align: center;
}

.search-label {
    font-family: 'Arial', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #666;
    margin-bottom: 10px;
}

.search-term {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 10px;
    color: #000;
    word-break: break-word;
}

.result-count {
    font-size: 0.9rem;
    font-style: italic;
    color: #666;
}

/* Search results */
.search-result {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #ddd;
}

.search-result:last-child {
    border-bottom: none;
}

/* No results message */
.no-results-box {
    border: 2px solid #ccc;
    padding: 30px;
    text-align: center;
    background-color: #f9f9f9;
    font-style: italic;
    color: #666;
}

.no-results-heading {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 15px;
    color: #000;
}

/* Navigation controls */
.page-controls {
    border-top: 3px double #000;
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
}

.page-controls-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #666;
    margin-bottom: 15px;
}

.time-filter-btn,
.back-btn {
    font-family: 'Arial', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 20px;
    border: 2px solid #000;
    background-color: #fff;
    color: #000;
    text-decoration: none;
    display: inline-block;
    margin: 0 5px;
    transition: all 0.2s;
}

.time-filter-btn:hover,
.back-btn:hover {
    background-color: #000;
    color: #fff;
}

/* Newspaper-compatible preformatted text styles for interior pages */
.newspaper-preformatted {
    font-family: 'Courier New', 'Lucida Console', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    border-left: 4px solid #000;
    padding: 15px;
    margin: 15px 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    column-span: all;
    break-inside: avoid;
    max-width: 100%;
    box-sizing: border-box;
}

/* Ensure preformatted content spans all columns in interior layout */
.interior-article-body .newspaper-preformatted,
.article-preview .newspaper-preformatted {
    column-span: all;
    break-inside: avoid;
    margin: 20px 0;
    background-color: #f5f5f0;
    border-left: 4px solid #333;
}

/* Handle code blocks within preformatted content */
.newspaper-preformatted code {
    background: none;
    padding: 0;
    border: none;
    font-size: inherit;
    color: inherit;
}