/* ============================================
   ARTICLE VISUAL ENHANCEMENTS
   Shared styles for diagrams, infographics,
   checklists, pull quotes, key takeaways, TOC
   Hawkey Church Management Inc.
   ============================================ */

/* ---------- Table of Contents ---------- */
.article-toc {
  background: #FAF8F4;
  border: 1px solid #E6E3DD;
  border-radius: 8px;
  padding: 24px 28px;
  margin: 32px 0;
}
.article-toc h3 {
  font-family: 'Inter', sans-serif;
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #B8860B;
  margin: 0 0 14px;
}
.article-toc ol {
  margin: 0;
  padding: 0 0 0 20px;
  color: #4A5059;
  line-height: 2;
}
.article-toc a {
  color: #4A5059;
  text-decoration: none;
  font-size: .92rem;
  font-weight: 500;
  transition: color .2s;
}
.article-toc a:hover {
  color: #B8860B;
}

/* ---------- Key Takeaway Box ---------- */
.key-takeaway {
  background: linear-gradient(135deg, #1F2328 0%, #2C333A 100%);
  border-radius: 8px;
  padding: 24px 28px;
  margin: 32px 0;
  position: relative;
  overflow: hidden;
}
.key-takeaway::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #B8860B, #8B6508);
}
.key-takeaway h4 {
  font-family: 'Inter', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: #B8860B;
  margin: 0 0 10px;
}
.key-takeaway p, .key-takeaway li {
  color: #c8ccd2;
  font-size: .92rem;
  line-height: 1.7;
  margin: 0;
}
.key-takeaway ul {
  margin: 8px 0 0;
  padding: 0 0 0 18px;
}
.key-takeaway li {
  margin-bottom: 4px;
}

/* ---------- Pull Quote ---------- */
.pull-quote {
  border-left: none;
  border-top: 3px solid #B8860B;
  border-bottom: 3px solid #B8860B;
  padding: 28px 32px;
  margin: 36px 0;
  text-align: center;
}
.pull-quote p {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: #1F2328;
  line-height: 1.5;
  margin: 0;
}
.pull-quote cite {
  display: block;
  margin-top: 10px;
  font-family: 'Inter', sans-serif;
  font-size: .82rem;
  font-style: normal;
  color: #7A828C;
  letter-spacing: .04em;
}

/* ---------- Infographic Stat Cards ---------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 32px 0;
}
.info-card {
  background: #fff;
  border: 1px solid #E6E3DD;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  transition: transform .2s, box-shadow .2s;
}
.info-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(31,35,40,.08);
}
.info-card .stat {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: #B8860B;
  line-height: 1.1;
}
.info-card .stat-label {
  font-size: .78rem;
  font-weight: 600;
  color: #7A828C;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-top: 6px;
}
.info-card .stat-detail {
  font-size: .82rem;
  color: #4A5059;
  margin-top: 8px;
  line-height: 1.5;
}
.info-card.accent-red { border-top: 3px solid #B22222; }
.info-card.accent-red .stat { color: #B22222; }
.info-card.accent-gold { border-top: 3px solid #B8860B; }
.info-card.accent-charcoal { border-top: 3px solid #1F2328; }
.info-card.accent-charcoal .stat { color: #1F2328; }

/* ---------- Process Flow / Flowchart ---------- */
.process-flow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  margin: 36px 0;
  padding: 28px 20px;
  background: #FAF8F4;
  border-radius: 10px;
  border: 1px solid #E6E3DD;
}
.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  min-width: 120px;
  max-width: 180px;
  padding: 0 8px;
  position: relative;
}
.flow-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 24px;
  right: -8px;
  width: 16px;
  height: 2px;
  background: linear-gradient(90deg, #B8860B, rgba(184,134,11,.3));
}
.flow-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #B8860B;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 10px;
  flex-shrink: 0;
}
.flow-step.active .flow-num {
  background: #B22222;
  box-shadow: 0 0 0 4px rgba(178,34,34,.15);
}
.flow-label {
  font-weight: 600;
  font-size: .85rem;
  color: #1F2328;
  margin-bottom: 4px;
}
.flow-detail {
  font-size: .75rem;
  color: #7A828C;
  line-height: 1.4;
}

