/* Random Post program — archive shuffler styles scoped to the random window. */

.window--random {
  max-width: 460px;
}

.window--random .window-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 32px 28px 36px;
}

.random-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  min-height: 110px;
  justify-content: center;
}

.random-date {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.random-title {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  max-width: 34ch;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.random-summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 40ch;
}

.random-summary a {
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.random-summary a:hover {
  text-decoration: underline;
}

.random-controls {
  display: flex;
  gap: 10px;
}

.random-btn {
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  background: #f2f3f5;
  border: none;
  border-radius: 10px;
  padding: 10px 22px;
  cursor: pointer;
  text-decoration: none;
}

.random-btn:hover {
  background: #e7e9ec;
}

.random-btn--primary {
  color: #fff;
  background: var(--accent);
}

.random-btn--primary:hover {
  background: #275c98;
}
