:root {
  --guide-primary: #2563eb;
  --guide-heading: #172033;
  --guide-text: #334155;
  --guide-muted: #64748b;
  --guide-border: #e2e8f0;
  --guide-surface: #ffffff;
  --guide-background: #f8fafc;
}

.service-guide-page {
  color: var(--guide-text);
  background: var(--guide-background);
}

.guide-main {
  min-height: calc(100vh - 72px);
}

.guide-hero {
  padding: 78px 0 72px;
  background:
    radial-gradient(
      circle at 82% 18%,
      rgba(37, 99, 235, .13),
      transparent 28%
    ),
    linear-gradient(180deg, #ffffff, #f4f8ff);
  border-bottom: 1px solid var(--guide-border);
}

.guide-hero-inner {
  max-width: 850px;
}

.guide-kicker,
.guide-section-label {
  display: inline-flex;
  width: fit-content;
  color: var(--guide-primary);
  background: #eff6ff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.guide-kicker {
  padding: 8px 12px;
  margin-bottom: 20px;
}

.guide-hero h1 {
  max-width: 820px;
  margin: 0;
  color: var(--guide-heading);
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -2.2px;
  word-break: keep-all;
}

.guide-hero p {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--guide-muted);
  font-size: 18px;
  line-height: 1.8;
  word-break: keep-all;
}

.guide-hero-actions {
  display: flex;
  margin-top: 30px;
  flex-wrap: wrap;
  gap: 12px;
}

.guide-container {
  padding-top: 48px;
  padding-bottom: 88px;
}

.guide-layout {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  align-items: start;
  gap: 34px;
}

.guide-sidebar {
  position: sticky;
  top: 96px;
}

.guide-sidebar-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--guide-border);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .06);
}

.guide-sidebar-card > strong {
  display: block;
  padding: 18px 18px 14px;
  color: var(--guide-heading);
  border-bottom: 1px solid #eef2f7;
  font-size: 15px;
}

.guide-sidebar-nav {
  display: grid;
  padding: 8px;
  gap: 2px;
}

.guide-sidebar-nav a {
  display: flex;
  min-height: 42px;
  padding: 9px 10px;
  color: #475569;
  border-radius: 9px;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition:
    color .16s ease,
    background-color .16s ease;
}

.guide-sidebar-nav a > span {
  display: inline-flex;
  width: 24px;
  height: 24px;
  color: #64748b;
  background: #f1f5f9;
  border-radius: 7px;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
  font-size: 11px;
}

.guide-sidebar-nav a:hover,
.guide-sidebar-nav a:focus-visible,
.guide-sidebar-nav a.active {
  color: #1d4ed8;
  background: #eff6ff;
}

.guide-sidebar-nav a.active > span {
  color: #ffffff;
  background: var(--guide-primary);
}

.guide-mobile-menu {
  display: none;
  margin-bottom: 22px;
}

.guide-mobile-menu label {
  display: block;
  margin-bottom: 8px;
  color: var(--guide-heading);
  font-weight: 750;
}

.guide-content {
  min-width: 0;
}

.guide-section {
  padding: 38px;
  margin-bottom: 24px;
  scroll-margin-top: 96px;
  background: var(--guide-surface);
  border: 1px solid var(--guide-border);
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .05);
}

.guide-section-label {
  padding: 6px 10px;
  margin-bottom: 14px;
}

.guide-section-label.is-pro {
  color: #92400e;
  background: #fffbeb;
}

