/* --- III. TAB-SPECIFIC STYLES --- */
/* --- Summary Tab (`#summaryTab`) Styles --- */

/* Elements directly within the Summary Tab, often unique IDs */
/* Note: #summaryTab itself is a .tab-content and gets base styling from Shared Components. */

/* Disorder Name and Analysis Date (likely within a .card in the Summary Tab) */
/* Example: if these were direct children of a specific card,
   you might target them more precisely, e.g., #summaryTab .card:first-child #disorderName.
   Assuming general use within the summary tab for now.
*/
#disorderName {
  /* Typically, an H2 or H3 styled by .card h2/h3, but can have overrides if needed */
  /* No specific override styles present in the original CSS beyond what .card h2/h3 provides */
}

#analysisDate {
  /* Typically a <p> or <span> styled by .card .date-info or .card p */
  /* No specific override styles present */
}

/* --- Key Insights Section (within Summary Tab) --- */
/* Mindstate: Simplified box with minimal styling */
.key-insights-box {
  background: #FAFAFA; /* Mindstate: Very light gray instead of gradient */
  border-radius: 0; /* Mindstate: Sharp corners */
  padding: 20px;
  margin: 20px 0;
  border: 1px solid #F4F4F4; /* Mindstate: Light border instead of teal tint */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); /* Mindstate: Minimal shadow */
}

.key-insights-box h4 {
  /* Uses .card h4 styling by default if this is inside a .card,
     or the general h4 styles. If it needs specific styling: */
  /* Example: margin-bottom: 15px; */
}

.key-insights-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

/* Mindstate: Clean insight items without neuomorphism */
.insight-item {
  background: #FFFFFF; /* Mindstate: White background instead of gradient */
  padding: 16px;
  border-radius: 0; /* Mindstate: Sharp corners */
  font-size: 14px;
  border-left: 4px solid var(--ms-data-green); /* Mindstate: Data green accent */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); /* Mindstate: Minimal shadow */
  transition: all var(--transition-medium) ease;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
  border: 1px solid #F4F4F4; /* Mindstate: Light border */
}

/* Staggered animation delays for insight items */
.insight-item:nth-child(1) { animation-delay: 0.1s; }
.insight-item:nth-child(2) { animation-delay: 0.2s; }
.insight-item:nth-child(3) { animation-delay: 0.3s; }
.insight-item:nth-child(4) { animation-delay: 0.4s; }
/* Add more if needed */

.insight-item:hover {
  transform: translateY(-2px); /* Mindstate: Reduced movement */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08); /* Mindstate: Subtle shadow */
}

/* Mindstate: Simplified corner accent */
.insight-item::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 20px 20px 0;
  border-color: transparent #F0F8F0 transparent transparent; /* Mindstate: Light green tint */
}

/* Mindstate: Simplified highlight text */
.insight-highlight {
  color: var(--ms-data-green); /* Mindstate: Solid color instead of gradient */
  font-weight: 600;
}

/* --- Market Overview Meter (within Summary Tab) --- */
.market-overview { /* Wrapper div if any */
  /* No specific styles for .market-overview itself, usually a part of a .card */
}

.market-overview h4 {
  /* Uses .card h4 or general h4 styling */
}

.market-meter-container {
  margin: 20px 0 30px 0;
}

.market-meter { /* Contains the bar */
  margin-bottom: 20px;
}

.market-meter-label { /* Optional label above the bar */
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--ms-medium-grey); /* Mindstate: Medium gray */
  font-weight: 500;
}

/* Mindstate: Simplified meter bar */
.market-meter-bar {
  height: 30px;
  background-color: #EBEBEB; /* Mindstate: Light gray base */
  border-radius: 0; /* Mindstate: Sharp corners */
  overflow: hidden;
  display: flex;
  position: relative;
  border: 1px solid #F4F4F4; /* Mindstate: Light border */
  box-shadow: none; /* Mindstate: Remove inset shadow */
}

