html:has(body.guides-page),
body.guides-page {
  background: #e6f3fd;
  min-height: 100%;
}

.guides-hero {
  background: linear-gradient(135deg, #1e3a8a, #1e40af);
  color: #fff;
  padding: 3.25rem 0 2.5rem;
}

.guides-title {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.guides-subtitle {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #dbeafe;
}

.guides-search {
  margin-top: 1.5rem;
}

.guides-search input {
  width: 100%;
  border: 0;
  border-radius: 0.75rem;
  padding: 0.9rem 1rem;
  font: inherit;
  font-size: 1rem;
  color: #111827;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
}

.guides-search input:focus {
  outline: 3px solid #93c5fd;
}

.guides-section {
  padding: 1.75rem 0 4rem;
}

.guide-chip-groups {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.guide-chip-label {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.guides-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.guide-chip {
  border: 1px solid #dbe3ee;
  background: #fff;
  color: #1e3a8a;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.guide-chip span {
  color: #64748b;
  font-weight: 500;
}

.guide-chip.is-active {
  background: #1e40af;
  border-color: #1e40af;
  color: #fff;
}

.guide-chip.is-active span {
  color: #dbeafe;
}

.guides-library {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-top: 1.75rem;
}

.guide-feature {
  display: block;
  background: #fff;
  border: 1px solid #dbe3ee;
  border-radius: 0.9rem;
  padding: 1.35rem 1.5rem;
  text-decoration: none;
  color: inherit;
}

.guide-feature:hover {
  border-color: #93c5fd;
  box-shadow: 0 8px 20px rgba(30, 64, 175, 0.08);
}

.guide-feature-kicker {
  color: #1e40af;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.guide-feature h2 {
  margin: 0.35rem 0 0.4rem;
  font-size: 1.45rem;
  line-height: 1.3;
  color: #0f172a;
}

.guide-feature p {
  margin: 0;
  color: #475569;
  max-width: 46rem;
}

.guide-group-kicker {
  margin: 0 0 0.2rem;
  color: #1e40af;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.guide-group-head h2 {
  margin: 0;
  font-size: 1.35rem;
  color: #0f172a;
}

.guide-group-head p {
  margin: 0.3rem 0 0.85rem;
  color: #64748b;
  max-width: 42rem;
}

.guide-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.guide-row {
  display: grid;
  grid-template-columns: minmax(12rem, 18rem) minmax(0, 1fr);
  gap: 0.75rem 1.25rem;
  align-items: start;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.9rem 1rem;
  text-decoration: none;
  color: inherit;
}

.guide-row:hover {
  border-color: #93c5fd;
  background: #f8fbff;
}

.guide-row-title {
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
}

.guide-row-summary {
  color: #475569;
  line-height: 1.45;
}

.guides-status {
  color: #475569;
  font-size: 1.05rem;
}

.guide-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.guide-toc {
  position: sticky;
  top: 1rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1rem;
}

.guide-toc h2 {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.guide-toc a {
  display: block;
  color: #1e3a8a;
  text-decoration: none;
  font-size: 0.92rem;
  line-height: 1.35;
  padding: 0.28rem 0;
}

.guide-toc a:hover {
  text-decoration: underline;
}

.guide-article.article {
  margin: 0;
}

.article-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin-bottom: 1rem;
  color: #64748b;
  font-size: 0.92rem;
}

.article-crumb a {
  color: #1e40af;
  font-weight: 600;
  text-decoration: none;
}

.article-crumb a:hover {
  text-decoration: underline;
}

.guide-related {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem 3.5rem;
}

.guide-related-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.9rem;
  padding: 1.25rem 1.35rem 1.35rem;
}

.guide-related-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  margin-bottom: 0.85rem;
}

.guide-related-head h2 {
  margin: 0;
  font-size: 1.15rem;
  color: #0f172a;
}

.guide-related-head a {
  color: #1e40af;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.guide-related-head a:hover {
  text-decoration: underline;
}

@media (max-width: 800px) {
  .guides-title {
    font-size: 2.1rem;
  }
  .guide-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
  .guide-layout {
    grid-template-columns: 1fr;
    padding-top: 1.25rem;
  }
  .guide-toc {
    position: static;
  }
}
