/* Release notes pages (drawn by the cloud server: server/cloud/src/releasePages.ts). Uses home.css's colours, so
   light and dark follow the rest of the site. */

.rn-main {
  max-width: 920px;
  padding-top: clamp(112px, 13vw, 150px);
  padding-bottom: 72px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- The list ---------- */

.rn-top {
  margin-bottom: 36px;
}
.rn-kicker {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.rn-top h1,
.rn-head h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text);
}
.rn-lede {
  margin: 0;
  max-width: 62ch;
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-2);
}
.rn-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.rn-filter a {
  padding: 7px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  text-decoration: none;
}
.rn-filter a:hover {
  border-color: var(--text-2);
}
.rn-filter a[aria-current='page'] {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

.rn-card {
  display: grid;
  gap: 0;
  margin-bottom: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--card-shadow);
}
.rn-card.has-shot {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}
.rn-card-shot {
  display: block;
  background: var(--bg-2);
}
.rn-card-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}
.rn-card-body {
  padding: 24px 26px;
}
.rn-card h2 {
  margin: 6px 0 10px;
  font-size: 23px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.rn-card h2 a {
  color: var(--text);
  text-decoration: none;
}
.rn-card h2 a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.rn-summary {
  margin: 12px 0 0;
  line-height: 1.55;
  color: var(--text-2);
}
.rn-counts {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.rn-more {
  font-weight: 650;
  color: var(--gold-ink);
  text-decoration: none;
}
.rn-more:hover {
  text-decoration: underline;
}
.rn-empty {
  color: var(--muted);
}

.rn-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}
.rn-version {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold-ink);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.rn-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rn-platforms li {
  padding: 3px 9px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
}
.rn-pages {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  color: var(--muted);
}
.rn-pages a {
  font-weight: 650;
  color: var(--text);
}

/* ---------- One release ---------- */

.rn-crumbs {
  margin-bottom: 18px;
  font-size: 14px;
  color: var(--muted);
}
.rn-crumbs a {
  color: var(--text-2);
}
.rn-head {
  margin-bottom: 26px;
}
.rn-head .rn-meta {
  margin-bottom: 12px;
}
.rn-hero {
  margin: 0 0 28px;
}
.rn-intro {
  font-size: 18.5px;
  line-height: 1.6;
  color: var(--text-2);
}
.rn-intro p {
  margin: 0 0 14px;
}
.rn-section {
  margin-top: 40px;
}
.rn-section > h2 {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 24px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.rn-note {
  margin: -4px 0 14px;
  font-size: 14px;
  color: var(--muted);
}
.rn-items {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rn-items > li {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  line-height: 1.6;
  color: var(--text-2);
}
.rn-items h3 {
  margin: 0 0 4px;
  font-size: 17px;
  color: var(--text);
}
.rn-items p {
  margin: 0 0 8px;
}
.rn-items p:last-child,
.rn-items ul:last-child {
  margin-bottom: 0;
}
.rn-new .rn-items > li {
  border-left: 3px solid var(--gold);
}
.rn-items a,
.rn-intro a {
  color: var(--gold-ink);
}

.rn-gallery {
  display: grid;
  gap: 22px;
  margin-top: 40px;
}
.rn-figure {
  position: relative;
  margin: 0;
}
.rn-figure img,
.rn-figure video {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
}
.rn-shot {
  display: block;
  cursor: zoom-in;
}
.rn-figure figcaption {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}
.rn-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.rn-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgb(10 11 15 / 72%);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rn-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 48px;
  padding: 24px 26px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.rn-cta h2 {
  margin: 0 0 6px;
  font-size: 21px;
}
.rn-cta p {
  margin: 0;
  max-width: 52ch;
  color: var(--text-2);
}
.rn-cta .pill {
  margin: 4px 6px 4px 0;
}
.rn-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
}
.rn-pager a {
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}
.rn-pager a[rel='next'] {
  text-align: right;
}
.rn-pager a:hover {
  border-color: var(--line-2);
  background: var(--surface);
}
.rn-pager small {
  font-weight: 500;
  color: var(--muted);
}
.rn-preview {
  margin: 0 0 20px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--gold-soft);
  color: var(--gold-ink);
  font-weight: 650;
}

/* ---------- The picture viewer (js/release-notes.js) ---------- */

.rn-box {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-rows: 1fr auto;
  place-items: center;
  padding: 56px 64px 20px;
  background: rgb(6 7 10 / 92%);
  color: #fff;
}
.rn-box[hidden] {
  display: none;
}
.rn-box img {
  max-width: 100%;
  max-height: calc(100vh - 140px);
  border-radius: 8px;
}
.rn-box p {
  margin: 12px 0 0;
  max-width: 80ch;
  text-align: center;
  color: #d8d6d0;
}
.rn-box button {
  position: absolute;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 12%);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}
.rn-box button:hover,
.rn-box button:focus-visible {
  background: rgb(255 255 255 / 24%);
}
.rn-box .rn-close {
  top: 12px;
  right: 12px;
}
.rn-box .rn-prev {
  left: 12px;
  top: 50%;
}
.rn-box .rn-next {
  right: 12px;
  top: 50%;
}

@media (max-width: 720px) {
  .rn-card.has-shot {
    grid-template-columns: 1fr;
  }
  .rn-card-shot img {
    aspect-ratio: 16 / 9;
  }
  .rn-card-body {
    padding: 18px;
  }
  .rn-compare,
  .rn-pager {
    grid-template-columns: 1fr;
  }
  .rn-pager a[rel='next'] {
    text-align: left;
  }
  .rn-box {
    padding: 56px 8px 16px;
  }
  .rn-box .rn-prev,
  .rn-box .rn-next {
    top: auto;
    bottom: 14px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .rn-card,
  .rn-pager a {
    transition:
      border-color 0.2s var(--ease),
      background 0.2s var(--ease);
  }
}
