.ssx-generated-page {
  --ssx-page-ink: #111827;
  --ssx-page-muted: #5f6b7a;
  --ssx-page-line: #e5e9f0;
  --ssx-page-card: #ffffff;
  --ssx-page-soft: #f6f8fb;
  --ssx-page-accent: #f05a28;
  --ssx-page-accent-dark: #c93e12;
  box-sizing: border-box;
  width: min(1180px, 100%);
  margin: 2rem auto 4rem;
  color: var(--ssx-page-ink);
  font-family: inherit;
  line-height: 1.65;
}

.ssx-generated-page *,
.ssx-generated-page *::before,
.ssx-generated-page *::after {
  box-sizing: border-box;
}

.ssx-page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(2rem, 6vw, 4.75rem);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 10%, rgba(240, 90, 40, 0.36), transparent 30%),
    radial-gradient(circle at 10% 100%, rgba(53, 112, 255, 0.24), transparent 35%),
    linear-gradient(135deg, #101827 0%, #172338 52%, #0c1220 100%);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.2);
}

.ssx-page-hero::after {
  position: absolute;
  z-index: -1;
  top: -120px;
  right: -90px;
  width: 310px;
  height: 310px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(255, 255, 255, 0.035), 0 0 0 84px rgba(255, 255, 255, 0.025);
  content: "";
}

.ssx-page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  color: #ffb08f;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-transform: uppercase;
}

.ssx-page-eyebrow::before {
  width: 26px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.ssx-page-hero h2 {
  max-width: 800px;
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.03;
}

.ssx-page-hero > p {
  max-width: 760px;
  margin: 1.25rem 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.75;
}

.ssx-page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.8rem;
}

.ssx-page-hero__meta span {
  padding: 0.52rem 0.78rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  backdrop-filter: blur(10px);
}

.ssx-team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.ssx-team-card {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--ssx-page-line);
  border-radius: 24px;
  color: var(--ssx-page-ink);
  background: var(--ssx-page-card);
  box-shadow: 0 12px 38px rgba(15, 23, 42, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.ssx-team-card:hover {
  transform: translateY(-4px);
  border-color: rgba(240, 90, 40, 0.35);
  box-shadow: 0 20px 52px rgba(15, 23, 42, 0.13);
}

.ssx-team-card__media {
  min-height: 250px;
  background: linear-gradient(160deg, #e9edf4, #f7f8fb);
}

.ssx-team-card__media a {
  display: block;
  width: 100%;
  height: 100%;
}

.ssx-team-card__avatar {
  display: block;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.02);
}

.ssx-team-card__body {
  display: flex;
  min-width: 0;
  padding: 1.5rem;
  flex-direction: column;
}

.ssx-team-card__role {
  color: var(--ssx-page-accent-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  line-height: 1.3;
  text-transform: uppercase;
}

.ssx-team-card h3 {
  margin: 0.38rem 0 0;
  color: var(--ssx-page-ink);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.ssx-team-card h3 a,
.ssx-team-card h3 a:hover {
  color: inherit;
  text-decoration: none;
}

.ssx-team-card__body > p {
  margin: 0.85rem 0 1.25rem;
  color: var(--ssx-page-muted);
  font-size: 0.93rem;
  line-height: 1.7;
}

.ssx-team-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--ssx-page-line);
  font-size: 0.78rem;
  line-height: 1.3;
}

.ssx-team-card footer > span {
  color: var(--ssx-page-muted);
}

.ssx-team-card footer a {
  color: var(--ssx-page-accent-dark);
  font-weight: 800;
  text-decoration: none;
}

.ssx-team-card footer a:hover {
  color: var(--ssx-page-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ssx-sitemap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.ssx-sitemap-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--ssx-page-line);
  border-radius: 24px;
  background: var(--ssx-page-card);
  box-shadow: 0 12px 38px rgba(15, 23, 42, 0.07);
}

.ssx-sitemap-card:first-child {
  grid-column: 1 / -1;
}

.ssx-sitemap-card > header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.45rem 1.55rem;
  border-bottom: 1px solid var(--ssx-page-line);
  background: linear-gradient(135deg, #fff, var(--ssx-page-soft));
}

.ssx-sitemap-card__count {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  flex: 0 0 48px;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, var(--ssx-page-accent), var(--ssx-page-accent-dark));
  font-size: 0.88rem;
  font-weight: 900;
  box-shadow: 0 9px 22px rgba(240, 90, 40, 0.22);
}

.ssx-sitemap-card h3 {
  margin: 0;
  color: var(--ssx-page-ink);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.ssx-sitemap-card header p {
  margin: 0.25rem 0 0;
  color: var(--ssx-page-muted);
  font-size: 0.85rem;
  line-height: 1.45;
}

.ssx-sitemap-card ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0.6rem;
  list-style: none;
}

.ssx-sitemap-card:not(:first-child) ul {
  grid-template-columns: 1fr;
}

.ssx-sitemap-card li {
  min-width: 0;
  margin: 0;
  padding: 0;
}

.ssx-sitemap-card li a {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.78rem 0.9rem;
  border-radius: 12px;
  color: var(--ssx-page-ink);
  font-size: 0.91rem;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
  transition: color 150ms ease, background 150ms ease;
}

.ssx-sitemap-card li a:hover {
  color: var(--ssx-page-accent-dark);
  background: #fff3ed;
  text-decoration: none;
}

.ssx-sitemap-card li a > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.ssx-sitemap-link__arrow {
  color: var(--ssx-page-accent);
  font-size: 1rem;
  transition: transform 150ms ease;
}

.ssx-sitemap-card li a:hover .ssx-sitemap-link__arrow {
  transform: translate(2px, -2px);
}

.ssx-empty-state {
  display: grid;
  gap: 0.35rem;
  padding: 2rem;
  border: 1px solid var(--ssx-page-line);
  border-radius: 20px;
  color: var(--ssx-page-muted);
  background: var(--ssx-page-soft);
  text-align: center;
}

.ssx-empty-state strong {
  color: var(--ssx-page-ink);
  font-size: 1.1rem;
}

@media (max-width: 980px) {
  .ssx-team-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .ssx-generated-page {
    margin-top: 1rem;
  }

  .ssx-page-hero {
    border-radius: 22px;
  }

  .ssx-team-card {
    grid-template-columns: 118px minmax(0, 1fr);
    border-radius: 20px;
  }

  .ssx-team-card__media {
    min-height: 220px;
  }

  .ssx-team-card__body {
    padding: 1.15rem;
  }

  .ssx-team-card footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .ssx-sitemap-grid,
  .ssx-sitemap-card ul {
    grid-template-columns: 1fr;
  }

  .ssx-sitemap-card:first-child {
    grid-column: auto;
  }
}

@media (max-width: 480px) {
  .ssx-team-card {
    grid-template-columns: 1fr;
  }

  .ssx-team-card__media {
    height: 280px;
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ssx-team-card,
  .ssx-sitemap-card li a,
  .ssx-sitemap-link__arrow {
    transition: none;
  }
}
