.topic-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 0;
}

.topic-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid #cfe0f5;
  border-radius: 999px;
  background: #fff;
  color: #0b57a4;
  text-decoration: none;
}

.topic-nav a:hover,
.topic-nav a:focus-visible {
  border-color: #0b78d1;
  box-shadow: 0 8px 24px rgba(11, 87, 164, .12);
}

.topic-lead {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0 0;
}

.topic-lead > div,
.scope-grid > div,
.process-grid > div,
.evidence-box {
  border: 1px solid #dbe7f5;
  border-radius: 16px;
  background: #f8fbff;
  padding: 18px;
}

.topic-lead b,
.scope-grid b,
.process-grid b {
  display: block;
  margin-bottom: 6px;
  color: #0b57a4;
}

.topic-lead span,
.scope-grid span,
.process-grid span {
  color: #52647a;
  line-height: 1.75;
}

.scope-grid,
.process-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.process-grid > div {
  position: relative;
  padding-left: 58px;
}

.process-grid em {
  position: absolute;
  left: 18px;
  top: 18px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #087cf0;
  color: #fff;
  font-style: normal;
  font-weight: 700;
}

.answer-strip {
  border-left: 4px solid #087cf0;
  border-radius: 0 14px 14px 0;
  background: linear-gradient(90deg, #eef7ff, #f9fcff);
  padding: 18px 20px;
  font-size: 1.04rem;
  line-height: 1.85;
}

.evidence-box {
  border-color: #b9d8fb;
  background: #f2f8ff;
}

.evidence-box strong {
  color: #084f98;
}

.estimate-table {
  width: 100%;
  border-collapse: collapse;
}

.estimate-table th,
.estimate-table td {
  border-bottom: 1px solid #dbe7f5;
  padding: 13px 12px;
  text-align: left;
  vertical-align: top;
}

.estimate-table th {
  background: #f2f7fc;
  color: #163a62;
}

.conversion-panel {
  margin-top: 26px;
  border-radius: 20px;
  background: linear-gradient(135deg, #075fc5, #00a0e9);
  padding: 26px;
  color: #fff;
}

.conversion-panel h2,
.conversion-panel p {
  color: #fff;
}

.conversion-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.conversion-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 18px;
  border-radius: 999px;
  background: #fff;
  color: #075fc5;
  font-weight: 700;
  text-decoration: none;
}

.review-banner {
  margin: 0 0 18px;
  border: 1px dashed #e6ad37;
  border-radius: 14px;
  background: #fff9eb;
  padding: 14px 16px;
  color: #73510a;
}

@media (max-width: 780px) {
  .detail-page .topic-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  .detail-page .topic-nav a {
    flex: 0 0 auto;
    white-space: nowrap;
    scroll-snap-align: start;
  }

  .detail-page .topic-nav::-webkit-scrollbar {
    display: none;
  }

  .mini-program-layout > aside {
    order: 0;
  }

  .topic-lead,
  .scope-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .estimate-table,
  .estimate-table tbody,
  .estimate-table tr,
  .estimate-table td {
    display: block;
  }

  .estimate-table thead {
    display: none;
  }

  .estimate-table td {
    padding: 10px 0;
  }
}
