/* SettleNZ 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 #E2E4E9;
  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: #00247D;
  margin-bottom: 6px;
}

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

.eb-block .eb-lede {
  font-size: 0.95rem;
  color: #52525B;
  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: #F7F8FA;
  border: 1px solid #E2E4E9;
  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: #00247D;
  background: #EEF2FA;
  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: #52525B;
}
.eb-next-steps .eb-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #00247D;
  line-height: 1.3;
}
.eb-next-steps .eb-card-desc {
  font-size: 0.85rem;
  color: #52525B;
  line-height: 1.5;
}
.eb-next-steps .eb-card-arrow {
  font-size: 0.85rem;
  color: #00247D;
  font-weight: 700;
  margin-top: 4px;
}

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

/* Native FAQ disclosure; no analytics. */
details[data-eb-faq] {
  margin: 12px 0;
  padding: 14px 18px;
  border: 1px solid #E2E4E9;
  border-radius: 10px;
  background: #ffffff;
  transition: border-color 0.15s ease;
}
details[data-eb-faq]:hover { border-color: #E2E4E9; }
details[data-eb-faq][open] {
  border-color: #00247D;
  background: #F7F8FA;
}
details[data-eb-faq] > summary {
  list-style: none;
  cursor: pointer;
  font-size: 1rem;
  color: #00247D;
  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: #00247D;
  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: #171717;
  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; }
  details[data-eb-faq] { padding: 12px 14px; }
}
