/* State of the Climate UK Energy Sector 2024-25 - Custom Styles */

/* General Page Styles */
.state-climate-report-page {
  background: #fff;
}

.state-climate-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Typography */
.state-climate-content h1.page-title {
  color: #003366;
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.state-climate-content h2 {
  color: #003366;
  font-size: 1.8rem;
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 600;
  border-bottom: 2px solid #e5e5e5;
  padding-bottom: 10px;
}

.state-climate-content h3 {
  color: #003366;
  font-size: 1.4rem;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.state-climate-content .supported-by {
  margin: 0 0 20px 0;
  padding: 0 0 15px 0;
}

.state-climate-content .supported-by img {
  max-width: 100%;
  max-height: 80px;
}

.state-climate-content .authors {
  margin-bottom: 30px;
  padding: 15px;
  background-color: #f8f9fa;
  border-left: 4px solid #003366;
}

.state-climate-content .authors p {
  margin: 0;
  color: #333;
}

/* Intro and Key Points */
.state-climate-content .intro-text,
.state-climate-content .key-points {
  margin-bottom: 30px;
}

.state-climate-content .key-points {
  background-color: #f0f7ff;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #d0e0f0;
}

.state-climate-content .key-points h2 {
  margin-top: 0;
  border-bottom: none;
  color: #003366;
}

.state-climate-content ul {
  line-height: 1.8;
  color: #333;
}

.state-climate-content ul li {
  margin-bottom: 8px;
}

.state-climate-content p {
  line-height: 1.6;
  color: #333;
  margin-bottom: 15px;
}

.state-climate-content strong {
  color: #003366;
  font-weight: 600;
}

/* Chart Containers */
.state-climate-content .chart-container {
  margin: 30px 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.state-climate-content .chart-container iframe {
  border: none;
  display: block;
  width: 100%;
  min-height: 500px;
}

.state-climate-content .chart-container img.chart-image {
  width: 100%;
  height: auto;
  display: block;
}

.state-climate-content .chart-caption {
  font-size: 14px;
  color: #666;
  margin-top: 10px;
  padding: 10px 15px;
  background-color: #f8f9fa;
  border-left: 3px solid #6c757d;
}

.state-climate-content .chart-caption small {
  display: block;
  margin-top: 5px;
  color: #888;
  font-size: 12px;
}

/* Sections */
.state-climate-content .weather-impacts-supply-demand,
.state-climate-content .weather-impacts-infrastructure,
.state-climate-content .conclusion {
  margin-bottom: 40px;
  padding-bottom: 20px;
}

.state-climate-content .conclusion {
  background-color: #f8f9fa;
  padding: 30px;
  border-radius: 8px;
  margin-top: 40px;
}

/* Mobile Note Emphasis */
.state-climate-mobile .chart-caption strong {
  color: #dc3545;
  display: block;
  margin-top: 10px;
  font-size: 0.95rem;
}

/* Responsive Design - Hide/Show Desktop and Mobile Versions */

/* Desktop Styles - Show desktop, hide mobile */
@media screen and (min-width: 768px) {
  .state-climate-desktop {
    display: block;
  }

  .state-climate-mobile {
    display: none;
  }

  .state-climate-content {
    padding: 60px 40px;
  }

  .state-climate-content h1.page-title {
    font-size: 3rem;
  }

  .state-climate-content h2 {
    font-size: 2rem;
  }

  .state-climate-content h3 {
    font-size: 1.5rem;
  }
}

/* Mobile Styles - Show mobile, hide desktop */
@media screen and (max-width: 767px) {
  .state-climate-desktop {
    display: none;
  }

  .state-climate-mobile {
    display: block;
  }

  .state-climate-content {
    padding: 20px 15px;
  }

  .state-climate-content h1.page-title {
    font-size: 1.8rem;
    line-height: 1.3;
  }

  .state-climate-content h2 {
    font-size: 1.4rem;
    margin-top: 30px;
  }

  .state-climate-content h3 {
    font-size: 1.2rem;
    margin-top: 20px;
  }

  .state-climate-content .supported-by {
    margin: 0 0 15px 0;
    padding: 10px 0;
  }

  .state-climate-content .supported-by img {
    max-height: 60px;
  }

  .state-climate-content .chart-container {
    margin: 20px -15px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .state-climate-content .key-points {
    margin-left: -15px;
    margin-right: -15px;
    border-radius: 0;
    padding: 15px;
  }

  .state-climate-content .authors {
    margin-left: -15px;
    margin-right: -15px;
    padding: 12px 15px;
  }

  .state-climate-content .conclusion {
    margin-left: -15px;
    margin-right: -15px;
    border-radius: 0;
    padding: 20px 15px;
  }
}

/* Print Styles */
@media print {
  .state-climate-mobile {
    display: block;
  }

  .state-climate-desktop {
    display: none;
  }

  .state-climate-content .chart-container {
    page-break-inside: avoid;
  }

  .state-climate-content h2 {
    page-break-after: avoid;
  }

  .state-climate-content .chart-caption strong {
    display: none;
  }
}
