/* Waypoint Welcome Guide stylesheet ownership. Loaded in the documented cascade. */

.welcome-guide-modal {
  width: min(980px, calc(100vw - 32px));
  max-height: min(860px, calc(100vh - 32px));
  overflow: auto;
  padding: 28px;
}

.welcome-guide-header {
  padding-right: 42px;
}

.welcome-guide-kicker {
  color: var(--accent);
  font: 700 11px/1.2 "JetBrains Mono", monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.welcome-guide-header h2 {
  margin: 7px 0 6px;
  font-size: clamp(25px, 3vw, 34px);
}

.welcome-guide-header p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.welcome-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.welcome-guide-card {
  display: flex;
  min-width: 0;
  min-height: 285px;
  padding: 20px;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: color-mix(in srgb, var(--panel), transparent 8%);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
}

.welcome-guide-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 13px;
  border: 1px solid color-mix(in srgb, var(--accent), transparent 66%);
  border-radius: 13px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent), transparent 88%);
}

.welcome-guide-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.welcome-guide-card h3 {
  margin: 0 0 5px;
  font-size: 18px;
}

.welcome-guide-card > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.welcome-guide-card ul {
  margin: 14px 0 18px;
  padding-left: 18px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.55;
}

.welcome-guide-card li::marker {
  color: var(--accent);
}

.welcome-guide-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.welcome-guide-card-actions button {
  min-height: 38px;
  padding: 8px 12px;
  font-size: 12px;
}

.welcome-guide-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.welcome-guide-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 720px) {
  .welcome-guide-modal {
    width: min(520px, calc(100vw - 20px));
    max-height: calc(100vh - 20px);
    padding: 22px 16px 18px;
  }

  .welcome-guide-grid {
    grid-template-columns: 1fr;
  }

  .welcome-guide-card {
    min-height: 0;
  }

  .welcome-guide-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .welcome-guide-modal {
    scroll-behavior: auto;
  }
}