.market-meter-segment {
  height: 100%;
  transition: width 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

/* Mindstate: Remove shimmer effect */
.market-meter-segment::after {
  display: none; /* Mindstate: Remove decorative shimmer */
}

/* Mindstate: Solid colors instead of gradients */
.current-market {
  background: #6B8E23; /* Mindstate: Data green solid */
  border-right: 2px solid #FFFFFF; /* Mindstate: White separator */
}

.diagnosed-untreated-market {
  background: #BDB76B; /* Mindstate: Data yellow solid */
  border-right: 2px solid #FFFFFF; /* Mindstate: White separator */
}

.undiagnosed-market {
  background: #CD853F; /* Mindstate: Data orange solid */
}

/* Legend for the Market Meter */
.market-meter-legend {
  display: flex;
  margin-top: 15px;
  gap: 20px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  font-size: 12px;
  animation: fadeIn 1s ease;
}

/* Mindstate: Simplified legend color boxes */
.legend-color {
  width: 70px;
  height: 32px;
  border-radius: 0; /* Mindstate: Sharp corners */
  margin-right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-heading);
  color: #FFFFFF; /* Mindstate: White text on colored backgrounds */
  border: 1px solid rgba(0, 0, 0, 0.1); /* Mindstate: Subtle border */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); /* Mindstate: Minimal shadow */
  position: relative;
  overflow: hidden;
}

/* Mindstate: Remove shimmer effect */
.legend-color::after {
  display: none; /* Mindstate: Remove decorative shimmer */
}

/* Mindstate: Solid colors for legend boxes */
.legend-color.current-market {
  background: #6B8E23; /* Mindstate: Data green */
  color: white;
  text-shadow: none; /* Mindstate: Remove text shadow */
}

.legend-color.diagnosed-untreated-market {
  background: #BDB76B; /* Mindstate: Data yellow */
  color: #000000; /* Mindstate: Black text for contrast */
  text-shadow: none;
}

.legend-color.undiagnosed-market {
  background: #CD853F; /* Mindstate: Data orange */
  color: white;
  text-shadow: none;
}

.legend-color.untapped-market-sum {
  background: #8B7D6B; /* Mindstate: Data purple */
  color: white;
  text-shadow: none;
}

.legend-text {
  font-size: 13px;
  color: var(--ms-medium-grey); /* Mindstate: Medium gray */
  margin-left: 5px;
}

/* --- Treatment Funnel (within Summary Tab) --- */
.treatment-funnel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 25px 0;
}

/* Mindstate: Simplified funnel steps */
.funnel-step {
  background: #FFFFFF; /* Mindstate: White background */
  border: 1px solid #F4F4F4; /* Mindstate: Light border */
  border-radius: 0; /* Mindstate: Sharp corners */
  padding: 20px;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); /* Mindstate: Minimal shadow */
  transition: all var(--transition-medium) ease;
  animation: fadeInRight 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  opacity: 0;
}

/* Staggered animation for funnel steps */
.funnel-step:nth-child(1) { animation-delay: 0.1s; }
.funnel-step:nth-child(3) { animation-delay: 0.3s; }
.funnel-step:nth-child(5) { animation-delay: 0.5s; }

.funnel-step:hover {
  transform: translateX(4px); /* Mindstate: Reduced movement */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08); /* Mindstate: Subtle shadow */
}

.funnel-step-title {
  font-size: 15px;
  color: var(--ms-dark-gray); /* Mindstate: Dark gray */
  margin-bottom: 10px;
  font-weight: 500;
}

/* Mindstate: Solid color instead of gradient */
.funnel-step-value {
  font-size: 28px;
  font-weight: 300; /* Mindstate: Lighter weight */
  color: var(--ms-data-green); /* Mindstate: Data green solid color */
  margin-bottom: 8px;
  font-family: var(--font-heading);
  letter-spacing: -0.04em; /* Mindstate: Tighter letter spacing */
}

.funnel-step-info {
  font-size: 13px;
  color: var(--ms-medium-grey); /* Mindstate: Medium gray */
}

.funnel-arrow {
  display: flex;
  justify-content: center;
  position: relative;
  height: 40px;
  animation: fadeIn 1s ease forwards;
  opacity: 0;
}

/* Staggered animation for funnel arrows */
.funnel-arrow:nth-child(2) { animation-delay: 0.2s; }
.funnel-arrow:nth-child(4) { animation-delay: 0.4s; }

/* Mindstate: Solid color arrow line */
.funnel-arrow::before {
  content: "";
  width: 2px;
  height: 100%;
  background: var(--ms-data-green); /* Mindstate: Solid green */
  position: absolute;
  box-shadow: none; /* Mindstate: Remove shadow */
}

.funnel-arrow::after {
  content: "";
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 12px solid var(--ms-data-green); /* Mindstate: Solid green */
  position: absolute;
  bottom: 0;
  filter: none; /* Mindstate: Remove drop shadow */
}

