/* Climate Zone Display Styles */

/* ========================================================================== */
/* CLIMATE NAV GRID (for reference page) */
/* ========================================================================== */

.climate-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.climate-nav-card {
  padding: 1rem;
  background: rgba(80, 108, 68, 0.06);
  border: 2px solid var(--color-primary);
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  color: var(--color-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
}

.climate-nav-card:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* ========================================================================== */
/* CLIMATE ZONE SECTION (expandable model for Learn pages) */
/* ========================================================================== */

.climate-zone-section {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--color-background);
  border-left: 4px solid var(--color-primary);
  border-radius: 4px;
}

.climate-zone-section h3 {
  margin-top: 0;
  color: var(--color-secondary);
  font-size: 1.25rem;
  font-weight: 600;
}

.climate-primary {
  margin-bottom: 1rem;
}

.climate-name {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.climate-name strong {
  color: var(--color-secondary);
}

.climate-narrative {
  margin: 0.75rem 0;
  line-height: 1.6;
  color: #333;
}

.climate-zones-primary {
  margin: 0.75rem 0;
  font-size: 0.95rem;
}

.climate-temp-range {
  color: #666;
  font-size: 0.9rem;
  font-style: italic;
}

.climate-examples {
  margin: 0.75rem 0;
  font-size: 0.95rem;
  color: #555;
}

/* ========================================================================== */
/* EXPANDABLE REGIONAL ZONES */
/* ========================================================================== */

.climate-regional-zones {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #ddd;
}

.climate-regional-zones summary {
  cursor: pointer;
  color: var(--color-primary);
  font-weight: 500;
  padding: 0.5rem 0;
  user-select: none;
  list-style-position: outside;
}

.climate-regional-zones summary:hover {
  color: var(--color-accent-1);
  text-decoration: underline;
}

.climate-regional-zones[open] summary {
  margin-bottom: 0.75rem;
}

.regional-zone-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.regional-zone-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.regional-zone-list li:last-child {
  border-bottom: none;
}

.regional-zone-list strong {
  color: var(--color-secondary);
}

.zone-description {
  display: block;
  font-size: 0.85rem;
  color: #777;
  margin-top: 0.25rem;
  font-style: italic;
}

/* ========================================================================== */
/* COMPACT INLINE MENTION */
/* ========================================================================== */

.climate-zone-compact {
  display: inline;
  font-size: 0.95rem;
  color: #555;
}

/* ========================================================================== */
/* NARRATIVE FOCUS (for topic pages) */
/* ========================================================================== */

.climate-zone-narrative {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #f9f9f6;
  border-radius: 4px;
}

.climate-zone-narrative h3 {
  margin-top: 0;
  color: var(--color-secondary);
  font-size: 1.25rem;
}

.climate-description {
  line-height: 1.7;
  margin: 1rem 0;
  font-size: 1.05rem;
}

.climate-temp {
  margin: 0.75rem 0;
  font-size: 0.95rem;
}

.climate-technical-zones {
  margin-top: 1rem;
}

.climate-technical-zones summary {
  cursor: pointer;
  color: var(--color-primary);
  font-weight: 500;
  padding: 0.5rem 0;
  user-select: none;
}

.climate-technical-zones summary:hover {
  color: var(--color-accent-1);
}

.zone-list-compact {
  list-style: none;
  padding: 0.5rem 0 0 1rem;
  margin: 0;
}

.zone-list-compact li {
  padding: 0.25rem 0;
  font-size: 0.9rem;
}

/* ========================================================================== */
/* REFERENCE PAGE TABLE (Model 5 - for /learn/climate-zones/) */
/* ========================================================================== */

.climate-zones-reference {
  margin: 2rem 0;
}

.zone-reference-card {
  margin-bottom: 3rem;
  padding: 1.5rem;
  background: rgba(80, 108, 68, 0.06);
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.zone-reference-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-primary);
}

.zone-reference-id {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

.zone-reference-name {
  font-size: 1.25rem;
  color: var(--color-secondary);
  font-weight: 600;
}

.zone-reference-narrative {
  margin: 1rem 0;
  padding: 1rem;
  background: #f9f9f6;
  border-left: 3px solid var(--color-primary);
  line-height: 1.7;
}

.zone-reference-table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.zone-reference-table th {
  background: var(--color-secondary);
  color: white;
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
}

.zone-reference-table td {
  padding: 0.75rem;
  border: 1px solid #ddd;
  vertical-align: top;
}

.zone-reference-table tr:nth-child(even) {
  background: #f9f9f6;
}

.zone-reference-table .zone-system {
  font-weight: 600;
  color: var(--color-secondary);
  white-space: nowrap;
}

.zone-reference-table .zone-values {
  font-family: 'Courier New', monospace;
  color: var(--color-primary);
}

.zone-reference-table .zone-desc {
  font-size: 0.9rem;
  color: #555;
}

.zone-reference-examples {
  margin: 1rem 0;
  padding: 0.75rem;
  background: #f0f7f0;
  border-radius: 4px;
}

.zone-reference-examples strong {
  color: var(--color-secondary);
}

/* ========================================================================== */
/* RESPONSIVE (mobile ≤1024px) */
/* ========================================================================== */

@media (max-width: 1024px) {
  .climate-zone-section {
    padding: 1rem;
    margin: 1.5rem 0;
  }

  .zone-reference-card {
    padding: 1rem;
  }

  .zone-reference-header {
    flex-direction: column;
    gap: 0.5rem;
  }

  .zone-reference-table {
    font-size: 0.85rem;
  }

  .zone-reference-table th,
  .zone-reference-table td {
    padding: 0.5rem;
  }

  /* Stack table on very small screens */
  @media (max-width: 640px) {
    .zone-reference-table {
      display: block;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
    }
  }
}
