/* GUIDE TEMPLATE */
/* For long, sequential how-to posts (20-30 of these planned). Adds a
   breadcrumb, a left-aligned blog-style hero, a "Recent Posts" sidebar,
   numbered step cards, and callout boxes on top of the existing blog.css
   article shell. Scoped to .blog-* / .guide-* classes so none of it
   touches the shared script__hero/script__about used by product pages. */

/* guide.css is only loaded on pages that opt in via $pageStyles, so this
   is safe to set directly without leaking into other page types */
main {
  background-color: #fcfcfd;
}

/* BREADCRUMB */

.blog-breadcrumb {
  padding: 16px 18px 0 18px;
  font-family: var(--font-base);
  font-size: 13px;
  color: rgb(130, 130, 130);
}

.blog-breadcrumb a {
  color: rgb(79, 113, 157);
  text-decoration: none;
}

.blog-breadcrumb a:hover {
  text-decoration: underline;
}

.blog-breadcrumb__sep {
  margin: 0 6px;
  color: rgb(190, 190, 190);
}

.blog-breadcrumb__current {
  color: rgb(90, 90, 90);
}

/* POST HERO */

.blog-post-hero {
  padding: 18px 18px 20px 18px;
}

.blog-post-hero__tag {
  display: inline-block;
  background: rgb(234, 240, 250);
  color: rgb(51, 90, 140);
  font-family: var(--font-base);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin: 0 0 12px 0;
}

.blog-post-hero__title {
  background-image: linear-gradient(
    to right top,
    #110d26,
    #181b42,
    #1c2861,
    #193681,
    #0046a4
  );
  color: transparent;
  background-clip: text;
  font-family: var(--font-raleway);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.25;
  text-align: left;
  margin: 0 0 12px 0;
}

.blog-post-hero__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgb(120, 120, 120);
  font-family: var(--font-base);
  font-size: 13px;
}

@media screen and (min-width: 1200px) {
  .blog-post-hero__title {
    font-size: 40px;
  }
}

/* LAYOUT + SIDEBAR */

.blog-layout {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 0 40px 0;
}

.blog-layout__content {
  min-width: 0;
}

.blog-layout__sidebar {
  padding: 0 18px;
}

.blog-sidebar__heading {
  font-family: var(--font-poppins);
  font-weight: 700;
  font-size: 18px;
  color: rgb(30, 30, 30);
  margin: 0 0 14px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid rgb(234, 240, 250);
}

.blog-sidebar__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.blog-sidebar__item a {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
}

.blog-sidebar__item img {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 8px;
  flex: 0 0 auto;
}

.blog-sidebar__item span {
  font-family: var(--font-base);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.35;
  color: rgb(40, 40, 40);
}

.blog-sidebar__item a:hover span {
  color: rgb(79, 113, 157);
}

@media screen and (min-width: 1024px) {
  .blog-breadcrumb,
  .blog-post-hero {
    max-width: 980px;
    margin: 0 auto;
    padding-left: 18px;
    padding-right: 18px;
  }

  .blog-layout {
    flex-direction: row;
    align-items: flex-start;
    max-width: 980px;
    margin: 0 auto;
    gap: 40px;
    padding: 0 18px 50px 18px;
  }

  .blog-layout__content {
    flex: 1 1 auto;
  }

  .blog-layout__sidebar {
    flex: 0 0 280px;
    position: sticky;
    top: 20px;
    padding: 20px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
  }

  /* the inner article sections have their own centered max-widths for the
     single-column product pages -- let them fill the content column here */
  .blog-layout__content .script__about,
  .blog-layout__content .usage,
  .blog-layout__content .faqs {
    width: 100%;
    margin: 0;
  }
}

/* STEP CARDS */

.guide-step,
.guide-section {
  margin: 0 0 28px 0;
  padding: 22px 18px 6px 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  background: #fff;
}

.guide-step__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.guide-step__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-image: linear-gradient(
    to right top,
    #110d26,
    #181b42,
    #1c2861,
    #193681,
    #0046a4
  );
  color: #fff;
  font-family: var(--font-poppins);
  font-weight: 700;
  font-size: 16px;
}

.guide-step__head h3,
.guide-section h2 {
  margin: 0;
}

/* CALLOUTS */

.guide-callout {
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 10px;
  margin: 4px 0 20px 0;
  font-family: var(--font-base);
  font-size: 14px;
  line-height: 1.6;
  color: rgb(51, 51, 51);
}

.guide-callout strong {
  font-weight: 700;
}

.guide-callout--tip {
  background: #eef4fb;
  border-left: 4px solid #4f719d;
}

.guide-callout--warning {
  background: #fff6e8;
  border-left: 4px solid #e0a53a;
}

/* CTA BUTTON */

.guide-cta-row {
  display: flex;
  justify-content: center;
  margin: 10px 0 26px 0;
}

.guide-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #193681;
  background-image: linear-gradient(
    to right top,
    #110d26,
    #181b42,
    #1c2861,
    #193681,
    #0046a4
  );
  color: #fff;
  font-family: var(--font-base);
  font-weight: 700;
  font-size: 16px;
  padding: 13px 26px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(15, 40, 90, 0.35);
}

.guide-cta-btn:hover {
  opacity: 0.92;
}

.guide-cta-btn svg {
  flex: 0 0 auto;
}

/* READABILITY */
/* the shared main p {14px} rule is fine for short FAQ answers, but a bit
   cramped for long sequential steps -- bump it up within guide content */

@media screen and (max-width: 1199px) {
  .guide-step p,
  .guide-section p {
    font-size: 16px;
    line-height: 1.75;
  }
}