/* Mindstate: Simplified filter label */
.funnel-filter {
  background: var(--ms-data-green); /* Mindstate: Solid green */
  color: white;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 0; /* Mindstate: Sharp corners */
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); /* Mindstate: Minimal shadow */
  font-weight: 600;
  text-shadow: none; /* Mindstate: Remove text shadow */
  text-transform: uppercase; /* Mindstate: Uppercase labels */
  letter-spacing: 0.05em; /* Mindstate: Wide letter spacing */
}

/* --- Metrics Grid (within Summary Tab) --- */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* Mindstate: Clean metric groups */
.metric-group {
  background: #FFFFFF; /* Mindstate: White background */
  border: 1px solid #F4F4F4; /* Mindstate: Light border */
  border-radius: 0; /* Mindstate: Sharp corners */
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); /* Mindstate: Minimal shadow */
  transition: all var(--transition-medium) ease;
}

.metric-group:hover {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08); /* Mindstate: Subtle shadow */
  transform: translateY(-2px); /* Mindstate: Reduced movement */
}

.metric-group h4 {
  /* Uses general h4 styling. If specific overrides: */
  /* Example: margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--border); */
}

.metrics-table {
  width: 100%;
  margin-top: 10px;
}

.metric-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #F4F4F4; /* Mindstate: Light border */
  transition: all var(--transition-fast) ease;
}

.metric-row:last-child {
  border-bottom: none;
}

.metric-row:hover {
  background-color: #F0F8F0; /* Mindstate: Very light green tint */
  transform: translateX(2px); /* Mindstate: Reduced movement */
}

/* Mindstate: Simplified highlighted row */
.metric-row.highlighted {
  background: #F0F8F0; /* Mindstate: Light green tint instead of gradient */
  border-radius: 0; /* Mindstate: Sharp corners */
  position: relative;
}

/* Mindstate: Solid accent bar */
.metric-row.highlighted::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 70%;
  background: var(--ms-data-green); /* Mindstate: Solid green */
  border-radius: 0; /* Mindstate: Sharp corners */
}

.metric-label {
  font-size: 14px;
  color: var(--ms-dark-gray); /* Mindstate: Dark gray */
  font-weight: 500;
}

/* Mindstate: Solid color for metric values */
.metric-row .metric-value {
  font-size: 15px;
  font-weight: 300; /* Mindstate: Lighter weight */
  color: var(--ms-data-green); /* Mindstate: Solid green instead of gradient */
  text-align: right;
  font-family: var(--font-heading);
  margin-bottom: 0;
  letter-spacing: -0.02em; /* Mindstate: Tighter letter spacing */
}

.metric-confidence .confidence {
  margin-right: var(--spacing-sm);
  /* Uses shared .confidence styles */
}

/* --- Data Quality / Confidence Dashboard (within Summary Tab) --- */
.data-quality-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 15px;
}

/* Mindstate: Clean chart container */
.data-quality-chart {
  background: #FFFFFF; /* Mindstate: White background */
  border-radius: 0; /* Mindstate: Sharp corners */
  padding: 20px;
  height: 250px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); /* Mindstate: Minimal shadow */
  border: 1px solid #F4F4F4; /* Mindstate: Light border */
}

.data-quality-chart h4 {
  /* Uses general h4 styling */
}

/* Mindstate: Simplified chart area */
.confidence-chart {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  height: 200px;
  border-bottom: 1px solid #EBEBEB; /* Mindstate: Light gray */
  padding-bottom: 10px;
  gap: 15px;
  background: #FAFAFA; /* Mindstate: Very light gray background */
  border-radius: 0; /* Mindstate: Sharp corners */
  transition: all var(--transition-medium) ease;
  box-shadow: none; /* Mindstate: Remove inset shadow */
}

.confidence-chart:hover {
  background: #F4F4F4; /* Mindstate: Slightly darker gray */
}

.confidence-bar-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  animation: fadeIn 0.8s ease forwards;
  opacity: 0;
}

/* Staggered animation for confidence bars */
.confidence-bar-container:nth-child(1) { animation-delay: 0.1s; }
.confidence-bar-container:nth-child(2) { animation-delay: 0.2s; }
.confidence-bar-container:nth-child(3) { animation-delay: 0.3s; }
.confidence-bar-container:nth-child(4) { animation-delay: 0.4s; }
.confidence-bar-container:nth-child(5) { animation-delay: 0.5s; }

