/* Modern High-Converting Editorial Guides CSS for Connect Service Now */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

:root {
  --guide-navy: #0f172a;
  --guide-card-bg: #ffffff;
  --guide-blue: #0284c7;
  --guide-blue-hover: #0369a1;
  --guide-red: #e11d48;
  --guide-red-hover: #be123c;
  --guide-border: #e2e8f0;
  --guide-text: #1e293b;
  --guide-muted: #475569;
  --guide-bg-warm: #f8fafc;
  --guide-green: #16a34a;
  --guide-amber: #f59e0b;
}

body.guide-page {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--guide-text);
  background-color: #ffffff;
  margin: 0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 74px; /* Mobile sticky call bar clearance */
}

@media (min-width: 900px) {
  body.guide-page {
    padding-bottom: 0;
  }
}

/* HEADER NAVIGATION */
.guide-page .site-header {
  border-bottom: 1px solid var(--guide-border);
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}
.guide-page .header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.guide-page .brand {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--guide-navy);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.guide-page .brand::before {
  content: 'C';
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #fff;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 16px;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.25);
}
.guide-page nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.guide-page nav a {
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  transition: color 0.15s ease;
}
.guide-page nav a:hover,
.guide-page nav a[aria-current="page"] {
  color: var(--guide-navy);
}

/* TOP EMERGENCY BANNER */
.guide-emergency-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  padding: 14px 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 36px;
  box-shadow: 0 10px 24px -6px rgba(15, 23, 42, 0.25);
  border-left: 5px solid var(--guide-red);
}
.guide-emergency-text {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
}
.guide-pulse-dot {
  width: 10px;
  height: 10px;
  background-color: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.35);
  animation: pulse-dot 1.8s infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}
.guide-emergency-btn {
  background: linear-gradient(135deg, #e11d48, #be123c);
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 800;
  padding: 9px 18px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.35);
  transition: transform 0.15s ease;
}
.guide-emergency-btn:hover {
  transform: translateY(-1px);
}

/* GUIDE HERO & ARTICLE HERO */
.guide-hero, .guide-article-hero {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid var(--guide-border);
  padding: 44px 0 48px;
}
.guide-hero .wrap, .guide-article-hero .wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
.guide-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  margin-bottom: 20px;
}
.guide-breadcrumb a {
  color: var(--guide-blue);
  text-decoration: none;
}
.guide-breadcrumb a:hover {
  text-decoration: underline;
}
.guide-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--guide-blue);
  margin-bottom: 12px;
  display: inline-block;
}
.guide-hero h1, .guide-article-hero h1 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--guide-navy);
  margin: 0 0 16px;
  max-width: 860px;
}
.guide-deck {
  font-size: 18px;
  line-height: 1.6;
  color: var(--guide-muted);
  max-width: 780px;
  margin: 0 0 20px;
}
.guide-byline {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ARTICLE LAYOUT & CONTENT */
.guide-article-layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 20px 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 56px;
  align-items: start;
}
.guide-copy {
  max-width: 760px;
}
.guide-copy section {
  margin-bottom: 44px;
}
.guide-copy h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--guide-navy);
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f1f5f9;
}
.guide-copy h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--guide-navy);
  margin: 24px 0 10px;
}
.guide-copy p, .guide-copy li {
  font-size: 16.5px;
  line-height: 1.7;
  color: #334155;
  margin-bottom: 16px;
}
.guide-copy ul, .guide-copy ol {
  padding-left: 24px;
  margin: 16px 0 24px;
}
.guide-copy li {
  margin-bottom: 10px;
}
.guide-copy a {
  color: var(--guide-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.guide-copy a:hover {
  color: var(--guide-blue-hover);
}

/* TABLE OF CONTENTS CARD */
.guide-copy section:first-child {
  background: #f8fafc;
  border: 1px solid var(--guide-border);
  border-radius: 10px;
  padding: 24px 28px;
}
.guide-copy section:first-child h2 {
  border-bottom: none;
  font-size: 18px;
  margin-bottom: 12px;
  padding-bottom: 0;
  color: var(--guide-navy);
}
.guide-copy section:first-child ul {
  margin: 0;
  padding-left: 20px;
}
.guide-copy section:first-child li {
  font-size: 15px;
  margin-bottom: 8px;
}

/* HIGH-CONVERTING STICKY SIDEBAR CARD */
.guide-aside {
  position: relative;
}
.guide-aside-card {
  position: sticky;
  top: 90px;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  padding: 28px 24px;
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.08);
}
.guide-aside-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0284c7;
  background: #e0f2fe;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.guide-aside-card h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--guide-navy);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.guide-aside-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 14px;
}
.guide-aside-rating .stars {
  color: var(--guide-amber);
  letter-spacing: 1px;
}
.guide-aside-card p {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--guide-muted);
  margin-bottom: 20px;
}
.guide-aside-call-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e11d48, #be123c);
  color: #ffffff !important;
  text-decoration: none;
  padding: 16px 20px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 8px 20px rgba(225, 29, 72, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-align: center;
  margin-bottom: 14px;
}
.guide-aside-call-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(225, 29, 72, 0.45);
}
.guide-aside-call-btn span.btn-sub {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.95;
  margin-top: 2px;
}
.guide-aside-guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 16px;
}
.guide-aside-guarantee svg {
  width: 14px;
  height: 14px;
  color: var(--guide-green);
}
.guide-aside-service-link {
  text-align: center;
  font-size: 13px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}
