/**
 * Expert quote blocks — story card / advice pull-quote / Q&A block (+compact).
 *
 * Loaded only on pages that render quotes (see ne_expert_quotes_enqueue).
 * Design approved at Checkpoint 1 (2026-07-24). Two integration rules learned
 * against the live site: attribution is a <div> (bare <footer> gets the site's
 * dark footer styling), and everything inside .ne-enhanced-content needs
 * scoped overrides because the article stylesheet's class+type selectors
 * (.ne-enhanced-content p, blockquote) outrank single classes.
 *
 * Token fallbacks are inlined (--ne-* custom properties are scoped to
 * .ne-enhanced-wrap, which about/service pages don't have).
 */

/* ── Shared ── */
.ne-eq { margin: 1.9rem 0; }

/* Inline related-content links woven into an answer (topic-cluster interlinking) */
.ne-eq-link {
  color: #0284C7;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(2, 132, 199, 0.35);
}
.ne-eq-link:hover { border-bottom-color: #0284C7; }
.ne-eq--advice .ne-eq-link,
.ne-eq-acc__a .ne-eq-link { font-style: normal; }

/* Numbered list inside an answer (e.g. "the three factors" answers) */
.ne-eq-list {
  margin: 0.9rem 0;
  padding-left: 0;
  list-style: none;
  counter-reset: ne-eq-step;
}
.ne-eq-list li {
  position: relative;
  counter-increment: ne-eq-step;
  padding: 0 0 0 2.4rem;
  margin: 0 0 0.75rem;
  line-height: 1.6;
}
.ne-eq-list li:last-child { margin-bottom: 0; }
.ne-eq-list li::before {
  content: counter(ne-eq-step);
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 1.6rem;
  height: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284C7 0%, #7C3AED 100%);
}
/* keep the list flush inside the various answer containers */
.ne-eq blockquote .ne-eq-list,
.ne-eq-acc__a .ne-eq-list { color: inherit; }

.ne-eq-attrib {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.1rem;
  background: transparent;
  border: 0;
  padding: 0;
}
.ne-eq-attrib img.ne-eq-photo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #8B5CF6;
  flex-shrink: 0;
}
.ne-eq-who {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.45;
}
.ne-eq-who a {
  color: #1a1a1a;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dotted rgba(2, 132, 199, 0.55);
}
.ne-eq-who a:hover { color: #0284C7; }

/* ── Story card ── */
.ne-eq--story {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.75rem;
  padding: 1.75rem 1.7rem 1.5rem;
  box-shadow: 0 1px 3px rgba(13, 13, 13, 0.05);
}
.ne-eq--story::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #0284C7 0%, #7C3AED 100%);
}
.ne-eq-kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #0284C7 0%, #7C3AED 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0 0 0.55rem;
}
.ne-eq-title {
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0 0 0.35rem;
  color: #111;
}
.ne-eq-context {
  font-size: 0.8rem;
  font-weight: 600;
  color: #6b7280;
  margin: 0 0 1rem;
}
.ne-eq--story blockquote,
.ne-eq--qa blockquote {
  margin: 0;
  padding: 0;
  border: 0;
  font-style: normal;
  color: #1f2937;
}
.ne-eq--story blockquote p,
.ne-eq--qa blockquote p {
  margin: 0 0 0.9rem;
}
.ne-eq--story blockquote p:last-child,
.ne-eq--qa blockquote p:last-child {
  margin-bottom: 0;
}

/* ── Compact story (related pages) ── */
.ne-eq--compact { padding: 1.15rem 1.3rem 1.1rem; }
.ne-eq--compact .ne-eq-title { font-size: 1.05rem; margin-bottom: 0.25rem; }
.ne-eq--compact .ne-eq-context { margin-bottom: 0.7rem; }
.ne-eq--compact .ne-eq-attrib { margin-top: 0.85rem; }
.ne-eq--compact .ne-eq-attrib img.ne-eq-photo { width: 36px; height: 36px; }

