/* Shared research styles keep the listing and company pages consistent. */
.research-list {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}
.research-row {
  display: grid;
  align-items: center;
  gap: 24px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
.research-client-row { grid-template-columns: minmax(0, 1fr) auto; }
.research-company-link {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  min-width: 0;
  border-radius: 6px;
}
.research-code-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 130px;
  min-height: 68px;
  padding: 8px;
  border-radius: 4px;
  background: var(--purple);
  color: var(--white);
  text-align: center;
  line-height: 1.15;
}
.research-ticker { font-size: 1.75rem; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.research-exchange { margin-top: 2px; font-size: .875rem; text-transform: uppercase; }
.research-company { color: var(--ink); font-size: 1.375rem; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.research-client-row .research-code-badge {
  width: 112px;
  min-height: 72px;
  padding: 8px;
  background: var(--purple);
}
.research-client-row .research-ticker { font-size: 1.5rem; }
.research-company-link .research-company { color: var(--purple); }
.research-company-link:is(:hover, :focus-visible) .research-company { color: var(--purple); text-decoration: underline; text-underline-offset: 5px; }
.research-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.research-actions .research-button { gap: 8px; }
.research-button,
.research-retry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 18px;
  border: 1px solid var(--purple);
  border-radius: 7px;
  background: var(--white);
  color: var(--purple);
  font: inherit;
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
  cursor: pointer;
}
.research-button:hover,
.research-retry:hover { background: var(--paper); }
.research-company-link:focus-visible,
.research-button:focus-visible,
.video-row:focus-visible,
.research-back:focus-visible,
.research-retry:focus-visible { outline: 3px solid var(--purple); outline-offset: 4px; }
.research-status { margin: 24px 0; color: var(--muted); line-height: 1.7; }
.research-status[hidden],
[data-research-reports][hidden],
[data-research-videos][hidden],
[data-reports-empty][hidden],
.video-thumbnail-image[hidden] { display: none; }
.research-retry { margin-left: 16px; }
.research-sort { color: var(--muted); font-size: .875rem; }
.research-back { display: inline-block; color: var(--purple); margin-bottom: 32px; }
.client-heading { display: flex; align-items: center; gap: 24px; margin-bottom: 32px; }
.client-heading .research-code-badge { flex-shrink: 0; }
.client-heading h1 { margin: 0; font: inherit; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.client-profile { display: flex; align-items: flex-start; gap: 48px; margin-bottom: 48px; }
.client-logo { width: 260px; height: 160px; object-fit: contain; flex-shrink: 0; }
.client-facts { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 20px 28px; margin: 0; flex: 1; min-width: 0; font-size: 1rem; line-height: 1.85; }
.client-facts dt { font-weight: 700; color: var(--purple); }
.client-facts dd { margin: 0; overflow-wrap: anywhere; }
.client-about { white-space: pre-line; }
[data-research-reports],
[data-research-videos],
[data-videos-status] { scroll-margin-top: 110px; }
/* Fragment navigation focuses these sections without outlining the entire content area. */
[data-research-reports]:focus,
[data-research-videos]:focus { outline: none; }
[data-research-reports] h2,
[data-research-videos] h2 { font: inherit; font-size: clamp(1.375rem, 2.6vw, 1.75rem); font-weight: 600; line-height: 1.4; margin: 10px 0 24px; }
.report-row { grid-template-columns: 140px minmax(0, 1fr) auto; }
.report-row .research-company { font: inherit; font-size: 1.125rem; font-weight: 600; line-height: 1.6; margin: 0; }
.research-date { color: var(--muted); font-size: .875rem; font-variant-numeric: tabular-nums; line-height: 1.5; }
[data-research-videos] { margin-top: 56px; }
.video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.video-grid > li { min-width: 0; }
.video-row { display: flex; flex-direction: column; align-items: flex-start; height: 100%; border-radius: 8px; }
.video-thumbnail { display: block; position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; background: #e9e0ee; }
.video-thumbnail-image { width: 100%; height: 100%; object-fit: cover; }
.video-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 58px; height: 40px; border-radius: 12px; background: #e62117; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.video-play::after { content: ""; width: 0; height: 0; margin-left: 3px; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 13px solid white; }
.video-row .research-company { margin: 14px 0 8px; font: inherit; font-size: 1.125rem; font-weight: 600; line-height: 1.5; color: var(--purple); }
.video-row .research-date { margin-bottom: 8px; }
.report-video { margin-top: auto; color: var(--purple); font-size: .875rem; }
.video-row:is(:hover, :focus-visible) .research-company { text-decoration: underline; text-underline-offset: 4px; }
.video-row:is(:hover, :focus-visible) .video-play { background: #c91810; }
@media (max-width: 900px) {
  .research-client-row { gap: 16px; }
  .research-company-link { gap: 18px; }
  .research-actions { gap: 8px; }
  .research-button { padding: 9px 14px; }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-row { grid-template-columns: minmax(0, 1fr) auto; gap: 12px 20px; }
  .report-row .research-date { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .research-client-row { grid-template-columns: 1fr; }
  .research-actions { justify-content: flex-start; padding-left: 130px; }
  .client-profile { flex-direction: column; gap: 24px; margin-bottom: 36px; }
  .client-logo { width: 220px; height: 140px; max-width: 100%; }
  .client-facts { grid-template-columns: 1fr; gap: 8px; width: 100%; }
  .client-facts dd { margin-bottom: 16px; }
  [data-research-videos] { margin-top: 40px; }
}
@media (max-width: 480px) {
  .research-row { padding: 16px; gap: 14px; }
  .research-company-link { grid-template-columns: 84px minmax(0, 1fr); gap: 14px; }
  .research-code-badge { width: 92px; min-height: 64px; }
  .research-client-row .research-code-badge { width: 84px; min-height: 64px; }
  .research-client-row .research-ticker { font-size: 1.375rem; }
  .research-ticker { font-size: 1.5rem; }
  .research-company { font-size: 1.125rem; }
  .research-actions { padding-left: 0; }
  .research-actions .research-button { flex: 1; }
  .client-heading { gap: 16px; }
  .report-row { grid-template-columns: 1fr; }
  .report-pdf { justify-self: start; }
  .video-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* Compact company directory; report and company detail layouts stay independent. */
.research-directory { padding: 32px 0; }
.research-directory > .container { max-width: 1600px; }
.research-directory h2 { margin: 8px 0 12px; font-size: clamp(1.75rem, 3vw, 2.25rem); }
.research-directory .research-sort { margin: 0; font-size: .875rem; }
.research-markets { display: grid; gap: 28px; margin-top: 24px; }
.research-market { min-width: 0; }
.research-market .research-market-heading {
  margin: 0;
  padding: 12px 16px;
  border-radius: 5px;
  background: var(--purple);
  color: var(--white);
  font: inherit;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.5;
}
.research-market .research-list { gap: 4px; margin-top: 12px; }
.research-market-empty { color: var(--muted); font-size: .875rem; line-height: 1.7; }
.research-client-row {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 5px;
  min-width: 0;
}
.research-client-row .research-company-link {
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  min-height: 36px;
}
.research-client-row .research-code-badge {
  width: 76px;
  min-height: 48px;
  padding: 8px 4px;
  border-radius: 4px;
  line-height: 1.1;
}
.research-client-row .research-ticker { font-size: 1rem; }
.research-client-row .research-exchange { margin-top: 2px; font-size: .75rem; }
.research-client-row .research-company { font-size: 1rem; line-height: 1.4; }
.research-client-row .research-actions { gap: 6px; padding: 0; flex-wrap: nowrap; }
.research-client-row .research-button {
  flex: none;
  gap: 4px;
  min-height: 32px;
  padding: 4px 7px;
  border-radius: 4px;
  font-size: .875rem;
}
@media (min-width: 960px) {
  .research-markets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .research-directory .research-markets { gap: 24px; }
  .research-market .research-market-heading { padding: 12px 14px; border-radius: 8px; }
  .research-market .research-list { gap: 8px; }
  .research-client-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
  }
  .research-client-row .research-company-link {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 10px;
  }
  .research-client-row .research-code-badge { width: 76px; min-height: 52px; }
  .research-client-row .research-company { line-height: 1.5; }
  .research-client-row .research-actions {
    display: grid;
    gap: 6px;
    padding: 0;
    justify-self: end;
  }
  .research-client-row .research-button { min-height: 44px; padding: 8px 10px; }
}
/* Wider phones have room for both actions on one line. */
@media (min-width: 480px) and (max-width: 600px) {
  .research-client-row .research-actions { grid-auto-flow: column; }
}
/* Preserve name legibility on narrow phones and at increased browser zoom. */
@media (max-width: 374px) {
  .research-client-row .research-company-link { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}
