/*
  EBB Guide — Master Article Template v1.0
  Scoped to .guide-master (all guides/*.html article pages)
*/

.guide-master-main {
  width: 100%;
}

.guide-master-article {
  width: 100%;
}

/* Shared page shell */
.guide-master-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 40px;
  padding-right: 40px;
  box-sizing: border-box;
}

.guide-master-prose,
.guide-master-toc,
.guide-master-faq,
.guide-master-continue,
.guide-master-related,
.guide-master-final-cta {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================
   HERO
========================= */

.guide-master-hero {
  padding-top: 64px;
  padding-bottom: 64px;
  position: relative;
  overflow: hidden;
}

.guide-master-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(124, 58, 237, 0.18), transparent 45%),
    radial-gradient(circle at 80% 20%, rgba(14, 165, 233, 0.12), transparent 40%);
  pointer-events: none;
}

.guide-master-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.guide-master-breadcrumb {
  font-size: 15px;
  line-height: 22px;
  margin-bottom: 20px;
  color: rgba(203, 213, 225, 0.85);
}

.guide-master-breadcrumb a {
  color: rgba(196, 181, 253, 0.95);
  transition: color 0.2s ease;
}

.guide-master-breadcrumb a:hover {
  color: #e9d5ff;
}

.guide-master-breadcrumb span {
  color: rgba(148, 163, 184, 0.9);
}

.guide-master-hero h1 {
  font-size: 56px;
  line-height: 1.08;
  font-weight: 800;
  max-width: 900px;
  margin-bottom: 20px;
  color: #fff;
}

.guide-master-lead {
  font-size: 21px;
  line-height: 1.6;
  max-width: 720px;
  margin-bottom: 24px;
  color: #cbd5e1;
}

.guide-master-meta {
  font-size: 15px;
  line-height: 1.5;
  color: rgba(148, 163, 184, 0.95);
  margin-bottom: 28px;
}

.guide-master-hero .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 11px;
}

/* =========================
   KEY TAKEAWAYS
========================= */

.guide-master-takeaways {
  padding-top: 48px;
  padding-bottom: 48px;
  background: rgba(255, 255, 255, 0.025);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.guide-master-takeaways h2 {
  font-size: 32px;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 24px;
  color: #fff;
}

.guide-master-takeaways-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.guide-master-takeaway-card {
  padding: 23px;
  min-height: 130px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #cbd5e1;
  font-size: 16px;
  line-height: 1.55;
}

/* =========================
   ARTICLE BODY
========================= */

.guide-master-body {
  padding-top: 48px;
  padding-bottom: 64px;
}

/* Table of contents */
.guide-master-toc {
  margin-top: 48px;
  margin-bottom: 64px;
  padding: 26px 28px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.guide-master-toc h2 {
  font-size: 23px;
  line-height: 1.3;
  font-weight: 700;
  margin-bottom: 16px;
  color: #fff;
}

.guide-master-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: guide-toc;
}

.guide-master-toc li {
  counter-increment: guide-toc;
  margin-bottom: 9px;
}

.guide-master-toc li:last-child {
  margin-bottom: 0;
}

.guide-master-toc a {
  display: block;
  font-size: 16px;
  line-height: 1.6;
  color: #c4b5fd;
  transition: color 0.2s ease;
}

.guide-master-toc a::before {
  content: counter(guide-toc) ". ";
  color: rgba(148, 163, 184, 0.95);
}

.guide-master-toc a:hover {
  color: #e9d5ff;
}

/* Article typography */
.guide-master-prose section {
  margin-bottom: 0;
}

.guide-master-prose h2 {
  font-size: 36px;
  line-height: 1.2;
  font-weight: 700;
  margin-top: 72px;
  margin-bottom: 24px;
  color: #fff;
}

.guide-master-prose section:first-child h2 {
  margin-top: 0;
}

.guide-master-prose h3 {
  font-size: 24px;
  line-height: 1.3;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 16px;
  color: #f1f5f9;
}

.guide-master-prose p {
  font-size: 18px;
  line-height: 1.75;
  margin-bottom: 22px;
  color: #cbd5e1;
}

.guide-master-prose ul {
  list-style: disc;
  padding-left: 1.35rem;
  margin-bottom: 22px;
}

.guide-master-prose li {
  font-size: 18px;
  line-height: 1.65;
  margin-bottom: 9px;
  color: #cbd5e1;
}

.guide-master-prose li:last-child {
  margin-bottom: 0;
}

.guide-master-prose a {
  color: #7dd3fc;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.guide-master-prose a:hover {
  color: #bae6fd;
}

/* Editorial callout */
.guide-master-callout {
  margin: 24px 0;
  padding: 24px;
  border-radius: 12px;
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.18);
}

