/* ContractScope Public Beta v1.10 — shared report typography & controls.
   Loaded after each report's own stylesheet to ensure a consistent visual scale.
   Does not affect chart/card typography or business logic. */
:root {
  --cs-report-title-size: 52px;
  --cs-report-subtitle-size: 16px;
  --cs-report-filter-size: 14px;
  --cs-report-control-height: 40px;
}
/* Report titles: align to the existing Market Intelligence reference */
body.cs-report-market .hero-title,
body.cs-report-executive .hero-title,
body.cs-report-agency .page-title,
body.cs-report-competitor .hero-title,
body.cs-report-company .company-name {
  font-family: 'DM Serif Display', serif;
  font-size: var(--cs-report-title-size) !important;
  font-weight: 400;
  line-height: 1.13;
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
}
body.cs-report-market .hero-sub,
body.cs-report-executive .hero-sub,
body.cs-report-agency .page-sub,
body.cs-report-competitor .hero-sub,
body.cs-report-company .company-meta {
  font-size: var(--cs-report-subtitle-size);
  line-height: 1.5;
}
/* Period selectors across report types */
body[class*="cs-report-"] select.period-select {
  font-size: var(--cs-report-filter-size) !important;
  min-height: 42px;
  padding: 9px 34px 9px 13px;
  border-radius: 8px;
  max-width: 100%;
}
body.cs-report-market .period-picker,
body.cs-report-executive .period-picker {
  min-height: 50px;
  border-radius: 9px;
}
/* Filters: maintain active/hover colors from page-specific styles */
body.cs-report-market .filter-pill,
body.cs-report-agency .filter-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--cs-report-filter-size) !important;
  min-height: var(--cs-report-control-height);
  padding: 9px 15px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
body.cs-report-agency .controls { gap: 8px; }
body.cs-report-agency .type-badge { font-family:'DM Sans', sans-serif; font-size: 12px; letter-spacing: normal; }
@media (max-width: 768px) {
  :root { --cs-report-title-size: 32px; --cs-report-subtitle-size: 14px; --cs-report-filter-size: 13px; }
  body.cs-report-market .hero-title,
  body.cs-report-executive .hero-title,
  body.cs-report-agency .page-title,
  body.cs-report-competitor .hero-title,
  body.cs-report-company .company-name { font-size: var(--cs-report-title-size) !important; line-height:1.18; }
  body.cs-report-agency .page-title { flex-direction:row; align-items:center; }
  body.cs-report-market .hero-sub,
  body.cs-report-executive .hero-sub,
  body.cs-report-agency .page-sub,
  body.cs-report-competitor .hero-sub,
  body.cs-report-company .company-meta { font-size: var(--cs-report-subtitle-size); }
  body.cs-report-agency .filter-btn { flex:0 1 auto; }
  body[class*="cs-report-"] select.period-select { min-height:44px; font-size:14px !important; }
}
@media (max-width: 380px) {
  :root { --cs-report-title-size: 29px; }
  body.cs-report-agency .controls { gap: 7px; }
}

/* v1.18 — Competitor Report: same centered rail as Market and Executive.
   Sidebar stylesheet deliberately allows full width for generic main elements;
   restore the report-specific cap without affecting tables or private APIs. */
@media (min-width: 769px) {
  html.cs-sidebar-enabled body.cs-report-competitor > main#mainContent {
    width: 100% !important;
    max-width: 1300px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 40px !important;
    padding-right: 40px !important;
    box-sizing: border-box !important;
  }
}
@media (max-width: 768px) {
  html.cs-sidebar-enabled body.cs-report-competitor > main#mainContent {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box !important;
  }
}
