/*
 * Shared base styles for the landing designs A–D: the switcher, the
 * consent banner, the release list and the legal block. Each page themes them
 * through these custom properties (set them on :root in the page's CSS) and
 * may override any rule; nothing here sets a page-level layout.
 */
:root {
  --v-bg: #111;
  --v-fg: #f2f2f2;
  --v-muted: #9a9a9a;
  --v-line: rgba(255, 255, 255, 0.16);
  --v-accent: #ff6a1a;
  --v-on-accent: #111;
  --v-surface: rgba(17, 17, 17, 0.86);
  --v-font: system-ui, sans-serif;
  --v-mono: ui-monospace, Menlo, Consolas, monospace;
  --v-radius: 999px;
}

/* ---- switcher (top right) ---- */
.vswitch {
  position: fixed;
  z-index: 90;
  top: calc(10px + env(safe-area-inset-top, 0px));
  right: calc(10px + env(safe-area-inset-right, 0px));
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border: 1px solid var(--v-line);
  border-radius: var(--v-radius);
  background: var(--v-surface);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font: 600 11px/1 var(--v-mono);
  color: var(--v-fg);
  max-width: calc(100vw - 20px);
}
.vswitch__g { display: flex; align-items: center; gap: 3px; }
.vswitch__sep { opacity: 0.4; }
.vswitch a {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  border-radius: var(--v-radius);
  color: inherit;
  text-decoration: none;
  text-transform: uppercase;
  border: 1px solid transparent;
  opacity: 0.75;
}
.vswitch a:hover { opacity: 1; border-color: var(--v-line); }
.vswitch a[aria-current='true'] { opacity: 1; background: var(--v-accent); color: var(--v-on-accent); }
.vswitch a:focus-visible,
.vlegal a:focus-visible,
.vlegal button:focus-visible,
.vconsent button:focus-visible { outline: 2px solid var(--v-accent); outline-offset: 2px; }

/* ---- consent banner ---- */
.vconsent {
  position: fixed;
  z-index: 95;
  left: max(12px, env(safe-area-inset-left, 0px));
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  width: min(420px, calc(100vw - 24px));
  padding: 16px 18px;
  border: 1px solid var(--v-line);
  border-radius: 10px;
  background: var(--v-surface);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--v-fg);
  font: 14px/1.5 var(--v-font);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.vconsent__title { margin: 0 0 6px; font-weight: 700; }
.vconsent__body { margin: 0 0 12px; color: var(--v-muted); font-size: 13px; }
.vconsent__body a { color: inherit; }
.vconsent__row { display: flex; gap: 8px; justify-content: flex-end; }
.vconsent button {
  font: 600 13px/1 var(--v-font);
  padding: 9px 14px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid var(--v-line);
  background: transparent;
  color: var(--v-fg);
}
.vconsent .vconsent__yes { background: var(--v-accent); border-color: var(--v-accent); color: var(--v-on-accent); }

/* ---- release list ---- */
.vrel { border-top: 1px solid var(--v-line); }
.vrel:last-of-type { border-bottom: 1px solid var(--v-line); }
.vrel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  padding: 12px 0;
  cursor: pointer;
  list-style: none;
}
.vrel__head::-webkit-details-marker { display: none; }
.vrel__tag { font: 600 13px/1.3 var(--v-mono); color: var(--v-accent); }
.vrel__date { font: 12px/1.3 var(--v-mono); color: var(--v-muted); }
.vrel__name { flex: 1 1 100%; min-width: 0; font-weight: 600; }
.vrel__notes { margin: 0 0 14px; color: var(--v-muted); line-height: 1.55; max-width: 68ch; }
.vrel__empty { color: var(--v-muted); }
.vrel__all { display: inline-block; margin-top: 12px; color: var(--v-accent); font: 600 13px/1 var(--v-mono); }

/* ---- legal block ---- */
.vlegal { display: grid; gap: 10px; font: 12.5px/1.6 var(--v-font); color: var(--v-muted); }
.vlegal__links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.vlegal a,
.vlegal button {
  color: var(--v-fg);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--v-line);
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}
.vlegal__note { margin: 0; max-width: 90ch; }
.vlegal__copy { margin: 0; }

@media (max-width: 520px) {
  .vconsent { padding: 12px 14px; font-size: 13px; }
  .vconsent__body { font-size: 12px; margin-bottom: 10px; }
  .vconsent__title { margin-bottom: 4px; }
  .vswitch { gap: 5px; padding: 4px 6px; font-size: 10px; }
  .vswitch a { min-width: 18px; height: 18px; padding: 0 2px; }
}

/* ---- travelling nav (A, C, D): the open menu locks the page scroll ----
   Only the root: overflow on body as well would make body a scroll container
   and pull D's sticky bar back to the top of the document. */
html.vnav-lock { overflow: hidden; }
