/* Post-specific styles */

.post {
    background: white;
}

.post-header {
    padding: 2.75rem 2rem 2rem 2rem;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border-radius: 8px 8px 0 0;
    margin: -2rem -2rem 2rem -2rem;
}

.post-header h1 {
    font-size: 2.2rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    opacity: 0.95;
    font-size: 1rem;
}

.post-content {
    line-height: 1.8;
}

.forecast-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e0e0e0;
}

.forecast-section h2 {
    color: #1e3c72;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.forecast-section h3 {
    color: #2a5298;
    font-size: 1.3rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.forecast-details ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.forecast-details li {
    margin-bottom: 0.5rem;
}

.highlight-box {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #2a5298;
    margin: 1.5rem 0;
}

.highlight-box p {
    margin-bottom: 0.75rem;
}

.highlight-box p:last-child {
    margin-bottom: 0;
}

.highlight-box h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.figure-placeholder {
    background: #f5f7fa;
    border: 2px dashed #2a5298;
    padding: 2rem;
    margin: 1.5rem 0;
    border-radius: 8px;
    text-align: center;
}

.figure-placeholder p {
    margin-bottom: 0.5rem;
    color: #666;
}

.figure-instructions {
    font-size: 0.9rem;
    color: #888;
}

.figure-placeholder code {
    background: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    display: inline-block;
    margin-top: 0.5rem;
}

/* Post images */
.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.summary {
    background: linear-gradient(135deg, #fff9c4 0%, #ffeb3b 50%);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid #f57f17;
}

.summary h2 {
    color: #f57f17;
    border-bottom: none;
    margin-bottom: 1rem;
}

.totals {
    background: white;
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
}

.recommendations {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    padding: 2rem;
    border-radius: 8px;
    margin-top: 3rem;
    border-left: 4px solid #388e3c;
}

.recommendations h2 {
    color: #388e3c;
    border-bottom: none;
}

.recommendations h3 {
    color: #2e7d32;
    margin-top: 1.5rem;
}

.recommendations .highlight-box {
    background: white;
    border-left: 4px solid #388e3c;
}

.safety-note {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    padding: 2rem;
    border-radius: 8px;
    margin-top: 3rem;
    border-left: 4px solid #c62828;
}

.safety-note h2 {
    color: #c62828;
    border-bottom: none;
}

.safety-note ul {
    margin-left: 1.5rem;
}

.safety-note li {
    margin-bottom: 0.75rem;
}

.safety-note a {
    color: #c62828;
    font-weight: 600;
}

.post-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e0e0e0;
    text-align: center;
}

.post-footer em {
    color: #666;
    font-size: 1.1rem;
}

.back-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background-color: #2a5298;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.back-link:hover {
    background-color: #1e3c72;
}

p {
    margin-bottom: 1em;
  }
  
.figure-half {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .figure-half img {
    width: 50%;
    min-width: 200px;
    max-width: 400px;
    height: auto;
    flex-shrink: 0;
  }
  
  .figure-half p {
    flex: 1;
    margin: 0;
    align-self: center;
  }

/* Snow Totals Grid Table */
.snow-totals-grid {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: white;
    border: 1px solid #ddd;
}

.snow-totals-grid thead {
    background: #f5f5f5;
    border-bottom: 2px solid #2a5298;
}

.snow-totals-grid th,
.snow-totals-grid td {
    padding: 0.75rem 1rem;
    text-align: center;
    border-right: 1px solid #e0e0e0;
}

.snow-totals-grid th:last-child,
.snow-totals-grid td:last-child {
    border-right: none;
}

.snow-totals-grid th {
    color: #1e3c72;
    font-weight: 600;
    font-size: 0.95rem;
}

.snow-totals-grid tbody tr:nth-child(odd) {
    background: #f9f9f9;
}

.snow-totals-grid tbody tr:hover {
    background: #f0f5ff;
}

.snow-totals-grid td:first-child {
    text-align: left;
    font-weight: 500;
}

.snow-totals-grid td:first-child strong {
    color: #1e3c72;
}

/* Responsive */
@media (max-width: 768px) {
    .post-header {
        padding: 1.5rem;
        margin: -1.5rem -1.5rem 1.5rem -1.5rem;
    }
    
    .post-header h1 {
        font-size: 1.6rem;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .forecast-section h2 {
        font-size: 1.5rem;
    }
    
    .snow-totals-grid th,
    .snow-totals-grid td {
        padding: 0.5rem 0.25rem;
        font-size: 0.85rem;
    }
    
    .snow-totals-grid th {
        font-size: 0.8rem;
    }
}
