@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/inter-300.woff2") format("woff2");
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-400.woff2") format("woff2");
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/inter-600.woff2") format("woff2");
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/inter-800.woff2") format("woff2");
}

:root {
  color: #000;
  background: #fff;
  font-family: Inter, Calibri, Geneva, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

* { box-sizing: border-box; }

body { margin: 0; }

/* Shared gutter: gray bar, hero, and page content use the same side inset. */
.wrap {
  max-width: none;
  margin: 0 auto;
  padding: 0 40px;
}

/* Black bar sticks only while the hero is on screen, so the gray bar can push it off. */
.banner-stack { position: relative; }

.top-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #000;
  color: #fff;
  padding: 12px 16px 12px 8px;
}

.top-row { max-width: none; }

.brand {
  margin: 0;
  color: #fff;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.top-bar .who a,
.top-bar .link-button,
.top-bar .name {
  color: #fff;
}

.top-bar .who a:hover,
.top-bar .link-button:hover { color: #d9d9d9; }

.who form { margin: 0; }

.hero {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 168px;
  aspect-ratio: 1900 / 430;
  background: #06343a url("gv-hero.jpg") center / cover no-repeat;
}

.hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.625rem, 4.8vw, 4.125rem);
  font-weight: 300;
  line-height: 1.15;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.account-bar {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #e6e6e6;
  border-bottom: 1px solid #d9d9d9;
  padding: 10px 0;
}

.header-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.wordmark {
  display: block;
  line-height: 0;
  text-decoration: none;
}

.wordmark img {
  display: block;
  height: 40px;
  width: auto;
}

a.nav-contact {
  padding: 0.55em 0.9em;
  font-size: 0.8rem;
}

.account-menu { position: relative; }

.account-menu summary {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 600;
  list-style: none;
}

.account-menu summary::-webkit-details-marker { display: none; }

.account-icon { width: 1.25rem; height: 1.25rem; display: block; }

.banner-stack:has(.account-menu[open]) { z-index: 4; }

.account-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 5;
  min-width: 11rem;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: #000;
  box-shadow: 5px -5px 15px 0 rgba(0, 0, 0, 0.25);
  padding: 6px 0;
}

.account-panel a,
.account-panel .link-button {
  display: block;
  width: 100%;
  padding: 8px 16px;
  color: #000;
  background: transparent;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
}

