/* ════════════════════════════════
   EASYACRES — GENERIC BLOG POST TEMPLATE
   Renders any post from data/posts.json via js/post-render.js.
   Page-specific additions only. Header, easyacres-cta and footer
   reuse common.css / style.css as-is.
   Load AFTER reset.css, common.css, style.css.
════════════════════════════════ */

/* ────────────────────────────────
   PREVIEW BANNER — shown when a draft or future-dated post is opened
   directly, since those are hidden from the public blog listing
──────────────────────────────── */
.article-preview-banner {
  background: #fff8e6;
  border: 1px solid #e8c568;
  color: #8a6412;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 32px;
}

/* ────────────────────────────────
   LAYOUT — article content + sticky sidebar
──────────────────────────────── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  align-items: start;
}

.article-content {
  max-width: 720px;
}

.article-content h2 {
  font-size: 26px;
  margin: 44px 0 18px;
}

.article-content h3 {
  font-size: 21px;
  margin: 32px 0 14px;
}

.article-content p {
  font-size: 16px;
  color: var(--graphite);
  line-height: 1.75;
  margin-bottom: 18px;
}

.article-content p.article-lead {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--navy);
  margin-bottom: 32px;
}

.article-content a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-content a:hover {
  color: var(--steel);
}

.article-content ul,
.article-content ol {
  margin: 0 0 22px;
  padding-left: 22px;
  margin-left: 20px;
}

.article-content ul {
  list-style: disc;
}

.article-content ol {
  list-style: decimal;
}

.article-content li {
  font-size: 15.5px;
  color: var(--graphite);
  line-height: 1.7;
  margin-bottom: 10px;
}

.article-content li::marker {
  color: var(--steel);
}

.article-content li strong {
  color: var(--navy);
}

.article-table-wrap {
  overflow-x: auto;
  margin: 28px 0;
  border: 1px solid var(--surface);
  border-radius: var(--radius-md);
}

.article-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  table-layout: fixed;
}

.article-table th,
.article-table td {
  text-align: left;
  padding: 14px 16px;
  font-size: 14.5px;
  line-height: 1.6;
  border-bottom: 1px solid var(--surface);
  border-right: 1px solid var(--surface);
  vertical-align: top;
  width: 100%;
}

.article-table tr:last-child th,
.article-table tr:last-child td {
  border-bottom: none;
}
.article-table tr tdr:last-child {
  border-right: none;
}
.article-table th {
  background: var(--ivory);
  font-weight: 600;
  color: var(--navy);
}

.article-table td {
  color: var(--graphite);
}

.article-table td strong {
  color: var(--navy);
}

.article-figure {
  margin: 32px 0;
}

.article-figure img {
  display: block;
  width: 100%;
  border-radius: var(--radius-md);
}

.article-figure figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--steel);
  text-align: center;
}

.article-cta-inline {
  margin-top: 48px;
  padding: 36px;
  background: var(--ivory);
  border-radius: var(--radius-lg);
}

.article-cta-inline h3 {
  font-size: 21px;
  margin-bottom: 10px;
}

.article-cta-inline p {
  margin-bottom: 20px;
}

/* ────────────────────────────────
   SIDEBAR
──────────────────────────────── */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 110px;
}

.article-share,
.article-recent {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--surface);
  border-radius: var(--radius-lg);
}

.article-share__label,
.article-recent__label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 16px;
}

.article-share__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  justify-content: center;
}

.article-share__btn .icon {
  width: 16px;
  height: 16px;
}

.article-recent__item {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--navy);
  line-height: 1.4;
  padding: 12px 0;
  border-top: 1px solid var(--surface);
}

.article-recent__item:first-of-type {
  border-top: none;
  padding-top: 0;
}

.article-recent__item:hover {
  color: var(--steel);
}

.article-consult {
  padding: 28px 24px;
  background: var(--navy);
  border-radius: var(--radius-lg);
  color: var(--white);
}

.article-consult h3 {
  color: var(--white);
  font-size: 19px;
  margin-bottom: 8px;
}

.article-consult p {
  color: var(--surface);
  font-size: 13.5px;
  margin-bottom: 18px;
}

.article-consult .btn {
  width: 100%;
}

/* ────────────────────────────────
   INSIGHT CARDS — related articles (reused component)
──────────────────────────────── */
.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.insight-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(10, 26, 47, 0.04),
    0 1px 8px rgba(10, 26, 47, 0.05);
  transition: box-shadow 0.3s ease;
}

.insight-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 36px rgba(10, 26, 47, 0.12);
}

.insight-card__media {
  position: relative;
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.insight-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.insight-card:hover .insight-card__media img {
  transform: scale(1.05);
}

.insight-card__date {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--white);
  border-radius: 10px;
  padding: 7px 12px;
  text-align: center;
  line-height: 1.1;
  box-shadow: 0 4px 12px rgba(10, 26, 47, 0.18);
}

.insight-card__day {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
}

.insight-card__month {
  display: block;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--steel);
}

.insight-card__body {
  padding: 20px;
}

.insight-card__category {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 10px;
}

.insight-card__title {
  font-size: 17px;
  margin-bottom: 10px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.insight-card__title a {
  color: var(--navy);
  transition: color 0.2s ease;
}

.insight-card__title a:hover {
  color: var(--steel);
}

.insight-card__excerpt {
  font-size: 13px;
  color: var(--graphite);
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ────────────────────────────────
   RESPONSIVE
──────────────────────────────── */
@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .article-sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .insight-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991px) {
  .article-lead {
    font-size: 18px;
  }

  .article-content h2 {
    font-size: 22px;
  }

  .article-content h3 {
    font-size: 18px;
  }

  .article-cta-inline {
    padding: 26px;
  }

  .article-sidebar {
    flex-direction: column;
  }

  .insight-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .article-table {
    min-width: 100%;
  }
}
