.updates-main {
  padding: 48px 0 80px;
}

.updates-shell {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.updates-hero {
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.updates-hero img {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  display: block;
}

.updates-hero-copy {
  padding: 18px 20px 22px;
}

.updates-hero-copy h1 {
  margin-bottom: 8px;
}

.updates-hero-copy p {
  margin-bottom: 0;
  color: var(--muted);
}

.updates-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.updates-links a {
  text-decoration: none;
  border: 1px solid rgba(20, 58, 82, 0.22);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.8rem;
  color: #13425f;
  background: rgba(255, 255, 255, 0.7);
}

.updates-links a.active {
  background: #1e4f70;
  color: #fff;
}

.updates-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.updates-meta span {
  border: 1px solid rgba(20, 58, 82, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  padding: 6px 10px;
  font-size: 0.78rem;
  color: #35596f;
}

.patch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.patch-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 14px;
}

.patch-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
}

.patch-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(18, 73, 101, 0.12);
  font-size: 0.95rem;
}

.patch-head h2 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
}

.patch-card p {
  margin-bottom: 8px;
  color: #38596f;
  font-size: 0.89rem;
}

.patch-card ul {
  margin: 0;
  padding-left: 18px;
}

.patch-card li {
  margin-bottom: 5px;
  font-size: 0.86rem;
  color: #27475d;
}

.patch-card li:last-child {
  margin-bottom: 0;
}

.patch-card img {
  width: 100%;
  margin-top: 10px;
  border-radius: 12px;
  border: 1px solid rgba(21, 58, 81, 0.2);
}

.updates-note {
  margin-top: 16px;
  border: 1px solid rgba(20, 58, 82, 0.18);
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.65);
  color: #3c5f74;
  font-size: 0.85rem;
}

.updates-back {
  margin-top: 16px;
}

.updates-back a {
  text-decoration: none;
}

html[data-theme="dark"] .updates-links a {
  border-color: rgba(141, 169, 197, 0.3);
  background: rgba(18, 28, 40, 0.85);
  color: #bad3e9;
}

html[data-theme="dark"] .updates-links a.active {
  background: #2a77a8;
  color: #fff;
}

html[data-theme="dark"] .updates-meta span {
  border-color: rgba(141, 169, 197, 0.3);
  background: rgba(18, 28, 40, 0.85);
  color: #a7c0d7;
}

html[data-theme="dark"] .patch-icon {
  background: rgba(89, 142, 184, 0.22);
}

html[data-theme="dark"] .patch-card p {
  color: #a9c0d5;
}

html[data-theme="dark"] .patch-card li {
  color: #bcd0e4;
}

html[data-theme="dark"] .patch-card img {
  border-color: rgba(141, 169, 197, 0.25);
}

html[data-theme="dark"] .updates-note {
  border-color: rgba(141, 169, 197, 0.25);
  background: rgba(18, 28, 40, 0.82);
  color: #9eb5ca;
}

@media (max-width: 720px) {
  .updates-main {
    padding-top: 28px;
  }

  .updates-hero-copy {
    padding: 14px;
  }
}