.top-bar .account-panel a,
.top-bar .account-panel .link-button { color: #000; }

.top-bar .account-panel a:hover,
.top-bar .account-panel .link-button:hover {
  color: #000;
  background: #e6e6e6;
}

.account-panel form { margin: 0; }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.return-link { margin-left: auto; white-space: nowrap; }

.who a, .back-latest a {
  color: #000;
  font-weight: 600;
  text-underline-offset: 2px;
}

.text-link {
  color: #008491;
  font-weight: 600;
  text-underline-offset: 2px;
}

.who a:hover, .back-latest a:hover, .text-link:hover { color: #00636d; }

.name, .secondary, .meta { color: #4c4c4c; }

.meta { font-size: 0.875rem; line-height: 1.4; margin: 0; }

.hash {
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", monospace;
  overflow-wrap: anywhere;
}

h1 { font-size: 2.22rem; font-weight: 800; line-height: 1.15; margin: 0; }
h2 { font-size: 1.22rem; font-weight: 800; line-height: 1.3; margin: 0; }
h3 { font-size: 1rem; font-weight: 600; margin: 0; }

.kicker {
  color: #00636d;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
}

.release {
  padding: 48px 0;
  border-top: 1px solid #e7e5e4;
}

.stack + .release {
  margin-top: 28px;
  padding-top: 28px;
}

.stack { display: flex; flex-direction: column; gap: 16px; padding-top: 24px; }

.downloads, .earlier { display: flex; flex-direction: column; gap: 16px; }

.earlier { margin-top: 32px; }

.artifact, .file-row { display: flex; flex-direction: column; gap: 8px; }

.file-row { margin-top: 24px; }

a.primary, button.primary {
  display: inline-block;
  width: fit-content;
  background: #008491;
  color: #fff;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 0;
  padding: 0.85em 1em;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

a.primary:hover, button.primary:hover { background: #00636d; }

a.secondary-button, button.secondary-button {
  display: inline-block;
  width: fit-content;
  background: #000;
  color: #fff;
  border: 1px solid #000;
  border-radius: 0;
  padding: 0.85em 1em;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

a.secondary-button:hover, button.secondary-button:hover { background: #333; color: #fff; }

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
}

.profile-grid .wide { grid-column: 1 / -1; }

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button-row form { margin: 0; }

.link-button {
  background: transparent;
  border: 0;
  padding: 0;
  color: #000;
  text-decoration: underline;
  text-underline-offset: 2px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.link-button:hover { color: #00636d; }

.danger { color: #7f1d1d; }

.expired { color: #7f1d1d; }

.notice {
  margin: 0;
  padding: 12px;
  border: 1px solid #d9d9d9;
}

.login-main {
  display: flex;
  justify-content: center;
}

.login-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: min(28rem, 100%);
  margin-top: 48px;
  padding: 32px;
  background: #fff;
  box-shadow: 5px -5px 15px 0 rgba(0, 0, 0, 0.25);
}

.login-card .stack { padding-top: 0; }

main.admin-page {
  max-width: none;
  padding: 0;
}

main.admin-page + .site-footer { margin-top: 0; }

.admin-home {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22rem;
  align-items: stretch;
  min-height: calc(100vh - 14rem);
}

.admin-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  padding: 32px 40px 48px;
}

.side-panel {
  display: flex;
  flex-direction: column;
  gap: 28px;
  justify-content: flex-start;
  margin: 10px;
  padding: 32px 28px 48px;
  background: #e6e6e6;
  border-left: 1px solid #d0d0d0;
}

.side-panel h2 {
  margin: 0;
  font-size: 1.22rem;
}

.switch-line {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.switch-line form { margin: 0; }

.switch {
  position: relative;
  flex: none;
  width: 44px;
  height: 26px;
  margin-top: 2px;
  padding: 3px;
  border: 0;
  border-radius: 13px;
  background: #b5b5b5;
  cursor: pointer;
}

.switch.is-on { background: #008491; }

.switch-knob {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
}

.switch.is-on .switch-knob { margin-left: 18px; }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.setting {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.side-panel p { margin: 0; }

.toast {
  position: fixed;
  z-index: 20;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: min(24rem, calc(100% - 32px));
  margin: 0;
  padding: 14px 14px 14px 16px;
  background: #111827;
  color: #fff;
  box-shadow: 5px -5px 15px 0 rgba(0, 0, 0, 0.25);
}

.toast p {
  margin: 0;
  color: #fff;
}

.toast-close {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}

.toast-close:hover { color: #d9d9d9; }

.secret {
  padding: 16px;
  border: 1px solid #000;
}

label { display: flex; flex-direction: column; gap: 8px; }

input, textarea {
  font: inherit;
  color: #000;
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 0;
  padding: 8px;
}

textarea { min-height: 6rem; }

.check { flex-direction: row; align-items: center; }

table { width: 100%; border-collapse: collapse; }

th, td {
  text-align: left;
  padding: 8px 8px 8px 0;
  border-bottom: 1px solid #d9d9d9;
  vertical-align: top;
}

.notes h2, .notes h3, .notes h4 { margin: 16px 0 8px; font-weight: 800; }
.notes p, .notes ul, .notes ol { margin: 8px 0; }
.notes ul, .notes ol { padding-left: 1.25rem; }
.notes li::marker { color: #00636d; }

a:focus, button:focus, input:focus, textarea:focus, summary:focus {
  outline: 2px solid #00636d;
  outline-offset: 2px;
}

summary { cursor: pointer; }

.wrap-wide { max-width: none; }

.page-intro { padding: 28px 0 8px; }
.page-intro h1 { font-size: 2.22rem; font-weight: 800; }
.page-intro p { margin: 8px 0 0; }

.catalog-slot { display: none; }
.catalog-slot:target,
.catalog:not(:has(.catalog-slot:target)) .catalog-slot.is-current { display: block; }
.catalog:has(.hide-check:checked) .kind-test,
.catalog:has(.hide-check:checked) .kind-patch { display: none; }
.catalog:has(.hide-check:checked):has(.kind-test:target) .catalog-slot.is-current.kind-major,
.catalog:has(.hide-check:checked):has(.kind-patch:target) .catalog-slot.is-current.kind-major { display: block; }
.catalog-slot:target { scroll-margin-top: 76px; }

.release-card {
  background: #fff;
  border: 0;
  border-radius: 0;
  padding: 24px;
  margin-top: 16px;
  box-shadow: 5px -5px 15px 0 rgba(0, 0, 0, 0.25);
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 20px;
}

.version-title {
  font-size: 2.22rem;
  font-weight: 800;
  line-height: 1.15;
  margin: 0;
}

.released { margin: 0; color: #4c4c4c; }

.os-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.os-pane {
  background: #f0f0f0;
  border: 1px solid #d9d9d9;
  border-radius: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.os-title { font-size: 0.875rem; letter-spacing: 0.02em; }

.os-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.os-copy { min-width: 0; }

.file-name {
  margin: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.empty-os { margin: 0; }

.os-extra { display: flex; flex-direction: column; gap: 4px; }

.download-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  white-space: nowrap;
}

.os-glyph { width: 1.5rem; height: 1.5rem; display: block; flex: none; }

.back-latest { margin: 16px 0 0; }

.release-card details { margin-top: 16px; }

.earlier-block, .files-block {
  margin-top: 40px;
  padding-top: 8px;
}

.earlier-block h2, .files-block h2 { margin-bottom: 4px; }
.earlier-block .secondary, .files-block .secondary { margin-top: 0; }

.version-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}

.hide-toggle { font-weight: 600; white-space: nowrap; }

.version-table { margin-top: 12px; }

.version-table th {
  font-size: 0.875rem;
  font-weight: 600;
  color: #4c4c4c;
}

.version-row { cursor: pointer; }
.version-row:hover { background: #f0f0f0; }

.version-table a.row-link {
  color: #000;
  font-weight: 600;
  text-decoration: none;
}

.version-table a.row-link:hover { color: #00636d; text-decoration: underline; }

.file-list { margin-top: 16px; border-top: 1px solid #d9d9d9; }

.file-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #d9d9d9;
}

.file-copy h3 { margin-bottom: 4px; }
.file-copy p { margin: 0; }

@media (max-width: 720px) {
  .os-grid { grid-template-columns: 1fr; }
  .os-main, .card-head, .file-line { flex-direction: column; align-items: flex-start; }
  .header-row { flex-direction: column; }
  .account-bar .header-row { flex-direction: row; align-items: center; }
  .wrap { padding: 0 16px; }
  .admin-main { padding-left: 16px; padding-right: 16px; }
  .admin-home { grid-template-columns: 1fr; min-height: 0; }
  .side-panel { border-left: 0; border-top: 1px solid #d0d0d0; }
  .profile-grid { grid-template-columns: 1fr; }
  .version-head { flex-direction: column; align-items: flex-start; }
}

.site-footer {
  background: #000;
  color: #fff;
  margin-top: 64px;
  padding: 56px 24px 72px;
}

.footer-inner {
  max-width: 72rem;
  margin: 0 auto;
}

.site-footer .footer-brand {
  margin: 0 0 40px;
  color: #fff;
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 18rem));
  gap: 28px 48px;
}

.site-footer h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.site-footer a {
  display: block;
  width: fit-content;
  margin-top: 18px;
  color: #fff;
  font-weight: 400;
  text-decoration: none;
}

.site-footer a:hover { text-decoration: underline; }

.site-footer .footer-role {
  margin: 2px 0 0;
  color: #c4c4c4;
  font-size: 0.875rem;
}
