:root {
            --ink-black: #1a1a1a;
            --newsprint-cream: #f9f7f3;
            --vintage-red: #c41e3a;
            --gold-accent: #d4af37;
            --gray-text: #4a4a4a;
            --border-gray: #d4d0c8;
            --shadow: rgba(0, 0, 0, 0.1);
        }

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

        body {
            font-family: 'Source Serif 4', Georgia, serif;
            background: var(--newsprint-cream);
            color: var(--ink-black);
            line-height: 1.6;
            overflow-x: hidden;
        }

        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-image: 
                repeating-linear-gradient(
                    0deg,
                    transparent,
                    transparent 2px,
                    rgba(0,0,0,0.01) 2px,
                    rgba(0,0,0,0.01) 4px
                );
            pointer-events: none;
            z-index: 9999;
        }

        .masthead {
            background: var(--ink-black);
            border-bottom: 4px solid var(--vintage-red);
            padding: 2rem 2rem 1.5rem;
            position: relative;
            overflow: hidden;
        }

        .masthead::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: repeating-linear-gradient(
                90deg,
                var(--gold-accent) 0px,
                var(--gold-accent) 10px,
                transparent 10px,
                transparent 20px
            );
        }

        .masthead-content {
            max-width: 1400px;
            margin: 0 auto;
        }

        .newspaper-title {
            font-family: 'Playfair Display', serif;
            font-size: 5rem;
            font-weight: 900;
            color: var(--newsprint-cream);
            text-align: center;
            letter-spacing: -2px;
            margin-bottom: 0.5rem;
            text-transform: uppercase;
            font-style: italic;
            text-shadow: 2px 2px 0 var(--vintage-red);
        }

        .newspaper-subtitle {
            font-family: 'Courier Prime', monospace;
            font-size: 0.85rem;
            color: var(--gold-accent);
            text-align: center;
            letter-spacing: 3px;
            text-transform: uppercase;
            margin-bottom: 1.5rem;
        }

        .archive-years {
            font-family: 'Courier Prime', monospace;
            font-size: 0.75rem;
            color: var(--newsprint-cream);
            text-align: center;
            opacity: 0.8;
            letter-spacing: 2px;
        }

        .nav-tabs {
            background: var(--newsprint-cream);
            border-bottom: 2px solid var(--ink-black);
            display: flex;
            justify-content: center;
            gap: 0;
            position: sticky;
            top: 0;
            z-index: 100;
            box-shadow: 0 2px 8px var(--shadow);
            flex-wrap: wrap;
        }

        .nav-tab {
            font-family: 'Courier Prime', monospace;
            font-size: 0.85rem;
            font-weight: 700;
            padding: 1.2rem 2rem;
            background: transparent;
            border: none;
            border-bottom: 3px solid transparent;
            cursor: pointer;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            color: var(--gray-text);
            transition: all 0.3s ease;
            position: relative;
        }

        .nav-tab:hover {
            background: rgba(196, 30, 58, 0.05);
            color: var(--vintage-red);
        }

        .nav-tab.active {
            color: var(--ink-black);
            border-bottom-color: var(--vintage-red);
            background: rgba(212, 175, 55, 0.05);
        }

        .nav-tab.active::before {
            content: '▸';
            position: absolute;
            left: 0.75rem;
            color: var(--vintage-red);
        }

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

        .page-section {
            display: none;
            animation: fadeIn 0.5s ease;
        }

        .page-section.active {
            display: block;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .section-header {
            font-family: 'Playfair Display', serif;
            font-size: 2.5rem;
            font-weight: 900;
            color: var(--ink-black);
            margin-bottom: 0.5rem;
            border-bottom: 3px solid var(--vintage-red);
            padding-bottom: 0.5rem;
            display: inline-block;
        }

        .section-description {
            font-size: 1.1rem;
            color: var(--gray-text);
            margin-bottom: 2rem;
            font-style: italic;
        }

        .data-info {
            background: rgba(212, 175, 55, 0.1);
            border-left: 4px solid var(--gold-accent);
            padding: 1rem;
            margin-bottom: 2rem;
            font-family: 'Courier Prime', monospace;
            font-size: 0.85rem;
        }

        .issues-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 2rem;
            margin-top: 2rem;
        }

        .issue-card {
            background: white;
            border: 2px solid var(--border-gray);
            padding: 1.5rem;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            box-shadow: 4px 4px 0 var(--shadow);
        }

        .issue-card::before {
            content: '';
            position: absolute;
            top: -2px;
            left: -2px;
            right: -2px;
            height: 6px;
            background: var(--vintage-red);
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .issue-card:hover {
            transform: translateY(-4px);
            box-shadow: 6px 6px 0 var(--shadow);
            border-color: var(--vintage-red);
        }

        .issue-card:hover::before {
            opacity: 1;
        }

        .issue-volume {
            font-family: 'Courier Prime', monospace;
            font-size: 0.75rem;
            color: var(--vintage-red);
            font-weight: 700;
            letter-spacing: 1px;
            margin-bottom: 0.5rem;
        }

        .issue-title {
            font-family: 'Playfair Display', serif;
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--ink-black);
            margin-bottom: 0.5rem;
        }

        .issue-description {
            font-size: 0.9rem;
            color: var(--gray-text);
            margin-bottom: 1rem;
            line-height: 1.5;
        }

        .issue-featured {
            font-size: 0.85rem;
            color: var(--ink-black);
            margin-top: 1rem;
            padding-top: 1rem;
            border-top: 1px solid var(--border-gray);
        }

        .issue-featured strong {
            font-family: 'Courier Prime', monospace;
            font-size: 0.75rem;
            letter-spacing: 1px;
            color: var(--vintage-red);
            text-transform: uppercase;
        }

        .issue-featured ul {
            margin-top: 0.5rem;
            list-style: none;
            padding-left: 0;
        }

        .issue-featured li::before {
            content: '▸ ';
            color: var(--vintage-red);
        }

        .search-box {
            background: white;
            border: 3px solid var(--ink-black);
            padding: 2rem;
            margin-bottom: 2rem;
            box-shadow: 6px 6px 0 var(--shadow);
        }

        .search-input-group {
            margin-bottom: 1.5rem;
        }

        .search-label {
            font-family: 'Courier Prime', monospace;
            font-size: 0.85rem;
            font-weight: 700;
            color: var(--ink-black);
            display: block;
            margin-bottom: 0.5rem;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .search-input {
            width: 100%;
            padding: 0.75rem;
            font-family: 'Source Serif 4', serif;
            font-size: 1rem;
            border: 2px solid var(--border-gray);
            background: var(--newsprint-cream);
            transition: all 0.3s ease;
        }

        .search-input:focus {
            outline: none;
            border-color: var(--vintage-red);
            background: white;
        }

        .filters-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1rem;
            margin-bottom: 1.5rem;
        }

        .search-button {
            font-family: 'Courier Prime', monospace;
            font-size: 0.95rem;
            font-weight: 700;
            padding: 1rem 2.5rem;
            background: var(--vintage-red);
            color: white;
            border: none;
            cursor: pointer;
            text-transform: uppercase;
            letter-spacing: 2px;
            transition: all 0.3s ease;
            box-shadow: 4px 4px 0 var(--ink-black);
        }

        .search-button:hover {
            background: var(--ink-black);
            transform: translate(-2px, -2px);
            box-shadow: 6px 6px 0 var(--vintage-red);
        }

        .search-button:active {
            transform: translate(0, 0);
            box-shadow: 2px 2px 0 var(--ink-black);
        }

        .results-header {
            font-family: 'Courier Prime', monospace;
            font-size: 0.9rem;
            color: var(--gray-text);
            margin-bottom: 1.5rem;
            padding-bottom: 0.5rem;
            border-bottom: 1px solid var(--border-gray);
        }

        .results-count {
            color: var(--vintage-red);
            font-weight: 700;
        }

        .article-card {
            background: white;
            border-left: 4px solid var(--vintage-red);
            padding: 1.5rem;
            margin-bottom: 1.5rem;
            box-shadow: 2px 2px 8px var(--shadow);
            transition: all 0.3s ease;
        }

        .article-card:hover {
            box-shadow: 4px 4px 12px var(--shadow);
            transform: translateX(4px);
        }

        .article-meta {
            font-family: 'Courier Prime', monospace;
            font-size: 0.75rem;
            color: var(--vintage-red);
            margin-bottom: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 8px;
        }

        .pdf-link-inline {
            font-family: 'Courier Prime', monospace;
            font-size: 0.75rem;
            color: var(--vintage-red);
            text-decoration: none;
            font-weight: 700;
            white-space: nowrap;
            transition: all 0.2s ease;
        }

        .pdf-link-inline:hover {
            color: var(--ink-black);
            text-decoration: underline;
        }

        .article-title {
            font-family: 'Playfair Display', serif;
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--ink-black);
            margin-bottom: 0.5rem;
            line-height: 1.3;
        }

        .article-summary {
            color: var(--gray-text);
            margin-bottom: 1rem;
            line-height: 1.6;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            max-height: 3.2em; /* 2 lines × 1.6 line-height */
        }

        .article-keywords {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-top: 1rem;
        }

        .keyword-tag {
            font-family: 'Courier Prime', monospace;
            font-size: 0.7rem;
            padding: 0.25rem 0.75rem;
            background: var(--newsprint-cream);
            border: 1px solid var(--border-gray);
            color: var(--gray-text);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .keyword-tag:hover {
            background: var(--vintage-red);
            color: white;
            border-color: var(--vintage-red);
            transform: translateY(-2px);
        }

        .name-tag {
            font-family: 'Courier Prime', monospace;
            font-size: 0.7rem;
            padding: 0.25rem 0.75rem;
            background: rgba(212, 175, 55, 0.15);
            border: 1px solid var(--gold-accent);
            color: var(--gray-text);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .name-tag:hover {
            background: var(--gold-accent);
            color: white;
            border-color: var(--gold-accent);
            transform: translateY(-2px);
        }

        .pdf-link {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            font-family: 'Courier Prime', monospace;
            font-size: 0.75rem;
            color: var(--vintage-red);
            text-decoration: none;
            padding: 0.5rem 1rem;
            border: 1px solid var(--vintage-red);
            background: white;
            transition: all 0.2s ease;
            margin-top: 1rem;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .pdf-link:hover {
            background: var(--vintage-red);
            color: white;
            transform: translateX(4px);
        }

        .pdf-link::before {
            content: '📄';
            font-size: 1rem;
        }

        /* Alphabetical Index Styles */
        .alphabet-nav {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-bottom: 2rem;
            padding: 1rem;
            background: white;
            border: 2px solid var(--border-gray);
            justify-content: center;
        }

        .alphabet-letter {
            font-family: 'Courier Prime', monospace;
            font-size: 0.9rem;
            font-weight: 700;
            padding: 0.5rem 0.75rem;
            cursor: pointer;
            border: 1px solid var(--border-gray);
            background: var(--newsprint-cream);
            transition: all 0.2s ease;
            min-width: 2.5rem;
            text-align: center;
        }

        .alphabet-letter:hover {
            background: var(--vintage-red);
            color: white;
            border-color: var(--vintage-red);
        }

        .alphabet-letter.disabled {
            opacity: 0.3;
            cursor: not-allowed;
        }

        .alphabet-letter.disabled:hover {
            background: var(--newsprint-cream);
            color: var(--gray-text);
            border-color: var(--border-gray);
        }

        .index-section {
            margin-bottom: 3rem;
        }

        .index-letter-header {
            font-family: 'Playfair Display', serif;
            font-size: 3rem;
            font-weight: 900;
            color: var(--vintage-red);
            margin-bottom: 1rem;
            border-bottom: 2px solid var(--vintage-red);
            display: inline-block;
            padding-right: 1rem;
        }

        .index-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 1rem;
            margin-top: 1rem;
        }

        .index-item {
            background: white;
            padding: 1rem;
            border: 1px solid var(--border-gray);
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .index-item:hover {
            border-color: var(--vintage-red);
            transform: translateX(4px);
            box-shadow: 2px 2px 4px var(--shadow);
        }

        .index-item-name {
            font-family: 'Source Serif 4', serif;
            font-size: 1rem;
            color: var(--ink-black);
        }

        .index-item-count {
            font-family: 'Courier Prime', monospace;
            font-size: 0.75rem;
            color: var(--vintage-red);
            background: rgba(196, 30, 58, 0.1);
            padding: 0.25rem 0.5rem;
            border-radius: 3px;
        }

        .no-results {
            text-align: center;
            padding: 4rem 2rem;
            color: var(--gray-text);
            font-style: italic;
        }

        .no-results::before {
            content: '📰';
            display: block;
            font-size: 4rem;
            margin-bottom: 1rem;
            opacity: 0.3;
        }

        .footer {
            background: var(--ink-black);
            color: var(--newsprint-cream);
            padding: 2rem;
            margin-top: 4rem;
            text-align: center;
            font-family: 'Courier Prime', monospace;
            font-size: 0.85rem;
            border-top: 4px solid var(--vintage-red);
        }

        .footer-ornament {
            color: var(--gold-accent);
            margin: 1rem 0;
        }

        @media (max-width: 768px) {
            .newspaper-title {
                font-size: 3rem;
            }

            .nav-tab {
                padding: 1rem 1rem;
                font-size: 0.75rem;
            }

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

            .section-header {
                font-size: 2rem;
            }

            .index-grid {
                grid-template-columns: 1fr;
            }
        }
/* --- Article actions row --- */
.article-toprow{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.article-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.action-btn{
  border:1px solid var(--red, #c72026);
  background:transparent;
  color:var(--red, #c72026);
  padding:8px 12px;
  border-radius:6px;
  font-weight:600;
  cursor:pointer;
  text-decoration:none;
  line-height:1;
}
.action-btn:hover{ opacity:0.85; }
.fulltext-btn{
  background:var(--red, #c72026);
  color:#fff;
}

/* --- Full text modal --- */
.fulltext-modal{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.55);
  z-index:9999;
  padding:3vh 3vw;
}
.fulltext-modal.open{ display:block; }
.fulltext-modal .modal-content{
  background:#fff;
  max-width:1000px;
  margin:0 auto;
  border-radius:12px;
  padding:18px 20px;
  max-height:94vh;
  overflow:auto;
}
.fulltext-modal .modal-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
}
.fulltext-modal .modal-close{
  font-size:26px;
  border:none;
  background:transparent;
  cursor:pointer;
  line-height:1;
}
.fulltext-modal pre{
  white-space:pre-wrap;
  font-family:'Courier Prime', monospace;
  font-size:0.95rem;
  line-height:1.55;
}
