/* ============================================
   Article page styles (used by article-*.html)
   ============================================ */

/* === Hero === */
.post-hero {
  background: var(--cream);
  padding: 70px 0 50px;
  border-bottom: 1px solid var(--soft-grey);
}
.post-hero .container { max-width: 1200px; }
.post-meta-row {
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  font-size: 12px; color: var(--muted); font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 22px;
}
.post-meta-row .cat-pill {
  background: var(--terracotta); color: #fff;
  padding: 5px 14px; border-radius: var(--radius-pill);
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.2px;
}
.post-hero h1 {
  font-family: var(--serif);
  font-size: 48px; font-weight: 500;
  line-height: 1.15;
  color: var(--charcoal);
  margin: 0 0 22px 0;
  letter-spacing: -0.5px;
}
.post-hero .post-lead {
  font-size: 19px; line-height: 1.65;
  color: var(--charcoal-soft);
  max-width: 760px;
  margin: 0;
  font-weight: 400;
}

/* === Body === */
.post-body {
  padding: 70px 0 80px;
  background: #fff;
}
.post-body .container {
  max-width: 1200px;
}

.post-body h2 {
  font-family: var(--serif);
  font-size: 32px; font-weight: 500;
  color: var(--charcoal);
  margin: 52px 0 20px;
  line-height: 1.25;
  letter-spacing: -0.3px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--terracotta);
  display: inline-block;
  scroll-margin-top: 20px;
}
.post-body h2:first-child { margin-top: 0; }

.post-body h3 {
  font-family: var(--sans);
  font-size: 18px; font-weight: 700;
  color: var(--charcoal);
  margin: 38px 0 14px;
  letter-spacing: 0.3px;
  text-transform: none;
}

.post-body p {
  font-size: 17px; line-height: 1.8;
  color: var(--charcoal);
  margin: 0 0 20px 0;
}

.post-body ul, .post-body ol {
  padding-left: 26px;
  margin: 0 0 24px 0;
}
.post-body ul li, .post-body ol li {
  font-size: 17px; line-height: 1.75;
  color: var(--charcoal);
  margin-bottom: 10px;
  padding-left: 4px;
}
.post-body ul li::marker { color: var(--terracotta); }
.post-body ol li::marker { color: var(--terracotta); font-weight: 700; }

.post-body strong { color: var(--charcoal); font-weight: 700; }

.post-body a {
  color: var(--terracotta);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
/* Buttons inside post body should NOT inherit the inline-link underline */
.post-body a.btn,
.post-body a.btn-outline,
.post-body .btn-row a,
.post-cta a {
  text-decoration: none !important;
}
.post-body a:hover { color: var(--charcoal); }

.post-body blockquote {
  border-left: 4px solid var(--terracotta);
  background: var(--cream);
  padding: 20px 24px;
  margin: 32px 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
  line-height: 1.55;
  color: var(--charcoal);
}
.post-body blockquote p { font-size: inherit; margin: 0; line-height: inherit; }

.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 15px;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(43,37,32,0.05);
}
.post-body table th,
.post-body table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--soft-grey);
  vertical-align: top;
}
.post-body table th {
  background: var(--cream);
  font-family: var(--sans);
  font-weight: 700;
  color: var(--charcoal);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.post-body table tr:last-child td { border-bottom: none; }
.post-body table tr:hover td { background: rgba(0,111,101,0.02); }

.post-body .callout {
  background: linear-gradient(135deg, var(--cream), #fff);
  border-left: 4px solid var(--terracotta);
  padding: 22px 28px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 36px 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--charcoal);
}
.post-body .callout strong { color: var(--charcoal); }

/* === In-post CTA === */
.post-cta {
  background: linear-gradient(135deg, var(--terracotta) 0%, #00897c 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  text-align: center;
  margin: 64px 0 0;
  box-shadow: 0 10px 30px rgba(0,111,101,0.15);
}
.post-cta h3 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  color: #fff;
  margin: 0 0 12px;
}
.post-cta p {
  font-size: 16px;
  color: rgba(255,255,255,0.95);
  margin: 0 0 26px;
  line-height: 1.6;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.post-cta .btn-row {
  display: flex; gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.post-cta .btn {
  background: #fff;
  color: var(--terracotta);
}
.post-cta .btn:hover {
  background: var(--charcoal);
  color: #fff;
}
.post-cta .btn-outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.post-cta .btn-outline:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

/* === Post nav (related links) === */
.post-nav {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 36px 0 0;
  margin-top: 48px;
  border-top: 1px solid var(--soft-grey);
  flex-wrap: wrap;
  align-items: center;
}
.post-nav .nav-back {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: color 0.2s;
}
.post-nav .nav-back:hover { color: var(--terracotta); }
.post-nav .related {
  font-size: 13px;
  color: var(--muted);
}
.post-nav .related a {
  color: var(--terracotta);
  font-weight: 600;
  text-decoration: none;
}
.post-nav .related a:hover { text-decoration: underline; }

/* === Responsive === */
@media (max-width: 900px) {
  .post-hero { padding: 50px 0 36px; }
  .post-hero h1 { font-size: 34px; }
  .post-hero .post-lead { font-size: 17px; }
  .post-body { padding: 50px 0 60px; }
  .post-body h2 { font-size: 26px; margin: 40px 0 16px; }
  .post-body h3 { font-size: 16px; margin: 30px 0 12px; }
  .post-body p, .post-body ul li, .post-body ol li { font-size: 16px; }
  .post-body table { font-size: 13px; }
  .post-body table th, .post-body table td { padding: 10px 12px; }
  .post-cta { padding: 32px 24px; }
  .post-cta h3 { font-size: 22px; }
  .post-nav { flex-direction: column; align-items: flex-start; gap: 12px; }
}
