/** Final owner-approved Company hub, Profile, Blueprint and editor-facing public corrections. */

/* Hub cards: predecessor hierarchy, equal desktop cards and the approved gold side glow. */
.tsr-company-hub-grid { align-items: stretch; }

.tsr-company-hub-card {
  position: relative;
  height: 100%;
  min-height: 590px;
  overflow: hidden;
  padding: 36px !important;
  background:
    radial-gradient(ellipse at 104% 42%, rgba(255, 158, 9, .12), transparent 43%),
    rgba(18, 21, 25, .92) !important;
}

.tsr-company-hub-card::after {
  position: absolute;
  inset: 0 0 0 auto;
  width: 3px;
  background: linear-gradient(180deg, transparent, #ff9e09 38%, #ffb33a 62%, transparent);
  content: "";
  opacity: .9;
  pointer-events: none;
}

.tsr-company-hub-card .tsr-company-pill-layout { gap: 10px; }
.tsr-company-hub-card .tsr-company-pill-row { gap: 10px 12px; }
.tsr-company-hub-card .tsr-company-card-title-row { margin-top: 30px; }
.tsr-company-hub-card .tsr-company-card__project { margin-top: 11px !important; }

.tsr-company-card__why {
  margin-top: 30px;
  color: var(--tsr-company-muted);
}

.tsr-company-card__why .tsr-company-component-label { margin-bottom: 9px !important; }
.tsr-company-card__why p:not(.tsr-company-component-label) { margin: 0 !important; font-size: 15px !important; line-height: 1.65 !important; }
.tsr-company-card__why p + p { margin-top: 10px !important; }

.tsr-company-hub-card .tsr-company-card-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 30px;
}

.tsr-company-hub-card .tsr-company-card-metrics > div { min-height: 124px; }

.tsr-company-card-disclosure { margin-top: 26px; }
.tsr-company-card-disclosure-link {
  display: inline-flex;
  margin-top: 13px;
  color: var(--tsr-company-gold) !important;
  font-size: 12px;
  font-weight: 850;
  gap: 7px;
  text-decoration: none !important;
}

.tsr-company-hub-card .tsr-company-card-actions { margin-top: auto; padding-top: 28px; }
.tsr-company-hub-card .tsr-company-card-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tsr-company-hub-card .tsr-company-card-actions > :only-child { grid-column: 1 / -1; }

/* Public Profile on-page navigation. Full Disclosure links remain in Full Disclosure only. */
.tsr-company-page-navigation {
  position: sticky;
  top: 0;
  z-index: 18;
  padding: 12px 0;
  border-block: 1px solid var(--tsr-company-border);
  background: rgba(11, 13, 15, .96);
  backdrop-filter: blur(12px);
}

