.downloads-layout { max-width: 1180px; }
.downloads-page { display: grid; gap: 20px; }
.current-release,
.release-history {
  border: 1px solid var(--line);
  background: var(--bg-panel);
}
.current-release { box-shadow: 0 0 28px rgba(0, 0, 0, .34); }
.current-release-heading,
.release-history-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}
.release-kicker {
  margin: 0 0 4px;
  color: var(--de-green-lt);
  font-size: 12px;
  font-weight: bold;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.current-release h2,
.release-history h2,
.current-platform h3,
.release-notes-dialog h2 {
  margin: 0;
  color: var(--de-green);
  font-family: var(--head);
}
.current-release-heading time,
.release-history-heading p {
  margin: 0;
  color: var(--fg-dim);
  font-size: 13px;
}
.current-platforms { display: grid; grid-template-columns: repeat(3, 1fr); }
.current-platform { padding: 20px; }
.current-platform + .current-platform { border-left: 1px solid var(--line); }
.current-platform p { min-height: 20px; margin: 6px 0 16px; color: var(--fg-dim); font-size: 13px; }
.current-links { display: flex; flex-wrap: wrap; gap: 8px; }
.current-links a,
.current-release-files a,
.current-release-files button,
.release-notes-footer button {
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #050704;
  color: var(--de-green-lt);
  font: inherit;
  font-weight: bold;
  line-height: 18px;
  text-decoration: none;
  cursor: pointer;
}
.current-links a:hover,
.current-links a:focus-visible,
.current-release-files a:hover,
.current-release-files a:focus-visible,
.current-release-files button:hover,
.current-release-files button:focus-visible,
.release-notes-footer button:hover,
.release-notes-footer button:focus-visible { border-color: var(--de-green-lt); background: var(--de-nav-hover); }
.current-release-files { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--line); }
.release-history-heading { align-items: center; }
.release-table-wrap { overflow-x: auto; }
.release-table { width: 100%; min-width: 890px; border-collapse: collapse; }
.release-table th,
.release-table td { padding: 13px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.release-table thead th { color: var(--fg-dim); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; }
.release-table tbody tr:last-child > * { border-bottom: 0; }
.release-table tbody tr:hover { background: rgba(255, 255, 255, .018); }
.release-table tbody th strong { display: block; color: var(--fg); }
.release-table time { display: block; margin-top: 3px; color: var(--fg-dim); font-size: 11px; font-weight: normal; white-space: nowrap; }
.release-table td a,
.release-table td button {
  display: inline;
  margin: 0 10px 3px 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--de-green-lt);
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
}
.release-table td a:hover,
.release-table td a:focus-visible,
.release-table td button:hover,
.release-table td button:focus-visible { color: var(--de-green); }
.release-notes-link[data-release-notes]:not([data-release-notes="156"]) { display: none; }
.release-unavailable { color: var(--fg-dim); }
.release-notes-dialog {
  width: min(660px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--bg-panel);
  color: var(--fg);
  box-shadow: 0 22px 80px rgba(0, 0, 0, .7);
}
.release-notes-dialog::backdrop { background: rgba(0, 0, 0, .75); backdrop-filter: blur(2px); }
.release-notes-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.dialog-close { width: 36px; height: 36px; padding: 0; border: 0; background: transparent; color: var(--fg); font-size: 28px; line-height: 32px; cursor: pointer; }
.dialog-close:hover,
.dialog-close:focus-visible { color: var(--de-green-lt); }
.release-notes-content { overflow-y: auto; padding: 20px; }
.release-notes-date { margin: 0 0 14px; color: var(--fg-dim); }
.release-notes-content ul { margin: 0; padding-left: 22px; }
.release-notes-content li + li { margin-top: 9px; }
.release-notes-footer { display: flex; justify-content: flex-end; padding: 12px 20px; border-top: 1px solid var(--line); }
@media (max-width: 760px) {
  .current-release-heading,
  .release-history-heading { align-items: start; flex-direction: column; }
  .current-platforms { grid-template-columns: 1fr; }
  .current-platform + .current-platform { border-top: 1px solid var(--line); border-left: 0; }
  .current-platform p { min-height: 0; }
  .current-release-files { justify-content: flex-start; }
}
@media (max-width: 460px) {
  .current-release-heading,
  .current-platform,
  .release-history-heading { padding: 15px; }
  .current-release-files { padding: 12px 15px; }
}
