/* "What is ABS Vendor?" quick-facts strip (partials/aeo_answer_block.php).
 *
 * Lives in a stylesheet, not a <style> tag inside the partial: on pages whose footer is
 * rendered inside the Vue app (#app), Vue drops <style> tags from the template, which
 * left this block completely unstyled (flush left, raw arrow marker). A <link> survives.
 *
 * The facts stay in the served HTML inside <details>, so crawlers and AI retrieval read
 * them as before; only the presentation changes. Colours use the vault tokens with
 * fallbacks so it also looks right on pages that do not load vault.css.
 */
.aeo-answer {
  --a-ink: var(--v-ink, #0C1B3A);
  --a-muted: var(--v-muted, #4E5B78);
  --a-line: var(--v-line, rgba(12, 27, 58, .10));
  --a-brand: var(--v-brand, #1466E0);
  --a-bg: var(--v-bg, #fff);
  --a-bg2: var(--v-bg2, #F3F6FC);
  background: var(--a-bg);
  border-top: 1px solid var(--a-line);
  padding: 0;
  font-family: var(--vf-b, system-ui, -apple-system, "Segoe UI", sans-serif);
}
.aeo-answer__details { margin: 0; }
.aeo-answer__details[open] { padding-bottom: clamp(28px, 4vw, 44px); }

/* Summary row: label + title + one-line teaser on the left, a quiet pill on the right. */
.aeo-answer__sum {
  list-style: none;
  cursor: pointer;
  box-sizing: border-box;
  max-width: var(--v-maxw, 1140px);
  margin: 0 auto;
  padding: clamp(18px, 2.6vw, 26px) clamp(18px, 4vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.aeo-answer__sum::-webkit-details-marker { display: none; }
.aeo-answer__sum::marker { content: ""; }
.aeo-answer__sum:focus-visible { outline: 2px solid var(--a-brand); outline-offset: -2px; border-radius: 10px; }

.aeo-sum__text { display: block; min-width: 0; }
.aeo-sum__eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--a-brand);
  margin-bottom: 4px;
}
.aeo-answer__title {
  font-family: var(--vf-d, system-ui, sans-serif);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  letter-spacing: -.015em;
  line-height: 1.2;
  color: var(--a-ink);
  margin: 0;
}
.aeo-sum__tease {
  display: block;
  margin-top: 4px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--a-muted);
}

.aeo-answer__hint {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 14px;
  border: 1px solid var(--a-line);
  border-radius: 999px;
  background: var(--a-bg);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--a-ink);
  white-space: nowrap;
  transition: border-color .15s ease, background .15s ease;
}
.aeo-answer__sum:hover .aeo-answer__hint { border-color: var(--a-brand); background: var(--a-bg2); }
.aeo-chev {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--a-bg2);
  position: relative;
  transition: transform .2s ease;
}
.aeo-chev::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 2px solid var(--a-ink);
  border-bottom: 2px solid var(--a-ink);
  transform: translate(-50%, -70%) rotate(45deg);
}
.aeo-answer__details[open] .aeo-chev { transform: rotate(180deg); }

/* Opened content. */
.aeo-answer__inner {
  box-sizing: border-box;
  max-width: var(--v-maxw, 1140px);
  margin: 0 auto;
  padding: 4px clamp(18px, 4vw, 40px) 0;
}
.aeo-answer__lead {
  font-size: clamp(.98rem, 1.3vw, 1.08rem);
  line-height: 1.7;
  color: var(--a-ink);
  max-width: 72ch;
  margin: 0 0 22px;
}
.aeo-answer__lead strong { font-weight: 700; }

.aeo-answer__facts {
  display: grid;
  grid-template-columns: 1fr;
  margin: 0;
  border-top: 1px solid var(--a-line);
}
.aeo-answer__facts dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--a-muted);
  padding: 14px 0 2px;
  border-top: 1px solid var(--a-line);
  margin-top: -1px;
}
.aeo-answer__facts dt:first-child { border-top: 0; }
.aeo-answer__facts dd {
  margin: 0;
  padding: 0 0 14px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--a-ink);
}
.aeo-answer__facts dd a {
  color: var(--a-brand);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
@media (min-width: 760px) {
  .aeo-answer__facts { grid-template-columns: 190px minmax(0, 1fr); column-gap: 32px; }
  .aeo-answer__facts dt { padding: 16px 0; border-top: 1px solid var(--a-line); margin-top: 0; }
  .aeo-answer__facts dd { padding: 14px 0; border-top: 1px solid var(--a-line); }
  .aeo-answer__facts dt:first-child, .aeo-answer__facts dt:first-child + dd { border-top: 0; }
}

/* Phones: drop the teaser so the row stays one tidy line; keep the pill. */
@media (max-width: 560px) {
  .aeo-sum__tease { display: none; }
  .aeo-answer__hint { padding: 6px 6px 6px 12px; }
}
