/* === Twin Peakers - Main Stylesheet === */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary: #1a2332;
  --color-primary-light: #2d3e50;
  --color-accent: #c0392b;
  --color-accent-light: #e74c3c;
  --color-green: #2d6b4e;
  --color-green-light: #3d8b6e;
  --color-amber: #d4a017;
  --color-text: #2d3436;
  --color-text-light: #636e72;
  --color-bg: #f8f9fa;
  --color-bg-alt: #eef1f3;
  --color-white: #ffffff;
  --color-border: #dfe6e9;
  --color-source-bg: #eef5f0;
  --color-source-border: #a8d5ba;
  --max-width: 1100px;
  --header-height: 70px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--color-green);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--color-green-light);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

/* --- Header & Navigation --- */
.site-header {
  background: var(--color-primary);
  color: var(--color-white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  height: var(--header-height);
  gap: 2rem;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--color-white);
  flex-shrink: 0;
}

.header-logo:hover {
  text-decoration: none;
  color: var(--color-white);
}

.header-logo img {
  height: 50px;
  width: auto;
}

.header-logo span {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.main-nav a {
  color: rgba(255,255,255,0.85);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-white);
  background: rgba(255,255,255,0.1);
  text-decoration: none;
}

.main-nav .nav-dropdown {
  position: relative;
}

.main-nav .nav-dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-primary);
  min-width: 220px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  padding: 0.5rem 0;
  z-index: 200;
}

.main-nav .nav-dropdown:hover .nav-dropdown-content,
.main-nav .nav-dropdown.open .nav-dropdown-content {
  display: block;
}

.main-nav .nav-dropdown-content a {
  display: block;
  padding: 0.5rem 1rem;
  border-radius: 0;
}

/* --- Page Layout --- */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: var(--color-white);
  padding: 3rem 1.5rem;
  text-align: center;
}