/* Mindstate: Simplified bar wrapper */
.confidence-bar-wrapper {
  width: 35px;
  height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #EBEBEB; /* Mindstate: Light gray track */
  border-radius: 0; /* Mindstate: Sharp corners at top */
  overflow: hidden;
  box-shadow: none; /* Mindstate: Remove inset shadow */
  padding-top: 10px;
}

.confidence-bar {
  width: 100%;
  border-top-left-radius: 0; /* Mindstate: Sharp corners */
  border-top-right-radius: 0; /* Mindstate: Sharp corners */
  transition: height 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  min-height: 5px;
  position: relative;
  overflow: hidden;
  margin-top: 5px;
}

/* Mindstate: Remove highlight overlay */
.confidence-bar::after {
  display: none; /* Mindstate: Remove decorative highlight */
}

/* Mindstate: Solid colors for confidence bars */
.confidence-bar.high {
  background: #6B8E23; /* Mindstate: Data green solid */
  border: none; /* Mindstate: Remove border */
  box-shadow: none; /* Mindstate: Remove glow */
}

.confidence-bar.medium {
  background: #BDB76B; /* Mindstate: Data yellow solid */
  border: none;
  box-shadow: none;
}

.confidence-bar.low {
  background: #CD853F; /* Mindstate: Data orange solid */
  border: none;
  box-shadow: none;
}

.confidence-bar.veryLow,
.confidence-bar.insufficient {
  background: #8B7D6B; /* Mindstate: Data purple for very low */
  border: none;
  box-shadow: none;
}

.confidence-bar-label {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ms-dark-gray); /* Mindstate: Dark gray */
  text-align: center;
  font-weight: 600;
  text-shadow: none; /* Mindstate: Remove text shadow */
  text-transform: uppercase; /* Mindstate: Uppercase labels */
  letter-spacing: 0.05em; /* Mindstate: Wide letter spacing */
}

/* Mindstate: Clean improvement section */
.data-improvement {
  background: #FFFFFF; /* Mindstate: White background */
  border-radius: 0; /* Mindstate: Sharp corners */
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); /* Mindstate: Minimal shadow */
  border: 1px solid #F4F4F4; /* Mindstate: Light border */
}

.data-improvement h4 {
  /* Uses general h4 styling */
}

/* Mindstate: Simplified quality score display */
.data-quality-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #FAFAFA; /* Mindstate: Very light gray */
  border-radius: 0; /* Mindstate: Sharp corners */
  padding: 25px;
  margin-bottom: 15px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); /* Mindstate: Minimal shadow */
  transition: all var(--transition-medium) ease;
  border: 1px solid #F4F4F4; /* Mindstate: Light border */
}

.data-quality-score:hover {
  transform: scale(1.01); /* Mindstate: Reduced scale */
}

/* Mindstate: Solid color score value */
#dataQualityScoreValue {
  font-size: 38px;
  font-weight: 300; /* Mindstate: Lighter weight */
  color: var(--ms-data-green); /* Mindstate: Solid green */
  margin-bottom: 5px;
  position: relative;
  display: inline-block;
  letter-spacing: -0.04em; /* Mindstate: Tighter letter spacing */
}

/* Mindstate: Solid underline */
#dataQualityScoreValue::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 3px;
  bottom: -5px;
  left: 0;
  background: var(--ms-data-green); /* Mindstate: Solid green */
  border-radius: 0; /* Mindstate: Sharp corners */
}

#dataQualityText {
  font-size: 15px;
  color: var(--ms-medium-grey); /* Mindstate: Medium gray */
  margin-top: 10px;
  font-weight: 500;
}

/* Mindstate: Clean suggestions box */
#dataImprovementSuggestions {
  font-size: 13px;
  color: var(--ms-dark-gray); /* Mindstate: Dark gray */
  margin-top: 10px;
  padding: 15px;
  background: #FAFAFA; /* Mindstate: Very light gray */
  border-radius: 0; /* Mindstate: Sharp corners */
  line-height: 1.6;
  box-shadow: none; /* Mindstate: Remove inset shadow */
  border: 1px solid #EBEBEB; /* Mindstate: Light border */
}

/* --- Market Breakdown Table (within Summary Tab) --- */
/* Uses .card table styles as a base.
   #marketBreakdownTable tbody is populated by JS.
   Specific column content (like confidence badges) uses shared component styles.
*/

/* --- CSV Preview Card and Table (within Summary Tab) --- */
#csvPreviewCard {
  margin-top: 25px;
  /* Inherits .card styles */
}

#csvPreviewCard h3 {
  /* Inherits .card h3 styles */
}
#csvPreviewCard p {
  /* Inherits .card p styles */
}

