/* SettleAU engagement blocks - reusable patterns for articles and tools.
   Include with: <link rel="stylesheet" href="/engagement-blocks.css">
   Class prefix `eb-` to avoid collisions with article/page styles.
   Mobile-safe: every block stacks under 720px. */

.eb-block {
  margin: 32px 0;
  padding: 24px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.eb-block .eb-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #2b6cb0;
  margin-bottom: 6px;
}

.eb-block .eb-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #1a365d;
  margin: 0 0 6px;
  line-height: 1.3;
}

.eb-block .eb-lede {
  font-size: 0.95rem;
  color: #4a5568;
  margin: 0 0 16px;
  line-height: 1.55;
}

/* Next steps block: 3 cards (tool / guide / checklist) */
.eb-next-steps .eb-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.eb-next-steps .eb-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border-radius: 10px;
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  text-decoration: none !important;
  color: inherit;
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}
.eb-next-steps .eb-card:hover {
  border-color: #2b6cb0;
  background: #ebf8ff;
  transform: translateY(-1px);
  text-decoration: none !important;
}
.eb-next-steps .eb-kind {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #718096;
}
.eb-next-steps .eb-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a365d;
  line-height: 1.3;
}
.eb-next-steps .eb-card-desc {
  font-size: 0.85rem;
  color: #4a5568;
  line-height: 1.5;
}
.eb-next-steps .eb-card-arrow {
  font-size: 0.85rem;
  color: #2b6cb0;
  font-weight: 700;
  margin-top: 4px;
}

/* Not sure where to start (journey pointer) */
.eb-not-sure {
  background: linear-gradient(135deg, #ebf8ff 0%, #f0fff4 100%);
  border-color: #bee3f8;
  text-align: center;
}
.eb-not-sure .eb-cta {
  display: inline-block;
  margin-top: 8px;
  padding: 12px 28px;
  background: #2b6cb0;
  color: #ffffff !important;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none !important;
}
.eb-not-sure .eb-cta:hover {
  background: #2c5282;
  text-decoration: none !important;
}

/* Ask a question (links to comments anchor) */
.eb-ask {
  background: #fffaf0;
  border-color: #fbd38d;
}
.eb-ask .eb-ask-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.eb-ask .eb-ask-input {
  flex: 1;
  min-width: 220px;
  padding: 10px 14px;
  border: 1px solid #ed8936;
  border-radius: 8px;
  font-size: 0.95rem;
  background: #ffffff;
}
.eb-ask .eb-ask-input:focus {
  outline: 2px solid #dd6b20;
  outline-offset: 0;
}
.eb-ask .eb-cta {
  padding: 11px 22px;
  background: #dd6b20;
  color: #ffffff !important;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
}
.eb-ask .eb-cta:hover {
  background: #c05621;
  text-decoration: none !important;
}

/* Related calculator (single tool spotlight) */
.eb-calc {
  display: flex;
  gap: 18px;
  align-items: center;
  background: #f0fff4;
  border-color: #9ae6b4;
}
.eb-calc .eb-calc-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}
.eb-calc .eb-calc-body { flex: 1; min-width: 0; }
.eb-calc .eb-cta {
  display: inline-block;
  margin-top: 6px;
  padding: 10px 20px;
  background: #2f855a;
  color: #ffffff !important;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none !important;
}
.eb-calc .eb-cta:hover {
  background: #276749;
  text-decoration: none !important;
}

/* Save / share split */
.eb-save-share {
  text-align: center;
}
.eb-save-share .eb-row {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.eb-save-share .eb-btn {
  padding: 11px 22px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none !important;
  border: 1px solid #2b6cb0;
  cursor: pointer;
}
.eb-save-share .eb-btn-primary {
  background: #2b6cb0;
  color: #ffffff !important;
}
.eb-save-share .eb-btn-primary:hover {
  background: #2c5282;
  text-decoration: none !important;
}
.eb-save-share .eb-btn-ghost {
  background: #ffffff;
  color: #2b6cb0 !important;
}
.eb-save-share .eb-btn-ghost:hover {
  background: #ebf8ff;
  text-decoration: none !important;
}

/* FAQ accordion (use <details data-eb-faq="..."> so engagement.js fires faq_expand) */
details[data-eb-faq] {
  margin: 12px 0;
  padding: 14px 18px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
  transition: border-color 0.15s ease;
}
details[data-eb-faq]:hover { border-color: #cbd5e0; }
details[data-eb-faq][open] {
  border-color: #2b6cb0;
  background: #f7fafc;
}
details[data-eb-faq] > summary {
  list-style: none;
  cursor: pointer;
  font-size: 1rem;
  color: #1a365d;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  line-height: 1.4;
}
details[data-eb-faq] > summary::-webkit-details-marker { display: none; }
details[data-eb-faq] > summary::after {
  content: "+";
  font-weight: 800;
  color: #2b6cb0;
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}
details[data-eb-faq][open] > summary::after {
  content: "−";
}
details[data-eb-faq] > p {
  margin: 12px 0 0;
  font-size: 0.95rem;
  color: #2d3748;
  line-height: 1.65;
}

/* Mobile: stack everything */
@media (max-width: 720px) {
  .eb-block { padding: 18px; margin: 24px 0; }
  .eb-next-steps .eb-cards { grid-template-columns: 1fr; }
  .eb-calc { flex-direction: column; align-items: flex-start; gap: 12px; }
  .eb-ask .eb-ask-row { flex-direction: column; align-items: stretch; }
  .eb-ask .eb-cta { width: 100%; }
  details[data-eb-faq] { padding: 12px 14px; }
}
