.company {
  padding: 4.8rem 2rem 12rem;
  overflow: hidden;
}

@media screen and (min-width: 1200px) {
  .company {
    padding: 6.4rem 8.8rem 24rem;
  }
}

.company-tabs {
  display: inline-flex;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4.8rem;
  overflow: auto;
  width: 100vw;
  margin-left: -2rem;
  padding-left: 2rem;
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

.company-tabs::-webkit-scrollbar {
  display: none;
}

@media screen and (min-width: 1200px) {
  .company-tabs {
    width: auto;
    margin-left: 0;
    padding-left: 0;
  }
}

.company-tab {
  padding: 1.6rem 2rem 1.4rem;
  text-align: center;
  cursor: pointer;
  flex-shrink: 0;
  border: 1px solid var(--color-gray-lightest);
  background: none;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
}

.company-tab:not(:last-of-type) {
  border-right: none;
}

.company-tab:last-of-type {
  margin-right: 2rem;
}

.company-tab:hover,
.company-tab.is-active {
  color: var(--color-white);
  background-color: var(--color-blue);
}

.company-tab:focus {
  outline: 2px solid var(--color-blue);
  outline-offset: -2px;
  position: relative;
  z-index: 1;
}

.company-tab:focus:not(:focus-visible) {
  outline: none;
}

.company-tab:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: -2px;
  position: relative;
  z-index: 1;
}

.company-details {
  display: grid;
  gap: 4.8rem;
}

.company-details > div:first-of-type {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-x: scroll;
}

.company-details table {
  width: 100%;
  font-family: "Inter" !important;
}

@media screen and (min-width: 1200px) {
  .company-details {
    display: grid;
    grid-template-columns: 2fr 1fr;
  }
}


/* Sidebar */
.company-info {
  background: var(--color-beige-light);
  font-size: 1.2rem;
  line-height: 1.6;
  letter-spacing: 0.03em;
}

.company-info-group {
  padding: 3.2rem 2.4rem
}

@media screen and (min-width: 940px) {
  .company-info-group {
    padding: 4rem;
  }
}

.company-info-group:not(:last-of-type) {
  border-bottom: 1px solid var(--color-blue);
}

.company-info .richText {
  font-size: 1.2rem;
}

.company-info-group h3 {
  margin-bottom: 3.2rem;
}

.company-info-group p {
  font-size: 1.2rem;
  line-height: 1.6;
  letter-spacing: 0.03em;
}

.company-info-group figure {
  width: 100%;
  height: 72px;
  background: white;
}

.company-info-group img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.company-info-group.company-info-group--facts > div {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3.2rem;
}

.company-info-group.company-info-group--shares #share-data > div {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 3.2rem;
}

.company-info-group #share-data > div:not(.richText) span,
.company-info-group > div:not(.richText) span {
  min-width: 0;
}

.company-info-group #share-data > div:not(:last-of-type),
.company-info-group > div:not(:last-of-type) {
  margin-bottom: 2rem;
}

.company-info-group span {
  line-break: auto;
}

.company-info-group figure {
  margin-top: 3.2rem;
}

.company-info-group .button {
  margin-top: 3.6rem;
}


/* Company tabs */
.company-pane {
  display: none;
}

.company-pane__accordion {
  margin-top: 4rem;
  border-top: 1px solid var(--color-blue);
}

.company-pane h2:not(:first-of-type) {
  margin-top: 4.8rem;
}

.company-pane.is-active {
  display: block;
}

.company-articles,
.company-videos {
  width: 100%;
  display: grid;
  gap: 3.2rem;
  margin-top: 4.8rem;
}

.company-articles .cardResearchArticle__image {
  display: none;
}

.company-pane table {
  font-size: 1.1rem !important;
}

@media screen and (min-width: 940px) {
  .company-articles {
    gap: 4.8rem;
  }

  .company-pane table {
    font-size: 1.2rem !important;
  }
  
  .company-videos {
    grid-template-columns: repeat(2, 1fr);
    gap: 4.8rem;
  }
}

.company__social-share {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  border-top: 1px solid var(--color-gray-lightest);
  margin-top: 10rem;
  padding-top: 2.4rem;
}

.company__social-share p {
  margin-bottom: 2.4rem;
}

.company__social-share > div {
  display: flex;
  border: 1px solid var(--color-gray-lightest);
}

.company__social-share a {
  aspect-ratio: 1 / 1;
  width: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.company__social-share a:not(:last-of-type) {
  border-right: 1px solid var(--color-gray-lightest);
}

.company-reports {
  list-style: none;
  padding: 0;
  margin: 6.4rem 0;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.company-reports a {
  text-decoration: none;
  color: var(--color-blue);
  border-bottom: 1px solid var(--color-blue);
  transition: color 200ms, border-color 200ms;
}

.company-reports a:hover {
  color: var(--color-blue-light);
  border-bottom: 1px solid var(--color-blue-light);
}

@media screen and (min-width: 940px) {
  .company-reports {
    margin-bottom: 9.6rem;
  }
}

.fin-table--quarterly {
  display: block;
  overflow-x: scroll;
  white-space: nowrap;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.fin-table--quarterly tbody {
  display: table;
  width: 100%;
}

.fin-table--quarterly th {
  background-color: rgb(15, 45, 70);
  padding: 5px;
  color: white;
  text-align: right;
}

.fin-table--quarterly th,
.fin-table--quarterly td {
  text-align: right;
}

.fin-table--quarterly tr > td:first-child {
  width: 200px;
}

.fin-table--quarterly tbody tr:nth-child(2n) {
  background-color: rgb(242, 242, 242);
}