/* Archive — Netflix-inspired research browsing */

.archive-page {
  padding-top: var(--header-h);
  background: #0a0e16;
  color: #e8ecf2;
  min-height: 100vh;
  --archive-gutter: 1.25rem;
}
@media (min-width: 900px) {
  .archive-page { --archive-gutter: 1.75rem; }
}

.archive-page .site-header {
  background: rgba(10, 14, 22, 0.88);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
.archive-page .site-logo__name { color: #fff; }
.archive-page .site-logo__tag { color: #5eead4; }
.archive-page .site-nav a:not(.btn) { color: rgba(255, 255, 255, 0.72); }
.archive-page .site-nav a:not(.btn):hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.archive-page .site-nav a:not(.btn).is-active { color: #fff; }
.archive-page .site-nav a:not(.btn).is-active::after { background: #5eead4; }
.archive-page .site-nav a.btn--primary,
.archive-page .site-nav a.site-nav__cta {
  color: #fff;
}
.archive-page .site-nav a.btn--primary:hover,
.archive-page .site-nav a.site-nav__cta:hover {
  color: #fff;
  background: var(--accent-hover);
}
.archive-page .nav-toggle {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* Discovery bar ----------------------------------------------------------- */
.archive-discover {
  width: auto;
  margin: var(--space-5) var(--archive-gutter) var(--space-4);
  display: grid;
  gap: var(--space-4);
}
.archive-search {
  position: relative;
}
.archive-search svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.45);
  pointer-events: none;
}
.archive-search input {
  width: 100%;
  min-height: 56px;
  padding: 0.85rem 1.1rem 0.85rem 3rem;
  border-radius: var(--radius);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: var(--fs-md);
}
.archive-search input::placeholder { color: rgba(255, 255, 255, 0.4); }
.archive-search input:focus {
  outline: none;
  border-color: rgba(94, 234, 212, 0.55);
  box-shadow: 0 0 0 3px rgba(15, 110, 110, 0.35);
}
.archive-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
}
.filter-chip {
  min-height: 40px;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.filter-chip:hover,
.filter-chip.is-active {
  background: rgba(94, 234, 212, 0.15);
  border-color: rgba(94, 234, 212, 0.45);
  color: #fff;
}
.archive-sort {
  margin-left: auto;
  min-height: 40px;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: var(--fs-sm);
}

/* Featured ---------------------------------------------------------------- */
.featured {
  position: relative;
  width: 100%;
  margin: 0 0 var(--space-7);
  min-height: clamp(340px, 48vh, 520px);
  border-radius: 0;
  overflow: hidden;
}
@media (min-width: 900px) {
  .featured {
    width: calc(100% - 2 * var(--archive-gutter));
    margin-left: var(--archive-gutter);
    margin-right: var(--archive-gutter);
    border-radius: var(--radius-lg);
  }
}
.featured__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 14, 22, 0.94) 0%, rgba(10, 14, 22, 0.62) 48%, rgba(10, 14, 22, 0.28) 100%),
    url('https://images.unsplash.com/photo-1579154204601-01588f351e67?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
}
.featured__content {
  position: relative;
  z-index: 1;
  max-width: 34rem;
  padding: var(--space-7) var(--space-6);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(340px, 48vh, 520px);
}
.featured__badge {
  align-self: flex-start;
  margin-bottom: var(--space-3);
  background: rgba(94, 234, 212, 0.2);
  color: #99f6e4;
}
.featured h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.65rem);
  color: #fff;
  margin-bottom: var(--space-3);
}
.featured__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-4);
  font-family: var(--font-sans);
}
.featured__abstract {
  font-size: var(--fs-md);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: var(--space-5);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Rows -------------------------------------------------------------------- */
.rail {
  margin-bottom: var(--space-6);
  position: relative;
}
.rail__header {
  width: auto;
  margin: 0 var(--archive-gutter) var(--space-3);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
}
.rail__title {
  font-family: var(--font-sans);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: #fff;
  margin: 0;
  letter-spacing: -0.01em;
}
.rail__see-all {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
}
.rail__see-all:hover { color: #99f6e4; }
.rail__track-wrap {
  position: relative;
}
.rail__track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 0.35rem var(--archive-gutter) 1.25rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.rail__track::-webkit-scrollbar { display: none; }
.rail__arrow {
  position: absolute;
  top: 35%;
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(10, 14, 22, 0.85);
  color: #fff;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
}
.rail__arrow svg { width: 20px; height: 20px; }
.rail__arrow:hover {
  background: rgba(15, 110, 110, 0.95);
  transform: scale(1.05);
}
.rail__arrow--left { left: 0.5rem; }
.rail__arrow--right { right: 0.5rem; }
@media (min-width: 900px) {
  .rail__arrow { display: inline-flex; }
}

/* Paper cards ------------------------------------------------------------- */
.paper {
  flex: 0 0 auto;
  width: 260px;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius);
  overflow: hidden;
  background: #141a26;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
  scroll-snap-align: start;
}
@media (min-width: 720px) {
  .paper { width: 300px; }
}
@media (min-width: 1100px) {
  .paper { width: 320px; }
}
.paper:hover {
  transform: scale(1.05);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  border-color: rgba(255, 255, 255, 0.18);
  z-index: 2;
  color: inherit;
  text-decoration: none;
}
.paper.is-dimmed {
  opacity: 0.28;
  pointer-events: none;
  transform: none;
}
.paper__cover {
  aspect-ratio: 16 / 10;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.85rem;
  background: linear-gradient(145deg, #1a365d, #0f6e6e);
  position: relative;
}
.paper__cover::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.35));
  pointer-events: none;
}
.paper__cover[data-tone="1"] { background: linear-gradient(145deg, #0f6e6e, #134e4a); }
.paper__cover[data-tone="2"] { background: linear-gradient(145deg, #1a365d, #2c5282); }
.paper__cover[data-tone="3"] { background: linear-gradient(145deg, #2d3748, #4a5568); }
.paper__cover[data-tone="4"] { background: linear-gradient(145deg, #234e52, #285e61); }
.paper__cover[data-tone="5"] { background: linear-gradient(145deg, #3c366b, #553c9a); }
.paper__cover[data-tone="6"] { background: linear-gradient(145deg, #744210, #975a16); }
.paper__cover-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.65);
  z-index: 1;
}
.paper__cover-mark {
  display: none;
}
.paper__body {
  padding: 0.9rem 0.95rem 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 118px;
}
.paper__title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.paper__author {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}
.paper__date {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}
.paper__preview {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 0.15rem;
}

.paper[href="article-bio-enzymes.html"] .paper__cover {
  background:
    linear-gradient(180deg, rgba(10, 14, 22, 0.12) 0%, rgba(10, 14, 22, 0.62) 100%),
    url('https://images.unsplash.com/photo-1547514701-42782101795e?auto=format&fit=crop&w=800&q=80') center/cover no-repeat;
}
.paper[href="article-car-t-pancreatic.html"] .paper__cover {
  background:
    linear-gradient(180deg, rgba(10, 14, 22, 0.12) 0%, rgba(10, 14, 22, 0.62) 100%),
    url('https://images.unsplash.com/photo-1532187863486-abf9dbad1b69?auto=format&fit=crop&w=800&q=80') center/cover no-repeat;
}
.paper[href="article-grasp-prediction.html"] .paper__cover {
  background:
    linear-gradient(180deg, rgba(10, 14, 22, 0.12) 0%, rgba(10, 14, 22, 0.62) 100%),
    url('https://images.unsplash.com/photo-1485827404703-89b55fcc595e?auto=format&fit=crop&w=800&q=80') center/cover no-repeat;
}
.paper[href="article-fasd-cerebellum.html"] .paper__cover {
  background:
    linear-gradient(180deg, rgba(10, 14, 22, 0.12) 0%, rgba(10, 14, 22, 0.62) 100%),
    url('https://images.unsplash.com/photo-1532094349884-543bc11b234d?auto=format&fit=crop&w=800&q=80') center/cover no-repeat;
}
.paper[href="article-deja-vu.html"][data-author^="Aashritha"] .paper__cover {
  background:
    linear-gradient(180deg, rgba(10, 14, 22, 0.12) 0%, rgba(10, 14, 22, 0.62) 100%),
    url('https://images.unsplash.com/photo-1559757148-5c350d0d3c56?auto=format&fit=crop&w=800&q=80') center/cover no-repeat;
}
.paper[href="article-deja-vu.html"][data-author^="Rajasri"] .paper__cover,
.paper[href="article-deja-vu.html"][data-cover="path"] .paper__cover {
  background:
    linear-gradient(180deg, rgba(10, 14, 22, 0.12) 0%, rgba(10, 14, 22, 0.62) 100%),
    url('https://images.unsplash.com/photo-1441974231531-c6227db76b6e?auto=format&fit=crop&w=800&q=80') center/cover no-repeat;
}
.paper[href="article-adolescent-addiction.html"] .paper__cover {
  background:
    linear-gradient(180deg, rgba(10, 14, 22, 0.12) 0%, rgba(10, 14, 22, 0.62) 100%),
    url('https://images.unsplash.com/photo-1529156069898-49953e39b3ac?auto=format&fit=crop&w=800&q=80') center/cover no-repeat;
}
.paper[href="article-noise-pollution.html"] .paper__cover {
  background:
    linear-gradient(180deg, rgba(10, 14, 22, 0.12) 0%, rgba(10, 14, 22, 0.62) 100%),
    url('https://images.unsplash.com/photo-1477959858617-67f85cf4f1df?auto=format&fit=crop&w=800&q=80') center/cover no-repeat;
}
.paper[href="article-malaria-multimodal-ml.html"] .paper__cover {
  background:
    linear-gradient(180deg, rgba(10, 14, 22, 0.12) 0%, rgba(10, 14, 22, 0.62) 100%),
    url('https://images.unsplash.com/photo-1579154204601-01588f351e67?auto=format&fit=crop&w=800&q=80') center/cover no-repeat;
}
.paper[href="article-wall-colors.html"] .paper__cover {
  background:
    linear-gradient(180deg, rgba(10, 14, 22, 0.12) 0%, rgba(10, 14, 22, 0.62) 100%),
    url('https://images.unsplash.com/photo-1580582932707-520aed937b7b?auto=format&fit=crop&w=800&q=80') center/cover no-repeat;
}
.paper[href="article-lasyapriya-brand-psychology-mla.html"] .paper__cover {
  background:
    linear-gradient(180deg, rgba(10, 14, 22, 0.12) 0%, rgba(10, 14, 22, 0.62) 100%),
    url('https://images.unsplash.com/photo-1483985988355-763728e1935b?auto=format&fit=crop&w=800&q=80') center/cover no-repeat;
}
.paper[href="article-youth-civic-engagement.html"] .paper__cover {
  background:
    linear-gradient(180deg, rgba(10, 14, 22, 0.12) 0%, rgba(10, 14, 22, 0.62) 100%),
    url('https://images.unsplash.com/photo-1517486808906-6ca8b3f04846?auto=format&fit=crop&w=800&q=80') center 70%/cover no-repeat;
}
.paper[href="article-immigration-enforcement-volatility.html"] .paper__cover {
  background:
    linear-gradient(180deg, rgba(10, 14, 22, 0.12) 0%, rgba(10, 14, 22, 0.62) 100%),
    url('https://images.unsplash.com/photo-1436450412740-6b988f486c6b?auto=format&fit=crop&w=800&q=80') center/cover no-repeat;
}
.paper[href="article-political-announcements-abnormal-returns.html"] .paper__cover {
  background:
    linear-gradient(180deg, rgba(10, 14, 22, 0.12) 0%, rgba(10, 14, 22, 0.62) 100%),
    url('https://images.unsplash.com/photo-1611974789855-9c2a0a7236a3?auto=format&fit=crop&w=800&q=80') center/cover no-repeat;
}
.paper[href="article-tau-cte.html"] .paper__cover {
  background:
    linear-gradient(180deg, rgba(10, 14, 22, 0.12) 0%, rgba(10, 14, 22, 0.62) 100%),
    url('https://images.unsplash.com/photo-1559757175-0eb30cd8c063?auto=format&fit=crop&w=800&q=80') center/cover no-repeat;
}
.paper[href="article-magnetotactic-bacteria.html"] .paper__cover {
  background:
    linear-gradient(180deg, rgba(10, 14, 22, 0.12) 0%, rgba(10, 14, 22, 0.62) 100%),
    url('https://images.unsplash.com/photo-1576086213369-97a306d36557?auto=format&fit=crop&w=800&q=80') center/cover no-repeat;
}
.paper[href="article-surface-codes.html"] .paper__cover {
  background:
    linear-gradient(180deg, rgba(10, 14, 22, 0.12) 0%, rgba(10, 14, 22, 0.62) 100%),
    url('https://images.unsplash.com/photo-1635070041078-e363dbe005cb?auto=format&fit=crop&w=800&q=80') center/cover no-repeat;
}
.paper[href="article-glymphatic-sleep.html"] .paper__cover {
  background:
    linear-gradient(180deg, rgba(10, 14, 22, 0.12) 0%, rgba(10, 14, 22, 0.62) 100%),
    url('https://images.unsplash.com/photo-1541781774459-bb2af2f05b55?auto=format&fit=crop&w=800&q=80') center/cover no-repeat;
}
.paper[href="article-tardigrade-idps.html"] .paper__cover {
  background:
    linear-gradient(180deg, rgba(10, 14, 22, 0.12) 0%, rgba(10, 14, 22, 0.62) 100%),
    url('https://images.unsplash.com/photo-1530026405186-ed1f139313f8?auto=format&fit=crop&w=800&q=80') center/cover no-repeat;
}
.paper[href="article-adversarial-radiology.html"] .paper__cover {
  background:
    linear-gradient(180deg, rgba(10, 14, 22, 0.12) 0%, rgba(10, 14, 22, 0.62) 100%),
    url('https://images.unsplash.com/photo-1530497610245-94d3c16cda28?auto=format&fit=crop&w=800&q=80') center/cover no-repeat;
}
.paper[href="article-mycelium-composites.html"] .paper__cover {
  background:
    linear-gradient(180deg, rgba(10, 14, 22, 0.12) 0%, rgba(10, 14, 22, 0.62) 100%),
    url('https://images.unsplash.com/photo-1518531933037-91b2f5f229cc?auto=format&fit=crop&w=800&q=80') center/cover no-repeat;
}
.paper[href="article-organoid-intelligence.html"] .paper__cover {
  background:
    linear-gradient(180deg, rgba(10, 14, 22, 0.12) 0%, rgba(10, 14, 22, 0.62) 100%),
    url('https://images.unsplash.com/photo-1532187863486-abf9dbad1b69?auto=format&fit=crop&w=800&q=80') center/cover no-repeat;
}
.paper[href="article-monarch-isotopes.html"] .paper__cover {
  background:
    linear-gradient(180deg, rgba(10, 14, 22, 0.12) 0%, rgba(10, 14, 22, 0.62) 100%),
    url('https://images.unsplash.com/photo-1474516513567-df8dba487d33?auto=format&fit=crop&w=800&q=80') center/cover no-repeat;
}
.paper[href="article-staggered-did.html"] .paper__cover {
  background:
    linear-gradient(180deg, rgba(10, 14, 22, 0.12) 0%, rgba(10, 14, 22, 0.62) 100%),
    url('https://images.unsplash.com/photo-1551288049-bebda4e38f71?auto=format&fit=crop&w=800&q=80') center/cover no-repeat;
}
.paper[href="article-photonic-qkd.html"] .paper__cover {
  background:
    linear-gradient(180deg, rgba(10, 14, 22, 0.12) 0%, rgba(10, 14, 22, 0.62) 100%),
    url('https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&w=800&q=80') center/cover no-repeat;
}
.paper[href="article-gut-lung-cf.html"] .paper__cover {
  background:
    linear-gradient(180deg, rgba(10, 14, 22, 0.12) 0%, rgba(10, 14, 22, 0.62) 100%),
    url('https://images.unsplash.com/photo-1579684385127-1ef15d508118?auto=format&fit=crop&w=800&q=80') center/cover no-repeat;
}
.paper[href="article-llm-verification.html"] .paper__cover {
  background:
    linear-gradient(180deg, rgba(10, 14, 22, 0.12) 0%, rgba(10, 14, 22, 0.62) 100%),
    url('https://images.unsplash.com/photo-1518773553398-650c184e0bb3?auto=format&fit=crop&w=800&q=80') center/cover no-repeat;
}
.paper[href="article-perovskite-lead.html"] .paper__cover {
  background:
    linear-gradient(180deg, rgba(10, 14, 22, 0.12) 0%, rgba(10, 14, 22, 0.62) 100%),
    url('https://images.unsplash.com/photo-1509391366360-2e959784a276?auto=format&fit=crop&w=800&q=80') center/cover no-repeat;
}
.paper[href="article-algorithmic-monoculture.html"] .paper__cover {
  background:
    linear-gradient(180deg, rgba(10, 14, 22, 0.12) 0%, rgba(10, 14, 22, 0.62) 100%),
    url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&w=800&q=80') center/cover no-repeat;
}

.archive-empty {
  width: auto;
  margin: var(--space-6) var(--archive-gutter);
  padding: var(--space-7);
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
  display: none;
}
.archive-empty.is-visible { display: block; }

.archive-page .site-footer {
  margin-top: var(--space-7);
  background: #070a10;
}
