/* ═══════════════════════════════════════
   BASFRAMES — article.css
   Styles for individual blog post pages
   ═══════════════════════════════════════ */

.post-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 32px 80px;
  align-items: start;
}

/* ── POST BODY ── */
.post-body { min-width: 0; }

.post-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.post-lead {
  font-size: 1.15rem;
  color: var(--steel);
  line-height: 1.75;
  font-weight: 400;
  border-left: 4px solid var(--amber);
  padding-left: 20px;
  margin-bottom: 36px;
}

.post-body h2 {
  font-size: 1.45rem;
  color: var(--navy);
  margin: 40px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

.post-body h2:first-of-type { margin-top: 0; }

.post-body h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin: 28px 0 10px;
}

.post-body p {
  font-size: 0.97rem;
  line-height: 1.85;
  color: #334455;
  margin-bottom: 18px;
}

.post-body ul,
.post-body ol {
  margin: 10px 0 22px 22px;
}

.post-body li {
  font-size: 0.97rem;
  line-height: 1.8;
  color: #334455;
  margin-bottom: 8px;
}

.post-body a {
  color: var(--steel);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(42,74,107,0.3);
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}

.post-body a:hover {
  color: var(--amber);
  text-decoration-color: var(--amber);
}

/* ── INFO BOX ── */
.info-box {
  background: var(--cream);
  border: 1px solid var(--border);
  border-left: 4px solid var(--amber);
  border-radius: 0 8px 8px 0;
  padding: 22px 24px;
  margin: 28px 0;
}

.info-box strong {
  display: block;
  color: var(--navy);
  font-size: 0.92rem;
  margin-bottom: 12px;
}

.info-box ul { margin: 0 0 0 18px; }

.info-box li {
  font-size: 0.91rem;
  color: #3a4a58;
  margin-bottom: 7px;
}

/* ── COST TABLE ── */
.cost-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.cost-table th {
  background: var(--navy);
  color: #fff;
  padding: 14px 20px;
  text-align: left;
  font-size: 0.87rem;
  font-weight: 600;
}

.cost-table td {
  padding: 13px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  background: #fff;
}

.cost-table tr:last-child td { border-bottom: none; }
.cost-table tr:nth-child(even) td { background: var(--cream); }

/* ── POST CTA ── */
.post-cta {
  background: linear-gradient(135deg, var(--navy), var(--steel));
  border-radius: 12px;
  padding: 36px;
  margin: 44px 0;
  text-align: center;
}

.post-cta h3 {
  color: #fff;
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.post-cta p {
  color: #8aafc8;
  margin-bottom: 22px;
}

/* ── POST NAV ── */
.post-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.post-nav a {
  color: var(--steel);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.92rem;
}
.post-nav a:hover { color: var(--amber); }

/* ── SIDEBAR ── */
.post-sidebar {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.sidebar-card h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.sidebar-card ul { list-style: none; margin: 0; }
.sidebar-card ul li { margin-bottom: 9px; }

.sidebar-card ul a {
  color: var(--steel);
  text-decoration: none;
  font-size: 0.87rem;
  font-weight: 500;
  transition: color 0.2s;
}
.sidebar-card ul a:hover { color: var(--amber); }

.sidebar-card p {
  color: var(--muted);
  font-size: 0.87rem;
  margin-bottom: 16px;
}

.sidebar-card--cta {
  background: var(--cream);
  border-color: var(--amber);
}

.sidebar-card--cta h4 { color: var(--navy); border-color: var(--amber); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .post-layout {
    grid-template-columns: 1fr;
    padding: 40px 20px 60px;
  }
  .post-sidebar { position: static; }
}
