/* Shared layout refresh based on the supplied redesign references. */
:root {
  --lit-refresh-shadow: 0 28px 80px rgba(0, 0, 0, .45);
  --lit-refresh-radius: 26px;
  --lit-refresh-ease: cubic-bezier(.2, .8, .2, 1);
  --lit-refresh-pulse: #28ff92;
}

.metro-bg-frame {
  overflow: hidden;
}

.metro-bg-frame::after {
  content: "";
  position: absolute;
  inset: -18% -10% auto -10%;
  height: 64vh;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 59, 54, .18), transparent 28%),
    radial-gradient(circle at 92% 8%, rgba(47, 139, 255, .16), transparent 32%),
    radial-gradient(circle at 50% 105%, rgba(255, 211, 61, .09), transparent 30%),
    linear-gradient(110deg, rgba(255, 59, 54, .09), rgba(46, 139, 255, .08), rgba(255, 211, 61, .06));
  filter: blur(60px);
  opacity: .78;
  mix-blend-mode: screen;
  animation: litHueDrift 16s ease-in-out infinite alternate;
  z-index: 1;
}

@keyframes litHueDrift {
  from { transform: translate3d(-2%, 0, 0) rotate(-1deg); }
  to { transform: translate3d(2%, 3%, 0) rotate(1deg); }
}

.lit-info-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12) !important;
  border-radius: var(--lit-refresh-radius) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .035)) !important;
  box-shadow: var(--lit-refresh-shadow) !important;
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  isolation: isolate;
}

.lit-info-card::before {
  content: "";
  position: absolute;
  right: -55px;
  bottom: -55px;
  width: 175px;
  height: 175px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(40, 255, 146, .13), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.lit-info-card > * {
  position: relative;
  z-index: 1;
}

.lit-info-card:hover {
  border-color: rgba(255, 255, 255, .22) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .045)) !important;
}

nav.lit-nav .nav-glass {
  width: min(1120px, calc(100vw - 28px));
}

nav.lit-nav .nav-links a {
  transition:
    color .18s var(--lit-refresh-ease),
    transform .18s var(--lit-refresh-ease),
    background .18s var(--lit-refresh-ease),
    box-shadow .18s var(--lit-refresh-ease);
}

nav.lit-nav .nav-links a:hover,
nav.lit-nav .nav-links a:focus-visible,
nav.lit-nav .nav-links a[aria-current="page"] {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 8px 22px rgba(0, 0, 0, .2);
}

[data-lit-footer-mount] {
  position: relative;
  z-index: 1;
  margin-top: auto;
}

body > footer,
[data-lit-footer-mount] > footer {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 36px 0 44px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: #9facbd;
}

body > footer .wrap,
[data-lit-footer-mount] > footer .wrap {
  width: min(1220px, calc(100vw - 42px));
  margin-inline: auto;
}

body > footer .footGrid,
[data-lit-footer-mount] > footer .footGrid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

body > footer .footGrid strong,
[data-lit-footer-mount] > footer .footGrid strong {
  color: #fff;
}

body > footer .footerLines,
[data-lit-footer-mount] > footer .footerLines {
  display: flex;
  gap: 6px;
}

body > footer .footerMark,
[data-lit-footer-mount] > footer .footerMark {
  display: grid;
  justify-items: end;
  gap: 8px;
}

body > footer .footerCredit,
[data-lit-footer-mount] > footer .footerCredit {
  color: rgba(159, 172, 189, .72);
  font: 700 11px/1.3 "Fira Mono", ui-monospace, monospace;
  letter-spacing: .02em;
  text-align: right;
}

body > footer .footerCredit a,
[data-lit-footer-mount] > footer .footerCredit a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .18s var(--lit-refresh-ease), border-color .18s var(--lit-refresh-ease);
}

body > footer .footGrid .footerCredit strong,
[data-lit-footer-mount] > footer .footGrid .footerCredit strong {
  color: inherit;
  font-weight: 900;
}

body > footer .footerCredit a:hover,
body > footer .footerCredit a:focus-visible,
[data-lit-footer-mount] > footer .footerCredit a:hover,
[data-lit-footer-mount] > footer .footerCredit a:focus-visible {
  color: #c7d2e2;
  border-bottom-color: rgba(199, 210, 226, .42);
  outline: none;
}

body > footer .footerLines i,
[data-lit-footer-mount] > footer .footerLines i {
  display: block;
  width: 50px;
  height: 6px;
  border-radius: 999px;
  background: var(--c);
}
