/* === BLOG POST LAYOUT === */

.post-layout { padding: 4rem 0; }

.post-container {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3.5rem;
  align-items: start;
}

/* === POST CONTENT === */
.post-content .breadcrumb {
  color: var(--clr-muted);
  margin-bottom: 1.5rem;
}
.post-content .breadcrumb a { color: var(--clr-muted); }
.post-content .breadcrumb a:hover { color: var(--clr-primary); }

.post-header { margin-bottom: 2.5rem; }
.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}
.post-meta time, .post-meta .read-time {
  color: var(--clr-muted);
  font-size: 0.85rem;
}
.post-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.post-intro {
  font-size: 1.15rem;
  color: var(--clr-muted);
  line-height: 1.7;
  border-left: 4px solid var(--clr-primary);
  padding-left: 1.25rem;
  margin: 0;
}

/* === TABLE OF CONTENTS === */
.toc {
  background: var(--clr-bg-alt);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0 2.5rem;
}
.toc h2 {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--clr-muted);
  margin-bottom: 0.75rem;
  font-family: var(--font-body);
}
.toc ol {
  margin: 0;
  padding-left: 1.2rem;
}
.toc li { margin-bottom: 0.35rem; }
.toc a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--clr-text);
  text-decoration: none;
}
.toc a:hover { color: var(--clr-primary); }

/* === ARTICLE SECTIONS === */
.post-content section {
  margin-bottom: 3rem;
}
.post-content section h2 {
  font-size: 1.7rem;
  padding-top: 1rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--clr-primary-lt);
  padding-bottom: 0.5rem;
}
.post-content section h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.6rem;
}
.post-content p { font-size: 1rem; line-height: 1.8; }
.post-content ul {
  margin: 0.5rem 0 1rem 1.2rem;
}
.post-content ul li { margin-bottom: 0.5rem; }

/* Callouts */
.callout {
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.92rem;
  line-height: 1.6;
}
.callout-info {
  background: #eff6ff;
  border-left: 4px solid #3b82f6;
  color: #1e40af;
}
.callout-warning {
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
  color: #92400e;
}
.callout-success {
  background: #f0fdf4;
  border-left: 4px solid #16a34a;
  color: #14532d;
}
.callout a { color: inherit; font-weight: 600; }

/* === TABLE === */
.factor-table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--clr-border);
  box-shadow: var(--shadow);
}
.factor-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.factor-table thead tr {
  background: var(--clr-dark);
  color: #fff;
}
.factor-table th {
  padding: 0.85rem 1.1rem;
  text-align: left;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.factor-table td {
  padding: 0.75rem 1.1rem;
  border-bottom: 1px solid var(--clr-border);
  color: var(--clr-text);
}
.factor-table tbody tr:last-child td { border-bottom: none; }
.factor-table tbody tr:nth-child(even) { background: var(--clr-bg-alt); }
.factor-table td:first-child { font-weight: 600; color: var(--clr-dark); }

/* === RISK BANDS === */
.risk-bands { display: flex; flex-direction: column; gap: 1rem; margin: 1.5rem 0; }
.risk-band {
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  border-left: 5px solid;
}
.risk-band p { margin: 0; font-size: 0.92rem; line-height: 1.6; }
.risk-band.low         { background: #f0fdf4; border-color: var(--clr-low);         color: #14532d; }
.risk-band.borderline  { background: #fefce8; border-color: var(--clr-borderline);  color: #713f12; }
.risk-band.intermediate{ background: #fff7ed; border-color: var(--clr-intermediate); color: #7c2d12; }
.risk-band.high        { background: #fef2f2; border-color: var(--clr-high);         color: #7f1d1d; }
.band-header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.band-pct {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
}
.band-label {
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* === STRATEGY GRID === */
.strategy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}
.strategy-card {
  background: #fff;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}
.strategy-card:hover { transform: translateY(-2px); }
.strategy-icon { font-size: 1.8rem; display: block; margin-bottom: 0.6rem; }
.strategy-card h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.strategy-card p { font-size: 0.88rem; color: var(--clr-muted); margin: 0; line-height: 1.6; }

/* === POST CTA BOX === */
.post-cta-box {
  background: linear-gradient(135deg, var(--clr-dark), var(--clr-mid));
  color: #fff;
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  margin: 3rem 0;
}
.post-cta-box h3 { color: #fff; font-size: 1.4rem; margin-bottom: 0.5rem; }
.post-cta-box p { color: rgba(255,255,255,0.75); margin-bottom: 1.5rem; }
.post-cta-box .btn-primary {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
}

/* === POST FOOTER === */
.post-footer { border-top: 1px solid var(--clr-border); padding-top: 2rem; margin-top: 2rem; }
.sources h4 { font-family: var(--font-body); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.75rem; color: var(--clr-muted); }
.sources ul { font-size: 0.85rem; color: var(--clr-muted); }
.post-disclaimer {
  margin-top: 1.5rem;
  background: var(--clr-bg-alt);
  border-radius: var(--radius-sm);
  padding: 1rem;
  font-size: 0.82rem;
  color: var(--clr-muted);
  border: 1px solid var(--clr-border);
}

/* === POST SIDEBAR === */
.post-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.sticky-widget { position: sticky; top: 80px; }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .post-container { grid-template-columns: 1fr; }
  .post-sidebar { display: none; }
  .strategy-grid { grid-template-columns: 1fr; }
}
