.story-tip-section.profile-tip-section.chapter-tip-banner {
  --chapter-border-soft: var(--Border-Neutral-subtle, #e4e5e7);

  margin: 0 auto;
  max-width: 956px;
  padding-block: 48px;
  width: 100%;
}

body.comic-detail-page .story-detail-v3-chapters > .story-tip-section {
  margin-inline: 0;
  max-width: none;
  padding-inline: 0;
}

.story-tip-section__header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 20px;
}

.story-tip-section__header h2 {
  color: var(--Text-Neutral-primary);
  font-family: var(--Title-Page-font-family, var(--twl-font-heading));
  font-size: var(--Title-Page-font-size-lg, 32px);
  font-weight: 700;
  line-height: 1;
  margin: 0;
}

.story-tip-section__header p {
  color: var(--Text-Neutral-secondary);
  font-family: var(--Body-font-family, var(--twl-font-body));
  font-size: var(--Body-font-size-md, 14px);
  font-weight: 500;
  line-height: var(--Body-font-line-height-md, 21px);
  margin: 0;
}

.story-tip-section:not(.is-expanded) .story-tip-section__layout {
  max-height: 261px !important;
}

.story-tip-section .story-tip-section__layout {
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .story-tip-section .story-tip-section__layout {
    transition: none !important;
  }
}

.story-tip-section .profile-tip-section__subtabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.story-tip-section__mobile-tabs {
  display: none;
}

@media (max-width: 767px) {
  .story-tip-section.profile-tip-section.chapter-tip-banner {
    gap: 24px;
  }
  .story-tip-section:not(.is-expanded) .story-tip-section__layout,
  .story-tip-section .story-tip-section__layout {
    max-height: none !important;
    overflow: visible !important;
  }

  .story-tip-section [data-story-tip-rank-panel] .chapter-tip-rank-item ~ .chapter-tip-rank-item {
    border-top: 1px solid var(--Border-Neutral-subtle);
  }

  .story-tip-section .chapter-tip-banner__toggle {
    display: none !important;
  }

  .story-tip-section [data-story-tip-rank-panel] .chapter-tip-rank-item:nth-child(n + 6) {
    display: none;
  }

  .story-tip-section.profile-tip-section.chapter-tip-banner {
    padding-inline: 16px;
  }

  .story-tip-section__mobile-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow-x: auto;
    width: 100%;
  }

  .story-tip-section__mobile-tabs .profile-tip-section__subtab {
    font-family: var(--Action-font-family, var(--twl-font-heading));
    font-size: var(--Action-font-size-lg, 20px);
    min-width: 0;
    padding: 8px 4px;
    white-space: nowrap;
  }

  .story-tip-section .profile-tip-section__leaderboard > .profile-tip-section__subtabs,
  .story-tip-section .chapter-tip-banner__divider,
  .story-tip-section .chapter-tip-banner__section-title {
    display: none;
  }

  .story-tip-section .story-tip-section__mobile-hidden {
    display: none;
  }

  .story-tip-section .chapter-tip-items-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: 28px;
  }
}