/* ── Advice pull-quote ── */
.ne-eq--advice {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.65rem;
  border-left: 4px solid;
  border-image: linear-gradient(180deg, #0284C7 0%, #7C3AED 100%) 1;
  margin: 2.4rem 0 1.9rem;
}
.ne-eq--advice blockquote { margin: 0; padding: 0; border: 0; }
.ne-eq--advice blockquote p {
  font-size: 1.17rem;
  line-height: 1.62;
  font-style: italic;
  color: #374151;
  margin: 0;
}
.ne-eq--advice::before {
  content: "\201C";
  position: absolute;
  left: 1.4rem;
  top: -1.9rem;
  font-size: 4.6rem;
  line-height: 1;
  font-weight: 800;
  background: linear-gradient(135deg, #0284C7 0%, #7C3AED 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.28;
  pointer-events: none;
}

/* ── Q&A block ── */
.ne-eq--qa {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
  border: 1px solid rgba(2, 132, 199, 0.14);
  border-radius: 0.75rem;
  padding: 1.45rem 1.6rem 1.4rem;
}
.ne-eq-q {
  font-weight: 700;
  font-size: 1.06rem;
  line-height: 1.45;
  color: #111;
  margin: 0 0 0.8rem;
}
.ne-eq-q .qmark {
  background: linear-gradient(135deg, #0284C7 0%, #7C3AED 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
  margin-right: 0.45rem;
}

/* ── Enhanced-article scoped overrides (win against .ne-enhanced-content p etc.) ── */
.ne-enhanced-content .ne-eq blockquote {
  border: 0;
  border-image: none;
  padding: 0;
  margin: 0;
  font-style: normal;
  color: inherit;
}
.ne-enhanced-content .ne-eq--advice blockquote p { font-style: italic; color: #374151; }
.ne-enhanced-content .ne-eq-kicker { color: transparent; margin: 0 0 0.55rem; }
.ne-enhanced-content .ne-eq-title { margin: 0 0 0.35rem; color: #111; }
.ne-enhanced-content .ne-eq-context { margin: 0 0 1rem; color: #6b7280; }
.ne-enhanced-content .ne-eq--compact .ne-eq-context { margin-bottom: 0.7rem; }
.ne-enhanced-content .ne-eq-q { margin: 0 0 0.8rem; color: #111; }
.ne-enhanced-content .ne-eq-q .qmark { color: transparent; }
.ne-enhanced-content .ne-eq-who { color: #6b7280; }
.ne-enhanced-content .ne-eq-attrib { background: transparent; border: 0; padding: 0; margin-top: 1.1rem; }
.ne-enhanced-content .ne-eq--story blockquote p,
.ne-enhanced-content .ne-eq--qa blockquote p { margin: 0 0 0.9rem; }
.ne-enhanced-content .ne-eq--story blockquote p:last-child,
.ne-enhanced-content .ne-eq--qa blockquote p:last-child { margin-bottom: 0; }

/* ── Curated section wrapper (About page, service pages) ── */
/* Reads as an intentional, framed section on service / about pages: a tinted
   band, a centered heading that ties the quotes to the page, and a lead line
   so the quotes arrive with context instead of dropped in cold. */
.ne-eq-section {
  padding: 3.6rem 1.4rem;
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(2, 132, 199, 0.05) 0%, transparent 60%),
    linear-gradient(180deg, #f7f9fc 0%, #eef2f7 100%);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.ne-eq-section__inner {
  max-width: 46rem;
  margin: 0 auto;
}
.ne-eq-section__head {
  text-align: center;
  max-width: 34rem;
  margin: 0 auto 1.6rem;
}
.ne-eq-section__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #0284C7 0%, #7C3AED 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0 0 0.6rem;
}
.ne-eq-section__title {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #111;
  margin: 0;
  text-wrap: balance;
}
.ne-eq-section__intro {
  color: #5b6b7b;
  font-size: 0.98rem;
  line-height: 1.55;
  margin: 0.7rem 0 0;
}
/* "Answered by Joe" byline under the heading (keeps his name + link visible
   even while every answer is collapsed) */
.ne-eq-section__by {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: #6b7280;
  margin: 1.1rem 0 0;
}
.ne-eq-section__by img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #8B5CF6;
}
.ne-eq-section__by a {
  color: #1a1a1a;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dotted rgba(2, 132, 199, 0.5);
}
.ne-eq-section__by a:hover { color: #0284C7; }

/* Collapsed Q&A accordion — uniform rows, native <details>, no JS */
.ne-eq-acc-list {
  max-width: 40rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.ne-eq-acc {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.7rem;
}
.ne-eq-acc[open] {
  border-color: rgba(2, 132, 199, 0.28);
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.08);
}
.ne-eq-acc__q {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem 1.25rem;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
  color: #111;
}
.ne-eq-acc__q::-webkit-details-marker { display: none; }
.ne-eq-acc__q:hover { color: #0284C7; }
.ne-eq-acc__q:focus-visible { outline: 2px solid #0284C7; outline-offset: 2px; border-radius: 0.7rem; }
.ne-eq-acc__qtext { flex: 1 1 auto; }
.ne-eq-acc__icon { flex: 0 0 auto; position: relative; width: 1.15rem; height: 1.15rem; }
.ne-eq-acc__icon::before,
.ne-eq-acc__icon::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  background: linear-gradient(135deg, #0284C7 0%, #7C3AED 100%);
  border-radius: 2px;
}
.ne-eq-acc__icon::before { width: 1.15rem; height: 2px; transform: translate(-50%, -50%); }
.ne-eq-acc__icon::after {
  width: 2px;
  height: 1.15rem;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.ne-eq-acc[open] .ne-eq-acc__icon::after { opacity: 0; transform: translate(-50%, -50%) rotate(90deg); }
.ne-eq-acc__a {
  padding: 0 1.25rem 1.25rem;
  color: #374151;
  font-size: 0.98rem;
  line-height: 1.7;
}
.ne-eq-acc__a p { margin: 0; }
@media (prefers-reduced-motion: reduce) {
  .ne-eq-acc__icon::after { transition: none; }
}

/* ── Mobile ── */
@media (max-width: 767px) {
  .ne-eq--story { padding: 1.25rem 1.15rem 1.2rem; }
  .ne-eq--qa { padding: 1.15rem 1.15rem; }
  .ne-eq--advice { padding-left: 1.25rem; }
  .ne-eq--advice blockquote p { font-size: 1.08rem; }
  .ne-eq-section { padding: 2.6rem 1.1rem; }
  .ne-eq-section__title { font-size: 1.4rem; }
}
