/* fresh.css — styles for the auto-generated "Latest …" hub regions.
   2026-10-04: hub freshness blocks (scripts/build_section_hubs.py).
   Kept in its own file so hub generation never has to touch style.css. */

.fresh-block {
  min-width: 0;
  margin: 2.4rem 0 2rem;
  padding: 1.5rem 1.4rem 1.2rem;
  border: 1px solid rgba(139, 245, 255, .16);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(12, 20, 46, .72), rgba(8, 12, 30, .72));
  box-shadow: 0 14px 40px rgba(0, 0, 0, .28), inset 0 0 0 1px rgba(255, 255, 255, .02);
}

/* The homepage freshness region is intentionally injected into stats-grid. */
.stats-grid > .fresh-block { grid-column: 1 / -1; width: 100%; }

.fresh-head { margin-bottom: 1.1rem; }

.fresh-block .fresh-head h2 {
  margin: 0 0 .35rem;
  font-size: clamp(1.15rem, 1.6vw, 1.5rem);
  line-height: 1.2;
}

.fresh-blurb {
  margin: 0 0 .4rem;
  color: #b9c7e6;
  max-width: 68ch;
  font-size: .93rem;
  line-height: 1.55;
}

.fresh-meta {
  margin: 0;
  color: #9fb4d4;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .72rem;
  letter-spacing: .01em;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.fresh-grid { min-width: 0; margin: 0; }

.fresh-block .fresh-card { min-width: 0; display: flex; flex-direction: column; gap: .35rem; }

.fresh-block .fresh-card .card-title {
  font-size: 1rem;
  line-height: 1.35;
  margin: .1rem 0 .25rem;
  overflow-wrap: anywhere;
}

.fresh-block .card-title a:focus-visible,
.fresh-more a:focus-visible {
  outline: 2px solid #8bf5ff;
  outline-offset: 3px;
  border-radius: 4px;
  box-shadow: 0 0 0 4px rgba(25, 191, 255, .14);
}

.fresh-block .fresh-card p { margin: 0; font-size: .88rem; line-height: 1.5; color: #c3cfe6; }

.fresh-source {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  align-items: center;
  color: #a8bbd8 !important;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .7rem !important;
  line-height: 1.5 !important;
  overflow-wrap: anywhere;
}

.fresh-source > * { min-width: 0; overflow-wrap: anywhere; }

.fresh-undated { opacity: .8; }

.fresh-more { margin: 1rem 0 0; }
.fresh-more a { font-weight: 500; }

.fresh-empty { margin: 0; color: #b9c7e6; font-size: .9rem; }

@media (max-width: 640px) {
  .fresh-block { padding: 1.15rem 1rem 1rem; border-radius: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .fresh-block .fresh-card,
  .fresh-block .fresh-card a,
  .fresh-more a { transition: none !important; }
}

@media print {
  .fresh-block {
    border-color: #999;
    background: #fff;
    box-shadow: none;
  }
  .fresh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fresh-block .fresh-card {
    break-inside: avoid;
    border: 1px solid #bbb;
    background: #fff;
    box-shadow: none;
  }
  .fresh-blurb, .fresh-meta, .fresh-block .fresh-card p, .fresh-source { color: #222 !important; }
}
