.guide-page {
  background:
    linear-gradient(180deg, rgba(21, 30, 55, 0.48) 0, rgba(10, 13, 20, 0) 520px),
    var(--bg-dark);
}

.guide-page a:focus-visible,
.guide-page button:focus-visible {
  outline: 3px solid rgba(34, 211, 238, 0.65);
  outline-offset: 3px;
}

.guide-page .nav-links a[aria-current="page"] {
  color: #ffffff;
}

.guide-main {
  padding-top: 80px;
}

.guide-hero {
  padding-top: 66px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-light);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--text-dim);
  font-size: 0.88rem;
}

.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: #ffffff;
}

.guide-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: #67e8f9;
  font-size: 0.84rem;
  font-weight: 700;
}

.guide-eyebrow::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary-emerald);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.75);
  content: "";
}

.guide-hero h1 {
  max-width: 900px;
  margin-bottom: 20px;
  color: #ffffff;
  font-size: 3rem;
  line-height: 1.18;
  letter-spacing: 0;
}

.guide-lead {
  max-width: 780px;
  color: #b6c3d5;
  font-size: 1.12rem;
  line-height: 1.8;
}

.guide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 24px;
  color: var(--text-dim);
  font-size: 0.86rem;
}

.guide-meta strong {
  color: var(--text-muted);
}

.guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.guide-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--border-light);
}

.guide-fact {
  min-width: 0;
  padding: 22px 26px;
  border-right: 1px solid var(--border-light);
}

.guide-fact:last-child {
  border-right: 0;
}

.guide-fact span {
  display: block;
  margin-bottom: 5px;
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.guide-fact strong,
.guide-fact code {
  color: #e5eefb;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.guide-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 780px);
  justify-content: center;
  gap: 64px;
  padding-top: 56px;
  padding-bottom: 96px;
}

.guide-toc {
  align-self: start;
  position: sticky;
  top: 112px;
  padding-left: 18px;
  border-left: 1px solid rgba(148, 163, 184, 0.22);
}

.guide-toc strong {
  display: block;
  margin-bottom: 13px;
  color: #ffffff;
  font-size: 0.82rem;
}

.guide-toc ol {
  list-style: none;
}

.guide-toc li + li {
  margin-top: 8px;
}

.guide-toc a {
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.45;
  text-decoration: none;
}

.guide-toc a:hover {
  color: #67e8f9;
}

.guide-article {
  min-width: 0;
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.82;
}

.guide-article section {
  scroll-margin-top: 112px;
}

.guide-article section + section {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--border-light);
}

.guide-article h2 {
  margin-bottom: 18px;
  color: #ffffff;
  font-size: 1.72rem;
  line-height: 1.35;
  letter-spacing: 0;
}

.guide-article h3 {
  margin-top: 30px;
  margin-bottom: 12px;
  color: #eef4ff;
  font-size: 1.18rem;
  line-height: 1.45;
  letter-spacing: 0;
}

.guide-article p,
.guide-article ul,
.guide-article ol,
.guide-article table {
  margin-bottom: 18px;
}

.guide-article ul,
.guide-article ol {
  padding-left: 22px;
}

.guide-article li + li {
  margin-top: 8px;
}

.guide-article a {
  color: #67e8f9;
  text-underline-offset: 3px;
}

.guide-article strong {
  color: #f8fafc;
}

.guide-article code,
.guide-inline-code {
  padding: 2px 6px;
  border: 1px solid rgba(56, 189, 248, 0.14);
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.9);
  color: #7dd3fc;
  font-family: var(--font-mono);
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

.guide-step {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.guide-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.1);
  color: #67e8f9;
  font-weight: 800;
}

.guide-step h3 {
  margin-top: 3px;
}

.callout {
  margin: 24px 0;
  padding: 18px 20px;
  border-left: 3px solid var(--primary-teal);
  background: rgba(6, 182, 212, 0.08);
  color: #cbd5e1;
}

.callout strong {
  display: block;
  margin-bottom: 4px;
  color: #a5f3fc;
}

.callout-warning {
  border-left-color: #f59e0b;
  background: rgba(245, 158, 11, 0.08);
}

.callout-warning strong {
  color: #fcd34d;
}

.code-sample {
  margin: 22px 0 28px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius-sm);
  background: #080d18;
}

.code-sample-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 8px 10px 8px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(30, 41, 59, 0.55);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

.guide-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  cursor: pointer;
}