.guide-master-callout-label {
  display: block;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7dd3fc;
  margin-bottom: 12px;
}

.guide-master-callout p {
  margin-bottom: 16px;
}

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

/* =========================
   FAQ
========================= */

.guide-master-faq {
  margin-top: 72px;
}

.guide-master-faq > h2 {
  font-size: 36px;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 24px;
  color: #fff;
}

.guide-master-faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.guide-master-faq-item {
  padding: 24px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.guide-master-faq-item h3 {
  font-size: 20px;
  line-height: 1.35;
  font-weight: 600;
  margin: 0 0 12px;
  color: #f8fafc;
}

.guide-master-faq-item p {
  font-size: 17px;
  line-height: 1.65;
  margin: 0;
  color: #cbd5e1;
}

/* =========================
   CONTINUE LEARNING
========================= */

.guide-master-continue {
  margin-top: 64px;
}

.guide-master-continue h2 {
  font-size: 32px;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}

.guide-master-continue p {
  font-size: 18px;
  line-height: 1.65;
  margin-bottom: 24px;
  color: #94a3b8;
}

/* =========================
   RELATED GUIDES
========================= */

.guide-master-related {
  margin-top: 0;
}

.guide-master-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.guide-master-related-card {
  display: flex;
  align-items: flex-start;
  min-height: 120px;
  padding: 24px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #e2e8f0;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 600;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.guide-master-related-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(196, 181, 253, 0.35);
  transform: translateY(-2px);
  color: #fff;
}

/* =========================
   FINAL CTA
========================= */

.guide-master-final-cta {
  margin-top: 64px;
  padding: 52px 32px;
  border-radius: 16px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.14), rgba(139, 92, 246, 0.16));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.guide-master-final-cta h2 {
  font-size: 36px;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 16px;
  color: #fff;
}

.guide-master-final-cta p {
  font-size: 18px;
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto 24px;
  color: #cbd5e1;
}

.guide-master-final-cta .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 28px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 11px;
}

/* =========================
   TABLET
========================= */

@media (max-width: 1024px) {
  .guide-master-shell {
    padding-left: 32px;
    padding-right: 32px;
  }

  .guide-master-takeaways-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .guide-master-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {
  .guide-master-shell {
    padding-left: 20px;
    padding-right: 20px;
  }

  .guide-master-hero {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .guide-master-hero h1 {
    font-size: 38px;
    line-height: 1.1;
  }

  .guide-master-lead {
    font-size: 18px;
  }

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

  .guide-master-prose,
  .guide-master-toc,
  .guide-master-faq,
  .guide-master-continue,
  .guide-master-related,
  .guide-master-final-cta {
    width: 100%;
    max-width: 760px;
  }

  .guide-master-prose h2,
  .guide-master-faq > h2,
  .guide-master-final-cta h2 {
    font-size: 30px;
  }

  .guide-master-prose h3 {
    font-size: 21px;
  }

  .guide-master-prose p,
  .guide-master-prose li {
    font-size: 17px;
    line-height: 1.7;
  }

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

  .guide-master-final-cta {
    padding: 48px 24px;
  }

  .guide-master-final-cta h2 {
    font-size: 30px;
  }
}
