/* ================================================================
   THE COLLECTION ARCHIVES — records.css
   Museum archive / library / historical aesthetic
   ================================================================ */

/* Hero */
.records-hero {
  position: relative; min-height: 280px;
  display: flex; align-items: center;
  overflow: hidden;
}

.records-hero-bg {
  position: absolute; inset: 0;
  /* Replace: url('assets/records-hero.png') center/cover no-repeat */
  background: linear-gradient(160deg, #060806 0%, #0a0e08 40%, #0e1208 70%, #0a0e06 100%);
}
.records-hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(6,8,6,.2) 0%, rgba(6,8,6,.6) 100%);
}

.records-hero-content { position: relative; z-index: 1; padding: 3rem 2rem; }

.records-eyebrow {
  font-family: var(--font-display); font-size: .65rem; letter-spacing: .4em;
  color: var(--brass-light); margin-bottom: .2rem;
}

.records-title {
  font-family: var(--font-display); font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700; letter-spacing: .25em; color: var(--cream);
  text-shadow: 0 2px 24px rgba(0,0,0,.9); line-height: 1;
}

.records-subtitle {
  font-family: var(--font-display); font-size: .65rem; letter-spacing: .3em;
  color: var(--ivory-dark); margin-top: .4rem;
}

.records-manifesto {
  font-family: var(--font-ink); font-style: italic;
  font-size: 1rem; line-height: 1.8; color: var(--ivory-dark);
  opacity: .7; margin-top: .75rem;
}

/* Archive Departments */
.archive-depts { padding: 1.5rem 2rem 0; }

.dept-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}

