/* QuoTrak — topic guide hubs (/guides/<slug>), generated by generate-blog.mjs */

.guide-hero { text-align: left; padding: 56px 0 52px; }
.guide-hero .blog-hero-sub { margin: 0 0 26px; max-width: 640px; }
.guide-hero .blog-hero-heading { max-width: 760px; }
.guide-crumbs {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
}
.guide-crumbs a { color: rgba(255,255,255,0.75); text-decoration: none; }
.guide-crumbs a:hover { color: var(--white); }
.guide-crumbs span[aria-hidden] { margin: 0 6px; }
.guide-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-ghost-light { background: rgba(255,255,255,0.08); color: var(--white); border: 1px solid rgba(255,255,255,0.18); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.14); color: var(--white); }

/* Intro + sidebar */
.guide-body { background: var(--white); padding: 56px 0 40px; }
.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 56px;
  align-items: start;
}
.guide-intro { max-width: 720px; }
.guide-intro > p:first-child { font-size: 18px; color: var(--gray-700); }
.guide-intro h2 { margin-top: 32px; }
.guide-side { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 20px; }
.guide-side-label {
  margin: 0 0 10px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
}
.guide-toc, .guide-tool {
  padding: 20px 22px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: var(--gray-50);
}
.guide-toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.guide-toc a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--gray-200);
}
.guide-toc li:last-child a { border-bottom: 0; }
.guide-toc a:hover { color: var(--orange); }
.guide-toc a span {
  min-width: 26px;
  text-align: center;
  padding: 2px 7px;
  border-radius: 100px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  font-size: 12px;
  color: var(--gray-500);
}
/* Full-width, and allowed to wrap: .btn is nowrap site-wide, which pushed long labels out of the card. */
.guide-tool .btn { width: 100%; justify-content: center; white-space: normal; text-align: center; line-height: 1.3; padding-top: 9px; padding-bottom: 9px; }

/* Article lists */
.guide-articles { background: #f8fafc; border-top: 1px solid var(--gray-200); padding: 56px 0 64px; }
.guide-articles-inner { max-width: 860px; }
.guide-section + .guide-section { margin-top: 44px; }
.guide-section h2 {
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.3px;
  margin: 0 0 18px;
  scroll-margin-top: 90px;
}
.guide-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  counter-reset: guide;
}
.guide-list li { counter-increment: guide; }
.guide-list a {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 18px 20px 18px 54px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.guide-list a::before {
  content: counter(guide);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 24px;
  height: 24px;
  border-radius: 100px;
  background: var(--gray-100);
  color: var(--gray-500);
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.guide-list a:hover { border-color: var(--navy); box-shadow: 0 6px 18px rgba(26,58,92,0.08); }
.guide-list-title { font-size: 15.5px; font-weight: 700; color: var(--navy); line-height: 1.35; }
.guide-list-excerpt {
  font-size: 13.5px;
  color: var(--gray-500);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Other guides */
.guide-others { background: var(--white); border-top: 1px solid var(--gray-200); padding: 48px 0 64px; }
.guide-others-title {
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 800;
  color: var(--navy);
  text-align: center;
  margin: 0 0 22px;
}
.guide-others-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.guide-other-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.guide-other-card:hover { border-color: var(--navy); box-shadow: 0 6px 18px rgba(26,58,92,0.10); }
.guide-other-title { font-size: 15.5px; font-weight: 800; color: var(--navy); }
.guide-other-desc { font-size: 13px; color: var(--gray-500); line-height: 1.5; }

@media (max-width: 900px) {
  .guide-layout { grid-template-columns: 1fr; gap: 32px; }
  .guide-side { position: static; }
  .guide-others-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .guide-list { grid-template-columns: 1fr; }
  .guide-hero { padding: 44px 0 40px; }
}
@media (max-width: 480px) {
  .guide-others-grid { grid-template-columns: 1fr; }
}