/* Overrides for the table within CSV Preview Card for a more compact look */
#csvPreviewCard table {
  /* Inherits .card table base styles */
  font-size: 13px;
}

#csvPreviewCard table th,
#csvPreviewCard table td {
  padding: 12px 14px;
  /* Inherits other .card table th/td styles */
}

#csvPreviewCard table th {
  font-size: 11px;
  letter-spacing: 0.05em; /* Mindstate: Wide letter spacing for uppercase */
}

#csvPreviewCard table tr:nth-child(even) {
  background-color: #FAFAFA; /* Mindstate: Very light gray */
}

#csvPreviewCard table tr:hover {
  background-color: #F0F8F0; /* Mindstate: Very light green tint */
  transform: translateX(2px); /* Mindstate: Reduced movement */
}

/* Styling for specific columns in CSV Preview if needed (e.g., numeric data) */
#csvPreviewCard table td:nth-child(2), /* Metric column */
#csvPreviewCard table td:nth-child(3) { /* Value column */
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.85rem;
}

/* --- Market Accordion Styling --- */
.market-accordion-title {
  font-weight: 500;
  color: var(--color-text-dark);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

/* Override shared styles with more specific selector */
.market-accordion-header .market-accordion-title h4 {
  margin: 0 !important;
  font-size: 1rem !important;
  color: var(--color-text-dark) !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  display: flex !important;
  align-items: center !important;
}

/* Ensure the accordion header itself is properly vertically centered */
.market-accordion-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: var(--spacing-md) var(--spacing-lg) !important;
}

/* Mindstate: Simplified accordion icon */
.market-accordion-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F4F4F4; /* Mindstate: Light gray */
  border-radius: 50%; /* Keep circular */
  font-size: 0.9rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); /* Mindstate: Minimal shadow */
  color: var(--ms-data-green); /* Mindstate: Data green */
  border: 1px solid #EBEBEB; /* Mindstate: Light border */
}

/* Remove green horizontal accent lines from market accordion titles */
/* Using multiple selectors with increasing specificity to ensure override */
/* Handle BOTH structures: h4 inside .market-accordion-title AND h4 directly in header */
.market-accordion-title h4::before,
.market-accordion-title h4::after,
.market-accordion-header > h4::before,
.market-accordion-header > h4::after,
.market-accordion-section .market-accordion-header .market-accordion-title h4::before,
.market-accordion-section .market-accordion-header .market-accordion-title h4::after,
.market-accordion-section .market-accordion-header > h4::before,
.market-accordion-section .market-accordion-header > h4::after,
#resultsContainer .market-accordion-title h4::before,
#resultsContainer .market-accordion-title h4::after,
#resultsContainer .market-accordion-header > h4::before,
#resultsContainer .market-accordion-header > h4::after,
#summaryTab .market-accordion-title h4::before,
#summaryTab .market-accordion-title h4::after,
#summaryTab .market-accordion-header > h4::before,
#summaryTab .market-accordion-header > h4::after,
body .market-accordion-title h4::before,
body .market-accordion-title h4::after,
body .market-accordion-header > h4::before,
body .market-accordion-header > h4::after {
  display: none !important;
  content: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  position: static !important;
  background: none !important;
}

/* Reset margins and ensure proper vertical alignment */
/* Handle BOTH structures: h4 inside .market-accordion-title AND h4 directly in header */
.market-accordion-header .market-accordion-title h4,
.market-accordion-header > h4,
.market-accordion-section .market-accordion-header .market-accordion-title h4,
.market-accordion-section .market-accordion-header > h4,
#resultsContainer .market-accordion-title h4,
#resultsContainer .market-accordion-header > h4,
#summaryTab .market-accordion-title h4,
#summaryTab .market-accordion-header > h4,
body .card .market-accordion-title h4,
body .card .market-accordion-header > h4 {
  margin: 0 !important;
  padding: 0 0 var(--spacing-xs) 0 !important;
  line-height: 1.4 !important;
  display: flex !important;
  align-items: center !important;
  height: auto !important;
  font-size: 1rem !important;
  color: var(--color-text-dark) !important;
  font-weight: 500 !important;
}

/* Ensure the accordion content areas don't inherit card h4 margins */
.market-accordion-content h4 {
  margin: 0 0 var(--spacing-sm) 0;
}


/* Responsive adjustments for Summary Tab specific layouts */
@media (max-width: 768px) {
  .data-quality-grid,
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .key-insights-list {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}