/* Vertical flow for narrow containers */
.process-flow.vertical {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}
.process-flow.vertical .flow-step {
  flex-direction: row;
  text-align: left;
  max-width: 100%;
  padding: 12px 0;
  gap: 16px;
}
.process-flow.vertical .flow-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: auto;
  right: auto;
  left: 24px;
  bottom: -4px;
  width: 2px;
  height: 8px;
  background: linear-gradient(180deg, #B8860B, rgba(184,134,11,.3));
}

/* ---------- Styled Checklist ---------- */
.checklist {
  background: #fff;
  border: 1px solid #E6E3DD;
  border-radius: 8px;
  padding: 24px 28px;
  margin: 28px 0;
}
.checklist h4 {
  font-family: 'Inter', sans-serif;
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #1F2328;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #E6E3DD;
}
.checklist ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.checklist li {
  padding: 8px 0 8px 32px;
  position: relative;
  font-size: .92rem;
  color: #4A5059;
  line-height: 1.6;
  border-bottom: 1px solid #F3F4F6;
}
.checklist li:last-child {
  border-bottom: none;
}
.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 18px;
  height: 18px;
  border: 2px solid #B8860B;
  border-radius: 4px;
  background: #FFFBF0;
}

/* ---------- Comparison Table ---------- */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: .9rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #E6E3DD;
}
.compare-table thead th {
  background: #1F2328;
  color: #fff;
  padding: 12px 16px;
  font-weight: 600;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  text-align: left;
}
.compare-table thead th:first-child {
  color: #B8860B;
}
.compare-table tbody td {
  padding: 10px 16px;
  border-bottom: 1px solid #F3F4F6;
  color: #4A5059;
  line-height: 1.5;
}
.compare-table tbody tr:nth-child(even) {
  background: #FAF8F4;
}
.compare-table tbody tr:hover {
  background: #FFFBF0;
}

/* ---------- Timeline / Milestone Strip ---------- */
.milestone-strip {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 24px 0;
  margin: 32px 0;
  position: relative;
}
.milestone-strip::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 5%;
  right: 5%;
  height: 3px;
  background: linear-gradient(90deg, #B8860B, #8B6508, #B22222);
  border-radius: 2px;
}
.milestone {
  text-align: center;
  flex: 1;
  position: relative;
  z-index: 1;
}
.milestone .dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #B8860B;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #B8860B;
  margin: 0 auto 10px;
}
.milestone .ms-label {
  font-weight: 600;
  font-size: .82rem;
  color: #1F2328;
}
.milestone .ms-time {
  font-size: .75rem;
  color: #7A828C;
  margin-top: 2px;
}

/* ---------- Section Divider ---------- */
.section-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, #E6E3DD 20%, #B8860B 50%, #E6E3DD 80%, transparent);
  margin: 48px 0;
}

/* ---------- SVG Diagram Text Readability ---------- */
.diagram-box svg text {
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 3px;
  stroke-linejoin: round;
  stroke-linecap: round;
}
/* Keep white text labels clean on dark backgrounds */
.diagram-box svg text[fill="white"],
.diagram-box svg text[fill="#fff"],
.diagram-box svg text[fill="#ffffff"] {
  stroke: rgba(0,0,0,0.3);
  stroke-width: 2px;
}

/* ---------- Responsive ---------- */
@media (max-width: 700px) {
  .info-grid { grid-template-columns: 1fr 1fr; }
  .process-flow { flex-direction: column; align-items: center; }
  .flow-step { max-width: 100%; flex-direction: row; text-align: left; gap: 12px; }
  .flow-step:not(:last-child)::after { display: none; }
  .milestone-strip { flex-direction: column; gap: 16px; }
  .milestone-strip::before { display: none; }
  .pull-quote p { font-size: 1.1rem; }
}
@media (max-width: 480px) {
  .info-grid { grid-template-columns: 1fr; }
}
