/* Company / ticker research index */

.company-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 1rem 0 2rem;
}

.company-card {
  display: flex;
  min-height: 150px;
  flex-direction: column;
  padding: 1rem;
  border: 1px solid var(--research-border);
  border-radius: 14px;
  background: var(--md-default-bg-color);
  color: var(--md-default-fg-color) !important;
  text-decoration: none;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.company-card:hover {
  transform: translateY(-2px);
  border-color: var(--md-accent-fg-color);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.09);
}

.company-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.company-card-head strong {
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.company-card-head span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.68rem;
  opacity: 0.64;
}

.company-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1.15rem;
}

.company-stats span {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  font-size: 0.57rem;
  opacity: 0.62;
}

.company-stats b {
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  opacity: 1;
}

.company-latest {
  margin-top: 0.72rem;
  padding-top: 0.62rem;
  border-top: 1px solid var(--research-border);
  font-size: 0.6rem;
  font-variant-numeric: tabular-nums;
  opacity: 0.55;
}

.company-source-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0.8rem 0 1.8rem;
}

.company-source-card {
  display: flex;
  min-height: 92px;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.72rem;
  border: 1px solid var(--research-border);
  border-radius: 10px;
  color: var(--md-default-fg-color) !important;
  text-decoration: none;
  transition: background 120ms ease, border-color 120ms ease;
}

.company-source-card:hover {
  border-color: var(--md-accent-fg-color);
  background: var(--research-soft);
}

.company-source-card span {
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  opacity: 0.55;
}

.company-source-card strong {
  margin-top: auto;
  font-size: 1.3rem;
  font-variant-numeric: tabular-nums;
}

.company-source-card small {
  font-size: 0.57rem;
  opacity: 0.58;
}

.company-report-list {
  overflow: hidden;
  border: 1px solid var(--research-border);
  border-radius: 12px;
}

.company-report-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 145px;
  align-items: center;
  gap: 0.8rem;
  padding: 0.72rem 0.85rem;
  border-bottom: 1px solid var(--research-border);
  color: var(--md-default-fg-color) !important;
  text-decoration: none;
  transition: background 120ms ease;
}

.company-report-item:last-child {
  border-bottom: 0;
}

.company-report-item:hover {
  background: var(--research-soft);
}

.company-report-section {
  font-size: 0.59rem;
  font-weight: 720;
  opacity: 0.62;
}

.company-report-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.68rem;
}

.company-report-item time {
  text-align: right;
  font-size: 0.59rem;
  font-variant-numeric: tabular-nums;
  opacity: 0.52;
}

@media screen and (max-width: 1100px) {
  .company-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .company-source-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media screen and (max-width: 720px) {
  .company-grid,
  .company-source-grid {
    grid-template-columns: 1fr;
  }

  .company-report-item {
    grid-template-columns: 1fr;
    gap: 0.22rem;
  }

  .company-report-title {
    white-space: normal;
  }

  .company-report-item time {
    text-align: left;
  }
}
