/* ── BLOG ARTICLE (standalone page) components ──
   Loaded with single-blog.css on page-templates/page-blog-article.php.
   Scoped to .kg-article so the existing blog posts are untouched. */

.page-template-page-blog-article .ast-container {
  max-width: 1440px !important;
}

.kg-article {
  --kg-navy: #15577F;
  --kg-row: #EAF2F8;
  --kg-cta-bg: #FCEAEC;
  --kg-cta-text: #B01722;
  --kg-warn-bg: #FFF8E1;
  --kg-warn-text: #E65100;
}

.kg-article h2[id] {
  scroll-margin-top: 30px;
}

/* Key takeaways */
.kg-article .kg-takeaways {
  background: var(--color-lightblue);
  border-left: 4px solid var(--primary-color);
  border-radius: 0 4px 4px 0;
  padding: 22px 28px 8px;
  margin: 28px 0;
}

.kg-article .kg-takeaways h2 {
  margin-top: 0;
}

/* Table of contents */
.kg-article .kg-toc ol {
  list-style: none;
  padding-left: 0;
}

.kg-article .kg-toc li {
  margin-bottom: 4px;
}

/* Back to top */
.kg-article .kg-back-to-top {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .05em;
}

/* Tables */
.kg-article table.kg-table {
  font-size: .95rem;
  line-height: 1.6;
}

.kg-article table.kg-table thead tr {
  background: var(--kg-navy);
}

.kg-article table.kg-table thead th {
  font-size: .9rem;
  letter-spacing: 0;
  text-transform: none;
  vertical-align: bottom;
  border-right: 1px solid rgba(255,255,255,.15);
}

.kg-article table.kg-table tbody tr:nth-child(odd) {
  background: var(--kg-row);
}

.kg-article table.kg-table tbody td {
  vertical-align: top;
  padding: 12px 18px;
  border-right: 1px solid #cce3f3;
}

.kg-article table.kg-table tbody td:first-child {
  color: var(--kg-navy);
}

.kg-article table.kg-table th:first-child,
.kg-article table.kg-table td:first-child {
  min-width: 140px;
}

.kg-article table.kg-table td:last-child,
.kg-article table.kg-table th:last-child {
  border-right: none;
}

/* Figures (diagrams) */
.kg-article .kg-figure {
  margin: 28px 0;
}

.kg-article .kg-figure img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
}

.kg-article .kg-figure figcaption {
  margin-top: 10px;
  font-size: .9rem;
  font-style: italic;
  color: #666666;
  line-height: 1.6;
}

/* Call-to-action box */
.kg-article .kg-cta-box {
  background: var(--kg-cta-bg);
  border-left: 4px solid var(--secondary-color);
  border-radius: 0 4px 4px 0;
  padding: 24px 28px;
  margin: 28px 0;
}

.kg-article .kg-cta-box .kg-cta-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--kg-cta-text);
  margin: 0 0 8px;
}

.kg-article .kg-cta-box p {
  margin-bottom: 16px;
}

.kg-article .kg-cta-box a.btn {
  color: var(--color-white);
  text-decoration: none;
  font-weight: 700;
  padding: 12px 28px;
}

/* Step strip */
.kg-article .kg-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 24px 0 28px;
}

.kg-article .kg-steps li {
  background: var(--kg-navy);
  color: var(--color-white);
  border-radius: 4px;
  padding: 14px 16px;
  margin: 0;
  line-height: 1.4;
  position: relative;
}

.kg-article .kg-steps .kg-step-num {
  display: block;
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .85;
  margin-bottom: 4px;
}

.kg-article .kg-steps strong {
  color: var(--color-white);
}

.kg-article .kg-steps li + li strong::before {
  content: '\25B6\00a0';
  font-size: .75em;
}

/* Checklist */
.kg-article .kg-checklist-group {
  font-weight: 700;
  color: var(--primary-color);
  margin: 22px 0 6px;
}

.kg-article ul.kg-checklist {
  list-style: none;
  padding-left: 0;
}

.kg-article ul.kg-checklist li {
  position: relative;
  padding-left: 30px;
}

.kg-article ul.kg-checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 16px;
  height: 16px;
  border: 2px solid var(--primary-color);
  border-radius: 3px;
}

/* Warning callout */
.kg-article .kg-warning-box {
  background: var(--kg-warn-bg);
  border-left: 4px solid var(--kg-warn-text);
  border-radius: 0 4px 4px 0;
  padding: 22px 28px 8px;
  margin: 28px 0;
}

.kg-article .kg-warning-box .kg-warning-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--kg-warn-text);
  margin: 0 0 10px;
}

/* Sources */
.kg-article .kg-sources li {
  font-size: .9rem;
}

/* Responsive */
@media (max-width: 921px) {
  .kg-article .kg-steps {
    grid-template-columns: 1fr;
  }
  .kg-article .kg-steps li + li strong::before {
    content: '';
  }
}

@media (max-width: 767px) {
  .kg-article ul.kg-checklist,
  .kg-article .kg-toc ol {
    margin-bottom: 18px;
  }
  .kg-article .kg-takeaways,
  .kg-article .kg-cta-box,
  .kg-article .kg-warning-box {
    padding-left: 18px;
    padding-right: 18px;
  }
}