.tsr-company-page-navigation .tsr-company-profile-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tsr-company-page-navigation span {
  flex: 0 0 auto;
  color: var(--tsr-company-gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.tsr-company-page-navigation div div {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 3px;
  scrollbar-width: thin;
}

.tsr-company-page-navigation a {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid var(--tsr-company-border);
  border-radius: 999px;
  color: var(--tsr-company-muted) !important;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none !important;
}

.tsr-company-page-navigation a:hover,
.tsr-company-page-navigation a:focus-visible,
.tsr-company-page-navigation a.is-active {
  border-color: var(--tsr-company-gold);
  color: var(--tsr-company-gold) !important;
}

.tsr-company-section h2[id] { scroll-margin-top: 94px; }
.tsr-company-thesis-grid > article { min-height: 260px; }
.tsr-company-hero-overview h2 { color: var(--tsr-company-text) !important; }

/* Blueprint disclosure surfaces share the Profile container and visual system exactly. */
.tsr-blueprint-three-part-body > .tsr-blueprint-summary-disclosure,
.tsr-blueprint-three-part-body > .tsr-blueprint-disclosure-pills,
.tsr-blueprint-three-part-body > .tsr-company-disclosure-section {
  --tsr-company-page: #0b0d0f;
  --tsr-company-surface: #121519;
  --tsr-company-border: #2b313a;
  --tsr-company-border-strong: #444c58;
  --tsr-company-text: #f5f7fa;
  --tsr-company-muted: #b7c0cc;
  --tsr-company-subtle: #87919e;
  --tsr-company-gold: #ff9e09;
  box-sizing: border-box !important;
  color: var(--tsr-company-text) !important;
  font-family: Inter, "Segoe UI", Arial, sans-serif !important;
}

.tsr-blueprint-three-part-body .tsr-blueprint-summary-disclosure .tsr-company-profile-wrap,
.tsr-blueprint-three-part-body .tsr-blueprint-disclosure-pills .tsr-company-profile-wrap,
.tsr-blueprint-three-part-body .tsr-company-disclosure-section .tsr-company-profile-wrap {
  width: calc(100% - (2 * clamp(20px, 4vw, 48px))) !important;
  max-width: min(1240px, calc(100dvw - (2 * clamp(20px, 4vw, 48px)))) !important;
  margin-inline: auto !important;
}

.tsr-blueprint-three-part-body .tsr-blueprint-summary-disclosure .tsr-company-hero-disclosure,
.tsr-blueprint-three-part-body .tsr-blueprint-disclosure-pills .tsr-company-pill-layout {
  width: 100% !important;
  max-width: none !important;
  margin-inline: 0 !important;
}

.tsr-blueprint-three-part-body .tsr-company-hero-disclosure {
  border: 1px solid rgba(255, 158, 9, .62) !important;
  border-radius: 18px !important;
  background: rgba(18, 21, 25, .94) !important;
  color: var(--tsr-company-text) !important;
}

.tsr-blueprint-three-part-body .tsr-company-component-label {
  color: var(--tsr-company-gold) !important;
  font-size: 11px !important;
  font-weight: 850 !important;
  letter-spacing: .105em !important;
  line-height: 1.45 !important;
  text-transform: uppercase !important;
}

.tsr-blueprint-three-part-body .tsr-company-hero-disclosure h2,
.tsr-blueprint-three-part-body .tsr-company-disclosure-panel h2 {
  color: var(--tsr-company-text) !important;
  font-family: Inter, "Segoe UI", Arial, sans-serif !important;
  font-weight: 850 !important;
  letter-spacing: -.035em !important;
}

.tsr-blueprint-three-part-body .tsr-company-hero-disclosure p,
.tsr-blueprint-three-part-body .tsr-company-disclosure-panel p,
.tsr-blueprint-three-part-body .tsr-company-disclosure-panel li {
  color: var(--tsr-company-muted) !important;
  font-family: Inter, "Segoe UI", Arial, sans-serif !important;
}

.tsr-blueprint-three-part-body .tsr-company-coverage-active,
.tsr-blueprint-three-part-body .tsr-pill-gold {
  border-color: rgba(255, 158, 9, .78) !important;
  background: rgba(255, 158, 9, .09) !important;
  color: #ff9e09 !important;
}

.tsr-prior-content-compensation-pill { border-color: rgba(255, 158, 9, .72) !important; color: #ffc05c !important; }

/* Reinforce one neutral disclosure-card treatment inside owner Blueprints. */
.tsr-blueprint-three-part-body .tsr-public-full-disclosure > section {
  border: 1px solid #5e6975 !important;
  background: #15191e !important;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  white-space: nowrap !important;
}

@media (max-width: 760px) {
  .tsr-company-hub-card { min-height: 0; padding: 26px !important; }
  .tsr-company-hub-card .tsr-company-card-metrics { grid-template-columns: 1fr; }
  .tsr-company-hub-card .tsr-company-card-metrics > div { min-height: 0; }
  .tsr-company-page-navigation .tsr-company-profile-wrap { align-items: flex-start; flex-direction: column; gap: 7px; }
  .tsr-company-page-navigation div div { width: 100%; }
  .tsr-company-pill-row .tsr-pill { min-height: 40px; }
  .tsr-company-thesis-grid > article { min-height: 0; }
}

@media (max-width: 520px) {
  .tsr-company-hub-card .tsr-company-card-actions { grid-template-columns: 1fr; }
}
