/* ===== Base reset ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

/* ===== Base page ===== */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f7fb;     /* like index.html */
  color: #111827;
  line-height: 1.;
}

/* Links */
a {
  color: #2563eb;
  text-decoration: none;
}
a:hover { text-decoration: underline; }

/* ===== Layout wrapper ===== */
.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
  padding: 2rem 1.25rem 3rem;
}

/* ===== Header / navigation ===== */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
  position: static;   /* <-- not sticky by default */
  top: auto;
  z-index: 20;
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.logo-main {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: #111827;
}

.logo-badge {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #2563eb;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.logo-tagline {
  font-size: 0.8rem;
  color: #6b7280;
}

/* nav links */
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.nav-link {
  font-size: 0.95rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  color: #4b5563;
}

.nav-link:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
  text-decoration: none;
}

.nav-link-active {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

/* sr-only helper */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* hamburger toggle */
.nav-toggle {
  display: none; /* shown on mobile */
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #111827;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 1.05rem;
  cursor: pointer;
}

.nav-toggle:hover {
  background: #f3f4f6;
}

/* ===== Page title/intro ===== */
.page-header {
  background: linear-gradient(135deg, #eff6ff, #f4f4ff);
  border-radius: 1.25rem;
  padding: 1.6rem 1.4rem;
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.12);
  margin-bottom: 1.5rem;
}

.page-header h1 {
  margin: 0 0 0.5rem;
  font-size: 2rem;
  line-height: 1.2;
}

.page-header p {
  margin: 0.25rem 0 0;
  color: #4b5563;
  max-width: 52rem;
}

/* ===== Cards / blocks ===== */
.card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.1rem 1.1rem 1.2rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
  margin: 1.25rem 0;
}

/* ===== Code blocks (HTML snippets) ===== */
/* ✅ Black rectangle background + white HTML text */
pre {
  background: #000;
  color: #fff;
  border: 1px solid #222;
  border-radius: 10px;
  padding: 16px 14px;
  margin: 12px 0;
  overflow-x: auto;
  white-space: pre;
  tab-size: 2;
}

/* Ensure any nested <code> stays white */
pre code {
  color: inherit;
}

/* Optional: if code blocks appear as <code> without <pre> (rare), keep them readable */
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* ===== Responsive header/nav ===== */

/* Mobile (hamburger) */
@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    line-height: 1;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .main-nav { display: none !important; }
  .main-nav.is-open {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    padding: 12px 0;
  }

  body.no-sticky-mobile .site-wrapper .site-header {
    position: static !important;
    top: auto !important;
  }
}

/* Desktop (normal nav) */
@media (min-width: 769px) {
  html { font-size: 110%; }
  .nav-toggle { display: none; }

  .main-nav {
    display: flex !important;
    gap: 14px;
    align-items: center;
    width: auto;
  }
}

/* Your existing classes mapped to the new card look */
.step-list {}