
:root {
  --hls-header-bg: rgba(2, 10, 23, .94);
  --hls-footer-bg: #020914;
  --hls-border: rgba(118, 199, 246, .20);
  --hls-text: #f7fbff;
  --hls-muted: #aebfd2;
  --hls-blue: #69c8ff;
  --hls-violet: #a981f2;
  --hls-gold: #efb66b;
  --hls-shell-width: 1380px;
}

html {
  scroll-padding-top: 86px;
}

body.hls-menu-open {
  overflow: hidden;
}

.hls-site-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  border-bottom: 1px solid var(--hls-border);
  background: var(--hls-header-bg);
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.hls-header-inner {
  display: flex;
  width: min(calc(100% - 34px), var(--hls-shell-width));
  min-height: 76px;
  align-items: center;
  gap: 26px;
  margin-inline: auto;
}

.hls-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  color: var(--hls-text);
  text-decoration: none;
}

.hls-brand img {
  display: block;
  width: auto;
  height: 51px;
  object-fit: contain;
  filter: drop-shadow(0 7px 16px rgba(0,0,0,.28));
}

.hls-brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hls-brand-name {
  font-size: .91rem;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.01em;
  white-space: nowrap;
}

.hls-brand-tagline {
  margin-top: 4px;
  color: #90a9c2;
  font-size: .65rem;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hls-nav {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
}

.hls-nav a {
  position: relative;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 9px 10px;
  border-radius: 10px;
  color: #b9cadb;
  text-decoration: none;
  font-size: .77rem;
  font-weight: 820;
  line-height: 1.1;
  text-align: center;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.hls-nav a:hover,
.hls-nav a:focus-visible {
  color: #fff;
  background: rgba(105, 200, 255, .09);
  transform: translateY(-1px);
}

.hls-nav a[aria-current="page"] {
  color: #fff;
  background: linear-gradient(135deg, rgba(44, 149, 216, .25), rgba(125, 91, 219, .20));
  box-shadow: inset 0 0 0 1px rgba(112, 202, 255, .18);
}

.hls-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 4px;
  left: 10px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--hls-blue), var(--hls-violet));
}

.hls-menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(113, 199, 246, .25);
  border-radius: 12px;
  color: #e9f7ff;
  background: rgba(10, 36, 66, .66);
  cursor: pointer;
}

.hls-menu-toggle svg {
  width: 24px;
  height: 24px;
}

.hls-menu-toggle .hls-close-icon {
  display: none;
}

.hls-menu-toggle[aria-expanded="true"] .hls-menu-icon {
  display: none;
}

.hls-menu-toggle[aria-expanded="true"] .hls-close-icon {
  display: block;
}

.hls-site-footer {
  position: relative;
  z-index: 10;
  overflow: hidden;
  border-top: 1px solid var(--hls-border);
  color: var(--hls-text);
  background:
    radial-gradient(circle at 14% 0%, rgba(42, 142, 210, .11), transparent 25rem),
    radial-gradient(circle at 87% 80%, rgba(148, 91, 209, .09), transparent 25rem),
    var(--hls-footer-bg);
}

.hls-footer-inner {
  width: min(calc(100% - 34px), var(--hls-shell-width));
  margin-inline: auto;
  padding: 58px 0 30px;
}

.hls-footer-grid {
  display: grid;
  grid-template-columns: minmax(250px, 1.45fr) repeat(3, minmax(145px, .75fr));
  gap: 42px;
}

.hls-footer-brand {
  max-width: 390px;
}

.hls-footer-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hls-footer-logo img {
  width: auto;
  height: 67px;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.30));
}

.hls-footer-logo strong {
  display: block;
  font-size: 1.06rem;
  line-height: 1.1;
}

.hls-footer-logo span {
  display: block;
  margin-top: 5px;
  color: #92a9c0;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hls-footer-brand p {
  margin: 20px 0 0;
  color: var(--hls-muted);
  font-size: .91rem;
  line-height: 1.7;
}

.hls-footer-column h2 {
  margin: 0 0 17px;
  color: #dff3ff;
  font-size: .73rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hls-footer-links {
  display: grid;
  gap: 11px;
}

.hls-footer-links a {
  color: var(--hls-muted);
  text-decoration: none;
  font-size: .87rem;
  font-weight: 700;
  line-height: 1.25;
  transition: color .2s ease, transform .2s ease;
}

.hls-footer-links a:hover,
.hls-footer-links a:focus-visible {
  color: #fff;
  transform: translateX(3px);
}

.hls-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 43px;
  padding-top: 23px;
  border-top: 1px solid rgba(132, 190, 225, .13);
  color: #8299b0;
  font-size: .76rem;
  line-height: 1.5;
}