.guide-aside-service-link a {
  color: var(--guide-blue);
  font-weight: 700;
  text-decoration: none;
}
.guide-aside-service-link a:hover {
  text-decoration: underline;
}

/* GUIDES HUB DIRECTORY (INDEX.HTML) */
.guide-list {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}
.guide-section-head {
  margin-bottom: 32px;
}
.guide-section-head h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--guide-navy);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.guide-section-head p {
  font-size: 16px;
  color: var(--guide-muted);
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.guide-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--guide-border);
  border-radius: 12px;
  padding: 28px 24px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.guide-card:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1;
  box-shadow: 0 12px 28px -6px rgba(15, 23, 42, 0.08);
}
.guide-card > span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--guide-blue);
  margin-bottom: 12px;
}
.guide-card h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--guide-navy);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.guide-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--guide-muted);
  margin: 0 0 20px;
  flex-grow: 1;
}
.guide-card b {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--guide-blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* RELATED GUIDES STRIP */
.guide-related {
  background: #f8fafc;
  border-top: 1px solid var(--guide-border);
  padding: 64px 0 80px;
}
.guide-related .wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
.guide-related .guide-grid {
  grid-template-columns: repeat(2, 1fr);
}

/* MOBILE STICKY BOTTOM CALL BAR FOR GUIDES */
.guide-mobile-call-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid #cbd5e1;
  padding: 10px 16px;
  z-index: 999;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  gap: 12px;
}
@media (min-width: 900px) {
  .guide-mobile-call-bar { display: none; }
}
.guide-mobile-call-bar a.call-btn {
  flex: 1;
  height: 48px;
  background: linear-gradient(135deg, #e11d48, #be123c);
  color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.35);
}
.guide-mobile-call-bar .status-sub {
  font-size: 11px;
  color: #64748b;
  line-height: 1.2;
  text-align: right;
  white-space: nowrap;
}

/* FOOTER */
.guide-page .site-footer {
  background: #ffffff;
  border-top: 1px solid var(--guide-border);
  padding: 44px 0 32px;
  font-size: 13px;
  color: #64748b;
}
.guide-page .site-footer .wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
.guide-page .site-footer strong {
  color: var(--guide-navy);
  font-size: 16px;
  font-weight: 800;
}
.guide-page .site-footer p {
  margin: 10px 0 18px;
  max-width: 720px;
  line-height: 1.6;
}
.guide-page .legal-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.guide-page .legal-links a {
  color: #64748b;
  text-decoration: none;
}
.guide-page .legal-links a:hover {
  color: var(--guide-navy);
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 900px) {
  .guide-article-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .guide-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .guide-grid, .guide-related .guide-grid {
    grid-template-columns: 1fr;
  }
  .guide-hero h1, .guide-article-hero h1 {
    font-size: 30px;
  }
  .guide-emergency-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .guide-emergency-btn {
    width: 100%;
    justify-content: center;
  }
}


/* MOBILE-FIRST OPTIMIZATIONS FOR GUIDES */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

@media (max-width: 900px) {
  .guide-article-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 28px !important;
    padding: 24px 16px 60px !important;
  }
  /* Put the high-converting call card at the TOP on mobile so mobile readers see it immediately! */
  .guide-aside {
    order: -1 !important;
    width: 100% !important;
  }
  .guide-aside-card {
    position: static !important;
    padding: 20px 16px !important;
    border-radius: 12px !important;
  }
  .guide-aside-call-btn {
    padding: 14px 16px !important;
    font-size: 17px !important;
  }
  .guide-emergency-banner {
    margin: 16px 0 20px !important;
    padding: 14px 16px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }
  .guide-emergency-btn {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
  }
  .guide-hero h1, .guide-article-hero h1 {
    font-size: 26px !important;
    line-height: 1.2 !important;
  }
  .guide-deck {
    font-size: 15px !important;
    line-height: 1.55 !important;
  }
  .guide-copy h2 {
    font-size: 22px !important;
  }
  .guide-copy p, .guide-copy li {
    font-size: 15px !important;
    line-height: 1.6 !important;
  }
  .guide-mobile-call-bar {
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)) !important;
  }
}
