.sales-guide-page {
  min-height: 100%;
  padding: clamp(14px, 2vw, 26px);
  background:
    linear-gradient(180deg, rgba(236, 248, 246, .95), rgba(242, 246, 250, 1) 34%),
    #f2f6fa;
  color: #142033;
}

.guide-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 18px;
  margin-bottom: 16px;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid rgba(20, 32, 51, .08);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .07);
}

.guide-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #0f766e;
  font-weight: 900;
}

.guide-hero h1 {
  max-width: 860px;
  margin: 0;
  color: #102033;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 950;
  line-height: 1.18;
}

.guide-hero p {
  max-width: 860px;
  margin: 14px 0 0;
  color: #536273;
  font-size: 16px;
  line-height: 1.85;
}

.guide-hero-card {
  align-self: stretch;
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(15, 118, 110, .14);
  border-radius: 8px;
  background: #eef8f6;
}

.guide-hero-card strong {
  font-size: 20px;
  font-weight: 950;
}

.guide-hero-card span {
  color: #536273;
  line-height: 1.7;
}

.guide-primary-link,
.report-grid a {
  text-decoration: none;
}

.guide-primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 8px;
  background: #0f766e;
  color: #fff;
  font-weight: 900;
}

.guide-toolbar {
  position: sticky;
  top: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 14px 30px rgba(15, 23, 42, .06);
  backdrop-filter: blur(12px);
}

.guide-search {
  min-width: 260px;
  flex: 1 1 420px;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid rgba(148, 163, 184, .26);
  border-radius: 8px;
  background: #fff;
}

.guide-search i {
  color: #0f766e;
  font-size: 18px;
}

.guide-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #142033;
  font-weight: 800;
}

.guide-filter {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(148, 163, 184, .26);
  border-radius: 8px;
  background: #fff;
  color: #344256;
  font-weight: 850;
  white-space: nowrap;
}

.guide-filter.active {
  border-color: #0f766e;
  background: #0f766e;
  color: #fff;
}

.guide-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 16px;
}

.guide-index {
  position: sticky;
  top: 78px;
  align-self: start;
  display: grid;
  gap: 4px;
  max-height: calc(100dvh - 94px);
  overflow: auto;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .05);
}

.guide-index-title {
  padding: 6px 8px 10px;
  color: #102033;
  font-size: 16px;
  font-weight: 950;
}

.guide-index a {
  padding: 10px 12px;
  border-radius: 8px;
  color: #526071;
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
}

.guide-index a:hover,
.guide-index a.active {
  background: #e8f5f3;
  color: #0f766e;
}

.guide-content {
  display: grid;
  gap: 16px;
}

.guide-section {
  scroll-margin-top: 92px;
  padding: clamp(16px, 2vw, 24px);
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, .05);
}

.guide-section.is-hidden {
  display: none;
}

.section-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.section-icon,
.sd-quick-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  border-radius: 8px;
  background: #e8f5f3;
  color: #0f766e;
  font-size: 20px;
}

.section-head h2 {
  margin: 0;
  color: #102033;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 950;
}

.section-head p {
  margin: 6px 0 0;
  color: #667586;
  line-height: 1.7;
}

.guide-check-grid,
.policy-grid,
.report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.guide-check-grid article,
.policy-grid article,
.rule-card,
.entry-card,
.report-grid a {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 8px;
  background: #f8fbfc;
}

.guide-check-grid i,
.report-grid i {
  color: #0f766e;
  font-size: 24px;
}

.guide-check-grid h3,
.policy-grid h3,
.rule-card h3,
.entry-card h3,
.report-grid strong {
  display: block;
  margin: 8px 0 6px;
  color: #102033;
  font-size: 17px;
  font-weight: 950;
}

.guide-check-grid p,
.policy-grid p,
.rule-card p,
.entry-card p,
.report-grid span,
.guide-steps,
.faq-list p {
  color: #536273;
  line-height: 1.75;
}

.flow-board {
  display: grid;
  grid-template-columns: repeat(6, minmax(150px, 1fr));
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.flow-node {
  min-height: 144px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 7px;
  padding: 14px;
  border: 1px solid rgba(15, 118, 110, .18);
  border-radius: 8px;
  background: #f8fbfc;
  text-align: center;
}

.flow-node i {
  color: #0f766e;
  font-size: 26px;
}

.flow-node strong {
  color: #102033;
  font-weight: 950;
}

.flow-node span {
  color: #607080;
  font-size: 13px;
  line-height: 1.55;
}

.flow-node.warning {
  border-color: rgba(217, 119, 6, .26);
  background: #fff8eb;
}

.flow-node.success {
  border-color: rgba(22, 163, 74, .24);
  background: #effaf3;
}

.flow-arrow {
  display: none;
}

.guide-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(15, 118, 110, .2);
  border-radius: 8px;
  background: #eef8f6;
  color: #23433f;
  line-height: 1.75;
}

.guide-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 14px;
}

.guide-steps {
  margin: 0;
  padding-inline-start: 22px;
}

.guide-steps li {
  margin-bottom: 10px;
  padding-inline-start: 4px;
}

.guide-steps.compact li {
  margin-bottom: 7px;
}

.rule-card {
  background: #f7fafc;
}

.entry-card {
  background: #fff8eb;
  border-color: rgba(217, 119, 6, .18);
}

.report-grid a {
  display: grid;
  gap: 4px;
  color: inherit;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.report-grid a:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 118, 110, .28);
  box-shadow: 0 18px 34px rgba(15, 23, 42, .08);
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 8px;
  background: #f8fbfc;
}

.faq-list summary {
  cursor: pointer;
  padding: 14px 16px;
  color: #102033;
  font-weight: 950;
}

.faq-list p {
  margin: 0;
  padding: 0 16px 16px;
}

.guide-empty {
  display: none;
  padding: 18px;
  border: 1px dashed rgba(148, 163, 184, .5);
  border-radius: 8px;
  background: #fff;
  color: #667586;
  text-align: center;
  font-weight: 850;
}

.guide-empty.show {
  display: block;
}

html[dir="rtl"] .sales-guide-page {
  text-align: right;
}

@media (max-width: 1180px) {
  .guide-layout {
    grid-template-columns: 1fr;
  }

  .guide-index {
    position: static;
    display: flex;
    max-height: none;
    overflow-x: auto;
  }

  .guide-index-title {
    display: none;
  }

  .guide-index a {
    white-space: nowrap;
  }
}

@media (max-width: 900px) {
  .guide-hero,
  .guide-two-col {
    grid-template-columns: 1fr;
  }

  .guide-toolbar {
    position: static;
    flex-wrap: wrap;
  }

  .guide-search {
    flex-basis: 100%;
  }
}

@media (max-width: 640px) {
  .sales-guide-page {
    padding: 10px;
  }

  .guide-hero,
  .guide-section {
    padding: 14px;
  }

  .flow-board {
    grid-template-columns: 1fr;
  }

  .section-head {
    flex-direction: column;
  }

  .guide-filter {
    flex: 1 1 auto;
  }
}
