/* AEO — AI answer engine optimization blocks
   Answer-shaped Q&A that AI answer engines can extract and cite directly.
   Kept visually secondary to the main narrative so it reads as a plain
   answer summary, not a marketing banner. */

.aeo-block {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  background: var(--bg, #f7f5f2);
  border-top: 1px solid rgba(16, 32, 72, 0.08);
}

.aeo-block.aeo-plain {
  background: transparent;
  border-top: 0;
  padding-top: 0;
}

.aeo-head {
  margin-bottom: 1.5rem;
}

.aeo-head .badge-label {
  margin-bottom: 6px;
}

.aeo-head h2 {
  margin: 0 0 0.5em;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
}

.aeo-head p {
  max-inline-size: var(--ux-prose, 68ch);
  margin: 0;
}

/* Q&A list */
.aeo-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
}

.aeo-item {
  background: var(--white, #fff);
  border: 1px solid rgba(16, 32, 72, 0.09);
  border-left: 3px solid var(--narani-teal, #2ea8a8);
  border-radius: var(--radius, 6px);
  padding: 18px 20px;
}

.aeo-q {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text, #1e293b);
  margin: 0 0 0.4em;
  font-size: 0.9375rem;
  line-height: 1.5;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.aeo-q::before {
  content: "Q. ";
  color: var(--narani-blue, #3068c8);
}

.aeo-a {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.72;
  color: var(--secondary, #64748b);
  word-break: keep-all;
  overflow-wrap: break-word;
}

.aeo-a strong {
  color: var(--text, #1e293b);
  font-weight: 600;
}

/* Key-value definition rows */
.aeo-facts {
  margin: 0;
  display: grid;
  gap: 0;
  border: 1px solid rgba(16, 32, 72, 0.09);
  border-radius: var(--radius, 6px);
  overflow: hidden;
  background: var(--white, #fff);
}

.aeo-fact {
  display: grid;
  grid-template-columns: minmax(8rem, 15rem) 1fr;
  gap: 4px 20px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(16, 32, 72, 0.07);
}

.aeo-fact:last-child {
  border-bottom: 0;
}

.aeo-fact dt {
  font-weight: 600;
  color: var(--text, #1e293b);
  font-size: 0.9375rem;
}

.aeo-fact dd {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--secondary, #64748b);
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* Key term glossary */
.aeo-terms {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.aeo-terms > li {
  padding: 14px 18px;
  background: var(--white, #fff);
  border-radius: var(--radius, 6px);
  border: 1px solid rgba(16, 32, 72, 0.08);
}

.aeo-terms dt,
.aeo-terms .term {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text, #1e293b);
  font-size: 0.9375rem;
  margin-bottom: 0.25em;
}

.aeo-terms dd,
.aeo-terms .def {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--secondary, #64748b);
  word-break: keep-all;
  overflow-wrap: break-word;
}

@media (max-width: 640px) {
  .aeo-fact {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .aeo-fact dt {
    font-size: 0.8125rem;
    color: var(--narani-blue, #3068c8);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .aeo-item {
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
  }
  .aeo-item:hover {
    border-color: rgba(46, 168, 168, 0.45);
    box-shadow: 0 6px 20px rgba(16, 32, 72, 0.06);
  }
}