/* Guide hub */
.guide-layout {
  display: grid;
  gap: 1.35rem;
  max-width: 100%;
  overflow-x: clip;
}

.guide-surface {
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(1.25rem, 1.2vw + 1rem, 2rem);
  border-radius: var(--ft-radius-md);
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.guide-hero {
  margin-top: 0.75rem;
}

.guide-eyebrow {
  display: inline-block;
  margin-bottom: 0.65rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #0f4aa8;
}

.guide-title {
  font-family: var(--ft-font-display);
  font-size: clamp(1.8rem, 2vw + 1rem, 2.8rem);
  margin-bottom: 0.65rem;
  color: #0f172a;
}

.guide-lead {
  color: #475569;
  max-width: 72ch;
  margin-bottom: 0;
}

.guide-index-grid {
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.guide-index-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--ft-radius-md);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
  padding: 1.2rem;
  display: grid;
  gap: 0.65rem;
}

.guide-index-card h2 {
  font-size: 1.15rem;
  margin: 0;
}

.guide-index-card p {
  margin: 0;
  color: #475569;
}

.guide-read-link {
  font-weight: 600;
}

.guide-article {
  max-width: 820px;
  width: 100%;
}

.guide-article__header {
  margin-bottom: 0.9rem;
}

.guide-article__body {
  display: grid;
  gap: 1.1rem;
}

.guide-article__footer {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: transparent;
  color: inherit;
}

/* Guard against global `[class*="section"]` spacing rules in site theme CSS. */
.guide-article .guide-section {
  margin: 0 !important;
  padding: 0 !important;
  border-top: 0 !important;
}

.guide-article__body > .guide-section + .guide-section {
  margin-top: 1rem !important;
}

.guide-article__body > .guide-section:first-child {
  margin-top: 0.6rem !important;
}

.guide-section h2 {
  font-size: 1.28rem;
  margin: 0 0 0.55rem 0 !important;
  padding: 0 !important;
  line-height: 1.2;
}

.guide-section p {
  margin: 0 0 0.75rem 0 !important;
  padding: 0 !important;
  color: #1e293b;
}

.guide-section p:last-child {
  margin-bottom: 0;
}

.guide-related {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding-top: 1rem;
  margin-top: 0.5rem;
}

.guide-related ul {
  margin: 0;
  padding-left: 1.2rem;
}

.guide-related li {
  margin-bottom: 0.45rem;
}

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

.guide-cta-band {
  text-align: left;
}

.guide-cta-band h2 {
  margin-bottom: 0.5rem;
}

.guide-cta-band p {
  margin-bottom: 0;
  color: #475569;
}

@media (max-width: 767.98px) {
  .guide-layout {
    gap: 1rem;
  }

  .guide-surface {
    padding: 1rem;
    border-radius: var(--ft-radius-sm);
  }

  .guide-surface,
  .guide-index-grid {
    margin-left: 0;
    margin-right: 0;
  }

  .guide-index-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.8rem;
  }

  .guide-title,
  .guide-lead,
  .guide-section h2,
  .guide-section p {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .guide-actions-wrap .btn,
  .guide-actions .btn {
    width: 100%;
  }
}
