/* Atlas page shell, panel frame, headings, and view switcher styles. */

body[data-page="atlas"] #atlas-directory {
  max-width: 1720px;
  margin: 0 auto;
  padding: clamp(1.1rem, 2.4vw, 2rem) clamp(0.9rem, 2.4vw, 1.5rem) 3rem;
}

body[data-page="atlas"] #atlas-directory .sr-hero {
  text-align: center;
  max-width: 980px;
  margin: 0 auto 1.2rem;
  padding: clamp(1rem, 2vw, 1.4rem);
  border-radius: 16px;
  border: 1px solid rgba(var(--atlas-accent-rgb), 0.22);
  background:
    radial-gradient(circle at 86% 14%, var(--atlas-hero-glow), transparent 34%),
    linear-gradient(180deg, rgba(7, 8, 11, 0.78), rgba(10, 10, 12, 0.52));
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(var(--atlas-accent-rgb), 0.05) inset;
}

body[data-page="atlas"] #atlas-directory .sr-title {
  margin: 0;
  color: rgba(255, 246, 230, 0.98);
  font-size: clamp(1.7rem, 3.6vw, 2.28rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-wrap: balance;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

body[data-page="atlas"] #atlas-directory .sr-lead {
  margin: 0.55rem auto 0;
  max-width: 70ch;
  color: rgba(255, 246, 229, 0.9);
  font-size: clamp(0.95rem, 2.4vw, 1.05rem);
  line-height: 1.6;
}

body[data-page="atlas"] #atlas-directory .sr-switcher {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  width: 100%;
  margin: 0 auto 1rem;
}

body[data-page="atlas"] #atlas-directory .sr-switcher a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0.62rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--atlas-accent-rgb), 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

body[data-page="atlas"] #atlas-directory .sr-switcher a:hover {
  transform: translateY(-1px);
}

body[data-page="atlas"] #atlas-directory .sr-switcher a:hover,
body[data-page="atlas"] #atlas-directory .sr-switcher a:focus-visible,
body[data-page="atlas"] #atlas-directory .sr-switcher a.is-current {
  border-color: rgba(var(--atlas-accent-rgb), 0.34);
  background: rgba(var(--atlas-accent-rgb), 0.1);
  box-shadow: 0 0 0 1px rgba(var(--atlas-accent-rgb), 0.08) inset;
}

body[data-page="atlas"] #atlas-directory .sr-block {
  margin: 0 auto 1.75rem;
  width: min(100%, 910px);
  box-sizing: border-box;
  padding: clamp(0.7rem, 1.2vw, 0.95rem);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle at 84% 8%, rgba(247, 185, 114, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.38));
}

body[data-page="atlas"] #atlas-directory .sr-panel {
  width: min(100%, 1200px);
  padding: clamp(0.95rem, 2vw, 1.35rem);
  border-color: rgba(255, 225, 182, 0.16);
  background:
    radial-gradient(circle at 84% 8%, rgba(166, 119, 77, 0.2), transparent 42%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.4));
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 243, 217, 0.04) inset;
}

body[data-page="atlas"] #atlas-directory .sr-panel-head {
  display: grid;
  justify-items: center;
  width: 100%;
  margin-bottom: clamp(1rem, 2vw, 1.35rem);
  text-align: center;
}

body[data-page="atlas"] #atlas-directory .sr-panel-kicker {
  display: block;
  width: 100%;
  margin: 0;
  color: rgba(255, 224, 156, 0.94);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

body[data-page="atlas"] #atlas-directory .sr-panel .sr-title {
  display: block;
  width: 100%;
  margin: 0.28rem auto 0;
  text-align: center;
}

body[data-page="atlas"] #atlas-directory .sr-panel .sr-lead {
  display: block;
  width: 100%;
  max-width: 65ch;
  margin-inline: auto;
  text-align: center;
}

body[data-page="atlas"] #atlas-directory .sr-panel .atlas-banner-grid {
  margin-top: 0;
}

body[data-page="atlas"] #atlas-directory .category-title {
  margin: 0;
  text-wrap: balance;
}

body[data-page="atlas"] #atlas-directory .sr-subtitle {
  margin: 0.5rem auto 1.1rem;
  color: rgba(255, 244, 223, 0.88);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.55;
}

body[data-page="atlas"][data-sr-view="roles"] #atlas-directory > .sr-block {
  max-width: 1200px;
}

@media (max-width: 1024px) {
  body[data-page="atlas"] #atlas-directory {
    padding-inline: 0.82rem;
  }

  body[data-page="atlas"] #atlas-directory .sr-hero,
  body[data-page="atlas"] #atlas-directory .sr-block {
    border-radius: 12px;
    padding: 0.85rem;
  }

  body[data-page="atlas"] #atlas-directory .sr-switcher {
    margin-bottom: 0.9rem;
  }

  body[data-page="atlas"] #atlas-directory .sr-switcher a {
    min-height: 2.5rem;
    padding: 0.55rem 0.86rem;
    font-size: 0.88rem;
  }
}

@media (max-width: 640px) {
  body[data-page="atlas"] #atlas-directory {
    padding-inline: clamp(0.2rem, 1vw, 0.36rem);
  }

  body[data-page="atlas"] #atlas-directory .sr-hero,
  body[data-page="atlas"] #atlas-directory .sr-block {
    padding: clamp(0.58rem, 2.2vw, 0.78rem);
  }

  body[data-page="atlas"] #atlas-directory .sr-title {
    font-size: clamp(1.6rem, 7vw, 2rem);
  }

  body[data-page="atlas"] #atlas-directory .sr-lead,
  body[data-page="atlas"] #atlas-directory .sr-subtitle {
    font-size: 0.92rem;
    line-height: 1.5;
  }

  body[data-page="atlas"] #atlas-directory .sr-switcher {
    gap: 0.45rem;
  }

  body[data-page="atlas"] #atlas-directory .sr-switcher a {
    width: 100%;
  }
}