.hls-footer-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hls-footer-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6bd5ac;
  box-shadow: 0 0 12px rgba(107,213,172,.72);
}

.hls-page-main {
  min-height: calc(100vh - 76px);
}

/* Hub pages */
.hls-hub {
  min-height: 100vh;
  color: #f7fbff;
  background:
    radial-gradient(circle at 12% 18%, rgba(50, 145, 214, .14), transparent 28rem),
    radial-gradient(circle at 88% 70%, rgba(145, 86, 202, .11), transparent 28rem),
    linear-gradient(180deg, #020914, #06172d 56%, #020914);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.hls-hub *,
.hls-hub *::before,
.hls-hub *::after {
  box-sizing: border-box;
}

.hls-hub a {
  color: inherit;
}

.hls-hub-container {
  width: min(calc(100% - 34px), 1180px);
  margin-inline: auto;
}

.hls-hub-hero {
  position: relative;
  overflow: hidden;
  padding: 94px 0 72px;
  border-bottom: 1px solid rgba(119, 196, 239, .16);
}

.hls-hub-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2,9,21,.95), rgba(2,9,21,.34)),
    radial-gradient(circle at 78% 44%, rgba(91,194,255,.15), transparent 24rem);
}

.hls-hub-hero-content {
  position: relative;
  z-index: 1;
  max-width: 790px;
}

.hls-hub-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  border: 1px solid rgba(112, 202, 255, .25);
  border-radius: 999px;
  color: #bfeaff;
  background: rgba(9, 35, 64, .55);
  font-size: .69rem;
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.hls-hub-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hls-blue);
  box-shadow: 0 0 12px var(--hls-blue);
}

.hls-hub h1 {
  margin: 23px 0 0;
  font-size: clamp(2.7rem, 7vw, 5.3rem);
  line-height: .98;
  letter-spacing: -.06em;
  text-wrap: balance;
}

.hls-hub-lead {
  max-width: 700px;
  margin: 24px 0 0;
  color: #bdcadd;
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  line-height: 1.75;
}

.hls-hub-section {
  padding: 70px 0 85px;
}

.hls-hub-heading {
  max-width: 750px;
  margin-bottom: 32px;
}

.hls-hub-heading h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.04;
  letter-spacing: -.045em;
}

.hls-hub-heading p {
  margin: 15px 0 0;
  color: #aebfd2;
  line-height: 1.7;
}

.hls-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.hls-resource-card {
  --card-accent: 105, 200, 255;
  position: relative;
  display: flex;
  min-height: 285px;
  flex-direction: column;
  overflow: hidden;
  padding: 27px 24px 24px;
  border: 1px solid rgba(var(--card-accent), .23);
  border-radius: 20px;
  background:
    radial-gradient(circle at 85% 5%, rgba(var(--card-accent), .15), transparent 15rem),
    linear-gradient(180deg, rgba(7,28,55,.92), rgba(4,17,35,.92));
  box-shadow: 0 22px 58px rgba(0,0,0,.27), inset 0 1px rgba(255,255,255,.05);
}

.hls-resource-card.violet { --card-accent: 177, 127, 239; }
.hls-resource-card.gold { --card-accent: 239, 182, 107; }
.hls-resource-card.green { --card-accent: 100, 213, 172; }
.hls-resource-card.pink { --card-accent: 235, 126, 166; }

