.answer-panel,
.source-standard,
.learning-path,
.workflow-table-section,
.common-questions,
.support-guides {
  margin-top: 28px;
}

.answer-panel,
.source-standard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  border: 1px solid #d9e0ec;
  border-radius: 16px;
  background: #f6f8fc;
}

.answer-panel > div,
.source-standard > div {
  min-width: 0;
}

.answer-panel h2,
.source-standard h2,
.learning-path h2,
.workflow-table-section h2,
.common-questions h2,
.support-guides h2 {
  margin: 4px 0 0;
}

.answer-panel h2,
.source-standard h2 {
  color: #172033;
}

.answer-panel p,
.source-standard p,
.learning-path header > p:last-child,
.workflow-table-section > p,
.common-questions article p,
.support-guides > p {
  line-height: 1.7;
}

.answer-panel p,
.source-standard p {
  color: #4c5668;
  max-width: 760px;
  margin: 10px 0 0;
}

.learning-path header > p:last-child,
.workflow-table-section > p,
.common-questions article p,
.support-guides > p {
  color: #a5adbd;
}

.path-label {
  margin: 0;
  color: #4351c7;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.primary-action {
  display: inline-flex;
  min-height: 48px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 10px;
  background: #4555d5;
  color: #fff;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.primary-action:hover {
  background: #3444c6;
}

.path-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
  scroll-margin-top: 24px;
}

.path-nav a {
  display: grid;
  min-height: 132px;
  align-content: start;
  gap: 6px;
  padding: 16px;
  border: 1px solid #d9e0ec;
  border-radius: 12px;
  color: #f4f5f8;
  text-decoration: none;
}

.path-nav a:hover {
  border-color: #8c98e8;
  background: #171c2a;
}

.path-nav span {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e9edff;
  color: #3545bd;
  font-weight: 900;
}

.path-nav strong,
.path-nav small {
  display: block;
}

.path-nav small {
  color: #b7bfd0;
  line-height: 1.45;
}

.source-standard {
  align-items: flex-start;
  border-left: 5px solid #4555d5;
}

.source-standard > div {
  flex: 0 0 260px;
}

.source-standard > p {
  margin: 0;
}

.source-standard a {
  color: #3345c6;
}

.workflow-table {
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid #d9e0ec;
  border-radius: 14px;
}

.workflow-row {
  display: grid;
  grid-template-columns: 110px minmax(180px, 1.1fr) minmax(210px, 1.3fr) minmax(170px, 0.9fr);
  border-top: 1px solid #e3e8f1;
  background: #f6f8fc;
}

.workflow-row:first-child {
  border-top: 0;
}

.workflow-row > * {
  padding: 14px;
}

.workflow-header {
  background: #eef1f7;
  color: #303a4c;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.workflow-row:not(.workflow-header) > * {
  color: #4b5668;
  line-height: 1.5;
}

.workflow-row:not(.workflow-header) strong {
  color: #172033;
}

.workflow-row a {
  color: #3345c6;
  font-weight: 750;
}

.learning-path {
  padding-top: 24px;
  border-top: 1px solid #dfe4ed;
  scroll-margin-top: 24px;
}

.learning-path header {
  max-width: 850px;
}

.learning-path header > p:last-child {
  margin: 10px 0 0;
}

.learning-path .link-grid {
  margin-top: 18px;
}

.featured-card {
  border-color: #aeb7ee;
  background: #171c2a;
}

.featured-card > span {
  display: block;
  margin-bottom: 7px;
  color: #aeb6ff;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.common-questions > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.common-questions article {
  padding: 20px;
  border: 1px solid #d9e0ec;
  border-radius: 12px;
}

.common-questions article h3,
.common-questions article p {
  margin: 0;
}

.common-questions article p {
  margin-top: 8px;
}

.compact-grid {
  margin-top: 16px;
}

.primary-action:focus-visible,
.path-nav a:focus-visible,
.link-card:focus-visible,
.workflow-row a:focus-visible,
.source-standard a:focus-visible,
.common-questions a:focus-visible {
  outline: 3px solid #4555d5;
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .path-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .path-nav a:last-child {
    grid-column: 1 / -1;
  }

  .workflow-table {
    border: 0;
    overflow: visible;
  }

  .workflow-header {
    display: none;
  }

  .workflow-row {
    grid-template-columns: 1fr;
    margin-top: 12px;
    border: 1px solid #d9e0ec;
    border-radius: 12px;
  }

  .workflow-row > * {
    padding: 6px 14px;
  }

  .workflow-row > *:first-child {
    padding-top: 14px;
  }

  .workflow-row > *:last-child {
    padding-bottom: 14px;
  }
}

@media (max-width: 680px) {
  .answer-panel,
  .source-standard {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-action {
    width: 100%;
  }

  .source-standard > div {
    flex-basis: auto;
  }

  .path-nav,
  .common-questions > div {
    grid-template-columns: 1fr;
  }

  .path-nav a,
  .path-nav a:last-child {
    min-height: 112px;
    grid-column: auto;
  }
}