.guide-copy:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
}

.code-sample pre {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
  color: #dbeafe;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.7;
  tab-size: 2;
}

.code-sample pre code {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  overflow-wrap: normal;
}

.guide-table-wrap {
  overflow-x: auto;
}

.guide-article table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.guide-article th,
.guide-article td {
  padding: 13px 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  text-align: left;
  vertical-align: top;
}

.guide-article th {
  background: rgba(30, 41, 59, 0.6);
  color: #f8fafc;
}

.guide-article td {
  color: #b8c5d8;
}

.guide-next {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.guide-next a {
  display: block;
  min-height: 112px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.52);
  color: #ffffff;
  text-decoration: none;
}

.guide-next a:hover {
  border-color: rgba(34, 211, 238, 0.4);
  background: rgba(15, 23, 42, 0.82);
}

.guide-next span {
  display: block;
  margin-bottom: 6px;
  color: var(--text-dim);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.guide-hub-hero {
  padding-top: 70px;
  padding-bottom: 58px;
}

.guide-hub-hero .guide-lead {
  max-width: 720px;
}

.quick-path {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 42px;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.quick-path div {
  padding: 22px;
  border-right: 1px solid var(--border-light);
}

.quick-path div:last-child {
  border-right: 0;
}

.quick-path span {
  display: block;
  margin-bottom: 5px;
  color: #67e8f9;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
}

.quick-path strong {
  color: #f8fafc;
  font-size: 0.95rem;
}

.guide-hub-section {
  padding-top: 64px;
}

.guide-hub-section:last-of-type {
  padding-bottom: 96px;
}

.guide-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.guide-section-head h2 {
  color: #ffffff;
  font-size: 1.75rem;
  letter-spacing: 0;
}

.guide-section-head p {
  max-width: 560px;
  color: var(--text-muted);
}

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

.guide-card {
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.58);
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.guide-card:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.42);
  background: rgba(22, 32, 52, 0.88);
}

.guide-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 28px;
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-sm);
  background: rgba(99, 102, 241, 0.12);
  color: #c4b5fd;
  font-family: var(--font-mono);
  font-weight: 800;
}

.guide-card h3 {
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 1.12rem;
  letter-spacing: 0;
}

.guide-card p {
  flex-grow: 1;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.guide-card-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  color: #67e8f9;
  font-size: 0.82rem;
  font-weight: 700;
}

.guide-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: var(--border-light);
}

.guide-checklist div {
  padding: 20px;
  background: #0d121d;
}

.guide-checklist strong {
  display: block;
  margin-bottom: 6px;
  color: #ffffff;
}

.guide-checklist p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.guide-footer {
  padding-top: 44px;
}

@media (max-width: 960px) {
  .guide-layout {
    grid-template-columns: minmax(0, 780px);
    gap: 38px;
  }

  .guide-toc {
    position: static;
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 14px;
    padding: 18px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    border-left: 0;
  }

  .guide-toc ol {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 18px;
  }

  .guide-toc li + li {
    margin-top: 0;
  }

  .guide-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .guide-main {
    padding-top: 72px;
  }

  .guide-hero,
  .guide-hub-hero {
    padding-top: 42px;
    padding-bottom: 38px;
  }

  .guide-hero h1 {
    font-size: 2.15rem;
  }

  .guide-lead {
    font-size: 1rem;
  }

  .guide-facts,
  .quick-path {
    grid-template-columns: 1fr;
  }

  .guide-fact,
  .quick-path div {
    padding: 16px 0;
    border-right: 0;
    border-bottom: 1px solid var(--border-light);
  }

  .guide-fact:last-child,
  .quick-path div:last-child {
    border-bottom: 0;
  }

  .guide-layout {
    padding-top: 36px;
    padding-bottom: 68px;
  }

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

  .guide-article h2 {
    font-size: 1.45rem;
  }

  .guide-step {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 12px;
  }

  .guide-step-number {
    width: 30px;
    height: 30px;
    font-size: 0.84rem;
  }

  .code-sample pre {
    padding: 16px;
    font-size: 0.78rem;
  }

  .guide-next,
  .guide-card-grid,
  .guide-checklist {
    grid-template-columns: 1fr;
  }

  .guide-section-head {
    display: block;
  }

  .guide-section-head p {
    margin-top: 8px;
  }

  .guide-card {
    min-height: 238px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guide-card {
    transition: none;
  }
}
