/* AV8_SHARED_SITE_SHELL_V02
   AIVI8IVIA shared environment shell.
   Black=space; metal=structure; blue=creative/live energy;
   gold=authority/focal significance; red=critical/recording only.
*/
:root {
  color-scheme: dark;
  --av8-space-0: #05070b;
  --av8-space-1: #09101a;
  --av8-space-2: #101a27;
  --av8-smoke: rgba(11, 18, 28, .80);
  --av8-smoke-strong: rgba(7, 12, 19, .94);
  --av8-ice: #9fe8ff;
  --av8-electric: #46c8ff;
  --av8-silver: #c5d0da;
  --av8-chrome: #8d9cab;
  --av8-gold: #d2b16c;
  --av8-critical: #ee4d62;
  --av8-text: #edf7ff;
  --av8-muted: #9baaba;
  --av8-line: rgba(159, 232, 255, .22);
  --av8-focus: #9fe8ff;
  --av8-shell-height: 58px;
  --av8-radius: 14px;
}

html { background: var(--av8-space-0); }

body.av8-shell-active {
  min-height: 100dvh;
  color: var(--av8-text);
  background:
    radial-gradient(1100px 700px at 50% -12%, rgba(70,200,255,.10), transparent 64%),
    linear-gradient(180deg, var(--av8-space-1), var(--av8-space-0) 62%);
}

body.av8-shell-active::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    linear-gradient(115deg, transparent 0 40%, rgba(159,232,255,.025) 51%, transparent 62%),
    radial-gradient(800px 400px at 78% 78%, rgba(127,108,255,.035), transparent 70%);
}

#av8-global-shell {
  position: sticky;
  top: 0;
  z-index: 2147482000;
  width: 100%;
  border-bottom: 1px solid var(--av8-line);
  background: color-mix(in srgb, var(--av8-smoke-strong) 94%, transparent);
  backdrop-filter: blur(14px) saturate(125%);
  -webkit-backdrop-filter: blur(14px) saturate(125%);
}

#av8-global-shell .av8-shell-inner {
  min-height: var(--av8-shell-height);
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 8px 14px;
}

#av8-global-shell .av8-mark {
  flex: 0 0 auto;
  color: var(--av8-silver);
  text-decoration: none;
  font: 800 18px/1 system-ui, sans-serif;
  letter-spacing: .08em;
}

#av8-global-shell .av8-mark-symbol {
  color: var(--av8-ice);
  margin-right: .36rem;
}

#av8-global-shell nav {
  min-width: 0;
  flex: 1 1 auto;
  overflow-x: auto;
  scrollbar-width: thin;
  overscroll-behavior-inline: contain;
}

#av8-global-shell .av8-tabs {
  display: flex;
  width: max-content;
  min-width: 100%;
  align-items: center;
  gap: 4px;
}

#av8-global-shell .av8-tab,
#av8-global-shell .av8-utility {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 7px 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--av8-muted);
  text-decoration: none;
  white-space: nowrap;
  font: 700 12px/1 system-ui, sans-serif;
  letter-spacing: .08em;
  transition: color .16s ease, border-color .16s ease, background .16s ease, transform .16s ease;
}

#av8-global-shell .av8-tab:hover,
#av8-global-shell .av8-tab:focus-visible,
#av8-global-shell .av8-utility:hover,
#av8-global-shell .av8-utility:focus-visible {
  color: var(--av8-text);
  border-color: var(--av8-line);
  background: rgba(159,232,255,.055);
}

#av8-global-shell .av8-tab[aria-current="page"] {
  color: var(--av8-ice);
  border-color: color-mix(in srgb, var(--av8-electric) 46%, transparent);
  background: linear-gradient(180deg, rgba(70,200,255,.11), rgba(70,200,255,.025));
  box-shadow: inset 0 -1px rgba(159,232,255,.28);
}

#av8-global-shell .av8-support {
  color: var(--av8-gold);
}

#av8-global-shell a:focus-visible,
#av8-site-footer a:focus-visible,
.av8-context-notice a:focus-visible {
  outline: 2px solid var(--av8-focus);
  outline-offset: 3px;
}

.av8-context-notice {
  box-sizing: border-box;
  width: min(1180px, calc(100% - 28px));
  margin: 12px auto;
  padding: 10px 13px;
  border-left: 2px solid var(--av8-electric);
  background: rgba(9,16,26,.70);
  color: var(--av8-muted);
  font: 500 12px/1.45 system-ui, sans-serif;
}

.av8-context-notice strong { color: var(--av8-text); }
.av8-context-notice a { color: var(--av8-ice); }

#av8-site-footer {
  box-sizing: border-box;
  width: min(1180px, calc(100% - 28px));
  margin: 42px auto 18px;
  padding: 15px 0 8px;
  border-top: 1px solid var(--av8-line);
  color: var(--av8-muted);
  font: 500 12px/1.5 system-ui, sans-serif;
}

#av8-site-footer .av8-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 7px;
}

#av8-site-footer a {
  color: var(--av8-silver);
  text-decoration: none;
}

#av8-site-footer a:hover { color: var(--av8-ice); }

.av8-portal-page {
  box-sizing: border-box;
  width: min(1120px, calc(100% - 30px));
  margin: 7vh auto 10vh;
  padding: clamp(22px, 4vw, 52px);
  border: 1px solid var(--av8-line);
  border-radius: var(--av8-radius);
  background:
    linear-gradient(145deg, rgba(159,232,255,.035), transparent 30%),
    rgba(8,13,21,.76);
  box-shadow: 0 28px 90px rgba(0,0,0,.28);
}

.av8-portal-kicker {
  color: var(--av8-ice);
  font: 700 12px/1.3 system-ui, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.av8-portal-page h1 {
  margin: 8px 0 12px;
  font: 700 clamp(32px, 5vw, 64px)/1 system-ui, sans-serif;
  letter-spacing: -.035em;
}

.av8-portal-page > p {
  max-width: 72ch;
  color: var(--av8-muted);
  font: 500 16px/1.6 system-ui, sans-serif;
}

.av8-destination-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px,100%),1fr));
  gap: 12px;
  margin-top: 28px;
}

.av8-destination {
  display: block;
  min-height: 110px;
  padding: 18px;
  border: 1px solid var(--av8-line);
  border-radius: 12px;
  color: var(--av8-text);
  text-decoration: none;
  background: linear-gradient(145deg, rgba(159,232,255,.045), rgba(255,255,255,.01));
}

.av8-destination:hover,
.av8-destination:focus-visible {
  border-color: color-mix(in srgb, var(--av8-electric) 55%, transparent);
  background: linear-gradient(145deg, rgba(70,200,255,.095), rgba(255,255,255,.015));
}

.av8-destination strong {
  display: block;
  margin-bottom: 8px;
  color: var(--av8-ice);
  letter-spacing: .04em;
}

.av8-destination span {
  color: var(--av8-muted);
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 760px) {
  :root { --av8-shell-height: 54px; }

  #av8-global-shell .av8-shell-inner {
    padding-inline: 10px;
  }

  #av8-global-shell .av8-mark {
    font-size: 15px;
  }

  #av8-global-shell .av8-tab,
  #av8-global-shell .av8-utility {
    min-height: 42px;
    padding-inline: 10px;
  }

  .av8-context-notice,
  #av8-site-footer {
    width: calc(100% - 20px);
  }

  .av8-portal-page {
    width: calc(100% - 20px);
    padding: 22px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #av8-global-shell *,
  .av8-destination {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}