.guide-section h2 {
  margin: 0;
  color: var(--guide-heading);
  font-size: clamp(27px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -1px;
  word-break: keep-all;
}

.guide-section > p {
  max-width: 880px;
  margin: 15px 0 0;
  color: var(--guide-muted);
  font-size: 16px;
  line-height: 1.8;
  word-break: keep-all;
}

.guide-steps {
  display: grid;
  margin: 28px 0 0;
  padding: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  list-style: none;
}

.guide-steps li {
  display: flex;
  min-width: 0;
  padding: 18px;
  background: #f8fafc;
  border: 1px solid #e8edf4;
  border-radius: 13px;
  align-items: flex-start;
  gap: 12px;
}

.guide-steps li > span {
  display: inline-flex;
  width: 30px;
  height: 30px;
  color: #ffffff;
  background: var(--guide-primary);
  border-radius: 9px;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  font-weight: 800;
}

.guide-steps strong {
  color: var(--guide-heading);
}

.guide-steps p {
  margin: 5px 0 0;
  color: var(--guide-muted);
  line-height: 1.65;
}

.guide-callout {
  display: flex;
  padding: 20px;
  margin-top: 22px;
  color: #1e3a8a;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 13px;
  align-items: flex-start;
  gap: 13px;
}

.guide-callout > i {
  font-size: 25px;
}

.guide-callout strong {
  display: block;
  color: #1e3a8a;
}

.guide-callout p {
  margin: 4px 0 0;
  color: #475569;
  line-height: 1.65;
}

.guide-example {
  display: grid;
  margin-top: 24px;
  grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.guide-example > div {
  min-width: 0;
  padding: 17px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.guide-example > div.is-result {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.guide-example span {
  display: block;
  margin-bottom: 8px;
  color: var(--guide-muted);
  font-size: 12px;
  font-weight: 750;
}

.guide-example code {
  display: block;
  overflow-x: auto;
  color: #334155;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.65;
  white-space: nowrap;
}

.guide-example > i {
  color: var(--guide-primary);
  font-size: 22px;
  text-align: center;
}

.guide-check-list {
  display: grid;
  margin: 22px 0 0;
  padding: 0;
  gap: 10px;
  list-style: none;
}

.guide-check-list li {
  position: relative;
  padding-left: 25px;
  color: #475569;
  line-height: 1.65;
}

.guide-check-list li::before {
  position: absolute;
  top: 4px;
  left: 0;
  color: #16a34a;
  font-family: "Phosphor";
  font-size: 17px;
  content: "\e182";
}

.guide-tool-link {
  display: inline-flex;
  min-height: 42px;
  padding: 9px 14px;
  margin-top: 24px;
  color: #1d4ed8;
  background: #ffffff;
  border: 1px solid #93c5fd;
  border-radius: 9px;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.guide-tool-link:hover,
.guide-tool-link:focus {
  color: #ffffff;
  background: var(--guide-primary);
  border-color: var(--guide-primary);
}

.guide-sub-note {
  padding: 14px 16px;
  background: #f8fafc;
  border-left: 3px solid #94a3b8;
}

.guide-split-example,
.guide-plan-grid {
  display: grid;
  margin-top: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.guide-split-example > div,
.guide-plan-grid > div {
  padding: 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 13px;
}

.guide-split-example i {
  display: block;
  margin-bottom: 12px;
  color: var(--guide-primary);
  font-size: 28px;
}

.guide-split-example strong,
.guide-plan-grid strong {
  display: block;
  color: var(--guide-heading);
  font-size: 16px;
}

.guide-split-example p,
.guide-plan-grid p {
  margin: 7px 0 0;
  color: var(--guide-muted);
  line-height: 1.7;
}

.guide-plan-grid > div.is-pro {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.guide-plan-grid span {
  display: inline-flex;
  padding: 5px 8px;
  margin-bottom: 10px;
  color: #1d4ed8;
  background: #dbeafe;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 800;
}

.guide-final-cta {
  display: flex;
  padding: 22px;
  margin-top: 24px;
  color: #ffffff;
  background:
    linear-gradient(135deg, #1d4ed8, #2563eb 55%, #3b82f6);
  border-radius: 14px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.guide-final-cta > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.guide-final-cta span {
  color: #bfdbfe;
  font-size: 13px;
}

.guide-final-cta strong {
  color: #ffffff;
  font-size: 17px;
}

.guide-final-cta .btn {
  color: #1d4ed8;
  background: #ffffff;
  border-color: #ffffff;
  flex: 0 0 auto;
  font-weight: 800;
}

.service-public .service-hero-title {
  width: 100%;
  margin: 0 0 24px;
  color: var(--service-heading);
  font-size: clamp(38px, 2.72vw, 46px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -1.9px;
  word-break: keep-all;
  overflow-wrap: normal;
  text-wrap: balance;
}

.service-public .service-hero-title span {
  display: block;
  white-space: normal;
}

.service-public .service-hero-title span + span {
  margin-top: 4px;
}

@media (max-width: 991.98px) {
  .guide-hero {
    padding: 64px 0 58px;
  }

  .guide-layout {
    display: block;
  }

  .guide-sidebar {
    display: none;
  }

  .guide-mobile-menu {
    display: block;
    position: sticky;
    z-index: 20;
    top: 74px;
    padding: 12px;
    background: rgba(248, 250, 252, .96);
    border: 1px solid var(--guide-border);
    border-radius: 12px;
    backdrop-filter: blur(10px);
  }
}

@media (max-width: 767.98px) {
  .guide-hero h1 {
    font-size: 38px;
    letter-spacing: -1.5px;
  }

  .guide-hero p {
    font-size: 16px;
  }

  .guide-hero-actions .btn {
    width: 100%;
  }

  .guide-container {
    padding-top: 28px;
    padding-bottom: 64px;
  }

  .guide-section {
    padding: 24px 20px;
  }

  .guide-steps,
  .guide-split-example,
  .guide-plan-grid {
    grid-template-columns: 1fr;
  }

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

  .guide-example > i {
    transform: rotate(90deg);
  }

  .guide-final-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .guide-final-cta .btn {
    width: 100%;
  }
}

