.guide-page {
  --guide-primary: #0f766e;
  --guide-primary-dark: #115e59;
  --guide-accent: #f2b84b;
  --guide-card: #ffffff;
  --guide-muted: #64748b;
  --guide-border: #dbe7e5;
  --guide-danger: #b4232a;
  --guide-info: #2563eb;
  color: #0f172a;
}

.guide-hero {
  background: linear-gradient(135deg, var(--guide-primary-dark), var(--guide-primary));
  color: #fff;
  border-radius: 18px;
  padding: clamp(24px, 4vw, 42px);
  margin-bottom: 22px;
  box-shadow: 0 14px 40px rgba(15, 118, 110, .14);
}

.guide-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  gap: 24px;
  align-items: center;
}

.guide-eyebrow {
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 800;
  opacity: .9;
}

.guide-hero h1 {
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.08;
  margin: .35em 0 .45em;
}

.guide-lead {
  font-size: 1.1rem;
  max-width: 860px;
  margin: 0;
  opacity: .95;
}

.guide-hero-card,
.guide-card,
.guide-mockup {
  background: var(--guide-card);
  border: 1px solid var(--guide-border);
  border-radius: 14px;
  padding: 20px;
}

.guide-hero-card {
  background: rgba(255, 255, 255, .13);
  border-color: rgba(255, 255, 255, .28);
}

.guide-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  background: #e8f5f2;
  color: var(--guide-primary-dark);
  font-weight: 800;
  font-size: .82rem;
  margin: 3px 5px 3px 0;
}

.guide-tag.warn { background: #fff2d2; color: #6d4b00; }
.guide-tag.info { background: #eaf2fd; color: var(--guide-info); }

.guide-notice,
.guide-info-box,
.guide-danger-box {
  border-radius: 13px;
  padding: 16px 18px;
  margin: 18px 0;
}

.guide-notice {
  display: flex;
  gap: 14px;
  background: #fff9eb;
  border: 1px solid #f6d58e;
  color: #3b2b08;
}

.guide-info-box {
  background: #eff7ff;
  border: 1px solid #bfdbf5;
  border-left: 6px solid var(--guide-info);
}

.guide-danger-box {
  background: #fff5f5;
  border: 1px solid #efb9bb;
  border-left: 6px solid var(--guide-danger);
}

.guide-toc {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 24px;
}

.guide-toc a {
  display: block;
  background: #fff;
  border: 1px solid var(--guide-border);
  border-radius: 12px;
  padding: 11px 13px;
  color: var(--guide-primary-dark);
  text-decoration: none;
  font-weight: 700;
}

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

.guide-page h2 {
  font-size: clamp(1.45rem, 2.4vw, 2.2rem);
  margin: 32px 0 14px;
  color: var(--guide-primary-dark);
}

.guide-page h3 {
  font-size: 1.2rem;
  margin: 0 0 12px;
  color: var(--guide-primary-dark);
}

.guide-page li { margin: .35rem 0; }

.guide-steps,
.guide-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.guide-steps { counter-reset: guide-step; }

.guide-steps li,
.guide-checklist li {
  background: #fff;
  border: 1px solid var(--guide-border);
  border-radius: 12px;
  padding: 12px 14px;
}

.guide-steps li {
  counter-increment: guide-step;
  padding-left: 52px;
  position: relative;
}

.guide-steps li::before {
  content: counter(guide-step);
  position: absolute;
  left: 14px;
  top: 13px;
  width: 27px;
  height: 27px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--guide-primary);
  color: #fff;
  font-weight: 900;
}

.guide-checklist li {
  display: flex;
  gap: 10px;
}

.guide-checklist li::before {
  content: "✓";
  flex: 0 0 25px;
  height: 25px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: #e8f5f2;
  color: #24764e;
  font-weight: 900;
}

.guide-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 13px;
  border: 1px solid var(--guide-border);
  background: #fff;
}

.guide-table th,
.guide-table td {
  padding: 13px 14px;
  text-align: left;
  border-bottom: 1px solid var(--guide-border);
  vertical-align: top;
}

.guide-table th {
  background: #e8f5f2;
  color: var(--guide-primary-dark);
}

.guide-table tr:last-child td { border-bottom: 0; }

.guide-mockup svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  background: #f9fcfb;
}

.guide-caption,
.guide-footer-note {
  color: var(--guide-muted);
  font-size: .9rem;
}

.theme-dark .guide-page {
  color: #e5e7eb;
}

.theme-dark .guide-card,
.theme-dark .guide-mockup,
.theme-dark .guide-toc a,
.theme-dark .guide-steps li,
.theme-dark .guide-checklist li,
.theme-dark .guide-table {
  background: #0f172a;
  border-color: #334155;
  color: #e5e7eb;
}

.theme-dark .guide-page h2,
.theme-dark .guide-page h3,
.theme-dark .guide-toc a {
  color: #5eead4;
}

.theme-dark .guide-table th {
  background: #123631;
  color: #99f6e4;
}

@media (max-width: 900px) {
  .guide-hero-grid,
  .guide-grid,
  .guide-mockups {
    grid-template-columns: 1fr;
  }
  .guide-toc {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .guide-toc {
    grid-template-columns: 1fr;
  }
}
