/* Release side panel: the list of app updates shown beside the page content.
   Self-contained so it works with both /site.css and /weather-wizard/styles.css. */

.release-layout {
  align-items: start;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
}

.release-main {
  min-width: 0;
}

/* The panel takes ~360px, so the site.css hero needs a smaller headline to fit. */
@media (min-width: 881px) {
  .release-main .hero {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 420px);
  }
}

.release-main h1 {
  font-size: clamp(2.6rem, 4.8vw, 4.6rem);
  overflow-wrap: break-word;
}

.release-main .hero-shot {
  justify-self: center;
  max-height: 560px;
  max-width: 100%;
  object-fit: contain;
  width: auto;
}

.release-main a.mini-preview {
  color: inherit;
  text-decoration: none;
}

.release-main a.mini-preview h3 {
  color: #0e3d6d;
}

.release-panel {
  align-self: stretch;
  background: #ffffff;
  border-left: 1px solid #d9dee8;
  box-shadow: -10px 0 30px rgba(7, 17, 31, 0.18);
  color: #172033;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}

.release-panel-inner {
  box-sizing: border-box;
  max-height: 100vh;
  overflow-y: auto;
  padding: 26px 22px 30px;
  position: sticky;
  top: 0;
}

.release-panel-eyebrow {
  color: #155fa8;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.release-panel h2 {
  color: #0e3d6d;
  font-size: 1.55rem;
  line-height: 1.1;
  margin: 0 0 12px;
}

.release-panel-status {
  background: #fff7dc;
  border: 1px solid #f0d27a;
  border-left: 5px solid #f7c948;
  border-radius: 8px;
  color: #3d3210;
  font-size: 0.95rem;
  font-weight: 800;
  margin: 0 0 18px;
  padding: 10px 12px;
}

.release-panel-status.is-live {
  background: #e9f6ec;
  border-color: #9fd3a8;
  border-left-color: #4d9e3d;
  color: #1d4a22;
}

.release-app {
  border-top: 1px solid #d9dee8;
  padding: 14px 0 6px;
}

.release-app h3 {
  color: #0e3d6d;
  font-size: 1.05rem;
  margin: 0 0 2px;
}

.release-versions {
  color: #606a78;
  font-size: 0.82rem;
  font-weight: 800;
  margin: 0 0 8px;
}

.release-app ul {
  margin: 0 0 8px;
  padding-left: 18px;
}

.release-app li {
  color: #2b3445;
  font-size: 0.9rem;
  margin: 0 0 5px;
}

.release-app .release-note {
  color: #606a78;
  font-size: 0.82rem;
  margin: 0 0 8px;
}

.release-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 8px;
}

.release-link {
  background: #07111f;
  border-radius: 6px;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 6px 10px;
  text-decoration: none;
}

.release-panel-current {
  color: #3d4656;
  font-size: 0.85rem;
  margin: -6px 0 14px;
}

/* "Current build 21.2" tag on links to the versions already in the stores. */
.build-tag {
  background: #fff1c2;
  border: 1px solid #e3b93c;
  border-radius: 999px;
  color: #4a3a05;
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.3;
  margin-left: 6px;
  padding: 1px 8px;
  text-transform: uppercase;
  vertical-align: middle;
  white-space: nowrap;
}

.release-panel-current .build-tag {
  margin-left: 0;
}

a.current-build {
  align-items: center;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
}

.update-note {
  background: #fff7dc;
  border-left: 5px solid #f7c948;
  border-radius: 8px;
  color: #3d3210;
  font-size: 0.95rem;
  margin: 10px 0;
  padding: 8px 12px;
}

.sort-notice {
  font-size: 1.05rem;
  font-weight: 900;
}

.release-panel-more {
  color: #155fa8;
  display: inline-block;
  font-weight: 900;
  margin-top: 10px;
}

@media (max-width: 1100px) {
  .release-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .release-panel {
    border-bottom: 1px solid #d9dee8;
    border-left: 0;
    box-shadow: none;
    grid-row: 1;
  }

  .release-panel-inner {
    max-height: none;
    position: static;
  }
}
