/* ============================================================
   RESOURCES PAGE STYLES
   ============================================================ */

.resources-feed {
  background: var(--navy);
  padding-top: var(--space-md);
}

/* ── Resource item base ────────────────────────────────────── */
.res-item {
  padding: 1.2rem 0;
}

.res-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
}

.res-date {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--gold-mid);
}

/* Type badge */
.res-type-badge {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy-dark);
  background: var(--gold-gradient);
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
}

.res-type-badge--note {
  background: rgba(255,255,255,0.15);
  color: var(--white-muted);
}

/* ── Long article ──────────────────────────────────────────── */
.res-title {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  color: var(--white);
  line-height: 1.25;
  margin-bottom: var(--space-md);
  max-width: 62ch;
}

.res-title a {
  color: var(--white);
  text-decoration: none;
  transition: color var(--transition);
}

.res-title a:hover { color: var(--gold-light); }

.res-excerpt {
  font-size: 1.1rem;
  color: var(--white-muted);
  line-height: 1.85;
  max-width: 64ch;
  margin-bottom: var(--space-lg);
  font-style: italic;
}

.res-actions {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  flex-wrap: wrap;
}

.res-read-btn {
  font-size: 0.95rem;
}

.res-share-btn {
  font-size: 0.95rem;
}

/* ── Short article ─────────────────────────────────────────── */
.res-title--short {
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  margin-bottom: var(--space-sm);
}

.res-body {
  font-size: 1.05rem;
  color: var(--white-muted);
  line-height: 1.85;
  max-width: 64ch;
  margin-bottom: var(--space-md);
}

/* ── Minimal item ──────────────────────────────────────────── */
.res-item--minimal {
  opacity: 0.85;
}

.res-title--minimal {
  font-size: 1.1rem;
  color: var(--white-muted);
  margin-bottom: var(--space-xs);
}

.res-body--minimal {
  font-size: 1rem;
  color: var(--white-faint);
  max-width: 60ch;
  margin-bottom: var(--space-sm);
}

.res-link {
  max-width: none;
  font-size: 0.95rem;
}

.res-link a {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--gold-mid);
}

.res-link a:hover { color: var(--gold-light); }

/* ── Divider ───────────────────────────────────────────────── */
.res-divider {
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,0.55);
  margin-top: 1.2rem;
}

/* ── Copy toast notification ───────────────────────────────── */
#copy-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(4rem);
  background: var(--gold-mid);
  color: var(--navy-dark);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.7rem 1.4rem;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  z-index: 3000;
  white-space: nowrap;
}

#copy-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Scrolling resources container ────────────────────────── */
.res-scroll-wrap {
  position: relative;
}

.res-scroll-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: var(--space-md);
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--navy));
  pointer-events: none;
}

.res-scroll-container {
  max-height: 800px;
  overflow-y: auto;
  padding-right: var(--space-md);
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dark) rgba(255,255,255,0.08);
}

.res-scroll-container::-webkit-scrollbar {
  width: 6px;
}

.res-scroll-container::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
}

.res-scroll-container::-webkit-scrollbar-thumb {
  background: var(--gold-dark);
  border-radius: 3px;
}

.res-scroll-container::-webkit-scrollbar-thumb:hover {
  background: var(--gold-mid);
}
