.guide-page {
  color: var(--ink-900);
  background: #fff;
}

.guide-hero {
  padding: 76px 0 64px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 18%, rgba(0, 200, 224, 0.23), transparent 28%),
    linear-gradient(135deg, var(--blue-950), var(--blue-800));
}

.guide-breadcrumb {
  margin: 0 0 24px;
  color: #c8d8ea;
  font-size: 14px;
}

.guide-breadcrumb a { color: #fff; }
.guide-hero .eyebrow { color: #83edfa; }

.guide-hero h1 {
  max-width: 920px;
  margin: 0;
  color: #fff;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.guide-hero .guide-lede {
  max-width: 850px;
  margin: 24px 0 0;
  color: #e5eef7;
  font-size: clamp(18px, 2.4vw, 23px);
  line-height: 1.55;
}

.guide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.guide-meta span {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #dceaf7;
  font-size: 13px;
  font-weight: 750;
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 52px;
  align-items: start;
  padding-top: 62px;
  padding-bottom: 74px;
}

.guide-content { min-width: 0; }
.guide-content section { margin-bottom: 54px; scroll-margin-top: 110px; }
.guide-content h2 { margin: 0 0 18px; color: var(--blue-950); font-size: clamp(28px, 4vw, 40px); line-height: 1.14; }
.guide-content h3 { margin: 28px 0 10px; color: var(--blue-900); font-size: 21px; line-height: 1.3; }
.guide-content p, .guide-content li { color: var(--ink-700); font-size: 17px; line-height: 1.78; }
.guide-content ul, .guide-content ol { padding-left: 24px; }
.guide-content li + li { margin-top: 9px; }

.guide-answer,
.guide-warning,
.guide-reference {
  margin: 0 0 34px;
  padding: 24px 26px;
  border-radius: var(--radius);
}

.guide-answer { border-left: 5px solid var(--cyan-500); background: #edfafd; }
.guide-warning { border-left: 5px solid var(--orange-600); background: #fff4ed; }
.guide-reference { border-left: 5px solid #8aa0b8; background: var(--panel); }
.guide-answer strong, .guide-warning strong, .guide-reference strong { color: var(--blue-950); }

.guide-formula {
  overflow-x: auto;
  margin: 24px 0;
  padding: 22px;
  border: 1px solid #b9d4e8;
  border-radius: var(--radius);
  color: var(--blue-950);
  background: #f7fbfe;
  font-family: Consolas, "Courier New", monospace;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.7;
}

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

.guide-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 30px rgba(6, 24, 47, 0.07);
}

.guide-card h3 { margin-top: 0; }
.guide-card p:last-child { margin-bottom: 0; }

.guide-table-wrap { overflow-x: auto; margin: 24px 0; }
.guide-table { width: 100%; border-collapse: collapse; min-width: 650px; }
.guide-table th, .guide-table td { padding: 14px 15px; border: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.55; }
.guide-table th { color: #fff; background: var(--blue-900); }
.guide-table td { color: var(--ink-700); }

.guide-steps { counter-reset: guide-step; list-style: none; padding: 0 !important; }
.guide-steps li { position: relative; min-height: 48px; padding-left: 58px; }
.guide-steps li::before {
  counter-increment: guide-step;
  content: counter(guide-step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 2px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--blue-700);
  font-size: 12px;
  font-weight: 900;
}

.guide-sidebar {
  position: sticky;
  top: 104px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.guide-sidebar h2 { margin: 0 0 14px; color: var(--blue-950); font-size: 18px; }
.guide-sidebar a { display: block; padding: 9px 0; border-bottom: 1px solid #d7e0e8; color: var(--blue-800); font-size: 14px; font-weight: 750; }
.guide-sidebar a:last-child { border-bottom: 0; }

.guide-faq details { margin-bottom: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.guide-faq summary { padding: 18px 48px 18px 20px; color: var(--blue-950); cursor: pointer; font-weight: 850; }
.guide-faq details p { margin: 0; padding: 0 20px 20px; }

.guide-sources a { overflow-wrap: anywhere; }
.guide-cta { padding: 44px 0; color: #fff; background: var(--blue-950); }
.guide-cta .container { display: flex; justify-content: space-between; gap: 30px; align-items: center; }
.guide-cta h2 { margin: 0 0 8px; color: #fff; }
.guide-cta p { margin: 0; color: #c9d7e6; }

@media (max-width: 900px) {
  .guide-layout { grid-template-columns: 1fr; }
  .guide-sidebar { position: static; order: -1; }
  .guide-grid { grid-template-columns: 1fr; }
  .guide-cta .container { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 640px) {
  .guide-hero { padding: 52px 0 46px; }
  .guide-layout { padding-top: 40px; gap: 30px; }
  .guide-answer, .guide-warning, .guide-reference { padding: 20px; }
}
