/* ===================================================================
   Memos & History Bits Collection — hub page (495).
   Built entirely on the --df-* tokens from homepage-redesign.css
   (loaded first as a dependency), same as the timeline page and entries.
   =================================================================== */

/* the "pile of stuff" photo in the intro — a proper captioned figure
   instead of the old <img> jammed inside an <h5> */
.df-hub-figure {
  float: right;
  width: 200px;
  margin: 4px 0 16px 24px;
  background: var(--df-panel);
  border: 1px solid var(--df-border);
  border-radius: 6px;
  padding: 10px;
}
.df-hub-figure img { width: 100%; display: block; border-radius: 3px; }
.df-hub-figure figcaption {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: .03em;
  color: var(--df-muted);
  margin-top: 8px;
  line-height: 1.4;
}
@media (max-width: 600px) {
  .df-hub-figure { float: none; width: 100%; margin: 0 0 16px; }
}

.df-collections {
  max-width: 980px;
  margin: 0 auto;
  padding: 8px 24px 56px;
}

.df-featured-card {
  display: flex;
  gap: 18px;
  align-items: center;
  background: var(--df-panel);
  border: 1px solid var(--df-border);
  border-radius: 6px;
  padding: 16px;
  margin: 6px 0 0;
  text-decoration: none;
  transition: border-color .18s ease, transform .18s ease;
}
.df-featured-card:hover { border-color: var(--df-accent); transform: translateY(-1px); }
.df-featured-card-img { width: 64px; height: auto; border-radius: 3px; flex-shrink: 0; }
.df-featured-card-body { display: flex; flex-direction: column; gap: 3px; }
.df-featured-card-kicker {
  font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--df-muted);
}
.df-featured-card-title { font-size: 16px; font-weight: 600; color: var(--df-text); }
.df-featured-card-teaser { font-size: 13.5px; color: var(--df-text2); }
.df-featured-card-cta {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--df-accent); margin-top: 4px;
}

@media (max-width: 480px) {
  .df-featured-card { flex-direction: column; align-items: flex-start; }
}

.df-collection-group-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 34px;
}
.df-collection-group-pair .df-collection-group { margin-bottom: 0; }
@media (max-width: 620px) {
  .df-collection-group-pair { grid-template-columns: 1fr; gap: 34px; }
}

.df-collection-group { margin-bottom: 34px; scroll-margin-top: 24px; }
.df-collection-group-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--df-muted);
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--df-border);
}

.df-collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.df-collection-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--df-panel);
  border: 1px solid var(--df-border);
  border-radius: 6px;
  padding: 16px 18px;
  text-decoration: none;
  transition: border-color .18s ease, transform .18s ease;
}
.df-collection-card:hover { border-color: var(--df-accent); transform: translateY(-1px); }

.df-collection-card-title {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--df-text);
  line-height: 1.3;
}

.df-collection-card-count {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--df-accent);
}

.df-collection-card.is-empty { opacity: .55; }
.df-collection-card.is-empty:hover { border-color: var(--df-chip-border); transform: none; }
.df-collection-card.is-empty .df-collection-card-count { color: var(--df-dim); }

@media (max-width: 620px) {
  .df-collection-grid { grid-template-columns: 1fr; }
}
