.asc-reason-detail {
  scroll-margin-top: 128px;
  background: var(--white);
}

.asc-reason-detail--alt {
  background: var(--surface-subtle);
  border-top: 1px solid var(--border-subtle);
}

.asc-reason-detail__inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: clamp(56px, 7vw, 96px) clamp(20px, 4vw, 40px);
}

.asc-reason-detail__head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}

.asc-reason-detail__num {
  margin: 0;
  font-family: var(--font-latin);
  font-size: 14px;
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-eyebrow);
  color: var(--grey-400);
}

.asc-reason-detail__eyebrow {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-eyebrow);
  font-weight: var(--fw-bold);
  color: var(--text-muted);
}

.asc-reason-detail__eyebrow-bar {
  width: 24px;
  height: 2px;
  background: var(--brand-accent);
}

.asc-reason-detail__title {
  margin: 0;
  font-size: var(--fs-h2);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
  font-weight: var(--fw-bold);
  color: var(--text-body);
}

.asc-reason-detail__lead {
  margin: 0;
  max-width: 52em;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-muted);
}

.asc-reason-detail__lead-line {
  display: inline-block;
}

.asc-reason-detail__flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr) 40px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}

.asc-reason-detail__flow-step {
  display: flex;
  align-items: center;
  padding: 20px 18px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: var(--white);
  font-size: 17px;
  font-weight: var(--fw-bold);
  color: var(--text-heading);
  line-height: var(--lh-heading);
}

.asc-reason-detail__flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-300);
}

.asc-reason-detail__flow-arrow svg {
  width: 22px;
  height: 22px;
}

.asc-reason-detail__box {
  margin-top: 32px;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: var(--white);
}

.asc-reason-detail__box-title {
  display: block;
  margin-bottom: 20px;
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  color: var(--text-body);
}

.asc-reason-detail__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.asc-reason-detail__card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  padding: 24px 20px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow-xs);
}

.asc-reason-detail__card-title {
  display: flex;
  align-items: center;
  min-height: calc(16px * var(--lh-heading) * 2);
  font-size: 17px;
  font-weight: var(--fw-bold);
  color: var(--text-heading);
  line-height: var(--lh-heading);
}

.asc-reason-detail__card-desc {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-muted);
}

.asc-reason-detail__cards--spaced {
  margin-bottom: 40px;
}

.asc-reason-detail__cards--2col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.asc-reason-detail__box--accent {
  border-color: var(--purple-200);
  background: var(--surface-primary-soft);
}

.asc-reason-detail__box-desc {
  margin: 0;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-body);
}

.asc-reason-detail__table-wrap {
  overflow-x: auto;
}

.asc-reason-detail__table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  table-layout: fixed;
}

.asc-reason-detail__table th,
.asc-reason-detail__table td {
  text-align: left;
  vertical-align: baseline;
  padding: 20px 24px 20px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.asc-reason-detail__table thead th {
  padding-top: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-default);
  font-size: 15px;
  font-weight: var(--fw-bold);
  color: var(--text-heading);
}

.asc-reason-detail__table tbody th {
  font-size: 15px;
  font-weight: var(--fw-bold);
  color: var(--text-body);
  white-space: nowrap;
}

.asc-reason-detail__table td {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-muted);
  text-wrap: pretty;
}

.asc-reason-detail__formula {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: var(--white);
  text-align: center;
}

.asc-reason-detail__formula-item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.asc-reason-detail__formula-title {
  font-size: 20px;
  font-weight: var(--fw-bold);
  color: var(--text-heading);
}

.asc-reason-detail__formula-note {
  font-size: var(--fs-body);
  color: var(--text-muted);
}

.asc-reason-detail__formula-plus {
  font-size: 20px;
  font-weight: var(--fw-bold);
  color: var(--purple-300);
}

.asc-reason-detail__step {
  display: grid;
  grid-template-columns: 40px minmax(220px, max-content) minmax(240px, 1fr);
  gap: 8px 0px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-subtle);
  align-items: baseline;
}

@media (min-width: 768px) {
  .asc-reason-detail__step {
    grid-template-columns: 40px 340px minmax(240px, 1fr);
  }
}

.asc-reason-detail__step-num {
  font-family: var(--font-latin);
  font-size: 14px;
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-eyebrow);
  color: var(--grey-400);
}

.asc-reason-detail__step-title {
  font-size: 17px;
  font-weight: var(--fw-bold);
  color: var(--text-heading);
}

.asc-reason-detail__step-desc {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-muted);
}

