/* ============================================================
   [MOD-173-42] Company history internal scroll and latest first
   Scoped to the MOD-173-41 company page root.
============================================================ */

.company-profile-17341 .company-profile-17341__summary {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.company-profile-17341 .company-profile-17341__summary-heading {
  position: relative;
  z-index: 2;
  background: #ffffff;
}

.company-profile-17341 .company-profile-17342__history-viewport {
  min-height: 0;
  max-height: 326px;
  padding: 4px 12px 4px 3px;
  overflow-x: clip;
  overflow-y: auto;
  scroll-behavior: smooth;
  scrollbar-color: #719fdc #eaf1fa;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.company-profile-17341 .company-profile-17342__history-viewport:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .34);
  outline-offset: 3px;
  border-radius: 12px;
}

.company-profile-17341 .company-profile-17342__history-viewport::-webkit-scrollbar {
  width: 8px;
}

.company-profile-17341 .company-profile-17342__history-viewport::-webkit-scrollbar-track {
  border-radius: 999px;
  background: #eaf1fa;
}

.company-profile-17341 .company-profile-17342__history-viewport::-webkit-scrollbar-thumb {
  border: 2px solid #eaf1fa;
  border-radius: 999px;
  background: #719fdc;
}

.company-profile-17341 .company-profile-17342__history-viewport::-webkit-scrollbar-thumb:hover {
  background: #3f79c5;
}

.company-profile-17341 .company-profile-17342__history-list li {
  min-height: 78px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.company-profile-17341 .company-profile-17342__history-list li.is-latest > div {
  border-color: #a9d9e5;
  background: linear-gradient(135deg, #ebf5ff, #eafafa);
}

.company-profile-17341 .company-profile-17342__latest-badge {
  display: inline-flex;
  margin-left: 6px;
  padding: 3px 7px;
  border: 1px solid #9ed8e1;
  border-radius: 999px;
  color: #08788b;
  background: #e4f8f9;
  font-size: .63rem;
  font-weight: 900;
  line-height: 1.2;
  vertical-align: middle;
}

.company-profile-17341 .company-profile-17342__scroll-hint {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin: 10px 1px 0;
  color: #738199;
  font-size: .72rem;
  font-weight: 720;
  line-height: 1.4;
}

.company-profile-17341 .company-profile-17342__scroll-hint i {
  color: #3979cc;
}

.company-profile-17341 .company-profile-17342__full-history-group {
  align-items: start;
}

.company-profile-17341 .company-profile-17342__full-history-events {
  display: grid;
  gap: 13px;
}

.company-profile-17341 .company-profile-17342__full-history-events article + article {
  padding-top: 13px;
  border-top: 1px solid #dce7f4;
}

.company-profile-17341 .company-profile-17342__full-history-events article h3,
.company-profile-17341 .company-profile-17342__full-history-events article p {
  margin-right: 0;
  margin-left: 0;
}

@media (min-width: 1440px) {
  .company-profile-17341 .company-profile-17342__history-viewport {
    max-height: 330px;
  }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
  .company-profile-17341 .company-profile-17342__history-viewport {
    max-height: 306px;
  }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
  .company-profile-17341 .company-profile-17342__history-viewport {
    max-height: 360px;
  }
}

@media (max-width: 767.98px) {
  .company-profile-17341 .company-profile-17342__history-viewport {
    max-height: 400px;
    padding-right: 9px;
  }

  .company-profile-17341 .company-profile-17342__history-list li {
    min-height: 84px;
  }

  .company-profile-17341 .company-profile-17342__scroll-hint {
    justify-content: flex-start;
    margin-top: 9px;
    font-size: .69rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .company-profile-17341 .company-profile-17342__history-viewport {
    scroll-behavior: auto;
  }
}