.hls-resource-label {
  color: rgb(var(--card-accent));
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.hls-resource-card h3 {
  margin: 17px 0 0;
  font-size: 1.38rem;
  line-height: 1.18;
  letter-spacing: -.025em;
}

.hls-resource-card p {
  margin: 14px 0 24px;
  color: #aebfd2;
  font-size: .94rem;
  line-height: 1.65;
}

.hls-resource-link {
  display: inline-flex;
  width: fit-content;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 10px 15px;
  border: 1px solid rgba(var(--card-accent), .25);
  border-radius: 11px;
  color: #f7fbff;
  background: rgba(var(--card-accent), .10);
  text-decoration: none;
  font-size: .73rem;
  font-weight: 900;
  letter-spacing: .055em;
  text-transform: uppercase;
  transition: transform .2s ease, background .2s ease;
}

.hls-resource-link:hover {
  transform: translateY(-2px);
  background: rgba(var(--card-accent), .18);
}

.hls-hub-note {
  margin-top: 28px;
  padding: 18px 20px;
  border: 1px solid rgba(119, 196, 239, .15);
  border-radius: 15px;
  color: #aebfd2;
  background: rgba(5, 21, 41, .62);
  font-size: .89rem;
  line-height: 1.65;
}

@media (max-width: 1120px) {
  .hls-brand-tagline {
    display: none;
  }

  .hls-nav a {
    padding-inline: 8px;
    font-size: .72rem;
  }
}

@media (max-width: 900px) {
  .hls-header-inner {
    min-height: 70px;
  }

  .hls-menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .hls-nav {
    position: fixed;
    top: 70px;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9998;
    display: grid;
    align-content: start;
    justify-content: stretch;
    gap: 5px;
    overflow-y: auto;
    padding: 20px 18px 42px;
    background:
      radial-gradient(circle at 80% 15%, rgba(115, 78, 203, .14), transparent 18rem),
      rgba(2, 10, 23, .985);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity .22s ease, visibility .22s ease, transform .22s ease;
  }

  .hls-nav.hls-nav-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .hls-nav a {
    min-height: 52px;
    justify-content: flex-start;
    padding: 13px 15px;
    border: 1px solid rgba(114, 193, 237, .10);
    font-size: .88rem;
    text-align: left;
  }

  .hls-nav a[aria-current="page"]::after {
    top: 11px;
    right: auto;
    bottom: 11px;
    left: 5px;
    width: 3px;
    height: auto;
  }

  .hls-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hls-footer-brand {
    grid-column: 1 / -1;
  }

  .hls-hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 590px) {
  html {
    scroll-padding-top: 70px;
  }

  .hls-header-inner,
  .hls-footer-inner {
    width: min(calc(100% - 24px), var(--hls-shell-width));
  }

  .hls-brand img {
    height: 45px;
  }

  .hls-brand-name {
    max-width: 190px;
    overflow: hidden;
    font-size: .82rem;
    text-overflow: ellipsis;
  }

  .hls-footer-grid {
    grid-template-columns: 1fr;
    gap: 31px;
  }

  .hls-footer-brand {
    grid-column: auto;
  }

  .hls-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .hls-hub-container {
    width: min(calc(100% - 24px), 1180px);
  }

  .hls-hub-hero {
    padding: 73px 0 55px;
  }

  .hls-hub h1 {
    font-size: clamp(2.6rem, 14vw, 4rem);
  }

  .hls-hub-section {
    padding: 55px 0 67px;
  }

  .hls-hub-grid {
    grid-template-columns: 1fr;
  }

  .hls-resource-card {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hls-nav,
  .hls-nav a,
  .hls-resource-link {
    transition: none !important;
  }
}


/* =========================================================
   MOBILE NAVIGATION FIX
   The menu becomes a full-height panel below the header.
   ========================================================= */
@media (max-width: 900px) {
  .hls-site-header {
    z-index: 2147483000;
    background: #020a17;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .hls-header-inner {
    position: relative;
  }

  .hls-nav {
    position: absolute;
    top: 100%;
    right: calc((100vw - 100%) / -2);
    bottom: auto;
    left: calc((100vw - 100%) / -2);
    z-index: 2147482999;
    width: 100vw;
    height: calc(100dvh - 70px);
    min-height: calc(100vh - 70px);
    max-height: calc(100dvh - 70px);
    align-content: start;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding:
      20px
      max(18px, env(safe-area-inset-right))
      max(42px, env(safe-area-inset-bottom))
      max(18px, env(safe-area-inset-left));
    border-top: 1px solid rgba(118, 199, 246, .15);
    background:
      radial-gradient(circle at 82% 10%, rgba(115, 78, 203, .16), transparent 19rem),
      radial-gradient(circle at 12% 88%, rgba(50, 145, 214, .12), transparent 20rem),
      #020a17;
    box-shadow: 0 24px 55px rgba(0, 0, 0, .48);
  }

  .hls-nav a {
    width: 100%;
    min-height: 54px;
    flex: 0 0 auto;
    background: rgba(8, 28, 52, .72);
  }

  .hls-nav a + a {
    margin-top: 2px;
  }
}

@media (max-width: 590px) {
  .hls-nav {
    height: calc(100dvh - 70px);
    max-height: calc(100dvh - 70px);
  }
}
