/* =========================================================
   GUIDED SCENARIO CHOICE
   Page-specific CSS
   File: /assets/css/guided-scenario-choice.css

   Calm the Moment spacing model:
   body > #site-header
   main > section.gsc-page > .gsc-shell
   footer outside main
   ========================================================= */

.gsc-page {
  position: relative;
  width: 100%;
  padding: clamp(28px, 4vw, 54px) 0 clamp(96px, 10vw, 150px);
  background: transparent;
  color: var(--dld-ink);
  overflow: visible;
}

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

.gsc-page button {
  font: inherit;
}

.gsc-shell {
  width: min(1120px, calc(100% - 40px));
  max-width: 1120px;
  margin: 0 auto;
}

.gsc-page .resource-detail-breadcrumb {
  margin: 0 0 clamp(1.5rem, 2.6vw, 2rem);
}

.gsc-page .resource-detail-hero {
  width: 100%;
  max-width: 960px;
  margin: 0 auto clamp(2.25rem, 5vw, 4rem);
}

.gsc-facts,
.gsc-section,
.gsc-panel,
.gsc-card-grid {
  width: 100%;
  max-width: 100%;
  margin: 0 auto clamp(1.5rem, 3vw, 2.25rem);
}

.gsc-closing {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

/* =========================================================
   Facts
   ========================================================= */

.gsc-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.gsc-fact {
  min-height: 112px;
  padding: clamp(1.05rem, 3vw, 1.35rem);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(102, 227, 255, 0.08), transparent 34%),
    rgba(255, 255, 255, 0.06);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.gsc-fact span,
.gsc-eyebrow,
.gsc-label,
.gsc-card span {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 0.75rem;
  padding: 0.48rem 0.72rem;
  border: 1px solid rgba(102, 227, 255, 0.28);
  border-radius: 999px;
  background: rgba(102, 227, 255, 0.11);
  color: var(--dld-cyan);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.gsc-fact strong {
  display: block;
  color: var(--dld-ink);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

/* =========================================================
   Panels
   ========================================================= */

.gsc-section,
.gsc-panel,
.gsc-closing {
  padding: clamp(1.35rem, 4vw, 2.35rem);
  border: 1px solid var(--dld-line);
  border-radius: var(--dld-radius-lg);
  background: var(--dld-panel);
  box-shadow: var(--dld-shadow-soft);
  backdrop-filter: blur(16px);
}

.gsc-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(1.25rem, 4vw, 2.25rem);
  align-items: stretch;
}

.gsc-section-copy,
.gsc-panel-header {
  max-width: 860px;
}

.gsc-section h2,
.gsc-panel h2,
.gsc-closing h2 {
  margin: 0;
  color: var(--dld-ink);
  font-size: clamp(1.65rem, 3vw, 2.55rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
  font-weight: 800;
  text-wrap: balance;
}

.gsc-section-body {
  padding: clamp(1.05rem, 3vw, 1.35rem);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(102, 227, 255, 0.08), transparent 34%),
    rgba(255, 255, 255, 0.06);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.gsc-section-body p,
.gsc-panel-header p,
.gsc-closing p {
  margin: 0.85rem 0 0;
  color: var(--dld-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.gsc-section-body p:first-child,
.gsc-panel-header p:first-child,
.gsc-closing p:first-child {
  margin-top: 0;
}

/* =========================================================
   Scenario demo
   ========================================================= */

.gsc-page .ac-scenario-demo,
.gsc-page .gsc-demo {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
  padding: clamp(1.05rem, 3vw, 1.35rem);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(102, 227, 255, 0.08), transparent 34%),
    rgba(255, 255, 255, 0.06);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.gsc-page .ac-scenario-question,
.gsc-page .gsc-demo-question {
  max-width: none;
  margin: 0;
  padding: clamp(1.05rem, 3vw, 1.35rem);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 22px;
  background: rgba(3, 8, 18, 0.46);
  box-shadow: none;
}

.gsc-page .ac-scenario-label,
.gsc-page .gsc-label {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 0.75rem;
  padding: 0.48rem 0.72rem;
  border: 1px solid rgba(102, 227, 255, 0.28);
  border-radius: 999px;
  background: rgba(102, 227, 255, 0.11);
  color: var(--dld-cyan);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.gsc-page .ac-scenario-question h3,
.gsc-page .gsc-demo-question h3 {
  margin: 0;
  color: var(--dld-ink);
  font-size: clamp(1.25rem, 2.5vw, 1.9rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.gsc-page .ac-scenario-options,
.gsc-page .gsc-options {
  display: grid;
  gap: 0.75rem;
}

.gsc-page .ac-scenario-option,
.gsc-page .gsc-option {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  min-height: 54px;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--dld-ink);
  text-align: left;
  font-size: 0.94rem;
  font-weight: 850;
  line-height: 1.25;
  cursor: pointer;
  box-shadow: none;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.gsc-page .ac-scenario-option:hover,
.gsc-page .gsc-option:hover {
  transform: translateY(-2px);
  border-color: rgba(102, 227, 255, 0.42);
  background: rgba(102, 227, 255, 0.1);
}

.gsc-page .ac-scenario-option span,
.gsc-page .gsc-option span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(102, 227, 255, 0.14);
  color: var(--dld-cyan);
  font-size: 0.78rem;
  font-weight: 900;
}

.gsc-page .ac-scenario-option.active,
.gsc-page .gsc-option.active {
  color: #071321;
  border-color: transparent;
  background: linear-gradient(135deg, var(--dld-cyan), var(--dld-lime));
  box-shadow: 0 14px 28px rgba(102, 227, 255, 0.16);
}

.gsc-page .ac-scenario-option.active span,
.gsc-page .gsc-option.active span {
  background: rgba(7, 19, 33, 0.16);
  color: #071321;
}

.gsc-page .ac-scenario-feedback,
.gsc-page .gsc-feedback {
  display: none;
  margin: -0.2rem 0 0;
  padding: clamp(1.05rem, 3vw, 1.35rem);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(185, 255, 122, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.gsc-page .ac-scenario-feedback.active,
.gsc-page .gsc-feedback.active {
  display: block;
}

.gsc-page .ac-scenario-feedback strong,
.gsc-page .gsc-feedback strong {
  display: block;
  margin: 0 0 0.45rem;
  color: var(--dld-ink);
  font-size: 1rem;
  font-weight: 900;
}

.gsc-page .ac-scenario-feedback p,
.gsc-page .gsc-feedback p {
  margin: 0;
  color: var(--dld-muted);
  font-size: 0.94rem;
  line-height: 1.58;
}

/* =========================================================
   Cards
   ========================================================= */

.gsc-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.gsc-card {
  padding: clamp(1.05rem, 3vw, 1.35rem);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(102, 227, 255, 0.08), transparent 34%),
    rgba(255, 255, 255, 0.06);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.gsc-card h3 {
  margin: 0;
  color: var(--dld-ink);
  font-size: clamp(1.08rem, 2vw, 1.45rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.gsc-card p {
  margin: 0.65rem 0 0;
  color: var(--dld-muted);
  font-size: 0.94rem;
  line-height: 1.58;
}

/* =========================================================
   Code block
   ========================================================= */

.gsc-code {
  display: block;
  margin: 1.25rem 0 0;
  max-height: 720px;
  overflow: auto;
  padding: clamp(1rem, 3vw, 1.35rem);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: var(--dld-radius-lg);
  background: rgba(3, 8, 18, 0.92);
  color: rgba(226, 232, 240, 0.92);
  box-shadow: var(--dld-shadow);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.86rem;
  line-height: 1.65;
  white-space: pre;
}

.gsc-code code {
  color: inherit;
  font: inherit;
}

/* =========================================================
   Closing
   ========================================================= */

.gsc-closing {
  text-align: center;
  background:
    radial-gradient(circle at top left, rgba(102, 227, 255, 0.18), transparent 34%),
    radial-gradient(circle at bottom right, rgba(185, 255, 122, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(12, 28, 50, 0.92), rgba(6, 17, 31, 0.9));
}

.gsc-closing p {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================================================
   Motion preference
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .gsc-page .ac-scenario-option,
  .gsc-page .gsc-option {
    transition: none;
  }

  .gsc-page .ac-scenario-option:hover,
  .gsc-page .gsc-option:hover {
    transform: none;
  }
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 980px) {
  .gsc-facts,
  .gsc-section,
  .gsc-card-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   v2 LIGHT EDITORIAL MIGRATION
   ---------------------------------------------------------
   Text already uses the global --dld light tokens (dark), but
   the surfaces were translucent white over a dark page, and two
   bands (scenario question + closing) were dark with dark text.
   Give surfaces solid light backgrounds; flip the dark bands to
   light so their --dld-ink/--dld-muted text reads. The .gsc-code
   block stays dark (its code text is light).
   ========================================================= */
.gsc-page .gsc-fact,
.gsc-page .gsc-section-body,
.gsc-page .ac-scenario-demo,
.gsc-page .gsc-demo,
.gsc-page .gsc-card {
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.gsc-page .ac-scenario-feedback,
.gsc-page .gsc-feedback {
  background:
    radial-gradient(circle at top right, rgba(185, 255, 122, 0.16), transparent 42%),
    #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.gsc-page .ac-scenario-question,
.gsc-page .gsc-demo-question {
  background: #f8fafc;
}

.gsc-page .ac-scenario-option,
.gsc-page .gsc-option {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.10);
}

.gsc-page .ac-scenario-option:hover,
.gsc-page .gsc-option:hover {
  background: #eef6ff;
  border-color: rgba(37, 99, 235, 0.35);
}

.gsc-page .gsc-closing {
  background:
    radial-gradient(circle at top left, rgba(102, 227, 255, 0.10), transparent 36%),
    radial-gradient(circle at bottom right, rgba(185, 255, 122, 0.08), transparent 38%),
    #ffffff;
}

@media (max-width: 760px) {
  .gsc-page {
    padding-top: 24px;
  }

  .gsc-shell {
    width: min(100% - 32px, 1120px);
  }

  .gsc-page .resource-detail-actions {
    justify-content: flex-start;
  }

  .gsc-page .resource-detail-button {
    width: 100%;
  }

  .gsc-page .ac-scenario-option,
  .gsc-page .gsc-option {
    align-items: flex-start;
    border-radius: 24px;
  }
}
