:root {
  color-scheme: light;
  --guide-bg: #f8fafc;
  --guide-paper: #ffffff;
  --guide-ink: #0f172a;
  --guide-muted: #475569;
  --guide-line: rgba(15, 23, 42, 0.12);
  --guide-blue: #2563eb;
  --guide-blue-soft: #eff6ff;
  --guide-amber: #b45309;
  --guide-amber-soft: #fffbeb;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.guide-page {
  margin: 0;
  background: var(--guide-bg);
  color: var(--guide-ink);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}

.guide-skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: #fff;
  color: #1d4ed8;
  font-weight: 800;
  transform: translateY(-160%);
}

.guide-skip-link:focus {
  transform: translateY(0);
}

.guide-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--guide-line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.guide-header__inner,
.guide-shell {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.guide-header__inner {
  display: flex;
  min-height: 4.75rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.guide-brand {
  color: var(--guide-ink);
  font-weight: 900;
  text-decoration: none;
}

.guide-brand span {
  display: block;
  color: #64748b;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.guide-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem 1.15rem;
}

.guide-nav a {
  color: #334155;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
}

.guide-nav a:hover,
.guide-nav a:focus-visible,
.guide-content a:hover,
.guide-content a:focus-visible {
  color: #1d4ed8;
}

.guide-hero {
  padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(2.5rem, 6vw, 5rem);
  background:
    radial-gradient(circle at 84% 16%, rgba(59, 130, 246, 0.18), transparent 28%),
    linear-gradient(145deg, #ffffff, #eff6ff 68%, #fff7ed);
}

.guide-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.5rem;
  color: #64748b;
  font-size: 0.84rem;
}

.guide-breadcrumbs a {
  color: #1d4ed8;
}

.guide-kicker {
  margin: 0;
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.guide-hero h1 {
  max-width: 900px;
  margin: 1rem 0 1.25rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.guide-lead {
  max-width: 800px;
  margin: 0;
  color: var(--guide-muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.75;
}

.guide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  margin-top: 1.75rem;
  color: #64748b;
  font-size: 0.85rem;
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 2rem;
  align-items: start;
  padding-block: clamp(2.5rem, 6vw, 5rem);
}

.guide-content {
  min-width: 0;
  padding: clamp(1.25rem, 4vw, 3rem);
  border: 1px solid var(--guide-line);
  border-radius: 1.75rem;
  background: var(--guide-paper);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.guide-content section + section {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--guide-line);
}

.guide-content h2 {
  margin: 0 0 1rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  line-height: 1.15;
}

.guide-content h3 {
  margin: 1.75rem 0 0.7rem;
  font-size: 1.15rem;
}

.guide-content p,
.guide-content li {
  color: #334155;
  line-height: 1.78;
}

.guide-content a {
  color: #1d4ed8;
  font-weight: 700;
  text-underline-offset: 0.18rem;
}

.guide-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.guide-card {
  padding: 1.15rem;
  border: 1px solid #bfdbfe;
  border-radius: 1.15rem;
  background: var(--guide-blue-soft);
}

.guide-card h3 {
  margin-top: 0;
}

.guide-callout {
  margin: 1.5rem 0;
  padding: 1.15rem 1.25rem;
  border-left: 5px solid var(--guide-blue);
  border-radius: 0 1rem 1rem 0;
  background: var(--guide-blue-soft);
}

.guide-callout--warning {
  border-left-color: #f59e0b;
  background: var(--guide-amber-soft);
}

.guide-callout strong {
  display: block;
  margin-bottom: 0.35rem;
}

.guide-checklist li + li,
.guide-sources li + li {
  margin-top: 0.7rem;
}

.guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.guide-button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border-radius: 0.9rem;
  background: var(--guide-blue);
  color: #fff !important;
  font-weight: 900;
  text-decoration: none;
}

.guide-button--secondary {
  border: 1px solid #bfdbfe;
  background: #fff;
  color: #1d4ed8 !important;
}

.guide-aside {
  position: sticky;
  top: 6rem;
  padding: 1.25rem;
  border: 1px solid var(--guide-line);
  border-radius: 1.25rem;
  background: #fff;
}

.guide-aside strong {
  display: block;
  margin-bottom: 0.8rem;
}

.guide-aside a {
  display: block;
  padding: 0.55rem 0;
  color: #334155;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 820px) {
  .guide-header__inner {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 1rem;
  }

  .guide-nav {
    justify-content: flex-start;
  }

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

  .guide-aside {
    position: static;
    grid-row: 1;
  }
}

@media (max-width: 560px) {
  .guide-header__inner,
  .guide-shell {
    width: min(100% - 1.25rem, 1120px);
  }

  .guide-nav a {
    font-size: 0.78rem;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
