/* "What's new" box (src/whats-new.js) — desktop and mobile.
   Uses the colour tokens both styles.css files define on :root. */

.wn-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.55);
}

.wn-dialog {
  width: min(460px, 100%);
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px;
  border: 1px solid var(--line-strong);
  border-top: 4px solid var(--accent);
  border-radius: 12px;
  background: var(--panel-strong);
  color: var(--text);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.wn-title {
  margin: 0;
  font-size: 1.2rem;
}

.wn-subtitle {
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.wn-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

.wn-date {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wn-bullets {
  margin: 4px 0 0;
  padding-left: 18px;
  font-size: 0.92rem;
  line-height: 1.4;
}

.wn-bullets li + li {
  margin-top: 4px;
}

.wn-close {
  align-self: flex-end;
  padding: 7px 16px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

/* "What's new" link in the page footers, opens the full history. */
.wn-link {
  margin: 6px 0 0;
}

.wn-link-btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--muted);
  font: inherit;
  font-size: 0.75rem;
  cursor: pointer;
}

.wn-link-btn:hover {
  color: var(--text);
  text-decoration: underline;
}

.mobile-footer .wn-link-btn {
  font-size: 0.68rem;
}
