/* Genesis Files Page. Scoped to [genesis_files_page]. */
.genesis-files {
  color-scheme: dark;
  --green: #00ff66;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.74);
  --dim: rgba(255, 255, 255, 0.56);
  --max: 1200px;
  --radius: 14px;
  --font: Montserrat, "Segoe UI", Arial, sans-serif;
}

.genesis-files * {
  box-sizing: border-box;
}

.genesis-files {
  width: 100%;
  min-width: 320px;
  min-height: auto !important;
  position: relative;
  z-index: 4;
  isolation: isolate;
  overflow: visible !important;
  padding-bottom: 64px !important;
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  background: transparent !important;
  scroll-behavior: smooth;
}

.genesis-files a {
  color: inherit;
  text-decoration: none;
}

.genesis-files .content-shell {
  width: 100% !important;
  max-width: var(--max) !important;
  margin: 420px auto 0 !important;
  position: relative;
  z-index: 1;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(24, 52, 50, 0.24), rgba(10, 14, 15, 0.54)),
    rgba(12, 16, 17, 0.42);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(7px);
}

.genesis-files .page-pill {
  width: fit-content;
  min-height: 34px;
  margin: 0 auto 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.genesis-files .page-pill::before,
.genesis-files .page-pill::after {
  content: "";
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 102, 0.54));
}

.genesis-files .page-pill::after {
  background: linear-gradient(90deg, rgba(0, 255, 102, 0.54), transparent);
}

.genesis-files .hero {
  padding: 0 0 26px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.genesis-files .hero-copy {
  width: min(100%, 820px);
  min-width: 0;
  margin: 0 auto;
  padding: 0;
}

.genesis-files h1,
.genesis-files h2,
.genesis-files h3,
.genesis-files p {
  margin-top: 0;
  color: #ffffff !important;
}

.genesis-files h1 {
  max-width: 820px;
  margin: 0 auto 16px;
  font-size: 40px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0;
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.42);
}

.genesis-files .lead {
  max-width: 720px;
  margin: 0 auto;
  color: var(--muted) !important;
  font-size: 16px;
  font-weight: 500;
}

.genesis-files .download-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.genesis-files .download-card {
  min-height: 124px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.genesis-files .download-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 255, 102, 0.34);
  background: rgba(0, 255, 102, 0.045);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

.genesis-files .download-top {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  align-items: center;
}

.genesis-files .source-icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
}

.genesis-files .source-icon img {
  max-width: 30px;
  max-height: 30px;
  object-fit: contain;
}

.genesis-files .download-text,
.genesis-files .component-copy,
.genesis-files .step-copy {
  min-width: 0;
}

.genesis-files .download-card h2 {
  margin: 0 0 3px;
  font-size: 17px;
  line-height: 1.18;
  font-weight: 800;
}

.genesis-files .download-card p {
  margin: 0;
  color: var(--dim) !important;
  font-size: 13px;
  font-weight: 600;
}

.genesis-files .main-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
  margin-top: 22px;
}

.genesis-files .panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
  overflow: hidden;
}

.genesis-files .panel-head {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.genesis-files .panel-head h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.16;
  font-weight: 800;
}

.genesis-files .component-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.genesis-files .component-card {
  min-height: 102px;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px;
  background: rgba(11, 17, 18, 0.66);
  transition: background-color 0.18s ease;
}

.genesis-files .component-card:hover {
  background: rgba(0, 255, 102, 0.055);
}

.genesis-files .component-logo {
  width: 72px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
}

.genesis-files .component-logo img {
  max-width: 100%;
  max-height: 44px;
  object-fit: contain;
  filter: brightness(1.15);
}

.genesis-files .component-card h3 {
  margin: 0 0 3px;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 800;
}

.genesis-files .component-card p {
  margin: 0;
  color: var(--dim) !important;
  font-size: 12px;
  font-weight: 600;
}

.genesis-files .steps {
  flex: 1;
  display: grid;
  gap: 1px;
  background: var(--line);
}

.genesis-files .step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  background: rgba(11, 17, 18, 0.66);
}

.genesis-files .step-index {
  width: 34px;
  height: 34px;
  display: block;
  justify-self: center;
  align-self: center;
  padding: 0;
  border: 1px solid rgba(0, 255, 102, 0.28);
  border-radius: 999px;
  color: var(--green);
  background: rgba(0, 255, 102, 0.08);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 32px;
  text-align: center;
}

.genesis-files .step.is-required {
  position: relative;
  background:
    linear-gradient(90deg, rgba(0, 255, 102, 0.105), rgba(11, 17, 18, 0.66) 46%),
    rgba(11, 17, 18, 0.66);
}

.genesis-files .step.is-required::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 2px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 12px rgba(0, 255, 102, 0.28);
}

.genesis-files .step.is-required .step-index {
  border-color: rgba(0, 255, 102, 0.44);
  background: rgba(0, 255, 102, 0.12);
  color: var(--green);
  box-shadow: 0 0 16px rgba(0, 255, 102, 0.1);
}

.genesis-files .step.is-required h3 {
  color: rgba(245, 255, 248, 0.96) !important;
}

.genesis-files .step h3 {
  margin: 0 0 4px;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 800;
}

.genesis-files .step p {
  margin: 0;
  color: var(--dim) !important;
  font-size: 13px;
  font-weight: 600;
}

body.genesis-files-page-view #page-header {
  z-index: 2 !important;
}

body.genesis-files-page-view #page-header::after {
  content: "" !important;
  position: absolute !important;
  left: 108px !important;
  right: 0 !important;
  bottom: -1px !important;
  z-index: 0 !important;
  height: 1px !important;
  pointer-events: none !important;
  background: rgb(213, 240, 250) !important;
}

body.genesis-files-page-view #page-header .w-image.ush_image_2 {
  z-index: 1 !important;
  pointer-events: none !important;
}

body.genesis-files-page-view #page-content {
  position: relative !important;
  z-index: 4 !important;
}

@media (max-width: 1080px) {
  .genesis-files .content-shell {
    margin-top: 420px !important;
    padding: 24px;
  }

  .genesis-files .main-layout {
    grid-template-columns: 1fr;
  }

  .genesis-files .download-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .genesis-files .content-shell {
    width: calc(100% - 22px) !important;
    margin-top: 420px !important;
    padding: 18px;
  }

  .genesis-files h1 {
    font-size: 31px;
  }

  .genesis-files .download-grid,
  .genesis-files .component-grid {
    grid-template-columns: 1fr;
  }

  .genesis-files .download-card {
    min-height: 118px;
  }

  .genesis-files .component-card {
    grid-template-columns: 64px 1fr;
  }
}

@media (max-width: 420px) {
  .genesis-files .content-shell {
    margin-top: 420px !important;
  }
}