.page-hero.hero-home {
  background-image: linear-gradient(rgba(26,35,50,0.45), rgba(26,35,50,0.6)), url('../images/hero-bg.jpg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 3.5rem 1.5rem;
}

.page-hero.hero-projects {
  background-image: linear-gradient(rgba(26,35,50,0.45), rgba(26,35,50,0.6)), url('../images/hero-projects.jpg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 3.5rem 1.5rem;
}

.page-hero.hero-methodology {
  background-image: linear-gradient(rgba(26,35,50,0.45), rgba(26,35,50,0.6)), url('../images/hero-methodology.jpg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 3.5rem 1.5rem;
}

.page-hero.hero-sources {
  background-image: linear-gradient(rgba(26,35,50,0.45), rgba(26,35,50,0.6)), url('../images/hero-sources.jpg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 3.5rem 1.5rem;
}

.page-hero.hero-contact {
  background-image: linear-gradient(rgba(26,35,50,0.45), rgba(26,35,50,0.6)), url('../images/hero-contact.jpg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 3.5rem 1.5rem;
}

.page-hero.hero-downloads {
  background-image: linear-gradient(rgba(26,35,50,0.45), rgba(26,35,50,0.6)), url('../images/hero-downloads.jpg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 3.5rem 1.5rem;
}

.page-hero.hero-rfp {
  background-image: linear-gradient(rgba(26,35,50,0.45), rgba(26,35,50,0.6)), url('../images/hero-rfp.jpg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 3.5rem 1.5rem;
}

.page-hero.hero-water {
  background-image: linear-gradient(rgba(26,35,50,0.45), rgba(26,35,50,0.6)), url('../images/hero-water.jpg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 3.5rem 1.5rem;
}

.page-hero.hero-batteries {
  background-image: linear-gradient(rgba(26,35,50,0.45), rgba(26,35,50,0.6)), url('../images/hero-batteries.jpg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 3.5rem 1.5rem;
}

.page-hero.hero-costs-contracts {
  background-image: linear-gradient(rgba(26,35,50,0.45), rgba(26,35,50,0.6)), url('../images/hero-costs-contracts.jpg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 3.5rem 1.5rem;
}

.page-hero.hero-gas-supply {
  background-image: linear-gradient(rgba(26,35,50,0.45), rgba(26,35,50,0.6)), url('../images/hero-gas-supply.jpg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 3.5rem 1.5rem;
}

.page-hero h1 {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.page-hero .subtitle {
  font-size: 1.15rem;
  opacity: 0.95;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.hero-caption {
  background: var(--color-bg-alt, #f0f2f5);
  color: #6b7280;
  font-size: 0.78rem;
  text-align: center;
  padding: 0.5rem 1.5rem;
  line-height: 1.5;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  width: 100%;
  box-sizing: border-box;
}

.hero-caption a {
  color: #6b7280;
  text-decoration: underline;
  text-decoration-color: rgba(107,114,128,0.4);
}

.hero-caption a:hover {
  color: var(--color-primary, #1a2332);
}

.content-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  flex: 1;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  color: var(--color-primary);
  line-height: 1.3;
}

h1 { font-size: 2rem; margin-bottom: 1rem; }
h2 { font-size: 1.5rem; margin: 2rem 0 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--color-border); }
h3 { font-size: 1.2rem; margin: 1.5rem 0 0.75rem; }
h4 { font-size: 1.05rem; margin: 1rem 0 0.5rem; }

p { margin-bottom: 1rem; }

ul, ol {
  margin: 0 0 1rem 1.5rem;
}

li {
  margin-bottom: 0.4rem;
}

blockquote {
  border-left: 4px solid var(--color-green);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--color-bg-alt);
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: var(--color-text-light);
}

blockquote cite {
  display: block;
  margin-top: 0.5rem;
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
}

/* --- Table of Contents --- */
.toc {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.5rem 2rem;
  margin-bottom: 2.5rem;
}

.toc h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-light);
  margin-bottom: 0.75rem;
  border: none;
  padding: 0;
}

.toc ol {
  list-style: decimal;
  padding-left: 1.25rem;
  margin: 0;
}

.toc li {
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.toc ol ol {
  list-style: lower-alpha;
  margin-top: 0.3rem;
  padding-left: 1.25rem;
}

.toc ol ol li {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.toc a {
  color: var(--color-primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.toc a:hover {
  border-bottom-color: var(--color-accent);
  color: var(--color-accent);
}

/* --- Source Citations --- */
.source-box {
  background: var(--color-source-bg);
  border: 1px solid var(--color-source-border);
  border-left: 4px solid var(--color-green);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.source-box .source-label {
  font-weight: 700;
  color: var(--color-green);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1px;
  margin-bottom: 0.4rem;
}

.source-box a {
  word-break: break-all;
}

.source-inline {
  display: inline-block;
  background: var(--color-source-bg);
  border: 1px solid var(--color-source-border);
  border-radius: 4px;
  padding: 0.1rem 0.5rem;
  font-size: 0.8rem;
  vertical-align: middle;
  margin-left: 0.25rem;
}

/* --- Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.5rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.card h3 {
  margin-top: 0;
  color: var(--color-primary);
}

.card .card-tag {
  display: inline-block;
  background: var(--color-green);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.75rem;
}

.card-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 600;
  color: var(--color-green);
}

/* --- Key Facts / Stats --- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.stat-box {
  background: linear-gradient(to bottom, #fdf0ee 0%, var(--color-white) 40%);
  border: none;
  border-radius: 10px;
  padding: 2rem 1.25rem 1.5rem;
  text-align: center;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.stat-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
}

.stat-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(192,57,43,0.15);
}

.stat-box .stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 0.15rem;
}

.stat-box .stat-label {
  font-size: 0.9rem;
  color: var(--color-text);
  margin-top: 0.4rem;
  font-weight: 600;
  line-height: 1.4;
}

.stat-box .stat-source {
  font-size: 0.75rem;
  color: var(--color-green);
  margin-top: 0.75rem;
  font-style: italic;
  padding-top: 0.6rem;
  border-top: 1px solid var(--color-border);
}

.stat-box .stat-source a {
  color: var(--color-green);
  text-decoration: underline;
  text-decoration-style: dotted;
}

.stat-box .stat-source a:hover {
  color: var(--color-green-light);
  text-decoration-style: solid;
}

/* --- Alert / Callout Boxes --- */
.callout {
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.callout-warning {
  background: #fff8e1;
  border: 1px solid #f0d060;
  border-left: 4px solid var(--color-amber);
}

.callout-info {
  background: #e8f4fd;
  border: 1px solid #90caf9;
  border-left: 4px solid #2196f3;
}

.callout-danger {
  background: #fdecea;
  border: 1px solid #f5c6cb;
  border-left: 4px solid var(--color-accent);
}

.callout .callout-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* --- CTA Block --- */
.cta-block {
  background: linear-gradient(135deg, var(--color-primary) 0%, #2a3a52 100%);
  color: var(--color-white);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  margin: 2.5rem 0;
}

.cta-block h2 {
  color: var(--color-white);
  border-bottom: 2px solid rgba(255,255,255,0.2);
  margin-top: 0;
}

.cta-block p {
  color: rgba(255,255,255,0.9);
}

.cta-block a {
  color: var(--color-green-light);
}

.cta-block a:hover {
  color: var(--color-white);
}

.cta-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.cta-action {
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,0.1);
}

.cta-action h3 {
  color: var(--color-white);
  margin-top: 0;
  font-size: 1.1rem;
}

.cta-action ul {
  color: rgba(255,255,255,0.9);
  padding-left: 1.2rem;
}

.cta-action li {
  margin-bottom: 0.4rem;
}

.cta-block .btn-outline {
  color: var(--color-white);
  border-color: var(--color-white);
}

.cta-block .btn-outline:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

.cta-block .btn-primary {
  background: var(--color-green);
  color: var(--color-white);
}

.cta-block .btn-primary:hover {
  background: var(--color-green-light);
}

/* --- Maps --- */
.page-map {
  height: 400px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  margin: 1.5rem 0 0.5rem;
  z-index: 0;
}

.page-map-small {
  height: 300px;
}

.map-caption {
  font-size: 0.82rem;
  color: #6b7280;
  text-align: center;
  margin: 0 0 1.5rem;
  line-height: 1.5;
}

.map-distance-label {
  background: rgba(26, 35, 50, 0.85);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  border-radius: 4px;
  padding: 2px 6px;
  white-space: nowrap;
}

/* --- Tables --- */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

thead {
  background: var(--color-primary);
  color: var(--color-white);
}

th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
}

td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
}

tbody tr:hover {
  background: var(--color-bg-alt);
}

/* --- Downloads --- */
.download-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin-bottom: 0.75rem;
  transition: box-shadow 0.2s;
}

.download-item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.download-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.75rem;
}

.download-icon.md {
  background: var(--color-green);
}

.download-info {
  flex: 1;
}

.download-info .download-title {
  font-weight: 600;
  color: var(--color-primary);
}

.download-info .download-desc {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

/* Thumbnail download cards */
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 1.5rem 0;
}

@media (max-width: 900px) {
  .download-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .download-grid {
    grid-template-columns: 1fr;
  }
}

.download-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.download-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.download-card .thumb-wrap {
  position: relative;
  background: #e8e8e8;
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
  height: 220px;
}

.download-card .thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.download-card .thumb-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  letter-spacing: 0.5px;
}

.download-card .download-card-body {
  padding: 1rem 1.25rem;
}

.download-card .download-card-body h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  line-height: 1.3;
}

.download-card .download-card-body p {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 0.75rem;
}

.download-card .download-card-body .btn {
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
}

/* --- Footer --- */
.site-footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.7);
  padding: 2.5rem 1.5rem 1.5rem;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-section h4 {
  color: var(--color-white);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
  border-bottom: none;
}

.footer-section a {
  display: block;
  color: rgba(255,255,255,0.7);
  padding: 0.2rem 0;
  font-size: 0.9rem;
}

.footer-section a:hover {
  color: var(--color-white);
  text-decoration: none;
}

.footer-section p {
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.8rem;
}

.footer-sources {
  background: rgba(255,255,255,0.05);
  border-radius: 6px;
  padding: 1rem;
  margin-top: 1rem;
  font-size: 0.8rem;
  text-align: center;
}

/* --- Contact Form --- */
.contact-form {
  max-width: 600px;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-green);
  box-shadow: 0 0 0 3px rgba(45,107,78,0.1);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-green);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-green-light);
  color: var(--color-white);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--color-green);
  border: 2px solid var(--color-green);
}

.btn-outline:hover {
  background: var(--color-green);
  color: var(--color-white);
  text-decoration: none;
}

/* --- Methodology Page --- */
.method-step {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

.method-step-number {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--color-green);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.method-step-content h3 {
  margin-top: 0;
}

.card-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-primary);
    flex-direction: column;
    padding: 1rem;
    gap: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 0.75rem 1rem;
    width: 100%;
  }

  .main-nav .nav-dropdown-content {
    position: static;
    box-shadow: none;
    padding-left: 1rem;
    display: block;
    min-width: auto;
  }

  .page-hero h1 {
    font-size: 1.6rem;
  }

  .stat-row {
    grid-template-columns: 1fr 1fr;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .card-grid-4 {
    grid-template-columns: 1fr;
  }

  .cta-actions {
    grid-template-columns: 1fr;
  }

  .header-logo span {
    font-size: 1rem;
  }

  .method-step {
    flex-direction: column;
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .stat-row {
    grid-template-columns: 1fr;
  }

  .content-wrap {
    padding: 1.5rem 1rem;
  }
}

/* --- Print --- */
@media print {
  .site-header, .site-footer, .nav-toggle {
    display: none;
  }

  .content-wrap {
    max-width: 100%;
    padding: 0;
  }

  .card, .source-box, .callout {
    break-inside: avoid;
  }
}


/* Color-coded timeline (gas vs BESS vs neutral) */
.timeline-wrap {
  background: #fafafa;
  border: 1.5px solid #ccc;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.timeline-wrap .tl-title {
  font-weight: 700;
  font-size: 1.05rem;
  text-align: center;
  margin-bottom: 0.75rem;
  color: #333;
}
.tl-grid {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 4px 12px;
  font-size: 0.9rem;
}
.tl-date {
  text-align: right;
  padding: 6px 0;
  color: #555;
  font-weight: 700;
  font-size: 0.85rem;
}
.tl-event {
  padding: 6px 10px;
  border-left: 4px solid #ccc;
  border-radius: 0 4px 4px 0;
  line-height: 1.35;
}
.tl-event strong { color: #0d47a1; }
.tl-gas { border-left-color: #c62828; background: #ffebee; }
.tl-bess { border-left-color: #2e7d32; background: #e8f5e9; }
.tl-neutral { border-left-color: #999; background: #f5f5f5; }
.tl-highlight { background: #fff9c4; }
.tl-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  margin-right: 6px;
  vertical-align: middle;
  color: #fff;
  letter-spacing: 0.5px;
}
.tag-gas { background: #c62828; }
.tag-bess { background: #2e7d32; }

@media (max-width: 600px) {
  .tl-grid { grid-template-columns: 90px 1fr; gap: 4px 8px; font-size: 0.82rem; }
  .tl-date { font-size: 0.78rem; }
}