.dept-card {
  background: linear-gradient(148deg, #ede4ce 0%, #e4dbc2 50%, #dcd0b0 100%);
  border: 1px solid var(--ivory-deeper);
  box-shadow: 0 6px 24px rgba(0,0,0,.45);
  padding: 1.25rem 1.1rem 1.35rem;
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
  text-align: center; position: relative;
  transition: transform .15s;
}
.dept-card:hover { transform: translateY(-2px); }

.dept-card-hall { border-color: var(--brass); }

.dept-icon { font-size: 1.6rem; margin-bottom: .1rem; }

.dept-art { width: 100%; aspect-ratio: 4/3; margin: .4rem 0; }
.dept-art-placeholder {
  background: linear-gradient(135deg, rgba(61,51,38,.08), rgba(61,51,38,.14));
  border: 1px dashed rgba(61,51,38,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; opacity: .3;
}
.dept-art-placeholder::after { content: '📜'; }

.dept-name {
  font-family: var(--font-display); font-size: .78rem; font-weight: 600;
  letter-spacing: .14em; color: var(--ink);
}

.dept-count {
  font-family: var(--font-display); font-size: 2rem; font-weight: 700;
  color: var(--ink); line-height: 1;
}

.dept-count-label {
  font-family: var(--font-display); font-size: .5rem; letter-spacing: .2em;
  color: var(--brass); margin-bottom: .2rem;
}

.dept-sub {
  font-family: var(--font-display); font-size: .55rem; letter-spacing: .2em;
  color: var(--brass);
}

.dept-desc {
  font-family: var(--font-body); font-size: .9rem; color: var(--ink-light);
  line-height: 1.55; flex: 1; opacity: .8;
}

.dept-btn { display: block; width: 100%; text-align: center; margin-top: auto; }

/* Bottom row */
.records-bottom {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.25rem; padding: 1.25rem 2rem 0;
}

.card-recently-archived,
.card-timeline {
  background: linear-gradient(148deg, var(--greenhouse-2), var(--greenhouse-3));
  border-color: rgba(95,118,84,.2);
}

.ra-header { display: flex; align-items: center; gap: .6rem; margin-bottom: .85rem; }
.ra-icon { font-size: 1.1rem; }

/* Recently Archived */
.ra-list { display: flex; flex-direction: column; gap: 0; }

.ra-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .6rem 0; border-bottom: 1px solid rgba(255,255,255,.05);
  cursor: pointer; transition: background .12s;
}
.ra-item:last-child { border-bottom: none; }
.ra-item:hover { background: rgba(255,255,255,.02); }

.ra-img { width: 52px; height: 40px; flex-shrink: 0; border-radius: 2px; }
.ra-img-placeholder { background: rgba(255,255,255,.06); border: 1px dashed rgba(255,255,255,.1); }

.ra-info { flex: 1; }
.ra-name { font-family: var(--font-display); font-size: .68rem; letter-spacing: .08em; color: var(--cream); font-weight: 600; }
.ra-type { display: flex; align-items: center; gap: .4rem; margin-top: .15rem; font-family: var(--font-body); font-size: .8rem; color: var(--ivory-dark); opacity: .6; }

.ra-tag { font-family: var(--font-display); font-size: .44rem; letter-spacing: .15em; padding: .1rem .35rem; border-radius: 2px; }
.ra-tag-event { background: rgba(95,118,84,.3); color: #9fd49f; }
.ra-tag-report { background: rgba(181,139,74,.2); color: var(--brass-light); }
.ra-tag-history { background: rgba(100,80,200,.2); color: #b8a8f0; }

.ra-date { font-family: var(--font-display); font-size: .5rem; letter-spacing: .1em; color: var(--ivory-dark); opacity: .4; white-space: nowrap; }
.ra-arrow { color: var(--brass-light); font-size: 1.1rem; opacity: .5; }

/* Timeline */
.timeline { display: flex; flex-direction: column; gap: 0; margin-top: .5rem; }

.timeline-item {
  display: flex; gap: 1rem; position: relative;
  padding-bottom: 1rem;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item:not(:last-child)::before {
  content: ''; position: absolute; left: 7px; top: 18px;
  width: 2px; bottom: 0;
  background: linear-gradient(to bottom, rgba(181,139,74,.4), rgba(181,139,74,.1));
}

.tl-dot {
  width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0;
  background: var(--brass); border: 2px solid var(--greenhouse-2);
  box-shadow: 0 0 0 2px var(--brass); margin-top: 2px;
}
.tl-dot-future {
  background: rgba(181,139,74,.3); border-color: var(--greenhouse-2);
  box-shadow: 0 0 0 2px rgba(181,139,74,.3);
}

.tl-content { flex: 1; }
.tl-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: .2rem; }
.tl-year { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--cream); letter-spacing: .08em; }
.tl-year-future { color: var(--ivory-dark); opacity: .4; }
.tl-future-q { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--ivory-dark); opacity: .3; }
.tl-art { width: 80px; height: 52px; }
.tl-art-placeholder {
  background: rgba(255,255,255,.04); border: 1px dashed rgba(255,255,255,.08); border-radius: 2px;
}
.tl-heading { font-family: var(--font-display); font-size: .68rem; font-weight: 600; letter-spacing: .14em; color: var(--cream); margin-bottom: .15rem; }
.tl-desc { font-family: var(--font-body); font-size: .9rem; color: var(--ivory-dark); opacity: .65; line-height: 1.5; }

/* Footer */
.records-footer {
  margin: 1.5rem 2rem 2.5rem;
  background: linear-gradient(148deg, #0a0e08, #0d1208);
  border: 1px solid rgba(181,139,74,.15);
  padding: 2rem;
}
.records-footer-inner { text-align: center; }
.rf-quill { font-size: 2rem; opacity: .3; display: block; margin-bottom: .75rem; }
.rf-quote { font-family: var(--font-ink); font-style: italic; font-size: 1.1rem; color: var(--ivory-dark); line-height: 1.7; opacity: .6; max-width: 500px; margin: 0 auto .4rem; }
.rf-attribution { font-family: var(--font-display); font-size: .55rem; letter-spacing: .25em; color: var(--ivory-dark); opacity: .35; margin-bottom: .75rem; }
.rf-items { font-size: 1.8rem; opacity: .2; }

/* Mobile */
@media (max-width: 1100px) {
  .dept-grid { grid-template-columns: repeat(2, 1fr); }
  .records-bottom { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  :root { --sidebar-width: 64px; }
  .brand-name, .brand-the, .brand-tagline, .brand-rule,
  .nav-label, .sidebar-stamp { display: none; }
  .medallion-placeholder { width: 40px; height: 40px; }
  .medallion-c { font-size: 1.3rem; }
  .sidebar-logo { padding: .75rem .5rem; }
  .nav-item { justify-content: center; padding: .65rem; }
  .archive-depts { padding: 1rem; }
  .records-bottom { padding: 1rem; }
  .records-footer { margin: 1rem; }
}

@media (max-width: 600px) {
  :root { --sidebar-width: 0px; }
  .sidebar { display: none; }
  .main { margin-left: 0; }
  .dept-grid { grid-template-columns: 1fr 1fr; }
}