.asc-reason-detail__timeline {
  margin-top: 32px;
  padding: clamp(24px, 3.5vw, 32px);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: var(--white);
}

.asc-reason-detail__timeline-caption {
  display: block;
  margin-bottom: 20px;
  font-size: 17px;
  font-weight: var(--fw-bold);
  color: var(--text-muted);
}

.asc-reason-detail__timeline-scroll {
  overflow-x: auto;
}

.asc-reason-detail__timeline-inner {
  min-width: 640px;
}

.asc-reason-detail__timeline-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 17px;
  font-weight: var(--fw-bold);
  color: var(--text-muted);
}

.asc-reason-detail__timeline-labels strong {
  font-weight: inherit;
  color: var(--brand-primary);
}

.asc-reason-detail__timeline-band {
  position: relative;
  height: 64px;
  margin-bottom: 14px;
}

.asc-reason-detail__timeline-ribbon {
  position: absolute;
  left: 7.5%;
  right: 7%;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  text-align: center;
  background: var(--surface-primary-soft);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%);
  font-size: 18px;
  font-weight: var(--fw-bold);
  line-height: 1.5;
  color: var(--brand-primary);
}

.asc-reason-detail__timeline-track {
  position: relative;
  height: 1px;
  background: var(--grey-300);
}

.asc-reason-detail__timeline-dot {
  position: absolute;
  top: 0;
  transform: translate(40%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-pill);
  background: var(--brand-primary);
  color: var(--white);
  font-family: var(--font-latin);
  font-size: 11px;
  font-weight: var(--fw-bold);
}

.asc-reason-detail__timeline-months {
  display: flex;
  margin-top: 16px;
  font-size: 14px;
  color: var(--grey-400);
}

.asc-reason-detail__timeline-months span {
  flex: 1;
  text-align: center;
}

.asc-reason-detail__counts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.asc-reason-detail__count-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: var(--white);
}

.asc-reason-detail__count-card--active {
  border-color: var(--brand-primary);
}

.asc-reason-detail__count-head {
  display: flex;
  align-items: center;
  gap: 6px;
}

.asc-reason-detail__count-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-pill);
  background: var(--brand-primary);
  color: var(--white);
  font-family: var(--font-latin);
  font-size: 10px;
  font-weight: var(--fw-bold);
}

.asc-reason-detail__count-date {
  font-size: 17px;
  font-weight: var(--fw-bold);
  color: var(--text-heading);
  white-space: nowrap;
}

.asc-reason-detail__count-desc {
  font-size: 14px;
  line-height: var(--lh-body);
  color: var(--text-muted);
}

.asc-reason-detail__count-pill {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  height: 32px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  font-size: 17px;
  font-weight: var(--fw-bold);
  white-space: nowrap;
  background: var(--surface-subtle);
  color: var(--text-muted);
}

.asc-reason-detail__count-pill--active {
  background: var(--brand-primary);
  color: var(--white);
}

.asc-reason-detail__support-row {
  display: grid;
  grid-template-columns: minmax(230px, max-content) minmax(240px, 1fr);
  gap: 8px 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-subtle);
  align-items: baseline;
}

.asc-reason-detail__support-title {
  font-size: 17px;
  font-weight: var(--fw-bold);
  color: var(--text-heading);
}

.asc-reason-detail__support-desc {
  font-size: 17px;
  line-height: var(--lh-body);
  color: var(--text-muted);
}

.asc-reason-detail__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
  color: var(--brand-primary);
  text-decoration: none;
  background-image: linear-gradient(var(--brand-accent), var(--brand-accent));
  background-repeat: no-repeat;
  background-position: center 100%;
  background-size: 0% 2px;
  padding-bottom: 3px;
  transition: background-size var(--duration-base) var(--ease-standard);
}

.asc-reason-detail__more:hover {
  background-size: 100% 2px;
}

.asc-reason-detail__more svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 1023px) {
  .asc-reason-detail__flow {
    grid-template-columns: minmax(0, 1fr);
  }

  .asc-reason-detail__flow-arrow svg {
    transform: rotate(90deg);
  }

  .asc-reason-detail__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .asc-reason-detail__cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .asc-reason-detail__formula {
    grid-template-columns: minmax(0, 1fr);
  }

  .asc-reason-detail__step {
    grid-template-columns: minmax(0, 1fr);
  }

  .asc-reason-detail__counts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .asc-reason-detail__support-row {
    grid-template-columns: minmax(0, 1fr);
  }
}
