/* ──────────────────────────────────────────────────────────────────────
   Newspaper Clipping Viewer — shared component CSS  (Atelier #8, 12 June 2026)
   Used by 20 newspaper clippings sub-pages (Australia 1900s through 2010s
   plus pre-1900, Wales 1950s through 2010s). Previously inlined as a
   67-line <style> block on each file, duplicating ~1,320 lines across
   the build. Now linked from a single stylesheet so the rules can be
   audited centrally and the build payload shrinks. Class prefix: ncv-*.
   ────────────────────────────────────────────────────────────────────── */

/* Newspaper Clipping Viewer (ncv-*) */
.ncv-hero { max-width: 72rem; margin: 0 auto; padding: 2rem 1rem 0; }
.ncv-breadcrumb { font-size: .75rem; font-family: var(--font-mono, monospace); color: var(--text-muted, #888); margin-bottom: 1.5rem; }
.ncv-breadcrumb a { color: var(--text-accent, #c9a84c); text-decoration: none; }
.ncv-breadcrumb a:hover { color: var(--text-accent-hover, #e0c675); }
.ncv-title { font-family: var(--font-display, sans-serif); font-size: 2rem; font-weight: 700; margin-bottom: .5rem; }
.ncv-sub { color: var(--text-muted, #888); font-size: 1.125rem; font-family: var(--font-serif, serif); margin-bottom: .5rem; }
.ncv-stats { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .75rem; font-family: var(--font-mono, monospace); color: var(--text-muted, #888); margin-bottom: 1.5rem; }
.ncv-desc { color: var(--text-secondary, #aaa); font-family: var(--font-serif, serif); line-height: 1.7; max-width: 48rem; margin-bottom: 2rem; }

/* Decade nav */
.ncv-decade-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; gap: 1rem; }
.ncv-nav-btn { display: inline-block; padding: .5rem 1rem; font-size: .8rem; font-family: var(--font-mono, monospace); color: var(--text-accent, #c9a84c); border: 1px solid var(--border-rule, rgba(255,255,255,.1)); border-radius: 4px; text-decoration: none; transition: all .2s; }
.ncv-nav-btn:hover { background: var(--bg-surface, #1a1a26); border-color: var(--text-accent, #c9a84c); }

/* Viewer section */
.ncv-viewer { max-width: 72rem; margin: 0 auto; padding: 0 1rem 4rem; }
.ncv-filter { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.5rem; align-items: center; }
.ncv-filter input { flex: 1; min-width: 200px; max-width: 400px; padding: .6rem 1rem; background: var(--bg-surface, #12121a); border: 1px solid var(--border-rule, rgba(255,255,255,.1)); border-radius: 4px; color: var(--text-primary, #e8e8ec); font-size: .875rem; }
.ncv-filter input:focus { outline: none; border-color: var(--text-accent, #c9a84c); }
.ncv-filter-count { font-size: .75rem; font-family: var(--font-mono, monospace); color: var(--text-muted, #888); }

/* Grid of clipping cards */
.ncv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.ncv-card { background: var(--bg-surface, #12121a); border: 1px solid var(--border-rule, rgba(255,255,255,.1)); border-radius: 6px; overflow: hidden; cursor: pointer; transition: all .2s; }
.ncv-card:hover { border-color: var(--text-accent, #c9a84c); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,.4); }
.ncv-card-img { width: 100%; aspect-ratio: 3/4; object-fit: cover; background: var(--bg-deepest, #0a0a0f); display: block; }
.ncv-card-info { padding: .75rem; }
.ncv-card-date { font-size: .7rem; font-family: var(--font-mono, monospace); color: var(--text-accent, #c9a84c); margin-bottom: .25rem; }
.ncv-card-paper { font-size: .75rem; color: var(--text-muted, #888); margin-bottom: .25rem; }
.ncv-card-headline { font-size: .8rem; font-family: var(--font-serif, serif); color: var(--text-primary, #e8e8ec); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Lightbox viewer */
.ncv-lightbox { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,.95); z-index: 9999; }
.ncv-lightbox.active { display: flex; flex-direction: column; }
.ncv-lb-toolbar { display: flex; align-items: center; justify-content: space-between; padding: .75rem 1.5rem; background: rgba(0,0,0,.8); border-bottom: 1px solid rgba(255,255,255,.1); flex-shrink: 0; }
.ncv-lb-info { flex: 1; min-width: 0; }
.ncv-lb-headline { font-size: .9rem; font-family: var(--font-serif, serif); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ncv-lb-meta { font-size: .7rem; font-family: var(--font-mono, monospace); color: #999; margin-top: 2px; }
.ncv-lb-controls { display: flex; gap: .75rem; align-items: center; flex-shrink: 0; }
.ncv-lb-btn { background: none; border: 1px solid rgba(255,255,255,.2); color: #ccc; padding: .4rem .8rem; border-radius: 4px; cursor: pointer; font-size: .8rem; transition: all .15s; }
.ncv-lb-btn:hover { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.4); }
.ncv-lb-counter { font-size: .75rem; font-family: var(--font-mono, monospace); color: #888; }
.ncv-lb-canvas { flex: 1; display: flex; align-items: center; justify-content: center; overflow: auto; padding: 1rem; }
.ncv-lb-canvas img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in; transition: transform .2s; }
.ncv-lb-canvas img.zoomed { max-width: none; max-height: none; cursor: zoom-out; }

/* Pagination */
.ncv-pagination { display: flex; justify-content: center; align-items: center; gap: .5rem; margin-top: 2rem; }
.ncv-page-btn { padding: .4rem .8rem; font-size: .8rem; font-family: var(--font-mono, monospace); background: var(--bg-surface, #12121a); border: 1px solid var(--border-rule, rgba(255,255,255,.1)); border-radius: 4px; color: var(--text-muted, #888); cursor: pointer; transition: all .15s; }
.ncv-page-btn:hover { border-color: var(--text-accent, #c9a84c); color: var(--text-accent, #c9a84c); }
.ncv-page-btn.active { background: var(--text-accent, #c9a84c); color: var(--bg-deepest, #0a0a0f); border-color: var(--text-accent, #c9a84c); }
.ncv-page-btn:disabled { opacity: .3; cursor: default; }

/* Year filter pills */
.ncv-year-pills { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.5rem; }
.ncv-year-pill { padding: .25rem .6rem; font-size: .7rem; font-family: var(--font-mono, monospace); background: var(--bg-surface, #12121a); border: 1px solid var(--border-rule, rgba(255,255,255,.1)); border-radius: 3px; color: var(--text-muted, #888); cursor: pointer; transition: all .15s; }
.ncv-year-pill:hover { border-color: var(--text-accent, #c9a84c); color: var(--text-accent, #c9a84c); }
.ncv-year-pill.active { background: var(--text-accent, #c9a84c); color: var(--bg-deepest, #0a0a0f); border-color: var(--text-accent, #c9a84c); }

@media (max-width: 640px) {
  .ncv-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .ncv-title { font-size: 1.5rem; }
  .ncv-lb-headline { font-size: .8rem; }
}
