/* schlau.app How-To: step cards in the style of the video */

/* Video at the top: rounded, with a shadow */
.md-typeset video {
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .25);
  margin: 1rem 0 2.5rem;
}

/* One card per step */
.md-typeset .howto-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  margin: 0 0 2.2rem;
  border-radius: 18px;
  overflow: hidden;
  background: var(--md-default-bg-color);
  box-shadow: 0 6px 24px rgba(15, 23, 42, .14);
  border: 1px solid rgba(59, 130, 246, .18);
}

/* Left: gradient panel with step label and title (like the video) */
.md-typeset .howto-head {
  background: linear-gradient(135deg, #3b82f6 0%, #22b8dc 100%);
  color: #fff;
  padding: 2.2rem 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.md-typeset .howto-label {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .85;
}
.md-typeset .howto-head h2 {
  color: #fff;
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.15;
  margin: .4rem 0 0;
}
.md-typeset .howto-head h2 .headerlink { color: rgba(255, 255, 255, .6); }

/* Right: screenshot on a quiet background */
.md-typeset .howto-shot {
  background: #f1f5f9;
  padding: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.md-typeset .howto-shot p { margin: 0; }
.md-typeset .howto-shot img {
  display: block;
  max-height: 560px;
  width: auto;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .22);
}
[data-md-color-scheme="slate"] .md-typeset .howto-shot { background: #1e293b; }

/* Wide screenshots (email, URL): title on top, image below at full width */
.md-typeset .howto-step.wide { grid-template-columns: 1fr; }
.md-typeset .howto-step.wide .howto-head { padding: 1.4rem 1.8rem; }
.md-typeset .howto-step.wide .howto-shot img { max-height: none; max-width: min(100%, 680px); }

/* Phone: stack the cards */
@media (max-width: 700px) {
  .md-typeset .howto-step { grid-template-columns: 1fr; }
  .md-typeset .howto-head { padding: 1.3rem 1.3rem; }
  .md-typeset .howto-head h2 { font-size: 1.5rem; }
  .md-typeset .howto-shot { padding: 1rem; }
  .md-typeset .howto-shot img { max-height: 480px; }
}
